@mtkruto/node 0.2.30 → 0.2.32

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 (55) hide show
  1. package/esm/3_types.d.ts +1 -0
  2. package/esm/3_types.d.ts.map +1 -1
  3. package/esm/3_types.js +1 -0
  4. package/esm/4_constants.d.ts +1 -1
  5. package/esm/4_constants.js +1 -1
  6. package/esm/client/1_client_encrypted.d.ts +1 -1
  7. package/esm/client/1_client_encrypted.d.ts.map +1 -1
  8. package/esm/client/1_client_plain.d.ts +1 -1
  9. package/esm/client/1_client_plain.d.ts.map +1 -1
  10. package/esm/client/3_message_manager.d.ts.map +1 -1
  11. package/esm/client/3_message_manager.js +6 -0
  12. package/esm/client/4_story_manager.d.ts.map +1 -1
  13. package/esm/client/4_story_manager.js +3 -0
  14. package/esm/client/5_client.d.ts +3 -3
  15. package/esm/client/5_client.d.ts.map +1 -1
  16. package/esm/tl/0_api.d.ts +179 -22
  17. package/esm/tl/0_api.d.ts.map +1 -1
  18. package/esm/tl/0_api.js +249 -16
  19. package/esm/types/0_refunded_payment.d.ts +29 -0
  20. package/esm/types/0_refunded_payment.d.ts.map +1 -0
  21. package/esm/types/0_refunded_payment.js +29 -0
  22. package/esm/types/2_chat.d.ts +1 -0
  23. package/esm/types/2_chat.d.ts.map +1 -1
  24. package/esm/types/2_chat.js +1 -0
  25. package/esm/types/4_message.d.ts +11 -1
  26. package/esm/types/4_message.d.ts.map +1 -1
  27. package/esm/types/4_message.js +6 -0
  28. package/package.json +1 -1
  29. package/script/3_types.d.ts +1 -0
  30. package/script/3_types.d.ts.map +1 -1
  31. package/script/3_types.js +1 -0
  32. package/script/4_constants.d.ts +1 -1
  33. package/script/4_constants.js +1 -1
  34. package/script/client/1_client_encrypted.d.ts +1 -1
  35. package/script/client/1_client_encrypted.d.ts.map +1 -1
  36. package/script/client/1_client_plain.d.ts +1 -1
  37. package/script/client/1_client_plain.d.ts.map +1 -1
  38. package/script/client/3_message_manager.d.ts.map +1 -1
  39. package/script/client/3_message_manager.js +6 -0
  40. package/script/client/4_story_manager.d.ts.map +1 -1
  41. package/script/client/4_story_manager.js +3 -0
  42. package/script/client/5_client.d.ts +3 -3
  43. package/script/client/5_client.d.ts.map +1 -1
  44. package/script/tl/0_api.d.ts +179 -22
  45. package/script/tl/0_api.d.ts.map +1 -1
  46. package/script/tl/0_api.js +249 -16
  47. package/script/types/0_refunded_payment.d.ts +29 -0
  48. package/script/types/0_refunded_payment.d.ts.map +1 -0
  49. package/script/types/0_refunded_payment.js +33 -0
  50. package/script/types/2_chat.d.ts +1 -0
  51. package/script/types/2_chat.d.ts.map +1 -1
  52. package/script/types/2_chat.js +1 -0
  53. package/script/types/4_message.d.ts +11 -1
  54. package/script/types/4_message.d.ts.map +1 -1
  55. package/script/types/4_message.js +6 -0
package/esm/tl/0_api.d.ts CHANGED
@@ -307,6 +307,10 @@ export interface inputFileBig {
307
307
  parts: number;
308
308
  name: string;
309
309
  }
310
+ export interface inputFileStoryDocument {
311
+ _: "inputFileStoryDocument";
312
+ id: InputDocument;
313
+ }
310
314
  export interface inputMediaEmpty {
311
315
  _: "inputMediaEmpty";
312
316
  }
