@mtkruto/node 0.77.1 → 0.78.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 (869) 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 +7 -1
  14. package/esm/3_errors.d.ts.map +1 -1
  15. package/esm/3_errors.js +7 -1
  16. package/esm/3_transport.d.ts +1 -1
  17. package/esm/3_transport.js +1 -1
  18. package/esm/3_types.d.ts +1 -1
  19. package/esm/3_types.js +1 -1
  20. package/esm/4_constants.js +1 -1
  21. package/esm/4_errors.d.ts +1 -1
  22. package/esm/4_errors.js +1 -1
  23. package/esm/4_session.d.ts +1 -1
  24. package/esm/4_session.js +1 -1
  25. package/esm/5_client.d.ts +1 -1
  26. package/esm/5_client.js +1 -1
  27. package/esm/client/0_abortable_loop.d.ts +1 -1
  28. package/esm/client/0_abortable_loop.js +1 -1
  29. package/esm/client/0_client_abstract.d.ts +1 -1
  30. package/esm/client/0_client_abstract.js +1 -1
  31. package/esm/client/0_filters.d.ts +1 -1
  32. package/esm/client/0_filters.js +1 -1
  33. package/esm/client/0_html.d.ts +1 -1
  34. package/esm/client/0_html.js +1 -1
  35. package/esm/client/0_markdown.d.ts +1 -1
  36. package/esm/client/0_markdown.js +1 -1
  37. package/esm/client/0_params.d.ts +8 -2
  38. package/esm/client/0_params.d.ts.map +1 -1
  39. package/esm/client/0_params.js +1 -1
  40. package/esm/client/0_password.js +1 -1
  41. package/esm/client/0_storage_operations.d.ts +1 -1
  42. package/esm/client/0_storage_operations.js +1 -1
  43. package/esm/client/0_update_processor.d.ts +1 -1
  44. package/esm/client/0_update_processor.js +1 -1
  45. package/esm/client/0_utilities.d.ts +2 -2
  46. package/esm/client/0_utilities.d.ts.map +1 -1
  47. package/esm/client/0_utilities.js +1 -1
  48. package/esm/client/1_client_plain.d.ts +1 -1
  49. package/esm/client/1_client_plain.js +1 -1
  50. package/esm/client/1_composer.d.ts +1 -1
  51. package/esm/client/1_composer.js +1 -1
  52. package/esm/client/1_types.d.ts +1 -1
  53. package/esm/client/1_types.js +1 -1
  54. package/esm/client/2_account_manager.d.ts +1 -1
  55. package/esm/client/2_account_manager.js +1 -1
  56. package/esm/client/2_bot_info_manager.d.ts +1 -1
  57. package/esm/client/2_bot_info_manager.js +1 -1
  58. package/esm/client/2_business_connection_manager.d.ts +1 -1
  59. package/esm/client/2_business_connection_manager.js +1 -1
  60. package/esm/client/2_client_encrypted.d.ts +1 -1
  61. package/esm/client/2_client_encrypted.js +1 -1
  62. package/esm/client/2_file_manager.d.ts.map +1 -1
  63. package/esm/client/2_file_manager.js +11 -3
  64. package/esm/client/2_network_statistics_manager.d.ts +1 -1
  65. package/esm/client/2_network_statistics_manager.js +1 -1
  66. package/esm/client/2_payment_manager.d.ts +1 -1
  67. package/esm/client/2_payment_manager.js +1 -1
  68. package/esm/client/2_reaction_manager.d.ts +1 -1
  69. package/esm/client/2_reaction_manager.js +1 -1
  70. package/esm/client/2_translations_manager.d.ts +1 -1
  71. package/esm/client/2_translations_manager.js +1 -1
  72. package/esm/client/2_update_manager.d.ts +1 -1
  73. package/esm/client/2_update_manager.js +1 -1
  74. package/esm/client/3_client_encrypted_pool.d.ts +1 -1
  75. package/esm/client/3_client_encrypted_pool.js +1 -1
  76. package/esm/client/3_message_manager.d.ts +1 -1
  77. package/esm/client/3_message_manager.js +1 -1
  78. package/esm/client/3_video_chat_manager.d.ts +3 -3
  79. package/esm/client/3_video_chat_manager.d.ts.map +1 -1
  80. package/esm/client/3_video_chat_manager.js +14 -9
  81. package/esm/client/4_callback_query_manager.d.ts +1 -1
  82. package/esm/client/4_callback_query_manager.js +1 -1
  83. package/esm/client/4_chat_list_manager.d.ts +1 -1
  84. package/esm/client/4_chat_list_manager.js +1 -1
  85. package/esm/client/4_chat_manager.d.ts +1 -1
  86. package/esm/client/4_chat_manager.js +1 -1
  87. package/esm/client/4_forum_manager.d.ts +1 -1
  88. package/esm/client/4_forum_manager.js +1 -1
  89. package/esm/client/4_gift_manager.d.ts +1 -1
  90. package/esm/client/4_gift_manager.js +1 -1
  91. package/esm/client/4_inline_query_manager.d.ts +1 -1
  92. package/esm/client/4_inline_query_manager.js +1 -1
  93. package/esm/client/4_link_preview_manager.d.ts +1 -1
  94. package/esm/client/4_link_preview_manager.js +1 -1
  95. package/esm/client/4_poll_manager.d.ts +1 -1
  96. package/esm/client/4_poll_manager.js +1 -1
  97. package/esm/client/4_story_manager.d.ts +1 -1
  98. package/esm/client/4_story_manager.js +1 -1
  99. package/esm/client/5_client.d.ts +19 -4
  100. package/esm/client/5_client.d.ts.map +1 -1
  101. package/esm/client/5_client.js +26 -4
  102. package/esm/connection/0_connection.d.ts +1 -1
  103. package/esm/connection/0_connection.js +1 -1
  104. package/esm/connection/1_connection_tcp.node.d.ts +1 -1
  105. package/esm/connection/1_connection_tcp.node.js +1 -1
  106. package/esm/connection/1_connection_web_socket.js +1 -1
  107. package/esm/mod.d.ts +1 -1
  108. package/esm/mod.js +1 -1
  109. package/esm/session/0_session_error.d.ts +1 -1
  110. package/esm/session/0_session_error.js +1 -1
  111. package/esm/session/0_session_state.d.ts +1 -1
  112. package/esm/session/0_session_state.js +1 -1
  113. package/esm/session/1_session.js +1 -1
  114. package/esm/session/2_session_encrypted.d.ts +1 -1
  115. package/esm/session/2_session_encrypted.js +1 -1
  116. package/esm/session/2_session_plain.d.ts +1 -1
  117. package/esm/session/2_session_plain.js +1 -1
  118. package/esm/storage/0_storage.d.ts +1 -1
  119. package/esm/storage/0_storage.js +1 -1
  120. package/esm/storage/1_utilities.d.ts +1 -1
  121. package/esm/storage/1_utilities.js +1 -1
  122. package/esm/storage/2_storage_indexed_db.d.ts +1 -1
  123. package/esm/storage/2_storage_indexed_db.js +1 -1
  124. package/esm/storage/2_storage_local_storage.node.d.ts +1 -1
  125. package/esm/storage/2_storage_local_storage.node.js +1 -1
  126. package/esm/storage/2_storage_memory.d.ts +1 -1
  127. package/esm/storage/2_storage_memory.js +1 -1
  128. package/esm/storage/2_storage_session_storage.d.ts +1 -1
  129. package/esm/storage/2_storage_session_storage.js +1 -1
  130. package/esm/tl/0_types.d.ts +1 -1
  131. package/esm/tl/0_types.js +1 -1
  132. package/esm/tl/0_utilities.d.ts +1 -1
  133. package/esm/tl/0_utilities.js +1 -1
  134. package/esm/tl/1_mtproto_api.d.ts +1 -1
  135. package/esm/tl/1_mtproto_api.js +1 -1
  136. package/esm/tl/1_telegram_api.d.ts +624 -29
  137. package/esm/tl/1_telegram_api.d.ts.map +1 -1
  138. package/esm/tl/1_telegram_api.js +791 -61
  139. package/esm/tl/1_tl_reader.d.ts +1 -1
  140. package/esm/tl/1_tl_reader.js +1 -1
  141. package/esm/tl/1_tl_writer.d.ts +1 -1
  142. package/esm/tl/1_tl_writer.js +1 -1
  143. package/esm/tl/1_utilities.d.ts +1 -1
  144. package/esm/tl/1_utilities.js +1 -1
  145. package/esm/tl/2_message.d.ts +1 -1
  146. package/esm/tl/2_message.js +1 -1
  147. package/esm/tl/2_mtproto.d.ts +1 -1
  148. package/esm/tl/2_mtproto.js +1 -1
  149. package/esm/tl/2_telegram.d.ts +1 -1
  150. package/esm/tl/2_telegram.js +1 -1
  151. package/esm/transport/0_obfuscation.js +1 -1
  152. package/esm/transport/0_transport.d.ts +1 -1
  153. package/esm/transport/0_transport.js +1 -1
  154. package/esm/transport/1_transport_abridged.d.ts +1 -1
  155. package/esm/transport/1_transport_abridged.js +1 -1
  156. package/esm/transport/1_transport_intermediate.d.ts +1 -1
  157. package/esm/transport/1_transport_intermediate.js +1 -1
  158. package/esm/transport/1_transport_provider.d.ts +1 -1
  159. package/esm/transport/1_transport_provider.js +1 -1
  160. package/esm/transport/2_transport_provider_tcp.d.ts +1 -1
  161. package/esm/transport/2_transport_provider_tcp.js +1 -1
  162. package/esm/transport/2_transport_provider_web_socket.d.ts +1 -1
  163. package/esm/transport/2_transport_provider_web_socket.js +1 -1
  164. package/esm/types/0_authorization_state.d.ts +1 -1
  165. package/esm/types/0_authorization_state.js +1 -1
  166. package/esm/types/0_birthday.d.ts +1 -1
  167. package/esm/types/0_birthday.js +1 -1
  168. package/esm/types/0_bot_command.d.ts +1 -1
  169. package/esm/types/0_bot_command.js +1 -1
  170. package/esm/types/0_callback_query_answer.d.ts +1 -1
  171. package/esm/types/0_callback_query_answer.js +1 -1
  172. package/esm/types/0_callback_query_question.d.ts +1 -1
  173. package/esm/types/0_callback_query_question.js +1 -1
  174. package/esm/types/0_chat_action.d.ts +1 -1
  175. package/esm/types/0_chat_action.js +1 -1
  176. package/esm/types/0_chat_administrator_rights.d.ts +1 -1
  177. package/esm/types/0_chat_administrator_rights.js +1 -1
  178. package/esm/types/0_chat_member_rights.d.ts +1 -1
  179. package/esm/types/0_chat_member_rights.js +1 -1
  180. package/esm/types/0_chat_photo.d.ts +1 -1
  181. package/esm/types/0_chat_photo.js +1 -1
  182. package/esm/types/0_connection_state.d.ts +1 -1
  183. package/esm/types/0_connection_state.js +1 -1
  184. package/esm/types/0_contact.d.ts +1 -1
  185. package/esm/types/0_contact.js +1 -1
  186. package/esm/types/0_dice.d.ts +1 -1
  187. package/esm/types/0_dice.js +1 -1
  188. package/esm/types/0_failed_invitation.d.ts +1 -1
  189. package/esm/types/0_failed_invitation.js +1 -1
  190. package/esm/types/0_file_source.d.ts +1 -1
  191. package/esm/types/0_file_source.js +1 -1
  192. package/esm/types/0_gift_value.d.ts +1 -1
  193. package/esm/types/0_gift_value.js +1 -1
  194. package/esm/types/0_giveaway_parameters.d.ts +1 -1
  195. package/esm/types/0_giveaway_parameters.js +1 -1
  196. package/esm/types/0_id.d.ts +1 -1
  197. package/esm/types/0_id.js +1 -1
  198. package/esm/types/0_invoice.d.ts +1 -1
  199. package/esm/types/0_invoice.js +1 -1
  200. package/esm/types/0_keyboard_button_poll_type.d.ts +1 -1
  201. package/esm/types/0_keyboard_button_poll_type.js +1 -1
  202. package/esm/types/0_link_preview_media_size.d.ts +1 -1
  203. package/esm/types/0_link_preview_media_size.js +1 -1
  204. package/esm/types/0_live_stream_channel.d.ts +1 -1
  205. package/esm/types/0_live_stream_channel.js +1 -1
  206. package/esm/types/0_location.d.ts +1 -1
  207. package/esm/types/0_location.js +1 -1
  208. package/esm/types/0_login_url.d.ts +1 -1
  209. package/esm/types/0_login_url.js +1 -1
  210. package/esm/types/0_mask_position.d.ts +1 -1
  211. package/esm/types/0_mask_position.js +1 -1
  212. package/esm/types/0_message_reference.d.ts +1 -1
  213. package/esm/types/0_message_reference.js +1 -1
  214. package/esm/types/0_message_search_filter.d.ts +1 -1
  215. package/esm/types/0_message_search_filter.js +1 -1
  216. package/esm/types/0_mini_app_button_info.d.ts +1 -1
  217. package/esm/types/0_mini_app_button_info.js +1 -1
  218. package/esm/types/0_mini_app_mode.d.ts +1 -1
  219. package/esm/types/0_mini_app_mode.js +1 -1
  220. package/esm/types/0_network_statistics_entry.d.ts +1 -1
  221. package/esm/types/0_network_statistics_entry.js +1 -1
  222. package/esm/types/0_opening_hours.d.ts +1 -1
  223. package/esm/types/0_opening_hours.js +1 -1
  224. package/esm/types/0_parse_mode.d.ts +1 -1
  225. package/esm/types/0_parse_mode.js +1 -1
  226. package/esm/types/0_price_tag.d.ts +1 -1
  227. package/esm/types/0_price_tag.js +1 -1
  228. package/esm/types/0_reaction.d.ts +1 -1
  229. package/esm/types/0_reaction.js +1 -1
  230. package/esm/types/0_refunded_payment.d.ts +1 -1
  231. package/esm/types/0_refunded_payment.js +1 -1
  232. package/esm/types/0_restriction_reason.d.ts +1 -1
  233. package/esm/types/0_restriction_reason.js +1 -1
  234. package/esm/types/0_self_destruct_option.d.ts +1 -1
  235. package/esm/types/0_self_destruct_option.js +1 -1
  236. package/esm/types/0_shipping_address.d.ts +1 -1
  237. package/esm/types/0_shipping_address.js +1 -1
  238. package/esm/types/0_slow_mode_duration.d.ts +1 -1
  239. package/esm/types/0_slow_mode_duration.js +1 -1
  240. package/esm/types/0_story_reference.d.ts +1 -1
  241. package/esm/types/0_story_reference.js +1 -1
  242. package/esm/types/0_switch_inline_query_chosen_chats.d.ts +1 -1
  243. package/esm/types/0_switch_inline_query_chosen_chats.js +1 -1
  244. package/esm/types/0_thumbnail.d.ts +1 -1
  245. package/esm/types/0_thumbnail.js +1 -1
  246. package/esm/types/0_translation.d.ts +1 -1
  247. package/esm/types/0_translation.js +1 -1
  248. package/esm/types/0_upload_progress.d.ts +1 -1
  249. package/esm/types/0_upload_progress.js +1 -1
  250. package/esm/types/0_video_chat.d.ts +1 -1
  251. package/esm/types/0_video_chat.js +1 -1
  252. package/esm/types/0_voice.d.ts +1 -1
  253. package/esm/types/0_voice.js +1 -1
  254. package/esm/types/0_voice_transcription.d.ts +1 -1
  255. package/esm/types/0_voice_transcription.js +1 -1
  256. package/esm/types/1_animation.d.ts +1 -1
  257. package/esm/types/1_animation.js +1 -1
  258. package/esm/types/1_audio.d.ts +1 -1
  259. package/esm/types/1_audio.js +1 -1
  260. package/esm/types/1_bot_command_scope.d.ts +1 -1
  261. package/esm/types/1_bot_command_scope.js +1 -1
  262. package/esm/types/1_chat_p.d.ts +3 -3
  263. package/esm/types/1_chat_p.d.ts.map +1 -1
  264. package/esm/types/1_chat_p.js +10 -3
  265. package/esm/types/1_document.d.ts +1 -1
  266. package/esm/types/1_document.js +1 -1
  267. package/esm/types/1_giveaway.d.ts +1 -1
  268. package/esm/types/1_giveaway.js +1 -1
  269. package/esm/types/1_inline_keyboard_button.d.ts +1 -1
  270. package/esm/types/1_inline_keyboard_button.js +1 -1
  271. package/esm/types/1_inline_query_result_button.d.ts +1 -1
  272. package/esm/types/1_inline_query_result_button.js +1 -1
  273. package/esm/types/1_input_story_content.d.ts +1 -1
  274. package/esm/types/1_input_story_content.js +1 -1
  275. package/esm/types/1_keyboard_button.d.ts +1 -1
  276. package/esm/types/1_keyboard_button.js +1 -1
  277. package/esm/types/1_message_reaction.d.ts +1 -1
  278. package/esm/types/1_message_reaction.js +1 -1
  279. package/esm/types/1_mini_app_info.d.ts +1 -1
  280. package/esm/types/1_mini_app_info.js +1 -1
  281. package/esm/types/1_network_statistics.d.ts +1 -1
  282. package/esm/types/1_network_statistics.js +1 -1
  283. package/esm/types/1_order_info.d.ts +1 -1
  284. package/esm/types/1_order_info.js +1 -1
  285. package/esm/types/1_photo.d.ts +1 -1
  286. package/esm/types/1_photo.js +1 -1
  287. package/esm/types/1_reaction_count.d.ts +1 -1
  288. package/esm/types/1_reaction_count.js +1 -1
  289. package/esm/types/1_sticker.d.ts +1 -1
  290. package/esm/types/1_sticker.js +1 -1
  291. package/esm/types/1_story_reaction.d.ts +1 -1
  292. package/esm/types/1_story_reaction.js +1 -1
  293. package/esm/types/1_venue.d.ts +1 -1
  294. package/esm/types/1_venue.js +1 -1
  295. package/esm/types/1_video.d.ts +1 -1
  296. package/esm/types/1_video.js +1 -1
  297. package/esm/types/1_video_note.d.ts +1 -1
  298. package/esm/types/1_video_note.js +1 -1
  299. package/esm/types/2_chat.d.ts +4 -4
  300. package/esm/types/2_chat.d.ts.map +1 -1
  301. package/esm/types/2_chat.js +1 -1
  302. package/esm/types/2_chat_member.d.ts +1 -1
  303. package/esm/types/2_chat_member.js +1 -1
  304. package/esm/types/2_inactive_chat.d.ts +1 -1
  305. package/esm/types/2_inactive_chat.js +1 -1
  306. package/esm/types/2_message_entity.d.ts +1 -1
  307. package/esm/types/2_message_entity.js +1 -1
  308. package/esm/types/2_message_interactions.d.ts +1 -1
  309. package/esm/types/2_message_interactions.js +1 -1
  310. package/esm/types/2_message_reaction_count.d.ts +1 -1
  311. package/esm/types/2_message_reaction_count.js +1 -1
  312. package/esm/types/2_message_reaction_list_item.d.ts +1 -1
  313. package/esm/types/2_message_reaction_list_item.js +1 -1
  314. package/esm/types/2_poll_answer.d.ts +1 -1
  315. package/esm/types/2_poll_answer.js +1 -1
  316. package/esm/types/2_reply_markup.d.ts +1 -1
  317. package/esm/types/2_reply_markup.js +1 -1
  318. package/esm/types/2_sticker_set.d.ts +1 -1
  319. package/esm/types/2_sticker_set.js +1 -1
  320. package/esm/types/2_story_content.d.ts +1 -1
  321. package/esm/types/2_story_content.js +1 -1
  322. package/esm/types/2_story_interactions.d.ts +1 -1
  323. package/esm/types/2_story_interactions.js +1 -1
  324. package/esm/types/2_story_interactive_area.d.ts +1 -1
  325. package/esm/types/2_story_interactive_area.js +1 -1
  326. package/esm/types/2_story_privacy.d.ts +1 -1
  327. package/esm/types/2_story_privacy.js +1 -1
  328. package/esm/types/2_successful_payment.d.ts +1 -1
  329. package/esm/types/2_successful_payment.js +1 -1
  330. package/esm/types/2_user.d.ts +1 -1
  331. package/esm/types/2_user.js +1 -1
  332. package/esm/types/3_business_connection.d.ts +1 -1
  333. package/esm/types/3_business_connection.js +1 -1
  334. package/esm/types/3_chat_settings.d.ts +1 -1
  335. package/esm/types/3_chat_settings.js +1 -1
  336. package/esm/types/3_chosen_inline_result.d.ts +1 -1
  337. package/esm/types/3_chosen_inline_result.js +1 -1
  338. package/esm/types/3_forward_header.d.ts +1 -1
  339. package/esm/types/3_forward_header.js +1 -1
  340. package/esm/types/3_game.d.ts +1 -1
  341. package/esm/types/3_game.js +1 -1
  342. package/esm/types/3_gift_upgraded_component.d.ts +1 -1
  343. package/esm/types/3_gift_upgraded_component.js +1 -1
  344. package/esm/types/3_inline_query.d.ts +1 -1
  345. package/esm/types/3_inline_query.js +1 -1
  346. package/esm/types/3_input_media.d.ts +1 -1
  347. package/esm/types/3_input_media.js +1 -1
  348. package/esm/types/3_invite_link.d.ts +1 -1
  349. package/esm/types/3_invite_link.js +1 -1
  350. package/esm/types/3_message_reaction_list.d.ts +1 -1
  351. package/esm/types/3_message_reaction_list.js +1 -1
  352. package/esm/types/3_message_reactions.d.ts +1 -1
  353. package/esm/types/3_message_reactions.js +1 -1
  354. package/esm/types/3_poll_option.d.ts +1 -1
  355. package/esm/types/3_poll_option.js +1 -1
  356. package/esm/types/3_pre_checkout_query.d.ts +1 -1
  357. package/esm/types/3_pre_checkout_query.js +1 -1
  358. package/esm/types/3_reply_quote.d.ts +1 -1
  359. package/esm/types/3_reply_quote.js +1 -1
  360. package/esm/types/3_story.d.ts +1 -1
  361. package/esm/types/3_story.js +1 -1
  362. package/esm/types/4_chat_member_updated.d.ts +1 -1
  363. package/esm/types/4_chat_member_updated.js +1 -1
  364. package/esm/types/4_gift.d.ts +1 -1
  365. package/esm/types/4_gift.js +1 -1
  366. package/esm/types/4_join_request.d.ts +1 -1
  367. package/esm/types/4_join_request.js +1 -1
  368. package/esm/types/4_poll.d.ts +1 -1
  369. package/esm/types/4_poll.js +1 -1
  370. package/esm/types/4_reply_to.d.ts +1 -1
  371. package/esm/types/4_reply_to.js +1 -1
  372. package/esm/types/5_claimed_gift.d.ts +1 -1
  373. package/esm/types/5_claimed_gift.js +1 -1
  374. package/esm/types/5_link_preview.d.ts +1 -1
  375. package/esm/types/5_link_preview.js +1 -1
  376. package/esm/types/6_claimed_gifts.d.ts +1 -1
  377. package/esm/types/6_claimed_gifts.js +1 -1
  378. package/esm/types/6_message.d.ts +1 -1
  379. package/esm/types/6_message.js +1 -1
  380. package/esm/types/6_message_content.d.ts +1 -1
  381. package/esm/types/6_message_content.js +1 -1
  382. package/esm/types/7_callback_query.d.ts +1 -1
  383. package/esm/types/7_callback_query.js +1 -1
  384. package/esm/types/7_chat_list_item.d.ts +1 -1
  385. package/esm/types/7_chat_list_item.js +1 -1
  386. package/esm/types/7_inline_query_result.d.ts +1 -1
  387. package/esm/types/7_inline_query_result.js +1 -1
  388. package/esm/types/7_saved_chat.d.ts +1 -1
  389. package/esm/types/7_saved_chat.js +1 -1
  390. package/esm/types/7_topic.d.ts +1 -1
  391. package/esm/types/7_topic.js +1 -1
  392. package/esm/types/8_inline_query_answer.d.ts +1 -1
  393. package/esm/types/8_inline_query_answer.js +1 -1
  394. package/esm/types/8_saved_chats.d.ts +1 -1
  395. package/esm/types/8_saved_chats.js +1 -1
  396. package/esm/types/8_update.d.ts +1 -1
  397. package/esm/types/8_update.js +1 -1
  398. package/esm/types/_file_id.d.ts +1 -1
  399. package/esm/types/_file_id.js +1 -1
  400. package/esm/types/_getters.d.ts +1 -1
  401. package/esm/types/_getters.js +1 -1
  402. package/esm/utilities/0_color.d.ts +1 -1
  403. package/esm/utilities/0_color.js +1 -1
  404. package/esm/utilities/0_env.js +1 -1
  405. package/esm/utilities/0_gzip.d.ts +1 -1
  406. package/esm/utilities/0_gzip.js +1 -1
  407. package/esm/utilities/0_hash.js +1 -1
  408. package/esm/utilities/0_int.js +1 -1
  409. package/esm/utilities/0_misc.js +1 -1
  410. package/esm/utilities/0_mutex.d.ts +1 -1
  411. package/esm/utilities/0_mutex.js +1 -1
  412. package/esm/utilities/0_object.d.ts +1 -1
  413. package/esm/utilities/0_object.js +1 -1
  414. package/esm/utilities/0_part_stream.d.ts +1 -1
  415. package/esm/utilities/0_part_stream.js +1 -1
  416. package/esm/utilities/0_rle.d.ts +1 -1
  417. package/esm/utilities/0_rle.js +1 -1
  418. package/esm/utilities/0_text.d.ts +1 -1
  419. package/esm/utilities/0_text.js +1 -1
  420. package/esm/utilities/0_types.d.ts +1 -1
  421. package/esm/utilities/0_types.js +1 -1
  422. package/esm/utilities/0_units.d.ts +1 -1
  423. package/esm/utilities/0_units.js +1 -1
  424. package/esm/utilities/1_auth.js +1 -1
  425. package/esm/utilities/1_base64.d.ts +1 -1
  426. package/esm/utilities/1_base64.js +1 -1
  427. package/esm/utilities/1_crypto.d.ts +1 -1
  428. package/esm/utilities/1_crypto.js +1 -1
  429. package/esm/utilities/1_logger.d.ts +1 -1
  430. package/esm/utilities/1_logger.js +1 -1
  431. package/esm/utilities/1_math.d.ts +1 -1
  432. package/esm/utilities/1_math.js +1 -1
  433. package/esm/utilities/2_queue.d.ts +1 -1
  434. package/esm/utilities/2_queue.js +1 -1
  435. package/package.json +1 -1
  436. package/script/0_deps.d.ts +1 -1
  437. package/script/0_deps.js +1 -1
  438. package/script/0_errors.d.ts +1 -1
  439. package/script/0_errors.js +1 -1
  440. package/script/1_utilities.d.ts +1 -1
  441. package/script/1_utilities.js +1 -1
  442. package/script/2_connection.d.ts +1 -1
  443. package/script/2_connection.js +1 -1
  444. package/script/2_storage.d.ts +1 -1
  445. package/script/2_storage.js +1 -1
  446. package/script/2_tl.d.ts +1 -1
  447. package/script/2_tl.js +1 -1
  448. package/script/3_errors.d.ts +7 -1
  449. package/script/3_errors.d.ts.map +1 -1
  450. package/script/3_errors.js +12 -4
  451. package/script/3_transport.d.ts +1 -1
  452. package/script/3_transport.js +1 -1
  453. package/script/3_types.d.ts +1 -1
  454. package/script/3_types.js +1 -1
  455. package/script/4_constants.js +1 -1
  456. package/script/4_errors.d.ts +1 -1
  457. package/script/4_errors.js +1 -1
  458. package/script/4_session.d.ts +1 -1
  459. package/script/4_session.js +1 -1
  460. package/script/5_client.d.ts +1 -1
  461. package/script/5_client.js +1 -1
  462. package/script/client/0_abortable_loop.d.ts +1 -1
  463. package/script/client/0_abortable_loop.js +1 -1
  464. package/script/client/0_client_abstract.d.ts +1 -1
  465. package/script/client/0_client_abstract.js +1 -1
  466. package/script/client/0_filters.d.ts +1 -1
  467. package/script/client/0_filters.js +1 -1
  468. package/script/client/0_html.d.ts +1 -1
  469. package/script/client/0_html.js +1 -1
  470. package/script/client/0_markdown.d.ts +1 -1
  471. package/script/client/0_markdown.js +1 -1
  472. package/script/client/0_params.d.ts +8 -2
  473. package/script/client/0_params.d.ts.map +1 -1
  474. package/script/client/0_params.js +1 -1
  475. package/script/client/0_password.js +1 -1
  476. package/script/client/0_storage_operations.d.ts +1 -1
  477. package/script/client/0_storage_operations.js +1 -1
  478. package/script/client/0_update_processor.d.ts +1 -1
  479. package/script/client/0_update_processor.js +1 -1
  480. package/script/client/0_utilities.d.ts +2 -2
  481. package/script/client/0_utilities.d.ts.map +1 -1
  482. package/script/client/0_utilities.js +1 -1
  483. package/script/client/1_client_plain.d.ts +1 -1
  484. package/script/client/1_client_plain.js +1 -1
  485. package/script/client/1_composer.d.ts +1 -1
  486. package/script/client/1_composer.js +1 -1
  487. package/script/client/1_types.d.ts +1 -1
  488. package/script/client/1_types.js +1 -1
  489. package/script/client/2_account_manager.d.ts +1 -1
  490. package/script/client/2_account_manager.js +1 -1
  491. package/script/client/2_bot_info_manager.d.ts +1 -1
  492. package/script/client/2_bot_info_manager.js +1 -1
  493. package/script/client/2_business_connection_manager.d.ts +1 -1
  494. package/script/client/2_business_connection_manager.js +1 -1
  495. package/script/client/2_client_encrypted.d.ts +1 -1
  496. package/script/client/2_client_encrypted.js +1 -1
  497. package/script/client/2_file_manager.d.ts.map +1 -1
  498. package/script/client/2_file_manager.js +10 -2
  499. package/script/client/2_network_statistics_manager.d.ts +1 -1
  500. package/script/client/2_network_statistics_manager.js +1 -1
  501. package/script/client/2_payment_manager.d.ts +1 -1
  502. package/script/client/2_payment_manager.js +1 -1
  503. package/script/client/2_reaction_manager.d.ts +1 -1
  504. package/script/client/2_reaction_manager.js +1 -1
  505. package/script/client/2_translations_manager.d.ts +1 -1
  506. package/script/client/2_translations_manager.js +1 -1
  507. package/script/client/2_update_manager.d.ts +1 -1
  508. package/script/client/2_update_manager.js +1 -1
  509. package/script/client/3_client_encrypted_pool.d.ts +1 -1
  510. package/script/client/3_client_encrypted_pool.js +1 -1
  511. package/script/client/3_message_manager.d.ts +1 -1
  512. package/script/client/3_message_manager.js +1 -1
  513. package/script/client/3_video_chat_manager.d.ts +3 -3
  514. package/script/client/3_video_chat_manager.d.ts.map +1 -1
  515. package/script/client/3_video_chat_manager.js +12 -7
  516. package/script/client/4_callback_query_manager.d.ts +1 -1
  517. package/script/client/4_callback_query_manager.js +1 -1
  518. package/script/client/4_chat_list_manager.d.ts +1 -1
  519. package/script/client/4_chat_list_manager.js +1 -1
  520. package/script/client/4_chat_manager.d.ts +1 -1
  521. package/script/client/4_chat_manager.js +1 -1
  522. package/script/client/4_forum_manager.d.ts +1 -1
  523. package/script/client/4_forum_manager.js +1 -1
  524. package/script/client/4_gift_manager.d.ts +1 -1
  525. package/script/client/4_gift_manager.js +1 -1
  526. package/script/client/4_inline_query_manager.d.ts +1 -1
  527. package/script/client/4_inline_query_manager.js +1 -1
  528. package/script/client/4_link_preview_manager.d.ts +1 -1
  529. package/script/client/4_link_preview_manager.js +1 -1
  530. package/script/client/4_poll_manager.d.ts +1 -1
  531. package/script/client/4_poll_manager.js +1 -1
  532. package/script/client/4_story_manager.d.ts +1 -1
  533. package/script/client/4_story_manager.js +1 -1
  534. package/script/client/5_client.d.ts +19 -4
  535. package/script/client/5_client.d.ts.map +1 -1
  536. package/script/client/5_client.js +26 -4
  537. package/script/connection/0_connection.d.ts +1 -1
  538. package/script/connection/0_connection.js +1 -1
  539. package/script/connection/1_connection_tcp.node.d.ts +1 -1
  540. package/script/connection/1_connection_tcp.node.js +1 -1
  541. package/script/connection/1_connection_web_socket.js +1 -1
  542. package/script/mod.d.ts +1 -1
  543. package/script/mod.js +1 -1
  544. package/script/session/0_session_error.d.ts +1 -1
  545. package/script/session/0_session_error.js +1 -1
  546. package/script/session/0_session_state.d.ts +1 -1
  547. package/script/session/0_session_state.js +1 -1
  548. package/script/session/1_session.js +1 -1
  549. package/script/session/2_session_encrypted.d.ts +1 -1
  550. package/script/session/2_session_encrypted.js +1 -1
  551. package/script/session/2_session_plain.d.ts +1 -1
  552. package/script/session/2_session_plain.js +1 -1
  553. package/script/storage/0_storage.d.ts +1 -1
  554. package/script/storage/0_storage.js +1 -1
  555. package/script/storage/1_utilities.d.ts +1 -1
  556. package/script/storage/1_utilities.js +1 -1
  557. package/script/storage/2_storage_indexed_db.d.ts +1 -1
  558. package/script/storage/2_storage_indexed_db.js +1 -1
  559. package/script/storage/2_storage_local_storage.node.d.ts +1 -1
  560. package/script/storage/2_storage_local_storage.node.js +1 -1
  561. package/script/storage/2_storage_memory.d.ts +1 -1
  562. package/script/storage/2_storage_memory.js +1 -1
  563. package/script/storage/2_storage_session_storage.d.ts +1 -1
  564. package/script/storage/2_storage_session_storage.js +1 -1
  565. package/script/tl/0_types.d.ts +1 -1
  566. package/script/tl/0_types.js +1 -1
  567. package/script/tl/0_utilities.d.ts +1 -1
  568. package/script/tl/0_utilities.js +1 -1
  569. package/script/tl/1_mtproto_api.d.ts +1 -1
  570. package/script/tl/1_mtproto_api.js +1 -1
  571. package/script/tl/1_telegram_api.d.ts +624 -29
  572. package/script/tl/1_telegram_api.d.ts.map +1 -1
  573. package/script/tl/1_telegram_api.js +791 -61
  574. package/script/tl/1_tl_reader.d.ts +1 -1
  575. package/script/tl/1_tl_reader.js +1 -1
  576. package/script/tl/1_tl_writer.d.ts +1 -1
  577. package/script/tl/1_tl_writer.js +1 -1
  578. package/script/tl/1_utilities.d.ts +1 -1
  579. package/script/tl/1_utilities.js +1 -1
  580. package/script/tl/2_message.d.ts +1 -1
  581. package/script/tl/2_message.js +1 -1
  582. package/script/tl/2_mtproto.d.ts +1 -1
  583. package/script/tl/2_mtproto.js +1 -1
  584. package/script/tl/2_telegram.d.ts +1 -1
  585. package/script/tl/2_telegram.js +1 -1
  586. package/script/transport/0_obfuscation.js +1 -1
  587. package/script/transport/0_transport.d.ts +1 -1
  588. package/script/transport/0_transport.js +1 -1
  589. package/script/transport/1_transport_abridged.d.ts +1 -1
  590. package/script/transport/1_transport_abridged.js +1 -1
  591. package/script/transport/1_transport_intermediate.d.ts +1 -1
  592. package/script/transport/1_transport_intermediate.js +1 -1
  593. package/script/transport/1_transport_provider.d.ts +1 -1
  594. package/script/transport/1_transport_provider.js +1 -1
  595. package/script/transport/2_transport_provider_tcp.d.ts +1 -1
  596. package/script/transport/2_transport_provider_tcp.js +1 -1
  597. package/script/transport/2_transport_provider_web_socket.d.ts +1 -1
  598. package/script/transport/2_transport_provider_web_socket.js +1 -1
  599. package/script/types/0_authorization_state.d.ts +1 -1
  600. package/script/types/0_authorization_state.js +1 -1
  601. package/script/types/0_birthday.d.ts +1 -1
  602. package/script/types/0_birthday.js +1 -1
  603. package/script/types/0_bot_command.d.ts +1 -1
  604. package/script/types/0_bot_command.js +1 -1
  605. package/script/types/0_callback_query_answer.d.ts +1 -1
  606. package/script/types/0_callback_query_answer.js +1 -1
  607. package/script/types/0_callback_query_question.d.ts +1 -1
  608. package/script/types/0_callback_query_question.js +1 -1
  609. package/script/types/0_chat_action.d.ts +1 -1
  610. package/script/types/0_chat_action.js +1 -1
  611. package/script/types/0_chat_administrator_rights.d.ts +1 -1
  612. package/script/types/0_chat_administrator_rights.js +1 -1
  613. package/script/types/0_chat_member_rights.d.ts +1 -1
  614. package/script/types/0_chat_member_rights.js +1 -1
  615. package/script/types/0_chat_photo.d.ts +1 -1
  616. package/script/types/0_chat_photo.js +1 -1
  617. package/script/types/0_connection_state.d.ts +1 -1
  618. package/script/types/0_connection_state.js +1 -1
  619. package/script/types/0_contact.d.ts +1 -1
  620. package/script/types/0_contact.js +1 -1
  621. package/script/types/0_dice.d.ts +1 -1
  622. package/script/types/0_dice.js +1 -1
  623. package/script/types/0_failed_invitation.d.ts +1 -1
  624. package/script/types/0_failed_invitation.js +1 -1
  625. package/script/types/0_file_source.d.ts +1 -1
  626. package/script/types/0_file_source.js +1 -1
  627. package/script/types/0_gift_value.d.ts +1 -1
  628. package/script/types/0_gift_value.js +1 -1
  629. package/script/types/0_giveaway_parameters.d.ts +1 -1
  630. package/script/types/0_giveaway_parameters.js +1 -1
  631. package/script/types/0_id.d.ts +1 -1
  632. package/script/types/0_id.js +1 -1
  633. package/script/types/0_invoice.d.ts +1 -1
  634. package/script/types/0_invoice.js +1 -1
  635. package/script/types/0_keyboard_button_poll_type.d.ts +1 -1
  636. package/script/types/0_keyboard_button_poll_type.js +1 -1
  637. package/script/types/0_link_preview_media_size.d.ts +1 -1
  638. package/script/types/0_link_preview_media_size.js +1 -1
  639. package/script/types/0_live_stream_channel.d.ts +1 -1
  640. package/script/types/0_live_stream_channel.js +1 -1
  641. package/script/types/0_location.d.ts +1 -1
  642. package/script/types/0_location.js +1 -1
  643. package/script/types/0_login_url.d.ts +1 -1
  644. package/script/types/0_login_url.js +1 -1
  645. package/script/types/0_mask_position.d.ts +1 -1
  646. package/script/types/0_mask_position.js +1 -1
  647. package/script/types/0_message_reference.d.ts +1 -1
  648. package/script/types/0_message_reference.js +1 -1
  649. package/script/types/0_message_search_filter.d.ts +1 -1
  650. package/script/types/0_message_search_filter.js +1 -1
  651. package/script/types/0_mini_app_button_info.d.ts +1 -1
  652. package/script/types/0_mini_app_button_info.js +1 -1
  653. package/script/types/0_mini_app_mode.d.ts +1 -1
  654. package/script/types/0_mini_app_mode.js +1 -1
  655. package/script/types/0_network_statistics_entry.d.ts +1 -1
  656. package/script/types/0_network_statistics_entry.js +1 -1
  657. package/script/types/0_opening_hours.d.ts +1 -1
  658. package/script/types/0_opening_hours.js +1 -1
  659. package/script/types/0_parse_mode.d.ts +1 -1
  660. package/script/types/0_parse_mode.js +1 -1
  661. package/script/types/0_price_tag.d.ts +1 -1
  662. package/script/types/0_price_tag.js +1 -1
  663. package/script/types/0_reaction.d.ts +1 -1
  664. package/script/types/0_reaction.js +1 -1
  665. package/script/types/0_refunded_payment.d.ts +1 -1
  666. package/script/types/0_refunded_payment.js +1 -1
  667. package/script/types/0_restriction_reason.d.ts +1 -1
  668. package/script/types/0_restriction_reason.js +1 -1
  669. package/script/types/0_self_destruct_option.d.ts +1 -1
  670. package/script/types/0_self_destruct_option.js +1 -1
  671. package/script/types/0_shipping_address.d.ts +1 -1
  672. package/script/types/0_shipping_address.js +1 -1
  673. package/script/types/0_slow_mode_duration.d.ts +1 -1
  674. package/script/types/0_slow_mode_duration.js +1 -1
  675. package/script/types/0_story_reference.d.ts +1 -1
  676. package/script/types/0_story_reference.js +1 -1
  677. package/script/types/0_switch_inline_query_chosen_chats.d.ts +1 -1
  678. package/script/types/0_switch_inline_query_chosen_chats.js +1 -1
  679. package/script/types/0_thumbnail.d.ts +1 -1
  680. package/script/types/0_thumbnail.js +1 -1
  681. package/script/types/0_translation.d.ts +1 -1
  682. package/script/types/0_translation.js +1 -1
  683. package/script/types/0_upload_progress.d.ts +1 -1
  684. package/script/types/0_upload_progress.js +1 -1
  685. package/script/types/0_video_chat.d.ts +1 -1
  686. package/script/types/0_video_chat.js +1 -1
  687. package/script/types/0_voice.d.ts +1 -1
  688. package/script/types/0_voice.js +1 -1
  689. package/script/types/0_voice_transcription.d.ts +1 -1
  690. package/script/types/0_voice_transcription.js +1 -1
  691. package/script/types/1_animation.d.ts +1 -1
  692. package/script/types/1_animation.js +1 -1
  693. package/script/types/1_audio.d.ts +1 -1
  694. package/script/types/1_audio.js +1 -1
  695. package/script/types/1_bot_command_scope.d.ts +1 -1
  696. package/script/types/1_bot_command_scope.js +1 -1
  697. package/script/types/1_chat_p.d.ts +3 -3
  698. package/script/types/1_chat_p.d.ts.map +1 -1
  699. package/script/types/1_chat_p.js +10 -3
  700. package/script/types/1_document.d.ts +1 -1
  701. package/script/types/1_document.js +1 -1
  702. package/script/types/1_giveaway.d.ts +1 -1
  703. package/script/types/1_giveaway.js +1 -1
  704. package/script/types/1_inline_keyboard_button.d.ts +1 -1
  705. package/script/types/1_inline_keyboard_button.js +1 -1
  706. package/script/types/1_inline_query_result_button.d.ts +1 -1
  707. package/script/types/1_inline_query_result_button.js +1 -1
  708. package/script/types/1_input_story_content.d.ts +1 -1
  709. package/script/types/1_input_story_content.js +1 -1
  710. package/script/types/1_keyboard_button.d.ts +1 -1
  711. package/script/types/1_keyboard_button.js +1 -1
  712. package/script/types/1_message_reaction.d.ts +1 -1
  713. package/script/types/1_message_reaction.js +1 -1
  714. package/script/types/1_mini_app_info.d.ts +1 -1
  715. package/script/types/1_mini_app_info.js +1 -1
  716. package/script/types/1_network_statistics.d.ts +1 -1
  717. package/script/types/1_network_statistics.js +1 -1
  718. package/script/types/1_order_info.d.ts +1 -1
  719. package/script/types/1_order_info.js +1 -1
  720. package/script/types/1_photo.d.ts +1 -1
  721. package/script/types/1_photo.js +1 -1
  722. package/script/types/1_reaction_count.d.ts +1 -1
  723. package/script/types/1_reaction_count.js +1 -1
  724. package/script/types/1_sticker.d.ts +1 -1
  725. package/script/types/1_sticker.js +1 -1
  726. package/script/types/1_story_reaction.d.ts +1 -1
  727. package/script/types/1_story_reaction.js +1 -1
  728. package/script/types/1_venue.d.ts +1 -1
  729. package/script/types/1_venue.js +1 -1
  730. package/script/types/1_video.d.ts +1 -1
  731. package/script/types/1_video.js +1 -1
  732. package/script/types/1_video_note.d.ts +1 -1
  733. package/script/types/1_video_note.js +1 -1
  734. package/script/types/2_chat.d.ts +4 -4
  735. package/script/types/2_chat.d.ts.map +1 -1
  736. package/script/types/2_chat.js +1 -1
  737. package/script/types/2_chat_member.d.ts +1 -1
  738. package/script/types/2_chat_member.js +1 -1
  739. package/script/types/2_inactive_chat.d.ts +1 -1
  740. package/script/types/2_inactive_chat.js +1 -1
  741. package/script/types/2_message_entity.d.ts +1 -1
  742. package/script/types/2_message_entity.js +1 -1
  743. package/script/types/2_message_interactions.d.ts +1 -1
  744. package/script/types/2_message_interactions.js +1 -1
  745. package/script/types/2_message_reaction_count.d.ts +1 -1
  746. package/script/types/2_message_reaction_count.js +1 -1
  747. package/script/types/2_message_reaction_list_item.d.ts +1 -1
  748. package/script/types/2_message_reaction_list_item.js +1 -1
  749. package/script/types/2_poll_answer.d.ts +1 -1
  750. package/script/types/2_poll_answer.js +1 -1
  751. package/script/types/2_reply_markup.d.ts +1 -1
  752. package/script/types/2_reply_markup.js +1 -1
  753. package/script/types/2_sticker_set.d.ts +1 -1
  754. package/script/types/2_sticker_set.js +1 -1
  755. package/script/types/2_story_content.d.ts +1 -1
  756. package/script/types/2_story_content.js +1 -1
  757. package/script/types/2_story_interactions.d.ts +1 -1
  758. package/script/types/2_story_interactions.js +1 -1
  759. package/script/types/2_story_interactive_area.d.ts +1 -1
  760. package/script/types/2_story_interactive_area.js +1 -1
  761. package/script/types/2_story_privacy.d.ts +1 -1
  762. package/script/types/2_story_privacy.js +1 -1
  763. package/script/types/2_successful_payment.d.ts +1 -1
  764. package/script/types/2_successful_payment.js +1 -1
  765. package/script/types/2_user.d.ts +1 -1
  766. package/script/types/2_user.js +1 -1
  767. package/script/types/3_business_connection.d.ts +1 -1
  768. package/script/types/3_business_connection.js +1 -1
  769. package/script/types/3_chat_settings.d.ts +1 -1
  770. package/script/types/3_chat_settings.js +1 -1
  771. package/script/types/3_chosen_inline_result.d.ts +1 -1
  772. package/script/types/3_chosen_inline_result.js +1 -1
  773. package/script/types/3_forward_header.d.ts +1 -1
  774. package/script/types/3_forward_header.js +1 -1
  775. package/script/types/3_game.d.ts +1 -1
  776. package/script/types/3_game.js +1 -1
  777. package/script/types/3_gift_upgraded_component.d.ts +1 -1
  778. package/script/types/3_gift_upgraded_component.js +1 -1
  779. package/script/types/3_inline_query.d.ts +1 -1
  780. package/script/types/3_inline_query.js +1 -1
  781. package/script/types/3_input_media.d.ts +1 -1
  782. package/script/types/3_input_media.js +1 -1
  783. package/script/types/3_invite_link.d.ts +1 -1
  784. package/script/types/3_invite_link.js +1 -1
  785. package/script/types/3_message_reaction_list.d.ts +1 -1
  786. package/script/types/3_message_reaction_list.js +1 -1
  787. package/script/types/3_message_reactions.d.ts +1 -1
  788. package/script/types/3_message_reactions.js +1 -1
  789. package/script/types/3_poll_option.d.ts +1 -1
  790. package/script/types/3_poll_option.js +1 -1
  791. package/script/types/3_pre_checkout_query.d.ts +1 -1
  792. package/script/types/3_pre_checkout_query.js +1 -1
  793. package/script/types/3_reply_quote.d.ts +1 -1
  794. package/script/types/3_reply_quote.js +1 -1
  795. package/script/types/3_story.d.ts +1 -1
  796. package/script/types/3_story.js +1 -1
  797. package/script/types/4_chat_member_updated.d.ts +1 -1
  798. package/script/types/4_chat_member_updated.js +1 -1
  799. package/script/types/4_gift.d.ts +1 -1
  800. package/script/types/4_gift.js +1 -1
  801. package/script/types/4_join_request.d.ts +1 -1
  802. package/script/types/4_join_request.js +1 -1
  803. package/script/types/4_poll.d.ts +1 -1
  804. package/script/types/4_poll.js +1 -1
  805. package/script/types/4_reply_to.d.ts +1 -1
  806. package/script/types/4_reply_to.js +1 -1
  807. package/script/types/5_claimed_gift.d.ts +1 -1
  808. package/script/types/5_claimed_gift.js +1 -1
  809. package/script/types/5_link_preview.d.ts +1 -1
  810. package/script/types/5_link_preview.js +1 -1
  811. package/script/types/6_claimed_gifts.d.ts +1 -1
  812. package/script/types/6_claimed_gifts.js +1 -1
  813. package/script/types/6_message.d.ts +1 -1
  814. package/script/types/6_message.js +1 -1
  815. package/script/types/6_message_content.d.ts +1 -1
  816. package/script/types/6_message_content.js +1 -1
  817. package/script/types/7_callback_query.d.ts +1 -1
  818. package/script/types/7_callback_query.js +1 -1
  819. package/script/types/7_chat_list_item.d.ts +1 -1
  820. package/script/types/7_chat_list_item.js +1 -1
  821. package/script/types/7_inline_query_result.d.ts +1 -1
  822. package/script/types/7_inline_query_result.js +1 -1
  823. package/script/types/7_saved_chat.d.ts +1 -1
  824. package/script/types/7_saved_chat.js +1 -1
  825. package/script/types/7_topic.d.ts +1 -1
  826. package/script/types/7_topic.js +1 -1
  827. package/script/types/8_inline_query_answer.d.ts +1 -1
  828. package/script/types/8_inline_query_answer.js +1 -1
  829. package/script/types/8_saved_chats.d.ts +1 -1
  830. package/script/types/8_saved_chats.js +1 -1
  831. package/script/types/8_update.d.ts +1 -1
  832. package/script/types/8_update.js +1 -1
  833. package/script/types/_file_id.d.ts +1 -1
  834. package/script/types/_file_id.js +1 -1
  835. package/script/types/_getters.d.ts +1 -1
  836. package/script/types/_getters.js +1 -1
  837. package/script/utilities/0_color.d.ts +1 -1
  838. package/script/utilities/0_color.js +1 -1
  839. package/script/utilities/0_env.js +1 -1
  840. package/script/utilities/0_gzip.d.ts +1 -1
  841. package/script/utilities/0_gzip.js +1 -1
  842. package/script/utilities/0_hash.js +1 -1
  843. package/script/utilities/0_int.js +1 -1
  844. package/script/utilities/0_misc.js +1 -1
  845. package/script/utilities/0_mutex.d.ts +1 -1
  846. package/script/utilities/0_mutex.js +1 -1
  847. package/script/utilities/0_object.d.ts +1 -1
  848. package/script/utilities/0_object.js +1 -1
  849. package/script/utilities/0_part_stream.d.ts +1 -1
  850. package/script/utilities/0_part_stream.js +1 -1
  851. package/script/utilities/0_rle.d.ts +1 -1
  852. package/script/utilities/0_rle.js +1 -1
  853. package/script/utilities/0_text.d.ts +1 -1
  854. package/script/utilities/0_text.js +1 -1
  855. package/script/utilities/0_types.d.ts +1 -1
  856. package/script/utilities/0_types.js +1 -1
  857. package/script/utilities/0_units.d.ts +1 -1
  858. package/script/utilities/0_units.js +1 -1
  859. package/script/utilities/1_auth.js +1 -1
  860. package/script/utilities/1_base64.d.ts +1 -1
  861. package/script/utilities/1_base64.js +1 -1
  862. package/script/utilities/1_crypto.d.ts +1 -1
  863. package/script/utilities/1_crypto.js +1 -1
  864. package/script/utilities/1_logger.d.ts +1 -1
  865. package/script/utilities/1_logger.js +1 -1
  866. package/script/utilities/1_math.d.ts +1 -1
  867. package/script/utilities/1_math.js +1 -1
  868. package/script/utilities/2_queue.d.ts +1 -1
  869. package/script/utilities/2_queue.js +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"2_file_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_file_manager.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAoD,KAAK,UAAU,EAA8C,KAAK,OAAO,EAAkB,MAAM,eAAe,CAAC;AAG5K,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,qBAAa,WAAW;;gBAOV,CAAC,EAAE,CAAC;IAQhB,aAAa;IASP,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,EAAE,WAAW,UAAO,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;IAmP1I,aAAa,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,SAAS;IA4EtG,MAAM,CAAC,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAevD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM;IAY7B,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc;IAgEjD,iBAAiB,CAAC,eAAe,EAAE,GAAG,CAAC,iBAAiB,EAAE,IAAI,SAAI;IAqBlE,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE;CA6CnD"}
