@mtkruto/node 0.1.302 → 0.1.400

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 (583) 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 +2 -0
  6. package/esm/3_types.js +2 -0
  7. package/esm/client/0_message.js +11 -11
  8. package/esm/client/0_params.d.ts +8 -1
  9. package/esm/client/0_password.js +14 -6
  10. package/esm/client/0_types.d.ts +18 -7
  11. package/esm/client/0_utilities.d.ts +19 -2
  12. package/esm/client/0_utilities.js +1 -44
  13. package/esm/client/1_client_plain.js +6 -6
  14. package/esm/client/1_file_manager.d.ts +3 -21
  15. package/esm/client/1_file_manager.js +244 -104
  16. package/esm/client/2_message_manager.d.ts +4 -1
  17. package/esm/client/2_message_manager.js +166 -23
  18. package/esm/client/3_story_manager.js +4 -6
  19. package/esm/client/4_client.d.ts +20 -2
  20. package/esm/client/4_client.js +97 -49
  21. package/esm/connection/1_connection_web_socket.js +3 -3
  22. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert.js +1 -0
  23. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_almost_equals.js +1 -0
  24. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_array_includes.js +1 -0
  25. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_equals.js +1 -0
  26. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_exists.js +1 -0
  27. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_false.js +1 -0
  28. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater.js +1 -0
  29. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater_or_equal.js +1 -0
  30. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_instance_of.js +1 -0
  31. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_is_error.js +1 -0
  32. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less.js +1 -0
  33. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less_or_equal.js +1 -0
  34. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_match.js +1 -0
  35. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_equals.js +1 -0
  36. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_instance_of.js +1 -0
  37. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_match.js +1 -0
  38. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_strict_equals.js +1 -0
  39. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_object_match.js +1 -0
  40. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_rejects.js +1 -0
  41. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_strict_equals.js +1 -0
  42. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_string_includes.js +1 -0
  43. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_throws.js +1 -0
  44. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assertion_error.js +1 -0
  45. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/equal.js +1 -0
  46. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/fail.js +1 -0
  47. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/mod.js +1 -0
  48. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unimplemented.js +1 -0
  49. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unreachable.js +1 -0
  50. package/esm/deps/deno.land/std@0.222.1/bytes/concat.d.ts +13 -0
  51. package/esm/deps/deno.land/std@0.222.1/bytes/concat.js +27 -0
  52. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/base64.d.ts +8 -2
  53. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/base64.js +19 -2
  54. package/{script/deps/deno.land/std@0.221.0 → esm/deps/deno.land/std@0.222.1}/media_types/_util.d.ts +1 -0
  55. package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_util.js +1 -1
  56. package/{script/deps/deno.land/x/tgcrypto@0.4.0 → esm/deps/deno.land/x/tgcrypto@0.4.1}/mod.d.ts +14 -2
  57. package/esm/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/mod.js +56 -42
  58. package/esm/tl/0_tl_raw_writer.js +3 -2
  59. package/esm/transport/0_obfuscation.js +4 -3
  60. package/esm/transport/0_transport.d.ts +1 -1
  61. package/esm/transport/0_transport.js +7 -0
  62. package/esm/transport/1_transport_abridged.js +4 -2
  63. package/esm/transport/1_transport_intermediate.js +4 -2
  64. package/esm/types/0_file_source.d.ts +2 -2
  65. package/esm/types/0_self_destruct_option.d.ts +25 -0
  66. package/esm/types/0_self_destruct_option.js +39 -0
  67. package/esm/types/1_input_media.d.ts +108 -0
  68. package/esm/types/1_input_media.js +20 -0
  69. package/esm/utilities/0_buffer.d.ts +0 -1
  70. package/esm/utilities/0_buffer.js +0 -13
  71. package/esm/utilities/0_crypto.d.ts +3 -3
  72. package/esm/utilities/0_crypto.js +23 -20
  73. package/esm/utilities/0_part_stream.d.ts +29 -0
  74. package/esm/utilities/0_part_stream.js +65 -0
  75. package/esm/utilities/0_units.d.ts +25 -0
  76. package/esm/utilities/0_units.js +25 -0
  77. package/esm/utilities/1_auth.js +5 -5
  78. package/esm/utilities/1_misc.d.ts +1 -0
  79. package/esm/utilities/1_misc.js +17 -2
  80. package/package.json +3 -3
  81. package/script/0_deps.d.ts +6 -5
  82. package/script/0_deps.js +11 -7
  83. package/script/1_utilities.d.ts +2 -0
  84. package/script/1_utilities.js +2 -0
  85. package/script/3_types.d.ts +2 -0
  86. package/script/3_types.js +2 -0
  87. package/script/client/0_message.js +9 -9
  88. package/script/client/0_params.d.ts +8 -1
  89. package/script/client/0_password.js +13 -5
  90. package/script/client/0_types.d.ts +18 -7
  91. package/script/client/0_utilities.d.ts +19 -2
  92. package/script/client/0_utilities.js +2 -69
  93. package/script/client/1_client_plain.js +4 -4
  94. package/script/client/1_file_manager.d.ts +3 -21
  95. package/script/client/1_file_manager.js +266 -103
  96. package/script/client/2_message_manager.d.ts +4 -1
  97. package/script/client/2_message_manager.js +164 -21
  98. package/script/client/3_story_manager.js +3 -5
  99. package/script/client/4_client.d.ts +20 -2
  100. package/script/client/4_client.js +96 -48
  101. package/script/connection/1_connection_web_socket.js +1 -1
  102. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert.js +1 -0
  103. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_almost_equals.js +1 -0
  104. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_array_includes.js +1 -0
  105. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_equals.js +1 -0
  106. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_exists.js +1 -0
  107. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_false.js +1 -0
  108. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater.js +1 -0
  109. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater_or_equal.js +1 -0
  110. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_instance_of.js +1 -0
  111. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_is_error.js +1 -0
  112. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less.js +1 -0
  113. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less_or_equal.js +1 -0
  114. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_match.js +1 -0
  115. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_equals.js +1 -0
  116. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_instance_of.js +1 -0
  117. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_match.js +1 -0
  118. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_strict_equals.js +1 -0
  119. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_object_match.js +1 -0
  120. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_rejects.js +1 -0
  121. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_strict_equals.js +1 -0
  122. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_string_includes.js +1 -0
  123. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_throws.js +1 -0
  124. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assertion_error.js +1 -0
  125. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/equal.js +1 -0
  126. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/fail.js +1 -0
  127. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/mod.js +1 -0
  128. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unimplemented.js +1 -0
  129. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unreachable.js +1 -0
  130. package/script/deps/deno.land/std@0.222.1/bytes/concat.d.ts +13 -0
  131. package/script/deps/deno.land/std@0.222.1/bytes/concat.js +31 -0
  132. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/base64.d.ts +8 -2
  133. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/base64.js +19 -2
  134. package/{esm/deps/deno.land/std@0.221.0 → script/deps/deno.land/std@0.222.1}/media_types/_util.d.ts +1 -0
  135. package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_util.js +2 -1
  136. package/{esm/deps/deno.land/x/tgcrypto@0.4.0 → script/deps/deno.land/x/tgcrypto@0.4.1}/mod.d.ts +14 -2
  137. package/script/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/mod.js +61 -43
  138. package/script/tl/0_tl_raw_writer.js +2 -1
  139. package/script/transport/0_obfuscation.js +3 -2
  140. package/script/transport/0_transport.d.ts +1 -1
  141. package/script/transport/0_transport.js +7 -0
  142. package/script/transport/1_transport_abridged.js +3 -1
  143. package/script/transport/1_transport_intermediate.js +3 -1
  144. package/script/types/0_file_source.d.ts +2 -2
  145. package/script/types/0_self_destruct_option.d.ts +25 -0
  146. package/script/types/0_self_destruct_option.js +43 -0
  147. package/script/types/1_input_media.d.ts +108 -0
  148. package/script/types/1_input_media.js +21 -0
  149. package/script/utilities/0_buffer.d.ts +0 -1
  150. package/script/utilities/0_buffer.js +1 -15
  151. package/script/utilities/0_crypto.d.ts +3 -3
  152. package/script/utilities/0_crypto.js +22 -19
  153. package/script/utilities/0_part_stream.d.ts +29 -0
  154. package/script/utilities/0_part_stream.js +69 -0
  155. package/script/utilities/0_units.d.ts +25 -0
  156. package/script/utilities/0_units.js +28 -0
  157. package/script/utilities/1_auth.js +3 -3
  158. package/script/utilities/1_misc.d.ts +1 -0
  159. package/script/utilities/1_misc.js +19 -3
  160. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_constants.d.ts +0 -0
  161. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_constants.js +0 -0
  162. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_diff.d.ts +0 -0
  163. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_diff.js +0 -0
  164. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_format.d.ts +0 -0
  165. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_format.js +0 -0
  166. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert.d.ts +0 -0
  167. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_almost_equals.d.ts +0 -0
  168. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_array_includes.d.ts +0 -0
  169. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_equals.d.ts +0 -0
  170. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_exists.d.ts +0 -0
  171. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_false.d.ts +0 -0
  172. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater.d.ts +0 -0
  173. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater_or_equal.d.ts +0 -0
  174. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_instance_of.d.ts +0 -0
  175. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_is_error.d.ts +0 -0
  176. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less.d.ts +0 -0
  177. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less_or_equal.d.ts +0 -0
  178. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_match.d.ts +0 -0
  179. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_equals.d.ts +0 -0
  180. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_instance_of.d.ts +0 -0
  181. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_match.d.ts +0 -0
  182. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_strict_equals.d.ts +0 -0
  183. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_object_match.d.ts +0 -0
  184. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_rejects.d.ts +0 -0
  185. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_strict_equals.d.ts +0 -0
  186. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_string_includes.d.ts +0 -0
  187. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_throws.d.ts +0 -0
  188. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assertion_error.d.ts +0 -0
  189. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/equal.d.ts +0 -0
  190. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/fail.d.ts +0 -0
  191. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/mod.d.ts +0 -0
  192. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unimplemented.d.ts +0 -0
  193. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unreachable.d.ts +0 -0
  194. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/_util.d.ts +0 -0
  195. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/_util.js +0 -0
  196. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/fmt/colors.d.ts +0 -0
  197. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/fmt/colors.js +0 -0
  198. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_db.d.ts +0 -0
  199. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_db.js +0 -0
  200. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/content_type.d.ts +0 -0
  201. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/content_type.js +0 -0
  202. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extension.d.ts +0 -0
  203. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extension.js +0 -0
  204. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extensions_by_type.d.ts +0 -0
  205. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extensions_by_type.js +0 -0
  206. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/format_media_type.d.ts +0 -0
  207. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/format_media_type.js +0 -0
  208. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/get_charset.d.ts +0 -0
  209. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/get_charset.js +0 -0
  210. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/parse_media_type.d.ts +0 -0
  211. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/parse_media_type.js +0 -0
  212. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/type_by_extension.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/type_by_extension.js +0 -0
  214. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  216. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/assert_path.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/assert_path.js +0 -0
  218. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/basename.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/basename.js +0 -0
  220. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/common.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/common.js +0 -0
  222. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/constants.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/constants.js +0 -0
  224. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/dirname.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/dirname.js +0 -0
  226. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/format.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/format.js +0 -0
  228. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/from_file_url.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/from_file_url.js +0 -0
  230. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/glob_to_reg_exp.js +0 -0
  232. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize.js +0 -0
  234. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize_string.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize_string.js +0 -0
  236. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/relative.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/relative.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/strip_trailing_separators.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/strip_trailing_separators.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/to_file_url.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/to_file_url.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_interface.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_interface.js +0 -0
  244. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_os.d.ts +0 -0
  245. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_os.js +0 -0
  246. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/basename.d.ts +0 -0
  247. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/basename.js +0 -0
  248. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/common.d.ts +0 -0
  249. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/common.js +0 -0
  250. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/constants.d.ts +0 -0
  251. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/constants.js +0 -0
  252. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/dirname.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/dirname.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/extname.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/extname.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/format.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/format.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/from_file_url.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/from_file_url.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/glob_to_regexp.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/glob_to_regexp.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_absolute.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_absolute.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_glob.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_glob.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join_globs.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join_globs.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/mod.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/mod.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize_glob.d.ts +0 -0
  275. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize_glob.js +0 -0
  276. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/parse.d.ts +0 -0
  277. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/parse.js +0 -0
  278. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/_util.d.ts +0 -0
  279. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/_util.js +0 -0
  280. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/basename.d.ts +0 -0
  281. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/basename.js +0 -0
  282. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/common.d.ts +0 -0
  283. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/common.js +0 -0
  284. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/constants.d.ts +0 -0
  285. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/constants.js +0 -0
  286. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/dirname.d.ts +0 -0
  287. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/dirname.js +0 -0
  288. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/extname.d.ts +0 -0
  289. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/extname.js +0 -0
  290. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/format.d.ts +0 -0
  291. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/format.js +0 -0
  292. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/from_file_url.d.ts +0 -0
  293. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/from_file_url.js +0 -0
  294. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/glob_to_regexp.d.ts +0 -0
  295. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/glob_to_regexp.js +0 -0
  296. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_absolute.d.ts +0 -0
  297. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_absolute.js +0 -0
  298. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_glob.d.ts +0 -0
  299. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_glob.js +0 -0
  300. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join.d.ts +0 -0
  301. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join.js +0 -0
  302. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join_globs.d.ts +0 -0
  303. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join_globs.js +0 -0
  304. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/mod.d.ts +0 -0
  305. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/mod.js +0 -0
  306. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize.d.ts +0 -0
  307. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize.js +0 -0
  308. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize_glob.d.ts +0 -0
  309. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize_glob.js +0 -0
  310. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/parse.d.ts +0 -0
  311. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/parse.js +0 -0
  312. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/relative.d.ts +0 -0
  313. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/relative.js +0 -0
  314. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/resolve.d.ts +0 -0
  315. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/resolve.js +0 -0
  316. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_file_url.d.ts +0 -0
  317. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_file_url.js +0 -0
  318. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_namespaced_path.d.ts +0 -0
  319. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_namespaced_path.js +0 -0
  320. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/relative.d.ts +0 -0
  321. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/relative.js +0 -0
  322. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/resolve.d.ts +0 -0
  323. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/resolve.js +0 -0
  324. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_file_url.d.ts +0 -0
  325. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_file_url.js +0 -0
  326. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_namespaced_path.d.ts +0 -0
  327. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_namespaced_path.js +0 -0
  328. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/_util.d.ts +0 -0
  329. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/_util.js +0 -0
  330. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/basename.d.ts +0 -0
  331. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/basename.js +0 -0
  332. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/common.d.ts +0 -0
  333. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/common.js +0 -0
  334. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/constants.d.ts +0 -0
  335. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/constants.js +0 -0
  336. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/dirname.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/dirname.js +0 -0
  338. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/extname.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/extname.js +0 -0
  340. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/format.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/format.js +0 -0
  342. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/from_file_url.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/from_file_url.js +0 -0
  344. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/glob_to_regexp.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/glob_to_regexp.js +0 -0
  346. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_absolute.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_absolute.js +0 -0
  348. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_glob.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_glob.js +0 -0
  350. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join.js +0 -0
  352. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join_globs.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join_globs.js +0 -0
  354. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/mod.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/mod.js +0 -0
  356. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize.js +0 -0
  358. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize_glob.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize_glob.js +0 -0
  360. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/parse.d.ts +0 -0
  361. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/parse.js +0 -0
  362. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/relative.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/relative.js +0 -0
  364. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/resolve.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/resolve.js +0 -0
  366. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_file_url.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_file_url.js +0 -0
  368. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_namespaced_path.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_namespaced_path.js +0 -0
  370. /package/esm/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.d.ts +0 -0
  371. /package/esm/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.js +0 -0
  372. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_constants.d.ts +0 -0
  373. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_constants.js +0 -0
  374. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_diff.d.ts +0 -0
  375. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_diff.js +0 -0
  376. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_format.d.ts +0 -0
  377. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/_format.js +0 -0
  378. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert.d.ts +0 -0
  379. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_almost_equals.d.ts +0 -0
  380. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_array_includes.d.ts +0 -0
  381. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_equals.d.ts +0 -0
  382. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_exists.d.ts +0 -0
  383. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_false.d.ts +0 -0
  384. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater.d.ts +0 -0
  385. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_greater_or_equal.d.ts +0 -0
  386. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_instance_of.d.ts +0 -0
  387. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_is_error.d.ts +0 -0
  388. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less.d.ts +0 -0
  389. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_less_or_equal.d.ts +0 -0
  390. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_match.d.ts +0 -0
  391. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_equals.d.ts +0 -0
  392. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_instance_of.d.ts +0 -0
  393. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_match.d.ts +0 -0
  394. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_not_strict_equals.d.ts +0 -0
  395. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_object_match.d.ts +0 -0
  396. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_rejects.d.ts +0 -0
  397. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_strict_equals.d.ts +0 -0
  398. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_string_includes.d.ts +0 -0
  399. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assert_throws.d.ts +0 -0
  400. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/assertion_error.d.ts +0 -0
  401. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/equal.d.ts +0 -0
  402. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/fail.d.ts +0 -0
  403. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/mod.d.ts +0 -0
  404. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unimplemented.d.ts +0 -0
  405. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/assert/unreachable.d.ts +0 -0
  406. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/_util.d.ts +0 -0
  407. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/encoding/_util.js +0 -0
  408. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/fmt/colors.d.ts +0 -0
  409. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/fmt/colors.js +0 -0
  410. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_db.d.ts +0 -0
  411. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/_db.js +0 -0
  412. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/content_type.d.ts +0 -0
  413. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/content_type.js +0 -0
  414. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extension.d.ts +0 -0
  415. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extension.js +0 -0
  416. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extensions_by_type.d.ts +0 -0
  417. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/extensions_by_type.js +0 -0
  418. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/format_media_type.d.ts +0 -0
  419. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/format_media_type.js +0 -0
  420. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/get_charset.d.ts +0 -0
  421. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/get_charset.js +0 -0
  422. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/parse_media_type.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/parse_media_type.js +0 -0
  424. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/type_by_extension.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/type_by_extension.js +0 -0
  426. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  428. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/assert_path.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/assert_path.js +0 -0
  430. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/basename.d.ts +0 -0
  431. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/basename.js +0 -0
  432. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/common.d.ts +0 -0
  433. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/common.js +0 -0
  434. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/constants.d.ts +0 -0
  435. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/constants.js +0 -0
  436. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/dirname.d.ts +0 -0
  437. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/dirname.js +0 -0
  438. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/format.d.ts +0 -0
  439. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/format.js +0 -0
  440. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/from_file_url.d.ts +0 -0
  441. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/from_file_url.js +0 -0
  442. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/glob_to_reg_exp.d.ts +0 -0
  443. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/glob_to_reg_exp.js +0 -0
  444. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize.d.ts +0 -0
  445. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize.js +0 -0
  446. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize_string.d.ts +0 -0
  447. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/normalize_string.js +0 -0
  448. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/relative.d.ts +0 -0
  449. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/relative.js +0 -0
  450. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/strip_trailing_separators.d.ts +0 -0
  451. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/strip_trailing_separators.js +0 -0
  452. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/to_file_url.d.ts +0 -0
  453. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_common/to_file_url.js +0 -0
  454. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_interface.d.ts +0 -0
  455. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_interface.js +0 -0
  456. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_os.d.ts +0 -0
  457. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/_os.js +0 -0
  458. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/basename.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/basename.js +0 -0
  460. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/common.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/common.js +0 -0
  462. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/constants.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/constants.js +0 -0
  464. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/dirname.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/dirname.js +0 -0
  466. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/extname.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/extname.js +0 -0
  468. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/format.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/format.js +0 -0
  470. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/from_file_url.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/from_file_url.js +0 -0
  472. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/glob_to_regexp.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/glob_to_regexp.js +0 -0
  474. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_absolute.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_absolute.js +0 -0
  476. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_glob.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/is_glob.js +0 -0
  478. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join.d.ts +0 -0
  479. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join.js +0 -0
  480. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join_globs.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/join_globs.js +0 -0
  482. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/mod.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/mod.js +0 -0
  484. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize.js +0 -0
  486. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize_glob.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/normalize_glob.js +0 -0
  488. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/parse.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/parse.js +0 -0
  490. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/_util.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/_util.js +0 -0
  492. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/basename.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/basename.js +0 -0
  494. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/common.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/common.js +0 -0
  496. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/constants.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/constants.js +0 -0
  498. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/dirname.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/dirname.js +0 -0
  500. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/extname.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/extname.js +0 -0
  502. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/format.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/format.js +0 -0
  504. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/from_file_url.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/from_file_url.js +0 -0
  506. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/glob_to_regexp.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/glob_to_regexp.js +0 -0
  508. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_absolute.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_absolute.js +0 -0
  510. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_glob.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/is_glob.js +0 -0
  512. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join.js +0 -0
  514. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join_globs.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/join_globs.js +0 -0
  516. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/mod.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/mod.js +0 -0
  518. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize.js +0 -0
  520. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize_glob.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/normalize_glob.js +0 -0
  522. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/parse.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/parse.js +0 -0
  524. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/relative.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/relative.js +0 -0
  526. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/resolve.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/resolve.js +0 -0
  528. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_file_url.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_file_url.js +0 -0
  530. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_namespaced_path.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/posix/to_namespaced_path.js +0 -0
  532. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/relative.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/relative.js +0 -0
  534. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/resolve.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/resolve.js +0 -0
  536. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_file_url.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_file_url.js +0 -0
  538. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_namespaced_path.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/to_namespaced_path.js +0 -0
  540. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/_util.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/_util.js +0 -0
  542. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/basename.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/basename.js +0 -0
  544. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/common.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/common.js +0 -0
  546. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/constants.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/constants.js +0 -0
  548. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/dirname.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/dirname.js +0 -0
  550. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/extname.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/extname.js +0 -0
  552. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/format.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/format.js +0 -0
  554. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/from_file_url.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/from_file_url.js +0 -0
  556. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/glob_to_regexp.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/glob_to_regexp.js +0 -0
  558. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_absolute.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_absolute.js +0 -0
  560. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_glob.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/is_glob.js +0 -0
  562. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join.d.ts +0 -0
  563. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join.js +0 -0
  564. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join_globs.d.ts +0 -0
  565. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/join_globs.js +0 -0
  566. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/mod.d.ts +0 -0
  567. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/mod.js +0 -0
  568. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize.d.ts +0 -0
  569. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize.js +0 -0
  570. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize_glob.d.ts +0 -0
  571. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/normalize_glob.js +0 -0
  572. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/parse.d.ts +0 -0
  573. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/parse.js +0 -0
  574. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/relative.d.ts +0 -0
  575. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/relative.js +0 -0
  576. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/resolve.d.ts +0 -0
  577. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/resolve.js +0 -0
  578. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_file_url.d.ts +0 -0
  579. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_file_url.js +0 -0
  580. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_namespaced_path.d.ts +0 -0
  581. /package/script/deps/deno.land/{std@0.221.0 → std@0.222.1}/path/windows/to_namespaced_path.js +0 -0
  582. /package/script/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.d.ts +0 -0
  583. /package/script/deps/deno.land/x/{tgcrypto@0.4.0 → tgcrypto@0.4.1}/tgcrypto.js +0 -0
