@mtcute/core 0.30.3 → 0.32.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 (313) hide show
  1. package/client.cjs +85 -0
  2. package/client.js +85 -0
  3. package/highlevel/client.d.cts +411 -116
  4. package/highlevel/client.d.ts +411 -116
  5. package/highlevel/methods/auth/sign-in-qr.cjs +2 -0
  6. package/highlevel/methods/auth/sign-in-qr.js +2 -0
  7. package/highlevel/methods/auth/sign-in-qr.test.d.cts +1 -0
  8. package/highlevel/methods/auth/sign-in-qr.test.d.ts +1 -0
  9. package/highlevel/methods/chats/build-peers-index.cjs +45 -0
  10. package/highlevel/methods/chats/build-peers-index.d.cts +13 -0
  11. package/highlevel/methods/chats/build-peers-index.d.ts +13 -0
  12. package/highlevel/methods/chats/build-peers-index.js +40 -0
  13. package/highlevel/methods/chats/join-chat.cjs +1 -1
  14. package/highlevel/methods/chats/join-chat.d.cts +2 -1
  15. package/highlevel/methods/chats/join-chat.d.ts +2 -1
  16. package/highlevel/methods/chats/join-chat.js +1 -1
  17. package/highlevel/methods/chats/transfer-chat-ownership.cjs +6 -17
  18. package/highlevel/methods/chats/transfer-chat-ownership.js +6 -17
  19. package/highlevel/methods/communities/ban-community-participant.cjs +30 -0
  20. package/highlevel/methods/communities/ban-community-participant.d.cts +20 -0
  21. package/highlevel/methods/communities/ban-community-participant.d.ts +20 -0
  22. package/highlevel/methods/communities/ban-community-participant.js +25 -0
  23. package/highlevel/methods/communities/create-community.cjs +29 -0
  24. package/highlevel/methods/communities/create-community.d.cts +22 -0
  25. package/highlevel/methods/communities/create-community.d.ts +22 -0
  26. package/highlevel/methods/communities/create-community.js +24 -0
  27. package/highlevel/methods/communities/get-community-link-requests.cjs +27 -0
  28. package/highlevel/methods/communities/get-community-link-requests.d.cts +17 -0
  29. package/highlevel/methods/communities/get-community-link-requests.d.ts +17 -0
  30. package/highlevel/methods/communities/get-community-link-requests.js +22 -0
  31. package/highlevel/methods/communities/get-community-participant-chats.cjs +24 -0
  32. package/highlevel/methods/communities/get-community-participant-chats.d.cts +17 -0
  33. package/highlevel/methods/communities/get-community-participant-chats.d.ts +17 -0
  34. package/highlevel/methods/communities/get-community-participant-chats.js +19 -0
  35. package/highlevel/methods/communities/get-joined-communities.cjs +21 -0
  36. package/highlevel/methods/communities/get-joined-communities.d.cts +6 -0
  37. package/highlevel/methods/communities/get-joined-communities.d.ts +6 -0
  38. package/highlevel/methods/communities/get-joined-communities.js +16 -0
  39. package/highlevel/methods/communities/hide-community-link-request.cjs +30 -0
  40. package/highlevel/methods/communities/hide-community-link-request.d.cts +22 -0
  41. package/highlevel/methods/communities/hide-community-link-request.d.ts +22 -0
  42. package/highlevel/methods/communities/hide-community-link-request.js +25 -0
  43. package/highlevel/methods/communities/link-community-peer.cjs +32 -0
  44. package/highlevel/methods/communities/link-community-peer.d.cts +22 -0
  45. package/highlevel/methods/communities/link-community-peer.d.ts +22 -0
  46. package/highlevel/methods/communities/link-community-peer.js +27 -0
  47. package/highlevel/methods/communities/toggle-community-collapsed.cjs +18 -0
  48. package/highlevel/methods/communities/toggle-community-collapsed.d.cts +16 -0
  49. package/highlevel/methods/communities/toggle-community-collapsed.d.ts +16 -0
  50. package/highlevel/methods/communities/toggle-community-collapsed.js +13 -0
  51. package/highlevel/methods/ephemeral/delete-all-welcome-messages.cjs +17 -0
  52. package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.cts +8 -0
  53. package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.ts +8 -0
  54. package/highlevel/methods/ephemeral/delete-all-welcome-messages.js +12 -0
  55. package/highlevel/methods/ephemeral/delete-ephemeral-message.cjs +20 -0
  56. package/highlevel/methods/ephemeral/delete-ephemeral-message.d.cts +13 -0
  57. package/highlevel/methods/ephemeral/delete-ephemeral-message.d.ts +13 -0
  58. package/highlevel/methods/ephemeral/delete-ephemeral-message.js +15 -0
  59. package/highlevel/methods/ephemeral/delete-welcome-message.cjs +18 -0
  60. package/highlevel/methods/ephemeral/delete-welcome-message.d.cts +9 -0
  61. package/highlevel/methods/ephemeral/delete-welcome-message.d.ts +9 -0
  62. package/highlevel/methods/ephemeral/delete-welcome-message.js +13 -0
  63. package/highlevel/methods/ephemeral/edit-ephemeral-message.cjs +41 -0
  64. package/highlevel/methods/ephemeral/edit-ephemeral-message.d.cts +39 -0
  65. package/highlevel/methods/ephemeral/edit-ephemeral-message.d.ts +39 -0
  66. package/highlevel/methods/ephemeral/edit-ephemeral-message.js +36 -0
  67. package/highlevel/methods/ephemeral/find-in-update.cjs +27 -0
  68. package/highlevel/methods/ephemeral/find-in-update.d.cts +8 -0
  69. package/highlevel/methods/ephemeral/find-in-update.d.ts +8 -0
  70. package/highlevel/methods/ephemeral/find-in-update.js +22 -0
  71. package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.cjs +31 -0
  72. package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.d.cts +29 -0
  73. package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.d.ts +29 -0
  74. package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.js +26 -0
  75. package/highlevel/methods/ephemeral/get-welcome-messages.cjs +29 -0
  76. package/highlevel/methods/ephemeral/get-welcome-messages.d.cts +8 -0
  77. package/highlevel/methods/ephemeral/get-welcome-messages.d.ts +8 -0
  78. package/highlevel/methods/ephemeral/get-welcome-messages.js +24 -0
  79. package/highlevel/methods/ephemeral/send-ephemeral-message.cjs +48 -0
  80. package/highlevel/methods/ephemeral/send-ephemeral-message.d.cts +47 -0
  81. package/highlevel/methods/ephemeral/send-ephemeral-message.d.ts +47 -0
  82. package/highlevel/methods/ephemeral/send-ephemeral-message.js +43 -0
  83. package/highlevel/methods/files/download-iterable.cjs +7 -2
  84. package/highlevel/methods/files/download-iterable.js +7 -2
  85. package/highlevel/methods/files/download-iterable.test.d.cts +1 -0
  86. package/highlevel/methods/files/download-iterable.test.d.ts +1 -0
  87. package/highlevel/methods/files/download-stream.cjs +5 -6
  88. package/highlevel/methods/files/download-stream.js +5 -6
  89. package/highlevel/methods/files/normalize-input-media.cjs +25 -4
  90. package/highlevel/methods/files/normalize-input-media.js +25 -4
  91. package/highlevel/methods/forums/create-forum-topic.d.cts +7 -0
  92. package/highlevel/methods/forums/create-forum-topic.d.ts +7 -0
  93. package/highlevel/methods/forums/delete-forum-topic-history.d.cts +1 -1
  94. package/highlevel/methods/forums/delete-forum-topic-history.d.ts +1 -1
  95. package/highlevel/methods/forums/edit-forum-topic.cjs +2 -2
  96. package/highlevel/methods/forums/edit-forum-topic.d.cts +2 -2
  97. package/highlevel/methods/forums/edit-forum-topic.d.ts +2 -2
  98. package/highlevel/methods/forums/edit-forum-topic.js +2 -2
  99. package/highlevel/methods/forums/get-forum-topics-by-id.cjs +5 -1
  100. package/highlevel/methods/forums/get-forum-topics-by-id.d.cts +9 -1
  101. package/highlevel/methods/forums/get-forum-topics-by-id.d.ts +9 -1
  102. package/highlevel/methods/forums/get-forum-topics-by-id.js +5 -1
  103. package/highlevel/methods/forums/get-forum-topics-by-id.test.d.cts +1 -0
  104. package/highlevel/methods/forums/get-forum-topics-by-id.test.d.ts +1 -0
  105. package/highlevel/methods/forums/get-forum-topics.cjs +1 -1
  106. package/highlevel/methods/forums/get-forum-topics.js +1 -1
  107. package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +1 -1
  108. package/highlevel/methods/forums/toggle-forum-topic-closed.d.cts +1 -1
  109. package/highlevel/methods/forums/toggle-forum-topic-closed.d.ts +1 -1
  110. package/highlevel/methods/forums/toggle-forum-topic-closed.js +1 -1
  111. package/highlevel/methods/forums/toggle-forum-topic-pinned.d.cts +1 -1
  112. package/highlevel/methods/forums/toggle-forum-topic-pinned.d.ts +1 -1
  113. package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +3 -3
  114. package/highlevel/methods/forums/toggle-general-topic-hidden.js +4 -4
  115. package/highlevel/methods/gifts/buy-resale-gift.cjs +5 -2
  116. package/highlevel/methods/gifts/buy-resale-gift.d.cts +11 -1
  117. package/highlevel/methods/gifts/buy-resale-gift.d.ts +11 -1
  118. package/highlevel/methods/gifts/buy-resale-gift.js +5 -2
  119. package/highlevel/methods/messages/forward-messages.cjs +1 -0
  120. package/highlevel/methods/messages/forward-messages.d.cts +2 -0
  121. package/highlevel/methods/messages/forward-messages.d.ts +2 -0
  122. package/highlevel/methods/messages/forward-messages.js +1 -0
  123. package/highlevel/methods/messages/normalize-rich-message.cjs +3 -0
  124. package/highlevel/methods/messages/normalize-rich-message.js +3 -0
  125. package/highlevel/methods/messages/send-common.d.cts +7 -1
  126. package/highlevel/methods/messages/send-common.d.ts +7 -1
  127. package/highlevel/methods/messages/send-text.cjs +70 -35
  128. package/highlevel/methods/messages/send-text.js +70 -35
  129. package/highlevel/methods/messages/send-typing.d.cts +3 -3
  130. package/highlevel/methods/messages/send-typing.d.ts +3 -3
  131. package/highlevel/methods/messages/set-typing.cjs +1 -1
  132. package/highlevel/methods/messages/set-typing.d.cts +2 -2
  133. package/highlevel/methods/messages/set-typing.d.ts +2 -2
  134. package/highlevel/methods/messages/set-typing.js +1 -1
  135. package/highlevel/methods/users/resolve-peer.cjs +11 -1
  136. package/highlevel/methods/users/resolve-peer.js +11 -1
  137. package/highlevel/methods.d.cts +19 -0
  138. package/highlevel/methods.d.ts +19 -0
  139. package/highlevel/storage/service/peers.cjs +25 -0
  140. package/highlevel/storage/service/peers.js +25 -0
  141. package/highlevel/storage/service/peers.test.d.cts +1 -0
  142. package/highlevel/storage/service/peers.test.d.ts +1 -0
  143. package/highlevel/types/bots/keyboards/builder.cjs +5 -5
  144. package/highlevel/types/bots/keyboards/builder.d.cts +8 -9
  145. package/highlevel/types/bots/keyboards/builder.d.ts +8 -9
  146. package/highlevel/types/bots/keyboards/builder.js +5 -5
  147. package/highlevel/types/bots/keyboards/factories.cjs +51 -103
  148. package/highlevel/types/bots/keyboards/factories.d.cts +58 -89
  149. package/highlevel/types/bots/keyboards/factories.d.ts +58 -89
  150. package/highlevel/types/bots/keyboards/factories.js +51 -103
  151. package/highlevel/types/bots/keyboards/index.d.cts +3 -3
  152. package/highlevel/types/bots/keyboards/index.d.ts +3 -3
  153. package/highlevel/types/bots/keyboards/normalize.cjs +131 -0
  154. package/highlevel/types/bots/keyboards/normalize.d.cts +10 -0
  155. package/highlevel/types/bots/keyboards/normalize.d.ts +10 -0
  156. package/highlevel/types/bots/keyboards/normalize.js +126 -0
  157. package/highlevel/types/bots/keyboards/types.d.cts +160 -4
  158. package/highlevel/types/bots/keyboards/types.d.ts +160 -4
  159. package/highlevel/types/conversation.cjs +8 -0
  160. package/highlevel/types/conversation.d.cts +1 -0
  161. package/highlevel/types/conversation.d.ts +1 -0
  162. package/highlevel/types/conversation.js +10 -2
  163. package/highlevel/types/conversation.test.d.cts +1 -0
  164. package/highlevel/types/conversation.test.d.ts +1 -0
  165. package/highlevel/types/messages/dialog.cjs +8 -1
  166. package/highlevel/types/messages/dialog.d.cts +3 -0
  167. package/highlevel/types/messages/dialog.d.ts +3 -0
  168. package/highlevel/types/messages/dialog.js +8 -1
  169. package/highlevel/types/messages/dialog.test.d.cts +1 -0
  170. package/highlevel/types/messages/dialog.test.d.ts +1 -0
  171. package/highlevel/types/messages/ephemeral-message.cjs +135 -0
  172. package/highlevel/types/messages/ephemeral-message.d.cts +75 -0
  173. package/highlevel/types/messages/ephemeral-message.d.ts +75 -0
  174. package/highlevel/types/messages/ephemeral-message.js +130 -0
  175. package/highlevel/types/messages/index.d.cts +1 -0
  176. package/highlevel/types/messages/index.d.ts +1 -0
  177. package/highlevel/types/messages/message-action.cjs +14 -1
  178. package/highlevel/types/messages/message-action.d.cts +18 -1
  179. package/highlevel/types/messages/message-action.d.ts +18 -1
  180. package/highlevel/types/messages/message-action.js +14 -1
  181. package/highlevel/types/messages/message.cjs +7 -2
  182. package/highlevel/types/messages/message.d.cts +2 -2
  183. package/highlevel/types/messages/message.d.ts +2 -2
  184. package/highlevel/types/messages/message.js +8 -3
  185. package/highlevel/types/messages/replied-message.cjs +5 -1
  186. package/highlevel/types/messages/replied-message.d.cts +5 -1
  187. package/highlevel/types/messages/replied-message.d.ts +5 -1
  188. package/highlevel/types/messages/replied-message.js +5 -1
  189. package/highlevel/types/messages/rich/inner.cjs +37 -0
  190. package/highlevel/types/messages/rich/inner.d.cts +19 -0
  191. package/highlevel/types/messages/rich/inner.d.ts +19 -0
  192. package/highlevel/types/messages/rich/inner.js +37 -0
  193. package/highlevel/types/peers/chat.cjs +23 -3
  194. package/highlevel/types/peers/chat.d.cts +8 -3
  195. package/highlevel/types/peers/chat.d.ts +8 -3
  196. package/highlevel/types/peers/chat.js +24 -4
  197. package/highlevel/types/peers/community-peer.cjs +60 -0
  198. package/highlevel/types/peers/community-peer.d.cts +37 -0
  199. package/highlevel/types/peers/community-peer.d.ts +37 -0
  200. package/highlevel/types/peers/community-peer.js +55 -0
  201. package/highlevel/types/peers/full-chat.cjs +24 -5
  202. package/highlevel/types/peers/full-chat.d.cts +7 -0
  203. package/highlevel/types/peers/full-chat.d.ts +7 -0
  204. package/highlevel/types/peers/full-chat.js +24 -5
  205. package/highlevel/types/peers/index.d.cts +1 -0
  206. package/highlevel/types/peers/index.d.ts +1 -0
  207. package/highlevel/types/peers/peer.cjs +2 -0
  208. package/highlevel/types/peers/peer.js +2 -0
  209. package/highlevel/types/peers/typing-status.d.cts +4 -1
  210. package/highlevel/types/peers/typing-status.d.ts +4 -1
  211. package/highlevel/types/peers/user.cjs +6 -0
  212. package/highlevel/types/peers/user.d.cts +2 -0
  213. package/highlevel/types/peers/user.d.ts +2 -0
  214. package/highlevel/types/peers/user.js +6 -0
  215. package/highlevel/types/updates/delete-ephemeral-messages-update.cjs +27 -0
  216. package/highlevel/types/updates/delete-ephemeral-messages-update.d.cts +15 -0
  217. package/highlevel/types/updates/delete-ephemeral-messages-update.d.ts +15 -0
  218. package/highlevel/types/updates/delete-ephemeral-messages-update.js +22 -0
  219. package/highlevel/types/updates/ephemeral-callback-query.cjs +69 -0
  220. package/highlevel/types/updates/ephemeral-callback-query.d.cts +44 -0
  221. package/highlevel/types/updates/ephemeral-callback-query.d.ts +44 -0
  222. package/highlevel/types/updates/ephemeral-callback-query.js +64 -0
  223. package/highlevel/types/updates/index.d.cts +16 -2
  224. package/highlevel/types/updates/index.d.ts +16 -2
  225. package/highlevel/types/updates/parse-update.cjs +12 -1
  226. package/highlevel/types/updates/parse-update.js +12 -1
  227. package/highlevel/types/updates/user-typing-update.cjs +18 -0
  228. package/highlevel/types/updates/user-typing-update.d.cts +9 -0
  229. package/highlevel/types/updates/user-typing-update.d.ts +9 -0
  230. package/highlevel/types/updates/user-typing-update.js +18 -0
  231. package/highlevel/updates/manager.cjs +71 -41
  232. package/highlevel/updates/manager.d.cts +1 -0
  233. package/highlevel/updates/manager.d.ts +1 -0
  234. package/highlevel/updates/manager.js +71 -41
  235. package/highlevel/updates/manager.test.d.cts +1 -0
  236. package/highlevel/updates/manager.test.d.ts +1 -0
  237. package/highlevel/utils/stream-utils.cjs +8 -4
  238. package/highlevel/utils/stream-utils.js +8 -4
  239. package/highlevel/utils/stream-utils.test.d.cts +1 -0
  240. package/highlevel/utils/stream-utils.test.d.ts +1 -0
  241. package/highlevel/utils/walk-page-blocks.cjs +9 -0
  242. package/highlevel/utils/walk-page-blocks.js +9 -0
  243. package/index.cjs +10 -0
  244. package/index.js +11 -1
  245. package/methods.cjs +33 -0
  246. package/methods.js +33 -0
  247. package/network/client.cjs +4 -3
  248. package/network/client.d.cts +1 -0
  249. package/network/client.d.ts +1 -0
  250. package/network/client.js +4 -3
  251. package/network/middlewares/flood-waiter.cjs +2 -2
  252. package/network/middlewares/flood-waiter.js +2 -2
  253. package/network/middlewares/internal-errors.cjs +1 -1
  254. package/network/middlewares/internal-errors.js +1 -1
  255. package/network/middlewares/media-throttle.cjs +1 -1
  256. package/network/middlewares/media-throttle.js +1 -1
  257. package/network/mtproto-session.cjs +9 -2
  258. package/network/mtproto-session.d.cts +3 -1
  259. package/network/mtproto-session.d.ts +3 -1
  260. package/network/mtproto-session.js +9 -2
  261. package/network/mtproxy/index.cjs +4 -3
  262. package/network/mtproxy/index.d.cts +2 -2
  263. package/network/mtproxy/index.d.ts +2 -2
  264. package/network/mtproxy/index.js +4 -3
  265. package/network/network-manager.cjs +44 -16
  266. package/network/network-manager.d.cts +10 -3
  267. package/network/network-manager.d.ts +10 -3
  268. package/network/network-manager.js +45 -17
  269. package/network/network-manager.test.d.cts +1 -0
  270. package/network/network-manager.test.d.ts +1 -0
  271. package/network/persistent-connection.cjs +10 -2
  272. package/network/persistent-connection.js +10 -2
  273. package/network/session-connection.cjs +15 -6
  274. package/network/session-connection.js +15 -6
  275. package/network/session-connection.test.d.cts +1 -0
  276. package/network/session-connection.test.d.ts +1 -0
  277. package/network/transports/abstract.cjs +16 -0
  278. package/network/transports/abstract.d.cts +8 -2
  279. package/network/transports/abstract.d.ts +8 -2
  280. package/network/transports/abstract.js +17 -1
  281. package/network/transports/obfuscated.cjs +3 -1
  282. package/network/transports/obfuscated.js +3 -1
  283. package/package.json +6 -6
  284. package/tl/api-schema.json +1 -1
  285. package/tl/binary/reader.cjs +221 -103
  286. package/tl/binary/reader.js +221 -103
  287. package/tl/binary/writer.cjs +693 -277
  288. package/tl/binary/writer.js +693 -277
  289. package/tl/compat/reader.cjs +93 -0
  290. package/tl/compat/reader.js +93 -0
  291. package/tl/index.d.cts +12529 -4762
  292. package/tl/index.d.ts +12529 -4762
  293. package/tl/inner-tl.cjs +90 -24
  294. package/tl/inner-tl.js +90 -24
  295. package/tl/raw-errors.json +1 -1
  296. package/tl/rpc-error.test.d.cts +1 -0
  297. package/tl/rpc-error.test.d.ts +1 -0
  298. package/utils/abort-signal.cjs +1 -12
  299. package/utils/abort-signal.js +1 -12
  300. package/utils/abort-signal.test.d.cts +1 -0
  301. package/utils/abort-signal.test.d.ts +1 -0
  302. package/utils/binary/compat.cjs +189 -29
  303. package/utils/binary/compat.js +189 -29
  304. package/utils/early-timer.cjs +3 -11
  305. package/utils/early-timer.js +3 -11
  306. package/utils/early-timer.test.d.cts +1 -0
  307. package/utils/early-timer.test.d.ts +1 -0
  308. package/utils/function-utils.cjs +9 -4
  309. package/utils/function-utils.js +9 -4
  310. package/utils/links/bots.cjs +10 -2
  311. package/utils/links/bots.js +10 -2
  312. package/utils/peer-utils.cjs +8 -0
  313. package/utils/peer-utils.js +8 -0
