@mtcute/core 0.29.7 → 0.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/client.cjs +8 -0
  2. package/client.js +8 -0
  3. package/highlevel/client.d.cts +67 -7
  4. package/highlevel/client.d.ts +67 -7
  5. package/highlevel/methods/chats/join-chat.cjs +38 -16
  6. package/highlevel/methods/chats/join-chat.d.cts +20 -6
  7. package/highlevel/methods/chats/join-chat.d.ts +20 -6
  8. package/highlevel/methods/chats/join-chat.js +38 -16
  9. package/highlevel/methods/chats/save-draft.d.cts +4 -1
  10. package/highlevel/methods/chats/save-draft.d.ts +4 -1
  11. package/highlevel/methods/files/normalize-input-media.cjs +8 -0
  12. package/highlevel/methods/files/normalize-input-media.js +9 -1
  13. package/highlevel/methods/messages/create-rich-streaming-draft.cjs +39 -0
  14. package/highlevel/methods/messages/create-rich-streaming-draft.d.cts +42 -0
  15. package/highlevel/methods/messages/create-rich-streaming-draft.d.ts +42 -0
  16. package/highlevel/methods/messages/create-rich-streaming-draft.js +34 -0
  17. package/highlevel/methods/messages/normalize-rich-message.cjs +157 -0
  18. package/highlevel/methods/messages/normalize-rich-message.d.cts +10 -0
  19. package/highlevel/methods/messages/normalize-rich-message.d.ts +10 -0
  20. package/highlevel/methods/messages/normalize-rich-message.js +152 -0
  21. package/highlevel/methods/messages/send-rich-message.cjs +49 -0
  22. package/highlevel/methods/messages/send-rich-message.d.cts +38 -0
  23. package/highlevel/methods/messages/send-rich-message.d.ts +38 -0
  24. package/highlevel/methods/messages/send-rich-message.js +44 -0
  25. package/highlevel/methods.d.cts +5 -0
  26. package/highlevel/methods.d.ts +5 -0
  27. package/highlevel/storage/service/peers.cjs +1 -0
  28. package/highlevel/storage/service/peers.js +1 -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 +1 -1
  36. package/highlevel/types/files/utils.d.ts +1 -1
  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 -0
  40. package/highlevel/types/messages/index.d.ts +1 -0
  41. package/highlevel/types/messages/message.cjs +5 -0
  42. package/highlevel/types/messages/message.d.cts +3 -0
  43. package/highlevel/types/messages/message.d.ts +3 -0
  44. package/highlevel/types/messages/message.js +5 -0
  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/rich-message.cjs +50 -0
  52. package/highlevel/types/messages/rich/rich-message.d.cts +18 -0
  53. package/highlevel/types/messages/rich/rich-message.d.ts +18 -0
  54. package/highlevel/types/messages/rich/rich-message.js +45 -0
  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/types/peers/full-chat.cjs +6 -0
  58. package/highlevel/types/peers/full-chat.d.cts +2 -0
  59. package/highlevel/types/peers/full-chat.d.ts +2 -0
  60. package/highlevel/types/peers/full-chat.js +6 -0
  61. package/highlevel/types/peers/user.cjs +4 -0
  62. package/highlevel/types/peers/user.d.cts +2 -0
  63. package/highlevel/types/peers/user.d.ts +2 -0
  64. package/highlevel/types/peers/user.js +4 -0
  65. package/highlevel/types/updates/user-typing-update.cjs +2 -0
  66. package/highlevel/types/updates/user-typing-update.js +2 -0
  67. package/highlevel/updates/manager.cjs +195 -0
  68. package/highlevel/updates/manager.js +195 -0
  69. package/highlevel/utils/entities.cjs +176 -0
  70. package/highlevel/utils/entities.d.cts +18 -0
  71. package/highlevel/utils/entities.d.ts +18 -0
  72. package/highlevel/utils/entities.js +177 -1
  73. package/highlevel/utils/inspectable.cjs +1 -0
  74. package/highlevel/utils/inspectable.d.cts +1 -0
  75. package/highlevel/utils/inspectable.d.ts +1 -0
  76. package/highlevel/utils/inspectable.js +1 -0
  77. package/index.cjs +4 -0
  78. package/index.js +4 -0
  79. package/methods.cjs +4 -0
  80. package/methods.js +4 -0
  81. package/network/flood-control.cjs +149 -0
  82. package/network/flood-control.d.cts +79 -0
  83. package/network/flood-control.d.ts +79 -0
  84. package/network/flood-control.js +144 -0
  85. package/network/flood-control.test.d.cts +1 -0
  86. package/network/flood-control.test.d.ts +1 -0
  87. package/network/mtproto-session.cjs +1 -21
  88. package/network/mtproto-session.d.cts +1 -5
  89. package/network/mtproto-session.d.ts +1 -5
  90. package/network/mtproto-session.js +2 -22
  91. package/network/mtproxy/_fake-tls.cjs +169 -107
  92. package/network/mtproxy/_fake-tls.js +169 -107
  93. package/network/mtproxy/_fake-tls.test.d.cts +1 -0
  94. package/network/mtproxy/_fake-tls.test.d.ts +1 -0
  95. package/network/multi-session-connection.cjs +26 -16
  96. package/network/multi-session-connection.d.cts +1 -1
  97. package/network/multi-session-connection.d.ts +1 -1
  98. package/network/multi-session-connection.js +26 -16
  99. package/network/multi-session-connection.test.d.cts +1 -0
  100. package/network/multi-session-connection.test.d.ts +1 -0
  101. package/network/network-manager.cjs +3 -2
  102. package/network/network-manager.d.cts +12 -0
  103. package/network/network-manager.d.ts +12 -0
  104. package/network/network-manager.js +3 -2
  105. package/network/persistent-connection.cjs +25 -1
  106. package/network/persistent-connection.d.cts +5 -0
  107. package/network/persistent-connection.d.ts +5 -0
  108. package/network/persistent-connection.js +25 -1
  109. package/network/session-connection.cjs +5 -10
  110. package/network/session-connection.d.cts +0 -2
  111. package/network/session-connection.d.ts +0 -2
  112. package/network/session-connection.js +5 -10
  113. package/package.json +1 -1
  114. package/tl/api-schema.json +1 -1
  115. package/tl/binary/reader.cjs +182 -26
  116. package/tl/binary/reader.js +182 -26
  117. package/tl/binary/writer.cjs +437 -20
  118. package/tl/binary/writer.js +437 -20
  119. package/tl/compat/reader.cjs +23 -0
  120. package/tl/compat/reader.js +23 -0
  121. package/tl/index.d.cts +425 -14
  122. package/tl/index.d.ts +425 -14
  123. package/tl/inner-tl.cjs +22 -8
  124. package/tl/inner-tl.js +22 -8
  125. package/types/utils.d.cts +4 -0
  126. package/types/utils.d.ts +4 -0
  127. package/utils/binary/compat.cjs +79 -0
  128. package/utils/binary/compat.js +79 -0
  129. package/utils/index.d.cts +1 -0
  130. package/utils/index.d.ts +1 -0
  131. package/utils/long-utils.cjs +10 -0
  132. package/utils/long-utils.js +10 -0
  133. package/utils.cjs +9 -0
  134. package/utils.js +11 -2