@@ -0,0 +1,39 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+ import { InputError } from "../0_errors.js";
21
+ export function selfDestructOptionToInt(option) {
22
+ if (option == "afterOpen") {
23
+ return 2147483647;
24
+ }
25
+ else if (typeof option === "number") {
26
+ if (option == 0) {
27
+ throw new InputError("Self destruct option cannot be zero.");
28
+ }
29
+ else if (option < 0) {
30
+ throw new InputError("Self destruct option cannot be negative.");
31
+ }
32
+ else {
33
+ return option;
34
+ }
35
+ }
36
+ else {
37
+ throw new InputError("Invalid self destruct option.");
38
+ }
39
+ }
@@ -0,0 +1,108 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2024 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+ import { FileSource } from "./0_file_source.js";
21
+ import { SelfDestructOption } from "./0_self_destruct_option.js";
22
+ /** @unlisted */
23
+ export interface _InputMediaCommon {
24
+ /** The file name to assign if applicable. */
25
+ fileName?: string;
26
+ /** The mime type to assign if applicable. */
27
+ mimeType?: string;
28
+ /** Size of each upload chunk in bytes. */
29
+ chunkSize?: number;
30
+ /** Upload abort signal. */
31
+ signal?: AbortSignal | null;
32
+ }
33
+ /** @unlisted */
34
+ export interface InputMediaAnimation extends _InputMediaCommon {
35
+ /** The new animation. */
36
+ animation: FileSource;
37
+ /** A thumbnail to assign. Cannot be a URL. */
38
+ thumbnail?: FileSource;
39
+ /** The new caption of the message. */
40
+ caption?: string;
41
+ /** The duration of the animation in seconds. */
42
+ duration?: number;
43
+ /** The width of the animation file. */
44
+ width?: number;
45
+ /** The height of the animation file. */
46
+ height?: number;
47
+ /** Whether to mark the media as a spoiler. */
48
+ hasSpoiler?: boolean;
49
+ }
50
+ /** @unlisted */
51
+ export interface InputMediaAudio extends _InputMediaCommon {
52
+ /** The new audio. */
53
+ audio: FileSource;
54
+ /** A thumbnail to assign. Cannot be a URL. */
55
+ thumbnail?: FileSource;
56
+ /** The new caption of the message. */
57
+ caption?: string;
58
+ /** The duration of the audio file in seconds. */
59
+ duration?: number;
60
+ /** Names of the entities that are being featured in the audio. */
61
+ performer?: string;
62
+ /** The title of the audio. */
63
+ title?: string;
64
+ }
65
+ /** @unlisted */
66
+ export interface InputMediaDocument extends _InputMediaCommon {
67
+ /** The new document. */
68
+ document: FileSource;
69
+ /** A thumbnail to assign. Cannot be a URL. */
70
+ thumbnail?: FileSource;
71
+ /** The new caption of the message. */
72
+ caption?: string;
73
+ }
74
+ /** @unlisted */
75
+ export interface InputMediaPhoto extends _InputMediaCommon {
76
+ /** The new photo. */
77
+ photo: FileSource;
78
+ /** The width of the photo in pixels. */
79
+ width?: number;
80
+ /** The height of the photo in pixels. */
81
+ height?: number;
82
+ /** The new caption of the message. */
83
+ caption?: string;
84
+ /** Whether to mark the media as a spoiler. */
85
+ hasSpoiler?: boolean;
86
+ selfDestruct?: SelfDestructOption;
87
+ }
88
+ /** @unlisted */
89
+ export interface InputMediaVideo extends _InputMediaCommon {
90
+ /** The new video. */
91
+ video: FileSource;
92
+ /** A thumbnail to assign. Cannot be a URL. */
93
+ thumbnail?: FileSource;
94
+ /** The duration of the video in seconds. */
95
+ duration?: number;
96
+ /** The width of the photo in pixels. */
97
+ width?: number;
98
+ /** The height of the photo in pixels. */
99
+ height?: number;
100
+ /** Whether the video is suitable for streaming. */
101
+ supportsStreaming?: boolean;
102
+ /** The new caption of the message. */
103
+ caption?: string;
104
+ /** Whether to mark the media as a spoiler. */
105
+ hasSpoiler?: boolean;
106
+ selfDestruct?: SelfDestructOption;
107
+ }
108
+ export type InputMedia = InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo;
@@ -0,0 +1,20 @@
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
+ export {};
@@ -17,5 +17,4 @@
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 declare function concat(...buffers: [Uint8Array, Uint8Array, ...Uint8Array[]]): Uint8Array;
21
20
  export declare function bufferFromBigInt(int: bigint | number, byteCount: number, littleEndian?: boolean, signed?: boolean): Uint8Array;
