@mtcute/core 0.31.0 → 0.32.0
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 +12 -0
- package/client.js +12 -0
- package/highlevel/client.d.cts +74 -9
- package/highlevel/client.d.ts +74 -9
- package/highlevel/methods/chats/build-peers-index.cjs +45 -0
- package/highlevel/methods/chats/build-peers-index.d.cts +13 -0
- package/highlevel/methods/chats/build-peers-index.d.ts +13 -0
- package/highlevel/methods/chats/build-peers-index.js +40 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.cjs +17 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.cts +8 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.ts +8 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.js +12 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.cjs +1 -1
- package/highlevel/methods/ephemeral/delete-ephemeral-message.d.cts +2 -2
- package/highlevel/methods/ephemeral/delete-ephemeral-message.d.ts +2 -2
- package/highlevel/methods/ephemeral/delete-ephemeral-message.js +1 -1
- package/highlevel/methods/ephemeral/delete-welcome-message.cjs +18 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.d.cts +9 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.d.ts +9 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.js +13 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.cjs +11 -3
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.cts +16 -2
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.ts +16 -2
- package/highlevel/methods/ephemeral/edit-ephemeral-message.js +11 -3
- package/highlevel/methods/ephemeral/get-welcome-messages.cjs +29 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.d.cts +8 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.d.ts +8 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.js +24 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.cjs +13 -3
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.cts +20 -2
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.ts +20 -2
- package/highlevel/methods/ephemeral/send-ephemeral-message.js +13 -3
- package/highlevel/methods/files/download-iterable.cjs +3 -0
- package/highlevel/methods/files/download-iterable.js +3 -0
- package/highlevel/methods/files/normalize-input-media.cjs +25 -4
- package/highlevel/methods/files/normalize-input-media.js +25 -4
- package/highlevel/methods/forums/edit-forum-topic.cjs +1 -1
- package/highlevel/methods/forums/edit-forum-topic.js +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.js +1 -1
- package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +1 -1
- package/highlevel/methods/forums/toggle-general-topic-hidden.js +1 -1
- package/highlevel/methods/gifts/buy-resale-gift.cjs +5 -2
- package/highlevel/methods/gifts/buy-resale-gift.d.cts +11 -1
- package/highlevel/methods/gifts/buy-resale-gift.d.ts +11 -1
- package/highlevel/methods/gifts/buy-resale-gift.js +5 -2
- package/highlevel/methods/messages/forward-messages.cjs +1 -0
- package/highlevel/methods/messages/forward-messages.d.cts +2 -0
- package/highlevel/methods/messages/forward-messages.d.ts +2 -0
- package/highlevel/methods/messages/forward-messages.js +1 -0
- package/highlevel/methods/messages/normalize-rich-message.cjs +3 -0
- package/highlevel/methods/messages/normalize-rich-message.js +3 -0
- package/highlevel/methods/messages/send-text.cjs +2 -33
- package/highlevel/methods/messages/send-text.js +2 -33
- package/highlevel/methods/messages/send-typing.d.cts +3 -3
- package/highlevel/methods/messages/send-typing.d.ts +3 -3
- package/highlevel/methods/messages/set-typing.cjs +1 -1
- package/highlevel/methods/messages/set-typing.d.cts +2 -2
- package/highlevel/methods/messages/set-typing.d.ts +2 -2
- package/highlevel/methods/messages/set-typing.js +1 -1
- package/highlevel/methods.d.cts +3 -0
- package/highlevel/methods.d.ts +3 -0
- package/highlevel/types/bots/keyboards/builder.cjs +5 -5
- package/highlevel/types/bots/keyboards/builder.d.cts +8 -9
- package/highlevel/types/bots/keyboards/builder.d.ts +8 -9
- package/highlevel/types/bots/keyboards/builder.js +5 -5
- package/highlevel/types/bots/keyboards/factories.cjs +51 -103
- package/highlevel/types/bots/keyboards/factories.d.cts +58 -89
- package/highlevel/types/bots/keyboards/factories.d.ts +58 -89
- package/highlevel/types/bots/keyboards/factories.js +51 -103
- package/highlevel/types/bots/keyboards/index.d.cts +3 -3
- package/highlevel/types/bots/keyboards/index.d.ts +3 -3
- package/highlevel/types/bots/keyboards/normalize.cjs +131 -0
- package/highlevel/types/bots/keyboards/normalize.d.cts +10 -0
- package/highlevel/types/bots/keyboards/normalize.d.ts +10 -0
- package/highlevel/types/bots/keyboards/normalize.js +126 -0
- package/highlevel/types/bots/keyboards/types.d.cts +160 -4
- package/highlevel/types/bots/keyboards/types.d.ts +160 -4
- package/highlevel/types/messages/dialog.cjs +8 -1
- package/highlevel/types/messages/dialog.d.cts +3 -0
- package/highlevel/types/messages/dialog.d.ts +3 -0
- package/highlevel/types/messages/dialog.js +8 -1
- package/highlevel/types/messages/dialog.test.d.cts +1 -0
- package/highlevel/types/messages/dialog.test.d.ts +1 -0
- package/highlevel/types/messages/ephemeral-message.cjs +35 -3
- package/highlevel/types/messages/ephemeral-message.d.cts +22 -2
- package/highlevel/types/messages/ephemeral-message.d.ts +22 -2
- package/highlevel/types/messages/ephemeral-message.js +35 -3
- package/highlevel/types/messages/message-action.cjs +8 -1
- package/highlevel/types/messages/message-action.d.cts +11 -1
- package/highlevel/types/messages/message-action.d.ts +11 -1
- package/highlevel/types/messages/message-action.js +8 -1
- package/highlevel/types/messages/message.cjs +7 -2
- package/highlevel/types/messages/message.d.cts +2 -2
- package/highlevel/types/messages/message.d.ts +2 -2
- package/highlevel/types/messages/message.js +8 -3
- package/highlevel/types/messages/rich/inner.cjs +37 -0
- package/highlevel/types/messages/rich/inner.d.cts +19 -0
- package/highlevel/types/messages/rich/inner.d.ts +19 -0
- package/highlevel/types/messages/rich/inner.js +37 -0
- package/highlevel/types/peers/full-chat.cjs +4 -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 +4 -0
- package/highlevel/types/peers/typing-status.d.cts +4 -1
- package/highlevel/types/peers/typing-status.d.ts +4 -1
- package/highlevel/types/updates/ephemeral-callback-query.cjs +10 -2
- package/highlevel/types/updates/ephemeral-callback-query.d.cts +8 -2
- package/highlevel/types/updates/ephemeral-callback-query.d.ts +8 -2
- package/highlevel/types/updates/ephemeral-callback-query.js +10 -2
- package/highlevel/types/updates/user-typing-update.cjs +18 -0
- package/highlevel/types/updates/user-typing-update.d.cts +9 -0
- package/highlevel/types/updates/user-typing-update.d.ts +9 -0
- package/highlevel/types/updates/user-typing-update.js +18 -0
- package/highlevel/updates/manager.cjs +40 -28
- package/highlevel/updates/manager.js +40 -28
- package/highlevel/utils/walk-page-blocks.cjs +5 -0
- package/highlevel/utils/walk-page-blocks.js +5 -0
- package/methods.cjs +6 -0
- package/methods.js +6 -0
- package/network/mtproto-session.cjs +9 -2
- package/network/mtproto-session.d.cts +3 -1
- package/network/mtproto-session.d.ts +3 -1
- package/network/mtproto-session.js +9 -2
- package/network/network-manager.cjs +1 -1
- package/network/network-manager.js +1 -1
- package/network/session-connection.cjs +12 -6
- package/network/session-connection.js +12 -6
- package/network/session-connection.test.d.cts +1 -0
- package/network/session-connection.test.d.ts +1 -0
- package/package.json +3 -3
- package/tl/api-schema.json +1 -1
- package/tl/binary/reader.cjs +136 -93
- package/tl/binary/reader.js +136 -93
- package/tl/binary/writer.cjs +318 -207
- package/tl/binary/writer.js +318 -207
- package/tl/compat/reader.cjs +82 -0
- package/tl/compat/reader.js +82 -0
- package/tl/index.d.cts +377 -718
- package/tl/index.d.ts +377 -718
- package/tl/inner-tl.cjs +23 -7
- package/tl/inner-tl.js +23 -7
- package/tl/rpc-error.test.d.cts +1 -0
- package/tl/rpc-error.test.d.ts +1 -0
- package/utils/binary/compat.cjs +175 -29
- package/utils/binary/compat.js +175 -29
- package/utils/links/bots.cjs +9 -4
- package/utils/links/bots.js +9 -4
package/tl/binary/writer.js
CHANGED
|
@@ -840,6 +840,7 @@ var m = {
|
|
|
840
840
|
if (v.translationsDisabled === true) flags |= 524288;
|
|
841
841
|
var _reactionsLimit = v.reactionsLimit !== void 0;
|
|
842
842
|
if (_reactionsLimit) flags |= 1048576;
|
|
843
|
+
if (v.hasWelcomeMessages === true) flags |= 2097152;
|
|
843
844
|
w.uint(flags);
|
|
844
845
|
w.int53(h(v, "id"));
|
|
845
846
|
w.string(h(v, "about"));
|
|
@@ -959,6 +960,7 @@ var m = {
|
|
|
959
960
|
if (_mainTab) flags2 |= 4194304;
|
|
960
961
|
var _guardBotId = v.guardBotId !== void 0;
|
|
961
962
|
if (_guardBotId) flags2 |= 8388608;
|
|
963
|
+
if (v.hasWelcomeMessages === true) flags2 |= 16777216;
|
|
962
964
|
w.uint(flags2);
|
|
963
965
|
w.int53(h(v, "id"));
|
|
964
966
|
w.string(h(v, "about"));
|
|
@@ -1843,7 +1845,7 @@ var m = {
|
|
|
1843
1845
|
if (_giftNum) w.int(v.giftNum);
|
|
1844
1846
|
},
|
|
1845
1847
|
"messageActionStarGiftUnique": function(w, v) {
|
|
1846
|
-
w.uint(
|
|
1848
|
+
w.uint(2115768711);
|
|
1847
1849
|
var flags = 0;
|
|
1848
1850
|
if (v.upgrade === true) flags |= 1;
|
|
1849
1851
|
if (v.transferred === true) flags |= 2;
|
|
@@ -1873,6 +1875,9 @@ var m = {
|
|
|
1873
1875
|
var _canCraftAt = v.canCraftAt !== void 0;
|
|
1874
1876
|
if (_canCraftAt) flags |= 32768;
|
|
1875
1877
|
if (v.craft === true) flags |= 65536;
|
|
1878
|
+
if (v.nameHidden === true) flags |= 131072;
|
|
1879
|
+
var _message = v.message !== void 0;
|
|
1880
|
+
if (_message) flags |= 262144;
|
|
1876
1881
|
w.uint(flags);
|
|
1877
1882
|
w.object(h(v, "gift"));
|
|
1878
1883
|
if (_canExportAt) w.int(v.canExportAt);
|
|
@@ -1885,6 +1890,7 @@ var m = {
|
|
|
1885
1890
|
if (_canResellAt) w.int(v.canResellAt);
|
|
1886
1891
|
if (_dropOriginalDetailsStars) w.long(v.dropOriginalDetailsStars);
|
|
1887
1892
|
if (_canCraftAt) w.int(v.canCraftAt);
|
|
1893
|
+
if (_message) w.object(v.message);
|
|
1888
1894
|
},
|
|
1889
1895
|
"messageActionPaidMessagesRefunded": function(w, v) {
|
|
1890
1896
|
w.uint(2887720909);
|
|
@@ -2023,6 +2029,10 @@ var m = {
|
|
|
2023
2029
|
w.uint(flags);
|
|
2024
2030
|
if (_communityId) w.int53(v.communityId);
|
|
2025
2031
|
},
|
|
2032
|
+
"messageActionChatJoinedViaCommunity": function(w, v) {
|
|
2033
|
+
w.uint(1250688640);
|
|
2034
|
+
w.int53(h(v, "communityId"));
|
|
2035
|
+
},
|
|
2026
2036
|
"dialog": function(w, v) {
|
|
2027
2037
|
w.uint(4236900339);
|
|
2028
2038
|
var flags = 0;
|
|
@@ -3842,12 +3852,19 @@ var m = {
|
|
|
3842
3852
|
w.object(h(v, "message"));
|
|
3843
3853
|
},
|
|
3844
3854
|
"updateEphemeralBotCallbackQuery": function(w, v) {
|
|
3845
|
-
w.uint(
|
|
3855
|
+
w.uint(2081454550);
|
|
3856
|
+
var flags = 0;
|
|
3857
|
+
var _peer = v.peer !== void 0;
|
|
3858
|
+
if (_peer) flags |= 1;
|
|
3859
|
+
var _chatInstance = v.chatInstance !== void 0;
|
|
3860
|
+
if (_chatInstance) flags |= 2;
|
|
3861
|
+
w.uint(flags);
|
|
3846
3862
|
w.long(h(v, "queryId"));
|
|
3847
3863
|
w.int53(h(v, "userId"));
|
|
3848
|
-
w.object(
|
|
3864
|
+
if (_peer) w.object(v.peer);
|
|
3849
3865
|
w.int(h(v, "msgId"));
|
|
3850
3866
|
w.bytes(h(v, "data"));
|
|
3867
|
+
if (_chatInstance) w.long(v.chatInstance);
|
|
3851
3868
|
w.object(h(v, "message"));
|
|
3852
3869
|
},
|
|
3853
3870
|
"updateBotStarsSubscription": function(w, v) {
|
|
@@ -4392,20 +4409,36 @@ var m = {
|
|
|
4392
4409
|
w.string(h(v, "emoticon"));
|
|
4393
4410
|
},
|
|
4394
4411
|
"sendMessageTextDraftAction": function(w, v) {
|
|
4395
|
-
w.uint(
|
|
4412
|
+
w.uint(909162586);
|
|
4413
|
+
var flags = 0;
|
|
4414
|
+
if (v.canStop === true) flags |= 1;
|
|
4415
|
+
if (v.keepOnStop === true) flags |= 2;
|
|
4416
|
+
w.uint(flags);
|
|
4396
4417
|
w.long(h(v, "randomId"));
|
|
4397
4418
|
w.object(h(v, "text"));
|
|
4398
4419
|
},
|
|
4399
4420
|
"inputSendMessageRichMessageDraftAction": function(w, v) {
|
|
4400
|
-
w.uint(
|
|
4421
|
+
w.uint(2839005118);
|
|
4422
|
+
var flags = 0;
|
|
4423
|
+
if (v.canStop === true) flags |= 1;
|
|
4424
|
+
if (v.keepOnStop === true) flags |= 2;
|
|
4425
|
+
w.uint(flags);
|
|
4401
4426
|
w.long(h(v, "randomId"));
|
|
4402
4427
|
w.object(h(v, "richMessage"));
|
|
4403
4428
|
},
|
|
4404
4429
|
"sendMessageRichMessageDraftAction": function(w, v) {
|
|
4405
|
-
w.uint(
|
|
4430
|
+
w.uint(1381386387);
|
|
4431
|
+
var flags = 0;
|
|
4432
|
+
if (v.canStop === true) flags |= 1;
|
|
4433
|
+
if (v.keepOnStop === true) flags |= 2;
|
|
4434
|
+
w.uint(flags);
|
|
4406
4435
|
w.long(h(v, "randomId"));
|
|
4407
4436
|
w.object(h(v, "richMessage"));
|
|
4408
4437
|
},
|
|
4438
|
+
"sendMessageStopDraftAction": function(w, v) {
|
|
4439
|
+
w.uint(4227400368);
|
|
4440
|
+
w.long(h(v, "randomId"));
|
|
4441
|
+
},
|
|
4409
4442
|
"contacts.found": function(w, v) {
|
|
4410
4443
|
w.uint(3004386717);
|
|
4411
4444
|
w.vector(w.object, h(v, "myResults"));
|
|
@@ -5065,202 +5098,14 @@ var m = {
|
|
|
5065
5098
|
if (_verifierSettings) w.object(v.verifierSettings);
|
|
5066
5099
|
},
|
|
5067
5100
|
"keyboardButton": function(w, v) {
|
|
5068
|
-
w.uint(
|
|
5069
|
-
var flags = 0;
|
|
5070
|
-
var _style = v.style !== void 0;
|
|
5071
|
-
if (_style) flags |= 1024;
|
|
5072
|
-
w.uint(flags);
|
|
5073
|
-
if (_style) w.object(v.style);
|
|
5074
|
-
w.string(h(v, "text"));
|
|
5075
|
-
},
|
|
5076
|
-
"keyboardButtonUrl": function(w, v) {
|
|
5077
|
-
w.uint(3624674796);
|
|
5078
|
-
var flags = 0;
|
|
5079
|
-
var _style = v.style !== void 0;
|
|
5080
|
-
if (_style) flags |= 1024;
|
|
5081
|
-
w.uint(flags);
|
|
5082
|
-
if (_style) w.object(v.style);
|
|
5083
|
-
w.string(h(v, "text"));
|
|
5084
|
-
w.string(h(v, "url"));
|
|
5085
|
-
},
|
|
5086
|
-
"keyboardButtonCallback": function(w, v) {
|
|
5087
|
-
w.uint(3861629280);
|
|
5088
|
-
var flags = 0;
|
|
5089
|
-
if (v.requiresPassword === true) flags |= 1;
|
|
5090
|
-
var _style = v.style !== void 0;
|
|
5091
|
-
if (_style) flags |= 1024;
|
|
5092
|
-
w.uint(flags);
|
|
5093
|
-
if (_style) w.object(v.style);
|
|
5094
|
-
w.string(h(v, "text"));
|
|
5095
|
-
w.bytes(h(v, "data"));
|
|
5096
|
-
},
|
|
5097
|
-
"keyboardButtonRequestPhone": function(w, v) {
|
|
5098
|
-
w.uint(1098841487);
|
|
5099
|
-
var flags = 0;
|
|
5100
|
-
var _style = v.style !== void 0;
|
|
5101
|
-
if (_style) flags |= 1024;
|
|
5102
|
-
w.uint(flags);
|
|
5103
|
-
if (_style) w.object(v.style);
|
|
5104
|
-
w.string(h(v, "text"));
|
|
5105
|
-
},
|
|
5106
|
-
"keyboardButtonRequestGeoLocation": function(w, v) {
|
|
5107
|
-
w.uint(2856384845);
|
|
5108
|
-
var flags = 0;
|
|
5109
|
-
var _style = v.style !== void 0;
|
|
5110
|
-
if (_style) flags |= 1024;
|
|
5111
|
-
w.uint(flags);
|
|
5112
|
-
if (_style) w.object(v.style);
|
|
5113
|
-
w.string(h(v, "text"));
|
|
5114
|
-
},
|
|
5115
|
-
"keyboardButtonSwitchInline": function(w, v) {
|
|
5116
|
-
w.uint(2568198652);
|
|
5117
|
-
var flags = 0;
|
|
5118
|
-
if (v.samePeer === true) flags |= 1;
|
|
5119
|
-
var _peerTypes = v.peerTypes && v.peerTypes.length;
|
|
5120
|
-
if (_peerTypes) flags |= 2;
|
|
5121
|
-
var _style = v.style !== void 0;
|
|
5122
|
-
if (_style) flags |= 1024;
|
|
5123
|
-
w.uint(flags);
|
|
5124
|
-
if (_style) w.object(v.style);
|
|
5125
|
-
w.string(h(v, "text"));
|
|
5126
|
-
w.string(h(v, "query"));
|
|
5127
|
-
if (_peerTypes) w.vector(w.object, v.peerTypes);
|
|
5128
|
-
},
|
|
5129
|
-
"keyboardButtonGame": function(w, v) {
|
|
5130
|
-
w.uint(2311426297);
|
|
5131
|
-
var flags = 0;
|
|
5132
|
-
var _style = v.style !== void 0;
|
|
5133
|
-
if (_style) flags |= 1024;
|
|
5134
|
-
w.uint(flags);
|
|
5135
|
-
if (_style) w.object(v.style);
|
|
5136
|
-
w.string(h(v, "text"));
|
|
5137
|
-
},
|
|
5138
|
-
"keyboardButtonBuy": function(w, v) {
|
|
5139
|
-
w.uint(1067792645);
|
|
5140
|
-
var flags = 0;
|
|
5141
|
-
var _style = v.style !== void 0;
|
|
5142
|
-
if (_style) flags |= 1024;
|
|
5143
|
-
w.uint(flags);
|
|
5144
|
-
if (_style) w.object(v.style);
|
|
5145
|
-
w.string(h(v, "text"));
|
|
5146
|
-
},
|
|
5147
|
-
"keyboardButtonUrlAuth": function(w, v) {
|
|
5148
|
-
w.uint(4111468281);
|
|
5149
|
-
var flags = 0;
|
|
5150
|
-
var _fwdText = v.fwdText !== void 0;
|
|
5151
|
-
if (_fwdText) flags |= 1;
|
|
5152
|
-
var _style = v.style !== void 0;
|
|
5153
|
-
if (_style) flags |= 1024;
|
|
5154
|
-
w.uint(flags);
|
|
5155
|
-
if (_style) w.object(v.style);
|
|
5156
|
-
w.string(h(v, "text"));
|
|
5157
|
-
if (_fwdText) w.string(v.fwdText);
|
|
5158
|
-
w.string(h(v, "url"));
|
|
5159
|
-
w.int(h(v, "buttonId"));
|
|
5160
|
-
},
|
|
5161
|
-
"inputKeyboardButtonUrlAuth": function(w, v) {
|
|
5162
|
-
w.uint(1744911986);
|
|
5163
|
-
var flags = 0;
|
|
5164
|
-
if (v.requestWriteAccess === true) flags |= 1;
|
|
5165
|
-
var _fwdText = v.fwdText !== void 0;
|
|
5166
|
-
if (_fwdText) flags |= 2;
|
|
5167
|
-
var _style = v.style !== void 0;
|
|
5168
|
-
if (_style) flags |= 1024;
|
|
5169
|
-
w.uint(flags);
|
|
5170
|
-
if (_style) w.object(v.style);
|
|
5171
|
-
w.string(h(v, "text"));
|
|
5172
|
-
if (_fwdText) w.string(v.fwdText);
|
|
5173
|
-
w.string(h(v, "url"));
|
|
5174
|
-
w.object(h(v, "bot"));
|
|
5175
|
-
},
|
|
5176
|
-
"keyboardButtonRequestPoll": function(w, v) {
|
|
5177
|
-
w.uint(2047989634);
|
|
5178
|
-
var flags = 0;
|
|
5179
|
-
var _quiz = v.quiz !== void 0;
|
|
5180
|
-
if (_quiz) flags |= 1;
|
|
5181
|
-
var _style = v.style !== void 0;
|
|
5182
|
-
if (_style) flags |= 1024;
|
|
5183
|
-
w.uint(flags);
|
|
5184
|
-
if (_style) w.object(v.style);
|
|
5185
|
-
if (_quiz) w.boolean(v.quiz);
|
|
5186
|
-
w.string(h(v, "text"));
|
|
5187
|
-
},
|
|
5188
|
-
"inputKeyboardButtonUserProfile": function(w, v) {
|
|
5189
|
-
w.uint(2103314375);
|
|
5190
|
-
var flags = 0;
|
|
5191
|
-
var _style = v.style !== void 0;
|
|
5192
|
-
if (_style) flags |= 1024;
|
|
5193
|
-
w.uint(flags);
|
|
5194
|
-
if (_style) w.object(v.style);
|
|
5195
|
-
w.string(h(v, "text"));
|
|
5196
|
-
w.object(h(v, "userId"));
|
|
5197
|
-
},
|
|
5198
|
-
"keyboardButtonUserProfile": function(w, v) {
|
|
5199
|
-
w.uint(3237829897);
|
|
5200
|
-
var flags = 0;
|
|
5201
|
-
var _style = v.style !== void 0;
|
|
5202
|
-
if (_style) flags |= 1024;
|
|
5203
|
-
w.uint(flags);
|
|
5204
|
-
if (_style) w.object(v.style);
|
|
5205
|
-
w.string(h(v, "text"));
|
|
5206
|
-
w.int53(h(v, "userId"));
|
|
5207
|
-
},
|
|
5208
|
-
"keyboardButtonWebView": function(w, v) {
|
|
5209
|
-
w.uint(3896947104);
|
|
5210
|
-
var flags = 0;
|
|
5211
|
-
var _style = v.style !== void 0;
|
|
5212
|
-
if (_style) flags |= 1024;
|
|
5213
|
-
w.uint(flags);
|
|
5214
|
-
if (_style) w.object(v.style);
|
|
5215
|
-
w.string(h(v, "text"));
|
|
5216
|
-
w.string(h(v, "url"));
|
|
5217
|
-
},
|
|
5218
|
-
"keyboardButtonSimpleWebView": function(w, v) {
|
|
5219
|
-
w.uint(3780920176);
|
|
5220
|
-
var flags = 0;
|
|
5221
|
-
var _style = v.style !== void 0;
|
|
5222
|
-
if (_style) flags |= 1024;
|
|
5223
|
-
w.uint(flags);
|
|
5224
|
-
if (_style) w.object(v.style);
|
|
5225
|
-
w.string(h(v, "text"));
|
|
5226
|
-
w.string(h(v, "url"));
|
|
5227
|
-
},
|
|
5228
|
-
"keyboardButtonRequestPeer": function(w, v) {
|
|
5229
|
-
w.uint(1527715317);
|
|
5230
|
-
var flags = 0;
|
|
5231
|
-
var _style = v.style !== void 0;
|
|
5232
|
-
if (_style) flags |= 1024;
|
|
5233
|
-
w.uint(flags);
|
|
5234
|
-
if (_style) w.object(v.style);
|
|
5235
|
-
w.string(h(v, "text"));
|
|
5236
|
-
w.int(h(v, "buttonId"));
|
|
5237
|
-
w.object(h(v, "peerType"));
|
|
5238
|
-
w.int(h(v, "maxQuantity"));
|
|
5239
|
-
},
|
|
5240
|
-
"inputKeyboardButtonRequestPeer": function(w, v) {
|
|
5241
|
-
w.uint(45580630);
|
|
5242
|
-
var flags = 0;
|
|
5243
|
-
if (v.nameRequested === true) flags |= 1;
|
|
5244
|
-
if (v.usernameRequested === true) flags |= 2;
|
|
5245
|
-
if (v.photoRequested === true) flags |= 4;
|
|
5246
|
-
var _style = v.style !== void 0;
|
|
5247
|
-
if (_style) flags |= 1024;
|
|
5248
|
-
w.uint(flags);
|
|
5249
|
-
if (_style) w.object(v.style);
|
|
5250
|
-
w.string(h(v, "text"));
|
|
5251
|
-
w.int(h(v, "buttonId"));
|
|
5252
|
-
w.object(h(v, "peerType"));
|
|
5253
|
-
w.int(h(v, "maxQuantity"));
|
|
5254
|
-
},
|
|
5255
|
-
"keyboardButtonCopy": function(w, v) {
|
|
5256
|
-
w.uint(3167006480);
|
|
5101
|
+
w.uint(795322159);
|
|
5257
5102
|
var flags = 0;
|
|
5258
5103
|
var _style = v.style !== void 0;
|
|
5259
5104
|
if (_style) flags |= 1024;
|
|
5260
5105
|
w.uint(flags);
|
|
5261
5106
|
if (_style) w.object(v.style);
|
|
5262
5107
|
w.string(h(v, "text"));
|
|
5263
|
-
w.
|
|
5108
|
+
w.object(h(v, "type"));
|
|
5264
5109
|
},
|
|
5265
5110
|
"keyboardButtonRow": function(w, v) {
|
|
5266
5111
|
w.uint(2002815875);
|
|
@@ -5291,12 +5136,16 @@ var m = {
|
|
|
5291
5136
|
var _placeholder = v.placeholder !== void 0;
|
|
5292
5137
|
if (_placeholder) flags |= 8;
|
|
5293
5138
|
if (v.persistent === true) flags |= 16;
|
|
5139
|
+
if (v.forceReply === true) flags |= 32;
|
|
5294
5140
|
w.uint(flags);
|
|
5295
5141
|
w.vector(w.object, h(v, "rows"));
|
|
5296
5142
|
if (_placeholder) w.string(v.placeholder);
|
|
5297
5143
|
},
|
|
5298
5144
|
"replyInlineMarkup": function(w, v) {
|
|
5299
|
-
w.uint(
|
|
5145
|
+
w.uint(2997966704);
|
|
5146
|
+
var flags = 0;
|
|
5147
|
+
if (v.forceReply === true) flags |= 32;
|
|
5148
|
+
w.uint(flags);
|
|
5300
5149
|
w.vector(w.object, h(v, "rows"));
|
|
5301
5150
|
},
|
|
5302
5151
|
"messageEntityUnknown": function(w, v) {
|
|
@@ -6531,6 +6380,16 @@ var m = {
|
|
|
6531
6380
|
w.object(h(v, "text"));
|
|
6532
6381
|
w.object(h(v, "oldText"));
|
|
6533
6382
|
},
|
|
6383
|
+
"textButton": function(w, v) {
|
|
6384
|
+
w.uint(2949094614);
|
|
6385
|
+
var flags = 0;
|
|
6386
|
+
var _style = v.style !== void 0;
|
|
6387
|
+
if (_style) flags |= 1;
|
|
6388
|
+
w.uint(flags);
|
|
6389
|
+
w.object(h(v, "text"));
|
|
6390
|
+
w.object(h(v, "type"));
|
|
6391
|
+
if (_style) w.object(v.style);
|
|
6392
|
+
},
|
|
6534
6393
|
"pageBlockUnsupported": function(w) {
|
|
6535
6394
|
w.uint(324435594);
|
|
6536
6395
|
},
|
|
@@ -6580,7 +6439,10 @@ var m = {
|
|
|
6580
6439
|
w.vector(w.object, h(v, "items"));
|
|
6581
6440
|
},
|
|
6582
6441
|
"pageBlockBlockquote": function(w, v) {
|
|
6583
|
-
w.uint(
|
|
6442
|
+
w.uint(1724999435);
|
|
6443
|
+
var flags = 0;
|
|
6444
|
+
if (v.collapsed === true) flags |= 1;
|
|
6445
|
+
w.uint(flags);
|
|
6584
6446
|
w.object(h(v, "text"));
|
|
6585
6447
|
w.object(h(v, "caption"));
|
|
6586
6448
|
},
|
|
@@ -6678,6 +6540,7 @@ var m = {
|
|
|
6678
6540
|
var flags = 0;
|
|
6679
6541
|
if (v.bordered === true) flags |= 1;
|
|
6680
6542
|
if (v.striped === true) flags |= 2;
|
|
6543
|
+
if (v.compact === true) flags |= 4;
|
|
6681
6544
|
w.uint(flags);
|
|
6682
6545
|
w.object(h(v, "title"));
|
|
6683
6546
|
w.vector(w.object, h(v, "rows"));
|
|
@@ -6761,6 +6624,20 @@ var m = {
|
|
|
6761
6624
|
w.vector(w.object, h(v, "blocks"));
|
|
6762
6625
|
w.object(h(v, "caption"));
|
|
6763
6626
|
},
|
|
6627
|
+
"pageBlockButtonRow": function(w, v) {
|
|
6628
|
+
w.uint(1835270936);
|
|
6629
|
+
var flags = 0;
|
|
6630
|
+
if (v.alignLeft === true) flags |= 1;
|
|
6631
|
+
if (v.alignCenter === true) flags |= 2;
|
|
6632
|
+
if (v.alignRight === true) flags |= 4;
|
|
6633
|
+
w.uint(flags);
|
|
6634
|
+
w.vector(w.object, h(v, "buttons"));
|
|
6635
|
+
},
|
|
6636
|
+
"pageBlockDocument": function(w, v) {
|
|
6637
|
+
w.uint(955923363);
|
|
6638
|
+
w.long(h(v, "documentId"));
|
|
6639
|
+
w.object(h(v, "caption"));
|
|
6640
|
+
},
|
|
6764
6641
|
"phoneCallDiscardReasonMissed": function(w) {
|
|
6765
6642
|
w.uint(2246320897);
|
|
6766
6643
|
},
|
|
@@ -8279,6 +8156,7 @@ var m = {
|
|
|
8279
8156
|
if (v.manageDirectMessages === true) flags |= 131072;
|
|
8280
8157
|
if (v.manageRanks === true) flags |= 262144;
|
|
8281
8158
|
if (v.manageLinkedPeers === true) flags |= 524288;
|
|
8159
|
+
if (v.manageWelcomeMessages === true) flags |= 1048576;
|
|
8282
8160
|
w.uint(flags);
|
|
8283
8161
|
},
|
|
8284
8162
|
"chatBannedRights": function(w, v) {
|
|
@@ -9761,12 +9639,16 @@ var m = {
|
|
|
9761
9639
|
w.long(h(v, "stars"));
|
|
9762
9640
|
},
|
|
9763
9641
|
"inputInvoiceStarGiftResale": function(w, v) {
|
|
9764
|
-
w.uint(
|
|
9642
|
+
w.uint(3920676440);
|
|
9765
9643
|
var flags = 0;
|
|
9766
9644
|
if (v.ton === true) flags |= 1;
|
|
9645
|
+
var _message = v.message !== void 0;
|
|
9646
|
+
if (_message) flags |= 2;
|
|
9647
|
+
if (v.showName === true) flags |= 4;
|
|
9767
9648
|
w.uint(flags);
|
|
9768
9649
|
w.string(h(v, "slug"));
|
|
9769
9650
|
w.object(h(v, "toId"));
|
|
9651
|
+
if (_message) w.object(v.message);
|
|
9770
9652
|
},
|
|
9771
9653
|
"inputInvoiceStarGiftPrepaidUpgrade": function(w, v) {
|
|
9772
9654
|
w.uint(2584430776);
|
|
@@ -13139,7 +13021,7 @@ var m = {
|
|
|
13139
13021
|
w.vector(w.object, h(v, "users"));
|
|
13140
13022
|
},
|
|
13141
13023
|
"ephemeralMessage": function(w, v) {
|
|
13142
|
-
w.uint(
|
|
13024
|
+
w.uint(3710369513);
|
|
13143
13025
|
var flags = 0;
|
|
13144
13026
|
if (v.out === true) flags |= 1;
|
|
13145
13027
|
var _topMsgId = v.topMsgId !== void 0;
|
|
@@ -13150,12 +13032,23 @@ var m = {
|
|
|
13150
13032
|
if (_media) flags |= 8;
|
|
13151
13033
|
var _replyMarkup = v.replyMarkup !== void 0;
|
|
13152
13034
|
if (_replyMarkup) flags |= 16;
|
|
13035
|
+
if (v.welcomeTemplate === true) flags |= 32;
|
|
13153
13036
|
var _replyTo = v.replyTo !== void 0;
|
|
13154
13037
|
if (_replyTo) flags |= 64;
|
|
13038
|
+
if (v.invertMedia === true) flags |= 128;
|
|
13039
|
+
var _richMessage = v.richMessage !== void 0;
|
|
13040
|
+
if (_richMessage) flags |= 256;
|
|
13041
|
+
var _peerId = v.peerId !== void 0;
|
|
13042
|
+
if (_peerId) flags |= 512;
|
|
13043
|
+
var _chatInstance = v.chatInstance !== void 0;
|
|
13044
|
+
if (_chatInstance) flags |= 1024;
|
|
13045
|
+
var _anchorMsgId = v.anchorMsgId !== void 0;
|
|
13046
|
+
if (_anchorMsgId) flags |= 2048;
|
|
13047
|
+
if (v.noforwards === true) flags |= 4096;
|
|
13155
13048
|
w.uint(flags);
|
|
13156
13049
|
w.int(h(v, "id"));
|
|
13157
13050
|
w.object(h(v, "fromId"));
|
|
13158
|
-
w.object(
|
|
13051
|
+
if (_peerId) w.object(v.peerId);
|
|
13159
13052
|
w.int53(h(v, "receiverId"));
|
|
13160
13053
|
if (_topMsgId) w.int(v.topMsgId);
|
|
13161
13054
|
w.int(h(v, "date"));
|
|
@@ -13164,6 +13057,9 @@ var m = {
|
|
|
13164
13057
|
if (_media) w.object(v.media);
|
|
13165
13058
|
if (_replyMarkup) w.object(v.replyMarkup);
|
|
13166
13059
|
if (_replyTo) w.object(v.replyTo);
|
|
13060
|
+
if (_richMessage) w.object(v.richMessage);
|
|
13061
|
+
if (_chatInstance) w.long(v.chatInstance);
|
|
13062
|
+
if (_anchorMsgId) w.int(v.anchorMsgId);
|
|
13167
13063
|
},
|
|
13168
13064
|
"communities.participantJoinedChats": function(w, v) {
|
|
13169
13065
|
w.uint(2373472554);
|
|
@@ -13180,6 +13076,161 @@ var m = {
|
|
|
13180
13076
|
w.uint(1279604680);
|
|
13181
13077
|
w.object(h(v, "result"));
|
|
13182
13078
|
},
|
|
13079
|
+
"buttonTypeDefault": function(w) {
|
|
13080
|
+
w.uint(3386740969);
|
|
13081
|
+
},
|
|
13082
|
+
"buttonTypeRequestPhone": function(w) {
|
|
13083
|
+
w.uint(3745330937);
|
|
13084
|
+
},
|
|
13085
|
+
"buttonTypeRequestGeoLocation": function(w) {
|
|
13086
|
+
w.uint(2616123712);
|
|
13087
|
+
},
|
|
13088
|
+
"buttonTypeRequestPoll": function(w, v) {
|
|
13089
|
+
w.uint(2865758084);
|
|
13090
|
+
var flags = 0;
|
|
13091
|
+
var _quiz = v.quiz !== void 0;
|
|
13092
|
+
if (_quiz) flags |= 1;
|
|
13093
|
+
w.uint(flags);
|
|
13094
|
+
if (_quiz) w.boolean(v.quiz);
|
|
13095
|
+
},
|
|
13096
|
+
"buttonTypeRequestPeer": function(w, v) {
|
|
13097
|
+
w.uint(1331208759);
|
|
13098
|
+
var flags = 0;
|
|
13099
|
+
w.uint(flags);
|
|
13100
|
+
w.int(h(v, "buttonId"));
|
|
13101
|
+
w.object(h(v, "peerType"));
|
|
13102
|
+
w.int(h(v, "maxQuantity"));
|
|
13103
|
+
},
|
|
13104
|
+
"inputButtonTypeRequestPeer": function(w, v) {
|
|
13105
|
+
w.uint(1071802622);
|
|
13106
|
+
var flags = 0;
|
|
13107
|
+
if (v.nameRequested === true) flags |= 1;
|
|
13108
|
+
if (v.usernameRequested === true) flags |= 2;
|
|
13109
|
+
if (v.photoRequested === true) flags |= 4;
|
|
13110
|
+
w.uint(flags);
|
|
13111
|
+
w.int(h(v, "buttonId"));
|
|
13112
|
+
w.object(h(v, "peerType"));
|
|
13113
|
+
w.int(h(v, "maxQuantity"));
|
|
13114
|
+
},
|
|
13115
|
+
"buttonTypeSimpleWebView": function(w, v) {
|
|
13116
|
+
w.uint(3222952314);
|
|
13117
|
+
w.string(h(v, "url"));
|
|
13118
|
+
},
|
|
13119
|
+
"inlineButtonTypeUrl": function(w, v) {
|
|
13120
|
+
w.uint(3970234580);
|
|
13121
|
+
w.string(h(v, "url"));
|
|
13122
|
+
},
|
|
13123
|
+
"inlineButtonTypeUrlAuth": function(w, v) {
|
|
13124
|
+
w.uint(3218091426);
|
|
13125
|
+
var flags = 0;
|
|
13126
|
+
var _fwdText = v.fwdText !== void 0;
|
|
13127
|
+
if (_fwdText) flags |= 1;
|
|
13128
|
+
w.uint(flags);
|
|
13129
|
+
if (_fwdText) w.string(v.fwdText);
|
|
13130
|
+
w.string(h(v, "url"));
|
|
13131
|
+
w.int(h(v, "buttonId"));
|
|
13132
|
+
},
|
|
13133
|
+
"inputInlineButtonTypeUrlAuth": function(w, v) {
|
|
13134
|
+
w.uint(2573319348);
|
|
13135
|
+
var flags = 0;
|
|
13136
|
+
if (v.requestWriteAccess === true) flags |= 1;
|
|
13137
|
+
var _fwdText = v.fwdText !== void 0;
|
|
13138
|
+
if (_fwdText) flags |= 2;
|
|
13139
|
+
var _bot = v.bot !== void 0;
|
|
13140
|
+
if (_bot) flags |= 4;
|
|
13141
|
+
w.uint(flags);
|
|
13142
|
+
if (_fwdText) w.string(v.fwdText);
|
|
13143
|
+
w.string(h(v, "url"));
|
|
13144
|
+
if (_bot) w.object(v.bot);
|
|
13145
|
+
},
|
|
13146
|
+
"inlineButtonTypeWebView": function(w, v) {
|
|
13147
|
+
w.uint(1003140532);
|
|
13148
|
+
w.string(h(v, "url"));
|
|
13149
|
+
},
|
|
13150
|
+
"inlineButtonTypeCallback": function(w, v) {
|
|
13151
|
+
w.uint(693484600);
|
|
13152
|
+
var flags = 0;
|
|
13153
|
+
if (v.requiresPassword === true) flags |= 1;
|
|
13154
|
+
w.uint(flags);
|
|
13155
|
+
w.bytes(h(v, "data"));
|
|
13156
|
+
},
|
|
13157
|
+
"inlineButtonTypeGame": function(w) {
|
|
13158
|
+
w.uint(1557360797);
|
|
13159
|
+
},
|
|
13160
|
+
"inlineButtonTypeBuy": function(w) {
|
|
13161
|
+
w.uint(1220204453);
|
|
13162
|
+
},
|
|
13163
|
+
"inlineButtonTypeSwitchInline": function(w, v) {
|
|
13164
|
+
w.uint(2474065909);
|
|
13165
|
+
var flags = 0;
|
|
13166
|
+
if (v.samePeer === true) flags |= 1;
|
|
13167
|
+
var _peerTypes = v.peerTypes && v.peerTypes.length;
|
|
13168
|
+
if (_peerTypes) flags |= 2;
|
|
13169
|
+
w.uint(flags);
|
|
13170
|
+
w.string(h(v, "query"));
|
|
13171
|
+
if (_peerTypes) w.vector(w.object, v.peerTypes);
|
|
13172
|
+
},
|
|
13173
|
+
"inlineButtonTypeUserProfile": function(w, v) {
|
|
13174
|
+
w.uint(1067663311);
|
|
13175
|
+
w.int53(h(v, "userId"));
|
|
13176
|
+
},
|
|
13177
|
+
"inputInlineButtonTypeUserProfile": function(w, v) {
|
|
13178
|
+
w.uint(1408487002);
|
|
13179
|
+
w.object(h(v, "userId"));
|
|
13180
|
+
},
|
|
13181
|
+
"inlineButtonTypeCopy": function(w, v) {
|
|
13182
|
+
w.uint(3021812338);
|
|
13183
|
+
w.string(h(v, "copyText"));
|
|
13184
|
+
},
|
|
13185
|
+
"inlineButtonTypeDisabled": function(w) {
|
|
13186
|
+
w.uint(2755158429);
|
|
13187
|
+
},
|
|
13188
|
+
"keyboardInlineButton": function(w, v) {
|
|
13189
|
+
w.uint(297902882);
|
|
13190
|
+
var flags = 0;
|
|
13191
|
+
var _style = v.style !== void 0;
|
|
13192
|
+
if (_style) flags |= 1024;
|
|
13193
|
+
w.uint(flags);
|
|
13194
|
+
if (_style) w.object(v.style);
|
|
13195
|
+
w.string(h(v, "text"));
|
|
13196
|
+
w.object(h(v, "type"));
|
|
13197
|
+
},
|
|
13198
|
+
"keyboardInlineButtonRow": function(w, v) {
|
|
13199
|
+
w.uint(423758582);
|
|
13200
|
+
w.vector(w.object, h(v, "buttons"));
|
|
13201
|
+
},
|
|
13202
|
+
"richButtonStyle": function(w, v) {
|
|
13203
|
+
w.uint(63312061);
|
|
13204
|
+
var flags = 0;
|
|
13205
|
+
if (v.bgPrimary === true) flags |= 1;
|
|
13206
|
+
if (v.bgDanger === true) flags |= 2;
|
|
13207
|
+
if (v.bgSuccess === true) flags |= 4;
|
|
13208
|
+
if (v.link === true) flags |= 8;
|
|
13209
|
+
w.uint(flags);
|
|
13210
|
+
},
|
|
13211
|
+
"pageButton": function(w, v) {
|
|
13212
|
+
w.uint(1764381832);
|
|
13213
|
+
var flags = 0;
|
|
13214
|
+
var _style = v.style !== void 0;
|
|
13215
|
+
if (_style) flags |= 1;
|
|
13216
|
+
w.uint(flags);
|
|
13217
|
+
w.object(h(v, "text"));
|
|
13218
|
+
w.object(h(v, "type"));
|
|
13219
|
+
if (_style) w.object(v.style);
|
|
13220
|
+
},
|
|
13221
|
+
"ephemeral.welcomeMessagesNotModified": function(w) {
|
|
13222
|
+
w.uint(1509940017);
|
|
13223
|
+
},
|
|
13224
|
+
"ephemeral.welcomeMessages": function(w, v) {
|
|
13225
|
+
w.uint(273664114);
|
|
13226
|
+
w.long(h(v, "hash"));
|
|
13227
|
+
w.vector(w.object, h(v, "messages"));
|
|
13228
|
+
},
|
|
13229
|
+
"auth.firebasePnvIntent": function(w, v) {
|
|
13230
|
+
w.uint(3747266572);
|
|
13231
|
+
w.string(h(v, "nonce"));
|
|
13232
|
+
w.string(h(v, "digitalCredentialPayload"));
|
|
13233
|
+
},
|
|
13183
13234
|
"invokeAfterMsg": function(w, v) {
|
|
13184
13235
|
w.uint(3416209197);
|
|
13185
13236
|
w.long(h(v, "msgId"));
|
|
@@ -13418,6 +13469,23 @@ var m = {
|
|
|
13418
13469
|
if (_flags_0) w.int(v.fromDcId);
|
|
13419
13470
|
if (_flags_0) w.long(v.fromAuthKeyId);
|
|
13420
13471
|
},
|
|
13472
|
+
"auth.initFirebasePnvLogin": function(w, v) {
|
|
13473
|
+
w.uint(2004743034);
|
|
13474
|
+
w.int(h(v, "apiId"));
|
|
13475
|
+
w.string(h(v, "apiHash"));
|
|
13476
|
+
},
|
|
13477
|
+
"auth.finishFirebasePnvLogin": function(w, v) {
|
|
13478
|
+
w.uint(746916172);
|
|
13479
|
+
w.string(h(v, "googleToken"));
|
|
13480
|
+
},
|
|
13481
|
+
"auth.firebasePnvSignUp": function(w, v) {
|
|
13482
|
+
w.uint(2017422166);
|
|
13483
|
+
var flags = 0;
|
|
13484
|
+
if (v.noJoinedNotifications === true) flags |= 1;
|
|
13485
|
+
w.uint(flags);
|
|
13486
|
+
w.string(h(v, "firstName"));
|
|
13487
|
+
w.string(h(v, "lastName"));
|
|
13488
|
+
},
|
|
13421
13489
|
"account.registerDevice": function(w, v) {
|
|
13422
13490
|
w.uint(3968205178);
|
|
13423
13491
|
var flags = 0;
|
|
@@ -14547,6 +14615,7 @@ var m = {
|
|
|
14547
14615
|
if (_suggestedPost) flags |= 8388608;
|
|
14548
14616
|
var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
|
|
14549
14617
|
if (_scheduleRepeatPeriod) flags |= 16777216;
|
|
14618
|
+
if (v.fromEphemeral === true) flags |= 33554432;
|
|
14550
14619
|
w.uint(flags);
|
|
14551
14620
|
w.object(h(v, "fromPeer"));
|
|
14552
14621
|
w.vector(w.int, h(v, "id"));
|
|
@@ -18841,7 +18910,7 @@ var m = {
|
|
|
18841
18910
|
w.object(h(v, "participant"));
|
|
18842
18911
|
},
|
|
18843
18912
|
"ephemeral.sendMessage": function(w, v) {
|
|
18844
|
-
w.uint(
|
|
18913
|
+
w.uint(3129827125);
|
|
18845
18914
|
var flags = 0;
|
|
18846
18915
|
var _queryId = v.queryId !== void 0;
|
|
18847
18916
|
if (_queryId) flags |= 1;
|
|
@@ -18855,8 +18924,14 @@ var m = {
|
|
|
18855
18924
|
if (_richMessage) flags |= 16;
|
|
18856
18925
|
var _replyTo = v.replyTo !== void 0;
|
|
18857
18926
|
if (_replyTo) flags |= 32;
|
|
18927
|
+
if (v.invertMedia === true) flags |= 64;
|
|
18928
|
+
if (v.welcome === true) flags |= 128;
|
|
18929
|
+
var _peer = v.peer !== void 0;
|
|
18930
|
+
if (_peer) flags |= 256;
|
|
18931
|
+
if (v.anchor === true) flags |= 512;
|
|
18932
|
+
if (v.noforwards === true) flags |= 1024;
|
|
18858
18933
|
w.uint(flags);
|
|
18859
|
-
w.object(
|
|
18934
|
+
if (_peer) w.object(v.peer);
|
|
18860
18935
|
w.object(h(v, "receiverId"));
|
|
18861
18936
|
if (_queryId) w.long(v.queryId);
|
|
18862
18937
|
w.string(h(v, "message"));
|
|
@@ -18868,8 +18943,12 @@ var m = {
|
|
|
18868
18943
|
if (_replyTo) w.object(v.replyTo);
|
|
18869
18944
|
},
|
|
18870
18945
|
"ephemeral.deleteMessage": function(w, v) {
|
|
18871
|
-
w.uint(
|
|
18872
|
-
|
|
18946
|
+
w.uint(2465654679);
|
|
18947
|
+
var flags = 0;
|
|
18948
|
+
var _peer = v.peer !== void 0;
|
|
18949
|
+
if (_peer) flags |= 1;
|
|
18950
|
+
w.uint(flags);
|
|
18951
|
+
if (_peer) w.object(v.peer);
|
|
18873
18952
|
w.object(h(v, "receiverId"));
|
|
18874
18953
|
w.int(h(v, "id"));
|
|
18875
18954
|
},
|
|
@@ -18891,7 +18970,7 @@ var m = {
|
|
|
18891
18970
|
if (_data) w.bytes(v.data);
|
|
18892
18971
|
},
|
|
18893
18972
|
"ephemeral.editMessage": function(w, v) {
|
|
18894
|
-
w.uint(
|
|
18973
|
+
w.uint(3483136603);
|
|
18895
18974
|
var flags = 0;
|
|
18896
18975
|
var _message = v.message !== void 0;
|
|
18897
18976
|
if (_message) flags |= 1;
|
|
@@ -18901,14 +18980,35 @@ var m = {
|
|
|
18901
18980
|
if (_replyMarkup) flags |= 4;
|
|
18902
18981
|
var _media = v.media !== void 0;
|
|
18903
18982
|
if (_media) flags |= 8;
|
|
18983
|
+
var _richMessage = v.richMessage !== void 0;
|
|
18984
|
+
if (_richMessage) flags |= 16;
|
|
18985
|
+
if (v.invertMedia === true) flags |= 32;
|
|
18986
|
+
if (v.welcome === true) flags |= 64;
|
|
18987
|
+
var _peer = v.peer !== void 0;
|
|
18988
|
+
if (_peer) flags |= 128;
|
|
18904
18989
|
w.uint(flags);
|
|
18905
|
-
w.object(
|
|
18990
|
+
if (_peer) w.object(v.peer);
|
|
18906
18991
|
w.object(h(v, "receiverId"));
|
|
18907
18992
|
w.int(h(v, "id"));
|
|
18908
18993
|
if (_message) w.string(v.message);
|
|
18909
18994
|
if (_media) w.object(v.media);
|
|
18910
18995
|
if (_entities) w.vector(w.object, v.entities);
|
|
18911
18996
|
if (_replyMarkup) w.object(v.replyMarkup);
|
|
18997
|
+
if (_richMessage) w.object(v.richMessage);
|
|
18998
|
+
},
|
|
18999
|
+
"ephemeral.deleteWelcomeMessage": function(w, v) {
|
|
19000
|
+
w.uint(3900877281);
|
|
19001
|
+
w.object(h(v, "peer"));
|
|
19002
|
+
w.int(h(v, "id"));
|
|
19003
|
+
},
|
|
19004
|
+
"ephemeral.deleteAllWelcomeMessages": function(w, v) {
|
|
19005
|
+
w.uint(1934595873);
|
|
19006
|
+
w.object(h(v, "peer"));
|
|
19007
|
+
},
|
|
19008
|
+
"ephemeral.getWelcomeMessages": function(w, v) {
|
|
19009
|
+
w.uint(3684352397);
|
|
19010
|
+
w.object(h(v, "peer"));
|
|
19011
|
+
w.long(h(v, "hash"));
|
|
18912
19012
|
},
|
|
18913
19013
|
"mtcute.customMethod": function(w, v) {
|
|
18914
19014
|
w.raw(h(v, "bytes"));
|
|
@@ -19213,6 +19313,7 @@ var m = {
|
|
|
19213
19313
|
"messageActionNoForwardsToggle": 12,
|
|
19214
19314
|
"messageActionNoForwardsRequest": 16,
|
|
19215
19315
|
"messageActionManagedBotCreated": 12,
|
|
19316
|
+
"messageActionChatJoinedViaCommunity": 12,
|
|
19216
19317
|
"photoEmpty": 12,
|
|
19217
19318
|
"geoPointEmpty": 4,
|
|
19218
19319
|
"inputNotifyUsers": 4,
|
|
@@ -19340,6 +19441,7 @@ var m = {
|
|
|
19340
19441
|
"speakingInGroupCallAction": 4,
|
|
19341
19442
|
"sendMessageHistoryImportAction": 8,
|
|
19342
19443
|
"sendMessageChooseStickerAction": 4,
|
|
19444
|
+
"sendMessageStopDraftAction": 12,
|
|
19343
19445
|
"inputPrivacyKeyStatusTimestamp": 4,
|
|
19344
19446
|
"inputPrivacyKeyChatInvite": 4,
|
|
19345
19447
|
"inputPrivacyKeyPhoneCall": 4,
|
|
@@ -19713,6 +19815,15 @@ var m = {
|
|
|
19713
19815
|
"joinChatBotResultQueued": 4,
|
|
19714
19816
|
"account.webBrowserSettingsNotModified": 4,
|
|
19715
19817
|
"communityPeerRequest": 32,
|
|
19818
|
+
"buttonTypeDefault": 4,
|
|
19819
|
+
"buttonTypeRequestPhone": 4,
|
|
19820
|
+
"buttonTypeRequestGeoLocation": 4,
|
|
19821
|
+
"inlineButtonTypeGame": 4,
|
|
19822
|
+
"inlineButtonTypeBuy": 4,
|
|
19823
|
+
"inlineButtonTypeUserProfile": 12,
|
|
19824
|
+
"inlineButtonTypeDisabled": 4,
|
|
19825
|
+
"richButtonStyle": 8,
|
|
19826
|
+
"ephemeral.welcomeMessagesNotModified": 4,
|
|
19716
19827
|
"auth.logOut": 4,
|
|
19717
19828
|
"auth.resetAuthorizations": 4,
|
|
19718
19829
|
"auth.exportAuthorization": 8,
|