@mtkruto/node 0.2.23 → 0.2.30

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 (59) 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/client/0_html.d.ts.map +1 -1
  5. package/esm/client/0_html.js +3 -0
  6. package/esm/client/0_params.d.ts +5 -6
  7. package/esm/client/0_params.d.ts.map +1 -1
  8. package/esm/client/1_client_encrypted.d.ts.map +1 -1
  9. package/esm/client/1_client_encrypted.js +33 -24
  10. package/esm/client/3_message_manager.d.ts.map +1 -1
  11. package/esm/client/3_message_manager.js +14 -2
  12. package/esm/client/5_client.d.ts +22 -14
  13. package/esm/client/5_client.d.ts.map +1 -1
  14. package/esm/client/5_client.js +136 -76
  15. package/esm/tl/0_api.d.ts +175 -23
  16. package/esm/tl/0_api.d.ts.map +1 -1
  17. package/esm/tl/0_api.js +279 -91
  18. package/esm/types/0_failed_invitation.d.ts +19 -0
  19. package/esm/types/0_failed_invitation.d.ts.map +1 -1
  20. package/esm/types/0_failed_invitation.js +19 -0
  21. package/esm/types/0_message_entity.d.ts +1 -0
  22. package/esm/types/0_message_entity.d.ts.map +1 -1
  23. package/esm/types/0_message_entity.js +3 -2
  24. package/esm/types/2_reply_to.d.ts +35 -0
  25. package/esm/types/2_reply_to.d.ts.map +1 -0
  26. package/esm/types/2_reply_to.js +20 -0
  27. package/esm/types/3_join_request.d.ts +19 -0
  28. package/esm/types/3_join_request.d.ts.map +1 -1
  29. package/esm/types/3_join_request.js +19 -0
  30. package/package.json +1 -1
  31. package/script/3_types.d.ts +1 -0
  32. package/script/3_types.d.ts.map +1 -1
  33. package/script/3_types.js +1 -0
  34. package/script/client/0_html.d.ts.map +1 -1
  35. package/script/client/0_html.js +3 -0
  36. package/script/client/0_params.d.ts +5 -6
  37. package/script/client/0_params.d.ts.map +1 -1
  38. package/script/client/1_client_encrypted.d.ts.map +1 -1
  39. package/script/client/1_client_encrypted.js +32 -23
  40. package/script/client/3_message_manager.d.ts.map +1 -1
  41. package/script/client/3_message_manager.js +14 -2
  42. package/script/client/5_client.d.ts +22 -14
  43. package/script/client/5_client.d.ts.map +1 -1
  44. package/script/client/5_client.js +136 -76
  45. package/script/tl/0_api.d.ts +175 -23
  46. package/script/tl/0_api.d.ts.map +1 -1
  47. package/script/tl/0_api.js +279 -91
  48. package/script/types/0_failed_invitation.d.ts +19 -0
  49. package/script/types/0_failed_invitation.d.ts.map +1 -1
  50. package/script/types/0_failed_invitation.js +19 -0
  51. package/script/types/0_message_entity.d.ts +1 -0
  52. package/script/types/0_message_entity.d.ts.map +1 -1
  53. package/script/types/0_message_entity.js +3 -2
  54. package/script/types/2_reply_to.d.ts +35 -0
  55. package/script/types/2_reply_to.d.ts.map +1 -0
  56. package/script/types/2_reply_to.js +21 -0
  57. package/script/types/3_join_request.d.ts +19 -0
  58. package/script/types/3_join_request.d.ts.map +1 -1
  59. package/script/types/3_join_request.js +19 -0
package/esm/tl/0_api.d.ts CHANGED
@@ -421,6 +421,11 @@ export interface inputMediaWebPage {
421
421
  optional?: true;
422
422
  url: string;
423
423
  }
424
+ export interface inputMediaPaidMedia {
425
+ _: "inputMediaPaidMedia";
426
+ stars_amount: bigint;
427
+ extended_media: Array<InputMedia>;
428
+ }
424
429
  export interface inputChatPhotoEmpty {
425
430
  _: "inputChatPhotoEmpty";
426
431
  }
