@mtcute/core 0.29.4 → 0.29.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/highlevel/base.cjs +0 -1
  2. package/highlevel/base.js +0 -1
  3. package/highlevel/methods/chats/get-creator-after-leave.cjs +4 -14
  4. package/highlevel/methods/chats/get-creator-after-leave.js +5 -15
  5. package/highlevel/methods/files/normalize-input-media.cjs +16 -14
  6. package/highlevel/methods/files/normalize-input-media.js +16 -14
  7. package/highlevel/methods/messages/close-poll.cjs +2 -1
  8. package/highlevel/methods/messages/close-poll.js +2 -1
  9. package/highlevel/methods/messages/send-vote.cjs +3 -1
  10. package/highlevel/methods/messages/send-vote.js +4 -2
  11. package/highlevel/storage/service/peers.cjs +1 -0
  12. package/highlevel/storage/service/peers.js +1 -0
  13. package/highlevel/types/media/input-media/types.d.cts +10 -13
  14. package/highlevel/types/media/input-media/types.d.ts +10 -13
  15. package/highlevel/types/media/poll.cjs +4 -1
  16. package/highlevel/types/media/poll.d.cts +2 -2
  17. package/highlevel/types/media/poll.d.ts +2 -2
  18. package/highlevel/types/media/poll.js +4 -1
  19. package/highlevel/types/messages/dialog.cjs +4 -0
  20. package/highlevel/types/messages/dialog.d.cts +2 -0
  21. package/highlevel/types/messages/dialog.d.ts +2 -0
  22. package/highlevel/types/messages/dialog.js +4 -0
  23. package/highlevel/types/messages/message-action.cjs +18 -0
  24. package/highlevel/types/messages/message-action.d.cts +19 -1
  25. package/highlevel/types/messages/message-action.d.ts +19 -1
  26. package/highlevel/types/messages/message-action.js +18 -0
  27. package/highlevel/types/peers/forum-topic.cjs +4 -0
  28. package/highlevel/types/peers/forum-topic.d.cts +2 -0
  29. package/highlevel/types/peers/forum-topic.d.ts +2 -0
  30. package/highlevel/types/peers/forum-topic.js +4 -0
  31. package/highlevel/types/peers/full-user.cjs +8 -0
  32. package/highlevel/types/peers/full-user.d.cts +4 -0
  33. package/highlevel/types/peers/full-user.d.ts +4 -0
  34. package/highlevel/types/peers/full-user.js +8 -0
  35. package/highlevel/types/peers/user.cjs +4 -0
  36. package/highlevel/types/peers/user.d.cts +2 -0
  37. package/highlevel/types/peers/user.d.ts +2 -0
  38. package/highlevel/types/peers/user.js +4 -0
  39. package/highlevel/types/updates/poll-update.cjs +8 -2
  40. package/highlevel/types/updates/poll-update.js +8 -2
  41. package/highlevel/updates/manager.cjs +7 -0
  42. package/highlevel/updates/manager.js +7 -0
  43. package/highlevel/worker/worker.cjs +6 -1
  44. package/highlevel/worker/worker.d.cts +2 -1
  45. package/highlevel/worker/worker.d.ts +2 -1
  46. package/highlevel/worker/worker.js +6 -1
  47. package/network/middlewares/flood-waiter.cjs +2 -1
  48. package/network/middlewares/flood-waiter.js +2 -1
  49. package/network/network-manager.cjs +1 -1
  50. package/network/network-manager.js +1 -1
  51. package/package.json +1 -1
  52. package/tl/api-schema.json +1 -1
  53. package/tl/binary/reader.cjs +86 -39
  54. package/tl/binary/reader.js +86 -39
  55. package/tl/binary/writer.cjs +308 -32
  56. package/tl/binary/writer.js +308 -32
  57. package/tl/compat/reader.cjs +34 -0
  58. package/tl/compat/reader.js +34 -0
  59. package/tl/index.d.cts +295 -25
  60. package/tl/index.d.ts +295 -25
  61. package/tl/inner-tl.cjs +16 -8
  62. package/tl/inner-tl.js +16 -8
  63. package/utils/binary/compat.cjs +41 -0
  64. package/utils/binary/compat.js +41 -0
@@ -113,27 +113,35 @@ var m = {
113
113
  w.uint(2523198847);
114
114
  },
115
115
  "inputMediaUploadedPhoto": function(w, v) {
116
- w.uint(505969924);
116
+ w.uint(2105767386);
117
117
  var flags = 0;
118
118
  var _stickers = v.stickers && v.stickers.length;
119
119
  if (_stickers) flags |= 1;
120
120
  var _ttlSeconds = v.ttlSeconds !== void 0;
121
121
  if (_ttlSeconds) flags |= 2;
122
122
  if (v.spoiler === true) flags |= 4;
123
+ var _video = v.video !== void 0;
124
+ var _flags_3 = v.livePhoto === true || _video;
125
+ if (_flags_3) flags |= 8;
123
126
  w.uint(flags);
124
127
  w.object(h(v, "file"));
125
128
  if (_stickers) w.vector(w.object, v.stickers);
126
129
  if (_ttlSeconds) w.int(v.ttlSeconds);
130
+ if (_flags_3) w.object(v.video);
127
131
  },