@@ -562,6 +562,7 @@ var m = {
562
562
  if (v.botForumCanManageTopics === true) flags2 |= 131072;
563
563
  if (v.botCanManageBots === true) flags2 |= 262144;
564
564
  if (v.botGuestchat === true) flags2 |= 524288;
565
+ if (v.botGuard === true) flags2 |= 1048576;
565
566
  w.uint(flags2);
566
567
  w.int53(h(v, "id"));
567
568
  if (_accessHash) w.long(v.accessHash);
@@ -819,7 +820,7 @@ var m = {
819
820
  if (_reactionsLimit) w.int(v.reactionsLimit);
820
821
  },
821
822
  "channelFull": function(w, v) {
822
- w.uint(3839931037);
823
+ w.uint(2689502522);
823
824
  var flags = 0;
824
825
  var _participantsCount = v.participantsCount !== void 0;
825
826
  if (_participantsCount) flags |= 1;
@@ -916,6 +917,8 @@ var m = {
916
917
  if (_sendPaidMessagesStars) flags2 |= 2097152;
917
918
  var _mainTab = v.mainTab !== void 0;
918
919
  if (_mainTab) flags2 |= 4194304;
920
+ var _guardBotId = v.guardBotId !== void 0;
921
+ if (_guardBotId) flags2 |= 8388608;
919
922
  w.uint(flags2);
920
923
  w.int53(h(v, "id"));
921
924
  w.string(h(v, "about"));
@@ -962,6 +965,7 @@ var m = {
962
965
  if (_stargiftsCount) w.int(v.stargiftsCount);
963
966
  if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
964
967
  if (_mainTab) w.object(v.mainTab);
968
+ if (_guardBotId) w.int53(v.guardBotId);
965
969
  },
966
970
  "chatParticipant": function(w, v) {
967
971
  w.uint(954703838);
@@ -1033,7 +1037,7 @@ var m = {
1033
1037
  if (_peerId) w.object(v.peerId);
1034
1038
  },
1035
1039
  "message": function(w, v) {
1036
- w.uint(2515496747);
1040
+ w.uint(1979759059);
1037
1041
  var flags = 0;
1038
1042
  if (v.out === true) flags |= 2;
1039
1043
  var _fwdFrom = v.fwdFrom !== void 0;
@@ -1108,6 +1112,8 @@ var m = {
1108
1112
  if (_summaryFromLanguage) flags2 |= 2048;
1109
1113
  var _fromRank = v.fromRank !== void 0;
1110
1114
  if (_fromRank) flags2 |= 4096;
1115
+ var _richMessage = v.richMessage !== void 0;
1116
+ if (_richMessage) flags2 |= 8192;
1111
1117
  var _guestchatViaFrom = v.guestchatViaFrom !== void 0;
1112
1118
  if (_guestchatViaFrom) flags2 |= 524288;
1113
1119
  w.uint(flags2);
@@ -1144,6 +1150,7 @@ var m = {
1144
1150
  if (_suggestedPost) w.object(v.suggestedPost);
1145
1151
  if (_scheduleRepeatPeriod) w.int(v.scheduleRepeatPeriod);
1146
1152
  if (_summaryFromLanguage) w.string(v.summaryFromLanguage);
1153
+ if (_richMessage) w.object(v.richMessage);
1147
1154
  },
1148
1155
  "messageService": function(w, v) {
1149
1156
  w.uint(2055212554);
@@ -3328,13 +3335,18 @@ var m = {
3328
3335
  w.vector(w.int53, h(v, "recentRequesters"));
3329
3336
  },
3330
3337
  "updateBotChatInviteRequester": function(w, v) {
3331
- w.uint(299870598);
3338
+ w.uint(2092125561);
3339
+ var flags = 0;
3340
+ var _queryId = v.queryId !== void 0;
3341
+ if (_queryId) flags |= 1;
3342
+ w.uint(flags);
3332
3343
  w.object(h(v, "peer"));
3333
3344
  w.int(h(v, "date"));
3334
3345
  w.int53(h(v, "userId"));
3335
3346
  w.string(h(v, "about"));
3336
3347
  w.object(h(v, "invite"));
3337
3348
  w.int(h(v, "qts"));
3349
+ if (_queryId) w.long(v.queryId);
3338
3350
  },
3339
3351
  "updateMessageReactions": function(w, v) {
3340
3352
  w.uint(506035194);
@@ -3700,6 +3712,44 @@ var m = {
3700
3712
  "updateAiComposeTones": function(w) {
3701
3713
  w.uint(2349830651);
3702
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
+ },
3703
3753
  "updates.state": function(w, v) {
3704
3754
  w.uint(2775329342);
3705
3755
  w.int(h(v, "pts"));
@@ -4231,6 +4281,16 @@ var m = {
4231
4281
  w.long(h(v, "randomId"));
4232
4282
  w.object(h(v, "text"));
4233
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
+ },
4234
4294
  "contacts.found": function(w, v) {
4235
4295
  w.uint(3004386717);
4236
4296
  w.vector(w.object, h(v, "myResults"));
@@ -5593,6 +5653,15 @@ var m = {
5593
5653
  w.string(h(v, "url"));
5594
5654
  if (_replyMarkup) w.object(v.replyMarkup);
5595
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
+ },
5596
5665
  "inputBotInlineResult": function(w, v) {
5597
5666
  w.uint(2294256409);
5598
5667
  var flags = 0;
@@ -5750,6 +5819,15 @@ var m = {
5750
5819
  w.string(h(v, "url"));
5751
5820
  if (_replyMarkup) w.object(v.replyMarkup);
5752
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
+ },
5753
5831
  "botInlineResult": function(w, v) {
5754
5832
  w.uint(295067450);
5755
5833
  var flags = 0;
@@ -6064,7 +6142,7 @@ var m = {
6064
6142
  if (_date) w.int(v.date);
6065
6143
  },
6066
6144
  "draftMessage": function(w, v) {
6067
- w.uint(2531960299);
6145
+ w.uint(1627271828);
6068
6146
  var flags = 0;
6069
6147
  if (v.noWebpage === true) flags |= 2;
6070
6148
  var _entities = v.entities && v.entities.length;
@@ -6078,6 +6156,8 @@ var m = {
6078
6156
  if (_effect) flags |= 128;
6079
6157
  var _suggestedPost = v.suggestedPost !== void 0;
6080
6158
  if (_suggestedPost) flags |= 256;
6159
+ var _richMessage = v.richMessage !== void 0;
6160
+ if (_richMessage) flags |= 512;
6081
6161
  w.uint(flags);
6082
6162
  if (_replyTo) w.object(v.replyTo);
6083
6163
  w.string(h(v, "message"));
@@ -6086,6 +6166,7 @@ var m = {
6086
6166
  w.int(h(v, "date"));
6087
6167
  if (_effect) w.long(v.effect);
6088
6168
  if (_suggestedPost) w.object(v.suggestedPost);
6169
+ if (_richMessage) w.object(v.richMessage);
6089
6170
  },
6090
6171
  "messages.featuredStickersNotModified": function(w, v) {
6091
6172
  w.uint(3336309862);
@@ -6264,6 +6345,69 @@ var m = {
6264
6345
  w.object(h(v, "text"));
6265
6346
  w.string(h(v, "name"));
6266
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
+ },
6267
6411
  "pageBlockUnsupported": function(w) {
6268
6412
  w.uint(324435594);
6269
6413
  },
@@ -6329,6 +6473,7 @@ var m = {
6329
6473
  var _webpageId = v.webpageId !== void 0;
6330
6474
  var _flags_0 = _url || _webpageId;
6331
6475
  if (_flags_0) flags |= 1;
6476
+ if (v.spoiler === true) flags |= 2;
6332
6477
  w.uint(flags);
6333
6478
  w.long(h(v, "photoId"));
6334
6479
  w.object(h(v, "caption"));
@@ -6340,6 +6485,7 @@ var m = {
6340
6485
  var flags = 0;
6341
6486
  if (v.autoplay === true) flags |= 1;
6342
6487
  if (v.loop === true) flags |= 2;
6488
+ if (v.spoiler === true) flags |= 4;
6343
6489
  w.uint(flags);
6344
6490
  w.long(h(v, "videoId"));
6345
6491
  w.object(h(v, "caption"));
@@ -6414,8 +6560,17 @@ var m = {
6414
6560
  w.vector(w.object, h(v, "rows"));
6415
6561
  },
6416
6562
  "pageBlockOrderedList": function(w, v) {
6417
- w.uint(2592793057);
6563
+ w.uint(534181569);
6564
+ var flags = 0;
6565
+ var _start = v.start !== void 0;
6566
+ if (_start) flags |= 1;
6567
+ var _type = v.type !== void 0;
6568
+ if (_type) flags |= 2;
6569
+ if (v.reversed === true) flags |= 4;
6570
+ w.uint(flags);
6418
6571
  w.vector(w.object, h(v, "items"));
6572
+ if (_start) w.int(v.start);
6573
+ if (_type) w.string(v.type);
6419
6574
  },
6420
6575
  "pageBlockDetails": function(w, v) {
6421
6576
  w.uint(1987480557);
@@ -6438,6 +6593,51 @@ var m = {
6438
6593
  w.int(h(v, "h"));
6439
6594
  w.object(h(v, "caption"));
6440
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
+ },
6441
6641
  "phoneCallDiscardReasonMissed": function(w) {
6442
6642
  w.uint(2246320897);
6443
6643
  },
@@ -7726,22 +7926,54 @@ var m = {
7726
7926
  w.object(h(v, "credit"));
7727
7927
  },
7728
7928
  "pageListItemText": function(w, v) {
7729
- w.uint(3106911949);
7929
+ w.uint(794323004);
7930
+ var flags = 0;
7931
+ if (v.checkbox === true) flags |= 1;
7932
+ if (v.checked === true) flags |= 2;
7933
+ w.uint(flags);
7730
7934
  w.object(h(v, "text"));
7731
7935
  },
7732
7936
  "pageListItemBlocks": function(w, v) {
7733
- w.uint(635466748);
7937
+ w.uint(1674209194);
7938
+ var flags = 0;
7939
+ if (v.checkbox === true) flags |= 1;
7940
+ if (v.checked === true) flags |= 2;
7941
+ w.uint(flags);
7734
7942
  w.vector(w.object, h(v, "blocks"));
7735
7943
  },
7736
7944
  "pageListOrderedItemText": function(w, v) {
7737
- w.uint(1577484359);
7738
- w.string(h(v, "num"));
7945
+ w.uint(352522633);
7946
+ var flags = 0;
7947
+ if (v.checkbox === true) flags |= 1;
7948
+ if (v.checked === true) flags |= 2;
7949
+ var _num = v.num !== void 0;
7950
+ if (_num) flags |= 4;
7951
+ var _value = v.value !== void 0;
7952
+ if (_value) flags |= 8;
7953
+ var _type = v.type !== void 0;
7954
+ if (_type) flags |= 16;
7955
+ w.uint(flags);
7956
+ if (_num) w.string(v.num);
7739
7957
  w.object(h(v, "text"));
7958
+ if (_value) w.int(v.value);
7959
+ if (_type) w.string(v.type);
7740
7960
  },
7741
7961
  "pageListOrderedItemBlocks": function(w, v) {
7742
- w.uint(2564655414);
7743
- w.string(h(v, "num"));
7962
+ w.uint(2415056368);
7963
+ var flags = 0;
7964
+ if (v.checkbox === true) flags |= 1;
7965
+ if (v.checked === true) flags |= 2;
7966
+ var _num = v.num !== void 0;
7967
+ if (_num) flags |= 4;
7968
+ var _value = v.value !== void 0;
7969
+ if (_value) flags |= 8;
7970
+ var _type = v.type !== void 0;
7971
+ if (_type) flags |= 16;
7972
+ w.uint(flags);
7973
+ if (_num) w.string(v.num);
7744
7974
  w.vector(w.object, h(v, "blocks"));
7975
+ if (_value) w.int(v.value);
7976
+ if (_type) w.string(v.type);
7745
7977
  },
7746
7978
  "pageRelatedArticle": function(w, v) {
7747
7979
  w.uint(3012615176);
@@ -8653,6 +8885,7 @@ var m = {
8653
8885
  if (_todoItemId) flags |= 2048;
8654
8886
  var _pollOption = v.pollOption !== void 0;
8655
8887
  if (_pollOption) flags |= 4096;
8888
+ if (v.replyToEphemeral === true) flags |= 8192;
8656
8889
  w.uint(flags);
8657
8890
  if (_replyToMsgId) w.int(v.replyToMsgId);
8658
8891
  if (_replyToPeerId) w.object(v.replyToPeerId);
@@ -9264,6 +9497,7 @@ var m = {
9264
9497
  if (_queryId) flags |= 1;
9265
9498
  if (v.fullsize === true) flags |= 2;
9266
9499
  if (v.fullscreen === true) flags |= 4;
9500
+ if (v.sameOrigin === true) flags |= 8;
9267
9501
  w.uint(flags);
9268
9502
  if (_queryId) w.long(v.queryId);
9269
9503
  w.string(h(v, "url"));
@@ -10893,12 +11127,21 @@ var m = {
10893
11127
  w.uint(1603398491);
10894
11128
  },
10895
11129
  "connectedBot": function(w, v) {
10896
- w.uint(3445908332);
11130
+ w.uint(54448129);
10897
11131
  var flags = 0;
11132
+ var _device = v.device !== void 0;
11133
+ if (_device) flags |= 1;
11134
+ var _date = v.date !== void 0;
11135
+ if (_date) flags |= 2;
11136
+ var _location = v.location !== void 0;
11137
+ if (_location) flags |= 4;
10898
11138
  w.uint(flags);
10899
11139
  w.int53(h(v, "botId"));
10900
11140
  w.object(h(v, "recipients"));
10901
11141
  w.object(h(v, "rights"));
11142
+ if (_device) w.string(v.device);
11143
+ if (_date) w.int(v.date);
11144
+ if (_location) w.string(v.location);
10902
11145
  },
10903
11146
  "account.connectedBots": function(w, v) {
10904
11147
  w.uint(400029819);
@@ -12617,6 +12860,112 @@ var m = {
12617
12860
  w.uint(flags);
12618
12861
  if (_addUsers) w.vector(w.object, v.addUsers);
12619
12862
  },
12863
+ "messages.chatInviteJoinResultOk": function(w, v) {
12864
+ w.uint(1146512295);
12865
+ w.object(h(v, "updates"));
12866
+ },
12867
+ "messages.chatInviteJoinResultWebView": function(w, v) {
12868
+ w.uint(793887543);
12869
+ w.int53(h(v, "botId"));
12870
+ w.object(h(v, "webview"));
12871
+ w.vector(w.object, h(v, "users"));
12872
+ },
12873
+ "joinChatBotResultApproved": function(w) {
12874
+ w.uint(2920622697);
12875
+ },
12876
+ "joinChatBotResultDeclined": function(w) {
12877
+ w.uint(251265428);
12878
+ },
12879
+ "joinChatBotResultQueued": function(w) {
12880
+ w.uint(2560862272);
12881
+ },
12882
+ "joinChatBotResultWebView": function(w, v) {
12883
+ w.uint(3605248019);
12884
+ w.string(h(v, "url"));
12885
+ },
12886
+ "webDomainException": function(w, v) {
12887
+ w.uint(2470225303);
12888
+ var flags = 0;
12889
+ var _favicon = v.favicon !== void 0;
12890
+ if (_favicon) flags |= 1;
12891
+ w.uint(flags);
12892
+ w.string(h(v, "domain"));
12893
+ w.string(h(v, "url"));
12894
+ w.string(h(v, "title"));
12895
+ if (_favicon) w.long(v.favicon);
12896
+ },
12897
+ "account.webBrowserSettingsNotModified": function(w) {
12898
+ w.uint(3273428814);
12899
+ },
12900
+ "account.webBrowserSettings": function(w, v) {
12901
+ w.uint(2045480115);
12902
+ var flags = 0;
12903
+ if (v.openExternalBrowser === true) flags |= 1;
12904
+ if (v.displayCloseButton === true) flags |= 2;
12905
+ w.uint(flags);
12906
+ w.vector(w.object, h(v, "externalExceptions"));
12907
+ w.vector(w.object, h(v, "inappExceptions"));
12908
+ w.long(h(v, "hash"));
12909
+ },
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
+ },
12920
+ "inputRichMessage": function(w, v) {
12921
+ w.uint(3838069244);
12922
+ var flags = 0;
12923
+ if (v.rtl === true) flags |= 1;
12924
+ if (v.noautolink === true) flags |= 2;
12925
+ var _photos = v.photos && v.photos.length;
12926
+ if (_photos) flags |= 4;
12927
+ var _documents = v.documents && v.documents.length;
12928
+ if (_documents) flags |= 8;
12929
+ var _users = v.users && v.users.length;
12930
+ if (_users) flags |= 16;
12931
+ w.uint(flags);
12932
+ w.vector(w.object, h(v, "blocks"));
12933
+ if (_photos) w.vector(w.object, v.photos);
12934
+ if (_documents) w.vector(w.object, v.documents);
12935
+ if (_users) w.vector(w.object, v.users);
12936
+ },
12937
+ "inputRichMessageHTML": function(w, v) {
12938
+ w.uint(3670770538);
12939
+ var flags = 0;
12940
+ if (v.rtl === true) flags |= 1;
12941
+ if (v.noautolink === true) flags |= 2;
12942
+ var _files = v.files && v.files.length;
12943
+ if (_files) flags |= 4;
12944
+ w.uint(flags);
12945
+ w.string(h(v, "html"));
12946
+ if (_files) w.vector(w.object, v.files);
12947
+ },
12948
+ "inputRichMessageMarkdown": function(w, v) {
12949
+ w.uint(4937516);
12950
+ var flags = 0;
12951
+ if (v.rtl === true) flags |= 1;
12952
+ if (v.noautolink === true) flags |= 2;
12953
+ var _files = v.files && v.files.length;
12954
+ if (_files) flags |= 4;
12955
+ w.uint(flags);
12956
+ w.string(h(v, "markdown"));
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"));
12968
+ },
12620
12969
  "updateChannelPinnedTopic": function(w, v) {
12621
12970
  w.uint(422509539);
12622
12971
  var flags = 0;
@@ -13549,6 +13898,34 @@ var m = {
13549
13898
  w.uint(4122302015);
13550
13899
  w.string(h(v, "id"));
13551
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
+ },
13552
13929
  "users.getUsers": function(w, v) {
13553
13930
  w.uint(227648840);
13554
13931
  w.vector(w.object, h(v, "id"));
@@ -13629,7 +14006,11 @@ var m = {
13629
14006
  w.int(h(v, "limit"));
13630
14007
  },
13631
14008
  "contacts.search": function(w, v) {
13632
- w.uint(301470424);
14009
+ w.uint(99978511);
14010
+ var flags = 0;
14011
+ if (v.broadcasts === true) flags |= 1;
14012
+ if (v.bots === true) flags |= 2;
14013
+ w.uint(flags);
13633
14014
  w.string(h(v, "q"));
13634
14015
  w.int(h(v, "limit"));
13635
14016
  },
@@ -13845,7 +14226,7 @@ var m = {
13845
14226
  w.object(h(v, "action"));
13846
14227
  },
13847
14228
  "messages.sendMessage": function(w, v) {
13848
- w.uint(1415369050);
14229
+ w.uint(4277440354);
13849
14230
  var flags = 0;
13850
14231
  var _replyTo = v.replyTo !== void 0;
13851
14232
  if (_replyTo) flags |= 1;
@@ -13873,6 +14254,8 @@ var m = {
13873
14254
  if (_allowPaidStars) flags |= 2097152;
13874
14255
  var _suggestedPost = v.suggestedPost !== void 0;
13875
14256
  if (_suggestedPost) flags |= 4194304;
14257
+ var _richMessage = v.richMessage !== void 0;
14258
+ if (_richMessage) flags |= 8388608;
13876
14259
  var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
13877
14260
  if (_scheduleRepeatPeriod) flags |= 16777216;
13878
14261
  w.uint(flags);
@@ -13889,6 +14272,7 @@ var m = {
13889
14272
  if (_effect) w.long(v.effect);
13890
14273
  if (_allowPaidStars) w.long(v.allowPaidStars);
13891
14274
  if (_suggestedPost) w.object(v.suggestedPost);
14275
+ if (_richMessage) w.object(v.richMessage);
13892
14276
  },
13893
14277
  "messages.sendMedia": function(w, v) {
13894
14278
  w.uint(53536639);
@@ -14153,7 +14537,7 @@ var m = {
14153
14537
  w.string(h(v, "hash"));
14154
14538
  },
14155
14539
  "messages.importChatInvite": function(w, v) {
14156
- w.uint(1817183516);
14540
+ w.uint(3734061934);
14157
14541
  w.string(h(v, "hash"));
14158
14542
  },
14159
14543
  "messages.getStickerSet": function(w, v) {
@@ -14300,7 +14684,7 @@ var m = {
14300
14684
  w.int(h(v, "id"));
14301
14685
  },
14302
14686
  "messages.editMessage": function(w, v) {
14303
- w.uint(1374175969);
14687
+ w.uint(2970019436);
14304
14688
  var flags = 0;
14305
14689
  if (v.noWebpage === true) flags |= 2;
14306
14690
  var _replyMarkup = v.replyMarkup !== void 0;
@@ -14318,6 +14702,8 @@ var m = {
14318
14702
  if (_quickReplyShortcutId) flags |= 131072;
14319
14703
  var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
14320
14704
  if (_scheduleRepeatPeriod) flags |= 262144;
14705
+ var _richMessage = v.richMessage !== void 0;
14706
+ if (_richMessage) flags |= 8388608;
14321
14707
  w.uint(flags);
14322
14708
  w.object(h(v, "peer"));
14323
14709
  w.int(h(v, "id"));
@@ -14328,9 +14714,10 @@ var m = {
14328
14714
  if (_scheduleDate) w.int(v.scheduleDate);
14329
14715
  if (_scheduleRepeatPeriod) w.int(v.scheduleRepeatPeriod);
14330
14716
  if (_quickReplyShortcutId) w.int(v.quickReplyShortcutId);
14717
+ if (_richMessage) w.object(v.richMessage);
14331
14718
  },
14332
14719
  "messages.editInlineBotMessage": function(w, v) {
14333
- w.uint(2203418042);
14720
+ w.uint(2753805137);
14334
14721
  var flags = 0;
14335
14722
  if (v.noWebpage === true) flags |= 2;
14336
14723
  var _replyMarkup = v.replyMarkup !== void 0;
@@ -14342,12 +14729,15 @@ var m = {
14342
14729
  var _media = v.media !== void 0;
14343
14730
  if (_media) flags |= 16384;
14344
14731
  if (v.invertMedia === true) flags |= 65536;
14732
+ var _richMessage = v.richMessage !== void 0;
14733
+ if (_richMessage) flags |= 8388608;
14345
14734
  w.uint(flags);
14346
14735
  w.object(h(v, "id"));
14347
14736
  if (_message) w.string(v.message);
14348
14737
  if (_media) w.object(v.media);
14349
14738
  if (_replyMarkup) w.object(v.replyMarkup);
14350
14739
  if (_entities) w.vector(w.object, v.entities);
14740
+ if (_richMessage) w.object(v.richMessage);
14351
14741
  },
14352
14742
  "messages.getBotCallbackAnswer": function(w, v) {
14353
14743
  w.uint(2470627847);
@@ -14382,7 +14772,7 @@ var m = {
14382
14772
  w.vector(w.object, h(v, "peers"));
14383
14773
  },
14384
14774
  "messages.saveDraft": function(w, v) {
14385
- w.uint(1420701838);
14775
+ w.uint(2903482716);
14386
14776
  var flags = 0;
14387
14777
  if (v.noWebpage === true) flags |= 2;
14388
14778
  var _entities = v.entities && v.entities.length;
@@ -14396,6 +14786,8 @@ var m = {
14396
14786
  if (_effect) flags |= 128;
14397
14787
  var _suggestedPost = v.suggestedPost !== void 0;
14398
14788
  if (_suggestedPost) flags |= 256;
14789
+ var _richMessage = v.richMessage !== void 0;
14790
+ if (_richMessage) flags |= 512;
14399
14791
  w.uint(flags);
14400
14792
  if (_replyTo) w.object(v.replyTo);
14401
14793
  w.object(h(v, "peer"));
@@ -14404,6 +14796,7 @@ var m = {
14404
14796
  if (_media) w.object(v.media);
14405
14797
  if (_effect) w.long(v.effect);
14406
14798
  if (_suggestedPost) w.object(v.suggestedPost);
14799
+ if (_richMessage) w.object(v.richMessage);
14407
14800
  },
14408
14801
  "messages.getAllDrafts": function(w) {
14409
14802
  w.uint(1782549861);
@@ -15892,6 +16285,11 @@ var m = {
15892
16285
  w.int(h(v, "minId"));
15893
16286
  w.long(h(v, "hash"));
15894
16287
  },
16288
+ "messages.getRichMessage": function(w, v) {
16289
+ w.uint(1343580623);
16290
+ w.object(h(v, "peer"));
16291
+ w.int(h(v, "id"));
16292
+ },
15895
16293
  "updates.getState": function(w) {
15896
16294
  w.uint(3990128682);
15897
16295
  },
@@ -16224,7 +16622,7 @@ var m = {
16224
16622
  w.string(h(v, "username"));
16225
16623
  },
16226
16624
  "channels.joinChannel": function(w, v) {
16227
- w.uint(615851205);
16625
+ w.uint(2137660962);
16228
16626
  w.object(h(v, "channel"));
16229
16627
  },
16230
16628
  "channels.leaveChannel": function(w, v) {
@@ -16359,9 +16757,15 @@ var m = {
16359
16757
  w.boolean(h(v, "enabled"));
16360
16758
  },
16361
16759
  "channels.toggleJoinRequest": function(w, v) {
16362
- w.uint(1277789622);
16760
+ w.uint(248260120);
16761
+ var flags = 0;
16762
+ var _guardBot = v.guardBot !== void 0;
16763
+ if (_guardBot) flags |= 1;
16764
+ if (v.applyToInvites === true) flags |= 2;
16765
+ w.uint(flags);
16363
16766
  w.object(h(v, "channel"));
16364
16767
  w.boolean(h(v, "enabled"));
16768
+ if (_guardBot) w.object(v.guardBot);
16365
16769
  },
16366
16770
  "channels.reorderUsernames": function(w, v) {
16367
16771
  w.uint(3025988893);
@@ -16716,6 +17120,11 @@ var m = {
16716
17120
  w.object(h(v, "bot"));
16717
17121
  if (_addUsers) w.vector(w.object, v.addUsers);
16718
17122
  },
17123
+ "bots.setJoinChatResults": function(w, v) {
17124
+ w.uint(3877259280);
17125
+ w.long(h(v, "queryId"));
17126
+ w.object(h(v, "result"));
17127
+ },
16719
17128
  "payments.getPaymentForm": function(w, v) {
16720
17129
  w.uint(924093883);
16721
17130
  var flags = 0;
@@ -18590,6 +18999,7 @@ var m = {
18590
18999
  "updateStarGiftCraftFail": 4,
18591
19000
  "updateManagedBot": 24,
18592
19001
  "updateAiComposeTones": 4,
19002
+ "updateWebBrowserSettings": 8,
18593
19003
  "updates.state": 24,
18594
19004
  "updates.differenceEmpty": 12,
18595
19005
  "updates.differenceTooLong": 8,
@@ -18994,6 +19404,10 @@ var m = {
18994
19404
  "inputMessageReadMetric": 32,
18995
19405
  "inputAiComposeToneID": 20,
18996
19406
  "aicompose.tonesNotModified": 4,
19407
+ "joinChatBotResultApproved": 4,
19408
+ "joinChatBotResultDeclined": 4,
19409
+ "joinChatBotResultQueued": 4,
19410
+ "account.webBrowserSettingsNotModified": 4,
18997
19411
  "updateChannelPinnedTopic": 20,
18998
19412
  "auth.logOut": 4,
18999
19413
  "auth.resetAuthorizations": 4,
@@ -19048,6 +19462,9 @@ var m = {
19048
19462
  "account.getSavedMusicIds": 12,
19049
19463
  "account.initPasskeyRegistration": 4,
19050
19464
  "account.getPasskeys": 4,
19465
+ "account.getWebBrowserSettings": 12,
19466
+ "account.updateWebBrowserSettings": 8,
19467
+ "account.deleteWebBrowserSettingsExceptions": 4,
19051
19468
  "contacts.getContactIDs": 12,
19052
19469
  "contacts.getStatuses": 4,
19053
19470
  "contacts.getContacts": 12,