@@ -17,19 +17,6 @@
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 function concat(...buffers) {
21
- let length = 0;
22
- for (const b of buffers) {
23
- length += b.length;
24
- }
25
- const buffer = new Uint8Array(length);
26
- let offset = 0;
27
- for (const b of buffers) {
28
- buffer.set(b, offset);
29
- offset += b.length;
30
- }
31
- return buffer;
32
- }
33
20
  const bufferFromHexString = (hexString) => Uint8Array.from(hexString.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)));
34
21
  export function bufferFromBigInt(int, byteCount, littleEndian = true, signed = false) {
35
22
  const actualByteCount = Math.ceil(int.toString(2).length / 8);
@@ -18,9 +18,9 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  export declare class CTR {
21
- readonly key: Uint8Array;
22
- iv: Uint8Array;
23
- state: Uint8Array;
21
+ #private;
24
22
  constructor(key: Uint8Array, iv: Uint8Array);
23
+ /** This must not be called after destroying. */
25
24
  call(data: Uint8Array): void;
25
+ destroy(): void;
26
26
  }
@@ -17,29 +17,32 @@
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 { ctr256 } from "../0_deps.js";
20
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
21
+ if (kind === "m") throw new TypeError("Private method is not writable");
22
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
23
+ 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");
24
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
25
+ };
26
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
27
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
28
+ 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");
29
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
30
+ };
31
+ var _CTR_key, _CTR_state;
32
+ import { createCtr256State, ctr256, destroyCtr256State } from "../0_deps.js";
21
33
  export class CTR {
22
34
  constructor(key, iv) {
23
- Object.defineProperty(this, "key", {
24
- enumerable: true,
25
- configurable: true,
26
- writable: true,
27
- value: key
28
- });
29
- Object.defineProperty(this, "iv", {
30
- enumerable: true,
31
- configurable: true,
32
- writable: true,
33
- value: iv
34
- });
35
- Object.defineProperty(this, "state", {
36
- enumerable: true,
37
- configurable: true,
38
- writable: true,
39
- value: new Uint8Array(1)
40
- });
35
+ _CTR_key.set(this, void 0);
36
+ _CTR_state.set(this, void 0);
37
+ __classPrivateFieldSet(this, _CTR_state, createCtr256State(iv), "f");
38
+ __classPrivateFieldSet(this, _CTR_key, key, "f");
41
39
  }
40
+ /** This must not be called after destroying. */
42
41
  call(data) {
43
- ctr256(data, this.key, this.iv, this.state);
42
+ ctr256(data, __classPrivateFieldGet(this, _CTR_key, "f"), __classPrivateFieldGet(this, _CTR_state, "f"));
43
+ }
44
+ destroy() {
45
+ destroyCtr256State(__classPrivateFieldGet(this, _CTR_state, "f"));
44
46
  }
45
47
  }
