@yaebal/contexts 0.0.4 → 0.0.5

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.
Files changed (112) hide show
  1. package/lib/generated/business-connection.d.ts +48 -0
  2. package/lib/generated/business-connection.d.ts.map +1 -1
  3. package/lib/generated/business-connection.js +96 -0
  4. package/lib/generated/business-connection.js.map +1 -1
  5. package/lib/generated/business-message.d.ts +83 -41
  6. package/lib/generated/business-message.d.ts.map +1 -1
  7. package/lib/generated/business-message.js +125 -41
  8. package/lib/generated/business-message.js.map +1 -1
  9. package/lib/generated/callback-query.d.ts +40 -40
  10. package/lib/generated/callback-query.d.ts.map +1 -1
  11. package/lib/generated/callback-query.js +40 -40
  12. package/lib/generated/callback-query.js.map +1 -1
  13. package/lib/generated/channel-post.d.ts +33 -35
  14. package/lib/generated/channel-post.d.ts.map +1 -1
  15. package/lib/generated/channel-post.js +37 -41
  16. package/lib/generated/channel-post.js.map +1 -1
  17. package/lib/generated/chat-boost.d.ts +0 -12
  18. package/lib/generated/chat-boost.d.ts.map +1 -1
  19. package/lib/generated/chat-boost.js +0 -24
  20. package/lib/generated/chat-boost.js.map +1 -1
  21. package/lib/generated/chat-join-request.d.ts +0 -12
  22. package/lib/generated/chat-join-request.d.ts.map +1 -1
  23. package/lib/generated/chat-join-request.js +0 -24
  24. package/lib/generated/chat-join-request.js.map +1 -1
  25. package/lib/generated/chat-member.d.ts +0 -12
  26. package/lib/generated/chat-member.d.ts.map +1 -1
  27. package/lib/generated/chat-member.js +0 -24
  28. package/lib/generated/chat-member.js.map +1 -1
  29. package/lib/generated/deleted-business-messages.d.ts +68 -38
  30. package/lib/generated/deleted-business-messages.d.ts.map +1 -1
  31. package/lib/generated/deleted-business-messages.js +108 -48
  32. package/lib/generated/deleted-business-messages.js.map +1 -1
  33. package/lib/generated/edited-business-message.d.ts +83 -41
  34. package/lib/generated/edited-business-message.d.ts.map +1 -1
  35. package/lib/generated/edited-business-message.js +125 -41
  36. package/lib/generated/edited-business-message.js.map +1 -1
  37. package/lib/generated/edited-channel-post.d.ts +33 -35
  38. package/lib/generated/edited-channel-post.d.ts.map +1 -1
  39. package/lib/generated/edited-channel-post.js +37 -41
  40. package/lib/generated/edited-channel-post.js.map +1 -1
  41. package/lib/generated/edited-message.d.ts +33 -35
  42. package/lib/generated/edited-message.d.ts.map +1 -1
  43. package/lib/generated/edited-message.js +37 -41
  44. package/lib/generated/edited-message.js.map +1 -1
  45. package/lib/generated/guest-message.d.ts +33 -35
  46. package/lib/generated/guest-message.d.ts.map +1 -1
  47. package/lib/generated/guest-message.js +37 -41
  48. package/lib/generated/guest-message.js.map +1 -1
  49. package/lib/generated/message-reaction-count.d.ts +0 -16
  50. package/lib/generated/message-reaction-count.d.ts.map +1 -1
  51. package/lib/generated/message-reaction-count.js +0 -32
  52. package/lib/generated/message-reaction-count.js.map +1 -1
  53. package/lib/generated/message-reaction.d.ts +0 -16
  54. package/lib/generated/message-reaction.d.ts.map +1 -1
  55. package/lib/generated/message-reaction.js +0 -32
  56. package/lib/generated/message-reaction.js.map +1 -1
  57. package/lib/generated/message.d.ts +33 -35
  58. package/lib/generated/message.d.ts.map +1 -1
  59. package/lib/generated/message.js +37 -41
  60. package/lib/generated/message.js.map +1 -1
  61. package/lib/generated/my-chat-member.d.ts +0 -12
  62. package/lib/generated/my-chat-member.d.ts.map +1 -1
  63. package/lib/generated/my-chat-member.js +0 -24
  64. package/lib/generated/my-chat-member.js.map +1 -1
  65. package/lib/generated/removed-chat-boost.d.ts +0 -12
  66. package/lib/generated/removed-chat-boost.d.ts.map +1 -1
  67. package/lib/generated/removed-chat-boost.js +0 -24
  68. package/lib/generated/removed-chat-boost.js.map +1 -1
  69. package/lib/index.test.js +172 -1
  70. package/lib/index.test.js.map +1 -1
  71. package/lib/sugar/business-message.d.ts +12 -3
  72. package/lib/sugar/business-message.d.ts.map +1 -1
  73. package/lib/sugar/business-message.js +12 -1
  74. package/lib/sugar/business-message.js.map +1 -1
  75. package/lib/sugar/channel-post.d.ts +5 -2
  76. package/lib/sugar/channel-post.d.ts.map +1 -1
  77. package/lib/sugar/edited-business-message.d.ts +12 -3
  78. package/lib/sugar/edited-business-message.d.ts.map +1 -1
  79. package/lib/sugar/edited-business-message.js +12 -1
  80. package/lib/sugar/edited-business-message.js.map +1 -1
  81. package/lib/sugar/edited-channel-post.d.ts +5 -2
  82. package/lib/sugar/edited-channel-post.d.ts.map +1 -1
  83. package/lib/sugar/edited-message.d.ts +5 -2
  84. package/lib/sugar/edited-message.d.ts.map +1 -1
  85. package/lib/sugar/message-mixin.d.ts +6 -0
  86. package/lib/sugar/message-mixin.d.ts.map +1 -1
  87. package/lib/sugar/message-mixin.js +32 -1
  88. package/lib/sugar/message-mixin.js.map +1 -1
  89. package/lib/sugar/message.d.ts +5 -2
  90. package/lib/sugar/message.d.ts.map +1 -1
  91. package/package.json +2 -2
  92. package/src/generated/business-connection.ts +96 -0
  93. package/src/generated/business-message.ts +166 -82
  94. package/src/generated/callback-query.ts +80 -80
  95. package/src/generated/channel-post.ts +66 -70
  96. package/src/generated/chat-boost.ts +0 -24
  97. package/src/generated/chat-join-request.ts +0 -24
  98. package/src/generated/chat-member.ts +0 -24
  99. package/src/generated/deleted-business-messages.ts +136 -76
  100. package/src/generated/edited-business-message.ts +166 -82
  101. package/src/generated/edited-channel-post.ts +66 -70
  102. package/src/generated/edited-message.ts +66 -70
  103. package/src/generated/guest-message.ts +66 -70
  104. package/src/generated/message-reaction-count.ts +0 -32
  105. package/src/generated/message-reaction.ts +0 -32
  106. package/src/generated/message.ts +66 -70
  107. package/src/generated/my-chat-member.ts +0 -24
  108. package/src/generated/removed-chat-boost.ts +0 -24
  109. package/src/index.test.ts +193 -0
  110. package/src/sugar/business-message.ts +14 -2
  111. package/src/sugar/edited-business-message.ts +14 -2
  112. package/src/sugar/message-mixin.ts +41 -1
