@mtkruto/node 0.12.0 → 0.14.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 (769) hide show
  1. package/esm/0_deps.d.ts +2 -2
  2. package/esm/0_deps.js +2 -2
  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 +1 -1
  18. package/esm/3_types.js +1 -1
  19. package/esm/4_constants.d.ts +1 -1
  20. package/esm/4_constants.js +2 -2
  21. package/esm/4_errors.d.ts +1 -1
  22. package/esm/4_errors.js +1 -1
  23. package/esm/5_client.d.ts +1 -1
  24. package/esm/5_client.js +1 -1
  25. package/esm/client/0_client_abstract.js +1 -1
  26. package/esm/client/0_filters.d.ts +1 -1
  27. package/esm/client/0_filters.js +1 -1
  28. package/esm/client/0_html.d.ts +1 -1
  29. package/esm/client/0_html.js +1 -1
  30. package/esm/client/0_markdown.d.ts +1 -1
  31. package/esm/client/0_markdown.js +1 -1
  32. package/esm/client/0_message.d.ts +1 -1
  33. package/esm/client/0_message.js +1 -1
  34. package/esm/client/0_params.d.ts +16 -8
  35. package/esm/client/0_params.d.ts.map +1 -1
  36. package/esm/client/0_params.js +1 -1
  37. package/esm/client/0_password.js +1 -1
  38. package/esm/client/0_storage_operations.d.ts +11 -1
  39. package/esm/client/0_storage_operations.d.ts.map +1 -1
  40. package/esm/client/0_storage_operations.js +33 -1
  41. package/esm/client/0_utilities.d.ts +3 -3
  42. package/esm/client/0_utilities.d.ts.map +1 -1
  43. package/esm/client/0_utilities.js +1 -1
  44. package/esm/client/1_client_encrypted.d.ts +1 -1
  45. package/esm/client/1_client_encrypted.js +1 -1
  46. package/esm/client/1_client_plain.d.ts +1 -1
  47. package/esm/client/1_client_plain.js +1 -1
  48. package/esm/client/1_composer.d.ts +1 -1
  49. package/esm/client/1_composer.js +1 -1
  50. package/esm/client/1_types.d.ts +1 -1
  51. package/esm/client/1_types.js +1 -1
  52. package/esm/client/2_account_manager.d.ts +1 -1
  53. package/esm/client/2_account_manager.js +1 -1
  54. package/esm/client/2_bot_info_manager.d.ts +1 -1
  55. package/esm/client/2_bot_info_manager.js +1 -1
  56. package/esm/client/2_business_connection_manager.d.ts +1 -1
  57. package/esm/client/2_business_connection_manager.js +1 -1
  58. package/esm/client/2_file_manager.js +1 -1
  59. package/esm/client/2_network_statistics_manager.d.ts +1 -1
  60. package/esm/client/2_network_statistics_manager.js +1 -1
  61. package/esm/client/2_payment_manager.d.ts +1 -1
  62. package/esm/client/2_payment_manager.js +1 -1
  63. package/esm/client/2_reaction_manager.d.ts +1 -1
  64. package/esm/client/2_reaction_manager.js +1 -1
  65. package/esm/client/2_update_manager.d.ts +1 -1
  66. package/esm/client/2_update_manager.js +1 -1
  67. package/esm/client/3_message_manager.d.ts +3 -2
  68. package/esm/client/3_message_manager.d.ts.map +1 -1
  69. package/esm/client/3_message_manager.js +55 -6
  70. package/esm/client/3_video_chat_manager.d.ts +2 -2
  71. package/esm/client/3_video_chat_manager.d.ts.map +1 -1
  72. package/esm/client/3_video_chat_manager.js +4 -1
  73. package/esm/client/4_callback_query_manager.d.ts +1 -1
  74. package/esm/client/4_callback_query_manager.js +1 -1
  75. package/esm/client/4_chat_list_manager.d.ts +1 -1
  76. package/esm/client/4_chat_list_manager.js +1 -1
  77. package/esm/client/4_inline_query_manager.d.ts +1 -1
  78. package/esm/client/4_inline_query_manager.js +1 -1
  79. package/esm/client/4_poll_manager.d.ts +38 -0
  80. package/esm/client/4_poll_manager.d.ts.map +1 -0
  81. package/esm/client/4_poll_manager.js +111 -0
  82. package/esm/client/4_story_manager.d.ts +1 -1
  83. package/esm/client/4_story_manager.js +1 -1
  84. package/esm/client/5_client.d.ts +30 -3
  85. package/esm/client/5_client.d.ts.map +1 -1
  86. package/esm/client/5_client.js +57 -5
  87. package/esm/connection/0_connection.d.ts +1 -1
  88. package/esm/connection/0_connection.js +1 -1
  89. package/esm/connection/1_connection_tcp.node.d.ts +1 -1
  90. package/esm/connection/1_connection_tcp.node.js +1 -1
  91. package/esm/connection/1_connection_web_socket.js +1 -1
  92. package/{script/deps/jsr.io/@std/encoding/1.0.6 → esm/deps/jsr.io/@std/encoding/1.0.5}/_validate_binary_like.d.ts.map +1 -1
  93. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/base64.d.ts.map +1 -1
  94. package/esm/mod.d.ts +1 -1
  95. package/esm/mod.js +1 -1
  96. package/esm/storage/0_storage.d.ts +1 -1
  97. package/esm/storage/0_storage.js +1 -1
  98. package/esm/storage/1_utilities.d.ts +1 -1
  99. package/esm/storage/1_utilities.js +1 -1
  100. package/esm/storage/2_storage_indexed_db.d.ts +1 -1
  101. package/esm/storage/2_storage_indexed_db.js +1 -1
  102. package/esm/storage/2_storage_local_storage.node.d.ts +1 -1
  103. package/esm/storage/2_storage_local_storage.node.js +1 -1
  104. package/esm/storage/2_storage_memory.d.ts +1 -1
  105. package/esm/storage/2_storage_memory.js +1 -1
  106. package/esm/storage/2_storage_session_storage.d.ts +1 -1
  107. package/esm/storage/2_storage_session_storage.js +1 -1
  108. package/esm/tl/0_api.d.ts +218 -79
  109. package/esm/tl/0_api.d.ts.map +1 -1
  110. package/esm/tl/0_api.js +362 -159
  111. package/esm/tl/0_tl_raw_reader.d.ts +1 -1
  112. package/esm/tl/0_tl_raw_reader.js +1 -1
  113. package/esm/tl/0_tl_raw_writer.d.ts +1 -1
  114. package/esm/tl/0_tl_raw_writer.js +1 -1
  115. package/esm/tl/1_utilities.d.ts +1 -1
  116. package/esm/tl/1_utilities.js +1 -1
  117. package/esm/tl/2_deserialize.d.ts +1 -1
  118. package/esm/tl/2_deserialize.js +1 -1
  119. package/esm/tl/2_serialize.d.ts +1 -1
  120. package/esm/tl/2_serialize.js +1 -1
  121. package/esm/tl/3_tl_reader.d.ts +1 -1
  122. package/esm/tl/3_tl_reader.js +1 -1
  123. package/esm/tl/3_utilities.d.ts +1 -1
  124. package/esm/tl/3_utilities.js +1 -1
  125. package/esm/tl/4_rpc_result.d.ts +1 -1
  126. package/esm/tl/4_rpc_result.js +1 -1
  127. package/esm/tl/4_tl_writer.d.ts +1 -1
  128. package/esm/tl/4_tl_writer.js +1 -1
  129. package/esm/tl/5_message.d.ts +1 -1
  130. package/esm/tl/5_message.js +1 -1
  131. package/esm/transport/0_obfuscation.js +1 -1
  132. package/esm/transport/0_transport.d.ts +1 -1
  133. package/esm/transport/0_transport.js +1 -1
  134. package/esm/transport/1_transport_abridged.d.ts +1 -1
  135. package/esm/transport/1_transport_abridged.js +1 -1
  136. package/esm/transport/1_transport_intermediate.d.ts +1 -1
  137. package/esm/transport/1_transport_intermediate.js +1 -1
  138. package/esm/transport/2_transport_provider.d.ts +1 -1
  139. package/esm/transport/2_transport_provider.js +1 -1
  140. package/esm/transport/3_transport_provider_tcp.d.ts +1 -1
  141. package/esm/transport/3_transport_provider_tcp.js +1 -1
  142. package/esm/transport/3_transport_provider_web_socket.d.ts +1 -1
  143. package/esm/transport/3_transport_provider_web_socket.js +1 -1
  144. package/esm/types/0_authorization_state.d.ts +1 -1
  145. package/esm/types/0_authorization_state.js +1 -1
  146. package/esm/types/0_birthday.d.ts +1 -1
  147. package/esm/types/0_birthday.js +1 -1
  148. package/esm/types/0_bot_command.d.ts +1 -1
  149. package/esm/types/0_bot_command.js +1 -1
  150. package/esm/types/0_callback_query_answer.d.ts +1 -1
  151. package/esm/types/0_callback_query_answer.js +1 -1
  152. package/esm/types/0_callback_query_question.d.ts +1 -1
  153. package/esm/types/0_callback_query_question.js +1 -1
  154. package/esm/types/0_chat_action.d.ts +1 -1
  155. package/esm/types/0_chat_action.js +1 -1
  156. package/esm/types/0_chat_administrator_rights.d.ts +1 -1
  157. package/esm/types/0_chat_administrator_rights.js +1 -1
  158. package/esm/types/0_chat_member_rights.d.ts +1 -1
  159. package/esm/types/0_chat_member_rights.js +1 -1
  160. package/esm/types/0_chat_photo.d.ts +1 -1
  161. package/esm/types/0_chat_photo.js +1 -1
  162. package/esm/types/0_connection_state.d.ts +1 -1
  163. package/esm/types/0_connection_state.js +1 -1
  164. package/esm/types/0_contact.d.ts +1 -1
  165. package/esm/types/0_contact.js +1 -1
  166. package/esm/types/0_dice.d.ts +1 -1
  167. package/esm/types/0_dice.js +1 -1
  168. package/esm/types/0_failed_invitation.d.ts +1 -1
  169. package/esm/types/0_failed_invitation.js +1 -1
  170. package/esm/types/0_file_source.d.ts +1 -1
  171. package/esm/types/0_file_source.js +1 -1
  172. package/esm/types/0_giveaway_parameters.d.ts +1 -1
  173. package/esm/types/0_giveaway_parameters.js +1 -1
  174. package/esm/types/0_id.d.ts +1 -1
  175. package/esm/types/0_id.js +1 -1
  176. package/esm/types/0_invoice.d.ts +1 -1
  177. package/esm/types/0_invoice.js +1 -1
  178. package/esm/types/0_keyboard_button_poll_type.d.ts +1 -1
  179. package/esm/types/0_keyboard_button_poll_type.js +1 -1
  180. package/esm/types/0_link_preview.d.ts +1 -1
  181. package/esm/types/0_link_preview.js +1 -1
  182. package/esm/types/0_live_stream_channel.d.ts +1 -1
  183. package/esm/types/0_live_stream_channel.js +1 -1
  184. package/esm/types/0_location.d.ts +1 -1
  185. package/esm/types/0_location.js +1 -1
  186. package/esm/types/0_login_url.d.ts +1 -1
  187. package/esm/types/0_login_url.js +1 -1
  188. package/esm/types/0_mask_position.d.ts +1 -1
  189. package/esm/types/0_mask_position.js +1 -1
  190. package/esm/types/0_message_entity.d.ts +1 -1
  191. package/esm/types/0_message_entity.js +1 -1
  192. package/esm/types/0_message_reference.d.ts +1 -1
  193. package/esm/types/0_message_reference.js +1 -1
  194. package/esm/types/0_message_search_filter.d.ts +1 -1
  195. package/esm/types/0_message_search_filter.js +1 -1
  196. package/esm/types/0_mini_app_info.d.ts +1 -1
  197. package/esm/types/0_mini_app_info.js +1 -1
  198. package/esm/types/0_network_statistics_entry.d.ts +1 -1
  199. package/esm/types/0_network_statistics_entry.js +1 -1
  200. package/esm/types/0_opening_hours.d.ts +1 -1
  201. package/esm/types/0_opening_hours.js +1 -1
  202. package/esm/types/0_parse_mode.d.ts +1 -1
  203. package/esm/types/0_parse_mode.js +1 -1
  204. package/esm/types/0_price_tag.d.ts +1 -1
  205. package/esm/types/0_price_tag.js +1 -1
  206. package/esm/types/0_reaction.d.ts +1 -1
  207. package/esm/types/0_reaction.js +1 -1
  208. package/esm/types/0_refunded_payment.d.ts +1 -1
  209. package/esm/types/0_refunded_payment.js +1 -1
  210. package/esm/types/0_restriction_reason.d.ts +1 -1
  211. package/esm/types/0_restriction_reason.js +1 -1
  212. package/esm/types/0_self_destruct_option.d.ts +1 -1
  213. package/esm/types/0_self_destruct_option.js +1 -1
  214. package/esm/types/0_shipping_address.d.ts +1 -1
  215. package/esm/types/0_shipping_address.js +1 -1
  216. package/esm/types/0_story_reference.d.ts +1 -1
  217. package/esm/types/0_story_reference.js +1 -1
  218. package/esm/types/0_switch_inline_query_chosen_chats.d.ts +1 -1
  219. package/esm/types/0_switch_inline_query_chosen_chats.js +1 -1
  220. package/esm/types/0_thumbnail.d.ts +1 -1
  221. package/esm/types/0_thumbnail.js +1 -1
  222. package/esm/types/0_video_chat.d.ts +1 -1
  223. package/esm/types/0_video_chat.js +1 -1
  224. package/esm/types/0_voice.d.ts +1 -1
  225. package/esm/types/0_voice.js +1 -1
  226. package/esm/types/1_animation.d.ts +1 -1
  227. package/esm/types/1_animation.js +1 -1
  228. package/esm/types/1_audio.d.ts +1 -1
  229. package/esm/types/1_audio.js +1 -1
  230. package/esm/types/1_bot_command_scope.d.ts +1 -1
  231. package/esm/types/1_bot_command_scope.js +1 -1
  232. package/esm/types/1_chat_p.d.ts +1 -1
  233. package/esm/types/1_chat_p.js +1 -1
  234. package/esm/types/1_document.d.ts +1 -1
  235. package/esm/types/1_document.js +1 -1
  236. package/esm/types/1_giveaway.d.ts +1 -1
  237. package/esm/types/1_giveaway.js +1 -1
  238. package/esm/types/1_inline_query_result_button.d.ts +1 -1
  239. package/esm/types/1_inline_query_result_button.js +1 -1
  240. package/esm/types/1_input_media.d.ts +1 -1
  241. package/esm/types/1_input_media.js +1 -1
  242. package/esm/types/1_input_story_content.d.ts +1 -1
  243. package/esm/types/1_input_story_content.js +1 -1
  244. package/esm/types/1_keyboard_button.d.ts +1 -1
  245. package/esm/types/1_keyboard_button.js +1 -1
  246. package/esm/types/1_message_content.d.ts +2 -2
  247. package/esm/types/1_message_content.d.ts.map +1 -1
  248. package/esm/types/1_message_content.js +1 -1
  249. package/esm/types/1_message_reaction.d.ts +1 -1
  250. package/esm/types/1_message_reaction.js +1 -1
  251. package/esm/types/1_network_statistics.d.ts +1 -1
  252. package/esm/types/1_network_statistics.js +1 -1
  253. package/esm/types/1_order_info.d.ts +1 -1
  254. package/esm/types/1_order_info.js +1 -1
  255. package/esm/types/1_photo.d.ts +1 -1
  256. package/esm/types/1_photo.js +1 -1
  257. package/esm/types/1_poll_option.d.ts +3 -1
  258. package/esm/types/1_poll_option.d.ts.map +1 -1
  259. package/esm/types/1_poll_option.js +4 -2
  260. package/esm/types/1_reaction_count.d.ts +1 -1
  261. package/esm/types/1_reaction_count.js +1 -1
  262. package/esm/types/1_reply_quote.d.ts +1 -1
  263. package/esm/types/1_reply_quote.js +1 -1
  264. package/esm/types/1_sticker.d.ts +1 -1
  265. package/esm/types/1_sticker.js +1 -1
  266. package/esm/types/1_story_privacy.d.ts +1 -1
  267. package/esm/types/1_story_privacy.js +1 -1
  268. package/esm/types/1_story_reaction.d.ts +1 -1
  269. package/esm/types/1_story_reaction.js +1 -1
  270. package/esm/types/1_user.d.ts +1 -1
  271. package/esm/types/1_user.js +1 -1
  272. package/esm/types/1_venue.d.ts +1 -1
  273. package/esm/types/1_venue.js +1 -1
  274. package/esm/types/1_video.d.ts +1 -1
  275. package/esm/types/1_video.js +1 -1
  276. package/esm/types/1_video_note.d.ts +1 -1
  277. package/esm/types/1_video_note.js +1 -1
  278. package/esm/types/2_business_connection.d.ts +1 -1
  279. package/esm/types/2_business_connection.js +1 -1
  280. package/esm/types/2_chat.d.ts +1 -1
  281. package/esm/types/2_chat.js +1 -1
  282. package/esm/types/2_chat_member.d.ts +1 -1
  283. package/esm/types/2_chat_member.js +1 -1
  284. package/esm/types/2_chosen_inline_result.d.ts +1 -1
  285. package/esm/types/2_chosen_inline_result.js +1 -1
  286. package/esm/types/2_forward_header.d.ts +1 -1
  287. package/esm/types/2_forward_header.js +1 -1
  288. package/esm/types/2_game.d.ts +1 -1
  289. package/esm/types/2_game.js +1 -1
  290. package/esm/types/2_inactive_chat.d.ts +1 -1
  291. package/esm/types/2_inactive_chat.js +1 -1
  292. package/esm/types/2_inline_keyboard_button.d.ts +1 -1
  293. package/esm/types/2_inline_keyboard_button.js +1 -1
  294. package/esm/types/2_inline_query.d.ts +1 -1
  295. package/esm/types/2_inline_query.js +1 -1
  296. package/esm/types/2_invite_link.d.ts +1 -1
  297. package/esm/types/2_invite_link.js +1 -1
  298. package/esm/types/2_message_interactions.d.ts +1 -1
  299. package/esm/types/2_message_interactions.js +1 -1
  300. package/esm/types/2_message_reaction_count.d.ts +1 -1
  301. package/esm/types/2_message_reaction_count.js +1 -1
  302. package/esm/types/2_message_reactions.d.ts +1 -1
  303. package/esm/types/2_message_reactions.js +1 -1
  304. package/esm/types/2_poll.d.ts +1 -1
  305. package/esm/types/2_poll.d.ts.map +1 -1
  306. package/esm/types/2_poll.js +1 -1
  307. package/esm/types/2_pre_checkout_query.d.ts +1 -1
  308. package/esm/types/2_pre_checkout_query.js +1 -1
  309. package/esm/types/2_reply_to.d.ts +1 -1
  310. package/esm/types/2_reply_to.js +1 -1
  311. package/esm/types/2_story_content.d.ts +1 -1
  312. package/esm/types/2_story_content.js +1 -1
  313. package/esm/types/2_story_interactions.d.ts +1 -1
  314. package/esm/types/2_story_interactions.js +1 -1
  315. package/esm/types/2_story_interactive_area.d.ts +1 -1
  316. package/esm/types/2_story_interactive_area.js +1 -1
  317. package/esm/types/2_successful_payment.d.ts +1 -1
  318. package/esm/types/2_successful_payment.js +1 -1
  319. package/esm/types/3_chat_member_updated.d.ts +1 -1
  320. package/esm/types/3_chat_member_updated.js +1 -1
  321. package/esm/types/3_join_request.d.ts +1 -1
  322. package/esm/types/3_join_request.js +1 -1
  323. package/esm/types/3_reply_markup.d.ts +1 -1
  324. package/esm/types/3_reply_markup.js +1 -1
  325. package/esm/types/3_story.d.ts +1 -1
  326. package/esm/types/3_story.js +1 -1
  327. package/esm/types/4_inline_query_result.d.ts +1 -1
  328. package/esm/types/4_inline_query_result.js +1 -1
  329. package/esm/types/4_message.d.ts +3 -2
  330. package/esm/types/4_message.d.ts.map +1 -1
  331. package/esm/types/4_message.js +18 -6
  332. package/esm/types/5_callback_query.d.ts +1 -1
  333. package/esm/types/5_callback_query.js +1 -1
  334. package/esm/types/5_chat_list_item.d.ts +1 -1
  335. package/esm/types/5_chat_list_item.js +1 -1
  336. package/esm/types/5_inline_query_answer.d.ts +1 -1
  337. package/esm/types/5_inline_query_answer.js +1 -1
  338. package/esm/types/6_update.d.ts +23 -3
  339. package/esm/types/6_update.d.ts.map +1 -1
  340. package/esm/types/6_update.js +1 -1
  341. package/esm/types/_file_id.d.ts +1 -1
  342. package/esm/types/_file_id.js +1 -1
  343. package/esm/types/_getters.d.ts +1 -1
  344. package/esm/types/_getters.js +1 -1
  345. package/esm/utilities/0_bigint.js +1 -1
  346. package/esm/utilities/0_buffer.d.ts +1 -1
  347. package/esm/utilities/0_buffer.js +1 -1
  348. package/esm/utilities/0_cache_map.d.ts +1 -1
  349. package/esm/utilities/0_cache_map.js +1 -1
  350. package/esm/utilities/0_color.d.ts +1 -1
  351. package/esm/utilities/0_color.js +1 -1
  352. package/esm/utilities/0_env.js +1 -1
  353. package/esm/utilities/0_gunzip.d.ts +1 -1
  354. package/esm/utilities/0_gunzip.js +1 -1
  355. package/esm/utilities/0_hash.js +1 -1
  356. package/esm/utilities/0_misc.d.ts +1 -1
  357. package/esm/utilities/0_misc.js +1 -1
  358. package/esm/utilities/0_mutex.d.ts +1 -1
  359. package/esm/utilities/0_mutex.js +1 -1
  360. package/esm/utilities/0_object.d.ts +1 -1
  361. package/esm/utilities/0_object.js +1 -1
  362. package/esm/utilities/0_part_stream.d.ts +1 -1
  363. package/esm/utilities/0_part_stream.js +1 -1
  364. package/esm/utilities/0_rle.d.ts +1 -1
  365. package/esm/utilities/0_rle.js +1 -1
  366. package/esm/utilities/0_types.d.ts +1 -1
  367. package/esm/utilities/0_types.js +1 -1
  368. package/esm/utilities/0_units.d.ts +1 -1
  369. package/esm/utilities/0_units.js +1 -1
  370. package/esm/utilities/1_auth.js +1 -1
  371. package/esm/utilities/1_base64.d.ts +1 -1
  372. package/esm/utilities/1_base64.js +1 -1
  373. package/esm/utilities/1_crypto.d.ts +1 -1
  374. package/esm/utilities/1_crypto.js +1 -1
  375. package/esm/utilities/1_logger.d.ts +1 -1
  376. package/esm/utilities/1_logger.js +1 -1
  377. package/esm/utilities/1_math.d.ts +1 -1
  378. package/esm/utilities/1_math.js +1 -1
  379. package/esm/utilities/2_queue.d.ts +1 -1
  380. package/esm/utilities/2_queue.js +1 -1
  381. package/package.json +1 -1
  382. package/script/0_deps.d.ts +2 -2
  383. package/script/0_deps.js +2 -2
  384. package/script/0_errors.d.ts +1 -1
  385. package/script/0_errors.js +1 -1
  386. package/script/1_utilities.d.ts +1 -1
  387. package/script/1_utilities.js +1 -1
  388. package/script/2_connection.d.ts +1 -1
  389. package/script/2_connection.js +1 -1
  390. package/script/2_storage.d.ts +1 -1
  391. package/script/2_storage.js +1 -1
  392. package/script/2_tl.d.ts +1 -1
  393. package/script/2_tl.js +1 -1
  394. package/script/3_errors.d.ts +1 -1
  395. package/script/3_errors.js +1 -1
  396. package/script/3_transport.d.ts +1 -1
  397. package/script/3_transport.js +1 -1
  398. package/script/3_types.d.ts +1 -1
  399. package/script/3_types.js +1 -1
  400. package/script/4_constants.d.ts +1 -1
  401. package/script/4_constants.js +2 -2
  402. package/script/4_errors.d.ts +1 -1
  403. package/script/4_errors.js +1 -1
  404. package/script/5_client.d.ts +1 -1
  405. package/script/5_client.js +1 -1
  406. package/script/client/0_client_abstract.js +1 -1
  407. package/script/client/0_filters.d.ts +1 -1
  408. package/script/client/0_filters.js +1 -1
  409. package/script/client/0_html.d.ts +1 -1
  410. package/script/client/0_html.js +1 -1
  411. package/script/client/0_markdown.d.ts +1 -1
  412. package/script/client/0_markdown.js +1 -1
  413. package/script/client/0_message.d.ts +1 -1
  414. package/script/client/0_message.js +1 -1
  415. package/script/client/0_params.d.ts +16 -8
  416. package/script/client/0_params.d.ts.map +1 -1
  417. package/script/client/0_params.js +1 -1
  418. package/script/client/0_password.js +1 -1
  419. package/script/client/0_storage_operations.d.ts +11 -1
  420. package/script/client/0_storage_operations.d.ts.map +1 -1
  421. package/script/client/0_storage_operations.js +33 -1
  422. package/script/client/0_utilities.d.ts +3 -3
  423. package/script/client/0_utilities.d.ts.map +1 -1
  424. package/script/client/0_utilities.js +1 -1
  425. package/script/client/1_client_encrypted.d.ts +1 -1
  426. package/script/client/1_client_encrypted.js +1 -1
  427. package/script/client/1_client_plain.d.ts +1 -1
  428. package/script/client/1_client_plain.js +1 -1
  429. package/script/client/1_composer.d.ts +1 -1
  430. package/script/client/1_composer.js +1 -1
  431. package/script/client/1_types.d.ts +1 -1
  432. package/script/client/1_types.js +1 -1
  433. package/script/client/2_account_manager.d.ts +1 -1
  434. package/script/client/2_account_manager.js +1 -1
  435. package/script/client/2_bot_info_manager.d.ts +1 -1
  436. package/script/client/2_bot_info_manager.js +1 -1
  437. package/script/client/2_business_connection_manager.d.ts +1 -1
  438. package/script/client/2_business_connection_manager.js +1 -1
  439. package/script/client/2_file_manager.js +1 -1
  440. package/script/client/2_network_statistics_manager.d.ts +1 -1
  441. package/script/client/2_network_statistics_manager.js +1 -1
  442. package/script/client/2_payment_manager.d.ts +1 -1
  443. package/script/client/2_payment_manager.js +1 -1
  444. package/script/client/2_reaction_manager.d.ts +1 -1
  445. package/script/client/2_reaction_manager.js +1 -1
  446. package/script/client/2_update_manager.d.ts +1 -1
  447. package/script/client/2_update_manager.js +1 -1
  448. package/script/client/3_message_manager.d.ts +3 -2
  449. package/script/client/3_message_manager.d.ts.map +1 -1
  450. package/script/client/3_message_manager.js +54 -5
  451. package/script/client/3_video_chat_manager.d.ts +2 -2
  452. package/script/client/3_video_chat_manager.d.ts.map +1 -1
  453. package/script/client/3_video_chat_manager.js +4 -1
  454. package/script/client/4_callback_query_manager.d.ts +1 -1
  455. package/script/client/4_callback_query_manager.js +1 -1
  456. package/script/client/4_chat_list_manager.d.ts +1 -1
  457. package/script/client/4_chat_list_manager.js +1 -1
  458. package/script/client/4_inline_query_manager.d.ts +1 -1
  459. package/script/client/4_inline_query_manager.js +1 -1
  460. package/script/client/4_poll_manager.d.ts +38 -0
  461. package/script/client/4_poll_manager.d.ts.map +1 -0
  462. package/script/client/4_poll_manager.js +115 -0
  463. package/script/client/4_story_manager.d.ts +1 -1
  464. package/script/client/4_story_manager.js +1 -1
  465. package/script/client/5_client.d.ts +30 -3
  466. package/script/client/5_client.d.ts.map +1 -1
  467. package/script/client/5_client.js +57 -5
  468. package/script/connection/0_connection.d.ts +1 -1
  469. package/script/connection/0_connection.js +1 -1
  470. package/script/connection/1_connection_tcp.node.d.ts +1 -1
  471. package/script/connection/1_connection_tcp.node.js +1 -1
  472. package/script/connection/1_connection_web_socket.js +1 -1
  473. package/{esm/deps/jsr.io/@std/encoding/1.0.6 → script/deps/jsr.io/@std/encoding/1.0.5}/_validate_binary_like.d.ts.map +1 -1
  474. package/script/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/base64.d.ts.map +1 -1
  475. package/script/mod.d.ts +1 -1
  476. package/script/mod.js +1 -1
  477. package/script/storage/0_storage.d.ts +1 -1
  478. package/script/storage/0_storage.js +1 -1
  479. package/script/storage/1_utilities.d.ts +1 -1
  480. package/script/storage/1_utilities.js +1 -1
  481. package/script/storage/2_storage_indexed_db.d.ts +1 -1
  482. package/script/storage/2_storage_indexed_db.js +1 -1
  483. package/script/storage/2_storage_local_storage.node.d.ts +1 -1
  484. package/script/storage/2_storage_local_storage.node.js +1 -1
  485. package/script/storage/2_storage_memory.d.ts +1 -1
  486. package/script/storage/2_storage_memory.js +1 -1
  487. package/script/storage/2_storage_session_storage.d.ts +1 -1
  488. package/script/storage/2_storage_session_storage.js +1 -1
  489. package/script/tl/0_api.d.ts +218 -79
  490. package/script/tl/0_api.d.ts.map +1 -1
  491. package/script/tl/0_api.js +362 -159
  492. package/script/tl/0_tl_raw_reader.d.ts +1 -1
  493. package/script/tl/0_tl_raw_reader.js +1 -1
  494. package/script/tl/0_tl_raw_writer.d.ts +1 -1
  495. package/script/tl/0_tl_raw_writer.js +1 -1
  496. package/script/tl/1_utilities.d.ts +1 -1
  497. package/script/tl/1_utilities.js +1 -1
  498. package/script/tl/2_deserialize.d.ts +1 -1
  499. package/script/tl/2_deserialize.js +1 -1
  500. package/script/tl/2_serialize.d.ts +1 -1
  501. package/script/tl/2_serialize.js +1 -1
  502. package/script/tl/3_tl_reader.d.ts +1 -1
  503. package/script/tl/3_tl_reader.js +1 -1
  504. package/script/tl/3_utilities.d.ts +1 -1
  505. package/script/tl/3_utilities.js +1 -1
  506. package/script/tl/4_rpc_result.d.ts +1 -1
  507. package/script/tl/4_rpc_result.js +1 -1
  508. package/script/tl/4_tl_writer.d.ts +1 -1
  509. package/script/tl/4_tl_writer.js +1 -1
  510. package/script/tl/5_message.d.ts +1 -1
  511. package/script/tl/5_message.js +1 -1
  512. package/script/transport/0_obfuscation.js +1 -1
  513. package/script/transport/0_transport.d.ts +1 -1
  514. package/script/transport/0_transport.js +1 -1
  515. package/script/transport/1_transport_abridged.d.ts +1 -1
  516. package/script/transport/1_transport_abridged.js +1 -1
  517. package/script/transport/1_transport_intermediate.d.ts +1 -1
  518. package/script/transport/1_transport_intermediate.js +1 -1
  519. package/script/transport/2_transport_provider.d.ts +1 -1
  520. package/script/transport/2_transport_provider.js +1 -1
  521. package/script/transport/3_transport_provider_tcp.d.ts +1 -1
  522. package/script/transport/3_transport_provider_tcp.js +1 -1
  523. package/script/transport/3_transport_provider_web_socket.d.ts +1 -1
  524. package/script/transport/3_transport_provider_web_socket.js +1 -1
  525. package/script/types/0_authorization_state.d.ts +1 -1
  526. package/script/types/0_authorization_state.js +1 -1
  527. package/script/types/0_birthday.d.ts +1 -1
  528. package/script/types/0_birthday.js +1 -1
  529. package/script/types/0_bot_command.d.ts +1 -1
  530. package/script/types/0_bot_command.js +1 -1
  531. package/script/types/0_callback_query_answer.d.ts +1 -1
  532. package/script/types/0_callback_query_answer.js +1 -1
  533. package/script/types/0_callback_query_question.d.ts +1 -1
  534. package/script/types/0_callback_query_question.js +1 -1
  535. package/script/types/0_chat_action.d.ts +1 -1
  536. package/script/types/0_chat_action.js +1 -1
  537. package/script/types/0_chat_administrator_rights.d.ts +1 -1
  538. package/script/types/0_chat_administrator_rights.js +1 -1
  539. package/script/types/0_chat_member_rights.d.ts +1 -1
  540. package/script/types/0_chat_member_rights.js +1 -1
  541. package/script/types/0_chat_photo.d.ts +1 -1
  542. package/script/types/0_chat_photo.js +1 -1
  543. package/script/types/0_connection_state.d.ts +1 -1
  544. package/script/types/0_connection_state.js +1 -1
  545. package/script/types/0_contact.d.ts +1 -1
  546. package/script/types/0_contact.js +1 -1
  547. package/script/types/0_dice.d.ts +1 -1
  548. package/script/types/0_dice.js +1 -1
  549. package/script/types/0_failed_invitation.d.ts +1 -1
  550. package/script/types/0_failed_invitation.js +1 -1
  551. package/script/types/0_file_source.d.ts +1 -1
  552. package/script/types/0_file_source.js +1 -1
  553. package/script/types/0_giveaway_parameters.d.ts +1 -1
  554. package/script/types/0_giveaway_parameters.js +1 -1
  555. package/script/types/0_id.d.ts +1 -1
  556. package/script/types/0_id.js +1 -1
  557. package/script/types/0_invoice.d.ts +1 -1
  558. package/script/types/0_invoice.js +1 -1
  559. package/script/types/0_keyboard_button_poll_type.d.ts +1 -1
  560. package/script/types/0_keyboard_button_poll_type.js +1 -1
  561. package/script/types/0_link_preview.d.ts +1 -1
  562. package/script/types/0_link_preview.js +1 -1
  563. package/script/types/0_live_stream_channel.d.ts +1 -1
  564. package/script/types/0_live_stream_channel.js +1 -1
  565. package/script/types/0_location.d.ts +1 -1
  566. package/script/types/0_location.js +1 -1
  567. package/script/types/0_login_url.d.ts +1 -1
  568. package/script/types/0_login_url.js +1 -1
  569. package/script/types/0_mask_position.d.ts +1 -1
  570. package/script/types/0_mask_position.js +1 -1
  571. package/script/types/0_message_entity.d.ts +1 -1
  572. package/script/types/0_message_entity.js +1 -1
  573. package/script/types/0_message_reference.d.ts +1 -1
  574. package/script/types/0_message_reference.js +1 -1
  575. package/script/types/0_message_search_filter.d.ts +1 -1
  576. package/script/types/0_message_search_filter.js +1 -1
  577. package/script/types/0_mini_app_info.d.ts +1 -1
  578. package/script/types/0_mini_app_info.js +1 -1
  579. package/script/types/0_network_statistics_entry.d.ts +1 -1
  580. package/script/types/0_network_statistics_entry.js +1 -1
  581. package/script/types/0_opening_hours.d.ts +1 -1
  582. package/script/types/0_opening_hours.js +1 -1
  583. package/script/types/0_parse_mode.d.ts +1 -1
  584. package/script/types/0_parse_mode.js +1 -1
  585. package/script/types/0_price_tag.d.ts +1 -1
  586. package/script/types/0_price_tag.js +1 -1
  587. package/script/types/0_reaction.d.ts +1 -1
  588. package/script/types/0_reaction.js +1 -1
  589. package/script/types/0_refunded_payment.d.ts +1 -1
  590. package/script/types/0_refunded_payment.js +1 -1
  591. package/script/types/0_restriction_reason.d.ts +1 -1
  592. package/script/types/0_restriction_reason.js +1 -1
  593. package/script/types/0_self_destruct_option.d.ts +1 -1
  594. package/script/types/0_self_destruct_option.js +1 -1
  595. package/script/types/0_shipping_address.d.ts +1 -1
  596. package/script/types/0_shipping_address.js +1 -1
  597. package/script/types/0_story_reference.d.ts +1 -1
  598. package/script/types/0_story_reference.js +1 -1
  599. package/script/types/0_switch_inline_query_chosen_chats.d.ts +1 -1
  600. package/script/types/0_switch_inline_query_chosen_chats.js +1 -1
  601. package/script/types/0_thumbnail.d.ts +1 -1
  602. package/script/types/0_thumbnail.js +1 -1
  603. package/script/types/0_video_chat.d.ts +1 -1
  604. package/script/types/0_video_chat.js +1 -1
  605. package/script/types/0_voice.d.ts +1 -1
  606. package/script/types/0_voice.js +1 -1
  607. package/script/types/1_animation.d.ts +1 -1
  608. package/script/types/1_animation.js +1 -1
  609. package/script/types/1_audio.d.ts +1 -1
  610. package/script/types/1_audio.js +1 -1
  611. package/script/types/1_bot_command_scope.d.ts +1 -1
  612. package/script/types/1_bot_command_scope.js +1 -1
  613. package/script/types/1_chat_p.d.ts +1 -1
  614. package/script/types/1_chat_p.js +1 -1
  615. package/script/types/1_document.d.ts +1 -1
  616. package/script/types/1_document.js +1 -1
  617. package/script/types/1_giveaway.d.ts +1 -1
  618. package/script/types/1_giveaway.js +1 -1
  619. package/script/types/1_inline_query_result_button.d.ts +1 -1
  620. package/script/types/1_inline_query_result_button.js +1 -1
  621. package/script/types/1_input_media.d.ts +1 -1
  622. package/script/types/1_input_media.js +1 -1
  623. package/script/types/1_input_story_content.d.ts +1 -1
  624. package/script/types/1_input_story_content.js +1 -1
  625. package/script/types/1_keyboard_button.d.ts +1 -1
  626. package/script/types/1_keyboard_button.js +1 -1
  627. package/script/types/1_message_content.d.ts +2 -2
  628. package/script/types/1_message_content.d.ts.map +1 -1
  629. package/script/types/1_message_content.js +1 -1
  630. package/script/types/1_message_reaction.d.ts +1 -1
  631. package/script/types/1_message_reaction.js +1 -1
  632. package/script/types/1_network_statistics.d.ts +1 -1
  633. package/script/types/1_network_statistics.js +1 -1
  634. package/script/types/1_order_info.d.ts +1 -1
  635. package/script/types/1_order_info.js +1 -1
  636. package/script/types/1_photo.d.ts +1 -1
  637. package/script/types/1_photo.js +1 -1
  638. package/script/types/1_poll_option.d.ts +3 -1
  639. package/script/types/1_poll_option.d.ts.map +1 -1
  640. package/script/types/1_poll_option.js +4 -2
  641. package/script/types/1_reaction_count.d.ts +1 -1
  642. package/script/types/1_reaction_count.js +1 -1
  643. package/script/types/1_reply_quote.d.ts +1 -1
  644. package/script/types/1_reply_quote.js +1 -1
  645. package/script/types/1_sticker.d.ts +1 -1
  646. package/script/types/1_sticker.js +1 -1
  647. package/script/types/1_story_privacy.d.ts +1 -1
  648. package/script/types/1_story_privacy.js +1 -1
  649. package/script/types/1_story_reaction.d.ts +1 -1
  650. package/script/types/1_story_reaction.js +1 -1
  651. package/script/types/1_user.d.ts +1 -1
  652. package/script/types/1_user.js +1 -1
  653. package/script/types/1_venue.d.ts +1 -1
  654. package/script/types/1_venue.js +1 -1
  655. package/script/types/1_video.d.ts +1 -1
  656. package/script/types/1_video.js +1 -1
  657. package/script/types/1_video_note.d.ts +1 -1
  658. package/script/types/1_video_note.js +1 -1
  659. package/script/types/2_business_connection.d.ts +1 -1
  660. package/script/types/2_business_connection.js +1 -1
  661. package/script/types/2_chat.d.ts +1 -1
  662. package/script/types/2_chat.js +1 -1
  663. package/script/types/2_chat_member.d.ts +1 -1
  664. package/script/types/2_chat_member.js +1 -1
  665. package/script/types/2_chosen_inline_result.d.ts +1 -1
  666. package/script/types/2_chosen_inline_result.js +1 -1
  667. package/script/types/2_forward_header.d.ts +1 -1
  668. package/script/types/2_forward_header.js +1 -1
  669. package/script/types/2_game.d.ts +1 -1
  670. package/script/types/2_game.js +1 -1
  671. package/script/types/2_inactive_chat.d.ts +1 -1
  672. package/script/types/2_inactive_chat.js +1 -1
  673. package/script/types/2_inline_keyboard_button.d.ts +1 -1
  674. package/script/types/2_inline_keyboard_button.js +1 -1
  675. package/script/types/2_inline_query.d.ts +1 -1
  676. package/script/types/2_inline_query.js +1 -1
  677. package/script/types/2_invite_link.d.ts +1 -1
  678. package/script/types/2_invite_link.js +1 -1
  679. package/script/types/2_message_interactions.d.ts +1 -1
  680. package/script/types/2_message_interactions.js +1 -1
  681. package/script/types/2_message_reaction_count.d.ts +1 -1
  682. package/script/types/2_message_reaction_count.js +1 -1
  683. package/script/types/2_message_reactions.d.ts +1 -1
  684. package/script/types/2_message_reactions.js +1 -1
  685. package/script/types/2_poll.d.ts +1 -1
  686. package/script/types/2_poll.d.ts.map +1 -1
  687. package/script/types/2_poll.js +1 -1
  688. package/script/types/2_pre_checkout_query.d.ts +1 -1
  689. package/script/types/2_pre_checkout_query.js +1 -1
  690. package/script/types/2_reply_to.d.ts +1 -1
  691. package/script/types/2_reply_to.js +1 -1
  692. package/script/types/2_story_content.d.ts +1 -1
  693. package/script/types/2_story_content.js +1 -1
  694. package/script/types/2_story_interactions.d.ts +1 -1
  695. package/script/types/2_story_interactions.js +1 -1
  696. package/script/types/2_story_interactive_area.d.ts +1 -1
  697. package/script/types/2_story_interactive_area.js +1 -1
  698. package/script/types/2_successful_payment.d.ts +1 -1
  699. package/script/types/2_successful_payment.js +1 -1
  700. package/script/types/3_chat_member_updated.d.ts +1 -1
  701. package/script/types/3_chat_member_updated.js +1 -1
  702. package/script/types/3_join_request.d.ts +1 -1
  703. package/script/types/3_join_request.js +1 -1
  704. package/script/types/3_reply_markup.d.ts +1 -1
  705. package/script/types/3_reply_markup.js +1 -1
  706. package/script/types/3_story.d.ts +1 -1
  707. package/script/types/3_story.js +1 -1
  708. package/script/types/4_inline_query_result.d.ts +1 -1
  709. package/script/types/4_inline_query_result.js +1 -1
  710. package/script/types/4_message.d.ts +3 -2
  711. package/script/types/4_message.d.ts.map +1 -1
  712. package/script/types/4_message.js +19 -6
  713. package/script/types/5_callback_query.d.ts +1 -1
  714. package/script/types/5_callback_query.js +1 -1
  715. package/script/types/5_chat_list_item.d.ts +1 -1
  716. package/script/types/5_chat_list_item.js +1 -1
  717. package/script/types/5_inline_query_answer.d.ts +1 -1
  718. package/script/types/5_inline_query_answer.js +1 -1
  719. package/script/types/6_update.d.ts +23 -3
  720. package/script/types/6_update.d.ts.map +1 -1
  721. package/script/types/6_update.js +1 -1
  722. package/script/types/_file_id.d.ts +1 -1
  723. package/script/types/_file_id.js +1 -1
  724. package/script/types/_getters.d.ts +1 -1
  725. package/script/types/_getters.js +1 -1
  726. package/script/utilities/0_bigint.js +1 -1
  727. package/script/utilities/0_buffer.d.ts +1 -1
  728. package/script/utilities/0_buffer.js +1 -1
  729. package/script/utilities/0_cache_map.d.ts +1 -1
  730. package/script/utilities/0_cache_map.js +1 -1
  731. package/script/utilities/0_color.d.ts +1 -1
  732. package/script/utilities/0_color.js +1 -1
  733. package/script/utilities/0_env.js +1 -1
  734. package/script/utilities/0_gunzip.d.ts +1 -1
  735. package/script/utilities/0_gunzip.js +1 -1
  736. package/script/utilities/0_hash.js +1 -1
  737. package/script/utilities/0_misc.d.ts +1 -1
  738. package/script/utilities/0_misc.js +1 -1
  739. package/script/utilities/0_mutex.d.ts +1 -1
  740. package/script/utilities/0_mutex.js +1 -1
  741. package/script/utilities/0_object.d.ts +1 -1
  742. package/script/utilities/0_object.js +1 -1
  743. package/script/utilities/0_part_stream.d.ts +1 -1
  744. package/script/utilities/0_part_stream.js +1 -1
  745. package/script/utilities/0_rle.d.ts +1 -1
  746. package/script/utilities/0_rle.js +1 -1
  747. package/script/utilities/0_types.d.ts +1 -1
  748. package/script/utilities/0_types.js +1 -1
  749. package/script/utilities/0_units.d.ts +1 -1
  750. package/script/utilities/0_units.js +1 -1
  751. package/script/utilities/1_auth.js +1 -1
  752. package/script/utilities/1_base64.d.ts +1 -1
  753. package/script/utilities/1_base64.js +1 -1
  754. package/script/utilities/1_crypto.d.ts +1 -1
  755. package/script/utilities/1_crypto.js +1 -1
  756. package/script/utilities/1_logger.d.ts +1 -1
  757. package/script/utilities/1_logger.js +1 -1
  758. package/script/utilities/1_math.d.ts +1 -1
  759. package/script/utilities/1_math.js +1 -1
  760. package/script/utilities/2_queue.d.ts +1 -1
  761. package/script/utilities/2_queue.js +1 -1
  762. /package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/_validate_binary_like.d.ts +0 -0
  763. /package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/_validate_binary_like.js +0 -0
  764. /package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/base64.d.ts +0 -0
  765. /package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/base64.js +0 -0
  766. /package/script/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/_validate_binary_like.d.ts +0 -0
  767. /package/script/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/_validate_binary_like.js +0 -0
  768. /package/script/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/base64.d.ts +0 -0
  769. /package/script/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.5}/base64.js +0 -0
