@mtkruto/node 0.69.0 → 0.70.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 (541) hide show
  1. package/esm/0_deps.d.ts +3 -1
  2. package/esm/0_deps.d.ts.map +1 -1
  3. package/esm/0_deps.js +3 -1
  4. package/esm/3_types.d.ts +35 -35
  5. package/esm/3_types.d.ts.map +1 -1
  6. package/esm/3_types.js +35 -35
  7. package/esm/_dnt.polyfills.d.ts +7 -0
  8. package/esm/_dnt.polyfills.d.ts.map +1 -1
  9. package/esm/_dnt.polyfills.js +109 -0
  10. package/esm/client/0_abortable_loop.d.ts +27 -0
  11. package/esm/client/0_abortable_loop.d.ts.map +1 -0
  12. package/esm/client/0_abortable_loop.js +49 -0
  13. package/esm/client/0_filters.d.ts +9 -3
  14. package/esm/client/0_filters.d.ts.map +1 -1
  15. package/esm/client/0_filters.js +4 -1
  16. package/esm/client/0_params.d.ts +1 -1
  17. package/esm/client/0_password.d.ts +2 -2
  18. package/esm/client/0_password.d.ts.map +1 -1
  19. package/esm/client/0_storage_operations.d.ts +53 -71
  20. package/esm/client/0_storage_operations.d.ts.map +1 -1
  21. package/esm/client/0_storage_operations.js +241 -238
  22. package/esm/client/0_update_processor.d.ts +2 -2
  23. package/esm/client/0_update_processor.d.ts.map +1 -1
  24. package/esm/client/0_utilities.d.ts +2 -2
  25. package/esm/client/0_utilities.d.ts.map +1 -1
  26. package/esm/client/1_types.d.ts +2 -2
  27. package/esm/client/1_types.d.ts.map +1 -1
  28. package/esm/client/2_account_manager.js +5 -5
  29. package/esm/client/2_business_connection_manager.d.ts +1 -1
  30. package/esm/client/2_business_connection_manager.d.ts.map +1 -1
  31. package/esm/client/2_business_connection_manager.js +3 -3
  32. package/esm/client/2_client_encrypted.d.ts +1 -1
  33. package/esm/client/2_client_encrypted.d.ts.map +1 -1
  34. package/esm/client/2_file_manager.js +2 -2
  35. package/esm/client/2_payment_manager.d.ts +1 -1
  36. package/esm/client/2_payment_manager.d.ts.map +1 -1
  37. package/esm/client/2_payment_manager.js +2 -2
  38. package/esm/client/2_reaction_manager.d.ts +1 -1
  39. package/esm/client/2_reaction_manager.d.ts.map +1 -1
  40. package/esm/client/2_reaction_manager.js +2 -2
  41. package/esm/client/2_translations_manager.d.ts +1 -1
  42. package/esm/client/2_translations_manager.d.ts.map +1 -1
  43. package/esm/client/2_translations_manager.js +15 -11
  44. package/esm/client/2_update_manager.d.ts +4 -2
  45. package/esm/client/2_update_manager.d.ts.map +1 -1
  46. package/esm/client/2_update_manager.js +61 -79
  47. package/esm/client/3_message_manager.d.ts +2 -2
  48. package/esm/client/3_message_manager.d.ts.map +1 -1
  49. package/esm/client/3_message_manager.js +5 -5
  50. package/esm/client/3_video_chat_manager.d.ts +1 -1
  51. package/esm/client/3_video_chat_manager.d.ts.map +1 -1
  52. package/esm/client/4_callback_query_manager.d.ts +1 -1
  53. package/esm/client/4_callback_query_manager.d.ts.map +1 -1
  54. package/esm/client/4_callback_query_manager.js +1 -1
  55. package/esm/client/4_chat_list_manager.d.ts +2 -3
  56. package/esm/client/4_chat_list_manager.d.ts.map +1 -1
  57. package/esm/client/4_chat_list_manager.js +10 -265
  58. package/esm/client/4_chat_manager.d.ts +2 -2
  59. package/esm/client/4_chat_manager.d.ts.map +1 -1
  60. package/esm/client/4_chat_manager.js +7 -7
  61. package/esm/client/4_gift_manager.js +3 -3
  62. package/esm/client/4_inline_query_manager.d.ts +1 -1
  63. package/esm/client/4_inline_query_manager.d.ts.map +1 -1
  64. package/esm/client/4_inline_query_manager.js +3 -3
  65. package/esm/client/4_link_preview_manager.d.ts +1 -1
  66. package/esm/client/4_link_preview_manager.d.ts.map +1 -1
  67. package/esm/client/4_link_preview_manager.js +3 -3
  68. package/esm/client/4_poll_manager.d.ts +1 -1
  69. package/esm/client/4_poll_manager.d.ts.map +1 -1
  70. package/esm/client/4_poll_manager.js +1 -1
  71. package/esm/client/4_story_manager.d.ts +1 -1
  72. package/esm/client/4_story_manager.d.ts.map +1 -1
  73. package/esm/client/4_story_manager.js +7 -7
  74. package/esm/client/5_client.d.ts +15 -9
  75. package/esm/client/5_client.d.ts.map +1 -1
  76. package/esm/client/5_client.js +420 -382
  77. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
  78. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +69 -0
  80. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
  81. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +140 -0
  83. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
  84. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.js +82 -0
  86. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
  87. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.js +109 -0
  89. package/esm/session/2_session_encrypted.d.ts +1 -1
  90. package/esm/session/2_session_encrypted.d.ts.map +1 -1
  91. package/esm/session/2_session_encrypted.js +71 -72
  92. package/esm/storage/0_storage.d.ts +1 -0
  93. package/esm/storage/0_storage.d.ts.map +1 -1
  94. package/esm/storage/2_storage_indexed_db.d.ts +1 -0
  95. package/esm/storage/2_storage_indexed_db.d.ts.map +1 -1
  96. package/esm/storage/2_storage_indexed_db.js +3 -0
  97. package/esm/storage/2_storage_local_storage.node.d.ts +1 -0
  98. package/esm/storage/2_storage_local_storage.node.d.ts.map +1 -1
  99. package/esm/storage/2_storage_local_storage.node.js +3 -0
  100. package/esm/storage/2_storage_memory.d.ts +1 -0
  101. package/esm/storage/2_storage_memory.d.ts.map +1 -1
  102. package/esm/storage/2_storage_memory.js +3 -0
  103. package/esm/storage/2_storage_session_storage.d.ts +1 -0
  104. package/esm/storage/2_storage_session_storage.d.ts.map +1 -1
  105. package/esm/storage/2_storage_session_storage.js +3 -0
  106. package/esm/tl/0_utilities.d.ts +1 -0
  107. package/esm/tl/0_utilities.d.ts.map +1 -1
  108. package/esm/tl/0_utilities.js +20 -1
  109. package/esm/tl/1_telegram_api.d.ts +810 -254
  110. package/esm/tl/1_telegram_api.d.ts.map +1 -1
  111. package/esm/tl/1_telegram_api.js +912 -213
  112. package/esm/tl/1_tl_reader.d.ts +2 -2
  113. package/esm/tl/1_tl_reader.d.ts.map +1 -1
  114. package/esm/tl/1_tl_writer.d.ts +2 -2
  115. package/esm/tl/1_tl_writer.d.ts.map +1 -1
  116. package/esm/tl/2_mtproto.d.ts +1 -1
  117. package/esm/tl/2_mtproto.d.ts.map +1 -1
  118. package/esm/types/0_file_source.d.ts +1 -1
  119. package/esm/types/0_file_source.d.ts.map +1 -1
  120. package/esm/types/1_chat_p.d.ts +10 -0
  121. package/esm/types/1_chat_p.d.ts.map +1 -1
  122. package/esm/types/1_chat_p.js +4 -0
  123. package/esm/types/2_chat.d.ts +2 -5
  124. package/esm/types/2_chat.d.ts.map +1 -1
  125. package/esm/types/2_chat.js +10 -15
  126. package/esm/types/{0_message_entity.d.ts → 2_message_entity.d.ts} +3 -3
  127. package/esm/types/{0_message_entity.d.ts.map → 2_message_entity.d.ts.map} +1 -1
  128. package/esm/types/{0_message_entity.js → 2_message_entity.js} +7 -7
  129. package/esm/types/2_message_reaction_count.d.ts +2 -3
  130. package/esm/types/2_message_reaction_count.d.ts.map +1 -1
  131. package/esm/types/2_message_reaction_count.js +4 -6
  132. package/esm/types/2_poll_answer.d.ts +2 -3
  133. package/esm/types/2_poll_answer.d.ts.map +1 -1
  134. package/esm/types/2_poll_answer.js +4 -5
  135. package/esm/types/2_story_interactive_area.d.ts +2 -2
  136. package/esm/types/2_story_interactive_area.d.ts.map +1 -1
  137. package/esm/types/2_story_interactive_area.js +2 -2
  138. package/esm/types/{1_story_privacy.d.ts → 2_story_privacy.d.ts} +3 -3
  139. package/esm/types/{1_story_privacy.d.ts.map → 2_story_privacy.d.ts.map} +1 -1
  140. package/esm/types/{1_story_privacy.js → 2_story_privacy.js} +10 -10
  141. package/{script/types/1_user.d.ts → esm/types/2_user.d.ts} +5 -1
  142. package/esm/types/2_user.d.ts.map +1 -0
  143. package/esm/types/{1_user.js → 2_user.js} +24 -0
  144. package/esm/types/{2_business_connection.d.ts → 3_business_connection.d.ts} +4 -4
  145. package/esm/types/3_business_connection.d.ts.map +1 -0
  146. package/esm/types/{2_business_connection.js → 3_business_connection.js} +10 -3
  147. package/{script/types/2_chat_member.d.ts → esm/types/3_chat_member.d.ts} +6 -4
  148. package/esm/types/{2_chat_member.d.ts.map → 3_chat_member.d.ts.map} +1 -1
  149. package/esm/types/{2_chat_member.js → 3_chat_member.js} +5 -5
  150. package/esm/types/{2_chat_settings.d.ts → 3_chat_settings.d.ts} +2 -2
  151. package/{script/types/2_chat_settings.d.ts.map → esm/types/3_chat_settings.d.ts.map} +1 -1
  152. package/esm/types/{2_chat_settings.js → 3_chat_settings.js} +1 -1
  153. package/esm/types/{2_chosen_inline_result.d.ts → 3_chosen_inline_result.d.ts} +4 -4
  154. package/esm/types/3_chosen_inline_result.d.ts.map +1 -0
  155. package/esm/types/{2_chosen_inline_result.js → 3_chosen_inline_result.js} +3 -3
  156. package/esm/types/{2_forward_header.d.ts → 3_forward_header.d.ts} +4 -5
  157. package/esm/types/3_forward_header.d.ts.map +1 -0
  158. package/esm/types/{2_forward_header.js → 3_forward_header.js} +11 -12
  159. package/{script/types/2_game.d.ts → esm/types/3_game.d.ts} +2 -2
  160. package/esm/types/3_game.d.ts.map +1 -0
  161. package/esm/types/{2_gift_upgraded_component.d.ts → 3_gift_upgraded_component.d.ts} +2 -2
  162. package/esm/types/{2_gift_upgraded_component.d.ts.map → 3_gift_upgraded_component.d.ts.map} +1 -1
  163. package/esm/types/{2_gift_upgraded_component.js → 3_gift_upgraded_component.js} +1 -1
  164. package/esm/types/{2_inline_query.d.ts → 3_inline_query.d.ts} +4 -4
  165. package/esm/types/3_inline_query.d.ts.map +1 -0
  166. package/esm/types/{2_inline_query.js → 3_inline_query.js} +5 -5
  167. package/{script/types/1_input_media.d.ts → esm/types/3_input_media.d.ts} +2 -2
  168. package/esm/types/{1_input_media.d.ts.map → 3_input_media.d.ts.map} +1 -1
  169. package/{script/types/2_invite_link.d.ts → esm/types/3_invite_link.d.ts} +4 -4
  170. package/{script/types/2_invite_link.d.ts.map → esm/types/3_invite_link.d.ts.map} +1 -1
  171. package/esm/types/{2_invite_link.js → 3_invite_link.js} +5 -5
  172. package/{script/types/2_message_reactions.d.ts → esm/types/3_message_reactions.d.ts} +5 -6
  173. package/esm/types/3_message_reactions.d.ts.map +1 -0
  174. package/esm/types/{2_message_reactions.js → 3_message_reactions.js} +10 -12
  175. package/esm/types/{1_poll_option.d.ts → 3_poll_option.d.ts} +2 -2
  176. package/esm/types/{1_poll_option.d.ts.map → 3_poll_option.d.ts.map} +1 -1
  177. package/esm/types/{1_poll_option.js → 3_poll_option.js} +1 -1
  178. package/esm/types/{2_pre_checkout_query.d.ts → 3_pre_checkout_query.d.ts} +4 -4
  179. package/esm/types/3_pre_checkout_query.d.ts.map +1 -0
  180. package/esm/types/{2_pre_checkout_query.js → 3_pre_checkout_query.js} +5 -5
  181. package/{script/types/1_reply_quote.d.ts → esm/types/3_reply_quote.d.ts} +2 -2
  182. package/esm/types/{1_reply_quote.d.ts.map → 3_reply_quote.d.ts.map} +1 -1
  183. package/esm/types/{1_reply_quote.js → 3_reply_quote.js} +1 -1
  184. package/esm/types/3_story.d.ts +4 -5
  185. package/esm/types/3_story.d.ts.map +1 -1
  186. package/esm/types/3_story.js +6 -7
  187. package/esm/types/{3_chat_member_updated.d.ts → 4_chat_member_updated.d.ts} +6 -7
  188. package/esm/types/4_chat_member_updated.d.ts.map +1 -0
  189. package/esm/types/{3_chat_member_updated.js → 4_chat_member_updated.js} +13 -14
  190. package/esm/types/{3_gift.d.ts → 4_gift.d.ts} +6 -6
  191. package/esm/types/{3_gift.d.ts.map → 4_gift.d.ts.map} +1 -1
  192. package/esm/types/{3_gift.js → 4_gift.js} +7 -7
  193. package/esm/types/{3_join_request.d.ts → 4_join_request.d.ts} +6 -7
  194. package/esm/types/4_join_request.d.ts.map +1 -0
  195. package/esm/types/{3_join_request.js → 4_join_request.js} +17 -18
  196. package/esm/types/{2_poll.d.ts → 4_poll.d.ts} +3 -3
  197. package/esm/types/{2_poll.d.ts.map → 4_poll.d.ts.map} +1 -1
  198. package/esm/types/{2_poll.js → 4_poll.js} +2 -2
  199. package/{script/types/2_reply_to.d.ts → esm/types/4_reply_to.d.ts} +2 -2
  200. package/esm/types/{2_reply_to.d.ts.map → 4_reply_to.d.ts.map} +1 -1
  201. package/esm/types/{4_claimed_gift.d.ts → 5_claimed_gift.d.ts} +5 -6
  202. package/esm/types/5_claimed_gift.d.ts.map +1 -0
  203. package/esm/types/{4_claimed_gift.js → 5_claimed_gift.js} +4 -4
  204. package/esm/types/{4_link_preview.d.ts → 5_link_preview.d.ts} +4 -4
  205. package/{script/types/4_link_preview.d.ts.map → esm/types/5_link_preview.d.ts.map} +1 -1
  206. package/esm/types/{4_link_preview.js → 5_link_preview.js} +3 -3
  207. package/esm/types/{5_claimed_gifts.d.ts → 6_claimed_gifts.d.ts} +4 -4
  208. package/esm/types/6_claimed_gifts.d.ts.map +1 -0
  209. package/esm/types/{5_claimed_gifts.js → 6_claimed_gifts.js} +4 -4
  210. package/esm/types/{5_message.d.ts → 6_message.d.ts} +10 -11
  211. package/esm/types/6_message.d.ts.map +1 -0
  212. package/esm/types/{5_message.js → 6_message.js} +41 -66
  213. package/{script/types/5_message_content.d.ts → esm/types/6_message_content.d.ts} +3 -3
  214. package/esm/types/{5_message_content.d.ts.map → 6_message_content.d.ts.map} +1 -1
  215. package/{script/types/6_callback_query.d.ts → esm/types/7_callback_query.d.ts} +5 -5
  216. package/esm/types/{6_callback_query.d.ts.map → 7_callback_query.d.ts.map} +1 -1
  217. package/esm/types/{6_callback_query.js → 7_callback_query.js} +5 -5
  218. package/{script/types/6_chat_list_item.d.ts → esm/types/7_chat_list_item.d.ts} +6 -7
  219. package/esm/types/7_chat_list_item.d.ts.map +1 -0
  220. package/esm/types/{6_chat_list_item.js → 7_chat_list_item.js} +11 -11
  221. package/{script/types/6_inline_query_result.d.ts → esm/types/7_inline_query_result.d.ts} +3 -3
  222. package/esm/types/{6_inline_query_result.d.ts.map → 7_inline_query_result.d.ts.map} +1 -1
  223. package/esm/types/{6_inline_query_result.js → 7_inline_query_result.js} +1 -1
  224. package/esm/types/{6_saved_chat.d.ts → 7_saved_chat.d.ts} +4 -5
  225. package/esm/types/7_saved_chat.d.ts.map +1 -0
  226. package/esm/types/{6_saved_chat.js → 7_saved_chat.js} +4 -4
  227. package/esm/types/{6_topic.d.ts → 7_topic.d.ts} +2 -2
  228. package/esm/types/{6_topic.d.ts.map → 7_topic.d.ts.map} +1 -1
  229. package/esm/types/{7_inline_query_answer.d.ts → 8_inline_query_answer.d.ts} +2 -2
  230. package/esm/types/{7_inline_query_answer.d.ts.map → 8_inline_query_answer.d.ts.map} +1 -1
  231. package/esm/types/{7_inline_query_answer.js → 8_inline_query_answer.js} +1 -1
  232. package/{script/types/7_saved_chats.d.ts → esm/types/8_saved_chats.d.ts} +5 -5
  233. package/esm/types/8_saved_chats.d.ts.map +1 -0
  234. package/esm/types/{7_saved_chats.js → 8_saved_chats.js} +3 -3
  235. package/esm/types/{7_update.d.ts → 8_update.d.ts} +35 -16
  236. package/esm/types/8_update.d.ts.map +1 -0
  237. package/esm/types/_file_id.d.ts +1 -1
  238. package/esm/types/_file_id.d.ts.map +1 -1
  239. package/esm/types/_getters.d.ts +0 -7
  240. package/esm/types/_getters.d.ts.map +1 -1
  241. package/esm/utilities/0_hash.d.ts +2 -2
  242. package/esm/utilities/0_hash.d.ts.map +1 -1
  243. package/esm/utilities/0_misc.d.ts +1 -0
  244. package/esm/utilities/0_misc.d.ts.map +1 -1
  245. package/esm/utilities/0_misc.js +14 -1
  246. package/esm/utilities/0_part_stream.d.ts +1 -1
  247. package/esm/utilities/0_part_stream.d.ts.map +1 -1
  248. package/package.json +1 -1
  249. package/script/0_deps.d.ts +3 -1
  250. package/script/0_deps.d.ts.map +1 -1
  251. package/script/0_deps.js +6 -1
  252. package/script/3_types.d.ts +35 -35
  253. package/script/3_types.d.ts.map +1 -1
  254. package/script/3_types.js +35 -35
  255. package/script/_dnt.polyfills.d.ts +7 -0
  256. package/script/_dnt.polyfills.d.ts.map +1 -1
  257. package/script/_dnt.polyfills.js +109 -0
  258. package/script/client/0_abortable_loop.d.ts +27 -0
  259. package/script/client/0_abortable_loop.d.ts.map +1 -0
  260. package/script/client/0_abortable_loop.js +53 -0
  261. package/script/client/0_filters.d.ts +9 -3
  262. package/script/client/0_filters.d.ts.map +1 -1
  263. package/script/client/0_filters.js +4 -1
  264. package/script/client/0_params.d.ts +1 -1
  265. package/script/client/0_password.d.ts +2 -2
  266. package/script/client/0_password.d.ts.map +1 -1
  267. package/script/client/0_storage_operations.d.ts +53 -71
  268. package/script/client/0_storage_operations.d.ts.map +1 -1
  269. package/script/client/0_storage_operations.js +239 -236
  270. package/script/client/0_update_processor.d.ts +2 -2
  271. package/script/client/0_update_processor.d.ts.map +1 -1
  272. package/script/client/0_utilities.d.ts +2 -2
  273. package/script/client/0_utilities.d.ts.map +1 -1
  274. package/script/client/1_types.d.ts +2 -2
  275. package/script/client/1_types.d.ts.map +1 -1
  276. package/script/client/2_account_manager.js +5 -5
  277. package/script/client/2_business_connection_manager.d.ts +1 -1
  278. package/script/client/2_business_connection_manager.d.ts.map +1 -1
  279. package/script/client/2_business_connection_manager.js +3 -3
  280. package/script/client/2_client_encrypted.d.ts +1 -1
  281. package/script/client/2_client_encrypted.d.ts.map +1 -1
  282. package/script/client/2_file_manager.js +2 -2
  283. package/script/client/2_payment_manager.d.ts +1 -1
  284. package/script/client/2_payment_manager.d.ts.map +1 -1
  285. package/script/client/2_payment_manager.js +2 -2
  286. package/script/client/2_reaction_manager.d.ts +1 -1
  287. package/script/client/2_reaction_manager.d.ts.map +1 -1
  288. package/script/client/2_reaction_manager.js +2 -2
  289. package/script/client/2_translations_manager.d.ts +1 -1
  290. package/script/client/2_translations_manager.d.ts.map +1 -1
  291. package/script/client/2_translations_manager.js +15 -11
  292. package/script/client/2_update_manager.d.ts +4 -2
  293. package/script/client/2_update_manager.d.ts.map +1 -1
  294. package/script/client/2_update_manager.js +61 -79
  295. package/script/client/3_message_manager.d.ts +2 -2
  296. package/script/client/3_message_manager.d.ts.map +1 -1
  297. package/script/client/3_message_manager.js +5 -5
  298. package/script/client/3_video_chat_manager.d.ts +1 -1
  299. package/script/client/3_video_chat_manager.d.ts.map +1 -1
  300. package/script/client/4_callback_query_manager.d.ts +1 -1
  301. package/script/client/4_callback_query_manager.d.ts.map +1 -1
  302. package/script/client/4_callback_query_manager.js +1 -1
  303. package/script/client/4_chat_list_manager.d.ts +2 -3
  304. package/script/client/4_chat_list_manager.d.ts.map +1 -1
  305. package/script/client/4_chat_list_manager.js +9 -264
  306. package/script/client/4_chat_manager.d.ts +2 -2
  307. package/script/client/4_chat_manager.d.ts.map +1 -1
  308. package/script/client/4_chat_manager.js +7 -7
  309. package/script/client/4_gift_manager.js +3 -3
  310. package/script/client/4_inline_query_manager.d.ts +1 -1
  311. package/script/client/4_inline_query_manager.d.ts.map +1 -1
  312. package/script/client/4_inline_query_manager.js +3 -3
  313. package/script/client/4_link_preview_manager.d.ts +1 -1
  314. package/script/client/4_link_preview_manager.d.ts.map +1 -1
  315. package/script/client/4_link_preview_manager.js +3 -3
  316. package/script/client/4_poll_manager.d.ts +1 -1
  317. package/script/client/4_poll_manager.d.ts.map +1 -1
  318. package/script/client/4_poll_manager.js +1 -1
  319. package/script/client/4_story_manager.d.ts +1 -1
  320. package/script/client/4_story_manager.d.ts.map +1 -1
  321. package/script/client/4_story_manager.js +7 -7
  322. package/script/client/5_client.d.ts +15 -9
  323. package/script/client/5_client.d.ts.map +1 -1
  324. package/script/client/5_client.js +418 -380
  325. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
  326. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
  327. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +72 -0
  328. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
  329. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
  330. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +144 -0
  331. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
  332. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
  333. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.js +85 -0
  334. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
  335. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  336. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.js +113 -0
  337. package/script/session/2_session_encrypted.d.ts +1 -1
  338. package/script/session/2_session_encrypted.d.ts.map +1 -1
  339. package/script/session/2_session_encrypted.js +70 -71
  340. package/script/storage/0_storage.d.ts +1 -0
  341. package/script/storage/0_storage.d.ts.map +1 -1
  342. package/script/storage/2_storage_indexed_db.d.ts +1 -0
  343. package/script/storage/2_storage_indexed_db.d.ts.map +1 -1
  344. package/script/storage/2_storage_indexed_db.js +3 -0
  345. package/script/storage/2_storage_local_storage.node.d.ts +1 -0
  346. package/script/storage/2_storage_local_storage.node.d.ts.map +1 -1
  347. package/script/storage/2_storage_local_storage.node.js +3 -0
  348. package/script/storage/2_storage_memory.d.ts +1 -0
  349. package/script/storage/2_storage_memory.d.ts.map +1 -1
  350. package/script/storage/2_storage_memory.js +3 -0
  351. package/script/storage/2_storage_session_storage.d.ts +1 -0
  352. package/script/storage/2_storage_session_storage.d.ts.map +1 -1
  353. package/script/storage/2_storage_session_storage.js +3 -0
  354. package/script/tl/0_utilities.d.ts +1 -0
  355. package/script/tl/0_utilities.d.ts.map +1 -1
  356. package/script/tl/0_utilities.js +20 -0
  357. package/script/tl/1_telegram_api.d.ts +810 -254
  358. package/script/tl/1_telegram_api.d.ts.map +1 -1
  359. package/script/tl/1_telegram_api.js +912 -213
  360. package/script/tl/1_tl_reader.d.ts +2 -2
  361. package/script/tl/1_tl_reader.d.ts.map +1 -1
  362. package/script/tl/1_tl_writer.d.ts +2 -2
  363. package/script/tl/1_tl_writer.d.ts.map +1 -1
  364. package/script/tl/2_mtproto.d.ts +1 -1
  365. package/script/tl/2_mtproto.d.ts.map +1 -1
  366. package/script/types/0_file_source.d.ts +1 -1
  367. package/script/types/0_file_source.d.ts.map +1 -1
  368. package/script/types/1_chat_p.d.ts +10 -0
  369. package/script/types/1_chat_p.d.ts.map +1 -1
  370. package/script/types/1_chat_p.js +5 -0
  371. package/script/types/2_chat.d.ts +2 -5
  372. package/script/types/2_chat.d.ts.map +1 -1
  373. package/script/types/2_chat.js +10 -15
  374. package/script/types/{0_message_entity.d.ts → 2_message_entity.d.ts} +3 -3
  375. package/script/types/{0_message_entity.d.ts.map → 2_message_entity.d.ts.map} +1 -1
  376. package/script/types/{0_message_entity.js → 2_message_entity.js} +7 -7
  377. package/script/types/2_message_reaction_count.d.ts +2 -3
  378. package/script/types/2_message_reaction_count.d.ts.map +1 -1
  379. package/script/types/2_message_reaction_count.js +4 -6
  380. package/script/types/2_poll_answer.d.ts +2 -3
  381. package/script/types/2_poll_answer.d.ts.map +1 -1
  382. package/script/types/2_poll_answer.js +4 -5
  383. package/script/types/2_story_interactive_area.d.ts +2 -2
  384. package/script/types/2_story_interactive_area.d.ts.map +1 -1
  385. package/script/types/2_story_interactive_area.js +2 -2
  386. package/script/types/{1_story_privacy.d.ts → 2_story_privacy.d.ts} +3 -3
  387. package/script/types/{1_story_privacy.d.ts.map → 2_story_privacy.d.ts.map} +1 -1
  388. package/script/types/{1_story_privacy.js → 2_story_privacy.js} +10 -10
  389. package/{esm/types/1_user.d.ts → script/types/2_user.d.ts} +5 -1
  390. package/script/types/2_user.d.ts.map +1 -0
  391. package/script/types/{1_user.js → 2_user.js} +25 -0
  392. package/script/types/{2_business_connection.d.ts → 3_business_connection.d.ts} +4 -4
  393. package/script/types/3_business_connection.d.ts.map +1 -0
  394. package/script/types/{2_business_connection.js → 3_business_connection.js} +10 -3
  395. package/{esm/types/2_chat_member.d.ts → script/types/3_chat_member.d.ts} +6 -4
  396. package/script/types/{2_chat_member.d.ts.map → 3_chat_member.d.ts.map} +1 -1
  397. package/script/types/{2_chat_member.js → 3_chat_member.js} +5 -5
  398. package/script/types/{2_chat_settings.d.ts → 3_chat_settings.d.ts} +2 -2
  399. package/{esm/types/2_chat_settings.d.ts.map → script/types/3_chat_settings.d.ts.map} +1 -1
  400. package/script/types/{2_chat_settings.js → 3_chat_settings.js} +2 -2
  401. package/script/types/{2_chosen_inline_result.d.ts → 3_chosen_inline_result.d.ts} +4 -4
  402. package/script/types/3_chosen_inline_result.d.ts.map +1 -0
  403. package/script/types/{2_chosen_inline_result.js → 3_chosen_inline_result.js} +4 -4
  404. package/script/types/{2_forward_header.d.ts → 3_forward_header.d.ts} +4 -5
  405. package/script/types/3_forward_header.d.ts.map +1 -0
  406. package/script/types/{2_forward_header.js → 3_forward_header.js} +11 -12
  407. package/{esm/types/2_game.d.ts → script/types/3_game.d.ts} +2 -2
  408. package/script/types/3_game.d.ts.map +1 -0
  409. package/script/types/{2_gift_upgraded_component.d.ts → 3_gift_upgraded_component.d.ts} +2 -2
  410. package/script/types/{2_gift_upgraded_component.d.ts.map → 3_gift_upgraded_component.d.ts.map} +1 -1
  411. package/script/types/{2_gift_upgraded_component.js → 3_gift_upgraded_component.js} +2 -2
  412. package/script/types/{2_inline_query.d.ts → 3_inline_query.d.ts} +4 -4
  413. package/script/types/3_inline_query.d.ts.map +1 -0
  414. package/script/types/{2_inline_query.js → 3_inline_query.js} +5 -5
  415. package/{esm/types/1_input_media.d.ts → script/types/3_input_media.d.ts} +2 -2
  416. package/script/types/{1_input_media.d.ts.map → 3_input_media.d.ts.map} +1 -1
  417. package/{esm/types/2_invite_link.d.ts → script/types/3_invite_link.d.ts} +4 -4
  418. package/{esm/types/2_invite_link.d.ts.map → script/types/3_invite_link.d.ts.map} +1 -1
  419. package/script/types/{2_invite_link.js → 3_invite_link.js} +5 -5
  420. package/{esm/types/2_message_reactions.d.ts → script/types/3_message_reactions.d.ts} +5 -6
  421. package/script/types/3_message_reactions.d.ts.map +1 -0
  422. package/script/types/{2_message_reactions.js → 3_message_reactions.js} +10 -12
  423. package/script/types/{1_poll_option.d.ts → 3_poll_option.d.ts} +2 -2
  424. package/script/types/{1_poll_option.d.ts.map → 3_poll_option.d.ts.map} +1 -1
  425. package/script/types/{1_poll_option.js → 3_poll_option.js} +2 -2
  426. package/script/types/{2_pre_checkout_query.d.ts → 3_pre_checkout_query.d.ts} +4 -4
  427. package/script/types/3_pre_checkout_query.d.ts.map +1 -0
  428. package/script/types/{2_pre_checkout_query.js → 3_pre_checkout_query.js} +5 -5
  429. package/{esm/types/1_reply_quote.d.ts → script/types/3_reply_quote.d.ts} +2 -2
  430. package/script/types/{1_reply_quote.d.ts.map → 3_reply_quote.d.ts.map} +1 -1
  431. package/script/types/{1_reply_quote.js → 3_reply_quote.js} +2 -2
  432. package/script/types/3_story.d.ts +4 -5
  433. package/script/types/3_story.d.ts.map +1 -1
  434. package/script/types/3_story.js +8 -9
  435. package/script/types/{3_chat_member_updated.d.ts → 4_chat_member_updated.d.ts} +6 -7
  436. package/script/types/4_chat_member_updated.d.ts.map +1 -0
  437. package/script/types/{3_chat_member_updated.js → 4_chat_member_updated.js} +13 -14
  438. package/script/types/{3_gift.d.ts → 4_gift.d.ts} +6 -6
  439. package/script/types/{3_gift.d.ts.map → 4_gift.d.ts.map} +1 -1
  440. package/script/types/{3_gift.js → 4_gift.js} +9 -9
  441. package/script/types/{3_join_request.d.ts → 4_join_request.d.ts} +6 -7
  442. package/script/types/4_join_request.d.ts.map +1 -0
  443. package/script/types/{3_join_request.js → 4_join_request.js} +17 -18
  444. package/script/types/{2_poll.d.ts → 4_poll.d.ts} +3 -3
  445. package/script/types/{2_poll.d.ts.map → 4_poll.d.ts.map} +1 -1
  446. package/script/types/{2_poll.js → 4_poll.js} +5 -5
  447. package/{esm/types/2_reply_to.d.ts → script/types/4_reply_to.d.ts} +2 -2
  448. package/script/types/{2_reply_to.d.ts.map → 4_reply_to.d.ts.map} +1 -1
  449. package/script/types/{4_claimed_gift.d.ts → 5_claimed_gift.d.ts} +5 -6
  450. package/script/types/5_claimed_gift.d.ts.map +1 -0
  451. package/script/types/{4_claimed_gift.js → 5_claimed_gift.js} +5 -5
  452. package/script/types/{4_link_preview.d.ts → 5_link_preview.d.ts} +4 -4
  453. package/{esm/types/4_link_preview.d.ts.map → script/types/5_link_preview.d.ts.map} +1 -1
  454. package/script/types/{4_link_preview.js → 5_link_preview.js} +3 -3
  455. package/script/types/{5_claimed_gifts.d.ts → 6_claimed_gifts.d.ts} +4 -4
  456. package/script/types/6_claimed_gifts.d.ts.map +1 -0
  457. package/script/types/{5_claimed_gifts.js → 6_claimed_gifts.js} +4 -4
  458. package/script/types/{5_message.d.ts → 6_message.d.ts} +10 -11
  459. package/script/types/6_message.d.ts.map +1 -0
  460. package/script/types/{5_message.js → 6_message.js} +45 -70
  461. package/{esm/types/5_message_content.d.ts → script/types/6_message_content.d.ts} +3 -3
  462. package/script/types/{5_message_content.d.ts.map → 6_message_content.d.ts.map} +1 -1
  463. package/{esm/types/6_callback_query.d.ts → script/types/7_callback_query.d.ts} +5 -5
  464. package/script/types/{6_callback_query.d.ts.map → 7_callback_query.d.ts.map} +1 -1
  465. package/script/types/{6_callback_query.js → 7_callback_query.js} +5 -5
  466. package/{esm/types/6_chat_list_item.d.ts → script/types/7_chat_list_item.d.ts} +6 -7
  467. package/script/types/7_chat_list_item.d.ts.map +1 -0
  468. package/script/types/{6_chat_list_item.js → 7_chat_list_item.js} +11 -11
  469. package/{esm/types/6_inline_query_result.d.ts → script/types/7_inline_query_result.d.ts} +3 -3
  470. package/script/types/{6_inline_query_result.d.ts.map → 7_inline_query_result.d.ts.map} +1 -1
  471. package/script/types/{6_inline_query_result.js → 7_inline_query_result.js} +3 -3
  472. package/script/types/{6_saved_chat.d.ts → 7_saved_chat.d.ts} +4 -5
  473. package/script/types/7_saved_chat.d.ts.map +1 -0
  474. package/script/types/{6_saved_chat.js → 7_saved_chat.js} +4 -4
  475. package/script/types/{6_topic.d.ts → 7_topic.d.ts} +2 -2
  476. package/script/types/{6_topic.d.ts.map → 7_topic.d.ts.map} +1 -1
  477. package/script/types/{7_inline_query_answer.d.ts → 8_inline_query_answer.d.ts} +2 -2
  478. package/script/types/{7_inline_query_answer.d.ts.map → 8_inline_query_answer.d.ts.map} +1 -1
  479. package/script/types/{7_inline_query_answer.js → 8_inline_query_answer.js} +2 -2
  480. package/{esm/types/7_saved_chats.d.ts → script/types/8_saved_chats.d.ts} +5 -5
  481. package/script/types/8_saved_chats.d.ts.map +1 -0
  482. package/script/types/{7_saved_chats.js → 8_saved_chats.js} +3 -3
  483. package/script/types/{7_update.d.ts → 8_update.d.ts} +35 -16
  484. package/script/types/8_update.d.ts.map +1 -0
  485. package/script/types/_file_id.d.ts +1 -1
  486. package/script/types/_file_id.d.ts.map +1 -1
  487. package/script/types/_getters.d.ts +0 -7
  488. package/script/types/_getters.d.ts.map +1 -1
  489. package/script/utilities/0_hash.d.ts +2 -2
  490. package/script/utilities/0_hash.d.ts.map +1 -1
  491. package/script/utilities/0_misc.d.ts +1 -0
  492. package/script/utilities/0_misc.d.ts.map +1 -1
  493. package/script/utilities/0_misc.js +14 -0
  494. package/script/utilities/0_part_stream.d.ts +1 -1
  495. package/script/utilities/0_part_stream.d.ts.map +1 -1
  496. package/esm/types/1_user.d.ts.map +0 -1
  497. package/esm/types/2_business_connection.d.ts.map +0 -1
  498. package/esm/types/2_chosen_inline_result.d.ts.map +0 -1
  499. package/esm/types/2_forward_header.d.ts.map +0 -1
  500. package/esm/types/2_game.d.ts.map +0 -1
  501. package/esm/types/2_inline_query.d.ts.map +0 -1
  502. package/esm/types/2_message_reactions.d.ts.map +0 -1
  503. package/esm/types/2_pre_checkout_query.d.ts.map +0 -1
  504. package/esm/types/3_chat_member_updated.d.ts.map +0 -1
  505. package/esm/types/3_join_request.d.ts.map +0 -1
  506. package/esm/types/4_claimed_gift.d.ts.map +0 -1
  507. package/esm/types/5_claimed_gifts.d.ts.map +0 -1
  508. package/esm/types/5_message.d.ts.map +0 -1
  509. package/esm/types/6_chat_list_item.d.ts.map +0 -1
  510. package/esm/types/6_saved_chat.d.ts.map +0 -1
  511. package/esm/types/7_saved_chats.d.ts.map +0 -1
  512. package/esm/types/7_update.d.ts.map +0 -1
  513. package/script/types/1_user.d.ts.map +0 -1
  514. package/script/types/2_business_connection.d.ts.map +0 -1
  515. package/script/types/2_chosen_inline_result.d.ts.map +0 -1
  516. package/script/types/2_forward_header.d.ts.map +0 -1
  517. package/script/types/2_game.d.ts.map +0 -1
  518. package/script/types/2_inline_query.d.ts.map +0 -1
  519. package/script/types/2_message_reactions.d.ts.map +0 -1
  520. package/script/types/2_pre_checkout_query.d.ts.map +0 -1
  521. package/script/types/3_chat_member_updated.d.ts.map +0 -1
  522. package/script/types/3_join_request.d.ts.map +0 -1
  523. package/script/types/4_claimed_gift.d.ts.map +0 -1
  524. package/script/types/5_claimed_gifts.d.ts.map +0 -1
  525. package/script/types/5_message.d.ts.map +0 -1
  526. package/script/types/6_chat_list_item.d.ts.map +0 -1
  527. package/script/types/6_saved_chat.d.ts.map +0 -1
  528. package/script/types/7_saved_chats.d.ts.map +0 -1
  529. package/script/types/7_update.d.ts.map +0 -1
  530. /package/esm/types/{2_game.js → 3_game.js} +0 -0
  531. /package/esm/types/{1_input_media.js → 3_input_media.js} +0 -0
  532. /package/esm/types/{2_reply_to.js → 4_reply_to.js} +0 -0
  533. /package/esm/types/{5_message_content.js → 6_message_content.js} +0 -0
  534. /package/esm/types/{6_topic.js → 7_topic.js} +0 -0
  535. /package/esm/types/{7_update.js → 8_update.js} +0 -0
  536. /package/script/types/{2_game.js → 3_game.js} +0 -0
  537. /package/script/types/{1_input_media.js → 3_input_media.js} +0 -0
  538. /package/script/types/{2_reply_to.js → 4_reply_to.js} +0 -0
  539. /package/script/types/{5_message_content.js → 6_message_content.js} +0 -0
  540. /package/script/types/{6_topic.js → 7_topic.js} +0 -0
  541. /package/script/types/{7_update.js → 8_update.js} +0 -0
