@mtkruto/node 0.3.1 → 0.5.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 (352) hide show
  1. package/esm/0_deps.d.ts +1 -1
  2. package/esm/0_deps.js +1 -1
  3. package/esm/4_constants.d.ts +1 -1
  4. package/esm/4_constants.js +4 -4
  5. package/esm/client/0_params.d.ts +10 -3
  6. package/esm/client/0_params.d.ts.map +1 -1
  7. package/esm/client/0_password.js +2 -2
  8. package/esm/client/0_utilities.d.ts +4 -4
  9. package/esm/client/0_utilities.d.ts.map +1 -1
  10. package/esm/client/1_client_encrypted.d.ts.map +1 -1
  11. package/esm/client/2_update_manager.js +1 -1
  12. package/esm/client/3_message_manager.d.ts.map +1 -1
  13. package/esm/client/3_message_manager.js +16 -0
  14. package/esm/client/5_client.d.ts.map +1 -1
  15. package/esm/client/5_client.js +3 -3
  16. package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.js +1 -1
  17. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +4 -4
  18. package/esm/deps/jsr.io/@std/assert/1.0.6/greater.js +1 -1
  19. package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.js +1 -1
  20. package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js +1 -1
  21. package/esm/deps/jsr.io/@std/assert/1.0.6/less.js +1 -1
  22. package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.js +1 -1
  23. package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +1 -1
  24. package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +5 -5
  25. package/{script/deps/jsr.io/@std/internal/1.0.4 → esm/deps/jsr.io/@std/internal/1.0.5}/build_message.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
  27. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
  28. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
  29. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
  30. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
  31. package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts.map +1 -1
  32. package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.js +1 -1
  33. package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts.map +1 -1
  34. package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts.map +1 -1
  35. package/esm/tl/0_api.d.ts +199 -41
  36. package/esm/tl/0_api.d.ts.map +1 -1
  37. package/esm/tl/0_api.js +314 -75
  38. package/esm/transport/1_transport_abridged.d.ts.map +1 -1
  39. package/esm/transport/1_transport_intermediate.d.ts.map +1 -1
  40. package/esm/transport/2_transport_provider.js +4 -4
  41. package/esm/types/2_inline_keyboard_button.d.ts +9 -1
  42. package/esm/types/2_inline_keyboard_button.d.ts.map +1 -1
  43. package/esm/types/2_inline_keyboard_button.js +6 -0
  44. package/esm/types/2_invite_link.d.ts +5 -1
  45. package/esm/types/2_invite_link.d.ts.map +1 -1
  46. package/esm/types/2_invite_link.js +2 -0
  47. package/esm/utilities/0_cache_map.d.ts.map +1 -1
  48. package/esm/utilities/0_units.js +3 -3
  49. package/esm/utilities/2_queue.d.ts.map +1 -1
  50. package/package.json +1 -1
  51. package/script/0_deps.d.ts +1 -1
  52. package/script/0_deps.js +3 -3
  53. package/script/4_constants.d.ts +1 -1
  54. package/script/4_constants.js +4 -4
  55. package/script/4_errors.js +2 -2
  56. package/script/client/0_filters.js +1 -2
  57. package/script/client/0_html.js +1 -2
  58. package/script/client/0_markdown.js +2 -2
  59. package/script/client/0_message.js +5 -6
  60. package/script/client/0_params.d.ts +10 -3
  61. package/script/client/0_params.d.ts.map +1 -1
  62. package/script/client/0_password.js +8 -8
  63. package/script/client/0_utilities.d.ts +4 -4
  64. package/script/client/0_utilities.d.ts.map +1 -1
  65. package/script/client/0_utilities.js +16 -16
  66. package/script/client/1_client_encrypted.d.ts.map +1 -1
  67. package/script/client/1_composer.js +4 -4
  68. package/script/client/2_update_manager.js +1 -1
  69. package/script/client/3_message_manager.d.ts.map +1 -1
  70. package/script/client/3_message_manager.js +16 -0
  71. package/script/client/5_client.d.ts.map +1 -1
  72. package/script/client/5_client.js +2 -2
  73. package/script/deps/deno.land/std@0.224.0/io/write_all.js +2 -3
  74. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +1 -1
  75. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +2 -2
  76. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +2 -2
  77. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +9 -9
  78. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +4 -4
  79. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +1 -1
  80. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +3 -3
  81. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +4 -4
  82. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +4 -4
  83. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +5 -6
  84. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +6 -7
  85. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +6 -7
  86. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +5 -6
  87. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +8 -9
  88. package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.js +10 -11
  89. package/script/deps/jsr.io/@std/assert/1.0.6/almost_equals.js +1 -2
  90. package/script/deps/jsr.io/@std/assert/1.0.6/array_includes.js +2 -3
  91. package/script/deps/jsr.io/@std/assert/1.0.6/assert.js +1 -2
  92. package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +1 -2
  93. package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +5 -6
  94. package/script/deps/jsr.io/@std/assert/1.0.6/exists.js +1 -2
  95. package/script/deps/jsr.io/@std/assert/1.0.6/fail.js +1 -2
  96. package/script/deps/jsr.io/@std/assert/1.0.6/false.js +1 -2
  97. package/script/deps/jsr.io/@std/assert/1.0.6/greater.js +2 -3
  98. package/script/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.js +2 -3
  99. package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.js +1 -2
  100. package/script/deps/jsr.io/@std/assert/1.0.6/is_error.js +2 -3
  101. package/script/deps/jsr.io/@std/assert/1.0.6/less.js +2 -3
  102. package/script/deps/jsr.io/@std/assert/1.0.6/less_or_equal.js +2 -3
  103. package/script/deps/jsr.io/@std/assert/1.0.6/match.js +1 -2
  104. package/script/deps/jsr.io/@std/assert/1.0.6/not_equals.js +1 -2
  105. package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +1 -2
  106. package/script/deps/jsr.io/@std/assert/1.0.6/not_match.js +1 -2
  107. package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +2 -3
  108. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +1 -2
  109. package/script/deps/jsr.io/@std/assert/1.0.6/rejects.js +1 -2
  110. package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +6 -7
  111. package/script/deps/jsr.io/@std/assert/1.0.6/string_includes.js +1 -2
  112. package/script/deps/jsr.io/@std/assert/1.0.6/throws.js +1 -2
  113. package/script/deps/jsr.io/@std/assert/1.0.6/unimplemented.js +1 -2
  114. package/script/deps/jsr.io/@std/assert/1.0.6/unreachable.js +1 -2
  115. package/script/deps/jsr.io/@std/bytes/1.0.2/concat.js +1 -2
  116. package/script/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.js +1 -2
  117. package/script/deps/jsr.io/@std/encoding/1.0.5/base64.js +2 -3
  118. package/{esm/deps/jsr.io/@std/internal/1.0.4 → script/deps/jsr.io/@std/internal/1.0.5}/build_message.d.ts.map +1 -1
  119. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +3 -4
  120. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
  121. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +5 -6
  122. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
  123. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +4 -5
  124. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
  125. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +1 -2
  126. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
  127. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +10 -11
  128. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
  129. package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts.map +1 -1
  130. package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.js +1 -1
  131. package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts.map +1 -1
  132. package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.js +2 -3
  133. package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts.map +1 -1
  134. package/script/deps/jsr.io/@std/media-types/1.0.3/_util.js +8 -9
  135. package/script/deps/jsr.io/@std/media-types/1.0.3/all_extensions.js +1 -2
  136. package/script/deps/jsr.io/@std/media-types/1.0.3/content_type.js +1 -2
  137. package/script/deps/jsr.io/@std/media-types/1.0.3/extension.js +1 -2
  138. package/script/deps/jsr.io/@std/media-types/1.0.3/format_media_type.js +1 -2
  139. package/script/deps/jsr.io/@std/media-types/1.0.3/get_charset.js +1 -2
  140. package/script/deps/jsr.io/@std/media-types/1.0.3/parse_media_type.js +1 -2
  141. package/script/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.js +1 -2
  142. package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +1 -2
  143. package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +3 -4
  144. package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +1 -2
  145. package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +1 -2
  146. package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +2 -3
  147. package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +1 -2
  148. package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +1 -2
  149. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +1 -2
  150. package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +1 -2
  151. package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +1 -2
  152. package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +1 -2
  153. package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +1 -2
  154. package/script/deps/jsr.io/@std/path/1.0.6/basename.js +1 -2
  155. package/script/deps/jsr.io/@std/path/1.0.6/common.js +1 -2
  156. package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +1 -2
  157. package/script/deps/jsr.io/@std/path/1.0.6/extname.js +1 -2
  158. package/script/deps/jsr.io/@std/path/1.0.6/format.js +1 -2
  159. package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +1 -2
  160. package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +1 -2
  161. package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +1 -2
  162. package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +1 -2
  163. package/script/deps/jsr.io/@std/path/1.0.6/join.js +1 -2
  164. package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +1 -2
  165. package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +1 -2
  166. package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +1 -2
  167. package/script/deps/jsr.io/@std/path/1.0.6/parse.js +1 -2
  168. package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +1 -2
  169. package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +1 -2
  170. package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +1 -2
  171. package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +1 -2
  172. package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +1 -2
  173. package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +1 -2
  174. package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +1 -2
  175. package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +1 -2
  176. package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +1 -2
  177. package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +1 -2
  178. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +1 -2
  179. package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +1 -2
  180. package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +1 -2
  181. package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +1 -2
  182. package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +1 -2
  183. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +1 -2
  184. package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +1 -2
  185. package/script/deps/jsr.io/@std/path/1.0.6/relative.js +1 -2
  186. package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +1 -2
  187. package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +1 -2
  188. package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +1 -2
  189. package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +3 -4
  190. package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +1 -2
  191. package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +1 -2
  192. package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +1 -2
  193. package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +1 -2
  194. package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +1 -2
  195. package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +1 -2
  196. package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +1 -2
  197. package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +1 -2
  198. package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +1 -2
  199. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +1 -2
  200. package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +1 -2
  201. package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +1 -2
  202. package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +1 -2
  203. package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +1 -2
  204. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +1 -2
  205. package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +1 -2
  206. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +1 -2
  207. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +2 -2
  208. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +1 -1
  209. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +2 -3
  210. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +6 -6
  211. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +1 -1
  212. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +10 -10
  213. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +1 -1
  214. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +5 -6
  215. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +1 -2
  216. package/script/storage/1_utilities.js +7 -7
  217. package/script/tl/0_api.d.ts +199 -41
  218. package/script/tl/0_api.d.ts.map +1 -1
  219. package/script/tl/0_api.js +314 -75
  220. package/script/tl/1_utilities.js +9 -10
  221. package/script/tl/2_deserialize.js +1 -2
  222. package/script/tl/2_serialize.js +1 -2
  223. package/script/tl/3_utilities.js +6 -7
  224. package/script/tl/4_rpc_result.js +2 -2
  225. package/script/tl/5_message.js +6 -6
  226. package/script/transport/0_obfuscation.js +1 -2
  227. package/script/transport/1_transport_abridged.d.ts.map +1 -1
  228. package/script/transport/1_transport_intermediate.d.ts.map +1 -1
  229. package/script/transport/2_transport_provider.js +7 -8
  230. package/script/transport/3_transport_provider_tcp.js +1 -2
  231. package/script/types/0_birthday.js +1 -2
  232. package/script/types/0_callback_query_answer.js +1 -2
  233. package/script/types/0_callback_query_question.js +1 -2
  234. package/script/types/0_chat_administrator_rights.js +2 -3
  235. package/script/types/0_chat_member_rights.js +2 -3
  236. package/script/types/0_chat_photo.js +1 -2
  237. package/script/types/0_contact.js +1 -2
  238. package/script/types/0_dice.js +1 -2
  239. package/script/types/0_failed_invitation.js +1 -2
  240. package/script/types/0_giveaway_parameters.js +1 -2
  241. package/script/types/0_invoice.js +1 -2
  242. package/script/types/0_link_preview.js +1 -2
  243. package/script/types/0_live_stream_channel.js +1 -2
  244. package/script/types/0_location.js +1 -2
  245. package/script/types/0_mask_position.js +1 -2
  246. package/script/types/0_message_entity.js +3 -4
  247. package/script/types/0_message_search_filter.js +1 -2
  248. package/script/types/0_mini_app_info.js +1 -2
  249. package/script/types/0_opening_hours.js +1 -2
  250. package/script/types/0_reaction.js +3 -4
  251. package/script/types/0_refunded_payment.js +1 -2
  252. package/script/types/0_restriction_reason.js +1 -2
  253. package/script/types/0_self_destruct_option.js +1 -2
  254. package/script/types/0_shipping_address.js +1 -2
  255. package/script/types/0_thumbnail.js +1 -2
  256. package/script/types/0_video_chat.js +1 -2
  257. package/script/types/0_voice.js +1 -2
  258. package/script/types/1_animation.js +1 -2
  259. package/script/types/1_audio.js +1 -2
  260. package/script/types/1_bot_command_scope.js +1 -2
  261. package/script/types/1_chat_p.js +1 -2
  262. package/script/types/1_document.js +1 -2
  263. package/script/types/1_giveaway.js +1 -2
  264. package/script/types/1_keyboard_button.js +2 -3
  265. package/script/types/1_message_reaction.js +1 -2
  266. package/script/types/1_order_info.js +1 -2
  267. package/script/types/1_photo.js +2 -3
  268. package/script/types/1_poll_option.js +1 -2
  269. package/script/types/1_reaction_count.js +1 -2
  270. package/script/types/1_reply_quote.js +1 -2
  271. package/script/types/1_sticker.js +1 -2
  272. package/script/types/1_story_privacy.js +2 -3
  273. package/script/types/1_story_reaction.js +1 -2
  274. package/script/types/1_user.js +1 -2
  275. package/script/types/1_venue.js +1 -2
  276. package/script/types/1_video.js +1 -2
  277. package/script/types/1_video_note.js +1 -2
  278. package/script/types/2_business_connection.js +1 -2
  279. package/script/types/2_chat.js +1 -2
  280. package/script/types/2_chat_member.js +1 -2
  281. package/script/types/2_chosen_inline_result.js +1 -2
  282. package/script/types/2_forward_header.js +1 -2
  283. package/script/types/2_game.js +1 -2
  284. package/script/types/2_inactive_chat.js +1 -2
  285. package/script/types/2_inline_keyboard_button.d.ts +9 -1
  286. package/script/types/2_inline_keyboard_button.d.ts.map +1 -1
  287. package/script/types/2_inline_keyboard_button.js +8 -3
  288. package/script/types/2_inline_query.js +1 -2
  289. package/script/types/2_invite_link.d.ts +5 -1
  290. package/script/types/2_invite_link.d.ts.map +1 -1
  291. package/script/types/2_invite_link.js +3 -2
  292. package/script/types/2_message_reaction_count.js +1 -2
  293. package/script/types/2_message_reactions.js +1 -2
  294. package/script/types/2_poll.js +1 -2
  295. package/script/types/2_pre_checkout_query.js +1 -2
  296. package/script/types/2_story_content.js +1 -2
  297. package/script/types/2_story_interactions.js +1 -2
  298. package/script/types/2_story_interactive_area.js +2 -3
  299. package/script/types/2_successful_payment.js +1 -2
  300. package/script/types/3_chat_member_updated.js +1 -2
  301. package/script/types/3_join_request.js +1 -2
  302. package/script/types/3_reply_markup.js +2 -3
  303. package/script/types/3_story.js +1 -2
  304. package/script/types/4_inline_query_result.js +2 -3
  305. package/script/types/4_message.js +2 -3
  306. package/script/types/5_callback_query.js +2 -3
  307. package/script/types/5_chat_list_item.js +5 -6
  308. package/script/types/5_inline_query_answer.js +1 -2
  309. package/script/types/_file_id.js +5 -5
  310. package/script/utilities/0_bigint.js +6 -7
  311. package/script/utilities/0_buffer.js +1 -2
  312. package/script/utilities/0_cache_map.d.ts.map +1 -1
  313. package/script/utilities/0_color.js +2 -3
  314. package/script/utilities/0_env.js +2 -3
  315. package/script/utilities/0_hash.js +2 -3
  316. package/script/utilities/0_object.js +1 -2
  317. package/script/utilities/0_rle.js +2 -3
  318. package/script/utilities/0_units.js +3 -3
  319. package/script/utilities/1_auth.js +1 -2
  320. package/script/utilities/1_base64.js +2 -3
  321. package/script/utilities/1_logger.js +5 -5
  322. package/script/utilities/1_math.js +1 -2
  323. package/script/utilities/1_misc.js +8 -8
  324. package/script/utilities/2_queue.d.ts.map +1 -1
  325. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
  326. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +0 -0
  327. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
  328. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +0 -0
  329. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
  330. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +0 -0
  331. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
  332. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +0 -0
  333. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
  334. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +0 -0
  335. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
  336. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
  337. /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts +0 -0
  338. /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts +0 -0
  339. /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.js +0 -0
  340. /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts +0 -0
  341. /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.js +0 -0
  342. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
  343. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
  344. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
  345. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
  346. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
  347. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
  348. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
  349. /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts +0 -0
  350. /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts +0 -0
  351. /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts +0 -0
  352. /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.js +0 -0
