@effect-ak/tg-bot-api 1.5.1 → 1.6.0

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 (3) hide show
  1. package/dist/index.d.ts +465 -129
  2. package/package.json +1 -1
  3. package/readme.md +1 -1
package/dist/index.d.ts CHANGED
@@ -695,6 +695,14 @@ interface Birthdate {
695
695
  month: number;
696
696
  year?: number;
697
697
  }
698
+ /**
699
+ * This object describes the access settings of a bot.
700
+ * @see https://tg-bot-sdk.website/api/types/bot-access-settings/
701
+ */
702
+ interface BotAccessSettings {
703
+ is_access_restricted: boolean;
704
+ added_users?: User[];
705
+ }
698
706
  /**
699
707
  * This object represents a bot command.
700
708
  * @see https://tg-bot-sdk.website/api/types/bot-command/
@@ -1177,6 +1185,7 @@ interface ChatMemberRestricted {
1177
1185
  can_send_polls: boolean;
1178
1186
  can_send_other_messages: boolean;
1179
1187
  can_add_web_page_previews: boolean;
1188
+ can_react_to_messages: boolean;
1180
1189
  can_edit_tag: boolean;
1181
1190
  can_change_info: boolean;
1182
1191
  can_invite_users: boolean;
@@ -1228,6 +1237,7 @@ interface ChatPermissions {
1228
1237
  can_send_polls?: boolean;
1229
1238
  can_send_other_messages?: boolean;
1230
1239
  can_add_web_page_previews?: boolean;
1240
+ can_react_to_messages?: boolean;
1231
1241
  can_edit_tag?: boolean;
1232
1242
  can_change_info?: boolean;
1233
1243
  can_invite_users?: boolean;
@@ -1398,6 +1408,7 @@ interface ExternalReplyInfo {
1398
1408
  animation?: Animation;
1399
1409
  audio?: Audio;
1400
1410
  document?: Document;
1411
+ live_photo?: LivePhoto;
1401
1412
  paid_media?: PaidMediaInfo;
1402
1413
  photo?: PhotoSize[];
1403
1414
  sticker?: Sticker;
@@ -1434,7 +1445,7 @@ interface File {
1434
1445
  /**
1435
1446
  * Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply')
1436
1447
  * This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode
1437
- * Not supported in channels and for messages sent on behalf of a Telegram Business account.
1448
+ * Not supported in channels and for messages sent on behalf of a user account.
1438
1449
  * @see https://tg-bot-sdk.website/api/types/force-reply/
1439
1450
  */