package/esm/0_deps.d.ts CHANGED
@@ -27,13 +27,15 @@ export { extname } from "./deps/jsr.io/@std/path/1.1.2/extname.js";
27
27
  export { basename } from "./deps/jsr.io/@std/path/1.1.2/basename.js";
28
28
  export { toFileUrl } from "./deps/jsr.io/@std/path/1.1.2/to_file_url.js";
29
29
  export { isAbsolute } from "./deps/jsr.io/@std/path/1.1.2/is_absolute.js";
30
- export { delay } from "./deps/jsr.io/@std/async/1.0.14/mod.js";
30
+ export { delay, pooledMap } from "./deps/jsr.io/@std/async/1.0.14/mod.js";
31
31
  export { concat } from "./deps/jsr.io/@std/bytes/1.0.6/concat.js";
32
+ export { LruCache } from "./deps/jsr.io/@std/cache/0.2.0/lru_cache.js";
32
33
  export { iterateReader } from "./deps/jsr.io/@std/io/0.225.2/iterate_reader.js";
33
34
  export { format } from "./deps/jsr.io/@std/datetime/0.225.5/format.js";
34
35
  export { MINUTE, SECOND } from "./deps/jsr.io/@std/datetime/0.225.5/constants.js";
35
36
  export { toArrayBuffer } from "./deps/jsr.io/@std/streams/1.0.11/to_array_buffer.js";