1
+ {"version":3,"file":"2_file_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_file_manager.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,EAAoD,KAAK,UAAU,EAA8C,KAAK,OAAO,EAAkB,MAAM,eAAe,CAAC;AAG5K,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,qBAAa,WAAW;;gBAOV,CAAC,EAAE,CAAC;IAQhB,aAAa;IASP,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,EAAE,WAAW,UAAO,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;IAwP1I,aAAa,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,SAAS;IA4EtG,MAAM,CAAC,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAevD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM;IAY7B,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc;IAgEjD,iBAAiB,CAAC,eAAe,EAAE,GAAG,CAAC,iBAAiB,EAAE,IAAI,SAAI;IAqBlE,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE;CA6CnD"}
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.FileManager = void 0;
38
38
  /**
39
39
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
40
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
40
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
41
41
  *
42
42
  * This file is part of MTKruto.
43
43
  *
@@ -59,6 +59,7 @@ const _0_deps_js_1 = require("../0_deps.js");
59
59
  const _0_errors_js_1 = require("../0_errors.js");
60
60
  const _1_utilities_js_1 = require("../1_utilities.js");
61
61
  const _2_tl_js_1 = require("../2_tl.js");
62
+ const _3_errors_js_1 = require("../3_errors.js");
62
63
  const _3_transport_js_1 = require("../3_transport.js");
63
64
  const _3_types_js_1 = require("../3_types.js");
64
65
  const _4_constants_js_1 = require("../4_constants.js");
@@ -231,7 +232,14 @@ class FileManager {
231
232
  }
232
233
  }
233
234
  async #handleError(err, retryIn, logPrefix) {
234
- if (retryIn > 0) {
235
+ if (err instanceof _3_errors_js_1.TimeTooBig || err instanceof _3_errors_js_1.TimeTooSmall) {
236
+ throw err;
237
+ }
238
+ else if (err instanceof _4_errors_js_1.FloodWait) {
239
+ this.#Lupload.warning(`${logPrefix} retrying in ${err.seconds} seconds:`, err);
240
+ await (0, _0_deps_js_1.delay)(err.seconds * _0_deps_js_1.SECOND);
241
+ }
242
+ else if (retryIn > 0) {
235
243
  this.#Lupload.warning(`${logPrefix} retrying in ${retryIn} seconds:`, err);
236
244
  await (0, _0_deps_js_1.delay)(retryIn * _0_deps_js_1.SECOND);
237
245
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -19,7 +19,7 @@
19
19
  */
