@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
package/tl/inner-tl.js CHANGED
@@ -6,7 +6,7 @@ function _isAny() {
6
6
  return false;
7
7
  };
8
8
  }
9
- const LAYER = 227;
9
+ const LAYER = 228;
10
10
  class RpcError extends Error {
11
11
  constructor(code, text) {
12
12
  super("Telegram API error " + code + ": " + text);
@@ -38,30 +38,69 @@ RpcError.fromTl = function(obj) {
38
38
  } else if ((match = err.text.match(/^STATS_MIGRATE_(\d+)$/)) != null) {
39
39
  err.text = "STATS_MIGRATE_%d";
40
40
  err.dc = parseInt(match[1]);
41
+ } else if ((match = err.text.match(/^USER_MIGRATE_(\d+)$/)) != null) {
42
+ err.text = "USER_MIGRATE_%d";
43
+ err.newDc = parseInt(match[1]);
41
44
  } else if ((match = err.text.match(/^EMAIL_UNCONFIRMED_(\d+)$/)) != null) {
42
45
  err.text = "EMAIL_UNCONFIRMED_%d";
43
46
  err.codeLength = parseInt(match[1]);
47
+ } else if ((match = err.text.match(/^FILE_REFERENCE_(\d+)_EMPTY$/)) != null) {
48
+ err.text = "FILE_REFERENCE_%d_EMPTY";
49
+ err.duration = parseInt(match[1]);
50
+ } else if ((match = err.text.match(/^FILE_REFERENCE_(\d+)_EXPIRED$/)) != null) {
51
+ err.text = "FILE_REFERENCE_%d_EXPIRED";
52
+ err.duration = parseInt(match[1]);
53
+ } else if ((match = err.text.match(/^FILE_REFERENCE_(\d+)_INVALID$/)) != null) {
54
+ err.text = "FILE_REFERENCE_%d_INVALID";
55
+ err.duration = parseInt(match[1]);
44
56
  } else if ((match = err.text.match(/^PASSWORD_TOO_FRESH_(\d+)$/)) != null) {
45
57
  err.text = "PASSWORD_TOO_FRESH_%d";
46
58
  err.seconds = parseInt(match[1]);
47
59
  } else if ((match = err.text.match(/^SESSION_TOO_FRESH_(\d+)$/)) != null) {
48
60
  err.text = "SESSION_TOO_FRESH_%d";
49
61
  err.seconds = parseInt(match[1]);
62
+ } else if ((match = err.text.match(/^STARGIFT_RESELL_TOO_EARLY_(\d+)$/)) != null) {
63
+ err.text = "STARGIFT_RESELL_TOO_EARLY_%d";
64
+ err.duration = parseInt(match[1]);
65
+ } else if ((match = err.text.match(/^STARGIFT_TRANSFER_TOO_EARLY_(\d+)$/)) != null) {
66
+ err.text = "STARGIFT_TRANSFER_TOO_EARLY_%d";
67
+ err.duration = parseInt(match[1]);
68
+ } else if ((match = err.text.match(/^STORY_LIVE_ALREADY_(\d+)$/)) != null) {
69
+ err.text = "STORY_LIVE_ALREADY_%d";
70
+ err.duration = parseInt(match[1]);
71
+ } else if ((match = err.text.match(/^STORY_SEND_FLOOD_MONTHLY_(\d+)$/)) != null) {
72
+ err.text = "STORY_SEND_FLOOD_MONTHLY_%d";
73
+ err.duration = parseInt(match[1]);
74
+ } else if ((match = err.text.match(/^STORY_SEND_FLOOD_WEEKLY_(\d+)$/)) != null) {
75
+ err.text = "STORY_SEND_FLOOD_WEEKLY_%d";
76
+ err.duration = parseInt(match[1]);
77
+ } else if ((match = err.text.match(/^FILE_PART_(\d+)_MISSING$/)) != null) {
78
+ err.text = "FILE_PART_%d_MISSING";
79
+ err.which = parseInt(match[1]);
80
+ } else if ((match = err.text.match(/^ALLOW_PAYMENT_REQUIRED_(\d+)$/)) != null) {
81
+ err.text = "ALLOW_PAYMENT_REQUIRED_%d";
82
+ err.duration = parseInt(match[1]);
50
83
  } else if ((match = err.text.match(/^PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_(\d+)MIN$/)) != null) {
51
84
  err.text = "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN";
52
85
  err.minutes = parseInt(match[1]);
53
86
  } else if ((match = err.text.match(/^2FA_CONFIRM_WAIT_(\d+)$/)) != null) {
54
87
  err.text = "2FA_CONFIRM_WAIT_%d";
55
88
  err.seconds = parseInt(match[1]);
89
+ } else if ((match = err.text.match(/^FLOOD_PREMIUM_WAIT_(\d+)$/)) != null) {
90
+ err.text = "FLOOD_PREMIUM_WAIT_%d";
91
+ err.seconds = parseInt(match[1]);
92
+ } else if ((match = err.text.match(/^PREMIUM_SUB_ACTIVE_UNTIL_(\d+)$/)) != null) {
93
+ err.text = "PREMIUM_SUB_ACTIVE_UNTIL_%d";
94
+ err.duration = parseInt(match[1]);
56
95
  } else if ((match = err.text.match(/^SLOWMODE_WAIT_(\d+)$/)) != null) {
57
96
  err.text = "SLOWMODE_WAIT_%d";
58
97
  err.seconds = parseInt(match[1]);
59
98
  } else if ((match = err.text.match(/^TAKEOUT_INIT_DELAY_(\d+)$/)) != null) {
60
99
  err.text = "TAKEOUT_INIT_DELAY_%d";
61
100
  err.seconds = parseInt(match[1]);
62
- } else if ((match = err.text.match(/^FILE_PART_(\d+)_MISSING$/)) != null) {
63
- err.text = "FILE_PART_%d_MISSING";
64
- err.which = parseInt(match[1]);
101
+ } else if ((match = err.text.match(/^AUTH_RESTART_(\d+)$/)) != null) {
102
+ err.text = "AUTH_RESTART_%d";
103
+ err.duration = parseInt(match[1]);
65
104
  } else if ((match = err.text.match(/^FLOOD_TEST_PHONE_WAIT_(\d+)$/)) != null) {
66
105
  err.text = "FLOOD_TEST_PHONE_WAIT_%d";
67
106
  err.seconds = parseInt(match[1]);
@@ -71,9 +110,6 @@ RpcError.fromTl = function(obj) {
71
110
  } else if ((match = err.text.match(/^INTERDC_(\d+)_CALL_RICH_ERROR$/)) != null) {
72
111
  err.text = "INTERDC_%d_CALL_RICH_ERROR";
73
112
  err.dc = parseInt(match[1]);
74
- } else if ((match = err.text.match(/^USER_MIGRATE_(\d+)$/)) != null) {
75
- err.text = "USER_MIGRATE_%d";
76
- err.newDc = parseInt(match[1]);
77
113
  }
78
114
  return err;
79
115
  };
@@ -99,19 +135,19 @@ const isAnyPeer = /* @__PURE__ */ _isAny("peerUser", "peerChat", "peerChannel");
99
135
  const isAnyUser = /* @__PURE__ */ _isAny("userEmpty", "user");
100
136
  const isAnyUserProfilePhoto = /* @__PURE__ */ _isAny("userProfilePhotoEmpty", "userProfilePhoto");
101
137
  const isAnyUserStatus = /* @__PURE__ */ _isAny("userStatusEmpty", "userStatusOnline", "userStatusOffline", "userStatusRecently", "userStatusLastWeek", "userStatusLastMonth");
102
- const isAnyChat = /* @__PURE__ */ _isAny("chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden");
103
- const isAnyChatFull = /* @__PURE__ */ _isAny("chatFull", "channelFull");
138
+ const isAnyChat = /* @__PURE__ */ _isAny("chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community");
139
+ const isAnyChatFull = /* @__PURE__ */ _isAny("chatFull", "channelFull", "communityFull");
104
140
  const isAnyChatParticipant = /* @__PURE__ */ _isAny("chatParticipant", "chatParticipantCreator", "chatParticipantAdmin");
105
141
  const isAnyChatParticipants = /* @__PURE__ */ _isAny("chatParticipantsForbidden", "chatParticipants");
106
142
  const isAnyChatPhoto = /* @__PURE__ */ _isAny("chatPhotoEmpty", "chatPhoto");
107
143
  const isAnyMessage = /* @__PURE__ */ _isAny("messageEmpty", "message", "messageService");
108
144
  const isAnyMessageMedia = /* @__PURE__ */ _isAny("messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream");
109
- const isAnyMessageAction = /* @__PURE__ */ _isAny("messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest", "messageActionPollAppendAnswer", "messageActionPollDeleteAnswer", "messageActionManagedBotCreated");
110
- const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder");
145
+ const isAnyMessageAction = /* @__PURE__ */ _isAny("messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest", "messageActionPollAppendAnswer", "messageActionPollDeleteAnswer", "messageActionManagedBotCreated", "messageActionChangeCommunity");
146
+ const isAnyDialog = /* @__PURE__ */ _isAny("dialog", "dialogFolder", "dialogCommunity");
111
147
  const isAnyPhoto = /* @__PURE__ */ _isAny("photoEmpty", "photo");
112
148
  const isAnyPhotoSize = /* @__PURE__ */ _isAny("photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize");
113
149
  const isAnyGeoPoint = /* @__PURE__ */ _isAny("geoPointEmpty", "geoPoint");
114
- const isAnyInputNotifyPeer = /* @__PURE__ */ _isAny("inputNotifyPeer", "inputNotifyUsers", "inputNotifyChats", "inputNotifyBroadcasts", "inputNotifyForumTopic");
150
+ const isAnyInputNotifyPeer = /* @__PURE__ */ _isAny("inputNotifyPeer", "inputNotifyUsers", "inputNotifyChats", "inputNotifyBroadcasts", "inputNotifyForumTopic", "inputNotifyCommunity");
115
151
  const isAnyInputPeerNotifySettings = /* @__PURE__ */ _isAny("inputPeerNotifySettings");
116
152
  const isAnyPeerNotifySettings = /* @__PURE__ */ _isAny("peerNotifySettings");
117
153
  const isAnyPeerSettings = /* @__PURE__ */ _isAny("peerSettings");
@@ -122,7 +158,7 @@ const isAnyContact = /* @__PURE__ */ _isAny("contact");
122
158
  const isAnyImportedContact = /* @__PURE__ */ _isAny("importedContact");
123
159
  const isAnyContactStatus = /* @__PURE__ */ _isAny("contactStatus");
124
160
  const isAnyMessagesFilter = /* @__PURE__ */ _isAny("inputMessagesFilterEmpty", "inputMessagesFilterPhotos", "inputMessagesFilterVideo", "inputMessagesFilterPhotoVideo", "inputMessagesFilterDocument", "inputMessagesFilterUrl", "inputMessagesFilterGif", "inputMessagesFilterVoice", "inputMessagesFilterMusic", "inputMessagesFilterChatPhotos", "inputMessagesFilterPhoneCalls", "inputMessagesFilterRoundVoice", "inputMessagesFilterRoundVideo", "inputMessagesFilterMyMentions", "inputMessagesFilterGeo", "inputMessagesFilterContacts", "inputMessagesFilterPinned", "inputMessagesFilterPoll");
125
- const isAnyUpdate = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
161
+ const isAnyUpdate = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "mtcute.dummyUpdate");
126
162
  const isAnyUpdates = /* @__PURE__ */ _isAny("updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage");
127
163
  const isAnyDcOption = /* @__PURE__ */ _isAny("dcOption");
128
164
  const isAnyConfig = /* @__PURE__ */ _isAny("config");
@@ -134,7 +170,7 @@ const isAnyInputEncryptedFile = /* @__PURE__ */ _isAny("inputEncryptedFileEmpty"
134
170
  const isAnyEncryptedMessage = /* @__PURE__ */ _isAny("encryptedMessage", "encryptedMessageService");
135
171
  const isAnyInputDocument = /* @__PURE__ */ _isAny("inputDocumentEmpty", "inputDocument");
136
172
  const isAnyDocument = /* @__PURE__ */ _isAny("documentEmpty", "document");
137
- const isAnyNotifyPeer = /* @__PURE__ */ _isAny("notifyPeer", "notifyUsers", "notifyChats", "notifyBroadcasts", "notifyForumTopic");
173
+ const isAnyNotifyPeer = /* @__PURE__ */ _isAny("notifyPeer", "notifyUsers", "notifyChats", "notifyBroadcasts", "notifyForumTopic", "notifyCommunity");
138
174
  const isAnySendMessageAction = /* @__PURE__ */ _isAny("sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction");
139
175
  const isAnyInputPrivacyKey = /* @__PURE__ */ _isAny("inputPrivacyKeyStatusTimestamp", "inputPrivacyKeyChatInvite", "inputPrivacyKeyPhoneCall", "inputPrivacyKeyPhoneP2P", "inputPrivacyKeyForwards", "inputPrivacyKeyProfilePhoto", "inputPrivacyKeyPhoneNumber", "inputPrivacyKeyAddedByPhone", "inputPrivacyKeyVoiceMessages", "inputPrivacyKeyAbout", "inputPrivacyKeyBirthday", "inputPrivacyKeyStarGiftsAutoSave", "inputPrivacyKeyNoPaidMessages", "inputPrivacyKeySavedMusic");
140
176
  const isAnyPrivacyKey = /* @__PURE__ */ _isAny("privacyKeyStatusTimestamp", "privacyKeyChatInvite", "privacyKeyPhoneCall", "privacyKeyPhoneP2P", "privacyKeyForwards", "privacyKeyProfilePhoto", "privacyKeyPhoneNumber", "privacyKeyAddedByPhone", "privacyKeyVoiceMessages", "privacyKeyAbout", "privacyKeyBirthday", "privacyKeyStarGiftsAutoSave", "privacyKeyNoPaidMessages", "privacyKeySavedMusic");
@@ -179,7 +215,7 @@ const isAnyInputStickeredMedia = /* @__PURE__ */ _isAny("inputStickeredMediaPhot
179
215
  const isAnyGame = /* @__PURE__ */ _isAny("game");
180
216
  const isAnyInputGame = /* @__PURE__ */ _isAny("inputGameID", "inputGameShortName");
181
217
  const isAnyHighScore = /* @__PURE__ */ _isAny("highScore");
182
- const isAnyRichText = /* @__PURE__ */ _isAny("textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate");
218
+ const isAnyRichText = /* @__PURE__ */ _isAny("textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff");
183
219
  const isAnyPageBlock = /* @__PURE__ */ _isAny("pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks");
184
220
  const isAnyPhoneCallDiscardReason = /* @__PURE__ */ _isAny("phoneCallDiscardReasonMissed", "phoneCallDiscardReasonDisconnect", "phoneCallDiscardReasonHangup", "phoneCallDiscardReasonBusy", "phoneCallDiscardReasonMigrateConferenceCall");
185
221
  const isAnyDataJSON = /* @__PURE__ */ _isAny("dataJSON");
@@ -212,8 +248,8 @@ const isAnyRecentMeUrl = /* @__PURE__ */ _isAny("recentMeUrlUnknown", "recentMeU
212
248
  const isAnyInputSingleMedia = /* @__PURE__ */ _isAny("inputSingleMedia");
213
249
  const isAnyWebAuthorization = /* @__PURE__ */ _isAny("webAuthorization");
214
250
  const isAnyInputMessage = /* @__PURE__ */ _isAny("inputMessageID", "inputMessageReplyTo", "inputMessagePinned", "inputMessageCallbackQuery");
215
- const isAnyInputDialogPeer = /* @__PURE__ */ _isAny("inputDialogPeer", "inputDialogPeerFolder");
216
- const isAnyDialogPeer = /* @__PURE__ */ _isAny("dialogPeer", "dialogPeerFolder");
251
+ const isAnyInputDialogPeer = /* @__PURE__ */ _isAny("inputDialogPeer", "inputDialogPeerFolder", "inputDialogPeerCommunity");
252
+ const isAnyDialogPeer = /* @__PURE__ */ _isAny("dialogPeer", "dialogPeerFolder", "dialogPeerCommunity");
217
253
  const isAnyFileHash = /* @__PURE__ */ _isAny("fileHash");
218
254
  const isAnyInputClientProxy = /* @__PURE__ */ _isAny("inputClientProxy");
219
255
  const isAnyInputSecureFile = /* @__PURE__ */ _isAny("inputSecureFileUploaded", "inputSecureFile");
@@ -347,7 +383,7 @@ const isAnyMessagePeerVote = /* @__PURE__ */ _isAny("messagePeerVote", "messageP
347
383
  const isAnyStoryViews = /* @__PURE__ */ _isAny("storyViews");
348
384
  const isAnyStoryItem = /* @__PURE__ */ _isAny("storyItemDeleted", "storyItemSkipped", "storyItem");
349
385
  const isAnyStoryView = /* @__PURE__ */ _isAny("storyView", "storyViewPublicForward", "storyViewPublicRepost");
350
- const isAnyInputReplyTo = /* @__PURE__ */ _isAny("inputReplyToMessage", "inputReplyToStory", "inputReplyToMonoForum");
386
+ const isAnyInputReplyTo = /* @__PURE__ */ _isAny("inputReplyToMessage", "inputReplyToStory", "inputReplyToMonoForum", "inputReplyToEphemeralMessage");
351
387
  const isAnyExportedStoryLink = /* @__PURE__ */ _isAny("exportedStoryLink");
352
388
  const isAnyStoriesStealthMode = /* @__PURE__ */ _isAny("storiesStealthMode");
353
389
  const isAnyMediaAreaCoordinates = /* @__PURE__ */ _isAny("mediaAreaCoordinates");
@@ -459,7 +495,7 @@ const isAnyStarGiftAuctionRound = /* @__PURE__ */ _isAny("starGiftAuctionRound",
459
495
  const isAnyStarGiftAttributeRarity = /* @__PURE__ */ _isAny("starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary");
460
496
  const isAnyKeyboardButtonStyle = /* @__PURE__ */ _isAny("keyboardButtonStyle");
461
497
  const isAnyInputMessageReadMetric = /* @__PURE__ */ _isAny("inputMessageReadMetric");
462
- const isAnyInputAiComposeTone = /* @__PURE__ */ _isAny("inputAiComposeToneDefault", "inputAiComposeToneID", "inputAiComposeToneSlug");
498
+ const isAnyInputAiComposeTone = /* @__PURE__ */ _isAny("inputAiComposeToneDefault", "inputAiComposeToneID", "inputAiComposeToneSlug", "inputAiComposeToneSingleUse");
463
499
  const isAnyAiComposeTone = /* @__PURE__ */ _isAny("aiComposeTone", "aiComposeToneDefault");
464
500
  const isAnyAiComposeToneExample = /* @__PURE__ */ _isAny("aiComposeToneExample");
465
501
  const isAnyJoinChatBotResult = /* @__PURE__ */ _isAny("joinChatBotResultApproved", "joinChatBotResultDeclined", "joinChatBotResultQueued", "joinChatBotResultWebView");
@@ -467,6 +503,9 @@ const isAnyWebDomainException = /* @__PURE__ */ _isAny("webDomainException");
467
503
  const isAnyInputRichFile = /* @__PURE__ */ _isAny("inputRichFilePhoto", "inputRichFileDocument");
468
504
  const isAnyInputRichMessage = /* @__PURE__ */ _isAny("inputRichMessage", "inputRichMessageHTML", "inputRichMessageMarkdown");
469
505
  const isAnyRichMessage = /* @__PURE__ */ _isAny("richMessage");
506
+ const isAnyCommunityPeer = /* @__PURE__ */ _isAny("communityPeer");
507
+ const isAnyCommunityPeerRequest = /* @__PURE__ */ _isAny("communityPeerRequest");
508
+ const isAnyEphemeralMessage = /* @__PURE__ */ _isAny("ephemeralMessage");
470
509
  const isAnyStorage_FileType = /* @__PURE__ */ _isAny("storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp");
471
510
  const isAnyAuth_SentCode = /* @__PURE__ */ _isAny("auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired");
472
511
  const isAnyAuth_Authorization = /* @__PURE__ */ _isAny("auth.authorization", "auth.authorizationSignUpRequired");
@@ -549,6 +588,8 @@ const isAnyMessages_EmojiGameOutcome = /* @__PURE__ */ _isAny("messages.emojiGam
549
588
  const isAnyMessages_EmojiGameInfo = /* @__PURE__ */ _isAny("messages.emojiGameUnavailable", "messages.emojiGameDiceInfo");
550
589
  const isAnyMessages_ComposedMessageWithAI = /* @__PURE__ */ _isAny("messages.composedMessageWithAI");
551
590
  const isAnyMessages_ChatInviteJoinResult = /* @__PURE__ */ _isAny("messages.chatInviteJoinResultOk", "messages.chatInviteJoinResultWebView");
591
+ const isAnyMessages_TranslatedRichMessage = /* @__PURE__ */ _isAny("messages.translatedRichMessage");
592
+ const isAnyMessages_ComposedRichMessageWithAI = /* @__PURE__ */ _isAny("messages.composedRichMessageWithAI");
552
593
  const isAnyUpdates_State = /* @__PURE__ */ _isAny("updates.state");
553
594
  const isAnyUpdates_Difference = /* @__PURE__ */ _isAny("updates.differenceEmpty", "updates.difference", "updates.differenceSlice", "updates.differenceTooLong");
554
595
  const isAnyUpdates_ChannelDifference = /* @__PURE__ */ _isAny("updates.channelDifferenceEmpty", "updates.channelDifferenceTooLong", "updates.channelDifference");
@@ -683,7 +724,9 @@ const isAnySmsjobs_EligibilityToJoin = /* @__PURE__ */ _isAny("smsjobs.eligibleT
683
724
  const isAnySmsjobs_Status = /* @__PURE__ */ _isAny("smsjobs.status");
684
725
  const isAnyFragment_CollectibleInfo = /* @__PURE__ */ _isAny("fragment.collectibleInfo");
685
726
  const isAnyAicompose_Tones = /* @__PURE__ */ _isAny("aicompose.tonesNotModified", "aicompose.tones");
686
- const isAnyMtcute_Update = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateChannelPinnedTopic", "updateChannelPinnedTopics", "mtcute.dummyUpdate");
727
+ const isAnyCommunities_PeerLinkRequests = /* @__PURE__ */ _isAny("communities.peerLinkRequests");
728
+ const isAnyCommunities_ParticipantJoinedChats = /* @__PURE__ */ _isAny("communities.participantJoinedChats");
729
+ const isAnyMtcute_Update = /* @__PURE__ */ _isAny("updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "mtcute.dummyUpdate");
687
730
  const isAnyMtcute_InputPeer = /* @__PURE__ */ _isAny("inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage", "mtcute.dummyInputPeerMinUser", "mtcute.dummyInputPeerMinChannel");
688
731
  export {
689
732
  LAYER,
@@ -808,6 +851,10 @@ export {
808
851
  isAnyChatlists_ExportedChatlistInvite,
809
852
  isAnyChatlists_ExportedInvites,
810
853
  isAnyCodeSettings,
854
+ isAnyCommunities_ParticipantJoinedChats,
855
+ isAnyCommunities_PeerLinkRequests,
856
+ isAnyCommunityPeer,
857
+ isAnyCommunityPeerRequest,
811
858
  isAnyConfig,
812
859
  isAnyConnectedBot,
813
860
  isAnyConnectedBotStarRef,
@@ -845,6 +892,7 @@ export {
845
892
  isAnyEncryptedChat,
846
893
  isAnyEncryptedFile,
847
894
  isAnyEncryptedMessage,
895
+ isAnyEphemeralMessage,
848
896
  isAnyError,
849
897
  isAnyExportedChatInvite,
850
898
  isAnyExportedChatlistInvite,
@@ -1006,6 +1054,7 @@ export {
1006
1054
  isAnyMessages_Chats,
1007
1055
  isAnyMessages_CheckedHistoryImportPeer,
1008
1056
  isAnyMessages_ComposedMessageWithAI,
1057
+ isAnyMessages_ComposedRichMessageWithAI,
1009
1058
  isAnyMessages_DhConfig,
1010
1059
  isAnyMessages_DialogFilters,
1011
1060
  isAnyMessages_Dialogs,
@@ -1048,6 +1097,7 @@ export {
1048
1097
  isAnyMessages_StickerSetInstallResult,
1049
1098
  isAnyMessages_Stickers,
1050
1099
  isAnyMessages_TranscribedAudio,
1100
+ isAnyMessages_TranslatedRichMessage,
1051
1101
  isAnyMessages_TranslatedText,
1052
1102
  isAnyMessages_VotesList,
1053
1103
  isAnyMessages_WebPage,