@mtcute/core 0.30.0 → 0.30.2
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 +63 -1
- package/highlevel/client.d.ts +63 -1
- package/highlevel/methods/files/download-iterable.cjs +80 -45
- package/highlevel/methods/files/download-iterable.js +80 -45
- package/highlevel/methods/files/normalize-input-media.cjs +9 -1
- package/highlevel/methods/files/normalize-input-media.js +10 -2
- package/highlevel/methods/files/upload-file.cjs +6 -1
- package/highlevel/methods/files/upload-file.js +6 -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 +168 -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 +163 -0
- package/highlevel/methods/messages/send-common.cjs +3 -2
- package/highlevel/methods/messages/send-common.d.cts +4 -1
- package/highlevel/methods/messages/send-common.d.ts +4 -1
- package/highlevel/methods/messages/send-common.js +3 -2
- 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 +3 -0
- package/highlevel/methods.d.ts +3 -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 +9 -0
- package/highlevel/types/files/utils.d.ts +9 -0
- 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 -1
- package/highlevel/types/messages/index.d.ts +1 -1
- package/highlevel/types/messages/message.cjs +1 -1
- package/highlevel/types/messages/message.d.cts +1 -1
- package/highlevel/types/messages/message.d.ts +1 -1
- package/highlevel/types/messages/message.js +1 -1
- 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-message.cjs → rich/rich-message.cjs} +6 -6
- package/highlevel/types/messages/{rich-message.d.cts → rich/rich-message.d.cts} +5 -5
- package/highlevel/types/messages/{rich-message.d.ts → rich/rich-message.d.ts} +5 -5
- package/highlevel/types/messages/{rich-message.js → rich/rich-message.js} +6 -6
- package/highlevel/types/messages/rich/types.d.cts +76 -0
- package/highlevel/types/messages/rich/types.d.ts +76 -0
- package/highlevel/updates/manager.cjs +10 -169
- package/highlevel/updates/manager.js +10 -169
- 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/index.d.cts +1 -0
- package/highlevel/utils/index.d.ts +1 -0
- package/highlevel/utils/walk-page-blocks.cjs +164 -0
- package/highlevel/utils/walk-page-blocks.d.cts +9 -0
- package/highlevel/utils/walk-page-blocks.d.ts +9 -0
- package/highlevel/utils/walk-page-blocks.js +159 -0
- package/index.cjs +3 -1
- package/index.js +3 -1
- package/methods.cjs +4 -0
- package/methods.js +4 -0
- package/network/authorization.cjs +1 -1
- package/network/authorization.js +1 -1
- package/network/delay-gate.cjs +29 -0
- package/network/delay-gate.d.cts +5 -0
- package/network/delay-gate.d.ts +5 -0
- package/network/delay-gate.js +24 -0
- package/network/delay-gate.test.d.cts +1 -0
- package/network/delay-gate.test.d.ts +1 -0
- package/network/message-id-store.cjs +30 -0
- package/network/message-id-store.d.cts +7 -0
- package/network/message-id-store.d.ts +7 -0
- package/network/message-id-store.js +25 -0
- package/network/message-id-store.test.d.cts +1 -0
- package/network/message-id-store.test.d.ts +1 -0
- package/network/middlewares/bundle.cjs +2 -0
- package/network/middlewares/bundle.d.cts +1 -0
- package/network/middlewares/bundle.d.ts +1 -0
- package/network/middlewares/bundle.js +2 -0
- package/network/middlewares/default.cjs +6 -1
- package/network/middlewares/default.js +6 -1
- package/network/middlewares/flood-waiter.test.d.cts +1 -0
- package/network/middlewares/flood-waiter.test.d.ts +1 -0
- package/network/middlewares/internal-errors.test.d.cts +1 -0
- package/network/middlewares/internal-errors.test.d.ts +1 -0
- package/network/middlewares/media-throttle.cjs +65 -0
- package/network/middlewares/media-throttle.d.cts +5 -0
- package/network/middlewares/media-throttle.d.ts +5 -0
- package/network/middlewares/media-throttle.js +60 -0
- package/network/middlewares/media-throttle.test.d.cts +1 -0
- package/network/middlewares/media-throttle.test.d.ts +1 -0
- package/network/middlewares/on-error.test.d.cts +1 -0
- package/network/middlewares/on-error.test.d.ts +1 -0
- package/network/middlewares/on-method.test.d.cts +1 -0
- package/network/middlewares/on-method.test.d.ts +1 -0
- package/network/mtproto-session.cjs +9 -2
- package/network/mtproto-session.d.cts +5 -2
- package/network/mtproto-session.d.ts +5 -2
- package/network/mtproto-session.js +9 -2
- 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 +7 -0
- package/network/multi-session-connection.d.cts +2 -0
- package/network/multi-session-connection.d.ts +2 -0
- package/network/multi-session-connection.js +7 -0
- package/network/network-manager.cjs +7 -1
- package/network/network-manager.js +7 -1
- package/network/resource-limiter.cjs +60 -0
- package/network/resource-limiter.d.cts +11 -0
- package/network/resource-limiter.d.ts +11 -0
- package/network/resource-limiter.js +55 -0
- package/network/resource-limiter.test.d.cts +1 -0
- package/network/resource-limiter.test.d.ts +1 -0
- package/network/server-salt.cjs +7 -3
- package/network/server-salt.d.cts +2 -0
- package/network/server-salt.d.ts +2 -0
- package/network/server-salt.js +7 -3
- package/network/session-connection.cjs +106 -20
- package/network/session-connection.d.cts +11 -0
- package/network/session-connection.d.ts +11 -0
- package/network/session-connection.js +106 -20
- package/package.json +1 -1
- package/tl/api-schema.json +1 -1
- package/tl/binary/reader.cjs +115 -109
- package/tl/binary/reader.js +115 -109
- package/tl/binary/writer.cjs +243 -245
- package/tl/binary/writer.js +243 -245
- package/tl/index.d.cts +227 -216
- package/tl/index.d.ts +227 -216
- package/tl/inner-tl.cjs +3 -1
- package/tl/inner-tl.js +3 -1
- package/types/utils.d.cts +4 -0
- package/types/utils.d.ts +4 -0
- package/utils.cjs +4 -0
- package/utils.js +5 -1
package/tl/binary/writer.cjs
CHANGED
|
@@ -3719,6 +3719,44 @@ var m = {
|
|
|
3719
3719
|
"updateAiComposeTones": function(w) {
|
|
3720
3720
|
w.uint(2349830651);
|
|
3721
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
|
+
},
|
|
3722
3760
|
"updates.state": function(w, v) {
|
|
3723
3761
|
w.uint(2775329342);
|
|
3724
3762
|
w.int(h(v, "pts"));
|
|
@@ -4250,6 +4288,16 @@ var m = {
|
|
|
4250
4288
|
w.long(h(v, "randomId"));
|
|
4251
4289
|
w.object(h(v, "text"));
|
|
4252
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
|
+
},
|
|
4253
4301
|
"contacts.found": function(w, v) {
|
|
4254
4302
|
w.uint(3004386717);
|
|
4255
4303
|
w.vector(w.object, h(v, "myResults"));
|
|
@@ -5612,6 +5660,15 @@ var m = {
|
|
|
5612
5660
|
w.string(h(v, "url"));
|
|
5613
5661
|
if (_replyMarkup) w.object(v.replyMarkup);
|
|
5614
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
|
+
},
|
|
5615
5672
|
"inputBotInlineResult": function(w, v) {
|
|
5616
5673
|
w.uint(2294256409);
|
|
5617
5674
|
var flags = 0;
|
|
@@ -5769,6 +5826,15 @@ var m = {
|
|
|
5769
5826
|
w.string(h(v, "url"));
|
|
5770
5827
|
if (_replyMarkup) w.object(v.replyMarkup);
|
|
5771
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
|
+
},
|
|
5772
5838
|
"botInlineResult": function(w, v) {
|
|
5773
5839
|
w.uint(295067450);
|
|
5774
5840
|
var flags = 0;
|
|
@@ -6286,6 +6352,69 @@ var m = {
|
|
|
6286
6352
|
w.object(h(v, "text"));
|
|
6287
6353
|
w.string(h(v, "name"));
|
|
6288
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
|
+
},
|
|
6289
6418
|
"pageBlockUnsupported": function(w) {
|
|
6290
6419
|
w.uint(324435594);
|
|
6291
6420
|
},
|
|
@@ -6471,6 +6600,51 @@ var m = {
|
|
|
6471
6600
|
w.int(h(v, "h"));
|
|
6472
6601
|
w.object(h(v, "caption"));
|
|
6473
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
|
+
},
|
|
6474
6648
|
"phoneCallDiscardReasonMissed": function(w) {
|
|
6475
6649
|
w.uint(2246320897);
|
|
6476
6650
|
},
|
|
@@ -12693,180 +12867,6 @@ var m = {
|
|
|
12693
12867
|
w.uint(flags);
|
|
12694
12868
|
if (_addUsers) w.vector(w.object, v.addUsers);
|
|
12695
12869
|
},
|
|
12696
|
-
"updateJoinChatWebViewDecision": function(w, v) {
|
|
12697
|
-
w.uint(3182198384);
|
|
12698
|
-
w.object(h(v, "peer"));
|
|
12699
|
-
w.long(h(v, "queryId"));
|
|
12700
|
-
w.object(h(v, "result"));
|
|
12701
|
-
},
|
|
12702
|
-
"updateNewBotConnection": function(w, v) {
|
|
12703
|
-
w.uint(2988475302);
|
|
12704
|
-
var flags = 0;
|
|
12705
|
-
if (v.confirmed === true) flags |= 1;
|
|
12706
|
-
var _date = v.date !== void 0;
|
|
12707
|
-
var _device = v.device !== void 0;
|
|
12708
|
-
var _location = v.location !== void 0;
|
|
12709
|
-
var _flags_1 = _date || _device || _location;
|
|
12710
|
-
if (_flags_1) flags |= 2;
|
|
12711
|
-
w.uint(flags);
|
|
12712
|
-
w.int53(h(v, "botId"));
|
|
12713
|
-
if (_flags_1) w.int(v.date);
|
|
12714
|
-
if (_flags_1) w.string(v.device);
|
|
12715
|
-
if (_flags_1) w.string(v.location);
|
|
12716
|
-
},
|
|
12717
|
-
"updateWebBrowserSettings": function(w, v) {
|
|
12718
|
-
w.uint(3281660638);
|
|
12719
|
-
var flags = 0;
|
|
12720
|
-
if (v.openExternalBrowser === true) flags |= 1;
|
|
12721
|
-
if (v.displayCloseButton === true) flags |= 2;
|
|
12722
|
-
w.uint(flags);
|
|
12723
|
-
},
|
|
12724
|
-
"updateWebBrowserException": function(w, v) {
|
|
12725
|
-
w.uint(335872721);
|
|
12726
|
-
var flags = 0;
|
|
12727
|
-
var _openExternalBrowser = v.openExternalBrowser !== void 0;
|
|
12728
|
-
if (_openExternalBrowser) flags |= 1;
|
|
12729
|
-
if (v.delete === true) flags |= 2;
|
|
12730
|
-
w.uint(flags);
|
|
12731
|
-
if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
|
|
12732
|
-
w.object(h(v, "exception"));
|
|
12733
|
-
},
|
|
12734
|
-
"inputSendMessageRichMessageDraftAction": function(w, v) {
|
|
12735
|
-
w.uint(3803331409);
|
|
12736
|
-
w.long(h(v, "randomId"));
|
|
12737
|
-
w.object(h(v, "richMessage"));
|
|
12738
|
-
},
|
|
12739
|
-
"sendMessageRichMessageDraftAction": function(w, v) {
|
|
12740
|
-
w.uint(2731222265);
|
|
12741
|
-
w.long(h(v, "randomId"));
|
|
12742
|
-
w.object(h(v, "richMessage"));
|
|
12743
|
-
},
|
|
12744
|
-
"inputBotInlineMessageRichMessage": function(w, v) {
|
|
12745
|
-
w.uint(3023959404);
|
|
12746
|
-
var flags = 0;
|
|
12747
|
-
var _replyMarkup = v.replyMarkup !== void 0;
|
|
12748
|
-
if (_replyMarkup) flags |= 4;
|
|
12749
|
-
w.uint(flags);
|
|
12750
|
-
if (_replyMarkup) w.object(v.replyMarkup);
|
|
12751
|
-
w.object(h(v, "richMessage"));
|
|
12752
|
-
},
|
|
12753
|
-
"botInlineMessageRichMessage": function(w, v) {
|
|
12754
|
-
w.uint(174161531);
|
|
12755
|
-
var flags = 0;
|
|
12756
|
-
var _replyMarkup = v.replyMarkup !== void 0;
|
|
12757
|
-
if (_replyMarkup) flags |= 4;
|
|
12758
|
-
w.uint(flags);
|
|
12759
|
-
if (_replyMarkup) w.object(v.replyMarkup);
|
|
12760
|
-
w.object(h(v, "richMessage"));
|
|
12761
|
-
},
|
|
12762
|
-
"textMath": function(w, v) {
|
|
12763
|
-
w.uint(2637081751);
|
|
12764
|
-
w.string(h(v, "source"));
|
|
12765
|
-
},
|
|
12766
|
-
"textCustomEmoji": function(w, v) {
|
|
12767
|
-
w.uint(2724288192);
|
|
12768
|
-
w.long(h(v, "documentId"));
|
|
12769
|
-
w.string(h(v, "alt"));
|
|
12770
|
-
},
|
|
12771
|
-
"textSpoiler": function(w, v) {
|
|
12772
|
-
w.uint(1277844834);
|
|
12773
|
-
w.object(h(v, "text"));
|
|
12774
|
-
},
|
|
12775
|
-
"textMention": function(w, v) {
|
|
12776
|
-
w.uint(3441741636);
|
|
12777
|
-
w.object(h(v, "text"));
|
|
12778
|
-
},
|
|
12779
|
-
"textHashtag": function(w, v) {
|
|
12780
|
-
w.uint(1368728810);
|
|
12781
|
-
w.object(h(v, "text"));
|
|
12782
|
-
},
|
|
12783
|
-
"textBotCommand": function(w, v) {
|
|
12784
|
-
w.uint(50276819);
|
|
12785
|
-
w.object(h(v, "text"));
|
|
12786
|
-
},
|
|
12787
|
-
"textCashtag": function(w, v) {
|
|
12788
|
-
w.uint(2073958401);
|
|
12789
|
-
w.object(h(v, "text"));
|
|
12790
|
-
},
|
|
12791
|
-
"textAutoUrl": function(w, v) {
|
|
12792
|
-
w.uint(2892661674);
|
|
12793
|
-
w.object(h(v, "text"));
|
|
12794
|
-
},
|
|
12795
|
-
"textAutoEmail": function(w, v) {
|
|
12796
|
-
w.uint(3310789725);
|
|
12797
|
-
w.object(h(v, "text"));
|
|
12798
|
-
},
|
|
12799
|
-
"textAutoPhone": function(w, v) {
|
|
12800
|
-
w.uint(616720265);
|
|
12801
|
-
w.object(h(v, "text"));
|
|
12802
|
-
},
|
|
12803
|
-
"textBankCard": function(w, v) {
|
|
12804
|
-
w.uint(3109454125);
|
|
12805
|
-
w.object(h(v, "text"));
|
|
12806
|
-
},
|
|
12807
|
-
"textMentionName": function(w, v) {
|
|
12808
|
-
w.uint(27917308);
|
|
12809
|
-
w.object(h(v, "text"));
|
|
12810
|
-
w.int53(h(v, "userId"));
|
|
12811
|
-
},
|
|
12812
|
-
"textDate": function(w, v) {
|
|
12813
|
-
w.uint(2780061227);
|
|
12814
|
-
var flags = 0;
|
|
12815
|
-
if (v.relative === true) flags |= 1;
|
|
12816
|
-
if (v.shortTime === true) flags |= 2;
|
|
12817
|
-
if (v.longTime === true) flags |= 4;
|
|
12818
|
-
if (v.shortDate === true) flags |= 8;
|
|
12819
|
-
if (v.longDate === true) flags |= 16;
|
|
12820
|
-
if (v.dayOfWeek === true) flags |= 32;
|
|
12821
|
-
w.uint(flags);
|
|
12822
|
-
w.object(h(v, "text"));
|
|
12823
|
-
w.int(h(v, "date"));
|
|
12824
|
-
},
|
|
12825
|
-
"pageBlockHeading1": function(w, v) {
|
|
12826
|
-
w.uint(3137275695);
|
|
12827
|
-
w.object(h(v, "text"));
|
|
12828
|
-
},
|
|
12829
|
-
"pageBlockHeading2": function(w, v) {
|
|
12830
|
-
w.uint(158018284);
|
|
12831
|
-
w.object(h(v, "text"));
|
|
12832
|
-
},
|
|
12833
|
-
"pageBlockHeading3": function(w, v) {
|
|
12834
|
-
w.uint(1743204781);
|
|
12835
|
-
w.object(h(v, "text"));
|
|
12836
|
-
},
|
|
12837
|
-
"pageBlockHeading4": function(w, v) {
|
|
12838
|
-
w.uint(3039983403);
|
|
12839
|
-
w.object(h(v, "text"));
|
|
12840
|
-
},
|
|
12841
|
-
"pageBlockHeading5": function(w, v) {
|
|
12842
|
-
w.uint(3686689898);
|
|
12843
|
-
w.object(h(v, "text"));
|
|
12844
|
-
},
|
|
12845
|
-
"pageBlockHeading6": function(w, v) {
|
|
12846
|
-
w.uint(1747599785);
|
|
12847
|
-
w.object(h(v, "text"));
|
|
12848
|
-
},
|
|
12849
|
-
"pageBlockMath": function(w, v) {
|
|
12850
|
-
w.uint(1493699616);
|
|
12851
|
-
w.string(h(v, "source"));
|
|
12852
|
-
},
|
|
12853
|
-
"pageBlockThinking": function(w, v) {
|
|
12854
|
-
w.uint(1009361890);
|
|
12855
|
-
w.object(h(v, "text"));
|
|
12856
|
-
},
|
|
12857
|
-
"inputPageBlockMap": function(w, v) {
|
|
12858
|
-
w.uint(1464557951);
|
|
12859
|
-
w.object(h(v, "geo"));
|
|
12860
|
-
w.int(h(v, "zoom"));
|
|
12861
|
-
w.int(h(v, "w"));
|
|
12862
|
-
w.int(h(v, "h"));
|
|
12863
|
-
w.object(h(v, "caption"));
|
|
12864
|
-
},
|
|
12865
|
-
"pageBlockBlockquoteBlocks": function(w, v) {
|
|
12866
|
-
w.uint(242108356);
|
|
12867
|
-
w.vector(w.object, h(v, "blocks"));
|
|
12868
|
-
w.object(h(v, "caption"));
|
|
12869
|
-
},
|
|
12870
12870
|
"messages.chatInviteJoinResultOk": function(w, v) {
|
|
12871
12871
|
w.uint(1146512295);
|
|
12872
12872
|
w.object(h(v, "updates"));
|
|
@@ -12914,15 +12914,15 @@ var m = {
|
|
|
12914
12914
|
w.vector(w.object, h(v, "inappExceptions"));
|
|
12915
12915
|
w.long(h(v, "hash"));
|
|
12916
12916
|
},
|
|
12917
|
-
"
|
|
12918
|
-
w.uint(
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
w.
|
|
12924
|
-
w.
|
|
12925
|
-
w.
|
|
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
12926
|
},
|
|
12927
12927
|
"inputRichMessage": function(w, v) {
|
|
12928
12928
|
w.uint(3838069244);
|
|
@@ -12942,38 +12942,36 @@ var m = {
|
|
|
12942
12942
|
if (_users) w.vector(w.object, v.users);
|
|
12943
12943
|
},
|
|
12944
12944
|
"inputRichMessageHTML": function(w, v) {
|
|
12945
|
-
w.uint(
|
|
12945
|
+
w.uint(3670770538);
|
|
12946
12946
|
var flags = 0;
|
|
12947
12947
|
if (v.rtl === true) flags |= 1;
|
|
12948
12948
|
if (v.noautolink === true) flags |= 2;
|
|
12949
|
-
var
|
|
12950
|
-
if (
|
|
12951
|
-
var _documents = v.documents && v.documents.length;
|
|
12952
|
-
if (_documents) flags |= 8;
|
|
12953
|
-
var _users = v.users && v.users.length;
|
|
12954
|
-
if (_users) flags |= 16;
|
|
12949
|
+
var _files = v.files && v.files.length;
|
|
12950
|
+
if (_files) flags |= 4;
|
|
12955
12951
|
w.uint(flags);
|
|
12956
12952
|
w.string(h(v, "html"));
|
|
12957
|
-
if (
|
|
12958
|
-
if (_documents) w.vector(w.object, v.documents);
|
|
12959
|
-
if (_users) w.vector(w.object, v.users);
|
|
12953
|
+
if (_files) w.vector(w.object, v.files);
|
|
12960
12954
|
},
|
|
12961
12955
|
"inputRichMessageMarkdown": function(w, v) {
|
|
12962
|
-
w.uint(
|
|
12956
|
+
w.uint(4937516);
|
|
12963
12957
|
var flags = 0;
|
|
12964
12958
|
if (v.rtl === true) flags |= 1;
|
|
12965
12959
|
if (v.noautolink === true) flags |= 2;
|
|
12966
|
-
var
|
|
12967
|
-
if (
|
|
12968
|
-
var _documents = v.documents && v.documents.length;
|
|
12969
|
-
if (_documents) flags |= 8;
|
|
12970
|
-
var _users = v.users && v.users.length;
|
|
12971
|
-
if (_users) flags |= 16;
|
|
12960
|
+
var _files = v.files && v.files.length;
|
|
12961
|
+
if (_files) flags |= 4;
|
|
12972
12962
|
w.uint(flags);
|
|
12973
12963
|
w.string(h(v, "markdown"));
|
|
12974
|
-
if (
|
|
12975
|
-
|
|
12976
|
-
|
|
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"));
|
|
12977
12975
|
},
|
|
12978
12976
|
"updateChannelPinnedTopic": function(w, v) {
|
|
12979
12977
|
w.uint(422509539);
|
|
@@ -13907,6 +13905,34 @@ var m = {
|
|
|
13907
13905
|
w.uint(4122302015);
|
|
13908
13906
|
w.string(h(v, "id"));
|
|
13909
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
|
+
},
|
|
13910
13936
|
"users.getUsers": function(w, v) {
|
|
13911
13937
|
w.uint(227648840);
|
|
13912
13938
|
w.vector(w.object, h(v, "id"));
|
|
@@ -16266,6 +16292,11 @@ var m = {
|
|
|
16266
16292
|
w.int(h(v, "minId"));
|
|
16267
16293
|
w.long(h(v, "hash"));
|
|
16268
16294
|
},
|
|
16295
|
+
"messages.getRichMessage": function(w, v) {
|
|
16296
|
+
w.uint(1343580623);
|
|
16297
|
+
w.object(h(v, "peer"));
|
|
16298
|
+
w.int(h(v, "id"));
|
|
16299
|
+
},
|
|
16269
16300
|
"updates.getState": function(w) {
|
|
16270
16301
|
w.uint(3990128682);
|
|
16271
16302
|
},
|
|
@@ -17096,6 +17127,11 @@ var m = {
|
|
|
17096
17127
|
w.object(h(v, "bot"));
|
|
17097
17128
|
if (_addUsers) w.vector(w.object, v.addUsers);
|
|
17098
17129
|
},
|
|
17130
|
+
"bots.setJoinChatResults": function(w, v) {
|
|
17131
|
+
w.uint(3877259280);
|
|
17132
|
+
w.long(h(v, "queryId"));
|
|
17133
|
+
w.object(h(v, "result"));
|
|
17134
|
+
},
|
|
17099
17135
|
"payments.getPaymentForm": function(w, v) {
|
|
17100
17136
|
w.uint(924093883);
|
|
17101
17137
|
var flags = 0;
|
|
@@ -18501,44 +18537,6 @@ var m = {
|
|
|
18501
18537
|
w.object(h(v, "tone"));
|
|
18502
18538
|
w.int(h(v, "num"));
|
|
18503
18539
|
},
|
|
18504
|
-
"account.confirmBotConnection": function(w, v) {
|
|
18505
|
-
w.uint(1743593320);
|
|
18506
|
-
w.object(h(v, "botId"));
|
|
18507
|
-
},
|
|
18508
|
-
"account.getWebBrowserSettings": function(w, v) {
|
|
18509
|
-
w.uint(1449482088);
|
|
18510
|
-
w.long(h(v, "hash"));
|
|
18511
|
-
},
|
|
18512
|
-
"account.updateWebBrowserSettings": function(w, v) {
|
|
18513
|
-
w.uint(2598339326);
|
|
18514
|
-
var flags = 0;
|
|
18515
|
-
if (v.openExternalBrowser === true) flags |= 1;
|
|
18516
|
-
if (v.displayCloseButton === true) flags |= 2;
|
|
18517
|
-
w.uint(flags);
|
|
18518
|
-
},
|
|
18519
|
-
"account.toggleWebBrowserSettingsException": function(w, v) {
|
|
18520
|
-
w.uint(1626161705);
|
|
18521
|
-
var flags = 0;
|
|
18522
|
-
var _openExternalBrowser = v.openExternalBrowser !== void 0;
|
|
18523
|
-
if (_openExternalBrowser) flags |= 1;
|
|
18524
|
-
if (v.delete === true) flags |= 2;
|
|
18525
|
-
w.uint(flags);
|
|
18526
|
-
if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
|
|
18527
|
-
w.string(h(v, "url"));
|
|
18528
|
-
},
|
|
18529
|
-
"account.deleteWebBrowserSettingsExceptions": function(w) {
|
|
18530
|
-
w.uint(2258663005);
|
|
18531
|
-
},
|
|
18532
|
-
"messages.getRichMessage": function(w, v) {
|
|
18533
|
-
w.uint(1343580623);
|
|
18534
|
-
w.object(h(v, "peer"));
|
|
18535
|
-
w.int(h(v, "id"));
|
|
18536
|
-
},
|
|
18537
|
-
"bots.setJoinChatResults": function(w, v) {
|
|
18538
|
-
w.uint(3877259280);
|
|
18539
|
-
w.long(h(v, "queryId"));
|
|
18540
|
-
w.object(h(v, "result"));
|
|
18541
|
-
},
|
|
18542
18540
|
"channels.editCreator": function(w, v) {
|
|
18543
18541
|
w.uint(2402864415);
|
|
18544
18542
|
w.object(h(v, "channel"));
|
|
@@ -19008,6 +19006,7 @@ var m = {
|
|
|
19008
19006
|
"updateStarGiftCraftFail": 4,
|
|
19009
19007
|
"updateManagedBot": 24,
|
|
19010
19008
|
"updateAiComposeTones": 4,
|
|
19009
|
+
"updateWebBrowserSettings": 8,
|
|
19011
19010
|
"updates.state": 24,
|
|
19012
19011
|
"updates.differenceEmpty": 12,
|
|
19013
19012
|
"updates.differenceTooLong": 8,
|
|
@@ -19412,7 +19411,6 @@ var m = {
|
|
|
19412
19411
|
"inputMessageReadMetric": 32,
|
|
19413
19412
|
"inputAiComposeToneID": 20,
|
|
19414
19413
|
"aicompose.tonesNotModified": 4,
|
|
19415
|
-
"updateWebBrowserSettings": 8,
|
|
19416
19414
|
"joinChatBotResultApproved": 4,
|
|
19417
19415
|
"joinChatBotResultDeclined": 4,
|
|
19418
19416
|
"joinChatBotResultQueued": 4,
|
|
@@ -19471,6 +19469,9 @@ var m = {
|
|
|
19471
19469
|
"account.getSavedMusicIds": 12,
|
|
19472
19470
|
"account.initPasskeyRegistration": 4,
|
|
19473
19471
|
"account.getPasskeys": 4,
|
|
19472
|
+
"account.getWebBrowserSettings": 12,
|
|
19473
|
+
"account.updateWebBrowserSettings": 8,
|
|
19474
|
+
"account.deleteWebBrowserSettingsExceptions": 4,
|
|
19474
19475
|
"contacts.getContactIDs": 12,
|
|
19475
19476
|
"contacts.getStatuses": 4,
|
|
19476
19477
|
"contacts.getContacts": 12,
|
|
@@ -19581,9 +19582,6 @@ var m = {
|
|
|
19581
19582
|
"smsjobs.updateSettings": 8,
|
|
19582
19583
|
"smsjobs.getStatus": 4,
|
|
19583
19584
|
"aicompose.getTones": 12,
|
|
19584
|
-
"account.getWebBrowserSettings": 12,
|
|
19585
|
-
"account.updateWebBrowserSettings": 8,
|
|
19586
|
-
"account.deleteWebBrowserSettingsExceptions": 4,
|
|
19587
19585
|
"mt_dh_gen_ok": 52,
|
|
19588
19586
|
"mt_dh_gen_retry": 52,
|
|
19589
19587
|
"mt_dh_gen_fail": 52,
|