@mtkruto/node 0.13.0 → 0.15.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 (815) hide show
  1. package/esm/0_deps.d.ts +1 -1
  2. package/esm/0_deps.js +1 -1
  3. package/esm/0_errors.d.ts +1 -1
  4. package/esm/0_errors.js +1 -1
  5. package/esm/1_utilities.d.ts +1 -1
  6. package/esm/1_utilities.js +1 -1
  7. package/esm/2_connection.d.ts +1 -1
  8. package/esm/2_connection.js +1 -1
  9. package/esm/2_storage.d.ts +1 -1
  10. package/esm/2_storage.js +1 -1
  11. package/esm/2_tl.d.ts +1 -1
  12. package/esm/2_tl.js +1 -1
  13. package/esm/3_errors.d.ts +1 -1
  14. package/esm/3_errors.js +1 -1
  15. package/esm/3_transport.d.ts +1 -1
  16. package/esm/3_transport.js +1 -1
  17. package/esm/3_types.d.ts +5 -1
  18. package/esm/3_types.d.ts.map +1 -1
  19. package/esm/3_types.js +5 -1
  20. package/esm/4_constants.d.ts +1 -1
  21. package/esm/4_constants.js +2 -2
  22. package/esm/4_errors.d.ts +1 -1
  23. package/esm/4_errors.js +1 -1
  24. package/esm/5_client.d.ts +1 -1
  25. package/esm/5_client.js +1 -1
  26. package/esm/client/0_client_abstract.js +1 -1
  27. package/esm/client/0_filters.d.ts +1 -1
  28. package/esm/client/0_filters.js +1 -1
  29. package/esm/client/0_html.d.ts +1 -1
  30. package/esm/client/0_html.js +1 -1
  31. package/esm/client/0_markdown.d.ts +1 -1
  32. package/esm/client/0_markdown.js +1 -1
  33. package/esm/client/0_message.d.ts +1 -1
  34. package/esm/client/0_message.js +1 -1
  35. package/esm/client/0_params.d.ts +31 -9
  36. package/esm/client/0_params.d.ts.map +1 -1
  37. package/esm/client/0_params.js +1 -1
  38. package/esm/client/0_password.js +1 -1
  39. package/esm/client/0_storage_operations.d.ts +1 -1
  40. package/esm/client/0_storage_operations.js +1 -1
  41. package/esm/client/0_update_processor.d.ts +7 -0
  42. package/esm/client/0_update_processor.d.ts.map +1 -0
  43. package/esm/client/0_update_processor.js +1 -0
  44. package/esm/client/0_utilities.d.ts +3 -3
  45. package/esm/client/0_utilities.d.ts.map +1 -1
  46. package/esm/client/0_utilities.js +1 -1
  47. package/esm/client/1_client_encrypted.d.ts +1 -1
  48. package/esm/client/1_client_encrypted.js +1 -1
  49. package/esm/client/1_client_plain.d.ts +1 -1
  50. package/esm/client/1_client_plain.js +1 -1
  51. package/esm/client/1_composer.d.ts +1 -1
  52. package/esm/client/1_composer.js +1 -1
  53. package/esm/client/1_types.d.ts +1 -1
  54. package/esm/client/1_types.js +1 -1
  55. package/esm/client/2_account_manager.d.ts +1 -1
  56. package/esm/client/2_account_manager.js +1 -1
  57. package/esm/client/2_bot_info_manager.d.ts +1 -1
  58. package/esm/client/2_bot_info_manager.js +1 -1
  59. package/esm/client/2_business_connection_manager.d.ts +4 -3
  60. package/esm/client/2_business_connection_manager.d.ts.map +1 -1
  61. package/esm/client/2_business_connection_manager.js +2 -2
  62. package/esm/client/2_file_manager.js +1 -1
  63. package/esm/client/2_gift_manager.d.ts +29 -0
  64. package/esm/client/2_gift_manager.d.ts.map +1 -0
  65. package/esm/client/2_gift_manager.js +62 -0
  66. package/esm/client/2_network_statistics_manager.d.ts +1 -1
  67. package/esm/client/2_network_statistics_manager.js +1 -1
  68. package/esm/client/2_payment_manager.d.ts +4 -3
  69. package/esm/client/2_payment_manager.d.ts.map +1 -1
  70. package/esm/client/2_payment_manager.js +2 -2
  71. package/esm/client/2_reaction_manager.d.ts +4 -3
  72. package/esm/client/2_reaction_manager.d.ts.map +1 -1
  73. package/esm/client/2_reaction_manager.js +2 -2
  74. package/esm/client/2_translations_manager.d.ts +3 -2
  75. package/esm/client/2_translations_manager.d.ts.map +1 -1
  76. package/esm/client/2_translations_manager.js +1 -1
  77. package/esm/client/2_update_manager.d.ts +1 -1
  78. package/esm/client/2_update_manager.js +1 -1
  79. package/esm/client/3_message_manager.d.ts +10 -26
  80. package/esm/client/3_message_manager.d.ts.map +1 -1
  81. package/esm/client/3_message_manager.js +64 -241
  82. package/esm/client/3_video_chat_manager.d.ts +5 -4
  83. package/esm/client/3_video_chat_manager.d.ts.map +1 -1
  84. package/esm/client/3_video_chat_manager.js +5 -2
  85. package/esm/client/4_callback_query_manager.d.ts +4 -3
  86. package/esm/client/4_callback_query_manager.d.ts.map +1 -1
  87. package/esm/client/4_callback_query_manager.js +2 -2
  88. package/esm/client/4_chat_list_manager.d.ts +5 -4
  89. package/esm/client/4_chat_list_manager.d.ts.map +1 -1
  90. package/esm/client/4_chat_list_manager.js +3 -2
  91. package/esm/client/4_chat_manager.d.ts +61 -0
  92. package/esm/client/4_chat_manager.d.ts.map +1 -0
  93. package/esm/client/4_chat_manager.js +293 -0
  94. package/esm/client/4_inline_query_manager.d.ts +4 -3
  95. package/esm/client/4_inline_query_manager.d.ts.map +1 -1
  96. package/esm/client/4_inline_query_manager.js +2 -2
  97. package/esm/client/4_poll_manager.d.ts +4 -3
  98. package/esm/client/4_poll_manager.d.ts.map +1 -1
  99. package/esm/client/4_poll_manager.js +2 -2
  100. package/esm/client/4_story_manager.d.ts +4 -3
  101. package/esm/client/4_story_manager.d.ts.map +1 -1
  102. package/esm/client/4_story_manager.js +2 -2
  103. package/esm/client/5_client.d.ts +44 -7
  104. package/esm/client/5_client.d.ts.map +1 -1
  105. package/esm/client/5_client.js +182 -73
  106. package/esm/connection/0_connection.d.ts +1 -1
  107. package/esm/connection/0_connection.js +1 -1
  108. package/esm/connection/1_connection_tcp.node.d.ts +1 -1
  109. package/esm/connection/1_connection_tcp.node.js +1 -1
  110. package/esm/connection/1_connection_web_socket.js +1 -1
  111. package/esm/mod.d.ts +1 -1
  112. package/esm/mod.js +1 -1
  113. package/esm/storage/0_storage.d.ts +1 -1
  114. package/esm/storage/0_storage.js +1 -1
  115. package/esm/storage/1_utilities.d.ts +1 -1
  116. package/esm/storage/1_utilities.js +1 -1
  117. package/esm/storage/2_storage_indexed_db.d.ts +1 -1
  118. package/esm/storage/2_storage_indexed_db.js +1 -1
  119. package/esm/storage/2_storage_local_storage.node.d.ts +1 -1
  120. package/esm/storage/2_storage_local_storage.node.js +1 -1
  121. package/esm/storage/2_storage_memory.d.ts +1 -1
  122. package/esm/storage/2_storage_memory.js +1 -1
  123. package/esm/storage/2_storage_session_storage.d.ts +1 -1
  124. package/esm/storage/2_storage_session_storage.js +1 -1
  125. package/esm/tl/0_api.d.ts +218 -79
  126. package/esm/tl/0_api.d.ts.map +1 -1
  127. package/esm/tl/0_api.js +362 -159
  128. package/esm/tl/0_tl_raw_reader.d.ts +1 -1
  129. package/esm/tl/0_tl_raw_reader.js +1 -1
  130. package/esm/tl/0_tl_raw_writer.d.ts +1 -1
  131. package/esm/tl/0_tl_raw_writer.js +1 -1
  132. package/esm/tl/1_utilities.d.ts +1 -1
  133. package/esm/tl/1_utilities.js +1 -1
  134. package/esm/tl/2_deserialize.d.ts +1 -1
  135. package/esm/tl/2_deserialize.js +1 -1
  136. package/esm/tl/2_serialize.d.ts +1 -1
  137. package/esm/tl/2_serialize.js +1 -1
  138. package/esm/tl/3_tl_reader.d.ts +1 -1
  139. package/esm/tl/3_tl_reader.js +1 -1
  140. package/esm/tl/3_utilities.d.ts +1 -1
  141. package/esm/tl/3_utilities.js +1 -1
  142. package/esm/tl/4_rpc_result.d.ts +1 -1
  143. package/esm/tl/4_rpc_result.js +1 -1
  144. package/esm/tl/4_tl_writer.d.ts +1 -1
  145. package/esm/tl/4_tl_writer.js +1 -1
  146. package/esm/tl/5_message.d.ts +1 -1
  147. package/esm/tl/5_message.js +1 -1
  148. package/esm/transport/0_obfuscation.js +1 -1
  149. package/esm/transport/0_transport.d.ts +1 -1
  150. package/esm/transport/0_transport.js +1 -1
  151. package/esm/transport/1_transport_abridged.d.ts +1 -1
  152. package/esm/transport/1_transport_abridged.js +1 -1
  153. package/esm/transport/1_transport_intermediate.d.ts +1 -1
  154. package/esm/transport/1_transport_intermediate.js +1 -1
  155. package/esm/transport/2_transport_provider.d.ts +1 -1
  156. package/esm/transport/2_transport_provider.js +1 -1
  157. package/esm/transport/3_transport_provider_tcp.d.ts +1 -1
  158. package/esm/transport/3_transport_provider_tcp.js +1 -1
  159. package/esm/transport/3_transport_provider_web_socket.d.ts +1 -1
  160. package/esm/transport/3_transport_provider_web_socket.js +1 -1
  161. package/esm/types/0_authorization_state.d.ts +1 -1
  162. package/esm/types/0_authorization_state.js +1 -1
  163. package/esm/types/0_birthday.d.ts +1 -1
  164. package/esm/types/0_birthday.js +1 -1
  165. package/esm/types/0_bot_command.d.ts +1 -1
  166. package/esm/types/0_bot_command.js +1 -1
  167. package/esm/types/0_callback_query_answer.d.ts +1 -1
  168. package/esm/types/0_callback_query_answer.js +1 -1
  169. package/esm/types/0_callback_query_question.d.ts +1 -1
  170. package/esm/types/0_callback_query_question.js +1 -1
  171. package/esm/types/0_chat_action.d.ts +1 -1
  172. package/esm/types/0_chat_action.js +1 -1
  173. package/esm/types/0_chat_administrator_rights.d.ts +1 -1
  174. package/esm/types/0_chat_administrator_rights.js +1 -1
  175. package/esm/types/0_chat_member_rights.d.ts +1 -1
  176. package/esm/types/0_chat_member_rights.js +1 -1
  177. package/esm/types/0_chat_photo.d.ts +1 -1
  178. package/esm/types/0_chat_photo.js +1 -1
  179. package/esm/types/0_connection_state.d.ts +1 -1
  180. package/esm/types/0_connection_state.js +1 -1
  181. package/esm/types/0_contact.d.ts +1 -1
  182. package/esm/types/0_contact.js +1 -1
  183. package/esm/types/0_dice.d.ts +1 -1
  184. package/esm/types/0_dice.js +1 -1
  185. package/esm/types/0_failed_invitation.d.ts +1 -1
  186. package/esm/types/0_failed_invitation.js +1 -1
  187. package/esm/types/0_file_source.d.ts +1 -1
  188. package/esm/types/0_file_source.js +1 -1
  189. package/esm/types/0_giveaway_parameters.d.ts +1 -1
  190. package/esm/types/0_giveaway_parameters.js +1 -1
  191. package/esm/types/0_id.d.ts +1 -1
  192. package/esm/types/0_id.js +1 -1
  193. package/esm/types/0_invoice.d.ts +1 -1
  194. package/esm/types/0_invoice.js +1 -1
  195. package/esm/types/0_keyboard_button_poll_type.d.ts +1 -1
  196. package/esm/types/0_keyboard_button_poll_type.js +1 -1
  197. package/esm/types/0_link_preview.d.ts +1 -1
  198. package/esm/types/0_link_preview.js +1 -1
  199. package/esm/types/0_live_stream_channel.d.ts +1 -1
  200. package/esm/types/0_live_stream_channel.js +1 -1
  201. package/esm/types/0_location.d.ts +1 -1
  202. package/esm/types/0_location.js +1 -1
  203. package/esm/types/0_login_url.d.ts +1 -1
  204. package/esm/types/0_login_url.js +1 -1
  205. package/esm/types/0_mask_position.d.ts +1 -1
  206. package/esm/types/0_mask_position.js +1 -1
  207. package/esm/types/0_message_entity.d.ts +1 -1
  208. package/esm/types/0_message_entity.js +1 -1
  209. package/esm/types/0_message_reference.d.ts +1 -1
  210. package/esm/types/0_message_reference.js +1 -1
  211. package/esm/types/0_message_search_filter.d.ts +1 -1
  212. package/esm/types/0_message_search_filter.js +1 -1
  213. package/esm/types/0_mini_app_info.d.ts +1 -1
  214. package/esm/types/0_mini_app_info.js +1 -1
  215. package/esm/types/0_network_statistics_entry.d.ts +1 -1
  216. package/esm/types/0_network_statistics_entry.js +1 -1
  217. package/esm/types/0_opening_hours.d.ts +1 -1
  218. package/esm/types/0_opening_hours.js +1 -1
  219. package/esm/types/0_parse_mode.d.ts +1 -1
  220. package/esm/types/0_parse_mode.js +1 -1
  221. package/esm/types/0_price_tag.d.ts +1 -1
  222. package/esm/types/0_price_tag.js +1 -1
  223. package/esm/types/0_reaction.d.ts +1 -1
  224. package/esm/types/0_reaction.js +1 -1
  225. package/esm/types/0_refunded_payment.d.ts +1 -1
  226. package/esm/types/0_refunded_payment.js +1 -1
  227. package/esm/types/0_restriction_reason.d.ts +1 -1
  228. package/esm/types/0_restriction_reason.js +1 -1
  229. package/esm/types/0_self_destruct_option.d.ts +1 -1
  230. package/esm/types/0_self_destruct_option.js +1 -1
  231. package/esm/types/0_shipping_address.d.ts +1 -1
  232. package/esm/types/0_shipping_address.js +1 -1
  233. package/esm/types/0_story_reference.d.ts +1 -1
  234. package/esm/types/0_story_reference.js +1 -1
  235. package/esm/types/0_switch_inline_query_chosen_chats.d.ts +1 -1
  236. package/esm/types/0_switch_inline_query_chosen_chats.js +1 -1
  237. package/esm/types/0_thumbnail.d.ts +1 -1
  238. package/esm/types/0_thumbnail.js +1 -1
  239. package/esm/types/0_video_chat.d.ts +1 -1
  240. package/esm/types/0_video_chat.js +1 -1
  241. package/esm/types/0_voice.d.ts +1 -1
  242. package/esm/types/0_voice.js +1 -1
  243. package/esm/types/1_animation.d.ts +1 -1
  244. package/esm/types/1_animation.js +1 -1
  245. package/esm/types/1_audio.d.ts +1 -1
  246. package/esm/types/1_audio.js +1 -1
  247. package/esm/types/1_bot_command_scope.d.ts +1 -1
  248. package/esm/types/1_bot_command_scope.js +1 -1
  249. package/esm/types/1_chat_p.d.ts +1 -1
  250. package/esm/types/1_chat_p.js +1 -1
  251. package/esm/types/1_document.d.ts +1 -1
  252. package/esm/types/1_document.js +1 -1
  253. package/esm/types/1_giveaway.d.ts +1 -1
  254. package/esm/types/1_giveaway.js +1 -1
  255. package/esm/types/1_inline_query_result_button.d.ts +1 -1
  256. package/esm/types/1_inline_query_result_button.js +1 -1
  257. package/esm/types/1_input_media.d.ts +1 -1
  258. package/esm/types/1_input_media.js +1 -1
  259. package/esm/types/1_input_story_content.d.ts +1 -1
  260. package/esm/types/1_input_story_content.js +1 -1
  261. package/esm/types/1_keyboard_button.d.ts +1 -1
  262. package/esm/types/1_keyboard_button.js +1 -1
  263. package/esm/types/1_message_content.d.ts +2 -2
  264. package/esm/types/1_message_content.d.ts.map +1 -1
  265. package/esm/types/1_message_content.js +1 -1
  266. package/esm/types/1_message_reaction.d.ts +1 -1
  267. package/esm/types/1_message_reaction.js +1 -1
  268. package/esm/types/1_network_statistics.d.ts +1 -1
  269. package/esm/types/1_network_statistics.js +1 -1
  270. package/esm/types/1_order_info.d.ts +1 -1
  271. package/esm/types/1_order_info.js +1 -1
  272. package/esm/types/1_photo.d.ts +1 -1
  273. package/esm/types/1_photo.js +1 -1
  274. package/esm/types/1_poll_option.d.ts +1 -1
  275. package/esm/types/1_poll_option.js +1 -1
  276. package/esm/types/1_reaction_count.d.ts +1 -1
  277. package/esm/types/1_reaction_count.js +1 -1
  278. package/esm/types/1_reply_quote.d.ts +1 -1
  279. package/esm/types/1_reply_quote.js +1 -1
  280. package/esm/types/1_sticker.d.ts +2 -1
  281. package/esm/types/1_sticker.d.ts.map +1 -1
  282. package/esm/types/1_sticker.js +7 -3
  283. package/esm/types/1_story_privacy.d.ts +1 -1
  284. package/esm/types/1_story_privacy.js +1 -1
  285. package/esm/types/1_story_reaction.d.ts +1 -1
  286. package/esm/types/1_story_reaction.js +1 -1
  287. package/esm/types/1_user.d.ts +1 -1
  288. package/esm/types/1_user.js +1 -1
  289. package/esm/types/1_venue.d.ts +1 -1
  290. package/esm/types/1_venue.js +1 -1
  291. package/esm/types/1_video.d.ts +1 -1
  292. package/esm/types/1_video.js +1 -1
  293. package/esm/types/1_video_note.d.ts +1 -1
  294. package/esm/types/1_video_note.js +1 -1
  295. package/esm/types/2_business_connection.d.ts +1 -1
  296. package/esm/types/2_business_connection.js +1 -1
  297. package/esm/types/2_chat.d.ts +1 -1
  298. package/esm/types/2_chat.js +1 -1
  299. package/esm/types/2_chat_member.d.ts +1 -1
  300. package/esm/types/2_chat_member.js +1 -1
  301. package/esm/types/2_chosen_inline_result.d.ts +1 -1
  302. package/esm/types/2_chosen_inline_result.js +1 -1
  303. package/esm/types/2_forward_header.d.ts +1 -1
  304. package/esm/types/2_forward_header.js +1 -1
  305. package/esm/types/2_game.d.ts +1 -1
  306. package/esm/types/2_game.js +1 -1
  307. package/esm/types/2_gift_upgraded_component.d.ts +95 -0
  308. package/esm/types/2_gift_upgraded_component.d.ts.map +1 -0
  309. package/esm/types/2_gift_upgraded_component.js +88 -0
  310. package/esm/types/2_inactive_chat.d.ts +1 -1
  311. package/esm/types/2_inactive_chat.js +1 -1
  312. package/esm/types/2_inline_keyboard_button.d.ts +1 -1
  313. package/esm/types/2_inline_keyboard_button.js +1 -1
  314. package/esm/types/2_inline_query.d.ts +1 -1
  315. package/esm/types/2_inline_query.js +1 -1
  316. package/esm/types/2_invite_link.d.ts +1 -1
  317. package/esm/types/2_invite_link.js +1 -1
  318. package/esm/types/2_message_interactions.d.ts +1 -1
  319. package/esm/types/2_message_interactions.js +1 -1
  320. package/esm/types/2_message_reaction_count.d.ts +1 -1
  321. package/esm/types/2_message_reaction_count.js +1 -1
  322. package/esm/types/2_message_reactions.d.ts +1 -1
  323. package/esm/types/2_message_reactions.js +1 -1
  324. package/esm/types/2_poll.d.ts +1 -1
  325. package/esm/types/2_poll.js +1 -1
  326. package/esm/types/2_pre_checkout_query.d.ts +1 -1
  327. package/esm/types/2_pre_checkout_query.js +1 -1
  328. package/esm/types/2_reply_to.d.ts +1 -1
  329. package/esm/types/2_reply_to.js +1 -1
  330. package/esm/types/2_story_content.d.ts +1 -1
  331. package/esm/types/2_story_content.js +1 -1
  332. package/esm/types/2_story_interactions.d.ts +1 -1
  333. package/esm/types/2_story_interactions.js +1 -1
  334. package/esm/types/2_story_interactive_area.d.ts +1 -1
  335. package/esm/types/2_story_interactive_area.js +1 -1
  336. package/esm/types/2_successful_payment.d.ts +1 -1
  337. package/esm/types/2_successful_payment.js +1 -1
  338. package/esm/types/3_chat_member_updated.d.ts +1 -1
  339. package/esm/types/3_chat_member_updated.js +1 -1
  340. package/esm/types/3_gift.d.ts +82 -0
  341. package/esm/types/3_gift.d.ts.map +1 -0
  342. package/esm/types/3_gift.js +88 -0
  343. package/esm/types/3_join_request.d.ts +1 -1
  344. package/esm/types/3_join_request.js +1 -1
  345. package/esm/types/3_reply_markup.d.ts +1 -1
  346. package/esm/types/3_reply_markup.js +1 -1
  347. package/esm/types/3_story.d.ts +1 -1
  348. package/esm/types/3_story.js +1 -1
  349. package/esm/types/4_inline_query_result.d.ts +1 -1
  350. package/esm/types/4_inline_query_result.js +1 -1
  351. package/esm/types/4_message.d.ts +2 -1
  352. package/esm/types/4_message.d.ts.map +1 -1
  353. package/esm/types/4_message.js +9 -3
  354. package/esm/types/4_user_gift.d.ts +44 -0
  355. package/esm/types/4_user_gift.d.ts.map +1 -0
  356. package/esm/types/4_user_gift.js +43 -0
  357. package/esm/types/5_callback_query.d.ts +1 -1
  358. package/esm/types/5_callback_query.js +1 -1
  359. package/esm/types/5_chat_list_item.d.ts +1 -1
  360. package/esm/types/5_chat_list_item.js +1 -1
  361. package/esm/types/5_inline_query_answer.d.ts +1 -1
  362. package/esm/types/5_inline_query_answer.js +1 -1
  363. package/esm/types/5_user_gifts.d.ts +32 -0
  364. package/esm/types/5_user_gifts.d.ts.map +1 -0
  365. package/esm/types/5_user_gifts.js +29 -0
  366. package/esm/types/6_update.d.ts +1 -1
  367. package/esm/types/6_update.js +1 -1
  368. package/esm/types/_file_id.d.ts +1 -1
  369. package/esm/types/_file_id.js +1 -1
  370. package/esm/types/_getters.d.ts +1 -1
  371. package/esm/types/_getters.js +1 -1
  372. package/esm/utilities/0_bigint.js +1 -1
  373. package/esm/utilities/0_buffer.d.ts +1 -1
  374. package/esm/utilities/0_buffer.js +1 -1
  375. package/esm/utilities/0_cache_map.d.ts +1 -1
  376. package/esm/utilities/0_cache_map.js +1 -1
  377. package/esm/utilities/0_color.d.ts +1 -1
  378. package/esm/utilities/0_color.js +1 -1
  379. package/esm/utilities/0_env.js +1 -1
  380. package/esm/utilities/0_gunzip.d.ts +1 -1
  381. package/esm/utilities/0_gunzip.js +1 -1
  382. package/esm/utilities/0_hash.js +1 -1
  383. package/esm/utilities/0_misc.d.ts +1 -1
  384. package/esm/utilities/0_misc.js +1 -1
  385. package/esm/utilities/0_mutex.d.ts +1 -1
  386. package/esm/utilities/0_mutex.js +1 -1
  387. package/esm/utilities/0_object.d.ts +1 -1
  388. package/esm/utilities/0_object.js +1 -1
  389. package/esm/utilities/0_part_stream.d.ts +1 -1
  390. package/esm/utilities/0_part_stream.js +1 -1
  391. package/esm/utilities/0_rle.d.ts +1 -1
  392. package/esm/utilities/0_rle.js +1 -1
  393. package/esm/utilities/0_types.d.ts +1 -1
  394. package/esm/utilities/0_types.js +1 -1
  395. package/esm/utilities/0_units.d.ts +1 -1
  396. package/esm/utilities/0_units.js +1 -1
  397. package/esm/utilities/1_auth.js +1 -1
  398. package/esm/utilities/1_base64.d.ts +1 -1
  399. package/esm/utilities/1_base64.js +1 -1
  400. package/esm/utilities/1_crypto.d.ts +1 -1
  401. package/esm/utilities/1_crypto.js +1 -1
  402. package/esm/utilities/1_logger.d.ts +1 -1
  403. package/esm/utilities/1_logger.js +1 -1
  404. package/esm/utilities/1_math.d.ts +1 -1
  405. package/esm/utilities/1_math.js +1 -1
  406. package/esm/utilities/2_queue.d.ts +1 -1
  407. package/esm/utilities/2_queue.js +1 -1
  408. package/package.json +1 -1
  409. package/script/0_deps.d.ts +1 -1
  410. package/script/0_deps.js +1 -1
  411. package/script/0_errors.d.ts +1 -1
  412. package/script/0_errors.js +1 -1
  413. package/script/1_utilities.d.ts +1 -1
  414. package/script/1_utilities.js +1 -1
  415. package/script/2_connection.d.ts +1 -1
  416. package/script/2_connection.js +1 -1
  417. package/script/2_storage.d.ts +1 -1
  418. package/script/2_storage.js +1 -1
  419. package/script/2_tl.d.ts +1 -1
  420. package/script/2_tl.js +1 -1
  421. package/script/3_errors.d.ts +1 -1
  422. package/script/3_errors.js +1 -1
  423. package/script/3_transport.d.ts +1 -1
  424. package/script/3_transport.js +1 -1
  425. package/script/3_types.d.ts +5 -1
  426. package/script/3_types.d.ts.map +1 -1
  427. package/script/3_types.js +5 -1
  428. package/script/4_constants.d.ts +1 -1
  429. package/script/4_constants.js +2 -2
  430. package/script/4_errors.d.ts +1 -1
  431. package/script/4_errors.js +1 -1
  432. package/script/5_client.d.ts +1 -1
  433. package/script/5_client.js +1 -1
  434. package/script/client/0_client_abstract.js +1 -1
  435. package/script/client/0_filters.d.ts +1 -1
  436. package/script/client/0_filters.js +1 -1
  437. package/script/client/0_html.d.ts +1 -1
  438. package/script/client/0_html.js +1 -1
  439. package/script/client/0_markdown.d.ts +1 -1
  440. package/script/client/0_markdown.js +1 -1
  441. package/script/client/0_message.d.ts +1 -1
  442. package/script/client/0_message.js +1 -1
  443. package/script/client/0_params.d.ts +31 -9
  444. package/script/client/0_params.d.ts.map +1 -1
  445. package/script/client/0_params.js +1 -1
  446. package/script/client/0_password.js +1 -1
  447. package/script/client/0_storage_operations.d.ts +1 -1
  448. package/script/client/0_storage_operations.js +1 -1
  449. package/script/client/0_update_processor.d.ts +7 -0
  450. package/script/client/0_update_processor.d.ts.map +1 -0
  451. package/script/client/0_update_processor.js +2 -0
  452. package/script/client/0_utilities.d.ts +3 -3
  453. package/script/client/0_utilities.d.ts.map +1 -1
  454. package/script/client/0_utilities.js +1 -1
  455. package/script/client/1_client_encrypted.d.ts +1 -1
  456. package/script/client/1_client_encrypted.js +1 -1
  457. package/script/client/1_client_plain.d.ts +1 -1
  458. package/script/client/1_client_plain.js +1 -1
  459. package/script/client/1_composer.d.ts +1 -1
  460. package/script/client/1_composer.js +1 -1
  461. package/script/client/1_types.d.ts +1 -1
  462. package/script/client/1_types.js +1 -1
  463. package/script/client/2_account_manager.d.ts +1 -1
  464. package/script/client/2_account_manager.js +1 -1
  465. package/script/client/2_bot_info_manager.d.ts +1 -1
  466. package/script/client/2_bot_info_manager.js +1 -1
  467. package/script/client/2_business_connection_manager.d.ts +4 -3
  468. package/script/client/2_business_connection_manager.d.ts.map +1 -1
  469. package/script/client/2_business_connection_manager.js +2 -2
  470. package/script/client/2_file_manager.js +1 -1
  471. package/script/client/2_gift_manager.d.ts +29 -0
  472. package/script/client/2_gift_manager.d.ts.map +1 -0
  473. package/script/client/2_gift_manager.js +66 -0
  474. package/script/client/2_network_statistics_manager.d.ts +1 -1
  475. package/script/client/2_network_statistics_manager.js +1 -1
  476. package/script/client/2_payment_manager.d.ts +4 -3
  477. package/script/client/2_payment_manager.d.ts.map +1 -1
  478. package/script/client/2_payment_manager.js +2 -2
  479. package/script/client/2_reaction_manager.d.ts +4 -3
  480. package/script/client/2_reaction_manager.d.ts.map +1 -1
  481. package/script/client/2_reaction_manager.js +2 -2
  482. package/script/client/2_translations_manager.d.ts +3 -2
  483. package/script/client/2_translations_manager.d.ts.map +1 -1
  484. package/script/client/2_translations_manager.js +1 -1
  485. package/script/client/2_update_manager.d.ts +1 -1
  486. package/script/client/2_update_manager.js +1 -1
  487. package/script/client/3_message_manager.d.ts +10 -26
  488. package/script/client/3_message_manager.d.ts.map +1 -1
  489. package/script/client/3_message_manager.js +61 -238
  490. package/script/client/3_video_chat_manager.d.ts +5 -4
  491. package/script/client/3_video_chat_manager.d.ts.map +1 -1
  492. package/script/client/3_video_chat_manager.js +5 -2
  493. package/script/client/4_callback_query_manager.d.ts +4 -3
  494. package/script/client/4_callback_query_manager.d.ts.map +1 -1
  495. package/script/client/4_callback_query_manager.js +2 -2
  496. package/script/client/4_chat_list_manager.d.ts +5 -4
  497. package/script/client/4_chat_list_manager.d.ts.map +1 -1
  498. package/script/client/4_chat_list_manager.js +3 -2
  499. package/script/client/4_chat_manager.d.ts +61 -0
  500. package/script/client/4_chat_manager.d.ts.map +1 -0
  501. package/script/client/4_chat_manager.js +297 -0
  502. package/script/client/4_inline_query_manager.d.ts +4 -3
  503. package/script/client/4_inline_query_manager.d.ts.map +1 -1
  504. package/script/client/4_inline_query_manager.js +2 -2
  505. package/script/client/4_poll_manager.d.ts +4 -3
  506. package/script/client/4_poll_manager.d.ts.map +1 -1
  507. package/script/client/4_poll_manager.js +2 -2
  508. package/script/client/4_story_manager.d.ts +4 -3
  509. package/script/client/4_story_manager.d.ts.map +1 -1
  510. package/script/client/4_story_manager.js +2 -2
  511. package/script/client/5_client.d.ts +44 -7
  512. package/script/client/5_client.d.ts.map +1 -1
  513. package/script/client/5_client.js +182 -73
  514. package/script/connection/0_connection.d.ts +1 -1
  515. package/script/connection/0_connection.js +1 -1
  516. package/script/connection/1_connection_tcp.node.d.ts +1 -1
  517. package/script/connection/1_connection_tcp.node.js +1 -1
  518. package/script/connection/1_connection_web_socket.js +1 -1
  519. package/script/mod.d.ts +1 -1
  520. package/script/mod.js +1 -1
  521. package/script/storage/0_storage.d.ts +1 -1
  522. package/script/storage/0_storage.js +1 -1
  523. package/script/storage/1_utilities.d.ts +1 -1
  524. package/script/storage/1_utilities.js +1 -1
  525. package/script/storage/2_storage_indexed_db.d.ts +1 -1
  526. package/script/storage/2_storage_indexed_db.js +1 -1
  527. package/script/storage/2_storage_local_storage.node.d.ts +1 -1
  528. package/script/storage/2_storage_local_storage.node.js +1 -1
  529. package/script/storage/2_storage_memory.d.ts +1 -1
  530. package/script/storage/2_storage_memory.js +1 -1
  531. package/script/storage/2_storage_session_storage.d.ts +1 -1
  532. package/script/storage/2_storage_session_storage.js +1 -1
  533. package/script/tl/0_api.d.ts +218 -79
  534. package/script/tl/0_api.d.ts.map +1 -1
  535. package/script/tl/0_api.js +362 -159
  536. package/script/tl/0_tl_raw_reader.d.ts +1 -1
  537. package/script/tl/0_tl_raw_reader.js +1 -1
  538. package/script/tl/0_tl_raw_writer.d.ts +1 -1
  539. package/script/tl/0_tl_raw_writer.js +1 -1
  540. package/script/tl/1_utilities.d.ts +1 -1
  541. package/script/tl/1_utilities.js +1 -1
  542. package/script/tl/2_deserialize.d.ts +1 -1
  543. package/script/tl/2_deserialize.js +1 -1
  544. package/script/tl/2_serialize.d.ts +1 -1
  545. package/script/tl/2_serialize.js +1 -1
  546. package/script/tl/3_tl_reader.d.ts +1 -1
  547. package/script/tl/3_tl_reader.js +1 -1
  548. package/script/tl/3_utilities.d.ts +1 -1
  549. package/script/tl/3_utilities.js +1 -1
  550. package/script/tl/4_rpc_result.d.ts +1 -1
  551. package/script/tl/4_rpc_result.js +1 -1
  552. package/script/tl/4_tl_writer.d.ts +1 -1
  553. package/script/tl/4_tl_writer.js +1 -1
  554. package/script/tl/5_message.d.ts +1 -1
  555. package/script/tl/5_message.js +1 -1
  556. package/script/transport/0_obfuscation.js +1 -1
  557. package/script/transport/0_transport.d.ts +1 -1
  558. package/script/transport/0_transport.js +1 -1
  559. package/script/transport/1_transport_abridged.d.ts +1 -1
  560. package/script/transport/1_transport_abridged.js +1 -1
  561. package/script/transport/1_transport_intermediate.d.ts +1 -1
  562. package/script/transport/1_transport_intermediate.js +1 -1
  563. package/script/transport/2_transport_provider.d.ts +1 -1
  564. package/script/transport/2_transport_provider.js +1 -1
  565. package/script/transport/3_transport_provider_tcp.d.ts +1 -1
  566. package/script/transport/3_transport_provider_tcp.js +1 -1
  567. package/script/transport/3_transport_provider_web_socket.d.ts +1 -1
  568. package/script/transport/3_transport_provider_web_socket.js +1 -1
  569. package/script/types/0_authorization_state.d.ts +1 -1
  570. package/script/types/0_authorization_state.js +1 -1
  571. package/script/types/0_birthday.d.ts +1 -1
  572. package/script/types/0_birthday.js +1 -1
  573. package/script/types/0_bot_command.d.ts +1 -1
  574. package/script/types/0_bot_command.js +1 -1
  575. package/script/types/0_callback_query_answer.d.ts +1 -1
  576. package/script/types/0_callback_query_answer.js +1 -1
  577. package/script/types/0_callback_query_question.d.ts +1 -1
  578. package/script/types/0_callback_query_question.js +1 -1
  579. package/script/types/0_chat_action.d.ts +1 -1
  580. package/script/types/0_chat_action.js +1 -1
  581. package/script/types/0_chat_administrator_rights.d.ts +1 -1
  582. package/script/types/0_chat_administrator_rights.js +1 -1
  583. package/script/types/0_chat_member_rights.d.ts +1 -1
  584. package/script/types/0_chat_member_rights.js +1 -1
  585. package/script/types/0_chat_photo.d.ts +1 -1
  586. package/script/types/0_chat_photo.js +1 -1
  587. package/script/types/0_connection_state.d.ts +1 -1
  588. package/script/types/0_connection_state.js +1 -1
  589. package/script/types/0_contact.d.ts +1 -1
  590. package/script/types/0_contact.js +1 -1
  591. package/script/types/0_dice.d.ts +1 -1
  592. package/script/types/0_dice.js +1 -1
  593. package/script/types/0_failed_invitation.d.ts +1 -1
  594. package/script/types/0_failed_invitation.js +1 -1
  595. package/script/types/0_file_source.d.ts +1 -1
  596. package/script/types/0_file_source.js +1 -1
  597. package/script/types/0_giveaway_parameters.d.ts +1 -1
  598. package/script/types/0_giveaway_parameters.js +1 -1
  599. package/script/types/0_id.d.ts +1 -1
  600. package/script/types/0_id.js +1 -1
  601. package/script/types/0_invoice.d.ts +1 -1
  602. package/script/types/0_invoice.js +1 -1
  603. package/script/types/0_keyboard_button_poll_type.d.ts +1 -1
  604. package/script/types/0_keyboard_button_poll_type.js +1 -1
  605. package/script/types/0_link_preview.d.ts +1 -1
  606. package/script/types/0_link_preview.js +1 -1
  607. package/script/types/0_live_stream_channel.d.ts +1 -1
  608. package/script/types/0_live_stream_channel.js +1 -1
  609. package/script/types/0_location.d.ts +1 -1
  610. package/script/types/0_location.js +1 -1
  611. package/script/types/0_login_url.d.ts +1 -1
  612. package/script/types/0_login_url.js +1 -1
  613. package/script/types/0_mask_position.d.ts +1 -1
  614. package/script/types/0_mask_position.js +1 -1
  615. package/script/types/0_message_entity.d.ts +1 -1
  616. package/script/types/0_message_entity.js +1 -1
  617. package/script/types/0_message_reference.d.ts +1 -1
  618. package/script/types/0_message_reference.js +1 -1
  619. package/script/types/0_message_search_filter.d.ts +1 -1
  620. package/script/types/0_message_search_filter.js +1 -1
  621. package/script/types/0_mini_app_info.d.ts +1 -1
  622. package/script/types/0_mini_app_info.js +1 -1
  623. package/script/types/0_network_statistics_entry.d.ts +1 -1
  624. package/script/types/0_network_statistics_entry.js +1 -1
  625. package/script/types/0_opening_hours.d.ts +1 -1
  626. package/script/types/0_opening_hours.js +1 -1
  627. package/script/types/0_parse_mode.d.ts +1 -1
  628. package/script/types/0_parse_mode.js +1 -1
  629. package/script/types/0_price_tag.d.ts +1 -1
  630. package/script/types/0_price_tag.js +1 -1
  631. package/script/types/0_reaction.d.ts +1 -1
  632. package/script/types/0_reaction.js +1 -1
  633. package/script/types/0_refunded_payment.d.ts +1 -1
  634. package/script/types/0_refunded_payment.js +1 -1
  635. package/script/types/0_restriction_reason.d.ts +1 -1
  636. package/script/types/0_restriction_reason.js +1 -1
  637. package/script/types/0_self_destruct_option.d.ts +1 -1
  638. package/script/types/0_self_destruct_option.js +1 -1
  639. package/script/types/0_shipping_address.d.ts +1 -1
  640. package/script/types/0_shipping_address.js +1 -1
  641. package/script/types/0_story_reference.d.ts +1 -1
  642. package/script/types/0_story_reference.js +1 -1
  643. package/script/types/0_switch_inline_query_chosen_chats.d.ts +1 -1
  644. package/script/types/0_switch_inline_query_chosen_chats.js +1 -1
  645. package/script/types/0_thumbnail.d.ts +1 -1
  646. package/script/types/0_thumbnail.js +1 -1
  647. package/script/types/0_video_chat.d.ts +1 -1
  648. package/script/types/0_video_chat.js +1 -1
  649. package/script/types/0_voice.d.ts +1 -1
  650. package/script/types/0_voice.js +1 -1
  651. package/script/types/1_animation.d.ts +1 -1
  652. package/script/types/1_animation.js +1 -1
  653. package/script/types/1_audio.d.ts +1 -1
  654. package/script/types/1_audio.js +1 -1
  655. package/script/types/1_bot_command_scope.d.ts +1 -1
  656. package/script/types/1_bot_command_scope.js +1 -1
  657. package/script/types/1_chat_p.d.ts +1 -1
  658. package/script/types/1_chat_p.js +1 -1
  659. package/script/types/1_document.d.ts +1 -1
  660. package/script/types/1_document.js +1 -1
  661. package/script/types/1_giveaway.d.ts +1 -1
  662. package/script/types/1_giveaway.js +1 -1
  663. package/script/types/1_inline_query_result_button.d.ts +1 -1
  664. package/script/types/1_inline_query_result_button.js +1 -1
  665. package/script/types/1_input_media.d.ts +1 -1
  666. package/script/types/1_input_media.js +1 -1
  667. package/script/types/1_input_story_content.d.ts +1 -1
  668. package/script/types/1_input_story_content.js +1 -1
  669. package/script/types/1_keyboard_button.d.ts +1 -1
  670. package/script/types/1_keyboard_button.js +1 -1
  671. package/script/types/1_message_content.d.ts +2 -2
  672. package/script/types/1_message_content.d.ts.map +1 -1
  673. package/script/types/1_message_content.js +1 -1
  674. package/script/types/1_message_reaction.d.ts +1 -1
  675. package/script/types/1_message_reaction.js +1 -1
  676. package/script/types/1_network_statistics.d.ts +1 -1
  677. package/script/types/1_network_statistics.js +1 -1
  678. package/script/types/1_order_info.d.ts +1 -1
  679. package/script/types/1_order_info.js +1 -1
  680. package/script/types/1_photo.d.ts +1 -1
  681. package/script/types/1_photo.js +1 -1
  682. package/script/types/1_poll_option.d.ts +1 -1
  683. package/script/types/1_poll_option.js +1 -1
  684. package/script/types/1_reaction_count.d.ts +1 -1
  685. package/script/types/1_reaction_count.js +1 -1
  686. package/script/types/1_reply_quote.d.ts +1 -1
  687. package/script/types/1_reply_quote.js +1 -1
  688. package/script/types/1_sticker.d.ts +2 -1
  689. package/script/types/1_sticker.d.ts.map +1 -1
  690. package/script/types/1_sticker.js +8 -3
  691. package/script/types/1_story_privacy.d.ts +1 -1
  692. package/script/types/1_story_privacy.js +1 -1
  693. package/script/types/1_story_reaction.d.ts +1 -1
  694. package/script/types/1_story_reaction.js +1 -1
  695. package/script/types/1_user.d.ts +1 -1
  696. package/script/types/1_user.js +1 -1
  697. package/script/types/1_venue.d.ts +1 -1
  698. package/script/types/1_venue.js +1 -1
  699. package/script/types/1_video.d.ts +1 -1
  700. package/script/types/1_video.js +1 -1
  701. package/script/types/1_video_note.d.ts +1 -1
  702. package/script/types/1_video_note.js +1 -1
  703. package/script/types/2_business_connection.d.ts +1 -1
  704. package/script/types/2_business_connection.js +1 -1
  705. package/script/types/2_chat.d.ts +1 -1
  706. package/script/types/2_chat.js +1 -1
  707. package/script/types/2_chat_member.d.ts +1 -1
  708. package/script/types/2_chat_member.js +1 -1
  709. package/script/types/2_chosen_inline_result.d.ts +1 -1
  710. package/script/types/2_chosen_inline_result.js +1 -1
  711. package/script/types/2_forward_header.d.ts +1 -1
  712. package/script/types/2_forward_header.js +1 -1
  713. package/script/types/2_game.d.ts +1 -1
  714. package/script/types/2_game.js +1 -1
  715. package/script/types/2_gift_upgraded_component.d.ts +95 -0
  716. package/script/types/2_gift_upgraded_component.d.ts.map +1 -0
  717. package/script/types/2_gift_upgraded_component.js +91 -0
  718. package/script/types/2_inactive_chat.d.ts +1 -1
  719. package/script/types/2_inactive_chat.js +1 -1
  720. package/script/types/2_inline_keyboard_button.d.ts +1 -1
  721. package/script/types/2_inline_keyboard_button.js +1 -1
  722. package/script/types/2_inline_query.d.ts +1 -1
  723. package/script/types/2_inline_query.js +1 -1
  724. package/script/types/2_invite_link.d.ts +1 -1
  725. package/script/types/2_invite_link.js +1 -1
  726. package/script/types/2_message_interactions.d.ts +1 -1
  727. package/script/types/2_message_interactions.js +1 -1
  728. package/script/types/2_message_reaction_count.d.ts +1 -1
  729. package/script/types/2_message_reaction_count.js +1 -1
  730. package/script/types/2_message_reactions.d.ts +1 -1
  731. package/script/types/2_message_reactions.js +1 -1
  732. package/script/types/2_poll.d.ts +1 -1
  733. package/script/types/2_poll.js +1 -1
  734. package/script/types/2_pre_checkout_query.d.ts +1 -1
  735. package/script/types/2_pre_checkout_query.js +1 -1
  736. package/script/types/2_reply_to.d.ts +1 -1
  737. package/script/types/2_reply_to.js +1 -1
  738. package/script/types/2_story_content.d.ts +1 -1
  739. package/script/types/2_story_content.js +1 -1
  740. package/script/types/2_story_interactions.d.ts +1 -1
  741. package/script/types/2_story_interactions.js +1 -1
  742. package/script/types/2_story_interactive_area.d.ts +1 -1
  743. package/script/types/2_story_interactive_area.js +1 -1
  744. package/script/types/2_successful_payment.d.ts +1 -1
  745. package/script/types/2_successful_payment.js +1 -1
  746. package/script/types/3_chat_member_updated.d.ts +1 -1
  747. package/script/types/3_chat_member_updated.js +1 -1
  748. package/script/types/3_gift.d.ts +82 -0
  749. package/script/types/3_gift.d.ts.map +1 -0
  750. package/script/types/3_gift.js +93 -0
  751. package/script/types/3_join_request.d.ts +1 -1
  752. package/script/types/3_join_request.js +1 -1
  753. package/script/types/3_reply_markup.d.ts +1 -1
  754. package/script/types/3_reply_markup.js +1 -1
  755. package/script/types/3_story.d.ts +1 -1
  756. package/script/types/3_story.js +1 -1
  757. package/script/types/4_inline_query_result.d.ts +1 -1
  758. package/script/types/4_inline_query_result.js +1 -1
  759. package/script/types/4_message.d.ts +2 -1
  760. package/script/types/4_message.d.ts.map +1 -1
  761. package/script/types/4_message.js +10 -3
  762. package/script/types/4_user_gift.d.ts +44 -0
  763. package/script/types/4_user_gift.d.ts.map +1 -0
  764. package/script/types/4_user_gift.js +46 -0
  765. package/script/types/5_callback_query.d.ts +1 -1
  766. package/script/types/5_callback_query.js +1 -1
  767. package/script/types/5_chat_list_item.d.ts +1 -1
  768. package/script/types/5_chat_list_item.js +1 -1
  769. package/script/types/5_inline_query_answer.d.ts +1 -1
  770. package/script/types/5_inline_query_answer.js +1 -1
  771. package/script/types/5_user_gifts.d.ts +32 -0
  772. package/script/types/5_user_gifts.d.ts.map +1 -0
  773. package/script/types/5_user_gifts.js +32 -0
  774. package/script/types/6_update.d.ts +1 -1
  775. package/script/types/6_update.js +1 -1
  776. package/script/types/_file_id.d.ts +1 -1
  777. package/script/types/_file_id.js +1 -1
  778. package/script/types/_getters.d.ts +1 -1
  779. package/script/types/_getters.js +1 -1
  780. package/script/utilities/0_bigint.js +1 -1
  781. package/script/utilities/0_buffer.d.ts +1 -1
  782. package/script/utilities/0_buffer.js +1 -1
  783. package/script/utilities/0_cache_map.d.ts +1 -1
  784. package/script/utilities/0_cache_map.js +1 -1
  785. package/script/utilities/0_color.d.ts +1 -1
  786. package/script/utilities/0_color.js +1 -1
  787. package/script/utilities/0_env.js +1 -1
  788. package/script/utilities/0_gunzip.d.ts +1 -1
  789. package/script/utilities/0_gunzip.js +1 -1
  790. package/script/utilities/0_hash.js +1 -1
  791. package/script/utilities/0_misc.d.ts +1 -1
  792. package/script/utilities/0_misc.js +1 -1
  793. package/script/utilities/0_mutex.d.ts +1 -1
  794. package/script/utilities/0_mutex.js +1 -1
  795. package/script/utilities/0_object.d.ts +1 -1
  796. package/script/utilities/0_object.js +1 -1
  797. package/script/utilities/0_part_stream.d.ts +1 -1
  798. package/script/utilities/0_part_stream.js +1 -1
  799. package/script/utilities/0_rle.d.ts +1 -1
  800. package/script/utilities/0_rle.js +1 -1
  801. package/script/utilities/0_types.d.ts +1 -1
  802. package/script/utilities/0_types.js +1 -1
  803. package/script/utilities/0_units.d.ts +1 -1
  804. package/script/utilities/0_units.js +1 -1
  805. package/script/utilities/1_auth.js +1 -1
  806. package/script/utilities/1_base64.d.ts +1 -1
  807. package/script/utilities/1_base64.js +1 -1
  808. package/script/utilities/1_crypto.d.ts +1 -1
  809. package/script/utilities/1_crypto.js +1 -1
  810. package/script/utilities/1_logger.d.ts +1 -1
  811. package/script/utilities/1_logger.js +1 -1
  812. package/script/utilities/1_math.d.ts +1 -1
  813. package/script/utilities/1_math.js +1 -1
  814. package/script/utilities/2_queue.d.ts +1 -1
  815. package/script/utilities/2_queue.js +1 -1
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -28,7 +28,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
28
28
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
29
29
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
30
30
  };
