grammy 1.9.0 β†’ 1.9.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/README.md CHANGED
@@ -206,6 +206,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
206
206
  <td align="center"><a href="https://github.com/kolay-v"><img src="https://avatars.githubusercontent.com/u/49853802?v=4?s=100" width="100px;" alt=""/><br /><sub><b>kolay</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Akolay-v" title="Reviewed Pull Requests">πŸ‘€</a></td>
207
207
  <td align="center"><a href="https://enepom.com/"><img src="https://avatars.githubusercontent.com/u/2511553?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Evgeny Nepomnyashchiy</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Apizzaeater" title="Reviewed Pull Requests">πŸ‘€</a></td>
208
208
  <td align="center"><a href="https://github.com/anantakrishna"><img src="https://avatars.githubusercontent.com/u/6065071?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ananta Krsna dasa</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=anantakrishna" title="Documentation">πŸ“–</a></td>
209
+ <td align="center"><a href="https://github.com/Mi3liX9"><img src="https://avatars.githubusercontent.com/u/26169870?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mighty Ali</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=Mi3liX9" title="Code">πŸ’»</a></td>
210
+ <td align="center"><a href="https://oott123.com"><img src="https://avatars.githubusercontent.com/u/905663?v=4?s=100" width="100px;" alt=""/><br /><sub><b>δΈ‰δΈ‰</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3Aoott123" title="Bug reports">πŸ›</a> <a href="https://github.com/grammyjs/grammY/commits?author=oott123" title="Code">πŸ’»</a></td>
209
211
  </tr>
210
212
  </table>
211
213
 
