@mtkruto/node 0.2.40 → 0.2.41

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 (41) hide show
  1. package/esm/4_constants.d.ts +1 -1
  2. package/esm/4_constants.js +1 -1
  3. package/esm/client/0_password.js +2 -2
  4. package/esm/client/2_update_manager.js +4 -4
  5. package/esm/client/5_client.d.ts.map +1 -1
  6. package/esm/client/5_client.js +38 -30
  7. package/esm/tl/0_api.d.ts +173 -16
  8. package/esm/tl/0_api.d.ts.map +1 -1
  9. package/esm/tl/0_api.js +279 -34
  10. package/esm/types/1_giveaway.d.ts +3 -1
  11. package/esm/types/1_giveaway.d.ts.map +1 -1
  12. package/esm/types/1_giveaway.js +4 -2
  13. package/esm/types/2_forward_header.d.ts +40 -0
  14. package/esm/types/2_forward_header.d.ts.map +1 -0
  15. package/esm/types/2_forward_header.js +55 -0
  16. package/esm/types/4_message.d.ts +5 -14
  17. package/esm/types/4_message.d.ts.map +1 -1
  18. package/esm/types/4_message.js +5 -25
  19. package/esm/types/6_update.d.ts +29 -2
  20. package/esm/types/6_update.d.ts.map +1 -1
  21. package/package.json +1 -1
  22. package/script/4_constants.d.ts +1 -1
  23. package/script/4_constants.js +1 -1
  24. package/script/client/0_password.js +2 -2
  25. package/script/client/2_update_manager.js +4 -4
  26. package/script/client/5_client.d.ts.map +1 -1
  27. package/script/client/5_client.js +38 -30
  28. package/script/tl/0_api.d.ts +173 -16
  29. package/script/tl/0_api.d.ts.map +1 -1
  30. package/script/tl/0_api.js +279 -34
  31. package/script/types/1_giveaway.d.ts +3 -1
  32. package/script/types/1_giveaway.d.ts.map +1 -1
  33. package/script/types/1_giveaway.js +4 -2
  34. package/script/types/2_forward_header.d.ts +40 -0
  35. package/script/types/2_forward_header.d.ts.map +1 -0
  36. package/script/types/2_forward_header.js +59 -0
  37. package/script/types/4_message.d.ts +5 -14
  38. package/script/types/4_message.d.ts.map +1 -1
  39. package/script/types/4_message.js +5 -25
  40. package/script/types/6_update.d.ts +29 -2
  41. package/script/types/6_update.d.ts.map +1 -1
package/esm/tl/0_api.d.ts CHANGED
@@ -202,8 +202,41 @@ export interface error {
202
202
  code: number;
203
203
  text: string;
204
204
  }