31
- var _Client_instances, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_videoChatManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_pollManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_paymentManager, _Client_translationsManager, _Client_managers, _Client_storage_, _Client_messageStorage_, _Client_parseMode, _Client_apiId, _Client_apiHash, _Client_publicKeys, _Client_outgoingMessages, _Client_persistCache, _Client_disableUpdates, _Client_authString, _Client_cdn, _Client_L, _Client_LsignIn, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_Lmin, _Client_reconnecting, _Client_reconnect, _Client_getApiId, _Client_getCdnConnectionPool, _Client_getCdnConnection, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_lastConnect, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_connectionInsuranceLoopStarted, _Client_connectionInsuranceLoopAbortController, _Client_startConnectionInsuranceLoop, _Client_connectionInsuranceLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_authStringImported, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerChatId, _Client_getInputPeerInner, _Client_getMinInputPeer, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
31
+ var _Client_instances, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_accountManager, _Client_botInfoManager, _Client_businessConnectionManager, _Client_fileManager, _Client_giftManager, _Client_networkStatisticsManager, _Client_paymentManager, _Client_reactionManager, _Client_translationsManager, _Client_updateManager, _Client_messageManager, _Client_videoChatManager, _Client_callbackQueryManager, _Client_chatListManager, _Client_chatManager, _Client_inlineQueryManager, _Client_pollManager, _Client_storyManager, _Client_managers, _Client_storage_, _Client_messageStorage_, _Client_parseMode, _Client_apiId, _Client_apiHash, _Client_publicKeys, _Client_outgoingMessages, _Client_persistCache, _Client_disableUpdates, _Client_authString, _Client_cdn, _Client_L, _Client_LsignIn, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_Lmin, _Client_reconnecting, _Client_reconnect, _Client_getApiId, _Client_getCdnConnectionPool, _Client_getCdnConnection, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_lastConnect, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_connectionInsuranceLoopStarted, _Client_connectionInsuranceLoopAbortController, _Client_startConnectionInsuranceLoop, _Client_connectionInsuranceLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_authStringImported, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerChatId, _Client_getInputPeerInner, _Client_getMinInputPeer, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
32
32
  import { MINUTE, SECOND, unreachable } from "../0_deps.js";