@@ -592,6 +596,7 @@ export interface user {
592
596
  stories_unavailable?: true;
593
597
  contact_require_premium?: true;
594
598
  bot_business?: true;
599
+ bot_has_main_app?: true;
595
600
  id: bigint;
596
601
  access_hash?: bigint;
597
602
  first_name?: string;
@@ -609,6 +614,7 @@ export interface user {
609
614
  stories_max_id?: number;
610
615
  color?: PeerColor;
611
616
  profile_color?: PeerColor;
617
+ bot_active_users?: number;
612
618
  }
613
619
  export interface userProfilePhotoEmpty {
614
620
  _: "userProfilePhotoEmpty";
@@ -765,6 +771,7 @@ export interface channelFull {
765
771
  restricted_sponsored?: true;
766
772
  can_view_revenue?: true;
767
773
  paid_media_allowed?: true;
774
+ can_view_stars_revenue?: true;
768
775
  id: bigint;
769
776
  about: string;
770
777
  participants_count?: number;
@@ -1243,6 +1250,23 @@ export interface messageActionRequestedPeerSentMe {
1243
1250
  button_id: number;
1244
1251
  peers: Array<RequestedPeer>;
1245
1252
  }
1253
+ export interface messageActionPaymentRefunded {
1254
+ _: "messageActionPaymentRefunded";
1255
+ peer: Peer;
1256
+ currency: string;
1257
+ total_amount: bigint;
1258
+ payload?: Uint8Array;
1259
+ charge: PaymentCharge;
1260
+ }
1261
+ export interface messageActionGiftStars {
1262
+ _: "messageActionGiftStars";
1263
+ currency: string;
1264
+ amount: bigint;
1265
+ stars: bigint;
1266
+ crypto_currency?: string;
1267
+ crypto_amount?: bigint;
1268
+ transaction_id?: string;
1269
+ }
1246
1270
  export interface dialog {
1247
1271
  _: "dialog";
1248
1272
  pinned?: true;
@@ -3082,6 +3106,7 @@ export interface documentAttributeVideo {
3082
3106
  w: number;
3083
3107
  h: number;
3084
3108
  preload_prefix_size?: number;
3109
+ video_start_ts?: number;
3085
3110
  }
3086
3111
  export interface documentAttributeAudio {
3087
3112
  _: "documentAttributeAudio";
@@ -3351,6 +3376,7 @@ export interface botCommand {
3351
3376
  }
3352
3377
  export interface botInfo {
3353
3378
  _: "botInfo";
3379
+ has_preview_medias?: true;
3354
3380
  user_id?: bigint;
3355
3381
  description?: string;
3356
3382
  description_photo?: Photo;
@@ -4109,6 +4135,9 @@ export interface topPeerCategoryForwardUsers {
4109
4135
  export interface topPeerCategoryForwardChats {
4110
4136
  _: "topPeerCategoryForwardChats";
4111
4137
  }
4138
+ export interface topPeerCategoryBotsApp {
4139
+ _: "topPeerCategoryBotsApp";
4140
+ }
4112
4141
  export interface topPeerCategoryPeers {
4113
4142
  _: "topPeerCategoryPeers";
4114
4143
  category: TopPeerCategory;
@@ -6680,7 +6709,7 @@ export interface inputInvoicePremiumGiftCode {
6680
6709
  }
6681
6710
  export interface inputInvoiceStars {
6682
6711
  _: "inputInvoiceStars";
6683
- option: StarsTopupOption;
6712
+ purpose: InputStorePaymentPurpose;
6684
6713
  }
6685
6714
  export interface payments_exportedInvoice {
6686
6715
  _: "payments.exportedInvoice";
@@ -6734,8 +6763,15 @@ export interface inputStorePaymentPremiumGiveaway {
6734
6763
  currency: string;
6735
6764
  amount: bigint;
6736
6765
  }
6737
- export interface inputStorePaymentStars {
6738
- _: "inputStorePaymentStars";
6766
+ export interface inputStorePaymentStarsTopup {
6767
+ _: "inputStorePaymentStarsTopup";
6768
+ stars: bigint;
6769
+ currency: string;
6770
+ amount: bigint;
6771
+ }
6772
+ export interface inputStorePaymentStarsGift {
6773
+ _: "inputStorePaymentStarsGift";
6774
+ user_id: InputUser;
6739
6775
  stars: bigint;
6740
6776
  currency: string;
6741
6777
  amount: bigint;
@@ -7298,6 +7334,13 @@ export interface mediaAreaUrl {
7298
7334
  coordinates: MediaAreaCoordinates;
7299
7335
  url: string;
7300
7336
  }
7337
+ export interface mediaAreaWeather {
7338
+ _: "mediaAreaWeather";
7339
+ coordinates: MediaAreaCoordinates;
7340
+ emoji: string;
7341
+ temperature_c: number;
7342
+ color: number;
7343
+ }
7301
7344
  export interface peerStories {
7302
7345
  _: "peerStories";
7303
7346
  peer: Peer;
@@ -7971,6 +8014,7 @@ export interface starsTransaction {
7971
8014
  refund?: true;
7972
8015
  pending?: true;
7973
8016
  failed?: true;
8017
+ gift?: true;
7974
8018
  id: string;
7975
8019
  stars: bigint;
7976
8020
  date: number;
@@ -8039,6 +8083,29 @@ export interface inputStarsTransaction {
8039
8083
  refund?: true;
8040
8084
  id: string;
8041
8085
  }
8086
+ export interface starsGiftOption {
8087
+ _: "starsGiftOption";
8088
+ extended?: true;
8089
+ stars: bigint;
8090
+ store_product?: string;
8091
+ currency: string;
8092
+ amount: bigint;
8093
+ }
8094
+ export interface bots_popularAppBots {
8095
+ _: "bots.popularAppBots";
8096
+ next_offset?: string;
8097
+ users: Array<User>;
8098
+ }
8099
+ export interface botPreviewMedia {
8100
+ _: "botPreviewMedia";
8101
+ date: number;
8102
+ media: MessageMedia;
8103
+ }
8104
+ export interface bots_previewInfo {
8105
+ _: "bots.previewInfo";
8106
+ media: Array<BotPreviewMedia>;
8107
+ lang_codes: Array<string>;
8108
+ }
8042
8109
  export interface req_pq_multi {
8043
8110
  _: "req_pq_multi";
8044
8111
  nonce: bigint;
@@ -8108,19 +8175,19 @@ export interface invokeWithApnsSecretPrefix {
8108
8175
  secret: string;
8109
8176
  [R]?: Error;
8110
8177
  }
8111
- export interface invokeAfterMsg<T extends Function> {
8178
+ export interface invokeAfterMsg<T> {
8112
8179
  _: "invokeAfterMsg";
8113
8180
  msg_id: bigint;
8114
8181
  query: T;
8115
8182
  [R]?: ReturnType<T>;
8116
8183
  }
8117
- export interface invokeAfterMsgs<T extends Function> {
8184
+ export interface invokeAfterMsgs<T> {
8118
8185
  _: "invokeAfterMsgs";
8119
8186
  msg_ids: Array<bigint>;
8120
8187
  query: T;
8121
8188
  [R]?: ReturnType<T>;
8122
8189
  }
8123
- export interface initConnection<T extends Function> {
8190
+ export interface initConnection<T> {
8124
8191
  _: "initConnection";
8125
8192
  api_id: number;
8126
8193
  device_model: string;
@@ -8134,43 +8201,43 @@ export interface initConnection<T extends Function> {
8134
8201
  query: T;
8135
8202
  [R]?: ReturnType<T>;
8136
8203
  }
8137
- export interface invokeWithLayer<T extends Function> {
8204
+ export interface invokeWithLayer<T> {
8138
8205
  _: "invokeWithLayer";
8139
8206
  layer: number;
8140
8207
  query: T;
8141
8208
  [R]?: ReturnType<T>;
8142
8209
  }
8143
- export interface invokeWithoutUpdates<T extends Function> {
8210
+ export interface invokeWithoutUpdates<T> {
8144
8211
  _: "invokeWithoutUpdates";
8145
8212
  query: T;
8146
8213
  [R]?: ReturnType<T>;
8147
8214
  }
8148
- export interface invokeWithMessagesRange<T extends Function> {
8215
+ export interface invokeWithMessagesRange<T> {
8149
8216
  _: "invokeWithMessagesRange";
8150
8217
  range: MessageRange;
8151
8218
  query: T;
8152
8219
  [R]?: ReturnType<T>;
8153
8220
  }
8154
- export interface invokeWithTakeout<T extends Function> {
8221
+ export interface invokeWithTakeout<T> {
8155
8222
  _: "invokeWithTakeout";
8156
8223
  takeout_id: bigint;
8157
8224
  query: T;
8158
8225
  [R]?: ReturnType<T>;
8159
8226
  }
8160
- export interface invokeWithBusinessConnection<T extends Function> {
8227
+ export interface invokeWithBusinessConnection<T> {
8161
8228
  _: "invokeWithBusinessConnection";
8162
8229
  connection_id: string;
8163
8230
  query: T;
8164
8231
  [R]?: ReturnType<T>;
8165
8232
  }
8166
- export interface invokeWithGooglePlayIntegrity<T extends Function> {
8233
+ export interface invokeWithGooglePlayIntegrity<T> {
8167
8234
  _: "invokeWithGooglePlayIntegrity";
8168
8235
  nonce: string;
8169
8236
  token: string;
8170
8237
  query: T;
8171
8238
  [R]?: ReturnType<T>;
8172
8239
  }
8173
- export interface invokeWithApnsSecret<T extends Function> {
8240
+ export interface invokeWithApnsSecret<T> {
8174
8241
  _: "invokeWithApnsSecret";
8175
8242
  nonce: string;
8176
8243
  secret: string;
@@ -9037,6 +9104,7 @@ export interface contacts_getTopPeers {
9037
9104
  forward_chats?: true;
9038
9105
  groups?: true;
9039
9106
  channels?: true;
9107
+ bots_app?: true;
9040
9108
  offset: number;
9041
9109
  limit: number;
9042
9110
  hash: bigint;
@@ -10626,6 +10694,16 @@ export interface messages_getFactCheck {
10626
10694
  msg_id: Array<number>;
10627
10695
  [R]?: Array<FactCheck>;
10628
10696
  }
10697
+ export interface messages_requestMainWebView {
10698
+ _: "messages.requestMainWebView";
10699
+ compact?: true;
10700
+ peer: InputPeer;
10701
+ bot: InputUser;
10702
+ start_param?: string;
10703
+ theme_params?: DataJSON;
10704
+ platform: string;
10705
+ [R]?: WebViewResult;
10706
+ }
10629
10707
  export interface updates_getState {
10630
10708
  _: "updates.getState";
10631
10709
  [R]?: updates_State;
@@ -11385,6 +11463,52 @@ export interface bots_invokeWebViewCustomMethod {
11385
11463
  params: DataJSON;
11386
11464
  [R]?: DataJSON;
11387
11465
  }
11466
+ export interface bots_getPopularAppBots {
11467
+ _: "bots.getPopularAppBots";
11468
+ offset: string;
11469
+ limit: number;
11470
+ [R]?: bots_PopularAppBots;
11471
+ }
11472
+ export interface bots_addPreviewMedia {
11473
+ _: "bots.addPreviewMedia";
11474
+ bot: InputUser;
11475
+ lang_code: string;
11476
+ media: InputMedia;
11477
+ [R]?: BotPreviewMedia;
11478
+ }
11479
+ export interface bots_editPreviewMedia {
11480
+ _: "bots.editPreviewMedia";
11481
+ bot: InputUser;
11482
+ lang_code: string;
11483
+ media: InputMedia;
11484
+ new_media: InputMedia;
11485
+ [R]?: BotPreviewMedia;
11486
+ }
11487
+ export interface bots_deletePreviewMedia {
11488
+ _: "bots.deletePreviewMedia";
11489
+ bot: InputUser;
11490
+ lang_code: string;
11491
+ media: Array<InputMedia>;
11492
+ [R]?: boolean;
11493
+ }
11494
+ export interface bots_reorderPreviewMedias {
11495
+ _: "bots.reorderPreviewMedias";
11496
+ bot: InputUser;
11497
+ lang_code: string;
11498
+ order: Array<InputMedia>;
11499
+ [R]?: boolean;
11500
+ }
11501
+ export interface bots_getPreviewInfo {
11502
+ _: "bots.getPreviewInfo";
11503
+ bot: InputUser;
11504
+ lang_code: string;
11505
+ [R]?: bots_PreviewInfo;
11506
+ }
11507
+ export interface bots_getPreviewMedias {
11508
+ _: "bots.getPreviewMedias";
11509
+ bot: InputUser;
11510
+ [R]?: Array<BotPreviewMedia>;
11511
+ }
11388
11512
  export interface payments_getPaymentForm {
11389
11513
  _: "payments.getPaymentForm";
11390
11514
  invoice: InputInvoice;
@@ -11534,6 +11658,11 @@ export interface payments_getStarsTransactionsByID {
11534
11658
  id: Array<InputStarsTransaction>;
11535
11659
  [R]?: payments_StarsStatus;
11536
11660
  }
11661
+ export interface payments_getStarsGiftOptions {
11662
+ _: "payments.getStarsGiftOptions";
11663
+ user_id?: InputUser;
11664
+ [R]?: Array<StarsGiftOption>;
11665
+ }
11537
11666
  export interface stickers_createStickerSet {
11538
11667
  _: "stickers.createStickerSet";
11539
11668
  masks?: true;
@@ -12289,6 +12418,7 @@ export interface Types {
12289
12418
  "inputPhoneContact": inputPhoneContact;
12290
12419
  "inputFile": inputFile;
12291
12420
  "inputFileBig": inputFileBig;
12421
+ "inputFileStoryDocument": inputFileStoryDocument;
12292
12422
  "inputMediaEmpty": inputMediaEmpty;
12293
12423
  "inputMediaUploadedPhoto": inputMediaUploadedPhoto;
12294
12424
  "inputMediaPhoto": inputMediaPhoto;
@@ -12424,6 +12554,8 @@ export interface Types {
12424
12554
  "messageActionGiveawayResults": messageActionGiveawayResults;
12425
12555
  "messageActionBoostApply": messageActionBoostApply;
12426
12556
  "messageActionRequestedPeerSentMe": messageActionRequestedPeerSentMe;
12557
+ "messageActionPaymentRefunded": messageActionPaymentRefunded;
12558
+ "messageActionGiftStars": messageActionGiftStars;
12427
12559
  "dialog": dialog;
12428
12560
  "dialogFolder": dialogFolder;
12429
12561
  "photoEmpty": photoEmpty;
@@ -12925,6 +13057,7 @@ export interface Types {
12925
13057
  "topPeerCategoryPhoneCalls": topPeerCategoryPhoneCalls;
12926
13058
  "topPeerCategoryForwardUsers": topPeerCategoryForwardUsers;
12927
13059
  "topPeerCategoryForwardChats": topPeerCategoryForwardChats;
13060
+ "topPeerCategoryBotsApp": topPeerCategoryBotsApp;
12928
13061
  "topPeerCategoryPeers": topPeerCategoryPeers;
12929
13062
  "contacts.topPeersNotModified": contacts_topPeersNotModified;
12930
13063
  "contacts.topPeers": contacts_topPeers;
@@ -13380,7 +13513,8 @@ export interface Types {
13380
13513
  "inputStorePaymentGiftPremium": inputStorePaymentGiftPremium;
13381
13514
  "inputStorePaymentPremiumGiftCode": inputStorePaymentPremiumGiftCode;
13382
13515
  "inputStorePaymentPremiumGiveaway": inputStorePaymentPremiumGiveaway;
13383
- "inputStorePaymentStars": inputStorePaymentStars;
13516
+ "inputStorePaymentStarsTopup": inputStorePaymentStarsTopup;
13517
+ "inputStorePaymentStarsGift": inputStorePaymentStarsGift;
13384
13518
  "premiumGiftOption": premiumGiftOption;
13385
13519
  "paymentFormMethod": paymentFormMethod;
13386
13520
  "emojiStatusEmpty": emojiStatusEmpty;
@@ -13474,6 +13608,7 @@ export interface Types {
13474
13608
  "mediaAreaChannelPost": mediaAreaChannelPost;
13475
13609
  "inputMediaAreaChannelPost": inputMediaAreaChannelPost;
13476
13610
  "mediaAreaUrl": mediaAreaUrl;
13611
+ "mediaAreaWeather": mediaAreaWeather;
13477
13612
  "peerStories": peerStories;
13478
13613
  "stories.peerStories": stories_peerStories;
13479
13614
  "messages.webPage": messages_webPage;
@@ -13595,8 +13730,12 @@ export interface Types {
13595
13730
  "payments.starsRevenueWithdrawalUrl": payments_starsRevenueWithdrawalUrl;
13596
13731
  "payments.starsRevenueAdsAccountUrl": payments_starsRevenueAdsAccountUrl;
13597
13732
  "inputStarsTransaction": inputStarsTransaction;
13733
+ "starsGiftOption": starsGiftOption;
13734
+ "bots.popularAppBots": bots_popularAppBots;
13735
+ "botPreviewMedia": botPreviewMedia;
13736
+ "bots.previewInfo": bots_previewInfo;
13598
13737
  }
13599
- export interface Functions<T extends Function = Function> {
13738
+ export interface Functions<T = Function> {
13600
13739
  "req_pq_multi": req_pq_multi;
13601
13740
  "req_DH_params": req_DH_params;
13602
13741
  "set_client_DH_params": set_client_DH_params;
@@ -13997,6 +14136,7 @@ export interface Functions<T extends Function = Function> {
13997
14136
  "messages.editFactCheck": messages_editFactCheck;
13998
14137
  "messages.deleteFactCheck": messages_deleteFactCheck;
13999
14138
  "messages.getFactCheck": messages_getFactCheck;
14139
+ "messages.requestMainWebView": messages_requestMainWebView;
14000
14140
  "updates.getState": updates_getState;
14001
14141
  "updates.getDifference": updates_getDifference;
14002
14142
  "updates.getChannelDifference": updates_getChannelDifference;
@@ -14119,6 +14259,13 @@ export interface Functions<T extends Function = Function> {
14119
14259
  "bots.canSendMessage": bots_canSendMessage;
14120
14260
  "bots.allowSendMessage": bots_allowSendMessage;
14121
14261
  "bots.invokeWebViewCustomMethod": bots_invokeWebViewCustomMethod;
14262
+ "bots.getPopularAppBots": bots_getPopularAppBots;
14263
+ "bots.addPreviewMedia": bots_addPreviewMedia;
14264
+ "bots.editPreviewMedia": bots_editPreviewMedia;
14265
+ "bots.deletePreviewMedia": bots_deletePreviewMedia;
14266
+ "bots.reorderPreviewMedias": bots_reorderPreviewMedias;
14267
+ "bots.getPreviewInfo": bots_getPreviewInfo;
14268
+ "bots.getPreviewMedias": bots_getPreviewMedias;
14122
14269
  "payments.getPaymentForm": payments_getPaymentForm;
14123
14270
  "payments.getPaymentReceipt": payments_getPaymentReceipt;
14124
14271
  "payments.validateRequestedInfo": payments_validateRequestedInfo;
@@ -14144,6 +14291,7 @@ export interface Functions<T extends Function = Function> {
14144
14291
  "payments.getStarsRevenueWithdrawalUrl": payments_getStarsRevenueWithdrawalUrl;
14145
14292
  "payments.getStarsRevenueAdsAccountUrl": payments_getStarsRevenueAdsAccountUrl;
14146
14293
  "payments.getStarsTransactionsByID": payments_getStarsTransactionsByID;
14294
+ "payments.getStarsGiftOptions": payments_getStarsGiftOptions;
14147
14295
  "stickers.createStickerSet": stickers_createStickerSet;
14148
14296
  "stickers.removeStickerFromSet": stickers_removeStickerFromSet;
14149
14297
  "stickers.changeStickerPosition": stickers_changeStickerPosition;
@@ -14779,10 +14927,15 @@ export interface Enums {
14779
14927
  "payments.StarsRevenueWithdrawalUrl": payments_StarsRevenueWithdrawalUrl;
14780
14928
  "payments.StarsRevenueAdsAccountUrl": payments_StarsRevenueAdsAccountUrl;
14781
14929
  "InputStarsTransaction": InputStarsTransaction;
14930
+ "StarsGiftOption": StarsGiftOption;
14931
+ "bots.PopularAppBots": bots_PopularAppBots;
14932
+ "BotPreviewMedia": BotPreviewMedia;
14933
+ "bots.PreviewInfo": bots_PreviewInfo;
14782
14934
  }
14783
14935
  export type AnyType = Types[keyof Types];
14784
- export type AnyFunction<T extends Function = Function> = Functions<T>[keyof Functions<T>];
14785
- export type AnyObject<T extends Function = Function> = AnyType | AnyFunction<T>;
14936
+ export type AnyFunction<T = Function> = Functions<T>[keyof Functions<T>];
14937
+ export type AnyGenericFunction<T> = invokeAfterMsg<T> | invokeAfterMsgs<T> | initConnection<T> | invokeWithLayer<T> | invokeWithoutUpdates<T> | invokeWithMessagesRange<T> | invokeWithTakeout<T> | invokeWithBusinessConnection<T> | invokeWithGooglePlayIntegrity<T> | invokeWithApnsSecret<T>;
14938
+ export type AnyObject<T = Function> = AnyType | AnyFunction<T>;
14786
14939
  export type ResPQ = resPQ;
14787
14940
  export type P_Q_inner_data = p_q_inner_data_dc | p_q_inner_data_temp_dc;
14788
14941
  export type Server_DH_Params = server_DH_params_ok;
@@ -14816,7 +14969,7 @@ export type InputFileLocation = inputPeerPhotoFileLocationLegacy | inputStickerS
14816
14969
  export type InputPeer = inputPeerEmpty | inputPeerSelf | inputPeerChat | inputPeerUser | inputPeerChannel | inputPeerUserFromMessage | inputPeerChannelFromMessage;
14817
14970
  export type InputUser = inputUserEmpty | inputUserSelf | inputUser | inputUserFromMessage;
14818
14971
  export type InputContact = inputPhoneContact;
14819
- export type InputFile = inputFile | inputFileBig;
14972
+ export type InputFile = inputFile | inputFileBig | inputFileStoryDocument;
14820
14973
  export type InputMedia = inputMediaEmpty | inputMediaUploadedPhoto | inputMediaPhoto | inputMediaGeoPoint | inputMediaContact | inputMediaUploadedDocument | inputMediaDocument | inputMediaVenue | inputMediaPhotoExternal | inputMediaDocumentExternal | inputMediaGame | inputMediaInvoice | inputMediaGeoLive | inputMediaPoll | inputMediaDice | inputMediaStory | inputMediaWebPage | inputMediaPaidMedia;
14821
14974
  export type InputChatPhoto = inputChatPhotoEmpty | inputChatUploadedPhoto | inputChatPhoto;
14822
14975
  export type InputGeoPoint = inputGeoPointEmpty | inputGeoPoint;
@@ -14833,7 +14986,7 @@ export type ChatParticipants = chatParticipantsForbidden | chatParticipants;
14833
14986
  export type ChatPhoto = chatPhotoEmpty | chatPhoto;
14834
14987
  export type Message = messageEmpty | message | messageService;
14835
14988
  export type MessageMedia = messageMediaEmpty | messageMediaPhoto | messageMediaGeo | messageMediaContact | messageMediaUnsupported | messageMediaDocument | messageMediaWebPage | messageMediaVenue | messageMediaGame | messageMediaInvoice | messageMediaGeoLive | messageMediaPoll | messageMediaDice | messageMediaStory | messageMediaGiveaway | messageMediaGiveawayResults | messageMediaPaidMedia;
14836
- export type MessageAction = messageActionEmpty | messageActionChatCreate | messageActionChatEditTitle | messageActionChatEditPhoto | messageActionChatDeletePhoto | messageActionChatAddUser | messageActionChatDeleteUser | messageActionChatJoinedByLink | messageActionChannelCreate | messageActionChatMigrateTo | messageActionChannelMigrateFrom | messageActionPinMessage | messageActionHistoryClear | messageActionGameScore | messageActionPaymentSentMe | messageActionPaymentSent | messageActionPhoneCall | messageActionScreenshotTaken | messageActionCustomAction | messageActionBotAllowed | messageActionSecureValuesSentMe | messageActionSecureValuesSent | messageActionContactSignUp | messageActionGeoProximityReached | messageActionGroupCall | messageActionInviteToGroupCall | messageActionSetMessagesTTL | messageActionGroupCallScheduled | messageActionSetChatTheme | messageActionChatJoinedByRequest | messageActionWebViewDataSentMe | messageActionWebViewDataSent | messageActionGiftPremium | messageActionTopicCreate | messageActionTopicEdit | messageActionSuggestProfilePhoto | messageActionRequestedPeer | messageActionSetChatWallPaper | messageActionGiftCode | messageActionGiveawayLaunch | messageActionGiveawayResults | messageActionBoostApply | messageActionRequestedPeerSentMe;
14989
+ export type MessageAction = messageActionEmpty | messageActionChatCreate | messageActionChatEditTitle | messageActionChatEditPhoto | messageActionChatDeletePhoto | messageActionChatAddUser | messageActionChatDeleteUser | messageActionChatJoinedByLink | messageActionChannelCreate | messageActionChatMigrateTo | messageActionChannelMigrateFrom | messageActionPinMessage | messageActionHistoryClear | messageActionGameScore | messageActionPaymentSentMe | messageActionPaymentSent | messageActionPhoneCall | messageActionScreenshotTaken | messageActionCustomAction | messageActionBotAllowed | messageActionSecureValuesSentMe | messageActionSecureValuesSent | messageActionContactSignUp | messageActionGeoProximityReached | messageActionGroupCall | messageActionInviteToGroupCall | messageActionSetMessagesTTL | messageActionGroupCallScheduled | messageActionSetChatTheme | messageActionChatJoinedByRequest | messageActionWebViewDataSentMe | messageActionWebViewDataSent | messageActionGiftPremium | messageActionTopicCreate | messageActionTopicEdit | messageActionSuggestProfilePhoto | messageActionRequestedPeer | messageActionSetChatWallPaper | messageActionGiftCode | messageActionGiveawayLaunch | messageActionGiveawayResults | messageActionBoostApply | messageActionRequestedPeerSentMe | messageActionPaymentRefunded | messageActionGiftStars;
14837
14990
  export type Dialog = dialog | dialogFolder;
14838
14991
  export type Photo = photoEmpty | photo;
14839
14992
  export type PhotoSize = photoSizeEmpty | photoSize | photoCachedSize | photoStrippedSize | photoSizeProgressive | photoPathSize;
@@ -14941,7 +15094,7 @@ export type InputBotInlineMessageID = inputBotInlineMessageID | inputBotInlineMe
14941
15094
  export type InlineBotSwitchPM = inlineBotSwitchPM;
14942
15095
  export type messages_PeerDialogs = messages_peerDialogs;
14943
15096
  export type TopPeer = topPeer;
14944
- export type TopPeerCategory = topPeerCategoryBotsPM | topPeerCategoryBotsInline | topPeerCategoryCorrespondents | topPeerCategoryGroups | topPeerCategoryChannels | topPeerCategoryPhoneCalls | topPeerCategoryForwardUsers | topPeerCategoryForwardChats;
15097
+ export type TopPeerCategory = topPeerCategoryBotsPM | topPeerCategoryBotsInline | topPeerCategoryCorrespondents | topPeerCategoryGroups | topPeerCategoryChannels | topPeerCategoryPhoneCalls | topPeerCategoryForwardUsers | topPeerCategoryForwardChats | topPeerCategoryBotsApp;
14945
15098
  export type TopPeerCategoryPeers = topPeerCategoryPeers;
14946
15099
  export type contacts_TopPeers = contacts_topPeersNotModified | contacts_topPeers | contacts_topPeersDisabled;
14947
15100
  export type DraftMessage = draftMessageEmpty | draftMessage;
@@ -15162,7 +15315,7 @@ export type InputInvoice = inputInvoiceMessage | inputInvoiceSlug | inputInvoice
15162
15315
  export type payments_ExportedInvoice = payments_exportedInvoice;
15163
15316
  export type messages_TranscribedAudio = messages_transcribedAudio;
15164
15317
  export type help_PremiumPromo = help_premiumPromo;
15165
- export type InputStorePaymentPurpose = inputStorePaymentPremiumSubscription | inputStorePaymentGiftPremium | inputStorePaymentPremiumGiftCode | inputStorePaymentPremiumGiveaway | inputStorePaymentStars;
15318
+ export type InputStorePaymentPurpose = inputStorePaymentPremiumSubscription | inputStorePaymentGiftPremium | inputStorePaymentPremiumGiftCode | inputStorePaymentPremiumGiveaway | inputStorePaymentStarsTopup | inputStorePaymentStarsGift;
15166
15319
  export type PremiumGiftOption = premiumGiftOption;
15167
15320
  export type PaymentFormMethod = paymentFormMethod;
15168
15321
  export type EmojiStatus = emojiStatusEmpty | emojiStatus | emojiStatusUntil;
@@ -15216,7 +15369,7 @@ export type InputReplyTo = inputReplyToMessage | inputReplyToStory;
15216
15369
  export type ExportedStoryLink = exportedStoryLink;
15217
15370
  export type StoriesStealthMode = storiesStealthMode;
15218
15371
  export type MediaAreaCoordinates = mediaAreaCoordinates;
15219
- export type MediaArea = mediaAreaVenue | inputMediaAreaVenue | mediaAreaGeoPoint | mediaAreaSuggestedReaction | mediaAreaChannelPost | inputMediaAreaChannelPost | mediaAreaUrl;
15372
+ export type MediaArea = mediaAreaVenue | inputMediaAreaVenue | mediaAreaGeoPoint | mediaAreaSuggestedReaction | mediaAreaChannelPost | inputMediaAreaChannelPost | mediaAreaUrl | mediaAreaWeather;
15220
15373
  export type PeerStories = peerStories;
15221
15374
  export type stories_PeerStories = stories_peerStories;
15222
15375
  export type messages_WebPage = messages_webPage;
@@ -15308,6 +15461,10 @@ export type payments_StarsRevenueStats = payments_starsRevenueStats;
15308
15461
  export type payments_StarsRevenueWithdrawalUrl = payments_starsRevenueWithdrawalUrl;
15309
15462
  export type payments_StarsRevenueAdsAccountUrl = payments_starsRevenueAdsAccountUrl;
15310
15463
  export type InputStarsTransaction = inputStarsTransaction;
15464
+ export type StarsGiftOption = starsGiftOption;
15465
+ export type bots_PopularAppBots = bots_popularAppBots;
15466
+ export type BotPreviewMedia = botPreviewMedia;
15467
+ export type bots_PreviewInfo = bots_previewInfo;
15311
15468
  export declare const getTypeName: (id: number) => string | undefined;
15312
15469
  export declare const flags: symbol;
15313
15470
  export type Parameters = [number, [string, unknown, string][]];