@mtkruto/node 0.2.40 → 0.2.42

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 (53) 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/1_client_encrypted.d.ts.map +1 -1
  5. package/esm/client/1_client_encrypted.js +7 -3
  6. package/esm/client/2_update_manager.d.ts.map +1 -1
  7. package/esm/client/2_update_manager.js +8 -6
  8. package/esm/client/5_client.d.ts.map +1 -1
  9. package/esm/client/5_client.js +38 -30
  10. package/esm/tl/0_api.d.ts +173 -16
  11. package/esm/tl/0_api.d.ts.map +1 -1
  12. package/esm/tl/0_api.js +279 -34
  13. package/esm/tl/1_utilities.d.ts +2 -1
  14. package/esm/tl/1_utilities.d.ts.map +1 -1
  15. package/esm/tl/1_utilities.js +13 -13
  16. package/esm/types/1_giveaway.d.ts +3 -1
  17. package/esm/types/1_giveaway.d.ts.map +1 -1
  18. package/esm/types/1_giveaway.js +4 -2
  19. package/esm/types/2_forward_header.d.ts +40 -0
  20. package/esm/types/2_forward_header.d.ts.map +1 -0
  21. package/esm/types/2_forward_header.js +55 -0
  22. package/esm/types/4_message.d.ts +5 -14
  23. package/esm/types/4_message.d.ts.map +1 -1
  24. package/esm/types/4_message.js +5 -25
  25. package/esm/types/6_update.d.ts +29 -2
  26. package/esm/types/6_update.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/script/4_constants.d.ts +1 -1
  29. package/script/4_constants.js +1 -1
  30. package/script/client/0_password.js +2 -2
  31. package/script/client/1_client_encrypted.d.ts.map +1 -1
  32. package/script/client/1_client_encrypted.js +6 -2
  33. package/script/client/2_update_manager.d.ts.map +1 -1
  34. package/script/client/2_update_manager.js +8 -6
  35. package/script/client/5_client.d.ts.map +1 -1
  36. package/script/client/5_client.js +38 -30
  37. package/script/tl/0_api.d.ts +173 -16
  38. package/script/tl/0_api.d.ts.map +1 -1
  39. package/script/tl/0_api.js +279 -34
  40. package/script/tl/1_utilities.d.ts +2 -1
  41. package/script/tl/1_utilities.d.ts.map +1 -1
  42. package/script/tl/1_utilities.js +15 -14
  43. package/script/types/1_giveaway.d.ts +3 -1
  44. package/script/types/1_giveaway.d.ts.map +1 -1
  45. package/script/types/1_giveaway.js +4 -2
  46. package/script/types/2_forward_header.d.ts +40 -0
  47. package/script/types/2_forward_header.d.ts.map +1 -0
  48. package/script/types/2_forward_header.js +59 -0
  49. package/script/types/4_message.d.ts +5 -14
  50. package/script/types/4_message.d.ts.map +1 -1
  51. package/script/types/4_message.js +5 -25
  52. package/script/types/6_update.d.ts +29 -2
  53. package/script/types/6_update.d.ts.map +1 -1
