@mtkruto/node 0.1.400 → 0.1.600

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 (619) hide show
  1. package/esm/0_deps.d.ts +5 -5
  2. package/esm/0_deps.js +6 -6
  3. package/esm/3_types.d.ts +10 -2
  4. package/esm/3_types.js +10 -2
  5. package/esm/client/0_markdown.d.ts +19 -0
  6. package/esm/client/0_markdown.js +19 -1
  7. package/esm/client/0_params.d.ts +32 -6
  8. package/esm/client/0_utilities.js +1 -1
  9. package/esm/client/1_file_manager.d.ts +5 -1
  10. package/esm/client/1_file_manager.js +50 -49
  11. package/esm/client/2_video_chat_manager.d.ts +43 -0
  12. package/esm/client/2_video_chat_manager.js +194 -0
  13. package/esm/client/3_callback_query_manager.d.ts +2 -1
  14. package/esm/client/3_callback_query_manager.js +34 -5
  15. package/esm/client/3_chat_list_manager.d.ts +3 -3
  16. package/esm/client/3_chat_list_manager.js +75 -98
  17. package/esm/client/3_inline_query_manager.d.ts +3 -2
  18. package/esm/client/3_inline_query_manager.js +21 -4
  19. package/esm/client/4_client.d.ts +88 -5
  20. package/esm/client/4_client.js +115 -3
  21. package/esm/storage/0_storage.d.ts +24 -0
  22. package/esm/storage/0_storage.js +81 -2
  23. package/esm/tl/3_utilities.d.ts +1 -1
  24. package/esm/tl/3_utilities.js +3 -3
  25. package/esm/types/0_birthday.d.ts +27 -0
  26. package/esm/types/0_birthday.js +26 -0
  27. package/esm/types/0_callback_query_answer.d.ts +30 -0
  28. package/esm/types/0_callback_query_answer.js +26 -0
  29. package/esm/types/0_callback_query_question.d.ts +49 -0
  30. package/esm/types/0_callback_query_question.js +31 -0
  31. package/esm/types/0_giveaway_parameters.d.ts +1 -1
  32. package/esm/types/0_live_stream_channel.d.ts +30 -0
  33. package/esm/types/0_live_stream_channel.js +26 -0
  34. package/esm/types/0_opening_hours.d.ts +25 -0
  35. package/esm/types/0_opening_hours.js +25 -0
  36. package/esm/types/0_video_chat.d.ts +60 -0
  37. package/esm/types/0_video_chat.js +53 -0
  38. package/esm/types/1_chat_p.d.ts +4 -0
  39. package/esm/types/1_chat_p.js +1 -0
  40. package/esm/types/{1_input_message_content.d.ts → 1_message_content.d.ts} +6 -6
  41. package/esm/types/1_photo.d.ts +4 -0
  42. package/esm/types/1_photo.js +12 -26
  43. package/esm/types/2_business_connection.d.ts +6 -0
  44. package/esm/types/2_chat.d.ts +62 -0
  45. package/esm/types/2_chat.js +66 -0
  46. package/esm/types/2_inactive_chat.d.ts +1 -1
  47. package/esm/types/2_invite_link.d.ts +1 -1
  48. package/esm/types/2_message_reaction_count.d.ts +1 -1
  49. package/esm/types/2_message_reactions.d.ts +1 -1
  50. package/esm/types/3_chat_member_updated.d.ts +1 -1
  51. package/esm/types/4_inline_query_result.d.ts +52 -49
  52. package/esm/types/4_inline_query_result.js +225 -44
  53. package/esm/types/4_message.d.ts +3 -3
  54. package/esm/types/5_chat_list_item.d.ts +35 -0
  55. package/esm/types/5_chat_list_item.js +86 -0
  56. package/esm/types/5_inline_query_answer.d.ts +31 -0
  57. package/esm/types/5_inline_query_answer.js +28 -0
  58. package/esm/types/6_update.d.ts +14 -5
  59. package/esm/types/_file_id.d.ts +6 -0
  60. package/esm/types/_file_id.js +32 -1
  61. package/esm/utilities/0_bigint.d.ts +1 -0
  62. package/esm/utilities/0_bigint.js +7 -3
  63. package/package.json +1 -1
  64. package/script/0_deps.d.ts +5 -5
  65. package/script/0_deps.js +6 -6
  66. package/script/3_types.d.ts +10 -2
  67. package/script/3_types.js +10 -2
  68. package/script/client/0_markdown.d.ts +19 -0
  69. package/script/client/0_markdown.js +19 -1
  70. package/script/client/0_params.d.ts +32 -6
  71. package/script/client/0_utilities.js +1 -1
  72. package/script/client/1_file_manager.d.ts +5 -1
  73. package/script/client/1_file_manager.js +50 -49
  74. package/script/client/2_video_chat_manager.d.ts +43 -0
  75. package/script/client/2_video_chat_manager.js +198 -0
  76. package/script/client/3_callback_query_manager.d.ts +2 -1
  77. package/script/client/3_callback_query_manager.js +31 -2
  78. package/script/client/3_chat_list_manager.d.ts +3 -3
  79. package/script/client/3_chat_list_manager.js +72 -95
  80. package/script/client/3_inline_query_manager.d.ts +3 -2
  81. package/script/client/3_inline_query_manager.js +19 -2
  82. package/script/client/4_client.d.ts +88 -5
  83. package/script/client/4_client.js +115 -3
  84. package/script/storage/0_storage.d.ts +24 -0
  85. package/script/storage/0_storage.js +81 -2
  86. package/script/tl/3_utilities.d.ts +1 -1
  87. package/script/tl/3_utilities.js +3 -3
  88. package/script/types/0_birthday.d.ts +27 -0
  89. package/script/types/0_birthday.js +30 -0
  90. package/script/types/0_callback_query_answer.d.ts +30 -0
  91. package/script/types/0_callback_query_answer.js +30 -0
  92. package/script/types/0_callback_query_question.d.ts +49 -0
  93. package/script/types/0_callback_query_question.js +35 -0
  94. package/script/types/0_giveaway_parameters.d.ts +1 -1
  95. package/script/types/0_live_stream_channel.d.ts +30 -0
  96. package/script/types/0_live_stream_channel.js +30 -0
  97. package/script/types/0_opening_hours.d.ts +25 -0
  98. package/script/types/0_opening_hours.js +29 -0
  99. package/script/types/0_video_chat.d.ts +60 -0
  100. package/script/types/0_video_chat.js +57 -0
  101. package/script/types/1_chat_p.d.ts +4 -0
  102. package/script/types/1_chat_p.js +1 -0
  103. package/script/types/{1_input_message_content.d.ts → 1_message_content.d.ts} +6 -6
  104. package/script/types/1_photo.d.ts +4 -0
  105. package/script/types/1_photo.js +14 -27
  106. package/script/types/2_business_connection.d.ts +6 -0
  107. package/script/types/2_chat.d.ts +62 -0
  108. package/script/types/2_chat.js +70 -0
  109. package/script/types/2_inactive_chat.d.ts +1 -1
  110. package/script/types/2_invite_link.d.ts +1 -1
  111. package/script/types/2_message_reaction_count.d.ts +1 -1
  112. package/script/types/2_message_reactions.d.ts +1 -1
  113. package/script/types/3_chat_member_updated.d.ts +1 -1
  114. package/script/types/4_inline_query_result.d.ts +52 -49
  115. package/script/types/4_inline_query_result.js +224 -42
  116. package/script/types/4_message.d.ts +3 -3
  117. package/script/types/5_chat_list_item.d.ts +35 -0
  118. package/script/types/5_chat_list_item.js +94 -0
  119. package/script/types/5_inline_query_answer.d.ts +31 -0
  120. package/script/types/5_inline_query_answer.js +32 -0
  121. package/script/types/6_update.d.ts +14 -5
  122. package/script/types/_file_id.d.ts +6 -0
  123. package/script/types/_file_id.js +33 -1
  124. package/script/utilities/0_bigint.d.ts +1 -0
  125. package/script/utilities/0_bigint.js +7 -3
  126. package/esm/types/5_chat.d.ts +0 -59
  127. package/esm/types/5_chat.js +0 -126
  128. package/script/types/5_chat.d.ts +0 -59
  129. package/script/types/5_chat.js +0 -134
  130. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_constants.d.ts +0 -0
  131. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_constants.js +0 -0
  132. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_diff.d.ts +0 -0
  133. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_diff.js +0 -0
  134. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_format.d.ts +0 -0
  135. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_format.js +0 -0
  136. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert.d.ts +0 -0
  137. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert.js +0 -0
  138. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_almost_equals.d.ts +0 -0
  139. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_almost_equals.js +0 -0
  140. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_array_includes.d.ts +0 -0
  141. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_array_includes.js +0 -0
  142. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_equals.d.ts +0 -0
  143. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_equals.js +0 -0
  144. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_exists.d.ts +0 -0
  145. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_exists.js +0 -0
  146. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_false.d.ts +0 -0
  147. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_false.js +0 -0
  148. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_greater.d.ts +0 -0
  149. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_greater.js +0 -0
  150. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_greater_or_equal.d.ts +0 -0
  151. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_greater_or_equal.js +0 -0
  152. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_instance_of.d.ts +0 -0
  153. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_instance_of.js +0 -0
  154. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_is_error.d.ts +0 -0
  155. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_is_error.js +0 -0
  156. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_less.d.ts +0 -0
  157. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_less.js +0 -0
  158. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_less_or_equal.d.ts +0 -0
  159. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_less_or_equal.js +0 -0
  160. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_match.d.ts +0 -0
  161. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_match.js +0 -0
  162. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_equals.d.ts +0 -0
  163. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_equals.js +0 -0
  164. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_instance_of.d.ts +0 -0
  165. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_instance_of.js +0 -0
  166. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_match.d.ts +0 -0
  167. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_match.js +0 -0
  168. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_strict_equals.d.ts +0 -0
  169. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_strict_equals.js +0 -0
  170. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_object_match.d.ts +0 -0
  171. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_object_match.js +0 -0
  172. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_rejects.d.ts +0 -0
  173. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_rejects.js +0 -0
  174. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_strict_equals.d.ts +0 -0
  175. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_strict_equals.js +0 -0
  176. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_string_includes.d.ts +0 -0
  177. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_string_includes.js +0 -0
  178. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_throws.d.ts +0 -0
  179. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_throws.js +0 -0
  180. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assertion_error.d.ts +0 -0
  181. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assertion_error.js +0 -0
  182. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/equal.d.ts +0 -0
  183. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/equal.js +0 -0
  184. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/fail.d.ts +0 -0
  185. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/fail.js +0 -0
  186. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/mod.d.ts +0 -0
  187. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/mod.js +0 -0
  188. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/unimplemented.d.ts +0 -0
  189. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/unimplemented.js +0 -0
  190. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/unreachable.d.ts +0 -0
  191. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/unreachable.js +0 -0
  192. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/bytes/concat.d.ts +0 -0
  193. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/bytes/concat.js +0 -0
  194. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/encoding/_util.d.ts +0 -0
  195. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/encoding/_util.js +0 -0
  196. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/encoding/base64.d.ts +0 -0
  197. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/encoding/base64.js +0 -0
  198. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/fmt/colors.d.ts +0 -0
  199. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/fmt/colors.js +0 -0
  200. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/_db.d.ts +0 -0
  201. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/_db.js +0 -0
  202. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/_util.d.ts +0 -0
  203. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/_util.js +0 -0
  204. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/content_type.d.ts +0 -0
  205. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/content_type.js +0 -0
  206. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/extension.d.ts +0 -0
  207. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/extension.js +0 -0
  208. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/extensions_by_type.d.ts +0 -0
  209. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/extensions_by_type.js +0 -0
  210. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/format_media_type.d.ts +0 -0
  211. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/format_media_type.js +0 -0
  212. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/get_charset.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/get_charset.js +0 -0
  214. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/parse_media_type.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/parse_media_type.js +0 -0
  216. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/type_by_extension.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/type_by_extension.js +0 -0
  218. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  220. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/assert_path.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/assert_path.js +0 -0
  222. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/basename.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/basename.js +0 -0
  224. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/common.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/common.js +0 -0
  226. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/constants.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/constants.js +0 -0
  228. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/dirname.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/dirname.js +0 -0
  230. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/format.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/format.js +0 -0
  232. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/from_file_url.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/from_file_url.js +0 -0
  234. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/glob_to_reg_exp.js +0 -0
  236. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/normalize.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/normalize.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/normalize_string.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/normalize_string.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/relative.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/relative.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/strip_trailing_separators.js +0 -0
  244. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/to_file_url.d.ts +0 -0
  245. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/to_file_url.js +0 -0
  246. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_interface.d.ts +0 -0
  247. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_interface.js +0 -0
  248. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_os.d.ts +0 -0
  249. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_os.js +0 -0
  250. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/basename.d.ts +0 -0
  251. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/basename.js +0 -0
  252. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/common.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/common.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/constants.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/constants.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/dirname.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/dirname.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/extname.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/extname.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/format.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/format.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/from_file_url.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/from_file_url.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/glob_to_regexp.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/glob_to_regexp.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/is_absolute.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/is_absolute.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/is_glob.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/is_glob.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/join.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/join.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/join_globs.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/join_globs.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/mod.d.ts +0 -0
  275. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/mod.js +0 -0
  276. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/normalize.d.ts +0 -0
  277. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/normalize.js +0 -0
  278. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/normalize_glob.d.ts +0 -0
  279. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/normalize_glob.js +0 -0
  280. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/parse.d.ts +0 -0
  281. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/parse.js +0 -0
  282. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/_util.d.ts +0 -0
  283. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/_util.js +0 -0
  284. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/basename.d.ts +0 -0
  285. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/basename.js +0 -0
  286. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/common.d.ts +0 -0
  287. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/common.js +0 -0
  288. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/constants.d.ts +0 -0
  289. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/constants.js +0 -0
  290. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/dirname.d.ts +0 -0
  291. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/dirname.js +0 -0
  292. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/extname.d.ts +0 -0
  293. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/extname.js +0 -0
  294. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/format.d.ts +0 -0
  295. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/format.js +0 -0
  296. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/from_file_url.d.ts +0 -0
  297. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/from_file_url.js +0 -0
  298. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/glob_to_regexp.d.ts +0 -0
  299. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/glob_to_regexp.js +0 -0
  300. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/is_absolute.d.ts +0 -0
  301. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/is_absolute.js +0 -0
  302. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/is_glob.d.ts +0 -0
  303. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/is_glob.js +0 -0
  304. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/join.d.ts +0 -0
  305. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/join.js +0 -0
  306. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/join_globs.d.ts +0 -0
  307. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/join_globs.js +0 -0
  308. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/mod.d.ts +0 -0
  309. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/mod.js +0 -0
  310. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/normalize.d.ts +0 -0
  311. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/normalize.js +0 -0
  312. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/normalize_glob.d.ts +0 -0
  313. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/normalize_glob.js +0 -0
  314. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/parse.d.ts +0 -0
  315. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/parse.js +0 -0
  316. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/relative.d.ts +0 -0
  317. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/relative.js +0 -0
  318. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/resolve.d.ts +0 -0
  319. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/resolve.js +0 -0
  320. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/to_file_url.d.ts +0 -0
  321. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/to_file_url.js +0 -0
  322. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/to_namespaced_path.d.ts +0 -0
  323. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/to_namespaced_path.js +0 -0
  324. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/relative.d.ts +0 -0
  325. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/relative.js +0 -0
  326. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/resolve.d.ts +0 -0
  327. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/resolve.js +0 -0
  328. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/to_file_url.d.ts +0 -0
  329. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/to_file_url.js +0 -0
  330. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/to_namespaced_path.d.ts +0 -0
  331. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/to_namespaced_path.js +0 -0
  332. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/_util.d.ts +0 -0
  333. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/_util.js +0 -0
  334. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/basename.d.ts +0 -0
  335. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/basename.js +0 -0
  336. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/common.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/common.js +0 -0
  338. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/constants.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/constants.js +0 -0
  340. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/dirname.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/dirname.js +0 -0
  342. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/extname.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/extname.js +0 -0
  344. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/format.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/format.js +0 -0
  346. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/from_file_url.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/from_file_url.js +0 -0
  348. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/glob_to_regexp.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/glob_to_regexp.js +0 -0
  350. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/is_absolute.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/is_absolute.js +0 -0
  352. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/is_glob.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/is_glob.js +0 -0
  354. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/join.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/join.js +0 -0
  356. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/join_globs.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/join_globs.js +0 -0
  358. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/mod.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/mod.js +0 -0
  360. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/normalize.d.ts +0 -0
  361. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/normalize.js +0 -0
  362. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/normalize_glob.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/normalize_glob.js +0 -0
  364. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/parse.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/parse.js +0 -0
  366. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/relative.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/relative.js +0 -0
  368. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/resolve.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/resolve.js +0 -0
  370. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/to_file_url.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/to_file_url.js +0 -0
  372. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/to_namespaced_path.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/to_namespaced_path.js +0 -0
  374. /package/esm/types/{1_input_message_content.js → 1_message_content.js} +0 -0
  375. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_constants.d.ts +0 -0
  376. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_constants.js +0 -0
  377. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_diff.d.ts +0 -0
  378. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_diff.js +0 -0
  379. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_format.d.ts +0 -0
  380. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/_format.js +0 -0
  381. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert.d.ts +0 -0
  382. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert.js +0 -0
  383. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_almost_equals.d.ts +0 -0
  384. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_almost_equals.js +0 -0
  385. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_array_includes.d.ts +0 -0
  386. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_array_includes.js +0 -0
  387. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_equals.d.ts +0 -0
  388. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_equals.js +0 -0
  389. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_exists.d.ts +0 -0
  390. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_exists.js +0 -0
  391. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_false.d.ts +0 -0
  392. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_false.js +0 -0
  393. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_greater.d.ts +0 -0
  394. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_greater.js +0 -0
  395. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_greater_or_equal.d.ts +0 -0
  396. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_greater_or_equal.js +0 -0
  397. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_instance_of.d.ts +0 -0
  398. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_instance_of.js +0 -0
  399. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_is_error.d.ts +0 -0
  400. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_is_error.js +0 -0
  401. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_less.d.ts +0 -0
  402. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_less.js +0 -0
  403. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_less_or_equal.d.ts +0 -0
  404. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_less_or_equal.js +0 -0
  405. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_match.d.ts +0 -0
  406. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_match.js +0 -0
  407. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_equals.d.ts +0 -0
  408. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_equals.js +0 -0
  409. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_instance_of.d.ts +0 -0
  410. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_instance_of.js +0 -0
  411. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_match.d.ts +0 -0
  412. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_match.js +0 -0
  413. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_strict_equals.d.ts +0 -0
  414. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_not_strict_equals.js +0 -0
  415. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_object_match.d.ts +0 -0
  416. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_object_match.js +0 -0
  417. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_rejects.d.ts +0 -0
  418. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_rejects.js +0 -0
  419. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_strict_equals.d.ts +0 -0
  420. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_strict_equals.js +0 -0
  421. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_string_includes.d.ts +0 -0
  422. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_string_includes.js +0 -0
  423. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_throws.d.ts +0 -0
  424. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assert_throws.js +0 -0
  425. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assertion_error.d.ts +0 -0
  426. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/assertion_error.js +0 -0
  427. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/equal.d.ts +0 -0
  428. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/equal.js +0 -0
  429. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/fail.d.ts +0 -0
  430. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/fail.js +0 -0
  431. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/mod.d.ts +0 -0
  432. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/mod.js +0 -0
  433. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/unimplemented.d.ts +0 -0
  434. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/unimplemented.js +0 -0
  435. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/unreachable.d.ts +0 -0
  436. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/assert/unreachable.js +0 -0
  437. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/bytes/concat.d.ts +0 -0
  438. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/bytes/concat.js +0 -0
  439. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/encoding/_util.d.ts +0 -0
  440. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/encoding/_util.js +0 -0
  441. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/encoding/base64.d.ts +0 -0
  442. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/encoding/base64.js +0 -0
  443. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/fmt/colors.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/fmt/colors.js +0 -0
  445. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/_db.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/_db.js +0 -0
  447. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/_util.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/_util.js +0 -0
  449. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/content_type.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/content_type.js +0 -0
  451. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/extension.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/extension.js +0 -0
  453. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/extensions_by_type.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/extensions_by_type.js +0 -0
  455. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/format_media_type.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/format_media_type.js +0 -0
  457. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/get_charset.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/get_charset.js +0 -0
  459. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/parse_media_type.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/parse_media_type.js +0 -0
  461. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/type_by_extension.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/type_by_extension.js +0 -0
  463. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  465. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/assert_path.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/assert_path.js +0 -0
  467. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/basename.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/basename.js +0 -0
  469. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/common.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/common.js +0 -0
  471. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/constants.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/constants.js +0 -0
  473. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/dirname.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/dirname.js +0 -0
  475. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/format.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/format.js +0 -0
  477. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/from_file_url.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/from_file_url.js +0 -0
  479. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/glob_to_reg_exp.js +0 -0
  481. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/normalize.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/normalize.js +0 -0
  483. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/normalize_string.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/normalize_string.js +0 -0
  485. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/relative.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/relative.js +0 -0
  487. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/strip_trailing_separators.js +0 -0
  489. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/to_file_url.d.ts +0 -0
  490. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_common/to_file_url.js +0 -0
  491. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_interface.d.ts +0 -0
  492. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_interface.js +0 -0
  493. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_os.d.ts +0 -0
  494. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/_os.js +0 -0
  495. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/basename.d.ts +0 -0
  496. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/basename.js +0 -0
  497. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/common.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/common.js +0 -0
  499. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/constants.d.ts +0 -0
  500. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/constants.js +0 -0
  501. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/dirname.d.ts +0 -0
  502. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/dirname.js +0 -0
  503. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/extname.d.ts +0 -0
  504. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/extname.js +0 -0
  505. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/format.d.ts +0 -0
  506. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/format.js +0 -0
  507. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/from_file_url.d.ts +0 -0
  508. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/from_file_url.js +0 -0
  509. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/glob_to_regexp.d.ts +0 -0
  510. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/glob_to_regexp.js +0 -0
  511. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/is_absolute.d.ts +0 -0
  512. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/is_absolute.js +0 -0
  513. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/is_glob.d.ts +0 -0
  514. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/is_glob.js +0 -0
  515. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/join.d.ts +0 -0
  516. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/join.js +0 -0
  517. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/join_globs.d.ts +0 -0
  518. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/join_globs.js +0 -0
  519. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/mod.d.ts +0 -0
  520. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/mod.js +0 -0
  521. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/normalize.d.ts +0 -0
  522. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/normalize.js +0 -0
  523. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/normalize_glob.d.ts +0 -0
  524. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/normalize_glob.js +0 -0
  525. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/parse.d.ts +0 -0
  526. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/parse.js +0 -0
  527. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/_util.d.ts +0 -0
  528. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/_util.js +0 -0
  529. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/basename.d.ts +0 -0
  530. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/basename.js +0 -0
  531. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/common.d.ts +0 -0
  532. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/common.js +0 -0
  533. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/constants.d.ts +0 -0
  534. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/constants.js +0 -0
  535. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/dirname.d.ts +0 -0
  536. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/dirname.js +0 -0
  537. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/extname.d.ts +0 -0
  538. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/extname.js +0 -0
  539. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/format.d.ts +0 -0
  540. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/format.js +0 -0
  541. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/from_file_url.d.ts +0 -0
  542. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/from_file_url.js +0 -0
  543. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/glob_to_regexp.d.ts +0 -0
  544. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/glob_to_regexp.js +0 -0
  545. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/is_absolute.d.ts +0 -0
  546. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/is_absolute.js +0 -0
  547. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/is_glob.d.ts +0 -0
  548. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/is_glob.js +0 -0
  549. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/join.d.ts +0 -0
  550. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/join.js +0 -0
  551. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/join_globs.d.ts +0 -0
  552. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/join_globs.js +0 -0
  553. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/mod.d.ts +0 -0
  554. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/mod.js +0 -0
  555. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/normalize.d.ts +0 -0
  556. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/normalize.js +0 -0
  557. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/normalize_glob.d.ts +0 -0
  558. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/normalize_glob.js +0 -0
  559. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/parse.d.ts +0 -0
  560. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/parse.js +0 -0
  561. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/relative.d.ts +0 -0
  562. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/relative.js +0 -0
  563. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/resolve.d.ts +0 -0
  564. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/resolve.js +0 -0
  565. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/to_file_url.d.ts +0 -0
  566. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/to_file_url.js +0 -0
  567. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/to_namespaced_path.d.ts +0 -0
  568. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/posix/to_namespaced_path.js +0 -0
  569. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/relative.d.ts +0 -0
  570. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/relative.js +0 -0
  571. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/resolve.d.ts +0 -0
  572. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/resolve.js +0 -0
  573. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/to_file_url.d.ts +0 -0
  574. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/to_file_url.js +0 -0
  575. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/to_namespaced_path.d.ts +0 -0
  576. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/to_namespaced_path.js +0 -0
  577. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/_util.d.ts +0 -0
  578. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/_util.js +0 -0
  579. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/basename.d.ts +0 -0
  580. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/basename.js +0 -0
  581. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/common.d.ts +0 -0
  582. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/common.js +0 -0
  583. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/constants.d.ts +0 -0
  584. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/constants.js +0 -0
  585. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/dirname.d.ts +0 -0
  586. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/dirname.js +0 -0
  587. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/extname.d.ts +0 -0
  588. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/extname.js +0 -0
  589. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/format.d.ts +0 -0
  590. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/format.js +0 -0
  591. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/from_file_url.d.ts +0 -0
  592. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/from_file_url.js +0 -0
  593. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/glob_to_regexp.d.ts +0 -0
  594. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/glob_to_regexp.js +0 -0
  595. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/is_absolute.d.ts +0 -0
  596. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/is_absolute.js +0 -0
  597. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/is_glob.d.ts +0 -0
  598. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/is_glob.js +0 -0
  599. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/join.d.ts +0 -0
  600. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/join.js +0 -0
  601. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/join_globs.d.ts +0 -0
  602. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/join_globs.js +0 -0
  603. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/mod.d.ts +0 -0
  604. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/mod.js +0 -0
  605. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/normalize.d.ts +0 -0
  606. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/normalize.js +0 -0
  607. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/normalize_glob.d.ts +0 -0
  608. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/normalize_glob.js +0 -0
  609. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/parse.d.ts +0 -0
  610. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/parse.js +0 -0
  611. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/relative.d.ts +0 -0
  612. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/relative.js +0 -0
  613. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/resolve.d.ts +0 -0
  614. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/resolve.js +0 -0
  615. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/to_file_url.d.ts +0 -0
  616. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/to_file_url.js +0 -0
  617. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/to_namespaced_path.d.ts +0 -0
  618. /package/script/deps/deno.land/{std@0.222.1 → std@0.223.0}/path/windows/to_namespaced_path.js +0 -0
  619. /package/script/types/{1_input_message_content.js → 1_message_content.js} +0 -0
