@mtcute/core 0.29.4 → 0.29.6
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 +4 -0
- package/client.js +4 -0
- package/highlevel/base.cjs +0 -1
- package/highlevel/base.js +0 -1
- package/highlevel/client.d.cts +30 -0
- package/highlevel/client.d.ts +30 -0
- package/highlevel/methods/chats/get-creator-after-leave.cjs +4 -14
- package/highlevel/methods/chats/get-creator-after-leave.js +5 -15
- package/highlevel/methods/files/normalize-input-media.cjs +37 -15
- package/highlevel/methods/files/normalize-input-media.js +37 -15
- package/highlevel/methods/messages/close-poll.cjs +2 -1
- package/highlevel/methods/messages/close-poll.js +2 -1
- package/highlevel/methods/messages/create-streaming-draft.cjs +57 -0
- package/highlevel/methods/messages/create-streaming-draft.d.cts +36 -0
- package/highlevel/methods/messages/create-streaming-draft.d.ts +36 -0
- package/highlevel/methods/messages/create-streaming-draft.js +52 -0
- package/highlevel/methods/messages/send-common.cjs +2 -1
- package/highlevel/methods/messages/send-common.d.cts +4 -0
- package/highlevel/methods/messages/send-common.d.ts +4 -0
- package/highlevel/methods/messages/send-common.js +2 -1
- package/highlevel/methods/messages/send-media.cjs +1 -1
- package/highlevel/methods/messages/send-media.d.cts +3 -0
- package/highlevel/methods/messages/send-media.d.ts +3 -0
- package/highlevel/methods/messages/send-media.js +1 -1
- package/highlevel/methods/messages/send-text.cjs +1 -1
- package/highlevel/methods/messages/send-text.d.cts +3 -0
- package/highlevel/methods/messages/send-text.d.ts +3 -0
- package/highlevel/methods/messages/send-text.js +1 -1
- package/highlevel/methods/messages/send-vote.cjs +3 -1
- package/highlevel/methods/messages/send-vote.js +4 -2
- package/highlevel/methods.d.cts +2 -0
- package/highlevel/methods.d.ts +2 -0
- package/highlevel/storage/service/peers.cjs +1 -0
- package/highlevel/storage/service/peers.js +1 -0
- package/highlevel/types/media/input-media/types.d.cts +23 -12
- package/highlevel/types/media/input-media/types.d.ts +23 -12
- package/highlevel/types/media/photo.cjs +8 -0
- package/highlevel/types/media/photo.d.cts +2 -0
- package/highlevel/types/media/photo.d.ts +2 -0
- package/highlevel/types/media/photo.js +8 -0
- package/highlevel/types/media/poll.cjs +48 -5
- package/highlevel/types/media/poll.d.cts +21 -3
- package/highlevel/types/media/poll.d.ts +21 -3
- package/highlevel/types/media/poll.js +48 -5
- package/highlevel/types/messages/dialog.cjs +4 -0
- package/highlevel/types/messages/dialog.d.cts +2 -0
- package/highlevel/types/messages/dialog.d.ts +2 -0
- package/highlevel/types/messages/dialog.js +4 -0
- package/highlevel/types/messages/message-action.cjs +18 -0
- package/highlevel/types/messages/message-action.d.cts +19 -1
- package/highlevel/types/messages/message-action.d.ts +19 -1
- package/highlevel/types/messages/message-action.js +18 -0
- package/highlevel/types/messages/message-media.cjs +6 -1
- package/highlevel/types/messages/message-media.js +6 -1
- package/highlevel/types/messages/replied-message.cjs +4 -0
- package/highlevel/types/messages/replied-message.d.cts +2 -0
- package/highlevel/types/messages/replied-message.d.ts +2 -0
- package/highlevel/types/messages/replied-message.js +4 -0
- package/highlevel/types/messages/search-filters.cjs +2 -1
- package/highlevel/types/messages/search-filters.d.cts +4 -0
- package/highlevel/types/messages/search-filters.d.ts +4 -0
- package/highlevel/types/messages/search-filters.js +2 -1
- package/highlevel/types/peers/forum-topic.cjs +4 -0
- package/highlevel/types/peers/forum-topic.d.cts +2 -0
- package/highlevel/types/peers/forum-topic.d.ts +2 -0
- package/highlevel/types/peers/forum-topic.js +4 -0
- package/highlevel/types/peers/full-user.cjs +8 -0
- package/highlevel/types/peers/full-user.d.cts +4 -0
- package/highlevel/types/peers/full-user.d.ts +4 -0
- package/highlevel/types/peers/full-user.js +8 -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/poll-update.cjs +8 -2
- package/highlevel/types/updates/poll-update.js +8 -2
- package/highlevel/updates/manager.cjs +7 -0
- package/highlevel/updates/manager.js +7 -0
- package/highlevel/worker/worker.cjs +6 -1
- package/highlevel/worker/worker.d.cts +2 -1
- package/highlevel/worker/worker.d.ts +2 -1
- package/highlevel/worker/worker.js +6 -1
- package/methods.cjs +2 -0
- package/methods.js +2 -0
- package/network/middlewares/flood-waiter.cjs +2 -1
- package/network/middlewares/flood-waiter.js +2 -1
- 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 +86 -39
- package/tl/binary/reader.js +86 -39
- package/tl/binary/writer.cjs +308 -32
- package/tl/binary/writer.js +308 -32
- package/tl/compat/reader.cjs +34 -0
- package/tl/compat/reader.js +34 -0
- package/tl/index.d.cts +295 -25
- package/tl/index.d.ts +295 -25
- package/tl/inner-tl.cjs +16 -8
- package/tl/inner-tl.js +16 -8
- package/utils/binary/compat.cjs +41 -0
- package/utils/binary/compat.js +41 -0
package/tl/binary/writer.js
CHANGED
|
@@ -106,27 +106,35 @@ var m = {
|
|
|
106
106
|
w.uint(2523198847);
|
|
107
107
|
},
|
|
108
108
|
"inputMediaUploadedPhoto": function(w, v) {
|
|
109
|
-
w.uint(
|
|
109
|
+
w.uint(2105767386);
|
|
110
110
|
var flags = 0;
|
|
111
111
|
var _stickers = v.stickers && v.stickers.length;
|
|
112
112
|
if (_stickers) flags |= 1;
|
|
113
113
|
var _ttlSeconds = v.ttlSeconds !== void 0;
|
|
114
114
|
if (_ttlSeconds) flags |= 2;
|
|
115
115
|
if (v.spoiler === true) flags |= 4;
|
|
116
|
+
var _video = v.video !== void 0;
|
|
117
|
+
var _flags_3 = v.livePhoto === true || _video;
|
|
118
|
+
if (_flags_3) flags |= 8;
|
|
116
119
|
w.uint(flags);
|
|
117
120
|
w.object(h(v, "file"));
|
|
118
121
|
if (_stickers) w.vector(w.object, v.stickers);
|
|
119
122
|
if (_ttlSeconds) w.int(v.ttlSeconds);
|
|
123
|
+
if (_flags_3) w.object(v.video);
|
|
120
124
|
},
|
|
121
125
|
"inputMediaPhoto": function(w, v) {
|
|
122
|
-
w.uint(
|
|
126
|
+
w.uint(3819914292);
|
|
123
127
|
var flags = 0;
|
|
124
128
|
var _ttlSeconds = v.ttlSeconds !== void 0;
|
|
125
129
|
if (_ttlSeconds) flags |= 1;
|
|
126
130
|
if (v.spoiler === true) flags |= 2;
|
|
131
|
+
var _video = v.video !== void 0;
|
|
132
|
+
var _flags_2 = v.livePhoto === true || _video;
|
|
133
|
+
if (_flags_2) flags |= 4;
|
|
127
134
|
w.uint(flags);
|
|
128
135
|
w.object(h(v, "id"));
|
|
129
136
|
if (_ttlSeconds) w.int(v.ttlSeconds);
|
|
137
|
+
if (_flags_2) w.object(v.video);
|
|
130
138
|
},
|
|
131
139
|
"inputMediaGeoPoint": function(w, v) {
|
|
132
140
|
w.uint(4190388548);
|
|
@@ -262,7 +270,7 @@ var m = {
|
|
|
262
270
|
if (_proximityNotificationRadius) w.int(v.proximityNotificationRadius);
|
|
263
271
|
},
|
|
264
272
|
"inputMediaPoll": function(w, v) {
|
|
265
|
-
w.uint(
|
|
273
|
+
w.uint(2285519112);
|
|
266
274
|
var flags = 0;
|
|
267
275
|
var _correctAnswers = v.correctAnswers && v.correctAnswers.length;
|
|
268
276
|
if (_correctAnswers) flags |= 1;
|
|
@@ -270,11 +278,17 @@ var m = {
|
|
|
270
278
|
var _solutionEntities = v.solutionEntities && v.solutionEntities.length;
|
|
271
279
|
var _flags_1 = _solution || _solutionEntities;
|
|
272
280
|
if (_flags_1) flags |= 2;
|
|
281
|
+
var _solutionMedia = v.solutionMedia !== void 0;
|
|
282
|
+
if (_solutionMedia) flags |= 4;
|
|
283
|
+
var _attachedMedia = v.attachedMedia !== void 0;
|
|
284
|
+
if (_attachedMedia) flags |= 8;
|
|
273
285
|
w.uint(flags);
|
|
274
286
|
w.object(h(v, "poll"));
|
|
275
|
-
if (_correctAnswers) w.vector(w.
|
|
287
|
+
if (_correctAnswers) w.vector(w.int, v.correctAnswers);
|
|
288
|
+
if (_attachedMedia) w.object(v.attachedMedia);
|
|
276
289
|
if (_flags_1) w.string(v.solution);
|
|
277
290
|
if (_flags_1) w.vector(w.object, v.solutionEntities);
|
|
291
|
+
if (_solutionMedia) w.object(v.solutionMedia);
|
|
278
292
|
},
|
|
279
293
|
"inputMediaDice": function(w, v) {
|
|
280
294
|
w.uint(3866083195);
|
|
@@ -546,6 +560,7 @@ var m = {
|
|
|
546
560
|
if (_sendPaidMessagesStars) flags2 |= 32768;
|
|
547
561
|
if (v.botForumView === true) flags2 |= 65536;
|
|
548
562
|
if (v.botForumCanManageTopics === true) flags2 |= 131072;
|
|
563
|
+
if (v.botCanManageBots === true) flags2 |= 262144;
|
|
549
564
|
w.uint(flags2);
|
|
550
565
|
w.int53(h(v, "id"));
|
|
551
566
|
if (_accessHash) w.long(v.accessHash);
|
|
@@ -1161,16 +1176,20 @@ var m = {
|
|
|
1161
1176
|
w.uint(1038967584);
|
|
1162
1177
|
},
|
|
1163
1178
|
"messageMediaPhoto": function(w, v) {
|
|
1164
|
-
w.uint(
|
|
1179
|
+
w.uint(3793152867);
|
|
1165
1180
|
var flags = 0;
|
|
1166
1181
|
var _photo = v.photo !== void 0;
|
|
1167
1182
|
if (_photo) flags |= 1;
|
|
1168
1183
|
var _ttlSeconds = v.ttlSeconds !== void 0;
|
|
1169
1184
|
if (_ttlSeconds) flags |= 4;
|
|
1170
1185
|
if (v.spoiler === true) flags |= 8;
|
|
1186
|
+
var _video = v.video !== void 0;
|
|
1187
|
+
var _flags_4 = v.livePhoto === true || _video;
|
|
1188
|
+
if (_flags_4) flags |= 16;
|
|
1171
1189
|
w.uint(flags);
|
|
1172
1190
|
if (_photo) w.object(v.photo);
|
|
1173
1191
|
if (_ttlSeconds) w.int(v.ttlSeconds);
|
|
1192
|
+
if (_flags_4) w.object(v.video);
|
|
1174
1193
|
},
|
|
1175
1194
|
"messageMediaGeo": function(w, v) {
|
|
1176
1195
|
w.uint(1457575028);
|
|
@@ -1270,9 +1289,14 @@ var m = {
|
|
|
1270
1289
|
if (_proximityNotificationRadius) w.int(v.proximityNotificationRadius);
|
|
1271
1290
|
},
|
|
1272
1291
|
"messageMediaPoll": function(w, v) {
|
|
1273
|
-
w.uint(
|
|
1292
|
+
w.uint(2000637542);
|
|
1293
|
+
var flags = 0;
|
|
1294
|
+
var _attachedMedia = v.attachedMedia !== void 0;
|
|
1295
|
+
if (_attachedMedia) flags |= 1;
|
|
1296
|
+
w.uint(flags);
|
|
1274
1297
|
w.object(h(v, "poll"));
|
|
1275
1298
|
w.object(h(v, "results"));
|
|
1299
|
+
if (_attachedMedia) w.object(v.attachedMedia);
|
|
1276
1300
|
},
|
|
1277
1301
|
"messageMediaDice": function(w, v) {
|
|
1278
1302
|
w.uint(147581959);
|
|
@@ -1911,7 +1935,7 @@ var m = {
|
|
|
1911
1935
|
w.boolean(h(v, "newValue"));
|
|
1912
1936
|
},
|
|
1913
1937
|
"dialog": function(w, v) {
|
|
1914
|
-
w.uint(
|
|
1938
|
+
w.uint(4236900339);
|
|
1915
1939
|
var flags = 0;
|
|
1916
1940
|
var _pts = v.pts !== void 0;
|
|
1917
1941
|
if (_pts) flags |= 1;
|
|
@@ -1932,6 +1956,7 @@ var m = {
|
|
|
1932
1956
|
w.int(h(v, "unreadCount"));
|
|
1933
1957
|
w.int(h(v, "unreadMentionsCount"));
|
|
1934
1958
|
w.int(h(v, "unreadReactionsCount"));
|
|
1959
|
+
w.int(h(v, "unreadPollVotesCount"));
|
|
1935
1960
|
w.object(h(v, "notifySettings"));
|
|
1936
1961
|
if (_pts) w.int(v.pts);
|
|
1937
1962
|
if (_draft) w.object(v.draft);
|
|
@@ -2260,7 +2285,7 @@ var m = {
|
|
|
2260
2285
|
w.uint(2663876157);
|
|
2261
2286
|
},
|
|
2262
2287
|
"userFull": function(w, v) {
|
|
2263
|
-
w.uint(
|
|
2288
|
+
w.uint(114026053);
|
|
2264
2289
|
var flags = 0;
|
|
2265
2290
|
if (v.blocked === true) flags |= 1;
|
|
2266
2291
|
var _about = v.about !== void 0;
|
|
@@ -2349,6 +2374,9 @@ var m = {
|
|
|
2349
2374
|
if (_note) flags2 |= 4194304;
|
|
2350
2375
|
if (v.noforwardsMyEnabled === true) flags2 |= 8388608;
|
|
2351
2376
|
if (v.noforwardsPeerEnabled === true) flags2 |= 16777216;
|
|
2377
|
+
var _botManagerId = v.botManagerId !== void 0;
|
|
2378
|
+
if (_botManagerId) flags2 |= 33554432;
|
|
2379
|
+
if (v.unofficialSecurityRisk === true) flags2 |= 67108864;
|
|
2352
2380
|
w.uint(flags2);
|
|
2353
2381
|
w.int53(h(v, "id"));
|
|
2354
2382
|
if (_about) w.string(v.about);
|
|
@@ -2387,6 +2415,7 @@ var m = {
|
|
|
2387
2415
|
if (_mainTab) w.object(v.mainTab);
|
|
2388
2416
|
if (_savedMusic) w.object(v.savedMusic);
|
|
2389
2417
|
if (_note) w.object(v.note);
|
|
2418
|
+
if (_botManagerId) w.int53(v.botManagerId);
|
|
2390
2419
|
},
|
|
2391
2420
|
"contact": function(w, v) {
|
|
2392
2421
|
w.uint(341499403);
|
|
@@ -3025,11 +3054,20 @@ var m = {
|
|
|
3025
3054
|
if (_savedPeerId) w.object(v.savedPeerId);
|
|
3026
3055
|
},
|
|
3027
3056
|
"updateMessagePoll": function(w, v) {
|
|
3028
|
-
w.uint(
|
|
3057
|
+
w.uint(3595325995);
|
|
3029
3058
|
var flags = 0;
|
|
3030
3059
|
var _poll = v.poll !== void 0;
|
|
3031
3060
|
if (_poll) flags |= 1;
|
|
3061
|
+
var _peer = v.peer !== void 0;
|
|
3062
|
+
var _msgId = v.msgId !== void 0;
|
|
3063
|
+
var _flags_1 = _peer || _msgId;
|
|
3064
|
+
if (_flags_1) flags |= 2;
|
|
3065
|
+
var _topMsgId = v.topMsgId !== void 0;
|
|
3066
|
+
if (_topMsgId) flags |= 4;
|
|
3032
3067
|
w.uint(flags);
|
|
3068
|
+
if (_flags_1) w.object(v.peer);
|
|
3069
|
+
if (_flags_1) w.int(v.msgId);
|
|
3070
|
+
if (_topMsgId) w.int(v.topMsgId);
|
|
3033
3071
|
w.long(h(v, "pollId"));
|
|
3034
3072
|
if (_poll) w.object(v.poll);
|
|
3035
3073
|
w.object(h(v, "results"));
|
|
@@ -3082,10 +3120,11 @@ var m = {
|
|
|
3082
3120
|
w.uint(1448076945);
|
|
3083
3121
|
},
|
|
3084
3122
|
"updateMessagePollVote": function(w, v) {
|
|
3085
|
-
w.uint(
|
|
3123
|
+
w.uint(1989799956);
|
|
3086
3124
|
w.long(h(v, "pollId"));
|
|
3087
3125
|
w.object(h(v, "peer"));
|
|
3088
3126
|
w.vector(w.bytes, h(v, "options"));
|
|
3127
|
+
w.vector(w.int, h(v, "positions"));
|
|
3089
3128
|
w.int(h(v, "qts"));
|
|
3090
3129
|
},
|
|
3091
3130
|
"updateDialogFilter": function(w, v) {
|
|
@@ -7697,12 +7736,23 @@ var m = {
|
|
|
7697
7736
|
w.int(h(v, "date"));
|
|
7698
7737
|
},
|
|
7699
7738
|
"pollAnswer": function(w, v) {
|
|
7700
|
-
w.uint(
|
|
7739
|
+
w.uint(1266514026);
|
|
7740
|
+
var flags = 0;
|
|
7741
|
+
var _media = v.media !== void 0;
|
|
7742
|
+
if (_media) flags |= 1;
|
|
7743
|
+
var _addedBy = v.addedBy !== void 0;
|
|
7744
|
+
var _date = v.date !== void 0;
|
|
7745
|
+
var _flags_1 = _addedBy || _date;
|
|
7746
|
+
if (_flags_1) flags |= 2;
|
|
7747
|
+
w.uint(flags);
|
|
7701
7748
|
w.object(h(v, "text"));
|
|
7702
7749
|
w.bytes(h(v, "option"));
|
|
7750
|
+
if (_media) w.object(v.media);
|
|
7751
|
+
if (_flags_1) w.object(v.addedBy);
|
|
7752
|
+
if (_flags_1) w.int(v.date);
|
|
7703
7753
|
},
|
|
7704
7754
|
"poll": function(w, v) {
|
|
7705
|
-
w.uint(
|
|
7755
|
+
w.uint(3091356649);
|
|
7706
7756
|
w.long(h(v, "id"));
|
|
7707
7757
|
var flags = 0;
|
|
7708
7758
|
if (v.closed === true) flags |= 1;
|
|
@@ -7713,23 +7763,34 @@ var m = {
|
|
|
7713
7763
|
if (_closePeriod) flags |= 16;
|
|
7714
7764
|
var _closeDate = v.closeDate !== void 0;
|
|
7715
7765
|
if (_closeDate) flags |= 32;
|
|
7766
|
+
if (v.openAnswers === true) flags |= 64;
|
|
7767
|
+
if (v.revotingDisabled === true) flags |= 128;
|
|
7768
|
+
if (v.shuffleAnswers === true) flags |= 256;
|
|
7769
|
+
if (v.hideResultsUntilClose === true) flags |= 512;
|
|
7770
|
+
if (v.creator === true) flags |= 1024;
|
|
7716
7771
|
w.uint(flags);
|
|
7717
7772
|
w.object(h(v, "question"));
|
|
7718
7773
|
w.vector(w.object, h(v, "answers"));
|
|
7719
7774
|
if (_closePeriod) w.int(v.closePeriod);
|
|
7720
7775
|
if (_closeDate) w.int(v.closeDate);
|
|
7776
|
+
w.long(h(v, "hash"));
|
|
7721
7777
|
},
|
|
7722
7778
|
"pollAnswerVoters": function(w, v) {
|
|
7723
|
-
w.uint(
|
|
7779
|
+
w.uint(910500618);
|
|
7724
7780
|
var flags = 0;
|
|
7725
7781
|
if (v.chosen === true) flags |= 1;
|
|
7726
7782
|
if (v.correct === true) flags |= 2;
|
|
7783
|
+
var _voters = v.voters !== void 0;
|
|
7784
|
+
var _recentVoters = v.recentVoters && v.recentVoters.length;
|
|
7785
|
+
var _flags_2 = _voters || _recentVoters;
|
|
7786
|
+
if (_flags_2) flags |= 4;
|
|
7727
7787
|
w.uint(flags);
|
|
7728
7788
|
w.bytes(h(v, "option"));
|
|
7729
|
-
w.int(
|
|
7789
|
+
if (_flags_2) w.int(v.voters);
|
|
7790
|
+
if (_flags_2) w.vector(w.object, v.recentVoters);
|
|
7730
7791
|
},
|
|
7731
7792
|
"pollResults": function(w, v) {
|
|
7732
|
-
w.uint(
|
|
7793
|
+
w.uint(3128668510);
|
|
7733
7794
|
var flags = 0;
|
|
7734
7795
|
if (v.min === true) flags |= 1;
|
|
7735
7796
|
var _results = v.results && v.results.length;
|
|
@@ -7742,12 +7803,16 @@ var m = {
|
|
|
7742
7803
|
var _solutionEntities = v.solutionEntities && v.solutionEntities.length;
|
|
7743
7804
|
var _flags_4 = _solution || _solutionEntities;
|
|
7744
7805
|
if (_flags_4) flags |= 16;
|
|
7806
|
+
var _solutionMedia = v.solutionMedia !== void 0;
|
|
7807
|
+
if (_solutionMedia) flags |= 32;
|
|
7808
|
+
if (v.hasUnreadVotes === true) flags |= 64;
|
|
7745
7809
|
w.uint(flags);
|
|
7746
7810
|
if (_results) w.vector(w.object, v.results);
|
|
7747
7811
|
if (_totalVoters) w.int(v.totalVoters);
|
|
7748
7812
|
if (_recentVoters) w.vector(w.object, v.recentVoters);
|
|
7749
7813
|
if (_flags_4) w.string(v.solution);
|
|
7750
7814
|
if (_flags_4) w.vector(w.object, v.solutionEntities);
|
|
7815
|
+
if (_solutionMedia) w.object(v.solutionMedia);
|
|
7751
7816
|
},
|
|
7752
7817
|
"chatOnlines": function(w, v) {
|
|
7753
7818
|
w.uint(4030849616);
|
|
@@ -7954,7 +8019,7 @@ var m = {
|
|
|
7954
8019
|
w.int(h(v, "count"));
|
|
7955
8020
|
},
|
|
7956
8021
|
"urlAuthResultRequest": function(w, v) {
|
|
7957
|
-
w.uint(
|
|
8022
|
+
w.uint(1020666860);
|
|
7958
8023
|
var flags = 0;
|
|
7959
8024
|
if (v.requestWriteAccess === true) flags |= 1;
|
|
7960
8025
|
if (v.requestPhoneNumber === true) flags |= 2;
|
|
@@ -7969,6 +8034,9 @@ var m = {
|
|
|
7969
8034
|
var _userIdHint = v.userIdHint !== void 0;
|
|
7970
8035
|
if (_userIdHint) flags |= 16;
|
|
7971
8036
|
if (v.matchCodesFirst === true) flags |= 32;
|
|
8037
|
+
if (v.isApp === true) flags |= 64;
|
|
8038
|
+
var _verifiedAppName = v.verifiedAppName !== void 0;
|
|
8039
|
+
if (_verifiedAppName) flags |= 128;
|
|
7972
8040
|
w.uint(flags);
|
|
7973
8041
|
w.object(h(v, "bot"));
|
|
7974
8042
|
w.string(h(v, "domain"));
|
|
@@ -7978,6 +8046,7 @@ var m = {
|
|
|
7978
8046
|
if (_flags_2) w.string(v.region);
|
|
7979
8047
|
if (_matchCodes) w.vector(w.string, v.matchCodes);
|
|
7980
8048
|
if (_userIdHint) w.int53(v.userIdHint);
|
|
8049
|
+
if (_verifiedAppName) w.string(v.verifiedAppName);
|
|
7981
8050
|
},
|
|
7982
8051
|
"urlAuthResultAccepted": function(w, v) {
|
|
7983
8052
|
w.uint(1648005024);
|
|
@@ -8481,7 +8550,7 @@ var m = {
|
|
|
8481
8550
|
w.vector(w.object, h(v, "users"));
|
|
8482
8551
|
},
|
|
8483
8552
|
"messageReplyHeader": function(w, v) {
|
|
8484
|
-
w.uint(
|
|
8553
|
+
w.uint(462937446);
|
|
8485
8554
|
var flags = 0;
|
|
8486
8555
|
var _replyToPeerId = v.replyToPeerId !== void 0;
|
|
8487
8556
|
if (_replyToPeerId) flags |= 1;
|
|
@@ -8504,6 +8573,8 @@ var m = {
|
|
|
8504
8573
|
if (_quoteOffset) flags |= 1024;
|
|
8505
8574
|
var _todoItemId = v.todoItemId !== void 0;
|
|
8506
8575
|
if (_todoItemId) flags |= 2048;
|
|
8576
|
+
var _pollOption = v.pollOption !== void 0;
|
|
8577
|
+
if (_pollOption) flags |= 4096;
|
|
8507
8578
|
w.uint(flags);
|
|
8508
8579
|
if (_replyToMsgId) w.int(v.replyToMsgId);
|
|
8509
8580
|
if (_replyToPeerId) w.object(v.replyToPeerId);
|
|
@@ -8514,6 +8585,7 @@ var m = {
|
|
|
8514
8585
|
if (_quoteEntities) w.vector(w.object, v.quoteEntities);
|
|
8515
8586
|
if (_quoteOffset) w.int(v.quoteOffset);
|
|
8516
8587
|
if (_todoItemId) w.int(v.todoItemId);
|
|
8588
|
+
if (_pollOption) w.bytes(v.pollOption);
|
|
8517
8589
|
},
|
|
8518
8590
|
"messageReplyStoryHeader": function(w, v) {
|
|
8519
8591
|
w.uint(240843065);
|
|
@@ -9586,7 +9658,7 @@ var m = {
|
|
|
9586
9658
|
w.int(h(v, "id"));
|
|
9587
9659
|
},
|
|
9588
9660
|
"forumTopic": function(w, v) {
|
|
9589
|
-
w.uint(
|
|
9661
|
+
w.uint(4242200597);
|
|
9590
9662
|
var flags = 0;
|
|
9591
9663
|
var _iconEmojiId = v.iconEmojiId !== void 0;
|
|
9592
9664
|
if (_iconEmojiId) flags |= 1;
|
|
@@ -9611,6 +9683,7 @@ var m = {
|
|
|
9611
9683
|
w.int(h(v, "unreadCount"));
|
|
9612
9684
|
w.int(h(v, "unreadMentionsCount"));
|
|
9613
9685
|
w.int(h(v, "unreadReactionsCount"));
|
|
9686
|
+
w.int(h(v, "unreadPollVotesCount"));
|
|
9614
9687
|
w.object(h(v, "fromId"));
|
|
9615
9688
|
w.object(h(v, "notifySettings"));
|
|
9616
9689
|
if (_draft) w.object(v.draft);
|
|
@@ -9909,7 +9982,7 @@ var m = {
|
|
|
9909
9982
|
w.int(h(v, "expireDate"));
|
|
9910
9983
|
},
|
|
9911
9984
|
"storyItem": function(w, v) {
|
|
9912
|
-
w.uint(
|
|
9985
|
+
w.uint(379894076);
|
|
9913
9986
|
var flags = 0;
|
|
9914
9987
|
var _caption = v.caption !== void 0;
|
|
9915
9988
|
if (_caption) flags |= 1;
|
|
@@ -9938,6 +10011,8 @@ var m = {
|
|
|
9938
10011
|
if (_fromId) flags |= 262144;
|
|
9939
10012
|
var _albums = v.albums && v.albums.length;
|
|
9940
10013
|
if (_albums) flags |= 524288;
|
|
10014
|
+
var _music = v.music !== void 0;
|
|
10015
|
+
if (_music) flags |= 1048576;
|
|
9941
10016
|
w.uint(flags);
|
|
9942
10017
|
w.int(h(v, "id"));
|
|
9943
10018
|
w.int(h(v, "date"));
|
|
@@ -9952,6 +10027,7 @@ var m = {
|
|
|
9952
10027
|
if (_views) w.object(v.views);
|
|
9953
10028
|
if (_sentReaction) w.object(v.sentReaction);
|
|
9954
10029
|
if (_albums) w.vector(w.int, v.albums);
|
|
10030
|
+
if (_music) w.object(v.music);
|
|
9955
10031
|
},
|
|
9956
10032
|
"stories.allStoriesNotModified": function(w, v) {
|
|
9957
10033
|
w.uint(291044926);
|
|
@@ -10034,7 +10110,7 @@ var m = {
|
|
|
10034
10110
|
w.vector(w.object, h(v, "users"));
|
|
10035
10111
|
},
|
|
10036
10112
|
"inputReplyToMessage": function(w, v) {
|
|
10037
|
-
w.uint(
|
|
10113
|
+
w.uint(1003796418);
|
|
10038
10114
|
var flags = 0;
|
|
10039
10115
|
var _topMsgId = v.topMsgId !== void 0;
|
|
10040
10116
|
if (_topMsgId) flags |= 1;
|
|
@@ -10050,6 +10126,8 @@ var m = {
|
|
|
10050
10126
|
if (_monoforumPeerId) flags |= 32;
|
|
10051
10127
|
var _todoItemId = v.todoItemId !== void 0;
|
|
10052
10128
|
if (_todoItemId) flags |= 64;
|
|
10129
|
+
var _pollOption = v.pollOption !== void 0;
|
|
10130
|
+
if (_pollOption) flags |= 128;
|
|
10053
10131
|
w.uint(flags);
|
|
10054
10132
|
w.int(h(v, "replyToMsgId"));
|
|
10055
10133
|
if (_topMsgId) w.int(v.topMsgId);
|
|
@@ -10059,6 +10137,7 @@ var m = {
|
|
|
10059
10137
|
if (_quoteOffset) w.int(v.quoteOffset);
|
|
10060
10138
|
if (_monoforumPeerId) w.object(v.monoforumPeerId);
|
|
10061
10139
|
if (_todoItemId) w.int(v.todoItemId);
|
|
10140
|
+
if (_pollOption) w.bytes(v.pollOption);
|
|
10062
10141
|
},
|
|
10063
10142
|
"inputReplyToStory": function(w, v) {
|
|
10064
10143
|
w.uint(1484862010);
|
|
@@ -10974,15 +11053,18 @@ var m = {
|
|
|
10974
11053
|
w.uint(1268654752);
|
|
10975
11054
|
},
|
|
10976
11055
|
"reactionsNotifySettings": function(w, v) {
|
|
10977
|
-
w.uint(
|
|
11056
|
+
w.uint(1910827608);
|
|
10978
11057
|
var flags = 0;
|
|
10979
11058
|
var _messagesNotifyFrom = v.messagesNotifyFrom !== void 0;
|
|
10980
11059
|
if (_messagesNotifyFrom) flags |= 1;
|
|
10981
11060
|
var _storiesNotifyFrom = v.storiesNotifyFrom !== void 0;
|
|
10982
11061
|
if (_storiesNotifyFrom) flags |= 2;
|
|
11062
|
+
var _pollVotesNotifyFrom = v.pollVotesNotifyFrom !== void 0;
|
|
11063
|
+
if (_pollVotesNotifyFrom) flags |= 4;
|
|
10983
11064
|
w.uint(flags);
|
|
10984
11065
|
if (_messagesNotifyFrom) w.object(v.messagesNotifyFrom);
|
|
10985
11066
|
if (_storiesNotifyFrom) w.object(v.storiesNotifyFrom);
|
|
11067
|
+
if (_pollVotesNotifyFrom) w.object(v.pollVotesNotifyFrom);
|
|
10986
11068
|
w.object(h(v, "sound"));
|
|
10987
11069
|
w.boolean(h(v, "showPreviews"));
|
|
10988
11070
|
},
|
|
@@ -12347,6 +12429,90 @@ var m = {
|
|
|
12347
12429
|
w.uint(flags);
|
|
12348
12430
|
if (_icon) w.long(v.icon);
|
|
12349
12431
|
},
|
|
12432
|
+
"messageActionPollAppendAnswer": function(w, v) {
|
|
12433
|
+
w.uint(2644626796);
|
|
12434
|
+
w.object(h(v, "answer"));
|
|
12435
|
+
},
|
|
12436
|
+
"messageActionPollDeleteAnswer": function(w, v) {
|
|
12437
|
+
w.uint(966161628);
|
|
12438
|
+
w.object(h(v, "answer"));
|
|
12439
|
+
},
|
|
12440
|
+
"messageActionManagedBotCreated": function(w, v) {
|
|
12441
|
+
w.uint(375414334);
|
|
12442
|
+
w.int53(h(v, "botId"));
|
|
12443
|
+
},
|
|
12444
|
+
"inputMessagesFilterPoll": function(w) {
|
|
12445
|
+
w.uint(4197173514);
|
|
12446
|
+
},
|
|
12447
|
+
"updateManagedBot": function(w, v) {
|
|
12448
|
+
w.uint(1216408986);
|
|
12449
|
+
w.int53(h(v, "userId"));
|
|
12450
|
+
w.int53(h(v, "botId"));
|
|
12451
|
+
w.int(h(v, "qts"));
|
|
12452
|
+
},
|
|
12453
|
+
"messageEntityDiffInsert": function(w, v) {
|
|
12454
|
+
w.uint(1903653142);
|
|
12455
|
+
w.int(h(v, "offset"));
|
|
12456
|
+
w.int(h(v, "length"));
|
|
12457
|
+
},
|
|
12458
|
+
"messageEntityDiffReplace": function(w, v) {
|
|
12459
|
+
w.uint(3334596007);
|
|
12460
|
+
w.int(h(v, "offset"));
|
|
12461
|
+
w.int(h(v, "length"));
|
|
12462
|
+
w.string(h(v, "oldText"));
|
|
12463
|
+
},
|
|
12464
|
+
"messageEntityDiffDelete": function(w, v) {
|
|
12465
|
+
w.uint(106086853);
|
|
12466
|
+
w.int(h(v, "offset"));
|
|
12467
|
+
w.int(h(v, "length"));
|
|
12468
|
+
},
|
|
12469
|
+
"inputPollAnswer": function(w, v) {
|
|
12470
|
+
w.uint(429911446);
|
|
12471
|
+
var flags = 0;
|
|
12472
|
+
var _media = v.media !== void 0;
|
|
12473
|
+
if (_media) flags |= 1;
|
|
12474
|
+
w.uint(flags);
|
|
12475
|
+
w.object(h(v, "text"));
|
|
12476
|
+
if (_media) w.object(v.media);
|
|
12477
|
+
},
|
|
12478
|
+
"requestPeerTypeCreateBot": function(w, v) {
|
|
12479
|
+
w.uint(1048699e3);
|
|
12480
|
+
var flags = 0;
|
|
12481
|
+
if (v.botManaged === true) flags |= 1;
|
|
12482
|
+
var _suggestedName = v.suggestedName !== void 0;
|
|
12483
|
+
if (_suggestedName) flags |= 2;
|
|
12484
|
+
var _suggestedUsername = v.suggestedUsername !== void 0;
|
|
12485
|
+
if (_suggestedUsername) flags |= 4;
|
|
12486
|
+
w.uint(flags);
|
|
12487
|
+
if (_suggestedName) w.string(v.suggestedName);
|
|
12488
|
+
if (_suggestedUsername) w.string(v.suggestedUsername);
|
|
12489
|
+
},
|
|
12490
|
+
"inputMessageReadMetric": function(w, v) {
|
|
12491
|
+
w.uint(1076577429);
|
|
12492
|
+
w.int(h(v, "msgId"));
|
|
12493
|
+
w.long(h(v, "viewId"));
|
|
12494
|
+
w.int(h(v, "timeInViewMs"));
|
|
12495
|
+
w.int(h(v, "activeTimeInViewMs"));
|
|
12496
|
+
w.int(h(v, "heightToViewportRatioPermille"));
|
|
12497
|
+
w.int(h(v, "seenRangeRatioPermille"));
|
|
12498
|
+
},
|
|
12499
|
+
"bots.exportedBotToken": function(w, v) {
|
|
12500
|
+
w.uint(1012971041);
|
|
12501
|
+
w.string(h(v, "token"));
|
|
12502
|
+
},
|
|
12503
|
+
"bots.requestedButton": function(w, v) {
|
|
12504
|
+
w.uint(4047224023);
|
|
12505
|
+
w.string(h(v, "webappReqId"));
|
|
12506
|
+
},
|
|
12507
|
+
"messages.composedMessageWithAI": function(w, v) {
|
|
12508
|
+
w.uint(2430053882);
|
|
12509
|
+
var flags = 0;
|
|
12510
|
+
var _diffText = v.diffText !== void 0;
|
|
12511
|
+
if (_diffText) flags |= 1;
|
|
12512
|
+
w.uint(flags);
|
|
12513
|
+
w.object(h(v, "resultText"));
|
|
12514
|
+
if (_diffText) w.object(v.diffText);
|
|
12515
|
+
},
|
|
12350
12516
|
"updateChannelPinnedTopic": function(w, v) {
|
|
12351
12517
|
w.uint(422509539);
|
|
12352
12518
|
var flags = 0;
|
|
@@ -14407,9 +14573,10 @@ var m = {
|
|
|
14407
14573
|
w.vector(w.bytes, h(v, "options"));
|
|
14408
14574
|
},
|
|
14409
14575
|
"messages.getPollResults": function(w, v) {
|
|
14410
|
-
w.uint(
|
|
14576
|
+
w.uint(3986940731);
|
|
14411
14577
|
w.object(h(v, "peer"));
|
|
14412
14578
|
w.int(h(v, "msgId"));
|
|
14579
|
+
w.long(h(v, "pollHash"));
|
|
14413
14580
|
},
|
|
14414
14581
|
"messages.getOnlines": function(w, v) {
|
|
14415
14582
|
w.uint(1848369232);
|
|
@@ -14834,7 +15001,7 @@ var m = {
|
|
|
14834
15001
|
w.object(h(v, "reaction"));
|
|
14835
15002
|
},
|
|
14836
15003
|
"messages.translateText": function(w, v) {
|
|
14837
|
-
w.uint(
|
|
15004
|
+
w.uint(2783888197);
|
|
14838
15005
|
var flags = 0;
|
|
14839
15006
|
var _peer = v.peer !== void 0;
|
|
14840
15007
|
var _id = v.id && v.id.length;
|
|
@@ -14842,11 +15009,14 @@ var m = {
|
|
|
14842
15009
|
if (_flags_0) flags |= 1;
|
|
14843
15010
|
var _text = v.text && v.text.length;
|
|
14844
15011
|
if (_text) flags |= 2;
|
|
15012
|
+
var _tone = v.tone !== void 0;
|
|
15013
|
+
if (_tone) flags |= 4;
|
|
14845
15014
|
w.uint(flags);
|
|
14846
15015
|
if (_flags_0) w.object(v.peer);
|
|
14847
15016
|
if (_flags_0) w.vector(w.int, v.id);
|
|
14848
15017
|
if (_text) w.vector(w.object, v.text);
|
|
14849
15018
|
w.string(h(v, "toLang"));
|
|
15019
|
+
if (_tone) w.string(v.tone);
|
|
14850
15020
|
},
|
|
14851
15021
|
"messages.getUnreadReactions": function(w, v) {
|
|
14852
15022
|
w.uint(3179253932);
|
|
@@ -15029,9 +15199,16 @@ var m = {
|
|
|
15029
15199
|
w.uint(1703637384);
|
|
15030
15200
|
},
|
|
15031
15201
|
"messages.sendBotRequestedPeer": function(w, v) {
|
|
15032
|
-
w.uint(
|
|
15202
|
+
w.uint(1818030759);
|
|
15203
|
+
var flags = 0;
|
|
15204
|
+
var _msgId = v.msgId !== void 0;
|
|
15205
|
+
if (_msgId) flags |= 1;
|
|
15206
|
+
var _webappReqId = v.webappReqId !== void 0;
|
|
15207
|
+
if (_webappReqId) flags |= 2;
|
|
15208
|
+
w.uint(flags);
|
|
15033
15209
|
w.object(h(v, "peer"));
|
|
15034
|
-
w.int(
|
|
15210
|
+
if (_msgId) w.int(v.msgId);
|
|
15211
|
+
if (_webappReqId) w.string(v.webappReqId);
|
|
15035
15212
|
w.int(h(v, "buttonId"));
|
|
15036
15213
|
w.vector(w.object, h(v, "requestedPeers"));
|
|
15037
15214
|
},
|
|
@@ -15490,14 +15667,17 @@ var m = {
|
|
|
15490
15667
|
w.uint(4219374759);
|
|
15491
15668
|
},
|
|
15492
15669
|
"messages.summarizeText": function(w, v) {
|
|
15493
|
-
w.uint(
|
|
15670
|
+
w.uint(2881213254);
|
|
15494
15671
|
var flags = 0;
|
|
15495
15672
|
var _toLang = v.toLang !== void 0;
|
|
15496
15673
|
if (_toLang) flags |= 1;
|
|
15674
|
+
var _tone = v.tone !== void 0;
|
|
15675
|
+
if (_tone) flags |= 4;
|
|
15497
15676
|
w.uint(flags);
|
|
15498
15677
|
w.object(h(v, "peer"));
|
|
15499
15678
|
w.int(h(v, "id"));
|
|
15500
15679
|
if (_toLang) w.string(v.toLang);
|
|
15680
|
+
if (_tone) w.string(v.tone);
|
|
15501
15681
|
},
|
|
15502
15682
|
"messages.editChatCreator": function(w, v) {
|
|
15503
15683
|
w.uint(4148410455);
|
|
@@ -16639,6 +16819,7 @@ var m = {
|
|
|
16639
16819
|
var _attributes = v.attributes && v.attributes.length;
|
|
16640
16820
|
if (_attributes) flags |= 8;
|
|
16641
16821
|
if (v.forCraft === true) flags |= 16;
|
|
16822
|
+
if (v.starsOnly === true) flags |= 32;
|
|
16642
16823
|
w.uint(flags);
|
|
16643
16824
|
if (_attributesHash) w.long(v.attributesHash);
|
|
16644
16825
|
w.long(h(v, "giftId"));
|
|
@@ -17303,7 +17484,7 @@ var m = {
|
|
|
17303
17484
|
w.object(h(v, "peer"));
|
|
17304
17485
|
},
|
|
17305
17486
|
"stories.sendStory": function(w, v) {
|
|
17306
|
-
w.uint(
|
|
17487
|
+
w.uint(2409523352);
|
|
17307
17488
|
var flags = 0;
|
|
17308
17489
|
var _caption = v.caption !== void 0;
|
|
17309
17490
|
if (_caption) flags |= 1;
|
|
@@ -17322,6 +17503,8 @@ var m = {
|
|
|
17322
17503
|
if (v.fwdModified === true) flags |= 128;
|
|
17323
17504
|
var _albums = v.albums && v.albums.length;
|
|
17324
17505
|
if (_albums) flags |= 256;
|
|
17506
|
+
var _music = v.music !== void 0;
|
|
17507
|
+
if (_music) flags |= 512;
|
|
17325
17508
|
w.uint(flags);
|
|
17326
17509
|
w.object(h(v, "peer"));
|
|
17327
17510
|
w.object(h(v, "media"));
|
|
@@ -17334,9 +17517,10 @@ var m = {
|
|
|
17334
17517
|
if (_flags_6) w.object(v.fwdFromId);
|
|
17335
17518
|
if (_flags_6) w.int(v.fwdFromStory);
|
|
17336
17519
|
if (_albums) w.vector(w.int, v.albums);
|
|
17520
|
+
if (_music) w.object(v.music);
|
|
17337
17521
|
},
|
|
17338
17522
|
"stories.editStory": function(w, v) {
|
|
17339
|
-
w.uint(
|
|
17523
|
+
w.uint(744728363);
|
|
17340
17524
|
var flags = 0;
|
|
17341
17525
|
var _media = v.media !== void 0;
|
|
17342
17526
|
if (_media) flags |= 1;
|
|
@@ -17348,6 +17532,8 @@ var m = {
|
|
|
17348
17532
|
if (_privacyRules) flags |= 4;
|
|
17349
17533
|
var _mediaAreas = v.mediaAreas && v.mediaAreas.length;
|
|
17350
17534
|
if (_mediaAreas) flags |= 8;
|
|
17535
|
+
var _music = v.music !== void 0;
|
|
17536
|
+
if (_music) flags |= 16;
|
|
17351
17537
|
w.uint(flags);
|
|
17352
17538
|
w.object(h(v, "peer"));
|
|
17353
17539
|
w.int(h(v, "id"));
|
|
@@ -17356,6 +17542,7 @@ var m = {
|
|
|
17356
17542
|
if (_flags_1) w.string(v.caption);
|
|
17357
17543
|
if (_flags_1) w.vector(w.object, v.entities);
|
|
17358
17544
|
if (_privacyRules) w.vector(w.object, v.privacyRules);
|
|
17545
|
+
if (_music) w.object(v.music);
|
|
17359
17546
|
},
|
|
17360
17547
|
"stories.deleteStories": function(w, v) {
|
|
17361
17548
|
w.uint(2925124447);
|
|
@@ -17647,6 +17834,93 @@ var m = {
|
|
|
17647
17834
|
w.uint(3189671354);
|
|
17648
17835
|
w.object(h(v, "collectible"));
|
|
17649
17836
|
},
|
|
17837
|
+
"messages.composeMessageWithAI": function(w, v) {
|
|
17838
|
+
w.uint(4248988414);
|
|
17839
|
+
var flags = 0;
|
|
17840
|
+
if (v.proofread === true) flags |= 1;
|
|
17841
|
+
var _translateToLang = v.translateToLang !== void 0;
|
|
17842
|
+
if (_translateToLang) flags |= 2;
|
|
17843
|
+
var _changeTone = v.changeTone !== void 0;
|
|
17844
|
+
if (_changeTone) flags |= 4;
|
|
17845
|
+
if (v.emojify === true) flags |= 8;
|
|
17846
|
+
w.uint(flags);
|
|
17847
|
+
w.object(h(v, "text"));
|
|
17848
|
+
if (_translateToLang) w.string(v.translateToLang);
|
|
17849
|
+
if (_changeTone) w.string(v.changeTone);
|
|
17850
|
+
},
|
|
17851
|
+
"messages.reportReadMetrics": function(w, v) {
|
|
17852
|
+
w.uint(1080542694);
|
|
17853
|
+
w.object(h(v, "peer"));
|
|
17854
|
+
w.vector(w.object, h(v, "metrics"));
|
|
17855
|
+
},
|
|
17856
|
+
"messages.reportMusicListen": function(w, v) {
|
|
17857
|
+
w.uint(3720140825);
|
|
17858
|
+
w.object(h(v, "id"));
|
|
17859
|
+
w.int(h(v, "listenedDuration"));
|
|
17860
|
+
},
|
|
17861
|
+
"messages.addPollAnswer": function(w, v) {
|
|
17862
|
+
w.uint(431770477);
|
|
17863
|
+
w.object(h(v, "peer"));
|
|
17864
|
+
w.int(h(v, "msgId"));
|
|
17865
|
+
w.object(h(v, "answer"));
|
|
17866
|
+
},
|
|
17867
|
+
"messages.deletePollAnswer": function(w, v) {
|
|
17868
|
+
w.uint(2894398885);
|
|
17869
|
+
w.object(h(v, "peer"));
|
|
17870
|
+
w.int(h(v, "msgId"));
|
|
17871
|
+
w.bytes(h(v, "option"));
|
|
17872
|
+
},
|
|
17873
|
+
"messages.getUnreadPollVotes": function(w, v) {
|
|
17874
|
+
w.uint(1126722802);
|
|
17875
|
+
var flags = 0;
|
|
17876
|
+
var _topMsgId = v.topMsgId !== void 0;
|
|
17877
|
+
if (_topMsgId) flags |= 1;
|
|
17878
|
+
w.uint(flags);
|
|
17879
|
+
w.object(h(v, "peer"));
|
|
17880
|
+
if (_topMsgId) w.int(v.topMsgId);
|
|
17881
|
+
w.int(h(v, "offsetId"));
|
|
17882
|
+
w.int(h(v, "addOffset"));
|
|
17883
|
+
w.int(h(v, "limit"));
|
|
17884
|
+
w.int(h(v, "maxId"));
|
|
17885
|
+
w.int(h(v, "minId"));
|
|
17886
|
+
},
|
|
17887
|
+
"messages.readPollVotes": function(w, v) {
|
|
17888
|
+
w.uint(388019416);
|
|
17889
|
+
var flags = 0;
|
|
17890
|
+
var _topMsgId = v.topMsgId !== void 0;
|
|
17891
|
+
if (_topMsgId) flags |= 1;
|
|
17892
|
+
w.uint(flags);
|
|
17893
|
+
w.object(h(v, "peer"));
|
|
17894
|
+
if (_topMsgId) w.int(v.topMsgId);
|
|
17895
|
+
},
|
|
17896
|
+
"bots.checkUsername": function(w, v) {
|
|
17897
|
+
w.uint(2280792475);
|
|
17898
|
+
w.string(h(v, "username"));
|
|
17899
|
+
},
|
|
17900
|
+
"bots.createBot": function(w, v) {
|
|
17901
|
+
w.uint(3853614891);
|
|
17902
|
+
var flags = 0;
|
|
17903
|
+
if (v.viaDeeplink === true) flags |= 1;
|
|
17904
|
+
w.uint(flags);
|
|
17905
|
+
w.string(h(v, "name"));
|
|
17906
|
+
w.string(h(v, "username"));
|
|
17907
|
+
w.object(h(v, "managerId"));
|
|
17908
|
+
},
|
|
17909
|
+
"bots.exportBotToken": function(w, v) {
|
|
17910
|
+
w.uint(3171785195);
|
|
17911
|
+
w.object(h(v, "bot"));
|
|
17912
|
+
w.boolean(h(v, "revoke"));
|
|
17913
|
+
},
|
|
17914
|
+
"bots.requestWebViewButton": function(w, v) {
|
|
17915
|
+
w.uint(832742238);
|
|
17916
|
+
w.object(h(v, "userId"));
|
|
17917
|
+
w.object(h(v, "button"));
|
|
17918
|
+
},
|
|
17919
|
+
"bots.getRequestedWebViewButton": function(w, v) {
|
|
17920
|
+
w.uint(3206920179);
|
|
17921
|
+
w.object(h(v, "bot"));
|
|
17922
|
+
w.string(h(v, "webappReqId"));
|
|
17923
|
+
},
|
|
17650
17924
|
"channels.editCreator": function(w, v) {
|
|
17651
17925
|
w.uint(2402864415);
|
|
17652
17926
|
w.object(h(v, "channel"));
|
|
@@ -17726,10 +18000,6 @@ var m = {
|
|
|
17726
18000
|
w.object(h(v, "channel"));
|
|
17727
18001
|
w.vector(w.int, h(v, "order"));
|
|
17728
18002
|
},
|
|
17729
|
-
"channels.getFutureCreatorAfterLeave": function(w, v) {
|
|
17730
|
-
w.uint(2684950703);
|
|
17731
|
-
w.object(h(v, "channel"));
|
|
17732
|
-
},
|
|
17733
18003
|
"mtcute.customMethod": function(w, v) {
|
|
17734
18004
|
w.raw(h(v, "bytes"));
|
|
17735
18005
|
},
|
|
@@ -18513,6 +18783,12 @@ var m = {
|
|
|
18513
18783
|
"starGiftAttributeRarityRare": 4,
|
|
18514
18784
|
"starGiftAttributeRarityEpic": 4,
|
|
18515
18785
|
"starGiftAttributeRarityLegendary": 4,
|
|
18786
|
+
"messageActionManagedBotCreated": 12,
|
|
18787
|
+
"inputMessagesFilterPoll": 4,
|
|
18788
|
+
"updateManagedBot": 24,
|
|
18789
|
+
"messageEntityDiffInsert": 12,
|
|
18790
|
+
"messageEntityDiffDelete": 12,
|
|
18791
|
+
"inputMessageReadMetric": 32,
|
|
18516
18792
|
"updateChannelPinnedTopic": 20,
|
|
18517
18793
|
"auth.logOut": 4,
|
|
18518
18794
|
"auth.resetAuthorizations": 4,
|