grammy 1.22.0 → 1.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/context.d.ts CHANGED
@@ -220,8 +220,8 @@ export declare class Context implements RenamedUpdate {
220
220
  * Get the user object from wherever possible. Alias for
221
221
  * `(this.businessConnection ?? this.messageReaction ??
222
222
  * (this.chatBoost?.boost ?? this.removedChatBoost)?.source)?.user ??
223
- * (this.msg ?? this.inlineQuery ?? this.chosenInlineResult ??
224
- * this.callbackQuery ?? this.shippingQuery ?? this.preCheckoutQuery ??
223
+ * (this.callbackQuery ?? this.msg ?? this.inlineQuery ??
224
+ * this.chosenInlineResult ?? this.shippingQuery ?? this.preCheckoutQuery ??
225
225
  * this.myChatMember ?? this.chatMember ?? this.chatJoinRequest)?.from`.
226
226
  */
227
227
  get from(): User | undefined;
package/out/context.js CHANGED
@@ -334,14 +334,14 @@ class Context {
334
334
  * Get the user object from wherever possible. Alias for
335
335
  * `(this.businessConnection ?? this.messageReaction ??
336
336
  * (this.chatBoost?.boost ?? this.removedChatBoost)?.source)?.user ??
337
- * (this.msg ?? this.inlineQuery ?? this.chosenInlineResult ??
338
- * this.callbackQuery ?? this.shippingQuery ?? this.preCheckoutQuery ??
337
+ * (this.callbackQuery ?? this.msg ?? this.inlineQuery ??
338
+ * this.chosenInlineResult ?? this.shippingQuery ?? this.preCheckoutQuery ??
339
339
  * this.myChatMember ?? this.chatMember ?? this.chatJoinRequest)?.from`.
340
340
  */
341
341
  get from() {
342
342
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
343
343
  // Keep in sync with types in `filter.ts`.
344
- return (_g = (_f = ((_b = (_a = this.businessConnection) !== null && _a !== void 0 ? _a : this.messageReaction) !== null && _b !== void 0 ? _b : (_e = ((_d = (_c = this.chatBoost) === null || _c === void 0 ? void 0 : _c.boost) !== null && _d !== void 0 ? _d : this.removedChatBoost)) === null || _e === void 0 ? void 0 : _e.source)) === null || _f === void 0 ? void 0 : _f.user) !== null && _g !== void 0 ? _g : (_r = ((_q = (_p = (_o = (_m = (_l = (_k = (_j = (_h = this.msg) !== null && _h !== void 0 ? _h : this.inlineQuery) !== null && _j !== void 0 ? _j : this.chosenInlineResult) !== null && _k !== void 0 ? _k : this.callbackQuery) !== null && _l !== void 0 ? _l : this.shippingQuery) !== null && _m !== void 0 ? _m : this.preCheckoutQuery) !== null && _o !== void 0 ? _o : this.myChatMember) !== null && _p !== void 0 ? _p : this.chatMember) !== null && _q !== void 0 ? _q : this.chatJoinRequest)) === null || _r === void 0 ? void 0 : _r.from;
344
+ return (_g = (_f = ((_b = (_a = this.businessConnection) !== null && _a !== void 0 ? _a : this.messageReaction) !== null && _b !== void 0 ? _b : (_e = ((_d = (_c = this.chatBoost) === null || _c === void 0 ? void 0 : _c.boost) !== null && _d !== void 0 ? _d : this.removedChatBoost)) === null || _e === void 0 ? void 0 : _e.source)) === null || _f === void 0 ? void 0 : _f.user) !== null && _g !== void 0 ? _g : (_r = ((_q = (_p = (_o = (_m = (_l = (_k = (_j = (_h = this.callbackQuery) !== null && _h !== void 0 ? _h : this.msg) !== null && _j !== void 0 ? _j : this.inlineQuery) !== null && _k !== void 0 ? _k : this.chosenInlineResult) !== null && _l !== void 0 ? _l : this.shippingQuery) !== null && _m !== void 0 ? _m : this.preCheckoutQuery) !== null && _o !== void 0 ? _o : this.myChatMember) !== null && _p !== void 0 ? _p : this.chatMember) !== null && _q !== void 0 ? _q : this.chatJoinRequest)) === null || _r === void 0 ? void 0 : _r.from;
345
345
  }
346
346
  /**
347
347
  * Get the message identifier from wherever possible. Alias for
package/out/web.mjs CHANGED
@@ -555,7 +555,7 @@ class Context {
555
555
  return this.msg?.sender_chat;
556
556
  }
557
557
  get from() {
558
- return (this.businessConnection ?? this.messageReaction ?? (this.chatBoost?.boost ?? this.removedChatBoost)?.source)?.user ?? (this.msg ?? this.inlineQuery ?? this.chosenInlineResult ?? this.callbackQuery ?? this.shippingQuery ?? this.preCheckoutQuery ?? this.myChatMember ?? this.chatMember ?? this.chatJoinRequest)?.from;
558
+ return (this.businessConnection ?? this.messageReaction ?? (this.chatBoost?.boost ?? this.removedChatBoost)?.source)?.user ?? (this.callbackQuery ?? this.msg ?? this.inlineQuery ?? this.chosenInlineResult ?? this.shippingQuery ?? this.preCheckoutQuery ?? this.myChatMember ?? this.chatMember ?? this.chatJoinRequest)?.from;
559
559
  }
560
560
  get msgId() {
561
561
  return this.msg?.message_id ?? this.messageReaction?.message_id ?? this.messageReactionCount?.message_id;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "grammy",
3
3
  "description": "The Telegram Bot Framework.",
4
- "version": "1.22.0",
4
+ "version": "1.22.1",
5
5
  "author": "KnorpelSenf",
6
6
  "license": "MIT",
7
7
  "engines": {