@@ -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
  *
@@ -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
  *
@@ -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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
12
12
  var _CTR_key, _CTR_iv, _CTR_incrementPending;
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
  *
@@ -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
  *
@@ -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
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/node",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "MTKruto for Node.js",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -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
  *
@@ -27,7 +27,7 @@ export { concat } from "./deps/jsr.io/@std/bytes/1.0.4/concat.js";
27
27
  export { MINUTE, SECOND } from "./deps/jsr.io/@std/datetime/0.225.2/constants.js";
28
28
  export { toArrayBuffer } from "./deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js";
29
29
  export { iterateReader } from "./deps/jsr.io/@std/io/0.225.0/iterate_reader.js";
30
- export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.6/base64.js";
30
+ export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.5/base64.js";
31
31
  import { contentType as contentType_ } from "./deps/jsr.io/@std/media-types/1.1.0/content_type.js";
32
32
  export declare const contentType: typeof contentType_;
33
33
  export declare function extension(mimeType: string): string;
package/script/0_deps.js CHANGED
@@ -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-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -55,7 +55,7 @@ var to_array_buffer_js_1 = require("./deps/jsr.io/@std/streams/1.0.8/to_array_bu
55
55
  Object.defineProperty(exports, "toArrayBuffer", { enumerable: true, get: function () { return to_array_buffer_js_1.toArrayBuffer; } });
56
56
  var iterate_reader_js_1 = require("./deps/jsr.io/@std/io/0.225.0/iterate_reader.js");
57
57
  Object.defineProperty(exports, "iterateReader", { enumerable: true, get: function () { return iterate_reader_js_1.iterateReader; } });
58
- var base64_js_1 = require("./deps/jsr.io/@std/encoding/1.0.6/base64.js");
58
+ var base64_js_1 = require("./deps/jsr.io/@std/encoding/1.0.5/base64.js");
59
59
  Object.defineProperty(exports, "decodeBase64", { enumerable: true, get: function () { return base64_js_1.decodeBase64; } });
60
60
  Object.defineProperty(exports, "encodeBase64", { enumerable: true, get: function () { return base64_js_1.encodeBase64; } });
61
61
  const content_type_js_1 = require("./deps/jsr.io/@std/media-types/1.1.0/content_type.js");
@@ -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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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
  *
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /**
18
18
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
19
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
19
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
20
20
  *
21
21
  * This file is part of MTKruto.
22
22
  *
@@ -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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
package/script/2_tl.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/script/2_tl.js CHANGED
@@ -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-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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/script/3_types.js CHANGED
@@ -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-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -2,7 +2,7 @@ import { DC } from "./3_transport.js";
2
2
  export type PublicKeys = readonly [bigint, [bigint, bigint]][];
3
3
  export declare const PUBLIC_KEYS: PublicKeys;
4
4
  export declare const INITIAL_DC: DC;
5
- export declare const LAYER = 195;
5
+ export declare const LAYER = 196;
6
6
  export declare const APP_VERSION = "MTKruto";
7
7
  export declare const DEVICE_MODEL: string;
8
8
  export declare const LANG_CODE: string;
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.CHANNEL_DIFFERENCE_LIMIT_BOT = exports.CHANNEL_DIFFERENCE_LIMIT_USER = exports.MAX_CHANNEL_ID = exports.MAX_CHAT_ID = exports.STICKER_SET_NAME_TTL = exports.USERNAME_TTL = exports.SYSTEM_VERSION = exports.SYSTEM_LANG_CODE = exports.LANG_PACK = exports.LANG_CODE = exports.DEVICE_MODEL = exports.APP_VERSION = exports.LAYER = exports.INITIAL_DC = exports.PUBLIC_KEYS = void 0;
27
27
  /**
28
28
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
29
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
29
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
30
30
  *
31
31
  * This file is part of MTKruto.
32
32
  *
@@ -96,7 +96,7 @@ exports.PUBLIC_KEYS = Object.freeze([
96
96
  ],
97
97
  ]);
98
98
  exports.INITIAL_DC = "2";
99
- exports.LAYER = 195;
99
+ exports.LAYER = 196;
100
100
  exports.APP_VERSION = "MTKruto";
101
101
  // @ts-ignore: lib
102
102
  exports.DEVICE_MODEL = typeof dntShim.Deno === "undefined" ? typeof navigator === "undefined" ? typeof process === "undefined" ? "Unknown" : process.platform + "-" + process.arch : (navigator.userAgent.split(" ")[0] || "Unknown") : dntShim.Deno.build.os + "-" + dntShim.Deno.build.arch;
@@ -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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
5
5
  *
6
6
  * This file is part of MTKruto.
7
7
  *
@@ -38,7 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.ClientAbstract = void 0;
39
39
  /**
40
40
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
41
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
41
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
42
42
  *
43
43
  * This file is part of MTKruto.
44
44
  *
@@ -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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ * Copyright (C) 2023-2025 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-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
  *
@@ -71,7 +71,7 @@ export interface _SendCommon extends _BusinessConnectionIdCommon, _PaidBroadcast
71
71
  sendAt?: Date;
72
72
  }
73
73
  export interface SendMessageParams extends _SendCommon, _ReplyMarkupCommon {
74
- /** The parse mode to use. If not provided, the default parse mode will be used. */
74
+ /** The parse mode to use. if omitted, the default parse mode will be used. */
75
75
  parseMode?: ParseMode;
76
76
  /** The message's entities. */
77
77
  entities?: MessageEntity[];
@@ -82,13 +82,21 @@ export interface SendChatActionParams extends _BusinessConnectionIdCommon {
82
82
  messageThreadId?: number;
83
83
  }
84
84
  export interface EditMessageParams extends _BusinessConnectionIdCommon, _ReplyMarkupCommon {
85
- /** The parse mode to use. If not provided, the default parse mode will be used. */
85
+ /** The parse mode to use. if omitted, the default parse mode will be used. */
86
86
  parseMode?: ParseMode;
87
87
  /** The message's entities. */
88
88
  entities?: MessageEntity[];
89
89
  /** The message's link preview. */
90
90
  linkPreview?: LinkPreview;
91
91
  }
92
+ export interface EditMessageCaptionParams extends _BusinessConnectionIdCommon, _ReplyMarkupCommon {
93
+ /** The message's new caption. If omitted, the caption will be removed. */
94
+ caption?: string;
95
+ /** The parse mode to use. If omitted, the default parse mode will be used. */
96
+ parseMode?: ParseMode;
97
+ /** The caption's entities. */
98
+ entities?: MessageEntity[];
99
+ }
92
100
  export interface EditMessageReplyMarkupParams extends _BusinessConnectionIdCommon, _ReplyMarkupCommon {
93
101
  }
94
102
  export interface EditMessageMediaParams extends _BusinessConnectionIdCommon, _ReplyMarkupCommon {
@@ -104,9 +112,9 @@ export interface ForwardMessagesParams extends Omit<_SendCommon, "replyToMessage
104
112
  export interface SendPollParams extends _SendCommon, _ReplyMarkupCommon {
105
113
  /** The entities of the poll's question. */
106
114
  questionEntities?: MessageEntity[];
107
- /** The parse mode to use for the poll's question. If not provided, the default parse mode will be used. */
115
+ /** The parse mode to use for the poll's question. if omitted, the default parse mode will be used. */
108
116
  questionParseMode?: ParseMode;
109
- /** The parse mode to use for the poll's options. If not provided, the default parse mode will be used. */
117
+ /** The parse mode to use for the poll's options. if omitted, the default parse mode will be used. */
110
118
  optionParseMode?: ParseMode;
111
119
  /** Whether the poll should be anonymous. */
112
120
  isAnonymous?: boolean;
@@ -118,7 +126,7 @@ export interface SendPollParams extends _SendCommon, _ReplyMarkupCommon {
118
126
  correctOptionIndex?: number;
119
127
  /** A text that will be shown to the user when the poll is answered. Only valid for quiz polls. */
120
128
  explanation?: string;
121
- /** The parse mode to use for the explanation. If not provided, the default parse mode will be used. */
129
+ /** The parse mode to use for the explanation. if omitted, the default parse mode will be used. */
122
130
  explanationParseMode?: ParseMode;
123
131
  /** The explanation's entities. */
124
132
  explanationEntities?: MessageEntity[];
@@ -179,7 +187,7 @@ export interface AnswerInlineQueryParams {
179
187
  button?: InlineQueryResultButton;
180
188
  }
181
189
  export interface SetMyCommandsParams {
182
- /** A two-letter ISO 639-1 language code. If not set, the command details will be updated for users having an unsupported language. */
190
+ /** A two-letter ISO 639-1 language code. If omitted, the command details will be updated for users having an unsupported language. */
183
191
  languageCode?: string;
184
192
  /** The scope in which the commands are available. */
185
193
  scope?: BotCommandScope;
@@ -198,7 +206,7 @@ export interface _CaptionCommon {
198
206
  caption?: string;
199
207
  /** The caption's entities. */
200
208
  captionEntities?: MessageEntity[];
201
- /** The parse mode to use for the caption. If not provided, the default parse mode will be used. */
209
+ /** The parse mode to use for the caption. if omitted, the default parse mode will be used. */
202
210
  parseMode?: ParseMode;
203
211
  }
204
212
  export interface _SpoilCommon {