@@ -759,6 +764,7 @@ export interface channelFull {
759
764
  view_forum_as_messages?: true;
760
765
  restricted_sponsored?: true;
761
766
  can_view_revenue?: true;
767
+ paid_media_allowed?: true;
762
768
  id: bigint;
763
769
  about: string;
764
770
  participants_count?: number;
@@ -1018,6 +1024,11 @@ export interface messageMediaGiveawayResults {
1018
1024
  prize_description?: string;
1019
1025
  until_date: number;
1020
1026
  }
1027
+ export interface messageMediaPaidMedia {
1028
+ _: "messageMediaPaidMedia";
1029
+ stars_amount: bigint;
1030
+ extended_media: Array<MessageExtendedMedia>;
1031
+ }
1021
1032
  export interface messageActionEmpty {
1022
1033
  _: "messageActionEmpty";
1023
1034
  }
@@ -2276,7 +2287,7 @@ export interface updateMessageExtendedMedia {
2276
2287
  _: "updateMessageExtendedMedia";
2277
2288
  peer: Peer;
2278
2289
  msg_id: number;
2279
- extended_media: MessageExtendedMedia;
2290
+ extended_media: Array<MessageExtendedMedia>;
2280
2291
  }
2281
2292
  export interface updateChannelPinnedTopic {
2282
2293
  _: "updateChannelPinnedTopic";
@@ -2434,6 +2445,21 @@ export interface updateStarsBalance {
2434
2445
  _: "updateStarsBalance";
2435
2446
  balance: bigint;
2436
2447
  }
2448
+ export interface updateBusinessBotCallbackQuery {
2449
+ _: "updateBusinessBotCallbackQuery";
2450
+ query_id: bigint;
2451
+ user_id: bigint;
2452
+ connection_id: string;
2453
+ message: Message;
2454
+ reply_to_message?: Message;
2455
+ chat_instance: bigint;
2456
+ data?: Uint8Array;
2457
+ }
2458
+ export interface updateStarsRevenueStatus {
2459
+ _: "updateStarsRevenueStatus";
2460
+ peer: Peer;
2461
+ status: StarsRevenueStatus;
2462
+ }
2437
2463
  export interface updates_state {
2438
2464
  _: "updates.state";
2439
2465
  pts: number;
@@ -4001,6 +4027,7 @@ export interface auth_sentCodeTypeFragmentSms {
4001
4027
  export interface auth_sentCodeTypeFirebaseSms {
4002
4028
  _: "auth.sentCodeTypeFirebaseSms";
4003
4029
  nonce?: Uint8Array;
4030
+ play_integrity_project_id?: bigint;
4004
4031
  play_integrity_nonce?: Uint8Array;
4005
4032
  receipt?: string;
4006
4033
  push_timeout?: number;
@@ -4113,6 +4140,7 @@ export interface draftMessage {
4113
4140
  entities?: Array<MessageEntity>;
4114
4141
  media?: InputMedia;
4115
4142
  date: number;
4143
+ effect?: bigint;
4116
4144
  }
4117
4145
  export interface messages_featuredStickersNotModified {
4118
4146
  _: "messages.featuredStickersNotModified";
@@ -6572,11 +6600,8 @@ export interface attachMenuBotsBot {
6572
6600
  }
6573
6601
  export interface webViewResultUrl {
6574
6602
  _: "webViewResultUrl";
6575
- query_id: bigint;
6576
- url: string;
6577
- }
6578
- export interface simpleWebViewResultUrl {
6579
- _: "simpleWebViewResultUrl";
6603
+ fullsize?: true;
6604
+ query_id?: bigint;
6580
6605
  url: string;
6581
6606
  }
6582
6607
  export interface webViewMessageSent {
@@ -7015,10 +7040,6 @@ export interface messages_botApp {
7015
7040
  has_settings?: true;
7016
7041
  app: BotApp;
7017
7042
  }
7018
- export interface appWebViewResultUrl {
7019
- _: "appWebViewResultUrl";
7020
- url: string;
7021
- }
7022
7043
  export interface inlineBotWebView {
7023
7044
  _: "inlineBotWebView";
7024
7045
  text: string;
@@ -7229,6 +7250,7 @@ export interface mediaAreaCoordinates {
7229
7250
  w: number;
7230
7251
  h: number;
7231
7252
  rotation: number;
7253
+ radius?: number;
7232
7254
  }
7233
7255
  export interface mediaAreaVenue {
7234
7256
  _: "mediaAreaVenue";
@@ -7250,6 +7272,7 @@ export interface mediaAreaGeoPoint {
7250
7272
  _: "mediaAreaGeoPoint";
7251
7273
  coordinates: MediaAreaCoordinates;
7252
7274
  geo: GeoPoint;
7275
+ address?: GeoPointAddress;
7253
7276
  }
7254
7277
  export interface mediaAreaSuggestedReaction {
7255
7278
  _: "mediaAreaSuggestedReaction";
@@ -7270,6 +7293,11 @@ export interface inputMediaAreaChannelPost {
7270
7293
  channel: InputChannel;
7271
7294
  msg_id: number;
7272
7295
  }
7296
+ export interface mediaAreaUrl {
7297
+ _: "mediaAreaUrl";
7298
+ coordinates: MediaAreaCoordinates;
7299
+ url: string;
7300
+ }
7273
7301
  export interface peerStories {
7274
7302
  _: "peerStories";
7275
7303
  peer: Peer;
@@ -7927,6 +7955,9 @@ export interface starsTransactionPeer {
7927
7955
  _: "starsTransactionPeer";
7928
7956
  peer: Peer;
7929
7957
  }
7958
+ export interface starsTransactionPeerAds {
7959
+ _: "starsTransactionPeerAds";
7960
+ }
7930
7961
  export interface starsTopupOption {
7931
7962
  _: "starsTopupOption";
7932
7963
  extended?: true;
@@ -7938,6 +7969,8 @@ export interface starsTopupOption {
7938
7969
  export interface starsTransaction {
7939
7970
  _: "starsTransaction";
7940
7971
  refund?: true;
7972
+ pending?: true;
7973
+ failed?: true;
7941
7974
  id: string;
7942
7975
  stars: bigint;
7943
7976
  date: number;
@@ -7945,6 +7978,11 @@ export interface starsTransaction {
7945
7978
  title?: string;
7946
7979
  description?: string;
7947
7980
  photo?: WebDocument;
7981
+ transaction_date?: number;
7982
+ transaction_url?: string;
7983
+ bot_payload?: Uint8Array;
7984
+ msg_id?: number;
7985
+ extended_media?: Array<MessageMedia>;
7948
7986
  }
7949
7987
  export interface payments_starsStatus {
7950
7988
  _: "payments.starsStatus";
@@ -7954,6 +7992,53 @@ export interface payments_starsStatus {
7954
7992
  chats: Array<Chat>;
7955
7993
  users: Array<User>;
7956
7994
  }
7995
+ export interface foundStory {
7996
+ _: "foundStory";
7997
+ peer: Peer;
7998
+ story: StoryItem;
7999
+ }
8000
+ export interface stories_foundStories {
8001
+ _: "stories.foundStories";
8002
+ count: number;
8003
+ stories: Array<FoundStory>;
8004
+ next_offset?: string;
8005
+ chats: Array<Chat>;
8006
+ users: Array<User>;
8007
+ }
8008
+ export interface geoPointAddress {
8009
+ _: "geoPointAddress";
8010
+ country_iso2: string;
8011
+ state?: string;
8012
+ city?: string;
8013
+ street?: string;
8014
+ }
8015
+ export interface starsRevenueStatus {
8016
+ _: "starsRevenueStatus";
8017
+ withdrawal_enabled?: true;
8018
+ current_balance: bigint;
8019
+ available_balance: bigint;
8020
+ overall_revenue: bigint;
8021
+ next_withdrawal_at?: number;
8022
+ }
8023
+ export interface payments_starsRevenueStats {
8024
+ _: "payments.starsRevenueStats";
8025
+ revenue_graph: StatsGraph;
8026
+ status: StarsRevenueStatus;
8027
+ usd_rate: number;
8028
+ }
8029
+ export interface payments_starsRevenueWithdrawalUrl {
8030
+ _: "payments.starsRevenueWithdrawalUrl";
8031
+ url: string;
8032
+ }
8033
+ export interface payments_starsRevenueAdsAccountUrl {
8034
+ _: "payments.starsRevenueAdsAccountUrl";
8035
+ url: string;
8036
+ }
8037
+ export interface inputStarsTransaction {
8038
+ _: "inputStarsTransaction";
8039
+ refund?: true;
8040
+ id: string;
8041
+ }
7957
8042
  export interface req_pq_multi {
7958
8043
  _: "req_pq_multi";
7959
8044
  nonce: bigint;
@@ -9534,6 +9619,7 @@ export interface messages_saveDraft {
9534
9619
  message: string;
9535
9620
  entities?: Array<MessageEntity>;
9536
9621
  media?: InputMedia;
9622
+ effect?: bigint;
9537
9623
  [R]?: boolean;
9538
9624
  }
9539
9625
  export interface messages_getAllDrafts {
@@ -10201,6 +10287,7 @@ export interface messages_requestWebView {
10201
10287
  _: "messages.requestWebView";
10202
10288
  from_bot_menu?: true;
10203
10289
  silent?: true;
10290
+ compact?: true;
10204
10291
  peer: InputPeer;
10205
10292
  bot: InputUser;
10206
10293
  url?: string;
@@ -10225,12 +10312,13 @@ export interface messages_requestSimpleWebView {
10225
10312
  _: "messages.requestSimpleWebView";
10226
10313
  from_switch_webview?: true;
10227
10314
  from_side_menu?: true;
10315
+ compact?: true;
10228
10316
  bot: InputUser;
10229
10317
  url?: string;
10230
10318
  start_param?: string;
10231
10319
  theme_params?: DataJSON;
10232
10320
  platform: string;
10233
- [R]?: SimpleWebViewResult;
10321
+ [R]?: WebViewResult;
10234
10322
  }
10235
10323
  export interface messages_sendWebViewResultMessage {
10236
10324
  _: "messages.sendWebViewResultMessage";
@@ -10357,12 +10445,13 @@ export interface messages_getBotApp {
10357
10445
  export interface messages_requestAppWebView {
10358
10446
  _: "messages.requestAppWebView";
10359
10447
  write_allowed?: true;
10448
+ compact?: true;
10360
10449
  peer: InputPeer;
10361
10450
  app: InputBotApp;
10362
10451
  start_param?: string;
10363
10452
  theme_params?: DataJSON;
10364
10453
  platform: string;
10365
- [R]?: AppWebViewResult;
10454
+ [R]?: WebViewResult;
10366
10455
  }
10367
10456
  export interface messages_setChatWallPaper {
10368
10457
  _: "messages.setChatWallPaper";
@@ -11403,8 +11492,10 @@ export interface payments_getStarsTransactions {
11403
11492
  _: "payments.getStarsTransactions";
11404
11493
  inbound?: true;
11405
11494
  outbound?: true;
11495
+ ascending?: true;
11406
11496
  peer: InputPeer;
11407
11497
  offset: string;
11498
+ limit: number;
11408
11499
  [R]?: payments_StarsStatus;
11409
11500
  }
11410
11501
  export interface payments_sendStarsForm {
@@ -11419,6 +11510,30 @@ export interface payments_refundStarsCharge {
11419
11510
  charge_id: string;
11420
11511
  [R]?: Updates;
11421
11512
  }
11513
+ export interface payments_getStarsRevenueStats {
11514
+ _: "payments.getStarsRevenueStats";
11515
+ dark?: true;
11516
+ peer: InputPeer;
11517
+ [R]?: payments_StarsRevenueStats;
11518
+ }
11519
+ export interface payments_getStarsRevenueWithdrawalUrl {
11520
+ _: "payments.getStarsRevenueWithdrawalUrl";
11521
+ peer: InputPeer;
11522
+ stars: bigint;
11523
+ password: InputCheckPasswordSRP;
11524
+ [R]?: payments_StarsRevenueWithdrawalUrl;
11525
+ }
11526
+ export interface payments_getStarsRevenueAdsAccountUrl {
11527
+ _: "payments.getStarsRevenueAdsAccountUrl";
11528
+ peer: InputPeer;
11529
+ [R]?: payments_StarsRevenueAdsAccountUrl;
11530
+ }
11531
+ export interface payments_getStarsTransactionsByID {
11532
+ _: "payments.getStarsTransactionsByID";
11533
+ peer: InputPeer;
11534
+ id: Array<InputStarsTransaction>;
11535
+ [R]?: payments_StarsStatus;
11536
+ }
11422
11537
  export interface stickers_createStickerSet {
11423
11538
  _: "stickers.createStickerSet";
11424
11539
  masks?: true;
@@ -12043,6 +12158,14 @@ export interface stories_togglePinnedToTop {
12043
12158
  id: Array<number>;
12044
12159
  [R]?: boolean;
12045
12160
  }
12161
+ export interface stories_searchPosts {
12162
+ _: "stories.searchPosts";
12163
+ hashtag?: string;
12164
+ area?: MediaArea;
12165
+ offset: string;
12166
+ limit: number;
12167
+ [R]?: stories_FoundStories;
12168
+ }
12046
12169
  export interface premium_getBoostsList {
12047
12170
  _: "premium.getBoostsList";
12048
12171
  gifts?: true;
@@ -12183,6 +12306,7 @@ export interface Types {
12183
12306
  "inputMediaDice": inputMediaDice;
12184
12307
  "inputMediaStory": inputMediaStory;
12185
12308
  "inputMediaWebPage": inputMediaWebPage;
12309
+ "inputMediaPaidMedia": inputMediaPaidMedia;
12186
12310
  "inputChatPhotoEmpty": inputChatPhotoEmpty;
12187
12311
  "inputChatUploadedPhoto": inputChatUploadedPhoto;
12188
12312
  "inputChatPhoto": inputChatPhoto;
@@ -12256,6 +12380,7 @@ export interface Types {
12256
12380
  "messageMediaStory": messageMediaStory;
12257
12381
  "messageMediaGiveaway": messageMediaGiveaway;
12258
12382
  "messageMediaGiveawayResults": messageMediaGiveawayResults;
12383
+ "messageMediaPaidMedia": messageMediaPaidMedia;
12259
12384
  "messageActionEmpty": messageActionEmpty;
12260
12385
  "messageActionChatCreate": messageActionChatCreate;
12261
12386
  "messageActionChatEditTitle": messageActionChatEditTitle;
@@ -12510,6 +12635,8 @@ export interface Types {
12510
12635
  "updateNewStoryReaction": updateNewStoryReaction;
12511
12636
  "updateBroadcastRevenueTransactions": updateBroadcastRevenueTransactions;
12512
12637
  "updateStarsBalance": updateStarsBalance;
12638
+ "updateBusinessBotCallbackQuery": updateBusinessBotCallbackQuery;
12639
+ "updateStarsRevenueStatus": updateStarsRevenueStatus;
12513
12640
  "updates.state": updates_state;
12514
12641
  "updates.differenceEmpty": updates_differenceEmpty;
12515
12642
  "updates.difference": updates_difference;
@@ -13225,7 +13352,6 @@ export interface Types {
13225
13352
  "attachMenuBots": attachMenuBots;
13226
13353
  "attachMenuBotsBot": attachMenuBotsBot;
13227
13354
  "webViewResultUrl": webViewResultUrl;
13228
- "simpleWebViewResultUrl": simpleWebViewResultUrl;
13229
13355
  "webViewMessageSent": webViewMessageSent;
13230
13356
  "botMenuButtonDefault": botMenuButtonDefault;
13231
13357
  "botMenuButtonCommands": botMenuButtonCommands;
@@ -13311,7 +13437,6 @@ export interface Types {
13311
13437
  "botAppNotModified": botAppNotModified;
13312
13438
  "botApp": botApp;
13313
13439
  "messages.botApp": messages_botApp;
13314
- "appWebViewResultUrl": appWebViewResultUrl;
13315
13440
  "inlineBotWebView": inlineBotWebView;
13316
13441
  "readParticipantDate": readParticipantDate;
13317
13442
  "inputChatlistDialogFilter": inputChatlistDialogFilter;
@@ -13348,6 +13473,7 @@ export interface Types {
13348
13473
  "mediaAreaSuggestedReaction": mediaAreaSuggestedReaction;
13349
13474
  "mediaAreaChannelPost": mediaAreaChannelPost;
13350
13475
  "inputMediaAreaChannelPost": inputMediaAreaChannelPost;
13476
+ "mediaAreaUrl": mediaAreaUrl;
13351
13477
  "peerStories": peerStories;
13352
13478
  "stories.peerStories": stories_peerStories;
13353
13479
  "messages.webPage": messages_webPage;
@@ -13457,9 +13583,18 @@ export interface Types {
13457
13583
  "starsTransactionPeerPremiumBot": starsTransactionPeerPremiumBot;
13458
13584
  "starsTransactionPeerFragment": starsTransactionPeerFragment;
13459
13585
  "starsTransactionPeer": starsTransactionPeer;
13586
+ "starsTransactionPeerAds": starsTransactionPeerAds;
13460
13587
  "starsTopupOption": starsTopupOption;
13461
13588
  "starsTransaction": starsTransaction;
13462
13589
  "payments.starsStatus": payments_starsStatus;
13590
+ "foundStory": foundStory;
13591
+ "stories.foundStories": stories_foundStories;
13592
+ "geoPointAddress": geoPointAddress;
13593
+ "starsRevenueStatus": starsRevenueStatus;
13594
+ "payments.starsRevenueStats": payments_starsRevenueStats;
13595
+ "payments.starsRevenueWithdrawalUrl": payments_starsRevenueWithdrawalUrl;
13596
+ "payments.starsRevenueAdsAccountUrl": payments_starsRevenueAdsAccountUrl;
13597
+ "inputStarsTransaction": inputStarsTransaction;
13463
13598
  }
13464
13599
  export interface Functions<T extends Function = Function> {
13465
13600
  "req_pq_multi": req_pq_multi;
@@ -14005,6 +14140,10 @@ export interface Functions<T extends Function = Function> {
14005
14140
  "payments.getStarsTransactions": payments_getStarsTransactions;
14006
14141
  "payments.sendStarsForm": payments_sendStarsForm;
14007
14142
  "payments.refundStarsCharge": payments_refundStarsCharge;
14143
+ "payments.getStarsRevenueStats": payments_getStarsRevenueStats;
14144
+ "payments.getStarsRevenueWithdrawalUrl": payments_getStarsRevenueWithdrawalUrl;
14145
+ "payments.getStarsRevenueAdsAccountUrl": payments_getStarsRevenueAdsAccountUrl;
14146
+ "payments.getStarsTransactionsByID": payments_getStarsTransactionsByID;
14008
14147
  "stickers.createStickerSet": stickers_createStickerSet;
14009
14148
  "stickers.removeStickerFromSet": stickers_removeStickerFromSet;
14010
14149
  "stickers.changeStickerPosition": stickers_changeStickerPosition;
@@ -14099,6 +14238,7 @@ export interface Functions<T extends Function = Function> {
14099
14238
  "stories.togglePeerStoriesHidden": stories_togglePeerStoriesHidden;
14100
14239
  "stories.getStoryReactionsList": stories_getStoryReactionsList;
14101
14240
  "stories.togglePinnedToTop": stories_togglePinnedToTop;
14241
+ "stories.searchPosts": stories_searchPosts;
14102
14242
  "premium.getBoostsList": premium_getBoostsList;
14103
14243
  "premium.getMyBoosts": premium_getMyBoosts;
14104
14244
  "premium.applyBoost": premium_applyBoost;
@@ -14483,7 +14623,6 @@ export interface Enums {
14483
14623
  "AttachMenuBots": AttachMenuBots;
14484
14624
  "AttachMenuBotsBot": AttachMenuBotsBot;
14485
14625
  "WebViewResult": WebViewResult;
14486
- "SimpleWebViewResult": SimpleWebViewResult;
14487
14626
  "WebViewMessageSent": WebViewMessageSent;
14488
14627
  "BotMenuButton": BotMenuButton;
14489
14628
  "account.SavedRingtones": account_SavedRingtones;
@@ -14527,7 +14666,6 @@ export interface Enums {
14527
14666
  "InputBotApp": InputBotApp;
14528
14667
  "BotApp": BotApp;
14529
14668
  "messages.BotApp": messages_BotApp;
14530
- "AppWebViewResult": AppWebViewResult;
14531
14669
  "InlineBotWebView": InlineBotWebView;
14532
14670
  "ReadParticipantDate": ReadParticipantDate;
14533
14671
  "InputChatlist": InputChatlist;
@@ -14633,6 +14771,14 @@ export interface Enums {
14633
14771
  "StarsTopupOption": StarsTopupOption;
14634
14772
  "StarsTransaction": StarsTransaction;
14635
14773
  "payments.StarsStatus": payments_StarsStatus;
14774
+ "FoundStory": FoundStory;
14775
+ "stories.FoundStories": stories_FoundStories;
14776
+ "GeoPointAddress": GeoPointAddress;
14777
+ "StarsRevenueStatus": StarsRevenueStatus;
14778
+ "payments.StarsRevenueStats": payments_StarsRevenueStats;
14779
+ "payments.StarsRevenueWithdrawalUrl": payments_StarsRevenueWithdrawalUrl;
14780
+ "payments.StarsRevenueAdsAccountUrl": payments_StarsRevenueAdsAccountUrl;
14781
+ "InputStarsTransaction": InputStarsTransaction;
14636
14782
  }
14637
14783
  export type AnyType = Types[keyof Types];
14638
14784
  export type AnyFunction<T extends Function = Function> = Functions<T>[keyof Functions<T>];
@@ -14671,7 +14817,7 @@ export type InputPeer = inputPeerEmpty | inputPeerSelf | inputPeerChat | inputPe
14671
14817
  export type InputUser = inputUserEmpty | inputUserSelf | inputUser | inputUserFromMessage;
14672
14818
  export type InputContact = inputPhoneContact;
14673
14819
  export type InputFile = inputFile | inputFileBig;
14674
- export type InputMedia = inputMediaEmpty | inputMediaUploadedPhoto | inputMediaPhoto | inputMediaGeoPoint | inputMediaContact | inputMediaUploadedDocument | inputMediaDocument | inputMediaVenue | inputMediaPhotoExternal | inputMediaDocumentExternal | inputMediaGame | inputMediaInvoice | inputMediaGeoLive | inputMediaPoll | inputMediaDice | inputMediaStory | inputMediaWebPage;
14820
+ export type InputMedia = inputMediaEmpty | inputMediaUploadedPhoto | inputMediaPhoto | inputMediaGeoPoint | inputMediaContact | inputMediaUploadedDocument | inputMediaDocument | inputMediaVenue | inputMediaPhotoExternal | inputMediaDocumentExternal | inputMediaGame | inputMediaInvoice | inputMediaGeoLive | inputMediaPoll | inputMediaDice | inputMediaStory | inputMediaWebPage | inputMediaPaidMedia;
14675
14821
  export type InputChatPhoto = inputChatPhotoEmpty | inputChatUploadedPhoto | inputChatPhoto;
14676
14822
  export type InputGeoPoint = inputGeoPointEmpty | inputGeoPoint;
14677
14823
  export type InputPhoto = inputPhotoEmpty | inputPhoto;
@@ -14686,7 +14832,7 @@ export type ChatParticipant = chatParticipant | chatParticipantCreator | chatPar
14686
14832
  export type ChatParticipants = chatParticipantsForbidden | chatParticipants;
14687
14833
  export type ChatPhoto = chatPhotoEmpty | chatPhoto;
14688
14834
  export type Message = messageEmpty | message | messageService;
14689
- export type MessageMedia = messageMediaEmpty | messageMediaPhoto | messageMediaGeo | messageMediaContact | messageMediaUnsupported | messageMediaDocument | messageMediaWebPage | messageMediaVenue | messageMediaGame | messageMediaInvoice | messageMediaGeoLive | messageMediaPoll | messageMediaDice | messageMediaStory | messageMediaGiveaway | messageMediaGiveawayResults;
14835
+ export type MessageMedia = messageMediaEmpty | messageMediaPhoto | messageMediaGeo | messageMediaContact | messageMediaUnsupported | messageMediaDocument | messageMediaWebPage | messageMediaVenue | messageMediaGame | messageMediaInvoice | messageMediaGeoLive | messageMediaPoll | messageMediaDice | messageMediaStory | messageMediaGiveaway | messageMediaGiveawayResults | messageMediaPaidMedia;
14690
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;
14691
14837
  export type Dialog = dialog | dialogFolder;
14692
14838
  export type Photo = photoEmpty | photo;
@@ -14714,7 +14860,7 @@ export type messages_Chats = messages_chats | messages_chatsSlice;
14714
14860
  export type messages_ChatFull = messages_chatFull;
14715
14861
  export type messages_AffectedHistory = messages_affectedHistory;
14716
14862
  export type MessagesFilter = inputMessagesFilterEmpty | inputMessagesFilterPhotos | inputMessagesFilterVideo | inputMessagesFilterPhotoVideo | inputMessagesFilterDocument | inputMessagesFilterUrl | inputMessagesFilterGif | inputMessagesFilterVoice | inputMessagesFilterMusic | inputMessagesFilterChatPhotos | inputMessagesFilterPhoneCalls | inputMessagesFilterRoundVoice | inputMessagesFilterRoundVideo | inputMessagesFilterMyMentions | inputMessagesFilterGeo | inputMessagesFilterContacts | inputMessagesFilterPinned;
14717
- export type Update = updateNewMessage | updateMessageID | updateDeleteMessages | updateUserTyping | updateChatUserTyping | updateChatParticipants | updateUserStatus | updateUserName | updateNewAuthorization | updateNewEncryptedMessage | updateEncryptedChatTyping | updateEncryption | updateEncryptedMessagesRead | updateChatParticipantAdd | updateChatParticipantDelete | updateDcOptions | updateNotifySettings | updateServiceNotification | updatePrivacy | updateUserPhone | updateReadHistoryInbox | updateReadHistoryOutbox | updateWebPage | updateReadMessagesContents | updateChannelTooLong | updateChannel | updateNewChannelMessage | updateReadChannelInbox | updateDeleteChannelMessages | updateChannelMessageViews | updateChatParticipantAdmin | updateNewStickerSet | updateStickerSetsOrder | updateStickerSets | updateSavedGifs | updateBotInlineQuery | updateBotInlineSend | updateEditChannelMessage | updateBotCallbackQuery | updateEditMessage | updateInlineBotCallbackQuery | updateReadChannelOutbox | updateDraftMessage | updateReadFeaturedStickers | updateRecentStickers | updateConfig | updatePtsChanged | updateChannelWebPage | updateDialogPinned | updatePinnedDialogs | updateBotWebhookJSON | updateBotWebhookJSONQuery | updateBotShippingQuery | updateBotPrecheckoutQuery | updatePhoneCall | updateLangPackTooLong | updateLangPack | updateFavedStickers | updateChannelReadMessagesContents | updateContactsReset | updateChannelAvailableMessages | updateDialogUnreadMark | updateMessagePoll | updateChatDefaultBannedRights | updateFolderPeers | updatePeerSettings | updatePeerLocated | updateNewScheduledMessage | updateDeleteScheduledMessages | updateTheme | updateGeoLiveViewed | updateLoginToken | updateMessagePollVote | updateDialogFilter | updateDialogFilterOrder | updateDialogFilters | updatePhoneCallSignalingData | updateChannelMessageForwards | updateReadChannelDiscussionInbox | updateReadChannelDiscussionOutbox | updatePeerBlocked | updateChannelUserTyping | updatePinnedMessages | updatePinnedChannelMessages | updateChat | updateGroupCallParticipants | updateGroupCall | updatePeerHistoryTTL | updateChatParticipant | updateChannelParticipant | updateBotStopped | updateGroupCallConnection | updateBotCommands | updatePendingJoinRequests | updateBotChatInviteRequester | updateMessageReactions | updateAttachMenuBots | updateWebViewResultSent | updateBotMenuButton | updateSavedRingtones | updateTranscribedAudio | updateReadFeaturedEmojiStickers | updateUserEmojiStatus | updateRecentEmojiStatuses | updateRecentReactions | updateMoveStickerSetToTop | updateMessageExtendedMedia | updateChannelPinnedTopic | updateChannelPinnedTopics | updateUser | updateAutoSaveSettings | updateStory | updateReadStories | updateStoryID | updateStoriesStealthMode | updateSentStoryReaction | updateBotChatBoost | updateChannelViewForumAsMessages | updatePeerWallpaper | updateBotMessageReaction | updateBotMessageReactions | updateSavedDialogPinned | updatePinnedSavedDialogs | updateSavedReactionTags | updateSmsJob | updateQuickReplies | updateNewQuickReply | updateDeleteQuickReply | updateQuickReplyMessage | updateDeleteQuickReplyMessages | updateBotBusinessConnect | updateBotNewBusinessMessage | updateBotEditBusinessMessage | updateBotDeleteBusinessMessage | updateNewStoryReaction | updateBroadcastRevenueTransactions | updateStarsBalance;
14863
+ export type Update = updateNewMessage | updateMessageID | updateDeleteMessages | updateUserTyping | updateChatUserTyping | updateChatParticipants | updateUserStatus | updateUserName | updateNewAuthorization | updateNewEncryptedMessage | updateEncryptedChatTyping | updateEncryption | updateEncryptedMessagesRead | updateChatParticipantAdd | updateChatParticipantDelete | updateDcOptions | updateNotifySettings | updateServiceNotification | updatePrivacy | updateUserPhone | updateReadHistoryInbox | updateReadHistoryOutbox | updateWebPage | updateReadMessagesContents | updateChannelTooLong | updateChannel | updateNewChannelMessage | updateReadChannelInbox | updateDeleteChannelMessages | updateChannelMessageViews | updateChatParticipantAdmin | updateNewStickerSet | updateStickerSetsOrder | updateStickerSets | updateSavedGifs | updateBotInlineQuery | updateBotInlineSend | updateEditChannelMessage | updateBotCallbackQuery | updateEditMessage | updateInlineBotCallbackQuery | updateReadChannelOutbox | updateDraftMessage | updateReadFeaturedStickers | updateRecentStickers | updateConfig | updatePtsChanged | updateChannelWebPage | updateDialogPinned | updatePinnedDialogs | updateBotWebhookJSON | updateBotWebhookJSONQuery | updateBotShippingQuery | updateBotPrecheckoutQuery | updatePhoneCall | updateLangPackTooLong | updateLangPack | updateFavedStickers | updateChannelReadMessagesContents | updateContactsReset | updateChannelAvailableMessages | updateDialogUnreadMark | updateMessagePoll | updateChatDefaultBannedRights | updateFolderPeers | updatePeerSettings | updatePeerLocated | updateNewScheduledMessage | updateDeleteScheduledMessages | updateTheme | updateGeoLiveViewed | updateLoginToken | updateMessagePollVote | updateDialogFilter | updateDialogFilterOrder | updateDialogFilters | updatePhoneCallSignalingData | updateChannelMessageForwards | updateReadChannelDiscussionInbox | updateReadChannelDiscussionOutbox | updatePeerBlocked | updateChannelUserTyping | updatePinnedMessages | updatePinnedChannelMessages | updateChat | updateGroupCallParticipants | updateGroupCall | updatePeerHistoryTTL | updateChatParticipant | updateChannelParticipant | updateBotStopped | updateGroupCallConnection | updateBotCommands | updatePendingJoinRequests | updateBotChatInviteRequester | updateMessageReactions | updateAttachMenuBots | updateWebViewResultSent | updateBotMenuButton | updateSavedRingtones | updateTranscribedAudio | updateReadFeaturedEmojiStickers | updateUserEmojiStatus | updateRecentEmojiStatuses | updateRecentReactions | updateMoveStickerSetToTop | updateMessageExtendedMedia | updateChannelPinnedTopic | updateChannelPinnedTopics | updateUser | updateAutoSaveSettings | updateStory | updateReadStories | updateStoryID | updateStoriesStealthMode | updateSentStoryReaction | updateBotChatBoost | updateChannelViewForumAsMessages | updatePeerWallpaper | updateBotMessageReaction | updateBotMessageReactions | updateSavedDialogPinned | updatePinnedSavedDialogs | updateSavedReactionTags | updateSmsJob | updateQuickReplies | updateNewQuickReply | updateDeleteQuickReply | updateQuickReplyMessage | updateDeleteQuickReplyMessages | updateBotBusinessConnect | updateBotNewBusinessMessage | updateBotEditBusinessMessage | updateBotDeleteBusinessMessage | updateNewStoryReaction | updateBroadcastRevenueTransactions | updateStarsBalance | updateBusinessBotCallbackQuery | updateStarsRevenueStatus;
14718
14864
  export type updates_State = updates_state;
14719
14865
  export type updates_Difference = updates_differenceEmpty | updates_difference | updates_differenceSlice | updates_differenceTooLong;
14720
14866
  export type Updates = updatesTooLong | updateShortMessage | updateShortChatMessage | updateShort | updatesCombined | updates | updateShortSentMessage;
@@ -15006,7 +15152,6 @@ export type AttachMenuBot = attachMenuBot;
15006
15152
  export type AttachMenuBots = attachMenuBotsNotModified | attachMenuBots;
15007
15153
  export type AttachMenuBotsBot = attachMenuBotsBot;
15008
15154
  export type WebViewResult = webViewResultUrl;
15009
- export type SimpleWebViewResult = simpleWebViewResultUrl;
15010
15155
  export type WebViewMessageSent = webViewMessageSent;
15011
15156
  export type BotMenuButton = botMenuButtonDefault | botMenuButtonCommands | botMenuButton;
15012
15157
  export type account_SavedRingtones = account_savedRingtonesNotModified | account_savedRingtones;
@@ -15050,7 +15195,6 @@ export type help_AppConfig = help_appConfigNotModified | help_appConfig;
15050
15195
  export type InputBotApp = inputBotAppID | inputBotAppShortName;
15051
15196
  export type BotApp = botAppNotModified | botApp;
15052
15197
  export type messages_BotApp = messages_botApp;
15053
- export type AppWebViewResult = appWebViewResultUrl;
15054
15198
  export type InlineBotWebView = inlineBotWebView;
15055
15199
  export type ReadParticipantDate = readParticipantDate;
15056
15200
  export type InputChatlist = inputChatlistDialogFilter;
@@ -15072,7 +15216,7 @@ export type InputReplyTo = inputReplyToMessage | inputReplyToStory;
15072
15216
  export type ExportedStoryLink = exportedStoryLink;
15073
15217
  export type StoriesStealthMode = storiesStealthMode;
15074
15218
  export type MediaAreaCoordinates = mediaAreaCoordinates;
15075
- export type MediaArea = mediaAreaVenue | inputMediaAreaVenue | mediaAreaGeoPoint | mediaAreaSuggestedReaction | mediaAreaChannelPost | inputMediaAreaChannelPost;
15219
+ export type MediaArea = mediaAreaVenue | inputMediaAreaVenue | mediaAreaGeoPoint | mediaAreaSuggestedReaction | mediaAreaChannelPost | inputMediaAreaChannelPost | mediaAreaUrl;
15076
15220
  export type PeerStories = peerStories;
15077
15221
  export type stories_PeerStories = stories_peerStories;
15078
15222
  export type messages_WebPage = messages_webPage;
@@ -15152,10 +15296,18 @@ export type BroadcastRevenueBalances = broadcastRevenueBalances;
15152
15296
  export type AvailableEffect = availableEffect;
15153
15297
  export type messages_AvailableEffects = messages_availableEffectsNotModified | messages_availableEffects;
15154
15298
  export type FactCheck = factCheck;
15155
- export type StarsTransactionPeer = starsTransactionPeerUnsupported | starsTransactionPeerAppStore | starsTransactionPeerPlayMarket | starsTransactionPeerPremiumBot | starsTransactionPeerFragment | starsTransactionPeer;
15299
+ export type StarsTransactionPeer = starsTransactionPeerUnsupported | starsTransactionPeerAppStore | starsTransactionPeerPlayMarket | starsTransactionPeerPremiumBot | starsTransactionPeerFragment | starsTransactionPeer | starsTransactionPeerAds;
15156
15300
  export type StarsTopupOption = starsTopupOption;
15157
15301
  export type StarsTransaction = starsTransaction;
15158
15302
  export type payments_StarsStatus = payments_starsStatus;
15303
+ export type FoundStory = foundStory;
15304
+ export type stories_FoundStories = stories_foundStories;
15305
+ export type GeoPointAddress = geoPointAddress;
15306
+ export type StarsRevenueStatus = starsRevenueStatus;
15307
+ export type payments_StarsRevenueStats = payments_starsRevenueStats;
15308
+ export type payments_StarsRevenueWithdrawalUrl = payments_starsRevenueWithdrawalUrl;
15309
+ export type payments_StarsRevenueAdsAccountUrl = payments_starsRevenueAdsAccountUrl;
15310
+ export type InputStarsTransaction = inputStarsTransaction;
15159
15311
  export declare const getTypeName: (id: number) => string | undefined;
15160
15312
  export declare const flags: symbol;
15161
15313
  export type Parameters = [number, [string, unknown, string][]];