@mtcute/core 0.29.7 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/highlevel/client.d.cts +4 -6
  2. package/highlevel/client.d.ts +4 -6
  3. package/highlevel/methods/chats/join-chat.cjs +38 -16
  4. package/highlevel/methods/chats/join-chat.d.cts +20 -6
  5. package/highlevel/methods/chats/join-chat.d.ts +20 -6
  6. package/highlevel/methods/chats/join-chat.js +38 -16
  7. package/highlevel/methods/chats/save-draft.d.cts +4 -1
  8. package/highlevel/methods/chats/save-draft.d.ts +4 -1
  9. package/highlevel/methods.d.cts +2 -0
  10. package/highlevel/methods.d.ts +2 -0
  11. package/highlevel/storage/service/peers.cjs +1 -0
  12. package/highlevel/storage/service/peers.js +1 -0
  13. package/highlevel/types/files/utils.d.cts +1 -1
  14. package/highlevel/types/files/utils.d.ts +1 -1
  15. package/highlevel/types/messages/index.d.cts +1 -0
  16. package/highlevel/types/messages/index.d.ts +1 -0
  17. package/highlevel/types/messages/message.cjs +5 -0
  18. package/highlevel/types/messages/message.d.cts +3 -0
  19. package/highlevel/types/messages/message.d.ts +3 -0
  20. package/highlevel/types/messages/message.js +5 -0
  21. package/highlevel/types/messages/rich-message.cjs +50 -0
  22. package/highlevel/types/messages/rich-message.d.cts +18 -0
  23. package/highlevel/types/messages/rich-message.d.ts +18 -0
  24. package/highlevel/types/messages/rich-message.js +45 -0
  25. package/highlevel/types/peers/full-chat.cjs +6 -0
  26. package/highlevel/types/peers/full-chat.d.cts +2 -0
  27. package/highlevel/types/peers/full-chat.d.ts +2 -0
  28. package/highlevel/types/peers/full-chat.js +6 -0
  29. package/highlevel/types/peers/user.cjs +4 -0
  30. package/highlevel/types/peers/user.d.cts +2 -0
  31. package/highlevel/types/peers/user.d.ts +2 -0
  32. package/highlevel/types/peers/user.js +4 -0
  33. package/highlevel/types/updates/user-typing-update.cjs +2 -0
  34. package/highlevel/types/updates/user-typing-update.js +2 -0
  35. package/highlevel/updates/manager.cjs +191 -0
  36. package/highlevel/updates/manager.js +191 -0
  37. package/highlevel/utils/inspectable.cjs +1 -0
  38. package/highlevel/utils/inspectable.d.cts +1 -0
  39. package/highlevel/utils/inspectable.d.ts +1 -0
  40. package/highlevel/utils/inspectable.js +1 -0
  41. package/index.cjs +2 -0
  42. package/index.js +2 -0
  43. package/network/flood-control.cjs +149 -0
  44. package/network/flood-control.d.cts +79 -0
  45. package/network/flood-control.d.ts +79 -0
  46. package/network/flood-control.js +144 -0
  47. package/network/flood-control.test.d.cts +1 -0
  48. package/network/flood-control.test.d.ts +1 -0
  49. package/network/mtproto-session.cjs +1 -21
  50. package/network/mtproto-session.d.cts +1 -5
  51. package/network/mtproto-session.d.ts +1 -5
  52. package/network/mtproto-session.js +2 -22
  53. package/network/multi-session-connection.cjs +26 -16
  54. package/network/multi-session-connection.d.cts +1 -1
  55. package/network/multi-session-connection.d.ts +1 -1
  56. package/network/multi-session-connection.js +26 -16
  57. package/network/multi-session-connection.test.d.cts +1 -0
  58. package/network/multi-session-connection.test.d.ts +1 -0
  59. package/network/network-manager.cjs +3 -2
  60. package/network/network-manager.d.cts +12 -0
  61. package/network/network-manager.d.ts +12 -0
  62. package/network/network-manager.js +3 -2
  63. package/network/persistent-connection.cjs +25 -1
  64. package/network/persistent-connection.d.cts +5 -0
  65. package/network/persistent-connection.d.ts +5 -0
  66. package/network/persistent-connection.js +25 -1
  67. package/network/session-connection.cjs +5 -10
  68. package/network/session-connection.d.cts +0 -2
  69. package/network/session-connection.d.ts +0 -2
  70. package/network/session-connection.js +5 -10
  71. package/package.json +1 -1
  72. package/tl/api-schema.json +1 -1
  73. package/tl/binary/reader.cjs +176 -26
  74. package/tl/binary/reader.js +176 -26
  75. package/tl/binary/writer.cjs +439 -20
  76. package/tl/binary/writer.js +439 -20
  77. package/tl/compat/reader.cjs +23 -0
  78. package/tl/compat/reader.js +23 -0
  79. package/tl/index.d.cts +414 -14
  80. package/tl/index.d.ts +414 -14
  81. package/tl/inner-tl.cjs +20 -8
  82. package/tl/inner-tl.js +20 -8
  83. package/utils/binary/compat.cjs +79 -0
  84. package/utils/binary/compat.js +79 -0
  85. package/utils/index.d.cts +1 -0
  86. package/utils/index.d.ts +1 -0
  87. package/utils/long-utils.cjs +10 -0
  88. package/utils/long-utils.js +10 -0
  89. package/utils.cjs +7 -0
  90. package/utils.js +8 -1