package/esm/tl/0_api.js CHANGED
@@ -156,7 +156,7 @@ const map = new Map([
156
156
  [0x56E0D474, "messageMediaGeo"],
157
157
  [0x70322949, "messageMediaContact"],
158
158
  [0x9F84F49E, "messageMediaUnsupported"],
159
- [0x4CF4D72D, "messageMediaDocument"],
159
+ [0xDD570BD5, "messageMediaDocument"],
160
160
  [0xDDF10C3B, "messageMediaWebPage"],
161
161
  [0x2EC0533F, "messageMediaVenue"],
162
162
  [0xFDB19008, "messageMediaGame"],
@@ -200,13 +200,13 @@ const map = new Map([
200
200
  [0xEBBCA3CB, "messageActionChatJoinedByRequest"],
201
201
  [0x47DD8079, "messageActionWebViewDataSentMe"],
202
202
  [0xB4C38CB5, "messageActionWebViewDataSent"],
203
- [0xC83D6AEC, "messageActionGiftPremium"],
203
+ [0x6C6274FA, "messageActionGiftPremium"],
204
204
  [0x0D999256, "messageActionTopicCreate"],
205
205
  [0xC0944820, "messageActionTopicEdit"],
206
206
  [0x57DE635E, "messageActionSuggestProfilePhoto"],
207
207
  [0x31518E9B, "messageActionRequestedPeer"],
208
208
  [0x5060A3F4, "messageActionSetChatWallPaper"],
209
- [0x678C2E09, "messageActionGiftCode"],
209
+ [0x56D03994, "messageActionGiftCode"],
210
210
  [0xA80F51E4, "messageActionGiveawayLaunch"],
211
211
  [0x87E2F155, "messageActionGiveawayResults"],
212
212
  [0xCC02AA6D, "messageActionBoostApply"],
@@ -214,6 +214,7 @@ const map = new Map([
214
214
  [0x41B3E202, "messageActionPaymentRefunded"],
215
215
  [0x45D5B021, "messageActionGiftStars"],
216
216
  [0xB00C47A2, "messageActionPrizeStars"],
217
+ [0x9BB3EF44, "messageActionStarGift"],
217
218
  [0xD58A08C6, "dialog"],
218
219
  [0x71BD134C, "dialogFolder"],
219
220
  [0x2331B22D, "photoEmpty"],
@@ -251,7 +252,7 @@ const map = new Map([
251
252
  [0xF5DDD6E7, "inputReportReasonFake"],
252
253
  [0x0A8EB2BE, "inputReportReasonIllegalDrugs"],
253
254
  [0x9EC7863D, "inputReportReasonPersonalDetails"],
254
- [0xCC997720, "userFull"],
255
+ [0x1F58E369, "userFull"],
255
256
  [0x145ADE0B, "contact"],
256
257
  [0xC13E3C50, "importedContact"],
257
258
  [0x16D9703B, "contactStatus"],
@@ -356,7 +357,7 @@ const map = new Map([
356
357
  [0x6A7E7366, "updatePeerSettings"],
357
358
  [0xB4AFCFB0, "updatePeerLocated"],
358
359
  [0x39A51DFB, "updateNewScheduledMessage"],
359
- [0x90866CEE, "updateDeleteScheduledMessages"],
360
+ [0xF2A71983, "updateDeleteScheduledMessages"],
360
361
  [0x8216FBA3, "updateTheme"],
361
362
  [0x871FB939, "updateGeoLiveViewed"],
362
363
  [0x564FE691, "updateLoginToken"],
@@ -546,7 +547,7 @@ const map = new Map([
546
547
  [0x6C37C15C, "documentAttributeImageSize"],
547
548
  [0x11B58939, "documentAttributeAnimated"],
548
549
  [0x6319D612, "documentAttributeSticker"],
549
- [0x17399FAD, "documentAttributeVideo"],
550
+ [0x43C57C48, "documentAttributeVideo"],
550
551
  [0x9852F9C6, "documentAttributeAudio"],
551
552
  [0x15590068, "documentAttributeFilename"],
552
553
  [0x9801D2F7, "documentAttributeHasStickers"],
@@ -606,6 +607,7 @@ const map = new Map([
606
607
  [0xA0C0505C, "keyboardButtonSimpleWebView"],
607
608
  [0x53D7BFD8, "keyboardButtonRequestPeer"],
608
609
  [0xC9662D05, "inputKeyboardButtonRequestPeer"],
610
+ [0x75D2698E, "keyboardButtonCopy"],
609
611
  [0x77608B83, "keyboardButtonRow"],
610
612
  [0xA03E5B85, "replyKeyboardHide"],
611
613
  [0x86B40B08, "replyKeyboardForceReply"],
@@ -808,6 +810,7 @@ const map = new Map([
808
810
  [0x21E753BC, "upload.webFile"],
809
811
  [0xA0058751, "payments.paymentForm"],
810
812
  [0x7BF6B15C, "payments.paymentFormStars"],
813
+ [0xB425CFE1, "payments.paymentFormStarGift"],
811
814
  [0xD1451883, "payments.validatedRequestedInfo"],
812
815
  [0x4E5F810D, "payments.paymentResult"],
813
816
  [0xD8411139, "payments.paymentVerificationNeeded"],
@@ -1169,12 +1172,13 @@ const map = new Map([
1169
1172
  [0x98986C0D, "inputInvoicePremiumGiftCode"],
1170
1173
  [0x65F00CE3, "inputInvoiceStars"],
1171
1174
  [0x34E793F1, "inputInvoiceChatInviteSubscription"],
1175
+ [0x25D8C1D8, "inputInvoiceStarGift"],
1172
1176
  [0xAED0CBD9, "payments.exportedInvoice"],
1173
1177
  [0xCFB9D957, "messages.transcribedAudio"],
1174
1178
  [0x5334759C, "help.premiumPromo"],
1175
1179
  [0xA6751E66, "inputStorePaymentPremiumSubscription"],
1176
1180
  [0x616F7FE8, "inputStorePaymentGiftPremium"],
1177
- [0xA3805F3F, "inputStorePaymentPremiumGiftCode"],
1181
+ [0xFB790393, "inputStorePaymentPremiumGiftCode"],
1178
1182
  [0x160544CA, "inputStorePaymentPremiumGiveaway"],
1179
1183
  [0xDDDD0F56, "inputStorePaymentStarsTopup"],
1180
1184
  [0x1D741EF7, "inputStorePaymentStarsGift"],
@@ -1385,8 +1389,9 @@ const map = new Map([
1385
1389
  [0xE92FD902, "starsTransactionPeerFragment"],
1386
1390
  [0xD80DA15D, "starsTransactionPeer"],
1387
1391
  [0x60682812, "starsTransactionPeerAds"],
1392
+ [0xF9677AAD, "starsTransactionPeerAPI"],
1388
1393
  [0x0BD915C0, "starsTopupOption"],
1389
- [0xEE7522D5, "starsTransaction"],
1394
+ [0x35D4F276, "starsTransaction"],
1390
1395
  [0xBBFA316C, "payments.starsStatus"],
1391
1396
  [0xE87ACBC0, "foundStory"],
1392
1397
  [0xE2DE7737, "stories.foundStories"],
@@ -1405,6 +1410,15 @@ const map = new Map([
1405
1410
  [0x4BA3A95A, "messageReactor"],
1406
1411
  [0x94CE852A, "starsGiveawayOption"],
1407
1412
  [0x54236209, "starsGiveawayWinnersOption"],
1413
+ [0x49C577CD, "starGift"],
1414
+ [0xA388A368, "payments.starGiftsNotModified"],
1415
+ [0x901689EA, "payments.starGifts"],
1416
+ [0xEEA49A6E, "userStarGift"],
1417
+ [0x6B65B517, "payments.userStarGifts"],
1418
+ [0x7903E3D9, "messageReportOption"],
1419
+ [0xF0E4E0B6, "reportResultChooseOption"],
1420
+ [0x6F09AC31, "reportResultAddComment"],
1421
+ [0x8DB33C4B, "reportResultReported"],
1408
1422
  ]);
1409
1423
  export const getTypeName = map.get.bind(map);
1410
1424
  export const flags = Symbol();
@@ -1459,7 +1473,7 @@ const enums = new Map([
1459
1473
  ["ChatPhoto", ["chatPhotoEmpty", "chatPhoto"]],
1460
1474
  ["Message", ["messageEmpty", "message", "messageService"]],
1461
1475
  ["MessageMedia", ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia"]],
1462
- ["MessageAction", ["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"]],
1476
+ ["MessageAction", ["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"]],
1463
1477
  ["Dialog", ["dialog", "dialogFolder"]],
1464
1478
  ["Photo", ["photoEmpty", "photo"]],
1465
1479
  ["PhotoSize", ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]],
@@ -1679,7 +1693,7 @@ const enums = new Map([
1679
1693
  ["messages.StickerSet", ["messages.stickerSet", "messages.stickerSetNotModified"]],
1680
1694
  ["BotCommand", ["botCommand"]],
1681
1695
  ["BotInfo", ["botInfo"]],
1682
- ["KeyboardButton", ["keyboardButton", "keyboardButtonUrl", "keyboardButtonCallback", "keyboardButtonRequestPhone", "keyboardButtonRequestGeoLocation", "keyboardButtonSwitchInline", "keyboardButtonGame", "keyboardButtonBuy", "keyboardButtonUrlAuth", "inputKeyboardButtonUrlAuth", "keyboardButtonRequestPoll", "inputKeyboardButtonUserProfile", "keyboardButtonUserProfile", "keyboardButtonWebView", "keyboardButtonSimpleWebView", "keyboardButtonRequestPeer", "inputKeyboardButtonRequestPeer"]],
1696
+ ["KeyboardButton", ["keyboardButton", "keyboardButtonUrl", "keyboardButtonCallback", "keyboardButtonRequestPhone", "keyboardButtonRequestGeoLocation", "keyboardButtonSwitchInline", "keyboardButtonGame", "keyboardButtonBuy", "keyboardButtonUrlAuth", "inputKeyboardButtonUrlAuth", "keyboardButtonRequestPoll", "inputKeyboardButtonUserProfile", "keyboardButtonUserProfile", "keyboardButtonWebView", "keyboardButtonSimpleWebView", "keyboardButtonRequestPeer", "inputKeyboardButtonRequestPeer", "keyboardButtonCopy"]],
1683
1697
  ["KeyboardButtonRow", ["keyboardButtonRow"]],
1684
1698
  ["ReplyMarkup", ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]],
1685
1699
  ["MessageEntity", ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote"]],
@@ -1738,7 +1752,7 @@ const enums = new Map([
1738
1752
  ["InputWebDocument", ["inputWebDocument"]],
1739
1753
  ["InputWebFileLocation", ["inputWebFileLocation", "inputWebFileGeoPointLocation", "inputWebFileAudioAlbumThumbLocation"]],
1740
1754
  ["upload.WebFile", ["upload.webFile"]],
1741
- ["payments.PaymentForm", ["payments.paymentForm", "payments.paymentFormStars"]],
1755
+ ["payments.PaymentForm", ["payments.paymentForm", "payments.paymentFormStars", "payments.paymentFormStarGift"]],
1742
1756
  ["payments.ValidatedRequestedInfo", ["payments.validatedRequestedInfo"]],
1743
1757
  ["payments.PaymentResult", ["payments.paymentResult", "payments.paymentVerificationNeeded"]],
1744
1758
  ["payments.PaymentReceipt", ["payments.paymentReceipt", "payments.paymentReceiptStars"]],
@@ -1977,7 +1991,7 @@ const enums = new Map([
1977
1991
  ["NotificationSound", ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]],
1978
1992
  ["account.SavedRingtone", ["account.savedRingtone", "account.savedRingtoneConverted"]],
1979
1993
  ["AttachMenuPeerType", ["attachMenuPeerTypeSameBotPM", "attachMenuPeerTypeBotPM", "attachMenuPeerTypePM", "attachMenuPeerTypeChat", "attachMenuPeerTypeBroadcast"]],
1980
- ["InputInvoice", ["inputInvoiceMessage", "inputInvoiceSlug", "inputInvoicePremiumGiftCode", "inputInvoiceStars", "inputInvoiceChatInviteSubscription"]],
1994
+ ["InputInvoice", ["inputInvoiceMessage", "inputInvoiceSlug", "inputInvoicePremiumGiftCode", "inputInvoiceStars", "inputInvoiceChatInviteSubscription", "inputInvoiceStarGift"]],
1981
1995
  ["payments.ExportedInvoice", ["payments.exportedInvoice"]],
1982
1996
  ["messages.TranscribedAudio", ["messages.transcribedAudio"]],
1983
1997
  ["help.PremiumPromo", ["help.premiumPromo"]],
@@ -2115,7 +2129,7 @@ const enums = new Map([
2115
2129
  ["AvailableEffect", ["availableEffect"]],
2116
2130
  ["messages.AvailableEffects", ["messages.availableEffectsNotModified", "messages.availableEffects"]],
2117
2131
  ["FactCheck", ["factCheck"]],
2118
- ["StarsTransactionPeer", ["starsTransactionPeerUnsupported", "starsTransactionPeerAppStore", "starsTransactionPeerPlayMarket", "starsTransactionPeerPremiumBot", "starsTransactionPeerFragment", "starsTransactionPeer", "starsTransactionPeerAds"]],
2132
+ ["StarsTransactionPeer", ["starsTransactionPeerUnsupported", "starsTransactionPeerAppStore", "starsTransactionPeerPlayMarket", "starsTransactionPeerPremiumBot", "starsTransactionPeerFragment", "starsTransactionPeer", "starsTransactionPeerAds", "starsTransactionPeerAPI"]],
2119
2133
  ["StarsTopupOption", ["starsTopupOption"]],
2120
2134
  ["StarsTransaction", ["starsTransaction"]],
2121
2135
  ["payments.StarsStatus", ["payments.starsStatus"]],
@@ -2136,6 +2150,12 @@ const enums = new Map([
2136
2150
  ["MessageReactor", ["messageReactor"]],
2137
2151
  ["StarsGiveawayOption", ["starsGiveawayOption"]],
2138
2152
  ["StarsGiveawayWinnersOption", ["starsGiveawayWinnersOption"]],
2153
+ ["StarGift", ["starGift"]],
2154
+ ["payments.StarGifts", ["payments.starGiftsNotModified", "payments.starGifts"]],
2155
+ ["UserStarGift", ["userStarGift"]],
2156
+ ["payments.UserStarGifts", ["payments.userStarGifts"]],
2157
+ ["MessageReportOption", ["messageReportOption"]],
2158
+ ["ReportResult", ["reportResultChooseOption", "reportResultAddComment", "reportResultReported"]],
2139
2159
  ]);
2140
2160
  const types = new Map([
2141
2161
  [
@@ -3668,6 +3688,7 @@ const types = new Map([
3668
3688
  ["invert_media", "true", "flags.27?true"],
3669
3689
  ["flags2", flags, "#"],
3670
3690
  ["offline", "true", "flags2.1?true"],
3691
+ ["video_processing_pending", "true", "flags2.4?true"],
3671
3692
  ["id", "number", "int"],
3672
3693
  ["from_id", "Peer", "flags.8?Peer"],
3673
3694
  ["from_boosts_applied", "number", "flags.29?int"],
@@ -3770,7 +3791,7 @@ const types = new Map([
3770
3791
  [
3771
3792
  "messageMediaDocument",
3772
3793
  [
3773
- 0x4CF4D72D,
3794
+ 0xDD570BD5,
3774
3795
  [
3775
3796
  ["flags", flags, "#"],
3776
3797
  ["nopremium", "true", "flags.3?true"],
@@ -3779,7 +3800,7 @@ const types = new Map([
3779
3800
  ["round", "true", "flags.7?true"],
3780
3801
  ["voice", "true", "flags.8?true"],
3781
3802
  ["document", "Document", "flags.0?Document"],
3782
- ["alt_document", "Document", "flags.5?Document"],
3803
+ ["alt_documents", ["Document"], "flags.5?Vector<Document>"],
3783
3804
  ["ttl_seconds", "number", "flags.2?int"],
3784
3805
  ],
3785
3806
  ],
@@ -4246,7 +4267,7 @@ const types = new Map([
4246
4267
  [
4247
4268
  "messageActionGiftPremium",
4248
4269
  [
4249
- 0xC83D6AEC,
4270
+ 0x6C6274FA,
4250
4271
  [
4251
4272
  ["flags", flags, "#"],
4252
4273
  ["currency", "string", "string"],
@@ -4254,6 +4275,7 @@ const types = new Map([
4254
4275
  ["months", "number", "int"],
4255
4276
  ["crypto_currency", "string", "flags.0?string"],
4256
4277
  ["crypto_amount", "bigint", "flags.0?long"],
4278
+ ["message", "TextWithEntities", "flags.1?TextWithEntities"],
4257
4279
  ],
4258
4280
  ],
4259
4281
  ],
@@ -4316,7 +4338,7 @@ const types = new Map([
4316
4338
  [
4317
4339
  "messageActionGiftCode",
4318
4340
  [
4319
- 0x678C2E09,
4341
+ 0x56D03994,
4320
4342
  [
4321
4343
  ["flags", flags, "#"],
4322
4344
  ["via_giveaway", "true", "flags.0?true"],
@@ -4328,6 +4350,7 @@ const types = new Map([
4328
4350
  ["amount", "bigint", "flags.2?long"],
4329
4351
  ["crypto_currency", "string", "flags.3?string"],
4330
4352
  ["crypto_amount", "bigint", "flags.3?long"],
4353
+ ["message", "TextWithEntities", "flags.4?TextWithEntities"],
4331
4354
  ],
4332
4355
  ],
4333
4356
  ],
@@ -4415,6 +4438,21 @@ const types = new Map([
4415
4438
  ],
4416
4439
  ],
4417
4440
  ],
4441
+ [
4442
+ "messageActionStarGift",
4443
+ [
4444
+ 0x9BB3EF44,
4445
+ [
4446
+ ["flags", flags, "#"],
4447
+ ["name_hidden", "true", "flags.0?true"],
4448
+ ["saved", "true", "flags.2?true"],
4449
+ ["converted", "true", "flags.3?true"],
4450
+ ["gift", "StarGift", "StarGift"],
4451
+ ["message", "TextWithEntities", "flags.1?TextWithEntities"],
4452
+ ["convert_stars", "bigint", "long"],
4453
+ ],
4454
+ ],
4455
+ ],
4418
4456
  [
4419
4457
  "dialog",
4420
4458
  [
@@ -4828,7 +4866,7 @@ const types = new Map([
4828
4866
  [
4829
4867
  "userFull",
4830
4868
  [
4831
- 0xCC997720,
4869
+ 0x1F58E369,
4832
4870
  [
4833
4871
  ["flags", flags, "#"],
4834
4872
  ["blocked", "true", "flags.0?true"],
@@ -4846,6 +4884,7 @@ const types = new Map([
4846
4884
  ["read_dates_private", "true", "flags.30?true"],
4847
4885
  ["flags2", flags, "#"],
4848
4886
  ["sponsored_enabled", "true", "flags2.7?true"],
4887
+ ["can_view_revenue", "true", "flags2.9?true"],
4849
4888
  ["id", "bigint", "long"],
4850
4889
  ["about", "string", "flags.1?string"],
4851
4890
  ["settings", "PeerSettings", "PeerSettings"],
@@ -4873,6 +4912,7 @@ const types = new Map([
4873
4912
  ["birthday", "Birthday", "flags2.5?Birthday"],
4874
4913
  ["personal_channel_id", "bigint", "flags2.6?long"],
4875
4914
  ["personal_channel_message", "number", "flags2.6?int"],
4915
+ ["stargifts_count", "number", "flags2.8?int"],
4876
4916
  ],
4877
4917
  ],
4878
4918
  ],
@@ -5950,10 +5990,12 @@ const types = new Map([
5950
5990
  [
5951
5991
  "updateDeleteScheduledMessages",
5952
5992
  [
5953
- 0x90866CEE,
5993
+ 0xF2A71983,
5954
5994
  [
5995
+ ["flags", flags, "#"],
5955
5996
  ["peer", "Peer", "Peer"],
5956
5997
  ["messages", ["number"], "Vector<int>"],
5998
+ ["sent_messages", ["number"], "flags.0?Vector<int>"],
5957
5999
  ],
5958
6000
  ],
5959
6001
  ],
@@ -7885,7 +7927,7 @@ const types = new Map([
7885
7927
  [
7886
7928
  "documentAttributeVideo",
7887
7929
  [
7888
- 0x17399FAD,
7930
+ 0x43C57C48,
7889
7931
  [
7890
7932
  ["flags", flags, "#"],
7891
7933
  ["round_message", "true", "flags.0?true"],
@@ -7896,6 +7938,7 @@ const types = new Map([
7896
7938
  ["h", "number", "int"],
7897
7939
  ["preload_prefix_size", "number", "flags.2?int"],
7898
7940
  ["video_start_ts", "number", "flags.4?double"],
7941
+ ["video_codec", "string", "flags.5?string"],
7899
7942
  ],
7900
7943
  ],
7901
7944
  ],
@@ -8578,6 +8621,16 @@ const types = new Map([
8578
8621
  ],
8579
8622
  ],
8580
8623
  ],
8624
+ [
8625
+ "keyboardButtonCopy",
8626
+ [
8627
+ 0x75D2698E,
8628
+ [
8629
+ ["text", "string", "string"],
8630
+ ["copy_text", "string", "string"],
8631
+ ],
8632
+ ],
8633
+ ],
8581
8634
  [
8582
8635
  "keyboardButtonRow",
8583
8636
  [
@@ -10772,6 +10825,16 @@ const types = new Map([
10772
10825
  ],
10773
10826
  ],
10774
10827
  ],
10828
+ [
10829
+ "payments.paymentFormStarGift",
10830
+ [
10831
+ 0xB425CFE1,
10832
+ [
10833
+ ["form_id", "bigint", "long"],
10834
+ ["invoice", "Invoice", "Invoice"],
10835
+ ],
10836
+ ],
10837
+ ],
10775
10838
  [
10776
10839
  "payments.validatedRequestedInfo",
10777
10840
  [
@@ -14683,6 +14746,19 @@ const types = new Map([
14683
14746
  ],
14684
14747
  ],
14685
14748
  ],
14749
+ [
14750
+ "inputInvoiceStarGift",
14751
+ [
14752
+ 0x25D8C1D8,
14753
+ [
14754
+ ["flags", flags, "#"],
14755
+ ["hide_name", "true", "flags.0?true"],
14756
+ ["user_id", "InputUser", "InputUser"],
14757
+ ["gift_id", "bigint", "long"],
14758
+ ["message", "TextWithEntities", "flags.1?TextWithEntities"],
14759
+ ],
14760
+ ],
14761
+ ],
14686
14762
  [
14687
14763
  "payments.exportedInvoice",
14688
14764
  [
@@ -14745,13 +14821,14 @@ const types = new Map([
14745
14821
  [
14746
14822
  "inputStorePaymentPremiumGiftCode",
14747
14823
  [
14748
- 0xA3805F3F,
14824
+ 0xFB790393,
14749
14825
  [
14750
14826
  ["flags", flags, "#"],
14751
14827
  ["users", ["InputUser"], "Vector<InputUser>"],
14752
14828
  ["boost_peer", "InputPeer", "flags.0?InputPeer"],
14753
14829
  ["currency", "string", "string"],
14754
14830
  ["amount", "bigint", "long"],
14831
+ ["message", "TextWithEntities", "flags.1?TextWithEntities"],
14755
14832
  ],
14756
14833
  ],
14757
14834
  ],
@@ -17132,6 +17209,13 @@ const types = new Map([
17132
17209
  [],
17133
17210
  ],
17134
17211
  ],
17212
+ [
17213
+ "starsTransactionPeerAPI",
17214
+ [
17215
+ 0xF9677AAD,
17216
+ [],
17217
+ ],
17218
+ ],
17135
17219
  [
17136
17220
  "starsTopupOption",
17137
17221
  [
@@ -17149,7 +17233,7 @@ const types = new Map([
17149
17233
  [
17150
17234
  "starsTransaction",
17151
17235
  [
17152
- 0xEE7522D5,
17236
+ 0x35D4F276,
17153
17237
  [
17154
17238
  ["flags", flags, "#"],
17155
17239
  ["refund", "true", "flags.3?true"],
@@ -17171,6 +17255,8 @@ const types = new Map([
17171
17255
  ["extended_media", ["MessageMedia"], "flags.9?Vector<MessageMedia>"],
17172
17256
  ["subscription_period", "number", "flags.12?int"],
17173
17257
  ["giveaway_post_id", "number", "flags.13?int"],
17258
+ ["stargift", "StarGift", "flags.14?StarGift"],
17259
+ ["floodskip_number", "number", "flags.15?int"],
17174
17260
  ],
17175
17261
  ],
17176
17262
  ],
@@ -17397,6 +17483,110 @@ const types = new Map([
17397
17483
  ],
17398
17484
  ],
17399
17485
  ],
17486
+ [
17487
+ "starGift",
17488
+ [
17489
+ 0x49C577CD,
17490
+ [
17491
+ ["flags", flags, "#"],
17492
+ ["limited", "true", "flags.0?true"],
17493
+ ["sold_out", "true", "flags.1?true"],
17494
+ ["id", "bigint", "long"],
17495
+ ["sticker", "Document", "Document"],
17496
+ ["stars", "bigint", "long"],
17497
+ ["availability_remains", "number", "flags.0?int"],
17498
+ ["availability_total", "number", "flags.0?int"],
17499
+ ["convert_stars", "bigint", "long"],
17500
+ ["first_sale_date", "number", "flags.1?int"],
17501
+ ["last_sale_date", "number", "flags.1?int"],
17502
+ ],
17503
+ ],
17504
+ ],
17505
+ [
17506
+ "payments.starGiftsNotModified",
17507
+ [
17508
+ 0xA388A368,
17509
+ [],
17510
+ ],
17511
+ ],
17512
+ [
17513
+ "payments.starGifts",
17514
+ [
17515
+ 0x901689EA,
17516
+ [
17517
+ ["hash", "number", "int"],
17518
+ ["gifts", ["StarGift"], "Vector<StarGift>"],
17519
+ ],
17520
+ ],
17521
+ ],
17522
+ [
17523
+ "userStarGift",
17524
+ [
17525
+ 0xEEA49A6E,
17526
+ [
17527
+ ["flags", flags, "#"],
17528
+ ["name_hidden", "true", "flags.0?true"],
17529
+ ["unsaved", "true", "flags.5?true"],
17530
+ ["from_id", "bigint", "flags.1?long"],
17531
+ ["date", "number", "int"],
17532
+ ["gift", "StarGift", "StarGift"],
17533
+ ["message", "TextWithEntities", "flags.2?TextWithEntities"],
17534
+ ["msg_id", "number", "flags.3?int"],
17535
+ ["convert_stars", "bigint", "flags.4?long"],
17536
+ ],
17537
+ ],
17538
+ ],
17539
+ [
17540
+ "payments.userStarGifts",
17541
+ [
17542
+ 0x6B65B517,
17543
+ [
17544
+ ["flags", flags, "#"],
17545
+ ["count", "number", "int"],
17546
+ ["gifts", ["UserStarGift"], "Vector<UserStarGift>"],
17547
+ ["next_offset", "string", "flags.0?string"],
17548
+ ["users", ["User"], "Vector<User>"],
17549
+ ],
17550
+ ],
17551
+ ],
17552
+ [
17553
+ "messageReportOption",
17554
+ [
17555
+ 0x7903E3D9,
17556
+ [
17557
+ ["text", "string", "string"],
17558
+ ["option", Uint8Array, "bytes"],
17559
+ ],
17560
+ ],
17561
+ ],
17562
+ [
17563
+ "reportResultChooseOption",
17564
+ [
17565
+ 0xF0E4E0B6,
17566
+ [
17567
+ ["title", "string", "string"],
17568
+ ["options", ["MessageReportOption"], "Vector<MessageReportOption>"],
17569
+ ],
17570
+ ],
17571
+ ],
17572
+ [
17573
+ "reportResultAddComment",
17574
+ [
17575
+ 0x6F09AC31,
17576
+ [
17577
+ ["flags", flags, "#"],
17578
+ ["optional", "true", "flags.0?true"],
17579
+ ["option", Uint8Array, "bytes"],
17580
+ ],
17581
+ ],
17582
+ ],
17583
+ [
17584
+ "reportResultReported",
17585
+ [
17586
+ 0x8DB33C4B,
17587
+ [],
17588
+ ],
17589
+ ],
17400
17590
  [
17401
17591
  "req_pq_multi",
17402
17592
  [
@@ -19368,6 +19558,7 @@ const types = new Map([
19368
19558
  ["noforwards", "true", "flags.14?true"],
19369
19559
  ["update_stickersets_order", "true", "flags.15?true"],
19370
19560
  ["invert_media", "true", "flags.16?true"],
19561
+ ["allow_paid_floodskip", "true", "flags.19?true"],
19371
19562
  ["peer", "InputPeer", "InputPeer"],
19372
19563
  ["reply_to", "InputReplyTo", "flags.0?InputReplyTo"],
19373
19564
  ["message", "string", "string"],
@@ -19393,6 +19584,7 @@ const types = new Map([
19393
19584
  ["noforwards", "true", "flags.14?true"],
19394
19585
  ["update_stickersets_order", "true", "flags.15?true"],
19395
19586
  ["invert_media", "true", "flags.16?true"],
19587
+ ["allow_paid_floodskip", "true", "flags.19?true"],
19396
19588
  ["peer", "InputPeer", "InputPeer"],
19397
19589
  ["reply_to", "InputReplyTo", "flags.0?InputReplyTo"],
19398
19590
  ["media", "InputMedia", "InputMedia"],
@@ -19419,6 +19611,7 @@ const types = new Map([
19419
19611
  ["drop_author", "true", "flags.11?true"],
19420
19612
  ["drop_media_captions", "true", "flags.12?true"],
19421
19613
  ["noforwards", "true", "flags.14?true"],
19614
+ ["allow_paid_floodskip", "true", "flags.19?true"],
19422
19615
  ["from_peer", "InputPeer", "InputPeer"],
19423
19616
  ["id", ["number"], "Vector<int>"],
19424
19617
  ["random_id", ["bigint"], "Vector<long>"],
@@ -19451,11 +19644,11 @@ const types = new Map([
19451
19644
  [
19452
19645
  "messages.report",
19453
19646
  [
19454
- 0x8953AB4E,
19647
+ 0xFC78AF9B,
19455
19648
  [
19456
19649
  ["peer", "InputPeer", "InputPeer"],
19457
19650
  ["id", ["number"], "Vector<int>"],
19458
- ["reason", "ReportReason", "ReportReason"],
19651
+ ["option", Uint8Array, "bytes"],
19459
19652
  ["message", "string", "string"],
19460
19653
  ],
19461
19654
  ],
@@ -20317,6 +20510,7 @@ const types = new Map([
20317
20510
  ["noforwards", "true", "flags.14?true"],
20318
20511
  ["update_stickersets_order", "true", "flags.15?true"],
20319
20512
  ["invert_media", "true", "flags.16?true"],
20513
+ ["allow_paid_floodskip", "true", "flags.19?true"],
20320
20514
  ["peer", "InputPeer", "InputPeer"],
20321
20515
  ["reply_to", "InputReplyTo", "flags.0?InputReplyTo"],
20322
20516
  ["multi_media", ["InputSingleMedia"], "Vector<InputSingleMedia>"],
@@ -21710,6 +21904,49 @@ const types = new Map([
21710
21904
  [],
21711
21905
  ],
21712
21906
  ],
21907
+ [
21908
+ "messages.viewSponsoredMessage",
21909
+ [
21910
+ 0x673AD8F1,
21911
+ [
21912
+ ["peer", "InputPeer", "InputPeer"],
21913
+ ["random_id", Uint8Array, "bytes"],
21914
+ ],
21915
+ ],
21916
+ ],
21917
+ [
21918
+ "messages.clickSponsoredMessage",
21919
+ [
21920
+ 0x0F093465,
21921
+ [
21922
+ ["flags", flags, "#"],
21923
+ ["media", "true", "flags.0?true"],
21924
+ ["fullscreen", "true", "flags.1?true"],
21925
+ ["peer", "InputPeer", "InputPeer"],
21926
+ ["random_id", Uint8Array, "bytes"],
21927
+ ],
21928
+ ],
21929
+ ],
21930
+ [
21931
+ "messages.reportSponsoredMessage",
21932
+ [
21933
+ 0x1AF3DBB8,
21934
+ [
21935
+ ["peer", "InputPeer", "InputPeer"],
21936
+ ["random_id", Uint8Array, "bytes"],
21937
+ ["option", Uint8Array, "bytes"],
21938
+ ],
21939
+ ],
21940
+ ],
21941
+ [
21942
+ "messages.getSponsoredMessages",
21943
+ [
21944
+ 0x9BD2F439,
21945
+ [
21946
+ ["peer", "InputPeer", "InputPeer"],
21947
+ ],
21948
+ ],
21949
+ ],
21713
21950
  [
21714
21951
  "updates.getState",
21715
21952
  [
@@ -22480,25 +22717,6 @@ const types = new Map([
22480
22717
  ],
22481
22718
  ],
22482
22719
  ],
22483
- [
22484
- "channels.viewSponsoredMessage",
22485
- [
22486
- 0xBEAEDB94,
22487
- [
22488
- ["channel", "InputChannel", "InputChannel"],
22489
- ["random_id", Uint8Array, "bytes"],
22490
- ],
22491
- ],
22492
- ],
22493
- [
22494
- "channels.getSponsoredMessages",
22495
- [
22496
- 0xEC210FBF,
22497
- [
22498
- ["channel", "InputChannel", "InputChannel"],
22499
- ],
22500
- ],
22501
- ],
22502
22720
  [
22503
22721
  "channels.getSendAs",
22504
22722
  [
@@ -22696,16 +22914,6 @@ const types = new Map([
22696
22914
  ],
22697
22915
  ],
22698
22916
  ],
22699
- [
22700
- "channels.clickSponsoredMessage",
22701
- [
22702
- 0x18AFBC93,
22703
- [
22704
- ["channel", "InputChannel", "InputChannel"],
22705
- ["random_id", Uint8Array, "bytes"],
22706
- ],
22707
- ],
22708
- ],
22709
22917
  [
22710
22918
  "channels.updateColor",
22711
22919
  [
@@ -22769,17 +22977,6 @@ const types = new Map([
22769
22977
  ],
22770
22978
  ],
22771
22979
  ],
22772
- [
22773
- "channels.reportSponsoredMessage",
22774
- [
22775
- 0xAF8FF6B9,
22776
- [
22777
- ["channel", "InputChannel", "InputChannel"],
22778
- ["random_id", Uint8Array, "bytes"],
22779
- ["option", Uint8Array, "bytes"],
22780
- ],
22781
- ],
22782
- ],
22783
22980
  [
22784
22981
  "channels.restrictSponsoredMessages",
22785
22982
  [
@@ -23237,9 +23434,8 @@ const types = new Map([
23237
23434
  [
23238
23435
  "payments.sendStarsForm",
23239
23436
  [
23240
- 0x02BB731D,
23437
+ 0x7998C914,
23241
23438
  [
23242
- ["flags", flags, "#"],
23243
23439
  ["form_id", "bigint", "long"],
23244
23440
  ["invoice", "InputInvoice", "InputInvoice"],
23245
23441
  ],
@@ -23347,6 +23543,48 @@ const types = new Map([
23347
23543
  [],
23348
23544
  ],
23349
23545
  ],
23546
+ [
23547
+ "payments.getStarGifts",
23548
+ [
23549
+ 0xC4563590,
23550
+ [
23551
+ ["hash", "number", "int"],
23552
+ ],
23553
+ ],
23554
+ ],
23555
+ [
23556
+ "payments.getUserStarGifts",
23557
+ [
23558
+ 0x5E72C7E1,
23559
+ [
23560
+ ["user_id", "InputUser", "InputUser"],
23561
+ ["offset", "string", "string"],
23562
+ ["limit", "number", "int"],
23563
+ ],
23564
+ ],
23565
+ ],
23566
+ [
23567
+ "payments.saveStarGift",
23568
+ [
23569
+ 0x87ACF08E,
23570
+ [
23571
+ ["flags", flags, "#"],
23572
+ ["unsave", "true", "flags.0?true"],
23573
+ ["user_id", "InputUser", "InputUser"],
23574
+ ["msg_id", "number", "int"],
23575
+ ],
23576
+ ],
23577
+ ],
23578
+ [
23579
+ "payments.convertStarGift",
23580
+ [
23581
+ 0x0421E027,
23582
+ [
23583
+ ["user_id", "InputUser", "InputUser"],
23584
+ ["msg_id", "number", "int"],
23585
+ ],
23586
+ ],
23587
+ ],
23350
23588
  [
23351
23589
  "stickers.createStickerSet",
23352
23590
  [
@@ -23951,20 +24189,20 @@ const types = new Map([
23951
24189
  [
23952
24190
  "stats.getBroadcastRevenueStats",
23953
24191
  [
23954
- 0x75DFB671,
24192
+ 0xF788EE19,
23955
24193
  [
23956
24194
  ["flags", flags, "#"],
23957
24195
  ["dark", "true", "flags.0?true"],
23958
- ["channel", "InputChannel", "InputChannel"],
24196
+ ["peer", "InputPeer", "InputPeer"],
23959
24197
  ],
23960
24198
  ],
23961
24199
  ],
23962
24200
  [
23963
24201
  "stats.getBroadcastRevenueWithdrawalUrl",
23964
24202
  [
23965
- 0x2A65EF73,
24203
+ 0x9DF4FAAD,
23966
24204
  [
23967
- ["channel", "InputChannel", "InputChannel"],
24205
+ ["peer", "InputPeer", "InputPeer"],
23968
24206
  ["password", "InputCheckPasswordSRP", "InputCheckPasswordSRP"],
23969
24207
  ],
23970
24208
  ],
@@ -23972,9 +24210,9 @@ const types = new Map([
23972
24210
  [
23973
24211
  "stats.getBroadcastRevenueTransactions",
23974
24212
  [
23975
- 0x0069280F,
24213
+ 0x70990B6D,
23976
24214
  [
23977
- ["channel", "InputChannel", "InputChannel"],
24215
+ ["peer", "InputPeer", "InputPeer"],
23978
24216
  ["offset", "number", "int"],
23979
24217
  ["limit", "number", "int"],
23980
24218
  ],
@@ -24270,11 +24508,11 @@ const types = new Map([
24270
24508
  [
24271
24509
  "stories.report",
24272
24510
  [
24273
- 0x1923FA8C,
24511
+ 0x19D8EB45,
24274
24512
  [
24275
24513
  ["peer", "InputPeer", "InputPeer"],
24276
24514
  ["id", ["number"], "Vector<int>"],
24277
- ["reason", "ReportReason", "ReportReason"],
24515
+ ["option", Uint8Array, "bytes"],
24278
24516
  ["message", "string", "string"],
24279
24517
  ],
24280
24518
  ],
@@ -24373,11 +24611,12 @@ const types = new Map([
24373
24611
  [
24374
24612
  "stories.searchPosts",
24375
24613
  [
24376
- 0x6CEA116A,
24614
+ 0xD1810907,
24377
24615
  [
24378
24616
  ["flags", flags, "#"],
24379
24617
  ["hashtag", "string", "flags.0?string"],
24380
24618
  ["area", "MediaArea", "flags.1?MediaArea"],
24619
+ ["peer", "InputPeer", "flags.2?InputPeer"],
24381
24620
  ["offset", "string", "string"],
24382
24621
  ["limit", "number", "int"],
24383
24622
  ],