20
20
  import { Api } from "../2_tl.js";
21
21
  import { type ID, type Update, type VideoChatActive, type VideoChatScheduled } from "../3_types.js";
22
- import type { DownloadLiveStreamChunkParams, JoinVideoChatParams, StartVideoChatParams } from "./0_params.js";
22
+ import type { DownloadLiveStreamSegmentParams, JoinVideoChatParams, StartVideoChatParams } from "./0_params.js";
23
23
  import type { UpdateProcessor } from "./0_update_processor.js";
24
24
  import type { C as C_ } from "./1_types.js";
25
25
  import type { FileManager } from "./2_file_manager.js";
@@ -40,7 +40,7 @@ export declare class VideoChatManager implements UpdateProcessor<VideoChatManage
40
40
  canHandleUpdate(update: Api.Update): update is VideoChatManagerUpdate;
41
41
  handleUpdate(update: VideoChatManagerUpdate): Promise<Update | null>;
42
42
  getLiveStreamChannels(id: string): Promise<import("../3_types.js").LiveStreamChannel[]>;
43
- downloadLiveStreamChunk(id: string, channel: number, scale: number, timestamp: number, params?: DownloadLiveStreamChunkParams): AsyncGenerator<Uint8Array<ArrayBufferLike>, void, any>;
43
+ downloadLiveStreamSegment(id: string, channel: number, scale: number, timestamp: number, params?: DownloadLiveStreamSegmentParams): Promise<Uint8Array<ArrayBuffer>>;
44
44
  }