@@ -29,7 +29,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
29
29
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
30
30
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
31
31
  };
32
- var _InlineQueryManager_c;
32
+ var _a, _InlineQueryManager_c, _InlineQueryManager_isExpired;
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
34
  exports.InlineQueryManager = void 0;
35
35
  const _0_deps_js_1 = require("../0_deps.js");
@@ -69,6 +69,23 @@ class InlineQueryManager {
69
69
  (0, _0_deps_js_1.unreachable)();
70
70
  }
71
71
  }
72
+ async sendInlineQuery(userId, chatId, params) {
73
+ await __classPrivateFieldGet(this, _InlineQueryManager_c, "f").storage.assertUser("sendInlineQuery");
74
+ const bot = await __classPrivateFieldGet(this, _InlineQueryManager_c, "f").getInputUser(userId), peer = await __classPrivateFieldGet(this, _InlineQueryManager_c, "f").getInputPeer(chatId), query = params?.query ?? "", offset = params?.offset ?? "";
75
+ const botId = (0, _2_tl_js_1.peerToChatId)(bot), peerId = (0, _2_tl_js_1.peerToChatId)(peer);
76
+ const maybeResults = await __classPrivateFieldGet(this, _InlineQueryManager_c, "f").messageStorage.getInlineQueryAnswer(botId, peerId, query, offset);
77
+ if (maybeResults != null && !__classPrivateFieldGet(_a, _a, "m", _InlineQueryManager_isExpired).call(_a, maybeResults[1], maybeResults[0].cache_time)) {
78
+ return (0, _3_types_js_1.constructInlineQueryAnswer)(maybeResults[0]);
79
+ }
80
+ const then = new Date();
81
+ const results = await __classPrivateFieldGet(this, _InlineQueryManager_c, "f").api.messages.getInlineBotResults({ bot, peer, query, offset });
82
+ if (results.cache_time > 0) {
83
+ await __classPrivateFieldGet(this, _InlineQueryManager_c, "f").messageStorage.setInlineQueryAnswer(botId, peerId, query, offset, results, then);
84
+ }
85
+ return (0, _3_types_js_1.constructInlineQueryAnswer)(results);
86
+ }
72
87
  }