@@ -81,7 +81,12 @@ const map = new Map([
81
81
  [0x9299359F, "http_wait"],
82
82
  [0x3FEDD339, "true"],
83
83
  [0xC4B9F9BB, "error"],
84
- [0x56730BCC, "null"],
84
+ [0xD433AD73, "ipPort"],
85
+ [0x37982646, "ipPortSecret"],
86
+ [0x4679B65F, "accessPointRule"],
87
+ [0x5A592A6C, "help.configSimple"],
88
+ [0x27D69997, "inputPeerPhotoFileLocationLegacy"],
89
+ [0x0DBAEAE9, "inputStickerSetThumbLegacy"],
85
90
  [0x7F3B18EA, "inputPeerEmpty"],
86
91
  [0x7DA07EC9, "inputPeerSelf"],
87
92
  [0x35A95CB9, "inputPeerChat"],
@@ -114,7 +119,7 @@ const map = new Map([
114
119
  [0xE66FBF7B, "inputMediaDice"],
115
120
  [0x89FDD778, "inputMediaStory"],
116
121
  [0xC21B8849, "inputMediaWebPage"],
117
- [0xAA661FC3, "inputMediaPaidMedia"],
122
+ [0xC4103386, "inputMediaPaidMedia"],
118
123
  [0x1CA48F57, "inputChatPhotoEmpty"],
119
124
  [0xBDCDAEC0, "inputChatUploadedPhoto"],
120
125
  [0x8953AD37, "inputChatPhoto"],
@@ -186,8 +191,8 @@ const map = new Map([
186
191
  [0x4BD6E798, "messageMediaPoll"],
187
192
  [0x3F7EE58B, "messageMediaDice"],
188
193
  [0x68CB6283, "messageMediaStory"],
189
- [0xDAAD85B0, "messageMediaGiveaway"],
190
- [0xC6991068, "messageMediaGiveawayResults"],
194
+ [0xAA073BEB, "messageMediaGiveaway"],
195
+ [0xCEAA3EA1, "messageMediaGiveawayResults"],
191
196
  [0xA8852491, "messageMediaPaidMedia"],
192
197
  [0xB6AEF7B0, "messageActionEmpty"],
193
198
  [0xBD47CBAD, "messageActionChatCreate"],
@@ -228,12 +233,13 @@ const map = new Map([
228
233
  [0x31518E9B, "messageActionRequestedPeer"],
229
234
  [0x5060A3F4, "messageActionSetChatWallPaper"],
230
235
  [0x678C2E09, "messageActionGiftCode"],
231
- [0x332BA9ED, "messageActionGiveawayLaunch"],
232
- [0x2A9FADC5, "messageActionGiveawayResults"],
236
+ [0xA80F51E4, "messageActionGiveawayLaunch"],
237
+ [0x87E2F155, "messageActionGiveawayResults"],
233
238
  [0xCC02AA6D, "messageActionBoostApply"],
234
239
  [0x93B31848, "messageActionRequestedPeerSentMe"],
235
240
  [0x41B3E202, "messageActionPaymentRefunded"],
236
241
  [0x45D5B021, "messageActionGiftStars"],
242
+ [0xB00C47A2, "messageActionPrizeStars"],
237
243
  [0xD58A08C6, "dialog"],
238
244
  [0x71BD134C, "dialogFolder"],
239
245
  [0x2331B22D, "photoEmpty"],
@@ -447,6 +453,8 @@ const map = new Map([
447
453
  [0x0FB85198, "updateStarsBalance"],
448
454
  [0x1EA2FDA7, "updateBusinessBotCallbackQuery"],
449
455
  [0xA584B019, "updateStarsRevenueStatus"],
456
+ [0x283BD312, "updateBotPurchasedPaidMedia"],
457
+ [0x51CA7AEC, "updatePaidReactionPrivacy"],
450
458
  [0xA56C2A3E, "updates.state"],
451
459
  [0x5D75A138, "updates.differenceEmpty"],
452
460
  [0x00F49CA0, "updates.difference"],
@@ -908,6 +916,7 @@ const map = new Map([
908
916
  [0x3EA9FEB1, "channelAdminLogEventActionChangeEmojiStatus"],
909
917
  [0x46D840AB, "channelAdminLogEventActionChangeEmojiStickerSet"],
910
918
  [0x60A79C79, "channelAdminLogEventActionToggleSignatureProfiles"],
919
+ [0x64642DB3, "channelAdminLogEventActionParticipantSubExtend"],
911
920
  [0x1FAD68CD, "channelAdminLogEvent"],
912
921
  [0xED8AF74D, "channels.adminLogResults"],
913
922
  [0xEA107AE4, "channelAdminLogEventsFilter"],
@@ -1195,6 +1204,7 @@ const map = new Map([
1195
1204
  [0x160544CA, "inputStorePaymentPremiumGiveaway"],
1196
1205
  [0xDDDD0F56, "inputStorePaymentStarsTopup"],
1197
1206
  [0x1D741EF7, "inputStorePaymentStarsGift"],
1207
+ [0x751F08FA, "inputStorePaymentStarsGiveaway"],
1198
1208
  [0x74C34319, "premiumGiftOption"],
1199
1209
  [0x88F8F21B, "paymentFormMethod"],
1200
1210
  [0x2DE11AAE, "emojiStatusEmpty"],
@@ -1296,9 +1306,10 @@ const map = new Map([
1296
1306
  [0x257E962B, "premiumGiftCodeOption"],
1297
1307
  [0x284A1096, "payments.checkedGiftCode"],
1298
1308
  [0x4367DAA0, "payments.giveawayInfo"],
1299
- [0x00CD5570, "payments.giveawayInfoResults"],
1309
+ [0xE175E66F, "payments.giveawayInfoResults"],
1300
1310
  [0xB2539D54, "prepaidGiveaway"],
1301
- [0x2A1C8C71, "boost"],
1311
+ [0x9A9D77E0, "prepaidStarsGiveaway"],
1312
+ [0x4B3E14D6, "boost"],
1302
1313
  [0x86F8613C, "premium.boostsList"],
1303
1314
  [0xC448415C, "myBoost"],
1304
1315
  [0x9AE228E2, "premium.myBoosts"],
@@ -1388,7 +1399,7 @@ const map = new Map([
1388
1399
  [0xBAC3A61A, "reactionNotificationsFromContacts"],
1389
1400
  [0x4B9E22A0, "reactionNotificationsFromAll"],
1390
1401
  [0x56E34970, "reactionsNotifySettings"],
1391
- [0x8438F1C6, "broadcastRevenueBalances"],
1402
+ [0xC3FF71E7, "broadcastRevenueBalances"],
1392
1403
  [0x93C3E27E, "availableEffect"],
1393
1404
  [0xD1ED9A5B, "messages.availableEffectsNotModified"],
1394
1405
  [0xBDDB616E, "messages.availableEffects"],
@@ -1401,7 +1412,7 @@ const map = new Map([
1401
1412
  [0xD80DA15D, "starsTransactionPeer"],
1402
1413
  [0x60682812, "starsTransactionPeerAds"],
1403
1414
  [0x0BD915C0, "starsTopupOption"],
1404
- [0x433AEB2B, "starsTransaction"],
1415
+ [0xEE7522D5, "starsTransaction"],
1405
1416
  [0xBBFA316C, "payments.starsStatus"],
1406
1417
  [0xE87ACBC0, "foundStory"],
1407
1418
  [0xE2DE7737, "stories.foundStories"],
@@ -1418,6 +1429,8 @@ const map = new Map([
1418
1429
  [0x05416D58, "starsSubscriptionPricing"],
1419
1430
  [0x538ECF18, "starsSubscription"],
1420
1431
  [0x4BA3A95A, "messageReactor"],
1432
+ [0x94CE852A, "starsGiveawayOption"],
1433
+ [0x54236209, "starsGiveawayWinnersOption"],
1421
1434
  ]);
1422
1435
  exports.getTypeName = map.get.bind(map);
1423
1436
  exports.flags = Symbol();
@@ -1448,7 +1461,10 @@ const enums = new Map([
1448
1461
  ["HttpWait", ["http_wait"]],
1449
1462
  ["True", ["true"]],
1450
1463
  ["Error", ["error"]],
1451
- ["Null", ["null"]],
1464
+ ["IpPort", ["ipPort", "ipPortSecret"]],
1465
+ ["AccessPointRule", ["accessPointRule"]],
1466
+ ["help.ConfigSimple", ["help.configSimple"]],
1467
+ ["InputFileLocation", ["inputPeerPhotoFileLocationLegacy", "inputStickerSetThumbLegacy", "inputFileLocation", "inputEncryptedFileLocation", "inputDocumentFileLocation", "inputSecureFileLocation", "inputTakeoutFileLocation", "inputPhotoFileLocation", "inputPhotoLegacyFileLocation", "inputPeerPhotoFileLocation", "inputStickerSetThumb", "inputGroupCallStream"]],
1452
1468
  ["InputPeer", ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]],
1453
1469
  ["InputUser", ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]],
1454
1470
  ["InputContact", ["inputPhoneContact"]],
@@ -1457,7 +1473,6 @@ const enums = new Map([
1457
1473
  ["InputChatPhoto", ["inputChatPhotoEmpty", "inputChatUploadedPhoto", "inputChatPhoto"]],
1458
1474
  ["InputGeoPoint", ["inputGeoPointEmpty", "inputGeoPoint"]],
1459
1475
  ["InputPhoto", ["inputPhotoEmpty", "inputPhoto"]],
1460
- ["InputFileLocation", ["inputFileLocation", "inputEncryptedFileLocation", "inputDocumentFileLocation", "inputSecureFileLocation", "inputTakeoutFileLocation", "inputPhotoFileLocation", "inputPhotoLegacyFileLocation", "inputPeerPhotoFileLocation", "inputStickerSetThumb", "inputGroupCallStream"]],
1461
1476
  ["Peer", ["peerUser", "peerChat", "peerChannel"]],
1462
1477
  ["storage.FileType", ["storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp"]],
1463
1478
  ["User", ["userEmpty", "user"]],
@@ -1470,7 +1485,7 @@ const enums = new Map([
1470
1485
  ["ChatPhoto", ["chatPhotoEmpty", "chatPhoto"]],
1471
1486
  ["Message", ["messageEmpty", "message", "messageService"]],
1472
1487
  ["MessageMedia", ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia"]],
1473
- ["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"]],
1488
+ ["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"]],
1474
1489
  ["Dialog", ["dialog", "dialogFolder"]],
1475
1490
  ["Photo", ["photoEmpty", "photo"]],
1476
1491
  ["PhotoSize", ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]],
@@ -1637,6 +1652,8 @@ const enums = new Map([
1637
1652
  "updateStarsBalance",
1638
1653
  "updateBusinessBotCallbackQuery",
1639
1654
  "updateStarsRevenueStatus",
1655
+ "updateBotPurchasedPaidMedia",
1656
+ "updatePaidReactionPrivacy",
1640
1657
  ]],
1641
1658
  ["updates.State", ["updates.state"]],
1642
1659
  ["updates.Difference", ["updates.differenceEmpty", "updates.difference", "updates.differenceSlice", "updates.differenceTooLong"]],
@@ -1817,6 +1834,7 @@ const enums = new Map([
1817
1834
  "channelAdminLogEventActionChangeEmojiStatus",
1818
1835
  "channelAdminLogEventActionChangeEmojiStickerSet",
1819
1836
  "channelAdminLogEventActionToggleSignatureProfiles",
1837
+ "channelAdminLogEventActionParticipantSubExtend",
1820
1838
  ]],
1821
1839
  ["ChannelAdminLogEvent", ["channelAdminLogEvent"]],
1822
1840
  ["channels.AdminLogResults", ["channels.adminLogResults"]],
@@ -1989,7 +2007,7 @@ const enums = new Map([
1989
2007
  ["payments.ExportedInvoice", ["payments.exportedInvoice"]],
1990
2008
  ["messages.TranscribedAudio", ["messages.transcribedAudio"]],
1991
2009
  ["help.PremiumPromo", ["help.premiumPromo"]],
1992
- ["InputStorePaymentPurpose", ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift"]],
2010
+ ["InputStorePaymentPurpose", ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift", "inputStorePaymentStarsGiveaway"]],
1993
2011
  ["PremiumGiftOption", ["premiumGiftOption"]],
1994
2012
  ["PaymentFormMethod", ["paymentFormMethod"]],
1995
2013
  ["EmojiStatus", ["emojiStatusEmpty", "emojiStatus", "emojiStatusUntil"]],
@@ -2050,7 +2068,7 @@ const enums = new Map([
2050
2068
  ["PremiumGiftCodeOption", ["premiumGiftCodeOption"]],
2051
2069
  ["payments.CheckedGiftCode", ["payments.checkedGiftCode"]],
2052
2070
  ["payments.GiveawayInfo", ["payments.giveawayInfo", "payments.giveawayInfoResults"]],
2053
- ["PrepaidGiveaway", ["prepaidGiveaway"]],
2071
+ ["PrepaidGiveaway", ["prepaidGiveaway", "prepaidStarsGiveaway"]],
2054
2072
  ["Boost", ["boost"]],
2055
2073
  ["premium.BoostsList", ["premium.boostsList"]],
2056
2074
  ["MyBoost", ["myBoost"]],
@@ -2142,6 +2160,8 @@ const enums = new Map([
2142
2160
  ["StarsSubscriptionPricing", ["starsSubscriptionPricing"]],
2143
2161
  ["StarsSubscription", ["starsSubscription"]],
2144
2162
  ["MessageReactor", ["messageReactor"]],
2163
+ ["StarsGiveawayOption", ["starsGiveawayOption"]],
2164
+ ["StarsGiveawayWinnersOption", ["starsGiveawayWinnersOption"]],
2145
2165
  ]);
2146
2166
  const types = new Map([
2147
2167
  [
@@ -2518,10 +2538,70 @@ const types = new Map([
2518
2538
  ],
2519
2539
  ],
2520
2540
  [
2521
- "null",
2541
+ "ipPort",
2522
2542
  [
2523
- 0x56730BCC,
2524
- [],
2543
+ 0xD433AD73,
2544
+ [
2545
+ ["ipv4", "number", "int"],
2546
+ ["port", "number", "int"],
2547
+ ],
2548
+ ],
2549
+ ],
2550
+ [
2551
+ "ipPortSecret",
2552
+ [
2553
+ 0x37982646,
2554
+ [
2555
+ ["ipv4", "number", "int"],
2556
+ ["port", "number", "int"],
2557
+ ["secret", Uint8Array, "bytes"],
2558
+ ],
2559
+ ],
2560
+ ],
2561
+ [
2562
+ "accessPointRule",
2563
+ [
2564
+ 0x4679B65F,
2565
+ [
2566
+ ["phone_prefix_rules", "string", "string"],
2567
+ ["dc_id", "number", "int"],
2568
+ ["ips", ["IpPort"], "vector<IpPort>"],
2569
+ ],
2570
+ ],
2571
+ ],
2572
+ [
2573
+ "help.configSimple",
2574
+ [
2575
+ 0x5A592A6C,
2576
+ [
2577
+ ["date", "number", "int"],
2578
+ ["expires", "number", "int"],
2579
+ ["rules", ["AccessPointRule"], "vector<AccessPointRule>"],
2580
+ ],
2581
+ ],
2582
+ ],
2583
+ [
2584
+ "inputPeerPhotoFileLocationLegacy",
2585
+ [
2586
+ 0x27D69997,
2587
+ [
2588
+ ["flags", exports.flags, "#"],
2589
+ ["big", "true", "flags.0?true"],
2590
+ ["peer", "InputPeer", "InputPeer"],
2591
+ ["volume_id", "bigint", "long"],
2592
+ ["local_id", "number", "int"],
2593
+ ],
2594
+ ],
2595
+ ],
2596
+ [
2597
+ "inputStickerSetThumbLegacy",
2598
+ [
2599
+ 0x0DBAEAE9,
2600
+ [
2601
+ ["stickerset", "InputStickerSet", "InputStickerSet"],
2602
+ ["volume_id", "bigint", "long"],
2603
+ ["local_id", "number", "int"],
2604
+ ],
2525
2605
  ],
2526
2606
  ],
2527
2607
  [
@@ -2879,10 +2959,12 @@ const types = new Map([
2879
2959
  [
2880
2960
  "inputMediaPaidMedia",
2881
2961
  [
2882
- 0xAA661FC3,
2962
+ 0xC4103386,
2883
2963
  [
2964
+ ["flags", exports.flags, "#"],
2884
2965
  ["stars_amount", "bigint", "long"],
2885
2966
  ["extended_media", ["InputMedia"], "Vector<InputMedia>"],
2967
+ ["payload", "string", "flags.0?string"],
2886
2968
  ],
2887
2969
  ],
2888
2970
  ],
@@ -3833,7 +3915,7 @@ const types = new Map([
3833
3915
  [
3834
3916
  "messageMediaGiveaway",
3835
3917
  [
3836
- 0xDAAD85B0,
3918
+ 0xAA073BEB,
3837
3919
  [
3838
3920
  ["flags", exports.flags, "#"],
3839
3921
  ["only_new_subscribers", "true", "flags.0?true"],
@@ -3842,7 +3924,8 @@ const types = new Map([
3842
3924
  ["countries_iso2", ["string"], "flags.1?Vector<string>"],
3843
3925
  ["prize_description", "string", "flags.3?string"],
3844
3926
  ["quantity", "number", "int"],
3845
- ["months", "number", "int"],
3927
+ ["months", "number", "flags.4?int"],
3928
+ ["stars", "bigint", "flags.5?long"],
3846
3929
  ["until_date", "number", "int"],
3847
3930
  ],
3848
3931
  ],
@@ -3850,7 +3933,7 @@ const types = new Map([
3850
3933
  [
3851
3934
  "messageMediaGiveawayResults",
3852
3935
  [
3853
- 0xC6991068,
3936
+ 0xCEAA3EA1,
3854
3937
  [
3855
3938
  ["flags", exports.flags, "#"],
3856
3939
  ["only_new_subscribers", "true", "flags.0?true"],
@@ -3861,7 +3944,8 @@ const types = new Map([
3861
3944
  ["winners_count", "number", "int"],
3862
3945
  ["unclaimed_count", "number", "int"],
3863
3946
  ["winners", ["bigint"], "Vector<long>"],
3864
- ["months", "number", "int"],
3947
+ ["months", "number", "flags.4?int"],
3948
+ ["stars", "bigint", "flags.5?long"],
3865
3949
  ["prize_description", "string", "flags.1?string"],
3866
3950
  ["until_date", "number", "int"],
3867
3951
  ],
@@ -4276,15 +4360,20 @@ const types = new Map([
4276
4360
  [
4277
4361
  "messageActionGiveawayLaunch",
4278
4362
  [
4279
- 0x332BA9ED,
4280
- [],
4363
+ 0xA80F51E4,
4364
+ [
4365
+ ["flags", exports.flags, "#"],
4366
+ ["stars", "bigint", "flags.0?long"],
4367
+ ],
4281
4368
  ],
4282
4369
  ],
4283
4370
  [
4284
4371
  "messageActionGiveawayResults",
4285
4372
  [
4286
- 0x2A9FADC5,
4373
+ 0x87E2F155,
4287
4374
  [
4375
+ ["flags", exports.flags, "#"],
4376
+ ["stars", "true", "flags.0?true"],
4288
4377
  ["winners_count", "number", "int"],
4289
4378
  ["unclaimed_count", "number", "int"],
4290
4379
  ],
@@ -4338,6 +4427,20 @@ const types = new Map([
4338
4427
  ],
4339
4428
  ],
4340
4429
  ],
4430
+ [
4431
+ "messageActionPrizeStars",
4432
+ [
4433
+ 0xB00C47A2,
4434
+ [
4435
+ ["flags", exports.flags, "#"],
4436
+ ["unclaimed", "true", "flags.0?true"],
4437
+ ["stars", "bigint", "long"],
4438
+ ["transaction_id", "string", "string"],
4439
+ ["boost_peer", "Peer", "Peer"],
4440
+ ["giveaway_msg_id", "number", "int"],
4441
+ ],
4442
+ ],
4443
+ ],
4341
4444
  [
4342
4445
  "dialog",
4343
4446
  [
@@ -6630,6 +6733,26 @@ const types = new Map([
6630
6733
  ],
6631
6734
  ],
6632
6735
  ],
6736
+ [
6737
+ "updateBotPurchasedPaidMedia",
6738
+ [
6739
+ 0x283BD312,
6740
+ [
6741
+ ["user_id", "bigint", "long"],
6742
+ ["payload", "string", "string"],
6743
+ ["qts", "number", "int"],
6744
+ ],
6745
+ ],
6746
+ ],
6747
+ [
6748
+ "updatePaidReactionPrivacy",
6749
+ [
6750
+ 0x51CA7AEC,
6751
+ [
6752
+ ["private", "boolean", "Bool"],
6753
+ ],
6754
+ ],
6755
+ ],
6633
6756
  [
6634
6757
  "updates.state",
6635
6758
  [
@@ -11561,6 +11684,16 @@ const types = new Map([
11561
11684
  ],
11562
11685
  ],
11563
11686
  ],
11687
+ [
11688
+ "channelAdminLogEventActionParticipantSubExtend",
11689
+ [
11690
+ 0x64642DB3,
11691
+ [
11692
+ ["prev_participant", "ChannelParticipant", "ChannelParticipant"],
11693
+ ["new_participant", "ChannelParticipant", "ChannelParticipant"],
11694
+ ],
11695
+ ],
11696
+ ],
11564
11697
  [
11565
11698
  "channelAdminLogEvent",
11566
11699
  [
@@ -11608,6 +11741,7 @@ const types = new Map([
11608
11741
  ["invites", "true", "flags.15?true"],
11609
11742
  ["send", "true", "flags.16?true"],
11610
11743
  ["forums", "true", "flags.17?true"],
11744
+ ["sub_extend", "true", "flags.18?true"],
11611
11745
  ],
11612
11746
  ],
11613
11747
  ],
@@ -14689,6 +14823,27 @@ const types = new Map([
14689
14823
  ],
14690
14824
  ],
14691
14825
  ],
14826
+ [
14827
+ "inputStorePaymentStarsGiveaway",
14828
+ [
14829
+ 0x751F08FA,
14830
+ [
14831
+ ["flags", exports.flags, "#"],
14832
+ ["only_new_subscribers", "true", "flags.0?true"],
14833
+ ["winners_are_visible", "true", "flags.3?true"],
14834
+ ["stars", "bigint", "long"],
14835
+ ["boost_peer", "InputPeer", "InputPeer"],
14836
+ ["additional_peers", ["InputPeer"], "flags.1?Vector<InputPeer>"],
14837
+ ["countries_iso2", ["string"], "flags.2?Vector<string>"],
14838
+ ["prize_description", "string", "flags.4?string"],
14839
+ ["random_id", "bigint", "long"],
14840
+ ["until_date", "number", "int"],
14841
+ ["currency", "string", "string"],
14842
+ ["amount", "bigint", "long"],
14843
+ ["users", "number", "int"],
14844
+ ],
14845
+ ],
14846
+ ],
14692
14847
  [
14693
14848
  "premiumGiftOption",
14694
14849
  [
@@ -15836,16 +15991,17 @@ const types = new Map([
15836
15991
  [
15837
15992
  "payments.giveawayInfoResults",
15838
15993
  [
15839
- 0x00CD5570,
15994
+ 0xE175E66F,
15840
15995
  [
15841
15996
  ["flags", exports.flags, "#"],
15842
15997
  ["winner", "true", "flags.0?true"],
15843
15998
  ["refunded", "true", "flags.1?true"],
15844
15999
  ["start_date", "number", "int"],
15845
- ["gift_code_slug", "string", "flags.0?string"],
16000
+ ["gift_code_slug", "string", "flags.3?string"],
16001
+ ["stars_prize", "bigint", "flags.4?long"],
15846
16002
  ["finish_date", "number", "int"],
15847
16003
  ["winners_count", "number", "int"],
15848
- ["activated_count", "number", "int"],
16004
+ ["activated_count", "number", "flags.2?int"],
15849
16005
  ],
15850
16006
  ],
15851
16007
  ],
@@ -15861,10 +16017,23 @@ const types = new Map([
15861
16017
  ],
15862
16018
  ],
15863
16019
  ],
16020
+ [
16021
+ "prepaidStarsGiveaway",
16022
+ [
16023
+ 0x9A9D77E0,
16024
+ [
16025
+ ["id", "bigint", "long"],
16026
+ ["stars", "bigint", "long"],
16027
+ ["quantity", "number", "int"],
16028
+ ["boosts", "number", "int"],
16029
+ ["date", "number", "int"],
16030
+ ],
16031
+ ],
16032
+ ],
15864
16033
  [
15865
16034
  "boost",
15866
16035
  [
15867
- 0x2A1C8C71,
16036
+ 0x4B3E14D6,
15868
16037
  [
15869
16038
  ["flags", exports.flags, "#"],
15870
16039
  ["gift", "true", "flags.1?true"],
@@ -15877,6 +16046,7 @@ const types = new Map([
15877
16046
  ["expires", "number", "int"],
15878
16047
  ["used_gift_slug", "string", "flags.4?string"],
15879
16048
  ["multiplier", "number", "flags.5?int"],
16049
+ ["stars", "bigint", "flags.6?long"],
15880
16050
  ],
15881
16051
  ],
15882
16052
  ],
@@ -16881,8 +17051,10 @@ const types = new Map([
16881
17051
  [
16882
17052
  "broadcastRevenueBalances",
16883
17053
  [
16884
- 0x8438F1C6,
17054
+ 0xC3FF71E7,
16885
17055
  [
17056
+ ["flags", exports.flags, "#"],
17057
+ ["withdrawal_enabled", "true", "flags.0?true"],
16886
17058
  ["current_balance", "bigint", "long"],
16887
17059
  ["available_balance", "bigint", "long"],
16888
17060
  ["overall_revenue", "bigint", "long"],
@@ -17003,7 +17175,7 @@ const types = new Map([
17003
17175
  [
17004
17176
  "starsTransaction",
17005
17177
  [
17006
- 0x433AEB2B,
17178
+ 0xEE7522D5,
17007
17179
  [
17008
17180
  ["flags", exports.flags, "#"],
17009
17181
  ["refund", "true", "flags.3?true"],
@@ -17024,6 +17196,7 @@ const types = new Map([
17024
17196
  ["msg_id", "number", "flags.8?int"],
17025
17197
  ["extended_media", ["MessageMedia"], "flags.9?Vector<MessageMedia>"],
17026
17198
  ["subscription_period", "number", "flags.12?int"],
17199
+ ["giveaway_post_id", "number", "flags.13?int"],
17027
17200
  ],
17028
17201
  ],
17029
17202
  ],
@@ -17221,6 +17394,35 @@ const types = new Map([
17221
17394
  ],
17222
17395
  ],
17223
17396
  ],
17397
+ [
17398
+ "starsGiveawayOption",
17399
+ [
17400
+ 0x94CE852A,
17401
+ [
17402
+ ["flags", exports.flags, "#"],
17403
+ ["extended", "true", "flags.0?true"],
17404
+ ["default", "true", "flags.1?true"],
17405
+ ["stars", "bigint", "long"],
17406
+ ["yearly_boosts", "number", "int"],
17407
+ ["store_product", "string", "flags.2?string"],
17408
+ ["currency", "string", "string"],
17409
+ ["amount", "bigint", "long"],
17410
+ ["winners", ["StarsGiveawayWinnersOption"], "Vector<StarsGiveawayWinnersOption>"],
17411
+ ],
17412
+ ],
17413
+ ],
17414
+ [
17415
+ "starsGiveawayWinnersOption",
17416
+ [
17417
+ 0x54236209,
17418
+ [
17419
+ ["flags", exports.flags, "#"],
17420
+ ["default", "true", "flags.0?true"],
17421
+ ["users", "number", "int"],
17422
+ ["per_user_stars", "bigint", "long"],
17423
+ ],
17424
+ ],
17425
+ ],
17224
17426
  [
17225
17427
  "req_pq_multi",
17226
17428
  [
@@ -17308,6 +17510,35 @@ const types = new Map([
17308
17510
  [],
17309
17511
  ],
17310
17512
  ],
17513
+ [
17514
+ "invokeWithBusinessConnectionPrefix",
17515
+ [
17516
+ 0xDD289F8E,
17517
+ [
17518
+ ["connection_id", "string", "string"],
17519
+ ],
17520
+ ],
17521
+ ],
17522
+ [
17523
+ "invokeWithGooglePlayIntegrityPrefix",
17524
+ [
17525
+ 0x1DF92984,
17526
+ [
17527
+ ["nonce", "string", "string"],
17528
+ ["token", "string", "string"],
17529
+ ],
17530
+ ],
17531
+ ],
17532
+ [
17533
+ "invokeWithApnsSecretPrefix",
17534
+ [
17535
+ 0x0DAE54F8,
17536
+ [
17537
+ ["nonce", "string", "string"],
17538
+ ["secret", "string", "string"],
17539
+ ],
17540
+ ],
17541
+ ],
17311
17542
  [
17312
17543
  "invokeAfterMsg",
17313
17544
  [
@@ -21476,14 +21707,14 @@ const types = new Map([
21476
21707
  [
21477
21708
  "messages.sendPaidReaction",
21478
21709
  [
21479
- 0x25C8FE3E,
21710
+ 0x9DD6A67B,
21480
21711
  [
21481
21712
  ["flags", exports.flags, "#"],
21482
- ["private", "true", "flags.0?true"],
21483
21713
  ["peer", "InputPeer", "InputPeer"],
21484
21714
  ["msg_id", "number", "int"],
21485
21715
  ["count", "number", "int"],
21486
21716
  ["random_id", "bigint", "long"],
21717
+ ["private", "boolean", "flags.0?Bool"],
21487
21718
  ],
21488
21719
  ],
21489
21720
  ],
@@ -21498,6 +21729,13 @@ const types = new Map([
21498
21729
  ],
21499
21730
  ],
21500
21731
  ],
21732
+ [
21733
+ "messages.getPaidReactionPrivacy",
21734
+ [
21735
+ 0x472455AA,
21736
+ [],
21737
+ ],
21738
+ ],
21501
21739
  [
21502
21740
  "updates.getState",
21503
21741
  [
@@ -23128,6 +23366,13 @@ const types = new Map([
23128
23366
  ],
23129
23367
  ],
23130
23368
  ],
23369
+ [
23370
+ "payments.getStarsGiveawayOptions",
23371
+ [
23372
+ 0xBD1EFD3E,
23373
+ [],
23374
+ ],
23375
+ ],
23131
23376
  [
23132
23377
  "stickers.createStickerSet",
23133
23378
  [
@@ -25,8 +25,9 @@ export declare function analyzeOptionalParam(ntype: string): {
25
25
  };
26
26
  export declare function isValidType(object: any): object is AnyType;
27
27
  export declare function assertIsValidType(object: any): void;
28
- export declare function is<S extends keyof (Types & Functions)>(typeName: S, value: unknown, deep?: boolean): value is S extends keyof Types ? Types[S] : S extends keyof Functions ? Functions[S] : never;
28
+ export declare function is<S extends keyof (Types & Functions)>(typeName: S, value: unknown): value is S extends keyof Types ? Types[S] : S extends keyof Functions ? Functions[S] : never;
29
29
  export declare function isOneOf<S extends keyof (Types & Functions)>(typeNames: S[] | readonly S[], value: unknown): value is S extends keyof Types ? Types[S] : S extends keyof Functions ? Functions[S] : never;
30
30
  export declare function isOfEnum<S extends keyof Enums>(enumName: S, value: unknown): value is Enums[S];
31
31
  export declare function as<S extends keyof Types>(typeName: S, value: unknown): Types[S];
32
+ export declare function isGenericFunction(value: unknown): boolean;
32
33
  //# sourceMappingURL=1_utilities.d.ts.map
@@ -1 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