48
+ _CTR_key = new WeakMap(), _CTR_state = new WeakMap();
@@ -0,0 +1,29 @@
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
+ export interface Part {
21
+ small: boolean;
22
+ part: number;
23
+ totalParts: number;
24
+ bytes: Uint8Array;
25
+ }
26
+ export declare class PartStream extends TransformStream<Uint8Array, Part> {
27
+ #private;
28
+ constructor(chunkSize: number);
29
+ }
@@ -0,0 +1,65 @@
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
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
21
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
22
+ 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");
23
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
24
+ };
25
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
26
+ if (kind === "m") throw new TypeError("Private method is not writable");
27
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
28
+ 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");
29
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
30
+ };
31
+ var _PartStream_buffer, _PartStream_totalRead, _PartStream_part;
32
+ import { concat } from "../0_deps.js";
33
+ export class PartStream extends TransformStream {
34
+ constructor(chunkSize) {
35
+ super({
36
+ transform: (chunk, controller) => {
37
+ var _a, _b;
38
+ __classPrivateFieldSet(this, _PartStream_totalRead, __classPrivateFieldGet(this, _PartStream_totalRead, "f") + chunk.byteLength, "f");
39
+ chunk = concat([__classPrivateFieldGet(this, _PartStream_buffer, "f"), chunk]);
40
+ while (chunk.byteLength > chunkSize) {
41
+ controller.enqueue({
42
+ small: false,
43
+ part: (__classPrivateFieldSet(this, _PartStream_part, (_b = __classPrivateFieldGet(this, _PartStream_part, "f"), _a = _b++, _b), "f"), _a),
44
+ totalParts: -1,
45
+ bytes: chunk.slice(0, chunkSize),
46
+ });
47
+ chunk = chunk.slice(chunkSize);
48
+ }
49
+ __classPrivateFieldSet(this, _PartStream_buffer, chunk, "f");
50
+ },
51
+ flush: (controller) => {
52
+ controller.enqueue({
53
+ small: __classPrivateFieldGet(this, _PartStream_totalRead, "f") <= chunkSize,
54
+ part: __classPrivateFieldGet(this, _PartStream_part, "f"),
55
+ totalParts: Math.ceil(__classPrivateFieldGet(this, _PartStream_totalRead, "f") / chunkSize),
56
+ bytes: __classPrivateFieldGet(this, _PartStream_buffer, "f"),
57
+ });
58
+ },
59
+ });
60
+ _PartStream_buffer.set(this, new Uint8Array());
61
+ _PartStream_totalRead.set(this, 0);
62
+ _PartStream_part.set(this, 0);
63
+ }
64
+ }
65
+ _PartStream_buffer = new WeakMap(), _PartStream_totalRead = new WeakMap(), _PartStream_part = new WeakMap();
@@ -0,0 +1,25 @@
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
+ export declare const millisecond = 1;
21
+ export declare const second: number;
22
+ export declare const minute: number;
23
+ export declare const byte = 1;
24
+ export declare const kilobyte: number;
25
+ export declare const megabyte: number;
@@ -0,0 +1,25 @@
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
+ export const millisecond = 1;
21
+ export const second = 1000 * millisecond;
22
+ export const minute = 60 * second;
23
+ export const byte = 1;
24
+ export const kilobyte = 1024 * byte;
25
+ export const megabyte = 1024 * kilobyte;
@@ -18,9 +18,9 @@
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 { assert, assertEquals, ige256Encrypt } from "../0_deps.js";
21
+ import { assert, assertEquals, concat, ige256Encrypt } from "../0_deps.js";
22
22
  import { bigIntFromBuffer, modExp } from "./0_bigint.js";