@@ -491,7 +491,7 @@ var m = {
491
491
  w.int53(h(v, "id"));
492
492
  },
493
493
  "user": function(w, v) {
494
- w.uint(829899656);
494
+ w.uint(2981678211);
495
495
  var flags = 0;
496
496
  var _accessHash = v.accessHash !== void 0;
497
497
  if (_accessHash) flags |= 1;
@@ -563,6 +563,8 @@ var m = {
563
563
  if (v.botCanManageBots === true) flags2 |= 262144;
564
564
  if (v.botGuestchat === true) flags2 |= 524288;
565
565
  if (v.botGuard === true) flags2 |= 1048576;
566
+ var _linkedCommunityId = v.linkedCommunityId !== void 0;
567
+ if (_linkedCommunityId) flags2 |= 2097152;
566
568
  w.uint(flags2);
567
569
  w.int53(h(v, "id"));
568
570
  if (_accessHash) w.long(v.accessHash);
@@ -584,6 +586,7 @@ var m = {
584
586
  if (_botActiveUsers) w.int(v.botActiveUsers);
585
587
  if (_botVerificationIcon) w.long(v.botVerificationIcon);
586
588
  if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
589
+ if (_linkedCommunityId) w.int53(v.linkedCommunityId);
587
590
  },
588
591
  "userProfilePhotoEmpty": function(w) {
589
592
  w.uint(1326562017);
@@ -665,7 +668,7 @@ var m = {
665
668
  w.string(h(v, "title"));
666
669
  },
667
670
  "channel": function(w, v) {
668
- w.uint(473084188);
671
+ w.uint(3567203526);
669
672
  var flags = 0;
670
673
  if (v.creator === true) flags |= 1;
671
674
  if (v.left === true) flags |= 4;
@@ -731,6 +734,8 @@ var m = {
731
734
  var _linkedMonoforumId = v.linkedMonoforumId !== void 0;
732
735
  if (_linkedMonoforumId) flags2 |= 262144;
733
736
  if (v.forumTabs === true) flags2 |= 524288;
737
+ var _linkedCommunityId = v.linkedCommunityId !== void 0;
738
+ if (_linkedCommunityId) flags2 |= 1048576;
734
739
  w.uint(flags2);
735
740
  w.int53(h(v, "id"));
736
741
  if (_accessHash) w.long(v.accessHash);
@@ -753,6 +758,7 @@ var m = {
753
758
  if (_botVerificationIcon) w.long(v.botVerificationIcon);
754
759
  if (_sendPaidMessagesStars) w.long(v.sendPaidMessagesStars);
755
760
  if (_linkedMonoforumId) w.int53(v.linkedMonoforumId);
761
+ if (_linkedCommunityId) w.int53(v.linkedCommunityId);
756
762
  },
757
763
  "channelForbidden": function(w, v) {
758
764
  w.uint(399807445);
@@ -768,6 +774,40 @@ var m = {
768
774
  w.string(h(v, "title"));
769
775
  if (_untilDate) w.int(v.untilDate);
770
776
  },
777
+ "communityForbidden": function(w, v) {
778
+ w.uint(4248623800);
779
+ var flags = 0;
780
+ var _accessHash = v.accessHash !== void 0;
781
+ if (_accessHash) flags |= 8192;
782
+ w.uint(flags);
783
+ w.int53(h(v, "id"));
784
+ if (_accessHash) w.long(v.accessHash);
785
+ w.string(h(v, "title"));
786
+ },
787
+ "community": function(w, v) {
788
+ w.uint(1710221652);
789
+ var flags = 0;
790
+ if (v.creator === true) flags |= 1;
791
+ if (v.left === true) flags |= 4;
792
+ if (v.min === true) flags |= 4096;
793
+ var _accessHash = v.accessHash !== void 0;
794
+ if (_accessHash) flags |= 8192;
795
+ var _adminRights = v.adminRights !== void 0;
796
+ if (_adminRights) flags |= 16384;
797
+ var _defaultBannedRights = v.defaultBannedRights !== void 0;
798
+ if (_defaultBannedRights) flags |= 262144;
799
+ w.uint(flags);
800
+ var flags2 = 0;
801
+ if (v.collapsedInDialogs === true) flags2 |= 1048576;
802
+ w.uint(flags2);
803
+ w.int53(h(v, "id"));
804
+ if (_accessHash) w.long(v.accessHash);
805
+ w.string(h(v, "title"));
806
+ w.object(h(v, "photo"));
807
+ w.int(h(v, "date"));
808
+ if (_adminRights) w.object(v.adminRights);
809
+ if (_defaultBannedRights) w.object(v.defaultBannedRights);
810
+ },
771
811
  "chatFull": function(w, v) {
772
812
  w.uint(640893467);
773
813
  var flags = 0;
@@ -800,6 +840,7 @@ var m = {
800
840
  if (v.translationsDisabled === true) flags |= 524288;
801
841
  var _reactionsLimit = v.reactionsLimit !== void 0;
802
842
  if (_reactionsLimit) flags |= 1048576;
843
+ if (v.hasWelcomeMessages === true) flags |= 2097152;
803
844
  w.uint(flags);
804
845
  w.int53(h(v, "id"));
805
846
  w.string(h(v, "about"));
@@ -919,6 +960,7 @@ var m = {
919
960
  if (_mainTab) flags2 |= 4194304;
920
961
  var _guardBotId = v.guardBotId !== void 0;
921
962
  if (_guardBotId) flags2 |= 8388608;
963
+ if (v.hasWelcomeMessages === true) flags2 |= 16777216;
922
964
  w.uint(flags2);
923
965
  w.int53(h(v, "id"));
924
966
  w.string(h(v, "about"));
@@ -967,6 +1009,24 @@ var m = {
967
1009
  if (_mainTab) w.object(v.mainTab);
968
1010
  if (_guardBotId) w.int53(v.guardBotId);
969
1011
  },
1012
+ "communityFull": function(w, v) {
1013
+ w.uint(3417810183);
1014
+ var flags = 0;
1015
+ var _peerLinkRequestsPending = v.peerLinkRequestsPending !== void 0;
1016
+ if (_peerLinkRequestsPending) flags |= 1;
1017
+ var _adminsCount = v.adminsCount !== void 0;
1018
+ if (_adminsCount) flags |= 2;
1019
+ var _kickedCount = v.kickedCount !== void 0;
1020
+ if (_kickedCount) flags |= 4;
1021
+ w.uint(flags);
1022
+ w.int53(h(v, "id"));
1023
+ w.string(h(v, "about"));
1024
+ w.object(h(v, "chatPhoto"));
1025
+ w.vector(w.object, h(v, "linkedPeers"));
1026
+ if (_adminsCount) w.int(v.adminsCount);
1027
+ if (_kickedCount) w.int(v.kickedCount);
1028
+ if (_peerLinkRequestsPending) w.int(v.peerLinkRequestsPending);
1029
+ },
970
1030
  "chatParticipant": function(w, v) {
971
1031
  w.uint(954703838);
972
1032
  var flags = 0;
@@ -1785,7 +1845,7 @@ var m = {
1785
1845
  if (_giftNum) w.int(v.giftNum);
1786
1846
  },
1787
1847
  "messageActionStarGiftUnique": function(w, v) {
1788
- w.uint(3871544610);
1848
+ w.uint(2115768711);
1789
1849
  var flags = 0;
1790
1850
  if (v.upgrade === true) flags |= 1;
1791
1851
  if (v.transferred === true) flags |= 2;
@@ -1815,6 +1875,9 @@ var m = {
1815
1875
  var _canCraftAt = v.canCraftAt !== void 0;
1816
1876
  if (_canCraftAt) flags |= 32768;
1817
1877
  if (v.craft === true) flags |= 65536;
1878
+ if (v.nameHidden === true) flags |= 131072;
1879
+ var _message = v.message !== void 0;
1880
+ if (_message) flags |= 262144;
1818
1881
  w.uint(flags);
1819
1882
  w.object(h(v, "gift"));
1820
1883
  if (_canExportAt) w.int(v.canExportAt);
@@ -1827,6 +1890,7 @@ var m = {
1827
1890
  if (_canResellAt) w.int(v.canResellAt);
1828
1891
  if (_dropOriginalDetailsStars) w.long(v.dropOriginalDetailsStars);
1829
1892
  if (_canCraftAt) w.int(v.canCraftAt);
1893
+ if (_message) w.object(v.message);
1830
1894
  },
1831
1895
  "messageActionPaidMessagesRefunded": function(w, v) {
1832
1896
  w.uint(2887720909);
@@ -1957,6 +2021,18 @@ var m = {
1957
2021
  w.uint(375414334);
1958
2022
  w.int53(h(v, "botId"));
1959
2023
  },
2024
+ "messageActionChangeCommunity": function(w, v) {
2025
+ w.uint(1562426088);
2026
+ var flags = 0;
2027
+ var _communityId = v.communityId !== void 0;
2028
+ if (_communityId) flags |= 1;
2029
+ w.uint(flags);
2030
+ if (_communityId) w.int53(v.communityId);
2031
+ },
2032
+ "messageActionChatJoinedViaCommunity": function(w, v) {
2033
+ w.uint(1250688640);
2034
+ w.int53(h(v, "communityId"));
2035
+ },
1960
2036
  "dialog": function(w, v) {
1961
2037
  w.uint(4236900339);
1962
2038
  var flags = 0;
@@ -1999,6 +2075,14 @@ var m = {
1999
2075
  w.int(h(v, "unreadMutedMessagesCount"));
2000
2076
  w.int(h(v, "unreadUnmutedMessagesCount"));
2001
2077
  },
2078
+ "dialogCommunity": function(w, v) {
2079
+ w.uint(4153018739);
2080
+ var flags = 0;
2081
+ if (v.pinned === true) flags |= 4;
2082
+ w.uint(flags);
2083
+ w.int53(h(v, "communityId"));
2084
+ w.object(h(v, "notifySettings"));
2085
+ },
2002
2086
  "photoEmpty": function(w, v) {
2003
2087
  w.uint(590459437);
2004
2088
  w.long(h(v, "id"));
@@ -2141,6 +2225,10 @@ var m = {
2141
2225
  w.object(h(v, "peer"));
2142
2226
  w.int(h(v, "topMsgId"));
2143
2227
  },
2228
+ "inputNotifyCommunity": function(w, v) {
2229
+ w.uint(666573532);
2230
+ w.object(h(v, "community"));
2231
+ },
2144
2232
  "inputPeerNotifySettings": function(w, v) {
2145
2233
  w.uint(3402328802);
2146
2234
  var flags = 0;
@@ -3750,6 +3838,46 @@ var m = {
3750
3838
  if (_openExternalBrowser) w.boolean(v.openExternalBrowser);
3751
3839
  w.object(h(v, "exception"));
3752
3840
  },
3841
+ "updateNewEphemeralMessage": function(w, v) {
3842
+ w.uint(549239713);
3843
+ w.object(h(v, "message"));
3844
+ },
3845
+ "updateDeleteEphemeralMessages": function(w, v) {
3846
+ w.uint(1457257720);
3847
+ w.object(h(v, "peer"));
3848
+ w.vector(w.int, h(v, "ids"));
3849
+ },
3850
+ "updateEditEphemeralMessage": function(w, v) {
3851
+ w.uint(1270583041);
3852
+ w.object(h(v, "message"));
3853
+ },
3854
+ "updateEphemeralBotCallbackQuery": function(w, v) {
3855
+ w.uint(2081454550);
3856
+ var flags = 0;
3857
+ var _peer = v.peer !== void 0;
3858
+ if (_peer) flags |= 1;
3859
+ var _chatInstance = v.chatInstance !== void 0;
3860
+ if (_chatInstance) flags |= 2;
3861
+ w.uint(flags);
3862
+ w.long(h(v, "queryId"));
3863
+ w.int53(h(v, "userId"));
3864
+ if (_peer) w.object(v.peer);
3865
+ w.int(h(v, "msgId"));
3866
+ w.bytes(h(v, "data"));
3867
+ if (_chatInstance) w.long(v.chatInstance);
3868
+ w.object(h(v, "message"));
3869
+ },
3870
+ "updateBotStarsSubscription": function(w, v) {
3871
+ w.uint(1812827683);
3872
+ var flags = 0;
3873
+ if (v.canceled === true) flags |= 1;
3874
+ if (v.paymentFailed === true) flags |= 2;
3875
+ if (v.restored === true) flags |= 4;
3876
+ w.uint(flags);
3877
+ w.int53(h(v, "userId"));
3878
+ w.bytes(h(v, "payload"));
3879
+ w.int(h(v, "qts"));
3880
+ },
3753
3881
  "updates.state": function(w, v) {
3754
3882
  w.uint(2775329342);
3755
3883
  w.int(h(v, "pts"));
@@ -4212,6 +4340,10 @@ var m = {
4212
4340
  w.object(h(v, "peer"));
4213
4341
  w.int(h(v, "topMsgId"));
4214
4342
  },
4343
+ "notifyCommunity": function(w, v) {
4344
+ w.uint(3191302553);
4345
+ w.int53(h(v, "communityId"));
4346
+ },
4215
4347
  "sendMessageTypingAction": function(w) {
4216
4348
  w.uint(381645902);
4217
4349
  },
@@ -4277,20 +4409,36 @@ var m = {
4277
4409
  w.string(h(v, "emoticon"));
4278
4410
  },
4279
4411
  "sendMessageTextDraftAction": function(w, v) {
4280
- w.uint(929929052);
4412
+ w.uint(909162586);
4413
+ var flags = 0;
4414
+ if (v.canStop === true) flags |= 1;
4415
+ if (v.keepOnStop === true) flags |= 2;
4416
+ w.uint(flags);
4281
4417
  w.long(h(v, "randomId"));
4282
4418
  w.object(h(v, "text"));
4283
4419
  },
4284
4420
  "inputSendMessageRichMessageDraftAction": function(w, v) {
4285
- w.uint(3803331409);
4421
+ w.uint(2839005118);
4422
+ var flags = 0;
4423
+ if (v.canStop === true) flags |= 1;
4424
+ if (v.keepOnStop === true) flags |= 2;
4425
+ w.uint(flags);
4286
4426
  w.long(h(v, "randomId"));
4287
4427
  w.object(h(v, "richMessage"));
4288
4428
  },
4289
4429
  "sendMessageRichMessageDraftAction": function(w, v) {
4290
- w.uint(2731222265);
4430
+ w.uint(1381386387);
4431
+ var flags = 0;
4432
+ if (v.canStop === true) flags |= 1;
4433
+ if (v.keepOnStop === true) flags |= 2;
4434
+ w.uint(flags);
4291
4435
  w.long(h(v, "randomId"));
4292
4436
  w.object(h(v, "richMessage"));
4293
4437
  },
4438
+ "sendMessageStopDraftAction": function(w, v) {
4439
+ w.uint(4227400368);
4440
+ w.long(h(v, "randomId"));
4441
+ },
4294
4442
  "contacts.found": function(w, v) {
4295
4443
  w.uint(3004386717);
4296
4444
  w.vector(w.object, h(v, "myResults"));
@@ -4909,7 +5057,10 @@ var m = {
4909
5057
  w.uint(3556320491);
4910
5058
  },
4911
5059
  "botCommand": function(w, v) {
4912
- w.uint(3262826695);
5060
+ w.uint(2555565778);
5061
+ var flags = 0;
5062
+ if (v.ephemeral === true) flags |= 1;
5063
+ w.uint(flags);
4913
5064
  w.string(h(v, "command"));
4914
5065
  w.string(h(v, "description"));
4915
5066
  },
@@ -4947,202 +5098,14 @@ var m = {
4947
5098
  if (_verifierSettings) w.object(v.verifierSettings);
4948
5099
  },
4949
5100
  "keyboardButton": function(w, v) {
4950
- w.uint(2098662655);
4951
- var flags = 0;
4952
- var _style = v.style !== void 0;
4953
- if (_style) flags |= 1024;
4954
- w.uint(flags);
4955
- if (_style) w.object(v.style);
4956
- w.string(h(v, "text"));
4957
- },
4958
- "keyboardButtonUrl": function(w, v) {
4959
- w.uint(3624674796);
4960
- var flags = 0;
4961
- var _style = v.style !== void 0;
4962
- if (_style) flags |= 1024;
4963
- w.uint(flags);
4964
- if (_style) w.object(v.style);
4965
- w.string(h(v, "text"));
4966
- w.string(h(v, "url"));
4967
- },
4968
- "keyboardButtonCallback": function(w, v) {
4969
- w.uint(3861629280);
4970
- var flags = 0;
4971
- if (v.requiresPassword === true) flags |= 1;
4972
- var _style = v.style !== void 0;
4973
- if (_style) flags |= 1024;
4974
- w.uint(flags);
4975
- if (_style) w.object(v.style);
4976
- w.string(h(v, "text"));
4977
- w.bytes(h(v, "data"));
4978
- },
4979
- "keyboardButtonRequestPhone": function(w, v) {
4980
- w.uint(1098841487);
4981
- var flags = 0;
4982
- var _style = v.style !== void 0;
4983
- if (_style) flags |= 1024;
4984
- w.uint(flags);
4985
- if (_style) w.object(v.style);
4986
- w.string(h(v, "text"));
4987
- },
4988
- "keyboardButtonRequestGeoLocation": function(w, v) {
4989
- w.uint(2856384845);
4990
- var flags = 0;
4991
- var _style = v.style !== void 0;
4992
- if (_style) flags |= 1024;
4993
- w.uint(flags);
4994
- if (_style) w.object(v.style);
4995
- w.string(h(v, "text"));
4996
- },
4997
- "keyboardButtonSwitchInline": function(w, v) {
4998
- w.uint(2568198652);
4999
- var flags = 0;
5000
- if (v.samePeer === true) flags |= 1;
5001
- var _peerTypes = v.peerTypes && v.peerTypes.length;
5002
- if (_peerTypes) flags |= 2;
5003
- var _style = v.style !== void 0;
5004
- if (_style) flags |= 1024;
5005
- w.uint(flags);
5006
- if (_style) w.object(v.style);
5007
- w.string(h(v, "text"));
5008
- w.string(h(v, "query"));
5009
- if (_peerTypes) w.vector(w.object, v.peerTypes);
5010
- },
5011
- "keyboardButtonGame": function(w, v) {
5012
- w.uint(2311426297);
5013
- var flags = 0;
5014
- var _style = v.style !== void 0;
5015
- if (_style) flags |= 1024;
5016
- w.uint(flags);
5017
- if (_style) w.object(v.style);
5018
- w.string(h(v, "text"));
5019
- },
5020
- "keyboardButtonBuy": function(w, v) {
5021
- w.uint(1067792645);
5022
- var flags = 0;
5023
- var _style = v.style !== void 0;
5024
- if (_style) flags |= 1024;
5025
- w.uint(flags);
5026
- if (_style) w.object(v.style);
5027
- w.string(h(v, "text"));
5028
- },
5029
- "keyboardButtonUrlAuth": function(w, v) {
5030
- w.uint(4111468281);
5031
- var flags = 0;
5032
- var _fwdText = v.fwdText !== void 0;
5033
- if (_fwdText) flags |= 1;
5034
- var _style = v.style !== void 0;
5035
- if (_style) flags |= 1024;
5036
- w.uint(flags);
5037
- if (_style) w.object(v.style);
5038
- w.string(h(v, "text"));
5039
- if (_fwdText) w.string(v.fwdText);
5040
- w.string(h(v, "url"));
5041
- w.int(h(v, "buttonId"));
5042
- },
5043
- "inputKeyboardButtonUrlAuth": function(w, v) {
5044
- w.uint(1744911986);
5045
- var flags = 0;
5046
- if (v.requestWriteAccess === true) flags |= 1;
5047
- var _fwdText = v.fwdText !== void 0;
5048
- if (_fwdText) flags |= 2;
5049
- var _style = v.style !== void 0;
5050
- if (_style) flags |= 1024;
5051
- w.uint(flags);
5052
- if (_style) w.object(v.style);
5053
- w.string(h(v, "text"));
5054
- if (_fwdText) w.string(v.fwdText);
5055
- w.string(h(v, "url"));
5056
- w.object(h(v, "bot"));
5057
- },
5058
- "keyboardButtonRequestPoll": function(w, v) {
5059
- w.uint(2047989634);
5060
- var flags = 0;
5061
- var _quiz = v.quiz !== void 0;
5062
- if (_quiz) flags |= 1;
5063
- var _style = v.style !== void 0;
5064
- if (_style) flags |= 1024;
5065
- w.uint(flags);
5066
- if (_style) w.object(v.style);
5067
- if (_quiz) w.boolean(v.quiz);
5068
- w.string(h(v, "text"));
5069
- },
5070
- "inputKeyboardButtonUserProfile": function(w, v) {
5071
- w.uint(2103314375);
5072
- var flags = 0;
5073
- var _style = v.style !== void 0;
5074
- if (_style) flags |= 1024;
5075
- w.uint(flags);
5076
- if (_style) w.object(v.style);
5077
- w.string(h(v, "text"));
5078
- w.object(h(v, "userId"));
5079
- },
5080
- "keyboardButtonUserProfile": function(w, v) {
5081
- w.uint(3237829897);
5082
- var flags = 0;
5083
- var _style = v.style !== void 0;
5084
- if (_style) flags |= 1024;
5085
- w.uint(flags);
5086
- if (_style) w.object(v.style);
5087
- w.string(h(v, "text"));
5088
- w.int53(h(v, "userId"));
5089
- },
5090
- "keyboardButtonWebView": function(w, v) {
5091
- w.uint(3896947104);
5092
- var flags = 0;
5093
- var _style = v.style !== void 0;
5094
- if (_style) flags |= 1024;
5095
- w.uint(flags);
5096
- if (_style) w.object(v.style);
5097
- w.string(h(v, "text"));
5098
- w.string(h(v, "url"));
5099
- },
5100
- "keyboardButtonSimpleWebView": function(w, v) {
5101
- w.uint(3780920176);
5102
- var flags = 0;
5103
- var _style = v.style !== void 0;
5104
- if (_style) flags |= 1024;
5105
- w.uint(flags);
5106
- if (_style) w.object(v.style);
5107
- w.string(h(v, "text"));
5108
- w.string(h(v, "url"));
5109
- },
5110
- "keyboardButtonRequestPeer": function(w, v) {
5111
- w.uint(1527715317);
5112
- var flags = 0;
5113
- var _style = v.style !== void 0;
5114
- if (_style) flags |= 1024;
5115
- w.uint(flags);
5116
- if (_style) w.object(v.style);
5117
- w.string(h(v, "text"));
5118
- w.int(h(v, "buttonId"));
5119
- w.object(h(v, "peerType"));
5120
- w.int(h(v, "maxQuantity"));
5121
- },
5122
- "inputKeyboardButtonRequestPeer": function(w, v) {
5123
- w.uint(45580630);
5124
- var flags = 0;
5125
- if (v.nameRequested === true) flags |= 1;
5126
- if (v.usernameRequested === true) flags |= 2;
5127
- if (v.photoRequested === true) flags |= 4;
5128
- var _style = v.style !== void 0;
5129
- if (_style) flags |= 1024;
5130
- w.uint(flags);
5131
- if (_style) w.object(v.style);
5132
- w.string(h(v, "text"));
5133
- w.int(h(v, "buttonId"));
5134
- w.object(h(v, "peerType"));
5135
- w.int(h(v, "maxQuantity"));
5136
- },
5137
- "keyboardButtonCopy": function(w, v) {
5138
- w.uint(3167006480);
5101
+ w.uint(795322159);
5139
5102
  var flags = 0;
5140
5103
  var _style = v.style !== void 0;
5141
5104
  if (_style) flags |= 1024;
5142
5105
  w.uint(flags);
5143
5106
  if (_style) w.object(v.style);
5144
5107
  w.string(h(v, "text"));
5145
- w.string(h(v, "copyText"));
5108
+ w.object(h(v, "type"));
5146
5109
  },
5147
5110
  "keyboardButtonRow": function(w, v) {
5148
5111
  w.uint(2002815875);
@@ -5173,12 +5136,16 @@ var m = {
5173
5136
  var _placeholder = v.placeholder !== void 0;
5174
5137
  if (_placeholder) flags |= 8;
5175
5138
  if (v.persistent === true) flags |= 16;
5139
+ if (v.forceReply === true) flags |= 32;
5176
5140
  w.uint(flags);
5177
5141
  w.vector(w.object, h(v, "rows"));
5178
5142
  if (_placeholder) w.string(v.placeholder);
5179
5143
  },
5180
5144
  "replyInlineMarkup": function(w, v) {
5181
- w.uint(1218642516);
5145
+ w.uint(2997966704);
5146
+ var flags = 0;
5147
+ if (v.forceReply === true) flags |= 32;
5148
+ w.uint(flags);
5182
5149
  w.vector(w.object, h(v, "rows"));
5183
5150
  },
5184
5151
  "messageEntityUnknown": function(w, v) {
@@ -6408,6 +6375,21 @@ var m = {
6408
6375
  w.object(h(v, "text"));
6409
6376
  w.int(h(v, "date"));
6410
6377
  },
6378
+ "textDiff": function(w, v) {
6379
+ w.uint(2525416272);
6380
+ w.object(h(v, "text"));
6381
+ w.object(h(v, "oldText"));
6382
+ },
6383
+ "textButton": function(w, v) {
6384
+ w.uint(2949094614);
6385
+ var flags = 0;
6386
+ var _style = v.style !== void 0;
6387
+ if (_style) flags |= 1;
6388
+ w.uint(flags);
6389
+ w.object(h(v, "text"));
6390
+ w.object(h(v, "type"));
6391
+ if (_style) w.object(v.style);
6392
+ },
6411
6393
  "pageBlockUnsupported": function(w) {
6412
6394
  w.uint(324435594);
6413
6395
  },
@@ -6457,7 +6439,10 @@ var m = {
6457
6439
  w.vector(w.object, h(v, "items"));
6458
6440
  },
6459
6441
  "pageBlockBlockquote": function(w, v) {
6460
- w.uint(641563686);
6442
+ w.uint(1724999435);
6443
+ var flags = 0;
6444
+ if (v.collapsed === true) flags |= 1;
6445
+ w.uint(flags);
6461
6446
  w.object(h(v, "text"));
6462
6447
  w.object(h(v, "caption"));
6463
6448
  },
@@ -6555,6 +6540,7 @@ var m = {
6555
6540
  var flags = 0;
6556
6541
  if (v.bordered === true) flags |= 1;
6557
6542
  if (v.striped === true) flags |= 2;
6543
+ if (v.compact === true) flags |= 4;
6558
6544
  w.uint(flags);
6559
6545
  w.object(h(v, "title"));
6560
6546
  w.vector(w.object, h(v, "rows"));
@@ -6638,6 +6624,20 @@ var m = {
6638
6624
  w.vector(w.object, h(v, "blocks"));
6639
6625
  w.object(h(v, "caption"));
6640
6626
  },
6627
+ "pageBlockButtonRow": function(w, v) {
6628
+ w.uint(1835270936);
6629
+ var flags = 0;
6630
+ if (v.alignLeft === true) flags |= 1;
6631
+ if (v.alignCenter === true) flags |= 2;
6632
+ if (v.alignRight === true) flags |= 4;
6633
+ w.uint(flags);
6634
+ w.vector(w.object, h(v, "buttons"));
6635
+ },
6636
+ "pageBlockDocument": function(w, v) {
6637
+ w.uint(955923363);
6638
+ w.long(h(v, "documentId"));
6639
+ w.object(h(v, "caption"));
6640
+ },
6641
6641
  "phoneCallDiscardReasonMissed": function(w) {
6642
6642
  w.uint(2246320897);
6643
6643
  },
@@ -7528,6 +7528,10 @@ var m = {
7528
7528
  w.uint(1684014375);
7529
7529
  w.int(h(v, "folderId"));
7530
7530
  },
7531
+ "inputDialogPeerCommunity": function(w, v) {
7532
+ w.uint(1777300164);
7533
+ w.object(h(v, "community"));
7534
+ },
7531
7535
  "dialogPeer": function(w, v) {
7532
7536
  w.uint(3849174789);
7533
7537
  w.object(h(v, "peer"));
@@ -7536,6 +7540,10 @@ var m = {
7536
7540
  w.uint(1363483106);
7537
7541
  w.int(h(v, "folderId"));
7538
7542
  },
7543
+ "dialogPeerCommunity": function(w, v) {
7544
+ w.uint(795199716);
7545
+ w.int53(h(v, "communityId"));
7546
+ },
7539
7547
  "messages.foundStickerSetsNotModified": function(w) {
7540
7548
  w.uint(223655517);
7541
7549
  },
@@ -8147,6 +8155,8 @@ var m = {
8147
8155
  if (v.deleteStories === true) flags |= 65536;
8148
8156
  if (v.manageDirectMessages === true) flags |= 131072;
8149
8157
  if (v.manageRanks === true) flags |= 262144;
8158
+ if (v.manageLinkedPeers === true) flags |= 524288;
8159
+ if (v.manageWelcomeMessages === true) flags |= 1048576;
8150
8160
  w.uint(flags);
8151
8161
  },
8152
8162
  "chatBannedRights": function(w, v) {
@@ -8174,6 +8184,7 @@ var m = {
8174
8184
  if (v.sendPlain === true) flags |= 33554432;
8175
8185
  if (v.editRank === true) flags |= 67108864;
8176
8186
  if (v.sendReactions === true) flags |= 134217728;
8187
+ if (v.manageLinkedPeers === true) flags |= 268435456;
8177
8188
  w.uint(flags);
8178
8189
  w.int(h(v, "untilDate"));
8179
8190
  },
@@ -9628,12 +9639,16 @@ var m = {
9628
9639
  w.long(h(v, "stars"));
9629
9640
  },
9630
9641
  "inputInvoiceStarGiftResale": function(w, v) {
9631
- w.uint(3281998628);
9642
+ w.uint(3920676440);
9632
9643
  var flags = 0;
9633
9644
  if (v.ton === true) flags |= 1;
9645
+ var _message = v.message !== void 0;
9646
+ if (_message) flags |= 2;
9647
+ if (v.showName === true) flags |= 4;
9634
9648
  w.uint(flags);
9635
9649
  w.string(h(v, "slug"));
9636
9650
  w.object(h(v, "toId"));
9651
+ if (_message) w.object(v.message);
9637
9652
  },
9638
9653
  "inputInvoiceStarGiftPrepaidUpgrade": function(w, v) {
9639
9654
  w.uint(2584430776);
@@ -10473,6 +10488,10 @@ var m = {
10473
10488
  w.uint(1775660101);
10474
10489
  w.object(h(v, "monoforumPeerId"));
10475
10490
  },
10491
+ "inputReplyToEphemeralMessage": function(w, v) {
10492
+ w.uint(1092204894);
10493
+ w.int(h(v, "id"));
10494
+ },
10476
10495
  "exportedStoryLink": function(w, v) {
10477
10496
  w.uint(1070138683);
10478
10497
  w.string(h(v, "link"));
@@ -12806,6 +12825,10 @@ var m = {
12806
12825
  w.uint(530584407);
12807
12826
  w.string(h(v, "slug"));
12808
12827
  },
12828
+ "inputAiComposeToneSingleUse": function(w, v) {
12829
+ w.uint(235681199);
12830
+ w.string(h(v, "customPrompt"));
12831
+ },
12809
12832
  "aiComposeTone": function(w, v) {
12810
12833
  w.uint(3489021609);
12811
12834
  var flags = 0;
@@ -12865,9 +12888,9 @@ var m = {
12865
12888
  w.object(h(v, "updates"));
12866
12889
  },
12867
12890
  "messages.chatInviteJoinResultWebView": function(w, v) {
12868
- w.uint(793887543);
12891
+ w.uint(1640638931);
12869
12892
  w.int53(h(v, "botId"));
12870
- w.object(h(v, "webview"));
12893
+ w.long(h(v, "queryId"));
12871
12894
  w.vector(w.object, h(v, "users"));
12872
12895
  },
12873
12896
  "joinChatBotResultApproved": function(w) {
@@ -12966,22 +12989,247 @@ var m = {
12966
12989
  w.vector(w.object, h(v, "photos"));
12967
12990
  w.vector(w.object, h(v, "documents"));
12968
12991
  },
12969
- "updateChannelPinnedTopic": function(w, v) {
12970
- w.uint(422509539);
12992
+ "communityPeer": function(w, v) {
12993
+ w.uint(1981030077);
12971
12994
  var flags = 0;
12972
- if (v.pinned === true) flags |= 1;
12995
+ var _visible = v.visible !== void 0;
12996
+ if (_visible) flags |= 1;
12997
+ if (v.canViewHistory === true) flags |= 4;
12973
12998
  w.uint(flags);
12974
- w.int53(h(v, "channelId"));
12975
- w.int(h(v, "topicId"));
12999
+ if (_visible) w.boolean(v.visible);
13000
+ w.object(h(v, "peer"));
12976
13001
  },
12977
- "updateChannelPinnedTopics": function(w, v) {
12978
- w.uint(4263085570);
13002
+ "communityPeerRequest": function(w, v) {
13003
+ w.uint(2078997125);
12979
13004
  var flags = 0;
12980
- var _order = v.order && v.order.length;
12981
- if (_order) flags |= 1;
13005
+ if (v.visible === true) flags |= 1;
12982
13006
  w.uint(flags);
12983
- w.int53(h(v, "channelId"));
12984
- if (_order) w.vector(w.int, v.order);
13007
+ w.object(h(v, "peer"));
13008
+ w.int53(h(v, "requestedBy"));
13009
+ w.int(h(v, "date"));
13010
+ },
13011
+ "communities.peerLinkRequests": function(w, v) {
13012
+ w.uint(574926765);
13013
+ var flags = 0;
13014
+ var _nextOffset = v.nextOffset !== void 0;
13015
+ if (_nextOffset) flags |= 1;
13016
+ w.uint(flags);
13017
+ w.int(h(v, "totalCount"));
13018
+ w.vector(w.object, h(v, "requests"));
13019
+ if (_nextOffset) w.string(v.nextOffset);
13020
+ w.vector(w.object, h(v, "chats"));
13021
+ w.vector(w.object, h(v, "users"));
13022
+ },
13023
+ "ephemeralMessage": function(w, v) {
13024
+ w.uint(3710369513);
13025
+ var flags = 0;
13026
+ if (v.out === true) flags |= 1;
13027
+ var _topMsgId = v.topMsgId !== void 0;
13028
+ if (_topMsgId) flags |= 2;
13029
+ var _entities = v.entities && v.entities.length;
13030
+ if (_entities) flags |= 4;
13031
+ var _media = v.media !== void 0;
13032
+ if (_media) flags |= 8;
13033
+ var _replyMarkup = v.replyMarkup !== void 0;
13034
+ if (_replyMarkup) flags |= 16;
13035
+ if (v.welcomeTemplate === true) flags |= 32;
13036
+ var _replyTo = v.replyTo !== void 0;
13037
+ if (_replyTo) flags |= 64;
13038
+ if (v.invertMedia === true) flags |= 128;
13039
+ var _richMessage = v.richMessage !== void 0;
13040
+ if (_richMessage) flags |= 256;
13041
+ var _peerId = v.peerId !== void 0;
13042
+ if (_peerId) flags |= 512;
13043
+ var _chatInstance = v.chatInstance !== void 0;
13044
+ if (_chatInstance) flags |= 1024;
13045
+ var _anchorMsgId = v.anchorMsgId !== void 0;
13046
+ if (_anchorMsgId) flags |= 2048;
13047
+ if (v.noforwards === true) flags |= 4096;
13048
+ w.uint(flags);
13049
+ w.int(h(v, "id"));
13050
+ w.object(h(v, "fromId"));
13051
+ if (_peerId) w.object(v.peerId);
13052
+ w.int53(h(v, "receiverId"));
13053
+ if (_topMsgId) w.int(v.topMsgId);
13054
+ w.int(h(v, "date"));
13055
+ w.string(h(v, "message"));
13056
+ if (_entities) w.vector(w.object, v.entities);
13057
+ if (_media) w.object(v.media);
13058
+ if (_replyMarkup) w.object(v.replyMarkup);
13059
+ if (_replyTo) w.object(v.replyTo);
13060
+ if (_richMessage) w.object(v.richMessage);
13061
+ if (_chatInstance) w.long(v.chatInstance);
13062
+ if (_anchorMsgId) w.int(v.anchorMsgId);
13063
+ },
13064
+ "communities.participantJoinedChats": function(w, v) {
13065
+ w.uint(2373472554);
13066
+ w.vector(w.int53, h(v, "creatorChatIds"));
13067
+ w.vector(w.int53, h(v, "joinedChatIds"));
13068
+ w.vector(w.object, h(v, "chats"));
13069
+ w.vector(w.object, h(v, "users"));
13070
+ },
13071
+ "messages.translatedRichMessage": function(w, v) {
13072
+ w.uint(1107532175);
13073
+ w.vector(w.object, h(v, "result"));
13074
+ },
13075
+ "messages.composedRichMessageWithAI": function(w, v) {
13076
+ w.uint(1279604680);
13077
+ w.object(h(v, "result"));
13078
+ },
13079
+ "buttonTypeDefault": function(w) {
13080
+ w.uint(3386740969);
13081
+ },
13082
+ "buttonTypeRequestPhone": function(w) {
13083
+ w.uint(3745330937);
13084
+ },
13085
+ "buttonTypeRequestGeoLocation": function(w) {
13086
+ w.uint(2616123712);
13087
+ },
13088
+ "buttonTypeRequestPoll": function(w, v) {
13089
+ w.uint(2865758084);
13090
+ var flags = 0;
13091
+ var _quiz = v.quiz !== void 0;
13092
+ if (_quiz) flags |= 1;
13093
+ w.uint(flags);
13094
+ if (_quiz) w.boolean(v.quiz);
13095
+ },
13096
+ "buttonTypeRequestPeer": function(w, v) {
13097
+ w.uint(1331208759);
13098
+ var flags = 0;
13099
+ w.uint(flags);
13100
+ w.int(h(v, "buttonId"));
13101
+ w.object(h(v, "peerType"));
13102
+ w.int(h(v, "maxQuantity"));
13103
+ },
13104
+ "inputButtonTypeRequestPeer": function(w, v) {
13105
+ w.uint(1071802622);
13106
+ var flags = 0;
13107
+ if (v.nameRequested === true) flags |= 1;
13108
+ if (v.usernameRequested === true) flags |= 2;
13109
+ if (v.photoRequested === true) flags |= 4;
13110
+ w.uint(flags);
13111
+ w.int(h(v, "buttonId"));
13112
+ w.object(h(v, "peerType"));
13113
+ w.int(h(v, "maxQuantity"));
13114
+ },
13115
+ "buttonTypeSimpleWebView": function(w, v) {
13116
+ w.uint(3222952314);
13117
+ w.string(h(v, "url"));
13118
+ },
13119
+ "inlineButtonTypeUrl": function(w, v) {
13120
+ w.uint(3970234580);
13121
+ w.string(h(v, "url"));
13122
+ },
13123
+ "inlineButtonTypeUrlAuth": function(w, v) {
13124
+ w.uint(3218091426);
13125
+ var flags = 0;
13126
+ var _fwdText = v.fwdText !== void 0;
13127
+ if (_fwdText) flags |= 1;
13128
+ w.uint(flags);
13129
+ if (_fwdText) w.string(v.fwdText);
13130
+ w.string(h(v, "url"));
13131
+ w.int(h(v, "buttonId"));
13132
+ },
13133
+ "inputInlineButtonTypeUrlAuth": function(w, v) {
13134
+ w.uint(2573319348);
13135
+ var flags = 0;
13136
+ if (v.requestWriteAccess === true) flags |= 1;
13137
+ var _fwdText = v.fwdText !== void 0;
13138
+ if (_fwdText) flags |= 2;
13139
+ var _bot = v.bot !== void 0;
13140
+ if (_bot) flags |= 4;
13141
+ w.uint(flags);
13142
+ if (_fwdText) w.string(v.fwdText);
13143
+ w.string(h(v, "url"));
13144
+ if (_bot) w.object(v.bot);
13145
+ },
13146
+ "inlineButtonTypeWebView": function(w, v) {
13147
+ w.uint(1003140532);
13148
+ w.string(h(v, "url"));
13149
+ },
13150
+ "inlineButtonTypeCallback": function(w, v) {
13151
+ w.uint(693484600);
13152
+ var flags = 0;
13153
+ if (v.requiresPassword === true) flags |= 1;
13154
+ w.uint(flags);
13155
+ w.bytes(h(v, "data"));
13156
+ },
13157
+ "inlineButtonTypeGame": function(w) {
13158
+ w.uint(1557360797);
13159
+ },
13160
+ "inlineButtonTypeBuy": function(w) {
13161
+ w.uint(1220204453);
13162
+ },
13163
+ "inlineButtonTypeSwitchInline": function(w, v) {
13164
+ w.uint(2474065909);
13165
+ var flags = 0;
13166
+ if (v.samePeer === true) flags |= 1;
13167
+ var _peerTypes = v.peerTypes && v.peerTypes.length;
13168
+ if (_peerTypes) flags |= 2;
13169
+ w.uint(flags);
13170
+ w.string(h(v, "query"));
13171
+ if (_peerTypes) w.vector(w.object, v.peerTypes);
13172
+ },
13173
+ "inlineButtonTypeUserProfile": function(w, v) {
13174
+ w.uint(1067663311);
13175
+ w.int53(h(v, "userId"));
13176
+ },
13177
+ "inputInlineButtonTypeUserProfile": function(w, v) {
13178
+ w.uint(1408487002);
13179
+ w.object(h(v, "userId"));
13180
+ },
13181
+ "inlineButtonTypeCopy": function(w, v) {
13182
+ w.uint(3021812338);
13183
+ w.string(h(v, "copyText"));
13184
+ },
13185
+ "inlineButtonTypeDisabled": function(w) {
13186
+ w.uint(2755158429);
13187
+ },
13188
+ "keyboardInlineButton": function(w, v) {
13189
+ w.uint(297902882);
13190
+ var flags = 0;
13191
+ var _style = v.style !== void 0;
13192
+ if (_style) flags |= 1024;
13193
+ w.uint(flags);
13194
+ if (_style) w.object(v.style);
13195
+ w.string(h(v, "text"));
13196
+ w.object(h(v, "type"));
13197
+ },
13198
+ "keyboardInlineButtonRow": function(w, v) {
13199
+ w.uint(423758582);
13200
+ w.vector(w.object, h(v, "buttons"));
13201
+ },
13202
+ "richButtonStyle": function(w, v) {
13203
+ w.uint(63312061);
13204
+ var flags = 0;
13205
+ if (v.bgPrimary === true) flags |= 1;
13206
+ if (v.bgDanger === true) flags |= 2;
13207
+ if (v.bgSuccess === true) flags |= 4;
13208
+ if (v.link === true) flags |= 8;
13209
+ w.uint(flags);
13210
+ },
13211
+ "pageButton": function(w, v) {
13212
+ w.uint(1764381832);
13213
+ var flags = 0;
13214
+ var _style = v.style !== void 0;
13215
+ if (_style) flags |= 1;
13216
+ w.uint(flags);
13217
+ w.object(h(v, "text"));
13218
+ w.object(h(v, "type"));
13219
+ if (_style) w.object(v.style);
13220
+ },
13221
+ "ephemeral.welcomeMessagesNotModified": function(w) {
13222
+ w.uint(1509940017);
13223
+ },
13224
+ "ephemeral.welcomeMessages": function(w, v) {
13225
+ w.uint(273664114);
13226
+ w.long(h(v, "hash"));
13227
+ w.vector(w.object, h(v, "messages"));
13228
+ },
13229
+ "auth.firebasePnvIntent": function(w, v) {
13230
+ w.uint(3747266572);
13231
+ w.string(h(v, "nonce"));
13232
+ w.string(h(v, "digitalCredentialPayload"));
12985
13233
  },
12986
13234
  "invokeAfterMsg": function(w, v) {
12987
13235
  w.uint(3416209197);
@@ -13221,6 +13469,23 @@ var m = {
13221
13469
  if (_flags_0) w.int(v.fromDcId);
13222
13470
  if (_flags_0) w.long(v.fromAuthKeyId);
13223
13471
  },
13472
+ "auth.initFirebasePnvLogin": function(w, v) {
13473
+ w.uint(2004743034);
13474
+ w.int(h(v, "apiId"));
13475
+ w.string(h(v, "apiHash"));
13476
+ },
13477
+ "auth.finishFirebasePnvLogin": function(w, v) {
13478
+ w.uint(746916172);
13479
+ w.string(h(v, "googleToken"));
13480
+ },
13481
+ "auth.firebasePnvSignUp": function(w, v) {
13482
+ w.uint(2017422166);
13483
+ var flags = 0;
13484
+ if (v.noJoinedNotifications === true) flags |= 1;
13485
+ w.uint(flags);
13486
+ w.string(h(v, "firstName"));
13487
+ w.string(h(v, "lastName"));
13488
+ },
13224
13489
  "account.registerDevice": function(w, v) {
13225
13490
  w.uint(3968205178);
13226
13491
  var flags = 0;
@@ -14350,6 +14615,7 @@ var m = {
14350
14615
  if (_suggestedPost) flags |= 8388608;
14351
14616
  var _scheduleRepeatPeriod = v.scheduleRepeatPeriod !== void 0;
14352
14617
  if (_scheduleRepeatPeriod) flags |= 16777216;
14618
+ if (v.fromEphemeral === true) flags |= 33554432;
14353
14619
  w.uint(flags);
14354
14620
  w.object(h(v, "fromPeer"));
14355
14621
  w.vector(w.int, h(v, "id"));
@@ -14578,15 +14844,18 @@ var m = {
14578
14844
  w.int53(h(v, "chatId"));
14579
14845
  },
14580
14846
  "messages.searchGlobal": function(w, v) {
14581
- w.uint(1271290010);
14847
+ w.uint(1629922364);
14582
14848
  var flags = 0;
14583
14849
  var _folderId = v.folderId !== void 0;
14584
14850
  if (_folderId) flags |= 1;
14585
14851
  if (v.broadcastsOnly === true) flags |= 2;
14586
14852
  if (v.groupsOnly === true) flags |= 4;
14587
14853
  if (v.usersOnly === true) flags |= 8;
14854
+ var _community = v.community !== void 0;
14855
+ if (_community) flags |= 16;
14588
14856
  w.uint(flags);
14589
14857
  if (_folderId) w.int(v.folderId);
14858
+ if (_community) w.object(v.community);
14590
14859
  w.string(h(v, "q"));
14591
14860
  w.object(h(v, "filter"));
14592
14861
  w.int(h(v, "minDate"));
@@ -16290,6 +16559,50 @@ var m = {
16290
16559
  w.object(h(v, "peer"));
16291
16560
  w.int(h(v, "id"));
16292
16561
  },
16562
+ "messages.translateRichMessage": function(w, v) {
16563
+ w.uint(441720836);
16564
+ var flags = 0;
16565
+ var _peer = v.peer !== void 0;
16566
+ var _id = v.id && v.id.length;
16567
+ var _flags_0 = _peer || _id;
16568
+ if (_flags_0) flags |= 1;
16569
+ var _text = v.text && v.text.length;
16570
+ if (_text) flags |= 2;
16571
+ var _tone = v.tone !== void 0;
16572
+ if (_tone) flags |= 4;
16573
+ w.uint(flags);
16574
+ if (_flags_0) w.object(v.peer);
16575
+ if (_flags_0) w.vector(w.int, v.id);
16576
+ if (_text) w.vector(w.object, v.text);
16577
+ w.string(h(v, "toLang"));
16578
+ if (_tone) w.string(v.tone);
16579
+ },
16580
+ "messages.composeRichMessageWithAI": function(w, v) {
16581
+ w.uint(2373641903);
16582
+ var flags = 0;
16583
+ if (v.proofread === true) flags |= 1;
16584
+ var _translateToLang = v.translateToLang !== void 0;
16585
+ if (_translateToLang) flags |= 2;
16586
+ var _tone = v.tone !== void 0;
16587
+ if (_tone) flags |= 4;
16588
+ if (v.emojify === true) flags |= 8;
16589
+ var _text = v.text !== void 0;
16590
+ if (_text) flags |= 16;
16591
+ w.uint(flags);
16592
+ if (_text) w.object(v.text);
16593
+ if (_translateToLang) w.string(v.translateToLang);
16594
+ if (_tone) w.object(v.tone);
16595
+ },
16596
+ "messages.requestChatJoinWebView": function(w, v) {
16597
+ w.uint(3130975865);
16598
+ var flags = 0;
16599
+ var _themeParams = v.themeParams !== void 0;
16600
+ if (_themeParams) flags |= 1;
16601
+ w.uint(flags);
16602
+ w.long(h(v, "queryId"));
16603
+ if (_themeParams) w.object(v.themeParams);
16604
+ w.string(h(v, "platform"));
16605
+ },
16293
16606
  "updates.getState": function(w) {
16294
16607
  w.uint(3990128682);
16295
16608
  },
@@ -16661,6 +16974,7 @@ var m = {
16661
16974
  if (v.byLocation === true) flags |= 1;
16662
16975
  if (v.checkLimit === true) flags |= 2;
16663
16976
  if (v.forPersonal === true) flags |= 4;
16977
+ if (v.forCommunityPeer === true) flags |= 8;
16664
16978
  w.uint(flags);
16665
16979
  },
16666
16980
  "channels.editBanned": function(w, v) {
@@ -18530,84 +18844,171 @@ var m = {
18530
18844
  w.object(h(v, "tone"));
18531
18845
  w.int(h(v, "num"));
18532
18846
  },
18533
- "channels.editCreator": function(w, v) {
18534
- w.uint(2402864415);
18535
- w.object(h(v, "channel"));
18536
- w.object(h(v, "userId"));
18537
- w.object(h(v, "password"));
18538
- },
18539
- "channels.createForumTopic": function(w, v) {
18540
- w.uint(4094427684);
18847
+ "communities.create": function(w, v) {
18848
+ w.uint(2788710892);
18541
18849
  var flags = 0;
18542
- var _iconColor = v.iconColor !== void 0;
18543
- if (_iconColor) flags |= 1;
18544
- var _sendAs = v.sendAs !== void 0;
18545
- if (_sendAs) flags |= 4;
18546
- var _iconEmojiId = v.iconEmojiId !== void 0;
18547
- if (_iconEmojiId) flags |= 8;
18850
+ var _about = v.about !== void 0;
18851
+ if (_about) flags |= 1;
18852
+ if (v.hidden === true) flags |= 2;
18548
18853
  w.uint(flags);
18549
- w.object(h(v, "channel"));
18550
18854
  w.string(h(v, "title"));
18551
- if (_iconColor) w.int(v.iconColor);
18552
- if (_iconEmojiId) w.long(v.iconEmojiId);
18553
- w.long(h(v, "randomId"));
18554
- if (_sendAs) w.object(v.sendAs);
18855
+ if (_about) w.string(v.about);
18856
+ w.object(h(v, "peer"));
18555
18857
  },
18556
- "channels.getForumTopics": function(w, v) {
18557
- w.uint(233136337);
18858
+ "communities.togglePeerLink": function(w, v) {
18859
+ w.uint(1936576490);
18558
18860
  var flags = 0;
18559
- var _q = v.q !== void 0;
18560
- if (_q) flags |= 1;
18861
+ if (v.visible === true) flags |= 1;
18862
+ if (v.hidden === true) flags |= 2;
18863
+ if (v.deleted === true) flags |= 4;
18561
18864
  w.uint(flags);
18562
- w.object(h(v, "channel"));
18563
- if (_q) w.string(v.q);
18564
- w.int(h(v, "offsetDate"));
18565
- w.int(h(v, "offsetId"));
18566
- w.int(h(v, "offsetTopic"));
18865
+ w.object(h(v, "community"));
18866
+ w.object(h(v, "peer"));
18867
+ },
18868
+ "communities.getJoinedCommunities": function(w) {
18869
+ w.uint(2791565360);
18870
+ },
18871
+ "communities.toggleCommunityCollapsedInDialogs": function(w, v) {
18872
+ w.uint(3613844458);
18873
+ var flags = 0;
18874
+ if (v.collapsed === true) flags |= 1;
18875
+ w.uint(flags);
18876
+ w.object(h(v, "community"));
18877
+ },
18878
+ "communities.getPeerLinkRequests": function(w, v) {
18879
+ w.uint(2474062660);
18880
+ w.object(h(v, "community"));
18881
+ w.string(h(v, "offset"));
18567
18882
  w.int(h(v, "limit"));
18568
18883
  },
18569
- "channels.getForumTopicsByID": function(w, v) {
18570
- w.uint(2961383097);
18571
- w.object(h(v, "channel"));
18572
- w.vector(w.int, h(v, "topics"));
18884
+ "communities.togglePeerLinkRequestApproval": function(w, v) {
18885
+ w.uint(2357336488);
18886
+ var flags = 0;
18887
+ if (v.reject === true) flags |= 1;
18888
+ w.uint(flags);
18889
+ w.object(h(v, "community"));
18890
+ w.object(h(v, "peer"));
18573
18891
  },
18574
- "channels.editForumTopic": function(w, v) {
18575
- w.uint(4108296581);
18892
+ "communities.toggleAllPeerLinkRequestApproval": function(w, v) {
18893
+ w.uint(3219381565);
18576
18894
  var flags = 0;
18577
- var _title = v.title !== void 0;
18578
- if (_title) flags |= 1;
18579
- var _iconEmojiId = v.iconEmojiId !== void 0;
18580
- if (_iconEmojiId) flags |= 2;
18581
- var _closed = v.closed !== void 0;
18582
- if (_closed) flags |= 4;
18583
- var _hidden = v.hidden !== void 0;
18584
- if (_hidden) flags |= 8;
18895
+ if (v.reject === true) flags |= 1;
18585
18896
  w.uint(flags);
18586
- w.object(h(v, "channel"));
18587
- w.int(h(v, "topicId"));
18588
- if (_title) w.string(v.title);
18589
- if (_iconEmojiId) w.long(v.iconEmojiId);
18590
- if (_closed) w.boolean(v.closed);
18591
- if (_hidden) w.boolean(v.hidden);
18897
+ w.object(h(v, "community"));
18592
18898
  },
18593
- "channels.updatePinnedForumTopic": function(w, v) {
18594
- w.uint(1814925350);
18595
- w.object(h(v, "channel"));
18596
- w.int(h(v, "topicId"));
18597
- w.boolean(h(v, "pinned"));
18899
+ "communities.toggleParticipantBanned": function(w, v) {
18900
+ w.uint(2573708559);
18901
+ var flags = 0;
18902
+ if (v.unban === true) flags |= 1;
18903
+ w.uint(flags);
18904
+ w.object(h(v, "community"));
18905
+ w.object(h(v, "participant"));
18598
18906
  },
18599
- "channels.deleteTopicHistory": function(w, v) {
18600
- w.uint(876830509);
18601
- w.object(h(v, "channel"));
18602
- w.int(h(v, "topMsgId"));
18907
+ "communities.getParticipantJoinedChats": function(w, v) {
18908
+ w.uint(4169051051);
18909
+ w.object(h(v, "community"));
18910
+ w.object(h(v, "participant"));
18603
18911
  },
18604
- "channels.reorderPinnedForumTopics": function(w, v) {
18605
- w.uint(693150095);
18912
+ "ephemeral.sendMessage": function(w, v) {
18913
+ w.uint(3129827125);
18606
18914
  var flags = 0;
18607
- if (v.force === true) flags |= 1;
18915
+ var _queryId = v.queryId !== void 0;
18916
+ if (_queryId) flags |= 1;
18917
+ var _entities = v.entities && v.entities.length;
18918
+ if (_entities) flags |= 2;
18919
+ var _media = v.media !== void 0;
18920
+ if (_media) flags |= 4;
18921
+ var _replyMarkup = v.replyMarkup !== void 0;
18922
+ if (_replyMarkup) flags |= 8;
18923
+ var _richMessage = v.richMessage !== void 0;
18924
+ if (_richMessage) flags |= 16;
18925
+ var _replyTo = v.replyTo !== void 0;
18926
+ if (_replyTo) flags |= 32;
18927
+ if (v.invertMedia === true) flags |= 64;
18928
+ if (v.welcome === true) flags |= 128;
18929
+ var _peer = v.peer !== void 0;
18930
+ if (_peer) flags |= 256;
18931
+ if (v.anchor === true) flags |= 512;
18932
+ if (v.noforwards === true) flags |= 1024;
18608
18933
  w.uint(flags);
18609
- w.object(h(v, "channel"));
18610
- w.vector(w.int, h(v, "order"));
18934
+ if (_peer) w.object(v.peer);
18935
+ w.object(h(v, "receiverId"));
18936
+ if (_queryId) w.long(v.queryId);
18937
+ w.string(h(v, "message"));
18938
+ if (_entities) w.vector(w.object, v.entities);
18939
+ if (_media) w.object(v.media);
18940
+ if (_replyMarkup) w.object(v.replyMarkup);
18941
+ if (_richMessage) w.object(v.richMessage);
18942
+ w.long(h(v, "randomId"));
18943
+ if (_replyTo) w.object(v.replyTo);
18944
+ },
18945
+ "ephemeral.deleteMessage": function(w, v) {
18946
+ w.uint(2465654679);
18947
+ var flags = 0;
18948
+ var _peer = v.peer !== void 0;
18949
+ if (_peer) flags |= 1;
18950
+ w.uint(flags);
18951
+ if (_peer) w.object(v.peer);
18952
+ w.object(h(v, "receiverId"));
18953
+ w.int(h(v, "id"));
18954
+ },
18955
+ "ephemeral.reportMessage": function(w, v) {
18956
+ w.uint(2265248447);
18957
+ w.object(h(v, "peer"));
18958
+ w.int(h(v, "id"));
18959
+ w.bytes(h(v, "option"));
18960
+ w.string(h(v, "message"));
18961
+ },
18962
+ "ephemeral.getCallbackAnswer": function(w, v) {
18963
+ w.uint(1067738312);
18964
+ var flags = 0;
18965
+ var _data = v.data !== void 0;
18966
+ if (_data) flags |= 2;
18967
+ w.uint(flags);
18968
+ w.object(h(v, "peer"));
18969
+ w.int(h(v, "id"));
18970
+ if (_data) w.bytes(v.data);
18971
+ },
18972
+ "ephemeral.editMessage": function(w, v) {
18973
+ w.uint(3483136603);
18974
+ var flags = 0;
18975
+ var _message = v.message !== void 0;
18976
+ if (_message) flags |= 1;
18977
+ var _entities = v.entities && v.entities.length;
18978
+ if (_entities) flags |= 2;
18979
+ var _replyMarkup = v.replyMarkup !== void 0;
18980
+ if (_replyMarkup) flags |= 4;
18981
+ var _media = v.media !== void 0;
18982
+ if (_media) flags |= 8;
18983
+ var _richMessage = v.richMessage !== void 0;
18984
+ if (_richMessage) flags |= 16;
18985
+ if (v.invertMedia === true) flags |= 32;
18986
+ if (v.welcome === true) flags |= 64;
18987
+ var _peer = v.peer !== void 0;
18988
+ if (_peer) flags |= 128;
18989
+ w.uint(flags);
18990
+ if (_peer) w.object(v.peer);
18991
+ w.object(h(v, "receiverId"));
18992
+ w.int(h(v, "id"));
18993
+ if (_message) w.string(v.message);
18994
+ if (_media) w.object(v.media);
18995
+ if (_entities) w.vector(w.object, v.entities);
18996
+ if (_replyMarkup) w.object(v.replyMarkup);
18997
+ if (_richMessage) w.object(v.richMessage);
18998
+ },
18999
+ "ephemeral.deleteWelcomeMessage": function(w, v) {
19000
+ w.uint(3900877281);
19001
+ w.object(h(v, "peer"));
19002
+ w.int(h(v, "id"));
19003
+ },
19004
+ "ephemeral.deleteAllWelcomeMessages": function(w, v) {
19005
+ w.uint(1934595873);
19006
+ w.object(h(v, "peer"));
19007
+ },
19008
+ "ephemeral.getWelcomeMessages": function(w, v) {
19009
+ w.uint(3684352397);
19010
+ w.object(h(v, "peer"));
19011
+ w.long(h(v, "hash"));
18611
19012
  },
18612
19013
  "mtcute.customMethod": function(w, v) {
18613
19014
  w.raw(h(v, "bytes"));
@@ -18912,6 +19313,7 @@ var m = {
18912
19313
  "messageActionNoForwardsToggle": 12,
18913
19314
  "messageActionNoForwardsRequest": 16,
18914
19315
  "messageActionManagedBotCreated": 12,
19316
+ "messageActionChatJoinedViaCommunity": 12,
18915
19317
  "photoEmpty": 12,
18916
19318
  "geoPointEmpty": 4,
18917
19319
  "inputNotifyUsers": 4,
@@ -19022,6 +19424,7 @@ var m = {
19022
19424
  "notifyChats": 4,
19023
19425
  "notifyBroadcasts": 4,
19024
19426
  "notifyForumTopic": 20,
19427
+ "notifyCommunity": 12,
19025
19428
  "sendMessageTypingAction": 4,
19026
19429
  "sendMessageCancelAction": 4,
19027
19430
  "sendMessageRecordVideoAction": 4,
@@ -19038,6 +19441,7 @@ var m = {
19038
19441
  "speakingInGroupCallAction": 4,
19039
19442
  "sendMessageHistoryImportAction": 8,
19040
19443
  "sendMessageChooseStickerAction": 4,
19444
+ "sendMessageStopDraftAction": 12,
19041
19445
  "inputPrivacyKeyStatusTimestamp": 4,
19042
19446
  "inputPrivacyKeyChatInvite": 4,
19043
19447
  "inputPrivacyKeyPhoneCall": 4,
@@ -19199,6 +19603,7 @@ var m = {
19199
19603
  "inputDialogPeerFolder": 8,
19200
19604
  "dialogPeer": 16,
19201
19605
  "dialogPeerFolder": 8,
19606
+ "dialogPeerCommunity": 12,
19202
19607
  "messages.foundStickerSetsNotModified": 4,
19203
19608
  "help.termsOfServiceUpdateEmpty": 8,
19204
19609
  "inputSecureFile": 20,
@@ -19321,6 +19726,7 @@ var m = {
19321
19726
  "messagePeerVoteInputOption": 20,
19322
19727
  "storyItemDeleted": 8,
19323
19728
  "storyItemSkipped": 20,
19729
+ "inputReplyToEphemeralMessage": 8,
19324
19730
  "prepaidGiveaway": 24,
19325
19731
  "prepaidStarsGiveaway": 32,
19326
19732
  "postInteractionCountersMessage": 20,
@@ -19408,7 +19814,16 @@ var m = {
19408
19814
  "joinChatBotResultDeclined": 4,
19409
19815
  "joinChatBotResultQueued": 4,
19410
19816
  "account.webBrowserSettingsNotModified": 4,
19411
- "updateChannelPinnedTopic": 20,
19817
+ "communityPeerRequest": 32,
19818
+ "buttonTypeDefault": 4,
19819
+ "buttonTypeRequestPhone": 4,
19820
+ "buttonTypeRequestGeoLocation": 4,
19821
+ "inlineButtonTypeGame": 4,
19822
+ "inlineButtonTypeBuy": 4,
19823
+ "inlineButtonTypeUserProfile": 12,
19824
+ "inlineButtonTypeDisabled": 4,
19825
+ "richButtonStyle": 8,
19826
+ "ephemeral.welcomeMessagesNotModified": 4,
19412
19827
  "auth.logOut": 4,
19413
19828
  "auth.resetAuthorizations": 4,
19414
19829
  "auth.exportAuthorization": 8,
@@ -19575,6 +19990,7 @@ var m = {
19575
19990
  "smsjobs.updateSettings": 8,
19576
19991
  "smsjobs.getStatus": 4,
19577
19992
  "aicompose.getTones": 12,
19993
+ "communities.getJoinedCommunities": 4,
19578
19994
  "mt_dh_gen_ok": 52,
19579
19995
  "mt_dh_gen_retry": 52,
19580
19996
  "mt_dh_gen_fail": 52,