@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
@@ -0,0 +1,198 @@
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
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
22
+ if (kind === "m") throw new TypeError("Private method is not writable");
23
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
24
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
25
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
26
+ };
27
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
28
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
31
+ };
32
+ var _VideoChatManager_instances, _VideoChatManager_c, _VideoChatManager_createGroupCall, _VideoChatManager_getInputGroupCall, _VideoChatManager_getCall;
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.VideoChatManager = void 0;
35
+ const _0_deps_js_1 = require("../0_deps.js");
36
+ const _0_errors_js_1 = require("../0_errors.js");
37
+ const _1_utilities_js_1 = require("../1_utilities.js");
38
+ const _2_tl_js_1 = require("../2_tl.js");
39
+ const _3_types_js_1 = require("../3_types.js");
40
+ class VideoChatManager {
41
+ constructor(c) {
42
+ _VideoChatManager_instances.add(this);
43
+ _VideoChatManager_c.set(this, void 0);
44
+ __classPrivateFieldSet(this, _VideoChatManager_c, c, "f");
45
+ }
46
+ async startVideoChat(chatId, params) {
47
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.assertUser("startVideoChat");
48
+ return await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_createGroupCall).call(this, chatId, params?.title, params?.liveStream || undefined);
49
+ }
50
+ async scheduleVideoChat(chatId, startAt, params) {
51
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.assertUser("scheduleVideoChat");
52
+ return await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_createGroupCall).call(this, chatId, params?.title, params?.liveStream || undefined, startAt);
53
+ }
54
+ async joinVideoChat(id, params, params_) {
55
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.assertUser("joinVideoChat");
56
+ const call = await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_getInputGroupCall).call(this, id);
57
+ const { updates } = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").api.phone.joinGroupCall({
58
+ call,
59
+ join_as: params_?.joinAs ? await __classPrivateFieldGet(this, _VideoChatManager_c, "f").getInputPeer(params_.joinAs) : new _2_tl_js_1.types.InputPeerSelf(),
60
+ params: new _2_tl_js_1.types.DataJSON({ data: params }),
61
+ invite_hash: params_?.inviteHash,
62
+ muted: params_?.audio ? undefined : true,
63
+ video_stopped: params_?.video ? undefined : true,
64
+ }).then((v) => v[_2_tl_js_1.as](_2_tl_js_1.types.Updates));
65
+ const updateGroupCall = updates
66
+ .find((v) => v instanceof _2_tl_js_1.types.UpdateGroupCallConnection);
67
+ if (!updateGroupCall)
68
+ (0, _0_deps_js_1.unreachable)();
69
+ return updateGroupCall.params.data;
70
+ }
71
+ async leaveVideoChat(id) {
72
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.assertUser("leaveVideoChat");
73
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").api.phone.leaveGroupCall({ call: await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_getInputGroupCall).call(this, id), source: 0 });
74
+ }
75
+ async joinLiveStream(id) {
76
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.assertUser("joinLiveStream");
77
+ const call = await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_getInputGroupCall).call(this, id);
78
+ const { updates } = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").api.phone.joinGroupCall({
79
+ call,
80
+ join_as: new _2_tl_js_1.types.InputPeerSelf(),
81
+ params: new _2_tl_js_1.types.DataJSON({
82
+ data: JSON.stringify({
83
+ fingerprints: [],
84
+ pwd: "",
85
+ ssrc: (0, _1_utilities_js_1.getRandomId)(true),
86
+ "ssrc-groups": [],
87
+ ufrag: "",
88
+ }),
89
+ }),
90
+ }).then((v) => v[_2_tl_js_1.as](_2_tl_js_1.types.Updates));
91
+ const updateGroupCall = updates
92
+ .find((v) => v instanceof _2_tl_js_1.types.UpdateGroupCallConnection);
93
+ if (!updateGroupCall)
94
+ (0, _0_deps_js_1.unreachable)();
95
+ }
96
+ async getVideoChat(id) {
97
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.assertUser("getVideoChat");
98
+ return (0, _3_types_js_1.constructVideoChat)(await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_getCall).call(this, id));
99
+ }
100
+ static canHandleUpdate(update) {
101
+ return update instanceof _2_tl_js_1.types.UpdateGroupCall;
102
+ }
103
+ async handleUpdate(update) {
104
+ let chatId = Number(-update.chat_id);
105
+ const fullChat = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.getFullChat(chatId).then((v) => v == null ? __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.getFullChat(chatId = _1_utilities_js_1.ZERO_CHANNEL_ID - Number(update.chat_id)) : v);
106
+ let updateFullChat = false;
107
+ if (update.call instanceof _2_tl_js_1.types.GroupCallDiscarded) {
108
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.setGroupCall(update.call.id, null);
109
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.setGroupCallAccessHash(update.call.id, null);
110
+ if (fullChat != null) {
111
+ fullChat.call = undefined;
112
+ updateFullChat = true;
113
+ }
114
+ }
115
+ else {
116
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.setGroupCall(update.call.id, update.call);
117
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.setGroupCallAccessHash(update.call.id, update.call.access_hash);
118
+ if (fullChat != null) {
119
+ if (!("call" in fullChat) || !fullChat.call || fullChat.call.id != update.call.id) {
120
+ fullChat.call = new _2_tl_js_1.types.InputGroupCall(update.call);
121
+ updateFullChat = true;
122
+ }
123
+ }
124
+ }
125
+ if (updateFullChat) {
126
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.setFullChat(chatId, fullChat);
127
+ }
128
+ return { videoChat: (0, _3_types_js_1.constructVideoChat)(update.call) };
129
+ }
130
+ async getLiveStreamChannels(id) {
131
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.assertUser("getLiveStreamChannels");
132
+ const call = await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_getCall).call(this, id);
133
+ if (!(call instanceof _2_tl_js_1.types.GroupCall) || !call.rtmp_stream) {
134
+ throw new _0_errors_js_1.InputError("Not a live stream.");
135
+ }
136
+ const client = __classPrivateFieldGet(this, _VideoChatManager_c, "f").getCdnConnection(call.stream_dc_id);
137
+ await client.connect();
138
+ try {
139
+ const streams = await client.api.phone.getGroupCallStreamChannels({ call: await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_getInputGroupCall).call(this, id) });
140
+ return streams.channels.map(_3_types_js_1.constructLiveStreamChannel);
141
+ }
142
+ finally {
143
+ await client.disconnect();
144
+ }
145
+ }
146
+ async *downloadLiveStreamChunk(id, channel, scale, timestamp, params) {
147
+ await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.assertUser("downloadLiveStreamChunk");
148
+ const call = await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_getCall).call(this, id);
149
+ if (!(call instanceof _2_tl_js_1.types.GroupCall) || !call.rtmp_stream) {
150
+ throw new _0_errors_js_1.InputError("Not a live stream.");
151
+ }
152
+ const quality = params?.quality ?? "low";
153
+ const location = new _2_tl_js_1.types.InputGroupCallStream({
154
+ call: new _2_tl_js_1.types.InputGroupCall(call),
155
+ scale,
156
+ time_ms: BigInt(timestamp),
157
+ video_channel: channel,
158
+ video_quality: quality == "low" ? 0 : quality == "medium" ? 1 : quality == "high" ? 2 : (() => {
159
+ throw new _0_errors_js_1.InputError("Got invalid quality.");
160
+ })(),
161
+ });
162
+ yield* __classPrivateFieldGet(this, _VideoChatManager_c, "f").fileManager.downloadInner(location, call.stream_dc_id ?? (0, _0_deps_js_1.unreachable)());
163
+ }
164
+ }
165
+ exports.VideoChatManager = VideoChatManager;
166
+ _VideoChatManager_c = new WeakMap(), _VideoChatManager_instances = new WeakSet(), _VideoChatManager_createGroupCall = async function _VideoChatManager_createGroupCall(chatId, title, liveStream, scheduleDate) {
167
+ const peer = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").getInputPeer(chatId);
168
+ if (peer instanceof _2_tl_js_1.types.InputPeerUser) {
169
+ throw new _0_errors_js_1.InputError("Video chats are only available for groups and channels.");
170
+ }
171
+ const { updates } = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").api.phone.createGroupCall({
172
+ peer,
173
+ random_id: (0, _1_utilities_js_1.getRandomId)(true),
174
+ title,
175
+ rtmp_stream: liveStream,
176
+ schedule_date: scheduleDate ? (0, _1_utilities_js_1.toUnixTimestamp)(scheduleDate) : undefined,
177
+ }).then((v) => v[_2_tl_js_1.as](_2_tl_js_1.types.Updates));
178
+ const updateGroupCall = updates
179
+ .find((v) => v instanceof _2_tl_js_1.types.UpdateGroupCall);
180
+ if (!updateGroupCall) {
181
+ (0, _0_deps_js_1.unreachable)();
182
+ }
183
+ return (0, _3_types_js_1.constructVideoChat)(updateGroupCall.call);
184
+ }, _VideoChatManager_getInputGroupCall = async function _VideoChatManager_getInputGroupCall(id_) {
185
+ const id = BigInt(id_);
186
+ const accessHash = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.getGroupCallAccessHash(id);
187
+ if (accessHash == null) {
188
+ throw new _0_errors_js_1.InputError("Video chat not found.");
189
+ }
190
+ return new _2_tl_js_1.types.InputGroupCall({ id, access_hash: accessHash });
191
+ }, _VideoChatManager_getCall = async function _VideoChatManager_getCall(id) {
192
+ let groupCall = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").storage.getGroupCall(BigInt(id));
193
+ if (groupCall == null) {
194
+ const call = await __classPrivateFieldGet(this, _VideoChatManager_instances, "m", _VideoChatManager_getInputGroupCall).call(this, id);
195
+ groupCall = await __classPrivateFieldGet(this, _VideoChatManager_c, "f").api.phone.getGroupCall({ call, limit: 1 }).then((v) => v.call);
196
+ }
197
+ return groupCall;
198
+ };
@@ -18,7 +18,7 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import { enums, types } from "../2_tl.js";
21
- import { Update } from "../3_types.js";
21
+ import { CallbackQueryQuestion, ID, Update } from "../3_types.js";
22
22
  import { AnswerCallbackQueryParams } from "./0_params.js";