23
- import { bufferFromBigInt, concat } from "./0_buffer.js";
23
+ import { bufferFromBigInt } from "./0_buffer.js";
24
24
  import { sha256 } from "./0_hash.js";
25
25
  export async function rsaPad(data, [serverKey, exponent]) {
26
26
  assert(data.length <= 144);
@@ -30,14 +30,14 @@ export async function rsaPad(data, [serverKey, exponent]) {
30
30
  if (++tries == 10) {
31
31
  throw new Error("Out of tries");
32
32
  }
33
- const dataWithPadding = concat(data, new Uint8Array(192 - data.length));
33
+ const dataWithPadding = concat([data, new Uint8Array(192 - data.length)]);
34
34
  const dataPadReversed = new Uint8Array(dataWithPadding).reverse();
35
35
  const tempKey = dntShim.crypto.getRandomValues(new Uint8Array(32));
36
- const dataWithHash = concat(dataPadReversed, await sha256(concat(tempKey, dataWithPadding)));
36
+ const dataWithHash = concat([dataPadReversed, await sha256(concat([tempKey, dataWithPadding]))]);
37
37
  const aesEncrypted = ige256Encrypt(dataWithHash, tempKey, new Uint8Array(32));
38
38
  const aesEncryptedSha256 = await sha256(aesEncrypted);
39
39
  const tempKeyXor = tempKey.map((v, i) => v ^ aesEncryptedSha256[i]);
40
- const keyAesEncrypted = concat(tempKeyXor, aesEncrypted);
40
+ const keyAesEncrypted = concat([tempKeyXor, aesEncrypted]);
41
41
  assertEquals(keyAesEncrypted.length, 256);
42
42
  keyAesEncryptedInt = bigIntFromBuffer(keyAesEncrypted, false, false);
43
43
  } while (keyAesEncryptedInt >= serverKey);
@@ -25,3 +25,4 @@ export declare const ZERO_CHANNEL_ID = -1000000000000;
25
25
  export declare const VECTOR_CONSTRUCTOR = 481674261;
26
26
  export declare function toUnixTimestamp(date: Date): number;
27
27
  export declare function fromUnixTimestamp(date: number): Date;
28
+ export declare function iterateReadableStream(stream: ReadableStream): AsyncGenerator<any, void, unknown>;
@@ -18,6 +18,7 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import { unreachable } from "../0_deps.js";
21
+ import { second } from "./0_units.js";
21
22
  export function drop(promise) {
22
23
  promise.catch(() => { });
23
24
  }
@@ -48,8 +49,22 @@ export function mustPromptOneOf(message, choices) {
48
49
  export const ZERO_CHANNEL_ID = -1000000000000;
49
50
  export const VECTOR_CONSTRUCTOR = 0x1CB5C415;
50
51
  export function toUnixTimestamp(date) {
51
- return Math.floor(date.getTime() / 1000);
52
+ return Math.floor(date.getTime() / second);
52
53
  }
53
54
  export function fromUnixTimestamp(date) {
54
- return new Date(date * 1000);
55
+ return new Date(date * second);
56
+ }
57
+ export async function* iterateReadableStream(stream) {
58
+ const reader = stream.getReader();
59
+ try {
60
+ while (true) {
61
+ const { done, value } = await reader.read();
62
+ if (done)
63
+ return;
64
+ yield value;
65
+ }
66
+ }
67
+ finally {
68
+ reader.releaseLock();
69
+ }
55
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/node",
3
- "version": "0.1.302",
3
+ "version": "0.1.400",
4
4
  "description": "MTKruto for Node.js",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  "test": "node test_runner.js"
21
21
  },
22
22
  "dependencies": {
23
- "@deno/shim-deno": "~0.17.0",
23
+ "@deno/shim-deno": "~0.18.0",
24
24
  "@deno/shim-crypto": "~0.3.1",
25
25
  "ws": "^8.13.0"
26
26
  },
@@ -30,5 +30,5 @@
30
30
  "@types/ws": "^8.5.4",
31
31
  "@types/object-inspect": "^1.8.1"
32
32
  },
33
- "_generatedBy": "dnt@0.39.0"
33
+ "_generatedBy": "dnt@0.40.0"
34
34
  }