73
88
  exports.InlineQueryManager = InlineQueryManager;
74
- _InlineQueryManager_c = new WeakMap();
89
+ _a = InlineQueryManager, _InlineQueryManager_c = new WeakMap(), _InlineQueryManager_isExpired = function _InlineQueryManager_isExpired(date, cacheTime) {
90
+ return (Date.now() - date.getTime()) / 1000 > cacheTime;
91
+ };
@@ -21,9 +21,9 @@ import { MaybePromise } from "../1_utilities.js";
21
21
  import { enums, functions, types } from "../2_tl.js";
22
22
  import { Storage } from "../3_storage.js";
23
23
  import { DC } from "../3_transport.js";
24
- import { BotCommand, BusinessConnection, Chat, ChatAction, ChatMember, ChatP, FileSource, ID, InactiveChat, InlineQueryResult, InputMedia, InputStoryContent, InviteLink, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Poll, Reaction, Sticker, Story, Update, User } from "../3_types.js";
24
+ import { BotCommand, BusinessConnection, CallbackQueryAnswer, CallbackQueryQuestion, Chat, ChatAction, ChatListItem, ChatMember, ChatP, FileSource, ID, InactiveChat, InlineQueryAnswer, InlineQueryResult, InputMedia, InputStoryContent, InviteLink, LiveStreamChannel, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Poll, Reaction, Sticker, Story, Update, User, VideoChat, VideoChatActive, VideoChatScheduled } from "../3_types.js";
25
25
  import { Migrate } from "../4_errors.js";
