@mtcute/core 0.29.7 → 0.30.1
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 +67 -7
- package/highlevel/client.d.ts +67 -7
- package/highlevel/methods/chats/join-chat.cjs +38 -16
- package/highlevel/methods/chats/join-chat.d.cts +20 -6
- package/highlevel/methods/chats/join-chat.d.ts +20 -6
- package/highlevel/methods/chats/join-chat.js +38 -16
- package/highlevel/methods/chats/save-draft.d.cts +4 -1
- package/highlevel/methods/chats/save-draft.d.ts +4 -1
- package/highlevel/methods/files/normalize-input-media.cjs +8 -0
- package/highlevel/methods/files/normalize-input-media.js +9 -1
- package/highlevel/methods/messages/create-rich-streaming-draft.cjs +39 -0
- package/highlevel/methods/messages/create-rich-streaming-draft.d.cts +42 -0
- package/highlevel/methods/messages/create-rich-streaming-draft.d.ts +42 -0
- package/highlevel/methods/messages/create-rich-streaming-draft.js +34 -0
- package/highlevel/methods/messages/normalize-rich-message.cjs +157 -0
- package/highlevel/methods/messages/normalize-rich-message.d.cts +10 -0
- package/highlevel/methods/messages/normalize-rich-message.d.ts +10 -0
- package/highlevel/methods/messages/normalize-rich-message.js +152 -0
- package/highlevel/methods/messages/send-rich-message.cjs +49 -0
- package/highlevel/methods/messages/send-rich-message.d.cts +38 -0
- package/highlevel/methods/messages/send-rich-message.d.ts +38 -0
- package/highlevel/methods/messages/send-rich-message.js +44 -0
- package/highlevel/methods.d.cts +5 -0
- package/highlevel/methods.d.ts +5 -0
- package/highlevel/storage/service/peers.cjs +1 -0
- package/highlevel/storage/service/peers.js +1 -0
- package/highlevel/types/bots/inline-message/factories.cjs +14 -0
- package/highlevel/types/bots/inline-message/factories.d.cts +9 -1
- package/highlevel/types/bots/inline-message/factories.d.ts +9 -1
- package/highlevel/types/bots/inline-message/factories.js +14 -0
- package/highlevel/types/bots/inline-message/types.d.cts +17 -1
- package/highlevel/types/bots/inline-message/types.d.ts +17 -1
- package/highlevel/types/files/utils.d.cts +1 -1
- package/highlevel/types/files/utils.d.ts +1 -1
- package/highlevel/types/media/input-media/types.d.cts +1 -1
- package/highlevel/types/media/input-media/types.d.ts +1 -1
- package/highlevel/types/messages/index.d.cts +1 -0
- package/highlevel/types/messages/index.d.ts +1 -0
- package/highlevel/types/messages/message.cjs +5 -0
- package/highlevel/types/messages/message.d.cts +3 -0
- package/highlevel/types/messages/message.d.ts +3 -0
- package/highlevel/types/messages/message.js +5 -0
- package/highlevel/types/messages/rich/index.d.cts +4 -0
- package/highlevel/types/messages/rich/index.d.ts +4 -0
- package/highlevel/types/messages/rich/inner.cjs +219 -0
- package/highlevel/types/messages/rich/inner.d.cts +127 -0
- package/highlevel/types/messages/rich/inner.d.ts +127 -0
- package/highlevel/types/messages/rich/inner.js +214 -0
- package/highlevel/types/messages/rich/rich-message.cjs +50 -0
- package/highlevel/types/messages/rich/rich-message.d.cts +18 -0
- package/highlevel/types/messages/rich/rich-message.d.ts +18 -0
- package/highlevel/types/messages/rich/rich-message.js +45 -0
- package/highlevel/types/messages/rich/types.d.cts +76 -0
- package/highlevel/types/messages/rich/types.d.ts +76 -0
- package/highlevel/types/peers/full-chat.cjs +6 -0
- package/highlevel/types/peers/full-chat.d.cts +2 -0
- package/highlevel/types/peers/full-chat.d.ts +2 -0
- package/highlevel/types/peers/full-chat.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/user-typing-update.cjs +2 -0
- package/highlevel/types/updates/user-typing-update.js +2 -0
- package/highlevel/updates/manager.cjs +195 -0
- package/highlevel/updates/manager.js +195 -0
- package/highlevel/utils/entities.cjs +176 -0
- package/highlevel/utils/entities.d.cts +18 -0
- package/highlevel/utils/entities.d.ts +18 -0
- package/highlevel/utils/entities.js +177 -1
- package/highlevel/utils/inspectable.cjs +1 -0
- package/highlevel/utils/inspectable.d.cts +1 -0
- package/highlevel/utils/inspectable.d.ts +1 -0
- package/highlevel/utils/inspectable.js +1 -0
- package/index.cjs +4 -0
- package/index.js +4 -0
- package/methods.cjs +4 -0
- package/methods.js +4 -0
- package/network/flood-control.cjs +149 -0
- package/network/flood-control.d.cts +79 -0
- package/network/flood-control.d.ts +79 -0
- package/network/flood-control.js +144 -0
- package/network/flood-control.test.d.cts +1 -0
- package/network/flood-control.test.d.ts +1 -0
- package/network/mtproto-session.cjs +1 -21
- package/network/mtproto-session.d.cts +1 -5
- package/network/mtproto-session.d.ts +1 -5
- package/network/mtproto-session.js +2 -22
- package/network/mtproxy/_fake-tls.cjs +169 -107
- package/network/mtproxy/_fake-tls.js +169 -107
- package/network/mtproxy/_fake-tls.test.d.cts +1 -0
- package/network/mtproxy/_fake-tls.test.d.ts +1 -0
- package/network/multi-session-connection.cjs +26 -16
- package/network/multi-session-connection.d.cts +1 -1
- package/network/multi-session-connection.d.ts +1 -1
- package/network/multi-session-connection.js +26 -16
- package/network/multi-session-connection.test.d.cts +1 -0
- package/network/multi-session-connection.test.d.ts +1 -0
- package/network/network-manager.cjs +3 -2
- package/network/network-manager.d.cts +12 -0
- package/network/network-manager.d.ts +12 -0
- package/network/network-manager.js +3 -2
- package/network/persistent-connection.cjs +25 -1
- package/network/persistent-connection.d.cts +5 -0
- package/network/persistent-connection.d.ts +5 -0
- package/network/persistent-connection.js +25 -1
- package/network/session-connection.cjs +5 -10
- package/network/session-connection.d.cts +0 -2
- package/network/session-connection.d.ts +0 -2
- package/network/session-connection.js +5 -10
- package/package.json +1 -1
- package/tl/api-schema.json +1 -1
- package/tl/binary/reader.cjs +182 -26
- package/tl/binary/reader.js +182 -26
- package/tl/binary/writer.cjs +437 -20
- package/tl/binary/writer.js +437 -20
- package/tl/compat/reader.cjs +23 -0
- package/tl/compat/reader.js +23 -0
- package/tl/index.d.cts +425 -14
- package/tl/index.d.ts +425 -14
- package/tl/inner-tl.cjs +22 -8
- package/tl/inner-tl.js +22 -8
- package/types/utils.d.cts +4 -0
- package/types/utils.d.ts +4 -0
- package/utils/binary/compat.cjs +79 -0
- package/utils/binary/compat.js +79 -0
- package/utils/index.d.cts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/long-utils.cjs +10 -0
- package/utils/long-utils.js +10 -0
- package/utils.cjs +9 -0
- package/utils.js +11 -2
package/tl/binary/writer.cjs
CHANGED
|
@@ -569,6 +569,7 @@ var m = {
|
|
|
569
569
|
if (v.botForumCanManageTopics === true) flags2 |= 131072;
|
|
570
570
|
if (v.botCanManageBots === true) flags2 |= 262144;
|
|
571
571
|
if (v.botGuestchat === true) flags2 |= 524288;
|
|
572
|
+
if (v.botGuard === true) flags2 |= 1048576;
|
|
572
573
|
w.uint(flags2);
|
|
573
574
|
w.int53(h(v, "id"));
|
|
574
575
|
if (_accessHash) w.long(v.accessHash);
|
|
@@ -826,7 +827,7 @@ var m = {
|
|
|
826
827
|
if (_reactionsLimit) w.int(v.reactionsLimit);
|
|
827
828
|
},
|
|
828
829
|
"channelFull": function(w, v) {
|
|
829
|
-
w.uint(
|
|
830
|
+
w.uint(2689502522);
|
|
830
831
|
var flags = 0;
|
|
831
832
|
var _participantsCount = v.participantsCount !== void 0;
|
|
832
833
|
if (_participantsCount) flags |= 1;
|
|
@@ -923,6 +924,8 @@ var m = {
|
|
|
923
924
|
if (_sendPaidMessagesStars) flags2 |= 2097152;
|
|
924
925
|
var _mainTab = v.mainTab !== void 0;
|
|
925
926
|
if (_mainTab) flags2 |= 4194304;
|
|
927
|
+
var _guardBotId = v.guardBotId !== void 0;
|
|
928
|
+
if (_guardBotId) flags2 |= 8388608;
|
|
926
929
|
w.uint(flags2);
|
|
927
930
|
w.int53(h(v, "id"));
|
|
928
931
|
w.string(h(v, "about"));
|
|
@@ -969,6 +972,7 @@ var m = {
|
|
|
969
972
|
if (_stargiftsCount) w.int(v.stargiftsCount);
|
|
970
973
|
if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
|
|
971
974
|
if (_mainTab) w.object(v.mainTab);
|
|
975
|
+
if (_guardBotId) w.int53(v.guardBotId);
|
|
972
976
|
},
|
|
973
977
|
"chatParticipant": function(w, v) {
|
|
974
978
|
w.uint(954703838);
|
|
@@ -1040,7 +1044,7 @@ var m = {
|
|
|
1040
1044
|
if (_peerId) w.object(v.peerId);
|
|
1041
1045
|
},
|
|
1042
1046
|
"message": function(w, v) {
|
|
1043
|
-
w.uint(
|
|
1047
|
+
w.uint(1979759059);
|
|
1044
1048
|
var flags = 0;
|
|
1045
1049
|
if (v.out === true) flags |= 2;
|
|
1046
1050
|
var _fwdFrom = v.fwdFrom !== void 0;
|
|
@@ -1115,6 +1119,8 @@ var m = {
|
|
|
1115
1119
|
if (_summaryFromLanguage) flags2 |= 2048;
|
|
1116
1120
|
var _fromRank = v.fromRank !== void 0;
|
|
1117
1121
|
if (_fromRank) flags2 |= 4096;
|
|
1122
|
+
var _richMessage = v.richMessage !== void 0;
|
|
1123
|
+
if (_richMessage) flags2 |= 8192;
|
|
1118
1124
|
var _guestchatViaFrom = v.guestchatViaFrom !== void 0;
|
|
1119
1125
|
if (_guestchatViaFrom) flags2 |= 524288;
|
|
1120
1126
|
w.uint(flags2);
|
|
@@ -1151,6 +1157,7 @@ var m = {
|
|
|
1151
1157
|
if (_suggestedPost) w.object(v.suggestedPost);
|
|
1152
1158
|
if (_scheduleRepeatPeriod) w.int(v.scheduleRepeatPeriod);
|
|
1153
1159
|
if (_summaryFromLanguage) w.string(v.summaryFromLanguage);
|
|
1160
|
+
if (_richMessage) w.object(v.richMessage);
|
|
1154
1161
|
},
|
|
1155
1162
|
"messageService": function(w, v) {
|
|
1156
1163
|
w.uint(2055212554);
|
|
@@ -3335,13 +3342,18 @@ var m = {
|
|
|
3335
3342
|
w.vector(w.int53, h(v, "recentRequesters"));
|
|
3336
3343
|
},
|
|
3337
3344
|
"updateBotChatInviteRequester": function(w, v) {
|
|
3338
|
-
w.uint(
|
|
3345
|
+
w.uint(2092125561);
|
|
3346
|
+
var flags = 0;
|
|
3347
|
+
var _queryId = v.queryId !== void 0;
|
|
3348
|
+
if (_queryId) flags |= 1;
|
|
3349
|
+
w.uint(flags);
|
|
3339
3350
|
w.object(h(v, "peer"));
|
|
3340
3351
|
w.int(h(v, "date"));
|
|
3341
3352
|
w.int53(h(v, "userId"));
|
|
3342
3353
|
w.string(h(v, "about"));
|
|
3343
3354
|
w.object(h(v, "invite"));
|
|
3344
3355
|
w.int(h(v, "qts"));
|
|
3356
|
+
if (_queryId) w.long(v.queryId);
|
|
3345
3357
|
},
|
|
3346
3358
|
"updateMessageReactions": function(w, v) {
|
|
3347
3359
|
w.uint(506035194);
|
|
@@ -3707,6 +3719,44 @@ var m = {
|
|
|
3707
3719
|
"updateAiComposeTones": function(w) {
|
|
3708
3720
|
w.uint(2349830651);
|
|
3709
3721
|
},
|
|
3722
|
+
"updateJoinChatWebViewDecision": function(w, v) {
|
|
3723
|
+
w.uint(3182198384);
|
|
3724
|
+
w.object(h(v, "peer"));
|
|
3725
|
+
w.long(h(v, "queryId"));
|
|
3726
|
+
w.object(h(v, "result"));
|
|
3727
|
+
},
|
|
3728
|
+
"updateNewBotConnection": function(w, v) {
|
|
3729
|
+
w.uint(2988475302);
|
|
3730
|
+
var flags = 0;
|
|
3731
|
+
if (v.confirmed === true) flags |= 1;
|
|
3732
|
+
var _date = v.date !== void 0;
|
|
3733
|
+
var _device = v.device !== void 0;
|
|
3734
|
+
var _location = v.location !== void 0;
|
|
3735
|
+
var _flags_1 = _date || _device || _location;
|
|
3736
|
+
if (_flags_1) flags |= 2;
|
|
3737
|
+
w.uint(flags);
|
|
3738
|
+
w.int53(h(v, "botId"));
|
|
3739
|
+
if (_flags_1) w.int(v.date);
|
|
3740
|
+
if (_flags_1) w.string(v.device);
|
|
3741
|
+
if (_flags_1) w.string(v.location);
|
|
3742
|
+
},
|
|
3743
|
+
"updateWebBrowserSettings": function(w, v) {
|
|
3744
|
+
w.uint(3281660638);
|
|
3745
|
+
var flags = 0;
|
|
3746
|
+
if (v.openExternalBrowser === true) flags |= 1;
|
|
3747
|
+
if (v.displayCloseButton === true) flags |= 2;
|
|
3748
|
+
w.uint(flags);
|
|
3749
|
+
},
|
|
3750
|
+
"updateWebBrowserException": function(w, v) {
|
|
3751
|
+
w.uint(335872721);
|
|
3752
|
+
var flags = 0;
|
|
3753
|
+
var _openExternalBrowser = v.openExternalBrowser !== void 0;
|
|
3754
|
+
if (_openExternalBrowser) flags |= 1;
|
|
3755
|
+
if (v.delete === true) flags |= 2;
|
|
3756
|
+
w.uint(flags);
|
|
3757
|
+
if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
|
|
3758
|
+
w.object(h(v, "exception"));
|
|
3759
|
+
},
|
|
3710
3760
|
"updates.state": function(w, v) {
|
|
3711
3761
|
w.uint(2775329342);
|
|
3712
3762
|
w.int(h(v, "pts"));
|
|
@@ -4238,6 +4288,16 @@ var m = {
|
|
|
4238
4288
|
w.long(h(v, "randomId"));
|
|
4239
4289
|
w.object(h(v, "text"));
|
|
4240
4290
|
},
|
|
4291
|
+
"inputSendMessageRichMessageDraftAction": function(w, v) {
|
|
4292
|
+
w.uint(3803331409);
|
|
4293
|
+
w.long(h(v, "randomId"));
|
|
4294
|
+
w.object(h(v, "richMessage"));
|
|
4295
|
+
},
|
|
4296
|
+
"sendMessageRichMessageDraftAction": function(w, v) {
|
|
4297
|
+
w.uint(2731222265);
|
|
4298
|
+
w.long(h(v, "randomId"));
|
|
4299
|
+
w.object(h(v, "richMessage"));
|
|
4300
|
+
},
|
|
4241
4301
|
"contacts.found": function(w, v) {
|
|
4242
4302
|
w.uint(3004386717);
|
|
4243
4303
|
w.vector(w.object, h(v, "myResults"));
|
|
@@ -5600,6 +5660,15 @@ var m = {
|
|
|
5600
5660
|
w.string(h(v, "url"));
|
|
5601
5661
|
if (_replyMarkup) w.object(v.replyMarkup);
|
|
5602
5662
|
},
|
|
5663
|
+
"inputBotInlineMessageRichMessage": function(w, v) {
|
|
5664
|
+
w.uint(3023959404);
|
|
5665
|
+
var flags = 0;
|
|
5666
|
+
var _replyMarkup = v.replyMarkup !== void 0;
|
|
5667
|
+
if (_replyMarkup) flags |= 4;
|
|
5668
|
+
w.uint(flags);
|
|
5669
|
+
if (_replyMarkup) w.object(v.replyMarkup);
|
|
5670
|
+
w.object(h(v, "richMessage"));
|
|
5671
|
+
},
|
|
5603
5672
|
"inputBotInlineResult": function(w, v) {
|
|
5604
5673
|
w.uint(2294256409);
|
|
5605
5674
|
var flags = 0;
|
|
@@ -5757,6 +5826,15 @@ var m = {
|
|
|
5757
5826
|
w.string(h(v, "url"));
|
|
5758
5827
|
if (_replyMarkup) w.object(v.replyMarkup);
|
|
5759
5828
|
},
|
|
5829
|
+
"botInlineMessageRichMessage": function(w, v) {
|
|
5830
|
+
w.uint(174161531);
|
|
5831
|
+
var flags = 0;
|
|
5832
|
+
var _replyMarkup = v.replyMarkup !== void 0;
|
|
5833
|
+
if (_replyMarkup) flags |= 4;
|
|
5834
|
+
w.uint(flags);
|
|
5835
|
+
if (_replyMarkup) w.object(v.replyMarkup);
|
|
5836
|
+
w.object(h(v, "richMessage"));
|
|
5837
|
+
},
|
|
5760
5838
|
"botInlineResult": function(w, v) {
|
|
5761
5839
|
w.uint(295067450);
|
|
5762
5840
|
var flags = 0;
|
|
@@ -6071,7 +6149,7 @@ var m = {
|
|
|
6071
6149
|
if (_date) w.int(v.date);
|
|
6072
6150
|
},
|
|
6073
6151
|
"draftMessage": function(w, v) {
|
|
6074
|
-
w.uint(
|
|
6152
|
+
w.uint(1627271828);
|
|
6075
6153
|
var flags = 0;
|
|
6076
6154
|
if (v.noWebpage === true) flags |= 2;
|
|
6077
6155
|
var _entities = v.entities && v.entities.length;
|
|
@@ -6085,6 +6163,8 @@ var m = {
|
|
|
6085
6163
|
if (_effect) flags |= 128;
|
|
6086
6164
|
var _suggestedPost = v.suggestedPost !== void 0;
|
|
6087
6165
|
if (_suggestedPost) flags |= 256;
|
|
6166
|
+
var _richMessage = v.richMessage !== void 0;
|
|
6167
|
+
if (_richMessage) flags |= 512;
|
|
6088
6168
|
w.uint(flags);
|
|
6089
6169
|
if (_replyTo) w.object(v.replyTo);
|
|
6090
6170
|
w.string(h(v, "message"));
|
|
@@ -6093,6 +6173,7 @@ var m = {
|
|
|
6093
6173
|
w.int(h(v, "date"));
|
|
6094
6174
|
if (_effect) w.long(v.effect);
|
|
6095
6175
|
if (_suggestedPost) w.object(v.suggestedPost);
|
|
6176
|
+
if (_richMessage) w.object(v.richMessage);
|
|
6096
6177
|
},
|
|
6097
6178
|
"messages.featuredStickersNotModified": function(w, v) {
|
|
6098
6179
|
w.uint(3336309862);
|
|
@@ -6271,6 +6352,69 @@ var m = {
|
|
|
6271
6352
|
w.object(h(v, "text"));
|
|
6272
6353
|
w.string(h(v, "name"));
|
|
6273
6354
|
},
|
|
6355
|
+
"textMath": function(w, v) {
|
|
6356
|
+
w.uint(2637081751);
|
|
6357
|
+
w.string(h(v, "source"));
|
|
6358
|
+
},
|
|
6359
|
+
"textCustomEmoji": function(w, v) {
|
|
6360
|
+
w.uint(2724288192);
|
|
6361
|
+
w.long(h(v, "documentId"));
|
|
6362
|
+
w.string(h(v, "alt"));
|
|
6363
|
+
},
|
|
6364
|
+
"textSpoiler": function(w, v) {
|
|
6365
|
+
w.uint(1277844834);
|
|
6366
|
+
w.object(h(v, "text"));
|
|
6367
|
+
},
|
|
6368
|
+
"textMention": function(w, v) {
|
|
6369
|
+
w.uint(3441741636);
|
|
6370
|
+
w.object(h(v, "text"));
|
|
6371
|
+
},
|
|
6372
|
+
"textHashtag": function(w, v) {
|
|
6373
|
+
w.uint(1368728810);
|
|
6374
|
+
w.object(h(v, "text"));
|
|
6375
|
+
},
|
|
6376
|
+
"textBotCommand": function(w, v) {
|
|
6377
|
+
w.uint(50276819);
|
|
6378
|
+
w.object(h(v, "text"));
|
|
6379
|
+
},
|
|
6380
|
+
"textCashtag": function(w, v) {
|
|
6381
|
+
w.uint(2073958401);
|
|
6382
|
+
w.object(h(v, "text"));
|
|
6383
|
+
},
|
|
6384
|
+
"textAutoUrl": function(w, v) {
|
|
6385
|
+
w.uint(2892661674);
|
|
6386
|
+
w.object(h(v, "text"));
|
|
6387
|
+
},
|
|
6388
|
+
"textAutoEmail": function(w, v) {
|
|
6389
|
+
w.uint(3310789725);
|
|
6390
|
+
w.object(h(v, "text"));
|
|
6391
|
+
},
|
|
6392
|
+
"textAutoPhone": function(w, v) {
|
|
6393
|
+
w.uint(616720265);
|
|
6394
|
+
w.object(h(v, "text"));
|
|
6395
|
+
},
|
|
6396
|
+
"textBankCard": function(w, v) {
|
|
6397
|
+
w.uint(3109454125);
|
|
6398
|
+
w.object(h(v, "text"));
|
|
6399
|
+
},
|
|
6400
|
+
"textMentionName": function(w, v) {
|
|
6401
|
+
w.uint(27917308);
|
|
6402
|
+
w.object(h(v, "text"));
|
|
6403
|
+
w.int53(h(v, "userId"));
|
|
6404
|
+
},
|
|
6405
|
+
"textDate": function(w, v) {
|
|
6406
|
+
w.uint(2780061227);
|
|
6407
|
+
var flags = 0;
|
|
6408
|
+
if (v.relative === true) flags |= 1;
|
|
6409
|
+
if (v.shortTime === true) flags |= 2;
|
|
6410
|
+
if (v.longTime === true) flags |= 4;
|
|
6411
|
+
if (v.shortDate === true) flags |= 8;
|
|
6412
|
+
if (v.longDate === true) flags |= 16;
|
|
6413
|
+
if (v.dayOfWeek === true) flags |= 32;
|
|
6414
|
+
w.uint(flags);
|
|
6415
|
+
w.object(h(v, "text"));
|
|
6416
|
+
w.int(h(v, "date"));
|
|
6417
|
+
},
|
|
6274
6418
|
"pageBlockUnsupported": function(w) {
|
|
6275
6419
|
w.uint(324435594);
|
|
6276
6420
|
},
|
|
@@ -6336,6 +6480,7 @@ var m = {
|
|
|
6336
6480
|
var _webpageId = v.webpageId !== void 0;
|
|
6337
6481
|
var _flags_0 = _url || _webpageId;
|
|
6338
6482
|
if (_flags_0) flags |= 1;
|
|
6483
|
+
if (v.spoiler === true) flags |= 2;
|
|
6339
6484
|
w.uint(flags);
|
|
6340
6485
|
w.long(h(v, "photoId"));
|
|
6341
6486
|
w.object(h(v, "caption"));
|
|
@@ -6347,6 +6492,7 @@ var m = {
|
|
|
6347
6492
|
var flags = 0;
|
|
6348
6493
|
if (v.autoplay === true) flags |= 1;
|
|
6349
6494
|
if (v.loop === true) flags |= 2;
|
|
6495
|
+
if (v.spoiler === true) flags |= 4;
|
|
6350
6496
|
w.uint(flags);
|
|
6351
6497
|
w.long(h(v, "videoId"));
|
|
6352
6498
|
w.object(h(v, "caption"));
|
|
@@ -6421,8 +6567,17 @@ var m = {
|
|
|
6421
6567
|
w.vector(w.object, h(v, "rows"));
|
|
6422
6568
|
},
|
|
6423
6569
|
"pageBlockOrderedList": function(w, v) {
|
|
6424
|
-
w.uint(
|
|
6570
|
+
w.uint(534181569);
|
|
6571
|
+
var flags = 0;
|
|
6572
|
+
var _start = v.start !== void 0;
|
|
6573
|
+
if (_start) flags |= 1;
|
|
6574
|
+
var _type = v.type !== void 0;
|
|
6575
|
+
if (_type) flags |= 2;
|
|
6576
|
+
if (v.reversed === true) flags |= 4;
|
|
6577
|
+
w.uint(flags);
|
|
6425
6578
|
w.vector(w.object, h(v, "items"));
|
|
6579
|
+
if (_start) w.int(v.start);
|
|
6580
|
+
if (_type) w.string(v.type);
|
|
6426
6581
|
},
|
|
6427
6582
|
"pageBlockDetails": function(w, v) {
|
|
6428
6583
|
w.uint(1987480557);
|
|
@@ -6445,6 +6600,51 @@ var m = {
|
|
|
6445
6600
|
w.int(h(v, "h"));
|
|
6446
6601
|
w.object(h(v, "caption"));
|
|
6447
6602
|
},
|
|
6603
|
+
"pageBlockHeading1": function(w, v) {
|
|
6604
|
+
w.uint(3137275695);
|
|
6605
|
+
w.object(h(v, "text"));
|
|
6606
|
+
},
|
|
6607
|
+
"pageBlockHeading2": function(w, v) {
|
|
6608
|
+
w.uint(158018284);
|
|
6609
|
+
w.object(h(v, "text"));
|
|
6610
|
+
},
|
|
6611
|
+
"pageBlockHeading3": function(w, v) {
|
|
6612
|
+
w.uint(1743204781);
|
|
6613
|
+
w.object(h(v, "text"));
|
|
6614
|
+
},
|
|
6615
|
+
"pageBlockHeading4": function(w, v) {
|
|
6616
|
+
w.uint(3039983403);
|
|
6617
|
+
w.object(h(v, "text"));
|
|
6618
|
+
},
|
|
6619
|
+
"pageBlockHeading5": function(w, v) {
|
|
6620
|
+
w.uint(3686689898);
|
|
6621
|
+
w.object(h(v, "text"));
|
|
6622
|
+
},
|
|
6623
|
+
"pageBlockHeading6": function(w, v) {
|
|
6624
|
+
w.uint(1747599785);
|
|
6625
|
+
w.object(h(v, "text"));
|
|
6626
|
+
},
|
|
6627
|
+
"pageBlockMath": function(w, v) {
|
|
6628
|
+
w.uint(1493699616);
|
|
6629
|
+
w.string(h(v, "source"));
|
|
6630
|
+
},
|
|
6631
|
+
"pageBlockThinking": function(w, v) {
|
|
6632
|
+
w.uint(1009361890);
|
|
6633
|
+
w.object(h(v, "text"));
|
|
6634
|
+
},
|
|
6635
|
+
"inputPageBlockMap": function(w, v) {
|
|
6636
|
+
w.uint(1464557951);
|
|
6637
|
+
w.object(h(v, "geo"));
|
|
6638
|
+
w.int(h(v, "zoom"));
|
|
6639
|
+
w.int(h(v, "w"));
|
|
6640
|
+
w.int(h(v, "h"));
|
|
6641
|
+
w.object(h(v, "caption"));
|
|
6642
|
+
},
|
|
6643
|
+
"pageBlockBlockquoteBlocks": function(w, v) {
|
|
6644
|
+
w.uint(242108356);
|
|
6645
|
+
w.vector(w.object, h(v, "blocks"));
|
|
6646
|
+
w.object(h(v, "caption"));
|
|
6647
|
+
},
|
|
6448
6648
|
"phoneCallDiscardReasonMissed": function(w) {
|
|
6449
6649
|
w.uint(2246320897);
|
|
6450
6650
|
},
|
|
@@ -7733,22 +7933,54 @@ var m = {
|
|
|
7733
7933
|
w.object(h(v, "credit"));
|
|
7734
7934
|
},
|
|
7735
7935
|
"pageListItemText": function(w, v) {
|
|
7736
|
-
w.uint(
|
|
7936
|
+
w.uint(794323004);
|
|
7937
|
+
var flags = 0;
|
|
7938
|
+
if (v.checkbox === true) flags |= 1;
|
|
7939
|
+
if (v.checked === true) flags |= 2;
|
|
7940
|
+
w.uint(flags);
|
|
7737
7941
|
w.object(h(v, "text"));
|
|
7738
7942
|
},
|
|
7739
7943
|
"pageListItemBlocks": function(w, v) {
|
|
7740
|
-
w.uint(
|
|
7944
|
+
w.uint(1674209194);
|
|
7945
|
+
var flags = 0;
|
|
7946
|
+
if (v.checkbox === true) flags |= 1;
|
|
7947
|
+
if (v.checked === true) flags |= 2;
|
|
7948
|
+
w.uint(flags);
|
|
7741
7949
|
w.vector(w.object, h(v, "blocks"));
|
|
7742
7950
|
},
|
|
7743
7951
|
"pageListOrderedItemText": function(w, v) {
|
|
7744
|
-
w.uint(
|
|
7745
|
-
|
|
7952
|
+
w.uint(352522633);
|
|
7953
|
+
var flags = 0;
|
|
7954
|
+
if (v.checkbox === true) flags |= 1;
|
|
7955
|
+
if (v.checked === true) flags |= 2;
|
|
7956
|
+
var _num = v.num !== void 0;
|
|
7957
|
+
if (_num) flags |= 4;
|
|
7958
|
+
var _value = v.value !== void 0;
|
|
7959
|
+
if (_value) flags |= 8;
|
|
7960
|
+
var _type = v.type !== void 0;
|
|
7961
|
+
if (_type) flags |= 16;
|
|
7962
|
+
w.uint(flags);
|
|
7963
|
+
if (_num) w.string(v.num);
|
|
7746
7964
|
w.object(h(v, "text"));
|
|
7965
|
+
if (_value) w.int(v.value);
|
|
7966
|
+
if (_type) w.string(v.type);
|
|
7747
7967
|
},
|
|
7748
7968
|
"pageListOrderedItemBlocks": function(w, v) {
|
|
7749
|
-
w.uint(
|
|
7750
|
-
|
|
7969
|
+
w.uint(2415056368);
|
|
7970
|
+
var flags = 0;
|
|
7971
|
+
if (v.checkbox === true) flags |= 1;
|
|
7972
|
+
if (v.checked === true) flags |= 2;
|
|
7973
|
+
var _num = v.num !== void 0;
|
|
7974
|
+
if (_num) flags |= 4;
|
|
7975
|
+
var _value = v.value !== void 0;
|
|
7976
|
+
if (_value) flags |= 8;
|
|
7977
|
+
var _type = v.type !== void 0;
|
|
7978
|
+
if (_type) flags |= 16;
|
|
7979
|
+
w.uint(flags);
|
|
7980
|
+
if (_num) w.string(v.num);
|
|
7751
7981
|
w.vector(w.object, h(v, "blocks"));
|
|
7982
|
+
if (_value) w.int(v.value);
|
|
7983
|
+
if (_type) w.string(v.type);
|
|
7752
7984
|
},
|
|
7753
7985
|
"pageRelatedArticle": function(w, v) {
|
|
7754
7986
|
w.uint(3012615176);
|
|
@@ -8660,6 +8892,7 @@ var m = {
|
|
|
8660
8892
|
if (_todoItemId) flags |= 2048;
|
|
8661
8893
|
var _pollOption = v.pollOption !== void 0;
|
|
8662
8894
|
if (_pollOption) flags |= 4096;
|
|
8895
|
+
if (v.replyToEphemeral === true) flags |= 8192;
|
|
8663
8896
|
w.uint(flags);
|
|
8664
8897
|
if (_replyToMsgId) w.int(v.replyToMsgId);
|
|
8665
8898
|
if (_replyToPeerId) w.object(v.replyToPeerId);
|
|
@@ -9271,6 +9504,7 @@ var m = {
|
|
|
9271
9504
|
if (_queryId) flags |= 1;
|
|
9272
9505
|
if (v.fullsize === true) flags |= 2;
|
|
9273
9506
|
if (v.fullscreen === true) flags |= 4;
|
|
9507
|
+
if (v.sameOrigin === true) flags |= 8;
|
|
9274
9508
|
w.uint(flags);
|
|
9275
9509
|
if (_queryId) w.long(v.queryId);
|
|
9276
9510
|
w.string(h(v, "url"));
|
|
@@ -10900,12 +11134,21 @@ var m = {
|
|
|
10900
11134
|
w.uint(1603398491);
|
|
10901
11135
|
},
|
|
10902
11136
|
"connectedBot": function(w, v) {
|
|
10903
|
-
w.uint(
|
|
11137
|
+
w.uint(54448129);
|
|
10904
11138
|
var flags = 0;
|
|
11139
|
+
var _device = v.device !== void 0;
|
|
11140
|
+
if (_device) flags |= 1;
|
|
11141
|
+
var _date = v.date !== void 0;
|
|
11142
|
+
if (_date) flags |= 2;
|
|
11143
|
+
var _location = v.location !== void 0;
|
|
11144
|
+
if (_location) flags |= 4;
|
|
10905
11145
|
w.uint(flags);
|
|
10906
11146
|
w.int53(h(v, "botId"));
|
|
10907
11147
|
w.object(h(v, "recipients"));
|
|
10908
11148
|
w.object(h(v, "rights"));
|
|
11149
|
+
if (_device) w.string(v.device);
|
|
11150
|
+
if (_date) w.int(v.date);
|
|
11151
|
+
if (_location) w.string(v.location);
|
|
10909
11152
|
},
|
|
10910
11153
|
"account.connectedBots": function(w, v) {
|
|
10911
11154
|
w.uint(400029819);
|
|
@@ -12624,6 +12867,112 @@ var m = {
|
|
|
12624
12867
|
w.uint(flags);
|
|
12625
12868
|
if (_addUsers) w.vector(w.object, v.addUsers);
|
|
12626
12869
|
},
|
|
12870
|
+
"messages.chatInviteJoinResultOk": function(w, v) {
|
|
12871
|
+
w.uint(1146512295);
|
|
12872
|
+
w.object(h(v, "updates"));
|
|
12873
|
+
},
|
|
12874
|
+
"messages.chatInviteJoinResultWebView": function(w, v) {
|
|
12875
|
+
w.uint(793887543);
|
|
12876
|
+
w.int53(h(v, "botId"));
|
|
12877
|
+
w.object(h(v, "webview"));
|
|
12878
|
+
w.vector(w.object, h(v, "users"));
|
|
12879
|
+
},
|
|
12880
|
+
"joinChatBotResultApproved": function(w) {
|
|
12881
|
+
w.uint(2920622697);
|
|
12882
|
+
},
|
|
12883
|
+
"joinChatBotResultDeclined": function(w) {
|
|
12884
|
+
w.uint(251265428);
|
|
12885
|
+
},
|
|
12886
|
+
"joinChatBotResultQueued": function(w) {
|
|
12887
|
+
w.uint(2560862272);
|
|
12888
|
+
},
|
|
12889
|
+
"joinChatBotResultWebView": function(w, v) {
|
|
12890
|
+
w.uint(3605248019);
|
|
12891
|
+
w.string(h(v, "url"));
|
|
12892
|
+
},
|
|
12893
|
+
"webDomainException": function(w, v) {
|
|
12894
|
+
w.uint(2470225303);
|
|
12895
|
+
var flags = 0;
|
|
12896
|
+
var _favicon = v.favicon !== void 0;
|
|
12897
|
+
if (_favicon) flags |= 1;
|
|
12898
|
+
w.uint(flags);
|
|
12899
|
+
w.string(h(v, "domain"));
|
|
12900
|
+
w.string(h(v, "url"));
|
|
12901
|
+
w.string(h(v, "title"));
|
|
12902
|
+
if (_favicon) w.long(v.favicon);
|
|
12903
|
+
},
|
|
12904
|
+
"account.webBrowserSettingsNotModified": function(w) {
|
|
12905
|
+
w.uint(3273428814);
|
|
12906
|
+
},
|
|
12907
|
+
"account.webBrowserSettings": function(w, v) {
|
|
12908
|
+
w.uint(2045480115);
|
|
12909
|
+
var flags = 0;
|
|
12910
|
+
if (v.openExternalBrowser === true) flags |= 1;
|
|
12911
|
+
if (v.displayCloseButton === true) flags |= 2;
|
|
12912
|
+
w.uint(flags);
|
|
12913
|
+
w.vector(w.object, h(v, "externalExceptions"));
|
|
12914
|
+
w.vector(w.object, h(v, "inappExceptions"));
|
|
12915
|
+
w.long(h(v, "hash"));
|
|
12916
|
+
},
|
|
12917
|
+
"inputRichFilePhoto": function(w, v) {
|
|
12918
|
+
w.uint(2600493611);
|
|
12919
|
+
w.string(h(v, "id"));
|
|
12920
|
+
w.object(h(v, "photo"));
|
|
12921
|
+
},
|
|
12922
|
+
"inputRichFileDocument": function(w, v) {
|
|
12923
|
+
w.uint(2200444349);
|
|
12924
|
+
w.string(h(v, "id"));
|
|
12925
|
+
w.object(h(v, "document"));
|
|
12926
|
+
},
|
|
12927
|
+
"inputRichMessage": function(w, v) {
|
|
12928
|
+
w.uint(3838069244);
|
|
12929
|
+
var flags = 0;
|
|
12930
|
+
if (v.rtl === true) flags |= 1;
|
|
12931
|
+
if (v.noautolink === true) flags |= 2;
|
|
12932
|
+
var _photos = v.photos && v.photos.length;
|
|
12933
|
+
if (_photos) flags |= 4;
|
|
12934
|
+
var _documents = v.documents && v.documents.length;
|
|
12935
|
+
if (_documents) flags |= 8;
|
|
12936
|
+
var _users = v.users && v.users.length;
|
|
12937
|
+
if (_users) flags |= 16;
|
|
12938
|
+
w.uint(flags);
|
|
12939
|
+
w.vector(w.object, h(v, "blocks"));
|
|
12940
|
+
if (_photos) w.vector(w.object, v.photos);
|
|
12941
|
+
if (_documents) w.vector(w.object, v.documents);
|
|
12942
|
+
if (_users) w.vector(w.object, v.users);
|
|
12943
|
+
},
|
|
12944
|
+
"inputRichMessageHTML": function(w, v) {
|
|
12945
|
+
w.uint(3670770538);
|
|
12946
|
+
var flags = 0;
|
|
12947
|
+
if (v.rtl === true) flags |= 1;
|
|
12948
|
+
if (v.noautolink === true) flags |= 2;
|
|
12949
|
+
var _files = v.files && v.files.length;
|
|
12950
|
+
if (_files) flags |= 4;
|
|
12951
|
+
w.uint(flags);
|
|
12952
|
+
w.string(h(v, "html"));
|
|
12953
|
+
if (_files) w.vector(w.object, v.files);
|
|
12954
|
+
},
|
|
12955
|
+
"inputRichMessageMarkdown": function(w, v) {
|
|
12956
|
+
w.uint(4937516);
|
|
12957
|
+
var flags = 0;
|
|
12958
|
+
if (v.rtl === true) flags |= 1;
|
|
12959
|
+
if (v.noautolink === true) flags |= 2;
|
|
12960
|
+
var _files = v.files && v.files.length;
|
|
12961
|
+
if (_files) flags |= 4;
|
|
12962
|
+
w.uint(flags);
|
|
12963
|
+
w.string(h(v, "markdown"));
|
|
12964
|
+
if (_files) w.vector(w.object, v.files);
|
|
12965
|
+
},
|
|
12966
|
+
"richMessage": function(w, v) {
|
|
12967
|
+
w.uint(3136527755);
|
|
12968
|
+
var flags = 0;
|
|
12969
|
+
if (v.rtl === true) flags |= 1;
|
|
12970
|
+
if (v.part === true) flags |= 2;
|
|
12971
|
+
w.uint(flags);
|
|
12972
|
+
w.vector(w.object, h(v, "blocks"));
|
|
12973
|
+
w.vector(w.object, h(v, "photos"));
|
|
12974
|
+
w.vector(w.object, h(v, "documents"));
|
|
12975
|
+
},
|
|
12627
12976
|
"updateChannelPinnedTopic": function(w, v) {
|
|
12628
12977
|
w.uint(422509539);
|
|
12629
12978
|
var flags = 0;
|
|
@@ -13556,6 +13905,34 @@ var m = {
|
|
|
13556
13905
|
w.uint(4122302015);
|
|
13557
13906
|
w.string(h(v, "id"));
|
|
13558
13907
|
},
|
|
13908
|
+
"account.confirmBotConnection": function(w, v) {
|
|
13909
|
+
w.uint(1743593320);
|
|
13910
|
+
w.object(h(v, "botId"));
|
|
13911
|
+
},
|
|
13912
|
+
"account.getWebBrowserSettings": function(w, v) {
|
|
13913
|
+
w.uint(1449482088);
|
|
13914
|
+
w.long(h(v, "hash"));
|
|
13915
|
+
},
|
|
13916
|
+
"account.updateWebBrowserSettings": function(w, v) {
|
|
13917
|
+
w.uint(2598339326);
|
|
13918
|
+
var flags = 0;
|
|
13919
|
+
if (v.openExternalBrowser === true) flags |= 1;
|
|
13920
|
+
if (v.displayCloseButton === true) flags |= 2;
|
|
13921
|
+
w.uint(flags);
|
|
13922
|
+
},
|
|
13923
|
+
"account.toggleWebBrowserSettingsException": function(w, v) {
|
|
13924
|
+
w.uint(1626161705);
|
|
13925
|
+
var flags = 0;
|
|
13926
|
+
var _openExternalBrowser = v.openExternalBrowser !== void 0;
|
|
13927
|
+
if (_openExternalBrowser) flags |= 1;
|
|
13928
|
+
if (v.delete === true) flags |= 2;
|
|
13929
|
+
w.uint(flags);
|
|
13930
|
+
if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
|
|
13931
|
+
w.string(h(v, "url"));
|
|
13932
|
+
},
|
|
13933
|
+
"account.deleteWebBrowserSettingsExceptions": function(w) {
|
|
13934
|
+
w.uint(2258663005);
|
|
13935
|
+
},
|
|
13559
13936
|
"users.getUsers": function(w, v) {
|
|
13560
13937
|
w.uint(227648840);
|
|
13561
13938
|
w.vector(w.object, h(v, "id"));
|
|
@@ -13636,7 +14013,11 @@ var m = {
|
|
|
13636
14013
|
w.int(h(v, "limit"));
|
|
13637
14014
|
},
|
|
13638
14015
|
"contacts.search": function(w, v) {
|
|
13639
|
-
w.uint(
|
|
14016
|
+
w.uint(99978511);
|
|
14017
|
+
var flags = 0;
|
|
14018
|
+
if (v.broadcasts === true) flags |= 1;
|
|
14019
|
+
if (v.bots === true) flags |= 2;
|
|
14020
|
+
w.uint(flags);
|
|
13640
14021
|
w.string(h(v, "q"));
|
|
13641
14022
|
w.int(h(v, "limit"));
|
|
13642
14023
|
},
|
|
@@ -13852,7 +14233,7 @@ var m = {
|
|
|
13852
14233
|
w.object(h(v, "action"));
|
|
13853
14234
|
},
|
|
13854
14235
|
"messages.sendMessage": function(w, v) {
|
|
13855
|
-
w.uint(
|
|
14236
|
+
w.uint(4277440354);
|
|
13856
14237
|
var flags = 0;
|
|
13857
14238
|
var _replyTo = v.replyTo !== void 0;
|
|
13858
14239
|
if (_replyTo) flags |= 1;
|
|
@@ -13880,6 +14261,8 @@ var m = {
|
|
|
13880
14261
|
if (_allowPaidStars) flags |= 2097152;
|
|
13881
14262
|
var _suggestedPost = v.suggestedPost !== void 0;
|
|
13882
14263
|
if (_suggestedPost) flags |= 4194304;
|
|
14264
|
+
var _richMessage = v.richMessage !== void 0;
|
|
14265
|
+
if (_richMessage) flags |= 8388608;
|
|
13883
14266
|
var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
|
|
13884
14267
|
if (_scheduleRepeatPeriod) flags |= 16777216;
|
|
13885
14268
|
w.uint(flags);
|
|
@@ -13896,6 +14279,7 @@ var m = {
|
|
|
13896
14279
|
if (_effect) w.long(v.effect);
|
|
13897
14280
|
if (_allowPaidStars) w.long(v.allowPaidStars);
|
|
13898
14281
|
if (_suggestedPost) w.object(v.suggestedPost);
|
|
14282
|
+
if (_richMessage) w.object(v.richMessage);
|
|
13899
14283
|
},
|
|
13900
14284
|
"messages.sendMedia": function(w, v) {
|
|
13901
14285
|
w.uint(53536639);
|
|
@@ -14160,7 +14544,7 @@ var m = {
|
|
|
14160
14544
|
w.string(h(v, "hash"));
|
|
14161
14545
|
},
|
|
14162
14546
|
"messages.importChatInvite": function(w, v) {
|
|
14163
|
-
w.uint(
|
|
14547
|
+
w.uint(3734061934);
|
|
14164
14548
|
w.string(h(v, "hash"));
|
|
14165
14549
|
},
|
|
14166
14550
|
"messages.getStickerSet": function(w, v) {
|
|
@@ -14307,7 +14691,7 @@ var m = {
|
|
|
14307
14691
|
w.int(h(v, "id"));
|
|
14308
14692
|
},
|
|
14309
14693
|
"messages.editMessage": function(w, v) {
|
|
14310
|
-
w.uint(
|
|
14694
|
+
w.uint(2970019436);
|
|
14311
14695
|
var flags = 0;
|
|
14312
14696
|
if (v.noWebpage === true) flags |= 2;
|
|
14313
14697
|
var _replyMarkup = v.replyMarkup !== void 0;
|
|
@@ -14325,6 +14709,8 @@ var m = {
|
|
|
14325
14709
|
if (_quickReplyShortcutId) flags |= 131072;
|
|
14326
14710
|
var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
|
|
14327
14711
|
if (_scheduleRepeatPeriod) flags |= 262144;
|
|
14712
|
+
var _richMessage = v.richMessage !== void 0;
|
|
14713
|
+
if (_richMessage) flags |= 8388608;
|
|
14328
14714
|
w.uint(flags);
|
|
14329
14715
|
w.object(h(v, "peer"));
|
|
14330
14716
|
w.int(h(v, "id"));
|
|
@@ -14335,9 +14721,10 @@ var m = {
|
|
|
14335
14721
|
if (_scheduleDate) w.int(v.scheduleDate);
|
|
14336
14722
|
if (_scheduleRepeatPeriod) w.int(v.scheduleRepeatPeriod);
|
|
14337
14723
|
if (_quickReplyShortcutId) w.int(v.quickReplyShortcutId);
|
|
14724
|
+
if (_richMessage) w.object(v.richMessage);
|
|
14338
14725
|
},
|
|
14339
14726
|
"messages.editInlineBotMessage": function(w, v) {
|
|
14340
|
-
w.uint(
|
|
14727
|
+
w.uint(2753805137);
|
|
14341
14728
|
var flags = 0;
|
|
14342
14729
|
if (v.noWebpage === true) flags |= 2;
|
|
14343
14730
|
var _replyMarkup = v.replyMarkup !== void 0;
|
|
@@ -14349,12 +14736,15 @@ var m = {
|
|
|
14349
14736
|
var _media = v.media !== void 0;
|
|
14350
14737
|
if (_media) flags |= 16384;
|
|
14351
14738
|
if (v.invertMedia === true) flags |= 65536;
|
|
14739
|
+
var _richMessage = v.richMessage !== void 0;
|
|
14740
|
+
if (_richMessage) flags |= 8388608;
|
|
14352
14741
|
w.uint(flags);
|
|
14353
14742
|
w.object(h(v, "id"));
|
|
14354
14743
|
if (_message) w.string(v.message);
|
|
14355
14744
|
if (_media) w.object(v.media);
|
|
14356
14745
|
if (_replyMarkup) w.object(v.replyMarkup);
|
|
14357
14746
|
if (_entities) w.vector(w.object, v.entities);
|
|
14747
|
+
if (_richMessage) w.object(v.richMessage);
|
|
14358
14748
|
},
|
|
14359
14749
|
"messages.getBotCallbackAnswer": function(w, v) {
|
|
14360
14750
|
w.uint(2470627847);
|
|
@@ -14389,7 +14779,7 @@ var m = {
|
|
|
14389
14779
|
w.vector(w.object, h(v, "peers"));
|
|
14390
14780
|
},
|
|
14391
14781
|
"messages.saveDraft": function(w, v) {
|
|
14392
|
-
w.uint(
|
|
14782
|
+
w.uint(2903482716);
|
|
14393
14783
|
var flags = 0;
|
|
14394
14784
|
if (v.noWebpage === true) flags |= 2;
|
|
14395
14785
|
var _entities = v.entities && v.entities.length;
|
|
@@ -14403,6 +14793,8 @@ var m = {
|
|
|
14403
14793
|
if (_effect) flags |= 128;
|
|
14404
14794
|
var _suggestedPost = v.suggestedPost !== void 0;
|
|
14405
14795
|
if (_suggestedPost) flags |= 256;
|
|
14796
|
+
var _richMessage = v.richMessage !== void 0;
|
|
14797
|
+
if (_richMessage) flags |= 512;
|
|
14406
14798
|
w.uint(flags);
|
|
14407
14799
|
if (_replyTo) w.object(v.replyTo);
|
|
14408
14800
|
w.object(h(v, "peer"));
|
|
@@ -14411,6 +14803,7 @@ var m = {
|
|
|
14411
14803
|
if (_media) w.object(v.media);
|
|
14412
14804
|
if (_effect) w.long(v.effect);
|
|
14413
14805
|
if (_suggestedPost) w.object(v.suggestedPost);
|
|
14806
|
+
if (_richMessage) w.object(v.richMessage);
|
|
14414
14807
|
},
|
|
14415
14808
|
"messages.getAllDrafts": function(w) {
|
|
14416
14809
|
w.uint(1782549861);
|
|
@@ -15899,6 +16292,11 @@ var m = {
|
|
|
15899
16292
|
w.int(h(v, "minId"));
|
|
15900
16293
|
w.long(h(v, "hash"));
|
|
15901
16294
|
},
|
|
16295
|
+
"messages.getRichMessage": function(w, v) {
|
|
16296
|
+
w.uint(1343580623);
|
|
16297
|
+
w.object(h(v, "peer"));
|
|
16298
|
+
w.int(h(v, "id"));
|
|
16299
|
+
},
|
|
15902
16300
|
"updates.getState": function(w) {
|
|
15903
16301
|
w.uint(3990128682);
|
|
15904
16302
|
},
|
|
@@ -16231,7 +16629,7 @@ var m = {
|
|
|
16231
16629
|
w.string(h(v, "username"));
|
|
16232
16630
|
},
|
|
16233
16631
|
"channels.joinChannel": function(w, v) {
|
|
16234
|
-
w.uint(
|
|
16632
|
+
w.uint(2137660962);
|
|
16235
16633
|
w.object(h(v, "channel"));
|
|
16236
16634
|
},
|
|
16237
16635
|
"channels.leaveChannel": function(w, v) {
|
|
@@ -16366,9 +16764,15 @@ var m = {
|
|
|
16366
16764
|
w.boolean(h(v, "enabled"));
|
|
16367
16765
|
},
|
|
16368
16766
|
"channels.toggleJoinRequest": function(w, v) {
|
|
16369
|
-
w.uint(
|
|
16767
|
+
w.uint(248260120);
|
|
16768
|
+
var flags = 0;
|
|
16769
|
+
var _guardBot = v.guardBot !== void 0;
|
|
16770
|
+
if (_guardBot) flags |= 1;
|
|
16771
|
+
if (v.applyToInvites === true) flags |= 2;
|
|
16772
|
+
w.uint(flags);
|
|
16370
16773
|
w.object(h(v, "channel"));
|
|
16371
16774
|
w.boolean(h(v, "enabled"));
|
|
16775
|
+
if (_guardBot) w.object(v.guardBot);
|
|
16372
16776
|
},
|
|
16373
16777
|
"channels.reorderUsernames": function(w, v) {
|
|
16374
16778
|
w.uint(3025988893);
|
|
@@ -16723,6 +17127,11 @@ var m = {
|
|
|
16723
17127
|
w.object(h(v, "bot"));
|
|
16724
17128
|
if (_addUsers) w.vector(w.object, v.addUsers);
|
|
16725
17129
|
},
|
|
17130
|
+
"bots.setJoinChatResults": function(w, v) {
|
|
17131
|
+
w.uint(3877259280);
|
|
17132
|
+
w.long(h(v, "queryId"));
|
|
17133
|
+
w.object(h(v, "result"));
|
|
17134
|
+
},
|
|
16726
17135
|
"payments.getPaymentForm": function(w, v) {
|
|
16727
17136
|
w.uint(924093883);
|
|
16728
17137
|
var flags = 0;
|
|
@@ -18597,6 +19006,7 @@ var m = {
|
|
|
18597
19006
|
"updateStarGiftCraftFail": 4,
|
|
18598
19007
|
"updateManagedBot": 24,
|
|
18599
19008
|
"updateAiComposeTones": 4,
|
|
19009
|
+
"updateWebBrowserSettings": 8,
|
|
18600
19010
|
"updates.state": 24,
|
|
18601
19011
|
"updates.differenceEmpty": 12,
|
|
18602
19012
|
"updates.differenceTooLong": 8,
|
|
@@ -19001,6 +19411,10 @@ var m = {
|
|
|
19001
19411
|
"inputMessageReadMetric": 32,
|
|
19002
19412
|
"inputAiComposeToneID": 20,
|
|
19003
19413
|
"aicompose.tonesNotModified": 4,
|
|
19414
|
+
"joinChatBotResultApproved": 4,
|
|
19415
|
+
"joinChatBotResultDeclined": 4,
|
|
19416
|
+
"joinChatBotResultQueued": 4,
|
|
19417
|
+
"account.webBrowserSettingsNotModified": 4,
|
|
19004
19418
|
"updateChannelPinnedTopic": 20,
|
|
19005
19419
|
"auth.logOut": 4,
|
|
19006
19420
|
"auth.resetAuthorizations": 4,
|
|
@@ -19055,6 +19469,9 @@ var m = {
|
|
|
19055
19469
|
"account.getSavedMusicIds": 12,
|
|
19056
19470
|
"account.initPasskeyRegistration": 4,
|
|
19057
19471
|
"account.getPasskeys": 4,
|
|
19472
|
+
"account.getWebBrowserSettings": 12,
|
|
19473
|
+
"account.updateWebBrowserSettings": 8,
|
|
19474
|
+
"account.deleteWebBrowserSettingsExceptions": 4,
|
|
19058
19475
|
"contacts.getContactIDs": 12,
|
|
19059
19476
|
"contacts.getStatuses": 4,
|
|
19060
19477
|
"contacts.getContacts": 12,
|