@@ -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.222.1/assert/mod.js";
21
+ export * as path from "./deps/deno.land/std@0.222.1/path/mod.js";
22
+ export { concat } from "./deps/deno.land/std@0.222.1/bytes/concat.js";
23
+ export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.222.1/encoding/base64.js";
24
+ import { contentType as contentType_ } from "./deps/deno.land/std@0.222.1/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/script/0_deps.js CHANGED
@@ -45,14 +45,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
45
45
  return result;
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.Parser = exports.gzip = exports.gunzip = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.ctr256 = exports.extension = exports.contentType = exports.encodeBase64 = exports.decodeBase64 = exports.path = void 0;
48
+ exports.Parser = exports.gzip = exports.gunzip = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.destroyCtr256State = exports.ctr256 = exports.createCtr256State = exports.extension = exports.contentType = exports.encodeBase64 = exports.decodeBase64 = exports.concat = exports.path = void 0;
49
49
  // connection/1_connection_tcp.ts must be updated too when updating std.
50
- __exportStar(require("./deps/deno.land/std@0.221.0/assert/mod.js"), exports);
51
- exports.path = __importStar(require("./deps/deno.land/std@0.221.0/path/mod.js"));
52
- var base64_js_1 = require("./deps/deno.land/std@0.221.0/encoding/base64.js");
50
+ __exportStar(require("./deps/deno.land/std@0.222.1/assert/mod.js"), exports);
51
+ exports.path = __importStar(require("./deps/deno.land/std@0.222.1/path/mod.js"));
52
+ var concat_js_1 = require("./deps/deno.land/std@0.222.1/bytes/concat.js");
53
+ Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_js_1.concat; } });
54
+ var base64_js_1 = require("./deps/deno.land/std@0.222.1/encoding/base64.js");
53
55
  Object.defineProperty(exports, "decodeBase64", { enumerable: true, get: function () { return base64_js_1.decodeBase64; } });