26
- import { AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeleteMessageParams, DeleteMessagesParams, DownloadParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, PinMessageParams, ReplyParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, StopPollParams } from "./0_params.js";
26
+ import { AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamChunkParams, DownloadParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetMyCommandsParams, JoinVideoChatParams, PinMessageParams, ReplyParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendInlineQueryParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams, SetMyCommandsParams, SetReactionsParams, StartVideoChatParams, StopPollParams } from "./0_params.js";
27
27
  import { Api } from "./0_types.js";
28
28
  import { ClientPlainParams } from "./1_client_plain.js";
29
29
  import { Composer as Composer_, NextFunction } from "./1_composer.js";
@@ -184,9 +184,9 @@ export declare const restartAuth: unique symbol;
184
184
  export declare const handleMigrationError: unique symbol;
185
185
  declare const getEntity: unique symbol;
186
186
  export interface ClientParams extends ClientPlainParams {
187
- /** A parse mode to use when the `parseMode` parameter is not specified when sending or editing messages. Defauls to `ParseMode.None`. */
187
+ /** A parse mode to use when the `parseMode` parameter is not specified when sending or editing messages. Defaults to `ParseMode.None`. */
188
188
  parseMode?: ParseMode;
189
- /** The app_version parameter to be passed to initConnection when calling `authorize`. It is recommended that this parameter is changed if users are authorized. Defaults to "MTKruto" followed by this version of MTKruto. */
189
+ /** The app_version parameter to be passed to initConnection when calling `authorize`. It is recommended that this parameter is changed if users are authorized. Defaults to _MTKruto_. */
190
190
  appVersion?: string;
191
191
  /** The device_version parameter to be passed to initConnection when calling `authorize`. The default varies by the current runtime. */
192
192
  deviceModel?: string;
@@ -706,7 +706,7 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
706
706
  *
707
707
  * @method ch
708
708
  */
709
- getChats(params?: GetChatsParams): Promise<Chat[]>;
709
+ getChats(params?: GetChatsParams): Promise<ChatListItem[]>;
710
710
  /**
711
711
  * Get a chat.
712
712
  *
@@ -865,6 +865,16 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
865
865
  * @returns The newly created invite link.
866
866
  */
867
867
  createInviteLink(chatId: ID, params?: CreateInviteLinkParams): Promise<InviteLink>;
868
+ /**
869
+ * Send a callback query. User-only.
870
+ *
871
+ * @method cq
872
+ * @param chatId The chat that includes the messsage.
873
+ * @param messageId The message that includes at a button responsible for the callback query question.
874
+ * @param question The callback query's question.
875
+ * @returns The bot's answer to the callback query.
876
+ */
877
+ sendCallbackQuery(chatId: ID, messageId: number, question: CallbackQueryQuestion): Promise<CallbackQueryAnswer>;
868
878
  /**
869
879
  * Answer a callback query. Bot-only.
870
880
  *
@@ -872,6 +882,15 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
872
882
  * @param id ID of the callback query to answer.
873
883
  */
874
884
  answerCallbackQuery(id: string, params?: AnswerCallbackQueryParams): Promise<void>;
885
+ /**
886
+ * Send an inline query. User-only.
887
+ *
888
+ * @method iq
889
+ * @param userId The ID of the bot to send the inline query to.
890
+ * @param chatId The ID of the chat from which the inline query is sent.
891
+ * @returns The bot's answer to the inline query.
892
+ */
893
+ sendInlineQuery(userId: ID, chatId: ID, params?: SendInlineQueryParams): Promise<InlineQueryAnswer>;
875
894
  /**
876
895
  * Answer an inline query. Bot-only.
877
896
  *
@@ -1068,5 +1087,69 @@ export declare class Client<C extends Context = Context> extends Composer<C> {
1068
1087
  * @param userId The identifier of the user to unblock.
1069
1088
  */
1070
1089
  unblockUser(userId: ID): Promise<void>;
1090
+ /**
1091
+ * Start a video chat. User-only.
1092
+ *
1093
+ * @method vc
1094
+ * @param chatId The chat to start the video chat in.
1095
+ * @returns The started video chat.
1096
+ */
1097
+ startVideoChat(chatId: ID, params?: StartVideoChatParams): Promise<VideoChatActive>;
1098
+ /**
1099
+ * Schedule a video chat. User-only.
1100
+ *
1101
+ * @method vc
1102
+ * @param chatId The chat to schedule the video chat in.
1103
+ * @param startAt A point in time within the future in which the video chat will be started.
1104
+ * @returns The scheduled video chat.
1105
+ */
1106
+ scheduleVideoChat(chatId: ID, startAt: Date, params?: ScheduleVideoChatParams): Promise<VideoChatScheduled>;
1107
+ /**
1108
+ * Join a video chat. User-only.
1109
+ *
1110
+ * @method vc
1111
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
1112
+ * @param params_ WebRTC connection parameters.
1113
+ * @returns Parameters to be passed to the used WebRTC library.
1114
+ */
1115
+ joinVideoChat(id: string, params_: string, params?: JoinVideoChatParams): Promise<string>;
1116
+ /**
1117
+ * Leave a video chat. User-only.
1118
+ *
1119
+ * @method vc
1120
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
1121
+ */
1122
+ leaveVideoChat(id: string): Promise<void>;
1123
+ /**
1124
+ * Join a live stream. User-only.
1125
+ *
1126
+ * @method vc
1127
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
1128
+ */
1129
+ joinLiveStream(id: string): Promise<void>;
1130
+ /**
1131
+ * Get a video chat. User-only.
1132
+ *
1133
+ * @method vc
1134
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
1135
+ */
1136
+ getVideoChat(id: string): Promise<VideoChat>;
1137
+ /**
1138
+ * Get live stream channels. User-only.
1139
+ *
1140
+ * @method vc
1141
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
1142
+ */
1143
+ getLiveStreamChannels(id: string): Promise<LiveStreamChannel[]>;
1144
+ /**
1145
+ * Download a live stream chunk. User-only.
1146
+ *
1147
+ * @method vc
1148
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
1149
+ * @param channelId Stream channel ID.
1150
+ * @param scale Stream channel scale.
1151
+ * @param timestamp Millisecond timestamp of the chunk to download.
1152
+ */
1153
+ downloadLiveStreamChunk(id: string, channelId: number, scale: number, timestamp: number, params?: DownloadLiveStreamChunkParams): AsyncGenerator<Uint8Array, void, unknown>;
1071
1154
  }
