@mtcute/core 0.29.6 → 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 (118) hide show
  1. package/client.cjs +8 -0
  2. package/client.js +8 -0
  3. package/highlevel/client.d.cts +23 -7
  4. package/highlevel/client.d.ts +23 -7
  5. package/highlevel/methods/bots/answer-bot-guest-chat-query.cjs +26 -0
  6. package/highlevel/methods/bots/answer-bot-guest-chat-query.d.cts +12 -0
  7. package/highlevel/methods/bots/answer-bot-guest-chat-query.d.ts +12 -0
  8. package/highlevel/methods/bots/answer-bot-guest-chat-query.js +21 -0
  9. package/highlevel/methods/chats/join-chat.cjs +38 -16
  10. package/highlevel/methods/chats/join-chat.d.cts +20 -6
  11. package/highlevel/methods/chats/join-chat.d.ts +20 -6
  12. package/highlevel/methods/chats/join-chat.js +38 -16
  13. package/highlevel/methods/chats/save-draft.d.cts +4 -1
  14. package/highlevel/methods/chats/save-draft.d.ts +4 -1
  15. package/highlevel/methods/messages/send-copy-group.cjs +5 -9
  16. package/highlevel/methods/messages/send-copy-group.js +5 -9
  17. package/highlevel/methods.d.cts +3 -0
  18. package/highlevel/methods.d.ts +3 -0
  19. package/highlevel/storage/service/peers.cjs +2 -0
  20. package/highlevel/storage/service/peers.js +2 -0
  21. package/highlevel/types/files/utils.d.cts +1 -1
  22. package/highlevel/types/files/utils.d.ts +1 -1
  23. package/highlevel/types/media/poll.cjs +14 -0
  24. package/highlevel/types/media/poll.d.cts +6 -0
  25. package/highlevel/types/media/poll.d.ts +6 -0
  26. package/highlevel/types/media/poll.js +14 -0
  27. package/highlevel/types/messages/index.d.cts +1 -0
  28. package/highlevel/types/messages/index.d.ts +1 -0
  29. package/highlevel/types/messages/message.cjs +15 -1
  30. package/highlevel/types/messages/message.d.cts +8 -0
  31. package/highlevel/types/messages/message.d.ts +8 -0
  32. package/highlevel/types/messages/message.js +15 -1
  33. package/highlevel/types/messages/rich-message.cjs +50 -0
  34. package/highlevel/types/messages/rich-message.d.cts +18 -0
  35. package/highlevel/types/messages/rich-message.d.ts +18 -0
  36. package/highlevel/types/messages/rich-message.js +45 -0
  37. package/highlevel/types/peers/chat-permissions.cjs +6 -0
  38. package/highlevel/types/peers/chat-permissions.d.cts +4 -0
  39. package/highlevel/types/peers/chat-permissions.d.ts +4 -0
  40. package/highlevel/types/peers/chat-permissions.js +6 -0
  41. package/highlevel/types/peers/full-chat.cjs +6 -0
  42. package/highlevel/types/peers/full-chat.d.cts +2 -0
  43. package/highlevel/types/peers/full-chat.d.ts +2 -0
  44. package/highlevel/types/peers/full-chat.js +6 -0
  45. package/highlevel/types/peers/user.cjs +8 -0
  46. package/highlevel/types/peers/user.d.cts +4 -0
  47. package/highlevel/types/peers/user.d.ts +4 -0
  48. package/highlevel/types/peers/user.js +8 -0
  49. package/highlevel/types/updates/bot-guest-chat-query.cjs +39 -0
  50. package/highlevel/types/updates/bot-guest-chat-query.d.cts +21 -0
  51. package/highlevel/types/updates/bot-guest-chat-query.d.ts +21 -0
  52. package/highlevel/types/updates/bot-guest-chat-query.js +34 -0
  53. package/highlevel/types/updates/index.d.cts +5 -1
  54. package/highlevel/types/updates/index.d.ts +5 -1
  55. package/highlevel/types/updates/parse-update.cjs +3 -0
  56. package/highlevel/types/updates/parse-update.js +3 -0
  57. package/highlevel/types/updates/user-typing-update.cjs +2 -0
  58. package/highlevel/types/updates/user-typing-update.js +2 -0
  59. package/highlevel/updates/manager.cjs +214 -3
  60. package/highlevel/updates/manager.d.cts +1 -0
  61. package/highlevel/updates/manager.d.ts +1 -0
  62. package/highlevel/updates/manager.js +214 -3
  63. package/highlevel/utils/inspectable.cjs +1 -0
  64. package/highlevel/utils/inspectable.d.cts +1 -0
  65. package/highlevel/utils/inspectable.d.ts +1 -0
  66. package/highlevel/utils/inspectable.js +1 -0
  67. package/index.cjs +4 -0
  68. package/index.js +4 -0
  69. package/methods.cjs +2 -0
  70. package/methods.js +2 -0
  71. package/network/flood-control.cjs +149 -0
  72. package/network/flood-control.d.cts +79 -0
  73. package/network/flood-control.d.ts +79 -0
  74. package/network/flood-control.js +144 -0
  75. package/network/flood-control.test.d.cts +1 -0
  76. package/network/flood-control.test.d.ts +1 -0
  77. package/network/mtproto-session.cjs +1 -21
  78. package/network/mtproto-session.d.cts +1 -5
  79. package/network/mtproto-session.d.ts +1 -5
  80. package/network/mtproto-session.js +2 -22
  81. package/network/multi-session-connection.cjs +26 -16
  82. package/network/multi-session-connection.d.cts +1 -1
  83. package/network/multi-session-connection.d.ts +1 -1
  84. package/network/multi-session-connection.js +26 -16
  85. package/network/multi-session-connection.test.d.cts +1 -0
  86. package/network/multi-session-connection.test.d.ts +1 -0
  87. package/network/network-manager.cjs +3 -2
  88. package/network/network-manager.d.cts +12 -0
  89. package/network/network-manager.d.ts +12 -0
  90. package/network/network-manager.js +3 -2
  91. package/network/persistent-connection.cjs +25 -1
  92. package/network/persistent-connection.d.cts +5 -0
  93. package/network/persistent-connection.d.ts +5 -0
  94. package/network/persistent-connection.js +25 -1
  95. package/network/session-connection.cjs +5 -10
  96. package/network/session-connection.d.cts +0 -2
  97. package/network/session-connection.d.ts +0 -2
  98. package/network/session-connection.js +5 -10
  99. package/package.json +1 -1
  100. package/tl/api-schema.json +1 -1
  101. package/tl/binary/reader.cjs +257 -62
  102. package/tl/binary/reader.js +257 -62
  103. package/tl/binary/writer.cjs +837 -212
  104. package/tl/binary/writer.js +837 -212
  105. package/tl/compat/reader.cjs +31 -0
  106. package/tl/compat/reader.js +31 -0
  107. package/tl/index.d.cts +2478 -186
  108. package/tl/index.d.ts +2478 -186
  109. package/tl/inner-tl.cjs +34 -10
  110. package/tl/inner-tl.js +34 -10
  111. package/utils/binary/compat.cjs +84 -0
  112. package/utils/binary/compat.js +84 -0
  113. package/utils/index.d.cts +1 -0
  114. package/utils/index.d.ts +1 -0
  115. package/utils/long-utils.cjs +10 -0
  116. package/utils/long-utils.js +10 -0
  117. package/utils.cjs +7 -0
  118. package/utils.js +8 -1