36
37
  export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.7/base64.js";
38
+ export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.7/hex.js";
37
39
  import { contentType as contentType_ } from "./deps/jsr.io/@std/media-types/1.1.0/content_type.js";
38
40
  export declare const contentType: typeof contentType_;
39
41
  export declare function extension(mimeType: string): string;
@@ -1 +1 @@
1
- {"version":3,"file":"0_deps.d.ts","sourceRoot":"","sources":["../src/0_deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF,OAAO,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAE/D,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kDAAkD,CAAC;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAEzF,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACnG,eAAO,MAAM,WAAW,EAAE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AY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAEzF,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAErE,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACnG,eAAO,MAAM,WAAW,EAAE,OAAO,YAMhC,CAAC;AAEF,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,UAMzC;AAED,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAEnH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
package/esm/0_deps.js CHANGED
@@ -27,13 +27,15 @@ export { extname } from "./deps/jsr.io/@std/path/1.1.2/extname.js";
27
27
  export { basename } from "./deps/jsr.io/@std/path/1.1.2/basename.js";
28
28
  export { toFileUrl } from "./deps/jsr.io/@std/path/1.1.2/to_file_url.js";
29
29
  export { isAbsolute } from "./deps/jsr.io/@std/path/1.1.2/is_absolute.js";
30
- export { delay } from "./deps/jsr.io/@std/async/1.0.14/mod.js";
30
+ export { delay, pooledMap } from "./deps/jsr.io/@std/async/1.0.14/mod.js";
31
31
  export { concat } from "./deps/jsr.io/@std/bytes/1.0.6/concat.js";
32
+ export { LruCache } from "./deps/jsr.io/@std/cache/0.2.0/lru_cache.js";
32
33
  export { iterateReader } from "./deps/jsr.io/@std/io/0.225.2/iterate_reader.js";
33
34
  export { format } from "./deps/jsr.io/@std/datetime/0.225.5/format.js";
34
35
  export { MINUTE, SECOND } from "./deps/jsr.io/@std/datetime/0.225.5/constants.js";
35
36
  export { toArrayBuffer } from "./deps/jsr.io/@std/streams/1.0.11/to_array_buffer.js";
36
37
  export { decodeBase64, encodeBase64 } from "./deps/jsr.io/@std/encoding/1.0.7/base64.js";
38
+ export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.7/hex.js";
37
39
  import { contentType as contentType_ } from "./deps/jsr.io/@std/media-types/1.1.0/content_type.js";
38
40
  export const contentType = (extentionOrType) => {
39
41
  if (extentionOrType === "tgs") {
package/esm/3_types.d.ts CHANGED
@@ -41,7 +41,6 @@ export * from "./types/0_live_stream_channel.js";
41
41
  export * from "./types/0_location.js";
42
42
  export * from "./types/0_login_url.js";
43
43
  export * from "./types/0_mask_position.js";
44
- export * from "./types/0_message_entity.js";
45
44
  export * from "./types/0_message_reference.js";
46
45
  export * from "./types/0_message_search_filter.js";
47
46
  export * from "./types/0_mini_app_button_info.js";
@@ -72,7 +71,6 @@ export * from "./types/1_document.js";
72
71
  export * from "./types/1_giveaway.js";
73
72
  export * from "./types/1_inline_keyboard_button.js";
74
73
  export * from "./types/1_inline_query_result_button.js";
75
- export * from "./types/1_input_media.js";
76
74
  export * from "./types/1_input_story_content.js";
77
75
  export * from "./types/1_keyboard_button.js";
78
76
  export * from "./types/1_message_reaction.js";
@@ -80,55 +78,57 @@ export * from "./types/1_mini_app_info.js";
80
78
  export * from "./types/1_network_statistics.js";
81
79
  export * from "./types/1_order_info.js";
82
80
  export * from "./types/1_photo.js";
83
- export * from "./types/1_poll_option.js";
84
81
  export * from "./types/1_reaction_count.js";
85
- export * from "./types/1_reply_quote.js";
86
82
  export * from "./types/1_sticker.js";
87
- export * from "./types/1_story_privacy.js";
88
83
  export * from "./types/1_story_reaction.js";
89
- export * from "./types/1_user.js";
90
84
  export * from "./types/1_venue.js";
91
85
  export * from "./types/1_video_note.js";
92
86
  export * from "./types/1_video.js";
93
- export * from "./types/2_business_connection.js";
94
- export * from "./types/2_chat_member.js";
95
- export * from "./types/2_chat_settings.js";
96
87
  export * from "./types/2_chat.js";
97
- export * from "./types/2_chosen_inline_result.js";
98
- export * from "./types/2_forward_header.js";
99
- export * from "./types/2_game.js";
100
- export * from "./types/2_gift_upgraded_component.js";
101
88
  export * from "./types/2_inactive_chat.js";
102
- export * from "./types/2_inline_query.js";
103
- export * from "./types/2_invite_link.js";
89
+ export * from "./types/2_message_entity.js";
104
90
  export * from "./types/2_message_interactions.js";
105
91
  export * from "./types/2_message_reaction_count.js";
106
- export * from "./types/2_message_reactions.js";
107
92
  export * from "./types/2_poll_answer.js";
108
- export * from "./types/2_poll.js";
109
- export * from "./types/2_pre_checkout_query.js";
110
93
  export * from "./types/2_reply_markup.js";
111
- export * from "./types/2_reply_to.js";
112
94
  export * from "./types/2_sticker_set.js";
113
95
  export * from "./types/2_story_content.js";
114
96
  export * from "./types/2_story_interactions.js";
115
97
  export * from "./types/2_story_interactive_area.js";
98
+ export * from "./types/2_story_privacy.js";
116
99
  export * from "./types/2_successful_payment.js";
117
- export * from "./types/3_chat_member_updated.js";
118
- export * from "./types/3_gift.js";
119
- export * from "./types/3_join_request.js";
100
+ export * from "./types/2_user.js";
101
+ export * from "./types/3_business_connection.js";
102
+ export * from "./types/3_chat_member.js";
103
+ export * from "./types/3_chat_settings.js";
104
+ export * from "./types/3_chosen_inline_result.js";
105
+ export * from "./types/3_forward_header.js";
106
+ export * from "./types/3_game.js";
107
+ export * from "./types/3_gift_upgraded_component.js";
108
+ export * from "./types/3_inline_query.js";
109
+ export * from "./types/3_input_media.js";
110
+ export * from "./types/3_invite_link.js";
111
+ export * from "./types/3_message_reactions.js";
112
+ export * from "./types/3_poll_option.js";
113
+ export * from "./types/3_pre_checkout_query.js";
114
+ export * from "./types/3_reply_quote.js";
120
115
  export * from "./types/3_story.js";
121
- export * from "./types/4_claimed_gift.js";
122
- export * from "./types/4_link_preview.js";
123
- export * from "./types/5_claimed_gifts.js";
124
- export * from "./types/5_message_content.js";
125
- export * from "./types/5_message.js";
126
- export * from "./types/6_callback_query.js";
127
- export * from "./types/6_chat_list_item.js";
128
- export * from "./types/6_inline_query_result.js";
129
- export * from "./types/6_saved_chat.js";
130
- export * from "./types/6_topic.js";
131
- export * from "./types/7_inline_query_answer.js";
132
- export * from "./types/7_saved_chats.js";
133
- export * from "./types/7_update.js";
116
+ export * from "./types/4_chat_member_updated.js";
117
+ export * from "./types/4_gift.js";
118
+ export * from "./types/4_join_request.js";
119
+ export * from "./types/4_poll.js";
120
+ export * from "./types/4_reply_to.js";
121
+ export * from "./types/5_claimed_gift.js";
122
+ export * from "./types/5_link_preview.js";
123
+ export * from "./types/6_claimed_gifts.js";
124
+ export * from "./types/6_message_content.js";
125
+ export * from "./types/6_message.js";
126
+ export * from "./types/7_callback_query.js";
127
+ export * from "./types/7_chat_list_item.js";
128
+ export * from "./types/7_inline_query_result.js";
129
+ export * from "./types/7_saved_chat.js";
130
+ export * from "./types/7_topic.js";
131
+ export * from "./types/8_inline_query_answer.js";
132
+ export * from "./types/8_saved_chats.js";
133
+ export * from "./types/8_update.js";
134
134
  //# sourceMappingURL=3_types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"3_types.d.ts","sourceRoot":"","sources":["../src/3_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,c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AC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
package/esm/3_types.js CHANGED
@@ -41,7 +41,6 @@ export * from "./types/0_live_stream_channel.js";
41
41
  export * from "./types/0_location.js";
42
42
  export * from "./types/0_login_url.js";
43
43
  export * from "./types/0_mask_position.js";
44
- export * from "./types/0_message_entity.js";
45
44
  export * from "./types/0_message_reference.js";
46
45
  export * from "./types/0_message_search_filter.js";
47
46
  export * from "./types/0_mini_app_button_info.js";
@@ -72,7 +71,6 @@ export * from "./types/1_document.js";
72
71
  export * from "./types/1_giveaway.js";
73
72
  export * from "./types/1_inline_keyboard_button.js";
74
73
  export * from "./types/1_inline_query_result_button.js";
75
- export * from "./types/1_input_media.js";
76
74
  export * from "./types/1_input_story_content.js";
77
75
  export * from "./types/1_keyboard_button.js";
78
76
  export * from "./types/1_message_reaction.js";
@@ -80,54 +78,56 @@ export * from "./types/1_mini_app_info.js";
80
78
  export * from "./types/1_network_statistics.js";
81
79
  export * from "./types/1_order_info.js";
82
80
  export * from "./types/1_photo.js";
83
- export * from "./types/1_poll_option.js";
84
81
  export * from "./types/1_reaction_count.js";
85
- export * from "./types/1_reply_quote.js";
86
82
  export * from "./types/1_sticker.js";
87
- export * from "./types/1_story_privacy.js";
88
83
  export * from "./types/1_story_reaction.js";
89
- export * from "./types/1_user.js";
90
84
  export * from "./types/1_venue.js";
91
85
  export * from "./types/1_video_note.js";
92
86
  export * from "./types/1_video.js";
93
- export * from "./types/2_business_connection.js";
94
- export * from "./types/2_chat_member.js";
95
- export * from "./types/2_chat_settings.js";
96
87
  export * from "./types/2_chat.js";
97
- export * from "./types/2_chosen_inline_result.js";
98
- export * from "./types/2_forward_header.js";
99
- export * from "./types/2_game.js";
100
- export * from "./types/2_gift_upgraded_component.js";
101
88
  export * from "./types/2_inactive_chat.js";
102
- export * from "./types/2_inline_query.js";
103
- export * from "./types/2_invite_link.js";
89
+ export * from "./types/2_message_entity.js";
104
90
  export * from "./types/2_message_interactions.js";
105
91
  export * from "./types/2_message_reaction_count.js";
106
- export * from "./types/2_message_reactions.js";
107
92
  export * from "./types/2_poll_answer.js";
108
- export * from "./types/2_poll.js";
109
- export * from "./types/2_pre_checkout_query.js";
110
93
  export * from "./types/2_reply_markup.js";
111
- export * from "./types/2_reply_to.js";
112
94
  export * from "./types/2_sticker_set.js";
113
95
  export * from "./types/2_story_content.js";
114
96
  export * from "./types/2_story_interactions.js";
115
97
  export * from "./types/2_story_interactive_area.js";
98
+ export * from "./types/2_story_privacy.js";
116
99
  export * from "./types/2_successful_payment.js";
117
- export * from "./types/3_chat_member_updated.js";
118
- export * from "./types/3_gift.js";
119
- export * from "./types/3_join_request.js";
100
+ export * from "./types/2_user.js";
101
+ export * from "./types/3_business_connection.js";
102
+ export * from "./types/3_chat_member.js";
103
+ export * from "./types/3_chat_settings.js";
104
+ export * from "./types/3_chosen_inline_result.js";
105
+ export * from "./types/3_forward_header.js";
106
+ export * from "./types/3_game.js";
107
+ export * from "./types/3_gift_upgraded_component.js";
108
+ export * from "./types/3_inline_query.js";
109
+ export * from "./types/3_input_media.js";
110
+ export * from "./types/3_invite_link.js";
111
+ export * from "./types/3_message_reactions.js";
112
+ export * from "./types/3_poll_option.js";
113
+ export * from "./types/3_pre_checkout_query.js";
114
+ export * from "./types/3_reply_quote.js";
120
115
  export * from "./types/3_story.js";
121
- export * from "./types/4_claimed_gift.js";
122
- export * from "./types/4_link_preview.js";
123
- export * from "./types/5_claimed_gifts.js";
124
- export * from "./types/5_message_content.js";
125
- export * from "./types/5_message.js";
126
- export * from "./types/6_callback_query.js";
127
- export * from "./types/6_chat_list_item.js";
128
- export * from "./types/6_inline_query_result.js";
129
- export * from "./types/6_saved_chat.js";
130
- export * from "./types/6_topic.js";
131
- export * from "./types/7_inline_query_answer.js";
132
- export * from "./types/7_saved_chats.js";
133
- export * from "./types/7_update.js";
116
+ export * from "./types/4_chat_member_updated.js";
117
+ export * from "./types/4_gift.js";
118
+ export * from "./types/4_join_request.js";
119
+ export * from "./types/4_poll.js";
120
+ export * from "./types/4_reply_to.js";
121
+ export * from "./types/5_claimed_gift.js";
122
+ export * from "./types/5_link_preview.js";
123
+ export * from "./types/6_claimed_gifts.js";
124
+ export * from "./types/6_message_content.js";
125
+ export * from "./types/6_message.js";
126
+ export * from "./types/7_callback_query.js";
127
+ export * from "./types/7_chat_list_item.js";
128
+ export * from "./types/7_inline_query_result.js";
129
+ export * from "./types/7_saved_chat.js";
130
+ export * from "./types/7_topic.js";
131
+ export * from "./types/8_inline_query_answer.js";
132
+ export * from "./types/8_saved_chats.js";
133
+ export * from "./types/8_update.js";
@@ -1,3 +1,10 @@
1
+ declare global {
2
+ interface ArrayConstructor {
3
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | Promise<T>> | ArrayLike<T | Promise<T>>): Promise<T[]>;
4
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
5
+ }
6
+ }
7
+ export {};
1
8
  declare global {
2
9
  interface Error {
3
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;YAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,CAAA;SAAE,CAAC;KAC3H;CACF"}
@@ -1,3 +1,112 @@
1
+ // From https://github.com/es-shims/array-from-async/blob/4a5ff83947b861f35b380d5d4f20da2f07698638/index.mjs
2
+ // Tried to have dnt depend on the package instead, but it distributes as an
3
+ // ES module, so doesn't work with CommonJS.
4
+ //
5
+ // Code below:
6
+ //
7
+ // Copyright 2021 J. S. Choi
8
+ //
9
+ // Redistribution and use in source and binary forms, with or without
10
+ // modification, are permitted provided that the following conditions
11
+ // are met:
12
+ //
13
+ // 1. Redistributions of source code must retain the above copyright
14
+ // notice, this list of conditions and the following disclaimer.
15
+ //
16
+ // 2. Redistributions in binary form must reproduce the above copyright
17
+ // notice, this list of conditions and the following disclaimer in the
18
+ // documentation and/or other materials provided with the distribution.
19
+ //
20
+ // 3. Neither the name of the copyright holder nor the names of its
21
+ // contributors may be used to endorse or promote products derived from
22
+ // this software without specific prior written permission.
23
+ //
24
+ // **This software is provided by the copyright holders and contributors
25
+ // "as is" and any express or implied warranties, including, but not
26
+ // limited to, the implied warranties of merchantability and fitness for a
27
+ // particular purpose are disclaimed. In no event shall the copyright
28
+ // holder or contributors be liable for any direct, indirect, incidental,
29
+ // special, exemplary, or consequential damages (including, but not limited
30
+ // to, procurement of substitute goods or services; loss of use, data, or
31
+ // profits; or business interruption) however caused and on any theory of
32
+ // liability, whether in contract, strict liability, or tort (including
33
+ // negligence or otherwise) arising in any way out of the use of this
34
+ // software, even if advised of the possibility of such damage.**
35
+ const { MAX_SAFE_INTEGER } = Number;
36
+ const iteratorSymbol = Symbol.iterator;
37
+ const asyncIteratorSymbol = Symbol.asyncIterator;
38
+ const IntrinsicArray = Array;
39
+ const tooLongErrorMessage = 'Input is too long and exceeded Number.MAX_SAFE_INTEGER times.';
40
+ function isConstructor(obj) {
41
+ if (obj != null) {
42
+ const prox = new Proxy(obj, {
43
+ construct() {
44
+ return prox;
45
+ },
46
+ });
47
+ try {
48
+ new prox;
49
+ return true;
50
+ }
51
+ catch (err) {
52
+ return false;
53
+ }
54
+ }
55
+ else {
56
+ return false;
57
+ }
58
+ }
59
+ async function fromAsync(items, mapfn, thisArg) {
60
+ const itemsAreIterable = (asyncIteratorSymbol in items ||
61
+ iteratorSymbol in items);
62
+ if (itemsAreIterable) {
63
+ const result = isConstructor(this)
64
+ ? new this
65
+ : IntrinsicArray(0);
66
+ let i = 0;
67
+ for await (const v of items) {
68
+ if (i > MAX_SAFE_INTEGER) {
69
+ throw TypeError(tooLongErrorMessage);
70
+ }
71
+ else if (mapfn) {
72
+ result[i] = await mapfn.call(thisArg, v, i);
73
+ }
74
+ else {
75
+ result[i] = v;
76
+ }
77
+ i++;
78
+ }
79
+ result.length = i;
80
+ return result;
81
+ }
82
+ else {
83
+ // In this case, the items are assumed to be an arraylike object with
84
+ // a length property and integer properties for each element.
85
+ const { length } = items;
86
+ const result = isConstructor(this)
87
+ ? new this(length)
88
+ : IntrinsicArray(length);
89
+ let i = 0;
90
+ while (i < length) {
91
+ if (i > MAX_SAFE_INTEGER) {
92
+ throw TypeError(tooLongErrorMessage);
93
+ }
94
+ const v = await items[i];
95
+ if (mapfn) {
96
+ result[i] = await mapfn.call(thisArg, v, i);
97
+ }
98
+ else {
99
+ result[i] = v;
100
+ }
101
+ i++;
102
+ }
103
+ result.length = i;
104
+ return result;
105
+ }
106
+ }
107
+ if (!Array.fromAsync) {
108
+ Array.fromAsync = fromAsync;
109
+ }
1
110
  /**
2
111
  * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
112
  * but instead of using npm to install additional dependencies,
@@ -0,0 +1,27 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+ import { type MaybePromise } from "../1_utilities.js";
21
+ export declare class AbortableLoop {
22
+ #private;
23
+ constructor(body: (signal: AbortSignal) => MaybePromise<void>, onError: (err: unknown) => void);
24
+ abort(): void;
25
+ start(): void;
26
+ }
27
+ //# sourceMappingURL=0_abortable_loop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"0_abortable_loop.d.ts","sourceRoot":"","sources":["../../src/client/0_abortable_loop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE5D,qBAAa,aAAa;;gBAIZ,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,YAAY,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI;IAO9F,KAAK;IAIL,KAAK;CAiBN"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2025 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+ import { drop } from "../1_utilities.js";
21
+ export class AbortableLoop {
22
+ #body;
23
+ #onError;
24
+ constructor(body, onError) {
25
+ this.#body = body;
26
+ this.#onError = onError;
27
+ }
28
+ #controller;
29
+ abort() {
30
+ this.#controller?.abort();
31
+ }
32
+ start() {
33
+ drop(this.#loop());
34
+ }
35
+ async #loop() {
36
+ this.#controller?.abort();
37
+ const controller = this.#controller = new AbortController();
38
+ do {
39
+ try {
40
+ await this.#body(controller.signal);
41
+ }
42
+ catch (err) {
43
+ if (!controller.signal.aborted) {
44
+ this.#onError(err);
45
+ }
46
+ }
47
+ } while (!controller.signal.aborted);
48
+ }
49
+ }
@@ -17,6 +17,7 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
+ import type { Api } from "../2_tl.js";
20
21
  import type { CallbackQuery, ChosenInlineResult, MessageTypes, UpdateIntersection, UpdateMap } from "../3_types.js";
21
22
  type AnyLevel1 = keyof UpdateMap;
22
23
  type GetLevel1Type<L1 extends AnyLevel1> = UpdateMap[L1];
@@ -42,14 +43,19 @@ type GetLevel2Type<L1 extends string, L2 extends string> = L2 extends keyof Mess
42
43
  [P in L2]-?: P extends keyof Level2TypeMap[L1] ? NonNullable<Level2TypeMap[L1][P]> : never;
43
44
  };
44
45
  } : never : never;
45
- type AnyLevelX = AnyLevel1 | AnyLevel2;
46
- type FilterCore<Q extends AnyLevelX = AnyLevelX> = Q extends AnyLevel1 ? GetLevel1Type<Q> : Q extends `${infer L1}:${infer L2}` ? GetLevel2Type<L1, L2> : 1;
46
+ type AnyLevelX = AnyLevel1 | AnyLevel2 | Api.Update["_"];
47
+ type FilterCore<Q extends AnyLevelX = AnyLevelX> = Q extends AnyLevel1 ? GetLevel1Type<Q> : Q extends `${infer L1}:${infer L2}` ? GetLevel2Type<L1, L2> : Q extends Api.Update["_"] ? {
48
+ update: Extract<Api.Update, {
49
+ _: Q;
50
+ }>;
51
+ } : 1;
47
52
  interface Shortcuts<T extends UpdateIntersection> {
48
53
  msg: T["message"] extends object ? T["message"] : T["editedMessage"] extends object ? T["editedMessage"] : T["scheduledMessage"] extends object ? T["scheduledMessage"] : T["callbackQuery"] extends object ? T["callbackQuery"]["message"] : undefined;
49
54
  chat: T["callbackQuery"] extends object ? NonNullable<T["callbackQuery"]["message"]>["chat"] | undefined : Shortcuts<T>["msg"] extends object ? Shortcuts<T>["msg"]["chat"] : T["messageReactions"] extends object ? T["messageReactions"]["chat"] : T["messageReactionCount"] extends object ? T["messageReactionCount"]["chat"] : T["myChatMember"] extends object ? T["myChatMember"]["chat"] : T["chatMember"] extends object ? T["chatMember"]["chat"] : T["joinRequest"] extends object ? T["joinRequest"]["chat"] : undefined;
50
55
  from: T["callbackQuery"] extends object ? T["callbackQuery"]["from"] : T["inlineQuery"] extends object ? T["inlineQuery"]["from"] : T["chosenInlineResult"] extends object ? T["chosenInlineResult"]["from"] : T["message"] extends object ? T["message"]["from"] : T["editedMessage"] extends object ? T["editedMessage"]["from"] : T["scheduledMessage"] extends object ? T["scheduledMessage"]["from"] : T["preCheckoutQuery"] extends object ? T["preCheckoutQuery"]["from"] : T["joinRequest"] extends object ? T["joinRequest"]["from"] : T["pollAnswer"] extends object ? T["pollAnswer"]["from"] : undefined;
51
56
  }
52
- type Filter<Q extends AnyLevelX> = FilterCore<Q> & Shortcuts<FilterCore<Q>>;
57
+ type GetShortcuts<T> = T extends UpdateIntersection ? T["update"] extends object ? Record<string, never> : Shortcuts<T> : Record<string, never>;
58
+ type Filter<Q extends AnyLevelX> = FilterCore<Q> & GetShortcuts<FilterCore<Q>>;
53
59
  export type FilterQuery = AnyLevelX;
54
60
  export type WithFilter<T, Q extends FilterQuery> = T & Filter<Q>;
55
61
  export declare function match<Q extends FilterQuery, T extends object>(filter: Q, value: T): boolean;
@@ -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,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,GACxD,SAAS,CAAC;CACf;AACD,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,kBAAkB,GAAG,CAAC,CAAC,QAAQ,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEhJ,KAAK,MAAM,CAAC,CAAC,SAAS,SAAS,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AACpC,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAEjE,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,WA4BjF"}
@@ -19,7 +19,10 @@
19
19
  */
20
20
  export function match(filter, value) {
21
21
  let [type, ...other] = filter.split(":");
22
- if (type !== "" && !(type in value)) {
22
+ if (other.length === 0 && type !== "update" && "update" in value && value.update._ === type) {
23
+ return true;
24
+ }
25
+ else if (type !== "" && !(type in value)) {
23
26
  return false;
24
27
  }
25
28
  if (type === "") {
@@ -21,7 +21,7 @@ import type { MaybePromise } from "../1_utilities.js";
21
21
  import type { DC } from "../3_transport.js";
22
22
  import type { Birthday, BotCommandScope, ChatListItem, ChatMemberRights, FileSource, ID, InlineQueryResultButton, InputLinkPreview, LinkPreview, MessageEntity, MessageSearchFilter, ParseMode, ReplyMarkup, SelfDestructOption, StoryInteractiveArea, StoryPrivacy } from "../3_types.js";
23
23
  import type { MiniAppMode } from "../types/0_mini_app_mode.js";
24
- import type { ReplyTo } from "../types/2_reply_to.js";
24
+ import type { ReplyTo } from "../types/4_reply_to.js";
25
25
  export interface InvokeParams {
26
26
  dc?: DC;
27
27
  type?: "download" | "upload";
@@ -4,8 +4,8 @@ export declare function isSafePrime(primeBytes: Uint8Array, g: number): boolean;
4
4
  export declare const h: typeof sha256;
5
5
  export declare const sh: (data: Uint8Array, salt: Uint8Array) => Promise<Uint8Array<ArrayBuffer>>;
6
6
  export declare const ph1: (password: Uint8Array, salt1: Uint8Array, salt2: Uint8Array) => Promise<Uint8Array<ArrayBuffer>>;
7
- export declare function pbkdf2(password: Uint8Array, salt: Uint8Array, iterations: number): Promise<Uint8Array<ArrayBuffer>>;
8
- export declare const ph2: (password: Uint8Array, salt1: Uint8Array, salt2: Uint8Array) => Promise<Uint8Array<ArrayBuffer>>;
7
+ export declare function pbkdf2(password: Uint8Array<ArrayBuffer>, salt: Uint8Array<ArrayBuffer>, iterations: number): Promise<Uint8Array<ArrayBuffer>>;
8
+ export declare const ph2: (password: Uint8Array, salt1: Uint8Array<ArrayBuffer>, salt2: Uint8Array) => Promise<Uint8Array<ArrayBuffer>>;
9
9
  export declare function isGoodModExpFirst(modexp: bigint, prime: bigint): boolean;
10
10
  export declare function pad(bigint: number | bigint | Uint8Array): Uint8Array<ArrayBuffer>;
11
11
  export declare function checkPassword(password_: string, ap: Api.account_Password): Promise<Api.inputCheckPasswordSRP>;
@@ -1 +1 @@
1
- {"version":3,"file":"0_password.d.ts","sourceRoot":"","sources":["../../src/client/0_password.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAgF,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACzH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,wBAAgB,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,WAgC5D;AAGD,eAAO,MAAM,CAAC,eAAS,CAAC;AAGxB,eAAO,MAAM,EAAE,GAAI,MAAM,UAAU,EAAE,MAAM,UAAU,qCAAkC,CAAC;AAGxF,eAAO,MAAM,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