@mtkruto/node 0.2.35 → 0.2.37
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.
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_params.d.ts +3 -1
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/3_message_manager.d.ts +2 -2
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +3 -3
- package/esm/client/4_chat_list_manager.js +1 -1
- package/esm/client/5_client.d.ts +2 -2
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +13 -8
- package/esm/tl/0_api.d.ts +123 -74
- package/esm/tl/0_api.d.ts.map +1 -1
- package/esm/tl/0_api.js +194 -130
- package/esm/types/0_reaction.d.ts +5 -1
- package/esm/types/0_reaction.d.ts.map +1 -1
- package/esm/types/0_reaction.js +4 -1
- package/esm/types/4_message.d.ts +1 -0
- package/esm/types/4_message.d.ts.map +1 -1
- package/esm/types/4_message.js +1 -0
- package/package.json +1 -1
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_params.d.ts +3 -1
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/3_message_manager.d.ts +2 -2
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +3 -3
- package/script/client/4_chat_list_manager.js +1 -1
- package/script/client/5_client.d.ts +2 -2
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +13 -8
- package/script/tl/0_api.d.ts +123 -74
- package/script/tl/0_api.d.ts.map +1 -1
- package/script/tl/0_api.js +194 -130
- package/script/types/0_reaction.d.ts +5 -1
- package/script/types/0_reaction.d.ts.map +1 -1
- package/script/types/0_reaction.js +4 -1
- package/script/types/4_message.d.ts +1 -0
- package/script/types/4_message.d.ts.map +1 -1
- package/script/types/4_message.js +1 -0
package/esm/tl/0_api.js
CHANGED
|
@@ -55,12 +55,7 @@ const map = new Map([
|
|
|
55
55
|
[0x9299359F, "http_wait"],
|
|
56
56
|
[0x3FEDD339, "true"],
|
|
57
57
|
[0xC4B9F9BB, "error"],
|
|
58
|
-
[
|
|
59
|
-
[0x37982646, "ipPortSecret"],
|
|
60
|
-
[0x4679B65F, "accessPointRule"],
|
|
61
|
-
[0x5A592A6C, "help.configSimple"],
|
|
62
|
-
[0x27D69997, "inputPeerPhotoFileLocationLegacy"],
|
|
63
|
-
[0x0DBAEAE9, "inputStickerSetThumbLegacy"],
|
|
58
|
+
[0x56730BCC, "null"],
|
|
64
59
|
[0x7F3B18EA, "inputPeerEmpty"],
|
|
65
60
|
[0x7DA07EC9, "inputPeerSelf"],
|
|
66
61
|
[0x35A95CB9, "inputPeerChat"],
|
|
@@ -137,7 +132,7 @@ const map = new Map([
|
|
|
137
132
|
[0x29562865, "chatEmpty"],
|
|
138
133
|
[0x41CBF256, "chat"],
|
|
139
134
|
[0x6592A1A7, "chatForbidden"],
|
|
140
|
-
[
|
|
135
|
+
[0xFE4478BD, "channel"],
|
|
141
136
|
[0x17D493D5, "channelForbidden"],
|
|
142
137
|
[0x2633421B, "chatFull"],
|
|
143
138
|
[0xBBAB348D, "channelFull"],
|
|
@@ -565,10 +560,10 @@ const map = new Map([
|
|
|
565
560
|
[0xC23727C9, "account.passwordInputSettings"],
|
|
566
561
|
[0x137948A5, "auth.passwordRecovery"],
|
|
567
562
|
[0xA384B779, "receivedNotifyMessage"],
|
|
568
|
-
[
|
|
563
|
+
[0xA22CBD96, "chatInviteExported"],
|
|
569
564
|
[0xED107AB7, "chatInvitePublicJoinRequests"],
|
|
570
565
|
[0x5A686D7C, "chatInviteAlready"],
|
|
571
|
-
[
|
|
566
|
+
[0xFE65389D, "chatInvite"],
|
|
572
567
|
[0x61695CB0, "chatInvitePeek"],
|
|
573
568
|
[0xFFB62B95, "inputStickerSetEmpty"],
|
|
574
569
|
[0x9DE7A269, "inputStickerSetID"],
|
|
@@ -585,7 +580,7 @@ const map = new Map([
|
|
|
585
580
|
[0x6E153F16, "messages.stickerSet"],
|
|
586
581
|
[0xD3F924EB, "messages.stickerSetNotModified"],
|
|
587
582
|
[0xC27AC8C7, "botCommand"],
|
|
588
|
-
[
|
|
583
|
+
[0x82437E74, "botInfo"],
|
|
589
584
|
[0xA2FA4880, "keyboardButton"],
|
|
590
585
|
[0x258AFF05, "keyboardButtonUrl"],
|
|
591
586
|
[0x35BBDB6B, "keyboardButtonCallback"],
|
|
@@ -639,8 +634,8 @@ const map = new Map([
|
|
|
639
634
|
[0x2064674E, "updates.channelDifference"],
|
|
640
635
|
[0x94D42EE7, "channelMessagesFilterEmpty"],
|
|
641
636
|
[0xCD77D957, "channelMessagesFilter"],
|
|
642
|
-
[
|
|
643
|
-
[
|
|
637
|
+
[0xCB397619, "channelParticipant"],
|
|
638
|
+
[0x4F607BEF, "channelParticipantSelf"],
|
|
644
639
|
[0x2FE601D3, "channelParticipantCreator"],
|
|
645
640
|
[0x34C3BB53, "channelParticipantAdmin"],
|
|
646
641
|
[0x6DF8014E, "channelParticipantBanned"],
|
|
@@ -886,6 +881,7 @@ const map = new Map([
|
|
|
886
881
|
[0x31BB5D52, "channelAdminLogEventActionChangeWallpaper"],
|
|
887
882
|
[0x3EA9FEB1, "channelAdminLogEventActionChangeEmojiStatus"],
|
|
888
883
|
[0x46D840AB, "channelAdminLogEventActionChangeEmojiStickerSet"],
|
|
884
|
+
[0x60A79C79, "channelAdminLogEventActionToggleSignatureProfiles"],
|
|
889
885
|
[0x1FAD68CD, "channelAdminLogEvent"],
|
|
890
886
|
[0xED8AF74D, "channels.adminLogResults"],
|
|
891
887
|
[0xEA107AE4, "channelAdminLogEventsFilter"],
|
|
@@ -1114,7 +1110,7 @@ const map = new Map([
|
|
|
1114
1110
|
[0xE3779861, "account.resetPasswordFailedWait"],
|
|
1115
1111
|
[0xE9EFFC7D, "account.resetPasswordRequestedWait"],
|
|
1116
1112
|
[0xE926D63E, "account.resetPasswordOk"],
|
|
1117
|
-
[
|
|
1113
|
+
[0x4D93A990, "sponsoredMessage"],
|
|
1118
1114
|
[0xC9EE1D87, "messages.sponsoredMessages"],
|
|
1119
1115
|
[0x1839490F, "messages.sponsoredMessagesEmpty"],
|
|
1120
1116
|
[0xC9B0539F, "searchResultsCalendarPeriod"],
|
|
@@ -1126,7 +1122,7 @@ const map = new Map([
|
|
|
1126
1122
|
[0x6880B94D, "messages.peerSettings"],
|
|
1127
1123
|
[0xC3A2835F, "auth.loggedOut"],
|
|
1128
1124
|
[0xA3D1CB80, "reactionCount"],
|
|
1129
|
-
[
|
|
1125
|
+
[0x0A339F0B, "messageReactions"],
|
|
1130
1126
|
[0x31BD492D, "messages.messageReactionsList"],
|
|
1131
1127
|
[0xC077EC01, "availableReaction"],
|
|
1132
1128
|
[0x9F071957, "messages.availableReactionsNotModified"],
|
|
@@ -1163,6 +1159,7 @@ const map = new Map([
|
|
|
1163
1159
|
[0xC326CAEF, "inputInvoiceSlug"],
|
|
1164
1160
|
[0x98986C0D, "inputInvoicePremiumGiftCode"],
|
|
1165
1161
|
[0x65F00CE3, "inputInvoiceStars"],
|
|
1162
|
+
[0x34E793F1, "inputInvoiceChatInviteSubscription"],
|
|
1166
1163
|
[0xAED0CBD9, "payments.exportedInvoice"],
|
|
1167
1164
|
[0xCFB9D957, "messages.transcribedAudio"],
|
|
1168
1165
|
[0x5334759C, "help.premiumPromo"],
|
|
@@ -1182,6 +1179,7 @@ const map = new Map([
|
|
|
1182
1179
|
[0x79F5D419, "reactionEmpty"],
|
|
1183
1180
|
[0x1B2286B8, "reactionEmoji"],
|
|
1184
1181
|
[0x8935FC73, "reactionCustomEmoji"],
|
|
1182
|
+
[0x523DA4EB, "reactionPaid"],
|
|
1185
1183
|
[0xEAFC32BC, "chatReactionsNone"],
|
|
1186
1184
|
[0x52928BCA, "chatReactionsAll"],
|
|
1187
1185
|
[0x661D4037, "chatReactionsSome"],
|
|
@@ -1377,8 +1375,8 @@ const map = new Map([
|
|
|
1377
1375
|
[0xD80DA15D, "starsTransactionPeer"],
|
|
1378
1376
|
[0x60682812, "starsTransactionPeerAds"],
|
|
1379
1377
|
[0x0BD915C0, "starsTopupOption"],
|
|
1380
|
-
[
|
|
1381
|
-
[
|
|
1378
|
+
[0x433AEB2B, "starsTransaction"],
|
|
1379
|
+
[0xBBFA316C, "payments.starsStatus"],
|
|
1382
1380
|
[0xE87ACBC0, "foundStory"],
|
|
1383
1381
|
[0xE2DE7737, "stories.foundStories"],
|
|
1384
1382
|
[0xDE4C5D93, "geoPointAddress"],
|
|
@@ -1391,6 +1389,9 @@ const map = new Map([
|
|
|
1391
1389
|
[0x1991B13B, "bots.popularAppBots"],
|
|
1392
1390
|
[0x23E91BA3, "botPreviewMedia"],
|
|
1393
1391
|
[0x0CA71D64, "bots.previewInfo"],
|
|
1392
|
+
[0x05416D58, "starsSubscriptionPricing"],
|
|
1393
|
+
[0x538ECF18, "starsSubscription"],
|
|
1394
|
+
[0x4BA3A95A, "messageReactor"],
|
|
1394
1395
|
]);
|
|
1395
1396
|
export const getTypeName = map.get.bind(map);
|
|
1396
1397
|
export const flags = Symbol();
|
|
@@ -1421,10 +1422,7 @@ const enums = new Map([
|
|
|
1421
1422
|
["HttpWait", ["http_wait"]],
|
|
1422
1423
|
["True", ["true"]],
|
|
1423
1424
|
["Error", ["error"]],
|
|
1424
|
-
["
|
|
1425
|
-
["AccessPointRule", ["accessPointRule"]],
|
|
1426
|
-
["help.ConfigSimple", ["help.configSimple"]],
|
|
1427
|
-
["InputFileLocation", ["inputPeerPhotoFileLocationLegacy", "inputStickerSetThumbLegacy", "inputFileLocation", "inputEncryptedFileLocation", "inputDocumentFileLocation", "inputSecureFileLocation", "inputTakeoutFileLocation", "inputPhotoFileLocation", "inputPhotoLegacyFileLocation", "inputPeerPhotoFileLocation", "inputStickerSetThumb", "inputGroupCallStream"]],
|
|
1425
|
+
["Null", ["null"]],
|
|
1428
1426
|
["InputPeer", ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]],
|
|
1429
1427
|
["InputUser", ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]],
|
|
1430
1428
|
["InputContact", ["inputPhoneContact"]],
|
|
@@ -1433,6 +1431,7 @@ const enums = new Map([
|
|
|
1433
1431
|
["InputChatPhoto", ["inputChatPhotoEmpty", "inputChatUploadedPhoto", "inputChatPhoto"]],
|
|
1434
1432
|
["InputGeoPoint", ["inputGeoPointEmpty", "inputGeoPoint"]],
|
|
1435
1433
|
["InputPhoto", ["inputPhotoEmpty", "inputPhoto"]],
|
|
1434
|
+
["InputFileLocation", ["inputFileLocation", "inputEncryptedFileLocation", "inputDocumentFileLocation", "inputSecureFileLocation", "inputTakeoutFileLocation", "inputPhotoFileLocation", "inputPhotoLegacyFileLocation", "inputPeerPhotoFileLocation", "inputStickerSetThumb", "inputGroupCallStream"]],
|
|
1436
1435
|
["Peer", ["peerUser", "peerChat", "peerChannel"]],
|
|
1437
1436
|
["storage.FileType", ["storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp"]],
|
|
1438
1437
|
["User", ["userEmpty", "user"]],
|
|
@@ -1791,6 +1790,7 @@ const enums = new Map([
|
|
|
1791
1790
|
"channelAdminLogEventActionChangeWallpaper",
|
|
1792
1791
|
"channelAdminLogEventActionChangeEmojiStatus",
|
|
1793
1792
|
"channelAdminLogEventActionChangeEmojiStickerSet",
|
|
1793
|
+
"channelAdminLogEventActionToggleSignatureProfiles",
|
|
1794
1794
|
]],
|
|
1795
1795
|
["ChannelAdminLogEvent", ["channelAdminLogEvent"]],
|
|
1796
1796
|
["channels.AdminLogResults", ["channels.adminLogResults"]],
|
|
@@ -1959,7 +1959,7 @@ const enums = new Map([
|
|
|
1959
1959
|
["NotificationSound", ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]],
|
|
1960
1960
|
["account.SavedRingtone", ["account.savedRingtone", "account.savedRingtoneConverted"]],
|
|
1961
1961
|
["AttachMenuPeerType", ["attachMenuPeerTypeSameBotPM", "attachMenuPeerTypeBotPM", "attachMenuPeerTypePM", "attachMenuPeerTypeChat", "attachMenuPeerTypeBroadcast"]],
|
|
1962
|
-
["InputInvoice", ["inputInvoiceMessage", "inputInvoiceSlug", "inputInvoicePremiumGiftCode", "inputInvoiceStars"]],
|
|
1962
|
+
["InputInvoice", ["inputInvoiceMessage", "inputInvoiceSlug", "inputInvoicePremiumGiftCode", "inputInvoiceStars", "inputInvoiceChatInviteSubscription"]],
|
|
1963
1963
|
["payments.ExportedInvoice", ["payments.exportedInvoice"]],
|
|
1964
1964
|
["messages.TranscribedAudio", ["messages.transcribedAudio"]],
|
|
1965
1965
|
["help.PremiumPromo", ["help.premiumPromo"]],
|
|
@@ -1968,7 +1968,7 @@ const enums = new Map([
|
|
|
1968
1968
|
["PaymentFormMethod", ["paymentFormMethod"]],
|
|
1969
1969
|
["EmojiStatus", ["emojiStatusEmpty", "emojiStatus", "emojiStatusUntil"]],
|
|
1970
1970
|
["account.EmojiStatuses", ["account.emojiStatusesNotModified", "account.emojiStatuses"]],
|
|
1971
|
-
["Reaction", ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji"]],
|
|
1971
|
+
["Reaction", ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]],
|
|
1972
1972
|
["ChatReactions", ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]],
|
|
1973
1973
|
["messages.Reactions", ["messages.reactionsNotModified", "messages.reactions"]],
|
|
1974
1974
|
["EmailVerifyPurpose", ["emailVerifyPurposeLoginSetup", "emailVerifyPurposeLoginChange", "emailVerifyPurposePassport"]],
|
|
@@ -2113,6 +2113,9 @@ const enums = new Map([
|
|
|
2113
2113
|
["bots.PopularAppBots", ["bots.popularAppBots"]],
|
|
2114
2114
|
["BotPreviewMedia", ["botPreviewMedia"]],
|
|
2115
2115
|
["bots.PreviewInfo", ["bots.previewInfo"]],
|
|
2116
|
+
["StarsSubscriptionPricing", ["starsSubscriptionPricing"]],
|
|
2117
|
+
["StarsSubscription", ["starsSubscription"]],
|
|
2118
|
+
["MessageReactor", ["messageReactor"]],
|
|
2116
2119
|
]);
|
|
2117
2120
|
const types = new Map([
|
|
2118
2121
|
[
|
|
@@ -2489,70 +2492,10 @@ const types = new Map([
|
|
|
2489
2492
|
],
|
|
2490
2493
|
],
|
|
2491
2494
|
[
|
|
2492
|
-
"
|
|
2495
|
+
"null",
|
|
2493
2496
|
[
|
|
2494
|
-
|
|
2495
|
-
[
|
|
2496
|
-
["ipv4", "number", "int"],
|
|
2497
|
-
["port", "number", "int"],
|
|
2498
|
-
],
|
|
2499
|
-
],
|
|
2500
|
-
],
|
|
2501
|
-
[
|
|
2502
|
-
"ipPortSecret",
|
|
2503
|
-
[
|
|
2504
|
-
0x37982646,
|
|
2505
|
-
[
|
|
2506
|
-
["ipv4", "number", "int"],
|
|
2507
|
-
["port", "number", "int"],
|
|
2508
|
-
["secret", Uint8Array, "bytes"],
|
|
2509
|
-
],
|
|
2510
|
-
],
|
|
2511
|
-
],
|
|
2512
|
-
[
|
|
2513
|
-
"accessPointRule",
|
|
2514
|
-
[
|
|
2515
|
-
0x4679B65F,
|
|
2516
|
-
[
|
|
2517
|
-
["phone_prefix_rules", "string", "string"],
|
|
2518
|
-
["dc_id", "number", "int"],
|
|
2519
|
-
["ips", ["IpPort"], "vector<IpPort>"],
|
|
2520
|
-
],
|
|
2521
|
-
],
|
|
2522
|
-
],
|
|
2523
|
-
[
|
|
2524
|
-
"help.configSimple",
|
|
2525
|
-
[
|
|
2526
|
-
0x5A592A6C,
|
|
2527
|
-
[
|
|
2528
|
-
["date", "number", "int"],
|
|
2529
|
-
["expires", "number", "int"],
|
|
2530
|
-
["rules", ["AccessPointRule"], "vector<AccessPointRule>"],
|
|
2531
|
-
],
|
|
2532
|
-
],
|
|
2533
|
-
],
|
|
2534
|
-
[
|
|
2535
|
-
"inputPeerPhotoFileLocationLegacy",
|
|
2536
|
-
[
|
|
2537
|
-
0x27D69997,
|
|
2538
|
-
[
|
|
2539
|
-
["flags", flags, "#"],
|
|
2540
|
-
["big", "true", "flags.0?true"],
|
|
2541
|
-
["peer", "InputPeer", "InputPeer"],
|
|
2542
|
-
["volume_id", "bigint", "long"],
|
|
2543
|
-
["local_id", "number", "int"],
|
|
2544
|
-
],
|
|
2545
|
-
],
|
|
2546
|
-
],
|
|
2547
|
-
[
|
|
2548
|
-
"inputStickerSetThumbLegacy",
|
|
2549
|
-
[
|
|
2550
|
-
0x0DBAEAE9,
|
|
2551
|
-
[
|
|
2552
|
-
["stickerset", "InputStickerSet", "InputStickerSet"],
|
|
2553
|
-
["volume_id", "bigint", "long"],
|
|
2554
|
-
["local_id", "number", "int"],
|
|
2555
|
-
],
|
|
2497
|
+
0x56730BCC,
|
|
2498
|
+
[],
|
|
2556
2499
|
],
|
|
2557
2500
|
],
|
|
2558
2501
|
[
|
|
@@ -3377,7 +3320,7 @@ const types = new Map([
|
|
|
3377
3320
|
[
|
|
3378
3321
|
"channel",
|
|
3379
3322
|
[
|
|
3380
|
-
|
|
3323
|
+
0xFE4478BD,
|
|
3381
3324
|
[
|
|
3382
3325
|
["flags", flags, "#"],
|
|
3383
3326
|
["creator", "true", "flags.0?true"],
|
|
@@ -3404,6 +3347,7 @@ const types = new Map([
|
|
|
3404
3347
|
["stories_hidden", "true", "flags2.1?true"],
|
|
3405
3348
|
["stories_hidden_min", "true", "flags2.2?true"],
|
|
3406
3349
|
["stories_unavailable", "true", "flags2.3?true"],
|
|
3350
|
+
["signature_profiles", "true", "flags2.12?true"],
|
|
3407
3351
|
["id", "bigint", "long"],
|
|
3408
3352
|
["access_hash", "bigint", "flags.13?long"],
|
|
3409
3353
|
["title", "string", "string"],
|
|
@@ -3421,6 +3365,7 @@ const types = new Map([
|
|
|
3421
3365
|
["profile_color", "PeerColor", "flags2.8?PeerColor"],
|
|
3422
3366
|
["emoji_status", "EmojiStatus", "flags2.9?EmojiStatus"],
|
|
3423
3367
|
["level", "number", "flags2.10?int"],
|
|
3368
|
+
["subscription_until_date", "number", "flags2.11?int"],
|
|
3424
3369
|
],
|
|
3425
3370
|
],
|
|
3426
3371
|
],
|
|
@@ -3493,6 +3438,7 @@ const types = new Map([
|
|
|
3493
3438
|
["can_view_revenue", "true", "flags2.12?true"],
|
|
3494
3439
|
["paid_media_allowed", "true", "flags2.14?true"],
|
|
3495
3440
|
["can_view_stars_revenue", "true", "flags2.15?true"],
|
|
3441
|
+
["paid_reactions_available", "true", "flags2.16?true"],
|
|
3496
3442
|
["id", "bigint", "long"],
|
|
3497
3443
|
["about", "string", "string"],
|
|
3498
3444
|
["participants_count", "number", "flags.0?int"],
|
|
@@ -8094,7 +8040,7 @@ const types = new Map([
|
|
|
8094
8040
|
[
|
|
8095
8041
|
"chatInviteExported",
|
|
8096
8042
|
[
|
|
8097
|
-
|
|
8043
|
+
0xA22CBD96,
|
|
8098
8044
|
[
|
|
8099
8045
|
["flags", flags, "#"],
|
|
8100
8046
|
["revoked", "true", "flags.0?true"],
|
|
@@ -8108,7 +8054,9 @@ const types = new Map([
|
|
|
8108
8054
|
["usage_limit", "number", "flags.2?int"],
|
|
8109
8055
|
["usage", "number", "flags.3?int"],
|
|
8110
8056
|
["requested", "number", "flags.7?int"],
|
|
8057
|
+
["subscription_expired", "number", "flags.10?int"],
|
|
8111
8058
|
["title", "string", "flags.8?string"],
|
|
8059
|
+
["subscription_pricing", "StarsSubscriptionPricing", "flags.9?StarsSubscriptionPricing"],
|
|
8112
8060
|
],
|
|
8113
8061
|
],
|
|
8114
8062
|
],
|
|
@@ -8131,7 +8079,7 @@ const types = new Map([
|
|
|
8131
8079
|
[
|
|
8132
8080
|
"chatInvite",
|
|
8133
8081
|
[
|
|
8134
|
-
|
|
8082
|
+
0xFE65389D,
|
|
8135
8083
|
[
|
|
8136
8084
|
["flags", flags, "#"],
|
|
8137
8085
|
["channel", "true", "flags.0?true"],
|
|
@@ -8142,12 +8090,15 @@ const types = new Map([
|
|
|
8142
8090
|
["verified", "true", "flags.7?true"],
|
|
8143
8091
|
["scam", "true", "flags.8?true"],
|
|
8144
8092
|
["fake", "true", "flags.9?true"],
|
|
8093
|
+
["can_refulfill_subscription", "true", "flags.11?true"],
|
|
8145
8094
|
["title", "string", "string"],
|
|
8146
8095
|
["about", "string", "flags.5?string"],
|
|
8147
8096
|
["photo", "Photo", "Photo"],
|
|
8148
8097
|
["participants_count", "number", "int"],
|
|
8149
8098
|
["participants", ["User"], "flags.4?Vector<User>"],
|
|
8150
8099
|
["color", "number", "int"],
|
|
8100
|
+
["subscription_pricing", "StarsSubscriptionPricing", "flags.10?StarsSubscriptionPricing"],
|
|
8101
|
+
["subscription_form_id", "bigint", "flags.12?long"],
|
|
8151
8102
|
],
|
|
8152
8103
|
],
|
|
8153
8104
|
],
|
|
@@ -8304,7 +8255,7 @@ const types = new Map([
|
|
|
8304
8255
|
[
|
|
8305
8256
|
"botInfo",
|
|
8306
8257
|
[
|
|
8307
|
-
|
|
8258
|
+
0x82437E74,
|
|
8308
8259
|
[
|
|
8309
8260
|
["flags", flags, "#"],
|
|
8310
8261
|
["has_preview_medias", "true", "flags.6?true"],
|
|
@@ -8314,6 +8265,7 @@ const types = new Map([
|
|
|
8314
8265
|
["description_document", "Document", "flags.5?Document"],
|
|
8315
8266
|
["commands", ["BotCommand"], "flags.2?Vector<BotCommand>"],
|
|
8316
8267
|
["menu_button", "BotMenuButton", "flags.3?BotMenuButton"],
|
|
8268
|
+
["privacy_policy_url", "string", "flags.7?string"],
|
|
8317
8269
|
],
|
|
8318
8270
|
],
|
|
8319
8271
|
],
|
|
@@ -8888,23 +8840,26 @@ const types = new Map([
|
|
|
8888
8840
|
[
|
|
8889
8841
|
"channelParticipant",
|
|
8890
8842
|
[
|
|
8891
|
-
|
|
8843
|
+
0xCB397619,
|
|
8892
8844
|
[
|
|
8845
|
+
["flags", flags, "#"],
|
|
8893
8846
|
["user_id", "bigint", "long"],
|
|
8894
8847
|
["date", "number", "int"],
|
|
8848
|
+
["subscription_until_date", "number", "flags.0?int"],
|
|
8895
8849
|
],
|
|
8896
8850
|
],
|
|
8897
8851
|
],
|
|
8898
8852
|
[
|
|
8899
8853
|
"channelParticipantSelf",
|
|
8900
8854
|
[
|
|
8901
|
-
|
|
8855
|
+
0x4F607BEF,
|
|
8902
8856
|
[
|
|
8903
8857
|
["flags", flags, "#"],
|
|
8904
8858
|
["via_request", "true", "flags.0?true"],
|
|
8905
8859
|
["user_id", "bigint", "long"],
|
|
8906
8860
|
["inviter_id", "bigint", "long"],
|
|
8907
8861
|
["date", "number", "int"],
|
|
8862
|
+
["subscription_until_date", "number", "flags.1?int"],
|
|
8908
8863
|
],
|
|
8909
8864
|
],
|
|
8910
8865
|
],
|
|
@@ -11571,6 +11526,15 @@ const types = new Map([
|
|
|
11571
11526
|
],
|
|
11572
11527
|
],
|
|
11573
11528
|
],
|
|
11529
|
+
[
|
|
11530
|
+
"channelAdminLogEventActionToggleSignatureProfiles",
|
|
11531
|
+
[
|
|
11532
|
+
0x60A79C79,
|
|
11533
|
+
[
|
|
11534
|
+
["new_value", "boolean", "Bool"],
|
|
11535
|
+
],
|
|
11536
|
+
],
|
|
11537
|
+
],
|
|
11574
11538
|
[
|
|
11575
11539
|
"channelAdminLogEvent",
|
|
11576
11540
|
[
|
|
@@ -14066,7 +14030,7 @@ const types = new Map([
|
|
|
14066
14030
|
[
|
|
14067
14031
|
"sponsoredMessage",
|
|
14068
14032
|
[
|
|
14069
|
-
|
|
14033
|
+
0x4D93A990,
|
|
14070
14034
|
[
|
|
14071
14035
|
["flags", flags, "#"],
|
|
14072
14036
|
["recommended", "true", "flags.5?true"],
|
|
@@ -14077,6 +14041,7 @@ const types = new Map([
|
|
|
14077
14041
|
["message", "string", "string"],
|
|
14078
14042
|
["entities", ["MessageEntity"], "flags.1?Vector<MessageEntity>"],
|
|
14079
14043
|
["photo", "Photo", "flags.6?Photo"],
|
|
14044
|
+
["media", "MessageMedia", "flags.14?MessageMedia"],
|
|
14080
14045
|
["color", "PeerColor", "flags.13?PeerColor"],
|
|
14081
14046
|
["button_text", "string", "string"],
|
|
14082
14047
|
["sponsor_info", "string", "flags.7?string"],
|
|
@@ -14213,7 +14178,7 @@ const types = new Map([
|
|
|
14213
14178
|
[
|
|
14214
14179
|
"messageReactions",
|
|
14215
14180
|
[
|
|
14216
|
-
|
|
14181
|
+
0x0A339F0B,
|
|
14217
14182
|
[
|
|
14218
14183
|
["flags", flags, "#"],
|
|
14219
14184
|
["min", "true", "flags.0?true"],
|
|
@@ -14221,6 +14186,7 @@ const types = new Map([
|
|
|
14221
14186
|
["reactions_as_tags", "true", "flags.3?true"],
|
|
14222
14187
|
["results", ["ReactionCount"], "Vector<ReactionCount>"],
|
|
14223
14188
|
["recent_reactions", ["MessagePeerReaction"], "flags.1?Vector<MessagePeerReaction>"],
|
|
14189
|
+
["top_reactors", ["MessageReactor"], "flags.4?Vector<MessageReactor>"],
|
|
14224
14190
|
],
|
|
14225
14191
|
],
|
|
14226
14192
|
],
|
|
@@ -14574,6 +14540,15 @@ const types = new Map([
|
|
|
14574
14540
|
],
|
|
14575
14541
|
],
|
|
14576
14542
|
],
|
|
14543
|
+
[
|
|
14544
|
+
"inputInvoiceChatInviteSubscription",
|
|
14545
|
+
[
|
|
14546
|
+
0x34E793F1,
|
|
14547
|
+
[
|
|
14548
|
+
["hash", "string", "string"],
|
|
14549
|
+
],
|
|
14550
|
+
],
|
|
14551
|
+
],
|
|
14577
14552
|
[
|
|
14578
14553
|
"payments.exportedInvoice",
|
|
14579
14554
|
[
|
|
@@ -14780,6 +14755,13 @@ const types = new Map([
|
|
|
14780
14755
|
],
|
|
14781
14756
|
],
|
|
14782
14757
|
],
|
|
14758
|
+
[
|
|
14759
|
+
"reactionPaid",
|
|
14760
|
+
[
|
|
14761
|
+
0x523DA4EB,
|
|
14762
|
+
[],
|
|
14763
|
+
],
|
|
14764
|
+
],
|
|
14783
14765
|
[
|
|
14784
14766
|
"chatReactionsNone",
|
|
14785
14767
|
[
|
|
@@ -16995,13 +16977,14 @@ const types = new Map([
|
|
|
16995
16977
|
[
|
|
16996
16978
|
"starsTransaction",
|
|
16997
16979
|
[
|
|
16998
|
-
|
|
16980
|
+
0x433AEB2B,
|
|
16999
16981
|
[
|
|
17000
16982
|
["flags", flags, "#"],
|
|
17001
16983
|
["refund", "true", "flags.3?true"],
|
|
17002
16984
|
["pending", "true", "flags.4?true"],
|
|
17003
16985
|
["failed", "true", "flags.6?true"],
|
|
17004
16986
|
["gift", "true", "flags.10?true"],
|
|
16987
|
+
["reaction", "true", "flags.11?true"],
|
|
17005
16988
|
["id", "string", "string"],
|
|
17006
16989
|
["stars", "bigint", "long"],
|
|
17007
16990
|
["date", "number", "int"],
|
|
@@ -17014,17 +16997,21 @@ const types = new Map([
|
|
|
17014
16997
|
["bot_payload", Uint8Array, "flags.7?bytes"],
|
|
17015
16998
|
["msg_id", "number", "flags.8?int"],
|
|
17016
16999
|
["extended_media", ["MessageMedia"], "flags.9?Vector<MessageMedia>"],
|
|
17000
|
+
["subscription_period", "number", "flags.12?int"],
|
|
17017
17001
|
],
|
|
17018
17002
|
],
|
|
17019
17003
|
],
|
|
17020
17004
|
[
|
|
17021
17005
|
"payments.starsStatus",
|
|
17022
17006
|
[
|
|
17023
|
-
|
|
17007
|
+
0xBBFA316C,
|
|
17024
17008
|
[
|
|
17025
17009
|
["flags", flags, "#"],
|
|
17026
17010
|
["balance", "bigint", "long"],
|
|
17027
|
-
["
|
|
17011
|
+
["subscriptions", ["StarsSubscription"], "flags.1?Vector<StarsSubscription>"],
|
|
17012
|
+
["subscriptions_next_offset", "string", "flags.2?string"],
|
|
17013
|
+
["subscriptions_missing_balance", "bigint", "flags.4?long"],
|
|
17014
|
+
["history", ["StarsTransaction"], "flags.3?Vector<StarsTransaction>"],
|
|
17028
17015
|
["next_offset", "string", "flags.0?string"],
|
|
17029
17016
|
["chats", ["Chat"], "Vector<Chat>"],
|
|
17030
17017
|
["users", ["User"], "Vector<User>"],
|
|
@@ -17167,6 +17154,47 @@ const types = new Map([
|
|
|
17167
17154
|
],
|
|
17168
17155
|
],
|
|
17169
17156
|
],
|
|
17157
|
+
[
|
|
17158
|
+
"starsSubscriptionPricing",
|
|
17159
|
+
[
|
|
17160
|
+
0x05416D58,
|
|
17161
|
+
[
|
|
17162
|
+
["period", "number", "int"],
|
|
17163
|
+
["amount", "bigint", "long"],
|
|
17164
|
+
],
|
|
17165
|
+
],
|
|
17166
|
+
],
|
|
17167
|
+
[
|
|
17168
|
+
"starsSubscription",
|
|
17169
|
+
[
|
|
17170
|
+
0x538ECF18,
|
|
17171
|
+
[
|
|
17172
|
+
["flags", flags, "#"],
|
|
17173
|
+
["canceled", "true", "flags.0?true"],
|
|
17174
|
+
["can_refulfill", "true", "flags.1?true"],
|
|
17175
|
+
["missing_balance", "true", "flags.2?true"],
|
|
17176
|
+
["id", "string", "string"],
|
|
17177
|
+
["peer", "Peer", "Peer"],
|
|
17178
|
+
["until_date", "number", "int"],
|
|
17179
|
+
["pricing", "StarsSubscriptionPricing", "StarsSubscriptionPricing"],
|
|
17180
|
+
["chat_invite_hash", "string", "flags.3?string"],
|
|
17181
|
+
],
|
|
17182
|
+
],
|
|
17183
|
+
],
|
|
17184
|
+
[
|
|
17185
|
+
"messageReactor",
|
|
17186
|
+
[
|
|
17187
|
+
0x4BA3A95A,
|
|
17188
|
+
[
|
|
17189
|
+
["flags", flags, "#"],
|
|
17190
|
+
["top", "true", "flags.0?true"],
|
|
17191
|
+
["my", "true", "flags.1?true"],
|
|
17192
|
+
["anonymous", "true", "flags.2?true"],
|
|
17193
|
+
["peer_id", "Peer", "flags.3?Peer"],
|
|
17194
|
+
["count", "number", "int"],
|
|
17195
|
+
],
|
|
17196
|
+
],
|
|
17197
|
+
],
|
|
17170
17198
|
[
|
|
17171
17199
|
"req_pq_multi",
|
|
17172
17200
|
[
|
|
@@ -17254,35 +17282,6 @@ const types = new Map([
|
|
|
17254
17282
|
[],
|
|
17255
17283
|
],
|
|
17256
17284
|
],
|
|
17257
|
-
[
|
|
17258
|
-
"invokeWithBusinessConnectionPrefix",
|
|
17259
|
-
[
|
|
17260
|
-
0xDD289F8E,
|
|
17261
|
-
[
|
|
17262
|
-
["connection_id", "string", "string"],
|
|
17263
|
-
],
|
|
17264
|
-
],
|
|
17265
|
-
],
|
|
17266
|
-
[
|
|
17267
|
-
"invokeWithGooglePlayIntegrityPrefix",
|
|
17268
|
-
[
|
|
17269
|
-
0x1DF92984,
|
|
17270
|
-
[
|
|
17271
|
-
["nonce", "string", "string"],
|
|
17272
|
-
["token", "string", "string"],
|
|
17273
|
-
],
|
|
17274
|
-
],
|
|
17275
|
-
],
|
|
17276
|
-
[
|
|
17277
|
-
"invokeWithApnsSecretPrefix",
|
|
17278
|
-
[
|
|
17279
|
-
0x0DAE54F8,
|
|
17280
|
-
[
|
|
17281
|
-
["nonce", "string", "string"],
|
|
17282
|
-
["secret", "string", "string"],
|
|
17283
|
-
],
|
|
17284
|
-
],
|
|
17285
|
-
],
|
|
17286
17285
|
[
|
|
17287
17286
|
"invokeAfterMsg",
|
|
17288
17287
|
[
|
|
@@ -19464,7 +19463,7 @@ const types = new Map([
|
|
|
19464
19463
|
[
|
|
19465
19464
|
"messages.exportChatInvite",
|
|
19466
19465
|
[
|
|
19467
|
-
|
|
19466
|
+
0xA455DE90,
|
|
19468
19467
|
[
|
|
19469
19468
|
["flags", flags, "#"],
|
|
19470
19469
|
["legacy_revoke_permanent", "true", "flags.2?true"],
|
|
@@ -19473,6 +19472,7 @@ const types = new Map([
|
|
|
19473
19472
|
["expire_date", "number", "flags.0?int"],
|
|
19474
19473
|
["usage_limit", "number", "flags.1?int"],
|
|
19475
19474
|
["title", "string", "flags.4?string"],
|
|
19475
|
+
["subscription_pricing", "StarsSubscriptionPricing", "flags.5?StarsSubscriptionPricing"],
|
|
19476
19476
|
],
|
|
19477
19477
|
],
|
|
19478
19478
|
],
|
|
@@ -20599,6 +20599,7 @@ const types = new Map([
|
|
|
20599
20599
|
[
|
|
20600
20600
|
["flags", flags, "#"],
|
|
20601
20601
|
["requested", "true", "flags.0?true"],
|
|
20602
|
+
["subscription_expired", "true", "flags.3?true"],
|
|
20602
20603
|
["peer", "InputPeer", "InputPeer"],
|
|
20603
20604
|
["link", "string", "flags.1?string"],
|
|
20604
20605
|
["q", "string", "flags.2?string"],
|
|
@@ -20760,12 +20761,13 @@ const types = new Map([
|
|
|
20760
20761
|
[
|
|
20761
20762
|
"messages.setChatAvailableReactions",
|
|
20762
20763
|
[
|
|
20763
|
-
|
|
20764
|
+
0x864B2581,
|
|
20764
20765
|
[
|
|
20765
20766
|
["flags", flags, "#"],
|
|
20766
20767
|
["peer", "InputPeer", "InputPeer"],
|
|
20767
20768
|
["available_reactions", "ChatReactions", "ChatReactions"],
|
|
20768
20769
|
["reactions_limit", "number", "flags.0?int"],
|
|
20770
|
+
["paid_enabled", "boolean", "flags.1?Bool"],
|
|
20769
20771
|
],
|
|
20770
20772
|
],
|
|
20771
20773
|
],
|
|
@@ -21445,6 +21447,31 @@ const types = new Map([
|
|
|
21445
21447
|
],
|
|
21446
21448
|
],
|
|
21447
21449
|
],
|
|
21450
|
+
[
|
|
21451
|
+
"messages.sendPaidReaction",
|
|
21452
|
+
[
|
|
21453
|
+
0x25C8FE3E,
|
|
21454
|
+
[
|
|
21455
|
+
["flags", flags, "#"],
|
|
21456
|
+
["private", "true", "flags.0?true"],
|
|
21457
|
+
["peer", "InputPeer", "InputPeer"],
|
|
21458
|
+
["msg_id", "number", "int"],
|
|
21459
|
+
["count", "number", "int"],
|
|
21460
|
+
["random_id", "bigint", "long"],
|
|
21461
|
+
],
|
|
21462
|
+
],
|
|
21463
|
+
],
|
|
21464
|
+
[
|
|
21465
|
+
"messages.togglePaidReactionPrivacy",
|
|
21466
|
+
[
|
|
21467
|
+
0x849AD397,
|
|
21468
|
+
[
|
|
21469
|
+
["peer", "InputPeer", "InputPeer"],
|
|
21470
|
+
["msg_id", "number", "int"],
|
|
21471
|
+
["private", "boolean", "Bool"],
|
|
21472
|
+
],
|
|
21473
|
+
],
|
|
21474
|
+
],
|
|
21448
21475
|
[
|
|
21449
21476
|
"updates.getState",
|
|
21450
21477
|
[
|
|
@@ -22051,10 +22078,12 @@ const types = new Map([
|
|
|
22051
22078
|
[
|
|
22052
22079
|
"channels.toggleSignatures",
|
|
22053
22080
|
[
|
|
22054
|
-
|
|
22081
|
+
0x418D549C,
|
|
22055
22082
|
[
|
|
22083
|
+
["flags", flags, "#"],
|
|
22084
|
+
["signatures_enabled", "true", "flags.0?true"],
|
|
22085
|
+
["profiles_enabled", "true", "flags.1?true"],
|
|
22056
22086
|
["channel", "InputChannel", "InputChannel"],
|
|
22057
|
-
["enabled", "boolean", "Bool"],
|
|
22058
22087
|
],
|
|
22059
22088
|
],
|
|
22060
22089
|
],
|
|
@@ -22954,12 +22983,13 @@ const types = new Map([
|
|
|
22954
22983
|
[
|
|
22955
22984
|
"payments.getStarsTransactions",
|
|
22956
22985
|
[
|
|
22957
|
-
|
|
22986
|
+
0x69DA4557,
|
|
22958
22987
|
[
|
|
22959
22988
|
["flags", flags, "#"],
|
|
22960
22989
|
["inbound", "true", "flags.0?true"],
|
|
22961
22990
|
["outbound", "true", "flags.1?true"],
|
|
22962
22991
|
["ascending", "true", "flags.2?true"],
|
|
22992
|
+
["subscription_id", "string", "flags.3?string"],
|
|
22963
22993
|
["peer", "InputPeer", "InputPeer"],
|
|
22964
22994
|
["offset", "string", "string"],
|
|
22965
22995
|
["limit", "number", "int"],
|
|
@@ -23038,6 +23068,40 @@ const types = new Map([
|
|
|
23038
23068
|
],
|
|
23039
23069
|
],
|
|
23040
23070
|
],
|
|
23071
|
+
[
|
|
23072
|
+
"payments.getStarsSubscriptions",
|
|
23073
|
+
[
|
|
23074
|
+
0x032512C5,
|
|
23075
|
+
[
|
|
23076
|
+
["flags", flags, "#"],
|
|
23077
|
+
["missing_balance", "true", "flags.0?true"],
|
|
23078
|
+
["peer", "InputPeer", "InputPeer"],
|
|
23079
|
+
["offset", "string", "string"],
|
|
23080
|
+
],
|
|
23081
|
+
],
|
|
23082
|
+
],
|
|
23083
|
+
[
|
|
23084
|
+
"payments.changeStarsSubscription",
|
|
23085
|
+
[
|
|
23086
|
+
0xC7770878,
|
|
23087
|
+
[
|
|
23088
|
+
["flags", flags, "#"],
|
|
23089
|
+
["peer", "InputPeer", "InputPeer"],
|
|
23090
|
+
["subscription_id", "string", "string"],
|
|
23091
|
+
["canceled", "boolean", "flags.0?Bool"],
|
|
23092
|
+
],
|
|
23093
|
+
],
|
|
23094
|
+
],
|
|
23095
|
+
[
|
|
23096
|
+
"payments.fulfillStarsSubscription",
|
|
23097
|
+
[
|
|
23098
|
+
0xCC5BEBB3,
|
|
23099
|
+
[
|
|
23100
|
+
["peer", "InputPeer", "InputPeer"],
|
|
23101
|
+
["subscription_id", "string", "string"],
|
|
23102
|
+
],
|
|
23103
|
+
],
|
|
23104
|
+
],
|
|
23041
23105
|
[
|
|
23042
23106
|
"stickers.createStickerSet",
|
|
23043
23107
|
[
|