@@ -11,43 +11,43 @@ export declare class CallbackQueryContextBase {
11
11
  /** first name of the user this update is from. */
12
12
  get firstName(): string | undefined;
13
13
  /** Use this method to send text messages. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
14
- send(params: Omit<t.SendMessageParams, "chat_id">): Promise<t.Message>;
14
+ send(params: Omit<t.SendMessageParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
15
15
  /** Use this method to send photos. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
16
- sendPhoto(params: Omit<t.SendPhotoParams, "chat_id">): Promise<t.Message>;
16
+ sendPhoto(params: Omit<t.SendPhotoParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
17
17
  /** Use this method to send live photos. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
18
- sendLivePhoto(params: Omit<t.SendLivePhotoParams, "chat_id">): Promise<t.Message>;
18
+ sendLivePhoto(params: Omit<t.SendLivePhotoParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
19
19
  /** 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](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. For sending voice messages, use the [sendVoice](https://core.telegram.org/bots/api/#sendvoice) method instead. */
20
- sendAudio(params: Omit<t.SendAudioParams, "chat_id">): Promise<t.Message>;
20
+ sendAudio(params: Omit<t.SendAudioParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
21
21
  /** Use this method to send general files. On success, the sent [Message](https://core.telegram.org/bots/api/#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. */
22
- sendDocument(params: Omit<t.SendDocumentParams, "chat_id">): Promise<t.Message>;
22
+ sendDocument(params: Omit<t.SendDocumentParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
23
23
  /** Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as [Document](https://core.telegram.org/bots/api/#document)). On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. */
24
- sendVideo(params: Omit<t.SendVideoParams, "chat_id">): Promise<t.Message>;
24
+ sendVideo(params: Omit<t.SendVideoParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
25
25
  /** Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future. */
26
- sendAnimation(params: Omit<t.SendAnimationParams, "chat_id">): Promise<t.Message>;
26
+ sendAnimation(params: Omit<t.SendAnimationParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
27
27
  /** 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, or in .MP3 format, or in .M4A format (other formats may be sent as [Audio](https://core.telegram.org/bots/api/#audio) or [Document](https://core.telegram.org/bots/api/#document)). On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future. */
28
- sendVoice(params: Omit<t.SendVoiceParams, "chat_id">): Promise<t.Message>;
28
+ sendVoice(params: Omit<t.SendVoiceParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
29
29
  /** As of [v.4.0](https://telegram.org/blog/video-messages-and-telescope), Telegram clients support rounded square MPEG4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
30
- sendVideoNote(params: Omit<t.SendVideoNoteParams, "chat_id">): Promise<t.Message>;
30
+ sendVideoNote(params: Omit<t.SendVideoNoteParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
31
31
  /** Use this method to send paid media. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
32
- sendPaidMedia(params: Omit<t.SendPaidMediaParams, "chat_id">): Promise<t.Message>;
32
+ sendPaidMedia(params: Omit<t.SendPaidMediaParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
33
33
  /** Use this method to send a group of photos, live 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 [Message](https://core.telegram.org/bots/api/#message) objects that were sent is returned. */
34
- sendMediaGroup(params: Omit<t.SendMediaGroupParams, "chat_id">): Promise<t.Message[]>;
34
+ sendMediaGroup(params: Omit<t.SendMediaGroupParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message[]>;
35
35
  /** Use this method to send point on the map. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
36
- sendLocation(params: Omit<t.SendLocationParams, "chat_id">): Promise<t.Message>;
36
+ sendLocation(params: Omit<t.SendLocationParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
37
37
  /** Use this method to send information about a venue. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
38
- sendVenue(params: Omit<t.SendVenueParams, "chat_id">): Promise<t.Message>;
38
+ sendVenue(params: Omit<t.SendVenueParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
39
39
  /** Use this method to send phone contacts. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
40
- sendContact(params: Omit<t.SendContactParams, "chat_id">): Promise<t.Message>;
40
+ sendContact(params: Omit<t.SendContactParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
41
41
  /** Use this method to send a native poll. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
42
- sendPoll(params: Omit<t.SendPollParams, "chat_id">): Promise<t.Message>;
42
+ sendPoll(params: Omit<t.SendPollParams, "business_connection_id" | "chat_id" | "message_thread_id">): Promise<t.Message>;
43
43
  /** Use this method to send a checklist on behalf of a connected business account. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
44
- sendChecklist(params: Omit<t.SendChecklistParams, "chat_id">): Promise<t.Message>;
44
+ sendChecklist(params: Omit<t.SendChecklistParams, "business_connection_id" | "chat_id">): Promise<t.Message>;
45
45
  /** Use this method to send an animated emoji that will display a random value. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
46
- sendDice(params: Omit<t.SendDiceParams, "chat_id">): Promise<t.Message>;
46
+ sendDice(params: Omit<t.SendDiceParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
47
47
  /** Use this method to stream a partial message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you **must** call [sendMessage](https://core.telegram.org/bots/api/#sendmessage) with the complete message to persist it in the user's chat. Returns *True* on success. */
48
- sendMessageDraft(params: Omit<t.SendMessageDraftParams, "chat_id">): Promise<boolean>;
48
+ sendMessageDraft(params: Omit<t.SendMessageDraftParams, "chat_id" | "message_thread_id">): Promise<boolean>;
49
49
  /** 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. Example: The [ImageBot](https://t.me/imagebot) needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use [sendChatAction](https://core.telegram.org/bots/api/#sendchataction) with *action* = *upload\_photo*. The user will see a “sending photo” status for the bot. We only recommend using this method when a response from the bot will take a **noticeable** amount of time to arrive. */
50
- sendChatAction(params: Omit<t.SendChatActionParams, "chat_id">): Promise<boolean>;
50
+ sendChatAction(params: Omit<t.SendChatActionParams, "business_connection_id" | "chat_id" | "message_thread_id">): Promise<boolean>;
51
51
  /** Use this method to change the chosen reactions on a message. Service messages of some types can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Bots can't use paid reactions. Returns *True* on success. */
52
52
  react(params: Omit<t.SetMessageReactionParams, "chat_id" | "message_id">): Promise<boolean>;
53
53
  /** Use this method to get a list of profile pictures for a user. Returns a [UserProfilePhotos](https://core.telegram.org/bots/api/#userprofilephotos) object. */
@@ -99,9 +99,9 @@ export declare class CallbackQueryContextBase {
99
99
  /** Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns *True* on success. */
100
100
  setChatDescription(params: Omit<t.SetChatDescriptionParams, "chat_id">): Promise<boolean>;
101
101
  /** Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non-service messages can be pinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to pin messages in groups and channels respectively. Returns *True* on success. */
102
- pin(params: Omit<t.PinChatMessageParams, "chat_id" | "message_id">): Promise<boolean>;
102
+ pin(params: Omit<t.PinChatMessageParams, "business_connection_id" | "chat_id" | "message_id">): Promise<boolean>;
103
103
  /** Use this method to remove a message from the list of pinned messages in a chat. In private chats and channel direct messages chats, all messages can be unpinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin messages in groups and channels respectively. Returns *True* on success. */
104
- unpin(params: Omit<t.UnpinChatMessageParams, "chat_id" | "message_id">): Promise<boolean>;
104
+ unpin(params?: Omit<t.UnpinChatMessageParams, "business_connection_id" | "chat_id" | "message_id">): Promise<boolean>;
105
105
  /** Use this method to clear the list of pinned messages in a chat. In private chats and channel direct messages chats, no additional rights are required to unpin all pinned messages. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin all pinned messages in groups and channels respectively. Returns *True* on success. */
106
106
  unpinAllChatMessages(params?: Omit<t.UnpinAllChatMessagesParams, "chat_id">): Promise<boolean>;
107
107
  /** Use this method for your bot to leave a group, supergroup or channel. Returns *True* on success. */
@@ -123,15 +123,15 @@ export declare class CallbackQueryContextBase {
123
123
  /** Use this method to create a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator right. Returns information about the created topic as a [ForumTopic](https://core.telegram.org/bots/api/#forumtopic) object. */
124
124
  createForumTopic(params: Omit<t.CreateForumTopicParams, "chat_id">): Promise<t.ForumTopic>;
125
125
  /** Use this method to edit name and icon of a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success. */
126
- editForumTopic(params: Omit<t.EditForumTopicParams, "chat_id">): Promise<boolean>;
126
+ editForumTopic(params: Omit<t.EditForumTopicParams, "chat_id" | "message_thread_id">): Promise<boolean>;
127
127
  /** Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success. */
128
- closeForumTopic(params: Omit<t.CloseForumTopicParams, "chat_id">): Promise<boolean>;
128
+ closeForumTopic(params?: Omit<t.CloseForumTopicParams, "chat_id" | "message_thread_id">): Promise<boolean>;
129
129
  /** Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success. */
130
- reopenForumTopic(params: Omit<t.ReopenForumTopicParams, "chat_id">): Promise<boolean>;
130
+ reopenForumTopic(params?: Omit<t.ReopenForumTopicParams, "chat_id" | "message_thread_id">): Promise<boolean>;
131
131
  /** Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_delete\_messages* administrator rights. Returns *True* on success. */
132
- deleteForumTopic(params: Omit<t.DeleteForumTopicParams, "chat_id">): Promise<boolean>;
132
+ deleteForumTopic(params?: Omit<t.DeleteForumTopicParams, "chat_id" | "message_thread_id">): Promise<boolean>;
133
133
  /** Use this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_pin\_messages* administrator right in the supergroup. Returns *True* on success. */
134
- unpinAllForumTopicMessages(params: Omit<t.UnpinAllForumTopicMessagesParams, "chat_id">): Promise<boolean>;
134
+ unpinAllForumTopicMessages(params?: Omit<t.UnpinAllForumTopicMessagesParams, "chat_id" | "message_thread_id">): Promise<boolean>;
135
135
  /** Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights. Returns *True* on success. */
136
136
  editGeneralForumTopic(params: Omit<t.EditGeneralForumTopicParams, "chat_id">): Promise<boolean>;
137
137
  /** Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights. Returns *True* on success. */
@@ -173,7 +173,7 @@ export declare class CallbackQueryContextBase {
173
173
  /** Removes verification from a chat that is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. */
174
174
  removeChatVerification(params?: Omit<t.RemoveChatVerificationParams, "chat_id">): Promise<boolean>;
175
175
  /** Marks incoming message as read on behalf of a business account. Requires the *can\_read\_messages* business bot right. Returns *True* on success. */
176
- readBusinessMessage(params: Omit<t.ReadBusinessMessageParams, "chat_id" | "message_id">): Promise<boolean>;
176
+ readBusinessMessage(params?: Omit<t.ReadBusinessMessageParams, "business_connection_id" | "chat_id" | "message_id">): Promise<boolean>;
177
177
  /** Returns the gifts owned and hosted by a user. Returns [OwnedGifts](https://core.telegram.org/bots/api/#ownedgifts) on success. */
178
178
  getUserGifts(params: Omit<t.GetUserGiftsParams, "user_id">): Promise<t.OwnedGifts>;
179
179
  /** Returns the gifts owned by a chat. Returns [OwnedGifts](https://core.telegram.org/bots/api/#ownedgifts) on success. */
@@ -183,21 +183,21 @@ export declare class CallbackQueryContextBase {
183
183
  /** Stores a keyboard button that can be used by a user within a Mini App. Returns a [PreparedKeyboardButton](https://core.telegram.org/bots/api/#preparedkeyboardbutton) object. */
184
184
  savePreparedKeyboardButton(params: Omit<t.SavePreparedKeyboardButtonParams, "user_id">): Promise<t.PreparedKeyboardButton>;
185
185
  /** Use this method to edit text, rich and [game](https://core.telegram.org/bots/api/#games) messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
186
- editText(params: Omit<t.EditMessageTextParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
186
+ editText(params: Omit<t.EditMessageTextParams, "business_connection_id" | "chat_id" | "message_id">): Promise<boolean | t.Message>;
187
187
  /** Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
188
- editCaption(params: Omit<t.EditMessageCaptionParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
188
+ editCaption(params: Omit<t.EditMessageCaptionParams, "business_connection_id" | "chat_id" | "message_id">): Promise<boolean | t.Message>;
189
189
  /** Use this method to edit animation, audio, document, live photo, photo, or video messages, or to replace a text or a rich message with a media. 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, a live 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](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
190
- editMedia(params: Omit<t.EditMessageMediaParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
190
+ editMedia(params: Omit<t.EditMessageMediaParams, "business_connection_id" | "chat_id" | "message_id">): Promise<boolean | t.Message>;
191
191
  /** 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](https://core.telegram.org/bots/api/#stopmessagelivelocation). On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. */
192
- editLiveLocation(params: Omit<t.EditMessageLiveLocationParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
192
+ editLiveLocation(params: Omit<t.EditMessageLiveLocationParams, "business_connection_id" | "chat_id" | "message_id">): Promise<boolean | t.Message>;
193
193
  /** 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](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. */
194
- stopMessageLiveLocation(params: Omit<t.StopMessageLiveLocationParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
194
+ stopMessageLiveLocation(params: Omit<t.StopMessageLiveLocationParams, "business_connection_id" | "chat_id" | "message_id">): Promise<boolean | t.Message>;
195
195
  /** Use this method to edit a checklist on behalf of a connected business account. On success, the edited [Message](https://core.telegram.org/bots/api/#message) is returned. */
196
- editMessageChecklist(params: Omit<t.EditMessageChecklistParams, "chat_id" | "message_id">): Promise<t.Message>;
196
+ editMessageChecklist(params: Omit<t.EditMessageChecklistParams, "business_connection_id" | "chat_id" | "message_id">): Promise<t.Message>;
197
197
  /** 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](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
198
- editReplyMarkup(params: Omit<t.EditMessageReplyMarkupParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
198
+ editReplyMarkup(params: Omit<t.EditMessageReplyMarkupParams, "business_connection_id" | "chat_id" | "message_id">): Promise<boolean | t.Message>;
199
199
  /** Use this method to stop a poll which was sent by the bot. On success, the stopped [Poll](https://core.telegram.org/bots/api/#poll) is returned. */
200
- stopPoll(params: Omit<t.StopPollParams, "chat_id" | "message_id">): Promise<t.Poll>;
200
+ stopPoll(params: Omit<t.StopPollParams, "business_connection_id" | "chat_id" | "message_id">): Promise<t.Poll>;
201
201
  /** Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_post_messages' administrator right in the corresponding channel chat. Returns *True* on success. */
202
202
  approveSuggestedPost(params: Omit<t.ApproveSuggestedPostParams, "chat_id" | "message_id">): Promise<boolean>;
203
203
  /** Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_manage_direct_messages' administrator right in the corresponding channel chat. Returns *True* on success. */
@@ -211,7 +211,7 @@ export declare class CallbackQueryContextBase {
211
211
  /** Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat. The bot must have the 'can_delete_messages' administrator right in the chat. Returns *True* on success. */
212
212
  deleteAllMessageReactions(params: Omit<t.DeleteAllMessageReactionsParams, "chat_id" | "user_id">): Promise<boolean>;
213
213
  /** Use this method to send static .WEBP, [animated](https://telegram.org/blog/animated-stickers) .TGS, or [video](https://telegram.org/blog/video-stickers-better-reactions) .WEBM stickers. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
214
- sendSticker(params: Omit<t.SendStickerParams, "chat_id">): Promise<t.Message>;
214
+ sendSticker(params: Omit<t.SendStickerParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
215
215
  /** Use this method to upload a file with a sticker for later use in the [createNewStickerSet](https://core.telegram.org/bots/api/#createnewstickerset), [addStickerToSet](https://core.telegram.org/bots/api/#addstickertoset), or [replaceStickerInSet](https://core.telegram.org/bots/api/#replacestickerinset) methods (the file can be used multiple times). Returns the uploaded [File](https://core.telegram.org/bots/api/#file) on success. */
216
216
  uploadStickerFile(params: Omit<t.UploadStickerFileParams, "user_id">): Promise<t.File>;
217
217
  /** 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. Returns *True* on success. */
@@ -223,11 +223,11 @@ export declare class CallbackQueryContextBase {
223
223
  /** Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. Returns *True* on success. */
224
224
  setStickerSetThumbnail(params: Omit<t.SetStickerSetThumbnailParams, "user_id">): Promise<boolean>;
225
225
  /** Use this method to send rich messages. If the message contains a block with a media element, then the bot must have the right to send the media to the chat. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
226
- sendRichMessage(params: Omit<t.SendRichMessageParams, "chat_id">): Promise<t.Message>;
226
+ sendRichMessage(params: Omit<t.SendRichMessageParams, "business_connection_id" | "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
227
227
  /** Use this method to stream a partial rich message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you **must** call [sendRichMessage](https://core.telegram.org/bots/api/#sendrichmessage) with the complete message to persist it in the user's chat. Returns *True* on success. */
228
- sendRichMessageDraft(params: Omit<t.SendRichMessageDraftParams, "chat_id">): Promise<boolean>;
228
+ sendRichMessageDraft(params: Omit<t.SendRichMessageDraftParams, "chat_id" | "message_thread_id">): Promise<boolean>;
229
229
  /** Use this method to send invoices. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
230
- sendInvoice(params: Omit<t.SendInvoiceParams, "chat_id">): Promise<t.Message>;
230
+ sendInvoice(params: Omit<t.SendInvoiceParams, "chat_id" | "message_thread_id" | "direct_messages_topic_id">): Promise<t.Message>;
231
231
  /** Refunds a successful payment in [Telegram Stars](https://t.me/BotNews/90). Returns *True* on success. */
232
232
  refundStarPayment(params: Omit<t.RefundStarPaymentParams, "user_id">): Promise<boolean>;
233
233
  /** Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. Returns *True* on success. */
@@ -235,7 +235,7 @@ export declare class CallbackQueryContextBase {
235
235
  /** Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns *True* on success. Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues. */
236
236
  setPassportDataErrors(params: Omit<t.SetPassportDataErrorsParams, "user_id">): Promise<boolean>;
237
237
  /** Use this method to send a game. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
238
- sendGame(params: Omit<t.SendGameParams, "chat_id">): Promise<t.Message>;
238
+ sendGame(params: Omit<t.SendGameParams, "business_connection_id" | "chat_id" | "message_thread_id">): Promise<t.Message>;
239
239
  /** 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](https://core.telegram.org/bots/api/#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*. */
240
240
  setGameScore(params: Omit<t.SetGameScoreParams, "user_id" | "chat_id" | "message_id">): Promise<boolean | t.Message>;
241
241
  /** 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. Returns an Array of [GameHighScore](https://core.telegram.org/bots/api/#gamehighscore) objects. This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and their neighbors are not among them. Please note that this behavior is subject to change. */
@@ -1 +1 @@
1
- {"version":3,"file":"callback-query.d.ts","sourceRoot":"","sources":["../../src/generated/callback-query.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,KAAK,CAAC,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,wBAAyB,SAAQ,CAAC,CAAC,aAAa;CAAG;AACpE,qBAAa,wBAAwB;IACpC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;gBACd,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM;IAKtC,0CAA0C;IAC1C,IAAI,QAAQ,IAAI,MAAM,CAErB;IACD,kDAAkD;IAClD,IAAI,SAAS,IAAI,MAAM,GA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,EAAE,IAAI,CAAC,CAAC,CAAC,iBAAiB,EAAE,SAAS,GAAG,mBAAmB,GAAG,0BAA0B,CAAC;IAG3G,4GAA4G;IAC5G,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAuB,EAAE,SAAS,CAAC;IAGpE,2HAA2H;IAC3H,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,8BAA8B,EAAE,SAAS,CAAC;IAGlF,qmBAAqmB;IACrmB,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,2BAA2B,EAAE,SAAS,CAAC;IAG5E,+HAA+H;IAC/H,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,cAAc,EAAE,wBAAwB,GAAG,SAAS,GAAG,mBAAmB,CAAC;IAGnG,+VAA+V;IAC/V,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,kBAAkB,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC;IAGrF,8eAA8e;IAC9e,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAuB,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC;CAG/F"}
@@ -16,79 +16,79 @@ export class CallbackQueryContextBase {
16
16
  }
17
17
  /** Use this method to send text messages. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
18
18
  send(params) {
19
- return this.api.call("sendMessage", { chat_id: this.message?.chat.id, ...params });
19
+ return this.api.call("sendMessage", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
20
20
  }
21
21
  /** Use this method to send photos. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
22
22
  sendPhoto(params) {
23
- return this.api.call("sendPhoto", { chat_id: this.message?.chat.id, ...params });
23
+ return this.api.call("sendPhoto", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
24
24
  }
25
25
  /** Use this method to send live photos. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
26
26
  sendLivePhoto(params) {
27
- return this.api.call("sendLivePhoto", { chat_id: this.message?.chat.id, ...params });
27
+ return this.api.call("sendLivePhoto", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
28
28
  }
29
29
  /** 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](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. For sending voice messages, use the [sendVoice](https://core.telegram.org/bots/api/#sendvoice) method instead. */
30
30
  sendAudio(params) {
31
- return this.api.call("sendAudio", { chat_id: this.message?.chat.id, ...params });
31
+ return this.api.call("sendAudio", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
32
32
  }
33
33
  /** Use this method to send general files. On success, the sent [Message](https://core.telegram.org/bots/api/#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. */
34
34
  sendDocument(params) {
35
- return this.api.call("sendDocument", { chat_id: this.message?.chat.id, ...params });
35
+ return this.api.call("sendDocument", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
36
36
  }
37
37
  /** Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as [Document](https://core.telegram.org/bots/api/#document)). On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. */
38
38
  sendVideo(params) {
39
- return this.api.call("sendVideo", { chat_id: this.message?.chat.id, ...params });
39
+ return this.api.call("sendVideo", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
40
40
  }
41
41
  /** Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future. */
42
42
  sendAnimation(params) {
43
- return this.api.call("sendAnimation", { chat_id: this.message?.chat.id, ...params });
43
+ return this.api.call("sendAnimation", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
44
44
  }
45
45
  /** 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, or in .MP3 format, or in .M4A format (other formats may be sent as [Audio](https://core.telegram.org/bots/api/#audio) or [Document](https://core.telegram.org/bots/api/#document)). On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future. */
46
46
  sendVoice(params) {
47
- return this.api.call("sendVoice", { chat_id: this.message?.chat.id, ...params });
47
+ return this.api.call("sendVoice", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
48
48
  }
49
49
  /** As of [v.4.0](https://telegram.org/blog/video-messages-and-telescope), Telegram clients support rounded square MPEG4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
50
50
  sendVideoNote(params) {
51
- return this.api.call("sendVideoNote", { chat_id: this.message?.chat.id, ...params });
51
+ return this.api.call("sendVideoNote", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
52
52
  }
53
53
  /** Use this method to send paid media. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
54
54
  sendPaidMedia(params) {
55
- return this.api.call("sendPaidMedia", { chat_id: this.message?.chat.id, ...params });
55
+ return this.api.call("sendPaidMedia", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
56
56
  }
57
57
  /** Use this method to send a group of photos, live 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 [Message](https://core.telegram.org/bots/api/#message) objects that were sent is returned. */
58
58
  sendMediaGroup(params) {
59
- return this.api.call("sendMediaGroup", { chat_id: this.message?.chat.id, ...params });
59
+ return this.api.call("sendMediaGroup", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
60
60
  }
61
61
  /** Use this method to send point on the map. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
62
62
  sendLocation(params) {
63
- return this.api.call("sendLocation", { chat_id: this.message?.chat.id, ...params });
63
+ return this.api.call("sendLocation", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
64
64
  }
65
65
  /** Use this method to send information about a venue. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
66
66
  sendVenue(params) {
67
- return this.api.call("sendVenue", { chat_id: this.message?.chat.id, ...params });
67
+ return this.api.call("sendVenue", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
68
68
  }
69
69
  /** Use this method to send phone contacts. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
70
70
  sendContact(params) {
71
- return this.api.call("sendContact", { chat_id: this.message?.chat.id, ...params });
71
+ return this.api.call("sendContact", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
72
72
  }
73
73
  /** Use this method to send a native poll. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
74
74
  sendPoll(params) {
75
- return this.api.call("sendPoll", { chat_id: this.message?.chat.id, ...params });
75
+ return this.api.call("sendPoll", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
76
76
  }
77
77
  /** Use this method to send a checklist on behalf of a connected business account. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
78
78
  sendChecklist(params) {
79
- return this.api.call("sendChecklist", { chat_id: this.message?.chat.id, ...params });
79
+ return this.api.call("sendChecklist", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...params });
80
80
  }
81
81
  /** Use this method to send an animated emoji that will display a random value. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
82
82
  sendDice(params) {
83
- return this.api.call("sendDice", { chat_id: this.message?.chat.id, ...params });
83
+ return this.api.call("sendDice", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
84
84
  }
85
85
  /** Use this method to stream a partial message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you **must** call [sendMessage](https://core.telegram.org/bots/api/#sendmessage) with the complete message to persist it in the user's chat. Returns *True* on success. */
86
86
  sendMessageDraft(params) {
87
- return this.api.call("sendMessageDraft", { chat_id: this.message?.chat.id, ...params });
87
+ return this.api.call("sendMessageDraft", { chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
88
88
  }
89
89
  /** 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. Example: The [ImageBot](https://t.me/imagebot) needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use [sendChatAction](https://core.telegram.org/bots/api/#sendchataction) with *action* = *upload\_photo*. The user will see a “sending photo” status for the bot. We only recommend using this method when a response from the bot will take a **noticeable** amount of time to arrive. */
90
90
  sendChatAction(params) {
91
- return this.api.call("sendChatAction", { chat_id: this.message?.chat.id, ...params });
91
+ return this.api.call("sendChatAction", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
92
92
  }
93
93
  /** Use this method to change the chosen reactions on a message. Service messages of some types can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Bots can't use paid reactions. Returns *True* on success. */
94
94
  react(params) {
@@ -192,11 +192,11 @@ export class CallbackQueryContextBase {
192
192
  }
193
193
  /** Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non-service messages can be pinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to pin messages in groups and channels respectively. Returns *True* on success. */
194
194
  pin(params) {
195
- return this.api.call("pinChatMessage", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
195
+ return this.api.call("pinChatMessage", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
196
196
  }
197
197
  /** Use this method to remove a message from the list of pinned messages in a chat. In private chats and channel direct messages chats, all messages can be unpinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin messages in groups and channels respectively. Returns *True* on success. */
198
198
  unpin(params) {
199
- return this.api.call("unpinChatMessage", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
199
+ return this.api.call("unpinChatMessage", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
200
200
  }
201
201
  /** Use this method to clear the list of pinned messages in a chat. In private chats and channel direct messages chats, no additional rights are required to unpin all pinned messages. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin all pinned messages in groups and channels respectively. Returns *True* on success. */
202
202
  unpinAllChatMessages(params) {
@@ -240,23 +240,23 @@ export class CallbackQueryContextBase {
240
240
  }
241
241
  /** Use this method to edit name and icon of a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success. */
242
242
  editForumTopic(params) {
243
- return this.api.call("editForumTopic", { chat_id: this.message?.chat.id, ...params });
243
+ return this.api.call("editForumTopic", { chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
244
244
  }
245
245
  /** Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success. */
246
246
  closeForumTopic(params) {
247
- return this.api.call("closeForumTopic", { chat_id: this.message?.chat.id, ...params });
247
+ return this.api.call("closeForumTopic", { chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
248
248
  }
249
249
  /** Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success. */
250
250
  reopenForumTopic(params) {
251
- return this.api.call("reopenForumTopic", { chat_id: this.message?.chat.id, ...params });
251
+ return this.api.call("reopenForumTopic", { chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
252
252
  }
253
253
  /** Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_delete\_messages* administrator rights. Returns *True* on success. */
254
254
  deleteForumTopic(params) {
255
- return this.api.call("deleteForumTopic", { chat_id: this.message?.chat.id, ...params });
255
+ return this.api.call("deleteForumTopic", { chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
256
256
  }
257
257
  /** Use this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_pin\_messages* administrator right in the supergroup. Returns *True* on success. */
258
258
  unpinAllForumTopicMessages(params) {
259
- return this.api.call("unpinAllForumTopicMessages", { chat_id: this.message?.chat.id, ...params });
259
+ return this.api.call("unpinAllForumTopicMessages", { chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
260
260
  }
261
261
  /** Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights. Returns *True* on success. */
262
262
  editGeneralForumTopic(params) {
@@ -340,7 +340,7 @@ export class CallbackQueryContextBase {
340
340
  }
341
341
  /** Marks incoming message as read on behalf of a business account. Requires the *can\_read\_messages* business bot right. Returns *True* on success. */
342
342
  readBusinessMessage(params) {
343
- return this.api.call("readBusinessMessage", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
343
+ return this.api.call("readBusinessMessage", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
344
344
  }
345
345
  /** Returns the gifts owned and hosted by a user. Returns [OwnedGifts](https://core.telegram.org/bots/api/#ownedgifts) on success. */
346
346
  getUserGifts(params) {
@@ -360,35 +360,35 @@ export class CallbackQueryContextBase {
360
360
  }
361
361
  /** Use this method to edit text, rich and [game](https://core.telegram.org/bots/api/#games) messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
362
362
  editText(params) {
363
- return this.api.call("editMessageText", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
363
+ return this.api.call("editMessageText", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
364
364
  }
365
365
  /** Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
366
366
  editCaption(params) {
367
- return this.api.call("editMessageCaption", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
367
+ return this.api.call("editMessageCaption", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
368
368
  }
369
369
  /** Use this method to edit animation, audio, document, live photo, photo, or video messages, or to replace a text or a rich message with a media. 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, a live 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](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
370
370
  editMedia(params) {
371
- return this.api.call("editMessageMedia", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
371
+ return this.api.call("editMessageMedia", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
372
372
  }
373
373
  /** 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](https://core.telegram.org/bots/api/#stopmessagelivelocation). On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. */
374
374
  editLiveLocation(params) {
375
- return this.api.call("editMessageLiveLocation", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
375
+ return this.api.call("editMessageLiveLocation", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
376
376
  }
377
377
  /** 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](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. */
378
378
  stopMessageLiveLocation(params) {
379
- return this.api.call("stopMessageLiveLocation", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
379
+ return this.api.call("stopMessageLiveLocation", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
380
380
  }
381
381
  /** Use this method to edit a checklist on behalf of a connected business account. On success, the edited [Message](https://core.telegram.org/bots/api/#message) is returned. */
382
382
  editMessageChecklist(params) {
383
- return this.api.call("editMessageChecklist", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
383
+ return this.api.call("editMessageChecklist", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
384
384
  }
385
385
  /** 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](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
386
386
  editReplyMarkup(params) {
387
- return this.api.call("editMessageReplyMarkup", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
387
+ return this.api.call("editMessageReplyMarkup", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
388
388
  }
389
389
  /** Use this method to stop a poll which was sent by the bot. On success, the stopped [Poll](https://core.telegram.org/bots/api/#poll) is returned. */
390
390
  stopPoll(params) {
391
- return this.api.call("stopPoll", { chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
391
+ return this.api.call("stopPoll", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, message_id: this.message?.message_id, ...params });
392
392
  }
393
393
  /** Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_post_messages' administrator right in the corresponding channel chat. Returns *True* on success. */
394
394
  approveSuggestedPost(params) {
@@ -416,7 +416,7 @@ export class CallbackQueryContextBase {
416
416
  }
417
417
  /** Use this method to send static .WEBP, [animated](https://telegram.org/blog/animated-stickers) .TGS, or [video](https://telegram.org/blog/video-stickers-better-reactions) .WEBM stickers. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
418
418
  sendSticker(params) {
419
- return this.api.call("sendSticker", { chat_id: this.message?.chat.id, ...params });
419
+ return this.api.call("sendSticker", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
420
420
  }
421
421
  /** Use this method to upload a file with a sticker for later use in the [createNewStickerSet](https://core.telegram.org/bots/api/#createnewstickerset), [addStickerToSet](https://core.telegram.org/bots/api/#addstickertoset), or [replaceStickerInSet](https://core.telegram.org/bots/api/#replacestickerinset) methods (the file can be used multiple times). Returns the uploaded [File](https://core.telegram.org/bots/api/#file) on success. */
422
422
  uploadStickerFile(params) {
@@ -440,15 +440,15 @@ export class CallbackQueryContextBase {
440
440
  }
441
441
  /** Use this method to send rich messages. If the message contains a block with a media element, then the bot must have the right to send the media to the chat. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
442
442
  sendRichMessage(params) {
443
- return this.api.call("sendRichMessage", { chat_id: this.message?.chat.id, ...params });
443
+ return this.api.call("sendRichMessage", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
444
444
  }
445
445
  /** Use this method to stream a partial rich message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you **must** call [sendRichMessage](https://core.telegram.org/bots/api/#sendrichmessage) with the complete message to persist it in the user's chat. Returns *True* on success. */
446
446
  sendRichMessageDraft(params) {
447
- return this.api.call("sendRichMessageDraft", { chat_id: this.message?.chat.id, ...params });
447
+ return this.api.call("sendRichMessageDraft", { chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
448
448
  }
449
449
  /** Use this method to send invoices. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
450
450
  sendInvoice(params) {
451
- return this.api.call("sendInvoice", { chat_id: this.message?.chat.id, ...params });
451
+ return this.api.call("sendInvoice", { chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...((this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined) === undefined ? {} : { direct_messages_topic_id: this.message && "direct_messages_topic" in this.message ? this.message.direct_messages_topic?.topic_id : undefined }), ...params });
452
452
  }
453
453
  /** Refunds a successful payment in [Telegram Stars](https://t.me/BotNews/90). Returns *True* on success. */
454
454
  refundStarPayment(params) {
@@ -464,7 +464,7 @@ export class CallbackQueryContextBase {
464
464
  }
465
465
  /** Use this method to send a game. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
466
466
  sendGame(params) {
467
- return this.api.call("sendGame", { chat_id: this.message?.chat.id, ...params });
467
+ return this.api.call("sendGame", { ...((this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined) === undefined ? {} : { business_connection_id: this.message && "business_connection_id" in this.message ? this.message.business_connection_id : undefined }), chat_id: this.message?.chat.id, ...((this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined) === undefined ? {} : { message_thread_id: this.message && "message_thread_id" in this.message ? this.message.message_thread_id : undefined }), ...params });
468
468
  }
469
469
  /** 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](https://core.telegram.org/bots/api/#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*. */
470
470
  setGameScore(params) {