1440
1451
  interface ForceReply {
@@ -2148,7 +2159,7 @@ interface InputLocationMessageContent {
2148
2159
  * It should be one of
2149
2160
  * @see https://tg-bot-sdk.website/api/types/input-media/
2150
2161
  */
2151
- type InputMedia = InputMediaAnimation | InputMediaDocument | InputMediaAudio | InputMediaPhoto | InputMediaVideo;
2162
+ type InputMedia = InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaLivePhoto | InputMediaPhoto | InputMediaVideo;
2152
2163
  /**
2153
2164
  * Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
2154
2165
  * @see https://tg-bot-sdk.website/api/types/input-media-animation/
@@ -2194,6 +2205,30 @@ interface InputMediaDocument {
2194
2205
  caption_entities?: MessageEntity[];
2195
2206
  disable_content_type_detection?: boolean;
2196
2207
  }
2208
+ /**
2209
+ * Represents a live photo to be sent.
2210
+ * @see https://tg-bot-sdk.website/api/types/input-media-live-photo/
2211
+ */
2212
+ interface InputMediaLivePhoto {
2213
+ type: "live_photo";
2214
+ media: string;
2215
+ photo: string;
2216
+ caption?: string;
2217
+ parse_mode?: "HTML" | "MarkdownV2";
2218
+ caption_entities?: MessageEntity[];
2219
+ show_caption_above_media?: boolean;
2220
+ has_spoiler?: boolean;
2221
+ }
2222
+ /**
2223
+ * Represents a location to be sent.
2224
+ * @see https://tg-bot-sdk.website/api/types/input-media-location/
2225
+ */
2226
+ interface InputMediaLocation {
2227
+ type: "location";
2228
+ latitude: number;
2229
+ longitude: number;
2230
+ horizontal_accuracy?: number;
2231
+ }
2197
2232
  /**
2198
2233
  * Represents a photo to be sent.
2199
2234
  * @see https://tg-bot-sdk.website/api/types/input-media-photo/
@@ -2207,6 +2242,30 @@ interface InputMediaPhoto {
2207
2242
  show_caption_above_media?: boolean;
2208
2243
  has_spoiler?: boolean;
2209
2244
  }
2245
+ /**
2246
+ * Represents a sticker file to be sent.
2247
+ * @see https://tg-bot-sdk.website/api/types/input-media-sticker/
2248
+ */
2249
+ interface InputMediaSticker {
2250
+ type: "sticker";
2251
+ media: string;
2252
+ emoji?: string;
2253
+ }
2254
+ /**
2255
+ * Represents a venue to be sent.
2256
+ * @see https://tg-bot-sdk.website/api/types/input-media-venue/
2257
+ */
2258
+ interface InputMediaVenue {
2259
+ type: "venue";
2260
+ latitude: number;
2261
+ longitude: number;
2262
+ title: string;
2263
+ address: string;
2264
+ foursquare_id?: string;
2265
+ foursquare_type?: string;
2266
+ google_place_id?: string;
2267
+ google_place_type?: string;
2268
+ }
2210
2269
  /**
2211
2270
  * Represents a video to be sent.
2212
2271
  * @see https://tg-bot-sdk.website/api/types/input-media-video/
@@ -2238,7 +2297,16 @@ type InputMessageContent = InputTextMessageContent | InputLocationMessageContent
2238
2297
  * Currently, it can be one of
2239
2298
  * @see https://tg-bot-sdk.website/api/types/input-paid-media/
2240
2299
  */
2241
- type InputPaidMedia = InputPaidMediaPhoto | InputPaidMediaVideo;
2300
+ type InputPaidMedia = InputPaidMediaLivePhoto | InputPaidMediaPhoto | InputPaidMediaVideo;
2301
+ /**
2302
+ * The paid media to send is a live photo.
2303
+ * @see https://tg-bot-sdk.website/api/types/input-paid-media-live-photo/
2304
+ */
2305
+ interface InputPaidMediaLivePhoto {
2306
+ type: "live_photo";
2307
+ media: string;
2308
+ photo: string;
2309
+ }
2242
2310
  /**
2243
2311
  * The paid media to send is a photo.
2244
2312
  * @see https://tg-bot-sdk.website/api/types/input-paid-media-photo/
@@ -2262,6 +2330,12 @@ interface InputPaidMediaVideo {
2262
2330
  duration?: number;
2263
2331
  supports_streaming?: boolean;
2264
2332
  }
2333
+ /**
2334
+ * This object represents the content of a poll description or a quiz explanation to be sent
2335
+ * It should be one of
2336
+ * @see https://tg-bot-sdk.website/api/types/input-poll-media/
2337
+ */
2338
+ type InputPollMedia = InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaLivePhoto | InputMediaLocation | InputMediaPhoto | InputMediaVenue | InputMediaVideo;
2265
2339
  /**
2266
2340
  * This object contains information about one answer option in a poll to be sent.
2267
2341
  * @see https://tg-bot-sdk.website/api/types/input-poll-option/
@@ -2270,7 +2344,14 @@ interface InputPollOption {
2270
2344
  text: string;
2271
2345
  text_parse_mode?: "HTML" | "MarkdownV2";
2272
2346
  text_entities?: MessageEntity[];
2347
+ media?: InputPollOptionMedia;
2273
2348
  }
2349
+ /**
2350
+ * This object represents the content of a poll option to be sent
2351
+ * It should be one of
2352
+ * @see https://tg-bot-sdk.website/api/types/input-poll-option-media/
2353
+ */
2354
+ type InputPollOptionMedia = InputMediaAnimation | InputMediaLivePhoto | InputMediaLocation | InputMediaPhoto | InputMediaSticker | InputMediaVenue | InputMediaVideo;
2274
2355
  /**
2275
2356
  * This object describes a profile photo to set
2276
2357
  * Currently, it can be one of
@@ -2454,6 +2535,20 @@ interface LinkPreviewOptions {
2454
2535
  prefer_large_media?: boolean;
2455
2536
  show_above_text?: boolean;
2456
2537
  }
2538
+ /**
2539
+ * This object represents a live photo.
2540
+ * @see https://tg-bot-sdk.website/api/types/live-photo/
2541
+ */
2542
+ interface LivePhoto {
2543
+ file_id: string;
2544
+ file_unique_id: string;
2545
+ width: number;
2546
+ height: number;
2547
+ duration: number;
2548
+ photo?: PhotoSize[];
2549
+ mime_type?: string;
2550
+ file_size?: number;
2551
+ }
2457
2552
  /**
2458
2553
  * This object represents a point on the map.
2459
2554
  * @see https://tg-bot-sdk.website/api/types/location/
@@ -2565,6 +2660,7 @@ interface Message {
2565
2660
  sender_boost_count?: number;
2566
2661
  sender_business_bot?: User;
2567
2662
  sender_tag?: string;
2663
+ guest_query_id?: string;
2568
2664
  business_connection_id?: string;
2569
2665
  forward_origin?: MessageOrigin;
2570
2666
  is_topic_message?: boolean;
@@ -2576,6 +2672,8 @@ interface Message {
2576
2672
  reply_to_checklist_task_id?: number;
2577
2673
  reply_to_poll_option_id?: string;
2578
2674
  via_bot?: User;
2675
+ guest_bot_caller_user?: User;
2676
+ guest_bot_caller_chat?: Chat;
2579
2677
  edit_date?: number;
2580
2678
  has_protected_content?: boolean;
2581
2679
  is_from_offline?: boolean;
@@ -2591,6 +2689,7 @@ interface Message {
2591
2689
  animation?: Animation;
2592
2690
  audio?: Audio;
2593
2691
  document?: Document;
2692
+ live_photo?: LivePhoto;
2594
2693
  paid_media?: PaidMediaInfo;
2595
2694
  photo?: PhotoSize[];
2596
2695
  sticker?: Sticker;
@@ -2830,7 +2929,7 @@ interface OwnedGiftUnique {
2830
2929
  * Currently, it can be one of
2831
2930
  * @see https://tg-bot-sdk.website/api/types/paid-media/
2832
2931
  */
2833
- type PaidMedia = PaidMediaPreview | PaidMediaPhoto | PaidMediaVideo;
2932
+ type PaidMedia = PaidMediaLivePhoto | PaidMediaPhoto | PaidMediaPreview | PaidMediaVideo;
2834
2933
  /**
2835
2934
  * Describes the paid media added to a message.
2836
2935
  * @see https://tg-bot-sdk.website/api/types/paid-media-info/
@@ -2839,6 +2938,14 @@ interface PaidMediaInfo {
2839
2938
  star_count: number;
2840
2939
  paid_media: PaidMedia[];
2841
2940
  }
2941
+ /**
2942
+ * The paid media is a live photo.
2943
+ * @see https://tg-bot-sdk.website/api/types/paid-media-live-photo/
2944
+ */
2945
+ interface PaidMediaLivePhoto {
2946
+ type: "live_photo";
2947
+ live_photo: LivePhoto;
2948
+ }
2842
2949
  /**
2843
2950
  * The paid media is a photo.
2844
2951
  * @see https://tg-bot-sdk.website/api/types/paid-media-photo/
@@ -3030,14 +3137,18 @@ interface Poll {
3030
3137
  type: "regular" | "quiz";
3031
3138
  allows_multiple_answers: boolean;
3032
3139
  allows_revoting: boolean;
3140
+ members_only: boolean;
3033
3141
  question_entities?: MessageEntity[];
3142
+ country_codes?: string[];
3034
3143
  correct_option_ids?: number[];
3035
3144
  explanation?: string;
3036
3145
  explanation_entities?: MessageEntity[];
3146
+ explanation_media?: PollMedia;
3037
3147
  open_period?: number;
3038
3148
  close_date?: number;
3039
3149
  description?: string;
3040
3150
  description_entities?: MessageEntity[];
3151
+ media?: PollMedia;
3041
3152
  }
3042
3153
  /**
3043
3154
  * This object represents an answer of a user in a non-anonymous poll.
@@ -3050,6 +3161,21 @@ interface PollAnswer {
3050
3161
  voter_chat?: Chat;
3051
3162
  user?: User;
3052
3163
  }
3164
+ /**
3165
+ * At most one of the optional fields can be present in any given object.
3166
+ * @see https://tg-bot-sdk.website/api/types/poll-media/
3167
+ */
3168
+ interface PollMedia {
3169
+ animation?: Animation;
3170
+ audio?: Audio;
3171
+ document?: Document;
3172
+ live_photo?: LivePhoto;
3173
+ location?: Location;
3174
+ photo?: PhotoSize[];
3175
+ sticker?: Sticker;
3176
+ venue?: Venue;
3177
+ video?: Video;
3178
+ }
3053
3179
  /**
3054
3180
  * This object contains information about one answer option in a poll.
3055
3181
  * @see https://tg-bot-sdk.website/api/types/poll-option/
@@ -3059,6 +3185,7 @@ interface PollOption {
3059
3185
  text: string;
3060
3186
  voter_count: number;
3061
3187
  text_entities?: MessageEntity[];
3188
+ media?: PollMedia;
3062
3189
  added_by_user?: User;
3063
3190
  added_by_chat?: Chat;
3064
3191
  addition_date?: number;
@@ -3170,7 +3297,7 @@ interface RefundedPayment {
3170
3297
  }
3171
3298
  /**
3172
3299
  * This object represents a custom keyboard with reply options (see Introduction to bots for details and examples)
3173
- * Not supported in channels and for messages sent on behalf of a Telegram Business account.
3300
+ * Not supported in channels and for messages sent on behalf of a business account.
3174
3301
  * @see https://tg-bot-sdk.website/api/types/reply-keyboard-markup/
3175
3302
  */
3176
3303
  interface ReplyKeyboardMarkup {
@@ -3185,7 +3312,7 @@ interface ReplyKeyboardMarkup {
3185
3312
  * Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard
3186
3313
  * By default, custom keyboards are displayed until a new keyboard is sent by a bot
3187
3314
  * An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup)
3188
- * Not supported in channels and for messages sent on behalf of a Telegram Business account.
3315
+ * Not supported in channels and for messages sent on behalf of a business account.
3189
3316
  * @see https://tg-bot-sdk.website/api/types/reply-keyboard-remove/
3190
3317
  */
3191
3318
  interface ReplyKeyboardRemove {
@@ -3244,6 +3371,13 @@ interface RevenueWithdrawalStateSucceeded {
3244
3371
  date: number;
3245
3372
  url: string;
3246
3373
  }
3374
+ /**
3375
+ * Describes an inline message sent by a guest bot.
3376
+ * @see https://tg-bot-sdk.website/api/types/sent-guest-message/
3377
+ */
3378
+ interface SentGuestMessage {
3379
+ inline_message_id: string;
3380
+ }
3247
3381
  /**
3248
3382
  * Describes an inline message sent by a Web App on behalf of a user.
3249
3383
  * @see https://tg-bot-sdk.website/api/types/sent-web-app-message/
@@ -3700,7 +3834,7 @@ interface UniqueGiftSymbol {
3700
3834
  }
3701
3835
  /**
3702
3836
  * This object represents an incoming update
3703
- * At most one of the optional parameters can be present in any given update.
3837
+ * At most one of the optional fields can be present in any given update.
3704
3838
  * @see https://tg-bot-sdk.website/api/types/update/
3705
3839
  */
3706
3840
  interface Update {
@@ -3713,6 +3847,7 @@ interface Update {
3713
3847
  business_message?: Message;
3714
3848
  edited_business_message?: Message;
3715
3849
  deleted_business_messages?: BusinessMessagesDeleted;
3850
+ guest_message?: Message;
3716
3851
  message_reaction?: MessageReactionUpdated;
3717
3852
  message_reaction_count?: MessageReactionCountUpdated;
3718
3853
  inline_query?: InlineQuery;
@@ -3745,6 +3880,7 @@ interface User {
3745
3880
  added_to_attachment_menu?: boolean;
3746
3881
  can_join_groups?: boolean;
3747
3882
  can_read_all_group_messages?: boolean;
3883
+ supports_guest_queries?: boolean;
3748
3884
  supports_inline_queries?: boolean;
3749
3885
  can_connect_to_business?: boolean;
3750
3886
  has_main_web_app?: boolean;
@@ -3943,6 +4079,11 @@ interface Api {
3943
4079
  * @see https://tg-bot-sdk.website/api/methods/answer-callback-query/
3944
4080
  */
3945
4081
  answer_callback_query(_: AnswerCallbackQueryInput): boolean;
4082
+ /**
4083
+ * Use this method to reply to a received guest message
4084
+ * @see https://tg-bot-sdk.website/api/methods/answer-guest-query/
4085
+ */
4086
+ answer_guest_query(_: AnswerGuestQueryInput): SentGuestMessage;
3946
4087
  /**
3947
4088
  * Use this method to send answers to an inline query
3948
4089
  * No more than 50 results per query are allowed.
@@ -4080,6 +4221,12 @@ interface Api {
4080
4221
  * @see https://tg-bot-sdk.website/api/methods/decline-suggested-post/
4081
4222
  */
4082
4223
  decline_suggested_post(_: DeclineSuggestedPostInput): boolean;
4224
+ /**
4225
+ * Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat
4226
+ * The bot must have the 'can_delete_messages' administrator right in the chat
4227
+ * @see https://tg-bot-sdk.website/api/methods/delete-all-message-reactions/
4228
+ */
4229
+ delete_all_message_reactions(_: DeleteAllMessageReactionsInput): boolean;
4083
4230
  /**
4084
4231
  * Delete messages on behalf of a business account
4085
4232
  * Requires the can_delete_sent_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message
@@ -4119,6 +4266,12 @@ interface Api {
4119
4266
  * @see https://tg-bot-sdk.website/api/methods/delete-message/
4120
4267
  */
4121
4268
  delete_message(_: DeleteMessageInput): boolean;
4269
+ /**
4270
+ * Use this method to remove a reaction from a message in a group or a supergroup chat
4271
+ * The bot must have the 'can_delete_messages' administrator right in the chat
4272
+ * @see https://tg-bot-sdk.website/api/methods/delete-message-reaction/
4273
+ */
4274
+ delete_message_reaction(_: DeleteMessageReactionInput): boolean;
4122
4275
  /**
4123
4276
  * Use this method to delete multiple messages simultaneously
4124
4277
  * If some of the specified messages can't be found, they are skipped
@@ -4194,8 +4347,8 @@ interface Api {
4194
4347
  */
4195
4348
  edit_message_live_location(_: EditMessageLiveLocationInput): Message | boolean;
4196
4349
  /**
4197
- * Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages
4198
- * 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
4350
+ * Use this method to edit animation, audio, document, live photo, photo, or video messages, or to add media to text messages
4351
+ * 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
4199
4352
  * 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
4200
4353
  * 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.
4201
4354
  * @see https://tg-bot-sdk.website/api/methods/edit-message-media/
@@ -4273,7 +4426,7 @@ interface Api {
4273
4426
  */
4274
4427
  get_chat(_: GetChatInput): ChatFullInfo;
4275
4428
  /**
4276
- * Use this method to get a list of administrators in a chat, which aren't bots
4429
+ * Use this method to get a list of administrators in a chat
4277
4430
  * @see https://tg-bot-sdk.website/api/methods/get-chat-administrators/
4278
4431
  */
4279
4432
  get_chat_administrators(_: GetChatAdministratorsInput): ChatMember[];
@@ -4327,6 +4480,11 @@ interface Api {
4327
4480
  * @see https://tg-bot-sdk.website/api/methods/get-game-high-scores/
4328
4481
  */
4329
4482
  get_game_high_scores(_: GetGameHighScoresInput): GameHighScore[];
4483
+ /**
4484
+ * Use this method to get the access settings of a managed bot
4485
+ * @see https://tg-bot-sdk.website/api/methods/get-managed-bot-access-settings/
4486
+ */
4487
+ get_managed_bot_access_settings(_: GetManagedBotAccessSettingsInput): BotAccessSettings;
4330
4488
  /**
4331
4489
  * Use this method to get the token of a managed bot
4332
4490
  * @see https://tg-bot-sdk.website/api/methods/get-managed-bot-token/
@@ -4396,6 +4554,11 @@ interface Api {
4396
4554
  * @see https://tg-bot-sdk.website/api/methods/get-user-gifts/
4397
4555
  */
4398
4556
  get_user_gifts(_: GetUserGiftsInput): OwnedGifts;
4557
+ /**
4558
+ * Use this method to get the last messages from the personal chat (i.e., the chat currently added to their profile) of a given user
4559
+ * @see https://tg-bot-sdk.website/api/methods/get-user-personal-chat-messages/
4560
+ */
4561
+ get_user_personal_chat_messages(_: GetUserPersonalChatMessagesInput): Message[];
4399
4562
  /**
4400
4563
  * Use this method to get a list of profile audios for a user
4401
4564
  * @see https://tg-bot-sdk.website/api/methods/get-user-profile-audios/
@@ -4607,13 +4770,18 @@ interface Api {
4607
4770
  * @see https://tg-bot-sdk.website/api/methods/send-invoice/
4608
4771
  */
4609
4772
  send_invoice(_: SendInvoiceInput): Message;
4773
+ /**
4774
+ * Use this method to send live photos
4775
+ * @see https://tg-bot-sdk.website/api/methods/send-live-photo/
4776
+ */
4777
+ send_live_photo(_: SendLivePhotoInput): Message;
4610
4778
  /**
4611
4779
  * Use this method to send point on the map
4612
4780
  * @see https://tg-bot-sdk.website/api/methods/send-location/
4613
4781
  */
4614
4782
  send_location(_: SendLocationInput): Message;
4615
4783
  /**
4616
- * Use this method to send a group of photos, videos, documents or audios as an album
4784
+ * Use this method to send a group of photos, live photos, videos, documents or audios as an album
4617
4785
  * Documents and audio files can be only grouped in an album with messages of the same type
4618
4786
  * On success, an array of Message objects that were sent is returned.
4619
4787
  * @see https://tg-bot-sdk.website/api/methods/send-media-group/
@@ -4626,6 +4794,7 @@ interface Api {
4626
4794
  send_message(_: SendMessageInput): Message;
4627
4795
  /**
4628
4796
  * Use this method to stream a partial message to a user while the message is being generated
4797
+ * Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you must call sendMessage with the complete message to persist it in the user's chat
4629
4798
  * @see https://tg-bot-sdk.website/api/methods/send-message-draft/
4630
4799
  */
4631
4800
  send_message_draft(_: SendMessageDraftInput): boolean;
@@ -4762,6 +4931,11 @@ interface Api {
4762
4931
  * @see https://tg-bot-sdk.website/api/methods/set-game-score/
4763
4932
  */
4764
4933
  set_game_score(_: SetGameScoreInput): Message | boolean;
4934
+ /**
4935
+ * Use this method to change the access settings of a managed bot
4936
+ * @see https://tg-bot-sdk.website/api/methods/set-managed-bot-access-settings/
4937
+ */
4938
+ set_managed_bot_access_settings(_: SetManagedBotAccessSettingsInput): boolean;
4765
4939
  /**
4766
4940
  * Use this method to change the chosen reactions on a message
4767
4941
  * Service messages of some types can't be reacted to
@@ -5004,6 +5178,16 @@ interface AnswerCallbackQueryInput {
5004
5178
  */
5005
5179
  cache_time?: number;
5006
5180
  }
5181
+ /**
5182
+ * Use this method to reply to a received guest message
5183
+ * @see https://tg-bot-sdk.website/api/methods/answer-guest-query/
5184
+ */
5185
+ interface AnswerGuestQueryInput {
5186
+ /** Unique identifier for the query to be answered */
5187
+ guest_query_id: string;
5188
+ /** A JSON-serialized object describing the message to be sent */
5189
+ result: InlineQueryResult;
5190
+ }
5007
5191
  /**
5008
5192
  * Use this method to send answers to an inline query
5009
5193
  * No more than 50 results per query are allowed.
@@ -5095,7 +5279,7 @@ interface AnswerWebAppQueryInput {
5095
5279
  * @see https://tg-bot-sdk.website/api/methods/approve-chat-join-request/
5096
5280
  */
5097
5281
  interface ApproveChatJoinRequestInput {
5098
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5282
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
5099
5283
  chat_id: number | string;
5100
5284
  /** Unique identifier of the target user */
5101
5285
  user_id: number;
@@ -5123,7 +5307,7 @@ interface ApproveSuggestedPostInput {
5123
5307
  * @see https://tg-bot-sdk.website/api/methods/ban-chat-member/
5124
5308
  */
5125
5309
  interface BanChatMemberInput {
5126
- /** Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername) */
5310
+ /** Unique identifier for the target group or username of the target supergroup or channel in the format @username */
5127
5311
  chat_id: number | string;
5128
5312
  /** Unique identifier of the target user */
5129
5313
  user_id: number;
@@ -5147,7 +5331,7 @@ interface BanChatMemberInput {
5147
5331
  * @see https://tg-bot-sdk.website/api/methods/ban-chat-sender-chat/
5148
5332
  */
5149
5333
  interface BanChatSenderChatInput {
5150
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5334
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
5151
5335
  chat_id: number | string;
5152
5336
  /** Unique identifier of the target sender chat */
5153
5337
  sender_chat_id: number;
@@ -5167,7 +5351,7 @@ interface CloseInput {
5167
5351
  * @see https://tg-bot-sdk.website/api/methods/close-forum-topic/
5168
5352
  */
5169
5353
  interface CloseForumTopicInput {
5170
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
5354
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
5171
5355
  chat_id: number | string;
5172
5356
  /** Unique identifier for the target message thread of the forum topic */
5173
5357
  message_thread_id: number;
@@ -5178,7 +5362,7 @@ interface CloseForumTopicInput {
5178
5362
  * @see https://tg-bot-sdk.website/api/methods/close-general-forum-topic/
5179
5363
  */
5180
5364
  interface CloseGeneralForumTopicInput {
5181
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
5365
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
5182
5366
  chat_id: number | string;
5183
5367
  }
5184
5368
  /**
@@ -5200,9 +5384,9 @@ interface ConvertGiftToStarsInput {
5200
5384
  * @see https://tg-bot-sdk.website/api/methods/copy-message/
5201
5385
  */
5202
5386
  interface CopyMessageInput {
5203
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5387
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
5204
5388
  chat_id: number | string;
5205
- /** Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername) */
5389
+ /** Unique identifier for the chat where the original message was sent (or username of the target bot, supergroup or channel in the format @username) */
5206
5390
  from_chat_id: number | string;
5207
5391
  /** Message identifier in the chat specified in from_chat_id */
5208
5392
  message_id: number;
@@ -5238,7 +5422,7 @@ interface CopyMessageInput {
5238
5422
  protect_content?: boolean;
5239
5423
  /**
5240
5424
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
5241
- * The relevant Stars will be withdrawn from the bot's balance
5425
+ * The relevant Stars will be withdrawn from the bot's balance.
5242
5426
  */
5243
5427
  allow_paid_broadcast?: boolean;
5244
5428
  /** Unique identifier of the message effect to be added to the message; only available when copying to private chats */
@@ -5266,9 +5450,9 @@ interface CopyMessageInput {
5266
5450
  * @see https://tg-bot-sdk.website/api/methods/copy-messages/
5267
5451
  */
5268
5452
  interface CopyMessagesInput {
5269
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5453
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
5270
5454
  chat_id: number | string;
5271
- /** Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername) */
5455
+ /** Unique identifier for the chat where the original messages were sent (or username of the target bot, supergroup or channel in the format @username) */
5272
5456
  from_chat_id: number | string;
5273
5457
  /**
5274
5458
  * A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy
@@ -5296,7 +5480,7 @@ interface CopyMessagesInput {
5296
5480
  * @see https://tg-bot-sdk.website/api/methods/create-chat-invite-link/
5297
5481
  */
5298
5482
  interface CreateChatInviteLinkInput {
5299
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5483
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
5300
5484
  chat_id: number | string;
5301
5485
  /** Invite link name; 0-32 characters */
5302
5486
  name?: string;
@@ -5317,7 +5501,7 @@ interface CreateChatInviteLinkInput {
5317
5501
  * @see https://tg-bot-sdk.website/api/methods/create-chat-subscription-invite-link/
5318
5502
  */
5319
5503
  interface CreateChatSubscriptionInviteLinkInput {
5320
- /** Unique identifier for the target channel chat or username of the target channel (in the format @channelusername) */
5504
+ /** Unique identifier for the target channel chat or username of the target channel in the format @username */
5321
5505
  chat_id: number | string;
5322
5506
  /**
5323
5507
  * The number of seconds the subscription will be active for before the next payment
@@ -5335,7 +5519,7 @@ interface CreateChatSubscriptionInviteLinkInput {
5335
5519
  * @see https://tg-bot-sdk.website/api/methods/create-forum-topic/
5336
5520
  */
5337
5521
  interface CreateForumTopicInput {
5338
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
5522
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
5339
5523
  chat_id: number | string;
5340
5524
  /** Topic name, 1-128 characters */
5341
5525
  name: string;
@@ -5493,7 +5677,7 @@ interface CreateNewStickerSetInput {
5493
5677
  * @see https://tg-bot-sdk.website/api/methods/decline-chat-join-request/
5494
5678
  */
5495
5679
  interface DeclineChatJoinRequestInput {
5496
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5680
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
5497
5681
  chat_id: number | string;
5498
5682
  /** Unique identifier of the target user */
5499
5683
  user_id: number;
@@ -5511,6 +5695,19 @@ interface DeclineSuggestedPostInput {
5511
5695
  /** Comment for the creator of the suggested post; 0-128 characters */
5512
5696
  comment?: string;
5513
5697
  }
5698
+ /**
5699
+ * Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat
5700
+ * The bot must have the 'can_delete_messages' administrator right in the chat
5701
+ * @see https://tg-bot-sdk.website/api/methods/delete-all-message-reactions/
5702
+ */
5703
+ interface DeleteAllMessageReactionsInput {
5704
+ /** Unique identifier for the target chat or username of the target supergroup (in the format @username) */
5705
+ chat_id: number | string;
5706
+ /** Identifier of the user whose reactions will be removed, if the reactions were added by a user */
5707
+ user_id?: number;
5708
+ /** Identifier of the chat whose reactions will be removed, if the reactions were added by a chat */
5709
+ actor_chat_id?: number;
5710
+ }
5514
5711
  /**
5515
5712
  * Delete messages on behalf of a business account
5516
5713
  * Requires the can_delete_sent_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message
@@ -5533,7 +5730,7 @@ interface DeleteBusinessMessagesInput {
5533
5730
  * @see https://tg-bot-sdk.website/api/methods/delete-chat-photo/
5534
5731
  */
5535
5732
  interface DeleteChatPhotoInput {
5536
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5733
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
5537
5734
  chat_id: number | string;
5538
5735
  }
5539
5736
  /**
@@ -5543,7 +5740,7 @@ interface DeleteChatPhotoInput {
5543
5740
  * @see https://tg-bot-sdk.website/api/methods/delete-chat-sticker-set/
5544
5741
  */
5545
5742
  interface DeleteChatStickerSetInput {
5546
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
5743
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
5547
5744
  chat_id: number | string;
5548
5745
  }
5549
5746
  /**
@@ -5552,7 +5749,7 @@ interface DeleteChatStickerSetInput {
5552
5749
  * @see https://tg-bot-sdk.website/api/methods/delete-forum-topic/
5553
5750
  */
5554
5751
  interface DeleteForumTopicInput {
5555
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
5752
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
5556
5753
  chat_id: number | string;
5557
5754
  /** Unique identifier for the target message thread of the forum topic */
5558
5755
  message_thread_id: number;
@@ -5570,18 +5767,33 @@ interface DeleteForumTopicInput {
5570
5767
  * @see https://tg-bot-sdk.website/api/methods/delete-message/
5571
5768
  */
5572
5769
  interface DeleteMessageInput {
5573
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5770
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
5574
5771
  chat_id: number | string;
5575
5772
  /** Identifier of the message to delete */
5576
5773
  message_id: number;
5577
5774
  }
5775
+ /**
5776
+ * Use this method to remove a reaction from a message in a group or a supergroup chat
5777
+ * The bot must have the 'can_delete_messages' administrator right in the chat
5778
+ * @see https://tg-bot-sdk.website/api/methods/delete-message-reaction/
5779
+ */
5780
+ interface DeleteMessageReactionInput {
5781
+ /** Unique identifier for the target chat or username of the target supergroup (in the format @username) */
5782
+ chat_id: number | string;
5783
+ /** Identifier of the target message */
5784
+ message_id: number;
5785
+ /** Identifier of the user whose reaction will be removed, if the reaction was added by a user */
5786
+ user_id?: number;
5787
+ /** Identifier of the chat whose reaction will be removed, if the reaction was added by a chat */
5788
+ actor_chat_id?: number;
5789
+ }
5578
5790
  /**
5579
5791
  * Use this method to delete multiple messages simultaneously
5580
5792
  * If some of the specified messages can't be found, they are skipped
5581
5793
  * @see https://tg-bot-sdk.website/api/methods/delete-messages/
5582
5794
  */
5583
5795
  interface DeleteMessagesInput {
5584
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5796
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
5585
5797
  chat_id: number | string;
5586
5798
  /**
5587
5799
  * A JSON-serialized list of 1-100 identifiers of messages to delete
@@ -5647,7 +5859,7 @@ interface DeleteWebhookInput {
5647
5859
  * @see https://tg-bot-sdk.website/api/methods/edit-chat-invite-link/
5648
5860
  */
5649
5861
  interface EditChatInviteLinkInput {
5650
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5862
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
5651
5863
  chat_id: number | string;
5652
5864
  /** The invite link to edit */
5653
5865
  invite_link: string;
@@ -5669,7 +5881,7 @@ interface EditChatInviteLinkInput {
5669
5881
  * @see https://tg-bot-sdk.website/api/methods/edit-chat-subscription-invite-link/
5670
5882
  */
5671
5883
  interface EditChatSubscriptionInviteLinkInput {
5672
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
5884
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
5673
5885
  chat_id: number | string;
5674
5886
  /** The invite link to edit */
5675
5887
  invite_link: string;
@@ -5682,7 +5894,7 @@ interface EditChatSubscriptionInviteLinkInput {
5682
5894
  * @see https://tg-bot-sdk.website/api/methods/edit-forum-topic/
5683
5895
  */
5684
5896
  interface EditForumTopicInput {
5685
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
5897
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
5686
5898
  chat_id: number | string;
5687
5899
  /** Unique identifier for the target message thread of the forum topic */
5688
5900
  message_thread_id: number;
@@ -5705,7 +5917,7 @@ interface EditForumTopicInput {
5705
5917
  * @see https://tg-bot-sdk.website/api/methods/edit-general-forum-topic/
5706
5918
  */
5707
5919
  interface EditGeneralForumTopicInput {
5708
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
5920
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
5709
5921
  chat_id: number | string;
5710
5922
  /** New topic name, 1-128 characters */
5711
5923
  name: string;
@@ -5720,7 +5932,7 @@ interface EditMessageCaptionInput {
5720
5932
  business_connection_id?: string;
5721
5933
  /**
5722
5934
  * Required if inline_message_id is not specified
5723
- * Unique identifier for the target chat or username of the target channel (in the format @channelusername)
5935
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username.
5724
5936
  */
5725
5937
  chat_id?: number | string;
5726
5938
  /**
@@ -5757,8 +5969,8 @@ interface EditMessageCaptionInput {
5757
5969
  interface EditMessageChecklistInput {
5758
5970
  /** Unique identifier of the business connection on behalf of which the message will be sent */
5759
5971
  business_connection_id: string;
5760
- /** Unique identifier for the target chat */
5761
- chat_id: number;
5972
+ /** Unique identifier for the target chat or username of the target bot in the format @username */
5973
+ chat_id: number | string;
5762
5974
  /** Unique identifier for the target message */
5763
5975
  message_id: number;
5764
5976
  /** A JSON-serialized object for the new checklist */
@@ -5780,7 +5992,7 @@ interface EditMessageLiveLocationInput {
5780
5992
  business_connection_id?: string;
5781
5993
  /**
5782
5994
  * Required if inline_message_id is not specified
5783
- * Unique identifier for the target chat or username of the target channel (in the format @channelusername)
5995
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username.
5784
5996
  */
5785
5997
  chat_id?: number | string;
5786
5998
  /**
@@ -5816,8 +6028,8 @@ interface EditMessageLiveLocationInput {
5816
6028
  reply_markup?: InlineKeyboardMarkup;
5817
6029
  }
5818
6030
  /**
5819
- * Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages
5820
- * 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
6031
+ * Use this method to edit animation, audio, document, live photo, photo, or video messages, or to add media to text messages
6032
+ * 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
5821
6033
  * 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
5822
6034
  * 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.
5823
6035
  * @see https://tg-bot-sdk.website/api/methods/edit-message-media/
@@ -5829,7 +6041,7 @@ interface EditMessageMediaInput {
5829
6041
  business_connection_id?: string;
5830
6042
  /**
5831
6043
  * Required if inline_message_id is not specified
5832
- * Unique identifier for the target chat or username of the target channel (in the format @channelusername)
6044
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username.
5833
6045
  */
5834
6046
  chat_id?: number | string;
5835
6047
  /**
@@ -5855,7 +6067,7 @@ interface EditMessageReplyMarkupInput {
5855
6067
  business_connection_id?: string;
5856
6068
  /**
5857
6069
  * Required if inline_message_id is not specified
5858
- * Unique identifier for the target chat or username of the target channel (in the format @channelusername)
6070
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username.
5859
6071
  */
5860
6072
  chat_id?: number | string;
5861
6073
  /**
@@ -5883,7 +6095,7 @@ interface EditMessageTextInput {
5883
6095
  business_connection_id?: string;
5884
6096
  /**
5885
6097
  * Required if inline_message_id is not specified
5886
- * Unique identifier for the target chat or username of the target channel (in the format @channelusername)
6098
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username.
5887
6099
  */
5888
6100
  chat_id?: number | string;
5889
6101
  /**
@@ -5953,7 +6165,7 @@ interface EditUserStarSubscriptionInput {
5953
6165
  * @see https://tg-bot-sdk.website/api/methods/export-chat-invite-link/
5954
6166
  */
5955
6167
  interface ExportChatInviteLinkInput {
5956
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
6168
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
5957
6169
  chat_id: number | string;
5958
6170
  }
5959
6171
  /**
@@ -5962,9 +6174,9 @@ interface ExportChatInviteLinkInput {
5962
6174
  * @see https://tg-bot-sdk.website/api/methods/forward-message/
5963
6175
  */
5964
6176
  interface ForwardMessageInput {
5965
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
6177
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
5966
6178
  chat_id: number | string;
5967
- /** Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername) */
6179
+ /** Unique identifier for the chat where the original message was sent (or username of the target bot, supergroup or channel in the format @username) */
5968
6180
  from_chat_id: number | string;
5969
6181
  /** Message identifier in the chat specified in from_chat_id */
5970
6182
  message_id: number;
@@ -5994,9 +6206,9 @@ interface ForwardMessageInput {
5994
6206
  * @see https://tg-bot-sdk.website/api/methods/forward-messages/
5995
6207
  */
5996
6208
  interface ForwardMessagesInput {
5997
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
6209
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
5998
6210
  chat_id: number | string;
5999
- /** Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername) */
6211
+ /** Unique identifier for the chat where the original messages were sent (or username of the target bot, supergroup or channel in the format @username) */
6000
6212
  from_chat_id: number | string;
6001
6213
  /**
6002
6214
  * A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to forward
@@ -6079,23 +6291,28 @@ interface GetBusinessConnectionInput {
6079
6291
  * @see https://tg-bot-sdk.website/api/methods/get-chat/
6080
6292
  */
6081
6293
  interface GetChatInput {
6082
- /** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
6294
+ /** Unique identifier for the target chat or username of the target supergroup or channel in the format @username */
6083
6295
  chat_id: number | string;
6084
6296
  }
6085
6297
  /**
6086
- * Use this method to get a list of administrators in a chat, which aren't bots
6298
+ * Use this method to get a list of administrators in a chat
6087
6299
  * @see https://tg-bot-sdk.website/api/methods/get-chat-administrators/
6088
6300
  */
6089
6301
  interface GetChatAdministratorsInput {
6090
- /** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
6302
+ /** Unique identifier for the target chat or username of the target supergroup or channel in the format @username */
6091
6303
  chat_id: number | string;
6304
+ /**
6305
+ * Pass True to additionally receive all bots that are administrators of the chat
6306
+ * By default, bots other than the current bot are omitted.
6307
+ */
6308
+ return_bots?: boolean;
6092
6309
  }
6093
6310
  /**
6094
6311
  * Returns the gifts owned by a chat
6095
6312
  * @see https://tg-bot-sdk.website/api/methods/get-chat-gifts/
6096
6313
  */
6097
6314
  interface GetChatGiftsInput {
6098
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
6315
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
6099
6316
  chat_id: number | string;
6100
6317
  /**
6101
6318
  * Pass True to exclude gifts that aren't saved to the chat's profile page
@@ -6136,7 +6353,7 @@ interface GetChatGiftsInput {
6136
6353
  * @see https://tg-bot-sdk.website/api/methods/get-chat-member/
6137
6354
  */
6138
6355
  interface GetChatMemberInput {
6139
- /** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
6356
+ /** Unique identifier for the target chat or username of the target supergroup or channel in the format @username */
6140
6357
  chat_id: number | string;
6141
6358
  /** Unique identifier of the target user */
6142
6359
  user_id: number;
@@ -6146,7 +6363,7 @@ interface GetChatMemberInput {
6146
6363
  * @see https://tg-bot-sdk.website/api/methods/get-chat-member-count/
6147
6364
  */
6148
6365
  interface GetChatMemberCountInput {
6149
- /** Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername) */
6366
+ /** Unique identifier for the target chat or username of the target supergroup or channel in the format @username */
6150
6367
  chat_id: number | string;
6151
6368
  }
6152
6369
  /**
@@ -6217,6 +6434,14 @@ interface GetGameHighScoresInput {
6217
6434
  */
6218
6435
  inline_message_id?: string;
6219
6436
  }
6437
+ /**
6438
+ * Use this method to get the access settings of a managed bot
6439
+ * @see https://tg-bot-sdk.website/api/methods/get-managed-bot-access-settings/
6440
+ */
6441
+ interface GetManagedBotAccessSettingsInput {
6442
+ /** User identifier of the managed bot whose access settings will be returned */
6443
+ user_id: number;
6444
+ }
6220
6445
  /**
6221
6446
  * Use this method to get the token of a managed bot
6222
6447
  * @see https://tg-bot-sdk.website/api/methods/get-managed-bot-token/
@@ -6353,7 +6578,7 @@ interface GetUpdatesInput {
6353
6578
  * @see https://tg-bot-sdk.website/api/methods/get-user-chat-boosts/
6354
6579
  */
6355
6580
  interface GetUserChatBoostsInput {
6356
- /** Unique identifier for the chat or username of the channel (in the format @channelusername) */
6581
+ /** Unique identifier for the chat or username of the channel in the format @username */
6357
6582
  chat_id: number | string;
6358
6583
  /** Unique identifier of the target user */
6359
6584
  user_id: number;
@@ -6388,6 +6613,16 @@ interface GetUserGiftsInput {
6388
6613
  */
6389
6614
  limit?: number;
6390
6615
  }
6616
+ /**
6617
+ * Use this method to get the last messages from the personal chat (i.e., the chat currently added to their profile) of a given user
6618
+ * @see https://tg-bot-sdk.website/api/methods/get-user-personal-chat-messages/
6619
+ */
6620
+ interface GetUserPersonalChatMessagesInput {
6621
+ /** Unique identifier for the target user */
6622
+ user_id: number;
6623
+ /** The maximum number of messages to return; 1-20 */
6624
+ limit: number;
6625
+ }
6391
6626
  /**
6392
6627
  * Use this method to get a list of profile audios for a user
6393
6628
  * @see https://tg-bot-sdk.website/api/methods/get-user-profile-audios/
@@ -6467,7 +6702,7 @@ interface GiftPremiumSubscriptionInput {
6467
6702
  * @see https://tg-bot-sdk.website/api/methods/hide-general-forum-topic/
6468
6703
  */
6469
6704
  interface HideGeneralForumTopicInput {
6470
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
6705
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
6471
6706
  chat_id: number | string;
6472
6707
  }
6473
6708
  /**
@@ -6476,7 +6711,7 @@ interface HideGeneralForumTopicInput {
6476
6711
  */
6477
6712
  interface LeaveChatInput {
6478
6713
  /**
6479
- * Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
6714
+ * Unique identifier for the target chat or username of the target supergroup or channel in the format @username
6480
6715
  * Channel direct messages chats aren't supported; leave the corresponding channel instead.
6481
6716
  */
6482
6717
  chat_id: number | string;
@@ -6497,7 +6732,7 @@ interface LogOutInput {
6497
6732
  * @see https://tg-bot-sdk.website/api/methods/pin-chat-message/
6498
6733
  */
6499
6734
  interface PinChatMessageInput {
6500
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
6735
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
6501
6736
  chat_id: number | string;
6502
6737
  /** Identifier of a message to pin */
6503
6738
  message_id: number;
@@ -6544,7 +6779,7 @@ interface PostStoryInput {
6544
6779
  * @see https://tg-bot-sdk.website/api/methods/promote-chat-member/
6545
6780
  */
6546
6781
  interface PromoteChatMemberInput {
6547
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
6782
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
6548
6783
  chat_id: number | string;
6549
6784
  /** Unique identifier of the target user */
6550
6785
  user_id: number;
@@ -6634,7 +6869,7 @@ interface RemoveBusinessAccountProfilePhotoInput {
6634
6869
  * @see https://tg-bot-sdk.website/api/methods/remove-chat-verification/
6635
6870
  */
6636
6871
  interface RemoveChatVerificationInput {
6637
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
6872
+ /** Unique identifier for the target chat or username of the target bot or channel in the format @username */
6638
6873
  chat_id: number | string;
6639
6874
  }
6640
6875
  /**
@@ -6658,7 +6893,7 @@ interface RemoveUserVerificationInput {
6658
6893
  * @see https://tg-bot-sdk.website/api/methods/reopen-forum-topic/
6659
6894
  */
6660
6895
  interface ReopenForumTopicInput {
6661
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
6896
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
6662
6897
  chat_id: number | string;
6663
6898
  /** Unique identifier for the target message thread of the forum topic */
6664
6899
  message_thread_id: number;
@@ -6670,7 +6905,7 @@ interface ReopenForumTopicInput {
6670
6905
  * @see https://tg-bot-sdk.website/api/methods/reopen-general-forum-topic/
6671
6906
  */
6672
6907
  interface ReopenGeneralForumTopicInput {
6673
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
6908
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
6674
6909
  chat_id: number | string;
6675
6910
  }
6676
6911
  /**
@@ -6726,7 +6961,7 @@ interface RepostStoryInput {
6726
6961
  * @see https://tg-bot-sdk.website/api/methods/restrict-chat-member/
6727
6962
  */
6728
6963
  interface RestrictChatMemberInput {
6729
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
6964
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
6730
6965
  chat_id: number | string;
6731
6966
  /** Unique identifier of the target user */
6732
6967
  user_id: number;
@@ -6750,7 +6985,7 @@ interface RestrictChatMemberInput {
6750
6985
  * @see https://tg-bot-sdk.website/api/methods/revoke-chat-invite-link/
6751
6986
  */
6752
6987
  interface RevokeChatInviteLinkInput {
6753
- /** Unique identifier of the target chat or username of the target channel (in the format @channelusername) */
6988
+ /** Unique identifier of the target chat or username of the target channel in the format @username */
6754
6989
  chat_id: number | string;
6755
6990
  /** The invite link to revoke */
6756
6991
  invite_link: string;
@@ -6792,7 +7027,7 @@ interface SavePreparedKeyboardButtonInput {
6792
7027
  * @see https://tg-bot-sdk.website/api/methods/send-animation/
6793
7028
  */
6794
7029
  interface SendAnimationInput {
6795
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7030
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
6796
7031
  chat_id: number | string;
6797
7032
  /**
6798
7033
  * Animation to send
@@ -6843,7 +7078,7 @@ interface SendAnimationInput {
6843
7078
  protect_content?: boolean;
6844
7079
  /**
6845
7080
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
6846
- * The relevant Stars will be withdrawn from the bot's balance
7081
+ * The relevant Stars will be withdrawn from the bot's balance.
6847
7082
  */
6848
7083
  allow_paid_broadcast?: boolean;
6849
7084
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -6869,7 +7104,7 @@ interface SendAnimationInput {
6869
7104
  * @see https://tg-bot-sdk.website/api/methods/send-audio/
6870
7105
  */
6871
7106
  interface SendAudioInput {
6872
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7107
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
6873
7108
  chat_id: number | string;
6874
7109
  /**
6875
7110
  * Audio file to send
@@ -6916,7 +7151,7 @@ interface SendAudioInput {
6916
7151
  protect_content?: boolean;
6917
7152
  /**
6918
7153
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
6919
- * The relevant Stars will be withdrawn from the bot's balance
7154
+ * The relevant Stars will be withdrawn from the bot's balance.
6920
7155
  */
6921
7156
  allow_paid_broadcast?: boolean;
6922
7157
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -6945,7 +7180,7 @@ interface SendAudioInput {
6945
7180
  */
6946
7181
  interface SendChatActionInput {
6947
7182
  /**
6948
- * Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
7183
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
6949
7184
  * Channel chats and channel direct messages chats aren't supported.
6950
7185
  */
6951
7186
  chat_id: number | string;
@@ -6966,8 +7201,8 @@ interface SendChatActionInput {
6966
7201
  interface SendChecklistInput {
6967
7202
  /** Unique identifier of the business connection on behalf of which the message will be sent */
6968
7203
  business_connection_id: string;
6969
- /** Unique identifier for the target chat */
6970
- chat_id: number;
7204
+ /** Unique identifier for the target chat or username of the target bot in the format @username */
7205
+ chat_id: number | string;
6971
7206
  /** A JSON-serialized object for the checklist to send */
6972
7207
  checklist: InputChecklist;
6973
7208
  /**
@@ -6989,7 +7224,7 @@ interface SendChecklistInput {
6989
7224
  * @see https://tg-bot-sdk.website/api/methods/send-contact/
6990
7225
  */
6991
7226
  interface SendContactInput {
6992
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7227
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
6993
7228
  chat_id: number | string;
6994
7229
  /** Contact's phone number */
6995
7230
  phone_number: string;
@@ -7014,7 +7249,7 @@ interface SendContactInput {
7014
7249
  protect_content?: boolean;
7015
7250
  /**
7016
7251
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7017
- * The relevant Stars will be withdrawn from the bot's balance
7252
+ * The relevant Stars will be withdrawn from the bot's balance.
7018
7253
  */
7019
7254
  allow_paid_broadcast?: boolean;
7020
7255
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7037,7 +7272,7 @@ interface SendContactInput {
7037
7272
  * @see https://tg-bot-sdk.website/api/methods/send-dice/
7038
7273
  */
7039
7274
  interface SendDiceInput {
7040
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7275
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7041
7276
  chat_id: number | string;
7042
7277
  /** Unique identifier of the business connection on behalf of which the message will be sent */
7043
7278
  business_connection_id?: string;
@@ -7061,7 +7296,7 @@ interface SendDiceInput {
7061
7296
  protect_content?: boolean;
7062
7297
  /**
7063
7298
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7064
- * The relevant Stars will be withdrawn from the bot's balance
7299
+ * The relevant Stars will be withdrawn from the bot's balance.
7065
7300
  */
7066
7301
  allow_paid_broadcast?: boolean;
7067
7302
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7085,7 +7320,7 @@ interface SendDiceInput {
7085
7320
  * @see https://tg-bot-sdk.website/api/methods/send-document/
7086
7321
  */
7087
7322
  interface SendDocumentInput {
7088
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7323
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7089
7324
  chat_id: number | string;
7090
7325
  /**
7091
7326
  * File to send
@@ -7128,7 +7363,7 @@ interface SendDocumentInput {
7128
7363
  protect_content?: boolean;
7129
7364
  /**
7130
7365
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7131
- * The relevant Stars will be withdrawn from the bot's balance
7366
+ * The relevant Stars will be withdrawn from the bot's balance.
7132
7367
  */
7133
7368
  allow_paid_broadcast?: boolean;
7134
7369
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7152,10 +7387,10 @@ interface SendDocumentInput {
7152
7387
  */
7153
7388
  interface SendGameInput {
7154
7389
  /**
7155
- * Unique identifier for the target chat
7390
+ * Unique identifier for the target chat or username of the target bot in the format @username
7156
7391
  * Games can't be sent to channel direct messages chats and channel chats.
7157
7392
  */
7158
- chat_id: number;
7393
+ chat_id: number | string;
7159
7394
  /**
7160
7395
  * Short name of the game, serves as the unique identifier for the game
7161
7396
  * Set up your games via @BotFather.
@@ -7174,7 +7409,7 @@ interface SendGameInput {
7174
7409
  protect_content?: boolean;
7175
7410
  /**
7176
7411
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7177
- * The relevant Stars will be withdrawn from the bot's balance
7412
+ * The relevant Stars will be withdrawn from the bot's balance.
7178
7413
  */
7179
7414
  allow_paid_broadcast?: boolean;
7180
7415
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7203,7 +7438,7 @@ interface SendGiftInput {
7203
7438
  user_id?: number;
7204
7439
  /**
7205
7440
  * Required if user_id is not specified
7206
- * Unique identifier for the chat or username of the channel (in the format @channelusername) that will receive the gift.
7441
+ * Unique identifier for the chat or username of the channel (in the format @username) that will receive the gift.
7207
7442
  */
7208
7443
  chat_id?: number | string;
7209
7444
  /** Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver */
@@ -7228,7 +7463,7 @@ interface SendGiftInput {
7228
7463
  * @see https://tg-bot-sdk.website/api/methods/send-invoice/
7229
7464
  */
7230
7465
  interface SendInvoiceInput {
7231
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7466
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7232
7467
  chat_id: number | string;
7233
7468
  /** Product name, 1-32 characters */
7234
7469
  title: string;
@@ -7340,7 +7575,7 @@ interface SendInvoiceInput {
7340
7575
  protect_content?: boolean;
7341
7576
  /**
7342
7577
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7343
- * The relevant Stars will be withdrawn from the bot's balance
7578
+ * The relevant Stars will be withdrawn from the bot's balance.
7344
7579
  */
7345
7580
  allow_paid_broadcast?: boolean;
7346
7581
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7359,12 +7594,80 @@ interface SendInvoiceInput {
7359
7594
  */
7360
7595
  reply_markup?: InlineKeyboardMarkup;
7361
7596
  }
7597
+ /**
7598
+ * Use this method to send live photos
7599
+ * @see https://tg-bot-sdk.website/api/methods/send-live-photo/
7600
+ */
7601
+ interface SendLivePhotoInput {
7602
+ /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7603
+ chat_id: number | string;
7604
+ /**
7605
+ * Live photo video to send
7606
+ * The video must be no longer than 10 seconds and must not exceed 10 MB in size
7607
+ * Pass a file_id as String to send a video that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data
7608
+ * More information on Sending Files »
7609
+ * Sending live photos by a URL is currently unsupported.
7610
+ */
7611
+ live_photo: InputFile | string;
7612
+ /**
7613
+ * The static photo to send
7614
+ * Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data
7615
+ * More information on Sending Files »
7616
+ * Sending live photos by a URL is currently unsupported.
7617
+ */
7618
+ photo: InputFile | string;
7619
+ /** Unique identifier of the business connection on behalf of which the message will be sent */
7620
+ business_connection_id?: string;
7621
+ /** Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only */
7622
+ message_thread_id?: number;
7623
+ /** Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat */
7624
+ direct_messages_topic_id?: number;
7625
+ /** Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing */
7626
+ caption?: string;
7627
+ /**
7628
+ * Mode for parsing entities in the video caption
7629
+ * See formatting options for more details.
7630
+ */
7631
+ parse_mode?: "HTML" | "MarkdownV2";
7632
+ /** A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode */
7633
+ caption_entities?: MessageEntity[];
7634
+ /** Pass True, if the caption must be shown above the message media */
7635
+ show_caption_above_media?: boolean;
7636
+ /** Pass True if the video needs to be covered with a spoiler animation */
7637
+ has_spoiler?: boolean;
7638
+ /**
7639
+ * Sends the message silently
7640
+ * Users will receive a notification with no sound.
7641
+ */
7642
+ disable_notification?: boolean;
7643
+ /** Protects the contents of the sent message from forwarding and saving */
7644
+ protect_content?: boolean;
7645
+ /**
7646
+ * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7647
+ * The relevant Stars will be withdrawn from the bot's balance.
7648
+ */
7649
+ allow_paid_broadcast?: boolean;
7650
+ /** Unique identifier of the message effect to be added to the message; for private chats only */
7651
+ message_effect_id?: string;
7652
+ /**
7653
+ * A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only
7654
+ * If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
7655
+ */
7656
+ suggested_post_parameters?: SuggestedPostParameters;
7657
+ /** Description of the message to reply to */
7658
+ reply_parameters?: ReplyParameters;
7659
+ /**
7660
+ * Additional interface options
7661
+ * A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user.
7662
+ */
7663
+ reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
7664
+ }
7362
7665
  /**
7363
7666
  * Use this method to send point on the map
7364
7667
  * @see https://tg-bot-sdk.website/api/methods/send-location/
7365
7668
  */
7366
7669
  interface SendLocationInput {
7367
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7670
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7368
7671
  chat_id: number | string;
7369
7672
  /** Latitude of the location */
7370
7673
  latitude: number;
@@ -7399,7 +7702,7 @@ interface SendLocationInput {
7399
7702
  protect_content?: boolean;
7400
7703
  /**
7401
7704
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7402
- * The relevant Stars will be withdrawn from the bot's balance
7705
+ * The relevant Stars will be withdrawn from the bot's balance.
7403
7706
  */
7404
7707
  allow_paid_broadcast?: boolean;
7405
7708
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7418,13 +7721,13 @@ interface SendLocationInput {
7418
7721
  reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
7419
7722
  }
7420
7723
  /**
7421
- * Use this method to send a group of photos, videos, documents or audios as an album
7724
+ * Use this method to send a group of photos, live photos, videos, documents or audios as an album
7422
7725
  * Documents and audio files can be only grouped in an album with messages of the same type
7423
7726
  * On success, an array of Message objects that were sent is returned.
7424
7727
  * @see https://tg-bot-sdk.website/api/methods/send-media-group/
7425
7728
  */
7426
7729
  interface SendMediaGroupInput {
7427
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7730
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7428
7731
  chat_id: number | string;
7429
7732
  /** A JSON-serialized array describing messages to be sent, must include 2-10 items */
7430
7733
  media: (InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo)[];
@@ -7443,7 +7746,7 @@ interface SendMediaGroupInput {
7443
7746
  protect_content?: boolean;
7444
7747
  /**
7445
7748
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7446
- * The relevant Stars will be withdrawn from the bot's balance
7749
+ * The relevant Stars will be withdrawn from the bot's balance.
7447
7750
  */
7448
7751
  allow_paid_broadcast?: boolean;
7449
7752
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7456,7 +7759,7 @@ interface SendMediaGroupInput {
7456
7759
  * @see https://tg-bot-sdk.website/api/methods/send-message/
7457
7760
  */
7458
7761
  interface SendMessageInput {
7459
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7762
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7460
7763
  chat_id: number | string;
7461
7764
  /** Text of the message to be sent, 1-4096 characters after entities parsing */
7462
7765
  text: string;
@@ -7484,7 +7787,7 @@ interface SendMessageInput {
7484
7787
  protect_content?: boolean;
7485
7788
  /**
7486
7789
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7487
- * The relevant Stars will be withdrawn from the bot's balance
7790
+ * The relevant Stars will be withdrawn from the bot's balance.
7488
7791
  */
7489
7792
  allow_paid_broadcast?: boolean;
7490
7793
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7504,6 +7807,7 @@ interface SendMessageInput {
7504
7807
  }
7505
7808
  /**
7506
7809
  * Use this method to stream a partial message to a user while the message is being generated
7810
+ * Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you must call sendMessage with the complete message to persist it in the user's chat
7507
7811
  * @see https://tg-bot-sdk.website/api/methods/send-message-draft/
7508
7812
  */
7509
7813
  interface SendMessageDraftInput {
@@ -7511,13 +7815,16 @@ interface SendMessageDraftInput {
7511
7815
  chat_id: number;
7512
7816
  /**
7513
7817
  * Unique identifier of the message draft; must be non-zero
7514
- * Changes of drafts with the same identifier are animated
7818
+ * Changes of drafts with the same identifier are animated.
7515
7819
  */
7516
7820
  draft_id: number;
7517
- /** Text of the message to be sent, 1-4096 characters after entities parsing */
7518
- text: string;
7519
7821
  /** Unique identifier for the target message thread */
7520
7822
  message_thread_id?: number;
7823
+ /**
7824
+ * Text of the message to be sent, 0-4096 characters after entities parsing
7825
+ * Pass an empty text to show a “Thinking…” placeholder.
7826
+ */
7827
+ text?: string;
7521
7828
  /**
7522
7829
  * Mode for parsing entities in the message text
7523
7830
  * See formatting options for more details.
@@ -7532,7 +7839,7 @@ interface SendMessageDraftInput {
7532
7839
  */
7533
7840
  interface SendPaidMediaInput {
7534
7841
  /**
7535
- * Unique identifier for the target chat or username of the target channel (in the format @channelusername)
7842
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
7536
7843
  * If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance
7537
7844
  * Otherwise, they will be credited to the bot's balance.
7538
7845
  */
@@ -7572,7 +7879,7 @@ interface SendPaidMediaInput {
7572
7879
  protect_content?: boolean;
7573
7880
  /**
7574
7881
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7575
- * The relevant Stars will be withdrawn from the bot's balance
7882
+ * The relevant Stars will be withdrawn from the bot's balance.
7576
7883
  */
7577
7884
  allow_paid_broadcast?: boolean;
7578
7885
  /**
@@ -7593,7 +7900,7 @@ interface SendPaidMediaInput {
7593
7900
  * @see https://tg-bot-sdk.website/api/methods/send-photo/
7594
7901
  */
7595
7902
  interface SendPhotoInput {
7596
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
7903
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7597
7904
  chat_id: number | string;
7598
7905
  /**
7599
7906
  * Photo to send
@@ -7632,7 +7939,7 @@ interface SendPhotoInput {
7632
7939
  protect_content?: boolean;
7633
7940
  /**
7634
7941
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7635
- * The relevant Stars will be withdrawn from the bot's balance
7942
+ * The relevant Stars will be withdrawn from the bot's balance.
7636
7943
  */
7637
7944
  allow_paid_broadcast?: boolean;
7638
7945
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7656,13 +7963,13 @@ interface SendPhotoInput {
7656
7963
  */
7657
7964
  interface SendPollInput {
7658
7965
  /**
7659
- * Unique identifier for the target chat or username of the target channel (in the format @channelusername)
7966
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
7660
7967
  * Polls can't be sent to channel direct messages chats.
7661
7968
  */
7662
7969
  chat_id: number | string;
7663
7970
  /** Poll question, 1-300 characters */
7664
7971
  question: string;
7665
- /** A JSON-serialized list of 2-12 answer options */
7972
+ /** A JSON-serialized list of 1-12 answer options */
7666
7973
  options: InputPollOption[];
7667
7974
  /** Unique identifier of the business connection on behalf of which the message will be sent */
7668
7975
  business_connection_id?: string;
@@ -7693,6 +8000,13 @@ interface SendPollInput {
7693
8000
  allow_adding_options?: boolean;
7694
8001
  /** Pass True, if poll results must be shown only after the poll closes */
7695
8002
  hide_results_until_closes?: boolean;
8003
+ /** Pass True, if voting is limited to users who have been members of the chat where the poll is being sent for more than 24 hours; for channel chats only */
8004
+ members_only?: boolean;
8005
+ /**
8006
+ * A JSON-serialized list of 0-12 two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which users can vote in the poll; for channel chats only
8007
+ * If omitted or empty, then users from any country can participate in the poll.
8008
+ */
8009
+ country_codes?: string[];
7696
8010
  /** A JSON-serialized list of monotonically increasing 0-based identifiers of the correct answer options, required for polls in quiz mode */
7697
8011
  correct_option_ids?: number[];
7698
8012
  /** Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing */
@@ -7707,6 +8021,8 @@ interface SendPollInput {
7707
8021
  * It can be specified instead of explanation_parse_mode
7708
8022
  */
7709
8023
  explanation_entities?: MessageEntity[];
8024
+ /** Media added to the quiz explanation */
8025
+ explanation_media?: InputPollMedia;
7710
8026
  /**
7711
8027
  * Amount of time in seconds the poll will be active after creation, 5-2628000
7712
8028
  * Can't be used together with close_date.
@@ -7732,6 +8048,8 @@ interface SendPollInput {
7732
8048
  description_parse_mode?: "HTML" | "MarkdownV2";
7733
8049
  /** A JSON-serialized list of special entities that appear in the poll description, which can be specified instead of description_parse_mode */
7734
8050
  description_entities?: MessageEntity[];
8051
+ /** Media added to the poll description */
8052
+ media?: InputPollMedia;
7735
8053
  /**
7736
8054
  * Sends the message silently
7737
8055
  * Users will receive a notification with no sound.
@@ -7741,7 +8059,7 @@ interface SendPollInput {
7741
8059
  protect_content?: boolean;
7742
8060
  /**
7743
8061
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7744
- * The relevant Stars will be withdrawn from the bot's balance
8062
+ * The relevant Stars will be withdrawn from the bot's balance.
7745
8063
  */
7746
8064
  allow_paid_broadcast?: boolean;
7747
8065
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7759,7 +8077,7 @@ interface SendPollInput {
7759
8077
  * @see https://tg-bot-sdk.website/api/methods/send-sticker/
7760
8078
  */
7761
8079
  interface SendStickerInput {
7762
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8080
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7763
8081
  chat_id: number | string;
7764
8082
  /**
7765
8083
  * Sticker to send
@@ -7785,7 +8103,7 @@ interface SendStickerInput {
7785
8103
  protect_content?: boolean;
7786
8104
  /**
7787
8105
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7788
- * The relevant Stars will be withdrawn from the bot's balance
8106
+ * The relevant Stars will be withdrawn from the bot's balance.
7789
8107
  */
7790
8108
  allow_paid_broadcast?: boolean;
7791
8109
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7808,7 +8126,7 @@ interface SendStickerInput {
7808
8126
  * @see https://tg-bot-sdk.website/api/methods/send-venue/
7809
8127
  */
7810
8128
  interface SendVenueInput {
7811
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8129
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7812
8130
  chat_id: number | string;
7813
8131
  /** Latitude of the venue */
7814
8132
  latitude: number;
@@ -7847,7 +8165,7 @@ interface SendVenueInput {
7847
8165
  protect_content?: boolean;
7848
8166
  /**
7849
8167
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7850
- * The relevant Stars will be withdrawn from the bot's balance
8168
+ * The relevant Stars will be withdrawn from the bot's balance.
7851
8169
  */
7852
8170
  allow_paid_broadcast?: boolean;
7853
8171
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7871,7 +8189,7 @@ interface SendVenueInput {
7871
8189
  * @see https://tg-bot-sdk.website/api/methods/send-video/
7872
8190
  */
7873
8191
  interface SendVideoInput {
7874
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8192
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7875
8193
  chat_id: number | string;
7876
8194
  /**
7877
8195
  * Video to send
@@ -7932,7 +8250,7 @@ interface SendVideoInput {
7932
8250
  protect_content?: boolean;
7933
8251
  /**
7934
8252
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7935
- * The relevant Stars will be withdrawn from the bot's balance
8253
+ * The relevant Stars will be withdrawn from the bot's balance.
7936
8254
  */
7937
8255
  allow_paid_broadcast?: boolean;
7938
8256
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -7956,7 +8274,7 @@ interface SendVideoInput {
7956
8274
  * @see https://tg-bot-sdk.website/api/methods/send-video-note/
7957
8275
  */
7958
8276
  interface SendVideoNoteInput {
7959
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8277
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
7960
8278
  chat_id: number | string;
7961
8279
  /**
7962
8280
  * Video note to send
@@ -7996,7 +8314,7 @@ interface SendVideoNoteInput {
7996
8314
  protect_content?: boolean;
7997
8315
  /**
7998
8316
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
7999
- * The relevant Stars will be withdrawn from the bot's balance
8317
+ * The relevant Stars will be withdrawn from the bot's balance.
8000
8318
  */
8001
8319
  allow_paid_broadcast?: boolean;
8002
8320
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -8021,7 +8339,7 @@ interface SendVideoNoteInput {
8021
8339
  * @see https://tg-bot-sdk.website/api/methods/send-voice/
8022
8340
  */
8023
8341
  interface SendVoiceInput {
8024
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8342
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
8025
8343
  chat_id: number | string;
8026
8344
  /**
8027
8345
  * Audio file to send
@@ -8055,7 +8373,7 @@ interface SendVoiceInput {
8055
8373
  protect_content?: boolean;
8056
8374
  /**
8057
8375
  * Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message
8058
- * The relevant Stars will be withdrawn from the bot's balance
8376
+ * The relevant Stars will be withdrawn from the bot's balance.
8059
8377
  */
8060
8378
  allow_paid_broadcast?: boolean;
8061
8379
  /** Unique identifier of the message effect to be added to the message; for private chats only */
@@ -8142,7 +8460,7 @@ interface SetBusinessAccountUsernameInput {
8142
8460
  * @see https://tg-bot-sdk.website/api/methods/set-chat-administrator-custom-title/
8143
8461
  */
8144
8462
  interface SetChatAdministratorCustomTitleInput {
8145
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
8463
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
8146
8464
  chat_id: number | string;
8147
8465
  /** Unique identifier of the target user */
8148
8466
  user_id: number;
@@ -8155,7 +8473,7 @@ interface SetChatAdministratorCustomTitleInput {
8155
8473
  * @see https://tg-bot-sdk.website/api/methods/set-chat-description/
8156
8474
  */
8157
8475
  interface SetChatDescriptionInput {
8158
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8476
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
8159
8477
  chat_id: number | string;
8160
8478
  /** New chat description, 0-255 characters */
8161
8479
  description?: string;
@@ -8166,7 +8484,7 @@ interface SetChatDescriptionInput {
8166
8484
  * @see https://tg-bot-sdk.website/api/methods/set-chat-member-tag/
8167
8485
  */
8168
8486
  interface SetChatMemberTagInput {
8169
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
8487
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
8170
8488
  chat_id: number | string;
8171
8489
  /** Unique identifier of the target user */
8172
8490
  user_id: number;
@@ -8195,7 +8513,7 @@ interface SetChatMenuButtonInput {
8195
8513
  * @see https://tg-bot-sdk.website/api/methods/set-chat-permissions/
8196
8514
  */
8197
8515
  interface SetChatPermissionsInput {
8198
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
8516
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
8199
8517
  chat_id: number | string;
8200
8518
  /** A JSON-serialized object for new default chat permissions */
8201
8519
  permissions: ChatPermissions;
@@ -8212,7 +8530,7 @@ interface SetChatPermissionsInput {
8212
8530
  * @see https://tg-bot-sdk.website/api/methods/set-chat-photo/
8213
8531
  */
8214
8532
  interface SetChatPhotoInput {
8215
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8533
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
8216
8534
  chat_id: number | string;
8217
8535
  /** New chat photo, uploaded using multipart/form-data */
8218
8536
  photo: InputFile;
@@ -8224,7 +8542,7 @@ interface SetChatPhotoInput {
8224
8542
  * @see https://tg-bot-sdk.website/api/methods/set-chat-sticker-set/
8225
8543
  */
8226
8544
  interface SetChatStickerSetInput {
8227
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
8545
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
8228
8546
  chat_id: number | string;
8229
8547
  /** Name of the sticker set to be set as the group sticker set */
8230
8548
  sticker_set_name: string;
@@ -8236,7 +8554,7 @@ interface SetChatStickerSetInput {
8236
8554
  * @see https://tg-bot-sdk.website/api/methods/set-chat-title/
8237
8555
  */
8238
8556
  interface SetChatTitleInput {
8239
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8557
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
8240
8558
  chat_id: number | string;
8241
8559
  /** New chat title, 1-128 characters */
8242
8560
  title: string;
@@ -8283,6 +8601,24 @@ interface SetGameScoreInput {
8283
8601
  */
8284
8602
  inline_message_id?: string;
8285
8603
  }
8604
+ /**
8605
+ * Use this method to change the access settings of a managed bot
8606
+ * @see https://tg-bot-sdk.website/api/methods/set-managed-bot-access-settings/
8607
+ */
8608
+ interface SetManagedBotAccessSettingsInput {
8609
+ /** User identifier of the managed bot whose access settings will be changed */
8610
+ user_id: number;
8611
+ /**
8612
+ * Pass True, if only selected users can access the bot
8613
+ * The bot's owner can always access it.
8614
+ */
8615
+ is_access_restricted: boolean;
8616
+ /**
8617
+ * A JSON-serialized list of up to 10 identifiers of users who will have access to the bot in addition to its owner
8618
+ * Ignored if is_access_restricted is false.
8619
+ */
8620
+ added_user_ids?: number[];
8621
+ }
8286
8622
  /**
8287
8623
  * Use this method to change the chosen reactions on a message
8288
8624
  * Service messages of some types can't be reacted to
@@ -8291,7 +8627,7 @@ interface SetGameScoreInput {
8291
8627
  * @see https://tg-bot-sdk.website/api/methods/set-message-reaction/
8292
8628
  */
8293
8629
  interface SetMessageReactionInput {
8294
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8630
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
8295
8631
  chat_id: number | string;
8296
8632
  /**
8297
8633
  * Identifier of the target message
@@ -8563,7 +8899,7 @@ interface StopMessageLiveLocationInput {
8563
8899
  business_connection_id?: string;
8564
8900
  /**
8565
8901
  * Required if inline_message_id is not specified
8566
- * Unique identifier for the target chat or username of the target channel (in the format @channelusername)
8902
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username.
8567
8903
  */
8568
8904
  chat_id?: number | string;
8569
8905
  /**
@@ -8584,7 +8920,7 @@ interface StopMessageLiveLocationInput {
8584
8920
  * @see https://tg-bot-sdk.website/api/methods/stop-poll/
8585
8921
  */
8586
8922
  interface StopPollInput {
8587
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8923
+ /** Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username */
8588
8924
  chat_id: number | string;
8589
8925
  /** Identifier of the original message with the poll */
8590
8926
  message_id: number;
@@ -8636,7 +8972,7 @@ interface TransferGiftInput {
8636
8972
  * @see https://tg-bot-sdk.website/api/methods/unban-chat-member/
8637
8973
  */
8638
8974
  interface UnbanChatMemberInput {
8639
- /** Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername) */
8975
+ /** Unique identifier for the target group or username of the target supergroup or channel in the format @username */
8640
8976
  chat_id: number | string;
8641
8977
  /** Unique identifier of the target user */
8642
8978
  user_id: number;
@@ -8649,7 +8985,7 @@ interface UnbanChatMemberInput {
8649
8985
  * @see https://tg-bot-sdk.website/api/methods/unban-chat-sender-chat/
8650
8986
  */
8651
8987
  interface UnbanChatSenderChatInput {
8652
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
8988
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
8653
8989
  chat_id: number | string;
8654
8990
  /** Unique identifier of the target sender chat */
8655
8991
  sender_chat_id: number;
@@ -8660,7 +8996,7 @@ interface UnbanChatSenderChatInput {
8660
8996
  * @see https://tg-bot-sdk.website/api/methods/unhide-general-forum-topic/
8661
8997
  */
8662
8998
  interface UnhideGeneralForumTopicInput {
8663
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
8999
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
8664
9000
  chat_id: number | string;
8665
9001
  }
8666
9002
  /**
@@ -8670,7 +9006,7 @@ interface UnhideGeneralForumTopicInput {
8670
9006
  * @see https://tg-bot-sdk.website/api/methods/unpin-all-chat-messages/
8671
9007
  */
8672
9008
  interface UnpinAllChatMessagesInput {
8673
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
9009
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
8674
9010
  chat_id: number | string;
8675
9011
  }
8676
9012
  /**
@@ -8679,7 +9015,7 @@ interface UnpinAllChatMessagesInput {
8679
9015
  * @see https://tg-bot-sdk.website/api/methods/unpin-all-forum-topic-messages/
8680
9016
  */
8681
9017
  interface UnpinAllForumTopicMessagesInput {
8682
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
9018
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
8683
9019
  chat_id: number | string;
8684
9020
  /** Unique identifier for the target message thread of the forum topic */
8685
9021
  message_thread_id: number;
@@ -8690,7 +9026,7 @@ interface UnpinAllForumTopicMessagesInput {
8690
9026
  * @see https://tg-bot-sdk.website/api/methods/unpin-all-general-forum-topic-messages/
8691
9027
  */
8692
9028
  interface UnpinAllGeneralForumTopicMessagesInput {
8693
- /** Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) */
9029
+ /** Unique identifier for the target chat or username of the target supergroup in the format @username */
8694
9030
  chat_id: number | string;
8695
9031
  }
8696
9032
  /**
@@ -8700,7 +9036,7 @@ interface UnpinAllGeneralForumTopicMessagesInput {
8700
9036
  * @see https://tg-bot-sdk.website/api/methods/unpin-chat-message/
8701
9037
  */
8702
9038
  interface UnpinChatMessageInput {
8703
- /** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
9039
+ /** Unique identifier for the target chat or username of the target channel in the format @username */
8704
9040
  chat_id: number | string;
8705
9041
  /** Unique identifier of the business connection on behalf of which the message will be unpinned */
8706
9042
  business_connection_id?: string;
@@ -8752,7 +9088,7 @@ interface UploadStickerFileInput {
8752
9088
  */
8753
9089
  interface VerifyChatInput {
8754
9090
  /**
8755
- * Unique identifier for the target chat or username of the target channel (in the format @channelusername)
9091
+ * Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username
8756
9092
  * Channel direct messages chats can't be verified.
8757
9093
  */
8758
9094
  chat_id: number | string;
@@ -8776,4 +9112,4 @@ interface VerifyUserInput {
8776
9112
  custom_description?: string;
8777
9113
  }
8778
9114
 
8779
- export { type Accelerometer, type AccelerometerStartParams, type AcceptedGiftTypes, type AddStickerToSetInput, type AffiliateInfo, type AllowedUpdateName, type Animation, type AnswerCallbackQueryInput, type AnswerInlineQueryInput, type AnswerPreCheckoutQueryInput, type AnswerShippingQueryInput, type AnswerWebAppQueryInput, type Api, type ApproveChatJoinRequestInput, type ApproveSuggestedPostInput, type Audio, type BackButton, type BackgroundFill, type BackgroundFillFreeformGradient, type BackgroundFillGradient, type BackgroundFillSolid, type BackgroundType, type BackgroundTypeChatTheme, type BackgroundTypeFill, type BackgroundTypePattern, type BackgroundTypeWallpaper, type BanChatMemberInput, type BanChatSenderChatInput, type BindOrUnbindEventHandler, type BiometricAuthenticateParams, type BiometricManager, type BiometricRequestAccessParams, type Birthdate, type BotCommand, type BotCommandScope, type BotCommandScopeAllChatAdministrators, type BotCommandScopeAllGroupChats, type BotCommandScopeAllPrivateChats, type BotCommandScopeChat, type BotCommandScopeChatAdministrators, type BotCommandScopeChatMember, type BotCommandScopeDefault, type BotDescription, type BotName, type BotShortDescription, type BottomButton, type BusinessBotRights, type BusinessConnection, type BusinessIntro, type BusinessLocation, type BusinessMessagesDeleted, type BusinessOpeningHours, type BusinessOpeningHoursInterval, type CallbackGame, type CallbackQuery, type Chat, type ChatAdministratorRights, type ChatBackground, type ChatBoost, type ChatBoostAdded, type ChatBoostRemoved, type ChatBoostSource, type ChatBoostSourceGiftCode, type ChatBoostSourceGiveaway, type ChatBoostSourcePremium, type ChatBoostUpdated, type ChatFullInfo, type ChatInviteLink, type ChatJoinRequest, type ChatLocation, type ChatMember, type ChatMemberAdministrator, type ChatMemberBanned, type ChatMemberLeft, type ChatMemberMember, type ChatMemberOwner, type ChatMemberRestricted, type ChatMemberUpdated, type ChatOwnerChanged, type ChatOwnerLeft, type ChatPermissions, type ChatPhoto, type ChatShared, type Checklist, type ChecklistTask, type ChecklistTasksAdded, type ChecklistTasksDone, type ChosenInlineResult, type CloseForumTopicInput, type CloseGeneralForumTopicInput, type CloseInput, type CloudStorage, type Contact, type ContentSafeAreaInset, type ConvertGiftToStarsInput, type CopyMessageInput, type CopyMessagesInput, type CopyTextButton, type CreateChatInviteLinkInput, type CreateChatSubscriptionInviteLinkInput, type CreateForumTopicInput, type CreateInvoiceLinkInput, type CreateNewStickerSetInput, type DeclineChatJoinRequestInput, type DeclineSuggestedPostInput, type DeleteBusinessMessagesInput, type DeleteChatPhotoInput, type DeleteChatStickerSetInput, type DeleteForumTopicInput, type DeleteMessageInput, type DeleteMessagesInput, type DeleteMyCommandsInput, type DeleteStickerFromSetInput, type DeleteStickerSetInput, type DeleteStoryInput, type DeleteWebhookInput, type DeviceOrientation, type DeviceOrientationStartParams, type DeviceStorage, type Dice, type DirectMessagePriceChanged, type DirectMessagesTopic, type Document, type DownloadFileParams, type EditChatInviteLinkInput, type EditChatSubscriptionInviteLinkInput, type EditForumTopicInput, type EditGeneralForumTopicInput, type EditMessageCaptionInput, type EditMessageChecklistInput, type EditMessageLiveLocationInput, type EditMessageMediaInput, type EditMessageReplyMarkupInput, type EditMessageTextInput, type EditStoryInput, type EditUserStarSubscriptionInput, type EmojiStatusParams, type EncryptedCredentials, type EncryptedPassportElement, type EventHandlers, type ExportChatInviteLinkInput, type ExternalReplyInfo, type File, type ForceReply, type ForumTopic, type ForumTopicClosed, type ForumTopicCreated, type ForumTopicEdited, type ForumTopicReopened, type ForwardMessageInput, type ForwardMessagesInput, type Game, type GameHighScore, type GeneralForumTopicHidden, type GeneralForumTopicUnhidden, type GetAvailableGiftsInput, type GetBusinessAccountGiftsInput, type GetBusinessAccountStarBalanceInput, type GetBusinessConnectionInput, type GetChatAdministratorsInput, type GetChatGiftsInput, type GetChatInput, type GetChatMemberCountInput, type GetChatMemberInput, type GetChatMenuButtonInput, type GetCustomEmojiStickersInput, type GetFileInput, type GetForumTopicIconStickersInput, type GetGameHighScoresInput, type GetManagedBotTokenInput, type GetMeInput, type GetMyCommandsInput, type GetMyDefaultAdministratorRightsInput, type GetMyDescriptionInput, type GetMyNameInput, type GetMyShortDescriptionInput, type GetMyStarBalanceInput, type GetStarTransactionsInput, type GetStickerSetInput, type GetUpdatesInput, type GetUserChatBoostsInput, type GetUserGiftsInput, type GetUserProfileAudiosInput, type GetUserProfilePhotosInput, type GetWebhookInfoInput, type Gift, type GiftBackground, type GiftInfo, type GiftPremiumSubscriptionInput, type Gifts, type Giveaway, type GiveawayCompleted, type GiveawayCreated, type GiveawayWinners, type Gyroscope, type GyroscopeStartParams, type HapticFeedback, type HideGeneralForumTopicInput, type InaccessibleMessage, type InlineKeyboardButton, type InlineKeyboardMarkup, type InlineQuery, type InlineQueryResult, type InlineQueryResultArticle, type InlineQueryResultAudio, type InlineQueryResultCachedAudio, type InlineQueryResultCachedDocument, type InlineQueryResultCachedGif, type InlineQueryResultCachedMpeg4Gif, type InlineQueryResultCachedPhoto, type InlineQueryResultCachedSticker, type InlineQueryResultCachedVideo, type InlineQueryResultCachedVoice, type InlineQueryResultContact, type InlineQueryResultDocument, type InlineQueryResultGame, type InlineQueryResultGif, type InlineQueryResultLocation, type InlineQueryResultMpeg4Gif, type InlineQueryResultPhoto, type InlineQueryResultVenue, type InlineQueryResultVideo, type InlineQueryResultVoice, type InlineQueryResultsButton, type InputChecklist, type InputChecklistTask, type InputContactMessageContent, type InputFile, type InputInvoiceMessageContent, type InputLocationMessageContent, type InputMedia, type InputMediaAnimation, type InputMediaAudio, type InputMediaDocument, type InputMediaPhoto, type InputMediaVideo, type InputMessageContent, type InputPaidMedia, type InputPaidMediaPhoto, type InputPaidMediaVideo, type InputPollOption, type InputProfilePhoto, type InputProfilePhotoAnimated, type InputProfilePhotoStatic, type InputSticker, type InputStoryContent, type InputStoryContentPhoto, type InputStoryContentVideo, type InputTextMessageContent, type InputVenueMessageContent, type Invoice, type KeyboardButton, type KeyboardButtonPollType, type KeyboardButtonRequestChat, type KeyboardButtonRequestManagedBot, type KeyboardButtonRequestUsers, type LabeledPrice, type LeaveChatInput, type LinkPreviewOptions, type Location, type LocationAddress, type LocationData, type LocationManager, type LogOutInput, type LoginUrl, type ManagedBotCreated, type ManagedBotUpdated, type MaskPosition, type MaybeInaccessibleMessage, type MenuButton, type MenuButtonCommands, type MenuButtonDefault, type MenuButtonWebApp, type Message, type MessageAutoDeleteTimerChanged, type MessageEntity, type MessageId, type MessageOrigin, type MessageOriginChannel, type MessageOriginChat, type MessageOriginHiddenUser, type MessageOriginUser, type MessageReactionCountUpdated, type MessageReactionUpdated, type OrderInfo, type OwnedGift, type OwnedGiftRegular, type OwnedGiftUnique, type OwnedGifts, type PaidMedia, type PaidMediaInfo, type PaidMediaPhoto, type PaidMediaPreview, type PaidMediaPurchased, type PaidMediaVideo, type PaidMessagePriceChanged, type PassportData, type PassportElementError, type PassportElementErrorDataField, type PassportElementErrorFile, type PassportElementErrorFiles, type PassportElementErrorFrontSide, type PassportElementErrorReverseSide, type PassportElementErrorSelfie, type PassportElementErrorTranslationFile, type PassportElementErrorTranslationFiles, type PassportElementErrorUnspecified, type PassportFile, type PhotoSize, type PinChatMessageInput, type Poll, type PollAnswer, type PollOption, type PollOptionAdded, type PollOptionDeleted, type PopupButton, type PopupParams, type PostStoryInput, type PreCheckoutQuery, type PreparedInlineMessage, type PreparedKeyboardButton, type PromoteChatMemberInput, type ProximityAlertTriggered, type ReactionCount, type ReactionType, type ReactionTypeCustomEmoji, type ReactionTypeEmoji, type ReactionTypePaid, type ReadBusinessMessageInput, type RefundStarPaymentInput, type RefundedPayment, type RemoveBusinessAccountProfilePhotoInput, type RemoveChatVerificationInput, type RemoveMyProfilePhotoInput, type RemoveUserVerificationInput, type ReopenForumTopicInput, type ReopenGeneralForumTopicInput, type ReplaceManagedBotTokenInput, type ReplaceStickerInSetInput, type ReplyKeyboardMarkup, type ReplyKeyboardRemove, type ReplyParameters, type RepostStoryInput, type ResponseParameters, type RestrictChatMemberInput, type RevenueWithdrawalState, type RevenueWithdrawalStateFailed, type RevenueWithdrawalStatePending, type RevenueWithdrawalStateSucceeded, type RevokeChatInviteLinkInput, type SafeAreaInset, type SavePreparedInlineMessageInput, type SavePreparedKeyboardButtonInput, type ScanQrPopupParams, type SecureStorage, type SendAnimationInput, type SendAudioInput, type SendChatActionInput, type SendChecklistInput, type SendContactInput, type SendDiceInput, type SendDocumentInput, type SendGameInput, type SendGiftInput, type SendInvoiceInput, type SendLocationInput, type SendMediaGroupInput, type SendMessageDraftInput, type SendMessageInput, type SendPaidMediaInput, type SendPhotoInput, type SendPollInput, type SendStickerInput, type SendVenueInput, type SendVideoInput, type SendVideoNoteInput, type SendVoiceInput, type SentWebAppMessage, type SetBusinessAccountBioInput, type SetBusinessAccountGiftSettingsInput, type SetBusinessAccountNameInput, type SetBusinessAccountProfilePhotoInput, type SetBusinessAccountUsernameInput, type SetChatAdministratorCustomTitleInput, type SetChatDescriptionInput, type SetChatMemberTagInput, type SetChatMenuButtonInput, type SetChatPermissionsInput, type SetChatPhotoInput, type SetChatStickerSetInput, type SetChatTitleInput, type SetCustomEmojiStickerSetThumbnailInput, type SetGameScoreInput, type SetMessageReactionInput, type SetMyCommandsInput, type SetMyDefaultAdministratorRightsInput, type SetMyDescriptionInput, type SetMyNameInput, type SetMyProfilePhotoInput, type SetMyShortDescriptionInput, type SetPassportDataErrorsInput, type SetStickerEmojiListInput, type SetStickerKeywordsInput, type SetStickerMaskPositionInput, type SetStickerPositionInSetInput, type SetStickerSetThumbnailInput, type SetStickerSetTitleInput, type SetUserEmojiStatusInput, type SetWebhookInput, type SettingsButton, type SharedUser, type ShippingAddress, type ShippingOption, type ShippingQuery, type StarAmount, type StarTransaction, type StarTransactions, type Sticker, type StickerSet, type StopMessageLiveLocationInput, type StopPollInput, type Story, type StoryArea, type StoryAreaPosition, type StoryAreaType, type StoryAreaTypeLink, type StoryAreaTypeLocation, type StoryAreaTypeSuggestedReaction, type StoryAreaTypeUniqueGift, type StoryAreaTypeWeather, type StoryShareParams, type StoryWidgetLink, type SuccessfulPayment, type SuggestedPostApprovalFailed, type SuggestedPostApproved, type SuggestedPostDeclined, type SuggestedPostInfo, type SuggestedPostPaid, type SuggestedPostParameters, type SuggestedPostPrice, type SuggestedPostRefunded, type SwitchInlineQueryChosenChat, type TelegramLoginData, type TelegramLoginOptions, type TelegramLoginService, type TextQuote, type ThemeParams, type TransactionPartner, type TransactionPartnerAffiliateProgram, type TransactionPartnerChat, type TransactionPartnerFragment, type TransactionPartnerOther, type TransactionPartnerTelegramAds, type TransactionPartnerTelegramApi, type TransactionPartnerUser, type TransferBusinessAccountStarsInput, type TransferGiftInput, type UnbanChatMemberInput, type UnbanChatSenderChatInput, type UnhideGeneralForumTopicInput, type UniqueGift, type UniqueGiftBackdrop, type UniqueGiftBackdropColors, type UniqueGiftColors, type UniqueGiftInfo, type UniqueGiftModel, type UniqueGiftSymbol, type UnpinAllChatMessagesInput, type UnpinAllForumTopicMessagesInput, type UnpinAllGeneralForumTopicMessagesInput, type UnpinChatMessageInput, type Update, type UpgradeGiftInput, type UploadStickerFileInput, type User, type UserChatBoosts, type UserProfileAudios, type UserProfilePhotos, type UserRating, type UsersShared, type Venue, type VerifyChatInput, type VerifyUserInput, type Video, type VideoChatEnded, type VideoChatParticipantsInvited, type VideoChatScheduled, type VideoChatStarted, type VideoNote, type VideoQuality, type Voice, type WebApp, type WebAppChat, type WebAppData, type WebAppInfo, type WebAppInitData, type WebAppUser, type WebhookInfo, type WriteAccessAllowed, verifyLoginData };
9115
+ export { type Accelerometer, type AccelerometerStartParams, type AcceptedGiftTypes, type AddStickerToSetInput, type AffiliateInfo, type AllowedUpdateName, type Animation, type AnswerCallbackQueryInput, type AnswerGuestQueryInput, type AnswerInlineQueryInput, type AnswerPreCheckoutQueryInput, type AnswerShippingQueryInput, type AnswerWebAppQueryInput, type Api, type ApproveChatJoinRequestInput, type ApproveSuggestedPostInput, type Audio, type BackButton, type BackgroundFill, type BackgroundFillFreeformGradient, type BackgroundFillGradient, type BackgroundFillSolid, type BackgroundType, type BackgroundTypeChatTheme, type BackgroundTypeFill, type BackgroundTypePattern, type BackgroundTypeWallpaper, type BanChatMemberInput, type BanChatSenderChatInput, type BindOrUnbindEventHandler, type BiometricAuthenticateParams, type BiometricManager, type BiometricRequestAccessParams, type Birthdate, type BotAccessSettings, type BotCommand, type BotCommandScope, type BotCommandScopeAllChatAdministrators, type BotCommandScopeAllGroupChats, type BotCommandScopeAllPrivateChats, type BotCommandScopeChat, type BotCommandScopeChatAdministrators, type BotCommandScopeChatMember, type BotCommandScopeDefault, type BotDescription, type BotName, type BotShortDescription, type BottomButton, type BusinessBotRights, type BusinessConnection, type BusinessIntro, type BusinessLocation, type BusinessMessagesDeleted, type BusinessOpeningHours, type BusinessOpeningHoursInterval, type CallbackGame, type CallbackQuery, type Chat, type ChatAdministratorRights, type ChatBackground, type ChatBoost, type ChatBoostAdded, type ChatBoostRemoved, type ChatBoostSource, type ChatBoostSourceGiftCode, type ChatBoostSourceGiveaway, type ChatBoostSourcePremium, type ChatBoostUpdated, type ChatFullInfo, type ChatInviteLink, type ChatJoinRequest, type ChatLocation, type ChatMember, type ChatMemberAdministrator, type ChatMemberBanned, type ChatMemberLeft, type ChatMemberMember, type ChatMemberOwner, type ChatMemberRestricted, type ChatMemberUpdated, type ChatOwnerChanged, type ChatOwnerLeft, type ChatPermissions, type ChatPhoto, type ChatShared, type Checklist, type ChecklistTask, type ChecklistTasksAdded, type ChecklistTasksDone, type ChosenInlineResult, type CloseForumTopicInput, type CloseGeneralForumTopicInput, type CloseInput, type CloudStorage, type Contact, type ContentSafeAreaInset, type ConvertGiftToStarsInput, type CopyMessageInput, type CopyMessagesInput, type CopyTextButton, type CreateChatInviteLinkInput, type CreateChatSubscriptionInviteLinkInput, type CreateForumTopicInput, type CreateInvoiceLinkInput, type CreateNewStickerSetInput, type DeclineChatJoinRequestInput, type DeclineSuggestedPostInput, type DeleteAllMessageReactionsInput, type DeleteBusinessMessagesInput, type DeleteChatPhotoInput, type DeleteChatStickerSetInput, type DeleteForumTopicInput, type DeleteMessageInput, type DeleteMessageReactionInput, type DeleteMessagesInput, type DeleteMyCommandsInput, type DeleteStickerFromSetInput, type DeleteStickerSetInput, type DeleteStoryInput, type DeleteWebhookInput, type DeviceOrientation, type DeviceOrientationStartParams, type DeviceStorage, type Dice, type DirectMessagePriceChanged, type DirectMessagesTopic, type Document, type DownloadFileParams, type EditChatInviteLinkInput, type EditChatSubscriptionInviteLinkInput, type EditForumTopicInput, type EditGeneralForumTopicInput, type EditMessageCaptionInput, type EditMessageChecklistInput, type EditMessageLiveLocationInput, type EditMessageMediaInput, type EditMessageReplyMarkupInput, type EditMessageTextInput, type EditStoryInput, type EditUserStarSubscriptionInput, type EmojiStatusParams, type EncryptedCredentials, type EncryptedPassportElement, type EventHandlers, type ExportChatInviteLinkInput, type ExternalReplyInfo, type File, type ForceReply, type ForumTopic, type ForumTopicClosed, type ForumTopicCreated, type ForumTopicEdited, type ForumTopicReopened, type ForwardMessageInput, type ForwardMessagesInput, type Game, type GameHighScore, type GeneralForumTopicHidden, type GeneralForumTopicUnhidden, type GetAvailableGiftsInput, type GetBusinessAccountGiftsInput, type GetBusinessAccountStarBalanceInput, type GetBusinessConnectionInput, type GetChatAdministratorsInput, type GetChatGiftsInput, type GetChatInput, type GetChatMemberCountInput, type GetChatMemberInput, type GetChatMenuButtonInput, type GetCustomEmojiStickersInput, type GetFileInput, type GetForumTopicIconStickersInput, type GetGameHighScoresInput, type GetManagedBotAccessSettingsInput, type GetManagedBotTokenInput, type GetMeInput, type GetMyCommandsInput, type GetMyDefaultAdministratorRightsInput, type GetMyDescriptionInput, type GetMyNameInput, type GetMyShortDescriptionInput, type GetMyStarBalanceInput, type GetStarTransactionsInput, type GetStickerSetInput, type GetUpdatesInput, type GetUserChatBoostsInput, type GetUserGiftsInput, type GetUserPersonalChatMessagesInput, type GetUserProfileAudiosInput, type GetUserProfilePhotosInput, type GetWebhookInfoInput, type Gift, type GiftBackground, type GiftInfo, type GiftPremiumSubscriptionInput, type Gifts, type Giveaway, type GiveawayCompleted, type GiveawayCreated, type GiveawayWinners, type Gyroscope, type GyroscopeStartParams, type HapticFeedback, type HideGeneralForumTopicInput, type InaccessibleMessage, type InlineKeyboardButton, type InlineKeyboardMarkup, type InlineQuery, type InlineQueryResult, type InlineQueryResultArticle, type InlineQueryResultAudio, type InlineQueryResultCachedAudio, type InlineQueryResultCachedDocument, type InlineQueryResultCachedGif, type InlineQueryResultCachedMpeg4Gif, type InlineQueryResultCachedPhoto, type InlineQueryResultCachedSticker, type InlineQueryResultCachedVideo, type InlineQueryResultCachedVoice, type InlineQueryResultContact, type InlineQueryResultDocument, type InlineQueryResultGame, type InlineQueryResultGif, type InlineQueryResultLocation, type InlineQueryResultMpeg4Gif, type InlineQueryResultPhoto, type InlineQueryResultVenue, type InlineQueryResultVideo, type InlineQueryResultVoice, type InlineQueryResultsButton, type InputChecklist, type InputChecklistTask, type InputContactMessageContent, type InputFile, type InputInvoiceMessageContent, type InputLocationMessageContent, type InputMedia, type InputMediaAnimation, type InputMediaAudio, type InputMediaDocument, type InputMediaLivePhoto, type InputMediaLocation, type InputMediaPhoto, type InputMediaSticker, type InputMediaVenue, type InputMediaVideo, type InputMessageContent, type InputPaidMedia, type InputPaidMediaLivePhoto, type InputPaidMediaPhoto, type InputPaidMediaVideo, type InputPollMedia, type InputPollOption, type InputPollOptionMedia, type InputProfilePhoto, type InputProfilePhotoAnimated, type InputProfilePhotoStatic, type InputSticker, type InputStoryContent, type InputStoryContentPhoto, type InputStoryContentVideo, type InputTextMessageContent, type InputVenueMessageContent, type Invoice, type KeyboardButton, type KeyboardButtonPollType, type KeyboardButtonRequestChat, type KeyboardButtonRequestManagedBot, type KeyboardButtonRequestUsers, type LabeledPrice, type LeaveChatInput, type LinkPreviewOptions, type LivePhoto, type Location, type LocationAddress, type LocationData, type LocationManager, type LogOutInput, type LoginUrl, type ManagedBotCreated, type ManagedBotUpdated, type MaskPosition, type MaybeInaccessibleMessage, type MenuButton, type MenuButtonCommands, type MenuButtonDefault, type MenuButtonWebApp, type Message, type MessageAutoDeleteTimerChanged, type MessageEntity, type MessageId, type MessageOrigin, type MessageOriginChannel, type MessageOriginChat, type MessageOriginHiddenUser, type MessageOriginUser, type MessageReactionCountUpdated, type MessageReactionUpdated, type OrderInfo, type OwnedGift, type OwnedGiftRegular, type OwnedGiftUnique, type OwnedGifts, type PaidMedia, type PaidMediaInfo, type PaidMediaLivePhoto, type PaidMediaPhoto, type PaidMediaPreview, type PaidMediaPurchased, type PaidMediaVideo, type PaidMessagePriceChanged, type PassportData, type PassportElementError, type PassportElementErrorDataField, type PassportElementErrorFile, type PassportElementErrorFiles, type PassportElementErrorFrontSide, type PassportElementErrorReverseSide, type PassportElementErrorSelfie, type PassportElementErrorTranslationFile, type PassportElementErrorTranslationFiles, type PassportElementErrorUnspecified, type PassportFile, type PhotoSize, type PinChatMessageInput, type Poll, type PollAnswer, type PollMedia, type PollOption, type PollOptionAdded, type PollOptionDeleted, type PopupButton, type PopupParams, type PostStoryInput, type PreCheckoutQuery, type PreparedInlineMessage, type PreparedKeyboardButton, type PromoteChatMemberInput, type ProximityAlertTriggered, type ReactionCount, type ReactionType, type ReactionTypeCustomEmoji, type ReactionTypeEmoji, type ReactionTypePaid, type ReadBusinessMessageInput, type RefundStarPaymentInput, type RefundedPayment, type RemoveBusinessAccountProfilePhotoInput, type RemoveChatVerificationInput, type RemoveMyProfilePhotoInput, type RemoveUserVerificationInput, type ReopenForumTopicInput, type ReopenGeneralForumTopicInput, type ReplaceManagedBotTokenInput, type ReplaceStickerInSetInput, type ReplyKeyboardMarkup, type ReplyKeyboardRemove, type ReplyParameters, type RepostStoryInput, type ResponseParameters, type RestrictChatMemberInput, type RevenueWithdrawalState, type RevenueWithdrawalStateFailed, type RevenueWithdrawalStatePending, type RevenueWithdrawalStateSucceeded, type RevokeChatInviteLinkInput, type SafeAreaInset, type SavePreparedInlineMessageInput, type SavePreparedKeyboardButtonInput, type ScanQrPopupParams, type SecureStorage, type SendAnimationInput, type SendAudioInput, type SendChatActionInput, type SendChecklistInput, type SendContactInput, type SendDiceInput, type SendDocumentInput, type SendGameInput, type SendGiftInput, type SendInvoiceInput, type SendLivePhotoInput, type SendLocationInput, type SendMediaGroupInput, type SendMessageDraftInput, type SendMessageInput, type SendPaidMediaInput, type SendPhotoInput, type SendPollInput, type SendStickerInput, type SendVenueInput, type SendVideoInput, type SendVideoNoteInput, type SendVoiceInput, type SentGuestMessage, type SentWebAppMessage, type SetBusinessAccountBioInput, type SetBusinessAccountGiftSettingsInput, type SetBusinessAccountNameInput, type SetBusinessAccountProfilePhotoInput, type SetBusinessAccountUsernameInput, type SetChatAdministratorCustomTitleInput, type SetChatDescriptionInput, type SetChatMemberTagInput, type SetChatMenuButtonInput, type SetChatPermissionsInput, type SetChatPhotoInput, type SetChatStickerSetInput, type SetChatTitleInput, type SetCustomEmojiStickerSetThumbnailInput, type SetGameScoreInput, type SetManagedBotAccessSettingsInput, type SetMessageReactionInput, type SetMyCommandsInput, type SetMyDefaultAdministratorRightsInput, type SetMyDescriptionInput, type SetMyNameInput, type SetMyProfilePhotoInput, type SetMyShortDescriptionInput, type SetPassportDataErrorsInput, type SetStickerEmojiListInput, type SetStickerKeywordsInput, type SetStickerMaskPositionInput, type SetStickerPositionInSetInput, type SetStickerSetThumbnailInput, type SetStickerSetTitleInput, type SetUserEmojiStatusInput, type SetWebhookInput, type SettingsButton, type SharedUser, type ShippingAddress, type ShippingOption, type ShippingQuery, type StarAmount, type StarTransaction, type StarTransactions, type Sticker, type StickerSet, type StopMessageLiveLocationInput, type StopPollInput, type Story, type StoryArea, type StoryAreaPosition, type StoryAreaType, type StoryAreaTypeLink, type StoryAreaTypeLocation, type StoryAreaTypeSuggestedReaction, type StoryAreaTypeUniqueGift, type StoryAreaTypeWeather, type StoryShareParams, type StoryWidgetLink, type SuccessfulPayment, type SuggestedPostApprovalFailed, type SuggestedPostApproved, type SuggestedPostDeclined, type SuggestedPostInfo, type SuggestedPostPaid, type SuggestedPostParameters, type SuggestedPostPrice, type SuggestedPostRefunded, type SwitchInlineQueryChosenChat, type TelegramLoginData, type TelegramLoginOptions, type TelegramLoginService, type TextQuote, type ThemeParams, type TransactionPartner, type TransactionPartnerAffiliateProgram, type TransactionPartnerChat, type TransactionPartnerFragment, type TransactionPartnerOther, type TransactionPartnerTelegramAds, type TransactionPartnerTelegramApi, type TransactionPartnerUser, type TransferBusinessAccountStarsInput, type TransferGiftInput, type UnbanChatMemberInput, type UnbanChatSenderChatInput, type UnhideGeneralForumTopicInput, type UniqueGift, type UniqueGiftBackdrop, type UniqueGiftBackdropColors, type UniqueGiftColors, type UniqueGiftInfo, type UniqueGiftModel, type UniqueGiftSymbol, type UnpinAllChatMessagesInput, type UnpinAllForumTopicMessagesInput, type UnpinAllGeneralForumTopicMessagesInput, type UnpinChatMessageInput, type Update, type UpgradeGiftInput, type UploadStickerFileInput, type User, type UserChatBoosts, type UserProfileAudios, type UserProfilePhotos, type UserRating, type UsersShared, type Venue, type VerifyChatInput, type VerifyUserInput, type Video, type VideoChatEnded, type VideoChatParticipantsInvited, type VideoChatScheduled, type VideoChatStarted, type VideoNote, type VideoQuality, type Voice, type WebApp, type WebAppChat, type WebAppData, type WebAppInfo, type WebAppInitData, type WebAppUser, type WebhookInfo, type WriteAccessAllowed, verifyLoginData };