package/out/context.d.ts CHANGED
@@ -86,25 +86,25 @@ export declare class Context implements RenamedUpdate {
86
86
  /** Alias for `ctx.update.edited_channel_post` */
87
87
  get editedChannelPost(): Message | undefined;
88
88
  /** Alias for `ctx.update.inline_query` */
89
- get inlineQuery(): import("@grammyjs/types/inline").InlineQuery | undefined;
89
+ get inlineQuery(): import("@grammyjs/types/inline.js").InlineQuery | undefined;
90
90
  /** Alias for `ctx.update.chosen_inline_result` */
91
- get chosenInlineResult(): import("@grammyjs/types/inline").ChosenInlineResult | undefined;
91
+ get chosenInlineResult(): import("@grammyjs/types/inline.js").ChosenInlineResult | undefined;
92
92
  /** Alias for `ctx.update.callback_query` */
93
- get callbackQuery(): import("@grammyjs/types/markup").CallbackQuery | undefined;
93
+ get callbackQuery(): import("@grammyjs/types/markup.js").CallbackQuery | undefined;
94
94
  /** Alias for `ctx.update.shipping_query` */
95
- get shippingQuery(): import("@grammyjs/types/payment").ShippingQuery | undefined;
95
+ get shippingQuery(): import("@grammyjs/types/payment.js").ShippingQuery | undefined;
96
96
  /** Alias for `ctx.update.pre_checkout_query` */
97
- get preCheckoutQuery(): import("@grammyjs/types/payment").PreCheckoutQuery | undefined;
97
+ get preCheckoutQuery(): import("@grammyjs/types/payment.js").PreCheckoutQuery | undefined;
98
98
  /** Alias for `ctx.update.poll` */
99
- get poll(): import("@grammyjs/types/message").Poll | undefined;
99
+ get poll(): import("@grammyjs/types/message.js").Poll | undefined;
100
100
  /** Alias for `ctx.update.poll_answer` */
101
- get pollAnswer(): import("@grammyjs/types/message").PollAnswer | undefined;
101
+ get pollAnswer(): import("@grammyjs/types/message.js").PollAnswer | undefined;
102
102
  /** Alias for `ctx.update.my_chat_member` */
103
- get myChatMember(): import("@grammyjs/types/manage").ChatMemberUpdated | undefined;
103
+ get myChatMember(): import("@grammyjs/types/manage.js").ChatMemberUpdated | undefined;
104
104
  /** Alias for `ctx.update.chat_member` */
105
- get chatMember(): import("@grammyjs/types/manage").ChatMemberUpdated | undefined;
105
+ get chatMember(): import("@grammyjs/types/manage.js").ChatMemberUpdated | undefined;
106
106
  /** Alias for `ctx.update.chat_join_request` */
107
- get chatJoinRequest(): import("@grammyjs/types/manage").ChatJoinRequest | undefined;
107
+ get chatJoinRequest(): import("@grammyjs/types/manage.js").ChatJoinRequest | undefined;
108
108
  /**
109
109
  * Get message object from wherever possible. Alias for `ctx.message ??
110
110
  * ctx.editedMessage ?? ctx.callbackQuery?.message ?? ctx.channelPost ??
@@ -162,7 +162,7 @@ export declare class Context implements RenamedUpdate {
162
162
  *
163
163
  * **Official reference:** https://core.telegram.org/bots/api#copymessage
164
164
  */
165
- copyMessage(chat_id: number | string, other?: Other<"copyMessage", "chat_id" | "from_chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").MessageId>;
165
+ copyMessage(chat_id: number | string, other?: Other<"copyMessage", "chat_id" | "from_chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").MessageId>;
166
166
  /**
167
167
  * Context-aware alias for `api.sendPhoto`. Use this method to send photos. On success, the sent Message is returned.
168
168
  *
@@ -267,7 +267,7 @@ export declare class Context implements RenamedUpdate {
267
267
  *
268
268
  * **Official reference:** https://core.telegram.org/bots/api#editmessagelivelocation
269
269
  */
270
- editMessageLiveLocation(latitude: number, longitude: number, other?: Other<"editMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id" | "latitude" | "longitude">, signal?: AbortSignal): Promise<true | (Update.Edited & Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"location">)>;
270
+ editMessageLiveLocation(latitude: number, longitude: number, other?: Other<"editMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id" | "latitude" | "longitude">, signal?: AbortSignal): Promise<true | (Update.Edited & Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"location">)>;
271
271
  /**
272
272
  * Context-aware alias for `api.stopMessageLiveLocation`. Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.
273
273
  *
@@ -276,7 +276,7 @@ export declare class Context implements RenamedUpdate {
276
276
  *
277
277
  * **Official reference:** https://core.telegram.org/bots/api#stopmessagelivelocation
278
278
  */
279
- stopMessageLiveLocation(other?: Other<"stopMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (Update.Edited & Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"location">)>;
279
+ stopMessageLiveLocation(other?: Other<"stopMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (Update.Edited & Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"location">)>;
280
280
  /**
281
281
  * Context-aware alias for `api.sendVenue`. Use this method to send information about a venue. On success, the sent Message is returned.
282
282
  *
@@ -344,7 +344,7 @@ export declare class Context implements RenamedUpdate {
344
344
  *
345
345
  * **Official reference:** https://core.telegram.org/bots/api#getuserprofilephotos
346
346
  */
347
- getUserProfilePhotos(other?: Other<"getUserProfilePhotos", "user_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").UserProfilePhotos>;
347
+ getUserProfilePhotos(other?: Other<"getUserProfilePhotos", "user_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").UserProfilePhotos>;
348
348
  /**
349
349
  * Context-aware alias for `api.getFile`. Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>, where <file_path> is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again.
350
350
  *
@@ -354,7 +354,7 @@ export declare class Context implements RenamedUpdate {
354
354
  *
355
355
  * **Official reference:** https://core.telegram.org/bots/api#getfile
356
356
  */
357
- getFile(signal?: AbortSignal): Promise<import("@grammyjs/types/manage").File>;
357
+ getFile(signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").File>;
358
358
  /** @deprecated Use `banAuthor` instead. */
359
359
  kickAuthor(...args: Parameters<Context["banAuthor"]>): Promise<true>;
360
360
  /**
@@ -491,7 +491,7 @@ export declare class Context implements RenamedUpdate {
491
491
  *
492
492
  * **Official reference:** https://core.telegram.org/bots/api#createchatinvitelink
493
493
  */
494
- createChatInviteLink(other?: Other<"createChatInviteLink", "chat_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatInviteLink>;
494
+ createChatInviteLink(other?: Other<"createChatInviteLink", "chat_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatInviteLink>;
495
495
  /**
496
496
  * Context-aware alias for `api.editChatInviteLink`. Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a ChatInviteLink object.
497
497
  *
@@ -501,7 +501,7 @@ export declare class Context implements RenamedUpdate {
501
501
  *
502
502
  * **Official reference:** https://core.telegram.org/bots/api#editchatinvitelink
503
503
  */
504
- editChatInviteLink(invite_link: string, other?: Other<"editChatInviteLink", "chat_id" | "invite_link">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatInviteLink>;
504
+ editChatInviteLink(invite_link: string, other?: Other<"editChatInviteLink", "chat_id" | "invite_link">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatInviteLink>;
505
505
  /**
506
506
  * Context-aware alias for `api.revokeChatInviteLink`. Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the revoked invite link as ChatInviteLink object.
507
507
  *
@@ -510,7 +510,7 @@ export declare class Context implements RenamedUpdate {
510
510
  *
511
511
  * **Official reference:** https://core.telegram.org/bots/api#revokechatinvitelink
512
512
  */
513
- revokeChatInviteLink(invite_link: string, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatInviteLink>;
513
+ revokeChatInviteLink(invite_link: string, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatInviteLink>;
514
514
  /**
515
515
  * Context-aware alias for `api.approveChatJoinRequest`. Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success.
516
516
  *
@@ -606,7 +606,7 @@ export declare class Context implements RenamedUpdate {
606
606
  *
607
607
  * **Official reference:** https://core.telegram.org/bots/api#getchat
608
608
  */
609
- getChat(signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatFromGetChat>;
609
+ getChat(signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatFromGetChat>;
610
610
  /**
611
611
  * Context-aware alias for `api.getChatAdministrators`. Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.
612
612
  *
@@ -614,7 +614,7 @@ export declare class Context implements RenamedUpdate {
614
614
  *
615
615
  * **Official reference:** https://core.telegram.org/bots/api#getchatadministrators
616
616
  */
617
- getChatAdministrators(signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatMember[]>;
617
+ getChatAdministrators(signal?: AbortSignal): Promise<(import("@grammyjs/types/manage.js").ChatMemberOwner | import("@grammyjs/types/manage.js").ChatMemberAdministrator)[]>;
618
618
  /** @deprecated Use `getChatMembersCount` instead. */
619
619
  getChatMembersCount(...args: Parameters<Context["getChatMemberCount"]>): Promise<number>;
620
620
  /**
@@ -632,7 +632,7 @@ export declare class Context implements RenamedUpdate {
632
632
  *
633
633
  * **Official reference:** https://core.telegram.org/bots/api#getchatmember
634
634
  */
635
- getAuthor(signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatMember>;
635
+ getAuthor(signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatMember>;
636
636
  /**
637
637
  * Context-aware alias for `api.getChatMember`. Use this method to get information about a member of a chat. Returns a ChatMember object on success.
638
638
  *
@@ -641,7 +641,7 @@ export declare class Context implements RenamedUpdate {
641
641
  *
642
642
  * **Official reference:** https://core.telegram.org/bots/api#getchatmember
643
643
  */
644
- getChatMember(user_id: number, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatMember>;
644
+ getChatMember(user_id: number, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatMember>;
645
645
  /**
646
646
  * Context-aware alias for `api.setChatStickerSet`. Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set ly returned in getChat requests to check if the bot can use this method. Returns True on success.
647
647
  *
@@ -687,7 +687,7 @@ export declare class Context implements RenamedUpdate {
687
687
  *
688
688
  * **Official reference:** https://core.telegram.org/bots/api#setchatmenubutton
689
689
  */
690
- getChatMenuButton(other?: Other<"getChatMenuButton">, signal?: AbortSignal): Promise<import("@grammyjs/types/menu-button").MenuButton>;
690
+ getChatMenuButton(other?: Other<"getChatMenuButton">, signal?: AbortSignal): Promise<import("@grammyjs/types/menu-button.js").MenuButton>;
691
691
  /**
692
692
  * Context-aware alias for `api.setMyDefaultAdministratorRights`. Use this method to the change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are are free to modify the list before adding the bot. Returns True on success.
693
693
  *
@@ -703,7 +703,7 @@ export declare class Context implements RenamedUpdate {
703
703
  * @param other Optional remaining parameters, confer the official reference below
704
704
  * @param signal Optional `AbortSignal` to cancel the request
705
705
  */
706
- getMyDefaultAdministratorRights(other?: Other<"getMyDefaultAdministratorRights">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatAdministratorRights>;
706
+ getMyDefaultAdministratorRights(other?: Other<"getMyDefaultAdministratorRights">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatAdministratorRights>;
707
707
  /**
708
708
  * Context-aware alias for `api.editMessageText`. Use this method to edit text and game messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
709
709
  *
@@ -713,7 +713,7 @@ export declare class Context implements RenamedUpdate {
713
713
  *
714
714
  * **Official reference:** https://core.telegram.org/bots/api#editmessagetext
715
715
  */
716
- editMessageText(text: string, other?: Other<"editMessageText", "chat_id" | "message_id" | "inline_message_id" | "text">, signal?: AbortSignal): Promise<true | (Update.Edited & Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"text">)>;
716
+ editMessageText(text: string, other?: Other<"editMessageText", "chat_id" | "message_id" | "inline_message_id" | "text">, signal?: AbortSignal): Promise<true | (Update.Edited & Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"text">)>;
717
717
  /**
718
718
  * Context-aware alias for `api.editMessageCaption`. Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
719
719
  *
@@ -732,7 +732,7 @@ export declare class Context implements RenamedUpdate {
732
732
  *
733
733
  * **Official reference:** https://core.telegram.org/bots/api#editmessagemedia
734
734
  */
735
- editMessageMedia(media: InputMedia, other?: Other<"editMessageMedia", "chat_id" | "message_id" | "inline_message_id" | "media">, signal?: AbortSignal): Promise<true | (Update.Edited & Message.CaptionableMessage & import("@grammyjs/types/message").MsgWith<"document"> & import("@grammyjs/types/message").MsgWith<"animation">) | (Update.Edited & Message.CaptionableMessage & import("@grammyjs/types/message").MsgWith<"audio">) | (Update.Edited & Message.CaptionableMessage & import("@grammyjs/types/message").MsgWith<"document">) | (Update.Edited & Message.MediaMessage & import("@grammyjs/types/message").MsgWith<"photo">) | (Update.Edited & Message.MediaMessage & import("@grammyjs/types/message").MsgWith<"video">)>;
735
+ editMessageMedia(media: InputMedia, other?: Other<"editMessageMedia", "chat_id" | "message_id" | "inline_message_id" | "media">, signal?: AbortSignal): Promise<true | (Update.Edited & Message.CaptionableMessage & import("@grammyjs/types/message.js").MsgWith<"document"> & import("@grammyjs/types/message.js").MsgWith<"animation">) | (Update.Edited & Message.CaptionableMessage & import("@grammyjs/types/message.js").MsgWith<"audio">) | (Update.Edited & Message.CaptionableMessage & import("@grammyjs/types/message.js").MsgWith<"document">) | (Update.Edited & Message.MediaMessage & import("@grammyjs/types/message.js").MsgWith<"photo">) | (Update.Edited & Message.MediaMessage & import("@grammyjs/types/message.js").MsgWith<"video">)>;
736
736
  /**
737
737
  * Context-aware alias for `api.editMessageReplyMarkup`. Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
738
738
  *
@@ -750,7 +750,7 @@ export declare class Context implements RenamedUpdate {
750
750
  *
751
751
  * **Official reference:** https://core.telegram.org/bots/api#stoppoll
752
752
  */
753
- stopPoll(other?: Other<"stopPoll", "chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Poll>;
753
+ stopPoll(other?: Other<"stopPoll", "chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Poll>;
754
754
  /**
755
755
  * Context-aware alias for `api.deleteMessage`. Use this method to delete a message, including service messages, with the following limitations:
756
756
  * - A message can only be deleted if it was sent less than 48 hours ago.
@@ -47,7 +47,7 @@ const koa = (ctx) => ({
47
47
  /** fastify web framework */
48
48
  const fastify = (req, reply) => ({
49
49
  update: Promise.resolve(req.body),
50
- header: req.headers[SECRET_HEADER],
50
+ header: req.headers[SECRET_HEADER.toLowerCase()],
51
51
  end: () => reply.status(200).send(),
52
52
  respond: (json) => reply.send(json),
53
53
  unauthorized: () => reply.code(401).send("secret token is wrong"),
package/out/core/api.d.ts CHANGED
@@ -71,7 +71,7 @@ export declare class Api<R extends RawApi = RawApi> {
71
71
  *
72
72
  * **Official reference:** https://core.telegram.org/bots/api#getupdates
73
73
  */
74
- getUpdates(other?: Other<R, "getUpdates">, signal?: AbortSignal): Promise<import("@grammyjs/types/update").Update[]>;
74
+ getUpdates(other?: Other<R, "getUpdates">, signal?: AbortSignal): Promise<import("@grammyjs/types/update.js").Update[]>;
75
75
  /**
76
76
  * Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success.
77
77
  *
@@ -107,7 +107,7 @@ export declare class Api<R extends RawApi = RawApi> {
107
107
  *
108
108
  * **Official reference:** https://core.telegram.org/bots/api#getwebhookinfo
109
109
  */
110
- getWebhookInfo(signal?: AbortSignal): Promise<import("@grammyjs/types/manage").WebhookInfo>;
110
+ getWebhookInfo(signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").WebhookInfo>;
111
111
  /**
112
112
  * A simple method for testing your bot's authentication token. Requires no parameters. Returns basic information about the bot in form of a User object.
113
113
  *
@@ -115,7 +115,7 @@ export declare class Api<R extends RawApi = RawApi> {
115
115
  *
116
116
  * **Official reference:** https://core.telegram.org/bots/api#getme
117
117
  */
118
- getMe(signal?: AbortSignal): Promise<import("@grammyjs/types/manage").UserFromGetMe>;
118
+ getMe(signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").UserFromGetMe>;
119
119
  /**
120
120
  * Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns True on success. Requires no parameters.
121
121
  *
@@ -142,7 +142,7 @@ export declare class Api<R extends RawApi = RawApi> {
142
142
  *
143
143
  * **Official reference:** https://core.telegram.org/bots/api#sendmessage
144
144
  */
145
- sendMessage(chat_id: number | string, text: string, other?: Other<R, "sendMessage", "chat_id" | "text">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.TextMessage>;
145
+ sendMessage(chat_id: number | string, text: string, other?: Other<R, "sendMessage", "chat_id" | "text">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.TextMessage>;
146
146
  /**
147
147
  * Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned.
148
148
  *
@@ -154,7 +154,7 @@ export declare class Api<R extends RawApi = RawApi> {
154
154
  *
155
155
  * **Official reference:** https://core.telegram.org/bots/api#forwardmessage
156
156
  */
157
- forwardMessage(chat_id: number | string, from_chat_id: number | string, message_id: number, other?: Other<R, "forwardMessage", "chat_id" | "from_chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message>;
157
+ forwardMessage(chat_id: number | string, from_chat_id: number | string, message_id: number, other?: Other<R, "forwardMessage", "chat_id" | "from_chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message>;
158
158
  /**
159
159
  * Use this method to copy messages of any kind. Service messages and invoice messages can't be copied. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.
160
160
  *
@@ -166,7 +166,7 @@ export declare class Api<R extends RawApi = RawApi> {
166
166
  *
167
167
  * **Official reference:** https://core.telegram.org/bots/api#copymessage
168
168
  */
169
- copyMessage(chat_id: number | string, from_chat_id: number | string, message_id: number, other?: Other<R, "copyMessage", "chat_id" | "from_chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").MessageId>;
169
+ copyMessage(chat_id: number | string, from_chat_id: number | string, message_id: number, other?: Other<R, "copyMessage", "chat_id" | "from_chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").MessageId>;
170
170
  /**
171
171
  * Use this method to send photos. On success, the sent Message is returned.
172
172
  *
@@ -177,7 +177,7 @@ export declare class Api<R extends RawApi = RawApi> {
177
177
  *
178
178
  * **Official reference:** https://core.telegram.org/bots/api#sendphoto
179
179
  */
180
- sendPhoto(chat_id: number | string, photo: InputFile | string, other?: Other<R, "sendPhoto", "chat_id" | "photo">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.PhotoMessage>;
180
+ sendPhoto(chat_id: number | string, photo: InputFile | string, other?: Other<R, "sendPhoto", "chat_id" | "photo">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.PhotoMessage>;
181
181
  /**
182
182
  * Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.
183
183
  *
@@ -190,7 +190,7 @@ export declare class Api<R extends RawApi = RawApi> {
190
190
  *
191
191
  * **Official reference:** https://core.telegram.org/bots/api#sendaudio
192
192
  */
193
- sendAudio(chat_id: number | string, audio: InputFile | string, other?: Other<R, "sendAudio", "chat_id" | "audio">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.AudioMessage>;
193
+ sendAudio(chat_id: number | string, audio: InputFile | string, other?: Other<R, "sendAudio", "chat_id" | "audio">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.AudioMessage>;
194
194
  /**
195
195
  * Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
196
196
  *
@@ -201,7 +201,7 @@ export declare class Api<R extends RawApi = RawApi> {
201
201
  *
202
202
  * **Official reference:** https://core.telegram.org/bots/api#senddocument
203
203
  */
204
- sendDocument(chat_id: number | string, document: InputFile | string, other?: Other<R, "sendDocument", "chat_id" | "document">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.DocumentMessage>;
204
+ sendDocument(chat_id: number | string, document: InputFile | string, other?: Other<R, "sendDocument", "chat_id" | "document">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.DocumentMessage>;
205
205
  /**
206
206
  * Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.
207
207
  *
@@ -212,7 +212,7 @@ export declare class Api<R extends RawApi = RawApi> {
212
212
  *
213
213
  * **Official reference:** https://core.telegram.org/bots/api#sendvideo
214
214
  */
215
- sendVideo(chat_id: number | string, video: InputFile | string, other?: Other<R, "sendVideo", "chat_id" | "video">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.VideoMessage>;
215
+ sendVideo(chat_id: number | string, video: InputFile | string, other?: Other<R, "sendVideo", "chat_id" | "video">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.VideoMessage>;
216
216
  /**
217
217
  * Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future.
218
218
  *
@@ -223,7 +223,7 @@ export declare class Api<R extends RawApi = RawApi> {
223
223
  *
224
224
  * **Official reference:** https://core.telegram.org/bots/api#sendanimation
225
225
  */
226
- sendAnimation(chat_id: number | string, animation: InputFile | string, other?: Other<R, "sendAnimation", "chat_id" | "animation">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.AnimationMessage>;
226
+ sendAnimation(chat_id: number | string, animation: InputFile | string, other?: Other<R, "sendAnimation", "chat_id" | "animation">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.AnimationMessage>;
227
227
  /**
228
228
  * Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.
229
229
  *
@@ -234,7 +234,7 @@ export declare class Api<R extends RawApi = RawApi> {
234
234
  *
235
235
  * **Official reference:** https://core.telegram.org/bots/api#sendvoice
236
236
  */
237
- sendVoice(chat_id: number | string, voice: InputFile | string, other?: Other<R, "sendVoice", "chat_id" | "voice">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.VoiceMessage>;
237
+ sendVoice(chat_id: number | string, voice: InputFile | string, other?: Other<R, "sendVoice", "chat_id" | "voice">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.VoiceMessage>;
238
238
  /**
239
239
  * Use this method to send video messages. On success, the sent Message is returned.
240
240
  * As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long.
@@ -246,7 +246,7 @@ export declare class Api<R extends RawApi = RawApi> {
246
246
  *
247
247
  * **Official reference:** https://core.telegram.org/bots/api#sendvideonote
248
248
  */
249
- sendVideoNote(chat_id: number | string, video_note: InputFile | string, other?: Other<R, "sendVideoNote", "chat_id" | "video_note">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.VideoNoteMessage>;
249
+ sendVideoNote(chat_id: number | string, video_note: InputFile | string, other?: Other<R, "sendVideoNote", "chat_id" | "video_note">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.VideoNoteMessage>;
250
250
  /**
251
251
  * Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Messages that were sent is returned.
252
252
  *
@@ -257,7 +257,7 @@ export declare class Api<R extends RawApi = RawApi> {
257
257
  *
258
258
  * **Official reference:** https://core.telegram.org/bots/api#sendmediagroup
259
259
  */
260
- sendMediaGroup(chat_id: number | string, media: ReadonlyArray<InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo>, other?: Other<R, "sendMediaGroup", "chat_id" | "media">, signal?: AbortSignal): Promise<(import("@grammyjs/types/message").Message.PhotoMessage | import("@grammyjs/types/message").Message.AudioMessage | import("@grammyjs/types/message").Message.DocumentMessage | import("@grammyjs/types/message").Message.VideoMessage)[]>;
260
+ sendMediaGroup(chat_id: number | string, media: ReadonlyArray<InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo>, other?: Other<R, "sendMediaGroup", "chat_id" | "media">, signal?: AbortSignal): Promise<(import("@grammyjs/types/message.js").Message.PhotoMessage | import("@grammyjs/types/message.js").Message.AudioMessage | import("@grammyjs/types/message.js").Message.DocumentMessage | import("@grammyjs/types/message.js").Message.VideoMessage)[]>;
261
261
  /**
262
262
  * Use this method to send point on the map. On success, the sent Message is returned.
263
263
  *
@@ -269,7 +269,7 @@ export declare class Api<R extends RawApi = RawApi> {
269
269
  *
270
270
  * **Official reference:** https://core.telegram.org/bots/api#sendlocation
271
271
  */
272
- sendLocation(chat_id: number | string, latitude: number, longitude: number, other?: Other<R, "sendLocation", "chat_id" | "latitude" | "longitude">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.LocationMessage>;
272
+ sendLocation(chat_id: number | string, latitude: number, longitude: number, other?: Other<R, "sendLocation", "chat_id" | "latitude" | "longitude">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.LocationMessage>;
273
273
  /**
274
274
  * Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
275
275
  *
@@ -282,7 +282,7 @@ export declare class Api<R extends RawApi = RawApi> {
282
282
  *
283
283
  * **Official reference:** https://core.telegram.org/bots/api#editmessagelivelocation
284
284
  */
285
- editMessageLiveLocation(chat_id: number | string, message_id: number, latitude: number, longitude: number, other?: Other<R, "editMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id" | "latitude" | "longitude">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"location">)>;
285
+ editMessageLiveLocation(chat_id: number | string, message_id: number, latitude: number, longitude: number, other?: Other<R, "editMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id" | "latitude" | "longitude">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"location">)>;
286
286
  /**
287
287
  * Use this method to edit live location inline messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
288
288
  *
@@ -294,7 +294,7 @@ export declare class Api<R extends RawApi = RawApi> {
294
294
  *
295
295
  * **Official reference:** https://core.telegram.org/bots/api#editmessagelivelocation
296
296
  */
297
- editMessageLiveLocationInline(inline_message_id: string, latitude: number, longitude: number, other?: Other<R, "editMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id" | "latitude" | "longitude">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"location">)>;
297
+ editMessageLiveLocationInline(inline_message_id: string, latitude: number, longitude: number, other?: Other<R, "editMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id" | "latitude" | "longitude">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"location">)>;
298
298
  /**
299
299
  * Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.
300
300
  *
@@ -305,7 +305,7 @@ export declare class Api<R extends RawApi = RawApi> {
305
305
  *
306
306
  * **Official reference:** https://core.telegram.org/bots/api#stopmessagelivelocation
307
307
  */
308
- stopMessageLiveLocation(chat_id: number | string, message_id: number, other?: Other<R, "stopMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"location">)>;
308
+ stopMessageLiveLocation(chat_id: number | string, message_id: number, other?: Other<R, "stopMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"location">)>;
309
309
  /**
310
310
  * Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.
311
311
  *
@@ -315,7 +315,7 @@ export declare class Api<R extends RawApi = RawApi> {
315
315
  *
316
316
  * **Official reference:** https://core.telegram.org/bots/api#stopmessagelivelocation
317
317
  */
318
- stopMessageLiveLocationInline(inline_message_id: string, other?: Other<R, "stopMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"location">)>;
318
+ stopMessageLiveLocationInline(inline_message_id: string, other?: Other<R, "stopMessageLiveLocation", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"location">)>;
319
319
  /**
320
320
  * Use this method to send information about a venue. On success, the sent Message is returned.
321
321
  *
@@ -329,7 +329,7 @@ export declare class Api<R extends RawApi = RawApi> {
329
329
  *
330
330
  * **Official reference:** https://core.telegram.org/bots/api#sendvenue
331
331
  */
332
- sendVenue(chat_id: number | string, latitude: number, longitude: number, title: string, address: string, other?: Other<R, "sendVenue", "chat_id" | "latitude" | "longitude" | "title" | "address">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.VenueMessage>;
332
+ sendVenue(chat_id: number | string, latitude: number, longitude: number, title: string, address: string, other?: Other<R, "sendVenue", "chat_id" | "latitude" | "longitude" | "title" | "address">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.VenueMessage>;
333
333
  /**
334
334
  * Use this method to send phone contacts. On success, the sent Message is returned.
335
335
  *
@@ -341,7 +341,7 @@ export declare class Api<R extends RawApi = RawApi> {
341
341
  *
342
342
  * **Official reference:** https://core.telegram.org/bots/api#sendcontact
343
343
  */
344
- sendContact(chat_id: number | string, phone_number: string, first_name: string, other?: Other<R, "sendContact", "chat_id" | "phone_number" | "first_name">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.ContactMessage>;
344
+ sendContact(chat_id: number | string, phone_number: string, first_name: string, other?: Other<R, "sendContact", "chat_id" | "phone_number" | "first_name">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.ContactMessage>;
345
345
  /**
346
346
  * Use this method to send a native poll. On success, the sent Message is returned.
347
347
  *
@@ -353,7 +353,7 @@ export declare class Api<R extends RawApi = RawApi> {
353
353
  *
354
354
  * **Official reference:** https://core.telegram.org/bots/api#sendpoll
355
355
  */
356
- sendPoll(chat_id: number | string, question: string, options: readonly string[], other?: Other<R, "sendPoll", "chat_id" | "question" | "options">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.PollMessage>;
356
+ sendPoll(chat_id: number | string, question: string, options: readonly string[], other?: Other<R, "sendPoll", "chat_id" | "question" | "options">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.PollMessage>;
357
357
  /**
358
358
  * Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.
359
359
  *
@@ -364,7 +364,7 @@ export declare class Api<R extends RawApi = RawApi> {
364
364
  *
365
365
  * **Official reference:** https://core.telegram.org/bots/api#senddice
366
366
  */
367
- sendDice(chat_id: number | string, emoji: string, other?: Other<R, "sendDice", "chat_id" | "emoji">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.DiceMessage>;
367
+ sendDice(chat_id: number | string, emoji: string, other?: Other<R, "sendDice", "chat_id" | "emoji">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.DiceMessage>;
368
368
  /**
369
369
  * Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.
370
370
  *
@@ -388,7 +388,7 @@ export declare class Api<R extends RawApi = RawApi> {
388
388
  *
389
389
  * **Official reference:** https://core.telegram.org/bots/api#getuserprofilephotos
390
390
  */
391
- getUserProfilePhotos(user_id: number, other?: Other<R, "getUserProfilePhotos", "user_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").UserProfilePhotos>;
391
+ getUserProfilePhotos(user_id: number, other?: Other<R, "getUserProfilePhotos", "user_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").UserProfilePhotos>;
392
392
  /**
393
393
  * Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>, where <file_path> is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again.
394
394
  *
@@ -399,7 +399,7 @@ export declare class Api<R extends RawApi = RawApi> {
399
399
  *
400
400
  * **Official reference:** https://core.telegram.org/bots/api#getfile
401
401
  */
402
- getFile(file_id: string, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").File>;
402
+ getFile(file_id: string, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").File>;
403
403
  /** @deprecated Use `banChatMember` instead. */
404
404
  kickChatMember(...args: Parameters<Api["banChatMember"]>): Promise<true>;
405
405
  /**
@@ -508,7 +508,7 @@ export declare class Api<R extends RawApi = RawApi> {
508
508
  *
509
509
  * **Official reference:** https://core.telegram.org/bots/api#createchatinvitelink
510
510
  */
511
- createChatInviteLink(chat_id: number | string, other?: Other<R, "createChatInviteLink", "chat_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatInviteLink>;
511
+ createChatInviteLink(chat_id: number | string, other?: Other<R, "createChatInviteLink", "chat_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatInviteLink>;
512
512
  /**
513
513
  * Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a ChatInviteLink object.
514
514
  *
@@ -519,7 +519,7 @@ export declare class Api<R extends RawApi = RawApi> {
519
519
  *
520
520
  * **Official reference:** https://core.telegram.org/bots/api#editchatinvitelink
521
521
  */
522
- editChatInviteLink(chat_id: number | string, invite_link: string, other?: Other<R, "editChatInviteLink", "chat_id" | "invite_link">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatInviteLink>;
522
+ editChatInviteLink(chat_id: number | string, invite_link: string, other?: Other<R, "editChatInviteLink", "chat_id" | "invite_link">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatInviteLink>;
523
523
  /**
524
524
  * Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the revoked invite link as ChatInviteLink object.
525
525
  *
@@ -529,7 +529,7 @@ export declare class Api<R extends RawApi = RawApi> {
529
529
  *
530
530
  * **Official reference:** https://core.telegram.org/bots/api#revokechatinvitelink
531
531
  */
532
- revokeChatInviteLink(chat_id: number | string, invite_link: string, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatInviteLink>;
532
+ revokeChatInviteLink(chat_id: number | string, invite_link: string, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatInviteLink>;
533
533
  /**
534
534
  * Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success.
535
535
  *
@@ -637,7 +637,7 @@ export declare class Api<R extends RawApi = RawApi> {
637
637
  *
638
638
  * **Official reference:** https://core.telegram.org/bots/api#getchat
639
639
  */
640
- getChat(chat_id: number | string, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatFromGetChat>;
640
+ getChat(chat_id: number | string, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatFromGetChat>;
641
641
  /**
642
642
  * Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.
643
643
  *
@@ -646,7 +646,7 @@ export declare class Api<R extends RawApi = RawApi> {
646
646
  *
647
647
  * **Official reference:** https://core.telegram.org/bots/api#getchatadministrators
648
648
  */
649
- getChatAdministrators(chat_id: number | string, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatMember[]>;
649
+ getChatAdministrators(chat_id: number | string, signal?: AbortSignal): Promise<(import("@grammyjs/types/manage.js").ChatMemberOwner | import("@grammyjs/types/manage.js").ChatMemberAdministrator)[]>;
650
650
  /** @deprecated Use `getChatMemberCount` instead. */
651
651
  getChatMembersCount(...args: Parameters<Api["getChatMemberCount"]>): Promise<number>;
652
652
  /**
@@ -667,7 +667,7 @@ export declare class Api<R extends RawApi = RawApi> {
667
667
  *
668
668
  * **Official reference:** https://core.telegram.org/bots/api#getchatmember
669
669
  */
670
- getChatMember(chat_id: number | string, user_id: number, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatMember>;
670
+ getChatMember(chat_id: number | string, user_id: number, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatMember>;
671
671
  /**
672
672
  * Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set ly returned in getChat requests to check if the bot can use this method. Returns True on success.
673
673
  *
@@ -716,7 +716,7 @@ export declare class Api<R extends RawApi = RawApi> {
716
716
  *
717
717
  * **Official reference:** https://core.telegram.org/bots/api#getchatmenubutton
718
718
  */
719
- getChatMenuButton(other?: Other<R, "getChatMenuButton">, signal?: AbortSignal): Promise<import("@grammyjs/types/menu-button").MenuButton>;
719
+ getChatMenuButton(other?: Other<R, "getChatMenuButton">, signal?: AbortSignal): Promise<import("@grammyjs/types/menu-button.js").MenuButton>;
720
720
  /**
721
721
  * Use this method to the change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are are free to modify the list before adding the bot. Returns True on success.
722
722
  *
@@ -734,7 +734,7 @@ export declare class Api<R extends RawApi = RawApi> {
734
734
  *
735
735
  * **Official reference:** https://core.telegram.org/bots/api#getmydefaultadministratorrights
736
736
  */
737
- getMyDefaultAdministratorRights(other?: Other<R, "setMyDefaultAdministratorRights">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").ChatAdministratorRights>;
737
+ getMyDefaultAdministratorRights(other?: Other<R, "setMyDefaultAdministratorRights">, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").ChatAdministratorRights>;
738
738
  /**
739
739
  * Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands. Returns True on success.
740
740
  *
@@ -774,7 +774,7 @@ export declare class Api<R extends RawApi = RawApi> {
774
774
  *
775
775
  * **Official reference:** https://core.telegram.org/bots/api#editmessagetext
776
776
  */
777
- editMessageText(chat_id: number | string, message_id: number, text: string, other?: Other<R, "editMessageText", "chat_id" | "message_id" | "inline_message_id" | "text">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"text">)>;
777
+ editMessageText(chat_id: number | string, message_id: number, text: string, other?: Other<R, "editMessageText", "chat_id" | "message_id" | "inline_message_id" | "text">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"text">)>;
778
778
  /**
779
779
  * Use this method to edit text and game inline messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
780
780
  *
@@ -784,7 +784,7 @@ export declare class Api<R extends RawApi = RawApi> {
784
784
  *
785
785
  * **Official reference:** https://core.telegram.org/bots/api#editmessagetext
786
786
  */
787
- editMessageTextInline(inline_message_id: string, text: string, other?: Other<R, "editMessageText", "chat_id" | "message_id" | "inline_message_id" | "text">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"text">)>;
787
+ editMessageTextInline(inline_message_id: string, text: string, other?: Other<R, "editMessageText", "chat_id" | "message_id" | "inline_message_id" | "text">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"text">)>;
788
788
  /**
789
789
  * Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
790
790
  *
@@ -795,7 +795,7 @@ export declare class Api<R extends RawApi = RawApi> {
795
795
  *
796
796
  * **Official reference:** https://core.telegram.org/bots/api#editmessagecaption
797
797
  */
798
- editMessageCaption(chat_id: number | string, message_id: number, other?: Other<R, "editMessageCaption", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CaptionableMessage)>;
798
+ editMessageCaption(chat_id: number | string, message_id: number, other?: Other<R, "editMessageCaption", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CaptionableMessage)>;
799
799
  /**
800
800
  * Use this method to edit captions of inline messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
801
801
  *
@@ -805,7 +805,7 @@ export declare class Api<R extends RawApi = RawApi> {
805
805
  *
806
806
  * **Official reference:** https://core.telegram.org/bots/api#editmessagecaption
807
807
  */
808
- editMessageCaptionInline(inline_message_id: string, other?: Other<R, "editMessageCaption", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CaptionableMessage)>;
808
+ editMessageCaptionInline(inline_message_id: string, other?: Other<R, "editMessageCaption", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CaptionableMessage)>;
809
809
  /**
810
810
  * Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
811
811
  *
@@ -817,7 +817,7 @@ export declare class Api<R extends RawApi = RawApi> {
817
817
  *
818
818
  * **Official reference:** https://core.telegram.org/bots/api#editmessagemedia
819
819
  */
820
- editMessageMedia(chat_id: number | string, message_id: number, media: InputMedia, other?: Other<R, "editMessageMedia", "chat_id" | "message_id" | "inline_message_id" | "media">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CaptionableMessage & import("@grammyjs/types/message").MsgWith<"document"> & import("@grammyjs/types/message").MsgWith<"animation">) | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CaptionableMessage & import("@grammyjs/types/message").MsgWith<"audio">) | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CaptionableMessage & import("@grammyjs/types/message").MsgWith<"document">) | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.MediaMessage & import("@grammyjs/types/message").MsgWith<"photo">) | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.MediaMessage & import("@grammyjs/types/message").MsgWith<"video">)>;
820
+ editMessageMedia(chat_id: number | string, message_id: number, media: InputMedia, other?: Other<R, "editMessageMedia", "chat_id" | "message_id" | "inline_message_id" | "media">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CaptionableMessage & import("@grammyjs/types/message.js").MsgWith<"document"> & import("@grammyjs/types/message.js").MsgWith<"animation">) | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CaptionableMessage & import("@grammyjs/types/message.js").MsgWith<"audio">) | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CaptionableMessage & import("@grammyjs/types/message.js").MsgWith<"document">) | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.MediaMessage & import("@grammyjs/types/message.js").MsgWith<"photo">) | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.MediaMessage & import("@grammyjs/types/message.js").MsgWith<"video">)>;
821
821
  /**
822
822
  * Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
823
823
  *
@@ -828,7 +828,7 @@ export declare class Api<R extends RawApi = RawApi> {
828
828
  *
829
829
  * **Official reference:** https://core.telegram.org/bots/api#editmessagemedia
830
830
  */
831
- editMessageMediaInline(inline_message_id: string, media: InputMedia, other?: Other<R, "editMessageMedia", "chat_id" | "message_id" | "inline_message_id" | "media">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CaptionableMessage & import("@grammyjs/types/message").MsgWith<"document"> & import("@grammyjs/types/message").MsgWith<"animation">) | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CaptionableMessage & import("@grammyjs/types/message").MsgWith<"audio">) | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CaptionableMessage & import("@grammyjs/types/message").MsgWith<"document">) | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.MediaMessage & import("@grammyjs/types/message").MsgWith<"photo">) | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.MediaMessage & import("@grammyjs/types/message").MsgWith<"video">)>;
831
+ editMessageMediaInline(inline_message_id: string, media: InputMedia, other?: Other<R, "editMessageMedia", "chat_id" | "message_id" | "inline_message_id" | "media">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CaptionableMessage & import("@grammyjs/types/message.js").MsgWith<"document"> & import("@grammyjs/types/message.js").MsgWith<"animation">) | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CaptionableMessage & import("@grammyjs/types/message.js").MsgWith<"audio">) | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CaptionableMessage & import("@grammyjs/types/message.js").MsgWith<"document">) | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.MediaMessage & import("@grammyjs/types/message.js").MsgWith<"photo">) | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.MediaMessage & import("@grammyjs/types/message.js").MsgWith<"video">)>;
832
832
  /**
833
833
  * Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
834
834
  *
@@ -839,7 +839,7 @@ export declare class Api<R extends RawApi = RawApi> {
839
839
  *
840
840
  * **Official reference:** https://core.telegram.org/bots/api#editmessagereplymarkup
841
841
  */
842
- editMessageReplyMarkup(chat_id: number | string, message_id: number, other?: Other<R, "editMessageReplyMarkup", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message)>;
842
+ editMessageReplyMarkup(chat_id: number | string, message_id: number, other?: Other<R, "editMessageReplyMarkup", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message)>;
843
843
  /**
844
844
  * Use this method to edit only the reply markup of inline messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
845
845
  *
@@ -849,7 +849,7 @@ export declare class Api<R extends RawApi = RawApi> {
849
849
  *
850
850
  * **Official reference:** https://core.telegram.org/bots/api#editmessagereplymarkup
851
851
  */
852
- editMessageReplyMarkupInline(inline_message_id: string, other?: Other<R, "editMessageReplyMarkup", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message)>;
852
+ editMessageReplyMarkupInline(inline_message_id: string, other?: Other<R, "editMessageReplyMarkup", "chat_id" | "message_id" | "inline_message_id">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message)>;
853
853
  /**
854
854
  * Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
855
855
  *
@@ -860,7 +860,7 @@ export declare class Api<R extends RawApi = RawApi> {
860
860
  *
861
861
  * **Official reference:** https://core.telegram.org/bots/api#stoppoll
862
862
  */
863
- stopPoll(chat_id: number | string, message_id: number, other?: Other<R, "stopPoll", "chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Poll>;
863
+ stopPoll(chat_id: number | string, message_id: number, other?: Other<R, "stopPoll", "chat_id" | "message_id">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Poll>;
864
864
  /**
865
865
  * Use this method to delete a message, including service messages, with the following limitations:
866
866
  * - A message can only be deleted if it was sent less than 48 hours ago.
@@ -889,7 +889,7 @@ export declare class Api<R extends RawApi = RawApi> {
889
889
  *
890
890
  * **Official reference:** https://core.telegram.org/bots/api#sendsticker
891
891
  */
892
- sendSticker(chat_id: number | string, sticker: InputFile | string, other?: Other<R, "sendSticker", "chat_id" | "sticker">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.StickerMessage>;
892
+ sendSticker(chat_id: number | string, sticker: InputFile | string, other?: Other<R, "sendSticker", "chat_id" | "sticker">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.StickerMessage>;
893
893
  /**
894
894
  * Use this method to get a sticker set. On success, a StickerSet object is returned.
895
895
  *
@@ -898,7 +898,7 @@ export declare class Api<R extends RawApi = RawApi> {
898
898
  *
899
899
  * **Official reference:** https://core.telegram.org/bots/api#getstickerset
900
900
  */
901
- getStickerSet(name: string, signal?: AbortSignal): Promise<import("@grammyjs/types/message").StickerSet>;
901
+ getStickerSet(name: string, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").StickerSet>;
902
902
  /**
903
903
  * Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.
904
904
  *
@@ -908,7 +908,7 @@ export declare class Api<R extends RawApi = RawApi> {
908
908
  *
909
909
  * **Official reference:** https://core.telegram.org/bots/api#uploadstickerfile
910
910
  */
911
- uploadStickerFile(user_id: number, png_sticker: InputFile, signal?: AbortSignal): Promise<import("@grammyjs/types/manage").File>;
911
+ uploadStickerFile(user_id: number, png_sticker: InputFile, signal?: AbortSignal): Promise<import("@grammyjs/types/manage.js").File>;
912
912
  /**
913
913
  * Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.
914
914
  *
@@ -987,7 +987,7 @@ export declare class Api<R extends RawApi = RawApi> {
987
987
  *
988
988
  * **Official reference:** https://core.telegram.org/bots/api#answerinlinequery
989
989
  */
990
- answerWebAppQuery(web_app_query_id: string, result: InlineQueryResult, signal?: AbortSignal): Promise<import("@grammyjs/types/message").SentWebAppMessage>;
990
+ answerWebAppQuery(web_app_query_id: string, result: InlineQueryResult, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").SentWebAppMessage>;
991
991
  /**
992
992
  * Use this method to send invoices. On success, the sent Message is returned.
993
993
  *
@@ -1003,7 +1003,7 @@ export declare class Api<R extends RawApi = RawApi> {
1003
1003
  *
1004
1004
  * **Official reference:** https://core.telegram.org/bots/api#sendinvoice
1005
1005
  */
1006
- sendInvoice(chat_id: number | string, title: string, description: string, payload: string, provider_token: string, currency: string, prices: readonly LabeledPrice[], other?: Other<R, "sendInvoice", "chat_id" | "title" | "description" | "payload" | "provider_token" | "currency" | "prices">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.InvoiceMessage>;
1006
+ sendInvoice(chat_id: number | string, title: string, description: string, payload: string, provider_token: string, currency: string, prices: readonly LabeledPrice[], other?: Other<R, "sendInvoice", "chat_id" | "title" | "description" | "payload" | "provider_token" | "currency" | "prices">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.InvoiceMessage>;
1007
1007
  /**
1008
1008
  * Use this method to create a link for an invoice. Returns the created invoice link as String on success.
1009
1009
  *
@@ -1063,7 +1063,7 @@ export declare class Api<R extends RawApi = RawApi> {
1063
1063
  *
1064
1064
  * **Official reference:** https://core.telegram.org/bots/api#sendgame
1065
1065
  */
1066
- sendGame(chat_id: number, game_short_name: string, other?: Other<R, "sendGame", "chat_id" | "game_short_name">, signal?: AbortSignal): Promise<import("@grammyjs/types/message").Message.GameMessage>;
1066
+ sendGame(chat_id: number, game_short_name: string, other?: Other<R, "sendGame", "chat_id" | "game_short_name">, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").Message.GameMessage>;
1067
1067
  /**
1068
1068
  * Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
1069
1069
  *
@@ -1076,7 +1076,7 @@ export declare class Api<R extends RawApi = RawApi> {
1076
1076
  *
1077
1077
  * **Official reference:** https://core.telegram.org/bots/api#setgamescore
1078
1078
  */
1079
- setGameScore(chat_id: number, message_id: number, user_id: number, score: number, other?: Other<R, "setGameScore", "chat_id" | "message_id" | "inline_message_id" | "user_id" | "score">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"game">)>;
1079
+ setGameScore(chat_id: number, message_id: number, user_id: number, score: number, other?: Other<R, "setGameScore", "chat_id" | "message_id" | "inline_message_id" | "user_id" | "score">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"game">)>;
1080
1080
  /**
1081
1081
  * Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
1082
1082
  *
@@ -1088,7 +1088,7 @@ export declare class Api<R extends RawApi = RawApi> {
1088
1088
  *
1089
1089
  * **Official reference:** https://core.telegram.org/bots/api#setgamescore
1090
1090
  */
1091
- setGameScoreInline(inline_message_id: string, user_id: number, score: number, other?: Other<R, "setGameScore", "chat_id" | "message_id" | "inline_message_id" | "user_id" | "score">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update").Update.Edited & import("@grammyjs/types/message").Message.CommonMessage & import("@grammyjs/types/message").MsgWith<"game">)>;
1091
+ setGameScoreInline(inline_message_id: string, user_id: number, score: number, other?: Other<R, "setGameScore", "chat_id" | "message_id" | "inline_message_id" | "user_id" | "score">, signal?: AbortSignal): Promise<true | (import("@grammyjs/types/update.js").Update.Edited & import("@grammyjs/types/message.js").Message.CommonMessage & import("@grammyjs/types/message.js").MsgWith<"game">)>;
1092
1092
  /**
1093
1093
  * Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. On success, returns an Array of GameHighScore objects.
1094
1094
  *
@@ -1101,7 +1101,7 @@ export declare class Api<R extends RawApi = RawApi> {
1101
1101
  *
1102
1102
  * **Official reference:** https://core.telegram.org/bots/api#getgamehighscores
1103
1103
  */
1104
- getGameHighScores(chat_id: number, message_id: number, user_id: number, signal?: AbortSignal): Promise<import("@grammyjs/types/message").GameHighScore[]>;
1104
+ getGameHighScores(chat_id: number, message_id: number, user_id: number, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").GameHighScore[]>;
1105
1105
  /**
1106
1106
  * Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in an inline game. On success, returns an Array of GameHighScore objects.
1107
1107
  *
@@ -1113,6 +1113,6 @@ export declare class Api<R extends RawApi = RawApi> {
1113
1113
  *
1114
1114
  * **Official reference:** https://core.telegram.org/bots/api#getgamehighscores
1115
1115
  */
1116
- getGameHighScoresInline(inline_message_id: string, user_id: number, signal?: AbortSignal): Promise<import("@grammyjs/types/message").GameHighScore[]>;
1116
+ getGameHighScoresInline(inline_message_id: string, user_id: number, signal?: AbortSignal): Promise<import("@grammyjs/types/message.js").GameHighScore[]>;
1117
1117
  }
1118
1118
  import { AbortSignal } from "../shim.node.js";
package/out/mod.js CHANGED
@@ -23,7 +23,7 @@ var platform_node_js_1 = require("./platform.node.js");
23
23
  Object.defineProperty(exports, "InputFile", { enumerable: true, get: function () { return platform_node_js_1.InputFile; } });
24
24
  var context_js_1 = require("./context.js");
25
25
  Object.defineProperty(exports, "Context", { enumerable: true, get: function () { return context_js_1.Context; } });
26
- // Convenience stuff and helpers
26
+ // Convenience stuff, built-in plugins, and helpers
27
27
  __exportStar(require("./convenience/keyboard.js"), exports);
28
28
  __exportStar(require("./convenience/session.js"), exports);
29
29
  __exportStar(require("./convenience/webhook.js"), exports);
@@ -1,4 +1,8 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ /// <reference types="node" />
4
+ /// <reference types="node" />
5
+ /// <reference types="node" />
2
6
  import { type InputFileProxy } from "@grammyjs/types";
3
7
  import { Agent as HttpAgent } from "http";
4
8
  import { Agent as HttpsAgent } from "https";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "grammy",
3
3
  "description": "The Telegram Bot Framework.",
4
- "version": "1.9.0",
4
+ "version": "1.9.1",
5
5
  "author": "KnorpelSenf",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -18,7 +18,7 @@
18
18
  "contribs": "all-contributors"
19
19
  },
20
20
  "dependencies": {
21
- "@grammyjs/types": "^2.8.0",
21
+ "@grammyjs/types": "^2.8.1",
22
22
  "abort-controller": "^3.0.0",
23
23
  "debug": "^4.3.4",
24
24
  "node-fetch": "^2.6.7"
@@ -28,7 +28,7 @@
28
28
  "@types/node": "^12.20.50",
29
29
  "@types/node-fetch": "^2.6.2",
30
30
  "all-contributors-cli": "^6.20.0",
31
- "deno2node": "^1.3.0"
31
+ "deno2node": "^1.4.0"
32
32
  },
33
33
  "files": [
34
34
  "out/"