@@ -561,6 +561,8 @@ var m = {
561
561
  if (v.botForumView === true) flags2 |= 65536;
562
562
  if (v.botForumCanManageTopics === true) flags2 |= 131072;
563
563
  if (v.botCanManageBots === true) flags2 |= 262144;
564
+ if (v.botGuestchat === true) flags2 |= 524288;
565
+ if (v.botGuard === true) flags2 |= 1048576;
564
566
  w.uint(flags2);
565
567
  w.int53(h(v, "id"));
566
568
  if (_accessHash) w.long(v.accessHash);
@@ -818,7 +820,7 @@ var m = {
818
820
  if (_reactionsLimit) w.int(v.reactionsLimit);
819
821
  },
820
822
  "channelFull": function(w, v) {
821
- w.uint(3839931037);
823
+ w.uint(2689502522);
822
824
  var flags = 0;
823
825
  var _participantsCount = v.participantsCount !== void 0;
824
826
  if (_participantsCount) flags |= 1;
@@ -915,6 +917,8 @@ var m = {
915
917
  if (_sendPaidMessagesStars) flags2 |= 2097152;
916
918
  var _mainTab = v.mainTab !== void 0;
917
919
  if (_mainTab) flags2 |= 4194304;
920
+ var _guardBotId = v.guardBotId !== void 0;
921
+ if (_guardBotId) flags2 |= 8388608;
918
922
  w.uint(flags2);
919
923
  w.int53(h(v, "id"));
920
924
  w.string(h(v, "about"));
@@ -961,6 +965,7 @@ var m = {
961
965
  if (_stargiftsCount) w.int(v.stargiftsCount);
962
966
  if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
963
967
  if (_mainTab) w.object(v.mainTab);
968
+ if (_guardBotId) w.int53(v.guardBotId);
964
969
  },
965
970
  "chatParticipant": function(w, v) {
966
971
  w.uint(954703838);
@@ -1032,7 +1037,7 @@ var m = {
1032
1037
  if (_peerId) w.object(v.peerId);
1033
1038
  },
1034
1039
  "message": function(w, v) {
1035
- w.uint(988112002);
1040
+ w.uint(1979759059);
1036
1041
  var flags = 0;
1037
1042
  if (v.out === true) flags |= 2;
1038
1043
  var _fwdFrom = v.fwdFrom !== void 0;
@@ -1107,6 +1112,10 @@ var m = {
1107
1112
  if (_summaryFromLanguage) flags2 |= 2048;
1108
1113
  var _fromRank = v.fromRank !== void 0;
1109
1114
  if (_fromRank) flags2 |= 4096;
1115
+ var _richMessage = v.richMessage !== void 0;
1116
+ if (_richMessage) flags2 |= 8192;
1117
+ var _guestchatViaFrom = v.guestchatViaFrom !== void 0;
1118
+ if (_guestchatViaFrom) flags2 |= 524288;
1110
1119
  w.uint(flags2);
1111
1120
  w.int(h(v, "id"));
1112
1121
  if (_fromId) w.object(v.fromId);
@@ -1117,6 +1126,7 @@ var m = {
1117
1126
  if (_fwdFrom) w.object(v.fwdFrom);
1118
1127
  if (_viaBotId) w.int53(v.viaBotId);
1119
1128
  if (_viaBusinessBotId) w.int53(v.viaBusinessBotId);
1129
+ if (_guestchatViaFrom) w.object(v.guestchatViaFrom);
1120
1130
  if (_replyTo) w.object(v.replyTo);
1121
1131
  w.int(h(v, "date"));
1122
1132
  w.string(h(v, "message"));
@@ -1140,6 +1150,7 @@ var m = {
1140
1150
  if (_suggestedPost) w.object(v.suggestedPost);
1141
1151
  if (_scheduleRepeatPeriod) w.int(v.scheduleRepeatPeriod);
1142
1152
  if (_summaryFromLanguage) w.string(v.summaryFromLanguage);
1153
+ if (_richMessage) w.object(v.richMessage);
1143
1154
  },
1144
1155
  "messageService": function(w, v) {
1145
1156
  w.uint(2055212554);
@@ -1934,6 +1945,18 @@ var m = {
1934
1945
  w.boolean(h(v, "prevValue"));
1935
1946
  w.boolean(h(v, "newValue"));
1936
1947
  },
1948
+ "messageActionPollAppendAnswer": function(w, v) {
1949
+ w.uint(2644626796);
1950
+ w.object(h(v, "answer"));
1951
+ },
1952
+ "messageActionPollDeleteAnswer": function(w, v) {
1953
+ w.uint(966161628);
1954
+ w.object(h(v, "answer"));
1955
+ },
1956
+ "messageActionManagedBotCreated": function(w, v) {
1957
+ w.uint(375414334);
1958
+ w.int53(h(v, "botId"));
1959
+ },
1937
1960
  "dialog": function(w, v) {
1938
1961
  w.uint(4236900339);
1939
1962
  var flags = 0;
@@ -2062,11 +2085,12 @@ var m = {
2062
2085
  w.object(h(v, "authorization"));
2063
2086
  },
2064
2087
  "auth.sentCodePaymentRequired": function(w, v) {
2065
- w.uint(3767884348);
2088
+ w.uint(4169301695);
2066
2089
  w.string(h(v, "storeProduct"));
2067
2090
  w.string(h(v, "phoneCodeHash"));
2068
2091
  w.string(h(v, "supportEmailAddress"));
2069
2092
  w.string(h(v, "supportEmailSubject"));
2093
+ w.int(h(v, "premiumDays"));
2070
2094
  w.string(h(v, "currency"));
2071
2095
  w.long(h(v, "amount"));
2072
2096
  },
@@ -2601,6 +2625,9 @@ var m = {
2601
2625
  "inputMessagesFilterPinned": function(w) {
2602
2626
  w.uint(464520273);
2603
2627
  },
2628
+ "inputMessagesFilterPoll": function(w) {
2629
+ w.uint(4197173514);
2630
+ },
2604
2631
  "updateNewMessage": function(w, v) {
2605
2632
  w.uint(522914557);
2606
2633
  w.object(h(v, "message"));
@@ -3308,13 +3335,18 @@ var m = {
3308
3335
  w.vector(w.int53, h(v, "recentRequesters"));
3309
3336
  },
3310
3337
  "updateBotChatInviteRequester": function(w, v) {
3311
- 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);
3312
3343
  w.object(h(v, "peer"));
3313
3344
  w.int(h(v, "date"));
3314
3345
  w.int53(h(v, "userId"));
3315
3346
  w.string(h(v, "about"));
3316
3347
  w.object(h(v, "invite"));
3317
3348
  w.int(h(v, "qts"));
3349
+ if (_queryId) w.long(v.queryId);
3318
3350
  },
3319
3351
  "updateMessageReactions": function(w, v) {
3320
3352
  w.uint(506035194);
@@ -3660,6 +3692,26 @@ var m = {
3660
3692
  w.string(h(v, "rank"));
3661
3693
  w.int(h(v, "version"));
3662
3694
  },
3695
+ "updateManagedBot": function(w, v) {
3696
+ w.uint(1216408986);
3697
+ w.int53(h(v, "userId"));
3698
+ w.int53(h(v, "botId"));
3699
+ w.int(h(v, "qts"));
3700
+ },
3701
+ "updateBotGuestChatQuery": function(w, v) {
3702
+ w.uint(3453225277);
3703
+ var flags = 0;
3704
+ var _referenceMessages = v.referenceMessages && v.referenceMessages.length;
3705
+ if (_referenceMessages) flags |= 1;
3706
+ w.uint(flags);
3707
+ w.long(h(v, "queryId"));
3708
+ w.object(h(v, "message"));
3709
+ if (_referenceMessages) w.vector(w.object, v.referenceMessages);
3710
+ w.int(h(v, "qts"));
3711
+ },
3712
+ "updateAiComposeTones": function(w) {
3713
+ w.uint(2349830651);
3714
+ },
3663
3715
  "updates.state": function(w, v) {
3664
3716
  w.uint(2775329342);
3665
3717
  w.int(h(v, "pts"));
@@ -5208,6 +5260,22 @@ var m = {
5208
5260
  w.int(h(v, "length"));
5209
5261
  w.int(h(v, "date"));
5210
5262
  },
5263
+ "messageEntityDiffInsert": function(w, v) {
5264
+ w.uint(1903653142);
5265
+ w.int(h(v, "offset"));
5266
+ w.int(h(v, "length"));
5267
+ },
5268
+ "messageEntityDiffReplace": function(w, v) {
5269
+ w.uint(3334596007);
5270
+ w.int(h(v, "offset"));
5271
+ w.int(h(v, "length"));
5272
+ w.string(h(v, "oldText"));
5273
+ },
5274
+ "messageEntityDiffDelete": function(w, v) {
5275
+ w.uint(106086853);
5276
+ w.int(h(v, "offset"));
5277
+ w.int(h(v, "length"));
5278
+ },
5211
5279
  "inputChannelEmpty": function(w) {
5212
5280
  w.uint(4002160262);
5213
5281
  },
@@ -5978,6 +6046,9 @@ var m = {
5978
6046
  "topPeerCategoryBotsApp": function(w) {
5979
6047
  w.uint(4255022060);
5980
6048
  },
6049
+ "topPeerCategoryBotsGuestChat": function(w) {
6050
+ w.uint(1814361053);
6051
+ },
5981
6052
  "topPeerCategoryPeers": function(w, v) {
5982
6053
  w.uint(4219683473);
5983
6054
  w.object(h(v, "category"));
@@ -6005,7 +6076,7 @@ var m = {
6005
6076
  if (_date) w.int(v.date);
6006
6077
  },
6007
6078
  "draftMessage": function(w, v) {
6008
- w.uint(2531960299);
6079
+ w.uint(1627271828);
6009
6080
  var flags = 0;
6010
6081
  if (v.noWebpage === true) flags |= 2;
6011
6082
  var _entities = v.entities && v.entities.length;
@@ -6019,6 +6090,8 @@ var m = {
6019
6090
  if (_effect) flags |= 128;
6020
6091
  var _suggestedPost = v.suggestedPost !== void 0;
6021
6092
  if (_suggestedPost) flags |= 256;
6093
+ var _richMessage = v.richMessage !== void 0;
6094
+ if (_richMessage) flags |= 512;
6022
6095
  w.uint(flags);
6023
6096
  if (_replyTo) w.object(v.replyTo);
6024
6097
  w.string(h(v, "message"));
@@ -6027,6 +6100,7 @@ var m = {
6027
6100
  w.int(h(v, "date"));
6028
6101
  if (_effect) w.long(v.effect);
6029
6102
  if (_suggestedPost) w.object(v.suggestedPost);
6103
+ if (_richMessage) w.object(v.richMessage);
6030
6104
  },
6031
6105
  "messages.featuredStickersNotModified": function(w, v) {
6032
6106
  w.uint(3336309862);
@@ -6270,6 +6344,7 @@ var m = {
6270
6344
  var _webpageId = v.webpageId !== void 0;
6271
6345
  var _flags_0 = _url || _webpageId;
6272
6346
  if (_flags_0) flags |= 1;
6347
+ if (v.spoiler === true) flags |= 2;
6273
6348
  w.uint(flags);
6274
6349
  w.long(h(v, "photoId"));
6275
6350
  w.object(h(v, "caption"));
@@ -6281,6 +6356,7 @@ var m = {
6281
6356
  var flags = 0;
6282
6357
  if (v.autoplay === true) flags |= 1;
6283
6358
  if (v.loop === true) flags |= 2;
6359
+ if (v.spoiler === true) flags |= 4;
6284
6360
  w.uint(flags);
6285
6361
  w.long(h(v, "videoId"));
6286
6362
  w.object(h(v, "caption"));
@@ -6355,8 +6431,17 @@ var m = {
6355
6431
  w.vector(w.object, h(v, "rows"));
6356
6432
  },
6357
6433
  "pageBlockOrderedList": function(w, v) {
6358
- w.uint(2592793057);
6434
+ w.uint(534181569);
6435
+ var flags = 0;
6436
+ var _start = v.start !== void 0;
6437
+ if (_start) flags |= 1;
6438
+ var _type = v.type !== void 0;
6439
+ if (_type) flags |= 2;
6440
+ if (v.reversed === true) flags |= 4;
6441
+ w.uint(flags);
6359
6442
  w.vector(w.object, h(v, "items"));
6443
+ if (_start) w.int(v.start);
6444
+ if (_type) w.string(v.type);
6360
6445
  },
6361
6446
  "pageBlockDetails": function(w, v) {
6362
6447
  w.uint(1987480557);
@@ -7667,22 +7752,54 @@ var m = {
7667
7752
  w.object(h(v, "credit"));
7668
7753
  },
7669
7754
  "pageListItemText": function(w, v) {
7670
- w.uint(3106911949);
7755
+ w.uint(794323004);
7756
+ var flags = 0;
7757
+ if (v.checkbox === true) flags |= 1;
7758
+ if (v.checked === true) flags |= 2;
7759
+ w.uint(flags);
7671
7760
  w.object(h(v, "text"));
7672
7761
  },
7673
7762
  "pageListItemBlocks": function(w, v) {
7674
- w.uint(635466748);
7763
+ w.uint(1674209194);
7764
+ var flags = 0;
7765
+ if (v.checkbox === true) flags |= 1;
7766
+ if (v.checked === true) flags |= 2;
7767
+ w.uint(flags);
7675
7768
  w.vector(w.object, h(v, "blocks"));
7676
7769
  },
7677
7770
  "pageListOrderedItemText": function(w, v) {
7678
- w.uint(1577484359);
7679
- w.string(h(v, "num"));
7771
+ w.uint(352522633);
7772
+ var flags = 0;
7773
+ if (v.checkbox === true) flags |= 1;
7774
+ if (v.checked === true) flags |= 2;
7775
+ var _num = v.num !== void 0;
7776
+ if (_num) flags |= 4;
7777
+ var _value = v.value !== void 0;
7778
+ if (_value) flags |= 8;
7779
+ var _type = v.type !== void 0;
7780
+ if (_type) flags |= 16;
7781
+ w.uint(flags);
7782
+ if (_num) w.string(v.num);
7680
7783
  w.object(h(v, "text"));
7784
+ if (_value) w.int(v.value);
7785
+ if (_type) w.string(v.type);
7681
7786
  },
7682
7787
  "pageListOrderedItemBlocks": function(w, v) {
7683
- w.uint(2564655414);
7684
- w.string(h(v, "num"));
7788
+ w.uint(2415056368);
7789
+ var flags = 0;
7790
+ if (v.checkbox === true) flags |= 1;
7791
+ if (v.checked === true) flags |= 2;
7792
+ var _num = v.num !== void 0;
7793
+ if (_num) flags |= 4;
7794
+ var _value = v.value !== void 0;
7795
+ if (_value) flags |= 8;
7796
+ var _type = v.type !== void 0;
7797
+ if (_type) flags |= 16;
7798
+ w.uint(flags);
7799
+ if (_num) w.string(v.num);
7685
7800
  w.vector(w.object, h(v, "blocks"));
7801
+ if (_value) w.int(v.value);
7802
+ if (_type) w.string(v.type);
7686
7803
  },
7687
7804
  "pageRelatedArticle": function(w, v) {
7688
7805
  w.uint(3012615176);
@@ -7751,8 +7868,17 @@ var m = {
7751
7868
  if (_flags_1) w.object(v.addedBy);
7752
7869
  if (_flags_1) w.int(v.date);
7753
7870
  },
7871
+ "inputPollAnswer": function(w, v) {
7872
+ w.uint(429911446);
7873
+ var flags = 0;
7874
+ var _media = v.media !== void 0;
7875
+ if (_media) flags |= 1;
7876
+ w.uint(flags);
7877
+ w.object(h(v, "text"));
7878
+ if (_media) w.object(v.media);
7879
+ },
7754
7880
  "poll": function(w, v) {
7755
- w.uint(3091356649);
7881
+ w.uint(2523803071);
7756
7882
  w.long(h(v, "id"));
7757
7883
  var flags = 0;
7758
7884
  if (v.closed === true) flags |= 1;
@@ -7768,11 +7894,15 @@ var m = {
7768
7894
  if (v.shuffleAnswers === true) flags |= 256;
7769
7895
  if (v.hideResultsUntilClose === true) flags |= 512;
7770
7896
  if (v.creator === true) flags |= 1024;
7897
+ if (v.subscribersOnly === true) flags |= 2048;
7898
+ var _countriesIso2 = v.countriesIso2 && v.countriesIso2.length;
7899
+ if (_countriesIso2) flags |= 4096;
7771
7900
  w.uint(flags);
7772
7901
  w.object(h(v, "question"));
7773
7902
  w.vector(w.object, h(v, "answers"));
7774
7903
  if (_closePeriod) w.int(v.closePeriod);
7775
7904
  if (_closeDate) w.int(v.closeDate);
7905
+ if (_countriesIso2) w.vector(w.string, v.countriesIso2);
7776
7906
  w.long(h(v, "hash"));
7777
7907
  },
7778
7908
  "pollAnswerVoters": function(w, v) {
@@ -7806,6 +7936,7 @@ var m = {
7806
7936
  var _solutionMedia = v.solutionMedia !== void 0;
7807
7937
  if (_solutionMedia) flags |= 32;
7808
7938
  if (v.hasUnreadVotes === true) flags |= 64;
7939
+ if (v.canViewStats === true) flags |= 128;
7809
7940
  w.uint(flags);
7810
7941
  if (_results) w.vector(w.object, v.results);
7811
7942
  if (_totalVoters) w.int(v.totalVoters);
@@ -7868,6 +7999,7 @@ var m = {
7868
7999
  if (v.sendDocs === true) flags |= 16777216;
7869
8000
  if (v.sendPlain === true) flags |= 33554432;
7870
8001
  if (v.editRank === true) flags |= 67108864;
8002
+ if (v.sendReactions === true) flags |= 134217728;
7871
8003
  w.uint(flags);
7872
8004
  w.int(h(v, "untilDate"));
7873
8005
  },
@@ -8245,6 +8377,10 @@ var m = {
8245
8377
  w.object(h(v, "gift"));
8246
8378
  w.int(h(v, "endDate"));
8247
8379
  },
8380
+ "webPageAttributeAiComposeTone": function(w, v) {
8381
+ w.uint(2005007896);
8382
+ w.long(h(v, "emojiId"));
8383
+ },
8248
8384
  "messages.votesList": function(w, v) {
8249
8385
  w.uint(1218005070);
8250
8386
  var flags = 0;
@@ -8575,6 +8711,7 @@ var m = {
8575
8711
  if (_todoItemId) flags |= 2048;
8576
8712
  var _pollOption = v.pollOption !== void 0;
8577
8713
  if (_pollOption) flags |= 4096;
8714
+ if (v.replyToEphemeral === true) flags |= 8192;
8578
8715
  w.uint(flags);
8579
8716
  if (_replyToMsgId) w.int(v.replyToMsgId);
8580
8717
  if (_replyToPeerId) w.object(v.replyToPeerId);
@@ -9186,6 +9323,7 @@ var m = {
9186
9323
  if (_queryId) flags |= 1;
9187
9324
  if (v.fullsize === true) flags |= 2;
9188
9325
  if (v.fullscreen === true) flags |= 4;
9326
+ if (v.sameOrigin === true) flags |= 8;
9189
9327
  w.uint(flags);
9190
9328
  if (_queryId) w.long(v.queryId);
9191
9329
  w.string(h(v, "url"));
@@ -9468,12 +9606,13 @@ var m = {
9468
9606
  w.int(h(v, "users"));
9469
9607
  },
9470
9608
  "inputStorePaymentAuthCode": function(w, v) {
9471
- w.uint(2612159341);
9609
+ w.uint(1069645911);
9472
9610
  var flags = 0;
9473
9611
  if (v.restore === true) flags |= 1;
9474
9612
  w.uint(flags);
9475
9613
  w.string(h(v, "phoneNumber"));
9476
9614
  w.string(h(v, "phoneCodeHash"));
9615
+ w.int(h(v, "premiumDays"));
9477
9616
  w.string(h(v, "currency"));
9478
9617
  w.long(h(v, "amount"));
9479
9618
  },
@@ -9754,6 +9893,18 @@ var m = {
9754
9893
  if (_userAdminRights) w.object(v.userAdminRights);
9755
9894
  if (_botAdminRights) w.object(v.botAdminRights);
9756
9895
  },
9896
+ "requestPeerTypeCreateBot": function(w, v) {
9897
+ w.uint(1048699e3);
9898
+ var flags = 0;
9899
+ if (v.botManaged === true) flags |= 1;
9900
+ var _suggestedName = v.suggestedName !== void 0;
9901
+ if (_suggestedName) flags |= 2;
9902
+ var _suggestedUsername = v.suggestedUsername !== void 0;
9903
+ if (_suggestedUsername) flags |= 4;
9904
+ w.uint(flags);
9905
+ if (_suggestedName) w.string(v.suggestedName);
9906
+ if (_suggestedUsername) w.string(v.suggestedUsername);
9907
+ },
9757
9908
  "emojiListNotModified": function(w) {
9758
9909
  w.uint(1209970170);
9759
9910
  },
@@ -10802,12 +10953,21 @@ var m = {
10802
10953
  w.uint(1603398491);
10803
10954
  },
10804
10955
  "connectedBot": function(w, v) {
10805
- w.uint(3445908332);
10956
+ w.uint(54448129);
10806
10957
  var flags = 0;
10958
+ var _device = v.device !== void 0;
10959
+ if (_device) flags |= 1;
10960
+ var _date = v.date !== void 0;
10961
+ if (_date) flags |= 2;
10962
+ var _location = v.location !== void 0;
10963
+ if (_location) flags |= 4;
10807
10964
  w.uint(flags);
10808
10965
  w.int53(h(v, "botId"));
10809
10966
  w.object(h(v, "recipients"));
10810
10967
  w.object(h(v, "rights"));
10968
+ if (_device) w.string(v.device);
10969
+ if (_date) w.int(v.date);
10970
+ if (_location) w.string(v.location);
10811
10971
  },
10812
10972
  "account.connectedBots": function(w, v) {
10813
10973
  w.uint(400029819);
@@ -12429,64 +12589,6 @@ var m = {
12429
12589
  w.uint(flags);
12430
12590
  if (_icon) w.long(v.icon);
12431
12591
  },
12432
- "messageActionPollAppendAnswer": function(w, v) {
12433
- w.uint(2644626796);
12434
- w.object(h(v, "answer"));
12435
- },
12436
- "messageActionPollDeleteAnswer": function(w, v) {
12437
- w.uint(966161628);
12438
- w.object(h(v, "answer"));
12439
- },
12440
- "messageActionManagedBotCreated": function(w, v) {
12441
- w.uint(375414334);
12442
- w.int53(h(v, "botId"));
12443
- },
12444
- "inputMessagesFilterPoll": function(w) {
12445
- w.uint(4197173514);
12446
- },
12447
- "updateManagedBot": function(w, v) {
12448
- w.uint(1216408986);
12449
- w.int53(h(v, "userId"));
12450
- w.int53(h(v, "botId"));
12451
- w.int(h(v, "qts"));
12452
- },
12453
- "messageEntityDiffInsert": function(w, v) {
12454
- w.uint(1903653142);
12455
- w.int(h(v, "offset"));
12456
- w.int(h(v, "length"));
12457
- },
12458
- "messageEntityDiffReplace": function(w, v) {
12459
- w.uint(3334596007);
12460
- w.int(h(v, "offset"));
12461
- w.int(h(v, "length"));
12462
- w.string(h(v, "oldText"));
12463
- },
12464
- "messageEntityDiffDelete": function(w, v) {
12465
- w.uint(106086853);
12466
- w.int(h(v, "offset"));
12467
- w.int(h(v, "length"));
12468
- },
12469
- "inputPollAnswer": function(w, v) {
12470
- w.uint(429911446);
12471
- var flags = 0;
12472
- var _media = v.media !== void 0;
12473
- if (_media) flags |= 1;
12474
- w.uint(flags);
12475
- w.object(h(v, "text"));
12476
- if (_media) w.object(v.media);
12477
- },
12478
- "requestPeerTypeCreateBot": function(w, v) {
12479
- w.uint(1048699e3);
12480
- var flags = 0;
12481
- if (v.botManaged === true) flags |= 1;
12482
- var _suggestedName = v.suggestedName !== void 0;
12483
- if (_suggestedName) flags |= 2;
12484
- var _suggestedUsername = v.suggestedUsername !== void 0;
12485
- if (_suggestedUsername) flags |= 4;
12486
- w.uint(flags);
12487
- if (_suggestedName) w.string(v.suggestedName);
12488
- if (_suggestedUsername) w.string(v.suggestedUsername);
12489
- },
12490
12592
  "inputMessageReadMetric": function(w, v) {
12491
12593
  w.uint(1076577429);
12492
12594
  w.int(h(v, "msgId"));
@@ -12513,78 +12615,431 @@ var m = {
12513
12615
  w.object(h(v, "resultText"));
12514
12616
  if (_diffText) w.object(v.diffText);
12515
12617
  },
12516
- "updateChannelPinnedTopic": function(w, v) {
12517
- w.uint(422509539);
12618
+ "stats.pollStats": function(w, v) {
12619
+ w.uint(697941741);
12620
+ w.object(h(v, "votesGraph"));
12621
+ },
12622
+ "inputAiComposeToneDefault": function(w, v) {
12623
+ w.uint(535407039);
12624
+ w.string(h(v, "tone"));
12625
+ },
12626
+ "inputAiComposeToneID": function(w, v) {
12627
+ w.uint(125026432);
12628
+ w.long(h(v, "id"));
12629
+ w.long(h(v, "accessHash"));
12630
+ },
12631
+ "inputAiComposeToneSlug": function(w, v) {
12632
+ w.uint(530584407);
12633
+ w.string(h(v, "slug"));
12634
+ },
12635
+ "aiComposeTone": function(w, v) {
12636
+ w.uint(3489021609);
12518
12637
  var flags = 0;
12519
- if (v.pinned === true) flags |= 1;
12638
+ if (v.creator === true) flags |= 1;
12639
+ var _emojiId = v.emojiId !== void 0;
12640
+ if (_emojiId) flags |= 2;
12641
+ var _installsCount = v.installsCount !== void 0;
12642
+ if (_installsCount) flags |= 4;
12643
+ var _authorId = v.authorId !== void 0;
12644
+ if (_authorId) flags |= 8;
12645
+ var _prompt = v.prompt !== void 0;
12646
+ if (_prompt) flags |= 16;
12647
+ var _exampleEnglish = v.exampleEnglish !== void 0;
12648
+ if (_exampleEnglish) flags |= 32;
12520
12649
  w.uint(flags);
12521
- w.int53(h(v, "channelId"));
12522
- w.int(h(v, "topicId"));
12650
+ w.long(h(v, "id"));
12651
+ w.long(h(v, "accessHash"));
12652
+ w.string(h(v, "slug"));
12653
+ w.string(h(v, "title"));
12654
+ if (_emojiId) w.long(v.emojiId);
12655
+ if (_prompt) w.string(v.prompt);
12656
+ if (_installsCount) w.int(v.installsCount);
12657
+ if (_authorId) w.int53(v.authorId);
12658
+ if (_exampleEnglish) w.object(v.exampleEnglish);
12523
12659
  },
12524
- "updateChannelPinnedTopics": function(w, v) {
12525
- w.uint(4263085570);
12660
+ "aiComposeToneDefault": function(w, v) {
12661
+ w.uint(2611831828);
12662
+ w.string(h(v, "tone"));
12663
+ w.long(h(v, "emojiId"));
12664
+ w.string(h(v, "title"));
12665
+ },
12666
+ "aicompose.tonesNotModified": function(w) {
12667
+ w.uint(3254018307);
12668
+ },
12669
+ "aicompose.tones": function(w, v) {
12670
+ w.uint(1822232318);
12671
+ w.long(h(v, "hash"));
12672
+ w.vector(w.object, h(v, "tones"));
12673
+ w.vector(w.object, h(v, "users"));
12674
+ },
12675
+ "aiComposeToneExample": function(w, v) {
12676
+ w.uint(4057344236);
12677
+ w.object(h(v, "from"));
12678
+ w.object(h(v, "to"));
12679
+ },
12680
+ "bots.accessSettings": function(w, v) {
12681
+ w.uint(3709845395);
12526
12682
  var flags = 0;
12527
- var _order = v.order && v.order.length;
12528
- if (_order) flags |= 1;
12683
+ if (v.restricted === true) flags |= 1;
12684
+ var _addUsers = v.addUsers && v.addUsers.length;
12685
+ if (_addUsers) flags |= 2;
12529
12686
  w.uint(flags);
12530
- w.int53(h(v, "channelId"));
12531
- if (_order) w.vector(w.int, v.order);
12687
+ if (_addUsers) w.vector(w.object, v.addUsers);
12532
12688
  },
12533
- "invokeAfterMsg": function(w, v) {
12534
- w.uint(3416209197);
12535
- w.long(h(v, "msgId"));
12536
- w.object(h(v, "query"));
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"));
12537
12694
  },
12538
- "invokeAfterMsgs": function(w, v) {
12539
- w.uint(1036301552);
12540
- w.vector(w.long, h(v, "msgIds"));
12541
- w.object(h(v, "query"));
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);
12542
12709
  },
12543
- "initConnection": function(w, v) {
12544
- w.uint(3251461801);
12710
+ "updateWebBrowserSettings": function(w, v) {
12711
+ w.uint(3281660638);
12545
12712
  var flags = 0;
12546
- var _proxy = v.proxy !== void 0;
12547
- if (_proxy) flags |= 1;
12548
- var _params = v.params !== void 0;
12549
- if (_params) flags |= 2;
12713
+ if (v.openExternalBrowser === true) flags |= 1;
12714
+ if (v.displayCloseButton === true) flags |= 2;
12550
12715
  w.uint(flags);
12551
- w.int(h(v, "apiId"));
12552
- w.string(h(v, "deviceModel"));
12553
- w.string(h(v, "systemVersion"));
12554
- w.string(h(v, "appVersion"));
12555
- w.string(h(v, "systemLangCode"));
12556
- w.string(h(v, "langPack"));
12557
- w.string(h(v, "langCode"));
12558
- if (_proxy) w.object(v.proxy);
12559
- if (_params) w.object(v.params);
12560
- w.object(h(v, "query"));
12561
12716
  },
12562
- "invokeWithLayer": function(w, v) {
12563
- w.uint(3667594509);
12564
- w.int(h(v, "layer"));
12565
- w.object(h(v, "query"));
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"));
12566
12726
  },
12567
- "invokeWithoutUpdates": function(w, v) {
12568
- w.uint(3214170551);
12569
- w.object(h(v, "query"));
12727
+ "inputSendMessageRichMessageDraftAction": function(w, v) {
12728
+ w.uint(3803331409);
12729
+ w.long(h(v, "randomId"));
12730
+ w.object(h(v, "richMessage"));
12570
12731
  },
12571
- "invokeWithMessagesRange": function(w, v) {
12572
- w.uint(911373810);
12573
- w.object(h(v, "range"));
12574
- w.object(h(v, "query"));
12732
+ "sendMessageRichMessageDraftAction": function(w, v) {
12733
+ w.uint(2731222265);
12734
+ w.long(h(v, "randomId"));
12735
+ w.object(h(v, "richMessage"));
12575
12736
  },
12576
- "invokeWithTakeout": function(w, v) {
12577
- w.uint(2896821550);
12578
- w.long(h(v, "takeoutId"));
12579
- w.object(h(v, "query"));
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"));
12580
12745
  },
12581
- "invokeWithBusinessConnection": function(w, v) {
12582
- w.uint(3710427022);
12583
- w.string(h(v, "connectionId"));
12584
- w.object(h(v, "query"));
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"));
12585
12754
  },
12586
- "invokeWithGooglePlayIntegrity": function(w, v) {
12587
- w.uint(502868356);
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
+ "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
+ "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"));
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(3572151633);
12939
+ var flags = 0;
12940
+ if (v.rtl === true) flags |= 1;
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;
12948
+ w.uint(flags);
12949
+ 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);
12953
+ },
12954
+ "inputRichMessageMarkdown": function(w, v) {
12955
+ w.uint(162300294);
12956
+ var flags = 0;
12957
+ if (v.rtl === true) flags |= 1;
12958
+ 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;
12965
+ w.uint(flags);
12966
+ 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);
12970
+ },
12971
+ "updateChannelPinnedTopic": function(w, v) {
12972
+ w.uint(422509539);
12973
+ var flags = 0;
12974
+ if (v.pinned === true) flags |= 1;
12975
+ w.uint(flags);
12976
+ w.int53(h(v, "channelId"));
12977
+ w.int(h(v, "topicId"));
12978
+ },
12979
+ "updateChannelPinnedTopics": function(w, v) {
12980
+ w.uint(4263085570);
12981
+ var flags = 0;
12982
+ var _order = v.order && v.order.length;
12983
+ if (_order) flags |= 1;
12984
+ w.uint(flags);
12985
+ w.int53(h(v, "channelId"));
12986
+ if (_order) w.vector(w.int, v.order);
12987
+ },
12988
+ "invokeAfterMsg": function(w, v) {
12989
+ w.uint(3416209197);
12990
+ w.long(h(v, "msgId"));
12991
+ w.object(h(v, "query"));
12992
+ },
12993
+ "invokeAfterMsgs": function(w, v) {
12994
+ w.uint(1036301552);
12995
+ w.vector(w.long, h(v, "msgIds"));
12996
+ w.object(h(v, "query"));
12997
+ },
12998
+ "initConnection": function(w, v) {
12999
+ w.uint(3251461801);
13000
+ var flags = 0;
13001
+ var _proxy = v.proxy !== void 0;
13002
+ if (_proxy) flags |= 1;
13003
+ var _params = v.params !== void 0;
13004
+ if (_params) flags |= 2;
13005
+ w.uint(flags);
13006
+ w.int(h(v, "apiId"));
13007
+ w.string(h(v, "deviceModel"));
13008
+ w.string(h(v, "systemVersion"));
13009
+ w.string(h(v, "appVersion"));
13010
+ w.string(h(v, "systemLangCode"));
13011
+ w.string(h(v, "langPack"));
13012
+ w.string(h(v, "langCode"));
13013
+ if (_proxy) w.object(v.proxy);
13014
+ if (_params) w.object(v.params);
13015
+ w.object(h(v, "query"));
13016
+ },
13017
+ "invokeWithLayer": function(w, v) {
13018
+ w.uint(3667594509);
13019
+ w.int(h(v, "layer"));
13020
+ w.object(h(v, "query"));
13021
+ },
13022
+ "invokeWithoutUpdates": function(w, v) {
13023
+ w.uint(3214170551);
13024
+ w.object(h(v, "query"));
13025
+ },
13026
+ "invokeWithMessagesRange": function(w, v) {
13027
+ w.uint(911373810);
13028
+ w.object(h(v, "range"));
13029
+ w.object(h(v, "query"));
13030
+ },
13031
+ "invokeWithTakeout": function(w, v) {
13032
+ w.uint(2896821550);
13033
+ w.long(h(v, "takeoutId"));
13034
+ w.object(h(v, "query"));
13035
+ },
13036
+ "invokeWithBusinessConnection": function(w, v) {
13037
+ w.uint(3710427022);
13038
+ w.string(h(v, "connectionId"));
13039
+ w.object(h(v, "query"));
13040
+ },
13041
+ "invokeWithGooglePlayIntegrity": function(w, v) {
13042
+ w.uint(502868356);
12588
13043
  w.string(h(v, "nonce"));
12589
13044
  w.string(h(v, "token"));
12590
13045
  w.object(h(v, "query"));
@@ -13525,7 +13980,11 @@ var m = {
13525
13980
  w.int(h(v, "limit"));
13526
13981
  },
13527
13982
  "contacts.search": function(w, v) {
13528
- w.uint(301470424);
13983
+ w.uint(99978511);
13984
+ var flags = 0;
13985
+ if (v.broadcasts === true) flags |= 1;
13986
+ if (v.bots === true) flags |= 2;
13987
+ w.uint(flags);
13529
13988
  w.string(h(v, "q"));
13530
13989
  w.int(h(v, "limit"));
13531
13990
  },
@@ -13550,6 +14009,7 @@ var m = {
13550
14009
  if (v.groups === true) flags |= 1024;
13551
14010
  if (v.channels === true) flags |= 32768;
13552
14011
  if (v.botsApp === true) flags |= 65536;
14012
+ if (v.botsGuestchat === true) flags |= 131072;
13553
14013
  w.uint(flags);
13554
14014
  w.int(h(v, "offset"));
13555
14015
  w.int(h(v, "limit"));
@@ -13740,7 +14200,7 @@ var m = {
13740
14200
  w.object(h(v, "action"));
13741
14201
  },
13742
14202
  "messages.sendMessage": function(w, v) {
13743
- w.uint(1415369050);
14203
+ w.uint(4277440354);
13744
14204
  var flags = 0;
13745
14205
  var _replyTo = v.replyTo !== void 0;
13746
14206
  if (_replyTo) flags |= 1;
@@ -13768,6 +14228,8 @@ var m = {
13768
14228
  if (_allowPaidStars) flags |= 2097152;
13769
14229
  var _suggestedPost = v.suggestedPost !== void 0;
13770
14230
  if (_suggestedPost) flags |= 4194304;
14231
+ var _richMessage = v.richMessage !== void 0;
14232
+ if (_richMessage) flags |= 8388608;
13771
14233
  var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
13772
14234
  if (_scheduleRepeatPeriod) flags |= 16777216;
13773
14235
  w.uint(flags);
@@ -13784,6 +14246,7 @@ var m = {
13784
14246
  if (_effect) w.long(v.effect);
13785
14247
  if (_allowPaidStars) w.long(v.allowPaidStars);
13786
14248
  if (_suggestedPost) w.object(v.suggestedPost);
14249
+ if (_richMessage) w.object(v.richMessage);
13787
14250
  },
13788
14251
  "messages.sendMedia": function(w, v) {
13789
14252
  w.uint(53536639);
@@ -14048,7 +14511,7 @@ var m = {
14048
14511
  w.string(h(v, "hash"));
14049
14512
  },
14050
14513
  "messages.importChatInvite": function(w, v) {
14051
- w.uint(1817183516);
14514
+ w.uint(3734061934);
14052
14515
  w.string(h(v, "hash"));
14053
14516
  },
14054
14517
  "messages.getStickerSet": function(w, v) {
@@ -14195,7 +14658,7 @@ var m = {
14195
14658
  w.int(h(v, "id"));
14196
14659
  },
14197
14660
  "messages.editMessage": function(w, v) {
14198
- w.uint(1374175969);
14661
+ w.uint(2970019436);
14199
14662
  var flags = 0;
14200
14663
  if (v.noWebpage === true) flags |= 2;
14201
14664
  var _replyMarkup = v.replyMarkup !== void 0;
@@ -14213,6 +14676,8 @@ var m = {
14213
14676
  if (_quickReplyShortcutId) flags |= 131072;
14214
14677
  var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
14215
14678
  if (_scheduleRepeatPeriod) flags |= 262144;
14679
+ var _richMessage = v.richMessage !== void 0;
14680
+ if (_richMessage) flags |= 8388608;
14216
14681
  w.uint(flags);
14217
14682
  w.object(h(v, "peer"));
14218
14683
  w.int(h(v, "id"));
@@ -14223,9 +14688,10 @@ var m = {
14223
14688
  if (_scheduleDate) w.int(v.scheduleDate);
14224
14689
  if (_scheduleRepeatPeriod) w.int(v.scheduleRepeatPeriod);
14225
14690
  if (_quickReplyShortcutId) w.int(v.quickReplyShortcutId);
14691
+ if (_richMessage) w.object(v.richMessage);
14226
14692
  },
14227
14693
  "messages.editInlineBotMessage": function(w, v) {
14228
- w.uint(2203418042);
14694
+ w.uint(2753805137);
14229
14695
  var flags = 0;
14230
14696
  if (v.noWebpage === true) flags |= 2;
14231
14697
  var _replyMarkup = v.replyMarkup !== void 0;
@@ -14237,12 +14703,15 @@ var m = {
14237
14703
  var _media = v.media !== void 0;
14238
14704
  if (_media) flags |= 16384;
14239
14705
  if (v.invertMedia === true) flags |= 65536;
14706
+ var _richMessage = v.richMessage !== void 0;
14707
+ if (_richMessage) flags |= 8388608;
14240
14708
  w.uint(flags);
14241
14709
  w.object(h(v, "id"));
14242
14710
  if (_message) w.string(v.message);
14243
14711
  if (_media) w.object(v.media);
14244
14712
  if (_replyMarkup) w.object(v.replyMarkup);
14245
14713
  if (_entities) w.vector(w.object, v.entities);
14714
+ if (_richMessage) w.object(v.richMessage);
14246
14715
  },
14247
14716
  "messages.getBotCallbackAnswer": function(w, v) {
14248
14717
  w.uint(2470627847);
@@ -14277,7 +14746,7 @@ var m = {
14277
14746
  w.vector(w.object, h(v, "peers"));
14278
14747
  },
14279
14748
  "messages.saveDraft": function(w, v) {
14280
- w.uint(1420701838);
14749
+ w.uint(2903482716);
14281
14750
  var flags = 0;
14282
14751
  if (v.noWebpage === true) flags |= 2;
14283
14752
  var _entities = v.entities && v.entities.length;
@@ -14291,6 +14760,8 @@ var m = {
14291
14760
  if (_effect) flags |= 128;
14292
14761
  var _suggestedPost = v.suggestedPost !== void 0;
14293
14762
  if (_suggestedPost) flags |= 256;
14763
+ var _richMessage = v.richMessage !== void 0;
14764
+ if (_richMessage) flags |= 512;
14294
14765
  w.uint(flags);
14295
14766
  if (_replyTo) w.object(v.replyTo);
14296
14767
  w.object(h(v, "peer"));
@@ -14299,6 +14770,7 @@ var m = {
14299
14770
  if (_media) w.object(v.media);
14300
14771
  if (_effect) w.long(v.effect);
14301
14772
  if (_suggestedPost) w.object(v.suggestedPost);
14773
+ if (_richMessage) w.object(v.richMessage);
14302
14774
  },
14303
14775
  "messages.getAllDrafts": function(w) {
14304
14776
  w.uint(1782549861);
@@ -15704,6 +16176,89 @@ var m = {
15704
16176
  w.string(h(v, "url"));
15705
16177
  w.string(h(v, "matchCode"));
15706
16178
  },
16179
+ "messages.composeMessageWithAI": function(w, v) {
16180
+ w.uint(3672950153);
16181
+ var flags = 0;
16182
+ if (v.proofread === true) flags |= 1;
16183
+ var _translateToLang = v.translateToLang !== void 0;
16184
+ if (_translateToLang) flags |= 2;
16185
+ var _tone = v.tone !== void 0;
16186
+ if (_tone) flags |= 4;
16187
+ if (v.emojify === true) flags |= 8;
16188
+ w.uint(flags);
16189
+ w.object(h(v, "text"));
16190
+ if (_translateToLang) w.string(v.translateToLang);
16191
+ if (_tone) w.object(v.tone);
16192
+ },
16193
+ "messages.reportReadMetrics": function(w, v) {
16194
+ w.uint(1080542694);
16195
+ w.object(h(v, "peer"));
16196
+ w.vector(w.object, h(v, "metrics"));
16197
+ },
16198
+ "messages.reportMusicListen": function(w, v) {
16199
+ w.uint(3720140825);
16200
+ w.object(h(v, "id"));
16201
+ w.int(h(v, "listenedDuration"));
16202
+ },
16203
+ "messages.addPollAnswer": function(w, v) {
16204
+ w.uint(431770477);
16205
+ w.object(h(v, "peer"));
16206
+ w.int(h(v, "msgId"));
16207
+ w.object(h(v, "answer"));
16208
+ },
16209
+ "messages.deletePollAnswer": function(w, v) {
16210
+ w.uint(2894398885);
16211
+ w.object(h(v, "peer"));
16212
+ w.int(h(v, "msgId"));
16213
+ w.bytes(h(v, "option"));
16214
+ },
16215
+ "messages.getUnreadPollVotes": function(w, v) {
16216
+ w.uint(1126722802);
16217
+ var flags = 0;
16218
+ var _topMsgId = v.topMsgId !== void 0;
16219
+ if (_topMsgId) flags |= 1;
16220
+ w.uint(flags);
16221
+ w.object(h(v, "peer"));
16222
+ if (_topMsgId) w.int(v.topMsgId);
16223
+ w.int(h(v, "offsetId"));
16224
+ w.int(h(v, "addOffset"));
16225
+ w.int(h(v, "limit"));
16226
+ w.int(h(v, "maxId"));
16227
+ w.int(h(v, "minId"));
16228
+ },
16229
+ "messages.readPollVotes": function(w, v) {
16230
+ w.uint(388019416);
16231
+ var flags = 0;
16232
+ var _topMsgId = v.topMsgId !== void 0;
16233
+ if (_topMsgId) flags |= 1;
16234
+ w.uint(flags);
16235
+ w.object(h(v, "peer"));
16236
+ if (_topMsgId) w.int(v.topMsgId);
16237
+ },
16238
+ "messages.setBotGuestChatResult": function(w, v) {
16239
+ w.uint(3102803683);
16240
+ w.long(h(v, "queryId"));
16241
+ w.object(h(v, "result"));
16242
+ },
16243
+ "messages.deleteParticipantReactions": function(w, v) {
16244
+ w.uint(2696416504);
16245
+ w.object(h(v, "peer"));
16246
+ w.object(h(v, "participant"));
16247
+ },
16248
+ "messages.deleteParticipantReaction": function(w, v) {
16249
+ w.uint(3820484652);
16250
+ w.object(h(v, "peer"));
16251
+ w.int(h(v, "msgId"));
16252
+ w.object(h(v, "participant"));
16253
+ },
16254
+ "messages.getPersonalChannelHistory": function(w, v) {
16255
+ w.uint(1442515350);
16256
+ w.object(h(v, "userId"));
16257
+ w.int(h(v, "limit"));
16258
+ w.int(h(v, "maxId"));
16259
+ w.int(h(v, "minId"));
16260
+ w.long(h(v, "hash"));
16261
+ },
15707
16262
  "updates.getState": function(w) {
15708
16263
  w.uint(3990128682);
15709
16264
  },
@@ -16036,7 +16591,7 @@ var m = {
16036
16591
  w.string(h(v, "username"));
16037
16592
  },
16038
16593
  "channels.joinChannel": function(w, v) {
16039
- w.uint(615851205);
16594
+ w.uint(2137660962);
16040
16595
  w.object(h(v, "channel"));
16041
16596
  },
16042
16597
  "channels.leaveChannel": function(w, v) {
@@ -16171,9 +16726,15 @@ var m = {
16171
16726
  w.boolean(h(v, "enabled"));
16172
16727
  },
16173
16728
  "channels.toggleJoinRequest": function(w, v) {
16174
- w.uint(1277789622);
16729
+ w.uint(248260120);
16730
+ var flags = 0;
16731
+ var _guardBot = v.guardBot !== void 0;
16732
+ if (_guardBot) flags |= 1;
16733
+ if (v.applyToInvites === true) flags |= 2;
16734
+ w.uint(flags);
16175
16735
  w.object(h(v, "channel"));
16176
16736
  w.boolean(h(v, "enabled"));
16737
+ if (_guardBot) w.object(v.guardBot);
16177
16738
  },
16178
16739
  "channels.reorderUsernames": function(w, v) {
16179
16740
  w.uint(3025988893);
@@ -16486,6 +17047,48 @@ var m = {
16486
17047
  w.uint(2713126933);
16487
17048
  w.object(h(v, "bot"));
16488
17049
  },
17050
+ "bots.checkUsername": function(w, v) {
17051
+ w.uint(2280792475);
17052
+ w.string(h(v, "username"));
17053
+ },
17054
+ "bots.createBot": function(w, v) {
17055
+ w.uint(3853614891);
17056
+ var flags = 0;
17057
+ if (v.viaDeeplink === true) flags |= 1;
17058
+ w.uint(flags);
17059
+ w.string(h(v, "name"));
17060
+ w.string(h(v, "username"));
17061
+ w.object(h(v, "managerId"));
17062
+ },
17063
+ "bots.exportBotToken": function(w, v) {
17064
+ w.uint(3171785195);
17065
+ w.object(h(v, "bot"));
17066
+ w.boolean(h(v, "revoke"));
17067
+ },
17068
+ "bots.requestWebViewButton": function(w, v) {
17069
+ w.uint(832742238);
17070
+ w.object(h(v, "userId"));
17071
+ w.object(h(v, "button"));
17072
+ },
17073
+ "bots.getRequestedWebViewButton": function(w, v) {
17074
+ w.uint(3206920179);
17075
+ w.object(h(v, "bot"));
17076
+ w.string(h(v, "webappReqId"));
17077
+ },
17078
+ "bots.getAccessSettings": function(w, v) {
17079
+ w.uint(557339555);
17080
+ w.object(h(v, "bot"));
17081
+ },
17082
+ "bots.editAccessSettings": function(w, v) {
17083
+ w.uint(830553304);
17084
+ var flags = 0;
17085
+ if (v.restricted === true) flags |= 1;
17086
+ var _addUsers = v.addUsers && v.addUsers.length;
17087
+ if (_addUsers) flags |= 2;
17088
+ w.uint(flags);
17089
+ w.object(h(v, "bot"));
17090
+ if (_addUsers) w.vector(w.object, v.addUsers);
17091
+ },
16489
17092
  "payments.getPaymentForm": function(w, v) {
16490
17093
  w.uint(924093883);
16491
17094
  var flags = 0;
@@ -17420,6 +18023,14 @@ var m = {
17420
18023
  w.string(h(v, "offset"));
17421
18024
  w.int(h(v, "limit"));
17422
18025
  },
18026
+ "stats.getPollStats": function(w, v) {
18027
+ w.uint(3263036008);
18028
+ var flags = 0;
18029
+ if (v.dark === true) flags |= 1;
18030
+ w.uint(flags);
18031
+ w.object(h(v, "peer"));
18032
+ w.int(h(v, "msgId"));
18033
+ },
17423
18034
  "chatlists.exportChatlistInvite": function(w, v) {
17424
18035
  w.uint(2222081934);
17425
18036
  w.object(h(v, "chatlist"));
@@ -17834,92 +18445,92 @@ var m = {
17834
18445
  w.uint(3189671354);
17835
18446
  w.object(h(v, "collectible"));
17836
18447
  },
17837
- "messages.composeMessageWithAI": function(w, v) {
17838
- w.uint(4248988414);
18448
+ "aicompose.createTone": function(w, v) {
18449
+ w.uint(1252538643);
17839
18450
  var flags = 0;
17840
- if (v.proofread === true) flags |= 1;
17841
- var _translateToLang = v.translateToLang !== void 0;
17842
- if (_translateToLang) flags |= 2;
17843
- var _changeTone = v.changeTone !== void 0;
17844
- if (_changeTone) flags |= 4;
17845
- if (v.emojify === true) flags |= 8;
18451
+ if (v.displayAuthor === true) flags |= 1;
17846
18452
  w.uint(flags);
17847
- w.object(h(v, "text"));
17848
- if (_translateToLang) w.string(v.translateToLang);
17849
- if (_changeTone) w.string(v.changeTone);
18453
+ w.long(h(v, "emojiId"));
18454
+ w.string(h(v, "title"));
18455
+ w.string(h(v, "prompt"));
17850
18456
  },
17851
- "messages.reportReadMetrics": function(w, v) {
17852
- w.uint(1080542694);
17853
- w.object(h(v, "peer"));
17854
- w.vector(w.object, h(v, "metrics"));
18457
+ "aicompose.updateTone": function(w, v) {
18458
+ w.uint(2419838809);
18459
+ var flags = 0;
18460
+ var _displayAuthor = v.displayAuthor !== void 0;
18461
+ if (_displayAuthor) flags |= 1;
18462
+ var _emojiId = v.emojiId !== void 0;
18463
+ if (_emojiId) flags |= 2;
18464
+ var _title = v.title !== void 0;
18465
+ if (_title) flags |= 4;
18466
+ var _prompt = v.prompt !== void 0;
18467
+ if (_prompt) flags |= 8;
18468
+ w.uint(flags);
18469
+ w.object(h(v, "tone"));
18470
+ if (_displayAuthor) w.boolean(v.displayAuthor);
18471
+ if (_emojiId) w.long(v.emojiId);
18472
+ if (_title) w.string(v.title);
18473
+ if (_prompt) w.string(v.prompt);
17855
18474
  },
17856
- "messages.reportMusicListen": function(w, v) {
17857
- w.uint(3720140825);
17858
- w.object(h(v, "id"));
17859
- w.int(h(v, "listenedDuration"));
18475
+ "aicompose.saveTone": function(w, v) {
18476
+ w.uint(394447793);
18477
+ w.object(h(v, "tone"));
18478
+ w.boolean(h(v, "unsave"));
17860
18479
  },
17861
- "messages.addPollAnswer": function(w, v) {
17862
- w.uint(431770477);
17863
- w.object(h(v, "peer"));
17864
- w.int(h(v, "msgId"));
17865
- w.object(h(v, "answer"));
18480
+ "aicompose.deleteTone": function(w, v) {
18481
+ w.uint(3711512938);
18482
+ w.object(h(v, "tone"));
17866
18483
  },
17867
- "messages.deletePollAnswer": function(w, v) {
17868
- w.uint(2894398885);
17869
- w.object(h(v, "peer"));
17870
- w.int(h(v, "msgId"));
17871
- w.bytes(h(v, "option"));
18484
+ "aicompose.getTone": function(w, v) {
18485
+ w.uint(3001596419);
18486
+ w.object(h(v, "tone"));
17872
18487
  },
17873
- "messages.getUnreadPollVotes": function(w, v) {
17874
- w.uint(1126722802);
17875
- var flags = 0;
17876
- var _topMsgId = v.topMsgId !== void 0;
17877
- if (_topMsgId) flags |= 1;
17878
- w.uint(flags);
17879
- w.object(h(v, "peer"));
17880
- if (_topMsgId) w.int(v.topMsgId);
17881
- w.int(h(v, "offsetId"));
17882
- w.int(h(v, "addOffset"));
17883
- w.int(h(v, "limit"));
17884
- w.int(h(v, "maxId"));
17885
- w.int(h(v, "minId"));
18488
+ "aicompose.getTones": function(w, v) {
18489
+ w.uint(2882900481);
18490
+ w.long(h(v, "hash"));
17886
18491
  },
17887
- "messages.readPollVotes": function(w, v) {
17888
- w.uint(388019416);
18492
+ "aicompose.getToneExample": function(w, v) {
18493
+ w.uint(3518278420);
18494
+ w.object(h(v, "tone"));
18495
+ w.int(h(v, "num"));
18496
+ },
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);
17889
18507
  var flags = 0;
17890
- var _topMsgId = v.topMsgId !== void 0;
17891
- if (_topMsgId) flags |= 1;
18508
+ if (v.openExternalBrowser === true) flags |= 1;
18509
+ if (v.displayCloseButton === true) flags |= 2;
17892
18510
  w.uint(flags);
17893
- w.object(h(v, "peer"));
17894
- if (_topMsgId) w.int(v.topMsgId);
17895
18511
  },
17896
- "bots.checkUsername": function(w, v) {
17897
- w.uint(2280792475);
17898
- w.string(h(v, "username"));
17899
- },
17900
- "bots.createBot": function(w, v) {
17901
- w.uint(3853614891);
18512
+ "account.toggleWebBrowserSettingsException": function(w, v) {
18513
+ w.uint(1626161705);
17902
18514
  var flags = 0;
17903
- if (v.viaDeeplink === true) flags |= 1;
18515
+ var _openExternalBrowser = v.openExternalBrowser !== void 0;
18516
+ if (_openExternalBrowser) flags |= 1;
18517
+ if (v.delete === true) flags |= 2;
17904
18518
  w.uint(flags);
17905
- w.string(h(v, "name"));
17906
- w.string(h(v, "username"));
17907
- w.object(h(v, "managerId"));
18519
+ if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
18520
+ w.string(h(v, "url"));
17908
18521
  },
17909
- "bots.exportBotToken": function(w, v) {
17910
- w.uint(3171785195);
17911
- w.object(h(v, "bot"));
17912
- w.boolean(h(v, "revoke"));
18522
+ "account.deleteWebBrowserSettingsExceptions": function(w) {
18523
+ w.uint(2258663005);
17913
18524
  },
17914
- "bots.requestWebViewButton": function(w, v) {
17915
- w.uint(832742238);
17916
- w.object(h(v, "userId"));
17917
- w.object(h(v, "button"));
18525
+ "messages.getRichMessage": function(w, v) {
18526
+ w.uint(1343580623);
18527
+ w.object(h(v, "peer"));
18528
+ w.int(h(v, "id"));
17918
18529
  },
17919
- "bots.getRequestedWebViewButton": function(w, v) {
17920
- w.uint(3206920179);
17921
- w.object(h(v, "bot"));
17922
- w.string(h(v, "webappReqId"));
18530
+ "bots.setJoinChatResults": function(w, v) {
18531
+ w.uint(3877259280);
18532
+ w.long(h(v, "queryId"));
18533
+ w.object(h(v, "result"));
17923
18534
  },
17924
18535
  "channels.editCreator": function(w, v) {
17925
18536
  w.uint(2402864415);
@@ -18302,6 +18913,7 @@ var m = {
18302
18913
  "messageActionChangeCreator": 12,
18303
18914
  "messageActionNoForwardsToggle": 12,
18304
18915
  "messageActionNoForwardsRequest": 16,
18916
+ "messageActionManagedBotCreated": 12,
18305
18917
  "photoEmpty": 12,
18306
18918
  "geoPointEmpty": 4,
18307
18919
  "inputNotifyUsers": 4,
@@ -18340,6 +18952,7 @@ var m = {
18340
18952
  "inputMessagesFilterGeo": 4,
18341
18953
  "inputMessagesFilterContacts": 4,
18342
18954
  "inputMessagesFilterPinned": 4,
18955
+ "inputMessagesFilterPoll": 4,
18343
18956
  "updateMessageID": 16,
18344
18957
  "updateEncryptedChatTyping": 8,
18345
18958
  "updateEncryptedMessagesRead": 16,
@@ -18386,6 +18999,8 @@ var m = {
18386
18999
  "updateMonoForumNoPaidException": 28,
18387
19000
  "updatePinnedForumTopic": 24,
18388
19001
  "updateStarGiftCraftFail": 4,
19002
+ "updateManagedBot": 24,
19003
+ "updateAiComposeTones": 4,
18389
19004
  "updates.state": 24,
18390
19005
  "updates.differenceEmpty": 12,
18391
19006
  "updates.differenceTooLong": 8,
@@ -18508,6 +19123,8 @@ var m = {
18508
19123
  "messageEntityCustomEmoji": 20,
18509
19124
  "messageEntityBlockquote": 16,
18510
19125
  "messageEntityFormattedDate": 20,
19126
+ "messageEntityDiffInsert": 12,
19127
+ "messageEntityDiffDelete": 12,
18511
19128
  "inputChannelEmpty": 4,
18512
19129
  "inputChannel": 20,
18513
19130
  "messageRange": 12,
@@ -18540,6 +19157,7 @@ var m = {
18540
19157
  "topPeerCategoryForwardUsers": 4,
18541
19158
  "topPeerCategoryForwardChats": 4,
18542
19159
  "topPeerCategoryBotsApp": 4,
19160
+ "topPeerCategoryBotsGuestChat": 4,
18543
19161
  "contacts.topPeersNotModified": 4,
18544
19162
  "contacts.topPeersDisabled": 4,
18545
19163
  "messages.featuredStickersNotModified": 8,
@@ -18631,6 +19249,7 @@ var m = {
18631
19249
  "baseThemeNight": 4,
18632
19250
  "baseThemeTinted": 4,
18633
19251
  "baseThemeArctic": 4,
19252
+ "webPageAttributeAiComposeTone": 12,
18634
19253
  "dialogFilterDefault": 4,
18635
19254
  "statsDateRangeDays": 12,
18636
19255
  "statsAbsValueAndPrev": 20,
@@ -18783,12 +19402,14 @@ var m = {
18783
19402
  "starGiftAttributeRarityRare": 4,
18784
19403
  "starGiftAttributeRarityEpic": 4,
18785
19404
  "starGiftAttributeRarityLegendary": 4,
18786
- "messageActionManagedBotCreated": 12,
18787
- "inputMessagesFilterPoll": 4,
18788
- "updateManagedBot": 24,
18789
- "messageEntityDiffInsert": 12,
18790
- "messageEntityDiffDelete": 12,
18791
19405
  "inputMessageReadMetric": 32,
19406
+ "inputAiComposeToneID": 20,
19407
+ "aicompose.tonesNotModified": 4,
19408
+ "updateWebBrowserSettings": 8,
19409
+ "joinChatBotResultApproved": 4,
19410
+ "joinChatBotResultDeclined": 4,
19411
+ "joinChatBotResultQueued": 4,
19412
+ "account.webBrowserSettingsNotModified": 4,
18792
19413
  "updateChannelPinnedTopic": 20,
18793
19414
  "auth.logOut": 4,
18794
19415
  "auth.resetAuthorizations": 4,
@@ -18952,6 +19573,10 @@ var m = {
18952
19573
  "smsjobs.leave": 4,
18953
19574
  "smsjobs.updateSettings": 8,
18954
19575
  "smsjobs.getStatus": 4,
19576
+ "aicompose.getTones": 12,
19577
+ "account.getWebBrowserSettings": 12,
19578
+ "account.updateWebBrowserSettings": 8,
19579
+ "account.deleteWebBrowserSettingsExceptions": 4,
18955
19580
  "mt_dh_gen_ok": 52,
18956
19581
  "mt_dh_gen_retry": 52,
18957
19582
  "mt_dh_gen_fail": 52,