@@ -569,6 +569,7 @@ var m = {
569
569
  if (v.botForumCanManageTopics === true) flags2 |= 131072;
570
570
  if (v.botCanManageBots === true) flags2 |= 262144;
571
571
  if (v.botGuestchat === true) flags2 |= 524288;
572
+ if (v.botGuard === true) flags2 |= 1048576;
572
573
  w.uint(flags2);
573
574
  w.int53(h(v, "id"));
574
575
  if (_accessHash) w.long(v.accessHash);
@@ -826,7 +827,7 @@ var m = {
826
827
  if (_reactionsLimit) w.int(v.reactionsLimit);
827
828
  },
828
829
  "channelFull": function(w, v) {
829
- w.uint(3839931037);
830
+ w.uint(2689502522);
830
831
  var flags = 0;
831
832
  var _participantsCount = v.participantsCount !== void 0;
832
833
  if (_participantsCount) flags |= 1;
@@ -923,6 +924,8 @@ var m = {
923
924
  if (_sendPaidMessagesStars) flags2 |= 2097152;
924
925
  var _mainTab = v.mainTab !== void 0;
925
926
  if (_mainTab) flags2 |= 4194304;
927
+ var _guardBotId = v.guardBotId !== void 0;
928
+ if (_guardBotId) flags2 |= 8388608;
926
929
  w.uint(flags2);
927
930
  w.int53(h(v, "id"));
928
931
  w.string(h(v, "about"));
@@ -969,6 +972,7 @@ var m = {
969
972
  if (_stargiftsCount) w.int(v.stargiftsCount);
970
973
  if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
971
974
  if (_mainTab) w.object(v.mainTab);
975
+ if (_guardBotId) w.int53(v.guardBotId);
972
976
  },
973
977
  "chatParticipant": function(w, v) {
974
978
  w.uint(954703838);
@@ -1040,7 +1044,7 @@ var m = {
1040
1044
  if (_peerId) w.object(v.peerId);
1041
1045
  },
1042
1046
  "message": function(w, v) {
1043
- w.uint(2515496747);
1047
+ w.uint(1979759059);
1044
1048
  var flags = 0;
1045
1049
  if (v.out === true) flags |= 2;
1046
1050
  var _fwdFrom = v.fwdFrom !== void 0;
@@ -1115,6 +1119,8 @@ var m = {
1115
1119
  if (_summaryFromLanguage) flags2 |= 2048;
1116
1120
  var _fromRank = v.fromRank !== void 0;
1117
1121
  if (_fromRank) flags2 |= 4096;
1122
+ var _richMessage = v.richMessage !== void 0;
1123
+ if (_richMessage) flags2 |= 8192;
1118
1124
  var _guestchatViaFrom = v.guestchatViaFrom !== void 0;
1119
1125
  if (_guestchatViaFrom) flags2 |= 524288;
1120
1126
  w.uint(flags2);
@@ -1151,6 +1157,7 @@ var m = {
1151
1157
  if (_suggestedPost) w.object(v.suggestedPost);
1152
1158
  if (_scheduleRepeatPeriod) w.int(v.scheduleRepeatPeriod);
1153
1159
  if (_summaryFromLanguage) w.string(v.summaryFromLanguage);
1160
+ if (_richMessage) w.object(v.richMessage);
1154
1161
  },
1155
1162
  "messageService": function(w, v) {
1156
1163
  w.uint(2055212554);
@@ -3335,13 +3342,18 @@ var m = {
3335
3342
  w.vector(w.int53, h(v, "recentRequesters"));
3336
3343
  },
3337
3344
  "updateBotChatInviteRequester": function(w, v) {
3338
- w.uint(299870598);
3345
+ w.uint(2092125561);
3346
+ var flags = 0;
3347
+ var _queryId = v.queryId !== void 0;
3348
+ if (_queryId) flags |= 1;
3349
+ w.uint(flags);
3339
3350
  w.object(h(v, "peer"));
3340
3351
  w.int(h(v, "date"));
3341
3352
  w.int53(h(v, "userId"));
3342
3353
  w.string(h(v, "about"));
3343
3354
  w.object(h(v, "invite"));
3344
3355
  w.int(h(v, "qts"));
3356
+ if (_queryId) w.long(v.queryId);
3345
3357
  },
3346
3358
  "updateMessageReactions": function(w, v) {
3347
3359
  w.uint(506035194);
@@ -6071,7 +6083,7 @@ var m = {
6071
6083
  if (_date) w.int(v.date);
6072
6084
  },
6073
6085
  "draftMessage": function(w, v) {
6074
- w.uint(2531960299);
6086
+ w.uint(1627271828);
6075
6087
  var flags = 0;
6076
6088
  if (v.noWebpage === true) flags |= 2;
6077
6089
  var _entities = v.entities && v.entities.length;
@@ -6085,6 +6097,8 @@ var m = {
6085
6097
  if (_effect) flags |= 128;
6086
6098
  var _suggestedPost = v.suggestedPost !== void 0;
6087
6099
  if (_suggestedPost) flags |= 256;
6100
+ var _richMessage = v.richMessage !== void 0;
6101
+ if (_richMessage) flags |= 512;
6088
6102
  w.uint(flags);
6089
6103
  if (_replyTo) w.object(v.replyTo);
6090
6104
  w.string(h(v, "message"));
@@ -6093,6 +6107,7 @@ var m = {
6093
6107
  w.int(h(v, "date"));
6094
6108
  if (_effect) w.long(v.effect);
6095
6109
  if (_suggestedPost) w.object(v.suggestedPost);
6110
+ if (_richMessage) w.object(v.richMessage);
6096
6111
  },
6097
6112
  "messages.featuredStickersNotModified": function(w, v) {
6098
6113
  w.uint(3336309862);
@@ -6336,6 +6351,7 @@ var m = {
6336
6351
  var _webpageId = v.webpageId !== void 0;
6337
6352
  var _flags_0 = _url || _webpageId;
6338
6353
  if (_flags_0) flags |= 1;
6354
+ if (v.spoiler === true) flags |= 2;
6339
6355
  w.uint(flags);
6340
6356
  w.long(h(v, "photoId"));
6341
6357
  w.object(h(v, "caption"));
@@ -6347,6 +6363,7 @@ var m = {
6347
6363
  var flags = 0;
6348
6364
  if (v.autoplay === true) flags |= 1;
6349
6365
  if (v.loop === true) flags |= 2;
6366
+ if (v.spoiler === true) flags |= 4;
6350
6367
  w.uint(flags);
6351
6368
  w.long(h(v, "videoId"));
6352
6369
  w.object(h(v, "caption"));
@@ -6421,8 +6438,17 @@ var m = {
6421
6438
  w.vector(w.object, h(v, "rows"));
6422
6439
  },
6423
6440
  "pageBlockOrderedList": function(w, v) {
6424
- w.uint(2592793057);
6441
+ w.uint(534181569);
6442
+ var flags = 0;
6443
+ var _start = v.start !== void 0;
6444
+ if (_start) flags |= 1;
6445
+ var _type = v.type !== void 0;
6446
+ if (_type) flags |= 2;
6447
+ if (v.reversed === true) flags |= 4;
6448
+ w.uint(flags);
6425
6449
  w.vector(w.object, h(v, "items"));
6450
+ if (_start) w.int(v.start);
6451
+ if (_type) w.string(v.type);
6426
6452
  },
6427
6453
  "pageBlockDetails": function(w, v) {
6428
6454
  w.uint(1987480557);
@@ -7733,22 +7759,54 @@ var m = {
7733
7759
  w.object(h(v, "credit"));
7734
7760
  },
7735
7761
  "pageListItemText": function(w, v) {
7736
- w.uint(3106911949);
7762
+ w.uint(794323004);
7763
+ var flags = 0;
7764
+ if (v.checkbox === true) flags |= 1;
7765
+ if (v.checked === true) flags |= 2;
7766
+ w.uint(flags);
7737
7767
  w.object(h(v, "text"));
7738
7768
  },
7739
7769
  "pageListItemBlocks": function(w, v) {
7740
- w.uint(635466748);
7770
+ w.uint(1674209194);
7771
+ var flags = 0;
7772
+ if (v.checkbox === true) flags |= 1;
7773
+ if (v.checked === true) flags |= 2;
7774
+ w.uint(flags);
7741
7775
  w.vector(w.object, h(v, "blocks"));
7742
7776
  },
7743
7777
  "pageListOrderedItemText": function(w, v) {
7744
- w.uint(1577484359);
7745
- w.string(h(v, "num"));
7778
+ w.uint(352522633);
7779
+ var flags = 0;
7780
+ if (v.checkbox === true) flags |= 1;
7781
+ if (v.checked === true) flags |= 2;
7782
+ var _num = v.num !== void 0;
7783
+ if (_num) flags |= 4;
7784
+ var _value = v.value !== void 0;
7785
+ if (_value) flags |= 8;
7786
+ var _type = v.type !== void 0;
7787
+ if (_type) flags |= 16;
7788
+ w.uint(flags);
7789
+ if (_num) w.string(v.num);
7746
7790
  w.object(h(v, "text"));
7791
+ if (_value) w.int(v.value);
7792
+ if (_type) w.string(v.type);
7747
7793
  },
7748
7794
  "pageListOrderedItemBlocks": function(w, v) {
7749
- w.uint(2564655414);
7750
- w.string(h(v, "num"));
7795
+ w.uint(2415056368);
7796
+ var flags = 0;
7797
+ if (v.checkbox === true) flags |= 1;
7798
+ if (v.checked === true) flags |= 2;
7799
+ var _num = v.num !== void 0;
7800
+ if (_num) flags |= 4;
7801
+ var _value = v.value !== void 0;
7802
+ if (_value) flags |= 8;
7803
+ var _type = v.type !== void 0;
7804
+ if (_type) flags |= 16;
7805
+ w.uint(flags);
7806
+ if (_num) w.string(v.num);
7751
7807
  w.vector(w.object, h(v, "blocks"));
7808
+ if (_value) w.int(v.value);
7809
+ if (_type) w.string(v.type);
7752
7810
  },
7753
7811
  "pageRelatedArticle": function(w, v) {
7754
7812
  w.uint(3012615176);
@@ -8660,6 +8718,7 @@ var m = {
8660
8718
  if (_todoItemId) flags |= 2048;
8661
8719
  var _pollOption = v.pollOption !== void 0;
8662
8720
  if (_pollOption) flags |= 4096;
8721
+ if (v.replyToEphemeral === true) flags |= 8192;
8663
8722
  w.uint(flags);
8664
8723
  if (_replyToMsgId) w.int(v.replyToMsgId);
8665
8724
  if (_replyToPeerId) w.object(v.replyToPeerId);
@@ -9271,6 +9330,7 @@ var m = {
9271
9330
  if (_queryId) flags |= 1;
9272
9331
  if (v.fullsize === true) flags |= 2;
9273
9332
  if (v.fullscreen === true) flags |= 4;
9333
+ if (v.sameOrigin === true) flags |= 8;
9274
9334
  w.uint(flags);
9275
9335
  if (_queryId) w.long(v.queryId);
9276
9336
  w.string(h(v, "url"));
@@ -10900,12 +10960,21 @@ var m = {
10900
10960
  w.uint(1603398491);
10901
10961
  },
10902
10962
  "connectedBot": function(w, v) {
10903
- w.uint(3445908332);
10963
+ w.uint(54448129);
10904
10964
  var flags = 0;
10965
+ var _device = v.device !== void 0;
10966
+ if (_device) flags |= 1;
10967
+ var _date = v.date !== void 0;
10968
+ if (_date) flags |= 2;
10969
+ var _location = v.location !== void 0;
10970
+ if (_location) flags |= 4;
10905
10971
  w.uint(flags);
10906
10972
  w.int53(h(v, "botId"));
10907
10973
  w.object(h(v, "recipients"));
10908
10974
  w.object(h(v, "rights"));
10975
+ if (_device) w.string(v.device);
10976
+ if (_date) w.int(v.date);
10977
+ if (_location) w.string(v.location);
10909
10978
  },
10910
10979
  "account.connectedBots": function(w, v) {
10911
10980
  w.uint(400029819);
@@ -12624,6 +12693,288 @@ var m = {
12624
12693
  w.uint(flags);
12625
12694
  if (_addUsers) w.vector(w.object, v.addUsers);
12626
12695
  },
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
+ "messages.chatInviteJoinResultOk": function(w, v) {
12871
+ w.uint(1146512295);
12872
+ w.object(h(v, "updates"));
12873
+ },
12874
+ "messages.chatInviteJoinResultWebView": function(w, v) {
12875
+ w.uint(793887543);
12876
+ w.int53(h(v, "botId"));
12877
+ w.object(h(v, "webview"));
12878
+ w.vector(w.object, h(v, "users"));
12879
+ },
12880
+ "joinChatBotResultApproved": function(w) {
12881
+ w.uint(2920622697);
12882
+ },
12883
+ "joinChatBotResultDeclined": function(w) {
12884
+ w.uint(251265428);
12885
+ },
12886
+ "joinChatBotResultQueued": function(w) {
12887
+ w.uint(2560862272);
12888
+ },
12889
+ "joinChatBotResultWebView": function(w, v) {
12890
+ w.uint(3605248019);
12891
+ w.string(h(v, "url"));
12892
+ },
12893
+ "webDomainException": function(w, v) {
12894
+ w.uint(2470225303);
12895
+ var flags = 0;
12896
+ var _favicon = v.favicon !== void 0;
12897
+ if (_favicon) flags |= 1;
12898
+ w.uint(flags);
12899
+ w.string(h(v, "domain"));
12900
+ w.string(h(v, "url"));
12901
+ w.string(h(v, "title"));
12902
+ if (_favicon) w.long(v.favicon);
12903
+ },
12904
+ "account.webBrowserSettingsNotModified": function(w) {
12905
+ w.uint(3273428814);
12906
+ },
12907
+ "account.webBrowserSettings": function(w, v) {
12908
+ w.uint(2045480115);
12909
+ var flags = 0;
12910
+ if (v.openExternalBrowser === true) flags |= 1;
12911
+ if (v.displayCloseButton === true) flags |= 2;
12912
+ w.uint(flags);
12913
+ w.vector(w.object, h(v, "externalExceptions"));
12914
+ w.vector(w.object, h(v, "inappExceptions"));
12915
+ w.long(h(v, "hash"));
12916
+ },
12917
+ "richMessage": function(w, v) {
12918
+ w.uint(3136527755);
12919
+ var flags = 0;
12920
+ if (v.rtl === true) flags |= 1;
12921
+ if (v.part === true) flags |= 2;
12922
+ w.uint(flags);
12923
+ w.vector(w.object, h(v, "blocks"));
12924
+ w.vector(w.object, h(v, "photos"));
12925
+ w.vector(w.object, h(v, "documents"));
12926
+ },
12927
+ "inputRichMessage": function(w, v) {
12928
+ w.uint(3838069244);
12929
+ var flags = 0;
12930
+ if (v.rtl === true) flags |= 1;
12931
+ if (v.noautolink === true) flags |= 2;
12932
+ var _photos = v.photos && v.photos.length;
12933
+ if (_photos) flags |= 4;
12934
+ var _documents = v.documents && v.documents.length;
12935
+ if (_documents) flags |= 8;
12936
+ var _users = v.users && v.users.length;
12937
+ if (_users) flags |= 16;
12938
+ w.uint(flags);
12939
+ w.vector(w.object, h(v, "blocks"));
12940
+ if (_photos) w.vector(w.object, v.photos);
12941
+ if (_documents) w.vector(w.object, v.documents);
12942
+ if (_users) w.vector(w.object, v.users);
12943
+ },
12944
+ "inputRichMessageHTML": function(w, v) {
12945
+ w.uint(3572151633);
12946
+ var flags = 0;
12947
+ if (v.rtl === true) flags |= 1;
12948
+ if (v.noautolink === true) flags |= 2;
12949
+ var _photos = v.photos && v.photos.length;
12950
+ if (_photos) flags |= 4;
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;
12955
+ w.uint(flags);
12956
+ w.string(h(v, "html"));
12957
+ if (_photos) w.vector(w.object, v.photos);
12958
+ if (_documents) w.vector(w.object, v.documents);
12959
+ if (_users) w.vector(w.object, v.users);
12960
+ },
12961
+ "inputRichMessageMarkdown": function(w, v) {
12962
+ w.uint(162300294);
12963
+ var flags = 0;
12964
+ if (v.rtl === true) flags |= 1;
12965
+ if (v.noautolink === true) flags |= 2;
12966
+ var _photos = v.photos && v.photos.length;
12967
+ if (_photos) flags |= 4;
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;
12972
+ w.uint(flags);
12973
+ w.string(h(v, "markdown"));
12974
+ if (_photos) w.vector(w.object, v.photos);
12975
+ if (_documents) w.vector(w.object, v.documents);
12976
+ if (_users) w.vector(w.object, v.users);
12977
+ },
12627
12978
  "updateChannelPinnedTopic": function(w, v) {
12628
12979
  w.uint(422509539);
12629
12980
  var flags = 0;
@@ -13636,7 +13987,11 @@ var m = {
13636
13987
  w.int(h(v, "limit"));
13637
13988
  },
13638
13989
  "contacts.search": function(w, v) {
13639
- w.uint(301470424);
13990
+ w.uint(99978511);
13991
+ var flags = 0;
13992
+ if (v.broadcasts === true) flags |= 1;
13993
+ if (v.bots === true) flags |= 2;
13994
+ w.uint(flags);
13640
13995
  w.string(h(v, "q"));
13641
13996
  w.int(h(v, "limit"));
13642
13997
  },
@@ -13852,7 +14207,7 @@ var m = {
13852
14207
  w.object(h(v, "action"));
13853
14208
  },
13854
14209
  "messages.sendMessage": function(w, v) {
13855
- w.uint(1415369050);
14210
+ w.uint(4277440354);
13856
14211
  var flags = 0;
13857
14212
  var _replyTo = v.replyTo !== void 0;
13858
14213
  if (_replyTo) flags |= 1;
@@ -13880,6 +14235,8 @@ var m = {
13880
14235
  if (_allowPaidStars) flags |= 2097152;
13881
14236
  var _suggestedPost = v.suggestedPost !== void 0;
13882
14237
  if (_suggestedPost) flags |= 4194304;
14238
+ var _richMessage = v.richMessage !== void 0;
14239
+ if (_richMessage) flags |= 8388608;
13883
14240
  var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
13884
14241
  if (_scheduleRepeatPeriod) flags |= 16777216;
13885
14242
  w.uint(flags);
@@ -13896,6 +14253,7 @@ var m = {
13896
14253
  if (_effect) w.long(v.effect);
13897
14254
  if (_allowPaidStars) w.long(v.allowPaidStars);
13898
14255
  if (_suggestedPost) w.object(v.suggestedPost);
14256
+ if (_richMessage) w.object(v.richMessage);
13899
14257
  },
13900
14258
  "messages.sendMedia": function(w, v) {
13901
14259
  w.uint(53536639);
@@ -14160,7 +14518,7 @@ var m = {
14160
14518
  w.string(h(v, "hash"));
14161
14519
  },
14162
14520
  "messages.importChatInvite": function(w, v) {
14163
- w.uint(1817183516);
14521
+ w.uint(3734061934);
14164
14522
  w.string(h(v, "hash"));
14165
14523
  },
14166
14524
  "messages.getStickerSet": function(w, v) {
@@ -14307,7 +14665,7 @@ var m = {
14307
14665
  w.int(h(v, "id"));
14308
14666
  },
14309
14667
  "messages.editMessage": function(w, v) {
14310
- w.uint(1374175969);
14668
+ w.uint(2970019436);
14311
14669
  var flags = 0;
14312
14670
  if (v.noWebpage === true) flags |= 2;
14313
14671
  var _replyMarkup = v.replyMarkup !== void 0;
@@ -14325,6 +14683,8 @@ var m = {
14325
14683
  if (_quickReplyShortcutId) flags |= 131072;
14326
14684
  var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
14327
14685
  if (_scheduleRepeatPeriod) flags |= 262144;
14686
+ var _richMessage = v.richMessage !== void 0;
14687
+ if (_richMessage) flags |= 8388608;
14328
14688
  w.uint(flags);
14329
14689
  w.object(h(v, "peer"));
14330
14690
  w.int(h(v, "id"));
@@ -14335,9 +14695,10 @@ var m = {
14335
14695
  if (_scheduleDate) w.int(v.scheduleDate);
14336
14696
  if (_scheduleRepeatPeriod) w.int(v.scheduleRepeatPeriod);
14337
14697
  if (_quickReplyShortcutId) w.int(v.quickReplyShortcutId);
14698
+ if (_richMessage) w.object(v.richMessage);
14338
14699
  },
14339
14700
  "messages.editInlineBotMessage": function(w, v) {
14340
- w.uint(2203418042);
14701
+ w.uint(2753805137);
14341
14702
  var flags = 0;
14342
14703
  if (v.noWebpage === true) flags |= 2;
14343
14704
  var _replyMarkup = v.replyMarkup !== void 0;
@@ -14349,12 +14710,15 @@ var m = {
14349
14710
  var _media = v.media !== void 0;
14350
14711
  if (_media) flags |= 16384;
14351
14712
  if (v.invertMedia === true) flags |= 65536;
14713
+ var _richMessage = v.richMessage !== void 0;
14714
+ if (_richMessage) flags |= 8388608;
14352
14715
  w.uint(flags);
14353
14716
  w.object(h(v, "id"));
14354
14717
  if (_message) w.string(v.message);
14355
14718
  if (_media) w.object(v.media);
14356
14719
  if (_replyMarkup) w.object(v.replyMarkup);
14357
14720
  if (_entities) w.vector(w.object, v.entities);
14721
+ if (_richMessage) w.object(v.richMessage);
14358
14722
  },
14359
14723
  "messages.getBotCallbackAnswer": function(w, v) {
14360
14724
  w.uint(2470627847);
@@ -14389,7 +14753,7 @@ var m = {
14389
14753
  w.vector(w.object, h(v, "peers"));
14390
14754
  },
14391
14755
  "messages.saveDraft": function(w, v) {
14392
- w.uint(1420701838);
14756
+ w.uint(2903482716);
14393
14757
  var flags = 0;
14394
14758
  if (v.noWebpage === true) flags |= 2;
14395
14759
  var _entities = v.entities && v.entities.length;
@@ -14403,6 +14767,8 @@ var m = {
14403
14767
  if (_effect) flags |= 128;
14404
14768
  var _suggestedPost = v.suggestedPost !== void 0;
14405
14769
  if (_suggestedPost) flags |= 256;
14770
+ var _richMessage = v.richMessage !== void 0;
14771
+ if (_richMessage) flags |= 512;
14406
14772
  w.uint(flags);
14407
14773
  if (_replyTo) w.object(v.replyTo);
14408
14774
  w.object(h(v, "peer"));
@@ -14411,6 +14777,7 @@ var m = {
14411
14777
  if (_media) w.object(v.media);
14412
14778
  if (_effect) w.long(v.effect);
14413
14779
  if (_suggestedPost) w.object(v.suggestedPost);
14780
+ if (_richMessage) w.object(v.richMessage);
14414
14781
  },
14415
14782
  "messages.getAllDrafts": function(w) {
14416
14783
  w.uint(1782549861);
@@ -16231,7 +16598,7 @@ var m = {
16231
16598
  w.string(h(v, "username"));
16232
16599
  },
16233
16600
  "channels.joinChannel": function(w, v) {
16234
- w.uint(615851205);
16601
+ w.uint(2137660962);
16235
16602
  w.object(h(v, "channel"));
16236
16603
  },
16237
16604
  "channels.leaveChannel": function(w, v) {
@@ -16366,9 +16733,15 @@ var m = {
16366
16733
  w.boolean(h(v, "enabled"));
16367
16734
  },
16368
16735
  "channels.toggleJoinRequest": function(w, v) {
16369
- w.uint(1277789622);
16736
+ w.uint(248260120);
16737
+ var flags = 0;
16738
+ var _guardBot = v.guardBot !== void 0;
16739
+ if (_guardBot) flags |= 1;
16740
+ if (v.applyToInvites === true) flags |= 2;
16741
+ w.uint(flags);
16370
16742
  w.object(h(v, "channel"));
16371
16743
  w.boolean(h(v, "enabled"));
16744
+ if (_guardBot) w.object(v.guardBot);
16372
16745
  },
16373
16746
  "channels.reorderUsernames": function(w, v) {
16374
16747
  w.uint(3025988893);
@@ -18128,6 +18501,44 @@ var m = {
18128
18501
  w.object(h(v, "tone"));
18129
18502
  w.int(h(v, "num"));
18130
18503
  },
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
+ },
18131
18542
  "channels.editCreator": function(w, v) {
18132
18543
  w.uint(2402864415);
18133
18544
  w.object(h(v, "channel"));
@@ -19001,6 +19412,11 @@ var m = {
19001
19412
  "inputMessageReadMetric": 32,
19002
19413
  "inputAiComposeToneID": 20,
19003
19414
  "aicompose.tonesNotModified": 4,
19415
+ "updateWebBrowserSettings": 8,
19416
+ "joinChatBotResultApproved": 4,
19417
+ "joinChatBotResultDeclined": 4,
19418
+ "joinChatBotResultQueued": 4,
19419
+ "account.webBrowserSettingsNotModified": 4,
19004
19420
  "updateChannelPinnedTopic": 20,
19005
19421
  "auth.logOut": 4,
19006
19422
  "auth.resetAuthorizations": 4,
@@ -19165,6 +19581,9 @@ var m = {
19165
19581
  "smsjobs.updateSettings": 8,
19166
19582
  "smsjobs.getStatus": 4,
19167
19583
  "aicompose.getTones": 12,
19584
+ "account.getWebBrowserSettings": 12,
19585
+ "account.updateWebBrowserSettings": 8,
19586
+ "account.deleteWebBrowserSettingsExceptions": 4,
19168
19587
  "mt_dh_gen_ok": 52,
19169
19588
  "mt_dh_gen_retry": 52,
19170
19589
  "mt_dh_gen_fail": 52,