@mtkruto/node 0.2.35 → 0.2.36

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 (39) hide show
  1. package/esm/4_constants.d.ts +1 -1
  2. package/esm/4_constants.js +1 -1
  3. package/esm/client/0_params.d.ts +3 -1
  4. package/esm/client/0_params.d.ts.map +1 -1
  5. package/esm/client/3_message_manager.d.ts +2 -2
  6. package/esm/client/3_message_manager.d.ts.map +1 -1
  7. package/esm/client/3_message_manager.js +3 -3
  8. package/esm/client/5_client.d.ts +2 -2
  9. package/esm/client/5_client.d.ts.map +1 -1
  10. package/esm/client/5_client.js +13 -8
  11. package/esm/tl/0_api.d.ts +123 -74
  12. package/esm/tl/0_api.d.ts.map +1 -1
  13. package/esm/tl/0_api.js +194 -130
  14. package/esm/types/0_reaction.d.ts +5 -1
  15. package/esm/types/0_reaction.d.ts.map +1 -1
  16. package/esm/types/0_reaction.js +4 -1
  17. package/esm/types/4_message.d.ts +1 -0
  18. package/esm/types/4_message.d.ts.map +1 -1
  19. package/esm/types/4_message.js +1 -0
  20. package/package.json +1 -1
  21. package/script/4_constants.d.ts +1 -1
  22. package/script/4_constants.js +1 -1
  23. package/script/client/0_params.d.ts +3 -1
  24. package/script/client/0_params.d.ts.map +1 -1
  25. package/script/client/3_message_manager.d.ts +2 -2
  26. package/script/client/3_message_manager.d.ts.map +1 -1
  27. package/script/client/3_message_manager.js +3 -3
  28. package/script/client/5_client.d.ts +2 -2
  29. package/script/client/5_client.d.ts.map +1 -1
  30. package/script/client/5_client.js +13 -8
  31. package/script/tl/0_api.d.ts +123 -74
  32. package/script/tl/0_api.d.ts.map +1 -1
  33. package/script/tl/0_api.js +194 -130
  34. package/script/types/0_reaction.d.ts +5 -1
  35. package/script/types/0_reaction.d.ts.map +1 -1
  36. package/script/types/0_reaction.js +4 -1
  37. package/script/types/4_message.d.ts +1 -0
  38. package/script/types/4_message.d.ts.map +1 -1
  39. package/script/types/4_message.js +1 -0