23
23
  import { C as C_ } from "./0_types.js";
24
24
  import { MessageManager } from "./2_message_manager.js";
@@ -30,6 +30,7 @@ export declare class CallbackQueryManager {
30
30
  #private;
31
31
  constructor(c: C);
32
32
  answerCallbackQuery(id: string, params?: AnswerCallbackQueryParams): Promise<void>;
33
+ sendCallbackQuery(chatId: ID, messageId: number, question: CallbackQueryQuestion): Promise<import("../3_types.js").CallbackQueryAnswer>;
33
34
  static canHandleUpdate(update: enums.Update): update is CallbackQueryManagerUpdate;
34
35
  handleUpdate(update: CallbackQueryManagerUpdate): Promise<Update>;
35
36
  }
@@ -29,14 +29,16 @@ 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 _CallbackQueryManager_c;
32
+ var _CallbackQueryManager_instances, _a, _CallbackQueryManager_c, _CallbackQueryManager_enc, _CallbackQueryManager_isExpired, _CallbackQueryManager_getPasswordCheck;
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
34
  exports.CallbackQueryManager = void 0;
35
35
  const _2_tl_js_1 = require("../2_tl.js");
36
36
  const _3_types_js_1 = require("../3_types.js");
37
37
  const _0_utilities_js_1 = require("./0_utilities.js");
