@effect-ak/tg-bot-client 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -47,6 +47,12 @@ declare class FetchUpdatesError extends FetchUpdatesError_base<{
47
47
  }> {
48
48
  }
49
49
 
50
+ interface AcceptedGiftTypes {
51
+ unlimited_gifts: boolean;
52
+ limited_gifts: boolean;
53
+ unique_gifts: boolean;
54
+ premium_subscription: boolean;
55
+ }
50
56
  interface AffiliateInfo {
51
57
  commission_per_mille: number;
52
58
  amount: number;
@@ -160,13 +166,29 @@ interface BotName {
160
166
  interface BotShortDescription {
161
167
  short_description: string;
162
168
  }
169
+ interface BusinessBotRights {
170
+ can_reply?: boolean;
171
+ can_read_messages?: boolean;
172
+ can_delete_outgoing_messages?: boolean;
173
+ can_delete_all_messages?: boolean;
174
+ can_edit_name?: boolean;
175
+ can_edit_bio?: boolean;
176
+ can_edit_profile_photo?: boolean;
177
+ can_edit_username?: boolean;
178
+ can_change_gift_settings?: boolean;
179
+ can_view_gifts_and_stars?: boolean;
180
+ can_convert_gifts_to_stars?: boolean;
181
+ can_transfer_and_upgrade_gifts?: boolean;
182
+ can_transfer_stars?: boolean;
183
+ can_manage_stories?: boolean;
184
+ }
163
185
  interface BusinessConnection {
164
186
  id: string;
165
187
  user: User;
166
188
  user_chat_id: number;
167
189
  date: number;
168
- can_reply: boolean;
169
190
  is_enabled: boolean;
191
+ rights?: BusinessBotRights;
170
192
  }
171
193
  interface BusinessIntro {
172
194
  title?: string;
@@ -269,6 +291,7 @@ interface ChatFullInfo {
269
291
  type: "private" | "group" | "supergroup" | "channel";
270
292
  accent_color_id: number;
271
293
  max_reaction_count: number;
294
+ accepted_gift_types: AcceptedGiftTypes;
272
295
  title?: string;
273
296
  username?: string;
274
297
  first_name?: string;
@@ -296,7 +319,6 @@ interface ChatFullInfo {
296
319
  invite_link?: string;
297
320
  pinned_message?: Message;
298
321
  permissions?: ChatPermissions;
299
- can_send_gift?: boolean;
300
322
  can_send_paid_media?: boolean;
301
323
  slow_mode_delay?: number;
302
324
  unrestrict_boost_count?: number;
@@ -560,6 +582,16 @@ interface Gift {
560
582
  total_count?: number;
561
583
  remaining_count?: number;
562
584
  }
585
+ interface GiftInfo {
586
+ gift: Gift;
587
+ owned_gift_id?: string;
588
+ convert_star_count?: number;
589
+ prepaid_upgrade_star_count?: number;
590
+ can_be_upgraded?: boolean;
591
+ text?: string;
592
+ entities?: MessageEntity[];
593
+ is_private?: boolean;
594
+ }
563
595
  interface Gifts {
564
596
  gifts: Gift[];
565
597
  }
@@ -1016,13 +1048,35 @@ interface InputPollOption {
1016
1048
  text_parse_mode?: "HTML" | "MarkdownV2";
1017
1049
  text_entities?: MessageEntity[];
1018
1050
  }
1051
+ type InputProfilePhoto = InputProfilePhotoStatic | InputProfilePhotoAnimated;
1052
+ interface InputProfilePhotoAnimated {
1053
+ type: "animated";
1054
+ animation: string;
1055
+ main_frame_timestamp?: number;
1056
+ }
1057
+ interface InputProfilePhotoStatic {
1058
+ type: "static";
1059
+ photo: string;
1060
+ }
1019
1061
  interface InputSticker {
1020
- sticker: InputFile | string;
1062
+ sticker: string;
1021
1063
  format: "static" | "animated" | "video";
1022
1064
  emoji_list: string[];
1023
1065
  mask_position?: MaskPosition;
1024
1066
  keywords?: string[];
1025
1067
  }
1068
+ type InputStoryContent = InputStoryContentPhoto | InputStoryContentVideo;
1069
+ interface InputStoryContentPhoto {
1070
+ type: "photo";
1071
+ photo: string;
1072
+ }
1073
+ interface InputStoryContentVideo {
1074
+ type: "video";
1075
+ video: string;
1076
+ duration?: number;
1077
+ cover_frame_timestamp?: number;
1078
+ is_animation?: boolean;
1079
+ }
1026
1080
  interface InputTextMessageContent {
1027
1081
  message_text: string;
1028
1082
  parse_mode?: "HTML" | "MarkdownV2";
@@ -1099,6 +1153,12 @@ interface Location {
1099
1153
  heading?: number;
1100
1154
  proximity_alert_radius?: number;
1101
1155
  }
1156
+ interface LocationAddress {
1157
+ country_code: string;
1158
+ state?: string;
1159
+ city?: string;
1160
+ street?: string;
1161
+ }
1102
1162
  interface LoginUrl {
1103
1163
  url: string;
1104
1164
  forward_text?: string;
@@ -1147,6 +1207,7 @@ interface Message {
1147
1207
  is_from_offline?: boolean;
1148
1208
  media_group_id?: string;
1149
1209
  author_signature?: string;
1210
+ paid_star_count?: number;
1150
1211
  text?: string;
1151
1212
  entities?: MessageEntity[];
1152
1213
  link_preview_options?: LinkPreviewOptions;
@@ -1188,6 +1249,8 @@ interface Message {
1188
1249
  refunded_payment?: RefundedPayment;
1189
1250
  users_shared?: UsersShared;
1190
1251
  chat_shared?: ChatShared;
1252
+ gift?: GiftInfo;
1253
+ unique_gift?: UniqueGiftInfo;
1191
1254
  connected_website?: string;
1192
1255
  write_access_allowed?: WriteAccessAllowed;
1193
1256
  passport_data?: PassportData;
@@ -1204,6 +1267,7 @@ interface Message {
1204
1267
  giveaway?: Giveaway;
1205
1268
  giveaway_winners?: GiveawayWinners;
1206
1269
  giveaway_completed?: GiveawayCompleted;
1270
+ paid_message_price_changed?: PaidMessagePriceChanged;
1207
1271
  video_chat_scheduled?: VideoChatScheduled;
1208
1272
  video_chat_started?: VideoChatStarted;
1209
1273
  video_chat_ended?: VideoChatEnded;
@@ -1271,6 +1335,37 @@ interface OrderInfo {
1271
1335
  email?: string;
1272
1336
  shipping_address?: ShippingAddress;
1273
1337
  }
1338
+ type OwnedGift = OwnedGiftRegular | OwnedGiftUnique;
1339
+ interface OwnedGiftRegular {
1340
+ type: "regular";
1341
+ gift: Gift;
1342
+ send_date: number;
1343
+ owned_gift_id?: string;
1344
+ sender_user?: User;
1345
+ text?: string;
1346
+ entities?: MessageEntity[];
1347
+ is_private?: boolean;
1348
+ is_saved?: boolean;
1349
+ can_be_upgraded?: boolean;
1350
+ was_refunded?: boolean;
1351
+ convert_star_count?: number;
1352
+ prepaid_upgrade_star_count?: number;
1353
+ }
1354
+ interface OwnedGifts {
1355
+ total_count: number;
1356
+ gifts: OwnedGift[];
1357
+ next_offset?: string;
1358
+ }
1359
+ interface OwnedGiftUnique {
1360
+ type: "unique";
1361
+ gift: UniqueGift;
1362
+ send_date: number;
1363
+ owned_gift_id?: string;
1364
+ sender_user?: User;
1365
+ is_saved?: boolean;
1366
+ can_be_transferred?: boolean;
1367
+ transfer_star_count?: number;
1368
+ }
1274
1369
  type PaidMedia = PaidMediaPreview | PaidMediaPhoto | PaidMediaVideo;
1275
1370
  interface PaidMediaInfo {
1276
1371
  star_count: number;
@@ -1294,6 +1389,9 @@ interface PaidMediaVideo {
1294
1389
  type: "video";
1295
1390
  video: Video;
1296
1391
  }
1392
+ interface PaidMessagePriceChanged {
1393
+ paid_message_star_count: number;
1394
+ }
1297
1395
  interface PassportData {
1298
1396
  data: EncryptedPassportElement[];
1299
1397
  credentials: EncryptedCredentials;
@@ -1501,6 +1599,10 @@ interface ShippingQuery {
1501
1599
  invoice_payload: string;
1502
1600
  shipping_address: ShippingAddress;
1503
1601
  }
1602
+ interface StarAmount {
1603
+ amount: number;
1604
+ nanostar_amount?: number;
1605
+ }
1504
1606
  interface StarTransaction {
1505
1607
  id: string;
1506
1608
  amount: number;
@@ -1540,6 +1642,45 @@ interface Story {
1540
1642
  chat: Chat;
1541
1643
  id: number;
1542
1644
  }
1645
+ interface StoryArea {
1646
+ position: StoryAreaPosition;
1647
+ type: StoryAreaType;
1648
+ }
1649
+ interface StoryAreaPosition {
1650
+ x_percentage: number;
1651
+ y_percentage: number;
1652
+ width_percentage: number;
1653
+ height_percentage: number;
1654
+ rotation_angle: number;
1655
+ corner_radius_percentage: number;
1656
+ }
1657
+ type StoryAreaType = StoryAreaTypeLocation | StoryAreaTypeSuggestedReaction | StoryAreaTypeLink | StoryAreaTypeWeather | StoryAreaTypeUniqueGift;
1658
+ interface StoryAreaTypeLink {
1659
+ type: "link";
1660
+ url: string;
1661
+ }
1662
+ interface StoryAreaTypeLocation {
1663
+ type: "location";
1664
+ latitude: number;
1665
+ longitude: number;
1666
+ address?: LocationAddress;
1667
+ }
1668
+ interface StoryAreaTypeSuggestedReaction {
1669
+ type: "suggested_reaction";
1670
+ reaction_type: ReactionType;
1671
+ is_dark?: boolean;
1672
+ is_flipped?: boolean;
1673
+ }
1674
+ interface StoryAreaTypeUniqueGift {
1675
+ type: "unique_gift";
1676
+ name: string;
1677
+ }
1678
+ interface StoryAreaTypeWeather {
1679
+ type: "weather";
1680
+ temperature: number;
1681
+ emoji: string;
1682
+ background_color: number;
1683
+ }
1543
1684
  interface SuccessfulPayment {
1544
1685
  currency: string;
1545
1686
  total_amount: number;
@@ -1592,6 +1733,7 @@ interface TransactionPartnerTelegramApi {
1592
1733
  }
1593
1734
  interface TransactionPartnerUser {
1594
1735
  type: "user";
1736
+ transaction_type: "invoice_payment" | "paid_media_payment" | "gift_purchase" | "premium_purchase" | "business_account_transfer";
1595
1737
  user: User;
1596
1738
  affiliate?: AffiliateInfo;
1597
1739
  invoice_payload?: string;
@@ -1599,6 +1741,42 @@ interface TransactionPartnerUser {
1599
1741
  paid_media?: PaidMedia[];
1600
1742
  paid_media_payload?: string;
1601
1743
  gift?: Gift;
1744
+ premium_subscription_duration?: number;
1745
+ }
1746
+ interface UniqueGift {
1747
+ base_name: string;
1748
+ name: string;
1749
+ number: number;
1750
+ model: UniqueGiftModel;
1751
+ symbol: UniqueGiftSymbol;
1752
+ backdrop: UniqueGiftBackdrop;
1753
+ }
1754
+ interface UniqueGiftBackdrop {
1755
+ name: string;
1756
+ colors: UniqueGiftBackdropColors;
1757
+ rarity_per_mille: number;
1758
+ }
1759
+ interface UniqueGiftBackdropColors {
1760
+ center_color: number;
1761
+ edge_color: number;
1762
+ symbol_color: number;
1763
+ text_color: number;
1764
+ }
1765
+ interface UniqueGiftInfo {
1766
+ gift: UniqueGift;
1767
+ origin: string;
1768
+ owned_gift_id?: string;
1769
+ transfer_star_count?: number;
1770
+ }
1771
+ interface UniqueGiftModel {
1772
+ name: string;
1773
+ sticker: Sticker;
1774
+ rarity_per_mille: number;
1775
+ }
1776
+ interface UniqueGiftSymbol {
1777
+ name: string;
1778
+ sticker: Sticker;
1779
+ rarity_per_mille: number;
1602
1780
  }
1603
1781
  interface Update {
1604
1782
  update_id: number;
@@ -1736,6 +1914,7 @@ interface Api {
1736
1914
  close(_: CloseInput): boolean;
1737
1915
  close_forum_topic(_: CloseForumTopicInput): boolean;
1738
1916
  close_general_forum_topic(_: CloseGeneralForumTopicInput): boolean;
1917
+ convert_gift_to_stars(_: ConvertGiftToStarsInput): boolean;
1739
1918
  copy_message(_: CopyMessageInput): MessageId;
1740
1919
  copy_messages(_: CopyMessagesInput): MessageId[];
1741
1920
  create_chat_invite_link(_: CreateChatInviteLinkInput): ChatInviteLink;
@@ -1744,6 +1923,7 @@ interface Api {
1744
1923
  create_invoice_link(_: CreateInvoiceLinkInput): string;
1745
1924
  create_new_sticker_set(_: CreateNewStickerSetInput): boolean;
1746
1925
  decline_chat_join_request(_: DeclineChatJoinRequestInput): boolean;
1926
+ delete_business_messages(_: DeleteBusinessMessagesInput): boolean;
1747
1927
  delete_chat_photo(_: DeleteChatPhotoInput): boolean;
1748
1928
  delete_chat_sticker_set(_: DeleteChatStickerSetInput): boolean;
1749
1929
  delete_forum_topic(_: DeleteForumTopicInput): boolean;
@@ -1752,6 +1932,7 @@ interface Api {
1752
1932
  delete_my_commands(_: DeleteMyCommandsInput): boolean;
1753
1933
  delete_sticker_from_set(_: DeleteStickerFromSetInput): boolean;
1754
1934
  delete_sticker_set(_: DeleteStickerSetInput): boolean;
1935
+ delete_story(_: DeleteStoryInput): boolean;
1755
1936
  delete_webhook(_: DeleteWebhookInput): boolean;
1756
1937
  edit_chat_invite_link(_: EditChatInviteLinkInput): ChatInviteLink;
1757
1938
  edit_chat_subscription_invite_link(_: EditChatSubscriptionInviteLinkInput): ChatInviteLink;
@@ -1762,11 +1943,14 @@ interface Api {
1762
1943
  edit_message_media(_: EditMessageMediaInput): Message | boolean;
1763
1944
  edit_message_reply_markup(_: EditMessageReplyMarkupInput): Message | boolean;
1764
1945
  edit_message_text(_: EditMessageTextInput): Message | boolean;
1946
+ edit_story(_: EditStoryInput): Story;
1765
1947
  edit_user_star_subscription(_: EditUserStarSubscriptionInput): boolean;
1766
1948
  export_chat_invite_link(_: ExportChatInviteLinkInput): string;
1767
1949
  forward_message(_: ForwardMessageInput): Message;
1768
1950
  forward_messages(_: ForwardMessagesInput): MessageId[];
1769
1951
  get_available_gifts(_: GetAvailableGiftsInput): Gifts;
1952
+ get_business_account_gifts(_: GetBusinessAccountGiftsInput): OwnedGifts;
1953
+ get_business_account_star_balance(_: GetBusinessAccountStarBalanceInput): StarAmount;
1770
1954
  get_business_connection(_: GetBusinessConnectionInput): BusinessConnection;
1771
1955
  get_chat(_: GetChatInput): ChatFullInfo;
1772
1956
  get_chat_administrators(_: GetChatAdministratorsInput): ChatMember[];
@@ -1789,12 +1973,16 @@ interface Api {
1789
1973
  get_user_chat_boosts(_: GetUserChatBoostsInput): UserChatBoosts;
1790
1974
  get_user_profile_photos(_: GetUserProfilePhotosInput): UserProfilePhotos;
1791
1975
  get_webhook_info(_: GetWebhookInfoInput): WebhookInfo;
1976
+ gift_premium_subscription(_: GiftPremiumSubscriptionInput): boolean;
1792
1977
  hide_general_forum_topic(_: HideGeneralForumTopicInput): boolean;
1793
1978
  leave_chat(_: LeaveChatInput): boolean;
1794
1979
  log_out(_: LogOutInput): boolean;
1795
1980
  pin_chat_message(_: PinChatMessageInput): boolean;
1981
+ post_story(_: PostStoryInput): Story;
1796
1982
  promote_chat_member(_: PromoteChatMemberInput): boolean;
1983
+ read_business_message(_: ReadBusinessMessageInput): boolean;
1797
1984
  refund_star_payment(_: RefundStarPaymentInput): boolean;
1985
+ remove_business_account_profile_photo(_: RemoveBusinessAccountProfilePhotoInput): boolean;
1798
1986
  remove_chat_verification(_: RemoveChatVerificationInput): boolean;
1799
1987
  remove_user_verification(_: RemoveUserVerificationInput): boolean;
1800
1988
  reopen_forum_topic(_: ReopenForumTopicInput): boolean;
@@ -1823,6 +2011,11 @@ interface Api {
1823
2011
  send_video(_: SendVideoInput): Message;
1824
2012
  send_video_note(_: SendVideoNoteInput): Message;
1825
2013
  send_voice(_: SendVoiceInput): Message;
2014
+ set_business_account_bio(_: SetBusinessAccountBioInput): boolean;
2015
+ set_business_account_gift_settings(_: SetBusinessAccountGiftSettingsInput): boolean;
2016
+ set_business_account_name(_: SetBusinessAccountNameInput): boolean;
2017
+ set_business_account_profile_photo(_: SetBusinessAccountProfilePhotoInput): boolean;
2018
+ set_business_account_username(_: SetBusinessAccountUsernameInput): boolean;
1826
2019
  set_chat_administrator_custom_title(_: SetChatAdministratorCustomTitleInput): boolean;
1827
2020
  set_chat_description(_: SetChatDescriptionInput): boolean;
1828
2021
  set_chat_menu_button(_: SetChatMenuButtonInput): boolean;
@@ -1849,6 +2042,8 @@ interface Api {
1849
2042
  set_webhook(_: SetWebhookInput): boolean;
1850
2043
  stop_message_live_location(_: StopMessageLiveLocationInput): Message | boolean;
1851
2044
  stop_poll(_: StopPollInput): Poll;
2045
+ transfer_business_account_stars(_: TransferBusinessAccountStarsInput): boolean;
2046
+ transfer_gift(_: TransferGiftInput): boolean;
1852
2047
  unban_chat_member(_: UnbanChatMemberInput): boolean;
1853
2048
  unban_chat_sender_chat(_: UnbanChatSenderChatInput): boolean;
1854
2049
  unhide_general_forum_topic(_: UnhideGeneralForumTopicInput): boolean;
@@ -1856,6 +2051,7 @@ interface Api {
1856
2051
  unpin_all_forum_topic_messages(_: UnpinAllForumTopicMessagesInput): boolean;
1857
2052
  unpin_all_general_forum_topic_messages(_: UnpinAllGeneralForumTopicMessagesInput): boolean;
1858
2053
  unpin_chat_message(_: UnpinChatMessageInput): boolean;
2054
+ upgrade_gift(_: UpgradeGiftInput): boolean;
1859
2055
  upload_sticker_file(_: UploadStickerFileInput): File$1;
1860
2056
  verify_chat(_: VerifyChatInput): boolean;
1861
2057
  verify_user(_: VerifyUserInput): boolean;
@@ -1918,6 +2114,10 @@ interface CloseForumTopicInput {
1918
2114
  interface CloseGeneralForumTopicInput {
1919
2115
  chat_id: number | string;
1920
2116
  }
2117
+ interface ConvertGiftToStarsInput {
2118
+ business_connection_id: string;
2119
+ owned_gift_id: string;
2120
+ }
1921
2121
  interface CopyMessageInput {
1922
2122
  chat_id: number | string;
1923
2123
  from_chat_id: number | string;
@@ -1998,6 +2198,10 @@ interface DeclineChatJoinRequestInput {
1998
2198
  chat_id: number | string;
1999
2199
  user_id: number;
2000
2200
  }
2201
+ interface DeleteBusinessMessagesInput {
2202
+ business_connection_id: string;
2203
+ message_ids: number[];
2204
+ }
2001
2205
  interface DeleteChatPhotoInput {
2002
2206
  chat_id: number | string;
2003
2207
  }
@@ -2026,6 +2230,10 @@ interface DeleteStickerFromSetInput {
2026
2230
  interface DeleteStickerSetInput {
2027
2231
  name: string;
2028
2232
  }
2233
+ interface DeleteStoryInput {
2234
+ business_connection_id: string;
2235
+ story_id: number;
2236
+ }
2029
2237
  interface DeleteWebhookInput {
2030
2238
  drop_pending_updates?: boolean;
2031
2239
  }
@@ -2102,6 +2310,15 @@ interface EditMessageTextInput {
2102
2310
  link_preview_options?: LinkPreviewOptions;
2103
2311
  reply_markup?: InlineKeyboardMarkup;
2104
2312
  }
2313
+ interface EditStoryInput {
2314
+ business_connection_id: string;
2315
+ story_id: number;
2316
+ content: InputStoryContent;
2317
+ caption?: string;
2318
+ parse_mode?: "HTML" | "MarkdownV2";
2319
+ caption_entities?: MessageEntity[];
2320
+ areas?: StoryArea[];
2321
+ }
2105
2322
  interface EditUserStarSubscriptionInput {
2106
2323
  user_id: number;
2107
2324
  telegram_payment_charge_id: string;
@@ -2129,6 +2346,20 @@ interface ForwardMessagesInput {
2129
2346
  }
2130
2347
  interface GetAvailableGiftsInput {
2131
2348
  }
2349
+ interface GetBusinessAccountGiftsInput {
2350
+ business_connection_id: string;
2351
+ exclude_unsaved?: boolean;
2352
+ exclude_saved?: boolean;
2353
+ exclude_unlimited?: boolean;
2354
+ exclude_limited?: boolean;
2355
+ exclude_unique?: boolean;
2356
+ sort_by_price?: boolean;
2357
+ offset?: string;
2358
+ limit?: number;
2359
+ }
2360
+ interface GetBusinessAccountStarBalanceInput {
2361
+ business_connection_id: string;
2362
+ }
2132
2363
  interface GetBusinessConnectionInput {
2133
2364
  business_connection_id: string;
2134
2365
  }
@@ -2204,6 +2435,14 @@ interface GetUserProfilePhotosInput {
2204
2435
  }
2205
2436
  interface GetWebhookInfoInput {
2206
2437
  }
2438
+ interface GiftPremiumSubscriptionInput {
2439
+ user_id: number;
2440
+ month_count: number;
2441
+ star_count: number;
2442
+ text?: string;
2443
+ text_parse_mode?: "HTML" | "MarkdownV2";
2444
+ text_entities?: MessageEntity[];
2445
+ }
2207
2446
  interface HideGeneralForumTopicInput {
2208
2447
  chat_id: number | string;
2209
2448
  }
@@ -2218,6 +2457,17 @@ interface PinChatMessageInput {
2218
2457
  business_connection_id?: string;
2219
2458
  disable_notification?: boolean;
2220
2459
  }
2460
+ interface PostStoryInput {
2461
+ business_connection_id: string;
2462
+ content: InputStoryContent;
2463
+ active_period: number;
2464
+ caption?: string;
2465
+ parse_mode?: "HTML" | "MarkdownV2";
2466
+ caption_entities?: MessageEntity[];
2467
+ areas?: StoryArea[];
2468
+ post_to_chat_page?: boolean;
2469
+ protect_content?: boolean;
2470
+ }
2221
2471
  interface PromoteChatMemberInput {
2222
2472
  chat_id: number | string;
2223
2473
  user_id: number;
@@ -2237,10 +2487,19 @@ interface PromoteChatMemberInput {
2237
2487
  can_pin_messages?: boolean;
2238
2488
  can_manage_topics?: boolean;
2239
2489
  }
2490
+ interface ReadBusinessMessageInput {
2491
+ business_connection_id: string;
2492
+ chat_id: number;
2493
+ message_id: number;
2494
+ }
2240
2495
  interface RefundStarPaymentInput {
2241
2496
  user_id: number;
2242
2497
  telegram_payment_charge_id: string;
2243
2498
  }
2499
+ interface RemoveBusinessAccountProfilePhotoInput {
2500
+ business_connection_id: string;
2501
+ is_public?: boolean;
2502
+ }
2244
2503
  interface RemoveChatVerificationInput {
2245
2504
  chat_id: number | string;
2246
2505
  }
@@ -2609,6 +2868,29 @@ interface SendVoiceInput {
2609
2868
  reply_parameters?: ReplyParameters;
2610
2869
  reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
2611
2870
  }
2871
+ interface SetBusinessAccountBioInput {
2872
+ business_connection_id: string;
2873
+ bio?: string;
2874
+ }
2875
+ interface SetBusinessAccountGiftSettingsInput {
2876
+ business_connection_id: string;
2877
+ show_gift_button: boolean;
2878
+ accepted_gift_types: AcceptedGiftTypes;
2879
+ }
2880
+ interface SetBusinessAccountNameInput {
2881
+ business_connection_id: string;
2882
+ first_name: string;
2883
+ last_name?: string;
2884
+ }
2885
+ interface SetBusinessAccountProfilePhotoInput {
2886
+ business_connection_id: string;
2887
+ photo: InputProfilePhoto;
2888
+ is_public?: boolean;
2889
+ }
2890
+ interface SetBusinessAccountUsernameInput {
2891
+ business_connection_id: string;
2892
+ username?: string;
2893
+ }
2612
2894
  interface SetChatAdministratorCustomTitleInput {
2613
2895
  chat_id: number | string;
2614
2896
  user_id: number;
@@ -2736,6 +3018,16 @@ interface StopPollInput {
2736
3018
  business_connection_id?: string;
2737
3019
  reply_markup?: InlineKeyboardMarkup;
2738
3020
  }
3021
+ interface TransferBusinessAccountStarsInput {
3022
+ business_connection_id: string;
3023
+ star_count: number;
3024
+ }
3025
+ interface TransferGiftInput {
3026
+ business_connection_id: string;
3027
+ owned_gift_id: string;
3028
+ new_owner_chat_id: number;
3029
+ star_count?: number;
3030
+ }
2739
3031
  interface UnbanChatMemberInput {
2740
3032
  chat_id: number | string;
2741
3033
  user_id: number;
@@ -2763,6 +3055,12 @@ interface UnpinChatMessageInput {
2763
3055
  business_connection_id?: string;
2764
3056
  message_id?: number;
2765
3057
  }
3058
+ interface UpgradeGiftInput {
3059
+ business_connection_id: string;
3060
+ owned_gift_id: string;
3061
+ keep_original_details?: boolean;
3062
+ star_count?: number;
3063
+ }
2766
3064
  interface UploadStickerFileInput {
2767
3065
  user_id: number;
2768
3066
  sticker: InputFile;
@@ -2876,6 +3174,396 @@ declare const makeTgBotClient: (input: TgBotClientSettingsInput) => {
2876
3174
  getFile: (input: Parameters<ClientFileServiceInterface["getFile"]>[0]) => Promise<File>;
2877
3175
  };
2878
3176
 
3177
+ type BindOrUnbindEventHandler = <K extends keyof EventHandlers>(eventName: K, handler: EventHandlers[K]) => void;
3178
+ type EventHandlers = {
3179
+ activated: () => void;
3180
+ deactivated: () => void;
3181
+ themeChanged: () => void;
3182
+ viewportChanged: (options: {
3183
+ isStateStable: boolean;
3184
+ }) => void;
3185
+ safeAreaChanged: () => void;
3186
+ contentSafeAreaChanged: () => void;
3187
+ mainButtonClicked: () => void;
3188
+ backButtonClicked: () => void;
3189
+ settingsButtonClicked: () => void;
3190
+ invoiceClosed: (options: {
3191
+ url: string;
3192
+ status: "paid" | "cancelled" | "failed" | "pending";
3193
+ }) => void;
3194
+ popupClosed: (options: {
3195
+ button_id: string | null;
3196
+ }) => void;
3197
+ qrTextReceived: (options: {
3198
+ data: string;
3199
+ }) => void;
3200
+ scanQrPopupClosed: () => void;
3201
+ clipboardTextReceived: (options: {
3202
+ data: string;
3203
+ }) => void;
3204
+ writeAccessRequested: (options: {
3205
+ status: "allowed" | "cancelled";
3206
+ }) => void;
3207
+ biometricManagerUpdated: () => void;
3208
+ biometricAuthRequested: (options: {
3209
+ isAuthenticated: boolean;
3210
+ biometricToken: string | null;
3211
+ }) => void;
3212
+ biometricTokenUpdated: (options: {
3213
+ isUpdated: boolean;
3214
+ }) => void;
3215
+ fullscreenChanged: () => void;
3216
+ fullscreenFailed: (options: {
3217
+ error: "UNSUPPORTED" | "ALREADY_FULLSCREEN";
3218
+ }) => void;
3219
+ homeScreenAdded: () => void;
3220
+ homeScreenChecked: (options: {
3221
+ status: "unsupported" | "unknown" | "added" | "missed";
3222
+ }) => void;
3223
+ accelerometerStarted: () => void;
3224
+ accelerometerStopped: () => void;
3225
+ accelerometerChanged: () => void;
3226
+ accelerometerFailed: (options: {
3227
+ error: "UNSUPPORTED";
3228
+ }) => void;
3229
+ deviceOrientationStarted: () => void;
3230
+ deviceOrientationStopped: () => void;
3231
+ deviceOrientationChanged: () => void;
3232
+ deviceOrientationFailed: (options: {
3233
+ error: "UNSUPPORTED";
3234
+ }) => void;
3235
+ gyroscopeStarted: () => void;
3236
+ gyroscopeStopped: () => void;
3237
+ gyroscopeChanged: () => void;
3238
+ gyroscopeFailed: (options: {
3239
+ error: "UNSUPPORTED";
3240
+ }) => void;
3241
+ locationManagerUpdated: () => void;
3242
+ locationRequested: (options: {
3243
+ locationData: LocationData;
3244
+ }) => void;
3245
+ shareMessageSent: () => void;
3246
+ shareMessageFailed: (options: {
3247
+ error: "UNSUPPORTED" | "MESSAGE_EXPIRED" | "MESSAGE_SEND_FAILED" | "USER_DECLINED" | "UNKNOWN_ERROR";
3248
+ }) => void;
3249
+ emojiStatusSet: () => void;
3250
+ emojiStatusFailed: (options: {
3251
+ error: "UNSUPPORTED" | "SUGGESTED_EMOJI_INVALID" | "DURATION_INVALID" | "USER_DECLINED" | "SERVER_ERROR" | "UNKNOWN_ERROR";
3252
+ }) => void;
3253
+ emojiStatusAccessRequested: (options: {
3254
+ status: "allowed" | "cancelled";
3255
+ }) => void;
3256
+ fileDownloadRequested: (options: {
3257
+ status: "downloading" | "cancelled";
3258
+ }) => void;
3259
+ };
3260
+
3261
+ interface TgWebApp {
3262
+ initData: string;
3263
+ initDataUnsafe: WebAppInitData;
3264
+ version: string;
3265
+ platform: string;
3266
+ colorScheme: string;
3267
+ themeParams: ThemeParams;
3268
+ isActive: boolean;
3269
+ isExpanded: boolean;
3270
+ viewportHeight: number;
3271
+ viewportStableHeight: number;
3272
+ headerColor: string;
3273
+ backgroundColor: string;
3274
+ bottomBarColor: string;
3275
+ isClosingConfirmationEnabled: boolean;
3276
+ isVerticalSwipesEnabled: boolean;
3277
+ isFullscreen: boolean;
3278
+ isOrientationLocked: boolean;
3279
+ safeAreaInset: SafeAreaInset;
3280
+ contentSafeAreaInset: ContentSafeAreaInset;
3281
+ BackButton: BackButton;
3282
+ MainButton: BottomButton;
3283
+ SecondaryButton: BottomButton;
3284
+ SettingsButton: SettingsButton;
3285
+ HapticFeedback: HapticFeedback;
3286
+ CloudStorage: CloudStorage;
3287
+ BiometricManager: BiometricManager;
3288
+ Accelerometer: Accelerometer;
3289
+ DeviceOrientation: DeviceOrientation;
3290
+ Gyroscope: Gyroscope;
3291
+ LocationManager: LocationManager;
3292
+ DeviceStorage: DeviceStorage;
3293
+ SecureStorage: SecureStorage;
3294
+ isVersionAtLeast: (version: string) => boolean;
3295
+ setHeaderColor: (color: string) => void;
3296
+ setBackgroundColor: (color: string) => void;
3297
+ setBottomBarColor: (color: string) => void;
3298
+ enableClosingConfirmation: () => void;
3299
+ disableClosingConfirmation: () => void;
3300
+ enableVerticalSwipes: () => void;
3301
+ disableVerticalSwipes: () => void;
3302
+ requestFullscreen: () => void;
3303
+ exitFullscreen: () => void;
3304
+ lockOrientation: () => void;
3305
+ unlockOrientation: () => void;
3306
+ addToHomeScreen: () => void;
3307
+ checkHomeScreenStatus: (callback?: (status: "unsupported" | "unknown" | "added" | "missed") => void) => void;
3308
+ onEvent: BindOrUnbindEventHandler;
3309
+ offEvent: BindOrUnbindEventHandler;
3310
+ sendData: (data: string) => void;
3311
+ switchInlineQuery: (query: string, chat_type?: "users" | "bots" | "groups" | "channels") => void;
3312
+ openLink: (url: string, options?: {
3313
+ try_instant_view: boolean;
3314
+ }) => void;
3315
+ openTelegramLink: (url: string) => void;
3316
+ openInvoice: (url: string, callback?: (invoiceStatus: unknown) => void) => void;
3317
+ shareToStory: (mediaUrl: string, options?: StoryShareParams) => void;
3318
+ shareMessage: (msg_id: number, options?: (isSent: boolean) => void) => void;
3319
+ setEmojiStatus: (custom_emoj_id: string, params?: EmojiStatusParams, callback?: (isStatusSet: boolean) => void) => void;
3320
+ requestEmojiStatusAccess: (url: string, callback?: (invoiceStatus: unknown) => void) => void;
3321
+ downloadFile: (params: DownloadFileParams, callback?: (isAccepted: boolean) => void) => void;
3322
+ showPopup: (params: PopupParams, callback?: (buttonId: string) => void) => void;
3323
+ showAlert: (message: string, callback?: () => void) => void;
3324
+ showConfirm: (message: string, callback?: (isOk: boolean) => void) => void;
3325
+ showScanQrPopup: (params: ScanQrPopupParams, callback?: (data: string) => boolean) => void;
3326
+ closeScanQrPopup: () => void;
3327
+ readTextFromClipboard: (callback?: (text: string) => void) => void;
3328
+ requestWriteAccess: (callback?: (isGranted: boolean) => void) => void;
3329
+ requestContact: (callback?: (isShared: boolean) => void) => void;
3330
+ ready: () => void;
3331
+ expand: () => void;
3332
+ close: () => void;
3333
+ }
3334
+ interface Accelerometer {
3335
+ isStarted: boolean;
3336
+ x: number;
3337
+ y: number;
3338
+ z: number;
3339
+ start: (params: AccelerometerStartParams, callback?: (isStarted: boolean) => void) => Accelerometer;
3340
+ stop: (callback?: (isStopped: boolean) => void) => Accelerometer;
3341
+ }
3342
+ interface AccelerometerStartParams {
3343
+ refresh_rate?: number;
3344
+ }
3345
+ interface BackButton {
3346
+ isVisible: boolean;
3347
+ onClick: EventHandlers["backButtonClicked"];
3348
+ offClick: EventHandlers["backButtonClicked"];
3349
+ show: () => BackButton;
3350
+ hide: () => BackButton;
3351
+ }
3352
+ interface BiometricAuthenticateParams {
3353
+ reason?: string;
3354
+ }
3355
+ interface BiometricManager {
3356
+ isInited: boolean;
3357
+ isBiometricAvailable: boolean;
3358
+ biometricType: "finger" | "face" | "unknown";
3359
+ isAccessRequested: boolean;
3360
+ isAccessGranted: boolean;
3361
+ isBiometricTokenSaved: boolean;
3362
+ deviceId: string;
3363
+ init: (callback?: () => void) => BiometricManager;
3364
+ requestAccess: (params: BiometricRequestAccessParams, callback?: (isGranted: boolean) => void) => BiometricManager;
3365
+ authenticate: (params: BiometricAuthenticateParams, callback?: (isAuthenticated: boolean) => void) => BiometricManager;
3366
+ updateBiometricToken: (token: string, callback?: (isTokenUpdated: boolean) => void) => BiometricManager;
3367
+ openSettings: () => BiometricManager;
3368
+ }
3369
+ interface BiometricRequestAccessParams {
3370
+ reason?: string;
3371
+ }
3372
+ interface BottomButton {
3373
+ type: string;
3374
+ text: string;
3375
+ color: string;
3376
+ textColor: string;
3377
+ isVisible: boolean;
3378
+ isActive: boolean;
3379
+ hasShineEffect: boolean;
3380
+ position: string;
3381
+ isProgressVisible: boolean;
3382
+ setText: (text: string) => BottomButton;
3383
+ onClick: (callback: () => void) => BottomButton;
3384
+ offClick: (callback: () => void) => BottomButton;
3385
+ show: () => BottomButton;
3386
+ hide: () => BottomButton;
3387
+ enable: () => BottomButton;
3388
+ disable: () => BottomButton;
3389
+ showProgress: (callback: (leaveActive: boolean) => void) => BottomButton;
3390
+ hideProgress: () => BottomButton;
3391
+ setParams: (params: {
3392
+ text: string;
3393
+ color: string;
3394
+ has_shine_effect: boolean;
3395
+ position: unknown;
3396
+ is_active: boolean;
3397
+ is_visible: boolean;
3398
+ }) => BottomButton;
3399
+ }
3400
+ interface CloudStorage {
3401
+ setItem: (key: string, value: string, callback?: (error: unknown | null) => void) => CloudStorage;
3402
+ getItem: (key: string, callback: (error: unknown | null, value: string | null) => void) => CloudStorage;
3403
+ getItems: (keys: string[], callback: (error: string | null, values: Record<string, string> | null) => void) => CloudStorage;
3404
+ removeItem: (key: string, callback?: (error: string | null, isDeleted: boolean) => void) => CloudStorage;
3405
+ removeItems: (keys: string[], callback?: (error: string | null, isDeleted: boolean) => void) => CloudStorage;
3406
+ getKeys: (callback: (error: string | null, keys: string[] | null) => void) => CloudStorage;
3407
+ }
3408
+ interface ContentSafeAreaInset {
3409
+ top: number;
3410
+ bottom: number;
3411
+ left: number;
3412
+ right: number;
3413
+ }
3414
+ interface DeviceOrientation {
3415
+ isStarted: boolean;
3416
+ absolute: boolean;
3417
+ alpha: number;
3418
+ beta: number;
3419
+ gamma: number;
3420
+ start: (params: DeviceOrientationStartParams, callback?: (isTracking: boolean) => void) => void;
3421
+ stop: (callback?: (isStopped: boolean) => void) => void;
3422
+ }
3423
+ interface DeviceOrientationStartParams {
3424
+ refresh_rate?: number;
3425
+ need_absolute?: boolean;
3426
+ }
3427
+ interface DeviceStorage {
3428
+ setItem: (key: string, value: string, callback?: (error: unknown | null, isStored: boolean) => void) => DeviceStorage;
3429
+ getItem: (key: string, callback: (error: unknown | null, value: string | null) => void) => DeviceStorage;
3430
+ removeItem: (key: string, callback?: (error: unknown | null, isRemoved: boolean) => void) => DeviceStorage;
3431
+ clear: (callback?: (error: unknown | null, isCleared: boolean) => void) => DeviceStorage;
3432
+ }
3433
+ interface DownloadFileParams {
3434
+ url: string;
3435
+ file_name: string;
3436
+ }
3437
+ interface EmojiStatusParams {
3438
+ duration?: number;
3439
+ }
3440
+ interface Gyroscope {
3441
+ isStarted: boolean;
3442
+ x: number;
3443
+ y: number;
3444
+ z: number;
3445
+ start: (params: GyroscopeStartParams, callback?: (isTracking: boolean) => void) => void;
3446
+ stop: (callback?: (isStopped: boolean) => void) => void;
3447
+ }
3448
+ interface GyroscopeStartParams {
3449
+ refresh_rate?: number;
3450
+ }
3451
+ interface HapticFeedback {
3452
+ impactOccurred: (style: "light" | "medium" | "heavy" | "rigid" | "soft") => void;
3453
+ notificationOccurred: (type: "error" | "success" | "warning") => void;
3454
+ selectionChanged: () => HapticFeedback;
3455
+ }
3456
+ interface LocationData {
3457
+ latitude: number;
3458
+ longitude: number;
3459
+ altitude: number;
3460
+ course: number;
3461
+ speed: number;
3462
+ horizontal_accuracy: number;
3463
+ vertical_accuracy: number;
3464
+ course_accuracy: number;
3465
+ speed_accuracy: number;
3466
+ }
3467
+ interface LocationManager {
3468
+ isInited: boolean;
3469
+ isLocationAvailable: boolean;
3470
+ isAccessRequested: boolean;
3471
+ isAccessGranted: boolean;
3472
+ init: (callback?: () => void) => LocationManager;
3473
+ getLocation: (callback: (location: LocationData | null) => void) => LocationManager;
3474
+ openSettings: () => LocationManager;
3475
+ }
3476
+ interface PopupButton {
3477
+ id?: string;
3478
+ type?: "OK" | "Close" | "Cancel";
3479
+ text?: string;
3480
+ }
3481
+ interface PopupParams {
3482
+ message: string;
3483
+ title?: string;
3484
+ buttons?: PopupButton[];
3485
+ }
3486
+ interface SafeAreaInset {
3487
+ top: number;
3488
+ bottom: number;
3489
+ left: number;
3490
+ right: number;
3491
+ }
3492
+ interface ScanQrPopupParams {
3493
+ text?: string;
3494
+ }
3495
+ interface SecureStorage {
3496
+ setItem: (key: string, value: string, callback?: (error: unknown | null, isStored: boolean) => void) => SecureStorage;
3497
+ getItem: (key: string, callback: (error: unknown | null, value: string | null, canBeRestored: boolean) => void) => SecureStorage;
3498
+ restoreItem: (key: string, callback?: (error: unknown | null, value: string | null) => void) => SecureStorage;
3499
+ removeItem: (key: string, callback?: (error: unknown | null, isRemoved: boolean) => void) => SecureStorage;
3500
+ clear: (callback?: (error: unknown | null, isCleared: boolean) => void) => SecureStorage;
3501
+ }
3502
+ interface SettingsButton {
3503
+ isVisible: boolean;
3504
+ onClick: (callback: () => void) => SettingsButton;
3505
+ offClick: (callback: () => void) => SettingsButton;
3506
+ show: () => SettingsButton;
3507
+ hide: () => SettingsButton;
3508
+ }
3509
+ interface StoryShareParams {
3510
+ text?: string;
3511
+ widget_link?: StoryWidgetLink;
3512
+ }
3513
+ interface StoryWidgetLink {
3514
+ url: string;
3515
+ name?: string;
3516
+ }
3517
+ interface ThemeParams {
3518
+ bg_color?: string;
3519
+ text_color?: string;
3520
+ hint_color?: string;
3521
+ link_color?: string;
3522
+ button_color?: string;
3523
+ button_text_color?: string;
3524
+ secondary_bg_color?: string;
3525
+ header_bg_color?: string;
3526
+ bottom_bar_bg_color?: string;
3527
+ accent_text_color?: string;
3528
+ section_bg_color?: string;
3529
+ section_header_text_color?: string;
3530
+ section_separator_color?: string;
3531
+ subtitle_text_color?: string;
3532
+ destructive_text_color?: string;
3533
+ }
3534
+ interface WebAppChat {
3535
+ id: number;
3536
+ type: "group" | "supergroup" | "channel";
3537
+ title: string;
3538
+ username?: string;
3539
+ photo_url?: "in";
3540
+ }
3541
+ interface WebAppInitData {
3542
+ auth_date: number;
3543
+ hash: string;
3544
+ signature: string;
3545
+ query_id?: string;
3546
+ user?: WebAppUser;
3547
+ receiver?: WebAppUser;
3548
+ chat?: WebAppChat;
3549
+ chat_type?: string;
3550
+ chat_instance?: string;
3551
+ start_param?: string;
3552
+ can_send_after?: number;
3553
+ }
3554
+ interface WebAppUser {
3555
+ id: number;
3556
+ first_name: string;
3557
+ is_bot?: boolean;
3558
+ last_name?: string;
3559
+ username?: string;
3560
+ language_code?: string;
3561
+ is_premium?: boolean;
3562
+ added_to_attachment_menu?: boolean;
3563
+ allows_write_to_pm?: boolean;
3564
+ photo_url?: "in";
3565
+ }
3566
+
2879
3567
  declare const defaultBaseUrl = "https://api.telegram.org";
2880
3568
  declare const MESSAGE_EFFECTS: {
2881
3569
  readonly "\uD83D\uDD25": "5104841245755180586";
@@ -2889,4 +3577,4 @@ type MessageEffect = keyof typeof MESSAGE_EFFECTS;
2889
3577
  declare const messageEffectIdCodes: MessageEffect[];
2890
3578
  declare const isMessageEffect: (input: unknown) => input is MessageEffect;
2891
3579
 
2892
- export { type AddStickerToSetInput, type AffiliateInfo, type Animation, type AnswerCallbackQueryInput, type AnswerInlineQueryInput, type AnswerPreCheckoutQueryInput, type AnswerShippingQueryInput, type AnswerWebAppQueryInput, type Api, type ApproveChatJoinRequestInput, type Audio, type AvailableUpdateTypes, type BackgroundFill, type BackgroundFillFreeformGradient, type BackgroundFillGradient, type BackgroundFillSolid, type BackgroundType, type BackgroundTypeChatTheme, type BackgroundTypeFill, type BackgroundTypePattern, type BackgroundTypeWallpaper, type BanChatMemberInput, type BanChatSenderChatInput, type Birthdate, type BotBatchMode, type BotCommand, type BotCommandScope, type BotCommandScopeAllChatAdministrators, type BotCommandScopeAllGroupChats, type BotCommandScopeAllPrivateChats, type BotCommandScopeChat, type BotCommandScopeChatAdministrators, type BotCommandScopeChatMember, type BotCommandScopeDefault, type BotDescription, type BotInstance, type BotMode, type BotName, BotResponse, BotRunService, type BotShortDescription, type BotSingleMode, BotUpdateHandlersTag, type BotUpdatesHandlers, 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 ChatPermissions, type ChatPhoto, type ChatShared, type ChosenInlineResult, type CloseForumTopicInput, type CloseGeneralForumTopicInput, type CloseInput, type Contact, type CopyMessageInput, type CopyMessagesInput, type CopyTextButton, type CreateChatInviteLinkInput, type CreateChatSubscriptionInviteLinkInput, type CreateForumTopicInput, type CreateInvoiceLinkInput, type CreateNewStickerSetInput, type DeclineChatJoinRequestInput, type DeleteChatPhotoInput, type DeleteChatStickerSetInput, type DeleteForumTopicInput, type DeleteMessageInput, type DeleteMessagesInput, type DeleteMyCommandsInput, type DeleteStickerFromSetInput, type DeleteStickerSetInput, type DeleteWebhookInput, type Dice, type Document, type EditChatInviteLinkInput, type EditChatSubscriptionInviteLinkInput, type EditForumTopicInput, type EditGeneralForumTopicInput, type EditMessageCaptionInput, type EditMessageLiveLocationInput, type EditMessageMediaInput, type EditMessageReplyMarkupInput, type EditMessageTextInput, type EditUserStarSubscriptionInput, type EncryptedCredentials, type EncryptedPassportElement, type ExportChatInviteLinkInput, type ExternalReplyInfo, type File$1 as 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 GetBusinessConnectionInput, type GetChatAdministratorsInput, type GetChatInput, type GetChatMemberCountInput, type GetChatMemberInput, type GetChatMenuButtonInput, type GetCustomEmojiStickersInput, type GetFileInput, type GetForumTopicIconStickersInput, type GetGameHighScoresInput, type GetMeInput, type GetMyCommandsInput, type GetMyDefaultAdministratorRightsInput, type GetMyDescriptionInput, type GetMyNameInput, type GetMyShortDescriptionInput, type GetStarTransactionsInput, type GetStickerSetInput, type GetUpdatesInput, type GetUserChatBoostsInput, type GetUserProfilePhotosInput, type GetWebhookInfoInput, type Gift, type Gifts, type Giveaway, type GiveawayCompleted, type GiveawayCreated, type GiveawayWinners, type HandleBatchUpdateFunction, type HandleUpdateFunction, 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 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 InputSticker, type InputTextMessageContent, type InputVenueMessageContent, type Invoice, type KeyboardButton, type KeyboardButtonPollType, type KeyboardButtonRequestChat, type KeyboardButtonRequestUsers, type LabeledPrice, type LeaveChatInput, type LinkPreviewOptions, type Location, type LogOutInput, type LoginUrl, MESSAGE_EFFECTS, type MaskPosition, type MaybeInaccessibleMessage, type MenuButton, type MenuButtonCommands, type MenuButtonDefault, type MenuButtonWebApp, type Message, type MessageAutoDeleteTimerChanged, type MessageEffect, type MessageEntity, type MessageId, type MessageOrigin, type MessageOriginChannel, type MessageOriginChat, type MessageOriginHiddenUser, type MessageOriginUser, type MessageReactionCountUpdated, type MessageReactionUpdated, type OrderInfo, type PaidMedia, type PaidMediaInfo, type PaidMediaPhoto, type PaidMediaPreview, type PaidMediaPurchased, type PaidMediaVideo, 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 PreCheckoutQuery, type PreparedInlineMessage, type PromoteChatMemberInput, type ProximityAlertTriggered, type ReactionCount, type ReactionType, type ReactionTypeCustomEmoji, type ReactionTypeEmoji, type ReactionTypePaid, type RefundStarPaymentInput, type RefundedPayment, type RemoveChatVerificationInput, type RemoveUserVerificationInput, type ReopenForumTopicInput, type ReopenGeneralForumTopicInput, type ReplaceStickerInSetInput, type ReplyKeyboardMarkup, type ReplyKeyboardRemove, type ReplyParameters, type ResponseParameters, type RestrictChatMemberInput, type RevenueWithdrawalState, type RevenueWithdrawalStateFailed, type RevenueWithdrawalStatePending, type RevenueWithdrawalStateSucceeded, type RevokeChatInviteLinkInput, type SavePreparedInlineMessageInput, type SendAnimationInput, type SendAudioInput, type SendChatActionInput, type SendContactInput, type SendDiceInput, type SendDocumentInput, type SendGameInput, type SendGiftInput, type SendInvoiceInput, type SendLocationInput, type SendMediaGroupInput, type SendMessageInput, type SendPaidMediaInput, type SendPhotoInput, type SendPollInput, type SendStickerInput, type SendVenueInput, type SendVideoInput, type SendVideoNoteInput, type SendVoiceInput, type SentWebAppMessage, type SetChatAdministratorCustomTitleInput, type SetChatDescriptionInput, 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 SetMyShortDescriptionInput, type SetPassportDataErrorsInput, type SetStickerEmojiListInput, type SetStickerKeywordsInput, type SetStickerMaskPositionInput, type SetStickerPositionInSetInput, type SetStickerSetThumbnailInput, type SetStickerSetTitleInput, type SetUserEmojiStatusInput, type SetWebhookInput, type SharedUser, type ShippingAddress, type ShippingOption, type ShippingQuery, type StarTransaction, type StarTransactions, type Sticker, type StickerSet, type StopMessageLiveLocationInput, type StopPollInput, type Story, type SuccessfulPayment, type SwitchInlineQueryChosenChat, type TextQuote, type TgBotClient, type TransactionPartner, type TransactionPartnerAffiliateProgram, type TransactionPartnerChat, type TransactionPartnerFragment, type TransactionPartnerOther, type TransactionPartnerTelegramAds, type TransactionPartnerTelegramApi, type TransactionPartnerUser, type UnbanChatMemberInput, type UnbanChatSenderChatInput, type UnhideGeneralForumTopicInput, type UnpinAllChatMessagesInput, type UnpinAllForumTopicMessagesInput, type UnpinAllGeneralForumTopicMessagesInput, type UnpinChatMessageInput, type Update, type UploadStickerFileInput, type User, type UserChatBoosts, type UserProfilePhotos, type UsersShared, type Venue, type VerifyChatInput, type VerifyUserInput, type Video, type VideoChatEnded, type VideoChatParticipantsInvited, type VideoChatScheduled, type VideoChatStarted, type VideoNote, type Voice, type WebAppData, type WebAppInfo, type WebhookInfo, type WriteAccessAllowed, defaultBaseUrl, defineBot, isMessageEffect, launchBot, makeTgBotClient, messageEffectIdCodes, runTgChatBot };
3580
+ export { type Accelerometer, type AccelerometerStartParams, type AcceptedGiftTypes, type AddStickerToSetInput, type AffiliateInfo, type Animation, type AnswerCallbackQueryInput, type AnswerInlineQueryInput, type AnswerPreCheckoutQueryInput, type AnswerShippingQueryInput, type AnswerWebAppQueryInput, type Api, type ApproveChatJoinRequestInput, type Audio, type AvailableUpdateTypes, 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 BiometricAuthenticateParams, type BiometricManager, type BiometricRequestAccessParams, type Birthdate, type BotBatchMode, type BotCommand, type BotCommandScope, type BotCommandScopeAllChatAdministrators, type BotCommandScopeAllGroupChats, type BotCommandScopeAllPrivateChats, type BotCommandScopeChat, type BotCommandScopeChatAdministrators, type BotCommandScopeChatMember, type BotCommandScopeDefault, type BotDescription, type BotInstance, type BotMode, type BotName, BotResponse, BotRunService, type BotShortDescription, type BotSingleMode, BotUpdateHandlersTag, type BotUpdatesHandlers, 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 ChatPermissions, type ChatPhoto, type ChatShared, 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 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 Document, type DownloadFileParams, type EditChatInviteLinkInput, type EditChatSubscriptionInviteLinkInput, type EditForumTopicInput, type EditGeneralForumTopicInput, type EditMessageCaptionInput, type EditMessageLiveLocationInput, type EditMessageMediaInput, type EditMessageReplyMarkupInput, type EditMessageTextInput, type EditStoryInput, type EditUserStarSubscriptionInput, type EmojiStatusParams, type EncryptedCredentials, type EncryptedPassportElement, type ExportChatInviteLinkInput, type ExternalReplyInfo, type File$1 as 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 GetChatInput, type GetChatMemberCountInput, type GetChatMemberInput, type GetChatMenuButtonInput, type GetCustomEmojiStickersInput, type GetFileInput, type GetForumTopicIconStickersInput, type GetGameHighScoresInput, type GetMeInput, type GetMyCommandsInput, type GetMyDefaultAdministratorRightsInput, type GetMyDescriptionInput, type GetMyNameInput, type GetMyShortDescriptionInput, type GetStarTransactionsInput, type GetStickerSetInput, type GetUpdatesInput, type GetUserChatBoostsInput, type GetUserProfilePhotosInput, type GetWebhookInfoInput, type Gift, type GiftInfo, type GiftPremiumSubscriptionInput, type Gifts, type Giveaway, type GiveawayCompleted, type GiveawayCreated, type GiveawayWinners, type Gyroscope, type GyroscopeStartParams, type HandleBatchUpdateFunction, type HandleUpdateFunction, 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 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 KeyboardButtonRequestUsers, type LabeledPrice, type LeaveChatInput, type LinkPreviewOptions, type Location, type LocationAddress, type LocationData, type LocationManager, type LogOutInput, type LoginUrl, MESSAGE_EFFECTS, type MaskPosition, type MaybeInaccessibleMessage, type MenuButton, type MenuButtonCommands, type MenuButtonDefault, type MenuButtonWebApp, type Message, type MessageAutoDeleteTimerChanged, type MessageEffect, 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 PopupButton, type PopupParams, type PostStoryInput, type PreCheckoutQuery, type PreparedInlineMessage, 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 RemoveUserVerificationInput, type ReopenForumTopicInput, type ReopenGeneralForumTopicInput, type ReplaceStickerInSetInput, type ReplyKeyboardMarkup, type ReplyKeyboardRemove, type ReplyParameters, type ResponseParameters, type RestrictChatMemberInput, type RevenueWithdrawalState, type RevenueWithdrawalStateFailed, type RevenueWithdrawalStatePending, type RevenueWithdrawalStateSucceeded, type RevokeChatInviteLinkInput, type SafeAreaInset, type SavePreparedInlineMessageInput, type ScanQrPopupParams, type SecureStorage, type SendAnimationInput, type SendAudioInput, type SendChatActionInput, type SendContactInput, type SendDiceInput, type SendDocumentInput, type SendGameInput, type SendGiftInput, type SendInvoiceInput, type SendLocationInput, type SendMediaGroupInput, 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 SetChatMenuButtonInput, type SetChatPermissionsInput, type SetChatPhotoInput, type SetChatStickerSetInput, type SetChatTitleInput, type SetCustomEmojiStickerSetThumbnailInput, type SetGameScoreInput, type SetMessageReactionInput, type SetMyCommandsInput, type SetMyDefaultAdministratorRightsInput, type SetMyDescriptionInput, type SetMyNameInput, 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 SwitchInlineQueryChosenChat, type TextQuote, type TgBotClient, type TgWebApp, 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 UniqueGiftInfo, type UniqueGiftModel, type UniqueGiftSymbol, type UnpinAllChatMessagesInput, type UnpinAllForumTopicMessagesInput, type UnpinAllGeneralForumTopicMessagesInput, type UnpinChatMessageInput, type Update, type UpgradeGiftInput, type UploadStickerFileInput, type User, type UserChatBoosts, type UserProfilePhotos, type UsersShared, type Venue, type VerifyChatInput, type VerifyUserInput, type Video, type VideoChatEnded, type VideoChatParticipantsInvited, type VideoChatScheduled, type VideoChatStarted, type VideoNote, type Voice, type WebAppChat, type WebAppData, type WebAppInfo, type WebAppInitData, type WebAppUser, type WebhookInfo, type WriteAccessAllowed, defaultBaseUrl, defineBot, isMessageEffect, launchBot, makeTgBotClient, messageEffectIdCodes, runTgChatBot };