@@ -81,12 +81,7 @@ const map = new Map([
81
81
  [0x9299359F, "http_wait"],
82
82
  [0x3FEDD339, "true"],
83
83
  [0xC4B9F9BB, "error"],
84
- [0xD433AD73, "ipPort"],
85
- [0x37982646, "ipPortSecret"],
86
- [0x4679B65F, "accessPointRule"],
87
- [0x5A592A6C, "help.configSimple"],
88
- [0x27D69997, "inputPeerPhotoFileLocationLegacy"],
89
- [0x0DBAEAE9, "inputStickerSetThumbLegacy"],
84
+ [0x56730BCC, "null"],
90
85
  [0x7F3B18EA, "inputPeerEmpty"],
91
86
  [0x7DA07EC9, "inputPeerSelf"],
92
87
  [0x35A95CB9, "inputPeerChat"],
@@ -163,7 +158,7 @@ const map = new Map([
163
158
  [0x29562865, "chatEmpty"],
164
159
  [0x41CBF256, "chat"],
165
160
  [0x6592A1A7, "chatForbidden"],
166
- [0x0AADFC8F, "channel"],
161
+ [0xFE4478BD, "channel"],
167
162
  [0x17D493D5, "channelForbidden"],
168
163
  [0x2633421B, "chatFull"],
169
164
  [0xBBAB348D, "channelFull"],
@@ -591,10 +586,10 @@ const map = new Map([
591
586
  [0xC23727C9, "account.passwordInputSettings"],
592
587
  [0x137948A5, "auth.passwordRecovery"],
593
588
  [0xA384B779, "receivedNotifyMessage"],
594
- [0x0AB4A819, "chatInviteExported"],
589
+ [0xA22CBD96, "chatInviteExported"],
595
590
  [0xED107AB7, "chatInvitePublicJoinRequests"],
596
591
  [0x5A686D7C, "chatInviteAlready"],
597
- [0xCDE0EC40, "chatInvite"],
592
+ [0xFE65389D, "chatInvite"],
598
593
  [0x61695CB0, "chatInvitePeek"],
599
594
  [0xFFB62B95, "inputStickerSetEmpty"],
600
595
  [0x9DE7A269, "inputStickerSetID"],
@@ -611,7 +606,7 @@ const map = new Map([
611
606
  [0x6E153F16, "messages.stickerSet"],
612
607
  [0xD3F924EB, "messages.stickerSetNotModified"],
613
608
  [0xC27AC8C7, "botCommand"],
614
- [0x8F300B57, "botInfo"],
609
+ [0x82437E74, "botInfo"],
615
610
  [0xA2FA4880, "keyboardButton"],
616
611
  [0x258AFF05, "keyboardButtonUrl"],
617
612
  [0x35BBDB6B, "keyboardButtonCallback"],
@@ -665,8 +660,8 @@ const map = new Map([
665
660
  [0x2064674E, "updates.channelDifference"],
666
661
  [0x94D42EE7, "channelMessagesFilterEmpty"],
667
662
  [0xCD77D957, "channelMessagesFilter"],
668
- [0xC00C07C0, "channelParticipant"],
669
- [0x35A8BFA7, "channelParticipantSelf"],
663
+ [0xCB397619, "channelParticipant"],
664
+ [0x4F607BEF, "channelParticipantSelf"],
670
665
  [0x2FE601D3, "channelParticipantCreator"],
671
666
  [0x34C3BB53, "channelParticipantAdmin"],
672
667
  [0x6DF8014E, "channelParticipantBanned"],
@@ -912,6 +907,7 @@ const map = new Map([
912
907
  [0x31BB5D52, "channelAdminLogEventActionChangeWallpaper"],
913
908
  [0x3EA9FEB1, "channelAdminLogEventActionChangeEmojiStatus"],
914
909
  [0x46D840AB, "channelAdminLogEventActionChangeEmojiStickerSet"],
910
+ [0x60A79C79, "channelAdminLogEventActionToggleSignatureProfiles"],
915
911
  [0x1FAD68CD, "channelAdminLogEvent"],
916
912
  [0xED8AF74D, "channels.adminLogResults"],
917
913
  [0xEA107AE4, "channelAdminLogEventsFilter"],
@@ -1140,7 +1136,7 @@ const map = new Map([
1140
1136
  [0xE3779861, "account.resetPasswordFailedWait"],
1141
1137
  [0xE9EFFC7D, "account.resetPasswordRequestedWait"],
1142
1138
  [0xE926D63E, "account.resetPasswordOk"],
1143
- [0xBDEDF566, "sponsoredMessage"],
1139
+ [0x4D93A990, "sponsoredMessage"],
1144
1140
  [0xC9EE1D87, "messages.sponsoredMessages"],
1145
1141
  [0x1839490F, "messages.sponsoredMessagesEmpty"],
1146
1142
  [0xC9B0539F, "searchResultsCalendarPeriod"],
@@ -1152,7 +1148,7 @@ const map = new Map([
1152
1148
  [0x6880B94D, "messages.peerSettings"],
1153
1149
  [0xC3A2835F, "auth.loggedOut"],
1154
1150
  [0xA3D1CB80, "reactionCount"],
1155
- [0x4F2B9479, "messageReactions"],
1151
+ [0x0A339F0B, "messageReactions"],
1156
1152
  [0x31BD492D, "messages.messageReactionsList"],
1157
1153
  [0xC077EC01, "availableReaction"],
1158
1154
  [0x9F071957, "messages.availableReactionsNotModified"],
@@ -1189,6 +1185,7 @@ const map = new Map([
1189
1185
  [0xC326CAEF, "inputInvoiceSlug"],
1190
1186
  [0x98986C0D, "inputInvoicePremiumGiftCode"],
1191
1187
  [0x65F00CE3, "inputInvoiceStars"],
1188
+ [0x34E793F1, "inputInvoiceChatInviteSubscription"],
1192
1189
  [0xAED0CBD9, "payments.exportedInvoice"],
1193
1190
  [0xCFB9D957, "messages.transcribedAudio"],
1194
1191
  [0x5334759C, "help.premiumPromo"],
@@ -1208,6 +1205,7 @@ const map = new Map([
1208
1205
  [0x79F5D419, "reactionEmpty"],
1209
1206
  [0x1B2286B8, "reactionEmoji"],
1210
1207
  [0x8935FC73, "reactionCustomEmoji"],
1208
+ [0x523DA4EB, "reactionPaid"],
1211
1209
  [0xEAFC32BC, "chatReactionsNone"],
1212
1210
  [0x52928BCA, "chatReactionsAll"],
1213
1211
  [0x661D4037, "chatReactionsSome"],
@@ -1403,8 +1401,8 @@ const map = new Map([
1403
1401
  [0xD80DA15D, "starsTransactionPeer"],
1404
1402
  [0x60682812, "starsTransactionPeerAds"],
1405
1403
  [0x0BD915C0, "starsTopupOption"],
1406
- [0x2DB5418F, "starsTransaction"],
1407
- [0x8CF4EE60, "payments.starsStatus"],
1404
+ [0x433AEB2B, "starsTransaction"],
1405
+ [0xBBFA316C, "payments.starsStatus"],
1408
1406
  [0xE87ACBC0, "foundStory"],
1409
1407
  [0xE2DE7737, "stories.foundStories"],
1410
1408
  [0xDE4C5D93, "geoPointAddress"],
@@ -1417,6 +1415,9 @@ const map = new Map([
1417
1415
  [0x1991B13B, "bots.popularAppBots"],
1418
1416
  [0x23E91BA3, "botPreviewMedia"],
1419
1417
  [0x0CA71D64, "bots.previewInfo"],
1418
+ [0x05416D58, "starsSubscriptionPricing"],
1419
+ [0x538ECF18, "starsSubscription"],
1420
+ [0x4BA3A95A, "messageReactor"],
1420
1421
  ]);
1421
1422
  exports.getTypeName = map.get.bind(map);
1422
1423
  exports.flags = Symbol();
@@ -1447,10 +1448,7 @@ const enums = new Map([
1447
1448
  ["HttpWait", ["http_wait"]],
1448
1449
  ["True", ["true"]],
1449
1450
  ["Error", ["error"]],
1450
- ["IpPort", ["ipPort", "ipPortSecret"]],
1451
- ["AccessPointRule", ["accessPointRule"]],
1452
- ["help.ConfigSimple", ["help.configSimple"]],
1453
- ["InputFileLocation", ["inputPeerPhotoFileLocationLegacy", "inputStickerSetThumbLegacy", "inputFileLocation", "inputEncryptedFileLocation", "inputDocumentFileLocation", "inputSecureFileLocation", "inputTakeoutFileLocation", "inputPhotoFileLocation", "inputPhotoLegacyFileLocation", "inputPeerPhotoFileLocation", "inputStickerSetThumb", "inputGroupCallStream"]],
1451
+ ["Null", ["null"]],
1454
1452
  ["InputPeer", ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]],
1455
1453
  ["InputUser", ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]],
1456
1454
  ["InputContact", ["inputPhoneContact"]],
@@ -1459,6 +1457,7 @@ const enums = new Map([
1459
1457
  ["InputChatPhoto", ["inputChatPhotoEmpty", "inputChatUploadedPhoto", "inputChatPhoto"]],
1460
1458
  ["InputGeoPoint", ["inputGeoPointEmpty", "inputGeoPoint"]],
1461
1459
  ["InputPhoto", ["inputPhotoEmpty", "inputPhoto"]],
1460
+ ["InputFileLocation", ["inputFileLocation", "inputEncryptedFileLocation", "inputDocumentFileLocation", "inputSecureFileLocation", "inputTakeoutFileLocation", "inputPhotoFileLocation", "inputPhotoLegacyFileLocation", "inputPeerPhotoFileLocation", "inputStickerSetThumb", "inputGroupCallStream"]],
1462
1461
  ["Peer", ["peerUser", "peerChat", "peerChannel"]],
1463
1462
  ["storage.FileType", ["storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp"]],
1464
1463
  ["User", ["userEmpty", "user"]],
@@ -1817,6 +1816,7 @@ const enums = new Map([
1817
1816
  "channelAdminLogEventActionChangeWallpaper",
1818
1817
  "channelAdminLogEventActionChangeEmojiStatus",
1819
1818
  "channelAdminLogEventActionChangeEmojiStickerSet",
1819
+ "channelAdminLogEventActionToggleSignatureProfiles",
1820
1820
  ]],
1821
1821
  ["ChannelAdminLogEvent", ["channelAdminLogEvent"]],
1822
1822
  ["channels.AdminLogResults", ["channels.adminLogResults"]],
@@ -1985,7 +1985,7 @@ const enums = new Map([
1985
1985
  ["NotificationSound", ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]],
1986
1986
  ["account.SavedRingtone", ["account.savedRingtone", "account.savedRingtoneConverted"]],
1987
1987
  ["AttachMenuPeerType", ["attachMenuPeerTypeSameBotPM", "attachMenuPeerTypeBotPM", "attachMenuPeerTypePM", "attachMenuPeerTypeChat", "attachMenuPeerTypeBroadcast"]],
1988
- ["InputInvoice", ["inputInvoiceMessage", "inputInvoiceSlug", "inputInvoicePremiumGiftCode", "inputInvoiceStars"]],
1988
+ ["InputInvoice", ["inputInvoiceMessage", "inputInvoiceSlug", "inputInvoicePremiumGiftCode", "inputInvoiceStars", "inputInvoiceChatInviteSubscription"]],
1989
1989
  ["payments.ExportedInvoice", ["payments.exportedInvoice"]],
1990
1990
  ["messages.TranscribedAudio", ["messages.transcribedAudio"]],
1991
1991
  ["help.PremiumPromo", ["help.premiumPromo"]],
@@ -1994,7 +1994,7 @@ const enums = new Map([
1994
1994
  ["PaymentFormMethod", ["paymentFormMethod"]],
1995
1995
  ["EmojiStatus", ["emojiStatusEmpty", "emojiStatus", "emojiStatusUntil"]],
1996
1996
  ["account.EmojiStatuses", ["account.emojiStatusesNotModified", "account.emojiStatuses"]],
1997
- ["Reaction", ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji"]],
1997
+ ["Reaction", ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]],
1998
1998
  ["ChatReactions", ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]],
1999
1999
  ["messages.Reactions", ["messages.reactionsNotModified", "messages.reactions"]],
2000
2000
  ["EmailVerifyPurpose", ["emailVerifyPurposeLoginSetup", "emailVerifyPurposeLoginChange", "emailVerifyPurposePassport"]],
@@ -2139,6 +2139,9 @@ const enums = new Map([
2139
2139
  ["bots.PopularAppBots", ["bots.popularAppBots"]],
2140
2140
  ["BotPreviewMedia", ["botPreviewMedia"]],
2141
2141
  ["bots.PreviewInfo", ["bots.previewInfo"]],
2142
+ ["StarsSubscriptionPricing", ["starsSubscriptionPricing"]],
2143
+ ["StarsSubscription", ["starsSubscription"]],
2144
+ ["MessageReactor", ["messageReactor"]],
2142
2145
  ]);
2143
2146
  const types = new Map([
2144
2147
  [
@@ -2515,70 +2518,10 @@ const types = new Map([
2515
2518
  ],
2516
2519
  ],
2517
2520
  [
2518
- "ipPort",
2521
+ "null",
2519
2522
  [
2520
- 0xD433AD73,
2521
- [
2522
- ["ipv4", "number", "int"],
2523
- ["port", "number", "int"],
2524
- ],
2525
- ],
2526
- ],
2527
- [
2528
- "ipPortSecret",
2529
- [
2530
- 0x37982646,
2531
- [
2532
- ["ipv4", "number", "int"],
2533
- ["port", "number", "int"],
2534
- ["secret", Uint8Array, "bytes"],
2535
- ],
2536
- ],
2537
- ],
2538
- [
2539
- "accessPointRule",
2540
- [
2541
- 0x4679B65F,
2542
- [
2543
- ["phone_prefix_rules", "string", "string"],
2544
- ["dc_id", "number", "int"],
2545
- ["ips", ["IpPort"], "vector<IpPort>"],
2546
- ],
2547
- ],
2548
- ],
2549
- [
2550
- "help.configSimple",
2551
- [
2552
- 0x5A592A6C,
2553
- [
2554
- ["date", "number", "int"],
2555
- ["expires", "number", "int"],
2556
- ["rules", ["AccessPointRule"], "vector<AccessPointRule>"],
2557
- ],
2558
- ],
2559
- ],
2560
- [
2561
- "inputPeerPhotoFileLocationLegacy",
2562
- [
2563
- 0x27D69997,
2564
- [
2565
- ["flags", exports.flags, "#"],
2566
- ["big", "true", "flags.0?true"],
2567
- ["peer", "InputPeer", "InputPeer"],
2568
- ["volume_id", "bigint", "long"],
2569
- ["local_id", "number", "int"],
2570
- ],
2571
- ],
2572
- ],
2573
- [
2574
- "inputStickerSetThumbLegacy",
2575
- [
2576
- 0x0DBAEAE9,
2577
- [
2578
- ["stickerset", "InputStickerSet", "InputStickerSet"],
2579
- ["volume_id", "bigint", "long"],
2580
- ["local_id", "number", "int"],
2581
- ],
2523
+ 0x56730BCC,
2524
+ [],
2582
2525
  ],
2583
2526
  ],
2584
2527
  [
@@ -3403,7 +3346,7 @@ const types = new Map([
3403
3346
  [
3404
3347
  "channel",
3405
3348
  [
3406
- 0x0AADFC8F,
3349
+ 0xFE4478BD,
3407
3350
  [
3408
3351
  ["flags", exports.flags, "#"],
3409
3352
  ["creator", "true", "flags.0?true"],
@@ -3430,6 +3373,7 @@ const types = new Map([
3430
3373
  ["stories_hidden", "true", "flags2.1?true"],
3431
3374
  ["stories_hidden_min", "true", "flags2.2?true"],
3432
3375
  ["stories_unavailable", "true", "flags2.3?true"],
3376
+ ["signature_profiles", "true", "flags2.12?true"],
3433
3377
  ["id", "bigint", "long"],
3434
3378
  ["access_hash", "bigint", "flags.13?long"],
3435
3379
  ["title", "string", "string"],
@@ -3447,6 +3391,7 @@ const types = new Map([
3447
3391
  ["profile_color", "PeerColor", "flags2.8?PeerColor"],
3448
3392
  ["emoji_status", "EmojiStatus", "flags2.9?EmojiStatus"],
3449
3393
  ["level", "number", "flags2.10?int"],
3394
+ ["subscription_until_date", "number", "flags2.11?int"],
3450
3395
  ],
3451
3396
  ],
3452
3397
  ],
@@ -3519,6 +3464,7 @@ const types = new Map([
3519
3464
  ["can_view_revenue", "true", "flags2.12?true"],
3520
3465
  ["paid_media_allowed", "true", "flags2.14?true"],
3521
3466
  ["can_view_stars_revenue", "true", "flags2.15?true"],
3467
+ ["paid_reactions_available", "true", "flags2.16?true"],
3522
3468
  ["id", "bigint", "long"],
3523
3469
  ["about", "string", "string"],
3524
3470
  ["participants_count", "number", "flags.0?int"],
@@ -8120,7 +8066,7 @@ const types = new Map([
8120
8066
  [
8121
8067
  "chatInviteExported",
8122
8068
  [
8123
- 0x0AB4A819,
8069
+ 0xA22CBD96,
8124
8070
  [
8125
8071
  ["flags", exports.flags, "#"],
8126
8072
  ["revoked", "true", "flags.0?true"],
@@ -8134,7 +8080,9 @@ const types = new Map([
8134
8080
  ["usage_limit", "number", "flags.2?int"],
8135
8081
  ["usage", "number", "flags.3?int"],
8136
8082
  ["requested", "number", "flags.7?int"],
8083
+ ["subscription_expired", "number", "flags.10?int"],
8137
8084
  ["title", "string", "flags.8?string"],
8085
+ ["subscription_pricing", "StarsSubscriptionPricing", "flags.9?StarsSubscriptionPricing"],
8138
8086
  ],
8139
8087
  ],
8140
8088
  ],
@@ -8157,7 +8105,7 @@ const types = new Map([
8157
8105
  [
8158
8106
  "chatInvite",
8159
8107
  [
8160
- 0xCDE0EC40,
8108
+ 0xFE65389D,
8161
8109
  [
8162
8110
  ["flags", exports.flags, "#"],
8163
8111
  ["channel", "true", "flags.0?true"],
@@ -8168,12 +8116,15 @@ const types = new Map([
8168
8116
  ["verified", "true", "flags.7?true"],
8169
8117
  ["scam", "true", "flags.8?true"],
8170
8118
  ["fake", "true", "flags.9?true"],
8119
+ ["can_refulfill_subscription", "true", "flags.11?true"],
8171
8120
  ["title", "string", "string"],
8172
8121
  ["about", "string", "flags.5?string"],
8173
8122
  ["photo", "Photo", "Photo"],
8174
8123
  ["participants_count", "number", "int"],
8175
8124
  ["participants", ["User"], "flags.4?Vector<User>"],
8176
8125
  ["color", "number", "int"],
8126
+ ["subscription_pricing", "StarsSubscriptionPricing", "flags.10?StarsSubscriptionPricing"],
8127
+ ["subscription_form_id", "bigint", "flags.12?long"],
8177
8128
  ],
8178
8129
  ],
8179
8130
  ],
@@ -8330,7 +8281,7 @@ const types = new Map([
8330
8281
  [
8331
8282
  "botInfo",
8332
8283
  [
8333
- 0x8F300B57,
8284
+ 0x82437E74,
8334
8285
  [
8335
8286
  ["flags", exports.flags, "#"],
8336
8287
  ["has_preview_medias", "true", "flags.6?true"],
@@ -8340,6 +8291,7 @@ const types = new Map([
8340
8291
  ["description_document", "Document", "flags.5?Document"],
8341
8292
  ["commands", ["BotCommand"], "flags.2?Vector<BotCommand>"],
8342
8293
  ["menu_button", "BotMenuButton", "flags.3?BotMenuButton"],
8294
+ ["privacy_policy_url", "string", "flags.7?string"],
8343
8295
  ],
8344
8296
  ],
8345
8297
  ],
@@ -8914,23 +8866,26 @@ const types = new Map([
8914
8866
  [
8915
8867
  "channelParticipant",
8916
8868
  [
8917
- 0xC00C07C0,
8869
+ 0xCB397619,
8918
8870
  [
8871
+ ["flags", exports.flags, "#"],
8919
8872
  ["user_id", "bigint", "long"],
8920
8873
  ["date", "number", "int"],
8874
+ ["subscription_until_date", "number", "flags.0?int"],
8921
8875
  ],
8922
8876
  ],
8923
8877
  ],
8924
8878
  [
8925
8879
  "channelParticipantSelf",
8926
8880
  [
8927
- 0x35A8BFA7,
8881
+ 0x4F607BEF,
8928
8882
  [
8929
8883
  ["flags", exports.flags, "#"],
8930
8884
  ["via_request", "true", "flags.0?true"],
8931
8885
  ["user_id", "bigint", "long"],
8932
8886
  ["inviter_id", "bigint", "long"],
8933
8887
  ["date", "number", "int"],
8888
+ ["subscription_until_date", "number", "flags.1?int"],
8934
8889
  ],
8935
8890
  ],
8936
8891
  ],
@@ -11597,6 +11552,15 @@ const types = new Map([
11597
11552
  ],
11598
11553
  ],
11599
11554
  ],
11555
+ [
11556
+ "channelAdminLogEventActionToggleSignatureProfiles",
11557
+ [
11558
+ 0x60A79C79,
11559
+ [
11560
+ ["new_value", "boolean", "Bool"],
11561
+ ],
11562
+ ],
11563
+ ],
11600
11564
  [
11601
11565
  "channelAdminLogEvent",
11602
11566
  [
@@ -14092,7 +14056,7 @@ const types = new Map([
14092
14056
  [
14093
14057
  "sponsoredMessage",
14094
14058
  [
14095
- 0xBDEDF566,
14059
+ 0x4D93A990,
14096
14060
  [
14097
14061
  ["flags", exports.flags, "#"],
14098
14062
  ["recommended", "true", "flags.5?true"],
@@ -14103,6 +14067,7 @@ const types = new Map([
14103
14067
  ["message", "string", "string"],
14104
14068
  ["entities", ["MessageEntity"], "flags.1?Vector<MessageEntity>"],
14105
14069
  ["photo", "Photo", "flags.6?Photo"],
14070
+ ["media", "MessageMedia", "flags.14?MessageMedia"],
14106
14071
  ["color", "PeerColor", "flags.13?PeerColor"],
14107
14072
  ["button_text", "string", "string"],
14108
14073
  ["sponsor_info", "string", "flags.7?string"],
@@ -14239,7 +14204,7 @@ const types = new Map([
14239
14204
  [
14240
14205
  "messageReactions",
14241
14206
  [
14242
- 0x4F2B9479,
14207
+ 0x0A339F0B,
14243
14208
  [
14244
14209
  ["flags", exports.flags, "#"],
14245
14210
  ["min", "true", "flags.0?true"],
@@ -14247,6 +14212,7 @@ const types = new Map([
14247
14212
  ["reactions_as_tags", "true", "flags.3?true"],
14248
14213
  ["results", ["ReactionCount"], "Vector<ReactionCount>"],
14249
14214
  ["recent_reactions", ["MessagePeerReaction"], "flags.1?Vector<MessagePeerReaction>"],
14215
+ ["top_reactors", ["MessageReactor"], "flags.4?Vector<MessageReactor>"],
14250
14216
  ],
14251
14217
  ],
14252
14218
  ],
@@ -14600,6 +14566,15 @@ const types = new Map([
14600
14566
  ],
14601
14567
  ],
14602
14568
  ],
14569
+ [
14570
+ "inputInvoiceChatInviteSubscription",
14571
+ [
14572
+ 0x34E793F1,
14573
+ [
14574
+ ["hash", "string", "string"],
14575
+ ],
14576
+ ],
14577
+ ],
14603
14578
  [
14604
14579
  "payments.exportedInvoice",
14605
14580
  [
@@ -14806,6 +14781,13 @@ const types = new Map([
14806
14781
  ],
14807
14782
  ],
14808
14783
  ],
14784
+ [
14785
+ "reactionPaid",
14786
+ [
14787
+ 0x523DA4EB,
14788
+ [],
14789
+ ],
14790
+ ],
14809
14791
  [
14810
14792
  "chatReactionsNone",
14811
14793
  [
@@ -17021,13 +17003,14 @@ const types = new Map([
17021
17003
  [
17022
17004
  "starsTransaction",
17023
17005
  [
17024
- 0x2DB5418F,
17006
+ 0x433AEB2B,
17025
17007
  [
17026
17008
  ["flags", exports.flags, "#"],
17027
17009
  ["refund", "true", "flags.3?true"],
17028
17010
  ["pending", "true", "flags.4?true"],
17029
17011
  ["failed", "true", "flags.6?true"],
17030
17012
  ["gift", "true", "flags.10?true"],
17013
+ ["reaction", "true", "flags.11?true"],
17031
17014
  ["id", "string", "string"],
17032
17015
  ["stars", "bigint", "long"],
17033
17016
  ["date", "number", "int"],
@@ -17040,17 +17023,21 @@ const types = new Map([
17040
17023
  ["bot_payload", Uint8Array, "flags.7?bytes"],
17041
17024
  ["msg_id", "number", "flags.8?int"],
17042
17025
  ["extended_media", ["MessageMedia"], "flags.9?Vector<MessageMedia>"],
17026
+ ["subscription_period", "number", "flags.12?int"],
17043
17027
  ],
17044
17028
  ],
17045
17029
  ],
17046
17030
  [
17047
17031
  "payments.starsStatus",
17048
17032
  [
17049
- 0x8CF4EE60,
17033
+ 0xBBFA316C,
17050
17034
  [
17051
17035
  ["flags", exports.flags, "#"],
17052
17036
  ["balance", "bigint", "long"],
17053
- ["history", ["StarsTransaction"], "Vector<StarsTransaction>"],
17037
+ ["subscriptions", ["StarsSubscription"], "flags.1?Vector<StarsSubscription>"],
17038
+ ["subscriptions_next_offset", "string", "flags.2?string"],
17039
+ ["subscriptions_missing_balance", "bigint", "flags.4?long"],
17040
+ ["history", ["StarsTransaction"], "flags.3?Vector<StarsTransaction>"],
17054
17041
  ["next_offset", "string", "flags.0?string"],
17055
17042
  ["chats", ["Chat"], "Vector<Chat>"],
17056
17043
  ["users", ["User"], "Vector<User>"],
@@ -17193,6 +17180,47 @@ const types = new Map([
17193
17180
  ],
17194
17181
  ],
17195
17182
  ],
17183
+ [
17184
+ "starsSubscriptionPricing",
17185
+ [
17186
+ 0x05416D58,
17187
+ [
17188
+ ["period", "number", "int"],
17189
+ ["amount", "bigint", "long"],
17190
+ ],
17191
+ ],
17192
+ ],
17193
+ [
17194
+ "starsSubscription",
17195
+ [
17196
+ 0x538ECF18,
17197
+ [
17198
+ ["flags", exports.flags, "#"],
17199
+ ["canceled", "true", "flags.0?true"],
17200
+ ["can_refulfill", "true", "flags.1?true"],
17201
+ ["missing_balance", "true", "flags.2?true"],
17202
+ ["id", "string", "string"],
17203
+ ["peer", "Peer", "Peer"],
17204
+ ["until_date", "number", "int"],
17205
+ ["pricing", "StarsSubscriptionPricing", "StarsSubscriptionPricing"],
17206
+ ["chat_invite_hash", "string", "flags.3?string"],
17207
+ ],
17208
+ ],
17209
+ ],
17210
+ [
17211
+ "messageReactor",
17212
+ [
17213
+ 0x4BA3A95A,
17214
+ [
17215
+ ["flags", exports.flags, "#"],
17216
+ ["top", "true", "flags.0?true"],
17217
+ ["my", "true", "flags.1?true"],
17218
+ ["anonymous", "true", "flags.2?true"],
17219
+ ["peer_id", "Peer", "flags.3?Peer"],
17220
+ ["count", "number", "int"],
17221
+ ],
17222
+ ],
17223
+ ],
17196
17224
  [
17197
17225
  "req_pq_multi",
17198
17226
  [
@@ -17280,35 +17308,6 @@ const types = new Map([
17280
17308
  [],
17281
17309
  ],
17282
17310
  ],
17283
- [
17284
- "invokeWithBusinessConnectionPrefix",
17285
- [
17286
- 0xDD289F8E,
17287
- [
17288
- ["connection_id", "string", "string"],
17289
- ],
17290
- ],
17291
- ],
17292
- [
17293
- "invokeWithGooglePlayIntegrityPrefix",
17294
- [
17295
- 0x1DF92984,
17296
- [
17297
- ["nonce", "string", "string"],
17298
- ["token", "string", "string"],
17299
- ],
17300
- ],
17301
- ],
17302
- [
17303
- "invokeWithApnsSecretPrefix",
17304
- [
17305
- 0x0DAE54F8,
17306
- [
17307
- ["nonce", "string", "string"],
17308
- ["secret", "string", "string"],
17309
- ],
17310
- ],
17311
- ],
17312
17311
  [
17313
17312
  "invokeAfterMsg",
17314
17313
  [
@@ -19490,7 +19489,7 @@ const types = new Map([
19490
19489
  [
19491
19490
  "messages.exportChatInvite",
19492
19491
  [
19493
- 0xA02CE5D5,
19492
+ 0xA455DE90,
19494
19493
  [
19495
19494
  ["flags", exports.flags, "#"],
19496
19495
  ["legacy_revoke_permanent", "true", "flags.2?true"],
@@ -19499,6 +19498,7 @@ const types = new Map([
19499
19498
  ["expire_date", "number", "flags.0?int"],
19500
19499
  ["usage_limit", "number", "flags.1?int"],
19501
19500
  ["title", "string", "flags.4?string"],
19501
+ ["subscription_pricing", "StarsSubscriptionPricing", "flags.5?StarsSubscriptionPricing"],
19502
19502
  ],
19503
19503
  ],
19504
19504
  ],
@@ -20625,6 +20625,7 @@ const types = new Map([
20625
20625
  [
20626
20626
  ["flags", exports.flags, "#"],
20627
20627
  ["requested", "true", "flags.0?true"],
20628
+ ["subscription_expired", "true", "flags.3?true"],
20628
20629
  ["peer", "InputPeer", "InputPeer"],
20629
20630
  ["link", "string", "flags.1?string"],
20630
20631
  ["q", "string", "flags.2?string"],
@@ -20786,12 +20787,13 @@ const types = new Map([
20786
20787
  [
20787
20788
  "messages.setChatAvailableReactions",
20788
20789
  [
20789
- 0x5A150BD4,
20790
+ 0x864B2581,
20790
20791
  [
20791
20792
  ["flags", exports.flags, "#"],
20792
20793
  ["peer", "InputPeer", "InputPeer"],
20793
20794
  ["available_reactions", "ChatReactions", "ChatReactions"],
20794
20795
  ["reactions_limit", "number", "flags.0?int"],
20796
+ ["paid_enabled", "boolean", "flags.1?Bool"],
20795
20797
  ],
20796
20798
  ],
20797
20799
  ],
@@ -21471,6 +21473,31 @@ const types = new Map([
21471
21473
  ],
21472
21474
  ],
21473
21475
  ],
21476
+ [
21477
+ "messages.sendPaidReaction",
21478
+ [
21479
+ 0x25C8FE3E,
21480
+ [
21481
+ ["flags", exports.flags, "#"],
21482
+ ["private", "true", "flags.0?true"],
21483
+ ["peer", "InputPeer", "InputPeer"],
21484
+ ["msg_id", "number", "int"],
21485
+ ["count", "number", "int"],
21486
+ ["random_id", "bigint", "long"],
21487
+ ],
21488
+ ],
21489
+ ],
21490
+ [
21491
+ "messages.togglePaidReactionPrivacy",
21492
+ [
21493
+ 0x849AD397,
21494
+ [
21495
+ ["peer", "InputPeer", "InputPeer"],
21496
+ ["msg_id", "number", "int"],
21497
+ ["private", "boolean", "Bool"],
21498
+ ],
21499
+ ],
21500
+ ],
21474
21501
  [
21475
21502
  "updates.getState",
21476
21503
  [
@@ -22077,10 +22104,12 @@ const types = new Map([
22077
22104
  [
22078
22105
  "channels.toggleSignatures",
22079
22106
  [
22080
- 0x1F69B606,
22107
+ 0x418D549C,
22081
22108
  [
22109
+ ["flags", exports.flags, "#"],
22110
+ ["signatures_enabled", "true", "flags.0?true"],
22111
+ ["profiles_enabled", "true", "flags.1?true"],
22082
22112
  ["channel", "InputChannel", "InputChannel"],
22083
- ["enabled", "boolean", "Bool"],
22084
22113
  ],
22085
22114
  ],
22086
22115
  ],
@@ -22980,12 +23009,13 @@ const types = new Map([
22980
23009
  [
22981
23010
  "payments.getStarsTransactions",
22982
23011
  [
22983
- 0x97938D5A,
23012
+ 0x69DA4557,
22984
23013
  [
22985
23014
  ["flags", exports.flags, "#"],
22986
23015
  ["inbound", "true", "flags.0?true"],
22987
23016
  ["outbound", "true", "flags.1?true"],
22988
23017
  ["ascending", "true", "flags.2?true"],
23018
+ ["subscription_id", "string", "flags.3?string"],
22989
23019
  ["peer", "InputPeer", "InputPeer"],
22990
23020
  ["offset", "string", "string"],
22991
23021
  ["limit", "number", "int"],
@@ -23064,6 +23094,40 @@ const types = new Map([
23064
23094
  ],
23065
23095
  ],
23066
23096
  ],
23097
+ [
23098
+ "payments.getStarsSubscriptions",
23099
+ [
23100
+ 0x032512C5,
23101
+ [
23102
+ ["flags", exports.flags, "#"],
23103
+ ["missing_balance", "true", "flags.0?true"],
23104
+ ["peer", "InputPeer", "InputPeer"],
23105
+ ["offset", "string", "string"],
23106
+ ],
23107
+ ],
23108
+ ],
23109
+ [
23110
+ "payments.changeStarsSubscription",
23111
+ [
23112
+ 0xC7770878,
23113
+ [
23114
+ ["flags", exports.flags, "#"],
23115
+ ["peer", "InputPeer", "InputPeer"],
23116
+ ["subscription_id", "string", "string"],
23117
+ ["canceled", "boolean", "flags.0?Bool"],
23118
+ ],
23119
+ ],
23120
+ ],
23121
+ [
23122
+ "payments.fulfillStarsSubscription",
23123
+ [
23124
+ 0xCC5BEBB3,
23125
+ [
23126
+ ["peer", "InputPeer", "InputPeer"],
23127
+ ["subscription_id", "string", "string"],
23128
+ ],
23129
+ ],
23130
+ ],
23067
23131
  [
23068
23132
  "stickers.createStickerSet",
23069
23133
  [