33
33
  import { AccessError, ConnectionError, InputError } from "../0_errors.js";
34
34
  import { cleanObject, drop, getLogger, getRandomId, mustPrompt, mustPromptOneOf, Mutex, ZERO_CHANNEL_ID } from "../1_utilities.js";
@@ -49,6 +49,7 @@ import { AccountManager } from "./2_account_manager.js";
49
49
  import { BotInfoManager } from "./2_bot_info_manager.js";
50
50
  import { BusinessConnectionManager } from "./2_business_connection_manager.js";
51
51
  import { FileManager } from "./2_file_manager.js";
52
+ import { GiftManager } from "./2_gift_manager.js";
52
53
  import { NetworkStatisticsManager } from "./2_network_statistics_manager.js";
53
54
  import { PaymentManager } from "./2_payment_manager.js";
54
55
  import { ReactionManager } from "./2_reaction_manager.js";
@@ -58,6 +59,7 @@ import { MessageManager } from "./3_message_manager.js";
58
59
  import { VideoChatManager } from "./3_video_chat_manager.js";
59
60
  import { CallbackQueryManager } from "./4_callback_query_manager.js";
60
61
  import { ChatListManager } from "./4_chat_list_manager.js";
62
+ import { ChatManager } from "./4_chat_manager.js";
61
63
  import { InlineQueryManager } from "./4_inline_query_manager.js";
