@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.
Files changed (148) hide show
  1. package/client.cjs +8 -0
  2. package/client.js +8 -0
  3. package/highlevel/client.d.cts +63 -1
  4. package/highlevel/client.d.ts +63 -1
  5. package/highlevel/methods/files/download-iterable.cjs +80 -45
  6. package/highlevel/methods/files/download-iterable.js +80 -45
  7. package/highlevel/methods/files/normalize-input-media.cjs +9 -1
  8. package/highlevel/methods/files/normalize-input-media.js +10 -2
  9. package/highlevel/methods/files/upload-file.cjs +6 -1
  10. package/highlevel/methods/files/upload-file.js +6 -1
  11. package/highlevel/methods/messages/create-rich-streaming-draft.cjs +39 -0
  12. package/highlevel/methods/messages/create-rich-streaming-draft.d.cts +42 -0
  13. package/highlevel/methods/messages/create-rich-streaming-draft.d.ts +42 -0
  14. package/highlevel/methods/messages/create-rich-streaming-draft.js +34 -0
  15. package/highlevel/methods/messages/normalize-rich-message.cjs +168 -0
  16. package/highlevel/methods/messages/normalize-rich-message.d.cts +10 -0
  17. package/highlevel/methods/messages/normalize-rich-message.d.ts +10 -0
  18. package/highlevel/methods/messages/normalize-rich-message.js +163 -0
  19. package/highlevel/methods/messages/send-common.cjs +3 -2
  20. package/highlevel/methods/messages/send-common.d.cts +4 -1
  21. package/highlevel/methods/messages/send-common.d.ts +4 -1
  22. package/highlevel/methods/messages/send-common.js +3 -2
  23. package/highlevel/methods/messages/send-rich-message.cjs +49 -0
  24. package/highlevel/methods/messages/send-rich-message.d.cts +38 -0
  25. package/highlevel/methods/messages/send-rich-message.d.ts +38 -0
  26. package/highlevel/methods/messages/send-rich-message.js +44 -0
  27. package/highlevel/methods.d.cts +3 -0
  28. package/highlevel/methods.d.ts +3 -0
  29. package/highlevel/types/bots/inline-message/factories.cjs +14 -0
  30. package/highlevel/types/bots/inline-message/factories.d.cts +9 -1
  31. package/highlevel/types/bots/inline-message/factories.d.ts +9 -1
  32. package/highlevel/types/bots/inline-message/factories.js +14 -0
  33. package/highlevel/types/bots/inline-message/types.d.cts +17 -1
  34. package/highlevel/types/bots/inline-message/types.d.ts +17 -1
  35. package/highlevel/types/files/utils.d.cts +9 -0
  36. package/highlevel/types/files/utils.d.ts +9 -0
  37. package/highlevel/types/media/input-media/types.d.cts +1 -1
  38. package/highlevel/types/media/input-media/types.d.ts +1 -1
  39. package/highlevel/types/messages/index.d.cts +1 -1
  40. package/highlevel/types/messages/index.d.ts +1 -1
  41. package/highlevel/types/messages/message.cjs +1 -1
  42. package/highlevel/types/messages/message.d.cts +1 -1
  43. package/highlevel/types/messages/message.d.ts +1 -1
  44. package/highlevel/types/messages/message.js +1 -1
  45. package/highlevel/types/messages/rich/index.d.cts +4 -0
  46. package/highlevel/types/messages/rich/index.d.ts +4 -0
  47. package/highlevel/types/messages/rich/inner.cjs +219 -0
  48. package/highlevel/types/messages/rich/inner.d.cts +127 -0
  49. package/highlevel/types/messages/rich/inner.d.ts +127 -0
  50. package/highlevel/types/messages/rich/inner.js +214 -0
  51. package/highlevel/types/messages/{rich-message.cjs → rich/rich-message.cjs} +6 -6
  52. package/highlevel/types/messages/{rich-message.d.cts → rich/rich-message.d.cts} +5 -5
  53. package/highlevel/types/messages/{rich-message.d.ts → rich/rich-message.d.ts} +5 -5
  54. package/highlevel/types/messages/{rich-message.js → rich/rich-message.js} +6 -6
  55. package/highlevel/types/messages/rich/types.d.cts +76 -0
  56. package/highlevel/types/messages/rich/types.d.ts +76 -0
  57. package/highlevel/updates/manager.cjs +10 -169
  58. package/highlevel/updates/manager.js +10 -169
  59. package/highlevel/utils/entities.cjs +176 -0
  60. package/highlevel/utils/entities.d.cts +18 -0
  61. package/highlevel/utils/entities.d.ts +18 -0
  62. package/highlevel/utils/entities.js +177 -1
  63. package/highlevel/utils/index.d.cts +1 -0
  64. package/highlevel/utils/index.d.ts +1 -0
  65. package/highlevel/utils/walk-page-blocks.cjs +164 -0
  66. package/highlevel/utils/walk-page-blocks.d.cts +9 -0
  67. package/highlevel/utils/walk-page-blocks.d.ts +9 -0
  68. package/highlevel/utils/walk-page-blocks.js +159 -0
  69. package/index.cjs +3 -1
  70. package/index.js +3 -1
  71. package/methods.cjs +4 -0
  72. package/methods.js +4 -0
  73. package/network/authorization.cjs +1 -1
  74. package/network/authorization.js +1 -1
  75. package/network/delay-gate.cjs +29 -0
  76. package/network/delay-gate.d.cts +5 -0
  77. package/network/delay-gate.d.ts +5 -0
  78. package/network/delay-gate.js +24 -0
  79. package/network/delay-gate.test.d.cts +1 -0
  80. package/network/delay-gate.test.d.ts +1 -0
  81. package/network/message-id-store.cjs +30 -0
  82. package/network/message-id-store.d.cts +7 -0
  83. package/network/message-id-store.d.ts +7 -0
  84. package/network/message-id-store.js +25 -0
  85. package/network/message-id-store.test.d.cts +1 -0
  86. package/network/message-id-store.test.d.ts +1 -0
  87. package/network/middlewares/bundle.cjs +2 -0
  88. package/network/middlewares/bundle.d.cts +1 -0
  89. package/network/middlewares/bundle.d.ts +1 -0
  90. package/network/middlewares/bundle.js +2 -0
  91. package/network/middlewares/default.cjs +6 -1
  92. package/network/middlewares/default.js +6 -1
  93. package/network/middlewares/flood-waiter.test.d.cts +1 -0
  94. package/network/middlewares/flood-waiter.test.d.ts +1 -0
  95. package/network/middlewares/internal-errors.test.d.cts +1 -0
  96. package/network/middlewares/internal-errors.test.d.ts +1 -0
  97. package/network/middlewares/media-throttle.cjs +65 -0
  98. package/network/middlewares/media-throttle.d.cts +5 -0
  99. package/network/middlewares/media-throttle.d.ts +5 -0
  100. package/network/middlewares/media-throttle.js +60 -0
  101. package/network/middlewares/media-throttle.test.d.cts +1 -0
  102. package/network/middlewares/media-throttle.test.d.ts +1 -0
  103. package/network/middlewares/on-error.test.d.cts +1 -0
  104. package/network/middlewares/on-error.test.d.ts +1 -0
  105. package/network/middlewares/on-method.test.d.cts +1 -0
  106. package/network/middlewares/on-method.test.d.ts +1 -0
  107. package/network/mtproto-session.cjs +9 -2
  108. package/network/mtproto-session.d.cts +5 -2
  109. package/network/mtproto-session.d.ts +5 -2
  110. package/network/mtproto-session.js +9 -2
  111. package/network/mtproxy/_fake-tls.cjs +169 -107
  112. package/network/mtproxy/_fake-tls.js +169 -107
  113. package/network/mtproxy/_fake-tls.test.d.cts +1 -0
  114. package/network/mtproxy/_fake-tls.test.d.ts +1 -0
  115. package/network/multi-session-connection.cjs +7 -0
  116. package/network/multi-session-connection.d.cts +2 -0
  117. package/network/multi-session-connection.d.ts +2 -0
  118. package/network/multi-session-connection.js +7 -0
  119. package/network/network-manager.cjs +7 -1
  120. package/network/network-manager.js +7 -1
  121. package/network/resource-limiter.cjs +60 -0
  122. package/network/resource-limiter.d.cts +11 -0
  123. package/network/resource-limiter.d.ts +11 -0
  124. package/network/resource-limiter.js +55 -0
  125. package/network/resource-limiter.test.d.cts +1 -0
  126. package/network/resource-limiter.test.d.ts +1 -0
  127. package/network/server-salt.cjs +7 -3
  128. package/network/server-salt.d.cts +2 -0
  129. package/network/server-salt.d.ts +2 -0
  130. package/network/server-salt.js +7 -3
  131. package/network/session-connection.cjs +106 -20
  132. package/network/session-connection.d.cts +11 -0
  133. package/network/session-connection.d.ts +11 -0
  134. package/network/session-connection.js +106 -20
  135. package/package.json +1 -1
  136. package/tl/api-schema.json +1 -1
  137. package/tl/binary/reader.cjs +115 -109
  138. package/tl/binary/reader.js +115 -109
  139. package/tl/binary/writer.cjs +243 -245
  140. package/tl/binary/writer.js +243 -245
  141. package/tl/index.d.cts +227 -216
  142. package/tl/index.d.ts +227 -216
  143. package/tl/inner-tl.cjs +3 -1
  144. package/tl/inner-tl.js +3 -1
  145. package/types/utils.d.cts +4 -0
  146. package/types/utils.d.ts +4 -0
  147. package/utils.cjs +4 -0
  148. package/utils.js +5 -1