205
- export interface null_ {
206
- _: "null";
205
+ export interface ipPort {
206
+ _: "ipPort";
207
+ ipv4: number;
208
+ port: number;
209
+ }
210
+ export interface ipPortSecret {
211
+ _: "ipPortSecret";
212
+ ipv4: number;
213
+ port: number;
214
+ secret: Uint8Array;
215
+ }
216
+ export interface accessPointRule {
217
+ _: "accessPointRule";
218
+ phone_prefix_rules: string;
219
+ dc_id: number;
220
+ ips: Array<IpPort>;
221
+ }
222
+ export interface help_configSimple {
223
+ _: "help.configSimple";
224
+ date: number;
225
+ expires: number;
226
+ rules: Array<AccessPointRule>;
227
+ }
228
+ export interface inputPeerPhotoFileLocationLegacy {
229
+ _: "inputPeerPhotoFileLocationLegacy";
230
+ big?: true;
231
+ peer: InputPeer;
232
+ volume_id: bigint;
233
+ local_id: number;
234
+ }
235
+ export interface inputStickerSetThumbLegacy {
236
+ _: "inputStickerSetThumbLegacy";
237
+ stickerset: InputStickerSet;
238
+ volume_id: bigint;
239
+ local_id: number;
207
240
  }
208
241
  export interface inputPeerEmpty {
209
242
  _: "inputPeerEmpty";
@@ -396,6 +429,7 @@ export interface inputMediaPaidMedia {
396
429
  _: "inputMediaPaidMedia";
397
430
  stars_amount: bigint;
398
431
  extended_media: Array<InputMedia>;
432
+ payload?: string;
399
433
  }
400
434
  export interface inputChatPhotoEmpty {
401
435
  _: "inputChatPhotoEmpty";
@@ -984,7 +1018,8 @@ export interface messageMediaGiveaway {
984
1018
  countries_iso2?: Array<string>;
985
1019
  prize_description?: string;
986
1020
  quantity: number;
987
- months: number;
1021
+ months?: number;
1022
+ stars?: bigint;
988
1023
  until_date: number;
989
1024
  }
990
1025
  export interface messageMediaGiveawayResults {
@@ -997,7 +1032,8 @@ export interface messageMediaGiveawayResults {
997
1032
  winners_count: number;
998
1033
  unclaimed_count: number;
999
1034
  winners: Array<bigint>;
1000
- months: number;
1035
+ months?: number;
1036
+ stars?: bigint;
1001
1037
  prize_description?: string;
1002
1038
  until_date: number;
1003
1039
  }
@@ -1205,9 +1241,11 @@ export interface messageActionGiftCode {
1205
1241
  }
1206
1242
  export interface messageActionGiveawayLaunch {
1207
1243
  _: "messageActionGiveawayLaunch";
1244
+ stars?: bigint;
1208
1245
  }
1209
1246
  export interface messageActionGiveawayResults {
1210
1247
  _: "messageActionGiveawayResults";
1248
+ stars?: true;
1211
1249
  winners_count: number;
1212
1250
  unclaimed_count: number;
1213
1251
  }
@@ -1237,6 +1275,14 @@ export interface messageActionGiftStars {
1237
1275
  crypto_amount?: bigint;
1238
1276
  transaction_id?: string;
1239
1277
  }
1278
+ export interface messageActionPrizeStars {
1279
+ _: "messageActionPrizeStars";
1280
+ unclaimed?: true;
1281
+ stars: bigint;
1282
+ transaction_id: string;
1283
+ boost_peer: Peer;
1284
+ giveaway_msg_id: number;
1285
+ }
1240
1286
  export interface dialog {
1241
1287
  _: "dialog";
1242
1288
  pinned?: true;
@@ -2454,6 +2500,16 @@ export interface updateStarsRevenueStatus {
2454
2500
  peer: Peer;
2455
2501
  status: StarsRevenueStatus;
2456
2502
  }
2503
+ export interface updateBotPurchasedPaidMedia {
2504
+ _: "updateBotPurchasedPaidMedia";
2505
+ user_id: bigint;
2506
+ payload: string;
2507
+ qts: number;
2508
+ }
2509
+ export interface updatePaidReactionPrivacy {
2510
+ _: "updatePaidReactionPrivacy";
2511
+ private: boolean;
2512
+ }
2457
2513
  export interface updates_state {
2458
2514
  _: "updates.state";
2459
2515
  pts: number;
@@ -5074,6 +5130,11 @@ export interface channelAdminLogEventActionToggleSignatureProfiles {
5074
5130
  _: "channelAdminLogEventActionToggleSignatureProfiles";
5075
5131
  new_value: boolean;
5076
5132
  }
5133
+ export interface channelAdminLogEventActionParticipantSubExtend {
5134
+ _: "channelAdminLogEventActionParticipantSubExtend";
5135
+ prev_participant: ChannelParticipant;
5136
+ new_participant: ChannelParticipant;
5137
+ }
5077
5138
  export interface channelAdminLogEvent {
5078
5139
  _: "channelAdminLogEvent";
5079
5140
  id: bigint;
@@ -5107,6 +5168,7 @@ export interface channelAdminLogEventsFilter {
5107
5168
  invites?: true;
5108
5169
  send?: true;
5109
5170
  forums?: true;
5171
+ sub_extend?: true;
5110
5172
  }
5111
5173
  export interface popularContact {
5112
5174
  _: "popularContact";
@@ -6764,6 +6826,21 @@ export interface inputStorePaymentStarsGift {
6764
6826
  currency: string;
6765
6827
  amount: bigint;
6766
6828
  }
6829
+ export interface inputStorePaymentStarsGiveaway {
6830
+ _: "inputStorePaymentStarsGiveaway";
6831
+ only_new_subscribers?: true;
6832
+ winners_are_visible?: true;
6833
+ stars: bigint;
6834
+ boost_peer: InputPeer;
6835
+ additional_peers?: Array<InputPeer>;
6836
+ countries_iso2?: Array<string>;
6837
+ prize_description?: string;
6838
+ random_id: bigint;
6839
+ until_date: number;
6840
+ currency: string;
6841
+ amount: bigint;
6842
+ users: number;
6843
+ }
6767
6844
  export interface premiumGiftOption {
6768
6845
  _: "premiumGiftOption";
6769
6846
  months: number;
@@ -7386,9 +7463,10 @@ export interface payments_giveawayInfoResults {
7386
7463
  refunded?: true;
7387
7464
  start_date: number;
7388
7465
  gift_code_slug?: string;
7466
+ stars_prize?: bigint;
7389
7467
  finish_date: number;
7390
7468
  winners_count: number;
7391
- activated_count: number;
7469
+ activated_count?: number;
7392
7470
  }
7393
7471
  export interface prepaidGiveaway {
7394
7472
  _: "prepaidGiveaway";
@@ -7397,6 +7475,14 @@ export interface prepaidGiveaway {
7397
7475
  quantity: number;
7398
7476
  date: number;
7399
7477
  }
7478
+ export interface prepaidStarsGiveaway {
7479
+ _: "prepaidStarsGiveaway";
7480
+ id: bigint;
7481
+ stars: bigint;
7482
+ quantity: number;
7483
+ boosts: number;
7484
+ date: number;
7485
+ }
7400
7486
  export interface boost {
7401
7487
  _: "boost";
7402
7488
  gift?: true;
@@ -7409,6 +7495,7 @@ export interface boost {
7409
7495
  expires: number;
7410
7496
  used_gift_slug?: string;
7411
7497
  multiplier?: number;
7498
+ stars?: bigint;
7412
7499
  }
7413
7500
  export interface premium_boostsList {
7414
7501
  _: "premium.boostsList";
@@ -7941,6 +8028,7 @@ export interface reactionsNotifySettings {
7941
8028
  }
7942
8029
  export interface broadcastRevenueBalances {
7943
8030
  _: "broadcastRevenueBalances";
8031
+ withdrawal_enabled?: true;
7944
8032
  current_balance: bigint;
7945
8033
  available_balance: bigint;
7946
8034
  overall_revenue: bigint;
@@ -8020,6 +8108,7 @@ export interface starsTransaction {
8020
8108
  msg_id?: number;
8021
8109
  extended_media?: Array<MessageMedia>;
8022
8110
  subscription_period?: number;
8111
+ giveaway_post_id?: number;
8023
8112
  }
8024
8113
  export interface payments_starsStatus {
8025
8114
  _: "payments.starsStatus";
@@ -8126,6 +8215,23 @@ export interface messageReactor {
8126
8215
  peer_id?: Peer;
8127
8216
  count: number;
8128
8217
  }
8218
+ export interface starsGiveawayOption {
8219
+ _: "starsGiveawayOption";
8220
+ extended?: true;
8221
+ default?: true;
8222
+ stars: bigint;
8223
+ yearly_boosts: number;
8224
+ store_product?: string;
8225
+ currency: string;
8226
+ amount: bigint;
8227
+ winners: Array<StarsGiveawayWinnersOption>;
8228
+ }
8229
+ export interface starsGiveawayWinnersOption {
8230
+ _: "starsGiveawayWinnersOption";
8231
+ default?: true;
8232
+ users: number;
8233
+ per_user_stars: bigint;
8234
+ }
8129
8235
  export interface req_pq_multi {
8130
8236
  _: "req_pq_multi";
8131
8237
  nonce: bigint;
@@ -8178,6 +8284,23 @@ export interface destroy_auth_key {
8178
8284
  _: "destroy_auth_key";
8179
8285
  [R]?: DestroyAuthKeyRes;
8180
8286
  }
8287
+ export interface invokeWithBusinessConnectionPrefix {
8288
+ _: "invokeWithBusinessConnectionPrefix";
8289
+ connection_id: string;
8290
+ [R]?: Error;
8291
+ }
8292
+ export interface invokeWithGooglePlayIntegrityPrefix {
8293
+ _: "invokeWithGooglePlayIntegrityPrefix";
8294
+ nonce: string;
8295
+ token: string;
8296
+ [R]?: Error;
8297
+ }
8298
+ export interface invokeWithApnsSecretPrefix {
8299
+ _: "invokeWithApnsSecretPrefix";
8300
+ nonce: string;
8301
+ secret: string;
8302
+ [R]?: Error;
8303
+ }
8181
8304
  export interface invokeAfterMsg<T> {
8182
8305
  _: "invokeAfterMsg";
8183
8306
  msg_id: bigint;
@@ -10712,11 +10835,11 @@ export interface messages_requestMainWebView {
10712
10835
  }
10713
10836
  export interface messages_sendPaidReaction {
10714
10837
  _: "messages.sendPaidReaction";
10715
- private?: true;
10716
10838
  peer: InputPeer;
10717
10839
  msg_id: number;
10718
10840
  count: number;
10719
10841
  random_id: bigint;
10842
+ private?: boolean;
10720
10843
  [R]?: Updates;
10721
10844
  }
10722
10845
  export interface messages_togglePaidReactionPrivacy {
@@ -10726,6 +10849,10 @@ export interface messages_togglePaidReactionPrivacy {
10726
10849
  private: boolean;
10727
10850
  [R]?: boolean;
10728
10851
  }
10852
+ export interface messages_getPaidReactionPrivacy {
10853
+ _: "messages.getPaidReactionPrivacy";
10854
+ [R]?: Updates;
10855
+ }
10729
10856
  export interface updates_getState {
10730
10857
  _: "updates.getState";
10731
10858
  [R]?: updates_State;
@@ -11707,6 +11834,10 @@ export interface payments_fulfillStarsSubscription {
11707
11834
  subscription_id: string;
11708
11835
  [R]?: boolean;
11709
11836
  }
11837
+ export interface payments_getStarsGiveawayOptions {
11838
+ _: "payments.getStarsGiveawayOptions";
11839
+ [R]?: Array<StarsGiveawayOption>;
11840
+ }
11710
11841
  export interface stickers_createStickerSet {
11711
11842
  _: "stickers.createStickerSet";
11712
11843
  masks?: true;
@@ -12442,7 +12573,12 @@ export interface Types {
12442
12573
  "http_wait": http_wait;
12443
12574
  "true": true_;
12444
12575
  "error": error;
12445
- "null": null_;
12576
+ "ipPort": ipPort;
12577
+ "ipPortSecret": ipPortSecret;
12578
+ "accessPointRule": accessPointRule;
12579
+ "help.configSimple": help_configSimple;
12580
+ "inputPeerPhotoFileLocationLegacy": inputPeerPhotoFileLocationLegacy;
12581
+ "inputStickerSetThumbLegacy": inputStickerSetThumbLegacy;
12446
12582
  "inputPeerEmpty": inputPeerEmpty;
12447
12583
  "inputPeerSelf": inputPeerSelf;
12448
12584
  "inputPeerChat": inputPeerChat;
@@ -12595,6 +12731,7 @@ export interface Types {
12595
12731
  "messageActionRequestedPeerSentMe": messageActionRequestedPeerSentMe;
12596
12732
  "messageActionPaymentRefunded": messageActionPaymentRefunded;
12597
12733
  "messageActionGiftStars": messageActionGiftStars;
12734
+ "messageActionPrizeStars": messageActionPrizeStars;
12598
12735
  "dialog": dialog;
12599
12736
  "dialogFolder": dialogFolder;
12600
12737
  "photoEmpty": photoEmpty;
@@ -12808,6 +12945,8 @@ export interface Types {
12808
12945
  "updateStarsBalance": updateStarsBalance;
12809
12946
  "updateBusinessBotCallbackQuery": updateBusinessBotCallbackQuery;
12810
12947
  "updateStarsRevenueStatus": updateStarsRevenueStatus;
12948
+ "updateBotPurchasedPaidMedia": updateBotPurchasedPaidMedia;
12949
+ "updatePaidReactionPrivacy": updatePaidReactionPrivacy;
12811
12950
  "updates.state": updates_state;
12812
12951
  "updates.differenceEmpty": updates_differenceEmpty;
12813
12952
  "updates.difference": updates_difference;
@@ -13269,6 +13408,7 @@ export interface Types {
13269
13408
  "channelAdminLogEventActionChangeEmojiStatus": channelAdminLogEventActionChangeEmojiStatus;
13270
13409
  "channelAdminLogEventActionChangeEmojiStickerSet": channelAdminLogEventActionChangeEmojiStickerSet;
13271
13410
  "channelAdminLogEventActionToggleSignatureProfiles": channelAdminLogEventActionToggleSignatureProfiles;
13411
+ "channelAdminLogEventActionParticipantSubExtend": channelAdminLogEventActionParticipantSubExtend;
13272
13412
  "channelAdminLogEvent": channelAdminLogEvent;
13273
13413
  "channels.adminLogResults": channels_adminLogResults;
13274
13414
  "channelAdminLogEventsFilter": channelAdminLogEventsFilter;
@@ -13556,6 +13696,7 @@ export interface Types {
13556
13696
  "inputStorePaymentPremiumGiveaway": inputStorePaymentPremiumGiveaway;
13557
13697
  "inputStorePaymentStarsTopup": inputStorePaymentStarsTopup;
13558
13698
  "inputStorePaymentStarsGift": inputStorePaymentStarsGift;
13699
+ "inputStorePaymentStarsGiveaway": inputStorePaymentStarsGiveaway;
13559
13700
  "premiumGiftOption": premiumGiftOption;
13560
13701
  "paymentFormMethod": paymentFormMethod;
13561
13702
  "emojiStatusEmpty": emojiStatusEmpty;
@@ -13659,6 +13800,7 @@ export interface Types {
13659
13800
  "payments.giveawayInfo": payments_giveawayInfo;
13660
13801
  "payments.giveawayInfoResults": payments_giveawayInfoResults;
13661
13802
  "prepaidGiveaway": prepaidGiveaway;
13803
+ "prepaidStarsGiveaway": prepaidStarsGiveaway;
13662
13804
  "boost": boost;
13663
13805
  "premium.boostsList": premium_boostsList;
13664
13806
  "myBoost": myBoost;
@@ -13779,6 +13921,8 @@ export interface Types {
13779
13921
  "starsSubscriptionPricing": starsSubscriptionPricing;
13780
13922
  "starsSubscription": starsSubscription;
13781
13923
  "messageReactor": messageReactor;
13924
+ "starsGiveawayOption": starsGiveawayOption;
13925
+ "starsGiveawayWinnersOption": starsGiveawayWinnersOption;
13782
13926
  }
13783
13927
  export interface Functions<T = Function> {
13784
13928
  "req_pq_multi": req_pq_multi;
@@ -13790,6 +13934,9 @@ export interface Functions<T = Function> {
13790
13934
  "ping_delay_disconnect": ping_delay_disconnect;
13791
13935
  "destroy_session": destroy_session;
13792
13936
  "destroy_auth_key": destroy_auth_key;
13937
+ "invokeWithBusinessConnectionPrefix": invokeWithBusinessConnectionPrefix;
13938
+ "invokeWithGooglePlayIntegrityPrefix": invokeWithGooglePlayIntegrityPrefix;
13939
+ "invokeWithApnsSecretPrefix": invokeWithApnsSecretPrefix;
13793
13940
  "invokeAfterMsg": invokeAfterMsg<T>;
13794
13941
  "invokeAfterMsgs": invokeAfterMsgs<T>;
13795
13942
  "initConnection": initConnection<T>;
@@ -14181,6 +14328,7 @@ export interface Functions<T = Function> {
14181
14328
  "messages.requestMainWebView": messages_requestMainWebView;
14182
14329
  "messages.sendPaidReaction": messages_sendPaidReaction;
14183
14330
  "messages.togglePaidReactionPrivacy": messages_togglePaidReactionPrivacy;
14331
+ "messages.getPaidReactionPrivacy": messages_getPaidReactionPrivacy;
14184
14332
  "updates.getState": updates_getState;
14185
14333
  "updates.getDifference": updates_getDifference;
14186
14334
  "updates.getChannelDifference": updates_getChannelDifference;
@@ -14339,6 +14487,7 @@ export interface Functions<T = Function> {
14339
14487
  "payments.getStarsSubscriptions": payments_getStarsSubscriptions;
14340
14488
  "payments.changeStarsSubscription": payments_changeStarsSubscription;
14341
14489
  "payments.fulfillStarsSubscription": payments_fulfillStarsSubscription;
14490
+ "payments.getStarsGiveawayOptions": payments_getStarsGiveawayOptions;
14342
14491
  "stickers.createStickerSet": stickers_createStickerSet;
14343
14492
  "stickers.removeStickerFromSet": stickers_removeStickerFromSet;
14344
14493
  "stickers.changeStickerPosition": stickers_changeStickerPosition;
@@ -14475,7 +14624,10 @@ export interface Enums {
14475
14624
  "HttpWait": HttpWait;
14476
14625
  "True": True;
14477
14626
  "Error": Error;
14478
- "Null": Null;
14627
+ "IpPort": IpPort;
14628
+ "AccessPointRule": AccessPointRule;
14629
+ "help.ConfigSimple": help_ConfigSimple;
14630
+ "InputFileLocation": InputFileLocation;
14479
14631
  "InputPeer": InputPeer;
14480
14632
  "InputUser": InputUser;
14481
14633
  "InputContact": InputContact;
@@ -14484,7 +14636,6 @@ export interface Enums {
14484
14636
  "InputChatPhoto": InputChatPhoto;
14485
14637
  "InputGeoPoint": InputGeoPoint;
14486
14638
  "InputPhoto": InputPhoto;
14487
- "InputFileLocation": InputFileLocation;
14488
14639
  "Peer": Peer;
14489
14640
  "storage.FileType": storage_FileType;
14490
14641
  "User": User;
@@ -14979,6 +15130,8 @@ export interface Enums {
14979
15130
  "StarsSubscriptionPricing": StarsSubscriptionPricing;
14980
15131
  "StarsSubscription": StarsSubscription;
14981
15132
  "MessageReactor": MessageReactor;
15133
+ "StarsGiveawayOption": StarsGiveawayOption;
15134
+ "StarsGiveawayWinnersOption": StarsGiveawayWinnersOption;
14982
15135
  }
14983
15136
  export type AnyType = Types[keyof Types];
14984
15137
  export type AnyFunction<T = Function> = Functions<T>[keyof Functions<T>];
@@ -15010,7 +15163,10 @@ export type DestroyAuthKeyRes = destroy_auth_key_ok | destroy_auth_key_none | de
15010
15163
  export type HttpWait = http_wait;
15011
15164
  export type True = true_;
15012
15165
  export type Error = error;
15013
- export type Null = null_;
15166
+ export type IpPort = ipPort | ipPortSecret;
15167
+ export type AccessPointRule = accessPointRule;
15168
+ export type help_ConfigSimple = help_configSimple;
15169
+ export type InputFileLocation = inputPeerPhotoFileLocationLegacy | inputStickerSetThumbLegacy | inputFileLocation | inputEncryptedFileLocation | inputDocumentFileLocation | inputSecureFileLocation | inputTakeoutFileLocation | inputPhotoFileLocation | inputPhotoLegacyFileLocation | inputPeerPhotoFileLocation | inputStickerSetThumb | inputGroupCallStream;
15014
15170
  export type InputPeer = inputPeerEmpty | inputPeerSelf | inputPeerChat | inputPeerUser | inputPeerChannel | inputPeerUserFromMessage | inputPeerChannelFromMessage;
15015
15171
  export type InputUser = inputUserEmpty | inputUserSelf | inputUser | inputUserFromMessage;
15016
15172
  export type InputContact = inputPhoneContact;
@@ -15019,7 +15175,6 @@ export type InputMedia = inputMediaEmpty | inputMediaUploadedPhoto | inputMediaP
15019
15175
  export type InputChatPhoto = inputChatPhotoEmpty | inputChatUploadedPhoto | inputChatPhoto;
15020
15176
  export type InputGeoPoint = inputGeoPointEmpty | inputGeoPoint;
15021
15177
  export type InputPhoto = inputPhotoEmpty | inputPhoto;
15022
- export type InputFileLocation = inputFileLocation | inputEncryptedFileLocation | inputDocumentFileLocation | inputSecureFileLocation | inputTakeoutFileLocation | inputPhotoFileLocation | inputPhotoLegacyFileLocation | inputPeerPhotoFileLocation | inputStickerSetThumb | inputGroupCallStream;
15023
15178
  export type Peer = peerUser | peerChat | peerChannel;
15024
15179
  export type storage_FileType = storage_fileUnknown | storage_filePartial | storage_fileJpeg | storage_fileGif | storage_filePng | storage_filePdf | storage_fileMp3 | storage_fileMov | storage_fileMp4 | storage_fileWebp;
15025
15180
  export type User = userEmpty | user;
@@ -15032,7 +15187,7 @@ export type ChatParticipants = chatParticipantsForbidden | chatParticipants;
15032
15187
  export type ChatPhoto = chatPhotoEmpty | chatPhoto;
15033
15188
  export type Message = messageEmpty | message | messageService;
15034
15189
  export type MessageMedia = messageMediaEmpty | messageMediaPhoto | messageMediaGeo | messageMediaContact | messageMediaUnsupported | messageMediaDocument | messageMediaWebPage | messageMediaVenue | messageMediaGame | messageMediaInvoice | messageMediaGeoLive | messageMediaPoll | messageMediaDice | messageMediaStory | messageMediaGiveaway | messageMediaGiveawayResults | messageMediaPaidMedia;
15035
- 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;
15190
+ 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 | messageActionPrizeStars;
15036
15191
  export type Dialog = dialog | dialogFolder;
15037
15192
  export type Photo = photoEmpty | photo;
15038
15193
  export type PhotoSize = photoSizeEmpty | photoSize | photoCachedSize | photoStrippedSize | photoSizeProgressive | photoPathSize;
@@ -15059,7 +15214,7 @@ export type messages_Chats = messages_chats | messages_chatsSlice;
15059
15214
  export type messages_ChatFull = messages_chatFull;
15060
15215
  export type messages_AffectedHistory = messages_affectedHistory;
15061
15216
  export type MessagesFilter = inputMessagesFilterEmpty | inputMessagesFilterPhotos | inputMessagesFilterVideo | inputMessagesFilterPhotoVideo | inputMessagesFilterDocument | inputMessagesFilterUrl | inputMessagesFilterGif | inputMessagesFilterVoice | inputMessagesFilterMusic | inputMessagesFilterChatPhotos | inputMessagesFilterPhoneCalls | inputMessagesFilterRoundVoice | inputMessagesFilterRoundVideo | inputMessagesFilterMyMentions | inputMessagesFilterGeo | inputMessagesFilterContacts | inputMessagesFilterPinned;
15062
- 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;
15217
+ 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 | updateBotPurchasedPaidMedia | updatePaidReactionPrivacy;
15063
15218
  export type updates_State = updates_state;
15064
15219
  export type updates_Difference = updates_differenceEmpty | updates_difference | updates_differenceSlice | updates_differenceTooLong;
15065
15220
  export type Updates = updatesTooLong | updateShortMessage | updateShortChatMessage | updateShort | updatesCombined | updates | updateShortSentMessage;
@@ -15189,7 +15344,7 @@ export type CdnConfig = cdnConfig;
15189
15344
  export type LangPackString = langPackString | langPackStringPluralized | langPackStringDeleted;
15190
15345
  export type LangPackDifference = langPackDifference;
15191
15346
  export type LangPackLanguage = langPackLanguage;
15192
- export type ChannelAdminLogEventAction = channelAdminLogEventActionChangeTitle | channelAdminLogEventActionChangeAbout | channelAdminLogEventActionChangeUsername | channelAdminLogEventActionChangePhoto | channelAdminLogEventActionToggleInvites | channelAdminLogEventActionToggleSignatures | channelAdminLogEventActionUpdatePinned | channelAdminLogEventActionEditMessage | channelAdminLogEventActionDeleteMessage | channelAdminLogEventActionParticipantJoin | channelAdminLogEventActionParticipantLeave | channelAdminLogEventActionParticipantInvite | channelAdminLogEventActionParticipantToggleBan | channelAdminLogEventActionParticipantToggleAdmin | channelAdminLogEventActionChangeStickerSet | channelAdminLogEventActionTogglePreHistoryHidden | channelAdminLogEventActionDefaultBannedRights | channelAdminLogEventActionStopPoll | channelAdminLogEventActionChangeLinkedChat | channelAdminLogEventActionChangeLocation | channelAdminLogEventActionToggleSlowMode | channelAdminLogEventActionStartGroupCall | channelAdminLogEventActionDiscardGroupCall | channelAdminLogEventActionParticipantMute | channelAdminLogEventActionParticipantUnmute | channelAdminLogEventActionToggleGroupCallSetting | channelAdminLogEventActionParticipantJoinByInvite | channelAdminLogEventActionExportedInviteDelete | channelAdminLogEventActionExportedInviteRevoke | channelAdminLogEventActionExportedInviteEdit | channelAdminLogEventActionParticipantVolume | channelAdminLogEventActionChangeHistoryTTL | channelAdminLogEventActionParticipantJoinByRequest | channelAdminLogEventActionToggleNoForwards | channelAdminLogEventActionSendMessage | channelAdminLogEventActionChangeAvailableReactions | channelAdminLogEventActionChangeUsernames | channelAdminLogEventActionToggleForum | channelAdminLogEventActionCreateTopic | channelAdminLogEventActionEditTopic | channelAdminLogEventActionDeleteTopic | channelAdminLogEventActionPinTopic | channelAdminLogEventActionToggleAntiSpam | channelAdminLogEventActionChangePeerColor | channelAdminLogEventActionChangeProfilePeerColor | channelAdminLogEventActionChangeWallpaper | channelAdminLogEventActionChangeEmojiStatus | channelAdminLogEventActionChangeEmojiStickerSet | channelAdminLogEventActionToggleSignatureProfiles;
15347
+ export type ChannelAdminLogEventAction = channelAdminLogEventActionChangeTitle | channelAdminLogEventActionChangeAbout | channelAdminLogEventActionChangeUsername | channelAdminLogEventActionChangePhoto | channelAdminLogEventActionToggleInvites | channelAdminLogEventActionToggleSignatures | channelAdminLogEventActionUpdatePinned | channelAdminLogEventActionEditMessage | channelAdminLogEventActionDeleteMessage | channelAdminLogEventActionParticipantJoin | channelAdminLogEventActionParticipantLeave | channelAdminLogEventActionParticipantInvite | channelAdminLogEventActionParticipantToggleBan | channelAdminLogEventActionParticipantToggleAdmin | channelAdminLogEventActionChangeStickerSet | channelAdminLogEventActionTogglePreHistoryHidden | channelAdminLogEventActionDefaultBannedRights | channelAdminLogEventActionStopPoll | channelAdminLogEventActionChangeLinkedChat | channelAdminLogEventActionChangeLocation | channelAdminLogEventActionToggleSlowMode | channelAdminLogEventActionStartGroupCall | channelAdminLogEventActionDiscardGroupCall | channelAdminLogEventActionParticipantMute | channelAdminLogEventActionParticipantUnmute | channelAdminLogEventActionToggleGroupCallSetting | channelAdminLogEventActionParticipantJoinByInvite | channelAdminLogEventActionExportedInviteDelete | channelAdminLogEventActionExportedInviteRevoke | channelAdminLogEventActionExportedInviteEdit | channelAdminLogEventActionParticipantVolume | channelAdminLogEventActionChangeHistoryTTL | channelAdminLogEventActionParticipantJoinByRequest | channelAdminLogEventActionToggleNoForwards | channelAdminLogEventActionSendMessage | channelAdminLogEventActionChangeAvailableReactions | channelAdminLogEventActionChangeUsernames | channelAdminLogEventActionToggleForum | channelAdminLogEventActionCreateTopic | channelAdminLogEventActionEditTopic | channelAdminLogEventActionDeleteTopic | channelAdminLogEventActionPinTopic | channelAdminLogEventActionToggleAntiSpam | channelAdminLogEventActionChangePeerColor | channelAdminLogEventActionChangeProfilePeerColor | channelAdminLogEventActionChangeWallpaper | channelAdminLogEventActionChangeEmojiStatus | channelAdminLogEventActionChangeEmojiStickerSet | channelAdminLogEventActionToggleSignatureProfiles | channelAdminLogEventActionParticipantSubExtend;
15193
15348
  export type ChannelAdminLogEvent = channelAdminLogEvent;
15194
15349
  export type channels_AdminLogResults = channels_adminLogResults;
15195
15350
  export type ChannelAdminLogEventsFilter = channelAdminLogEventsFilter;
@@ -15361,7 +15516,7 @@ export type InputInvoice = inputInvoiceMessage | inputInvoiceSlug | inputInvoice
15361
15516
  export type payments_ExportedInvoice = payments_exportedInvoice;
15362
15517
  export type messages_TranscribedAudio = messages_transcribedAudio;
15363
15518
  export type help_PremiumPromo = help_premiumPromo;
15364
- export type InputStorePaymentPurpose = inputStorePaymentPremiumSubscription | inputStorePaymentGiftPremium | inputStorePaymentPremiumGiftCode | inputStorePaymentPremiumGiveaway | inputStorePaymentStarsTopup | inputStorePaymentStarsGift;
15519
+ export type InputStorePaymentPurpose = inputStorePaymentPremiumSubscription | inputStorePaymentGiftPremium | inputStorePaymentPremiumGiftCode | inputStorePaymentPremiumGiveaway | inputStorePaymentStarsTopup | inputStorePaymentStarsGift | inputStorePaymentStarsGiveaway;
15365
15520
  export type PremiumGiftOption = premiumGiftOption;
15366
15521
  export type PaymentFormMethod = paymentFormMethod;
15367
15522
  export type EmojiStatus = emojiStatusEmpty | emojiStatus | emojiStatusUntil;
@@ -15422,7 +15577,7 @@ export type messages_WebPage = messages_webPage;
15422
15577
  export type PremiumGiftCodeOption = premiumGiftCodeOption;
15423
15578
  export type payments_CheckedGiftCode = payments_checkedGiftCode;
15424
15579
  export type payments_GiveawayInfo = payments_giveawayInfo | payments_giveawayInfoResults;
15425
- export type PrepaidGiveaway = prepaidGiveaway;
15580
+ export type PrepaidGiveaway = prepaidGiveaway | prepaidStarsGiveaway;
15426
15581
  export type Boost = boost;
15427
15582
  export type premium_BoostsList = premium_boostsList;
15428
15583
  export type MyBoost = myBoost;
@@ -15514,6 +15669,8 @@ export type bots_PreviewInfo = bots_previewInfo;
15514
15669
  export type StarsSubscriptionPricing = starsSubscriptionPricing;
15515
15670
  export type StarsSubscription = starsSubscription;
15516
15671
  export type MessageReactor = messageReactor;
15672
+ export type StarsGiveawayOption = starsGiveawayOption;
15673
+ export type StarsGiveawayWinnersOption = starsGiveawayWinnersOption;
15517
15674
  export declare const getTypeName: (id: number) => string | undefined;
15518
15675
  export declare const flags: symbol;
15519
15676
  export type Parameters = [number, [string, unknown, string][]];