62
64
  import { PollManager } from "./4_poll_manager.js";
63
65
  import { StoryManager } from "./4_story_manager.js";
@@ -78,21 +80,25 @@ export class Client extends Composer {
78
80
  // deno-lint-ignore no-explicit-any
79
81
  get managers() {
80
82
  return __classPrivateFieldGet(this, _Client_managers, "f") ?? (__classPrivateFieldSet(this, _Client_managers, __classPrivateFieldGet(this, _Client_managers, "f") ?? {
81
- updateManager: __classPrivateFieldGet(this, _Client_updateManager, "f"),
82
- networkStatisticsManager: __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f"),
83
+ // 2_
84
+ accountManager: __classPrivateFieldGet(this, _Client_accountManager, "f"),
83
85
  botInfoManager: __classPrivateFieldGet(this, _Client_botInfoManager, "f"),
86
+ businessConnectionManager: __classPrivateFieldGet(this, _Client_businessConnectionManager, "f"),
84
87
  fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"),
88
+ giftManager: __classPrivateFieldGet(this, _Client_giftManager, "f"),
89
+ networkStatisticsManager: __classPrivateFieldGet(this, _Client_networkStatisticsManager, "f"),
90
+ paymentManager: __classPrivateFieldGet(this, _Client_paymentManager, "f"),
85
91
  reactionManager: __classPrivateFieldGet(this, _Client_reactionManager, "f"),
86
- videoChatManager: __classPrivateFieldGet(this, _Client_videoChatManager, "f"),
87
- businessConnectionManager: __classPrivateFieldGet(this, _Client_businessConnectionManager, "f"),
92
+ translationsManager: __classPrivateFieldGet(this, _Client_translationsManager, "f"),
93
+ updateManager: __classPrivateFieldGet(this, _Client_updateManager, "f"),
94
+ // 3_
88
95
  messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f"),
89
- storyManager: __classPrivateFieldGet(this, _Client_storyManager, "f"),
96
+ videoChatManager: __classPrivateFieldGet(this, _Client_videoChatManager, "f"),
97
+ // 4_
90
98
  callbackQueryManager: __classPrivateFieldGet(this, _Client_callbackQueryManager, "f"),
91
- inlineQueryManager: __classPrivateFieldGet(this, _Client_inlineQueryManager, "f"),
92
99
  chatListManager: __classPrivateFieldGet(this, _Client_chatListManager, "f"),
93
- accountManager: __classPrivateFieldGet(this, _Client_accountManager, "f"),
94
- paymentManager: __classPrivateFieldGet(this, _Client_paymentManager, "f"),
95
- translationsManager: __classPrivateFieldGet(this, _Client_translationsManager, "f"),
100
+ inlineQueryManager: __classPrivateFieldGet(this, _Client_inlineQueryManager, "f"),
101
+ storyManager: __classPrivateFieldGet(this, _Client_storyManager, "f"),
96
102
  }, "f"));
97
103
  }
98
104
  /**
@@ -103,22 +109,27 @@ export class Client extends Composer {
103
109
  _Client_instances.add(this);
104
110
  _Client_client.set(this, void 0);
105
111
  _Client_guaranteeUpdateDelivery.set(this, void 0);
106
- _Client_updateManager.set(this, void 0);
107
- _Client_networkStatisticsManager.set(this, void 0);
112
+ // 2_
113
+ _Client_accountManager.set(this, void 0);
108
114
  _Client_botInfoManager.set(this, void 0);
115
+ _Client_businessConnectionManager.set(this, void 0);
109
116
  _Client_fileManager.set(this, void 0);
117
+ _Client_giftManager.set(this, void 0);
118
+ _Client_networkStatisticsManager.set(this, void 0);
119
+ _Client_paymentManager.set(this, void 0);
110
120
  _Client_reactionManager.set(this, void 0);
111
- _Client_videoChatManager.set(this, void 0);
112
- _Client_businessConnectionManager.set(this, void 0);
121
+ _Client_translationsManager.set(this, void 0);
122
+ _Client_updateManager.set(this, void 0);
123
+ // 3_
113
124
  _Client_messageManager.set(this, void 0);
114
- _Client_storyManager.set(this, void 0);
115
- _Client_pollManager.set(this, void 0);
125
+ _Client_videoChatManager.set(this, void 0);
126
+ // 4_
116
127
  _Client_callbackQueryManager.set(this, void 0);
117
- _Client_inlineQueryManager.set(this, void 0);
118
128
  _Client_chatListManager.set(this, void 0);
119
- _Client_accountManager.set(this, void 0);
120
- _Client_paymentManager.set(this, void 0);
121
- _Client_translationsManager.set(this, void 0);
129
+ _Client_chatManager.set(this, void 0);
130
+ _Client_inlineQueryManager.set(this, void 0);
131
+ _Client_pollManager.set(this, void 0);
132
+ _Client_storyManager.set(this, void 0);
122
133
  // deno-lint-ignore no-explicit-any
123
134
  _Client_managers.set(this, void 0);
124
135
  _Client_storage_.set(this, void 0);
@@ -397,6 +408,14 @@ export class Client extends Composer {
397
408
  const inlineMessageId = mustGetInlineMsgId();
398
409
  return this.editInlineMessageText(inlineMessageId, text, params);
399
410
  },
411
+ editInlineMessageMedia: (media, params) => {
412
+ const inlineMessageId = mustGetInlineMsgId();
413
+ return this.editInlineMessageMedia(inlineMessageId, media, params);
414
+ },
415
+ editInlineMessageCaption: (params) => {
416
+ const inlineMessageId = mustGetInlineMsgId();
417
+ return this.editInlineMessageCaption(inlineMessageId, params);
418
+ },
400
419
  editInlineMessageLiveLocation: (latitude, longitude, params) => {
401
420
  const inlineMessageId = mustGetInlineMsgId();
402
421
  return this.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
@@ -409,6 +428,14 @@ export class Client extends Composer {
409
428
  const { chatId } = mustGetMsg();
410
429
  return this.editMessageText(chatId, messageId, text, params);
411
430
  },
431
+ editMessageCaption: (messageId, params) => {
432
+ const { chatId } = mustGetMsg();
433
+ return this.editMessageCaption(chatId, messageId, params);
434
+ },
435
+ editMessageMedia: (messageId, media, params) => {
436
+ const { chatId } = mustGetMsg();
437
+ return this.editMessageMedia(chatId, messageId, media, params);
438
+ },
412
439
  editMessageLiveLocation: (messageId, latitude, longitude, params) => {
413
440
  const { chatId } = mustGetMsg();
414
441
  return this.editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
@@ -711,22 +738,27 @@ export class Client extends Composer {
711
738
  langPack: this.platform,
712
739
  langCode: this.language,
713
740
  };
714
- __classPrivateFieldSet(this, _Client_updateManager, new UpdateManager(c), "f");
715
- __classPrivateFieldSet(this, _Client_networkStatisticsManager, new NetworkStatisticsManager(c), "f");
741
+ // 2_
742
+ __classPrivateFieldSet(this, _Client_accountManager, new AccountManager(c), "f");
716
743
  __classPrivateFieldSet(this, _Client_botInfoManager, new BotInfoManager(c), "f");
717
- __classPrivateFieldSet(this, _Client_fileManager, new FileManager(c), "f");
718
- __classPrivateFieldSet(this, _Client_reactionManager, new ReactionManager(c), "f");
719
744
  __classPrivateFieldSet(this, _Client_businessConnectionManager, new BusinessConnectionManager(c), "f");
720
- __classPrivateFieldSet(this, _Client_videoChatManager, new VideoChatManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f") }), "f");
721
- __classPrivateFieldSet(this, _Client_messageManager, new MessageManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f") }), "f");
722
- __classPrivateFieldSet(this, _Client_callbackQueryManager, new CallbackQueryManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
723
- __classPrivateFieldSet(this, _Client_pollManager, new PollManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
724
- __classPrivateFieldSet(this, _Client_storyManager, new StoryManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
725
- __classPrivateFieldSet(this, _Client_inlineQueryManager, new InlineQueryManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
726
- __classPrivateFieldSet(this, _Client_chatListManager, new ChatListManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
727
- __classPrivateFieldSet(this, _Client_accountManager, new AccountManager(c), "f");
745
+ const fileManager = __classPrivateFieldSet(this, _Client_fileManager, new FileManager(c), "f");
746
+ __classPrivateFieldSet(this, _Client_giftManager, new GiftManager(c), "f");
747
+ __classPrivateFieldSet(this, _Client_networkStatisticsManager, new NetworkStatisticsManager(c), "f");
728
748
  __classPrivateFieldSet(this, _Client_paymentManager, new PaymentManager(c), "f");
749
+ __classPrivateFieldSet(this, _Client_reactionManager, new ReactionManager(c), "f");
729
750
  __classPrivateFieldSet(this, _Client_translationsManager, new TranslationsManager(c), "f");
751
+ __classPrivateFieldSet(this, _Client_updateManager, new UpdateManager(c), "f");
752
+ // 3_
753
+ const messageManager = __classPrivateFieldSet(this, _Client_messageManager, new MessageManager({ ...c, fileManager }), "f");
754
+ __classPrivateFieldSet(this, _Client_videoChatManager, new VideoChatManager({ ...c, fileManager }), "f");
755
+ // 4_
756
+ __classPrivateFieldSet(this, _Client_callbackQueryManager, new CallbackQueryManager({ ...c, messageManager }), "f");
757
+ __classPrivateFieldSet(this, _Client_chatListManager, new ChatListManager({ ...c, fileManager, messageManager }), "f");
758
+ __classPrivateFieldSet(this, _Client_chatManager, new ChatManager({ ...c, fileManager, messageManager }), "f");
759
+ __classPrivateFieldSet(this, _Client_inlineQueryManager, new InlineQueryManager({ ...c, messageManager }), "f");
760
+ __classPrivateFieldSet(this, _Client_pollManager, new PollManager({ ...c, messageManager }), "f");
761
+ __classPrivateFieldSet(this, _Client_storyManager, new StoryManager({ ...c, fileManager, messageManager }), "f");
730
762
  __classPrivateFieldGet(this, _Client_updateManager, "f").setUpdateHandler(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleUpdate).bind(this));
731
763
  const transportProvider = __classPrivateFieldGet(this, _Client_client, "f").transportProvider;
732
764
  __classPrivateFieldGet(this, _Client_client, "f").transportProvider = (params) => {
@@ -846,7 +878,7 @@ export class Client extends Composer {
846
878
  }
847
879
  await __classPrivateFieldGet(this, _Client_client, "f").reconnect();
848
880
  }
849
- async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_videoChatManager = new WeakMap(), _Client_businessConnectionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_pollManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_paymentManager = new WeakMap(), _Client_translationsManager = new WeakMap(), _Client_managers = new WeakMap(), _Client_storage_ = new WeakMap(), _Client_messageStorage_ = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_apiId = new WeakMap(), _Client_apiHash = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_outgoingMessages = new WeakMap(), _Client_persistCache = new WeakMap(), _Client_disableUpdates = new WeakMap(), _Client_authString = new WeakMap(), _Client_cdn = new WeakMap(), _Client_L = new WeakMap(), _Client_LsignIn = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_Lmin = new WeakMap(), _Client_reconnecting = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_lastConnect = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_connectionInsuranceLoopStarted = new WeakMap(), _Client_connectionInsuranceLoopAbortController = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_authStringImported = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_reconnect = async function _Client_reconnect() {
881
+ async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_businessConnectionManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_giftManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_paymentManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_translationsManager = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_videoChatManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_chatManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_pollManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_managers = new WeakMap(), _Client_storage_ = new WeakMap(), _Client_messageStorage_ = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_apiId = new WeakMap(), _Client_apiHash = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_outgoingMessages = new WeakMap(), _Client_persistCache = new WeakMap(), _Client_disableUpdates = new WeakMap(), _Client_authString = new WeakMap(), _Client_cdn = new WeakMap(), _Client_L = new WeakMap(), _Client_LsignIn = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_Lmin = new WeakMap(), _Client_reconnecting = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_lastConnect = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_connectionInsuranceLoopStarted = new WeakMap(), _Client_connectionInsuranceLoopAbortController = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_authStringImported = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_reconnect = async function _Client_reconnect() {
850
882
  if (this.connected) {
851
883
  return;
852
884
  }
@@ -1776,6 +1808,18 @@ export class Client extends Composer {
1776
1808
  async editMessageText(chatId, messageId, text, params) {
1777
1809
  return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
1778
1810
  }
1811
+ /**
1812
+ * Edit a message's caption.
1813
+ *
1814
+ * @method ms
1815
+ * @param chatId The identifier of the chat that contains the message.
1816
+ * @param messageId The message's identifier.
1817
+ * @param text The new caption of the message.
1818
+ * @returns The edited message.
1819
+ */
1820
+ async editMessageCaption(chatId, messageId, params) {
1821
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageCaption(chatId, messageId, params);
1822
+ }
1779
1823
  /**
1780
1824
  * Edit a message's media.
1781
1825
  *
@@ -1808,6 +1852,15 @@ export class Client extends Composer {
1808
1852
  async editInlineMessageText(inlineMessageId, text, params) {
1809
1853
  await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageText(inlineMessageId, text, params);
1810
1854
  }
1855
+ /**
1856
+ * Edit an inline message's caption. Bot-only.
1857
+ *
1858
+ * @method ms
1859
+ * @param inlineMessageId The inline message's identifier.
1860
+ */
1861
+ async editInlineMessageCaption(inlineMessageId, params) {
1862
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageCaption(inlineMessageId, params);
1863
+ }
1811
1864
  /**
1812
1865
  * Edit a message's reply markup.
1813
1866
  *
@@ -2146,7 +2199,7 @@ export class Client extends Composer {
2146
2199
  * @param availableReactions The new available reactions.
2147
2200
  */
2148
2201
  async setAvailableReactions(chatId, availableReactions) {
2149
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setAvailableReactions(chatId, availableReactions);
2202
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setAvailableReactions(chatId, availableReactions);
2150
2203
  }
2151
2204
  /**
2152
2205
  * Set a chat's photo.
@@ -2156,7 +2209,7 @@ export class Client extends Composer {
2156
2209
  * @param photo A photo to set as the chat's photo.
2157
2210
  */
2158
2211
  async setChatPhoto(chatId, photo, params) {
2159
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatPhoto(chatId, photo, params);
2212
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatPhoto(chatId, photo, params);
2160
2213
  }
2161
2214
  /**
2162
2215
  * Delete a chat's photo.
@@ -2165,7 +2218,7 @@ export class Client extends Composer {
2165
2218
  * @param chatId The identifier of the chat.
2166
2219
  */
2167
2220
  async deleteChatPhoto(chatId) {
2168
- await __classPrivateFieldGet(this, _Client_messageManager, "f").deleteChatPhoto(chatId);
2221
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").deleteChatPhoto(chatId);
2169
2222
  }
2170
2223
  /**
2171
2224
  * Ban a member from a chat.
@@ -2175,7 +2228,7 @@ export class Client extends Composer {
2175
2228
  * @param memberId The identifier of the member.
2176
2229
  */
2177
2230
  async banChatMember(chatId, memberId, params) {
2178
- await __classPrivateFieldGet(this, _Client_messageManager, "f").banChatMember(chatId, memberId, params);
2231
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").banChatMember(chatId, memberId, params);
2179
2232
  }
2180
2233
  /**
2181
2234
  * Unban a member from a chat.
@@ -2185,7 +2238,7 @@ export class Client extends Composer {
2185
2238
  * @param memberId The identifier of the member.
2186
2239
  */
2187
2240
  async unbanChatMember(chatId, memberId) {
2188
- await __classPrivateFieldGet(this, _Client_messageManager, "f").unbanChatMember(chatId, memberId);
2241
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").unbanChatMember(chatId, memberId);
2189
2242
  }
2190
2243
  /**
2191
2244
  * Kick a member from a chat. Same as a banChatMember call followed by unbanChatMember.
@@ -2195,8 +2248,8 @@ export class Client extends Composer {
2195
2248
  * @param memberId The identifier of the member.
2196
2249
  */
2197
2250
  async kickChatMember(chatId, memberId) {
2198
- await __classPrivateFieldGet(this, _Client_messageManager, "f").banChatMember(chatId, memberId);
2199
- await __classPrivateFieldGet(this, _Client_messageManager, "f").unbanChatMember(chatId, memberId);
2251
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").banChatMember(chatId, memberId);
2252
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").unbanChatMember(chatId, memberId);
2200
2253
  }
2201
2254
  /**
2202
2255
  * Set the rights of a chat member.
@@ -2206,7 +2259,7 @@ export class Client extends Composer {
2206
2259
  * @param memberId The identifier of a member.
2207
2260
  */
2208
2261
  async setChatMemberRights(chatId, memberId, params) {
2209
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatMemberRights(chatId, memberId, params);
2262
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setChatMemberRights(chatId, memberId, params);
2210
2263
  }
2211
2264
  /**
2212
2265
  * Get the administrators of a chat.
@@ -2225,7 +2278,7 @@ export class Client extends Composer {
2225
2278
  * @param chatId The identifier of the chat. Must be a channel or a supergroup.
2226
2279
  */
2227
2280
  async enableJoinRequests(chatId) {
2228
- await __classPrivateFieldGet(this, _Client_messageManager, "f").enableJoinRequests(chatId);
2281
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").enableJoinRequests(chatId);
2229
2282
  }
2230
2283
  /**
2231
2284
  * Disable join requests in a chat. User-only.
@@ -2234,7 +2287,7 @@ export class Client extends Composer {
2234
2287
  * @param chatId The identifier of the chat. Must be a channel or a supergroup.
2235
2288
  */
2236
2289
  async disableJoinRequests(chatId) {
2237
- await __classPrivateFieldGet(this, _Client_messageManager, "f").disableJoinRequests(chatId);
2290
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").disableJoinRequests(chatId);
2238
2291
  }
2239
2292
  /**
2240
2293
  * Get inactive chats. User-only.
@@ -2253,7 +2306,7 @@ export class Client extends Composer {
2253
2306
  * @returns The invite links created for the chat. This might be a subset of the results if they were less than `limit`. The parameters `afterDate` and `afterInviteLink` can be used for pagination.
2254
2307
  */
2255
2308
  async getCreatedInviteLinks(chatId, params) {
2256
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").getCreatedInviteLinks(chatId, params);
2309
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").getCreatedInviteLinks(chatId, params);
2257
2310
  }
2258
2311
  /**
2259
2312
  * Join a chat. User-only.
@@ -2262,7 +2315,7 @@ export class Client extends Composer {
2262
2315
  * @param chatId The identifier of the chat to join.
2263
2316
  */
2264
2317
  async joinChat(chatId) {
2265
- await __classPrivateFieldGet(this, _Client_messageManager, "f").joinChat(chatId);
2318
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").joinChat(chatId);
2266
2319
  }
2267
2320
  /**
2268
2321
  * Leave a chat.
@@ -2271,7 +2324,7 @@ export class Client extends Composer {
2271
2324
  * @param chatId The identifier of the chat to leave.
2272
2325
  */
2273
2326
  async leaveChat(chatId) {
2274
- await __classPrivateFieldGet(this, _Client_messageManager, "f").leaveChat(chatId);
2327
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").leaveChat(chatId);
2275
2328
  }
2276
2329
  /**
2277
2330
  * Get information on a user's chat membership.
@@ -2319,7 +2372,7 @@ export class Client extends Composer {
2319
2372
  * @param boosts The number of boosts required to circumvent its restrictions.
2320
2373
  */
2321
2374
  async setBoostsRequiredToCircumventRestrictions(chatId, boosts) {
2322
- await __classPrivateFieldGet(this, _Client_messageManager, "f").setBoostsRequiredToCircumventRestrictions(chatId, boosts);
2375
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").setBoostsRequiredToCircumventRestrictions(chatId, boosts);
2323
2376
  }
2324
2377
  /**
2325
2378
  * Create an invite link.
@@ -2329,7 +2382,7 @@ export class Client extends Composer {
2329
2382
  * @returns The newly created invite link.
2330
2383
  */
2331
2384
  async createInviteLink(chatId, params) {
2332
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").createInviteLink(chatId, params);
2385
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").createInviteLink(chatId, params);
2333
2386
  }
2334
2387
  /**
2335
2388
  * Approve a join request.
@@ -2339,7 +2392,7 @@ export class Client extends Composer {
2339
2392
  * @param userId The user who made the join request.
2340
2393
  */
2341
2394
  async approveJoinRequest(chatId, userId) {
2342
- await __classPrivateFieldGet(this, _Client_messageManager, "f").approveJoinRequest(chatId, userId);
2395
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").approveJoinRequest(chatId, userId);
2343
2396
  }
2344
2397
  /**
2345
2398
  * Decline a join request.
@@ -2349,7 +2402,7 @@ export class Client extends Composer {
2349
2402
  * @param userId The user who made the join request.
2350
2403
  */
2351
2404
  async declineJoinRequest(chatId, userId) {
2352
- await __classPrivateFieldGet(this, _Client_messageManager, "f").declineJoinRequest(chatId, userId);
2405
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").declineJoinRequest(chatId, userId);
2353
2406
  }
2354
2407
  /**
2355
2408
  * Approve all join requests. User-only.
@@ -2358,7 +2411,7 @@ export class Client extends Composer {
2358
2411
  * @param chatId The identifier of the chat that contains the join requests.
2359
2412
  */
2360
2413
  async approveJoinRequests(chatId, params) {
2361
- await __classPrivateFieldGet(this, _Client_messageManager, "f").approveJoinRequests(chatId, params);
2414
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").approveJoinRequests(chatId, params);
2362
2415
  }
2363
2416
  /**
2364
2417
  * Decline all join requests. User-only.
@@ -2367,7 +2420,7 @@ export class Client extends Composer {
2367
2420
  * @param chatId The identifier of the chat that contains the join requests.
2368
2421
  */
2369
2422
  async declineJoinRequests(chatId, params) {
2370
- await __classPrivateFieldGet(this, _Client_messageManager, "f").declineJoinRequests(chatId, params);
2423
+ await __classPrivateFieldGet(this, _Client_chatManager, "f").declineJoinRequests(chatId, params);
2371
2424
  }
2372
2425
  /**
2373
2426
  * Add a single user to a chat.
@@ -2378,7 +2431,7 @@ export class Client extends Composer {
2378
2431
  * @returns An array of FailedInvitation that has at most a length of 1. If empty, it means that the user was added.
2379
2432
  */
2380
2433
  async addChatMember(chatId, userId, params) {
2381
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").addChatMember(chatId, userId, params);
2434
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").addChatMember(chatId, userId, params);
2382
2435
  }
2383
2436
  /**
2384
2437
  * Add multiple users at once to a channel or a supergroup.
@@ -2388,7 +2441,7 @@ export class Client extends Composer {
2388
2441
  * @param userId The identifiers of the users to add to the channel or supergroup.
2389
2442
  */
2390
2443
  async addChatMembers(chatId, userIds) {
2391
- return await __classPrivateFieldGet(this, _Client_messageManager, "f").addChatMembers(chatId, userIds);
2444
+ return await __classPrivateFieldGet(this, _Client_chatManager, "f").addChatMembers(chatId, userIds);
2392
2445
  }
2393
2446
  /**
2394
2447
  * Open a chat. User-only.
@@ -2930,6 +2983,25 @@ export class Client extends Composer {
2930
2983
  async getTranslations(params) {
2931
2984
  return await __classPrivateFieldGet(this, _Client_translationsManager, "f").getTranslations(params);
2932
2985
  }
2986
+ //
2987
+ // ========================= GIFTS ========================= //
2988
+ //
2989
+ /**
2990
+ * Get available gifts.
2991
+ *
2992
+ * @method gf
2993
+ */
2994
+ async getGifts() {
2995
+ return await __classPrivateFieldGet(this, _Client_giftManager, "f").getGifts();
2996
+ }
2997
+ /**
2998
+ * Get gifts claimed by a specific user. User-only.
2999
+ *
3000
+ * @method gf
3001
+ */
3002
+ async getUserGifts(userId, params) {
3003
+ return await __classPrivateFieldGet(this, _Client_giftManager, "f").getUserGifts(userId, params);
3004
+ }
2933
3005
  }