@@ -3712,6 +3712,44 @@ var m = {
3712
3712
  "updateAiComposeTones": function(w) {
3713
3713
  w.uint(2349830651);
3714
3714
  },
3715
+ "updateJoinChatWebViewDecision": function(w, v) {
3716
+ w.uint(3182198384);
3717
+ w.object(h(v, "peer"));
3718
+ w.long(h(v, "queryId"));
3719
+ w.object(h(v, "result"));
3720
+ },
3721
+ "updateNewBotConnection": function(w, v) {
3722
+ w.uint(2988475302);
3723
+ var flags = 0;
3724
+ if (v.confirmed === true) flags |= 1;
3725
+ var _date = v.date !== void 0;
3726
+ var _device = v.device !== void 0;
3727
+ var _location = v.location !== void 0;
3728
+ var _flags_1 = _date || _device || _location;
3729
+ if (_flags_1) flags |= 2;
3730
+ w.uint(flags);
3731
+ w.int53(h(v, "botId"));
3732
+ if (_flags_1) w.int(v.date);
3733
+ if (_flags_1) w.string(v.device);
3734
+ if (_flags_1) w.string(v.location);
3735
+ },
3736
+ "updateWebBrowserSettings": function(w, v) {
3737
+ w.uint(3281660638);
3738
+ var flags = 0;
3739
+ if (v.openExternalBrowser === true) flags |= 1;
3740
+ if (v.displayCloseButton === true) flags |= 2;
3741
+ w.uint(flags);
3742
+ },
3743
+ "updateWebBrowserException": function(w, v) {
3744
+ w.uint(335872721);
3745
+ var flags = 0;
3746
+ var _openExternalBrowser = v.openExternalBrowser !== void 0;
3747
+ if (_openExternalBrowser) flags |= 1;
3748
+ if (v.delete === true) flags |= 2;
3749
+ w.uint(flags);
3750
+ if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
3751
+ w.object(h(v, "exception"));
3752
+ },
3715
3753
  "updates.state": function(w, v) {
3716
3754
  w.uint(2775329342);
3717
3755
  w.int(h(v, "pts"));
@@ -4243,6 +4281,16 @@ var m = {
4243
4281
  w.long(h(v, "randomId"));
4244
4282
  w.object(h(v, "text"));
4245
4283
  },
4284
+ "inputSendMessageRichMessageDraftAction": function(w, v) {
4285
+ w.uint(3803331409);
4286
+ w.long(h(v, "randomId"));
4287
+ w.object(h(v, "richMessage"));
4288
+ },
4289
+ "sendMessageRichMessageDraftAction": function(w, v) {
4290
+ w.uint(2731222265);
4291
+ w.long(h(v, "randomId"));
4292
+ w.object(h(v, "richMessage"));
4293
+ },
4246
4294
  "contacts.found": function(w, v) {
4247
4295
  w.uint(3004386717);
4248
4296
  w.vector(w.object, h(v, "myResults"));
@@ -5605,6 +5653,15 @@ var m = {
5605
5653
  w.string(h(v, "url"));
5606
5654
  if (_replyMarkup) w.object(v.replyMarkup);
5607
5655
  },
5656
+ "inputBotInlineMessageRichMessage": function(w, v) {
5657
+ w.uint(3023959404);
5658
+ var flags = 0;
5659
+ var _replyMarkup = v.replyMarkup !== void 0;
5660
+ if (_replyMarkup) flags |= 4;
5661
+ w.uint(flags);
5662
+ if (_replyMarkup) w.object(v.replyMarkup);
5663
+ w.object(h(v, "richMessage"));
5664
+ },
5608
5665
  "inputBotInlineResult": function(w, v) {
5609
5666
  w.uint(2294256409);
5610
5667
  var flags = 0;
@@ -5762,6 +5819,15 @@ var m = {
5762
5819
  w.string(h(v, "url"));
5763
5820
  if (_replyMarkup) w.object(v.replyMarkup);
5764
5821
  },
5822
+ "botInlineMessageRichMessage": function(w, v) {
5823
+ w.uint(174161531);
5824
+ var flags = 0;
5825
+ var _replyMarkup = v.replyMarkup !== void 0;
5826
+ if (_replyMarkup) flags |= 4;
5827
+ w.uint(flags);
5828
+ if (_replyMarkup) w.object(v.replyMarkup);
5829
+ w.object(h(v, "richMessage"));
5830
+ },
5765
5831
  "botInlineResult": function(w, v) {
5766
5832
  w.uint(295067450);
5767
5833
  var flags = 0;
@@ -6279,6 +6345,69 @@ var m = {
6279
6345
  w.object(h(v, "text"));
6280
6346
  w.string(h(v, "name"));
6281
6347
  },
6348
+ "textMath": function(w, v) {
6349
+ w.uint(2637081751);
6350
+ w.string(h(v, "source"));
6351
+ },
6352
+ "textCustomEmoji": function(w, v) {
6353
+ w.uint(2724288192);
6354
+ w.long(h(v, "documentId"));
6355
+ w.string(h(v, "alt"));
6356
+ },
6357
+ "textSpoiler": function(w, v) {
6358
+ w.uint(1277844834);
6359
+ w.object(h(v, "text"));
6360
+ },
6361
+ "textMention": function(w, v) {
6362
+ w.uint(3441741636);
6363
+ w.object(h(v, "text"));
6364
+ },
6365
+ "textHashtag": function(w, v) {
6366
+ w.uint(1368728810);
6367
+ w.object(h(v, "text"));
6368
+ },
6369
+ "textBotCommand": function(w, v) {
6370
+ w.uint(50276819);
6371
+ w.object(h(v, "text"));
6372
+ },
6373
+ "textCashtag": function(w, v) {
6374
+ w.uint(2073958401);
6375
+ w.object(h(v, "text"));
6376
+ },
6377
+ "textAutoUrl": function(w, v) {
6378
+ w.uint(2892661674);
6379
+ w.object(h(v, "text"));
6380
+ },
6381
+ "textAutoEmail": function(w, v) {
6382
+ w.uint(3310789725);
6383
+ w.object(h(v, "text"));
6384
+ },
6385
+ "textAutoPhone": function(w, v) {
6386
+ w.uint(616720265);
6387
+ w.object(h(v, "text"));
6388
+ },
6389
+ "textBankCard": function(w, v) {
6390
+ w.uint(3109454125);
6391
+ w.object(h(v, "text"));
6392
+ },
6393
+ "textMentionName": function(w, v) {
6394
+ w.uint(27917308);
6395
+ w.object(h(v, "text"));
6396
+ w.int53(h(v, "userId"));
6397
+ },
6398
+ "textDate": function(w, v) {
6399
+ w.uint(2780061227);
6400
+ var flags = 0;
6401
+ if (v.relative === true) flags |= 1;
6402
+ if (v.shortTime === true) flags |= 2;
6403
+ if (v.longTime === true) flags |= 4;
6404
+ if (v.shortDate === true) flags |= 8;
6405
+ if (v.longDate === true) flags |= 16;
6406
+ if (v.dayOfWeek === true) flags |= 32;
6407
+ w.uint(flags);
6408
+ w.object(h(v, "text"));
6409
+ w.int(h(v, "date"));
6410
+ },
6282
6411
  "pageBlockUnsupported": function(w) {
6283
6412
  w.uint(324435594);
6284
6413
  },
@@ -6464,6 +6593,51 @@ var m = {
6464
6593
  w.int(h(v, "h"));
6465
6594
  w.object(h(v, "caption"));
6466
6595
  },
6596
+ "pageBlockHeading1": function(w, v) {
6597
+ w.uint(3137275695);
6598
+ w.object(h(v, "text"));
6599
+ },
6600
+ "pageBlockHeading2": function(w, v) {
6601
+ w.uint(158018284);
6602
+ w.object(h(v, "text"));
6603
+ },
6604
+ "pageBlockHeading3": function(w, v) {
6605
+ w.uint(1743204781);
6606
+ w.object(h(v, "text"));
6607
+ },
6608
+ "pageBlockHeading4": function(w, v) {
6609
+ w.uint(3039983403);
6610
+ w.object(h(v, "text"));
6611
+ },
6612
+ "pageBlockHeading5": function(w, v) {
6613
+ w.uint(3686689898);
6614
+ w.object(h(v, "text"));
6615
+ },
6616
+ "pageBlockHeading6": function(w, v) {
6617
+ w.uint(1747599785);
6618
+ w.object(h(v, "text"));
6619
+ },
6620
+ "pageBlockMath": function(w, v) {
6621
+ w.uint(1493699616);
6622
+ w.string(h(v, "source"));
6623
+ },
6624
+ "pageBlockThinking": function(w, v) {
6625
+ w.uint(1009361890);
6626
+ w.object(h(v, "text"));
6627
+ },
6628
+ "inputPageBlockMap": function(w, v) {
6629
+ w.uint(1464557951);
6630
+ w.object(h(v, "geo"));
6631
+ w.int(h(v, "zoom"));
6632
+ w.int(h(v, "w"));
6633
+ w.int(h(v, "h"));
6634
+ w.object(h(v, "caption"));
6635
+ },
6636
+ "pageBlockBlockquoteBlocks": function(w, v) {
6637
+ w.uint(242108356);
6638
+ w.vector(w.object, h(v, "blocks"));
6639
+ w.object(h(v, "caption"));
6640
+ },
6467
6641
  "phoneCallDiscardReasonMissed": function(w) {
6468
6642
  w.uint(2246320897);
6469
6643
  },
@@ -12686,180 +12860,6 @@ var m = {
12686
12860
  w.uint(flags);
12687
12861
  if (_addUsers) w.vector(w.object, v.addUsers);
12688
12862
  },
12689
- "updateJoinChatWebViewDecision": function(w, v) {
12690
- w.uint(3182198384);
12691
- w.object(h(v, "peer"));
12692
- w.long(h(v, "queryId"));
12693
- w.object(h(v, "result"));
12694
- },
12695
- "updateNewBotConnection": function(w, v) {
12696
- w.uint(2988475302);
12697
- var flags = 0;
12698
- if (v.confirmed === true) flags |= 1;
12699
- var _date = v.date !== void 0;
12700
- var _device = v.device !== void 0;
12701
- var _location = v.location !== void 0;
12702
- var _flags_1 = _date || _device || _location;
12703
- if (_flags_1) flags |= 2;
12704
- w.uint(flags);
12705
- w.int53(h(v, "botId"));
12706
- if (_flags_1) w.int(v.date);
12707
- if (_flags_1) w.string(v.device);
12708
- if (_flags_1) w.string(v.location);
12709
- },
12710
- "updateWebBrowserSettings": function(w, v) {
12711
- w.uint(3281660638);
12712
- var flags = 0;
12713
- if (v.openExternalBrowser === true) flags |= 1;
12714
- if (v.displayCloseButton === true) flags |= 2;
12715
- w.uint(flags);
12716
- },
12717
- "updateWebBrowserException": function(w, v) {
12718
- w.uint(335872721);
12719
- var flags = 0;
12720
- var _openExternalBrowser = v.openExternalBrowser !== void 0;
12721
- if (_openExternalBrowser) flags |= 1;
12722
- if (v.delete === true) flags |= 2;
12723
- w.uint(flags);
12724
- if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
12725
- w.object(h(v, "exception"));
12726
- },
12727
- "inputSendMessageRichMessageDraftAction": function(w, v) {
12728
- w.uint(3803331409);
12729
- w.long(h(v, "randomId"));
12730
- w.object(h(v, "richMessage"));
12731
- },
12732
- "sendMessageRichMessageDraftAction": function(w, v) {
12733
- w.uint(2731222265);
12734
- w.long(h(v, "randomId"));
12735
- w.object(h(v, "richMessage"));
12736
- },
12737
- "inputBotInlineMessageRichMessage": function(w, v) {
12738
- w.uint(3023959404);
12739
- var flags = 0;
12740
- var _replyMarkup = v.replyMarkup !== void 0;
12741
- if (_replyMarkup) flags |= 4;
12742
- w.uint(flags);
12743
- if (_replyMarkup) w.object(v.replyMarkup);
12744
- w.object(h(v, "richMessage"));
12745
- },
12746
- "botInlineMessageRichMessage": function(w, v) {
12747
- w.uint(174161531);
12748
- var flags = 0;
12749
- var _replyMarkup = v.replyMarkup !== void 0;
12750
- if (_replyMarkup) flags |= 4;
12751
- w.uint(flags);
12752
- if (_replyMarkup) w.object(v.replyMarkup);
12753
- w.object(h(v, "richMessage"));
12754
- },
12755
- "textMath": function(w, v) {
12756
- w.uint(2637081751);
12757
- w.string(h(v, "source"));
12758
- },
12759
- "textCustomEmoji": function(w, v) {
12760
- w.uint(2724288192);
12761
- w.long(h(v, "documentId"));
12762
- w.string(h(v, "alt"));
12763
- },
12764
- "textSpoiler": function(w, v) {
12765
- w.uint(1277844834);
12766
- w.object(h(v, "text"));
12767
- },
12768
- "textMention": function(w, v) {
12769
- w.uint(3441741636);
12770
- w.object(h(v, "text"));
12771
- },
12772
- "textHashtag": function(w, v) {
12773
- w.uint(1368728810);
12774
- w.object(h(v, "text"));
12775
- },
12776
- "textBotCommand": function(w, v) {
12777
- w.uint(50276819);
12778
- w.object(h(v, "text"));
12779
- },
12780
- "textCashtag": function(w, v) {
12781
- w.uint(2073958401);
12782
- w.object(h(v, "text"));
12783
- },
12784
- "textAutoUrl": function(w, v) {
12785
- w.uint(2892661674);
12786
- w.object(h(v, "text"));
12787
- },
12788
- "textAutoEmail": function(w, v) {
12789
- w.uint(3310789725);
12790
- w.object(h(v, "text"));
12791
- },
12792
- "textAutoPhone": function(w, v) {
12793
- w.uint(616720265);
12794
- w.object(h(v, "text"));
12795
- },
12796
- "textBankCard": function(w, v) {
12797
- w.uint(3109454125);
12798
- w.object(h(v, "text"));
12799
- },
12800
- "textMentionName": function(w, v) {
12801
- w.uint(27917308);
12802
- w.object(h(v, "text"));
12803
- w.int53(h(v, "userId"));
12804
- },
12805
- "textDate": function(w, v) {
12806
- w.uint(2780061227);
12807
- var flags = 0;
12808
- if (v.relative === true) flags |= 1;
12809
- if (v.shortTime === true) flags |= 2;
12810
- if (v.longTime === true) flags |= 4;
12811
- if (v.shortDate === true) flags |= 8;
12812
- if (v.longDate === true) flags |= 16;
12813
- if (v.dayOfWeek === true) flags |= 32;
12814
- w.uint(flags);
12815
- w.object(h(v, "text"));
12816
- w.int(h(v, "date"));
12817
- },
12818
- "pageBlockHeading1": function(w, v) {
12819
- w.uint(3137275695);
12820
- w.object(h(v, "text"));
12821
- },
12822
- "pageBlockHeading2": function(w, v) {
12823
- w.uint(158018284);
12824
- w.object(h(v, "text"));
12825
- },
12826
- "pageBlockHeading3": function(w, v) {
12827
- w.uint(1743204781);
12828
- w.object(h(v, "text"));
12829
- },
12830
- "pageBlockHeading4": function(w, v) {
12831
- w.uint(3039983403);
12832
- w.object(h(v, "text"));
12833
- },
12834
- "pageBlockHeading5": function(w, v) {
12835
- w.uint(3686689898);
12836
- w.object(h(v, "text"));
12837
- },
12838
- "pageBlockHeading6": function(w, v) {
12839
- w.uint(1747599785);
12840
- w.object(h(v, "text"));
12841
- },
12842
- "pageBlockMath": function(w, v) {
12843
- w.uint(1493699616);
12844
- w.string(h(v, "source"));
12845
- },
12846
- "pageBlockThinking": function(w, v) {
12847
- w.uint(1009361890);
12848
- w.object(h(v, "text"));
12849
- },
12850
- "inputPageBlockMap": function(w, v) {
12851
- w.uint(1464557951);
12852
- w.object(h(v, "geo"));
12853
- w.int(h(v, "zoom"));
12854
- w.int(h(v, "w"));
12855
- w.int(h(v, "h"));
12856
- w.object(h(v, "caption"));
12857
- },
12858
- "pageBlockBlockquoteBlocks": function(w, v) {
12859
- w.uint(242108356);
12860
- w.vector(w.object, h(v, "blocks"));
12861
- w.object(h(v, "caption"));
12862
- },
12863
12863
  "messages.chatInviteJoinResultOk": function(w, v) {
12864
12864
  w.uint(1146512295);
12865
12865
  w.object(h(v, "updates"));
@@ -12907,15 +12907,15 @@ var m = {
12907
12907
  w.vector(w.object, h(v, "inappExceptions"));
12908
12908
  w.long(h(v, "hash"));
12909
12909
  },
12910
- "richMessage": function(w, v) {
12911
- w.uint(3136527755);
12912
- var flags = 0;
12913
- if (v.rtl === true) flags |= 1;
12914
- if (v.part === true) flags |= 2;
12915
- w.uint(flags);
12916
- w.vector(w.object, h(v, "blocks"));
12917
- w.vector(w.object, h(v, "photos"));
12918
- w.vector(w.object, h(v, "documents"));
12910
+ "inputRichFilePhoto": function(w, v) {
12911
+ w.uint(2600493611);
12912
+ w.string(h(v, "id"));
12913
+ w.object(h(v, "photo"));
12914
+ },
12915
+ "inputRichFileDocument": function(w, v) {
12916
+ w.uint(2200444349);
12917
+ w.string(h(v, "id"));
12918
+ w.object(h(v, "document"));
12919
12919
  },
12920
12920
  "inputRichMessage": function(w, v) {
12921
12921
  w.uint(3838069244);
@@ -12935,38 +12935,36 @@ var m = {
12935
12935
  if (_users) w.vector(w.object, v.users);
12936
12936
  },
12937
12937
  "inputRichMessageHTML": function(w, v) {
12938
- w.uint(3572151633);
12938
+ w.uint(3670770538);
12939
12939
  var flags = 0;
12940
12940
  if (v.rtl === true) flags |= 1;
12941
12941
  if (v.noautolink === true) flags |= 2;
12942
- var _photos = v.photos && v.photos.length;
12943
- if (_photos) flags |= 4;
12944
- var _documents = v.documents && v.documents.length;
12945
- if (_documents) flags |= 8;
12946
- var _users = v.users && v.users.length;
12947
- if (_users) flags |= 16;
12942
+ var _files = v.files && v.files.length;
12943
+ if (_files) flags |= 4;
12948
12944
  w.uint(flags);
12949
12945
  w.string(h(v, "html"));
12950
- if (_photos) w.vector(w.object, v.photos);
12951
- if (_documents) w.vector(w.object, v.documents);
12952
- if (_users) w.vector(w.object, v.users);
12946
+ if (_files) w.vector(w.object, v.files);
12953
12947
  },
12954
12948
  "inputRichMessageMarkdown": function(w, v) {
12955
- w.uint(162300294);
12949
+ w.uint(4937516);
12956
12950
  var flags = 0;
12957
12951
  if (v.rtl === true) flags |= 1;
12958
12952
  if (v.noautolink === true) flags |= 2;
12959
- var _photos = v.photos && v.photos.length;
12960
- if (_photos) flags |= 4;
12961
- var _documents = v.documents && v.documents.length;
12962
- if (_documents) flags |= 8;
12963
- var _users = v.users && v.users.length;
12964
- if (_users) flags |= 16;
12953
+ var _files = v.files && v.files.length;
12954
+ if (_files) flags |= 4;
12965
12955
  w.uint(flags);
12966
12956
  w.string(h(v, "markdown"));
12967
- if (_photos) w.vector(w.object, v.photos);
12968
- if (_documents) w.vector(w.object, v.documents);
12969
- if (_users) w.vector(w.object, v.users);
12957
+ if (_files) w.vector(w.object, v.files);
12958
+ },
12959
+ "richMessage": function(w, v) {
12960
+ w.uint(3136527755);
12961
+ var flags = 0;
12962
+ if (v.rtl === true) flags |= 1;
12963
+ if (v.part === true) flags |= 2;
12964
+ w.uint(flags);
12965
+ w.vector(w.object, h(v, "blocks"));
12966
+ w.vector(w.object, h(v, "photos"));
12967
+ w.vector(w.object, h(v, "documents"));
12970
12968
  },
12971
12969
  "updateChannelPinnedTopic": function(w, v) {
12972
12970
  w.uint(422509539);
@@ -13900,6 +13898,34 @@ var m = {
13900
13898
  w.uint(4122302015);
13901
13899
  w.string(h(v, "id"));
13902
13900
  },
13901
+ "account.confirmBotConnection": function(w, v) {
13902
+ w.uint(1743593320);
13903
+ w.object(h(v, "botId"));
13904
+ },
13905
+ "account.getWebBrowserSettings": function(w, v) {
13906
+ w.uint(1449482088);
13907
+ w.long(h(v, "hash"));
13908
+ },
13909
+ "account.updateWebBrowserSettings": function(w, v) {
13910
+ w.uint(2598339326);
13911
+ var flags = 0;
13912
+ if (v.openExternalBrowser === true) flags |= 1;
13913
+ if (v.displayCloseButton === true) flags |= 2;
13914
+ w.uint(flags);
13915
+ },
13916
+ "account.toggleWebBrowserSettingsException": function(w, v) {
13917
+ w.uint(1626161705);
13918
+ var flags = 0;
13919
+ var _openExternalBrowser = v.openExternalBrowser !== void 0;
13920
+ if (_openExternalBrowser) flags |= 1;
13921
+ if (v.delete === true) flags |= 2;
13922
+ w.uint(flags);
13923
+ if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
13924
+ w.string(h(v, "url"));
13925
+ },
13926
+ "account.deleteWebBrowserSettingsExceptions": function(w) {
13927
+ w.uint(2258663005);
13928
+ },
13903
13929
  "users.getUsers": function(w, v) {
13904
13930
  w.uint(227648840);
13905
13931
  w.vector(w.object, h(v, "id"));
@@ -16259,6 +16285,11 @@ var m = {
16259
16285
  w.int(h(v, "minId"));
16260
16286
  w.long(h(v, "hash"));
16261
16287
  },
16288
+ "messages.getRichMessage": function(w, v) {
16289
+ w.uint(1343580623);
16290
+ w.object(h(v, "peer"));
16291
+ w.int(h(v, "id"));
16292
+ },
16262
16293
  "updates.getState": function(w) {
16263
16294
  w.uint(3990128682);
16264
16295
  },
@@ -17089,6 +17120,11 @@ var m = {
17089
17120
  w.object(h(v, "bot"));
17090
17121
  if (_addUsers) w.vector(w.object, v.addUsers);
17091
17122
  },
17123
+ "bots.setJoinChatResults": function(w, v) {
17124
+ w.uint(3877259280);
17125
+ w.long(h(v, "queryId"));
17126
+ w.object(h(v, "result"));
17127
+ },
17092
17128
  "payments.getPaymentForm": function(w, v) {
17093
17129
  w.uint(924093883);
17094
17130
  var flags = 0;
@@ -18494,44 +18530,6 @@ var m = {
18494
18530
  w.object(h(v, "tone"));
18495
18531
  w.int(h(v, "num"));
18496
18532
  },
18497
- "account.confirmBotConnection": function(w, v) {
18498
- w.uint(1743593320);
18499
- w.object(h(v, "botId"));
18500
- },
18501
- "account.getWebBrowserSettings": function(w, v) {
18502
- w.uint(1449482088);
18503
- w.long(h(v, "hash"));
18504
- },
18505
- "account.updateWebBrowserSettings": function(w, v) {
18506
- w.uint(2598339326);
18507
- var flags = 0;
18508
- if (v.openExternalBrowser === true) flags |= 1;
18509
- if (v.displayCloseButton === true) flags |= 2;
18510
- w.uint(flags);
18511
- },
18512
- "account.toggleWebBrowserSettingsException": function(w, v) {
18513
- w.uint(1626161705);
18514
- var flags = 0;
18515
- var _openExternalBrowser = v.openExternalBrowser !== void 0;
18516
- if (_openExternalBrowser) flags |= 1;
18517
- if (v.delete === true) flags |= 2;
18518
- w.uint(flags);
18519
- if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
18520
- w.string(h(v, "url"));
18521
- },
18522
- "account.deleteWebBrowserSettingsExceptions": function(w) {
18523
- w.uint(2258663005);
18524
- },
18525
- "messages.getRichMessage": function(w, v) {
18526
- w.uint(1343580623);
18527
- w.object(h(v, "peer"));
18528
- w.int(h(v, "id"));
18529
- },
18530
- "bots.setJoinChatResults": function(w, v) {
18531
- w.uint(3877259280);
18532
- w.long(h(v, "queryId"));
18533
- w.object(h(v, "result"));
18534
- },
18535
18533
  "channels.editCreator": function(w, v) {
18536
18534
  w.uint(2402864415);
18537
18535
  w.object(h(v, "channel"));
@@ -19001,6 +18999,7 @@ var m = {
19001
18999
  "updateStarGiftCraftFail": 4,
19002
19000
  "updateManagedBot": 24,
19003
19001
  "updateAiComposeTones": 4,
19002
+ "updateWebBrowserSettings": 8,
19004
19003
  "updates.state": 24,
19005
19004
  "updates.differenceEmpty": 12,
19006
19005
  "updates.differenceTooLong": 8,
@@ -19405,7 +19404,6 @@ var m = {
19405
19404
  "inputMessageReadMetric": 32,
19406
19405
  "inputAiComposeToneID": 20,
19407
19406
  "aicompose.tonesNotModified": 4,
19408
- "updateWebBrowserSettings": 8,
19409
19407
  "joinChatBotResultApproved": 4,
19410
19408
  "joinChatBotResultDeclined": 4,
19411
19409
  "joinChatBotResultQueued": 4,
@@ -19464,6 +19462,9 @@ var m = {
19464
19462
  "account.getSavedMusicIds": 12,
19465
19463
  "account.initPasskeyRegistration": 4,
19466
19464
  "account.getPasskeys": 4,
19465
+ "account.getWebBrowserSettings": 12,
19466
+ "account.updateWebBrowserSettings": 8,
19467
+ "account.deleteWebBrowserSettingsExceptions": 4,
19467
19468
  "contacts.getContactIDs": 12,
19468
19469
  "contacts.getStatuses": 4,
19469
19470
  "contacts.getContacts": 12,
@@ -19574,9 +19575,6 @@ var m = {
19574
19575
  "smsjobs.updateSettings": 8,
19575
19576
  "smsjobs.getStatus": 4,
19576
19577
  "aicompose.getTones": 12,
19577
- "account.getWebBrowserSettings": 12,
19578
- "account.updateWebBrowserSettings": 8,
19579
- "account.deleteWebBrowserSettingsExceptions": 4,
19580
19578
  "mt_dh_gen_ok": 52,
19581
19579
  "mt_dh_gen_retry": 52,
19582
19580
  "mt_dh_gen_fail": 52,