@mtcute/core 0.29.6 → 0.29.7
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/client.cjs +8 -0
- package/client.js +8 -0
- package/highlevel/client.d.cts +19 -1
- package/highlevel/client.d.ts +19 -1
- package/highlevel/methods/bots/answer-bot-guest-chat-query.cjs +26 -0
- package/highlevel/methods/bots/answer-bot-guest-chat-query.d.cts +12 -0
- package/highlevel/methods/bots/answer-bot-guest-chat-query.d.ts +12 -0
- package/highlevel/methods/bots/answer-bot-guest-chat-query.js +21 -0
- package/highlevel/methods/messages/send-copy-group.cjs +5 -9
- package/highlevel/methods/messages/send-copy-group.js +5 -9
- package/highlevel/methods.d.cts +1 -0
- package/highlevel/methods.d.ts +1 -0
- package/highlevel/storage/service/peers.cjs +1 -0
- package/highlevel/storage/service/peers.js +1 -0
- package/highlevel/types/media/poll.cjs +14 -0
- package/highlevel/types/media/poll.d.cts +6 -0
- package/highlevel/types/media/poll.d.ts +6 -0
- package/highlevel/types/media/poll.js +14 -0
- package/highlevel/types/messages/message.cjs +10 -1
- package/highlevel/types/messages/message.d.cts +5 -0
- package/highlevel/types/messages/message.d.ts +5 -0
- package/highlevel/types/messages/message.js +10 -1
- package/highlevel/types/peers/chat-permissions.cjs +6 -0
- package/highlevel/types/peers/chat-permissions.d.cts +4 -0
- package/highlevel/types/peers/chat-permissions.d.ts +4 -0
- package/highlevel/types/peers/chat-permissions.js +6 -0
- package/highlevel/types/peers/user.cjs +4 -0
- package/highlevel/types/peers/user.d.cts +2 -0
- package/highlevel/types/peers/user.d.ts +2 -0
- package/highlevel/types/peers/user.js +4 -0
- package/highlevel/types/updates/bot-guest-chat-query.cjs +39 -0
- package/highlevel/types/updates/bot-guest-chat-query.d.cts +21 -0
- package/highlevel/types/updates/bot-guest-chat-query.d.ts +21 -0
- package/highlevel/types/updates/bot-guest-chat-query.js +34 -0
- package/highlevel/types/updates/index.d.cts +5 -1
- package/highlevel/types/updates/index.d.ts +5 -1
- package/highlevel/types/updates/parse-update.cjs +3 -0
- package/highlevel/types/updates/parse-update.js +3 -0
- package/highlevel/updates/manager.cjs +23 -3
- package/highlevel/updates/manager.d.cts +1 -0
- package/highlevel/updates/manager.d.ts +1 -0
- package/highlevel/updates/manager.js +23 -3
- package/index.cjs +2 -0
- package/index.js +2 -0
- package/methods.cjs +2 -0
- package/methods.js +2 -0
- package/network/network-manager.cjs +1 -1
- package/network/network-manager.js +1 -1
- package/package.json +1 -1
- package/tl/api-schema.json +1 -1
- package/tl/binary/reader.cjs +85 -40
- package/tl/binary/reader.js +85 -40
- package/tl/binary/writer.cjs +349 -143
- package/tl/binary/writer.js +349 -143
- package/tl/compat/reader.cjs +8 -0
- package/tl/compat/reader.js +8 -0
- package/tl/index.d.cts +2071 -179
- package/tl/index.d.ts +2071 -179
- package/tl/inner-tl.cjs +17 -5
- package/tl/inner-tl.js +17 -5
- package/utils/binary/compat.cjs +5 -0
- package/utils/binary/compat.js +5 -0
package/tl/binary/writer.cjs
CHANGED
|
@@ -568,6 +568,7 @@ var m = {
|
|
|
568
568
|
if (v.botForumView === true) flags2 |= 65536;
|
|
569
569
|
if (v.botForumCanManageTopics === true) flags2 |= 131072;
|
|
570
570
|
if (v.botCanManageBots === true) flags2 |= 262144;
|
|
571
|
+
if (v.botGuestchat === true) flags2 |= 524288;
|
|
571
572
|
w.uint(flags2);
|
|
572
573
|
w.int53(h(v, "id"));
|
|
573
574
|
if (_accessHash) w.long(v.accessHash);
|
|
@@ -1039,7 +1040,7 @@ var m = {
|
|
|
1039
1040
|
if (_peerId) w.object(v.peerId);
|
|
1040
1041
|
},
|
|
1041
1042
|
"message": function(w, v) {
|
|
1042
|
-
w.uint(
|
|
1043
|
+
w.uint(2515496747);
|
|
1043
1044
|
var flags = 0;
|
|
1044
1045
|
if (v.out === true) flags |= 2;
|
|
1045
1046
|
var _fwdFrom = v.fwdFrom !== void 0;
|
|
@@ -1114,6 +1115,8 @@ var m = {
|
|
|
1114
1115
|
if (_summaryFromLanguage) flags2 |= 2048;
|
|
1115
1116
|
var _fromRank = v.fromRank !== void 0;
|
|
1116
1117
|
if (_fromRank) flags2 |= 4096;
|
|
1118
|
+
var _guestchatViaFrom = v.guestchatViaFrom !== void 0;
|
|
1119
|
+
if (_guestchatViaFrom) flags2 |= 524288;
|
|
1117
1120
|
w.uint(flags2);
|
|
1118
1121
|
w.int(h(v, "id"));
|
|
1119
1122
|
if (_fromId) w.object(v.fromId);
|
|
@@ -1124,6 +1127,7 @@ var m = {
|
|
|
1124
1127
|
if (_fwdFrom) w.object(v.fwdFrom);
|
|
1125
1128
|
if (_viaBotId) w.int53(v.viaBotId);
|
|
1126
1129
|
if (_viaBusinessBotId) w.int53(v.viaBusinessBotId);
|
|
1130
|
+
if (_guestchatViaFrom) w.object(v.guestchatViaFrom);
|
|
1127
1131
|
if (_replyTo) w.object(v.replyTo);
|
|
1128
1132
|
w.int(h(v, "date"));
|
|
1129
1133
|
w.string(h(v, "message"));
|
|
@@ -1941,6 +1945,18 @@ var m = {
|
|
|
1941
1945
|
w.boolean(h(v, "prevValue"));
|
|
1942
1946
|
w.boolean(h(v, "newValue"));
|
|
1943
1947
|
},
|
|
1948
|
+
"messageActionPollAppendAnswer": function(w, v) {
|
|
1949
|
+
w.uint(2644626796);
|
|
1950
|
+
w.object(h(v, "answer"));
|
|
1951
|
+
},
|
|
1952
|
+
"messageActionPollDeleteAnswer": function(w, v) {
|
|
1953
|
+
w.uint(966161628);
|
|
1954
|
+
w.object(h(v, "answer"));
|
|
1955
|
+
},
|
|
1956
|
+
"messageActionManagedBotCreated": function(w, v) {
|
|
1957
|
+
w.uint(375414334);
|
|
1958
|
+
w.int53(h(v, "botId"));
|
|
1959
|
+
},
|
|
1944
1960
|
"dialog": function(w, v) {
|
|
1945
1961
|
w.uint(4236900339);
|
|
1946
1962
|
var flags = 0;
|
|
@@ -2069,11 +2085,12 @@ var m = {
|
|
|
2069
2085
|
w.object(h(v, "authorization"));
|
|
2070
2086
|
},
|
|
2071
2087
|
"auth.sentCodePaymentRequired": function(w, v) {
|
|
2072
|
-
w.uint(
|
|
2088
|
+
w.uint(4169301695);
|
|
2073
2089
|
w.string(h(v, "storeProduct"));
|
|
2074
2090
|
w.string(h(v, "phoneCodeHash"));
|
|
2075
2091
|
w.string(h(v, "supportEmailAddress"));
|
|
2076
2092
|
w.string(h(v, "supportEmailSubject"));
|
|
2093
|
+
w.int(h(v, "premiumDays"));
|
|
2077
2094
|
w.string(h(v, "currency"));
|
|
2078
2095
|
w.long(h(v, "amount"));
|
|
2079
2096
|
},
|
|
@@ -2608,6 +2625,9 @@ var m = {
|
|
|
2608
2625
|
"inputMessagesFilterPinned": function(w) {
|
|
2609
2626
|
w.uint(464520273);
|
|
2610
2627
|
},
|
|
2628
|
+
"inputMessagesFilterPoll": function(w) {
|
|
2629
|
+
w.uint(4197173514);
|
|
2630
|
+
},
|
|
2611
2631
|
"updateNewMessage": function(w, v) {
|
|
2612
2632
|
w.uint(522914557);
|
|
2613
2633
|
w.object(h(v, "message"));
|
|
@@ -3667,6 +3687,26 @@ var m = {
|
|
|
3667
3687
|
w.string(h(v, "rank"));
|
|
3668
3688
|
w.int(h(v, "version"));
|
|
3669
3689
|
},
|
|
3690
|
+
"updateManagedBot": function(w, v) {
|
|
3691
|
+
w.uint(1216408986);
|
|
3692
|
+
w.int53(h(v, "userId"));
|
|
3693
|
+
w.int53(h(v, "botId"));
|
|
3694
|
+
w.int(h(v, "qts"));
|
|
3695
|
+
},
|
|
3696
|
+
"updateBotGuestChatQuery": function(w, v) {
|
|
3697
|
+
w.uint(3453225277);
|
|
3698
|
+
var flags = 0;
|
|
3699
|
+
var _referenceMessages = v.referenceMessages && v.referenceMessages.length;
|
|
3700
|
+
if (_referenceMessages) flags |= 1;
|
|
3701
|
+
w.uint(flags);
|
|
3702
|
+
w.long(h(v, "queryId"));
|
|
3703
|
+
w.object(h(v, "message"));
|
|
3704
|
+
if (_referenceMessages) w.vector(w.object, v.referenceMessages);
|
|
3705
|
+
w.int(h(v, "qts"));
|
|
3706
|
+
},
|
|
3707
|
+
"updateAiComposeTones": function(w) {
|
|
3708
|
+
w.uint(2349830651);
|
|
3709
|
+
},
|
|
3670
3710
|
"updates.state": function(w, v) {
|
|
3671
3711
|
w.uint(2775329342);
|
|
3672
3712
|
w.int(h(v, "pts"));
|
|
@@ -5215,6 +5255,22 @@ var m = {
|
|
|
5215
5255
|
w.int(h(v, "length"));
|
|
5216
5256
|
w.int(h(v, "date"));
|
|
5217
5257
|
},
|
|
5258
|
+
"messageEntityDiffInsert": function(w, v) {
|
|
5259
|
+
w.uint(1903653142);
|
|
5260
|
+
w.int(h(v, "offset"));
|
|
5261
|
+
w.int(h(v, "length"));
|
|
5262
|
+
},
|
|
5263
|
+
"messageEntityDiffReplace": function(w, v) {
|
|
5264
|
+
w.uint(3334596007);
|
|
5265
|
+
w.int(h(v, "offset"));
|
|
5266
|
+
w.int(h(v, "length"));
|
|
5267
|
+
w.string(h(v, "oldText"));
|
|
5268
|
+
},
|
|
5269
|
+
"messageEntityDiffDelete": function(w, v) {
|
|
5270
|
+
w.uint(106086853);
|
|
5271
|
+
w.int(h(v, "offset"));
|
|
5272
|
+
w.int(h(v, "length"));
|
|
5273
|
+
},
|
|
5218
5274
|
"inputChannelEmpty": function(w) {
|
|
5219
5275
|
w.uint(4002160262);
|
|
5220
5276
|
},
|
|
@@ -5985,6 +6041,9 @@ var m = {
|
|
|
5985
6041
|
"topPeerCategoryBotsApp": function(w) {
|
|
5986
6042
|
w.uint(4255022060);
|
|
5987
6043
|
},
|
|
6044
|
+
"topPeerCategoryBotsGuestChat": function(w) {
|
|
6045
|
+
w.uint(1814361053);
|
|
6046
|
+
},
|
|
5988
6047
|
"topPeerCategoryPeers": function(w, v) {
|
|
5989
6048
|
w.uint(4219683473);
|
|
5990
6049
|
w.object(h(v, "category"));
|
|
@@ -7758,8 +7817,17 @@ var m = {
|
|
|
7758
7817
|
if (_flags_1) w.object(v.addedBy);
|
|
7759
7818
|
if (_flags_1) w.int(v.date);
|
|
7760
7819
|
},
|
|
7820
|
+
"inputPollAnswer": function(w, v) {
|
|
7821
|
+
w.uint(429911446);
|
|
7822
|
+
var flags = 0;
|
|
7823
|
+
var _media = v.media !== void 0;
|
|
7824
|
+
if (_media) flags |= 1;
|
|
7825
|
+
w.uint(flags);
|
|
7826
|
+
w.object(h(v, "text"));
|
|
7827
|
+
if (_media) w.object(v.media);
|
|
7828
|
+
},
|
|
7761
7829
|
"poll": function(w, v) {
|
|
7762
|
-
w.uint(
|
|
7830
|
+
w.uint(2523803071);
|
|
7763
7831
|
w.long(h(v, "id"));
|
|
7764
7832
|
var flags = 0;
|
|
7765
7833
|
if (v.closed === true) flags |= 1;
|
|
@@ -7775,11 +7843,15 @@ var m = {
|
|
|
7775
7843
|
if (v.shuffleAnswers === true) flags |= 256;
|
|
7776
7844
|
if (v.hideResultsUntilClose === true) flags |= 512;
|
|
7777
7845
|
if (v.creator === true) flags |= 1024;
|
|
7846
|
+
if (v.subscribersOnly === true) flags |= 2048;
|
|
7847
|
+
var _countriesIso2 = v.countriesIso2 && v.countriesIso2.length;
|
|
7848
|
+
if (_countriesIso2) flags |= 4096;
|
|
7778
7849
|
w.uint(flags);
|
|
7779
7850
|
w.object(h(v, "question"));
|
|
7780
7851
|
w.vector(w.object, h(v, "answers"));
|
|
7781
7852
|
if (_closePeriod) w.int(v.closePeriod);
|
|
7782
7853
|
if (_closeDate) w.int(v.closeDate);
|
|
7854
|
+
if (_countriesIso2) w.vector(w.string, v.countriesIso2);
|
|
7783
7855
|
w.long(h(v, "hash"));
|
|
7784
7856
|
},
|
|
7785
7857
|
"pollAnswerVoters": function(w, v) {
|
|
@@ -7813,6 +7885,7 @@ var m = {
|
|
|
7813
7885
|
var _solutionMedia = v.solutionMedia !== void 0;
|
|
7814
7886
|
if (_solutionMedia) flags |= 32;
|
|
7815
7887
|
if (v.hasUnreadVotes === true) flags |= 64;
|
|
7888
|
+
if (v.canViewStats === true) flags |= 128;
|
|
7816
7889
|
w.uint(flags);
|
|
7817
7890
|
if (_results) w.vector(w.object, v.results);
|
|
7818
7891
|
if (_totalVoters) w.int(v.totalVoters);
|
|
@@ -7875,6 +7948,7 @@ var m = {
|
|
|
7875
7948
|
if (v.sendDocs === true) flags |= 16777216;
|
|
7876
7949
|
if (v.sendPlain === true) flags |= 33554432;
|
|
7877
7950
|
if (v.editRank === true) flags |= 67108864;
|
|
7951
|
+
if (v.sendReactions === true) flags |= 134217728;
|
|
7878
7952
|
w.uint(flags);
|
|
7879
7953
|
w.int(h(v, "untilDate"));
|
|
7880
7954
|
},
|
|
@@ -8252,6 +8326,10 @@ var m = {
|
|
|
8252
8326
|
w.object(h(v, "gift"));
|
|
8253
8327
|
w.int(h(v, "endDate"));
|
|
8254
8328
|
},
|
|
8329
|
+
"webPageAttributeAiComposeTone": function(w, v) {
|
|
8330
|
+
w.uint(2005007896);
|
|
8331
|
+
w.long(h(v, "emojiId"));
|
|
8332
|
+
},
|
|
8255
8333
|
"messages.votesList": function(w, v) {
|
|
8256
8334
|
w.uint(1218005070);
|
|
8257
8335
|
var flags = 0;
|
|
@@ -9475,12 +9553,13 @@ var m = {
|
|
|
9475
9553
|
w.int(h(v, "users"));
|
|
9476
9554
|
},
|
|
9477
9555
|
"inputStorePaymentAuthCode": function(w, v) {
|
|
9478
|
-
w.uint(
|
|
9556
|
+
w.uint(1069645911);
|
|
9479
9557
|
var flags = 0;
|
|
9480
9558
|
if (v.restore === true) flags |= 1;
|
|
9481
9559
|
w.uint(flags);
|
|
9482
9560
|
w.string(h(v, "phoneNumber"));
|
|
9483
9561
|
w.string(h(v, "phoneCodeHash"));
|
|
9562
|
+
w.int(h(v, "premiumDays"));
|
|
9484
9563
|
w.string(h(v, "currency"));
|
|
9485
9564
|
w.long(h(v, "amount"));
|
|
9486
9565
|
},
|
|
@@ -9761,6 +9840,18 @@ var m = {
|
|
|
9761
9840
|
if (_userAdminRights) w.object(v.userAdminRights);
|
|
9762
9841
|
if (_botAdminRights) w.object(v.botAdminRights);
|
|
9763
9842
|
},
|
|
9843
|
+
"requestPeerTypeCreateBot": function(w, v) {
|
|
9844
|
+
w.uint(1048699e3);
|
|
9845
|
+
var flags = 0;
|
|
9846
|
+
if (v.botManaged === true) flags |= 1;
|
|
9847
|
+
var _suggestedName = v.suggestedName !== void 0;
|
|
9848
|
+
if (_suggestedName) flags |= 2;
|
|
9849
|
+
var _suggestedUsername = v.suggestedUsername !== void 0;
|
|
9850
|
+
if (_suggestedUsername) flags |= 4;
|
|
9851
|
+
w.uint(flags);
|
|
9852
|
+
if (_suggestedName) w.string(v.suggestedName);
|
|
9853
|
+
if (_suggestedUsername) w.string(v.suggestedUsername);
|
|
9854
|
+
},
|
|
9764
9855
|
"emojiListNotModified": function(w) {
|
|
9765
9856
|
w.uint(1209970170);
|
|
9766
9857
|
},
|
|
@@ -12436,64 +12527,6 @@ var m = {
|
|
|
12436
12527
|
w.uint(flags);
|
|
12437
12528
|
if (_icon) w.long(v.icon);
|
|
12438
12529
|
},
|
|
12439
|
-
"messageActionPollAppendAnswer": function(w, v) {
|
|
12440
|
-
w.uint(2644626796);
|
|
12441
|
-
w.object(h(v, "answer"));
|
|
12442
|
-
},
|
|
12443
|
-
"messageActionPollDeleteAnswer": function(w, v) {
|
|
12444
|
-
w.uint(966161628);
|
|
12445
|
-
w.object(h(v, "answer"));
|
|
12446
|
-
},
|
|
12447
|
-
"messageActionManagedBotCreated": function(w, v) {
|
|
12448
|
-
w.uint(375414334);
|
|
12449
|
-
w.int53(h(v, "botId"));
|
|
12450
|
-
},
|
|
12451
|
-
"inputMessagesFilterPoll": function(w) {
|
|
12452
|
-
w.uint(4197173514);
|
|
12453
|
-
},
|
|
12454
|
-
"updateManagedBot": function(w, v) {
|
|
12455
|
-
w.uint(1216408986);
|
|
12456
|
-
w.int53(h(v, "userId"));
|
|
12457
|
-
w.int53(h(v, "botId"));
|
|
12458
|
-
w.int(h(v, "qts"));
|
|
12459
|
-
},
|
|
12460
|
-
"messageEntityDiffInsert": function(w, v) {
|
|
12461
|
-
w.uint(1903653142);
|
|
12462
|
-
w.int(h(v, "offset"));
|
|
12463
|
-
w.int(h(v, "length"));
|
|
12464
|
-
},
|
|
12465
|
-
"messageEntityDiffReplace": function(w, v) {
|
|
12466
|
-
w.uint(3334596007);
|
|
12467
|
-
w.int(h(v, "offset"));
|
|
12468
|
-
w.int(h(v, "length"));
|
|
12469
|
-
w.string(h(v, "oldText"));
|
|
12470
|
-
},
|
|
12471
|
-
"messageEntityDiffDelete": function(w, v) {
|
|
12472
|
-
w.uint(106086853);
|
|
12473
|
-
w.int(h(v, "offset"));
|
|
12474
|
-
w.int(h(v, "length"));
|
|
12475
|
-
},
|
|
12476
|
-
"inputPollAnswer": function(w, v) {
|
|
12477
|
-
w.uint(429911446);
|
|
12478
|
-
var flags = 0;
|
|
12479
|
-
var _media = v.media !== void 0;
|
|
12480
|
-
if (_media) flags |= 1;
|
|
12481
|
-
w.uint(flags);
|
|
12482
|
-
w.object(h(v, "text"));
|
|
12483
|
-
if (_media) w.object(v.media);
|
|
12484
|
-
},
|
|
12485
|
-
"requestPeerTypeCreateBot": function(w, v) {
|
|
12486
|
-
w.uint(1048699e3);
|
|
12487
|
-
var flags = 0;
|
|
12488
|
-
if (v.botManaged === true) flags |= 1;
|
|
12489
|
-
var _suggestedName = v.suggestedName !== void 0;
|
|
12490
|
-
if (_suggestedName) flags |= 2;
|
|
12491
|
-
var _suggestedUsername = v.suggestedUsername !== void 0;
|
|
12492
|
-
if (_suggestedUsername) flags |= 4;
|
|
12493
|
-
w.uint(flags);
|
|
12494
|
-
if (_suggestedName) w.string(v.suggestedName);
|
|
12495
|
-
if (_suggestedUsername) w.string(v.suggestedUsername);
|
|
12496
|
-
},
|
|
12497
12530
|
"inputMessageReadMetric": function(w, v) {
|
|
12498
12531
|
w.uint(1076577429);
|
|
12499
12532
|
w.int(h(v, "msgId"));
|
|
@@ -12520,6 +12553,77 @@ var m = {
|
|
|
12520
12553
|
w.object(h(v, "resultText"));
|
|
12521
12554
|
if (_diffText) w.object(v.diffText);
|
|
12522
12555
|
},
|
|
12556
|
+
"stats.pollStats": function(w, v) {
|
|
12557
|
+
w.uint(697941741);
|
|
12558
|
+
w.object(h(v, "votesGraph"));
|
|
12559
|
+
},
|
|
12560
|
+
"inputAiComposeToneDefault": function(w, v) {
|
|
12561
|
+
w.uint(535407039);
|
|
12562
|
+
w.string(h(v, "tone"));
|
|
12563
|
+
},
|
|
12564
|
+
"inputAiComposeToneID": function(w, v) {
|
|
12565
|
+
w.uint(125026432);
|
|
12566
|
+
w.long(h(v, "id"));
|
|
12567
|
+
w.long(h(v, "accessHash"));
|
|
12568
|
+
},
|
|
12569
|
+
"inputAiComposeToneSlug": function(w, v) {
|
|
12570
|
+
w.uint(530584407);
|
|
12571
|
+
w.string(h(v, "slug"));
|
|
12572
|
+
},
|
|
12573
|
+
"aiComposeTone": function(w, v) {
|
|
12574
|
+
w.uint(3489021609);
|
|
12575
|
+
var flags = 0;
|
|
12576
|
+
if (v.creator === true) flags |= 1;
|
|
12577
|
+
var _emojiId = v.emojiId !== void 0;
|
|
12578
|
+
if (_emojiId) flags |= 2;
|
|
12579
|
+
var _installsCount = v.installsCount !== void 0;
|
|
12580
|
+
if (_installsCount) flags |= 4;
|
|
12581
|
+
var _authorId = v.authorId !== void 0;
|
|
12582
|
+
if (_authorId) flags |= 8;
|
|
12583
|
+
var _prompt = v.prompt !== void 0;
|
|
12584
|
+
if (_prompt) flags |= 16;
|
|
12585
|
+
var _exampleEnglish = v.exampleEnglish !== void 0;
|
|
12586
|
+
if (_exampleEnglish) flags |= 32;
|
|
12587
|
+
w.uint(flags);
|
|
12588
|
+
w.long(h(v, "id"));
|
|
12589
|
+
w.long(h(v, "accessHash"));
|
|
12590
|
+
w.string(h(v, "slug"));
|
|
12591
|
+
w.string(h(v, "title"));
|
|
12592
|
+
if (_emojiId) w.long(v.emojiId);
|
|
12593
|
+
if (_prompt) w.string(v.prompt);
|
|
12594
|
+
if (_installsCount) w.int(v.installsCount);
|
|
12595
|
+
if (_authorId) w.int53(v.authorId);
|
|
12596
|
+
if (_exampleEnglish) w.object(v.exampleEnglish);
|
|
12597
|
+
},
|
|
12598
|
+
"aiComposeToneDefault": function(w, v) {
|
|
12599
|
+
w.uint(2611831828);
|
|
12600
|
+
w.string(h(v, "tone"));
|
|
12601
|
+
w.long(h(v, "emojiId"));
|
|
12602
|
+
w.string(h(v, "title"));
|
|
12603
|
+
},
|
|
12604
|
+
"aicompose.tonesNotModified": function(w) {
|
|
12605
|
+
w.uint(3254018307);
|
|
12606
|
+
},
|
|
12607
|
+
"aicompose.tones": function(w, v) {
|
|
12608
|
+
w.uint(1822232318);
|
|
12609
|
+
w.long(h(v, "hash"));
|
|
12610
|
+
w.vector(w.object, h(v, "tones"));
|
|
12611
|
+
w.vector(w.object, h(v, "users"));
|
|
12612
|
+
},
|
|
12613
|
+
"aiComposeToneExample": function(w, v) {
|
|
12614
|
+
w.uint(4057344236);
|
|
12615
|
+
w.object(h(v, "from"));
|
|
12616
|
+
w.object(h(v, "to"));
|
|
12617
|
+
},
|
|
12618
|
+
"bots.accessSettings": function(w, v) {
|
|
12619
|
+
w.uint(3709845395);
|
|
12620
|
+
var flags = 0;
|
|
12621
|
+
if (v.restricted === true) flags |= 1;
|
|
12622
|
+
var _addUsers = v.addUsers && v.addUsers.length;
|
|
12623
|
+
if (_addUsers) flags |= 2;
|
|
12624
|
+
w.uint(flags);
|
|
12625
|
+
if (_addUsers) w.vector(w.object, v.addUsers);
|
|
12626
|
+
},
|
|
12523
12627
|
"updateChannelPinnedTopic": function(w, v) {
|
|
12524
12628
|
w.uint(422509539);
|
|
12525
12629
|
var flags = 0;
|
|
@@ -13557,6 +13661,7 @@ var m = {
|
|
|
13557
13661
|
if (v.groups === true) flags |= 1024;
|
|
13558
13662
|
if (v.channels === true) flags |= 32768;
|
|
13559
13663
|
if (v.botsApp === true) flags |= 65536;
|
|
13664
|
+
if (v.botsGuestchat === true) flags |= 131072;
|
|
13560
13665
|
w.uint(flags);
|
|
13561
13666
|
w.int(h(v, "offset"));
|
|
13562
13667
|
w.int(h(v, "limit"));
|
|
@@ -15711,6 +15816,89 @@ var m = {
|
|
|
15711
15816
|
w.string(h(v, "url"));
|
|
15712
15817
|
w.string(h(v, "matchCode"));
|
|
15713
15818
|
},
|
|
15819
|
+
"messages.composeMessageWithAI": function(w, v) {
|
|
15820
|
+
w.uint(3672950153);
|
|
15821
|
+
var flags = 0;
|
|
15822
|
+
if (v.proofread === true) flags |= 1;
|
|
15823
|
+
var _translateToLang = v.translateToLang !== void 0;
|
|
15824
|
+
if (_translateToLang) flags |= 2;
|
|
15825
|
+
var _tone = v.tone !== void 0;
|
|
15826
|
+
if (_tone) flags |= 4;
|
|
15827
|
+
if (v.emojify === true) flags |= 8;
|
|
15828
|
+
w.uint(flags);
|
|
15829
|
+
w.object(h(v, "text"));
|
|
15830
|
+
if (_translateToLang) w.string(v.translateToLang);
|
|
15831
|
+
if (_tone) w.object(v.tone);
|
|
15832
|
+
},
|
|
15833
|
+
"messages.reportReadMetrics": function(w, v) {
|
|
15834
|
+
w.uint(1080542694);
|
|
15835
|
+
w.object(h(v, "peer"));
|
|
15836
|
+
w.vector(w.object, h(v, "metrics"));
|
|
15837
|
+
},
|
|
15838
|
+
"messages.reportMusicListen": function(w, v) {
|
|
15839
|
+
w.uint(3720140825);
|
|
15840
|
+
w.object(h(v, "id"));
|
|
15841
|
+
w.int(h(v, "listenedDuration"));
|
|
15842
|
+
},
|
|
15843
|
+
"messages.addPollAnswer": function(w, v) {
|
|
15844
|
+
w.uint(431770477);
|
|
15845
|
+
w.object(h(v, "peer"));
|
|
15846
|
+
w.int(h(v, "msgId"));
|
|
15847
|
+
w.object(h(v, "answer"));
|
|
15848
|
+
},
|
|
15849
|
+
"messages.deletePollAnswer": function(w, v) {
|
|
15850
|
+
w.uint(2894398885);
|
|
15851
|
+
w.object(h(v, "peer"));
|
|
15852
|
+
w.int(h(v, "msgId"));
|
|
15853
|
+
w.bytes(h(v, "option"));
|
|
15854
|
+
},
|
|
15855
|
+
"messages.getUnreadPollVotes": function(w, v) {
|
|
15856
|
+
w.uint(1126722802);
|
|
15857
|
+
var flags = 0;
|
|
15858
|
+
var _topMsgId = v.topMsgId !== void 0;
|
|
15859
|
+
if (_topMsgId) flags |= 1;
|
|
15860
|
+
w.uint(flags);
|
|
15861
|
+
w.object(h(v, "peer"));
|
|
15862
|
+
if (_topMsgId) w.int(v.topMsgId);
|
|
15863
|
+
w.int(h(v, "offsetId"));
|
|
15864
|
+
w.int(h(v, "addOffset"));
|
|
15865
|
+
w.int(h(v, "limit"));
|
|
15866
|
+
w.int(h(v, "maxId"));
|
|
15867
|
+
w.int(h(v, "minId"));
|
|
15868
|
+
},
|
|
15869
|
+
"messages.readPollVotes": function(w, v) {
|
|
15870
|
+
w.uint(388019416);
|
|
15871
|
+
var flags = 0;
|
|
15872
|
+
var _topMsgId = v.topMsgId !== void 0;
|
|
15873
|
+
if (_topMsgId) flags |= 1;
|
|
15874
|
+
w.uint(flags);
|
|
15875
|
+
w.object(h(v, "peer"));
|
|
15876
|
+
if (_topMsgId) w.int(v.topMsgId);
|
|
15877
|
+
},
|
|
15878
|
+
"messages.setBotGuestChatResult": function(w, v) {
|
|
15879
|
+
w.uint(3102803683);
|
|
15880
|
+
w.long(h(v, "queryId"));
|
|
15881
|
+
w.object(h(v, "result"));
|
|
15882
|
+
},
|
|
15883
|
+
"messages.deleteParticipantReactions": function(w, v) {
|
|
15884
|
+
w.uint(2696416504);
|
|
15885
|
+
w.object(h(v, "peer"));
|
|
15886
|
+
w.object(h(v, "participant"));
|
|
15887
|
+
},
|
|
15888
|
+
"messages.deleteParticipantReaction": function(w, v) {
|
|
15889
|
+
w.uint(3820484652);
|
|
15890
|
+
w.object(h(v, "peer"));
|
|
15891
|
+
w.int(h(v, "msgId"));
|
|
15892
|
+
w.object(h(v, "participant"));
|
|
15893
|
+
},
|
|
15894
|
+
"messages.getPersonalChannelHistory": function(w, v) {
|
|
15895
|
+
w.uint(1442515350);
|
|
15896
|
+
w.object(h(v, "userId"));
|
|
15897
|
+
w.int(h(v, "limit"));
|
|
15898
|
+
w.int(h(v, "maxId"));
|
|
15899
|
+
w.int(h(v, "minId"));
|
|
15900
|
+
w.long(h(v, "hash"));
|
|
15901
|
+
},
|
|
15714
15902
|
"updates.getState": function(w) {
|
|
15715
15903
|
w.uint(3990128682);
|
|
15716
15904
|
},
|
|
@@ -16493,6 +16681,48 @@ var m = {
|
|
|
16493
16681
|
w.uint(2713126933);
|
|
16494
16682
|
w.object(h(v, "bot"));
|
|
16495
16683
|
},
|
|
16684
|
+
"bots.checkUsername": function(w, v) {
|
|
16685
|
+
w.uint(2280792475);
|
|
16686
|
+
w.string(h(v, "username"));
|
|
16687
|
+
},
|
|
16688
|
+
"bots.createBot": function(w, v) {
|
|
16689
|
+
w.uint(3853614891);
|
|
16690
|
+
var flags = 0;
|
|
16691
|
+
if (v.viaDeeplink === true) flags |= 1;
|
|
16692
|
+
w.uint(flags);
|
|
16693
|
+
w.string(h(v, "name"));
|
|
16694
|
+
w.string(h(v, "username"));
|
|
16695
|
+
w.object(h(v, "managerId"));
|
|
16696
|
+
},
|
|
16697
|
+
"bots.exportBotToken": function(w, v) {
|
|
16698
|
+
w.uint(3171785195);
|
|
16699
|
+
w.object(h(v, "bot"));
|
|
16700
|
+
w.boolean(h(v, "revoke"));
|
|
16701
|
+
},
|
|
16702
|
+
"bots.requestWebViewButton": function(w, v) {
|
|
16703
|
+
w.uint(832742238);
|
|
16704
|
+
w.object(h(v, "userId"));
|
|
16705
|
+
w.object(h(v, "button"));
|
|
16706
|
+
},
|
|
16707
|
+
"bots.getRequestedWebViewButton": function(w, v) {
|
|
16708
|
+
w.uint(3206920179);
|
|
16709
|
+
w.object(h(v, "bot"));
|
|
16710
|
+
w.string(h(v, "webappReqId"));
|
|
16711
|
+
},
|
|
16712
|
+
"bots.getAccessSettings": function(w, v) {
|
|
16713
|
+
w.uint(557339555);
|
|
16714
|
+
w.object(h(v, "bot"));
|
|
16715
|
+
},
|
|
16716
|
+
"bots.editAccessSettings": function(w, v) {
|
|
16717
|
+
w.uint(830553304);
|
|
16718
|
+
var flags = 0;
|
|
16719
|
+
if (v.restricted === true) flags |= 1;
|
|
16720
|
+
var _addUsers = v.addUsers && v.addUsers.length;
|
|
16721
|
+
if (_addUsers) flags |= 2;
|
|
16722
|
+
w.uint(flags);
|
|
16723
|
+
w.object(h(v, "bot"));
|
|
16724
|
+
if (_addUsers) w.vector(w.object, v.addUsers);
|
|
16725
|
+
},
|
|
16496
16726
|
"payments.getPaymentForm": function(w, v) {
|
|
16497
16727
|
w.uint(924093883);
|
|
16498
16728
|
var flags = 0;
|
|
@@ -17427,6 +17657,14 @@ var m = {
|
|
|
17427
17657
|
w.string(h(v, "offset"));
|
|
17428
17658
|
w.int(h(v, "limit"));
|
|
17429
17659
|
},
|
|
17660
|
+
"stats.getPollStats": function(w, v) {
|
|
17661
|
+
w.uint(3263036008);
|
|
17662
|
+
var flags = 0;
|
|
17663
|
+
if (v.dark === true) flags |= 1;
|
|
17664
|
+
w.uint(flags);
|
|
17665
|
+
w.object(h(v, "peer"));
|
|
17666
|
+
w.int(h(v, "msgId"));
|
|
17667
|
+
},
|
|
17430
17668
|
"chatlists.exportChatlistInvite": function(w, v) {
|
|
17431
17669
|
w.uint(2222081934);
|
|
17432
17670
|
w.object(h(v, "chatlist"));
|
|
@@ -17841,92 +18079,54 @@ var m = {
|
|
|
17841
18079
|
w.uint(3189671354);
|
|
17842
18080
|
w.object(h(v, "collectible"));
|
|
17843
18081
|
},
|
|
17844
|
-
"
|
|
17845
|
-
w.uint(
|
|
18082
|
+
"aicompose.createTone": function(w, v) {
|
|
18083
|
+
w.uint(1252538643);
|
|
17846
18084
|
var flags = 0;
|
|
17847
|
-
if (v.
|
|
17848
|
-
var _translateToLang = v.translateToLang !== void 0;
|
|
17849
|
-
if (_translateToLang) flags |= 2;
|
|
17850
|
-
var _changeTone = v.changeTone !== void 0;
|
|
17851
|
-
if (_changeTone) flags |= 4;
|
|
17852
|
-
if (v.emojify === true) flags |= 8;
|
|
18085
|
+
if (v.displayAuthor === true) flags |= 1;
|
|
17853
18086
|
w.uint(flags);
|
|
17854
|
-
w.
|
|
17855
|
-
|
|
17856
|
-
|
|
17857
|
-
},
|
|
17858
|
-
"messages.reportReadMetrics": function(w, v) {
|
|
17859
|
-
w.uint(1080542694);
|
|
17860
|
-
w.object(h(v, "peer"));
|
|
17861
|
-
w.vector(w.object, h(v, "metrics"));
|
|
17862
|
-
},
|
|
17863
|
-
"messages.reportMusicListen": function(w, v) {
|
|
17864
|
-
w.uint(3720140825);
|
|
17865
|
-
w.object(h(v, "id"));
|
|
17866
|
-
w.int(h(v, "listenedDuration"));
|
|
17867
|
-
},
|
|
17868
|
-
"messages.addPollAnswer": function(w, v) {
|
|
17869
|
-
w.uint(431770477);
|
|
17870
|
-
w.object(h(v, "peer"));
|
|
17871
|
-
w.int(h(v, "msgId"));
|
|
17872
|
-
w.object(h(v, "answer"));
|
|
17873
|
-
},
|
|
17874
|
-
"messages.deletePollAnswer": function(w, v) {
|
|
17875
|
-
w.uint(2894398885);
|
|
17876
|
-
w.object(h(v, "peer"));
|
|
17877
|
-
w.int(h(v, "msgId"));
|
|
17878
|
-
w.bytes(h(v, "option"));
|
|
18087
|
+
w.long(h(v, "emojiId"));
|
|
18088
|
+
w.string(h(v, "title"));
|
|
18089
|
+
w.string(h(v, "prompt"));
|
|
17879
18090
|
},
|
|
17880
|
-
"
|
|
17881
|
-
w.uint(
|
|
18091
|
+
"aicompose.updateTone": function(w, v) {
|
|
18092
|
+
w.uint(2419838809);
|
|
17882
18093
|
var flags = 0;
|
|
17883
|
-
var
|
|
17884
|
-
if (
|
|
17885
|
-
|
|
17886
|
-
|
|
17887
|
-
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
w.int(h(v, "maxId"));
|
|
17892
|
-
w.int(h(v, "minId"));
|
|
17893
|
-
},
|
|
17894
|
-
"messages.readPollVotes": function(w, v) {
|
|
17895
|
-
w.uint(388019416);
|
|
17896
|
-
var flags = 0;
|
|
17897
|
-
var _topMsgId = v.topMsgId !== void 0;
|
|
17898
|
-
if (_topMsgId) flags |= 1;
|
|
18094
|
+
var _displayAuthor = v.displayAuthor !== void 0;
|
|
18095
|
+
if (_displayAuthor) flags |= 1;
|
|
18096
|
+
var _emojiId = v.emojiId !== void 0;
|
|
18097
|
+
if (_emojiId) flags |= 2;
|
|
18098
|
+
var _title = v.title !== void 0;
|
|
18099
|
+
if (_title) flags |= 4;
|
|
18100
|
+
var _prompt = v.prompt !== void 0;
|
|
18101
|
+
if (_prompt) flags |= 8;
|
|
17899
18102
|
w.uint(flags);
|
|
17900
|
-
w.object(h(v, "
|
|
17901
|
-
if (
|
|
18103
|
+
w.object(h(v, "tone"));
|
|
18104
|
+
if (_displayAuthor) w.boolean(v.displayAuthor);
|
|
18105
|
+
if (_emojiId) w.long(v.emojiId);
|
|
18106
|
+
if (_title) w.string(v.title);
|
|
18107
|
+
if (_prompt) w.string(v.prompt);
|
|
17902
18108
|
},
|
|
17903
|
-
"
|
|
17904
|
-
w.uint(
|
|
17905
|
-
w.
|
|
18109
|
+
"aicompose.saveTone": function(w, v) {
|
|
18110
|
+
w.uint(394447793);
|
|
18111
|
+
w.object(h(v, "tone"));
|
|
18112
|
+
w.boolean(h(v, "unsave"));
|
|
17906
18113
|
},
|
|
17907
|
-
"
|
|
17908
|
-
w.uint(
|
|
17909
|
-
|
|
17910
|
-
if (v.viaDeeplink === true) flags |= 1;
|
|
17911
|
-
w.uint(flags);
|
|
17912
|
-
w.string(h(v, "name"));
|
|
17913
|
-
w.string(h(v, "username"));
|
|
17914
|
-
w.object(h(v, "managerId"));
|
|
18114
|
+
"aicompose.deleteTone": function(w, v) {
|
|
18115
|
+
w.uint(3711512938);
|
|
18116
|
+
w.object(h(v, "tone"));
|
|
17915
18117
|
},
|
|
17916
|
-
"
|
|
17917
|
-
w.uint(
|
|
17918
|
-
w.object(h(v, "
|
|
17919
|
-
w.boolean(h(v, "revoke"));
|
|
18118
|
+
"aicompose.getTone": function(w, v) {
|
|
18119
|
+
w.uint(3001596419);
|
|
18120
|
+
w.object(h(v, "tone"));
|
|
17920
18121
|
},
|
|
17921
|
-
"
|
|
17922
|
-
w.uint(
|
|
17923
|
-
w.
|
|
17924
|
-
w.object(h(v, "button"));
|
|
18122
|
+
"aicompose.getTones": function(w, v) {
|
|
18123
|
+
w.uint(2882900481);
|
|
18124
|
+
w.long(h(v, "hash"));
|
|
17925
18125
|
},
|
|
17926
|
-
"
|
|
17927
|
-
w.uint(
|
|
17928
|
-
w.object(h(v, "
|
|
17929
|
-
w.
|
|
18126
|
+
"aicompose.getToneExample": function(w, v) {
|
|
18127
|
+
w.uint(3518278420);
|
|
18128
|
+
w.object(h(v, "tone"));
|
|
18129
|
+
w.int(h(v, "num"));
|
|
17930
18130
|
},
|
|
17931
18131
|
"channels.editCreator": function(w, v) {
|
|
17932
18132
|
w.uint(2402864415);
|
|
@@ -18309,6 +18509,7 @@ var m = {
|
|
|
18309
18509
|
"messageActionChangeCreator": 12,
|
|
18310
18510
|
"messageActionNoForwardsToggle": 12,
|
|
18311
18511
|
"messageActionNoForwardsRequest": 16,
|
|
18512
|
+
"messageActionManagedBotCreated": 12,
|
|
18312
18513
|
"photoEmpty": 12,
|
|
18313
18514
|
"geoPointEmpty": 4,
|
|
18314
18515
|
"inputNotifyUsers": 4,
|
|
@@ -18347,6 +18548,7 @@ var m = {
|
|
|
18347
18548
|
"inputMessagesFilterGeo": 4,
|
|
18348
18549
|
"inputMessagesFilterContacts": 4,
|
|
18349
18550
|
"inputMessagesFilterPinned": 4,
|
|
18551
|
+
"inputMessagesFilterPoll": 4,
|
|
18350
18552
|
"updateMessageID": 16,
|
|
18351
18553
|
"updateEncryptedChatTyping": 8,
|
|
18352
18554
|
"updateEncryptedMessagesRead": 16,
|
|
@@ -18393,6 +18595,8 @@ var m = {
|
|
|
18393
18595
|
"updateMonoForumNoPaidException": 28,
|
|
18394
18596
|
"updatePinnedForumTopic": 24,
|
|
18395
18597
|
"updateStarGiftCraftFail": 4,
|
|
18598
|
+
"updateManagedBot": 24,
|
|
18599
|
+
"updateAiComposeTones": 4,
|
|
18396
18600
|
"updates.state": 24,
|
|
18397
18601
|
"updates.differenceEmpty": 12,
|
|
18398
18602
|
"updates.differenceTooLong": 8,
|
|
@@ -18515,6 +18719,8 @@ var m = {
|
|
|
18515
18719
|
"messageEntityCustomEmoji": 20,
|
|
18516
18720
|
"messageEntityBlockquote": 16,
|
|
18517
18721
|
"messageEntityFormattedDate": 20,
|
|
18722
|
+
"messageEntityDiffInsert": 12,
|
|
18723
|
+
"messageEntityDiffDelete": 12,
|
|
18518
18724
|
"inputChannelEmpty": 4,
|
|
18519
18725
|
"inputChannel": 20,
|
|
18520
18726
|
"messageRange": 12,
|
|
@@ -18547,6 +18753,7 @@ var m = {
|
|
|
18547
18753
|
"topPeerCategoryForwardUsers": 4,
|
|
18548
18754
|
"topPeerCategoryForwardChats": 4,
|
|
18549
18755
|
"topPeerCategoryBotsApp": 4,
|
|
18756
|
+
"topPeerCategoryBotsGuestChat": 4,
|
|
18550
18757
|
"contacts.topPeersNotModified": 4,
|
|
18551
18758
|
"contacts.topPeersDisabled": 4,
|
|
18552
18759
|
"messages.featuredStickersNotModified": 8,
|
|
@@ -18638,6 +18845,7 @@ var m = {
|
|
|
18638
18845
|
"baseThemeNight": 4,
|
|
18639
18846
|
"baseThemeTinted": 4,
|
|
18640
18847
|
"baseThemeArctic": 4,
|
|
18848
|
+
"webPageAttributeAiComposeTone": 12,
|
|
18641
18849
|
"dialogFilterDefault": 4,
|
|
18642
18850
|
"statsDateRangeDays": 12,
|
|
18643
18851
|
"statsAbsValueAndPrev": 20,
|
|
@@ -18790,12 +18998,9 @@ var m = {
|
|
|
18790
18998
|
"starGiftAttributeRarityRare": 4,
|
|
18791
18999
|
"starGiftAttributeRarityEpic": 4,
|
|
18792
19000
|
"starGiftAttributeRarityLegendary": 4,
|
|
18793
|
-
"messageActionManagedBotCreated": 12,
|
|
18794
|
-
"inputMessagesFilterPoll": 4,
|
|
18795
|
-
"updateManagedBot": 24,
|
|
18796
|
-
"messageEntityDiffInsert": 12,
|
|
18797
|
-
"messageEntityDiffDelete": 12,
|
|
18798
19001
|
"inputMessageReadMetric": 32,
|
|
19002
|
+
"inputAiComposeToneID": 20,
|
|
19003
|
+
"aicompose.tonesNotModified": 4,
|
|
18799
19004
|
"updateChannelPinnedTopic": 20,
|
|
18800
19005
|
"auth.logOut": 4,
|
|
18801
19006
|
"auth.resetAuthorizations": 4,
|
|
@@ -18959,6 +19164,7 @@ var m = {
|
|
|
18959
19164
|
"smsjobs.leave": 4,
|
|
18960
19165
|
"smsjobs.updateSettings": 8,
|
|
18961
19166
|
"smsjobs.getStatus": 4,
|
|
19167
|
+
"aicompose.getTones": 12,
|
|
18962
19168
|
"mt_dh_gen_ok": 52,
|
|
18963
19169
|
"mt_dh_gen_retry": 52,
|
|
18964
19170
|
"mt_dh_gen_fail": 52,
|