54
56
  Object.defineProperty(exports, "encodeBase64", { enumerable: true, get: function () { return base64_js_1.encodeBase64; } });
55
- const content_type_js_1 = require("./deps/deno.land/std@0.221.0/media_types/content_type.js");
57
+ const content_type_js_1 = require("./deps/deno.land/std@0.222.1/media_types/content_type.js");
56
58
  const contentType = (extentionOrType) => {
57
59
  if (extentionOrType == "tgs") {
58
60
  return "application/x-tgsticker";
@@ -62,7 +64,7 @@ const contentType = (extentionOrType) => {
62
64
  }
63
65
  };
64
66
  exports.contentType = contentType;
65
- const extension_js_1 = require("./deps/deno.land/std@0.221.0/media_types/extension.js");
67
+ const extension_js_1 = require("./deps/deno.land/std@0.222.1/media_types/extension.js");
66
68
  function extension(mimeType) {
67
69
  if (mimeType == "application/x-tgsticker") {
68
70
  return "tgs";
@@ -72,8 +74,10 @@ function extension(mimeType) {
72
74
  }
73
75
  }
74
76
  exports.extension = extension;
75
- var mod_js_1 = require("./deps/deno.land/x/tgcrypto@0.4.0/mod.js");
77
+ var mod_js_1 = require("./deps/deno.land/x/tgcrypto@0.4.1/mod.js");
78
+ Object.defineProperty(exports, "createCtr256State", { enumerable: true, get: function () { return mod_js_1.createCtr256State; } });
76
79
  Object.defineProperty(exports, "ctr256", { enumerable: true, get: function () { return mod_js_1.ctr256; } });
80
+ Object.defineProperty(exports, "destroyCtr256State", { enumerable: true, get: function () { return mod_js_1.destroyCtr256State; } });
77
81
  Object.defineProperty(exports, "ige256Decrypt", { enumerable: true, get: function () { return mod_js_1.ige256Decrypt; } });
78
82
  Object.defineProperty(exports, "ige256Encrypt", { enumerable: true, get: function () { return mod_js_1.ige256Encrypt; } });
79
83
  Object.defineProperty(exports, "initTgCrypto", { enumerable: true, get: function () { return mod_js_1.init; } });
@@ -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";
@@ -42,8 +42,10 @@ __exportStar(require("./utilities/0_hash.js"), exports);
42
42
  __exportStar(require("./utilities/0_logger.js"), exports);
43
43
  __exportStar(require("./utilities/0_mutex.js"), exports);
44
44
  __exportStar(require("./utilities/0_object.js"), exports);
45
+ __exportStar(require("./utilities/0_part_stream.js"), exports);
45
46
  __exportStar(require("./utilities/0_rle.js"), exports);
46
47
  __exportStar(require("./utilities/0_types.js"), exports);
48
+ __exportStar(require("./utilities/0_units.js"), exports);
47
49
  __exportStar(require("./utilities/1_auth.js"), exports);
48
50
  __exportStar(require("./utilities/1_base64.js"), exports);
49
51
  __exportStar(require("./utilities/1_math.js"), exports);
@@ -46,6 +46,7 @@ export * from "./types/0_poll_option.js";
46
46
  export * from "./types/0_price_tag.js";
47
47
  export * from "./types/0_reaction.js";
48
48
  export * from "./types/0_restriction_reason.js";
49
+ export * from "./types/0_self_destruct_option.js";
49
50
  export * from "./types/0_story_reference.js";
50
51
  export * from "./types/0_thumbnail.js";
51
52
  export * from "./types/0_voice.js";
@@ -56,6 +57,7 @@ export * from "./types/1_chat_p.js";
56
57
  export * from "./types/1_document.js";
57
58
  export * from "./types/1_giveaway.js";
58
59
  export * from "./types/1_inline_query_result_button.js";
60
+ export * from "./types/1_input_media.js";
59
61
  export * from "./types/1_input_message_content.js";
60
62
  export * from "./types/1_input_story_content.js";
61
63
  export * from "./types/1_keyboard_button.js";
package/script/3_types.js CHANGED
@@ -62,6 +62,7 @@ __exportStar(require("./types/0_poll_option.js"), exports);
62
62
  __exportStar(require("./types/0_price_tag.js"), exports);
63
63
  __exportStar(require("./types/0_reaction.js"), exports);
64
64
  __exportStar(require("./types/0_restriction_reason.js"), exports);
65
+ __exportStar(require("./types/0_self_destruct_option.js"), exports);
65
66
  __exportStar(require("./types/0_story_reference.js"), exports);
66
67
  __exportStar(require("./types/0_thumbnail.js"), exports);
67
68
  __exportStar(require("./types/0_voice.js"), exports);
@@ -72,6 +73,7 @@ __exportStar(require("./types/1_chat_p.js"), exports);
72
73
  __exportStar(require("./types/1_document.js"), exports);
73
74
  __exportStar(require("./types/1_giveaway.js"), exports);
74
75
  __exportStar(require("./types/1_inline_query_result_button.js"), exports);
76
+ __exportStar(require("./types/1_input_media.js"), exports);
75
77
  __exportStar(require("./types/1_input_message_content.js"), exports);
76
78
  __exportStar(require("./types/1_input_story_content.js"), exports);
77
79
  __exportStar(require("./types/1_keyboard_button.js"), exports);