38
+ const _0_password_js_1 = require("./0_password.js");
38
39
  class CallbackQueryManager {
39
40
  constructor(c) {
41
+ _CallbackQueryManager_instances.add(this);
40
42
  _CallbackQueryManager_c.set(this, void 0);
41
43
  __classPrivateFieldSet(this, _CallbackQueryManager_c, c, "f");
42
44
  }
@@ -50,6 +52,27 @@ class CallbackQueryManager {
50
52
  alert: params?.alert ? true : undefined,
51
53
  });
52
54
  }
55
+ async sendCallbackQuery(chatId, messageId, question) {
56
+ await __classPrivateFieldGet(this, _CallbackQueryManager_c, "f").storage.assertUser("sendCallbackQuery");
57
+ (0, _0_utilities_js_1.checkMessageId)(messageId);
58
+ (0, _3_types_js_1.validateCallbackQueryQuestion)(question);
59
+ const peer = await __classPrivateFieldGet(this, _CallbackQueryManager_c, "f").getInputPeer(chatId), peerId = (0, _2_tl_js_1.peerToChatId)(peer), questionKey = JSON.stringify(question);
60
+ const maybeAnswer = await __classPrivateFieldGet(this, _CallbackQueryManager_c, "f").messageStorage.getCallbackQueryAnswer(peerId, messageId, questionKey);
61
+ if (maybeAnswer != null && !__classPrivateFieldGet(_a, _a, "m", _CallbackQueryManager_isExpired).call(_a, maybeAnswer[1], maybeAnswer[0].cache_time)) {
62
+ return (0, _3_types_js_1.constructCallbackQueryAnswer)(maybeAnswer[0]);
63
+ }
64
+ const answer = await __classPrivateFieldGet(this, _CallbackQueryManager_c, "f").api.messages.getBotCallbackAnswer({
65
+ peer,
66
+ msg_id: messageId,
67
+ data: "data" in question ? __classPrivateFieldGet(_a, _a, "f", _CallbackQueryManager_enc).encode(question.data) : undefined,
68
+ game: question.type == "game" ? true : undefined,
69
+ password: question.type == "password" ? await __classPrivateFieldGet(this, _CallbackQueryManager_instances, "m", _CallbackQueryManager_getPasswordCheck).call(this, question.password) : undefined,
70
+ });
71
+ if (answer.cache_time >= 0) {
72
+ await __classPrivateFieldGet(this, _CallbackQueryManager_c, "f").messageStorage.setCallbackQueryAnswer(peerId, messageId, questionKey, answer);
73
+ }
74
+ return (0, _3_types_js_1.constructCallbackQueryAnswer)(answer);
75
+ }
53
76
  static canHandleUpdate(update) {
54
77
  return update instanceof _2_tl_js_1.types.UpdateBotCallbackQuery || update instanceof _2_tl_js_1.types.UpdateInlineBotCallbackQuery;
55
78
  }
@@ -58,4 +81,10 @@ class CallbackQueryManager {
58
81
  }
59
82
  }
60
83
  exports.CallbackQueryManager = CallbackQueryManager;
61
- _CallbackQueryManager_c = new WeakMap();
84
+ _a = CallbackQueryManager, _CallbackQueryManager_c = new WeakMap(), _CallbackQueryManager_instances = new WeakSet(), _CallbackQueryManager_isExpired = function _CallbackQueryManager_isExpired(date, cacheTime) {
85
+ return (Date.now() - date.getTime()) / 1000 > cacheTime;
86
+ }, _CallbackQueryManager_getPasswordCheck = async function _CallbackQueryManager_getPasswordCheck(password) {
87
+ const ap = await __classPrivateFieldGet(this, _CallbackQueryManager_c, "f").api.account.getPassword();
88
+ return await (0, _0_password_js_1.checkPassword)(password, ap);
89
+ };
90
+ _CallbackQueryManager_enc = { value: new TextEncoder() };
@@ -18,7 +18,7 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import { enums, types } from "../2_tl.js";
21
- import { Chat, ID } from "../3_types.js";
21
+ import { ChatListItem, ID } from "../3_types.js";
22
22
  import { C as C_ } from "./0_types.js";
23
23
  import { FileManager } from "./1_file_manager.js";
24
24
  import { MessageManager } from "./2_message_manager.js";
@@ -31,9 +31,9 @@ export declare class ChatListManager {
31
31
  #private;
32
32
  constructor(c: C);
33
33
  reassignChatLastMessage(chatId: number, add?: boolean, sendUpdate?: boolean): Promise<() => Promise<void>>;
34
- getChats(from?: "archived" | "main", after?: Chat, limit?: number): Promise<Chat[]>;
34
+ getChats(from?: "archived" | "main", after?: ChatListItem, limit?: number): Promise<ChatListItem[]>;
35
35
  static canHandleUpdate(update: enums.Update): update is ChatListManagerUpdate;
36
36
  handleUpdate(update: ChatListManagerUpdate): Promise<void>;
37
- getChat(chatId: ID): Promise<Chat>;
37
+ getChat(chatId: ID): Promise<import("../3_types.js").Chat>;
38
38
  }
39
39
  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 _ChatListManager_instances, _ChatListManager_c, _ChatListManager_LgetChats, _ChatListManager_sendChatUpdate, _ChatListManager_chats, _ChatListManager_archivedChats, _ChatListManager_chatsLoadedFromStorage, _ChatListManager_tryGetChatId, _ChatListManager_getChatAnywhere, _ChatListManager_getChatList, _ChatListManager_loadChatsFromStorage, _ChatListManager_getLoadedChats, _ChatListManager_pinnedChats, _ChatListManager_pinnedArchiveChats, _ChatListManager_storageHadPinnedChats, _ChatListManager_pinnedChatsLoaded, _ChatListManager_loadPinnedChats, _ChatListManager_fetchPinnedChats, _ChatListManager_getPinnedChats, _ChatListManager_updateOrAddChat, _ChatListManager_removeChat, _ChatListManager_handleUpdateFolderPeers, _ChatListManager_handleUpdatePinnedDialogs, _ChatListManager_handleUpdateChannel, _ChatListManager_handleUpdateChat, _ChatListManager_handleUpdateUser, _ChatListManager_fetchChats;
32
+ var _ChatListManager_instances, _ChatListManager_c, _ChatListManager_LgetChats, _ChatListManager_sendChatUpdate, _ChatListManager_chats, _ChatListManager_archivedChats, _ChatListManager_chatsLoadedFromStorage, _ChatListManager_tryGetChatId, _ChatListManager_getChatAnywhere, _ChatListManager_getChatList, _ChatListManager_loadChatsFromStorage, _ChatListManager_getLoadedChats, _ChatListManager_pinnedChats, _ChatListManager_pinnedArchiveChats, _ChatListManager_storageHadPinnedChats, _ChatListManager_pinnedChatsLoaded, _ChatListManager_loadPinnedChats, _ChatListManager_fetchPinnedChats, _ChatListManager_getPinnedChats, _ChatListManager_updateOrAddChat, _ChatListManager_removeChat, _ChatListManager_handleUpdateFolderPeers, _ChatListManager_handleUpdatePinnedDialogs, _ChatListManager_handleUpdateChannel, _ChatListManager_handleUpdateChat, _ChatListManager_handleUpdateUser, _ChatListManager_fetchChats, _ChatListManager_getFullChat;
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
34
  exports.ChatListManager = void 0;
35
35
  const _0_deps_js_1 = require("../0_deps.js");
