@mtcute/core 0.30.2 → 0.31.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 (233) hide show
  1. package/client.cjs +73 -0
  2. package/client.js +73 -0
  3. package/highlevel/client.d.cts +344 -114
  4. package/highlevel/client.d.ts +344 -114
  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/join-chat.cjs +1 -1
  10. package/highlevel/methods/chats/join-chat.d.cts +2 -1
  11. package/highlevel/methods/chats/join-chat.d.ts +2 -1
  12. package/highlevel/methods/chats/join-chat.js +1 -1
  13. package/highlevel/methods/chats/transfer-chat-ownership.cjs +6 -17
  14. package/highlevel/methods/chats/transfer-chat-ownership.js +6 -17
  15. package/highlevel/methods/communities/ban-community-participant.cjs +30 -0
  16. package/highlevel/methods/communities/ban-community-participant.d.cts +20 -0
  17. package/highlevel/methods/communities/ban-community-participant.d.ts +20 -0
  18. package/highlevel/methods/communities/ban-community-participant.js +25 -0
  19. package/highlevel/methods/communities/create-community.cjs +29 -0
  20. package/highlevel/methods/communities/create-community.d.cts +22 -0
  21. package/highlevel/methods/communities/create-community.d.ts +22 -0
  22. package/highlevel/methods/communities/create-community.js +24 -0
  23. package/highlevel/methods/communities/get-community-link-requests.cjs +27 -0
  24. package/highlevel/methods/communities/get-community-link-requests.d.cts +17 -0
  25. package/highlevel/methods/communities/get-community-link-requests.d.ts +17 -0
  26. package/highlevel/methods/communities/get-community-link-requests.js +22 -0
  27. package/highlevel/methods/communities/get-community-participant-chats.cjs +24 -0
  28. package/highlevel/methods/communities/get-community-participant-chats.d.cts +17 -0
  29. package/highlevel/methods/communities/get-community-participant-chats.d.ts +17 -0
  30. package/highlevel/methods/communities/get-community-participant-chats.js +19 -0
  31. package/highlevel/methods/communities/get-joined-communities.cjs +21 -0
  32. package/highlevel/methods/communities/get-joined-communities.d.cts +6 -0
  33. package/highlevel/methods/communities/get-joined-communities.d.ts +6 -0
  34. package/highlevel/methods/communities/get-joined-communities.js +16 -0
  35. package/highlevel/methods/communities/hide-community-link-request.cjs +30 -0
  36. package/highlevel/methods/communities/hide-community-link-request.d.cts +22 -0
  37. package/highlevel/methods/communities/hide-community-link-request.d.ts +22 -0
  38. package/highlevel/methods/communities/hide-community-link-request.js +25 -0
  39. package/highlevel/methods/communities/link-community-peer.cjs +32 -0
  40. package/highlevel/methods/communities/link-community-peer.d.cts +22 -0
  41. package/highlevel/methods/communities/link-community-peer.d.ts +22 -0
  42. package/highlevel/methods/communities/link-community-peer.js +27 -0
  43. package/highlevel/methods/communities/toggle-community-collapsed.cjs +18 -0
  44. package/highlevel/methods/communities/toggle-community-collapsed.d.cts +16 -0
  45. package/highlevel/methods/communities/toggle-community-collapsed.d.ts +16 -0
  46. package/highlevel/methods/communities/toggle-community-collapsed.js +13 -0
  47. package/highlevel/methods/ephemeral/delete-ephemeral-message.cjs +20 -0
  48. package/highlevel/methods/ephemeral/delete-ephemeral-message.d.cts +13 -0
  49. package/highlevel/methods/ephemeral/delete-ephemeral-message.d.ts +13 -0
  50. package/highlevel/methods/ephemeral/delete-ephemeral-message.js +15 -0
  51. package/highlevel/methods/ephemeral/edit-ephemeral-message.cjs +33 -0
  52. package/highlevel/methods/ephemeral/edit-ephemeral-message.d.cts +25 -0
  53. package/highlevel/methods/ephemeral/edit-ephemeral-message.d.ts +25 -0
  54. package/highlevel/methods/ephemeral/edit-ephemeral-message.js +28 -0
  55. package/highlevel/methods/ephemeral/find-in-update.cjs +27 -0
  56. package/highlevel/methods/ephemeral/find-in-update.d.cts +8 -0
  57. package/highlevel/methods/ephemeral/find-in-update.d.ts +8 -0
  58. package/highlevel/methods/ephemeral/find-in-update.js +22 -0
  59. package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.cjs +31 -0
  60. package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.d.cts +29 -0
  61. package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.d.ts +29 -0
  62. package/highlevel/methods/ephemeral/get-ephemeral-callback-answer.js +26 -0
  63. package/highlevel/methods/ephemeral/send-ephemeral-message.cjs +38 -0
  64. package/highlevel/methods/ephemeral/send-ephemeral-message.d.cts +29 -0
  65. package/highlevel/methods/ephemeral/send-ephemeral-message.d.ts +29 -0
  66. package/highlevel/methods/ephemeral/send-ephemeral-message.js +33 -0
  67. package/highlevel/methods/files/download-iterable.cjs +4 -2
  68. package/highlevel/methods/files/download-iterable.js +4 -2
  69. package/highlevel/methods/files/download-iterable.test.d.cts +1 -0
  70. package/highlevel/methods/files/download-iterable.test.d.ts +1 -0
  71. package/highlevel/methods/files/download-stream.cjs +5 -6
  72. package/highlevel/methods/files/download-stream.js +5 -6
  73. package/highlevel/methods/forums/create-forum-topic.d.cts +7 -0
  74. package/highlevel/methods/forums/create-forum-topic.d.ts +7 -0
  75. package/highlevel/methods/forums/delete-forum-topic-history.d.cts +1 -1
  76. package/highlevel/methods/forums/delete-forum-topic-history.d.ts +1 -1
  77. package/highlevel/methods/forums/edit-forum-topic.cjs +1 -1
  78. package/highlevel/methods/forums/edit-forum-topic.d.cts +2 -2
  79. package/highlevel/methods/forums/edit-forum-topic.d.ts +2 -2
  80. package/highlevel/methods/forums/edit-forum-topic.js +1 -1
  81. package/highlevel/methods/forums/get-forum-topics-by-id.cjs +5 -1
  82. package/highlevel/methods/forums/get-forum-topics-by-id.d.cts +9 -1
  83. package/highlevel/methods/forums/get-forum-topics-by-id.d.ts +9 -1
  84. package/highlevel/methods/forums/get-forum-topics-by-id.js +5 -1
  85. package/highlevel/methods/forums/get-forum-topics-by-id.test.d.cts +1 -0
  86. package/highlevel/methods/forums/get-forum-topics-by-id.test.d.ts +1 -0
  87. package/highlevel/methods/forums/get-forum-topics.cjs +1 -1
  88. package/highlevel/methods/forums/get-forum-topics.js +1 -1
  89. package/highlevel/methods/forums/toggle-forum-topic-closed.d.cts +1 -1
  90. package/highlevel/methods/forums/toggle-forum-topic-closed.d.ts +1 -1
  91. package/highlevel/methods/forums/toggle-forum-topic-pinned.d.cts +1 -1
  92. package/highlevel/methods/forums/toggle-forum-topic-pinned.d.ts +1 -1
  93. package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +2 -2
  94. package/highlevel/methods/forums/toggle-general-topic-hidden.js +3 -3
  95. package/highlevel/methods/messages/send-common.d.cts +7 -1
  96. package/highlevel/methods/messages/send-common.d.ts +7 -1
  97. package/highlevel/methods/messages/send-text.cjs +70 -4
  98. package/highlevel/methods/messages/send-text.js +70 -4
  99. package/highlevel/methods/users/resolve-peer.cjs +11 -1
  100. package/highlevel/methods/users/resolve-peer.js +11 -1
  101. package/highlevel/methods.d.cts +16 -0
  102. package/highlevel/methods.d.ts +16 -0
  103. package/highlevel/storage/service/peers.cjs +25 -0
  104. package/highlevel/storage/service/peers.js +25 -0
  105. package/highlevel/storage/service/peers.test.d.cts +1 -0
  106. package/highlevel/storage/service/peers.test.d.ts +1 -0
  107. package/highlevel/types/conversation.cjs +8 -0
  108. package/highlevel/types/conversation.d.cts +1 -0
  109. package/highlevel/types/conversation.d.ts +1 -0
  110. package/highlevel/types/conversation.js +10 -2
  111. package/highlevel/types/conversation.test.d.cts +1 -0
  112. package/highlevel/types/conversation.test.d.ts +1 -0
  113. package/highlevel/types/messages/ephemeral-message.cjs +103 -0
  114. package/highlevel/types/messages/ephemeral-message.d.cts +55 -0
  115. package/highlevel/types/messages/ephemeral-message.d.ts +55 -0
  116. package/highlevel/types/messages/ephemeral-message.js +98 -0
  117. package/highlevel/types/messages/index.d.cts +1 -0
  118. package/highlevel/types/messages/index.d.ts +1 -0
  119. package/highlevel/types/messages/message-action.cjs +6 -0
  120. package/highlevel/types/messages/message-action.d.cts +8 -1
  121. package/highlevel/types/messages/message-action.d.ts +8 -1
  122. package/highlevel/types/messages/message-action.js +6 -0
  123. package/highlevel/types/messages/replied-message.cjs +5 -1
  124. package/highlevel/types/messages/replied-message.d.cts +5 -1
  125. package/highlevel/types/messages/replied-message.d.ts +5 -1
  126. package/highlevel/types/messages/replied-message.js +5 -1
  127. package/highlevel/types/peers/chat.cjs +23 -3
  128. package/highlevel/types/peers/chat.d.cts +8 -3
  129. package/highlevel/types/peers/chat.d.ts +8 -3
  130. package/highlevel/types/peers/chat.js +24 -4
  131. package/highlevel/types/peers/community-peer.cjs +60 -0
  132. package/highlevel/types/peers/community-peer.d.cts +37 -0
  133. package/highlevel/types/peers/community-peer.d.ts +37 -0
  134. package/highlevel/types/peers/community-peer.js +55 -0
  135. package/highlevel/types/peers/full-chat.cjs +20 -5
  136. package/highlevel/types/peers/full-chat.d.cts +5 -0
  137. package/highlevel/types/peers/full-chat.d.ts +5 -0
  138. package/highlevel/types/peers/full-chat.js +20 -5
  139. package/highlevel/types/peers/index.d.cts +1 -0
  140. package/highlevel/types/peers/index.d.ts +1 -0
  141. package/highlevel/types/peers/peer.cjs +2 -0
  142. package/highlevel/types/peers/peer.js +2 -0
  143. package/highlevel/types/peers/user.cjs +6 -0
  144. package/highlevel/types/peers/user.d.cts +2 -0
  145. package/highlevel/types/peers/user.d.ts +2 -0
  146. package/highlevel/types/peers/user.js +6 -0
  147. package/highlevel/types/updates/delete-ephemeral-messages-update.cjs +27 -0
  148. package/highlevel/types/updates/delete-ephemeral-messages-update.d.cts +15 -0
  149. package/highlevel/types/updates/delete-ephemeral-messages-update.d.ts +15 -0
  150. package/highlevel/types/updates/delete-ephemeral-messages-update.js +22 -0
  151. package/highlevel/types/updates/ephemeral-callback-query.cjs +61 -0
  152. package/highlevel/types/updates/ephemeral-callback-query.d.cts +38 -0
  153. package/highlevel/types/updates/ephemeral-callback-query.d.ts +38 -0
  154. package/highlevel/types/updates/ephemeral-callback-query.js +56 -0
  155. package/highlevel/types/updates/index.d.cts +16 -2
  156. package/highlevel/types/updates/index.d.ts +16 -2
  157. package/highlevel/types/updates/parse-update.cjs +12 -1
  158. package/highlevel/types/updates/parse-update.js +12 -1
  159. package/highlevel/updates/manager.cjs +31 -13
  160. package/highlevel/updates/manager.d.cts +1 -0
  161. package/highlevel/updates/manager.d.ts +1 -0
  162. package/highlevel/updates/manager.js +31 -13
  163. package/highlevel/updates/manager.test.d.cts +1 -0
  164. package/highlevel/updates/manager.test.d.ts +1 -0
  165. package/highlevel/utils/stream-utils.cjs +8 -4
  166. package/highlevel/utils/stream-utils.js +8 -4
  167. package/highlevel/utils/stream-utils.test.d.cts +1 -0
  168. package/highlevel/utils/stream-utils.test.d.ts +1 -0
  169. package/highlevel/utils/walk-page-blocks.cjs +4 -0
  170. package/highlevel/utils/walk-page-blocks.js +4 -0
  171. package/index.cjs +10 -0
  172. package/index.js +11 -1
  173. package/methods.cjs +27 -0
  174. package/methods.js +27 -0
  175. package/network/client.cjs +4 -3
  176. package/network/client.d.cts +1 -0
  177. package/network/client.d.ts +1 -0
  178. package/network/client.js +4 -3
  179. package/network/middlewares/flood-waiter.cjs +2 -2
  180. package/network/middlewares/flood-waiter.js +2 -2
  181. package/network/middlewares/internal-errors.cjs +1 -1
  182. package/network/middlewares/internal-errors.js +1 -1
  183. package/network/middlewares/media-throttle.cjs +1 -1
  184. package/network/middlewares/media-throttle.js +1 -1
  185. package/network/mtproxy/index.cjs +4 -3
  186. package/network/mtproxy/index.d.cts +2 -2
  187. package/network/mtproxy/index.d.ts +2 -2
  188. package/network/mtproxy/index.js +4 -3
  189. package/network/network-manager.cjs +44 -16
  190. package/network/network-manager.d.cts +10 -3
  191. package/network/network-manager.d.ts +10 -3
  192. package/network/network-manager.js +45 -17
  193. package/network/network-manager.test.d.cts +1 -0
  194. package/network/network-manager.test.d.ts +1 -0
  195. package/network/persistent-connection.cjs +10 -2
  196. package/network/persistent-connection.js +10 -2
  197. package/network/session-connection.cjs +3 -0
  198. package/network/session-connection.js +3 -0
  199. package/network/transports/abstract.cjs +16 -0
  200. package/network/transports/abstract.d.cts +8 -2
  201. package/network/transports/abstract.d.ts +8 -2
  202. package/network/transports/abstract.js +17 -1
  203. package/network/transports/obfuscated.cjs +3 -1
  204. package/network/transports/obfuscated.js +3 -1
  205. package/package.json +6 -6
  206. package/tl/api-schema.json +1 -1
  207. package/tl/binary/reader.cjs +90 -15
  208. package/tl/binary/reader.js +90 -15
  209. package/tl/binary/writer.cjs +385 -80
  210. package/tl/binary/writer.js +385 -80
  211. package/tl/compat/reader.cjs +11 -0
  212. package/tl/compat/reader.js +11 -0
  213. package/tl/index.d.cts +12380 -4272
  214. package/tl/index.d.ts +12380 -4272
  215. package/tl/inner-tl.cjs +70 -20
  216. package/tl/inner-tl.js +70 -20
  217. package/tl/raw-errors.json +1 -1
  218. package/utils/abort-signal.cjs +1 -12
  219. package/utils/abort-signal.js +1 -12
  220. package/utils/abort-signal.test.d.cts +1 -0
  221. package/utils/abort-signal.test.d.ts +1 -0
  222. package/utils/binary/compat.cjs +14 -0
  223. package/utils/binary/compat.js +14 -0
  224. package/utils/early-timer.cjs +3 -11
  225. package/utils/early-timer.js +3 -11
  226. package/utils/early-timer.test.d.cts +1 -0
  227. package/utils/early-timer.test.d.ts +1 -0
  228. package/utils/function-utils.cjs +9 -4
  229. package/utils/function-utils.js +9 -4
  230. package/utils/links/bots.cjs +3 -0
  231. package/utils/links/bots.js +3 -0
  232. package/utils/peer-utils.cjs +8 -0
  233. package/utils/peer-utils.js +8 -0
@@ -230,9 +230,9 @@ var m = {
230
230
  3552332666: function(r) {
231
231
  return { _: "userEmpty", id: r.int53() };
232
232
  },
233
- 829899656: function(r) {
233
+ 2981678211: function(r) {
234
234
  var flags = r.uint(), flags2 = r.uint();
235
- return { _: "user", self: !!(flags & 1024), contact: !!(flags & 2048), mutualContact: !!(flags & 4096), deleted: !!(flags & 8192), bot: !!(flags & 16384), botChatHistory: !!(flags & 32768), botNochats: !!(flags & 65536), verified: !!(flags & 131072), restricted: !!(flags & 262144), min: !!(flags & 1048576), botInlineGeo: !!(flags & 2097152), support: !!(flags & 8388608), scam: !!(flags & 16777216), applyMinPhoto: !!(flags & 33554432), fake: !!(flags & 67108864), botAttachMenu: !!(flags & 134217728), premium: !!(flags & 268435456), attachMenuEnabled: !!(flags & 536870912), botCanEdit: !!(flags2 & 2), closeFriend: !!(flags2 & 4), storiesHidden: !!(flags2 & 8), storiesUnavailable: !!(flags2 & 16), contactRequirePremium: !!(flags2 & 1024), botBusiness: !!(flags2 & 2048), botHasMainApp: !!(flags2 & 8192), botForumView: !!(flags2 & 65536), botForumCanManageTopics: !!(flags2 & 131072), botCanManageBots: !!(flags2 & 262144), botGuestchat: !!(flags2 & 524288), botGuard: !!(flags2 & 1048576), id: r.int53(), accessHash: flags & 1 ? r.long() : void 0, firstName: flags & 2 ? r.string() : void 0, lastName: flags & 4 ? r.string() : void 0, username: flags & 8 ? r.string() : void 0, phone: flags & 16 ? r.string() : void 0, photo: flags & 32 ? r.object() : void 0, status: flags & 64 ? r.object() : void 0, botInfoVersion: flags & 16384 ? r.int() : void 0, restrictionReason: flags & 262144 ? r.vector(r.object) : void 0, botInlinePlaceholder: flags & 524288 ? r.string() : void 0, langCode: flags & 4194304 ? r.string() : void 0, emojiStatus: flags & 1073741824 ? r.object() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 32 ? r.object() : void 0, color: flags2 & 256 ? r.object() : void 0, profileColor: flags2 & 512 ? r.object() : void 0, botActiveUsers: flags2 & 4096 ? r.int() : void 0, botVerificationIcon: flags2 & 16384 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 32768 ? r.long() : void 0 };
235
+ return { _: "user", self: !!(flags & 1024), contact: !!(flags & 2048), mutualContact: !!(flags & 4096), deleted: !!(flags & 8192), bot: !!(flags & 16384), botChatHistory: !!(flags & 32768), botNochats: !!(flags & 65536), verified: !!(flags & 131072), restricted: !!(flags & 262144), min: !!(flags & 1048576), botInlineGeo: !!(flags & 2097152), support: !!(flags & 8388608), scam: !!(flags & 16777216), applyMinPhoto: !!(flags & 33554432), fake: !!(flags & 67108864), botAttachMenu: !!(flags & 134217728), premium: !!(flags & 268435456), attachMenuEnabled: !!(flags & 536870912), botCanEdit: !!(flags2 & 2), closeFriend: !!(flags2 & 4), storiesHidden: !!(flags2 & 8), storiesUnavailable: !!(flags2 & 16), contactRequirePremium: !!(flags2 & 1024), botBusiness: !!(flags2 & 2048), botHasMainApp: !!(flags2 & 8192), botForumView: !!(flags2 & 65536), botForumCanManageTopics: !!(flags2 & 131072), botCanManageBots: !!(flags2 & 262144), botGuestchat: !!(flags2 & 524288), botGuard: !!(flags2 & 1048576), id: r.int53(), accessHash: flags & 1 ? r.long() : void 0, firstName: flags & 2 ? r.string() : void 0, lastName: flags & 4 ? r.string() : void 0, username: flags & 8 ? r.string() : void 0, phone: flags & 16 ? r.string() : void 0, photo: flags & 32 ? r.object() : void 0, status: flags & 64 ? r.object() : void 0, botInfoVersion: flags & 16384 ? r.int() : void 0, restrictionReason: flags & 262144 ? r.vector(r.object) : void 0, botInlinePlaceholder: flags & 524288 ? r.string() : void 0, langCode: flags & 4194304 ? r.string() : void 0, emojiStatus: flags & 1073741824 ? r.object() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 32 ? r.object() : void 0, color: flags2 & 256 ? r.object() : void 0, profileColor: flags2 & 512 ? r.object() : void 0, botActiveUsers: flags2 & 4096 ? r.int() : void 0, botVerificationIcon: flags2 & 16384 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 32768 ? r.long() : void 0, linkedCommunityId: flags2 & 2097152 ? r.int53() : void 0 };
236
236
  },
237
237
  1326562017: function(r) {
238
238
  return { _: "userProfilePhotoEmpty" };
@@ -272,14 +272,22 @@ var m = {
272
272
  1704108455: function(r) {
273
273
  return { _: "chatForbidden", id: r.int53(), title: r.string() };
274
274
  },
275
- 473084188: function(r) {
275
+ 3567203526: function(r) {
276
276
  var flags = r.uint(), flags2 = r.uint();
277
- return { _: "channel", creator: !!(flags & 1), left: !!(flags & 4), broadcast: !!(flags & 32), verified: !!(flags & 128), megagroup: !!(flags & 256), restricted: !!(flags & 512), signatures: !!(flags & 2048), min: !!(flags & 4096), scam: !!(flags & 524288), hasLink: !!(flags & 1048576), hasGeo: !!(flags & 2097152), slowmodeEnabled: !!(flags & 4194304), callActive: !!(flags & 8388608), callNotEmpty: !!(flags & 16777216), fake: !!(flags & 33554432), gigagroup: !!(flags & 67108864), noforwards: !!(flags & 134217728), joinToSend: !!(flags & 268435456), joinRequest: !!(flags & 536870912), forum: !!(flags & 1073741824), storiesHidden: !!(flags2 & 2), storiesHiddenMin: !!(flags2 & 4), storiesUnavailable: !!(flags2 & 8), signatureProfiles: !!(flags2 & 4096), autotranslation: !!(flags2 & 32768), broadcastMessagesAllowed: !!(flags2 & 65536), monoforum: !!(flags2 & 131072), forumTabs: !!(flags2 & 524288), id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string(), username: flags & 64 ? r.string() : void 0, photo: r.object(), date: r.int(), restrictionReason: flags & 512 ? r.vector(r.object) : void 0, adminRights: flags & 16384 ? r.object() : void 0, bannedRights: flags & 32768 ? r.object() : void 0, defaultBannedRights: flags & 262144 ? r.object() : void 0, participantsCount: flags & 131072 ? r.int() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 16 ? r.object() : void 0, color: flags2 & 128 ? r.object() : void 0, profileColor: flags2 & 256 ? r.object() : void 0, emojiStatus: flags2 & 512 ? r.object() : void 0, level: flags2 & 1024 ? r.int() : void 0, subscriptionUntilDate: flags2 & 2048 ? r.int() : void 0, botVerificationIcon: flags2 & 8192 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, linkedMonoforumId: flags2 & 262144 ? r.int53() : void 0 };
277
+ return { _: "channel", creator: !!(flags & 1), left: !!(flags & 4), broadcast: !!(flags & 32), verified: !!(flags & 128), megagroup: !!(flags & 256), restricted: !!(flags & 512), signatures: !!(flags & 2048), min: !!(flags & 4096), scam: !!(flags & 524288), hasLink: !!(flags & 1048576), hasGeo: !!(flags & 2097152), slowmodeEnabled: !!(flags & 4194304), callActive: !!(flags & 8388608), callNotEmpty: !!(flags & 16777216), fake: !!(flags & 33554432), gigagroup: !!(flags & 67108864), noforwards: !!(flags & 134217728), joinToSend: !!(flags & 268435456), joinRequest: !!(flags & 536870912), forum: !!(flags & 1073741824), storiesHidden: !!(flags2 & 2), storiesHiddenMin: !!(flags2 & 4), storiesUnavailable: !!(flags2 & 8), signatureProfiles: !!(flags2 & 4096), autotranslation: !!(flags2 & 32768), broadcastMessagesAllowed: !!(flags2 & 65536), monoforum: !!(flags2 & 131072), forumTabs: !!(flags2 & 524288), id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string(), username: flags & 64 ? r.string() : void 0, photo: r.object(), date: r.int(), restrictionReason: flags & 512 ? r.vector(r.object) : void 0, adminRights: flags & 16384 ? r.object() : void 0, bannedRights: flags & 32768 ? r.object() : void 0, defaultBannedRights: flags & 262144 ? r.object() : void 0, participantsCount: flags & 131072 ? r.int() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 16 ? r.object() : void 0, color: flags2 & 128 ? r.object() : void 0, profileColor: flags2 & 256 ? r.object() : void 0, emojiStatus: flags2 & 512 ? r.object() : void 0, level: flags2 & 1024 ? r.int() : void 0, subscriptionUntilDate: flags2 & 2048 ? r.int() : void 0, botVerificationIcon: flags2 & 8192 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, linkedMonoforumId: flags2 & 262144 ? r.int53() : void 0, linkedCommunityId: flags2 & 1048576 ? r.int53() : void 0 };
278
278
  },
279
279
  399807445: function(r) {
280
280
  var flags = r.uint();
281
281
  return { _: "channelForbidden", broadcast: !!(flags & 32), megagroup: !!(flags & 256), monoforum: !!(flags & 1024), id: r.int53(), accessHash: r.long(), title: r.string(), untilDate: flags & 65536 ? r.int() : void 0 };
282
282
  },
283
+ 4248623800: function(r) {
284
+ var flags = r.uint();
285
+ return { _: "communityForbidden", id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string() };
286
+ },
287
+ 1710221652: function(r) {
288
+ var flags = r.uint(), flags2 = r.uint();
289
+ return { _: "community", creator: !!(flags & 1), left: !!(flags & 4), min: !!(flags & 4096), collapsedInDialogs: !!(flags2 & 1048576), id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string(), photo: r.object(), date: r.int(), adminRights: flags & 16384 ? r.object() : void 0, defaultBannedRights: flags & 262144 ? r.object() : void 0 };
290
+ },
283
291
  640893467: function(r) {
284
292
  var flags = r.uint();
285
293
  return { _: "chatFull", canSetUsername: !!(flags & 128), hasScheduled: !!(flags & 256), translationsDisabled: !!(flags & 524288), id: r.int53(), about: r.string(), participants: r.object(), chatPhoto: flags & 4 ? r.object() : void 0, notifySettings: r.object(), exportedInvite: flags & 8192 ? r.object() : void 0, botInfo: flags & 8 ? r.vector(r.object) : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, folderId: flags & 2048 ? r.int() : void 0, call: flags & 4096 ? r.object() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, groupcallDefaultJoinAs: flags & 32768 ? r.object() : void 0, themeEmoticon: flags & 65536 ? r.string() : void 0, requestsPending: flags & 131072 ? r.int() : void 0, recentRequesters: flags & 131072 ? r.vector(r.long) : void 0, availableReactions: flags & 262144 ? r.object() : void 0, reactionsLimit: flags & 1048576 ? r.int() : void 0 };
@@ -288,6 +296,10 @@ var m = {
288
296
  var flags = r.uint(), flags2 = r.uint();
289
297
  return { _: "channelFull", canViewParticipants: !!(flags & 8), canSetUsername: !!(flags & 64), canSetStickers: !!(flags & 128), hiddenPrehistory: !!(flags & 1024), canSetLocation: !!(flags & 65536), hasScheduled: !!(flags & 524288), canViewStats: !!(flags & 1048576), blocked: !!(flags & 4194304), canDeleteChannel: !!(flags2 & 1), antispam: !!(flags2 & 2), participantsHidden: !!(flags2 & 4), translationsDisabled: !!(flags2 & 8), storiesPinnedAvailable: !!(flags2 & 32), viewForumAsMessages: !!(flags2 & 64), restrictedSponsored: !!(flags2 & 2048), canViewRevenue: !!(flags2 & 4096), paidMediaAllowed: !!(flags2 & 16384), canViewStarsRevenue: !!(flags2 & 32768), paidReactionsAvailable: !!(flags2 & 65536), stargiftsAvailable: !!(flags2 & 524288), paidMessagesAvailable: !!(flags2 & 1048576), id: r.int53(), about: r.string(), participantsCount: flags & 1 ? r.int() : void 0, adminsCount: flags & 2 ? r.int() : void 0, kickedCount: flags & 4 ? r.int() : void 0, bannedCount: flags & 4 ? r.int() : void 0, onlineCount: flags & 8192 ? r.int() : void 0, readInboxMaxId: r.int(), readOutboxMaxId: r.int(), unreadCount: r.int(), chatPhoto: r.object(), notifySettings: r.object(), exportedInvite: flags & 8388608 ? r.object() : void 0, botInfo: r.vector(r.object), migratedFromChatId: flags & 16 ? r.long() : void 0, migratedFromMaxId: flags & 16 ? r.int() : void 0, pinnedMsgId: flags & 32 ? r.int() : void 0, stickerset: flags & 256 ? r.object() : void 0, availableMinId: flags & 512 ? r.int() : void 0, folderId: flags & 2048 ? r.int() : void 0, linkedChatId: flags & 16384 ? r.int53() : void 0, location: flags & 32768 ? r.object() : void 0, slowmodeSeconds: flags & 131072 ? r.int() : void 0, slowmodeNextSendDate: flags & 262144 ? r.int() : void 0, statsDc: flags & 4096 ? r.int() : void 0, pts: r.int(), call: flags & 2097152 ? r.object() : void 0, ttlPeriod: flags & 16777216 ? r.int() : void 0, pendingSuggestions: flags & 33554432 ? r.vector(r.string) : void 0, groupcallDefaultJoinAs: flags & 67108864 ? r.object() : void 0, themeEmoticon: flags & 134217728 ? r.string() : void 0, requestsPending: flags & 268435456 ? r.int() : void 0, recentRequesters: flags & 268435456 ? r.vector(r.int53) : void 0, defaultSendAs: flags & 536870912 ? r.object() : void 0, availableReactions: flags & 1073741824 ? r.object() : void 0, reactionsLimit: flags2 & 8192 ? r.int() : void 0, stories: flags2 & 16 ? r.object() : void 0, wallpaper: flags2 & 128 ? r.object() : void 0, boostsApplied: flags2 & 256 ? r.int() : void 0, boostsUnrestrict: flags2 & 512 ? r.int() : void 0, emojiset: flags2 & 1024 ? r.object() : void 0, botVerification: flags2 & 131072 ? r.object() : void 0, stargiftsCount: flags2 & 262144 ? r.int() : void 0, sendPaidMessagesStars: flags2 & 2097152 ? r.long() : void 0, mainTab: flags2 & 4194304 ? r.object() : void 0, guardBotId: flags2 & 8388608 ? r.int53() : void 0 };
290
298
  },
299
+ 3417810183: function(r) {
300
+ var flags = r.uint();
301
+ return { _: "communityFull", id: r.int53(), about: r.string(), chatPhoto: r.object(), linkedPeers: r.vector(r.object), adminsCount: flags & 2 ? r.int() : void 0, kickedCount: flags & 4 ? r.int() : void 0, peerLinkRequestsPending: flags & 1 ? r.int() : void 0 };
302
+ },
291
303
  954703838: function(r) {
292
304
  var flags = r.uint();
293
305
  return { _: "chatParticipant", userId: r.int53(), inviterId: r.int53(), date: r.int(), rank: flags & 1 ? r.string() : void 0 };
@@ -622,6 +634,10 @@ var m = {
622
634
  375414334: function(r) {
623
635
  return { _: "messageActionManagedBotCreated", botId: r.int53() };
624
636
  },
637
+ 1562426088: function(r) {
638
+ var flags = r.uint();
639
+ return { _: "messageActionChangeCommunity", communityId: flags & 1 ? r.int53() : void 0 };
640
+ },
625
641
  4236900339: function(r) {
626
642
  var flags = r.uint();
627
643
  return { _: "dialog", pinned: !!(flags & 4), unreadMark: !!(flags & 8), viewForumAsMessages: !!(flags & 64), peer: r.object(), topMessage: r.int(), readInboxMaxId: r.int(), readOutboxMaxId: r.int(), unreadCount: r.int(), unreadMentionsCount: r.int(), unreadReactionsCount: r.int(), unreadPollVotesCount: r.int(), notifySettings: r.object(), pts: flags & 1 ? r.int() : void 0, draft: flags & 2 ? r.object() : void 0, folderId: flags & 16 ? r.int() : void 0, ttlPeriod: flags & 32 ? r.int() : void 0 };
@@ -630,6 +646,10 @@ var m = {
630
646
  var flags = r.uint();
631
647
  return { _: "dialogFolder", pinned: !!(flags & 4), folder: r.object(), peer: r.object(), topMessage: r.int(), unreadMutedPeersCount: r.int(), unreadUnmutedPeersCount: r.int(), unreadMutedMessagesCount: r.int(), unreadUnmutedMessagesCount: r.int() };
632
648
  },
649
+ 4153018739: function(r) {
650
+ var flags = r.uint();
651
+ return { _: "dialogCommunity", pinned: !!(flags & 4), communityId: r.int53(), notifySettings: r.object() };
652
+ },
633
653
  590459437: function(r) {
634
654
  return { _: "photoEmpty", id: r.long() };
635
655
  },
@@ -698,6 +718,9 @@ var m = {
698
718
  1548122514: function(r) {
699
719
  return { _: "inputNotifyForumTopic", peer: r.object(), topMsgId: r.int() };
700
720
  },
721
+ 666573532: function(r) {
722
+ return { _: "inputNotifyCommunity", community: r.object() };
723
+ },
701
724
  3402328802: function(r) {
702
725
  var flags = r.uint();
703
726
  return { _: "inputPeerNotifySettings", showPreviews: flags & 1 ? r.boolean() : void 0, silent: flags & 2 ? r.boolean() : void 0, muteUntil: flags & 4 ? r.int() : void 0, sound: flags & 8 ? r.object() : void 0, storiesMuted: flags & 64 ? r.boolean() : void 0, storiesHideSender: flags & 128 ? r.boolean() : void 0, storiesSound: flags & 256 ? r.object() : void 0 };
@@ -1395,6 +1418,22 @@ var m = {
1395
1418
  var flags = r.uint();
1396
1419
  return { _: "updateWebBrowserException", delete: !!(flags & 2), openExternalBrowser: flags & 1 ? r.boolean() : void 0, exception: r.object() };
1397
1420
  },
1421
+ 549239713: function(r) {
1422
+ return { _: "updateNewEphemeralMessage", message: r.object() };
1423
+ },
1424
+ 1457257720: function(r) {
1425
+ return { _: "updateDeleteEphemeralMessages", peer: r.object(), ids: r.vector(r.int) };
1426
+ },
1427
+ 1270583041: function(r) {
1428
+ return { _: "updateEditEphemeralMessage", message: r.object() };
1429
+ },
1430
+ 2604140386: function(r) {
1431
+ return { _: "updateEphemeralBotCallbackQuery", queryId: r.long(), userId: r.int53(), peer: r.object(), msgId: r.int(), data: r.bytes(), message: r.object() };
1432
+ },
1433
+ 1812827683: function(r) {
1434
+ var flags = r.uint();
1435
+ return { _: "updateBotStarsSubscription", canceled: !!(flags & 1), paymentFailed: !!(flags & 2), restored: !!(flags & 4), userId: r.int53(), payload: r.bytes(), qts: r.int() };
1436
+ },
1398
1437
  2775329342: function(r) {
1399
1438
  return { _: "updates.state", pts: r.int(), qts: r.int(), date: r.int(), seq: r.int(), unreadCount: r.int() };
1400
1439
  },
@@ -1557,6 +1596,9 @@ var m = {
1557
1596
  577659656: function(r) {
1558
1597
  return { _: "notifyForumTopic", peer: r.object(), topMsgId: r.int() };
1559
1598
  },
1599
+ 3191302553: function(r) {
1600
+ return { _: "notifyCommunity", communityId: r.int53() };
1601
+ },
1560
1602
  381645902: function(r) {
1561
1603
  return { _: "sendMessageTypingAction" };
1562
1604
  },
@@ -1935,8 +1977,9 @@ var m = {
1935
1977
  3556320491: function(r) {
1936
1978
  return { _: "messages.stickerSetNotModified" };
1937
1979
  },
1938
- 3262826695: function(r) {
1939
- return { _: "botCommand", command: r.string(), description: r.string() };
1980
+ 2555565778: function(r) {
1981
+ var flags = r.uint();
1982
+ return { _: "botCommand", ephemeral: !!(flags & 1), command: r.string(), description: r.string() };
1940
1983
  },
1941
1984
  1300890265: function(r) {
1942
1985
  var flags = r.uint();
@@ -2584,6 +2627,9 @@ var m = {
2584
2627
  var flags = r.uint();
2585
2628
  return { _: "textDate", relative: !!(flags & 1), shortTime: !!(flags & 2), longTime: !!(flags & 4), shortDate: !!(flags & 8), longDate: !!(flags & 16), dayOfWeek: !!(flags & 32), text: r.object(), date: r.int() };
2586
2629
  },
2630
+ 2525416272: function(r) {
2631
+ return { _: "textDiff", text: r.object(), oldText: r.object() };
2632
+ },
2587
2633
  324435594: function(r) {
2588
2634
  return { _: "pageBlockUnsupported" };
2589
2635
  },
@@ -3116,12 +3162,18 @@ var m = {
3116
3162
  1684014375: function(r) {
3117
3163
  return { _: "inputDialogPeerFolder", folderId: r.int() };
3118
3164
  },
3165
+ 1777300164: function(r) {
3166
+ return { _: "inputDialogPeerCommunity", community: r.object() };
3167
+ },
3119
3168
  3849174789: function(r) {
3120
3169
  return { _: "dialogPeer", peer: r.object() };
3121
3170
  },
3122
3171
  1363483106: function(r) {
3123
3172
  return { _: "dialogPeerFolder", folderId: r.int() };
3124
3173
  },
3174
+ 795199716: function(r) {
3175
+ return { _: "dialogPeerCommunity", communityId: r.int53() };
3176
+ },
3125
3177
  223655517: function(r) {
3126
3178
  return { _: "messages.foundStickerSetsNotModified" };
3127
3179
  },
@@ -3393,11 +3445,11 @@ var m = {
3393
3445
  },
3394
3446
  1605510357: function(r) {
3395
3447
  var flags = r.uint();
3396
- return { _: "chatAdminRights", changeInfo: !!(flags & 1), postMessages: !!(flags & 2), editMessages: !!(flags & 4), deleteMessages: !!(flags & 8), banUsers: !!(flags & 16), inviteUsers: !!(flags & 32), pinMessages: !!(flags & 128), addAdmins: !!(flags & 512), anonymous: !!(flags & 1024), manageCall: !!(flags & 2048), other: !!(flags & 4096), manageTopics: !!(flags & 8192), postStories: !!(flags & 16384), editStories: !!(flags & 32768), deleteStories: !!(flags & 65536), manageDirectMessages: !!(flags & 131072), manageRanks: !!(flags & 262144) };
3448
+ return { _: "chatAdminRights", changeInfo: !!(flags & 1), postMessages: !!(flags & 2), editMessages: !!(flags & 4), deleteMessages: !!(flags & 8), banUsers: !!(flags & 16), inviteUsers: !!(flags & 32), pinMessages: !!(flags & 128), addAdmins: !!(flags & 512), anonymous: !!(flags & 1024), manageCall: !!(flags & 2048), other: !!(flags & 4096), manageTopics: !!(flags & 8192), postStories: !!(flags & 16384), editStories: !!(flags & 32768), deleteStories: !!(flags & 65536), manageDirectMessages: !!(flags & 131072), manageRanks: !!(flags & 262144), manageLinkedPeers: !!(flags & 524288) };
3397
3449
  },
3398
3450
  2668758040: function(r) {
3399
3451
  var flags = r.uint();
3400
- return { _: "chatBannedRights", viewMessages: !!(flags & 1), sendMessages: !!(flags & 2), sendMedia: !!(flags & 4), sendStickers: !!(flags & 8), sendGifs: !!(flags & 16), sendGames: !!(flags & 32), sendInline: !!(flags & 64), embedLinks: !!(flags & 128), sendPolls: !!(flags & 256), changeInfo: !!(flags & 1024), inviteUsers: !!(flags & 32768), pinMessages: !!(flags & 131072), manageTopics: !!(flags & 262144), sendPhotos: !!(flags & 524288), sendVideos: !!(flags & 1048576), sendRoundvideos: !!(flags & 2097152), sendAudios: !!(flags & 4194304), sendVoices: !!(flags & 8388608), sendDocs: !!(flags & 16777216), sendPlain: !!(flags & 33554432), editRank: !!(flags & 67108864), sendReactions: !!(flags & 134217728), untilDate: r.int() };
3452
+ return { _: "chatBannedRights", viewMessages: !!(flags & 1), sendMessages: !!(flags & 2), sendMedia: !!(flags & 4), sendStickers: !!(flags & 8), sendGifs: !!(flags & 16), sendGames: !!(flags & 32), sendInline: !!(flags & 64), embedLinks: !!(flags & 128), sendPolls: !!(flags & 256), changeInfo: !!(flags & 1024), inviteUsers: !!(flags & 32768), pinMessages: !!(flags & 131072), manageTopics: !!(flags & 262144), sendPhotos: !!(flags & 524288), sendVideos: !!(flags & 1048576), sendRoundvideos: !!(flags & 2097152), sendAudios: !!(flags & 4194304), sendVoices: !!(flags & 8388608), sendDocs: !!(flags & 16777216), sendPlain: !!(flags & 33554432), editRank: !!(flags & 67108864), sendReactions: !!(flags & 134217728), manageLinkedPeers: !!(flags & 268435456), untilDate: r.int() };
3401
3453
  },
3402
3454
  3861952889: function(r) {
3403
3455
  return { _: "inputWallPaper", id: r.long(), accessHash: r.long() };
@@ -3669,7 +3721,7 @@ var m = {
3669
3721
  },
3670
3722
  462937446: function(r) {
3671
3723
  var flags = r.uint();
3672
- return { _: "messageReplyHeader", replyToScheduled: !!(flags & 4), forumTopic: !!(flags & 8), quote: !!(flags & 512), replyToMsgId: flags & 16 ? r.int() : void 0, replyToPeerId: flags & 1 ? r.object() : void 0, replyFrom: flags & 32 ? r.object() : void 0, replyMedia: flags & 256 ? r.object() : void 0, replyToTopId: flags & 2 ? r.int() : void 0, quoteText: flags & 64 ? r.string() : void 0, quoteEntities: flags & 128 ? r.vector(r.object) : void 0, quoteOffset: flags & 1024 ? r.int() : void 0, todoItemId: flags & 2048 ? r.int() : void 0, pollOption: flags & 4096 ? r.bytes() : void 0, replyToEphemeral: !!(flags & 8192) };
3724
+ return { _: "messageReplyHeader", replyToScheduled: !!(flags & 4), forumTopic: !!(flags & 8), quote: !!(flags & 512), replyToEphemeral: !!(flags & 8192), replyToMsgId: flags & 16 ? r.int() : void 0, replyToPeerId: flags & 1 ? r.object() : void 0, replyFrom: flags & 32 ? r.object() : void 0, replyMedia: flags & 256 ? r.object() : void 0, replyToTopId: flags & 2 ? r.int() : void 0, quoteText: flags & 64 ? r.string() : void 0, quoteEntities: flags & 128 ? r.vector(r.object) : void 0, quoteOffset: flags & 1024 ? r.int() : void 0, todoItemId: flags & 2048 ? r.int() : void 0, pollOption: flags & 4096 ? r.bytes() : void 0 };
3673
3725
  },
3674
3726
  240843065: function(r) {
3675
3727
  return { _: "messageReplyStoryHeader", peer: r.object(), storyId: r.int() };
@@ -4348,6 +4400,9 @@ var m = {
4348
4400
  1775660101: function(r) {
4349
4401
  return { _: "inputReplyToMonoForum", monoforumPeerId: r.object() };
4350
4402
  },
4403
+ 1092204894: function(r) {
4404
+ return { _: "inputReplyToEphemeralMessage", id: r.int() };
4405
+ },
4351
4406
  1070138683: function(r) {
4352
4407
  return { _: "exportedStoryLink", link: r.string() };
4353
4408
  },
@@ -5260,6 +5315,9 @@ var m = {
5260
5315
  530584407: function(r) {
5261
5316
  return { _: "inputAiComposeToneSlug", slug: r.string() };
5262
5317
  },
5318
+ 235681199: function(r) {
5319
+ return { _: "inputAiComposeToneSingleUse", customPrompt: r.string() };
5320
+ },
5263
5321
  3489021609: function(r) {
5264
5322
  var flags = r.uint();
5265
5323
  return { _: "aiComposeTone", creator: !!(flags & 1), id: r.long(), accessHash: r.long(), slug: r.string(), title: r.string(), emojiId: flags & 2 ? r.long() : void 0, prompt: flags & 16 ? r.string() : void 0, installsCount: flags & 4 ? r.int() : void 0, authorId: flags & 8 ? r.int53() : void 0, exampleEnglish: flags & 32 ? r.object() : void 0 };
@@ -5283,8 +5341,8 @@ var m = {
5283
5341
  1146512295: function(r) {
5284
5342
  return { _: "messages.chatInviteJoinResultOk", updates: r.object() };
5285
5343
  },
5286
- 793887543: function(r) {
5287
- return { _: "messages.chatInviteJoinResultWebView", botId: r.int53(), webview: r.object(), users: r.vector(r.object) };
5344
+ 1640638931: function(r) {
5345
+ return { _: "messages.chatInviteJoinResultWebView", botId: r.int53(), queryId: r.long(), users: r.vector(r.object) };
5288
5346
  },
5289
5347
  2920622697: function(r) {
5290
5348
  return { _: "joinChatBotResultApproved" };
@@ -5331,13 +5389,30 @@ var m = {
5331
5389
  var flags = r.uint();
5332
5390
  return { _: "richMessage", rtl: !!(flags & 1), part: !!(flags & 2), blocks: r.vector(r.object), photos: r.vector(r.object), documents: r.vector(r.object) };
5333
5391
  },
5334
- 422509539: function(r) {
5392
+ 1981030077: function(r) {
5335
5393
  var flags = r.uint();
5336
- return { _: "updateChannelPinnedTopic", pinned: !!(flags & 1), channelId: r.int53(), topicId: r.int() };
5394
+ return { _: "communityPeer", canViewHistory: !!(flags & 4), visible: flags & 1 ? r.boolean() : void 0, peer: r.object() };
5337
5395
  },
5338
- 4263085570: function(r) {
5396
+ 2078997125: function(r) {
5339
5397
  var flags = r.uint();
5340
- return { _: "updateChannelPinnedTopics", channelId: r.int53(), order: flags & 1 ? r.vector(r.int) : void 0 };
5398
+ return { _: "communityPeerRequest", visible: !!(flags & 1), peer: r.object(), requestedBy: r.int53(), date: r.int() };
5399
+ },
5400
+ 574926765: function(r) {
5401
+ var flags = r.uint();
5402
+ return { _: "communities.peerLinkRequests", totalCount: r.int(), requests: r.vector(r.object), nextOffset: flags & 1 ? r.string() : void 0, chats: r.vector(r.object), users: r.vector(r.object) };
5403
+ },
5404
+ 3653688346: function(r) {
5405
+ var flags = r.uint();
5406
+ return { _: "ephemeralMessage", out: !!(flags & 1), id: r.int(), fromId: r.object(), peerId: r.object(), receiverId: r.int53(), topMsgId: flags & 2 ? r.int() : void 0, date: r.int(), message: r.string(), entities: flags & 4 ? r.vector(r.object) : void 0, media: flags & 8 ? r.object() : void 0, replyMarkup: flags & 16 ? r.object() : void 0, replyTo: flags & 64 ? r.object() : void 0 };
5407
+ },
5408
+ 2373472554: function(r) {
5409
+ return { _: "communities.participantJoinedChats", creatorChatIds: r.vector(r.int53), joinedChatIds: r.vector(r.int53), chats: r.vector(r.object), users: r.vector(r.object) };
5410
+ },
5411
+ 1107532175: function(r) {
5412
+ return { _: "messages.translatedRichMessage", result: r.vector(r.object) };
5413
+ },
5414
+ 1279604680: function(r) {
5415
+ return { _: "messages.composedRichMessageWithAI", result: r.object() };
5341
5416
  },
5342
5417
  _results: {
5343
5418
  "contacts.getContactIDs": function(r) {
@@ -223,9 +223,9 @@ var m = {
223
223
  3552332666: function(r) {
224
224
  return { _: "userEmpty", id: r.int53() };
225
225
  },
226
- 829899656: function(r) {
226
+ 2981678211: function(r) {
227
227
  var flags = r.uint(), flags2 = r.uint();
228
- return { _: "user", self: !!(flags & 1024), contact: !!(flags & 2048), mutualContact: !!(flags & 4096), deleted: !!(flags & 8192), bot: !!(flags & 16384), botChatHistory: !!(flags & 32768), botNochats: !!(flags & 65536), verified: !!(flags & 131072), restricted: !!(flags & 262144), min: !!(flags & 1048576), botInlineGeo: !!(flags & 2097152), support: !!(flags & 8388608), scam: !!(flags & 16777216), applyMinPhoto: !!(flags & 33554432), fake: !!(flags & 67108864), botAttachMenu: !!(flags & 134217728), premium: !!(flags & 268435456), attachMenuEnabled: !!(flags & 536870912), botCanEdit: !!(flags2 & 2), closeFriend: !!(flags2 & 4), storiesHidden: !!(flags2 & 8), storiesUnavailable: !!(flags2 & 16), contactRequirePremium: !!(flags2 & 1024), botBusiness: !!(flags2 & 2048), botHasMainApp: !!(flags2 & 8192), botForumView: !!(flags2 & 65536), botForumCanManageTopics: !!(flags2 & 131072), botCanManageBots: !!(flags2 & 262144), botGuestchat: !!(flags2 & 524288), botGuard: !!(flags2 & 1048576), id: r.int53(), accessHash: flags & 1 ? r.long() : void 0, firstName: flags & 2 ? r.string() : void 0, lastName: flags & 4 ? r.string() : void 0, username: flags & 8 ? r.string() : void 0, phone: flags & 16 ? r.string() : void 0, photo: flags & 32 ? r.object() : void 0, status: flags & 64 ? r.object() : void 0, botInfoVersion: flags & 16384 ? r.int() : void 0, restrictionReason: flags & 262144 ? r.vector(r.object) : void 0, botInlinePlaceholder: flags & 524288 ? r.string() : void 0, langCode: flags & 4194304 ? r.string() : void 0, emojiStatus: flags & 1073741824 ? r.object() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 32 ? r.object() : void 0, color: flags2 & 256 ? r.object() : void 0, profileColor: flags2 & 512 ? r.object() : void 0, botActiveUsers: flags2 & 4096 ? r.int() : void 0, botVerificationIcon: flags2 & 16384 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 32768 ? r.long() : void 0 };
228
+ return { _: "user", self: !!(flags & 1024), contact: !!(flags & 2048), mutualContact: !!(flags & 4096), deleted: !!(flags & 8192), bot: !!(flags & 16384), botChatHistory: !!(flags & 32768), botNochats: !!(flags & 65536), verified: !!(flags & 131072), restricted: !!(flags & 262144), min: !!(flags & 1048576), botInlineGeo: !!(flags & 2097152), support: !!(flags & 8388608), scam: !!(flags & 16777216), applyMinPhoto: !!(flags & 33554432), fake: !!(flags & 67108864), botAttachMenu: !!(flags & 134217728), premium: !!(flags & 268435456), attachMenuEnabled: !!(flags & 536870912), botCanEdit: !!(flags2 & 2), closeFriend: !!(flags2 & 4), storiesHidden: !!(flags2 & 8), storiesUnavailable: !!(flags2 & 16), contactRequirePremium: !!(flags2 & 1024), botBusiness: !!(flags2 & 2048), botHasMainApp: !!(flags2 & 8192), botForumView: !!(flags2 & 65536), botForumCanManageTopics: !!(flags2 & 131072), botCanManageBots: !!(flags2 & 262144), botGuestchat: !!(flags2 & 524288), botGuard: !!(flags2 & 1048576), id: r.int53(), accessHash: flags & 1 ? r.long() : void 0, firstName: flags & 2 ? r.string() : void 0, lastName: flags & 4 ? r.string() : void 0, username: flags & 8 ? r.string() : void 0, phone: flags & 16 ? r.string() : void 0, photo: flags & 32 ? r.object() : void 0, status: flags & 64 ? r.object() : void 0, botInfoVersion: flags & 16384 ? r.int() : void 0, restrictionReason: flags & 262144 ? r.vector(r.object) : void 0, botInlinePlaceholder: flags & 524288 ? r.string() : void 0, langCode: flags & 4194304 ? r.string() : void 0, emojiStatus: flags & 1073741824 ? r.object() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 32 ? r.object() : void 0, color: flags2 & 256 ? r.object() : void 0, profileColor: flags2 & 512 ? r.object() : void 0, botActiveUsers: flags2 & 4096 ? r.int() : void 0, botVerificationIcon: flags2 & 16384 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 32768 ? r.long() : void 0, linkedCommunityId: flags2 & 2097152 ? r.int53() : void 0 };
229
229
  },
230
230
  1326562017: function(r) {
231
231
  return { _: "userProfilePhotoEmpty" };
@@ -265,14 +265,22 @@ var m = {
265
265
  1704108455: function(r) {
266
266
  return { _: "chatForbidden", id: r.int53(), title: r.string() };
267
267
  },
268
- 473084188: function(r) {
268
+ 3567203526: function(r) {
269
269
  var flags = r.uint(), flags2 = r.uint();
270
- return { _: "channel", creator: !!(flags & 1), left: !!(flags & 4), broadcast: !!(flags & 32), verified: !!(flags & 128), megagroup: !!(flags & 256), restricted: !!(flags & 512), signatures: !!(flags & 2048), min: !!(flags & 4096), scam: !!(flags & 524288), hasLink: !!(flags & 1048576), hasGeo: !!(flags & 2097152), slowmodeEnabled: !!(flags & 4194304), callActive: !!(flags & 8388608), callNotEmpty: !!(flags & 16777216), fake: !!(flags & 33554432), gigagroup: !!(flags & 67108864), noforwards: !!(flags & 134217728), joinToSend: !!(flags & 268435456), joinRequest: !!(flags & 536870912), forum: !!(flags & 1073741824), storiesHidden: !!(flags2 & 2), storiesHiddenMin: !!(flags2 & 4), storiesUnavailable: !!(flags2 & 8), signatureProfiles: !!(flags2 & 4096), autotranslation: !!(flags2 & 32768), broadcastMessagesAllowed: !!(flags2 & 65536), monoforum: !!(flags2 & 131072), forumTabs: !!(flags2 & 524288), id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string(), username: flags & 64 ? r.string() : void 0, photo: r.object(), date: r.int(), restrictionReason: flags & 512 ? r.vector(r.object) : void 0, adminRights: flags & 16384 ? r.object() : void 0, bannedRights: flags & 32768 ? r.object() : void 0, defaultBannedRights: flags & 262144 ? r.object() : void 0, participantsCount: flags & 131072 ? r.int() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 16 ? r.object() : void 0, color: flags2 & 128 ? r.object() : void 0, profileColor: flags2 & 256 ? r.object() : void 0, emojiStatus: flags2 & 512 ? r.object() : void 0, level: flags2 & 1024 ? r.int() : void 0, subscriptionUntilDate: flags2 & 2048 ? r.int() : void 0, botVerificationIcon: flags2 & 8192 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, linkedMonoforumId: flags2 & 262144 ? r.int53() : void 0 };
270
+ return { _: "channel", creator: !!(flags & 1), left: !!(flags & 4), broadcast: !!(flags & 32), verified: !!(flags & 128), megagroup: !!(flags & 256), restricted: !!(flags & 512), signatures: !!(flags & 2048), min: !!(flags & 4096), scam: !!(flags & 524288), hasLink: !!(flags & 1048576), hasGeo: !!(flags & 2097152), slowmodeEnabled: !!(flags & 4194304), callActive: !!(flags & 8388608), callNotEmpty: !!(flags & 16777216), fake: !!(flags & 33554432), gigagroup: !!(flags & 67108864), noforwards: !!(flags & 134217728), joinToSend: !!(flags & 268435456), joinRequest: !!(flags & 536870912), forum: !!(flags & 1073741824), storiesHidden: !!(flags2 & 2), storiesHiddenMin: !!(flags2 & 4), storiesUnavailable: !!(flags2 & 8), signatureProfiles: !!(flags2 & 4096), autotranslation: !!(flags2 & 32768), broadcastMessagesAllowed: !!(flags2 & 65536), monoforum: !!(flags2 & 131072), forumTabs: !!(flags2 & 524288), id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string(), username: flags & 64 ? r.string() : void 0, photo: r.object(), date: r.int(), restrictionReason: flags & 512 ? r.vector(r.object) : void 0, adminRights: flags & 16384 ? r.object() : void 0, bannedRights: flags & 32768 ? r.object() : void 0, defaultBannedRights: flags & 262144 ? r.object() : void 0, participantsCount: flags & 131072 ? r.int() : void 0, usernames: flags2 & 1 ? r.vector(r.object) : void 0, storiesMaxId: flags2 & 16 ? r.object() : void 0, color: flags2 & 128 ? r.object() : void 0, profileColor: flags2 & 256 ? r.object() : void 0, emojiStatus: flags2 & 512 ? r.object() : void 0, level: flags2 & 1024 ? r.int() : void 0, subscriptionUntilDate: flags2 & 2048 ? r.int() : void 0, botVerificationIcon: flags2 & 8192 ? r.long() : void 0, sendPaidMessagesStars: flags2 & 16384 ? r.long() : void 0, linkedMonoforumId: flags2 & 262144 ? r.int53() : void 0, linkedCommunityId: flags2 & 1048576 ? r.int53() : void 0 };
271
271
  },
272
272
  399807445: function(r) {
273
273
  var flags = r.uint();
274
274
  return { _: "channelForbidden", broadcast: !!(flags & 32), megagroup: !!(flags & 256), monoforum: !!(flags & 1024), id: r.int53(), accessHash: r.long(), title: r.string(), untilDate: flags & 65536 ? r.int() : void 0 };
275
275
  },
276
+ 4248623800: function(r) {
277
+ var flags = r.uint();
278
+ return { _: "communityForbidden", id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string() };
279
+ },
280
+ 1710221652: function(r) {
281
+ var flags = r.uint(), flags2 = r.uint();
282
+ return { _: "community", creator: !!(flags & 1), left: !!(flags & 4), min: !!(flags & 4096), collapsedInDialogs: !!(flags2 & 1048576), id: r.int53(), accessHash: flags & 8192 ? r.long() : void 0, title: r.string(), photo: r.object(), date: r.int(), adminRights: flags & 16384 ? r.object() : void 0, defaultBannedRights: flags & 262144 ? r.object() : void 0 };
283
+ },
276
284
  640893467: function(r) {
277
285
  var flags = r.uint();
278
286
  return { _: "chatFull", canSetUsername: !!(flags & 128), hasScheduled: !!(flags & 256), translationsDisabled: !!(flags & 524288), id: r.int53(), about: r.string(), participants: r.object(), chatPhoto: flags & 4 ? r.object() : void 0, notifySettings: r.object(), exportedInvite: flags & 8192 ? r.object() : void 0, botInfo: flags & 8 ? r.vector(r.object) : void 0, pinnedMsgId: flags & 64 ? r.int() : void 0, folderId: flags & 2048 ? r.int() : void 0, call: flags & 4096 ? r.object() : void 0, ttlPeriod: flags & 16384 ? r.int() : void 0, groupcallDefaultJoinAs: flags & 32768 ? r.object() : void 0, themeEmoticon: flags & 65536 ? r.string() : void 0, requestsPending: flags & 131072 ? r.int() : void 0, recentRequesters: flags & 131072 ? r.vector(r.long) : void 0, availableReactions: flags & 262144 ? r.object() : void 0, reactionsLimit: flags & 1048576 ? r.int() : void 0 };
@@ -281,6 +289,10 @@ var m = {
281
289
  var flags = r.uint(), flags2 = r.uint();
282
290
  return { _: "channelFull", canViewParticipants: !!(flags & 8), canSetUsername: !!(flags & 64), canSetStickers: !!(flags & 128), hiddenPrehistory: !!(flags & 1024), canSetLocation: !!(flags & 65536), hasScheduled: !!(flags & 524288), canViewStats: !!(flags & 1048576), blocked: !!(flags & 4194304), canDeleteChannel: !!(flags2 & 1), antispam: !!(flags2 & 2), participantsHidden: !!(flags2 & 4), translationsDisabled: !!(flags2 & 8), storiesPinnedAvailable: !!(flags2 & 32), viewForumAsMessages: !!(flags2 & 64), restrictedSponsored: !!(flags2 & 2048), canViewRevenue: !!(flags2 & 4096), paidMediaAllowed: !!(flags2 & 16384), canViewStarsRevenue: !!(flags2 & 32768), paidReactionsAvailable: !!(flags2 & 65536), stargiftsAvailable: !!(flags2 & 524288), paidMessagesAvailable: !!(flags2 & 1048576), id: r.int53(), about: r.string(), participantsCount: flags & 1 ? r.int() : void 0, adminsCount: flags & 2 ? r.int() : void 0, kickedCount: flags & 4 ? r.int() : void 0, bannedCount: flags & 4 ? r.int() : void 0, onlineCount: flags & 8192 ? r.int() : void 0, readInboxMaxId: r.int(), readOutboxMaxId: r.int(), unreadCount: r.int(), chatPhoto: r.object(), notifySettings: r.object(), exportedInvite: flags & 8388608 ? r.object() : void 0, botInfo: r.vector(r.object), migratedFromChatId: flags & 16 ? r.long() : void 0, migratedFromMaxId: flags & 16 ? r.int() : void 0, pinnedMsgId: flags & 32 ? r.int() : void 0, stickerset: flags & 256 ? r.object() : void 0, availableMinId: flags & 512 ? r.int() : void 0, folderId: flags & 2048 ? r.int() : void 0, linkedChatId: flags & 16384 ? r.int53() : void 0, location: flags & 32768 ? r.object() : void 0, slowmodeSeconds: flags & 131072 ? r.int() : void 0, slowmodeNextSendDate: flags & 262144 ? r.int() : void 0, statsDc: flags & 4096 ? r.int() : void 0, pts: r.int(), call: flags & 2097152 ? r.object() : void 0, ttlPeriod: flags & 16777216 ? r.int() : void 0, pendingSuggestions: flags & 33554432 ? r.vector(r.string) : void 0, groupcallDefaultJoinAs: flags & 67108864 ? r.object() : void 0, themeEmoticon: flags & 134217728 ? r.string() : void 0, requestsPending: flags & 268435456 ? r.int() : void 0, recentRequesters: flags & 268435456 ? r.vector(r.int53) : void 0, defaultSendAs: flags & 536870912 ? r.object() : void 0, availableReactions: flags & 1073741824 ? r.object() : void 0, reactionsLimit: flags2 & 8192 ? r.int() : void 0, stories: flags2 & 16 ? r.object() : void 0, wallpaper: flags2 & 128 ? r.object() : void 0, boostsApplied: flags2 & 256 ? r.int() : void 0, boostsUnrestrict: flags2 & 512 ? r.int() : void 0, emojiset: flags2 & 1024 ? r.object() : void 0, botVerification: flags2 & 131072 ? r.object() : void 0, stargiftsCount: flags2 & 262144 ? r.int() : void 0, sendPaidMessagesStars: flags2 & 2097152 ? r.long() : void 0, mainTab: flags2 & 4194304 ? r.object() : void 0, guardBotId: flags2 & 8388608 ? r.int53() : void 0 };
283
291
  },
292
+ 3417810183: function(r) {
293
+ var flags = r.uint();
294
+ return { _: "communityFull", id: r.int53(), about: r.string(), chatPhoto: r.object(), linkedPeers: r.vector(r.object), adminsCount: flags & 2 ? r.int() : void 0, kickedCount: flags & 4 ? r.int() : void 0, peerLinkRequestsPending: flags & 1 ? r.int() : void 0 };
295
+ },
284
296
  954703838: function(r) {
285
297
  var flags = r.uint();
286
298
  return { _: "chatParticipant", userId: r.int53(), inviterId: r.int53(), date: r.int(), rank: flags & 1 ? r.string() : void 0 };
@@ -615,6 +627,10 @@ var m = {
615
627
  375414334: function(r) {
616
628
  return { _: "messageActionManagedBotCreated", botId: r.int53() };
617
629
  },
630
+ 1562426088: function(r) {
631
+ var flags = r.uint();
632
+ return { _: "messageActionChangeCommunity", communityId: flags & 1 ? r.int53() : void 0 };
633
+ },
618
634
  4236900339: function(r) {
619
635
  var flags = r.uint();
620
636
  return { _: "dialog", pinned: !!(flags & 4), unreadMark: !!(flags & 8), viewForumAsMessages: !!(flags & 64), peer: r.object(), topMessage: r.int(), readInboxMaxId: r.int(), readOutboxMaxId: r.int(), unreadCount: r.int(), unreadMentionsCount: r.int(), unreadReactionsCount: r.int(), unreadPollVotesCount: r.int(), notifySettings: r.object(), pts: flags & 1 ? r.int() : void 0, draft: flags & 2 ? r.object() : void 0, folderId: flags & 16 ? r.int() : void 0, ttlPeriod: flags & 32 ? r.int() : void 0 };
@@ -623,6 +639,10 @@ var m = {
623
639
  var flags = r.uint();
624
640
  return { _: "dialogFolder", pinned: !!(flags & 4), folder: r.object(), peer: r.object(), topMessage: r.int(), unreadMutedPeersCount: r.int(), unreadUnmutedPeersCount: r.int(), unreadMutedMessagesCount: r.int(), unreadUnmutedMessagesCount: r.int() };
625
641
  },
642
+ 4153018739: function(r) {
643
+ var flags = r.uint();
644
+ return { _: "dialogCommunity", pinned: !!(flags & 4), communityId: r.int53(), notifySettings: r.object() };
645
+ },
626
646
  590459437: function(r) {
627
647
  return { _: "photoEmpty", id: r.long() };
628
648
  },
@@ -691,6 +711,9 @@ var m = {
691
711
  1548122514: function(r) {
692
712
  return { _: "inputNotifyForumTopic", peer: r.object(), topMsgId: r.int() };
693
713
  },
714
+ 666573532: function(r) {
715
+ return { _: "inputNotifyCommunity", community: r.object() };
716
+ },
694
717
  3402328802: function(r) {
695
718
  var flags = r.uint();
696
719
  return { _: "inputPeerNotifySettings", showPreviews: flags & 1 ? r.boolean() : void 0, silent: flags & 2 ? r.boolean() : void 0, muteUntil: flags & 4 ? r.int() : void 0, sound: flags & 8 ? r.object() : void 0, storiesMuted: flags & 64 ? r.boolean() : void 0, storiesHideSender: flags & 128 ? r.boolean() : void 0, storiesSound: flags & 256 ? r.object() : void 0 };
@@ -1388,6 +1411,22 @@ var m = {
1388
1411
  var flags = r.uint();
1389
1412
  return { _: "updateWebBrowserException", delete: !!(flags & 2), openExternalBrowser: flags & 1 ? r.boolean() : void 0, exception: r.object() };
1390
1413
  },
1414
+ 549239713: function(r) {
1415
+ return { _: "updateNewEphemeralMessage", message: r.object() };
1416
+ },
1417
+ 1457257720: function(r) {
1418
+ return { _: "updateDeleteEphemeralMessages", peer: r.object(), ids: r.vector(r.int) };
1419
+ },
1420
+ 1270583041: function(r) {
1421
+ return { _: "updateEditEphemeralMessage", message: r.object() };
1422
+ },
1423
+ 2604140386: function(r) {
1424
+ return { _: "updateEphemeralBotCallbackQuery", queryId: r.long(), userId: r.int53(), peer: r.object(), msgId: r.int(), data: r.bytes(), message: r.object() };
1425
+ },
1426
+ 1812827683: function(r) {
1427
+ var flags = r.uint();
1428
+ return { _: "updateBotStarsSubscription", canceled: !!(flags & 1), paymentFailed: !!(flags & 2), restored: !!(flags & 4), userId: r.int53(), payload: r.bytes(), qts: r.int() };
1429
+ },
1391
1430
  2775329342: function(r) {
1392
1431
  return { _: "updates.state", pts: r.int(), qts: r.int(), date: r.int(), seq: r.int(), unreadCount: r.int() };
1393
1432
  },
@@ -1550,6 +1589,9 @@ var m = {
1550
1589
  577659656: function(r) {
1551
1590
  return { _: "notifyForumTopic", peer: r.object(), topMsgId: r.int() };
1552
1591
  },
1592
+ 3191302553: function(r) {
1593
+ return { _: "notifyCommunity", communityId: r.int53() };
1594
+ },
1553
1595
  381645902: function(r) {
1554
1596
  return { _: "sendMessageTypingAction" };
1555
1597
  },
@@ -1928,8 +1970,9 @@ var m = {
1928
1970
  3556320491: function(r) {
1929
1971
  return { _: "messages.stickerSetNotModified" };
1930
1972
  },
1931
- 3262826695: function(r) {
1932
- return { _: "botCommand", command: r.string(), description: r.string() };
1973
+ 2555565778: function(r) {
1974
+ var flags = r.uint();
1975
+ return { _: "botCommand", ephemeral: !!(flags & 1), command: r.string(), description: r.string() };
1933
1976
  },
1934
1977
  1300890265: function(r) {
1935
1978
  var flags = r.uint();
@@ -2577,6 +2620,9 @@ var m = {
2577
2620
  var flags = r.uint();
2578
2621
  return { _: "textDate", relative: !!(flags & 1), shortTime: !!(flags & 2), longTime: !!(flags & 4), shortDate: !!(flags & 8), longDate: !!(flags & 16), dayOfWeek: !!(flags & 32), text: r.object(), date: r.int() };
2579
2622
  },
2623
+ 2525416272: function(r) {
2624
+ return { _: "textDiff", text: r.object(), oldText: r.object() };
2625
+ },
2580
2626
  324435594: function(r) {
2581
2627
  return { _: "pageBlockUnsupported" };
2582
2628
  },
@@ -3109,12 +3155,18 @@ var m = {
3109
3155
  1684014375: function(r) {
3110
3156
  return { _: "inputDialogPeerFolder", folderId: r.int() };
3111
3157
  },
3158
+ 1777300164: function(r) {
3159
+ return { _: "inputDialogPeerCommunity", community: r.object() };
3160
+ },
3112
3161
  3849174789: function(r) {
3113
3162
  return { _: "dialogPeer", peer: r.object() };
3114
3163
  },
3115
3164
  1363483106: function(r) {
3116
3165
  return { _: "dialogPeerFolder", folderId: r.int() };
3117
3166
  },
3167
+ 795199716: function(r) {
3168
+ return { _: "dialogPeerCommunity", communityId: r.int53() };
3169
+ },
3118
3170
  223655517: function(r) {
3119
3171
  return { _: "messages.foundStickerSetsNotModified" };
3120
3172
  },
@@ -3386,11 +3438,11 @@ var m = {
3386
3438
  },
3387
3439
  1605510357: function(r) {
3388
3440
  var flags = r.uint();
3389
- return { _: "chatAdminRights", changeInfo: !!(flags & 1), postMessages: !!(flags & 2), editMessages: !!(flags & 4), deleteMessages: !!(flags & 8), banUsers: !!(flags & 16), inviteUsers: !!(flags & 32), pinMessages: !!(flags & 128), addAdmins: !!(flags & 512), anonymous: !!(flags & 1024), manageCall: !!(flags & 2048), other: !!(flags & 4096), manageTopics: !!(flags & 8192), postStories: !!(flags & 16384), editStories: !!(flags & 32768), deleteStories: !!(flags & 65536), manageDirectMessages: !!(flags & 131072), manageRanks: !!(flags & 262144) };
3441
+ return { _: "chatAdminRights", changeInfo: !!(flags & 1), postMessages: !!(flags & 2), editMessages: !!(flags & 4), deleteMessages: !!(flags & 8), banUsers: !!(flags & 16), inviteUsers: !!(flags & 32), pinMessages: !!(flags & 128), addAdmins: !!(flags & 512), anonymous: !!(flags & 1024), manageCall: !!(flags & 2048), other: !!(flags & 4096), manageTopics: !!(flags & 8192), postStories: !!(flags & 16384), editStories: !!(flags & 32768), deleteStories: !!(flags & 65536), manageDirectMessages: !!(flags & 131072), manageRanks: !!(flags & 262144), manageLinkedPeers: !!(flags & 524288) };
3390
3442
  },
3391
3443
  2668758040: function(r) {
3392
3444
  var flags = r.uint();
3393
- return { _: "chatBannedRights", viewMessages: !!(flags & 1), sendMessages: !!(flags & 2), sendMedia: !!(flags & 4), sendStickers: !!(flags & 8), sendGifs: !!(flags & 16), sendGames: !!(flags & 32), sendInline: !!(flags & 64), embedLinks: !!(flags & 128), sendPolls: !!(flags & 256), changeInfo: !!(flags & 1024), inviteUsers: !!(flags & 32768), pinMessages: !!(flags & 131072), manageTopics: !!(flags & 262144), sendPhotos: !!(flags & 524288), sendVideos: !!(flags & 1048576), sendRoundvideos: !!(flags & 2097152), sendAudios: !!(flags & 4194304), sendVoices: !!(flags & 8388608), sendDocs: !!(flags & 16777216), sendPlain: !!(flags & 33554432), editRank: !!(flags & 67108864), sendReactions: !!(flags & 134217728), untilDate: r.int() };
3445
+ return { _: "chatBannedRights", viewMessages: !!(flags & 1), sendMessages: !!(flags & 2), sendMedia: !!(flags & 4), sendStickers: !!(flags & 8), sendGifs: !!(flags & 16), sendGames: !!(flags & 32), sendInline: !!(flags & 64), embedLinks: !!(flags & 128), sendPolls: !!(flags & 256), changeInfo: !!(flags & 1024), inviteUsers: !!(flags & 32768), pinMessages: !!(flags & 131072), manageTopics: !!(flags & 262144), sendPhotos: !!(flags & 524288), sendVideos: !!(flags & 1048576), sendRoundvideos: !!(flags & 2097152), sendAudios: !!(flags & 4194304), sendVoices: !!(flags & 8388608), sendDocs: !!(flags & 16777216), sendPlain: !!(flags & 33554432), editRank: !!(flags & 67108864), sendReactions: !!(flags & 134217728), manageLinkedPeers: !!(flags & 268435456), untilDate: r.int() };
3394
3446
  },
3395
3447
  3861952889: function(r) {
3396
3448
  return { _: "inputWallPaper", id: r.long(), accessHash: r.long() };
@@ -3662,7 +3714,7 @@ var m = {
3662
3714
  },
3663
3715
  462937446: function(r) {
3664
3716
  var flags = r.uint();
3665
- return { _: "messageReplyHeader", replyToScheduled: !!(flags & 4), forumTopic: !!(flags & 8), quote: !!(flags & 512), replyToMsgId: flags & 16 ? r.int() : void 0, replyToPeerId: flags & 1 ? r.object() : void 0, replyFrom: flags & 32 ? r.object() : void 0, replyMedia: flags & 256 ? r.object() : void 0, replyToTopId: flags & 2 ? r.int() : void 0, quoteText: flags & 64 ? r.string() : void 0, quoteEntities: flags & 128 ? r.vector(r.object) : void 0, quoteOffset: flags & 1024 ? r.int() : void 0, todoItemId: flags & 2048 ? r.int() : void 0, pollOption: flags & 4096 ? r.bytes() : void 0, replyToEphemeral: !!(flags & 8192) };
3717
+ return { _: "messageReplyHeader", replyToScheduled: !!(flags & 4), forumTopic: !!(flags & 8), quote: !!(flags & 512), replyToEphemeral: !!(flags & 8192), replyToMsgId: flags & 16 ? r.int() : void 0, replyToPeerId: flags & 1 ? r.object() : void 0, replyFrom: flags & 32 ? r.object() : void 0, replyMedia: flags & 256 ? r.object() : void 0, replyToTopId: flags & 2 ? r.int() : void 0, quoteText: flags & 64 ? r.string() : void 0, quoteEntities: flags & 128 ? r.vector(r.object) : void 0, quoteOffset: flags & 1024 ? r.int() : void 0, todoItemId: flags & 2048 ? r.int() : void 0, pollOption: flags & 4096 ? r.bytes() : void 0 };
3666
3718
  },
3667
3719
  240843065: function(r) {
3668
3720
  return { _: "messageReplyStoryHeader", peer: r.object(), storyId: r.int() };
@@ -4341,6 +4393,9 @@ var m = {
4341
4393
  1775660101: function(r) {
4342
4394
  return { _: "inputReplyToMonoForum", monoforumPeerId: r.object() };
4343
4395
  },
4396
+ 1092204894: function(r) {
4397
+ return { _: "inputReplyToEphemeralMessage", id: r.int() };
4398
+ },
4344
4399
  1070138683: function(r) {
4345
4400
  return { _: "exportedStoryLink", link: r.string() };
4346
4401
  },
@@ -5253,6 +5308,9 @@ var m = {
5253
5308
  530584407: function(r) {
5254
5309
  return { _: "inputAiComposeToneSlug", slug: r.string() };
5255
5310
  },
5311
+ 235681199: function(r) {
5312
+ return { _: "inputAiComposeToneSingleUse", customPrompt: r.string() };
5313
+ },
5256
5314
  3489021609: function(r) {
5257
5315
  var flags = r.uint();
5258
5316
  return { _: "aiComposeTone", creator: !!(flags & 1), id: r.long(), accessHash: r.long(), slug: r.string(), title: r.string(), emojiId: flags & 2 ? r.long() : void 0, prompt: flags & 16 ? r.string() : void 0, installsCount: flags & 4 ? r.int() : void 0, authorId: flags & 8 ? r.int53() : void 0, exampleEnglish: flags & 32 ? r.object() : void 0 };
@@ -5276,8 +5334,8 @@ var m = {
5276
5334
  1146512295: function(r) {
5277
5335
  return { _: "messages.chatInviteJoinResultOk", updates: r.object() };
5278
5336
  },
5279
- 793887543: function(r) {
5280
- return { _: "messages.chatInviteJoinResultWebView", botId: r.int53(), webview: r.object(), users: r.vector(r.object) };
5337
+ 1640638931: function(r) {
5338
+ return { _: "messages.chatInviteJoinResultWebView", botId: r.int53(), queryId: r.long(), users: r.vector(r.object) };
5281
5339
  },
5282
5340
  2920622697: function(r) {
5283
5341
  return { _: "joinChatBotResultApproved" };
@@ -5324,13 +5382,30 @@ var m = {
5324
5382
  var flags = r.uint();
5325
5383
  return { _: "richMessage", rtl: !!(flags & 1), part: !!(flags & 2), blocks: r.vector(r.object), photos: r.vector(r.object), documents: r.vector(r.object) };
5326
5384
  },
5327
- 422509539: function(r) {
5385
+ 1981030077: function(r) {
5328
5386
  var flags = r.uint();
5329
- return { _: "updateChannelPinnedTopic", pinned: !!(flags & 1), channelId: r.int53(), topicId: r.int() };
5387
+ return { _: "communityPeer", canViewHistory: !!(flags & 4), visible: flags & 1 ? r.boolean() : void 0, peer: r.object() };
5330
5388
  },
5331
- 4263085570: function(r) {
5389
+ 2078997125: function(r) {
5332
5390
  var flags = r.uint();
5333
- return { _: "updateChannelPinnedTopics", channelId: r.int53(), order: flags & 1 ? r.vector(r.int) : void 0 };
5391
+ return { _: "communityPeerRequest", visible: !!(flags & 1), peer: r.object(), requestedBy: r.int53(), date: r.int() };
5392
+ },
5393
+ 574926765: function(r) {
5394
+ var flags = r.uint();
5395
+ return { _: "communities.peerLinkRequests", totalCount: r.int(), requests: r.vector(r.object), nextOffset: flags & 1 ? r.string() : void 0, chats: r.vector(r.object), users: r.vector(r.object) };
5396
+ },
5397
+ 3653688346: function(r) {
5398
+ var flags = r.uint();
5399
+ return { _: "ephemeralMessage", out: !!(flags & 1), id: r.int(), fromId: r.object(), peerId: r.object(), receiverId: r.int53(), topMsgId: flags & 2 ? r.int() : void 0, date: r.int(), message: r.string(), entities: flags & 4 ? r.vector(r.object) : void 0, media: flags & 8 ? r.object() : void 0, replyMarkup: flags & 16 ? r.object() : void 0, replyTo: flags & 64 ? r.object() : void 0 };
5400
+ },
5401
+ 2373472554: function(r) {
5402
+ return { _: "communities.participantJoinedChats", creatorChatIds: r.vector(r.int53), joinedChatIds: r.vector(r.int53), chats: r.vector(r.object), users: r.vector(r.object) };
5403
+ },
5404
+ 1107532175: function(r) {
5405
+ return { _: "messages.translatedRichMessage", result: r.vector(r.object) };
5406
+ },
5407
+ 1279604680: function(r) {
5408
+ return { _: "messages.composedRichMessageWithAI", result: r.object() };
5334
5409
  },
5335
5410
  _results: {
5336
5411
  "contacts.getContactIDs": function(r) {