45
45
  export {};
46
46
  //# sourceMappingURL=3_video_chat_manager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"3_video_chat_manager.d.ts","sourceRoot":"","sources":["../../src/client/3_video_chat_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAkD,KAAK,EAAE,EAAE,KAAK,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACpJ,OAAO,KAAK,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC9G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,UAAU,CAAE,SAAQ,EAAE;IACpB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,QAAA,MAAM,uBAAuB,8BAEnB,CAAC;AAEX,KAAK,sBAAsB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAElF,qBAAa,gBAAiB,YAAW,eAAe,CAAC,sBAAsB,EAAE,IAAI,CAAC;;gBAGxE,CAAC,EAAE,CAAC;IAkBV,cAAc,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,oBAAoB;IAKxD,iBAAiB,CAAC,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB;IAc5E,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB;IAUvE,cAAc,CAAC,EAAE,EAAE,MAAM;IAKzB,cAAc,CAAC,EAAE,EAAE,MAAM;IA+BzB,YAAY,CAAC,EAAE,EAAE,MAAM;IAK7B,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,sBAAsB;IAI/D,YAAY,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA8BpE,qBAAqB,CAAC,EAAE,EAAE,MAAM;IAW/B,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,6BAA6B;CAmBrI"}
1
+ {"version":3,"file":"3_video_chat_manager.d.ts","sourceRoot":"","sources":["../../src/client/3_video_chat_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAkD,KAAK,EAAE,EAAE,KAAK,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEpJ,OAAO,KAAK,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAChH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,UAAU,CAAE,SAAQ,EAAE;IACpB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,QAAA,MAAM,uBAAuB,8BAEnB,CAAC;AAEX,KAAK,sBAAsB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAElF,qBAAa,gBAAiB,YAAW,eAAe,CAAC,sBAAsB,EAAE,IAAI,CAAC;;gBAGxE,CAAC,EAAE,CAAC;IAkBV,cAAc,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,oBAAoB;IAKxD,iBAAiB,CAAC,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB;IAc5E,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB;IAUvE,cAAc,CAAC,EAAE,EAAE,MAAM;IAKzB,cAAc,CAAC,EAAE,EAAE,MAAM;IA+BzB,YAAY,CAAC,EAAE,EAAE,MAAM;IAK7B,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,sBAAsB;IAI/D,YAAY,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA8BpE,qBAAqB,CAAC,EAAE,EAAE,MAAM;IAWhC,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,+BAA+B;CAyBxI"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -26,6 +26,7 @@ const _1_utilities_js_1 = require("../1_utilities.js");
26
26
  const _2_tl_js_1 = require("../2_tl.js");
27
27
  const _3_transport_js_1 = require("../3_transport.js");
28
28
  const _3_types_js_1 = require("../3_types.js");
29
+ const _2_telegram_js_1 = require("../tl/2_telegram.js");
29
30
  const _0_utilities_js_1 = require("./0_utilities.js");
30
31
  const videoChatManagerUpdates = [
31
32
  "updateGroupCall",
@@ -117,11 +118,11 @@ class VideoChatManager {
117
118
  return _2_tl_js_1.Api.isOneOf(videoChatManagerUpdates, update);
118
119
  }
119
120
  async handleUpdate(update) {
120
- if (!update.chat_id) {
121
+ if (!update.peer) {
121
122
  return null; // TODO: handle updates with unspecified chat_id
122
123
  }
123
- let chatId = Number(-update.chat_id);
124
- const fullChat = await this.#c.messageStorage.getFullChat(chatId).then((v) => v === null ? this.#c.messageStorage.getFullChat(chatId = _1_utilities_js_1.ZERO_CHANNEL_ID - Number(update.chat_id)) : v);
124
+ const chatId = (0, _2_telegram_js_1.peerToChatId)(update.peer);
125
+ const fullChat = await this.#c.messageStorage.getFullChat(chatId).then((v) => v === null ? this.#c.messageStorage.getFullChat(chatId) : v);
125
126
  let updateFullChat = false;
126
127
  if (_2_tl_js_1.Api.is("groupCallDiscarded", update.call)) {
127
128
  await this.#c.messageStorage.setGroupCall(update.call.id, null);
@@ -156,8 +157,8 @@ class VideoChatManager {
156
157
  const streams = await this.#c.invoke({ _: "phone.getGroupCallStreamChannels", call: await this.#getInputGroupCall(id) }, { dc, type: "download" });
157
158
  return streams.channels.map(_3_types_js_1.constructLiveStreamChannel);
158
159
  }
159
- async *downloadLiveStreamChunk(id, channel, scale, timestamp, params) {
160
- this.#c.storage.assertUser("downloadLiveStreamChunk");
160
+ async downloadLiveStreamSegment(id, channel, scale, timestamp, params) {
161
+ this.#c.storage.assertUser("downloadLiveStreamSegment");
161
162
  const call = await this.#getCall(id);
162
163
  if (!(_2_tl_js_1.Api.is("groupCall", call)) || !call.rtmp_stream) {
163
164
  throw new _0_errors_js_1.InputError("Not a live stream.");
@@ -173,7 +174,11 @@ class VideoChatManager {
173
174
  throw new _0_errors_js_1.InputError("Got invalid quality.");
174
175
  })(),
175
176
  };
176
- yield* this.#c.fileManager.downloadInner(location, call.stream_dc_id ?? (0, _0_deps_js_1.unreachable)(), params);
177
+ const chunks = new Array();
178
+ for await (const chunk of this.#c.fileManager.downloadInner(location, call.stream_dc_id ?? (0, _0_deps_js_1.unreachable)(), params)) {
179
+ chunks.push(chunk);
180
+ }
181
+ return (0, _0_deps_js_1.concat)(chunks);
177
182
  }
178
183
  }
179
184
  exports.VideoChatManager = VideoChatManager;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2025 Roj <https://roj.im/>
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
4
  *
5
5
  * This file is part of MTKruto.
6
6
  *
@@ -23,7 +23,7 @@ import { Api, Mtproto } from "../2_tl.js";
23
23
  import { type DC } from "../3_transport.js";
24
24
  import { type BotCommand, type BusinessConnection, type CallbackQueryAnswer, type CallbackQueryQuestion, type Chat, type ChatAction, type ChatListItem, type ChatMember, type ChatP, type ChatPChannel, type ChatPGroup, type ChatPSupergroup, type ChatSettings, type ClaimedGifts, type FailedInvitation, type FileSource, type Gift, type ID, type InactiveChat, type InlineQueryAnswer, type InlineQueryResult, type InputMedia, type InputStoryContent, type InviteLink, type JoinRequest, type LinkPreview, type LiveStreamChannel, type Message, type MessageAnimation, type MessageAudio, type MessageContact, type MessageDice, type MessageDocument, type MessageInvoice, type MessageLocation, type MessagePhoto, type MessagePoll, type MessageReactionList, type MessageSticker, type MessageText, type MessageVenue, type MessageVideo, type MessageVideoNote, type MessageVoice, type MiniAppInfo, type NetworkStatistics, type ParseMode, type Poll, type PriceTag, type Reaction, type SavedChats, type SlowModeDuration, type Sticker, type StickerSet, type Story, type Topic, type Translation, type User, type VideoChat, type VideoChatActive, type VideoChatScheduled, type VoiceTranscription } from "../3_types.js";
25
25
  import { Migrate } from "../4_errors.js";
26
- import type { AddChatMemberParams, AddContactParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateChannelParams, CreateGroupParams, CreateInviteLinkParams, CreateStoryParams, CreateSupergroupParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamChunkParams, DownloadParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageTextParams, EditTopicParams, ForwardMessagesParams, GetChatMembersParams, GetChatsParams, GetClaimedGiftsParams, GetCommonChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetJoinRequestsParams, GetLinkPreviewParams, GetMessageReactionsParams, GetMyCommandsParams, GetSavedChatsParams, GetSavedMessagesParams, GetTranslationsParams, InvokeParams, JoinVideoChatParams, OpenChatParams, OpenMiniAppParams, PinMessageParams, PromoteChatMemberParams, ReplyParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendGiftParams, SendInlineQueryParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetBirthdayParams, SetChatMemberRightsParams, SetChatPhotoParams, SetEmojiStatusParams, SetLocationParams, SetMyCommandsParams, SetNameColorParams, SetPersonalChannelParams, SetProfileColorParams, SetReactionsParams, SetSignaturesEnabledParams, SignInParams, StartBotParams, StartVideoChatParams, StopPollParams, UnpinMessageParams, UpdateProfileParams } from "./0_params.js";
26
+ import type { AddChatMemberParams, AddContactParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateChannelParams, CreateGroupParams, CreateInviteLinkParams, CreateStoryParams, CreateSupergroupParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamSegmentParams, DownloadParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageTextParams, EditTopicParams, ForwardMessagesParams, GetChatMembersParams, GetChatsParams, GetClaimedGiftsParams, GetCommonChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetJoinRequestsParams, GetLinkPreviewParams, GetMessageReactionsParams, GetMyCommandsParams, GetSavedChatsParams, GetSavedMessagesParams, GetTranslationsParams, InvokeParams, JoinVideoChatParams, OpenChatParams, OpenMiniAppParams, PinMessageParams, PromoteChatMemberParams, ReplyParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendGiftParams, SendInlineQueryParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetBirthdayParams, SetChatMemberRightsParams, SetChatPhotoParams, SetEmojiStatusParams, SetLocationParams, SetMyCommandsParams, SetNameColorParams, SetPersonalChannelParams, SetProfileColorParams, SetReactionsParams, SetSignaturesEnabledParams, SignInParams, StartBotParams, StartVideoChatParams, StopPollParams, UnpinMessageParams, UpdateProfileParams } from "./0_params.js";
27
27
  import { StorageOperations } from "./0_storage_operations.js";
28
28
  import type { ClientPlainParams } from "./1_client_plain.js";
29
29
  import { Composer as Composer_, type Middleware, type MiddlewareFn, type MiddlewareObj, type NextFunction } from "./1_composer.js";
@@ -346,6 +346,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
346
346
  * Get information on the currently authorized user.
347
347
  *
348
348
  * @method ac
349
+ * @returns Information on the currently authorized user.
349
350
  */
350
351
  getMe(): Promise<User>;
351
352
  /**
@@ -378,6 +379,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
378
379
  *
379
380
  * @method ac
380
381
  * @param id A supergroup ID or a channel ID.
382
+ * @returns Whether any username was hidden.
381
383
  */
382
384
  hideUsernames(id: ID): Promise<boolean>;
383
385
  /**
@@ -940,6 +942,18 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
940
942
  * @param messageId The identifier of the message that includes the poll.
941
943
  */
942
944
  retractVote(chatId: ID, messageId: number): Promise<void>;
945
+ /**
946
+ * Download a chunk of a file.
947
+ *
948
+ * @method fs
949
+ * @param fileId The identifier of a file.
950
+ * @example ```ts
951
+ * const chunk = await client.download(fileId, { chunkSize: 256 * 1024 });
952
+ * ```
953
+ * @returns The downloaded chunk.
954
+ * @cache file
955
+ */
956
+ downloadChunk(fileId: string, params?: DownloadParams): Promise<Uint8Array>;
943
957
  /**
944
958
  * Download a file.
945
959
  *
@@ -1187,6 +1201,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
1187
1201
  * @method ch
1188
1202
  * @param chatId The identifier of the channel or supergroup to add the users to.
1189
1203
  * @param userId The identifiers of the users to add to the channel or supergroup.
1204
+ * @returns An array of FailedInvitation that has at most a length that is the same as that of the parameter userIds. If empty, it means that all the provided users were added.
1190
1205
  */
1191
1206
  addChatMembers(chatId: ID, userIds: ID[]): Promise<FailedInvitation[]>;
1192
1207
  /**
@@ -1739,7 +1754,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
1739
1754
  */
1740
1755
  getLiveStreamChannels(id: string): Promise<LiveStreamChannel[]>;
1741
1756
  /**
1742
- * Download a live stream chunk. User-only.
1757
+ * Download a live stream segment. User-only.
1743
1758
  *
1744
1759
  * @method vc
1745
1760
  * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
@@ -1747,7 +1762,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
1747
1762
  * @param scale Stream channel scale.
1748
1763
  * @param timestamp Millisecond timestamp of the chunk to download.
1749
1764
  */
1750
- downloadLiveStreamChunk(id: string, channelId: number, scale: number, timestamp: number, params?: DownloadLiveStreamChunkParams): AsyncGenerator<Uint8Array, void, unknown>;
1765
+ downloadLiveStreamSegment(id: string, channelId: number, scale: number, timestamp: number, params?: DownloadLiveStreamSegmentParams): Promise<Uint8Array>;
1751
1766
  /**
1752
1767
  * Answer a pre-checkout query. Bot-only.
1753
1768
  *