1072
1155
  export {};
@@ -29,7 +29,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
29
29
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
30
30
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
31
31
  };
32
- var _Client_instances, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_ignoreOutgoing, _Client_storeMessages, _Client_Lauthorize, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_namespaceProxies, _Client_getApiId, _Client_getCdnConnectionPool, _Client_getCdnConnection, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_pingLoopStarted, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
32
+ var _Client_instances, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_videoChatManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_ignoreOutgoing, _Client_storeMessages, _Client_Lauthorize, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_namespaceProxies, _Client_getApiId, _Client_getCdnConnectionPool, _Client_getCdnConnection, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_pingLoopStarted, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
34
  exports.Client = exports.handleMigrationError = exports.restartAuth = exports.Composer = void 0;
35
35
  const _0_deps_js_1 = require("../0_deps.js");
@@ -57,6 +57,7 @@ const _3_callback_query_manager_js_1 = require("./3_callback_query_manager.js");
57
57
  const _3_chat_list_manager_js_1 = require("./3_chat_list_manager.js");
58
58
  const _3_inline_query_manager_js_1 = require("./3_inline_query_manager.js");
59
59
  const _3_story_manager_js_1 = require("./3_story_manager.js");
60
+ const _2_video_chat_manager_js_1 = require("./2_video_chat_manager.js");
60
61
  class Composer extends _1_composer_js_1.Composer {
61
62
  }