2934
3006
  _a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
2935
3007
  if (__classPrivateFieldGet(this, _Client_disableUpdates, "f") && !("authorizationState" in update) && !("connectionState" in update)) {
@@ -2958,18 +3030,18 @@ _a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(up
2958
3030
  await this.messageStorage.setEntity(entity);
2959
3031
  }
2960
3032
  }
2961
- if (MessageManager.canHandleUpdate(update)) {
3033
+ if (__classPrivateFieldGet(this, _Client_messageManager, "f").canHandleUpdate(update)) {
2962
3034
  promises.push(async () => {
2963
- const update_ = await __classPrivateFieldGet(this, _Client_messageManager, "f").handleUpdate(update);
2964
- if (!update_) {
3035
+ const ctxUpdate = await __classPrivateFieldGet(this, _Client_messageManager, "f").handleUpdate(update);
3036
+ if (!ctxUpdate) {
2965
3037
  return;
2966
3038
  }
2967
3039
  try {
2968
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, update_);
3040
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, ctxUpdate);
2969
3041
  }
2970
3042
  finally {
2971
- if ("deletedMessages" in update_) {
2972
- for (const { chatId, messageId } of update_.deletedMessages) {
3043
+ if ("deletedMessages" in ctxUpdate) {
3044
+ for (const { chatId, messageId } of ctxUpdate.deletedMessages) {
2973
3045
  await this.messageStorage.setMessage(chatId, messageId, null);
2974
3046
  await __classPrivateFieldGet(this, _Client_chatListManager, "f").reassignChatLastMessage(chatId);
2975
3047
  }
@@ -2977,7 +3049,15 @@ _a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(up
2977
3049
  }
2978
3050
  });
2979
3051
  }
2980
- if (PollManager.canHandleUpdate(update)) {
3052
+ if (__classPrivateFieldGet(this, _Client_chatManager, "f").canHandleUpdate(update)) {
3053
+ promises.push(async () => {
3054
+ const ctxUpdate = await __classPrivateFieldGet(this, _Client_chatManager, "f").handleUpdate(update);
3055
+ if (ctxUpdate) {
3056
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, ctxUpdate);
3057
+ }
3058
+ });
3059
+ }
3060
+ if (__classPrivateFieldGet(this, _Client_pollManager, "f").canHandleUpdate(update)) {
2981
3061
  promises.push(async () => {
2982
3062
  const ctxUpdate = await __classPrivateFieldGet(this, _Client_pollManager, "f").handleUpdate(update);
2983
3063
  if (ctxUpdate) {
@@ -2985,16 +3065,21 @@ _a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(up
2985
3065
  }
2986
3066
  });
2987
3067
  }
2988
- if (VideoChatManager.canHandleUpdate(update)) {
2989
- promises.push(async () => __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_videoChatManager, "f").handleUpdate(update)));
3068
+ if (__classPrivateFieldGet(this, _Client_videoChatManager, "f").canHandleUpdate(update)) {
3069
+ promises.push(async () => {
3070
+ const ctxUpdate = await __classPrivateFieldGet(this, _Client_videoChatManager, "f").handleUpdate(update);
3071
+ if (ctxUpdate) {
3072
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, ctxUpdate);
3073
+ }
3074
+ });
2990
3075
  }
2991
- if (CallbackQueryManager.canHandleUpdate(update)) {
3076
+ if (__classPrivateFieldGet(this, _Client_callbackQueryManager, "f").canHandleUpdate(update)) {
2992
3077
  promises.push(async () => __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").handleUpdate(update)));
2993
3078
  }
2994
- if (InlineQueryManager.canHandleUpdate(update)) {
3079
+ if (__classPrivateFieldGet(this, _Client_inlineQueryManager, "f").canHandleUpdate(update)) {
2995
3080
  promises.push(async () => __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").handleUpdate(update)));
2996
3081
  }
2997
- if (ReactionManager.canHandleUpdate(update)) {
3082
+ if (__classPrivateFieldGet(this, _Client_reactionManager, "f").canHandleUpdate(update)) {
2998
3083
  promises.push(async () => {
2999
3084
  const upd = await __classPrivateFieldGet(this, _Client_reactionManager, "f").handleUpdate(update);
3000
3085
  if (upd) {
@@ -3002,20 +3087,44 @@ _a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(up
3002
3087
  }
3003
3088
  });
3004
3089
  }
3005
- if (ChatListManager.canHandleUpdate(update)) {
3090
+ if (__classPrivateFieldGet(this, _Client_chatListManager, "f").canHandleUpdate(update)) {
3006
3091
  promises.push(() => __classPrivateFieldGet(this, _Client_chatListManager, "f").handleUpdate(update));
3007
3092
  }
3008
- if (StoryManager.canHandleUpdate(update)) {
3093
+ if (__classPrivateFieldGet(this, _Client_storyManager, "f").canHandleUpdate(update)) {
3009
3094
  promises.push(async () => {
3010
- const upd = await __classPrivateFieldGet(this, _Client_storyManager, "f").handleUpdate(update);
3011
- if (upd) {
3012
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, upd);
3095
+ const ctxUpdate = await __classPrivateFieldGet(this, _Client_storyManager, "f").handleUpdate(update);
3096
+ if (ctxUpdate) {
3097
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, ctxUpdate);
3013
3098
  }
3014
3099
  });
3015
3100
  }
3016
- if (BusinessConnectionManager.canHandleUpdate(update)) {
3101
+ if (__classPrivateFieldGet(this, _Client_businessConnectionManager, "f").canHandleUpdate(update)) {
3017
3102
  promises.push(async () => __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_businessConnectionManager, "f").handleUpdate(update)));
3018
3103
  }
3104
+ if (__classPrivateFieldGet(this, _Client_storyManager, "f").canHandleUpdate(update)) {
3105
+ promises.push(async () => {
3106
+ const ctxUpdate = await __classPrivateFieldGet(this, _Client_storyManager, "f").handleUpdate(update);
3107
+ if (ctxUpdate) {
3108
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, ctxUpdate);
3109
+ }
3110
+ });
3111
+ }
3112
+ if (__classPrivateFieldGet(this, _Client_paymentManager, "f").canHandleUpdate(update)) {
3113
+ promises.push(async () => {
3114
+ const ctxUpdate = await __classPrivateFieldGet(this, _Client_paymentManager, "f").handleUpdate(update);
3115
+ if (ctxUpdate) {
3116
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, ctxUpdate);
3117
+ }
3118
+ });
3119
+ }
3120
+ if (__classPrivateFieldGet(this, _Client_translationsManager, "f").canHandleUpdate(update)) {
3121
+ promises.push(async () => {
3122
+ const ctxUpdate = await __classPrivateFieldGet(this, _Client_translationsManager, "f").handleUpdate(update);
3123
+ if (ctxUpdate) {
3124
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, ctxUpdate);
3125
+ }
3126
+ });
3127
+ }
3019
3128
  return () => Promise.all(promises.map((v) => v()));
3020
3129
  }, _Client_getMe = async function _Client_getMe() {
3021
3130
  if (__classPrivateFieldGet(this, _Client_lastGetMe, "f") != null) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  var _ConnectionWebSocket_instances, _ConnectionWebSocket_url, _ConnectionWebSocket_webSocket, _ConnectionWebSocket_rMutex, _ConnectionWebSocket_wMutex, _ConnectionWebSocket_buffer, _ConnectionWebSocket_nextResolve, _ConnectionWebSocket_initWs, _ConnectionWebSocket_isConnecting, _ConnectionWebSocket_assertConnected, _ConnectionWebSocket_rejectRead;
13
13
  /**
14
14
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
15
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
15
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
16
16
  *
17
17
  * This file is part of MTKruto.
18
18
  *
package/esm/mod.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
package/esm/mod.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *