@mtkruto/node 0.1.303 → 0.1.500

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 (627) hide show
  1. package/esm/0_deps.d.ts +6 -5
  2. package/esm/0_deps.js +7 -6
  3. package/esm/1_utilities.d.ts +2 -0
  4. package/esm/1_utilities.js +2 -0
  5. package/esm/3_types.d.ts +6 -1
  6. package/esm/3_types.js +6 -1
  7. package/esm/client/0_markdown.d.ts +19 -0
  8. package/esm/client/0_markdown.js +19 -1
  9. package/esm/client/0_message.js +11 -11
  10. package/esm/client/0_params.d.ts +12 -1
  11. package/esm/client/0_password.js +14 -6
  12. package/esm/client/0_types.d.ts +18 -7
  13. package/esm/client/0_utilities.d.ts +19 -2
  14. package/esm/client/0_utilities.js +2 -45
  15. package/esm/client/1_client_plain.js +6 -6
  16. package/esm/client/1_file_manager.d.ts +3 -21
  17. package/esm/client/1_file_manager.js +244 -104
  18. package/esm/client/2_message_manager.d.ts +4 -1
  19. package/esm/client/2_message_manager.js +166 -23
  20. package/esm/client/3_callback_query_manager.d.ts +2 -1
  21. package/esm/client/3_callback_query_manager.js +33 -5
  22. package/esm/client/3_inline_query_manager.d.ts +3 -2
  23. package/esm/client/3_inline_query_manager.js +20 -4
  24. package/esm/client/3_story_manager.js +4 -6
  25. package/esm/client/4_client.d.ts +41 -4
  26. package/esm/client/4_client.js +120 -49
  27. package/esm/connection/1_connection_web_socket.js +3 -3
  28. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert.js +1 -0
  29. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_almost_equals.js +1 -0
  30. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_array_includes.js +1 -0
  31. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_equals.js +1 -0
  32. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_exists.js +1 -0
  33. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_false.js +1 -0
  34. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater.js +1 -0
  35. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater_or_equal.js +1 -0
  36. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_instance_of.js +1 -0
  37. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_is_error.js +1 -0
  38. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less.js +1 -0
  39. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less_or_equal.js +1 -0
  40. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_match.js +1 -0
  41. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_equals.js +1 -0
  42. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_instance_of.js +1 -0
  43. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_match.js +1 -0
  44. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_strict_equals.js +1 -0
  45. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_object_match.js +1 -0
  46. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_rejects.js +1 -0
  47. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_strict_equals.js +1 -0
  48. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_string_includes.js +1 -0
  49. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_throws.js +1 -0
  50. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assertion_error.js +1 -0
  51. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/equal.js +1 -0
  52. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/fail.js +1 -0
  53. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/mod.js +1 -0
  54. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unimplemented.js +1 -0
  55. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unreachable.js +1 -0
  56. package/esm/deps/deno.land/std@0.223.0/bytes/concat.d.ts +13 -0
  57. package/esm/deps/deno.land/std@0.223.0/bytes/concat.js +27 -0
  58. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/base64.d.ts +8 -2
  59. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/base64.js +19 -2
  60. package/{script/deps/deno.land/std@0.221.0 → esm/deps/deno.land/std@0.223.0}/media_types/_util.d.ts +1 -0
  61. package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_util.js +1 -1
  62. package/{script/deps/deno.land/x/tgcrypto@0.4.0 → esm/deps/deno.land/x/tgcrypto@0.4.1}/mod.d.ts +14 -2
  63. package/esm/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/mod.js +56 -42
  64. package/esm/storage/0_storage.d.ts +10 -0
  65. package/esm/storage/0_storage.js +42 -0
  66. package/esm/tl/0_tl_raw_writer.js +3 -2
  67. package/esm/transport/0_obfuscation.js +4 -3
  68. package/esm/transport/0_transport.d.ts +1 -1
  69. package/esm/transport/0_transport.js +7 -0
  70. package/esm/transport/1_transport_abridged.js +4 -2
  71. package/esm/transport/1_transport_intermediate.js +4 -2
  72. package/esm/types/0_callback_query_answer.d.ts +30 -0
  73. package/esm/types/0_callback_query_answer.js +26 -0
  74. package/esm/types/0_callback_query_question.d.ts +49 -0
  75. package/esm/types/0_callback_query_question.js +31 -0
  76. package/esm/types/0_file_source.d.ts +2 -2
  77. package/esm/types/0_self_destruct_option.d.ts +25 -0
  78. package/esm/types/0_self_destruct_option.js +39 -0
  79. package/esm/types/1_input_media.d.ts +108 -0
  80. package/esm/types/{1_input_message_content.d.ts → 1_message_content.d.ts} +6 -6
  81. package/esm/types/1_message_content.js +20 -0
  82. package/esm/types/1_photo.d.ts +4 -0
  83. package/esm/types/1_photo.js +12 -26
  84. package/esm/types/4_inline_query_result.d.ts +52 -49
  85. package/esm/types/4_inline_query_result.js +225 -44
  86. package/esm/types/5_inline_query_answer.d.ts +31 -0
  87. package/esm/types/5_inline_query_answer.js +28 -0
  88. package/esm/types/_file_id.d.ts +5 -0
  89. package/esm/types/_file_id.js +32 -1
  90. package/esm/utilities/0_buffer.d.ts +0 -1
  91. package/esm/utilities/0_buffer.js +0 -13
  92. package/esm/utilities/0_crypto.d.ts +3 -3
  93. package/esm/utilities/0_crypto.js +23 -20
  94. package/esm/utilities/0_part_stream.d.ts +29 -0
  95. package/esm/utilities/0_part_stream.js +65 -0
  96. package/esm/utilities/0_units.d.ts +25 -0
  97. package/esm/utilities/0_units.js +25 -0
  98. package/esm/utilities/1_auth.js +5 -5
  99. package/esm/utilities/1_misc.d.ts +1 -0
  100. package/esm/utilities/1_misc.js +17 -2
  101. package/package.json +1 -1
  102. package/script/0_deps.d.ts +6 -5
  103. package/script/0_deps.js +11 -7
  104. package/script/1_utilities.d.ts +2 -0
  105. package/script/1_utilities.js +2 -0
  106. package/script/3_types.d.ts +6 -1
  107. package/script/3_types.js +6 -1
  108. package/script/client/0_markdown.d.ts +19 -0
  109. package/script/client/0_markdown.js +19 -1
  110. package/script/client/0_message.js +9 -9
  111. package/script/client/0_params.d.ts +12 -1
  112. package/script/client/0_password.js +13 -5
  113. package/script/client/0_types.d.ts +18 -7
  114. package/script/client/0_utilities.d.ts +19 -2
  115. package/script/client/0_utilities.js +3 -70
  116. package/script/client/1_client_plain.js +4 -4
  117. package/script/client/1_file_manager.d.ts +3 -21
  118. package/script/client/1_file_manager.js +266 -103
  119. package/script/client/2_message_manager.d.ts +4 -1
  120. package/script/client/2_message_manager.js +164 -21
  121. package/script/client/3_callback_query_manager.d.ts +2 -1
  122. package/script/client/3_callback_query_manager.js +30 -2
  123. package/script/client/3_inline_query_manager.d.ts +3 -2
  124. package/script/client/3_inline_query_manager.js +18 -2
  125. package/script/client/3_story_manager.js +3 -5
  126. package/script/client/4_client.d.ts +41 -4
  127. package/script/client/4_client.js +119 -48
  128. package/script/connection/1_connection_web_socket.js +1 -1
  129. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert.js +1 -0
  130. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_almost_equals.js +1 -0
  131. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_array_includes.js +1 -0
  132. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_equals.js +1 -0
  133. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_exists.js +1 -0
  134. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_false.js +1 -0
  135. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater.js +1 -0
  136. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater_or_equal.js +1 -0
  137. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_instance_of.js +1 -0
  138. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_is_error.js +1 -0
  139. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less.js +1 -0
  140. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less_or_equal.js +1 -0
  141. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_match.js +1 -0
  142. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_equals.js +1 -0
  143. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_instance_of.js +1 -0
  144. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_match.js +1 -0
  145. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_strict_equals.js +1 -0
  146. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_object_match.js +1 -0
  147. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_rejects.js +1 -0
  148. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_strict_equals.js +1 -0
  149. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_string_includes.js +1 -0
  150. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_throws.js +1 -0
  151. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assertion_error.js +1 -0
  152. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/equal.js +1 -0
  153. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/fail.js +1 -0
  154. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/mod.js +1 -0
  155. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unimplemented.js +1 -0
  156. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unreachable.js +1 -0
  157. package/script/deps/deno.land/std@0.223.0/bytes/concat.d.ts +13 -0
  158. package/script/deps/deno.land/std@0.223.0/bytes/concat.js +31 -0
  159. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/base64.d.ts +8 -2
  160. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/base64.js +19 -2
  161. package/{esm/deps/deno.land/std@0.221.0 → script/deps/deno.land/std@0.223.0}/media_types/_util.d.ts +1 -0
  162. package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_util.js +2 -1
  163. package/{esm/deps/deno.land/x/tgcrypto@0.4.0 → script/deps/deno.land/x/tgcrypto@0.4.1}/mod.d.ts +14 -2
  164. package/script/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/mod.js +61 -43
  165. package/script/storage/0_storage.d.ts +10 -0
  166. package/script/storage/0_storage.js +42 -0
  167. package/script/tl/0_tl_raw_writer.js +2 -1
  168. package/script/transport/0_obfuscation.js +3 -2
  169. package/script/transport/0_transport.d.ts +1 -1
  170. package/script/transport/0_transport.js +7 -0
  171. package/script/transport/1_transport_abridged.js +3 -1
  172. package/script/transport/1_transport_intermediate.js +3 -1
  173. package/script/types/0_callback_query_answer.d.ts +30 -0
  174. package/script/types/0_callback_query_answer.js +30 -0
  175. package/script/types/0_callback_query_question.d.ts +49 -0
  176. package/script/types/0_callback_query_question.js +35 -0
  177. package/script/types/0_file_source.d.ts +2 -2
  178. package/script/types/0_self_destruct_option.d.ts +25 -0
  179. package/script/types/0_self_destruct_option.js +43 -0
  180. package/script/types/1_input_media.d.ts +108 -0
  181. package/script/types/{1_input_message_content.d.ts → 1_message_content.d.ts} +6 -6
  182. package/script/types/1_message_content.js +21 -0
  183. package/script/types/1_photo.d.ts +4 -0
  184. package/script/types/1_photo.js +14 -27
  185. package/script/types/4_inline_query_result.d.ts +52 -49
  186. package/script/types/4_inline_query_result.js +224 -42
  187. package/script/types/5_inline_query_answer.d.ts +31 -0
  188. package/script/types/5_inline_query_answer.js +32 -0
  189. package/script/types/_file_id.d.ts +5 -0
  190. package/script/types/_file_id.js +33 -1
  191. package/script/utilities/0_buffer.d.ts +0 -1
  192. package/script/utilities/0_buffer.js +1 -15
  193. package/script/utilities/0_crypto.d.ts +3 -3
  194. package/script/utilities/0_crypto.js +22 -19
  195. package/script/utilities/0_part_stream.d.ts +29 -0
  196. package/script/utilities/0_part_stream.js +69 -0
  197. package/script/utilities/0_units.d.ts +25 -0
  198. package/script/utilities/0_units.js +28 -0
  199. package/script/utilities/1_auth.js +3 -3
  200. package/script/utilities/1_misc.d.ts +1 -0
  201. package/script/utilities/1_misc.js +19 -3
  202. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_constants.d.ts +0 -0
  203. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_constants.js +0 -0
  204. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_diff.d.ts +0 -0
  205. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_diff.js +0 -0
  206. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_format.d.ts +0 -0
  207. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_format.js +0 -0
  208. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert.d.ts +0 -0
  209. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_almost_equals.d.ts +0 -0
  210. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_array_includes.d.ts +0 -0
  211. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_equals.d.ts +0 -0
  212. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_exists.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_false.d.ts +0 -0
  214. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater_or_equal.d.ts +0 -0
  216. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_instance_of.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_is_error.d.ts +0 -0
  218. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less_or_equal.d.ts +0 -0
  220. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_match.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_equals.d.ts +0 -0
  222. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_instance_of.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_match.d.ts +0 -0
  224. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_strict_equals.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_object_match.d.ts +0 -0
  226. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_rejects.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_strict_equals.d.ts +0 -0
  228. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_string_includes.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_throws.d.ts +0 -0
  230. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assertion_error.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/equal.d.ts +0 -0
  232. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/fail.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/mod.d.ts +0 -0
  234. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unimplemented.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unreachable.d.ts +0 -0
  236. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/_util.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/_util.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/fmt/colors.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/fmt/colors.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_db.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_db.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/content_type.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/content_type.js +0 -0
  244. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extension.d.ts +0 -0
  245. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extension.js +0 -0
  246. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extensions_by_type.d.ts +0 -0
  247. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extensions_by_type.js +0 -0
  248. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/format_media_type.d.ts +0 -0
  249. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/format_media_type.js +0 -0
  250. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/get_charset.d.ts +0 -0
  251. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/get_charset.js +0 -0
  252. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/parse_media_type.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/parse_media_type.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/type_by_extension.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/type_by_extension.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/assert_path.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/assert_path.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/basename.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/basename.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/common.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/common.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/constants.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/constants.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/dirname.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/dirname.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/format.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/format.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/from_file_url.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/from_file_url.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/glob_to_reg_exp.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize.d.ts +0 -0
  275. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize.js +0 -0
  276. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize_string.d.ts +0 -0
  277. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize_string.js +0 -0
  278. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/relative.d.ts +0 -0
  279. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/relative.js +0 -0
  280. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  281. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/strip_trailing_separators.js +0 -0
  282. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/to_file_url.d.ts +0 -0
  283. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/to_file_url.js +0 -0
  284. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_interface.d.ts +0 -0
  285. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_interface.js +0 -0
  286. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_os.d.ts +0 -0
  287. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_os.js +0 -0
  288. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/basename.d.ts +0 -0
  289. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/basename.js +0 -0
  290. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/common.d.ts +0 -0
  291. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/common.js +0 -0
  292. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/constants.d.ts +0 -0
  293. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/constants.js +0 -0
  294. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/dirname.d.ts +0 -0
  295. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/dirname.js +0 -0
  296. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/extname.d.ts +0 -0
  297. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/extname.js +0 -0
  298. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/format.d.ts +0 -0
  299. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/format.js +0 -0
  300. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/from_file_url.d.ts +0 -0
  301. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/from_file_url.js +0 -0
  302. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/glob_to_regexp.d.ts +0 -0
  303. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/glob_to_regexp.js +0 -0
  304. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_absolute.d.ts +0 -0
  305. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_absolute.js +0 -0
  306. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_glob.d.ts +0 -0
  307. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_glob.js +0 -0
  308. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join.d.ts +0 -0
  309. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join.js +0 -0
  310. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join_globs.d.ts +0 -0
  311. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join_globs.js +0 -0
  312. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/mod.d.ts +0 -0
  313. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/mod.js +0 -0
  314. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize.d.ts +0 -0
  315. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize.js +0 -0
  316. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize_glob.d.ts +0 -0
  317. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize_glob.js +0 -0
  318. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/parse.d.ts +0 -0
  319. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/parse.js +0 -0
  320. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/_util.d.ts +0 -0
  321. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/_util.js +0 -0
  322. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/basename.d.ts +0 -0
  323. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/basename.js +0 -0
  324. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/common.d.ts +0 -0
  325. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/common.js +0 -0
  326. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/constants.d.ts +0 -0
  327. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/constants.js +0 -0
  328. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/dirname.d.ts +0 -0
  329. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/dirname.js +0 -0
  330. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/extname.d.ts +0 -0
  331. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/extname.js +0 -0
  332. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/format.d.ts +0 -0
  333. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/format.js +0 -0
  334. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/from_file_url.d.ts +0 -0
  335. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/from_file_url.js +0 -0
  336. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/glob_to_regexp.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/glob_to_regexp.js +0 -0
  338. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_absolute.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_absolute.js +0 -0
  340. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_glob.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_glob.js +0 -0
  342. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join.js +0 -0
  344. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join_globs.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join_globs.js +0 -0
  346. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/mod.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/mod.js +0 -0
  348. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize.js +0 -0
  350. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize_glob.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize_glob.js +0 -0
  352. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/parse.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/parse.js +0 -0
  354. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/relative.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/relative.js +0 -0
  356. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/resolve.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/resolve.js +0 -0
  358. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_file_url.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_file_url.js +0 -0
  360. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_namespaced_path.d.ts +0 -0
  361. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_namespaced_path.js +0 -0
  362. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/relative.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/relative.js +0 -0
  364. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/resolve.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/resolve.js +0 -0
  366. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_file_url.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_file_url.js +0 -0
  368. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_namespaced_path.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_namespaced_path.js +0 -0
  370. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/_util.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/_util.js +0 -0
  372. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/basename.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/basename.js +0 -0
  374. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/common.d.ts +0 -0
  375. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/common.js +0 -0
  376. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/constants.d.ts +0 -0
  377. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/constants.js +0 -0
  378. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/dirname.d.ts +0 -0
  379. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/dirname.js +0 -0
  380. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/extname.d.ts +0 -0
  381. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/extname.js +0 -0
  382. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/format.d.ts +0 -0
  383. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/format.js +0 -0
  384. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/from_file_url.d.ts +0 -0
  385. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/from_file_url.js +0 -0
  386. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/glob_to_regexp.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/glob_to_regexp.js +0 -0
  388. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_absolute.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_absolute.js +0 -0
  390. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_glob.d.ts +0 -0
  391. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_glob.js +0 -0
  392. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join.d.ts +0 -0
  393. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join.js +0 -0
  394. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join_globs.d.ts +0 -0
  395. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join_globs.js +0 -0
  396. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/mod.d.ts +0 -0
  397. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/mod.js +0 -0
  398. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize.d.ts +0 -0
  399. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize.js +0 -0
  400. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize_glob.d.ts +0 -0
  401. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize_glob.js +0 -0
  402. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/parse.d.ts +0 -0
  403. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/parse.js +0 -0
  404. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/relative.d.ts +0 -0
  405. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/relative.js +0 -0
  406. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/resolve.d.ts +0 -0
  407. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/resolve.js +0 -0
  408. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_file_url.d.ts +0 -0
  409. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_file_url.js +0 -0
  410. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_namespaced_path.d.ts +0 -0
  411. /package/esm/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_namespaced_path.js +0 -0
  412. /package/esm/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.d.ts +0 -0
  413. /package/esm/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.js +0 -0
  414. /package/esm/types/{1_input_message_content.js → 1_input_media.js} +0 -0
  415. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_constants.d.ts +0 -0
  416. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_constants.js +0 -0
  417. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_diff.d.ts +0 -0
  418. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_diff.js +0 -0
  419. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_format.d.ts +0 -0
  420. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/_format.js +0 -0
  421. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert.d.ts +0 -0
  422. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_almost_equals.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_array_includes.d.ts +0 -0
  424. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_equals.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_exists.d.ts +0 -0
  426. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_false.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater.d.ts +0 -0
  428. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_greater_or_equal.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_instance_of.d.ts +0 -0
  430. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_is_error.d.ts +0 -0
  431. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less.d.ts +0 -0
  432. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_less_or_equal.d.ts +0 -0
  433. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_match.d.ts +0 -0
  434. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_equals.d.ts +0 -0
  435. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_instance_of.d.ts +0 -0
  436. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_match.d.ts +0 -0
  437. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_not_strict_equals.d.ts +0 -0
  438. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_object_match.d.ts +0 -0
  439. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_rejects.d.ts +0 -0
  440. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_strict_equals.d.ts +0 -0
  441. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_string_includes.d.ts +0 -0
  442. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assert_throws.d.ts +0 -0
  443. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/assertion_error.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/equal.d.ts +0 -0
  445. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/fail.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/mod.d.ts +0 -0
  447. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unimplemented.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/assert/unreachable.d.ts +0 -0
  449. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/_util.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/encoding/_util.js +0 -0
  451. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/fmt/colors.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/fmt/colors.js +0 -0
  453. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_db.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/_db.js +0 -0
  455. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/content_type.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/content_type.js +0 -0
  457. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extension.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extension.js +0 -0
  459. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extensions_by_type.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/extensions_by_type.js +0 -0
  461. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/format_media_type.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/format_media_type.js +0 -0
  463. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/get_charset.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/get_charset.js +0 -0
  465. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/parse_media_type.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/parse_media_type.js +0 -0
  467. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/type_by_extension.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/type_by_extension.js +0 -0
  469. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  471. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/assert_path.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/assert_path.js +0 -0
  473. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/basename.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/basename.js +0 -0
  475. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/common.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/common.js +0 -0
  477. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/constants.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/constants.js +0 -0
  479. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/dirname.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/dirname.js +0 -0
  481. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/format.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/format.js +0 -0
  483. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/from_file_url.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/from_file_url.js +0 -0
  485. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/glob_to_reg_exp.js +0 -0
  487. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize.js +0 -0
  489. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize_string.d.ts +0 -0
  490. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/normalize_string.js +0 -0
  491. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/relative.d.ts +0 -0
  492. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/relative.js +0 -0
  493. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  494. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/strip_trailing_separators.js +0 -0
  495. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/to_file_url.d.ts +0 -0
  496. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_common/to_file_url.js +0 -0
  497. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_interface.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_interface.js +0 -0
  499. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_os.d.ts +0 -0
  500. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/_os.js +0 -0
  501. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/basename.d.ts +0 -0
  502. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/basename.js +0 -0
  503. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/common.d.ts +0 -0
  504. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/common.js +0 -0
  505. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/constants.d.ts +0 -0
  506. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/constants.js +0 -0
  507. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/dirname.d.ts +0 -0
  508. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/dirname.js +0 -0
  509. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/extname.d.ts +0 -0
  510. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/extname.js +0 -0
  511. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/format.d.ts +0 -0
  512. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/format.js +0 -0
  513. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/from_file_url.d.ts +0 -0
  514. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/from_file_url.js +0 -0
  515. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/glob_to_regexp.d.ts +0 -0
  516. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/glob_to_regexp.js +0 -0
  517. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_absolute.d.ts +0 -0
  518. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_absolute.js +0 -0
  519. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_glob.d.ts +0 -0
  520. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/is_glob.js +0 -0
  521. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join.d.ts +0 -0
  522. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join.js +0 -0
  523. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join_globs.d.ts +0 -0
  524. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/join_globs.js +0 -0
  525. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/mod.d.ts +0 -0
  526. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/mod.js +0 -0
  527. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize.d.ts +0 -0
  528. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize.js +0 -0
  529. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize_glob.d.ts +0 -0
  530. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/normalize_glob.js +0 -0
  531. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/parse.d.ts +0 -0
  532. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/parse.js +0 -0
  533. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/_util.d.ts +0 -0
  534. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/_util.js +0 -0
  535. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/basename.d.ts +0 -0
  536. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/basename.js +0 -0
  537. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/common.d.ts +0 -0
  538. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/common.js +0 -0
  539. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/constants.d.ts +0 -0
  540. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/constants.js +0 -0
  541. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/dirname.d.ts +0 -0
  542. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/dirname.js +0 -0
  543. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/extname.d.ts +0 -0
  544. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/extname.js +0 -0
  545. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/format.d.ts +0 -0
  546. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/format.js +0 -0
  547. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/from_file_url.d.ts +0 -0
  548. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/from_file_url.js +0 -0
  549. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/glob_to_regexp.d.ts +0 -0
  550. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/glob_to_regexp.js +0 -0
  551. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_absolute.d.ts +0 -0
  552. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_absolute.js +0 -0
  553. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_glob.d.ts +0 -0
  554. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/is_glob.js +0 -0
  555. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join.d.ts +0 -0
  556. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join.js +0 -0
  557. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join_globs.d.ts +0 -0
  558. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/join_globs.js +0 -0
  559. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/mod.d.ts +0 -0
  560. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/mod.js +0 -0
  561. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize.d.ts +0 -0
  562. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize.js +0 -0
  563. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize_glob.d.ts +0 -0
  564. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/normalize_glob.js +0 -0
  565. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/parse.d.ts +0 -0
  566. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/parse.js +0 -0
  567. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/relative.d.ts +0 -0
  568. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/relative.js +0 -0
  569. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/resolve.d.ts +0 -0
  570. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/resolve.js +0 -0
  571. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_file_url.d.ts +0 -0
  572. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_file_url.js +0 -0
  573. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_namespaced_path.d.ts +0 -0
  574. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/posix/to_namespaced_path.js +0 -0
  575. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/relative.d.ts +0 -0
  576. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/relative.js +0 -0
  577. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/resolve.d.ts +0 -0
  578. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/resolve.js +0 -0
  579. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_file_url.d.ts +0 -0
  580. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_file_url.js +0 -0
  581. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_namespaced_path.d.ts +0 -0
  582. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/to_namespaced_path.js +0 -0
  583. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/_util.d.ts +0 -0
  584. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/_util.js +0 -0
  585. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/basename.d.ts +0 -0
  586. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/basename.js +0 -0
  587. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/common.d.ts +0 -0
  588. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/common.js +0 -0
  589. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/constants.d.ts +0 -0
  590. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/constants.js +0 -0
  591. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/dirname.d.ts +0 -0
  592. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/dirname.js +0 -0
  593. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/extname.d.ts +0 -0
  594. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/extname.js +0 -0
  595. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/format.d.ts +0 -0
  596. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/format.js +0 -0
  597. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/from_file_url.d.ts +0 -0
  598. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/from_file_url.js +0 -0
  599. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/glob_to_regexp.d.ts +0 -0
  600. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/glob_to_regexp.js +0 -0
  601. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_absolute.d.ts +0 -0
  602. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_absolute.js +0 -0
  603. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_glob.d.ts +0 -0
  604. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/is_glob.js +0 -0
  605. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join.d.ts +0 -0
  606. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join.js +0 -0
  607. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join_globs.d.ts +0 -0
  608. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/join_globs.js +0 -0
  609. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/mod.d.ts +0 -0
  610. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/mod.js +0 -0
  611. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize.d.ts +0 -0
  612. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize.js +0 -0
  613. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize_glob.d.ts +0 -0
  614. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/normalize_glob.js +0 -0
  615. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/parse.d.ts +0 -0
  616. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/parse.js +0 -0
  617. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/relative.d.ts +0 -0
  618. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/relative.js +0 -0
  619. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/resolve.d.ts +0 -0
  620. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/resolve.js +0 -0
  621. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_file_url.d.ts +0 -0
  622. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_file_url.js +0 -0
  623. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_namespaced_path.d.ts +0 -0
  624. /package/script/deps/deno.land/{std@0.221.0 → std@0.223.0}/path/windows/to_namespaced_path.js +0 -0
  625. /package/script/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.d.ts +0 -0
  626. /package/script/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.js +0 -0
  627. /package/script/types/{1_input_message_content.js → 1_input_media.js} +0 -0
package/esm/0_deps.d.ts CHANGED
@@ -17,12 +17,13 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- export * from "./deps/deno.land/std@0.221.0/assert/mod.js";
21
- export * as path from "./deps/deno.land/std@0.221.0/path/mod.js";
22
- export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.221.0/encoding/base64.js";
23
- import { contentType as contentType_ } from "./deps/deno.land/std@0.221.0/media_types/content_type.js";
20
+ export * from "./deps/deno.land/std@0.223.0/assert/mod.js";
21
+ export * as path from "./deps/deno.land/std@0.223.0/path/mod.js";
22
+ export { concat } from "./deps/deno.land/std@0.223.0/bytes/concat.js";
23
+ export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.223.0/encoding/base64.js";
24
+ import { contentType as contentType_ } from "./deps/deno.land/std@0.223.0/media_types/content_type.js";
24
25
  export declare const contentType: typeof contentType_;
25
26
  export declare function extension(mimeType: string): string;
26
- export { ctr256, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.4.0/mod.js";
27
+ export { createCtr256State, ctr256, type Ctr256State, destroyCtr256State, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.4.1/mod.js";
27
28
  export { gunzip, gzip } from "./deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js";
28
29
  export { Parser } from "./deps/deno.land/x/html_parser@v0.1.3/src/mod.js";
package/esm/0_deps.js CHANGED
@@ -18,10 +18,11 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  // connection/1_connection_tcp.ts must be updated too when updating std.
21
- export * from "./deps/deno.land/std@0.221.0/assert/mod.js";
22
- export * as path from "./deps/deno.land/std@0.221.0/path/mod.js";
23
- export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.221.0/encoding/base64.js";
24
- import { contentType as contentType_ } from "./deps/deno.land/std@0.221.0/media_types/content_type.js";
21
+ export * from "./deps/deno.land/std@0.223.0/assert/mod.js";
22
+ export * as path from "./deps/deno.land/std@0.223.0/path/mod.js";
23
+ export { concat } from "./deps/deno.land/std@0.223.0/bytes/concat.js";
24
+ export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.223.0/encoding/base64.js";
25
+ import { contentType as contentType_ } from "./deps/deno.land/std@0.223.0/media_types/content_type.js";
25
26
  export const contentType = (extentionOrType) => {
26
27
  if (extentionOrType == "tgs") {
27
28
  return "application/x-tgsticker";
@@ -30,7 +31,7 @@ export const contentType = (extentionOrType) => {
30
31
  return contentType_(extentionOrType);
31
32
  }
32
33
  };
33
- import { extension as extension_ } from "./deps/deno.land/std@0.221.0/media_types/extension.js";
34
+ import { extension as extension_ } from "./deps/deno.land/std@0.223.0/media_types/extension.js";
34
35
  export function extension(mimeType) {
35
36
  if (mimeType == "application/x-tgsticker") {
36
37
  return "tgs";
@@ -39,6 +40,6 @@ export function extension(mimeType) {
39
40
  return extension_(mimeType) || "unknown";
40
41
  }
41
42
  }
42
- export { ctr256, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.4.0/mod.js";
43
+ export { createCtr256State, ctr256, destroyCtr256State, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.4.1/mod.js";
43
44
  export { gunzip, gzip } from "./deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js";
44
45
  export { Parser } from "./deps/deno.land/x/html_parser@v0.1.3/src/mod.js";
@@ -26,8 +26,10 @@ export * from "./utilities/0_hash.js";
26
26
  export * from "./utilities/0_logger.js";
27
27
  export * from "./utilities/0_mutex.js";
28
28
  export * from "./utilities/0_object.js";
29
+ export * from "./utilities/0_part_stream.js";
29
30
  export * from "./utilities/0_rle.js";
30
31
  export * from "./utilities/0_types.js";
32
+ export * from "./utilities/0_units.js";
31
33
  export * from "./utilities/1_auth.js";
32
34
  export * from "./utilities/1_base64.js";
33
35
  export * from "./utilities/1_math.js";
@@ -26,8 +26,10 @@ export * from "./utilities/0_hash.js";
26
26
  export * from "./utilities/0_logger.js";
27
27
  export * from "./utilities/0_mutex.js";
28
28
  export * from "./utilities/0_object.js";
29
+ export * from "./utilities/0_part_stream.js";
29
30
  export * from "./utilities/0_rle.js";
30
31
  export * from "./utilities/0_types.js";
32
+ export * from "./utilities/0_units.js";
31
33
  export * from "./utilities/1_auth.js";
32
34
  export * from "./utilities/1_base64.js";
33
35
  export * from "./utilities/1_math.js";
package/esm/3_types.d.ts CHANGED
@@ -21,6 +21,8 @@ export * from "./types/_file_id.js";
21
21
  export * from "./types/_getters.js";
22
22
  export * from "./types/0_authorization_state.js";
23
23
  export * from "./types/0_bot_command.js";
24
+ export * from "./types/0_callback_query_answer.js";
25
+ export * from "./types/0_callback_query_question.js";
24
26
  export * from "./types/0_chat_action.js";
25
27
  export * from "./types/0_chat_administrator_rights.js";
26
28
  export * from "./types/0_chat_member_rights.js";
@@ -46,6 +48,7 @@ export * from "./types/0_poll_option.js";
46
48
  export * from "./types/0_price_tag.js";
47
49
  export * from "./types/0_reaction.js";
48
50
  export * from "./types/0_restriction_reason.js";
51
+ export * from "./types/0_self_destruct_option.js";
49
52
  export * from "./types/0_story_reference.js";
50
53
  export * from "./types/0_thumbnail.js";
51
54
  export * from "./types/0_voice.js";
@@ -56,9 +59,10 @@ export * from "./types/1_chat_p.js";
56
59
  export * from "./types/1_document.js";
57
60
  export * from "./types/1_giveaway.js";
58
61
  export * from "./types/1_inline_query_result_button.js";
59
- export * from "./types/1_input_message_content.js";
62
+ export * from "./types/1_input_media.js";
60
63
  export * from "./types/1_input_story_content.js";
61
64
  export * from "./types/1_keyboard_button.js";
65
+ export * from "./types/1_message_content.js";
62
66
  export * from "./types/1_message_reaction.js";
63
67
  export * from "./types/1_network_statistics.js";
64
68
  export * from "./types/1_photo.js";
@@ -93,4 +97,5 @@ export * from "./types/4_inline_query_result.js";
93
97
  export * from "./types/4_message.js";
94
98
  export * from "./types/5_callback_query.js";
95
99
  export * from "./types/5_chat.js";
100
+ export * from "./types/5_inline_query_answer.js";
96
101
  export * from "./types/6_update.js";
package/esm/3_types.js CHANGED
@@ -21,6 +21,8 @@ export * from "./types/_file_id.js";
21
21
  export * from "./types/_getters.js";
22
22
  export * from "./types/0_authorization_state.js";
23
23
  export * from "./types/0_bot_command.js";
24
+ export * from "./types/0_callback_query_answer.js";
25
+ export * from "./types/0_callback_query_question.js";
24
26
  export * from "./types/0_chat_action.js";
25
27
  export * from "./types/0_chat_administrator_rights.js";
26
28
  export * from "./types/0_chat_member_rights.js";
@@ -46,6 +48,7 @@ export * from "./types/0_poll_option.js";
46
48
  export * from "./types/0_price_tag.js";
47
49
  export * from "./types/0_reaction.js";
48
50
  export * from "./types/0_restriction_reason.js";
51
+ export * from "./types/0_self_destruct_option.js";
49
52
  export * from "./types/0_story_reference.js";
50
53
  export * from "./types/0_thumbnail.js";
51
54
  export * from "./types/0_voice.js";
@@ -56,9 +59,10 @@ export * from "./types/1_chat_p.js";
56
59
  export * from "./types/1_document.js";
57
60
  export * from "./types/1_giveaway.js";
58
61
  export * from "./types/1_inline_query_result_button.js";
59
- export * from "./types/1_input_message_content.js";
62
+ export * from "./types/1_input_media.js";
60
63
  export * from "./types/1_input_story_content.js";
61
64
  export * from "./types/1_keyboard_button.js";
65
+ export * from "./types/1_message_content.js";
62
66
  export * from "./types/1_message_reaction.js";
63
67
  export * from "./types/1_network_statistics.js";
64
68
  export * from "./types/1_photo.js";
@@ -93,4 +97,5 @@ export * from "./types/4_inline_query_result.js";
93
97
  export * from "./types/4_message.js";
94
98
  export * from "./types/5_callback_query.js";
95
99
  export * from "./types/5_chat.js";
100
+ export * from "./types/5_inline_query_answer.js";
96
101
  export * from "./types/6_update.js";
@@ -1,3 +1,22 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
1
20
  import { MessageEntity } from "../3_types.js";
2
21
  export declare const CODEPOINTS: {
3
22
  "\t": number;
@@ -1,6 +1,24 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
1
20
  /**
2
21
  * Copyright (C) 2023 Dunkan
3
- * Copyright (C) 2024 Roj
4
22
  */
5
23
  import { unreachable } from "../0_deps.js";
6
24
  import { sortMessageEntities } from "../3_types.js";
@@ -17,8 +17,8 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- import { assertEquals, ige256Decrypt, ige256Encrypt } from "../0_deps.js";
21
- import { bufferFromBigInt, concat, mod, sha256, toUnixTimestamp } from "../1_utilities.js";
20
+ import { assertEquals, concat, ige256Decrypt, ige256Encrypt } from "../0_deps.js";
21
+ import { bufferFromBigInt, mod, sha256, toUnixTimestamp } from "../1_utilities.js";
22
22
  import { id, Message_, MessageContainer, RPCResult, serialize, TLReader, TLWriter } from "../2_tl.js";
23
23
  export function getMessageId(lastMsgId) {
24
24
  const now = toUnixTimestamp(new Date()) + 0;
@@ -54,11 +54,11 @@ export async function encryptMessage(message, authKey, authKeyId, salt, sessionI
54
54
  payloadWriter.write(message[serialize]());
55
55
  payloadWriter.write(new Uint8Array(mod(-(payloadWriter.buffer.length + 12), 16) + 12));
56
56
  const payload = payloadWriter.buffer;
57
- const messageKey = (await sha256(concat(authKey.subarray(88, 120), payload))).subarray(8, 24);
58
- const a = await sha256(concat(messageKey, authKey.subarray(0, 36)));
59
- const b = await sha256(concat(authKey.subarray(40, 76), messageKey));
60
- const aesKey = concat(a.subarray(0, 8), b.subarray(8, 24), a.subarray(24, 32));
61
- const aesIV = concat(b.subarray(0, 8), a.subarray(8, 24), b.subarray(24, 32));
57
+ const messageKey = (await sha256(concat([authKey.subarray(88, 120), payload]))).subarray(8, 24);
58
+ const a = await sha256(concat([messageKey, authKey.subarray(0, 36)]));
59
+ const b = await sha256(concat([authKey.subarray(40, 76), messageKey]));
60
+ const aesKey = concat([a.subarray(0, 8), b.subarray(8, 24), a.subarray(24, 32)]);
61
+ const aesIV = concat([b.subarray(0, 8), a.subarray(8, 24), b.subarray(24, 32)]);
62
62
  const messageWriter = new TLWriter();
63
63
  messageWriter.writeInt64(authKeyId);
64
64
  messageWriter.write(messageKey);
@@ -70,10 +70,10 @@ export async function decryptMessage(buffer, authKey, authKeyId, _sessionId) {
70
70
  assertEquals(reader.readInt64(false), authKeyId);
71
71
  const messageKey_ = reader.readInt128();
72
72
  const messageKey = bufferFromBigInt(messageKey_, 16, true, true);
73
- const a = await sha256(concat(messageKey, authKey.subarray(8, 44)));
74
- const b = await sha256(concat(authKey.subarray(48, 84), messageKey));
75
- const aesKey = concat(a.subarray(0, 8), b.subarray(8, 24), a.subarray(24, 32));
76
- const aesIv = concat(b.subarray(0, 8), a.subarray(8, 24), b.subarray(24, 32));
73
+ const a = await sha256(concat([messageKey, authKey.subarray(8, 44)]));
74
+ const b = await sha256(concat([authKey.subarray(48, 84), messageKey]));
75
+ const aesKey = concat([a.subarray(0, 8), b.subarray(8, 24), a.subarray(24, 32)]);
76
+ const aesIv = concat([b.subarray(0, 8), a.subarray(8, 24), b.subarray(24, 32)]);
77
77
  const plaintext = ige256Decrypt(reader.buffer, aesKey, aesIv);
78
78
  assertEquals(plaintext.buffer.byteLength % 4, 0);
79
79
  let plainReader = new TLReader(plaintext);
@@ -18,7 +18,7 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import { MaybePromise } from "../1_utilities.js";
21
- import { BotCommandScope, Chat, ChatMemberRights, FileSource, ID, InlineQueryResultButton, LinkPreview, Message, MessageEntity, MessageSearchFilter, ParseMode, ReplyMarkup, ReplyQuote, StoryInteractiveArea, StoryPrivacy } from "../3_types.js";
21
+ import { BotCommandScope, Chat, ChatMemberRights, FileSource, ID, InlineQueryResultButton, LinkPreview, Message, MessageEntity, MessageSearchFilter, ParseMode, ReplyMarkup, ReplyQuote, SelfDestructOption, StoryInteractiveArea, StoryPrivacy } from "../3_types.js";
22
22
  export interface AnswerCallbackQueryParams {
23
23
  /** A text to be shown to the user. */
24
24
  text?: string;
@@ -78,6 +78,10 @@ export interface EditMessageReplyMarkupParams {
78
78
  /** The reply markup of the message. Bot-only. */
79
79
  replyMarkup?: ReplyMarkup;
80
80
  }
81
+ export interface EditMessageMediaParams {
82
+ /** The reply markup of the message. Bot-only. */
83
+ replyMarkup?: ReplyMarkup;
84
+ }
81
85
  export interface ForwardMessagesParams extends Omit<_SendCommon, "replyToMessageId" | "replyMarkup"> {
82
86
  /** Whether to not include the original sender of the message that is going to be forwarded. */
83
87
  dropSenderName?: boolean;
@@ -125,6 +129,7 @@ export interface _UploadCommon {
125
129
  export interface UploadParams {
126
130
  /** The file name to assign. */
127
131
  fileName?: string;
132
+ fileSize?: number;
128
133
  /** Size of each upload chunk in bytes. */
129
134
  chunkSize?: number;
130
135
  /** Upload abort signal. */
@@ -169,6 +174,7 @@ export interface _SpoilCommon {
169
174
  hasSpoiler?: boolean;
170
175
  }
171
176
  export interface SendPhotoParams extends _CaptionCommon, _SpoilCommon, _UploadCommon, _SendCommon {
177
+ selfDestruct?: SelfDestructOption;
172
178
  }
173
179
  export interface SetChatPhotoParams extends _UploadCommon {
174
180
  }
@@ -190,6 +196,7 @@ export interface SendVideoParams extends _CaptionCommon, _ThumbnailCommon, _Spoi
190
196
  height?: number;
191
197
  /** Whether the video is suitable for streaming. */
192
198
  supportsStreaming?: boolean;
199
+ selfDestruct?: SelfDestructOption;
193
200
  }
194
201
  export interface SendAnimationParams extends _CaptionCommon, _ThumbnailCommon, _SpoilCommon, _UploadCommon, _SendCommon {
195
202
  /** The duration of the animation in seconds. */
@@ -348,3 +355,7 @@ export interface EditMessageLiveLocationParams {
348
355
  /** The reply markup of the message. Bot-only. */
349
356
  replyMarkup?: ReplyMarkup;
350
357
  }
358
+ export interface SendInlineQueryParams {
359
+ query?: string;
360
+ offset?: string;
361
+ }
@@ -18,7 +18,8 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import * as dntShim from "../_dnt.shims.js";
21
- import { bigIntFromBuffer, bufferFromBigInt, concat, getRandomBigInt, mod, modExp, sha256 } from "../1_utilities.js";
21
+ import { concat } from "../0_deps.js";
22
+ import { bigIntFromBuffer, bufferFromBigInt, getRandomBigInt, mod, modExp, sha256 } from "../1_utilities.js";
22
23
  import { types } from "../2_tl.js";
23
24
  export function isSafePrime(primeBytes, g) {
24
25
  // deno-fmt-ignore
@@ -56,7 +57,7 @@ export function isSafePrime(primeBytes, g) {
56
57
  // H(data) := sha256(data)
57
58
  export const h = sha256;
58
59
  // SH(data, salt) := H(salt | data | salt)
59
- export const sh = (data, salt) => h(concat(salt, data, salt));
60
+ export const sh = (data, salt) => h(concat([salt, data, salt]));
60
61
  // PH1(password, salt1, salt2) := SH(SH(password, salt1), salt2)
61
62
  export const ph1 = async (password, salt1, salt2) => await sh(await sh(password, salt1), salt2);
62
63
  export async function pbkdf2(password, salt, iterations) {
@@ -83,7 +84,7 @@ export function pad(bigint) {
83
84
  return bufferFromBigInt(bigint, 256, false);
84
85
  }
85
86
  else {
86
- return concat(new Uint8Array(256 - bigint.length), bigint);
87
+ return concat([new Uint8Array(256 - bigint.length), bigint]);
87
88
  }
88
89
  }
89
90
  export async function checkPassword(password_, ap) {
@@ -117,7 +118,7 @@ export async function checkPassword(password_, ap) {
117
118
  // g_b := srp_B
118
119
  const gB = bigIntFromBuffer(srpB, false);
119
120
  // k := H(p | g)
120
- const k = bigIntFromBuffer(await h(concat(pad(p), pad(g))), false);
121
+ const k = bigIntFromBuffer(await h(concat([pad(p), pad(g)])), false);
121
122
  let u = 0n;
122
123
  let a = 0n;
123
124
  let gA = 0n;
@@ -126,7 +127,7 @@ export async function checkPassword(password_, ap) {
126
127
  // g_a := pow(g, a) mod p
127
128
  gA = modExp(BigInt(g), a, p);
128
129
  if (isGoodModExpFirst(gA, p)) {
129
- u = bigIntFromBuffer(await sha256(concat(pad(gA), pad(gB))), false);
130
+ u = bigIntFromBuffer(await sha256(concat([pad(gA), pad(gB)])), false);
130
131
  if (u > 0n) {
131
132
  break;
132
133
  }
@@ -149,7 +150,14 @@ export async function checkPassword(password_, ap) {
149
150
  const kA = await h(pad(sA));
150
151
  // M1 := H(H(p) xor H(g) | H(salt1) | H(salt2) | g_a | g_b | k_a)
151
152
  const hG = await h(pad(g));
152
- const m1 = await h(concat((await h(pad(p))).map((v, i) => v ^ hG[i]), await h(salt1), await h(salt2), pad(gA), pad(gB), kA));
153
+ const m1 = await h(concat([
154
+ (await h(pad(p))).map((v, i) => v ^ hG[i]),
155
+ await h(salt1),
156
+ await h(salt2),
157
+ pad(gA),
158
+ pad(gB),
159
+ kA,
160
+ ]));
153
161
  return new types.InputCheckPasswordSRP({
154
162
  srp_id: srpId,
155
163
  A: pad(gA),
@@ -33,12 +33,22 @@ export type Api = {
33
33
  } ? Promisify<Functions[K][K_]["__F"]> : Functions[K][K_];
34
34
  };
35
35
  };
36
- interface ApiFactory {
37
- (dcId?: number): {
38
- api: Api;
39
- connect: () => Promise<void>;
40
- disconnect: () => Promise<void>;
41
- };
36
+ interface Connection {
37
+ api: Api;
38
+ connect: () => Promise<void>;
39
+ disconnect: () => Promise<void>;
40
+ }
41
+ export interface ConnectionPool extends Omit<Connection, "api"> {
42
+ size: number;
43
+ api: () => Api;
44
+ connect: () => Promise<void>;
45
+ disconnect: () => Promise<void>;
46
+ }
47
+ interface GetCdnConnection {
48
+ (dcId?: number): Connection;
49
+ }
50
+ interface GetCdnConnectionPool {
51
+ (size: number, dcId?: number): ConnectionPool;
42
52
  }
43
53
  export interface C {
44
54
  id: number;
@@ -55,7 +65,8 @@ export interface C {
55
65
  getEntity: EntityGetter;
56
66
  handleUpdate: (update: Update) => void;
57
67
  parseMode: ParseMode;
58
- apiFactory: ApiFactory;
68
+ getCdnConnection: GetCdnConnection;
69
+ getCdnConnectionPool: GetCdnConnectionPool;
59
70
  ignoreOutgoing: boolean | null;
60
71
  cdn: boolean;
61
72
  dropPendingUpdates?: boolean;
@@ -1,6 +1,23 @@
1
- import { FileSource } from "../3_types.js";
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
2
20
  export declare const resolve: () => Promise<void>;
3
- export declare function getFileContents(source: FileSource, fileName?: string): Promise<readonly [Uint8Array, string]>;
4
21
  export declare function isHttpUrl(string: string): boolean;
5
22
  export declare function getUsername(string: string): string;
6
23
  export declare function getChatListId(chatList: string): 0 | 1;
@@ -17,53 +17,10 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- import * as dntShim from "../_dnt.shims.js";
21
- import { path, unreachable } from "../0_deps.js";
20
+ import { unreachable } from "../0_deps.js";
22
21
  import { InputError } from "../0_errors.js";
23
22
  import { functions } from "../2_tl.js";
24
23
  export const resolve = () => Promise.resolve();
25
- export async function getFileContents(source, fileName = "") {
26
- fileName = fileName.trim() || "file";
27
- let contents;
28
- if (source instanceof Uint8Array) {
29
- contents = source;
30
- }
31
- else {
32
- let url;
33
- try {
34
- url = new URL(source).toString();
35
- }
36
- catch {
37
- if (typeof source === "string") {
38
- let path_;
39
- if (path.isAbsolute(source)) {
40
- path_ = source;
41
- }
42
- else {
43
- // @ts-ignore: lib
44
- path_ = path.join(dntShim.Deno.cwd(), source);
45
- }
46
- url = path.toFileUrl(path_).toString();
47
- fileName = path.basename(path_);
48
- }
49
- else {
50
- unreachable();
51
- }
52
- }
53
- const res = await fetch(url);
54
- if (fileName == "file") {
55
- const contentType = res.headers.get("content-type");
56
- if (contentType?.includes("image/png")) {
57
- fileName += ".png";
58
- }
59
- else if (contentType?.includes("image/jpeg")) {
60
- fileName += ".jpg";
61
- }
62
- }
63
- contents = await res.arrayBuffer().then((v) => new Uint8Array(v));
64
- }
65
- return [contents, fileName];
66
- }
67
24
  export function isHttpUrl(string) {
68
25
  try {
69
26
  return new URL(string).protocol.startsWith("http");
@@ -146,7 +103,7 @@ export function getChatListId(chatList) {
146
103
  }
147
104
  }
148
105
  export function checkMessageId(messageId) {
149
- if (typeof messageId !== "number" || isNaN(messageId) || !messageId) {
106
+ if (typeof messageId !== "number" || isNaN(messageId) || messageId <= 0) {
150
107
  throw new InputError("Invalid message ID");
151
108
  }
152
109
  return messageId;
@@ -29,9 +29,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
29
29
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
30
30
  };
31
31
  var _ClientPlain_publicKeys, _ClientPlain_lastMsgId;
32
- import { assertEquals, assertInstanceOf, ige256Decrypt, ige256Encrypt, unreachable } from "../0_deps.js";
32
+ import { assertEquals, assertInstanceOf, concat, ige256Decrypt, ige256Encrypt, unreachable } from "../0_deps.js";
33
33
  import { ConnectionError, TransportError } from "../0_errors.js";
34
- import { bigIntFromBuffer, bufferFromBigInt, concat, factorize, getLogger, getRandomBigInt, modExp, rsaPad, sha1 } from "../1_utilities.js";
34
+ import { bigIntFromBuffer, bufferFromBigInt, factorize, getLogger, getRandomBigInt, modExp, rsaPad, sha1 } from "../1_utilities.js";
35
35
  import { functions, serialize, TLReader, types } from "../2_tl.js";
36
36
  import { PUBLIC_KEYS } from "../4_constants.js";
37
37
  import { ClientAbstract } from "./0_client_abstract.js";
@@ -134,8 +134,8 @@ export class ClientPlain extends ClientAbstract {
134
134
  LcreateAuthKey.debug("got server_DH_params_ok");
135
135
  const newNonce_ = bufferFromBigInt(newNonce, 32, true, true);
136
136
  const serverNonce_ = bufferFromBigInt(serverNonce, 16, true, true);
137
- const tmpAesKey = concat(await sha1(concat(newNonce_, serverNonce_)), (await sha1(concat(serverNonce_, newNonce_))).subarray(0, 0 + 12));
138
- const tmpAesIv = concat((await sha1(concat(serverNonce_, newNonce_))).subarray(12, 12 + 8), await sha1(concat(newNonce_, newNonce_)), newNonce_.subarray(0, 0 + 4));
137
+ const tmpAesKey = concat([await sha1(concat([newNonce_, serverNonce_])), (await sha1(concat([serverNonce_, newNonce_]))).subarray(0, 0 + 12)]);
138
+ const tmpAesIv = concat([(await sha1(concat([serverNonce_, newNonce_]))).subarray(12, 12 + 8), await sha1(concat([newNonce_, newNonce_])), newNonce_.subarray(0, 0 + 4)]);
139
139
  const answerWithHash = ige256Decrypt(dhParams.encrypted_answer, tmpAesKey, tmpAesIv);
140
140
  const dhInnerData = new TLReader(answerWithHash.slice(20)).readObject();
141
141
  assertInstanceOf(dhInnerData, types.Server_DH_inner_data);
@@ -150,9 +150,9 @@ export class ClientPlain extends ClientAbstract {
150
150
  retry_id: 0n,
151
151
  g_b: bufferFromBigInt(gB, 256, false, false),
152
152
  })[serialize]();
153
- let dataWithHash = concat(await sha1(data), data);
153
+ let dataWithHash = concat([await sha1(data), data]);
154
154
  while (dataWithHash.length % 16 != 0) {
155
- dataWithHash = concat(dataWithHash, new Uint8Array(1));
155
+ dataWithHash = concat([dataWithHash, new Uint8Array(1)]);
156
156
  }
157
157
  encryptedData = ige256Encrypt(dataWithHash, tmpAesKey, tmpAesIv);
158
158
  const dhGenOk = await this.invoke(new functions.set_client_DH_params({ nonce, server_nonce: serverNonce, encrypted_data: encryptedData }));
@@ -1,30 +1,12 @@
1
- /**
2
- * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
- * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
- *
5
- * This file is part of MTKruto.
6
- *
7
- * This program is free software: you can redistribute it and/or modify
8
- * it under the terms of the GNU Lesser General Public License as published by
9
- * the Free Software Foundation, either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
- */
20
1
  import { types } from "../2_tl.js";
21
- import { Sticker } from "../3_types.js";
2
+ import { FileSource, Sticker } from "../3_types.js";
22
3
  import { DownloadParams, UploadParams } from "./0_params.js";
23
4
  import { C } from "./0_types.js";
24
5
  export declare class FileManager {
25
6
  #private;
26
7
  constructor(c: C);
27
- upload(contents: Uint8Array, params?: UploadParams): Promise<import("../tl/2_types.js").InputFile_ | import("../tl/2_types.js").InputFileBig_>;
8
+ upload(file: FileSource, params?: UploadParams, checkName?: null | ((name: string) => string), allowStream?: boolean): Promise<import("../tl/2_types.js").InputFile_ | import("../tl/2_types.js").InputFileBig_>;
9
+ static validateChunkSize(chunkSize: number, max: number): void;
28
10
  download(fileId: string, params?: DownloadParams): AsyncGenerator<Uint8Array, void, unknown>;
29
11
  getStickerSetName(inputStickerSet: types.InputStickerSetID, hash?: number): Promise<string>;
30
12
  getCustomEmojiStickers(id: string | string[]): Promise<Sticker[]>;