62
63
  exports.Composer = Composer;
@@ -102,6 +103,7 @@ class Client extends Composer {
102
103
  _Client_botInfoManager.set(this, void 0);
103
104
  _Client_fileManager.set(this, void 0);
104
105
  _Client_reactionManager.set(this, void 0);
106
+ _Client_videoChatManager.set(this, void 0);
105
107
  _Client_businessConnectionManager.set(this, void 0);
106
108
  _Client_messageManager.set(this, void 0);
107
109
  _Client_storyManager.set(this, void 0);
@@ -701,6 +703,7 @@ class Client extends Composer {
701
703
  __classPrivateFieldSet(this, _Client_fileManager, new _1_file_manager_js_1.FileManager(c), "f");
702
704
  __classPrivateFieldSet(this, _Client_reactionManager, new _1_reaction_manager_js_1.ReactionManager(c), "f");
703
705
  __classPrivateFieldSet(this, _Client_businessConnectionManager, new _1_business_connection_manager_js_1.BusinessConnectionManager(c), "f");
706
+ __classPrivateFieldSet(this, _Client_videoChatManager, new _2_video_chat_manager_js_1.VideoChatManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f") }), "f");
704
707
  __classPrivateFieldSet(this, _Client_messageManager, new _2_message_manager_js_1.MessageManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f") }), "f");
705
708
  __classPrivateFieldSet(this, _Client_callbackQueryManager, new _3_callback_query_manager_js_1.CallbackQueryManager({ ...c, messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
706
709
  __classPrivateFieldSet(this, _Client_storyManager, new _3_story_manager_js_1.StoryManager({ ...c, fileManager: __classPrivateFieldGet(this, _Client_fileManager, "f"), messageManager: __classPrivateFieldGet(this, _Client_messageManager, "f") }), "f");
@@ -815,7 +818,7 @@ class Client extends Composer {
815
818
  }
816
819
  await this.connect();
817
820
  }
818
- async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_businessConnectionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_Lauthorize = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_getApiId = async function _Client_getApiId() {
821
+ async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_videoChatManager = new WeakMap(), _Client_businessConnectionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_Lauthorize = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_getApiId = async function _Client_getApiId() {
819
822
  const apiId = this.apiId || await this.storage.getApiId();
820
823
  if (!apiId) {
821
824
  throw new Error("apiId not set");
@@ -1107,7 +1110,7 @@ class Client extends Composer {
1107
1110
  return new _2_tl_js_1.types.InputPeerSelf();
1108
1111
  }
1109
1112
  const inputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerInner).call(this, id);
1110
- if ((inputPeer instanceof _2_tl_js_1.types.InputPeerUser || inputPeer instanceof _2_tl_js_1.types.InputPeerChannel && inputPeer.access_hash == 0n) && await this.storage.getAccountType() == "bot") {
1113
+ if (((inputPeer instanceof _2_tl_js_1.types.InputPeerUser || inputPeer instanceof _2_tl_js_1.types.InputPeerChannel) && inputPeer.access_hash == 0n) && await this.storage.getAccountType() == "bot") {
1111
1114
  if ("channel_id" in inputPeer) {
1112
1115
  inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChannelAccessHash).call(this, inputPeer.channel_id);
1113
1116
  }
@@ -2015,6 +2018,18 @@ class Client extends Composer {
2015
2018
  //
2016
2019
  // ========================= CALLBACK QUERIES ========================= //
2017
2020
  //
2021
+ /**
2022
+ * Send a callback query. User-only.
2023
+ *
2024
+ * @method cq
2025
+ * @param chatId The chat that includes the messsage.
2026
+ * @param messageId The message that includes at a button responsible for the callback query question.
2027
+ * @param question The callback query's question.
2028
+ * @returns The bot's answer to the callback query.
2029
+ */
2030
+ async sendCallbackQuery(chatId, messageId, question) {
2031
+ return await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").sendCallbackQuery(chatId, messageId, question);
2032
+ }
2018
2033
  /**
2019
2034
  * Answer a callback query. Bot-only.
2020
2035
  *
@@ -2027,6 +2042,17 @@ class Client extends Composer {
2027
2042
  //
2028
2043
  // ========================= INLINE QUERIES ========================= //
2029
2044
  //
2045
+ /**
2046
+ * Send an inline query. User-only.
2047
+ *
2048
+ * @method iq
2049
+ * @param userId The ID of the bot to send the inline query to.
2050
+ * @param chatId The ID of the chat from which the inline query is sent.
2051
+ * @returns The bot's answer to the inline query.
2052
+ */
2053
+ async sendInlineQuery(userId, chatId, params) {
2054
+ return await __classPrivateFieldGet(this, _Client_inlineQueryManager, "f").sendInlineQuery(userId, chatId, params);
2055
+ }
2030
2056
  /**
2031
2057
  * Answer an inline query. Bot-only.
2032
2058
  *
@@ -2271,6 +2297,89 @@ class Client extends Composer {
2271
2297
  async unblockUser(userId) {
2272
2298
  await __classPrivateFieldGet(this, _Client_messageManager, "f").unblockUser(userId);
2273
2299
  }
2300
+ //
2301
+ // ========================= VIDEO CHATS ========================= //
2302
+ //
2303
+ /**
2304
+ * Start a video chat. User-only.
2305
+ *
2306
+ * @method vc
2307
+ * @param chatId The chat to start the video chat in.
2308
+ * @returns The started video chat.
2309
+ */
2310
+ async startVideoChat(chatId, params) {
2311
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").startVideoChat(chatId, params);
2312
+ }
2313
+ /**
2314
+ * Schedule a video chat. User-only.
2315
+ *
2316
+ * @method vc
2317
+ * @param chatId The chat to schedule the video chat in.
2318
+ * @param startAt A point in time within the future in which the video chat will be started.
2319
+ * @returns The scheduled video chat.
2320
+ */
2321
+ async scheduleVideoChat(chatId, startAt, params) {
2322
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").scheduleVideoChat(chatId, startAt, params);
2323
+ }
2324
+ /**
2325
+ * Join a video chat. User-only.
2326
+ *
2327
+ * @method vc
2328
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2329
+ * @param params_ WebRTC connection parameters.
2330
+ * @returns Parameters to be passed to the used WebRTC library.
2331
+ */
2332
+ async joinVideoChat(id, params_, params) {
2333
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").joinVideoChat(id, params_, params);
2334
+ }
2335
+ /**
2336
+ * Leave a video chat. User-only.
2337
+ *
2338
+ * @method vc
2339
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2340
+ */
2341
+ async leaveVideoChat(id) {
2342
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").leaveVideoChat(id);
2343
+ }
2344
+ /**
2345
+ * Join a live stream. User-only.
2346
+ *
2347
+ * @method vc
2348
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2349
+ */
2350
+ async joinLiveStream(id) {
2351
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").joinLiveStream(id);
2352
+ }
2353
+ /**
2354
+ * Get a video chat. User-only.
2355
+ *
2356
+ * @method vc
2357
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2358
+ */
2359
+ async getVideoChat(id) {
2360
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").getVideoChat(id);
2361
+ }
2362
+ /**
2363
+ * Get live stream channels. User-only.
2364
+ *
2365
+ * @method vc
2366
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2367
+ */
2368
+ async getLiveStreamChannels(id) {
2369
+ return await __classPrivateFieldGet(this, _Client_videoChatManager, "f").getLiveStreamChannels(id);
2370
+ }
2371
+ /**
2372
+ * Download a live stream chunk. User-only.
2373
+ *
2374
+ * @method vc
2375
+ * @param id The identifier of a video chat retrieved from getChat, startVideoChat, or scheduleVideoChat.
2376
+ * @param channelId Stream channel ID.
2377
+ * @param scale Stream channel scale.
2378
+ * @param timestamp Millisecond timestamp of the chunk to download.
2379
+ */
2380
+ async *downloadLiveStreamChunk(id, channelId, scale, timestamp, params) {
2381
+ yield* __classPrivateFieldGet(this, _Client_videoChatManager, "f").downloadLiveStreamChunk(id, channelId, scale, timestamp, params);
2382
+ }
2274
2383
  }
2275
2384
  exports.Client = Client;
2276
2385
  _a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
@@ -2310,6 +2419,9 @@ _a = Client, _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(up
2310
2419
  })());
2311
2420
  }
2312
2421
  }
2422
+ if (_2_video_chat_manager_js_1.VideoChatManager.canHandleUpdate(update)) {
2423
+ promises.push(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_videoChatManager, "f").handleUpdate(update)));
2424
+ }
2313
2425
  if (_3_callback_query_manager_js_1.CallbackQueryManager.canHandleUpdate(update)) {
2314
2426
  promises.push(__classPrivateFieldGet(this, _Client_instances, "m", _Client_handleCtxUpdate).call(this, await __classPrivateFieldGet(this, _Client_callbackQueryManager, "f").handleUpdate(update)));
2315
2427
  }
@@ -60,6 +60,16 @@ export declare const K: {
60
60
  customEmojiDocument: (id: bigint) => StorageKeyPart[];
61
61
  businessConnections: () => StorageKeyPart[];
62
62
  businessConnection: (id: string) => StorageKeyPart[];
63
+ inlineQueryAnswers: () => StorageKeyPart[];
64
+ inlineQueryAnswer: (userId: number, chatId: number, query: string, offset: string) => StorageKeyPart[];
65
+ callbackQueryAnswers: () => StorageKeyPart[];
66
+ callbackQueryAnswer: (chatId: number, messageId: number, question: string) => StorageKeyPart[];
67
+ fullChats: () => StorageKeyPart[];
68
+ fullChat: (chatId: number) => StorageKeyPart[];
69
+ groupCalls: () => StorageKeyPart[];
70
+ groupCall: (id: bigint) => StorageKeyPart[];
71
+ groupCallAccessHashes: () => StorageKeyPart[];
72
+ groupCallAccessHash: (id: bigint) => StorageKeyPart[];
63
73
  };
64
74
  messages: {
65
75
  P: (string: string) => string;
@@ -149,6 +159,16 @@ export declare abstract class Storage {
149
159
  getCustomEmojiDocument(id: bigint): Promise<[types.Document, Date] | null>;
150
160
  setBusinessConnection(id: string, connection: types.BotBusinessConnection | null): Promise<void>;
151
161
  getBusinessConnection(id: string): Promise<types.BotBusinessConnection | null>;
162
+ setInlineQueryAnswer(userId: number, chatId: number, query: string, offset: string, results: types.messages.BotResults, date: Date): Promise<void>;
163
+ getInlineQueryAnswer(userId: number, chatId: number, query: string, offset: string): Promise<[types.messages.BotResults, Date] | null>;
164
+ setCallbackQueryAnswer(chatId: number, messageId: number, question: string, answer: types.messages.BotCallbackAnswer): Promise<void>;
165
+ getCallbackQueryAnswer(chatId: number, messageId: number, question: string): Promise<[types.messages.BotCallbackAnswer, Date] | null>;
166
+ setFullChat(chatId: number, fullChat: types.UserFull | types.ChannelFull | types.ChatFull | null): Promise<void>;
167
+ getFullChat(chatId: number): Promise<types.UserFull | types.ChannelFull | types.ChatFull | null>;
168
+ setGroupCall(id: bigint, groupCall: types.GroupCall | null): Promise<void>;
169
+ getGroupCall(id: bigint): Promise<types.GroupCall | null>;
170
+ setGroupCallAccessHash(id: bigint, accessHash: bigint | null): Promise<void>;
171
+ getGroupCallAccessHash(id: bigint): Promise<bigint | null>;
152
172
  setUpdate(boxId: bigint, update: enums.Update): Promise<void>;
153
173
  deleteUpdates(): Promise<void>;
154
174
  getFirstUpdate(boxId: bigint): Promise<[readonly StorageKeyPart[], enums.Update] | null>;
@@ -157,6 +177,10 @@ export declare abstract class Storage {
157
177
  deleteFiles(): Promise<void>;
158
178
  deleteCustomEmojiDocuments(): Promise<void>;
159
179
  deleteBusinessConnections(): Promise<void>;
180
+ deleteInlineQueryAnswers(): Promise<void>;
181
+ deleteCallbackQueryAnswers(): Promise<void>;
182
+ deleteFullChats(): Promise<void>;
183
+ deleteGroupCalls(): Promise<void>;
160
184
  deleteStickerSetNames(): Promise<void>;
161
185
  deletePeers(): Promise<void>;
162
186
  deleteUsernames(): Promise<void>;
@@ -33,6 +33,7 @@ var _Storage_instances, _Storage_authKeyId, _Storage_resetAuthKeyId, _Storage_ac
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
34
  exports.Storage = exports.K = void 0;
35
35
  const _0_deps_js_1 = require("../0_deps.js");
36
+ const _0_errors_js_1 = require("../0_errors.js");
36
37
  const _1_utilities_js_1 = require("../1_utilities.js");
37
38
  const _2_tl_js_1 = require("../2_tl.js");
38
39
  // key parts
@@ -76,6 +77,16 @@ exports.K = {
76
77
  customEmojiDocument: (id) => [...exports.K.cache.customEmojiDocuments(), id],
77
78
  businessConnections: () => [exports.K.cache.P("businessConnections")],
78
79
  businessConnection: (id) => [...exports.K.cache.businessConnections(), id],
80
+ inlineQueryAnswers: () => [exports.K.cache.P("inlineQueryResults")],
81
+ inlineQueryAnswer: (userId, chatId, query, offset) => [...exports.K.cache.inlineQueryAnswers(), userId, chatId, query, offset],
82
+ callbackQueryAnswers: () => [exports.K.cache.P("callbackQueryAnswers")],
83
+ callbackQueryAnswer: (chatId, messageId, question) => [...exports.K.cache.callbackQueryAnswers(), chatId, messageId, question],
84
+ fullChats: () => [exports.K.cache.P("fullChats")],
85
+ fullChat: (chatId) => [...exports.K.cache.fullChats(), chatId],
86
+ groupCalls: () => [exports.K.cache.P("groupCalls")],
87
+ groupCall: (id) => [...exports.K.cache.groupCalls(), id],
88
+ groupCallAccessHashes: () => [exports.K.cache.P("groupCallAccessHashes")],
89
+ groupCallAccessHash: (id) => [...exports.K.cache.groupCallAccessHashes(), id],
79
90
  },
80
91
  messages: {
81
92
  P: (string) => `messages.${string}`,
@@ -404,6 +415,50 @@ class Storage {
404
415
  return null;
405
416
  }
406
417
  }
418
+ async setInlineQueryAnswer(userId, chatId, query, offset, results, date) {
419
+ await this.set(exports.K.cache.inlineQueryAnswer(userId, chatId, query, offset), [this.isMemoryStorage ? results : (0, _1_utilities_js_1.rleEncode)(results[_2_tl_js_1.serialize]()), date]);
420
+ }
421
+ async getInlineQueryAnswer(userId, chatId, query, offset) {
422
+ const peer_ = await this.get(exports.K.cache.inlineQueryAnswer(userId, chatId, query, offset));
423
+ if (peer_ != null) {
424
+ const [obj_, date] = peer_;
425
+ return [await this.getTlObject(obj_), date];
426
+ }
427
+ else {
428
+ return null;
429
+ }
430
+ }
431
+ async setCallbackQueryAnswer(chatId, messageId, question, answer) {
432
+ await this.set(exports.K.cache.callbackQueryAnswer(chatId, messageId, question), [this.isMemoryStorage ? answer : (0, _1_utilities_js_1.rleEncode)(answer[_2_tl_js_1.serialize]()), new Date()]);
433
+ }
434
+ async getCallbackQueryAnswer(chatId, messageId, question) {
435
+ const peer_ = await this.get(exports.K.cache.callbackQueryAnswer(chatId, messageId, question));
436
+ if (peer_ != null) {
437
+ const [obj_, date] = peer_;
438
+ return [await this.getTlObject(obj_), date];
439
+ }
440
+ else {
441
+ return null;
442
+ }
443
+ }
444
+ async setFullChat(chatId, fullChat) {
445
+ await this.setTlObject(exports.K.cache.fullChat(chatId), fullChat);
446
+ }
447
+ async getFullChat(chatId) {
448
+ return await this.getTlObject(exports.K.cache.fullChat(chatId));
449
+ }
450
+ async setGroupCall(id, groupCall) {
451
+ await this.setTlObject(exports.K.cache.groupCall(id), groupCall);
452
+ }
453
+ async getGroupCall(id) {
454
+ return await this.getTlObject(exports.K.cache.groupCall(id));
455
+ }
456
+ async setGroupCallAccessHash(id, accessHash) {
457
+ await this.set(exports.K.cache.groupCallAccessHash(id), accessHash);
458
+ }
459
+ async getGroupCallAccessHash(id) {
460
+ return await this.get(exports.K.cache.groupCallAccessHash(id));
461
+ }
407
462
  async setUpdate(boxId, update) {
408
463
  await this.setTlObject(exports.K.updates.update(boxId, __classPrivateFieldGet(this, _Storage_instances, "m", _Storage_getUpdateId).call(this, update)), update);
409
464
  }
@@ -422,12 +477,12 @@ class Storage {
422
477
  }
423
478
  async assertUser(source) {
424
479
  if (await this.getAccountType() != "user") {
425
- throw new Error(`${source}: not user a client`);
480
+ throw new _0_errors_js_1.InputError(`${source}: not user a client`);
426
481
  }
427
482
  }
428
483
  async assertBot(source) {
429
484
  if (await this.getAccountType() != "bot") {
430
- throw new Error(`${source}: not a bot client`);
485
+ throw new _0_errors_js_1.InputError(`${source}: not a bot client`);
431
486
  }
432
487
  }
433
488
  async deleteFiles() {
@@ -451,6 +506,26 @@ class Storage {
451
506
  await this.set(key, null);
452
507
  }
453
508
  }
509
+ async deleteInlineQueryAnswers() {
510
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.inlineQueryAnswers() })) {
511
+ await this.set(key, null);
512
+ }
513
+ }
514
+ async deleteCallbackQueryAnswers() {
515
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.callbackQueryAnswers() })) {
516
+ await this.set(key, null);
517
+ }
518
+ }
519
+ async deleteFullChats() {
520
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.fullChats() })) {
521
+ await this.set(key, null);
522
+ }
523
+ }
524
+ async deleteGroupCalls() {
525
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.groupCalls() })) {
526
+ await this.set(key, null);
527
+ }
528
+ }
454
529
  async deleteStickerSetNames() {
455
530
  for await (const [key] of await this.getMany({ prefix: exports.K.cache.stickerSetNames() })) {
456
531
  await this.set(key, null);
@@ -475,6 +550,10 @@ class Storage {
475
550
  this.deleteFiles(),
476
551
  this.deleteCustomEmojiDocuments(),
477
552
  this.deleteBusinessConnections(),
553
+ this.deleteInlineQueryAnswers(),
554
+ this.deleteCallbackQueryAnswers(),
555
+ this.deleteFullChats(),
556
+ this.deleteGroupCalls(),
478
557
  this.deleteStickerSetNames(),
479
558
  this.deletePeers(),
480
559
  this.deleteUsernames(),
@@ -20,7 +20,7 @@
20
20
  import { enums, types } from "./2_types.js";
21
21
  export declare function getChannelChatId(channelId: bigint): number;
22
22
  export type AnyEntity = types.User | types.Channel | types.ChannelForbidden | types.Chat | types.ChatForbidden;
23
- export declare function peerToChatId(peer: enums.Peer | enums.InputPeer | AnyEntity | {
23
+ export declare function peerToChatId(peer: enums.Peer | enums.InputPeer | AnyEntity | types.ChannelFull | types.UserFull | types.ChatFull | {
24
24
  channel_id: bigint;
25
25
  } | {
26
26
  user_id: bigint;
@@ -28,13 +28,13 @@ function getChannelChatId(channelId) {
28
28
  }
29
29
  exports.getChannelChatId = getChannelChatId;
30
30
  function peerToChatId(peer) {
31
- if (peer instanceof _2_types_js_1.types.PeerUser || peer instanceof _2_types_js_1.types.InputPeerUser || peer instanceof _2_types_js_1.types.User || "user_id" in peer) {
31
+ if (peer instanceof _2_types_js_1.types.PeerUser || peer instanceof _2_types_js_1.types.InputPeerUser || peer instanceof _2_types_js_1.types.User || peer instanceof _2_types_js_1.types.UserFull || "user_id" in peer) {
32
32
  return Number("id" in peer ? peer.id : peer.user_id);
33
33
  }
34
- else if (peer instanceof _2_types_js_1.types.PeerChat || peer instanceof _2_types_js_1.types.InputPeerChat || peer instanceof _2_types_js_1.types.Chat || peer instanceof _2_types_js_1.types.ChatForbidden || "chat_id" in peer) {
34
+ else if (peer instanceof _2_types_js_1.types.PeerChat || peer instanceof _2_types_js_1.types.InputPeerChat || peer instanceof _2_types_js_1.types.Chat || peer instanceof _2_types_js_1.types.ChatForbidden || peer instanceof _2_types_js_1.types.ChatFull || "chat_id" in peer) {
35
35
  return -Number("id" in peer ? peer.id : peer.chat_id);
36
36
  }
37
- else if (peer instanceof _2_types_js_1.types.PeerChannel || peer instanceof _2_types_js_1.types.InputPeerChannel || peer instanceof _2_types_js_1.types.Channel || peer instanceof _2_types_js_1.types.ChannelForbidden || "channel_id" in peer) {
37
+ else if (peer instanceof _2_types_js_1.types.PeerChannel || peer instanceof _2_types_js_1.types.InputPeerChannel || peer instanceof _2_types_js_1.types.Channel || peer instanceof _2_types_js_1.types.ChannelForbidden || peer instanceof _2_types_js_1.types.ChannelFull || "channel_id" in peer) {
38
38
  return getChannelChatId("id" in peer ? peer.id : peer.channel_id);
39
39
  }
40
40
  else {
@@ -0,0 +1,27 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2024 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 { types } from "../2_tl.js";
21
+ /** A user's birthday. */
22
+ export interface Birthday {
23
+ day: number;
24
+ month: number;
25
+ year?: number;
26
+ }
27
+ export declare function constructBirthday(birthday: types.Birthday): Birthday;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /**
3
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
+ * Copyright (C) 2023-2024 Roj <https://roj.im/>
5
+ *
6
+ * This file is part of MTKruto.
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Lesser General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.constructBirthday = void 0;
23
+ function constructBirthday(birthday) {
24
+ return {
25
+ day: birthday.day,
26
+ month: birthday.month,
27
+ year: birthday.year,
28
+ };
29
+ }
30
+ exports.constructBirthday = constructBirthday;