@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.cjs
CHANGED
|
@@ -847,6 +847,7 @@ var m = {
|
|
|
847
847
|
if (v.translationsDisabled === true) flags |= 524288;
|
|
848
848
|
var _reactionsLimit = v.reactionsLimit !== void 0;
|
|
849
849
|
if (_reactionsLimit) flags |= 1048576;
|
|
850
|
+
if (v.hasWelcomeMessages === true) flags |= 2097152;
|
|
850
851
|
w.uint(flags);
|
|
851
852
|
w.int53(h(v, "id"));
|
|
852
853
|
w.string(h(v, "about"));
|
|
@@ -966,6 +967,7 @@ var m = {
|
|
|
966
967
|
if (_mainTab) flags2 |= 4194304;
|
|
967
968
|
var _guardBotId = v.guardBotId !== void 0;
|
|
968
969
|
if (_guardBotId) flags2 |= 8388608;
|
|
970
|
+
if (v.hasWelcomeMessages === true) flags2 |= 16777216;
|
|
969
971
|
w.uint(flags2);
|
|
970
972
|
w.int53(h(v, "id"));
|
|
971
973
|
w.string(h(v, "about"));
|
|
@@ -1850,7 +1852,7 @@ var m = {
|
|
|
1850
1852
|
if (_giftNum) w.int(v.giftNum);
|
|
1851
1853
|
},
|
|
1852
1854
|
"messageActionStarGiftUnique": function(w, v) {
|
|
1853
|
-
w.uint(
|
|
1855
|
+
w.uint(2115768711);
|
|
1854
1856
|
var flags = 0;
|
|
1855
1857
|
if (v.upgrade === true) flags |= 1;
|
|
1856
1858
|
if (v.transferred === true) flags |= 2;
|
|
@@ -1880,6 +1882,9 @@ var m = {
|
|
|
1880
1882
|
var _canCraftAt = v.canCraftAt !== void 0;
|
|
1881
1883
|
if (_canCraftAt) flags |= 32768;
|
|
1882
1884
|
if (v.craft === true) flags |= 65536;
|
|
1885
|
+
if (v.nameHidden === true) flags |= 131072;
|
|
1886
|
+
var _message = v.message !== void 0;
|
|
1887
|
+
if (_message) flags |= 262144;
|
|
1883
1888
|
w.uint(flags);
|
|
1884
1889
|
w.object(h(v, "gift"));
|
|
1885
1890
|
if (_canExportAt) w.int(v.canExportAt);
|
|
@@ -1892,6 +1897,7 @@ var m = {
|
|
|
1892
1897
|
if (_canResellAt) w.int(v.canResellAt);
|
|
1893
1898
|
if (_dropOriginalDetailsStars) w.long(v.dropOriginalDetailsStars);
|
|
1894
1899
|
if (_canCraftAt) w.int(v.canCraftAt);
|
|
1900
|
+
if (_message) w.object(v.message);
|
|
1895
1901
|
},
|
|
1896
1902
|
"messageActionPaidMessagesRefunded": function(w, v) {
|
|
1897
1903
|
w.uint(2887720909);
|
|
@@ -2030,6 +2036,10 @@ var m = {
|
|
|
2030
2036
|
w.uint(flags);
|
|
2031
2037
|
if (_communityId) w.int53(v.communityId);
|
|
2032
2038
|
},
|
|
2039
|
+
"messageActionChatJoinedViaCommunity": function(w, v) {
|
|
2040
|
+
w.uint(1250688640);
|
|
2041
|
+
w.int53(h(v, "communityId"));
|
|
2042
|
+
},
|
|
2033
2043
|
"dialog": function(w, v) {
|
|
2034
2044
|
w.uint(4236900339);
|
|
2035
2045
|
var flags = 0;
|
|
@@ -3849,12 +3859,19 @@ var m = {
|
|
|
3849
3859
|
w.object(h(v, "message"));
|
|
3850
3860
|
},
|
|
3851
3861
|
"updateEphemeralBotCallbackQuery": function(w, v) {
|
|
3852
|
-
w.uint(
|
|
3862
|
+
w.uint(2081454550);
|
|
3863
|
+
var flags = 0;
|
|
3864
|
+
var _peer = v.peer !== void 0;
|
|
3865
|
+
if (_peer) flags |= 1;
|
|
3866
|
+
var _chatInstance = v.chatInstance !== void 0;
|
|
3867
|
+
if (_chatInstance) flags |= 2;
|
|
3868
|
+
w.uint(flags);
|
|
3853
3869
|
w.long(h(v, "queryId"));
|
|
3854
3870
|
w.int53(h(v, "userId"));
|
|
3855
|
-
w.object(
|
|
3871
|
+
if (_peer) w.object(v.peer);
|
|
3856
3872
|
w.int(h(v, "msgId"));
|
|
3857
3873
|
w.bytes(h(v, "data"));
|
|
3874
|
+
if (_chatInstance) w.long(v.chatInstance);
|
|
3858
3875
|
w.object(h(v, "message"));
|
|
3859
3876
|
},
|
|
3860
3877
|
"updateBotStarsSubscription": function(w, v) {
|
|
@@ -4399,20 +4416,36 @@ var m = {
|
|
|
4399
4416
|
w.string(h(v, "emoticon"));
|
|
4400
4417
|
},
|
|
4401
4418
|
"sendMessageTextDraftAction": function(w, v) {
|
|
4402
|
-
w.uint(
|
|
4419
|
+
w.uint(909162586);
|
|
4420
|
+
var flags = 0;
|
|
4421
|
+
if (v.canStop === true) flags |= 1;
|
|
4422
|
+
if (v.keepOnStop === true) flags |= 2;
|
|
4423
|
+
w.uint(flags);
|
|
4403
4424
|
w.long(h(v, "randomId"));
|
|
4404
4425
|
w.object(h(v, "text"));
|
|
4405
4426
|
},
|
|
4406
4427
|
"inputSendMessageRichMessageDraftAction": function(w, v) {
|
|
4407
|
-
w.uint(
|
|
4428
|
+
w.uint(2839005118);
|
|
4429
|
+
var flags = 0;
|
|
4430
|
+
if (v.canStop === true) flags |= 1;
|
|
4431
|
+
if (v.keepOnStop === true) flags |= 2;
|
|
4432
|
+
w.uint(flags);
|
|
4408
4433
|
w.long(h(v, "randomId"));
|
|
4409
4434
|
w.object(h(v, "richMessage"));
|
|
4410
4435
|
},
|
|
4411
4436
|
"sendMessageRichMessageDraftAction": function(w, v) {
|
|
4412
|
-
w.uint(
|
|
4437
|
+
w.uint(1381386387);
|
|
4438
|
+
var flags = 0;
|
|
4439
|
+
if (v.canStop === true) flags |= 1;
|
|
4440
|
+
if (v.keepOnStop === true) flags |= 2;
|
|
4441
|
+
w.uint(flags);
|
|
4413
4442
|
w.long(h(v, "randomId"));
|
|
4414
4443
|
w.object(h(v, "richMessage"));
|
|
4415
4444
|
},
|
|
4445
|
+
"sendMessageStopDraftAction": function(w, v) {
|
|
4446
|
+
w.uint(4227400368);
|
|
4447
|
+
w.long(h(v, "randomId"));
|
|
4448
|
+
},
|
|
4416
4449
|
"contacts.found": function(w, v) {
|
|
4417
4450
|
w.uint(3004386717);
|
|
4418
4451
|
w.vector(w.object, h(v, "myResults"));
|
|
@@ -5072,202 +5105,14 @@ var m = {
|
|
|
5072
5105
|
if (_verifierSettings) w.object(v.verifierSettings);
|
|
5073
5106
|
},
|
|
5074
5107
|
"keyboardButton": function(w, v) {
|
|
5075
|
-
w.uint(
|
|
5076
|
-
var flags = 0;
|
|
5077
|
-
var _style = v.style !== void 0;
|
|
5078
|
-
if (_style) flags |= 1024;
|
|
5079
|
-
w.uint(flags);
|
|
5080
|
-
if (_style) w.object(v.style);
|
|
5081
|
-
w.string(h(v, "text"));
|
|
5082
|
-
},
|
|
5083
|
-
"keyboardButtonUrl": function(w, v) {
|
|
5084
|
-
w.uint(3624674796);
|
|
5085
|
-
var flags = 0;
|
|
5086
|
-
var _style = v.style !== void 0;
|
|
5087
|
-
if (_style) flags |= 1024;
|
|
5088
|
-
w.uint(flags);
|
|
5089
|
-
if (_style) w.object(v.style);
|
|
5090
|
-
w.string(h(v, "text"));
|
|
5091
|
-
w.string(h(v, "url"));
|
|
5092
|
-
},
|
|
5093
|
-
"keyboardButtonCallback": function(w, v) {
|
|
5094
|
-
w.uint(3861629280);
|
|
5095
|
-
var flags = 0;
|
|
5096
|
-
if (v.requiresPassword === true) flags |= 1;
|
|
5097
|
-
var _style = v.style !== void 0;
|
|
5098
|
-
if (_style) flags |= 1024;
|
|
5099
|
-
w.uint(flags);
|
|
5100
|
-
if (_style) w.object(v.style);
|
|
5101
|
-
w.string(h(v, "text"));
|
|
5102
|
-
w.bytes(h(v, "data"));
|
|
5103
|
-
},
|
|
5104
|
-
"keyboardButtonRequestPhone": function(w, v) {
|
|
5105
|
-
w.uint(1098841487);
|
|
5106
|
-
var flags = 0;
|
|
5107
|
-
var _style = v.style !== void 0;
|
|
5108
|
-
if (_style) flags |= 1024;
|
|
5109
|
-
w.uint(flags);
|
|
5110
|
-
if (_style) w.object(v.style);
|
|
5111
|
-
w.string(h(v, "text"));
|
|
5112
|
-
},
|
|
5113
|
-
"keyboardButtonRequestGeoLocation": function(w, v) {
|
|
5114
|
-
w.uint(2856384845);
|
|
5115
|
-
var flags = 0;
|
|
5116
|
-
var _style = v.style !== void 0;
|
|
5117
|
-
if (_style) flags |= 1024;
|
|
5118
|
-
w.uint(flags);
|
|
5119
|
-
if (_style) w.object(v.style);
|
|
5120
|
-
w.string(h(v, "text"));
|
|
5121
|
-
},
|
|
5122
|
-
"keyboardButtonSwitchInline": function(w, v) {
|
|
5123
|
-
w.uint(2568198652);
|
|
5124
|
-
var flags = 0;
|
|
5125
|
-
if (v.samePeer === true) flags |= 1;
|
|
5126
|
-
var _peerTypes = v.peerTypes && v.peerTypes.length;
|
|
5127
|
-
if (_peerTypes) flags |= 2;
|
|
5128
|
-
var _style = v.style !== void 0;
|
|
5129
|
-
if (_style) flags |= 1024;
|
|
5130
|
-
w.uint(flags);
|
|
5131
|
-
if (_style) w.object(v.style);
|
|
5132
|
-
w.string(h(v, "text"));
|
|
5133
|
-
w.string(h(v, "query"));
|
|
5134
|
-
if (_peerTypes) w.vector(w.object, v.peerTypes);
|
|
5135
|
-
},
|
|
5136
|
-
"keyboardButtonGame": function(w, v) {
|
|
5137
|
-
w.uint(2311426297);
|
|
5138
|
-
var flags = 0;
|
|
5139
|
-
var _style = v.style !== void 0;
|
|
5140
|
-
if (_style) flags |= 1024;
|
|
5141
|
-
w.uint(flags);
|
|
5142
|
-
if (_style) w.object(v.style);
|
|
5143
|
-
w.string(h(v, "text"));
|
|
5144
|
-
},
|
|
5145
|
-
"keyboardButtonBuy": function(w, v) {
|
|
5146
|
-
w.uint(1067792645);
|
|
5147
|
-
var flags = 0;
|
|
5148
|
-
var _style = v.style !== void 0;
|
|
5149
|
-
if (_style) flags |= 1024;
|
|
5150
|
-
w.uint(flags);
|
|
5151
|
-
if (_style) w.object(v.style);
|
|
5152
|
-
w.string(h(v, "text"));
|
|
5153
|
-
},
|
|
5154
|
-
"keyboardButtonUrlAuth": function(w, v) {
|
|
5155
|
-
w.uint(4111468281);
|
|
5156
|
-
var flags = 0;
|
|
5157
|
-
var _fwdText = v.fwdText !== void 0;
|
|
5158
|
-
if (_fwdText) flags |= 1;
|
|
5159
|
-
var _style = v.style !== void 0;
|
|
5160
|
-
if (_style) flags |= 1024;
|
|
5161
|
-
w.uint(flags);
|
|
5162
|
-
if (_style) w.object(v.style);
|
|
5163
|
-
w.string(h(v, "text"));
|
|
5164
|
-
if (_fwdText) w.string(v.fwdText);
|
|
5165
|
-
w.string(h(v, "url"));
|
|
5166
|
-
w.int(h(v, "buttonId"));
|
|
5167
|
-
},
|
|
5168
|
-
"inputKeyboardButtonUrlAuth": function(w, v) {
|
|
5169
|
-
w.uint(1744911986);
|
|
5170
|
-
var flags = 0;
|
|
5171
|
-
if (v.requestWriteAccess === true) flags |= 1;
|
|
5172
|
-
var _fwdText = v.fwdText !== void 0;
|
|
5173
|
-
if (_fwdText) flags |= 2;
|
|
5174
|
-
var _style = v.style !== void 0;
|
|
5175
|
-
if (_style) flags |= 1024;
|
|
5176
|
-
w.uint(flags);
|
|
5177
|
-
if (_style) w.object(v.style);
|
|
5178
|
-
w.string(h(v, "text"));
|
|
5179
|
-
if (_fwdText) w.string(v.fwdText);
|
|
5180
|
-
w.string(h(v, "url"));
|
|
5181
|
-
w.object(h(v, "bot"));
|
|
5182
|
-
},
|
|
5183
|
-
"keyboardButtonRequestPoll": function(w, v) {
|
|
5184
|
-
w.uint(2047989634);
|
|
5185
|
-
var flags = 0;
|
|
5186
|
-
var _quiz = v.quiz !== void 0;
|
|
5187
|
-
if (_quiz) flags |= 1;
|
|
5188
|
-
var _style = v.style !== void 0;
|
|
5189
|
-
if (_style) flags |= 1024;
|
|
5190
|
-
w.uint(flags);
|
|
5191
|
-
if (_style) w.object(v.style);
|
|
5192
|
-
if (_quiz) w.boolean(v.quiz);
|
|
5193
|
-
w.string(h(v, "text"));
|
|
5194
|
-
},
|
|
5195
|
-
"inputKeyboardButtonUserProfile": function(w, v) {
|
|
5196
|
-
w.uint(2103314375);
|
|
5197
|
-
var flags = 0;
|
|
5198
|
-
var _style = v.style !== void 0;
|
|
5199
|
-
if (_style) flags |= 1024;
|
|
5200
|
-
w.uint(flags);
|
|
5201
|
-
if (_style) w.object(v.style);
|
|
5202
|
-
w.string(h(v, "text"));
|
|
5203
|
-
w.object(h(v, "userId"));
|
|
5204
|
-
},
|
|
5205
|
-
"keyboardButtonUserProfile": function(w, v) {
|
|
5206
|
-
w.uint(3237829897);
|
|
5207
|
-
var flags = 0;
|
|
5208
|
-
var _style = v.style !== void 0;
|
|
5209
|
-
if (_style) flags |= 1024;
|
|
5210
|
-
w.uint(flags);
|
|
5211
|
-
if (_style) w.object(v.style);
|
|
5212
|
-
w.string(h(v, "text"));
|
|
5213
|
-
w.int53(h(v, "userId"));
|
|
5214
|
-
},
|
|
5215
|
-
"keyboardButtonWebView": function(w, v) {
|
|
5216
|
-
w.uint(3896947104);
|
|
5217
|
-
var flags = 0;
|
|
5218
|
-
var _style = v.style !== void 0;
|
|
5219
|
-
if (_style) flags |= 1024;
|
|
5220
|
-
w.uint(flags);
|
|
5221
|
-
if (_style) w.object(v.style);
|
|
5222
|
-
w.string(h(v, "text"));
|
|
5223
|
-
w.string(h(v, "url"));
|
|
5224
|
-
},
|
|
5225
|
-
"keyboardButtonSimpleWebView": function(w, v) {
|
|
5226
|
-
w.uint(3780920176);
|
|
5227
|
-
var flags = 0;
|
|
5228
|
-
var _style = v.style !== void 0;
|
|
5229
|
-
if (_style) flags |= 1024;
|
|
5230
|
-
w.uint(flags);
|
|
5231
|
-
if (_style) w.object(v.style);
|
|
5232
|
-
w.string(h(v, "text"));
|
|
5233
|
-
w.string(h(v, "url"));
|
|
5234
|
-
},
|
|
5235
|
-
"keyboardButtonRequestPeer": function(w, v) {
|
|
5236
|
-
w.uint(1527715317);
|
|
5237
|
-
var flags = 0;
|
|
5238
|
-
var _style = v.style !== void 0;
|
|
5239
|
-
if (_style) flags |= 1024;
|
|
5240
|
-
w.uint(flags);
|
|
5241
|
-
if (_style) w.object(v.style);
|
|
5242
|
-
w.string(h(v, "text"));
|
|
5243
|
-
w.int(h(v, "buttonId"));
|
|
5244
|
-
w.object(h(v, "peerType"));
|
|
5245
|
-
w.int(h(v, "maxQuantity"));
|
|
5246
|
-
},
|
|
5247
|
-
"inputKeyboardButtonRequestPeer": function(w, v) {
|
|
5248
|
-
w.uint(45580630);
|
|
5249
|
-
var flags = 0;
|
|
5250
|
-
if (v.nameRequested === true) flags |= 1;
|
|
5251
|
-
if (v.usernameRequested === true) flags |= 2;
|
|
5252
|
-
if (v.photoRequested === true) flags |= 4;
|
|
5253
|
-
var _style = v.style !== void 0;
|
|
5254
|
-
if (_style) flags |= 1024;
|
|
5255
|
-
w.uint(flags);
|
|
5256
|
-
if (_style) w.object(v.style);
|
|
5257
|
-
w.string(h(v, "text"));
|
|
5258
|
-
w.int(h(v, "buttonId"));
|
|
5259
|
-
w.object(h(v, "peerType"));
|
|
5260
|
-
w.int(h(v, "maxQuantity"));
|
|
5261
|
-
},
|
|
5262
|
-
"keyboardButtonCopy": function(w, v) {
|
|
5263
|
-
w.uint(3167006480);
|
|
5108
|
+
w.uint(795322159);
|
|
5264
5109
|
var flags = 0;
|
|
5265
5110
|
var _style = v.style !== void 0;
|
|
5266
5111
|
if (_style) flags |= 1024;
|
|
5267
5112
|
w.uint(flags);
|
|
5268
5113
|
if (_style) w.object(v.style);
|
|
5269
5114
|
w.string(h(v, "text"));
|
|
5270
|
-
w.
|
|
5115
|
+
w.object(h(v, "type"));
|
|
5271
5116
|
},
|
|
5272
5117
|
"keyboardButtonRow": function(w, v) {
|
|
5273
5118
|
w.uint(2002815875);
|
|
@@ -5298,12 +5143,16 @@ var m = {
|
|
|
5298
5143
|
var _placeholder = v.placeholder !== void 0;
|
|
5299
5144
|
if (_placeholder) flags |= 8;
|
|
5300
5145
|
if (v.persistent === true) flags |= 16;
|
|
5146
|
+
if (v.forceReply === true) flags |= 32;
|
|
5301
5147
|
w.uint(flags);
|
|
5302
5148
|
w.vector(w.object, h(v, "rows"));
|
|
5303
5149
|
if (_placeholder) w.string(v.placeholder);
|
|
5304
5150
|
},
|
|
5305
5151
|
"replyInlineMarkup": function(w, v) {
|
|
5306
|
-
w.uint(
|
|
5152
|
+
w.uint(2997966704);
|
|
5153
|
+
var flags = 0;
|
|
5154
|
+
if (v.forceReply === true) flags |= 32;
|
|
5155
|
+
w.uint(flags);
|
|
5307
5156
|
w.vector(w.object, h(v, "rows"));
|
|
5308
5157
|
},
|
|
5309
5158
|
"messageEntityUnknown": function(w, v) {
|
|
@@ -6538,6 +6387,16 @@ var m = {
|
|
|
6538
6387
|
w.object(h(v, "text"));
|
|
6539
6388
|
w.object(h(v, "oldText"));
|
|
6540
6389
|
},
|
|
6390
|
+
"textButton": function(w, v) {
|
|
6391
|
+
w.uint(2949094614);
|
|
6392
|
+
var flags = 0;
|
|
6393
|
+
var _style = v.style !== void 0;
|
|
6394
|
+
if (_style) flags |= 1;
|
|
6395
|
+
w.uint(flags);
|
|
6396
|
+
w.object(h(v, "text"));
|
|
6397
|
+
w.object(h(v, "type"));
|
|
6398
|
+
if (_style) w.object(v.style);
|
|
6399
|
+
},
|
|
6541
6400
|
"pageBlockUnsupported": function(w) {
|
|
6542
6401
|
w.uint(324435594);
|
|
6543
6402
|
},
|
|
@@ -6587,7 +6446,10 @@ var m = {
|
|
|
6587
6446
|
w.vector(w.object, h(v, "items"));
|
|
6588
6447
|
},
|
|
6589
6448
|
"pageBlockBlockquote": function(w, v) {
|
|
6590
|
-
w.uint(
|
|
6449
|
+
w.uint(1724999435);
|
|
6450
|
+
var flags = 0;
|
|
6451
|
+
if (v.collapsed === true) flags |= 1;
|
|
6452
|
+
w.uint(flags);
|
|
6591
6453
|
w.object(h(v, "text"));
|
|
6592
6454
|
w.object(h(v, "caption"));
|
|
6593
6455
|
},
|
|
@@ -6685,6 +6547,7 @@ var m = {
|
|
|
6685
6547
|
var flags = 0;
|
|
6686
6548
|
if (v.bordered === true) flags |= 1;
|
|
6687
6549
|
if (v.striped === true) flags |= 2;
|
|
6550
|
+
if (v.compact === true) flags |= 4;
|
|
6688
6551
|
w.uint(flags);
|
|
6689
6552
|
w.object(h(v, "title"));
|
|
6690
6553
|
w.vector(w.object, h(v, "rows"));
|
|
@@ -6768,6 +6631,20 @@ var m = {
|
|
|
6768
6631
|
w.vector(w.object, h(v, "blocks"));
|
|
6769
6632
|
w.object(h(v, "caption"));
|
|
6770
6633
|
},
|
|
6634
|
+
"pageBlockButtonRow": function(w, v) {
|
|
6635
|
+
w.uint(1835270936);
|
|
6636
|
+
var flags = 0;
|
|
6637
|
+
if (v.alignLeft === true) flags |= 1;
|
|
6638
|
+
if (v.alignCenter === true) flags |= 2;
|
|
6639
|
+
if (v.alignRight === true) flags |= 4;
|
|
6640
|
+
w.uint(flags);
|
|
6641
|
+
w.vector(w.object, h(v, "buttons"));
|
|
6642
|
+
},
|
|
6643
|
+
"pageBlockDocument": function(w, v) {
|
|
6644
|
+
w.uint(955923363);
|
|
6645
|
+
w.long(h(v, "documentId"));
|
|
6646
|
+
w.object(h(v, "caption"));
|
|
6647
|
+
},
|
|
6771
6648
|
"phoneCallDiscardReasonMissed": function(w) {
|
|
6772
6649
|
w.uint(2246320897);
|
|
6773
6650
|
},
|
|
@@ -8286,6 +8163,7 @@ var m = {
|
|
|
8286
8163
|
if (v.manageDirectMessages === true) flags |= 131072;
|
|
8287
8164
|
if (v.manageRanks === true) flags |= 262144;
|
|
8288
8165
|
if (v.manageLinkedPeers === true) flags |= 524288;
|
|
8166
|
+
if (v.manageWelcomeMessages === true) flags |= 1048576;
|
|
8289
8167
|
w.uint(flags);
|
|
8290
8168
|
},
|
|
8291
8169
|
"chatBannedRights": function(w, v) {
|
|
@@ -9768,12 +9646,16 @@ var m = {
|
|
|
9768
9646
|
w.long(h(v, "stars"));
|
|
9769
9647
|
},
|
|
9770
9648
|
"inputInvoiceStarGiftResale": function(w, v) {
|
|
9771
|
-
w.uint(
|
|
9649
|
+
w.uint(3920676440);
|
|
9772
9650
|
var flags = 0;
|
|
9773
9651
|
if (v.ton === true) flags |= 1;
|
|
9652
|
+
var _message = v.message !== void 0;
|
|
9653
|
+
if (_message) flags |= 2;
|
|
9654
|
+
if (v.showName === true) flags |= 4;
|
|
9774
9655
|
w.uint(flags);
|
|
9775
9656
|
w.string(h(v, "slug"));
|
|
9776
9657
|
w.object(h(v, "toId"));
|
|
9658
|
+
if (_message) w.object(v.message);
|
|
9777
9659
|
},
|
|
9778
9660
|
"inputInvoiceStarGiftPrepaidUpgrade": function(w, v) {
|
|
9779
9661
|
w.uint(2584430776);
|
|
@@ -13146,7 +13028,7 @@ var m = {
|
|
|
13146
13028
|
w.vector(w.object, h(v, "users"));
|
|
13147
13029
|
},
|
|
13148
13030
|
"ephemeralMessage": function(w, v) {
|
|
13149
|
-
w.uint(
|
|
13031
|
+
w.uint(3710369513);
|
|
13150
13032
|
var flags = 0;
|
|
13151
13033
|
if (v.out === true) flags |= 1;
|
|
13152
13034
|
var _topMsgId = v.topMsgId !== void 0;
|
|
@@ -13157,12 +13039,23 @@ var m = {
|
|
|
13157
13039
|
if (_media) flags |= 8;
|
|
13158
13040
|
var _replyMarkup = v.replyMarkup !== void 0;
|
|
13159
13041
|
if (_replyMarkup) flags |= 16;
|
|
13042
|
+
if (v.welcomeTemplate === true) flags |= 32;
|
|
13160
13043
|
var _replyTo = v.replyTo !== void 0;
|
|
13161
13044
|
if (_replyTo) flags |= 64;
|
|
13045
|
+
if (v.invertMedia === true) flags |= 128;
|
|
13046
|
+
var _richMessage = v.richMessage !== void 0;
|
|
13047
|
+
if (_richMessage) flags |= 256;
|
|
13048
|
+
var _peerId = v.peerId !== void 0;
|
|
13049
|
+
if (_peerId) flags |= 512;
|
|
13050
|
+
var _chatInstance = v.chatInstance !== void 0;
|
|
13051
|
+
if (_chatInstance) flags |= 1024;
|
|
13052
|
+
var _anchorMsgId = v.anchorMsgId !== void 0;
|
|
13053
|
+
if (_anchorMsgId) flags |= 2048;
|
|
13054
|
+
if (v.noforwards === true) flags |= 4096;
|
|
13162
13055
|
w.uint(flags);
|
|
13163
13056
|
w.int(h(v, "id"));
|
|
13164
13057
|
w.object(h(v, "fromId"));
|
|
13165
|
-
w.object(
|
|
13058
|
+
if (_peerId) w.object(v.peerId);
|
|
13166
13059
|
w.int53(h(v, "receiverId"));
|
|
13167
13060
|
if (_topMsgId) w.int(v.topMsgId);
|
|
13168
13061
|
w.int(h(v, "date"));
|
|
@@ -13171,6 +13064,9 @@ var m = {
|
|
|
13171
13064
|
if (_media) w.object(v.media);
|
|
13172
13065
|
if (_replyMarkup) w.object(v.replyMarkup);
|
|
13173
13066
|
if (_replyTo) w.object(v.replyTo);
|
|
13067
|
+
if (_richMessage) w.object(v.richMessage);
|
|
13068
|
+
if (_chatInstance) w.long(v.chatInstance);
|
|
13069
|
+
if (_anchorMsgId) w.int(v.anchorMsgId);
|
|
13174
13070
|
},
|
|
13175
13071
|
"communities.participantJoinedChats": function(w, v) {
|
|
13176
13072
|
w.uint(2373472554);
|
|
@@ -13187,6 +13083,161 @@ var m = {
|
|
|
13187
13083
|
w.uint(1279604680);
|
|
13188
13084
|
w.object(h(v, "result"));
|
|
13189
13085
|
},
|
|
13086
|
+
"buttonTypeDefault": function(w) {
|
|
13087
|
+
w.uint(3386740969);
|
|
13088
|
+
},
|
|
13089
|
+
"buttonTypeRequestPhone": function(w) {
|
|
13090
|
+
w.uint(3745330937);
|
|
13091
|
+
},
|
|
13092
|
+
"buttonTypeRequestGeoLocation": function(w) {
|
|
13093
|
+
w.uint(2616123712);
|
|
13094
|
+
},
|
|
13095
|
+
"buttonTypeRequestPoll": function(w, v) {
|
|
13096
|
+
w.uint(2865758084);
|
|
13097
|
+
var flags = 0;
|
|
13098
|
+
var _quiz = v.quiz !== void 0;
|
|
13099
|
+
if (_quiz) flags |= 1;
|
|
13100
|
+
w.uint(flags);
|
|
13101
|
+
if (_quiz) w.boolean(v.quiz);
|
|
13102
|
+
},
|
|
13103
|
+
"buttonTypeRequestPeer": function(w, v) {
|
|
13104
|
+
w.uint(1331208759);
|
|
13105
|
+
var flags = 0;
|
|
13106
|
+
w.uint(flags);
|
|
13107
|
+
w.int(h(v, "buttonId"));
|
|
13108
|
+
w.object(h(v, "peerType"));
|
|
13109
|
+
w.int(h(v, "maxQuantity"));
|
|
13110
|
+
},
|
|
13111
|
+
"inputButtonTypeRequestPeer": function(w, v) {
|
|
13112
|
+
w.uint(1071802622);
|
|
13113
|
+
var flags = 0;
|
|
13114
|
+
if (v.nameRequested === true) flags |= 1;
|
|
13115
|
+
if (v.usernameRequested === true) flags |= 2;
|
|
13116
|
+
if (v.photoRequested === true) flags |= 4;
|
|
13117
|
+
w.uint(flags);
|
|
13118
|
+
w.int(h(v, "buttonId"));
|
|
13119
|
+
w.object(h(v, "peerType"));
|
|
13120
|
+
w.int(h(v, "maxQuantity"));
|
|
13121
|
+
},
|
|
13122
|
+
"buttonTypeSimpleWebView": function(w, v) {
|
|
13123
|
+
w.uint(3222952314);
|
|
13124
|
+
w.string(h(v, "url"));
|
|
13125
|
+
},
|
|
13126
|
+
"inlineButtonTypeUrl": function(w, v) {
|
|
13127
|
+
w.uint(3970234580);
|
|
13128
|
+
w.string(h(v, "url"));
|
|
13129
|
+
},
|
|
13130
|
+
"inlineButtonTypeUrlAuth": function(w, v) {
|
|
13131
|
+
w.uint(3218091426);
|
|
13132
|
+
var flags = 0;
|
|
13133
|
+
var _fwdText = v.fwdText !== void 0;
|
|
13134
|
+
if (_fwdText) flags |= 1;
|
|
13135
|
+
w.uint(flags);
|
|
13136
|
+
if (_fwdText) w.string(v.fwdText);
|
|
13137
|
+
w.string(h(v, "url"));
|
|
13138
|
+
w.int(h(v, "buttonId"));
|
|
13139
|
+
},
|
|
13140
|
+
"inputInlineButtonTypeUrlAuth": function(w, v) {
|
|
13141
|
+
w.uint(2573319348);
|
|
13142
|
+
var flags = 0;
|
|
13143
|
+
if (v.requestWriteAccess === true) flags |= 1;
|
|
13144
|
+
var _fwdText = v.fwdText !== void 0;
|
|
13145
|
+
if (_fwdText) flags |= 2;
|
|
13146
|
+
var _bot = v.bot !== void 0;
|
|
13147
|
+
if (_bot) flags |= 4;
|
|
13148
|
+
w.uint(flags);
|
|
13149
|
+
if (_fwdText) w.string(v.fwdText);
|
|
13150
|
+
w.string(h(v, "url"));
|
|
13151
|
+
if (_bot) w.object(v.bot);
|
|
13152
|
+
},
|
|
13153
|
+
"inlineButtonTypeWebView": function(w, v) {
|
|
13154
|
+
w.uint(1003140532);
|
|
13155
|
+
w.string(h(v, "url"));
|
|
13156
|
+
},
|
|
13157
|
+
"inlineButtonTypeCallback": function(w, v) {
|
|
13158
|
+
w.uint(693484600);
|
|
13159
|
+
var flags = 0;
|
|
13160
|
+
if (v.requiresPassword === true) flags |= 1;
|
|
13161
|
+
w.uint(flags);
|
|
13162
|
+
w.bytes(h(v, "data"));
|
|
13163
|
+
},
|
|
13164
|
+
"inlineButtonTypeGame": function(w) {
|
|
13165
|
+
w.uint(1557360797);
|
|
13166
|
+
},
|
|
13167
|
+
"inlineButtonTypeBuy": function(w) {
|
|
13168
|
+
w.uint(1220204453);
|
|
13169
|
+
},
|
|
13170
|
+
"inlineButtonTypeSwitchInline": function(w, v) {
|
|
13171
|
+
w.uint(2474065909);
|
|
13172
|
+
var flags = 0;
|
|
13173
|
+
if (v.samePeer === true) flags |= 1;
|
|
13174
|
+
var _peerTypes = v.peerTypes && v.peerTypes.length;
|
|
13175
|
+
if (_peerTypes) flags |= 2;
|
|
13176
|
+
w.uint(flags);
|
|
13177
|
+
w.string(h(v, "query"));
|
|
13178
|
+
if (_peerTypes) w.vector(w.object, v.peerTypes);
|
|
13179
|
+
},
|
|
13180
|
+
"inlineButtonTypeUserProfile": function(w, v) {
|
|
13181
|
+
w.uint(1067663311);
|
|
13182
|
+
w.int53(h(v, "userId"));
|
|
13183
|
+
},
|
|
13184
|
+
"inputInlineButtonTypeUserProfile": function(w, v) {
|
|
13185
|
+
w.uint(1408487002);
|
|
13186
|
+
w.object(h(v, "userId"));
|
|
13187
|
+
},
|
|
13188
|
+
"inlineButtonTypeCopy": function(w, v) {
|
|
13189
|
+
w.uint(3021812338);
|
|
13190
|
+
w.string(h(v, "copyText"));
|
|
13191
|
+
},
|
|
13192
|
+
"inlineButtonTypeDisabled": function(w) {
|
|
13193
|
+
w.uint(2755158429);
|
|
13194
|
+
},
|
|
13195
|
+
"keyboardInlineButton": function(w, v) {
|
|
13196
|
+
w.uint(297902882);
|
|
13197
|
+
var flags = 0;
|
|
13198
|
+
var _style = v.style !== void 0;
|
|
13199
|
+
if (_style) flags |= 1024;
|
|
13200
|
+
w.uint(flags);
|
|
13201
|
+
if (_style) w.object(v.style);
|
|
13202
|
+
w.string(h(v, "text"));
|
|
13203
|
+
w.object(h(v, "type"));
|
|
13204
|
+
},
|
|
13205
|
+
"keyboardInlineButtonRow": function(w, v) {
|
|
13206
|
+
w.uint(423758582);
|
|
13207
|
+
w.vector(w.object, h(v, "buttons"));
|
|
13208
|
+
},
|
|
13209
|
+
"richButtonStyle": function(w, v) {
|
|
13210
|
+
w.uint(63312061);
|
|
13211
|
+
var flags = 0;
|
|
13212
|
+
if (v.bgPrimary === true) flags |= 1;
|
|
13213
|
+
if (v.bgDanger === true) flags |= 2;
|
|
13214
|
+
if (v.bgSuccess === true) flags |= 4;
|
|
13215
|
+
if (v.link === true) flags |= 8;
|
|
13216
|
+
w.uint(flags);
|
|
13217
|
+
},
|
|
13218
|
+
"pageButton": function(w, v) {
|
|
13219
|
+
w.uint(1764381832);
|
|
13220
|
+
var flags = 0;
|
|
13221
|
+
var _style = v.style !== void 0;
|
|
13222
|
+
if (_style) flags |= 1;
|
|
13223
|
+
w.uint(flags);
|
|
13224
|
+
w.object(h(v, "text"));
|
|
13225
|
+
w.object(h(v, "type"));
|
|
13226
|
+
if (_style) w.object(v.style);
|
|
13227
|
+
},
|
|
13228
|
+
"ephemeral.welcomeMessagesNotModified": function(w) {
|
|
13229
|
+
w.uint(1509940017);
|
|
13230
|
+
},
|
|
13231
|
+
"ephemeral.welcomeMessages": function(w, v) {
|
|
13232
|
+
w.uint(273664114);
|
|
13233
|
+
w.long(h(v, "hash"));
|
|
13234
|
+
w.vector(w.object, h(v, "messages"));
|
|
13235
|
+
},
|
|
13236
|
+
"auth.firebasePnvIntent": function(w, v) {
|
|
13237
|
+
w.uint(3747266572);
|
|
13238
|
+
w.string(h(v, "nonce"));
|
|
13239
|
+
w.string(h(v, "digitalCredentialPayload"));
|
|
13240
|
+
},
|
|
13190
13241
|
"invokeAfterMsg": function(w, v) {
|
|
13191
13242
|
w.uint(3416209197);
|
|
13192
13243
|
w.long(h(v, "msgId"));
|
|
@@ -13425,6 +13476,23 @@ var m = {
|
|
|
13425
13476
|
if (_flags_0) w.int(v.fromDcId);
|
|
13426
13477
|
if (_flags_0) w.long(v.fromAuthKeyId);
|
|
13427
13478
|
},
|
|
13479
|
+
"auth.initFirebasePnvLogin": function(w, v) {
|
|
13480
|
+
w.uint(2004743034);
|
|
13481
|
+
w.int(h(v, "apiId"));
|
|
13482
|
+
w.string(h(v, "apiHash"));
|
|
13483
|
+
},
|
|
13484
|
+
"auth.finishFirebasePnvLogin": function(w, v) {
|
|
13485
|
+
w.uint(746916172);
|
|
13486
|
+
w.string(h(v, "googleToken"));
|
|
13487
|
+
},
|
|
13488
|
+
"auth.firebasePnvSignUp": function(w, v) {
|
|
13489
|
+
w.uint(2017422166);
|
|
13490
|
+
var flags = 0;
|
|
13491
|
+
if (v.noJoinedNotifications === true) flags |= 1;
|
|
13492
|
+
w.uint(flags);
|
|
13493
|
+
w.string(h(v, "firstName"));
|
|
13494
|
+
w.string(h(v, "lastName"));
|
|
13495
|
+
},
|
|
13428
13496
|
"account.registerDevice": function(w, v) {
|
|
13429
13497
|
w.uint(3968205178);
|
|
13430
13498
|
var flags = 0;
|
|
@@ -14554,6 +14622,7 @@ var m = {
|
|
|
14554
14622
|
if (_suggestedPost) flags |= 8388608;
|
|
14555
14623
|
var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
|
|
14556
14624
|
if (_scheduleRepeatPeriod) flags |= 16777216;
|
|
14625
|
+
if (v.fromEphemeral === true) flags |= 33554432;
|
|
14557
14626
|
w.uint(flags);
|
|
14558
14627
|
w.object(h(v, "fromPeer"));
|
|
14559
14628
|
w.vector(w.int, h(v, "id"));
|
|
@@ -18848,7 +18917,7 @@ var m = {
|
|
|
18848
18917
|
w.object(h(v, "participant"));
|
|
18849
18918
|
},
|
|
18850
18919
|
"ephemeral.sendMessage": function(w, v) {
|
|
18851
|
-
w.uint(
|
|
18920
|
+
w.uint(3129827125);
|
|
18852
18921
|
var flags = 0;
|
|
18853
18922
|
var _queryId = v.queryId !== void 0;
|
|
18854
18923
|
if (_queryId) flags |= 1;
|
|
@@ -18862,8 +18931,14 @@ var m = {
|
|
|
18862
18931
|
if (_richMessage) flags |= 16;
|
|
18863
18932
|
var _replyTo = v.replyTo !== void 0;
|
|
18864
18933
|
if (_replyTo) flags |= 32;
|
|
18934
|
+
if (v.invertMedia === true) flags |= 64;
|
|
18935
|
+
if (v.welcome === true) flags |= 128;
|
|
18936
|
+
var _peer = v.peer !== void 0;
|
|
18937
|
+
if (_peer) flags |= 256;
|
|
18938
|
+
if (v.anchor === true) flags |= 512;
|
|
18939
|
+
if (v.noforwards === true) flags |= 1024;
|
|
18865
18940
|
w.uint(flags);
|
|
18866
|
-
w.object(
|
|
18941
|
+
if (_peer) w.object(v.peer);
|
|
18867
18942
|
w.object(h(v, "receiverId"));
|
|
18868
18943
|
if (_queryId) w.long(v.queryId);
|
|
18869
18944
|
w.string(h(v, "message"));
|
|
@@ -18875,8 +18950,12 @@ var m = {
|
|
|
18875
18950
|
if (_replyTo) w.object(v.replyTo);
|
|
18876
18951
|
},
|
|
18877
18952
|
"ephemeral.deleteMessage": function(w, v) {
|
|
18878
|
-
w.uint(
|
|
18879
|
-
|
|
18953
|
+
w.uint(2465654679);
|
|
18954
|
+
var flags = 0;
|
|
18955
|
+
var _peer = v.peer !== void 0;
|
|
18956
|
+
if (_peer) flags |= 1;
|
|
18957
|
+
w.uint(flags);
|
|
18958
|
+
if (_peer) w.object(v.peer);
|
|
18880
18959
|
w.object(h(v, "receiverId"));
|
|
18881
18960
|
w.int(h(v, "id"));
|
|
18882
18961
|
},
|
|
@@ -18898,7 +18977,7 @@ var m = {
|
|
|
18898
18977
|
if (_data) w.bytes(v.data);
|
|
18899
18978
|
},
|
|
18900
18979
|
"ephemeral.editMessage": function(w, v) {
|
|
18901
|
-
w.uint(
|
|
18980
|
+
w.uint(3483136603);
|
|
18902
18981
|
var flags = 0;
|
|
18903
18982
|
var _message = v.message !== void 0;
|
|
18904
18983
|
if (_message) flags |= 1;
|
|
@@ -18908,14 +18987,35 @@ var m = {
|
|
|
18908
18987
|
if (_replyMarkup) flags |= 4;
|
|
18909
18988
|
var _media = v.media !== void 0;
|
|
18910
18989
|
if (_media) flags |= 8;
|
|
18990
|
+
var _richMessage = v.richMessage !== void 0;
|
|
18991
|
+
if (_richMessage) flags |= 16;
|
|
18992
|
+
if (v.invertMedia === true) flags |= 32;
|
|
18993
|
+
if (v.welcome === true) flags |= 64;
|
|
18994
|
+
var _peer = v.peer !== void 0;
|
|
18995
|
+
if (_peer) flags |= 128;
|
|
18911
18996
|
w.uint(flags);
|
|
18912
|
-
w.object(
|
|
18997
|
+
if (_peer) w.object(v.peer);
|
|
18913
18998
|
w.object(h(v, "receiverId"));
|
|
18914
18999
|
w.int(h(v, "id"));
|
|
18915
19000
|
if (_message) w.string(v.message);
|
|
18916
19001
|
if (_media) w.object(v.media);
|
|
18917
19002
|
if (_entities) w.vector(w.object, v.entities);
|
|
18918
19003
|
if (_replyMarkup) w.object(v.replyMarkup);
|
|
19004
|
+
if (_richMessage) w.object(v.richMessage);
|
|
19005
|
+
},
|
|
19006
|
+
"ephemeral.deleteWelcomeMessage": function(w, v) {
|
|
19007
|
+
w.uint(3900877281);
|
|
19008
|
+
w.object(h(v, "peer"));
|
|
19009
|
+
w.int(h(v, "id"));
|
|
19010
|
+
},
|
|
19011
|
+
"ephemeral.deleteAllWelcomeMessages": function(w, v) {
|
|
19012
|
+
w.uint(1934595873);
|
|
19013
|
+
w.object(h(v, "peer"));
|
|
19014
|
+
},
|
|
19015
|
+
"ephemeral.getWelcomeMessages": function(w, v) {
|
|
19016
|
+
w.uint(3684352397);
|
|
19017
|
+
w.object(h(v, "peer"));
|
|
19018
|
+
w.long(h(v, "hash"));
|
|
18919
19019
|
},
|
|
18920
19020
|
"mtcute.customMethod": function(w, v) {
|
|
18921
19021
|
w.raw(h(v, "bytes"));
|
|
@@ -19220,6 +19320,7 @@ var m = {
|
|
|
19220
19320
|
"messageActionNoForwardsToggle": 12,
|
|
19221
19321
|
"messageActionNoForwardsRequest": 16,
|
|
19222
19322
|
"messageActionManagedBotCreated": 12,
|
|
19323
|
+
"messageActionChatJoinedViaCommunity": 12,
|
|
19223
19324
|
"photoEmpty": 12,
|
|
19224
19325
|
"geoPointEmpty": 4,
|
|
19225
19326
|
"inputNotifyUsers": 4,
|
|
@@ -19347,6 +19448,7 @@ var m = {
|
|
|
19347
19448
|
"speakingInGroupCallAction": 4,
|
|
19348
19449
|
"sendMessageHistoryImportAction": 8,
|
|
19349
19450
|
"sendMessageChooseStickerAction": 4,
|
|
19451
|
+
"sendMessageStopDraftAction": 12,
|
|
19350
19452
|
"inputPrivacyKeyStatusTimestamp": 4,
|
|
19351
19453
|
"inputPrivacyKeyChatInvite": 4,
|
|
19352
19454
|
"inputPrivacyKeyPhoneCall": 4,
|
|
@@ -19720,6 +19822,15 @@ var m = {
|
|
|
19720
19822
|
"joinChatBotResultQueued": 4,
|
|
19721
19823
|
"account.webBrowserSettingsNotModified": 4,
|
|
19722
19824
|
"communityPeerRequest": 32,
|
|
19825
|
+
"buttonTypeDefault": 4,
|
|
19826
|
+
"buttonTypeRequestPhone": 4,
|
|
19827
|
+
"buttonTypeRequestGeoLocation": 4,
|
|
19828
|
+
"inlineButtonTypeGame": 4,
|
|
19829
|
+
"inlineButtonTypeBuy": 4,
|
|
19830
|
+
"inlineButtonTypeUserProfile": 12,
|
|
19831
|
+
"inlineButtonTypeDisabled": 4,
|
|
19832
|
+
"richButtonStyle": 8,
|
|
19833
|
+
"ephemeral.welcomeMessagesNotModified": 4,
|
|
19723
19834
|
"auth.logOut": 4,
|
|
19724
19835
|
"auth.resetAuthorizations": 4,
|
|
19725
19836
|
"auth.exportAuthorization": 8,
|