128
132
  "inputMediaPhoto": function(w, v) {
129
- w.uint(3015312949);
133
+ w.uint(3819914292);
130
134
  var flags = 0;
131
135
  var _ttlSeconds = v.ttlSeconds !== void 0;
132
136
  if (_ttlSeconds) flags |= 1;
133
137
  if (v.spoiler === true) flags |= 2;
138
+ var _video = v.video !== void 0;
139
+ var _flags_2 = v.livePhoto === true || _video;
140
+ if (_flags_2) flags |= 4;
134
141
  w.uint(flags);
135
142
  w.object(h(v, "id"));
136
143
  if (_ttlSeconds) w.int(v.ttlSeconds);
144
+ if (_flags_2) w.object(v.video);
137
145
  },
138
146
  "inputMediaGeoPoint": function(w, v) {
139
147
  w.uint(4190388548);
@@ -269,7 +277,7 @@ var m = {
269
277
  if (_proximityNotificationRadius) w.int(v.proximityNotificationRadius);
270
278
  },
271
279
  "inputMediaPoll": function(w, v) {
272
- w.uint(261416433);
280
+ w.uint(2285519112);
273
281
  var flags = 0;
274
282
  var _correctAnswers = v.correctAnswers && v.correctAnswers.length;
275
283
  if (_correctAnswers) flags |= 1;
@@ -277,11 +285,17 @@ var m = {
277
285
  var _solutionEntities = v.solutionEntities && v.solutionEntities.length;
278
286
  var _flags_1 = _solution || _solutionEntities;
279
287
  if (_flags_1) flags |= 2;
288
+ var _solutionMedia = v.solutionMedia !== void 0;
289
+ if (_solutionMedia) flags |= 4;
290
+ var _attachedMedia = v.attachedMedia !== void 0;
291
+ if (_attachedMedia) flags |= 8;
280
292
  w.uint(flags);
281
293
  w.object(h(v, "poll"));
282
- if (_correctAnswers) w.vector(w.bytes, v.correctAnswers);
294
+ if (_correctAnswers) w.vector(w.int, v.correctAnswers);
295
+ if (_attachedMedia) w.object(v.attachedMedia);
283
296
  if (_flags_1) w.string(v.solution);
284
297
  if (_flags_1) w.vector(w.object, v.solutionEntities);
298
+ if (_solutionMedia) w.object(v.solutionMedia);
285
299
  },
286
300
  "inputMediaDice": function(w, v) {
287
301
  w.uint(3866083195);
@@ -553,6 +567,7 @@ var m = {
553
567
  if (_sendPaidMessagesStars) flags2 |= 32768;
554
568
  if (v.botForumView === true) flags2 |= 65536;
555
569
  if (v.botForumCanManageTopics === true) flags2 |= 131072;
570
+ if (v.botCanManageBots === true) flags2 |= 262144;
556
571
  w.uint(flags2);
557
572
  w.int53(h(v, "id"));
558
573
  if (_accessHash) w.long(v.accessHash);
@@ -1168,16 +1183,20 @@ var m = {
1168
1183
  w.uint(1038967584);
1169
1184
  },
1170
1185
  "messageMediaPhoto": function(w, v) {
1171
- w.uint(1766936791);
1186
+ w.uint(3793152867);
1172
1187
  var flags = 0;
1173
1188
  var _photo = v.photo !== void 0;
1174
1189
  if (_photo) flags |= 1;
1175
1190
  var _ttlSeconds = v.ttlSeconds !== void 0;
1176
1191
  if (_ttlSeconds) flags |= 4;
1177
1192
  if (v.spoiler === true) flags |= 8;
1193
+ var _video = v.video !== void 0;
1194
+ var _flags_4 = v.livePhoto === true || _video;
1195
+ if (_flags_4) flags |= 16;
1178
1196
  w.uint(flags);
1179
1197
  if (_photo) w.object(v.photo);
1180
1198
  if (_ttlSeconds) w.int(v.ttlSeconds);
1199
+ if (_flags_4) w.object(v.video);
1181
1200
  },
1182
1201
  "messageMediaGeo": function(w, v) {
1183
1202
  w.uint(1457575028);
@@ -1277,9 +1296,14 @@ var m = {
1277
1296
  if (_proximityNotificationRadius) w.int(v.proximityNotificationRadius);
1278
1297
  },
1279
1298
  "messageMediaPoll": function(w, v) {
1280
- w.uint(1272375192);
1299
+ w.uint(2000637542);
1300
+ var flags = 0;
1301
+ var _attachedMedia = v.attachedMedia !== void 0;
1302
+ if (_attachedMedia) flags |= 1;
1303
+ w.uint(flags);
1281
1304
  w.object(h(v, "poll"));
1282
1305
  w.object(h(v, "results"));
1306
+ if (_attachedMedia) w.object(v.attachedMedia);
1283
1307
  },
1284
1308
  "messageMediaDice": function(w, v) {
1285
1309
  w.uint(147581959);
@@ -1918,7 +1942,7 @@ var m = {
1918
1942
  w.boolean(h(v, "newValue"));
1919
1943
  },
1920
1944
  "dialog": function(w, v) {
1921
- w.uint(3582593222);
1945
+ w.uint(4236900339);
1922
1946
  var flags = 0;
1923
1947
  var _pts = v.pts !== void 0;
1924
1948
  if (_pts) flags |= 1;
@@ -1939,6 +1963,7 @@ var m = {
1939
1963
  w.int(h(v, "unreadCount"));
1940
1964
  w.int(h(v, "unreadMentionsCount"));
1941
1965
  w.int(h(v, "unreadReactionsCount"));
1966
+ w.int(h(v, "unreadPollVotesCount"));
1942
1967
  w.object(h(v, "notifySettings"));
1943
1968
  if (_pts) w.int(v.pts);
1944
1969
  if (_draft) w.object(v.draft);
@@ -2267,7 +2292,7 @@ var m = {
2267
2292
  w.uint(2663876157);
2268
2293
  },
2269
2294
  "userFull": function(w, v) {
2270
- w.uint(2687222078);
2295
+ w.uint(114026053);
2271
2296
  var flags = 0;
2272
2297
  if (v.blocked === true) flags |= 1;
2273
2298
  var _about = v.about !== void 0;
@@ -2356,6 +2381,9 @@ var m = {
2356
2381
  if (_note) flags2 |= 4194304;
2357
2382
  if (v.noforwardsMyEnabled === true) flags2 |= 8388608;
2358
2383
  if (v.noforwardsPeerEnabled === true) flags2 |= 16777216;
2384
+ var _botManagerId = v.botManagerId !== void 0;
2385
+ if (_botManagerId) flags2 |= 33554432;
2386
+ if (v.unofficialSecurityRisk === true) flags2 |= 67108864;
2359
2387
  w.uint(flags2);
2360
2388
  w.int53(h(v, "id"));
2361
2389
  if (_about) w.string(v.about);
@@ -2394,6 +2422,7 @@ var m = {
2394
2422
  if (_mainTab) w.object(v.mainTab);
2395
2423
  if (_savedMusic) w.object(v.savedMusic);
2396
2424
  if (_note) w.object(v.note);
2425
+ if (_botManagerId) w.int53(v.botManagerId);
2397
2426
  },
2398
2427
  "contact": function(w, v) {
2399
2428
  w.uint(341499403);
@@ -3032,11 +3061,20 @@ var m = {
3032
3061
  if (_savedPeerId) w.object(v.savedPeerId);
3033
3062
  },
3034
3063
  "updateMessagePoll": function(w, v) {
3035
- w.uint(2896258427);
3064
+ w.uint(3595325995);
3036
3065
  var flags = 0;
3037
3066
  var _poll = v.poll !== void 0;
3038
3067
  if (_poll) flags |= 1;
3068
+ var _peer = v.peer !== void 0;
3069
+ var _msgId = v.msgId !== void 0;
3070
+ var _flags_1 = _peer || _msgId;
3071
+ if (_flags_1) flags |= 2;
3072
+ var _topMsgId = v.topMsgId !== void 0;
3073
+ if (_topMsgId) flags |= 4;
3039
3074
  w.uint(flags);
3075
+ if (_flags_1) w.object(v.peer);
3076
+ if (_flags_1) w.int(v.msgId);
3077
+ if (_topMsgId) w.int(v.topMsgId);
3040
3078
  w.long(h(v, "pollId"));
3041
3079
  if (_poll) w.object(v.poll);
3042
3080
  w.object(h(v, "results"));
@@ -3089,10 +3127,11 @@ var m = {
3089
3127
  w.uint(1448076945);
3090
3128
  },
3091
3129
  "updateMessagePollVote": function(w, v) {
3092
- w.uint(619974263);
3130
+ w.uint(1989799956);
3093
3131
  w.long(h(v, "pollId"));
3094
3132
  w.object(h(v, "peer"));
3095
3133
  w.vector(w.bytes, h(v, "options"));
3134
+ w.vector(w.int, h(v, "positions"));
3096
3135
  w.int(h(v, "qts"));
3097
3136
  },
3098
3137
  "updateDialogFilter": function(w, v) {
@@ -7704,12 +7743,23 @@ var m = {
7704
7743
  w.int(h(v, "date"));
7705
7744
  },
7706
7745
  "pollAnswer": function(w, v) {
7707
- w.uint(4279689930);
7746
+ w.uint(1266514026);
7747
+ var flags = 0;
7748
+ var _media = v.media !== void 0;
7749
+ if (_media) flags |= 1;
7750
+ var _addedBy = v.addedBy !== void 0;
7751
+ var _date = v.date !== void 0;
7752
+ var _flags_1 = _addedBy || _date;
7753
+ if (_flags_1) flags |= 2;
7754
+ w.uint(flags);
7708
7755
  w.object(h(v, "text"));
7709
7756
  w.bytes(h(v, "option"));
7757
+ if (_media) w.object(v.media);
7758
+ if (_flags_1) w.object(v.addedBy);
7759
+ if (_flags_1) w.int(v.date);
7710
7760
  },
7711
7761
  "poll": function(w, v) {
7712
- w.uint(1484026161);
7762
+ w.uint(3091356649);
7713
7763
  w.long(h(v, "id"));
7714
7764
  var flags = 0;
7715
7765
  if (v.closed === true) flags |= 1;
@@ -7720,23 +7770,34 @@ var m = {
7720
7770
  if (_closePeriod) flags |= 16;
7721
7771
  var _closeDate = v.closeDate !== void 0;
7722
7772
  if (_closeDate) flags |= 32;
7773
+ if (v.openAnswers === true) flags |= 64;
7774
+ if (v.revotingDisabled === true) flags |= 128;
7775
+ if (v.shuffleAnswers === true) flags |= 256;
7776
+ if (v.hideResultsUntilClose === true) flags |= 512;
7777
+ if (v.creator === true) flags |= 1024;
7723
7778
  w.uint(flags);
7724
7779
  w.object(h(v, "question"));
7725
7780
  w.vector(w.object, h(v, "answers"));
7726
7781
  if (_closePeriod) w.int(v.closePeriod);
7727
7782
  if (_closeDate) w.int(v.closeDate);
7783
+ w.long(h(v, "hash"));
7728
7784
  },
7729
7785
  "pollAnswerVoters": function(w, v) {
7730
- w.uint(997055186);
7786
+ w.uint(910500618);
7731
7787
  var flags = 0;
7732
7788
  if (v.chosen === true) flags |= 1;
7733
7789
  if (v.correct === true) flags |= 2;
7790
+ var _voters = v.voters !== void 0;
7791
+ var _recentVoters = v.recentVoters && v.recentVoters.length;
7792
+ var _flags_2 = _voters || _recentVoters;
7793
+ if (_flags_2) flags |= 4;
7734
7794
  w.uint(flags);
7735
7795
  w.bytes(h(v, "option"));
7736
- w.int(h(v, "voters"));
7796
+ if (_flags_2) w.int(v.voters);
7797
+ if (_flags_2) w.vector(w.object, v.recentVoters);
7737
7798
  },
7738
7799
  "pollResults": function(w, v) {
7739
- w.uint(2061444128);
7800
+ w.uint(3128668510);
7740
7801
  var flags = 0;
7741
7802
  if (v.min === true) flags |= 1;
7742
7803
  var _results = v.results && v.results.length;
@@ -7749,12 +7810,16 @@ var m = {
7749
7810
  var _solutionEntities = v.solutionEntities && v.solutionEntities.length;
7750
7811
  var _flags_4 = _solution || _solutionEntities;
7751
7812
  if (_flags_4) flags |= 16;
7813
+ var _solutionMedia = v.solutionMedia !== void 0;
7814
+ if (_solutionMedia) flags |= 32;
7815
+ if (v.hasUnreadVotes === true) flags |= 64;
7752
7816
  w.uint(flags);
7753
7817
  if (_results) w.vector(w.object, v.results);
7754
7818
  if (_totalVoters) w.int(v.totalVoters);
7755
7819
  if (_recentVoters) w.vector(w.object, v.recentVoters);
7756
7820
  if (_flags_4) w.string(v.solution);
7757
7821
  if (_flags_4) w.vector(w.object, v.solutionEntities);
7822
+ if (_solutionMedia) w.object(v.solutionMedia);
7758
7823
  },
7759
7824
  "chatOnlines": function(w, v) {
7760
7825
  w.uint(4030849616);
@@ -7961,7 +8026,7 @@ var m = {
7961
8026
  w.int(h(v, "count"));
7962
8027
  },
7963
8028
  "urlAuthResultRequest": function(w, v) {
7964
- w.uint(4177062686);
8029
+ w.uint(1020666860);
7965
8030
  var flags = 0;
7966
8031
  if (v.requestWriteAccess === true) flags |= 1;
7967
8032
  if (v.requestPhoneNumber === true) flags |= 2;
@@ -7976,6 +8041,9 @@ var m = {
7976
8041
  var _userIdHint = v.userIdHint !== void 0;
7977
8042
  if (_userIdHint) flags |= 16;
7978
8043
  if (v.matchCodesFirst === true) flags |= 32;
8044
+ if (v.isApp === true) flags |= 64;
8045
+ var _verifiedAppName = v.verifiedAppName !== void 0;
8046
+ if (_verifiedAppName) flags |= 128;
7979
8047
  w.uint(flags);
7980
8048
  w.object(h(v, "bot"));
7981
8049
  w.string(h(v, "domain"));
@@ -7985,6 +8053,7 @@ var m = {
7985
8053
  if (_flags_2) w.string(v.region);
7986
8054
  if (_matchCodes) w.vector(w.string, v.matchCodes);
7987
8055
  if (_userIdHint) w.int53(v.userIdHint);
8056
+ if (_verifiedAppName) w.string(v.verifiedAppName);
7988
8057
  },
7989
8058
  "urlAuthResultAccepted": function(w, v) {
7990
8059
  w.uint(1648005024);
@@ -8488,7 +8557,7 @@ var m = {
8488
8557
  w.vector(w.object, h(v, "users"));
8489
8558
  },
8490
8559
  "messageReplyHeader": function(w, v) {
8491
- w.uint(1763137035);
8560
+ w.uint(462937446);
8492
8561
  var flags = 0;
8493
8562
  var _replyToPeerId = v.replyToPeerId !== void 0;
8494
8563
  if (_replyToPeerId) flags |= 1;
@@ -8511,6 +8580,8 @@ var m = {
8511
8580
  if (_quoteOffset) flags |= 1024;
8512
8581
  var _todoItemId = v.todoItemId !== void 0;
8513
8582
  if (_todoItemId) flags |= 2048;
8583
+ var _pollOption = v.pollOption !== void 0;
8584
+ if (_pollOption) flags |= 4096;
8514
8585
  w.uint(flags);
8515
8586
  if (_replyToMsgId) w.int(v.replyToMsgId);
8516
8587
  if (_replyToPeerId) w.object(v.replyToPeerId);
@@ -8521,6 +8592,7 @@ var m = {
8521
8592
  if (_quoteEntities) w.vector(w.object, v.quoteEntities);
8522
8593
  if (_quoteOffset) w.int(v.quoteOffset);
8523
8594
  if (_todoItemId) w.int(v.todoItemId);
8595
+ if (_pollOption) w.bytes(v.pollOption);
8524
8596
  },
8525
8597
  "messageReplyStoryHeader": function(w, v) {
8526
8598
  w.uint(240843065);
@@ -9593,7 +9665,7 @@ var m = {
9593
9665
  w.int(h(v, "id"));
9594
9666
  },
9595
9667
  "forumTopic": function(w, v) {
9596
- w.uint(3456044746);
9668
+ w.uint(4242200597);
9597
9669
  var flags = 0;
9598
9670
  var _iconEmojiId = v.iconEmojiId !== void 0;
9599
9671
  if (_iconEmojiId) flags |= 1;
@@ -9618,6 +9690,7 @@ var m = {
9618
9690
  w.int(h(v, "unreadCount"));
9619
9691
  w.int(h(v, "unreadMentionsCount"));
9620
9692
  w.int(h(v, "unreadReactionsCount"));
9693
+ w.int(h(v, "unreadPollVotesCount"));
9621
9694
  w.object(h(v, "fromId"));
9622
9695
  w.object(h(v, "notifySettings"));
9623
9696
  if (_draft) w.object(v.draft);
@@ -9916,7 +9989,7 @@ var m = {
9916
9989
  w.int(h(v, "expireDate"));
9917
9990
  },
9918
9991
  "storyItem": function(w, v) {
9919
- w.uint(3992020209);
9992
+ w.uint(379894076);
9920
9993
  var flags = 0;
9921
9994
  var _caption = v.caption !== void 0;
9922
9995
  if (_caption) flags |= 1;
@@ -9945,6 +10018,8 @@ var m = {
9945
10018
  if (_fromId) flags |= 262144;
9946
10019
  var _albums = v.albums && v.albums.length;
9947
10020
  if (_albums) flags |= 524288;
10021
+ var _music = v.music !== void 0;
10022
+ if (_music) flags |= 1048576;
9948
10023
  w.uint(flags);
9949
10024
  w.int(h(v, "id"));
9950
10025
  w.int(h(v, "date"));
@@ -9959,6 +10034,7 @@ var m = {
9959
10034
  if (_views) w.object(v.views);
9960
10035
  if (_sentReaction) w.object(v.sentReaction);
9961
10036
  if (_albums) w.vector(w.int, v.albums);
10037
+ if (_music) w.object(v.music);
9962
10038
  },
9963
10039
  "stories.allStoriesNotModified": function(w, v) {
9964
10040
  w.uint(291044926);
@@ -10041,7 +10117,7 @@ var m = {
10041
10117
  w.vector(w.object, h(v, "users"));
10042
10118
  },
10043
10119
  "inputReplyToMessage": function(w, v) {
10044
- w.uint(2258615824);
10120
+ w.uint(1003796418);
10045
10121
  var flags = 0;
10046
10122
  var _topMsgId = v.topMsgId !== void 0;
10047
10123
  if (_topMsgId) flags |= 1;
@@ -10057,6 +10133,8 @@ var m = {
10057
10133
  if (_monoforumPeerId) flags |= 32;
10058
10134
  var _todoItemId = v.todoItemId !== void 0;
10059
10135
  if (_todoItemId) flags |= 64;
10136
+ var _pollOption = v.pollOption !== void 0;
10137
+ if (_pollOption) flags |= 128;
10060
10138
  w.uint(flags);
10061
10139
  w.int(h(v, "replyToMsgId"));
10062
10140
  if (_topMsgId) w.int(v.topMsgId);
@@ -10066,6 +10144,7 @@ var m = {
10066
10144
  if (_quoteOffset) w.int(v.quoteOffset);
10067
10145
  if (_monoforumPeerId) w.object(v.monoforumPeerId);
10068
10146
  if (_todoItemId) w.int(v.todoItemId);
10147
+ if (_pollOption) w.bytes(v.pollOption);
10069
10148
  },
10070
10149
  "inputReplyToStory": function(w, v) {
10071
10150
  w.uint(1484862010);
@@ -10981,15 +11060,18 @@ var m = {
10981
11060
  w.uint(1268654752);
10982
11061
  },
10983
11062
  "reactionsNotifySettings": function(w, v) {
10984
- w.uint(1457736048);
11063
+ w.uint(1910827608);
10985
11064
  var flags = 0;
10986
11065
  var _messagesNotifyFrom = v.messagesNotifyFrom !== void 0;
10987
11066
  if (_messagesNotifyFrom) flags |= 1;
10988
11067
  var _storiesNotifyFrom = v.storiesNotifyFrom !== void 0;
10989
11068
  if (_storiesNotifyFrom) flags |= 2;
11069
+ var _pollVotesNotifyFrom = v.pollVotesNotifyFrom !== void 0;
11070
+ if (_pollVotesNotifyFrom) flags |= 4;
10990
11071
  w.uint(flags);
10991
11072
  if (_messagesNotifyFrom) w.object(v.messagesNotifyFrom);
10992
11073
  if (_storiesNotifyFrom) w.object(v.storiesNotifyFrom);
11074
+ if (_pollVotesNotifyFrom) w.object(v.pollVotesNotifyFrom);
10993
11075
  w.object(h(v, "sound"));
10994
11076
  w.boolean(h(v, "showPreviews"));
10995
11077
  },
@@ -12354,6 +12436,90 @@ var m = {
12354
12436
  w.uint(flags);
12355
12437
  if (_icon) w.long(v.icon);
12356
12438
  },
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
+ "inputMessageReadMetric": function(w, v) {
12498
+ w.uint(1076577429);
12499
+ w.int(h(v, "msgId"));
12500
+ w.long(h(v, "viewId"));
12501
+ w.int(h(v, "timeInViewMs"));
12502
+ w.int(h(v, "activeTimeInViewMs"));
12503
+ w.int(h(v, "heightToViewportRatioPermille"));
12504
+ w.int(h(v, "seenRangeRatioPermille"));
12505
+ },
12506
+ "bots.exportedBotToken": function(w, v) {
12507
+ w.uint(1012971041);
12508
+ w.string(h(v, "token"));
12509
+ },
12510
+ "bots.requestedButton": function(w, v) {
12511
+ w.uint(4047224023);
12512
+ w.string(h(v, "webappReqId"));
12513
+ },
12514
+ "messages.composedMessageWithAI": function(w, v) {
12515
+ w.uint(2430053882);
12516
+ var flags = 0;
12517
+ var _diffText = v.diffText !== void 0;
12518
+ if (_diffText) flags |= 1;
12519
+ w.uint(flags);
12520
+ w.object(h(v, "resultText"));
12521
+ if (_diffText) w.object(v.diffText);
12522
+ },
12357
12523
  "updateChannelPinnedTopic": function(w, v) {
12358
12524
  w.uint(422509539);
12359
12525
  var flags = 0;
@@ -14414,9 +14580,10 @@ var m = {
14414
14580
  w.vector(w.bytes, h(v, "options"));
14415
14581
  },
14416
14582
  "messages.getPollResults": function(w, v) {
14417
- w.uint(1941660731);
14583
+ w.uint(3986940731);
14418
14584
  w.object(h(v, "peer"));
14419
14585
  w.int(h(v, "msgId"));
14586
+ w.long(h(v, "pollHash"));
14420
14587
  },
14421
14588
  "messages.getOnlines": function(w, v) {
14422
14589
  w.uint(1848369232);
@@ -14841,7 +15008,7 @@ var m = {
14841
15008
  w.object(h(v, "reaction"));
14842
15009
  },
14843
15010
  "messages.translateText": function(w, v) {
14844
- w.uint(1662529584);
15011
+ w.uint(2783888197);
14845
15012
  var flags = 0;
14846
15013
  var _peer = v.peer !== void 0;
14847
15014
  var _id = v.id && v.id.length;
@@ -14849,11 +15016,14 @@ var m = {
14849
15016
  if (_flags_0) flags |= 1;
14850
15017
  var _text = v.text && v.text.length;
14851
15018
  if (_text) flags |= 2;
15019
+ var _tone = v.tone !== void 0;
15020
+ if (_tone) flags |= 4;
14852
15021
  w.uint(flags);
14853
15022
  if (_flags_0) w.object(v.peer);
14854
15023
  if (_flags_0) w.vector(w.int, v.id);
14855
15024
  if (_text) w.vector(w.object, v.text);
14856
15025
  w.string(h(v, "toLang"));
15026
+ if (_tone) w.string(v.tone);
14857
15027
  },
14858
15028
  "messages.getUnreadReactions": function(w, v) {
14859
15029
  w.uint(3179253932);
@@ -15036,9 +15206,16 @@ var m = {
15036
15206
  w.uint(1703637384);
15037
15207
  },
15038
15208
  "messages.sendBotRequestedPeer": function(w, v) {
15039
- w.uint(2444415072);
15209
+ w.uint(1818030759);
15210
+ var flags = 0;
15211
+ var _msgId = v.msgId !== void 0;
15212
+ if (_msgId) flags |= 1;
15213
+ var _webappReqId = v.webappReqId !== void 0;
15214
+ if (_webappReqId) flags |= 2;
15215
+ w.uint(flags);
15040
15216
  w.object(h(v, "peer"));
15041
- w.int(h(v, "msgId"));
15217
+ if (_msgId) w.int(v.msgId);
15218
+ if (_webappReqId) w.string(v.webappReqId);
15042
15219
  w.int(h(v, "buttonId"));
15043
15220
  w.vector(w.object, h(v, "requestedPeers"));
15044
15221
  },
@@ -15497,14 +15674,17 @@ var m = {
15497
15674
  w.uint(4219374759);
15498
15675
  },
15499
15676
  "messages.summarizeText": function(w, v) {
15500
- w.uint(2638284002);
15677
+ w.uint(2881213254);
15501
15678
  var flags = 0;
15502
15679
  var _toLang = v.toLang !== void 0;
15503
15680
  if (_toLang) flags |= 1;
15681
+ var _tone = v.tone !== void 0;
15682
+ if (_tone) flags |= 4;
15504
15683
  w.uint(flags);
15505
15684
  w.object(h(v, "peer"));
15506
15685
  w.int(h(v, "id"));
15507
15686
  if (_toLang) w.string(v.toLang);
15687
+ if (_tone) w.string(v.tone);
15508
15688
  },
15509
15689
  "messages.editChatCreator": function(w, v) {
15510
15690
  w.uint(4148410455);
@@ -16646,6 +16826,7 @@ var m = {
16646
16826
  var _attributes = v.attributes && v.attributes.length;
16647
16827
  if (_attributes) flags |= 8;
16648
16828
  if (v.forCraft === true) flags |= 16;
16829
+ if (v.starsOnly === true) flags |= 32;
16649
16830
  w.uint(flags);
16650
16831
  if (_attributesHash) w.long(v.attributesHash);
16651
16832
  w.long(h(v, "giftId"));
@@ -17310,7 +17491,7 @@ var m = {
17310
17491
  w.object(h(v, "peer"));
17311
17492
  },
17312
17493
  "stories.sendStory": function(w, v) {
17313
- w.uint(1937752812);
17494
+ w.uint(2409523352);
17314
17495
  var flags = 0;
17315
17496
  var _caption = v.caption !== void 0;
17316
17497
  if (_caption) flags |= 1;
@@ -17329,6 +17510,8 @@ var m = {
17329
17510
  if (v.fwdModified === true) flags |= 128;
17330
17511
  var _albums = v.albums && v.albums.length;
17331
17512
  if (_albums) flags |= 256;
17513
+ var _music = v.music !== void 0;
17514
+ if (_music) flags |= 512;
17332
17515
  w.uint(flags);
17333
17516
  w.object(h(v, "peer"));
17334
17517
  w.object(h(v, "media"));
@@ -17341,9 +17524,10 @@ var m = {
17341
17524
  if (_flags_6) w.object(v.fwdFromId);
17342
17525
  if (_flags_6) w.int(v.fwdFromStory);
17343
17526
  if (_albums) w.vector(w.int, v.albums);
17527
+ if (_music) w.object(v.music);
17344
17528
  },
17345
17529
  "stories.editStory": function(w, v) {
17346
- w.uint(3045308998);
17530
+ w.uint(744728363);
17347
17531
  var flags = 0;
17348
17532
  var _media = v.media !== void 0;
17349
17533
  if (_media) flags |= 1;
@@ -17355,6 +17539,8 @@ var m = {
17355
17539
  if (_privacyRules) flags |= 4;
17356
17540
  var _mediaAreas = v.mediaAreas && v.mediaAreas.length;
17357
17541
  if (_mediaAreas) flags |= 8;
17542
+ var _music = v.music !== void 0;
17543
+ if (_music) flags |= 16;
17358
17544
  w.uint(flags);
17359
17545
  w.object(h(v, "peer"));
17360
17546
  w.int(h(v, "id"));
@@ -17363,6 +17549,7 @@ var m = {
17363
17549
  if (_flags_1) w.string(v.caption);
17364
17550
  if (_flags_1) w.vector(w.object, v.entities);
17365
17551
  if (_privacyRules) w.vector(w.object, v.privacyRules);
17552
+ if (_music) w.object(v.music);
17366
17553
  },
17367
17554
  "stories.deleteStories": function(w, v) {
17368
17555
  w.uint(2925124447);
@@ -17654,6 +17841,93 @@ var m = {
17654
17841
  w.uint(3189671354);
17655
17842
  w.object(h(v, "collectible"));
17656
17843
  },
17844
+ "messages.composeMessageWithAI": function(w, v) {
17845
+ w.uint(4248988414);
17846
+ var flags = 0;
17847
+ if (v.proofread === true) flags |= 1;
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;
17853
+ w.uint(flags);
17854
+ w.object(h(v, "text"));
17855
+ if (_translateToLang) w.string(v.translateToLang);
17856
+ if (_changeTone) w.string(v.changeTone);
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"));
17879
+ },
17880
+ "messages.getUnreadPollVotes": function(w, v) {
17881
+ w.uint(1126722802);
17882
+ var flags = 0;
17883
+ var _topMsgId = v.topMsgId !== void 0;
17884
+ if (_topMsgId) flags |= 1;
17885
+ w.uint(flags);
17886
+ w.object(h(v, "peer"));
17887
+ if (_topMsgId) w.int(v.topMsgId);
17888
+ w.int(h(v, "offsetId"));
17889
+ w.int(h(v, "addOffset"));
17890
+ w.int(h(v, "limit"));
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;
17899
+ w.uint(flags);
17900
+ w.object(h(v, "peer"));
17901
+ if (_topMsgId) w.int(v.topMsgId);
17902
+ },
17903
+ "bots.checkUsername": function(w, v) {
17904
+ w.uint(2280792475);
17905
+ w.string(h(v, "username"));
17906
+ },
17907
+ "bots.createBot": function(w, v) {
17908
+ w.uint(3853614891);
17909
+ var flags = 0;
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"));
17915
+ },
17916
+ "bots.exportBotToken": function(w, v) {
17917
+ w.uint(3171785195);
17918
+ w.object(h(v, "bot"));
17919
+ w.boolean(h(v, "revoke"));
17920
+ },
17921
+ "bots.requestWebViewButton": function(w, v) {
17922
+ w.uint(832742238);
17923
+ w.object(h(v, "userId"));
17924
+ w.object(h(v, "button"));
17925
+ },
17926
+ "bots.getRequestedWebViewButton": function(w, v) {
17927
+ w.uint(3206920179);
17928
+ w.object(h(v, "bot"));
17929
+ w.string(h(v, "webappReqId"));
17930
+ },
17657
17931
  "channels.editCreator": function(w, v) {
17658
17932
  w.uint(2402864415);
17659
17933
  w.object(h(v, "channel"));
@@ -17733,10 +18007,6 @@ var m = {
17733
18007
  w.object(h(v, "channel"));
17734
18008
  w.vector(w.int, h(v, "order"));
17735
18009
  },
17736
- "channels.getFutureCreatorAfterLeave": function(w, v) {
17737
- w.uint(2684950703);
17738
- w.object(h(v, "channel"));
17739
- },
17740
18010
  "mtcute.customMethod": function(w, v) {
17741
18011
  w.raw(h(v, "bytes"));
17742
18012
  },
@@ -18520,6 +18790,12 @@ var m = {
18520
18790
  "starGiftAttributeRarityRare": 4,
18521
18791
  "starGiftAttributeRarityEpic": 4,
18522
18792
  "starGiftAttributeRarityLegendary": 4,
18793
+ "messageActionManagedBotCreated": 12,
18794
+ "inputMessagesFilterPoll": 4,
18795
+ "updateManagedBot": 24,
18796
+ "messageEntityDiffInsert": 12,
18797
+ "messageEntityDiffDelete": 12,
18798
+ "inputMessageReadMetric": 32,
18523
18799
  "updateChannelPinnedTopic": 20,
18524
18800
  "auth.logOut": 4,
18525
18801
  "auth.resetAuthorizations": 4,