@@ -69,13 +69,13 @@ class ChatListManager {
69
69
  if (message_ != null) {
70
70
  const message = await __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.constructMessage(message_);
71
71
  if (chat) {
72
- chat.order = (0, _3_types_js_1.getChatOrder)(message, chat.pinned);
72
+ chat.order = (0, _3_types_js_1.getChatListItemOrder)(message, chat.pinned);
73
73
  chat.lastMessage = message;
74
74
  await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setChat(listId, chatId, chat.pinned, message.id, message.date);
75
75
  }
76
76
  else {
77
77
  const pinnedChats = await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getPinnedChats).call(this, listId);
78
- const chat = await (0, _3_types_js_1.constructChat3)(chatId, pinnedChats.indexOf(chatId), message, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
78
+ const chat = await (0, _3_types_js_1.constructChatListItem3)(chatId, pinnedChats.indexOf(chatId), message, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
79
79
  if (chat == null) {
80
80
  (0, _0_deps_js_1.unreachable)();
81
81
  }
@@ -90,13 +90,13 @@ class ChatListManager {
90
90
  const message = await __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getHistory(chatId, { limit: 1 }).then((v) => v[0]);
91
91
  if (message) {
92
92
  if (chat) {
93
- chat.order = (0, _3_types_js_1.getChatOrder)(message, chat.pinned);
93
+ chat.order = (0, _3_types_js_1.getChatListItemOrder)(message, chat.pinned);
94
94
  chat.lastMessage = message;
95
95
  await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setChat(listId, chatId, chat.pinned, message.id, message.date);
96
96
  }
97
97
  else {
98
98
  const pinnedChats = await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getPinnedChats).call(this, listId);
99
- const chat = await (0, _3_types_js_1.constructChat3)(chatId, pinnedChats.indexOf(chatId), message, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
99
+ const chat = await (0, _3_types_js_1.constructChatListItem3)(chatId, pinnedChats.indexOf(chatId), message, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
100
100
  if (chat == null) {
101
101
  (0, _0_deps_js_1.unreachable)();
102
102
  }
@@ -108,7 +108,7 @@ class ChatListManager {
108
108
  return () => Promise.resolve();
109
109
  }
110
110
  if (chat) {
111
- chat.order = (0, _3_types_js_1.getChatOrder)(undefined, chat.pinned);
111
+ chat.order = (0, _3_types_js_1.getChatListItemOrder)(undefined, chat.pinned);
112
112
  chat.lastMessage = undefined;
113
113
  if (sendUpdate) {
114
114
  return () => __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_sendChatUpdate).call(this, chatId, false);
@@ -121,7 +121,7 @@ class ChatListManager {
121
121
  if (!__classPrivateFieldGet(this, _ChatListManager_chatsLoadedFromStorage, "f")) {
122
122
  await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_loadChatsFromStorage).call(this);
123
123
  }
124
- if (after && !__classPrivateFieldGet(this, _ChatListManager_chats, "f").get(after.id)) {
124
+ if (after && !__classPrivateFieldGet(this, _ChatListManager_chats, "f").get(after.chat.id)) {
125
125
  throw new _0_errors_js_1.InputError("Invalid after");
126
126
  }
127
127
  if (limit <= 0 || limit > 100) {
@@ -173,69 +173,11 @@ class ChatListManager {
173
173
  }
174
174
  }
175
175
  async getChat(chatId) {
176
- if (await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.getAccountType() == "user") {
177
- let maybeChatId = null;
178
- if (typeof chatId === "number") {
179
- maybeChatId = chatId;
180
- }
181
- else if (typeof chatId === "string") {
182
- maybeChatId = __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_tryGetChatId).call(this, (0, _0_utilities_js_1.getUsername)(chatId));
183
- }
184
- else {
185
- (0, _0_deps_js_1.unreachable)();
186
- }
187
- if (maybeChatId != null) {
188
- const [chat] = __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getChatAnywhere).call(this, maybeChatId);
189
- if (chat !== undefined) {
190
- return chat;
191
- }
192
- }
193
- }
194
- let inputPeer = null;
195
- if (typeof chatId === "number") {
196
- const chat = await (0, _3_types_js_1.constructChat3)(chatId, -1, undefined, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
197
- if (chat != null) {
198
- return chat;
199
- }
200
- }
201
- else {
202
- inputPeer = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputPeer(chatId);
203
- const chatId_ = (0, _2_tl_js_1.peerToChatId)(inputPeer);
204
- const chat = await (0, _3_types_js_1.constructChat3)(chatId_, -1, undefined, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
205
- if (chat != null) {
206
- return chat;
207
- }
208
- }
209
- if (inputPeer == null) {
210
- inputPeer = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputPeer(chatId);
211
- }
212
- if (inputPeer instanceof _2_tl_js_1.types.InputPeerChat) {
213
- const chats = await __classPrivateFieldGet(this, _ChatListManager_c, "f").api.messages.getChats({ id: [inputPeer.chat_id] }).then((v) => v[_2_tl_js_1.as](_2_tl_js_1.types.messages.Chats));
214
- const chat = chats.chats[0];
215
- if (chat instanceof _2_tl_js_1.types.ChatEmpty) {
216
- (0, _0_deps_js_1.unreachable)();
217
- }
218
- return (0, _3_types_js_1.constructChat2)(chat, -1, undefined);
219
- }
220
- else if (inputPeer instanceof _2_tl_js_1.types.InputPeerChannel) {
221
- const channels = await __classPrivateFieldGet(this, _ChatListManager_c, "f").api.channels.getChannels({ id: [new _2_tl_js_1.types.InputChannel(inputPeer)] });
222
- const channel = channels.chats[0];
223
- if (channel instanceof _2_tl_js_1.types.ChatEmpty) {
224
- (0, _0_deps_js_1.unreachable)();
225
- }
226
- return (0, _3_types_js_1.constructChat2)(channel, -1, undefined);
227
- }
228
- else if (inputPeer instanceof _2_tl_js_1.types.InputPeerUser) {
229
- const users = await __classPrivateFieldGet(this, _ChatListManager_c, "f").api.users.getUsers({ id: [new _2_tl_js_1.types.InputUser(inputPeer)] });
230
- const user = users[0];
231
- if (user instanceof _2_tl_js_1.types.UserEmpty) {
232
- (0, _0_deps_js_1.unreachable)();
233
- }
234
- return (0, _3_types_js_1.constructChat2)(user, -1, undefined);
235
- }
236
- else {
237
- (0, _0_deps_js_1.unreachable)();
176
+ const fullChat = await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getFullChat).call(this, chatId);
177
+ if (fullChat == null) {
178
+ throw new _0_errors_js_1.InputError("Chat not found.");
238
179
  }
180
+ return await (0, _3_types_js_1.constructChat)(fullChat, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
239
181
  }
240
182
  }
241
183
  exports.ChatListManager = ChatListManager;
@@ -253,15 +195,23 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
253
195
  username = username.toLowerCase();
254
196
  for (const chat of __classPrivateFieldGet(this, _ChatListManager_chats, "f").values()) {
255
197
  if ("username" in chat) {
256
- if (chat.username === username || chat.also?.some((v) => v.toLowerCase() === username)) {
257
- return chat.id;
198
+ if (chat.username === username
199
+ // TODO
200
+ // ||
201
+ // chat.chat.also?.some((v) => v.toLowerCase() === username)
202
+ ) {
203
+ return chat.chat.id;
258
204
  }
259
205
  }
260
206
  }
261
207
  for (const chat of __classPrivateFieldGet(this, _ChatListManager_archivedChats, "f").values()) {
262
208
  if ("username" in chat) {
263
- if (chat.username === username || chat.also?.some((v) => v.toLowerCase() === username)) {
264
- return chat.id;
209
+ if (chat.username === username
210
+ // TODO
211
+ // ||
212
+ // chat.also?.some((v) => v.toLowerCase() === username)
213
+ ) {
214
+ return chat.chat.id;
265
215
  }
266
216
  }
267
217
  }
@@ -289,18 +239,18 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
289
239
  const chats = await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.getChats(0);
290
240
  const archivedChats = await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.getChats(1);
291
241
  for (const { chatId, pinned, topMessageId } of chats) {
292
- const chat = await (0, _3_types_js_1.constructChat4)(chatId, pinned, topMessageId, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
242
+ const chat = await (0, _3_types_js_1.constructChatListItem)(chatId, pinned, topMessageId, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
293
243
  if (chat == null) {
294
244
  continue;
295
245
  }
296
- __classPrivateFieldGet(this, _ChatListManager_chats, "f").set(chat.id, chat);
246
+ __classPrivateFieldGet(this, _ChatListManager_chats, "f").set(chat.chat.id, chat);
297
247
  }
298
248
  for (const { chatId, pinned, topMessageId } of archivedChats) {
299
- const chat = await (0, _3_types_js_1.constructChat4)(chatId, pinned, topMessageId, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
249
+ const chat = await (0, _3_types_js_1.constructChatListItem)(chatId, pinned, topMessageId, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
300
250
  if (chat == null) {
301
251
  continue;
302
252
  }
303
- __classPrivateFieldGet(this, _ChatListManager_archivedChats, "f").set(chat.id, chat);
253
+ __classPrivateFieldGet(this, _ChatListManager_archivedChats, "f").set(chat.chat.id, chat);
304
254
  }
305
255
  __classPrivateFieldSet(this, _ChatListManager_chatsLoadedFromStorage, true, "f");
306
256
  }, _ChatListManager_getLoadedChats = function _ChatListManager_getLoadedChats(listId) {
@@ -310,7 +260,7 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
310
260
  chats.push(chat);
311
261
  }
312
262
  return chats
313
- .sort((a, b) => b.id - a.id)
263
+ .sort((a, b) => b.chat.id - a.chat.id)
314
264
  .sort((a, b) => b.order.localeCompare(a.order));
315
265
  }, _ChatListManager_loadPinnedChats = async function _ChatListManager_loadPinnedChats() {
316
266
  const [pinnedChats, pinnedArchiveChats] = await Promise.all([__classPrivateFieldGet(this, _ChatListManager_c, "f").storage.getPinnedChats(0), __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.getPinnedChats(1)]);
@@ -360,14 +310,14 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
360
310
  }, _ChatListManager_updateOrAddChat = async function _ChatListManager_updateOrAddChat(chatId) {
361
311
  const [chat, listId] = __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getChatAnywhere).call(this, chatId);
362
312
  if (chat !== undefined) {
363
- const newChat = await (0, _3_types_js_1.constructChat3)(chatId, chat.pinned, chat.lastMessage, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
313
+ const newChat = await (0, _3_types_js_1.constructChatListItem3)(chatId, chat.pinned, chat.lastMessage, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity);
364
314
  if (newChat != null) {
365
315
  __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getChatList).call(this, listId).set(chatId, newChat);
366
316
  await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_sendChatUpdate).call(this, chatId, false);
367
317
  }
368
318
  }
369
319
  else {
370
- const chat = await (0, _3_types_js_1.constructChat4)(chatId, -1, -1, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
320
+ const chat = await (0, _3_types_js_1.constructChatListItem)(chatId, -1, -1, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
371
321
  if (chat != null) {
372
322
  __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getChatList).call(this, 0).set(chatId, chat);
373
323
  await this.reassignChatLastMessage(chatId, false, false);
@@ -398,55 +348,61 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
398
348
  for (const [i, chatId] of pinnedChats.entries()) {
399
349
  const chat = chats.get(chatId);
400
350
  if (chat !== undefined) {
401
- chat.order = (0, _3_types_js_1.getChatOrder)(chat.lastMessage, i);
351
+ chat.order = (0, _3_types_js_1.getChatListItemOrder)(chat.lastMessage, i);
402
352
  chat.pinned = i;
403
353
  await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_sendChatUpdate).call(this, chatId, false);
404
354
  }
405
355
  }
406
356
  for (const chat of chats.values()) {
407
- if (chat.pinned != -1 && pinnedChats.indexOf(chat.id) == -1) {
408
- chat.order = (0, _3_types_js_1.getChatOrder)(chat.lastMessage, -1);
357
+ if (chat.pinned != -1 && pinnedChats.indexOf(chat.chat.id) == -1) {
358
+ chat.order = (0, _3_types_js_1.getChatListItemOrder)(chat.lastMessage, -1);
409
359
  chat.pinned = -1;
410
- await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_sendChatUpdate).call(this, chat.id, false);
360
+ await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_sendChatUpdate).call(this, chat.chat.id, false);
411
361
  }
412
362
  }
413
363
  await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setPinnedChats(listId, await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getPinnedChats).call(this, listId));
414
364
  }, _ChatListManager_handleUpdateChannel = async function _ChatListManager_handleUpdateChannel(update) {
415
365
  const peer = new _2_tl_js_1.types.PeerChannel(update);
416
366
  const channel = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity(peer);
367
+ const chatId = (0, _2_tl_js_1.peerToChatId)(peer);
368
+ await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setFullChat(chatId, null);
417
369
  if (channel != null && "left" in channel && channel.left) {
418
- await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_removeChat).call(this, (0, _2_tl_js_1.peerToChatId)(peer));
370
+ await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_removeChat).call(this, chatId);
419
371
  }
420
372
  else if (channel instanceof _2_tl_js_1.types.ChannelForbidden) {
421
- await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_removeChat).call(this, (0, _2_tl_js_1.peerToChatId)(peer));
373
+ await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_removeChat).call(this, chatId);
422
374
  }
423
375
  else if (channel instanceof _2_tl_js_1.types.Channel) {
424
- await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_updateOrAddChat).call(this, (0, _2_tl_js_1.peerToChatId)(peer));
376
+ await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_updateOrAddChat).call(this, chatId);
425
377
  }
426
378
  }, _ChatListManager_handleUpdateChat = async function _ChatListManager_handleUpdateChat(update) {
427
379
  const peer = new _2_tl_js_1.types.PeerChat(update);
428
380
  const chat = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity(peer);
381
+ const chatId = (0, _2_tl_js_1.peerToChatId)(peer);
382
+ await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setFullChat(chatId, null);
429
383
  if (chat != null && "left" in chat && chat.left) {
430
- await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_removeChat).call(this, (0, _2_tl_js_1.peerToChatId)(peer));
384
+ await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_removeChat).call(this, chatId);
431
385
  }
432
386
  else if (chat instanceof _2_tl_js_1.types.ChatForbidden) {
433
- await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_removeChat).call(this, (0, _2_tl_js_1.peerToChatId)(peer));
387
+ await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_removeChat).call(this, chatId);
434
388
  }
435
389
  else if (chat instanceof _2_tl_js_1.types.Chat) {
436
- await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_updateOrAddChat).call(this, (0, _2_tl_js_1.peerToChatId)(peer));
390
+ await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_updateOrAddChat).call(this, chatId);
437
391
  }
438
392
  }, _ChatListManager_handleUpdateUser = async function _ChatListManager_handleUpdateUser(update) {
439
393
  const peer = new _2_tl_js_1.types.PeerUser(update);
440
394
  const chat = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity(peer);
395
+ const chatId = (0, _2_tl_js_1.peerToChatId)(peer);
396
+ await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setFullChat(chatId, null);
441
397
  if (chat != null) {
442
- await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_updateOrAddChat).call(this, (0, _2_tl_js_1.peerToChatId)(peer));
398
+ await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_updateOrAddChat).call(this, chatId);
443
399
  }
444
400
  }, _ChatListManager_fetchChats = async function _ChatListManager_fetchChats(listId, limit, after) {
445
401
  const dialogs = await __classPrivateFieldGet(this, _ChatListManager_c, "f").api.messages.getDialogs({
446
402
  limit,
447
403
  offset_id: after?.lastMessage?.id ?? 0,
448
404
  offset_date: after?.lastMessage?.date ? (0, _1_utilities_js_1.toUnixTimestamp)(after.lastMessage.date) : 0,
449
- offset_peer: after ? await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputPeer(after.id) : new _2_tl_js_1.types.InputPeerEmpty(),
405
+ offset_peer: after ? await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputPeer(after.chat.id) : new _2_tl_js_1.types.InputPeerEmpty(),
450
406
  hash: 0n,
451
407
  folder_id: listId,
452
408
  });
@@ -459,8 +415,29 @@ _ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(),
459
415
  }
460
416
  const chats = __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_getChatList).call(this, listId);
461
417
  for (const dialog of dialogs.dialogs) {
462
- const chat = await (0, _3_types_js_1.constructChat)(dialog, dialogs, pinnedChats, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager), __classPrivateFieldGet(this, _ChatListManager_c, "f").fileManager.getStickerSetName.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
463
- chats.set(chat.id, chat);
464
- await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setChat(listId, chat.id, chat.pinned, chat.lastMessage?.id ?? 0, chat.lastMessage?.date ?? new Date(0));
418
+ const chat = await (0, _3_types_js_1.constructChatListItem4)(dialog, dialogs, pinnedChats, __classPrivateFieldGet(this, _ChatListManager_c, "f").getEntity, __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.getMessage.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager), __classPrivateFieldGet(this, _ChatListManager_c, "f").fileManager.getStickerSetName.bind(__classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager));
419
+ chats.set(chat.chat.id, chat);
420
+ await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setChat(listId, chat.chat.id, chat.pinned, chat.lastMessage?.id ?? 0, chat.lastMessage?.date ?? new Date(0));
421
+ }
422
+ }, _ChatListManager_getFullChat = async function _ChatListManager_getFullChat(chatId) {
423
+ const inputPeer = await __classPrivateFieldGet(this, _ChatListManager_c, "f").getInputPeer(chatId);
424
+ const chatId_ = (0, _2_tl_js_1.peerToChatId)(inputPeer);
425
+ let fullChat = await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.getFullChat(chatId_);
426
+ if (fullChat != null) {
427
+ return fullChat;
428
+ }
429
+ if (inputPeer instanceof _2_tl_js_1.types.InputPeerUser) {
430
+ fullChat = await __classPrivateFieldGet(this, _ChatListManager_c, "f").api.users.getFullUser({ id: new _2_tl_js_1.types.InputUser(inputPeer) }).then((v) => v.full_user);
431
+ }
432
+ else if (inputPeer instanceof _2_tl_js_1.types.InputPeerChat) {
433
+ fullChat = await __classPrivateFieldGet(this, _ChatListManager_c, "f").api.messages.getFullChat(inputPeer).then((v) => v.full_chat);
434
+ }
435
+ else if (inputPeer instanceof _2_tl_js_1.types.InputPeerChannel) {
436
+ fullChat = await __classPrivateFieldGet(this, _ChatListManager_c, "f").api.channels.getFullChannel({ channel: new _2_tl_js_1.types.InputChannel(inputPeer) }).then((v) => v.full_chat);
437
+ }
438
+ await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setFullChat(chatId_, fullChat);
439
+ if (fullChat != null && "call" in fullChat && fullChat.call) {
440
+ await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.setGroupCallAccessHash(fullChat.call.id, fullChat.call.access_hash);
465
441
  }
442
+ return fullChat;
466
443
  };
@@ -18,8 +18,8 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import { enums, types } from "../2_tl.js";
21
- import { InlineQueryResult, Update } from "../3_types.js";
22
- import { AnswerInlineQueryParams } from "./0_params.js";
21
+ import { ID, InlineQueryResult, Update } from "../3_types.js";
22
+ import { AnswerInlineQueryParams, SendInlineQueryParams } from "./0_params.js";
23
23
  import { C as C_ } from "./0_types.js";
24
24
  import { MessageManager } from "./2_message_manager.js";
25
25
  type C = C_ & {
@@ -32,5 +32,6 @@ export declare class InlineQueryManager {
32
32
  answerInlineQuery(id: string, results: InlineQueryResult[], params?: AnswerInlineQueryParams): Promise<void>;
33
33
  static canHandleUpdate(update: enums.Update): update is InlineQueryManagerUpdate;
34
34
  handleUpdate(update: InlineQueryManagerUpdate): Promise<Update>;
35
+ sendInlineQuery(userId: ID, chatId: ID, params?: SendInlineQueryParams): Promise<import("../3_types.js").InlineQueryAnswer>;
35
36
  }
36
37
  export {};