@mtkruto/node 0.1.150 → 0.1.152

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 (585) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +5 -5
  3. package/esm/3_types.d.ts +9 -0
  4. package/esm/3_types.js +9 -0
  5. package/esm/4_constants.d.ts +1 -1
  6. package/esm/4_constants.js +1 -1
  7. package/esm/client/0_params.d.ts +14 -5
  8. package/esm/client/0_types.d.ts +3 -2
  9. package/esm/client/1_update_manager.js +65 -29
  10. package/esm/client/2_message_manager.d.ts +41 -3
  11. package/esm/client/2_message_manager.js +101 -40
  12. package/esm/client/3_story_manager.d.ts +28 -0
  13. package/esm/client/3_story_manager.js +143 -0
  14. package/esm/client/4_client.d.ts +148 -60
  15. package/esm/client/4_client.js +185 -59
  16. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/fmt/colors.d.ts +3 -0
  17. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/fmt/colors.js +3 -0
  18. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.d.ts +1 -0
  19. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.d.ts +1 -0
  20. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/mod.d.ts +0 -9
  21. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/mod.js +0 -10
  22. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/normalize_glob.d.ts +1 -0
  23. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/posix/join_globs.d.ts +1 -0
  24. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/posix/mod.d.ts +0 -9
  25. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/mod.js +0 -9
  26. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/posix/normalize_glob.d.ts +1 -0
  27. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.d.ts +1 -0
  28. package/esm/deps/deno.land/{std@0.214.0/path/posix → std@0.216.0/path/windows}/mod.d.ts +0 -9
  29. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/mod.js +0 -9
  30. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.d.ts +1 -0
  31. package/esm/tl/3_utilities.d.ts +7 -1
  32. package/esm/tl/3_utilities.js +3 -3
  33. package/esm/types/0_id.d.ts +2 -2
  34. package/esm/types/0_link_preview.d.ts +15 -0
  35. package/esm/types/0_link_preview.js +9 -0
  36. package/esm/types/0_story_reference.d.ts +5 -0
  37. package/esm/types/0_story_reference.js +1 -0
  38. package/esm/types/0_venue.d.ts +1 -1
  39. package/esm/types/1__getters.d.ts +2 -2
  40. package/esm/types/1_input_message_content.d.ts +6 -1
  41. package/esm/types/1_input_story_content.d.ts +15 -0
  42. package/esm/types/1_input_story_content.js +1 -0
  43. package/esm/types/1_story_interactive_area.d.ts +41 -0
  44. package/esm/types/1_story_interactive_area.js +98 -0
  45. package/esm/types/1_story_privacy.d.ts +22 -0
  46. package/esm/types/1_story_privacy.js +57 -0
  47. package/esm/types/1_story_reaction.d.ts +12 -0
  48. package/esm/types/1_story_reaction.js +7 -0
  49. package/esm/types/2_message_interactions.d.ts +1 -1
  50. package/esm/types/2_story_content.d.ts +18 -0
  51. package/esm/types/2_story_content.js +35 -0
  52. package/esm/types/2_story_interactions.d.ts +10 -0
  53. package/esm/types/2_story_interactions.js +8 -0
  54. package/esm/types/3_story.d.ts +24 -0
  55. package/esm/types/3_story.js +37 -0
  56. package/esm/types/4_inline_query_result.js +25 -6
  57. package/esm/types/4_message.d.ts +74 -2
  58. package/esm/types/4_message.js +15 -6
  59. package/esm/types/6_update.d.ts +20 -2
  60. package/package.json +1 -1
  61. package/script/0_deps.d.ts +4 -4
  62. package/script/0_deps.js +5 -5
  63. package/script/3_types.d.ts +9 -0
  64. package/script/3_types.js +9 -0
  65. package/script/4_constants.d.ts +1 -1
  66. package/script/4_constants.js +1 -1
  67. package/script/client/0_params.d.ts +14 -5
  68. package/script/client/0_types.d.ts +3 -2
  69. package/script/client/1_update_manager.js +65 -29
  70. package/script/client/2_message_manager.d.ts +41 -3
  71. package/script/client/2_message_manager.js +101 -40
  72. package/script/client/3_story_manager.d.ts +28 -0
  73. package/script/client/3_story_manager.js +147 -0
  74. package/script/client/4_client.d.ts +148 -60
  75. package/script/client/4_client.js +185 -59
  76. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/fmt/colors.d.ts +3 -0
  77. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/fmt/colors.js +3 -0
  78. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.d.ts +1 -0
  79. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.d.ts +1 -0
  80. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/mod.d.ts +0 -9
  81. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/mod.js +1 -11
  82. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/normalize_glob.d.ts +1 -0
  83. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/posix/join_globs.d.ts +1 -0
  84. package/script/deps/deno.land/{std@0.214.0/path/windows → std@0.216.0/path/posix}/mod.d.ts +0 -9
  85. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/mod.js +0 -10
  86. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/posix/normalize_glob.d.ts +1 -0
  87. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.d.ts +1 -0
  88. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/windows/mod.d.ts +0 -9
  89. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/mod.js +0 -10
  90. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.d.ts +1 -0
  91. package/script/tl/3_utilities.d.ts +7 -1
  92. package/script/tl/3_utilities.js +3 -3
  93. package/script/types/0_id.d.ts +2 -2
  94. package/script/types/0_link_preview.d.ts +15 -0
  95. package/script/types/0_link_preview.js +13 -0
  96. package/script/types/0_story_reference.d.ts +5 -0
  97. package/script/types/0_story_reference.js +2 -0
  98. package/script/types/0_venue.d.ts +1 -1
  99. package/script/types/1__getters.d.ts +2 -2
  100. package/script/types/1_input_message_content.d.ts +6 -1
  101. package/script/types/1_input_story_content.d.ts +15 -0
  102. package/script/types/1_input_story_content.js +2 -0
  103. package/script/types/1_story_interactive_area.d.ts +41 -0
  104. package/script/types/1_story_interactive_area.js +103 -0
  105. package/script/types/1_story_privacy.d.ts +22 -0
  106. package/script/types/1_story_privacy.js +62 -0
  107. package/script/types/1_story_reaction.d.ts +12 -0
  108. package/script/types/1_story_reaction.js +11 -0
  109. package/script/types/2_message_interactions.d.ts +1 -1
  110. package/script/types/2_story_content.d.ts +18 -0
  111. package/script/types/2_story_content.js +39 -0
  112. package/script/types/2_story_interactions.d.ts +10 -0
  113. package/script/types/2_story_interactions.js +12 -0
  114. package/script/types/3_story.d.ts +24 -0
  115. package/script/types/3_story.js +41 -0
  116. package/script/types/4_inline_query_result.js +25 -6
  117. package/script/types/4_message.d.ts +74 -2
  118. package/script/types/4_message.js +15 -6
  119. package/script/types/6_update.d.ts +20 -2
  120. package/esm/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +0 -8
  121. package/esm/deps/deno.land/std@0.214.0/path/posix/separator.js +0 -10
  122. package/esm/deps/deno.land/std@0.214.0/path/separator.d.ts +0 -8
  123. package/esm/deps/deno.land/std@0.214.0/path/separator.js +0 -11
  124. package/esm/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +0 -8
  125. package/esm/deps/deno.land/std@0.214.0/path/windows/separator.js +0 -10
  126. package/script/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +0 -8
  127. package/script/deps/deno.land/std@0.214.0/path/posix/separator.js +0 -13
  128. package/script/deps/deno.land/std@0.214.0/path/separator.d.ts +0 -8
  129. package/script/deps/deno.land/std@0.214.0/path/separator.js +0 -14
  130. package/script/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +0 -8
  131. package/script/deps/deno.land/std@0.214.0/path/windows/separator.js +0 -13
  132. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.d.ts +0 -0
  133. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.js +0 -0
  134. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.d.ts +0 -0
  135. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.js +0 -0
  136. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.d.ts +0 -0
  137. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.js +0 -0
  138. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.d.ts +0 -0
  139. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.js +0 -0
  140. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.d.ts +0 -0
  141. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.js +0 -0
  142. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.d.ts +0 -0
  143. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.js +0 -0
  144. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.d.ts +0 -0
  145. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.js +0 -0
  146. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.d.ts +0 -0
  147. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.js +0 -0
  148. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.d.ts +0 -0
  149. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.js +0 -0
  150. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.d.ts +0 -0
  151. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.js +0 -0
  152. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.d.ts +0 -0
  153. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.js +0 -0
  154. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.d.ts +0 -0
  155. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.js +0 -0
  156. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.d.ts +0 -0
  157. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.js +0 -0
  158. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.d.ts +0 -0
  159. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.js +0 -0
  160. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.d.ts +0 -0
  161. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.js +0 -0
  162. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.d.ts +0 -0
  163. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.js +0 -0
  164. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.d.ts +0 -0
  165. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.js +0 -0
  166. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.d.ts +0 -0
  167. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.js +0 -0
  168. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.d.ts +0 -0
  169. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.js +0 -0
  170. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.d.ts +0 -0
  171. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.js +0 -0
  172. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.d.ts +0 -0
  173. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.js +0 -0
  174. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.d.ts +0 -0
  175. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.js +0 -0
  176. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.d.ts +0 -0
  177. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.js +0 -0
  178. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.d.ts +0 -0
  179. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.js +0 -0
  180. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.d.ts +0 -0
  181. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.js +0 -0
  182. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.d.ts +0 -0
  183. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.js +0 -0
  184. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.d.ts +0 -0
  185. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.js +0 -0
  186. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.d.ts +0 -0
  187. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.js +0 -0
  188. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.d.ts +0 -0
  189. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.js +0 -0
  190. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.d.ts +0 -0
  191. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.js +0 -0
  192. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.d.ts +0 -0
  193. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.js +0 -0
  194. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.d.ts +0 -0
  195. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.js +0 -0
  196. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.d.ts +0 -0
  197. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.js +0 -0
  198. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.d.ts +0 -0
  199. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.js +0 -0
  200. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.d.ts +0 -0
  201. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.js +0 -0
  202. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.d.ts +0 -0
  203. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.js +0 -0
  204. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.d.ts +0 -0
  205. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.js +0 -0
  206. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.d.ts +0 -0
  207. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.js +0 -0
  208. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.d.ts +0 -0
  209. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.js +0 -0
  210. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.d.ts +0 -0
  211. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.js +0 -0
  212. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.js +0 -0
  214. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.js +0 -0
  216. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  218. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.js +0 -0
  220. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.js +0 -0
  222. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.js +0 -0
  224. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.js +0 -0
  226. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.js +0 -0
  228. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.js +0 -0
  230. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.js +0 -0
  232. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.js +0 -0
  234. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.js +0 -0
  236. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.js +0 -0
  244. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.d.ts +0 -0
  245. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.js +0 -0
  246. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.d.ts +0 -0
  247. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.js +0 -0
  248. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.d.ts +0 -0
  249. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.js +0 -0
  250. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.d.ts +0 -0
  251. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.js +0 -0
  252. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.js +0 -0
  263. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.d.ts +0 -0
  264. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.js +0 -0
  265. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.d.ts +0 -0
  266. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.js +0 -0
  267. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.d.ts +0 -0
  268. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.js +0 -0
  269. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize_glob.js +0 -0
  273. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.d.ts +0 -0
  274. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.js +0 -0
  275. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.d.ts +0 -0
  276. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.js +0 -0
  277. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.d.ts +0 -0
  278. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.js +0 -0
  279. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.d.ts +0 -0
  280. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.js +0 -0
  281. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.d.ts +0 -0
  282. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.js +0 -0
  283. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.d.ts +0 -0
  284. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.js +0 -0
  285. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.d.ts +0 -0
  286. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.js +0 -0
  287. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.d.ts +0 -0
  288. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.js +0 -0
  289. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.d.ts +0 -0
  290. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.js +0 -0
  291. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.d.ts +0 -0
  292. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.js +0 -0
  293. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.d.ts +0 -0
  294. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.js +0 -0
  295. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.d.ts +0 -0
  296. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.js +0 -0
  297. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.d.ts +0 -0
  298. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.js +0 -0
  299. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join_globs.js +0 -0
  300. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.d.ts +0 -0
  301. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.js +0 -0
  302. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize_glob.js +0 -0
  303. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.d.ts +0 -0
  304. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.js +0 -0
  305. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.d.ts +0 -0
  306. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.js +0 -0
  307. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.d.ts +0 -0
  308. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.js +0 -0
  309. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.d.ts +0 -0
  310. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.js +0 -0
  311. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.d.ts +0 -0
  312. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.js +0 -0
  313. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.d.ts +0 -0
  314. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.js +0 -0
  315. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.d.ts +0 -0
  316. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.js +0 -0
  317. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.d.ts +0 -0
  318. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.js +0 -0
  319. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.d.ts +0 -0
  320. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.js +0 -0
  321. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.d.ts +0 -0
  322. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.js +0 -0
  323. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.d.ts +0 -0
  324. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.js +0 -0
  325. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.d.ts +0 -0
  326. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.js +0 -0
  327. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.d.ts +0 -0
  328. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.js +0 -0
  329. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.d.ts +0 -0
  330. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.js +0 -0
  331. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.d.ts +0 -0
  332. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.js +0 -0
  333. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.d.ts +0 -0
  334. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.js +0 -0
  335. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.js +0 -0
  337. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.js +0 -0
  339. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.js +0 -0
  341. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.js +0 -0
  343. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.d.ts +0 -0
  344. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.js +0 -0
  345. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.js +0 -0
  346. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.js +0 -0
  348. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.js +0 -0
  349. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.d.ts +0 -0
  350. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.js +0 -0
  351. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.js +0 -0
  353. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.d.ts +0 -0
  354. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.js +0 -0
  355. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.js +0 -0
  357. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.d.ts +0 -0
  358. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.js +0 -0
  359. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.d.ts +0 -0
  360. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.js +0 -0
  361. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.d.ts +0 -0
  362. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.js +0 -0
  363. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.d.ts +0 -0
  364. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.js +0 -0
  365. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.d.ts +0 -0
  366. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.js +0 -0
  367. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.d.ts +0 -0
  368. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.js +0 -0
  369. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.d.ts +0 -0
  370. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.js +0 -0
  371. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.d.ts +0 -0
  372. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.js +0 -0
  373. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.d.ts +0 -0
  374. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.js +0 -0
  375. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.d.ts +0 -0
  376. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.js +0 -0
  377. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.d.ts +0 -0
  378. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.js +0 -0
  379. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.d.ts +0 -0
  380. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.js +0 -0
  381. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.d.ts +0 -0
  382. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.js +0 -0
  383. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.d.ts +0 -0
  384. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.js +0 -0
  385. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.d.ts +0 -0
  386. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.js +0 -0
  387. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.d.ts +0 -0
  388. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.js +0 -0
  389. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.d.ts +0 -0
  390. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.js +0 -0
  391. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.d.ts +0 -0
  392. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.js +0 -0
  393. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.d.ts +0 -0
  394. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.js +0 -0
  395. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.d.ts +0 -0
  396. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.js +0 -0
  397. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.d.ts +0 -0
  398. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.js +0 -0
  399. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.d.ts +0 -0
  400. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.js +0 -0
  401. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.d.ts +0 -0
  402. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.js +0 -0
  403. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.d.ts +0 -0
  404. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.js +0 -0
  405. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.d.ts +0 -0
  406. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.js +0 -0
  407. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.d.ts +0 -0
  408. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.js +0 -0
  409. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.d.ts +0 -0
  410. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.js +0 -0
  411. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.d.ts +0 -0
  412. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.js +0 -0
  413. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.d.ts +0 -0
  414. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.js +0 -0
  415. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.d.ts +0 -0
  416. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.js +0 -0
  417. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.d.ts +0 -0
  418. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.js +0 -0
  419. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.d.ts +0 -0
  420. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.js +0 -0
  421. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.d.ts +0 -0
  422. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.js +0 -0
  423. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.d.ts +0 -0
  424. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.js +0 -0
  425. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.d.ts +0 -0
  426. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.js +0 -0
  427. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.d.ts +0 -0
  428. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.js +0 -0
  429. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.d.ts +0 -0
  430. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.js +0 -0
  431. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.d.ts +0 -0
  432. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.js +0 -0
  433. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.d.ts +0 -0
  434. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.js +0 -0
  435. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.d.ts +0 -0
  436. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.js +0 -0
  437. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.d.ts +0 -0
  438. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.js +0 -0
  439. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.d.ts +0 -0
  440. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.js +0 -0
  441. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.d.ts +0 -0
  442. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.js +0 -0
  443. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  445. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.js +0 -0
  447. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.js +0 -0
  449. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.js +0 -0
  451. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.js +0 -0
  453. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.js +0 -0
  455. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.js +0 -0
  457. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.js +0 -0
  459. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.js +0 -0
  461. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.js +0 -0
  463. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.js +0 -0
  465. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.js +0 -0
  467. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.js +0 -0
  469. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.js +0 -0
  471. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.js +0 -0
  473. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.js +0 -0
  475. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.js +0 -0
  477. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.js +0 -0
  479. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.js +0 -0
  481. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.js +0 -0
  483. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.js +0 -0
  485. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.js +0 -0
  487. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.js +0 -0
  489. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.js +0 -0
  490. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.js +0 -0
  492. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.js +0 -0
  494. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.js +0 -0
  496. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.js +0 -0
  497. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.js +0 -0
  499. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize_glob.js +0 -0
  500. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.js +0 -0
  502. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.js +0 -0
  504. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.js +0 -0
  506. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.js +0 -0
  508. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.js +0 -0
  510. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.js +0 -0
  512. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.js +0 -0
  514. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.js +0 -0
  516. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.js +0 -0
  518. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.js +0 -0
  520. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.js +0 -0
  522. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.js +0 -0
  524. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.js +0 -0
  526. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join_globs.js +0 -0
  527. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.d.ts +0 -0
  528. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.js +0 -0
  529. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize_glob.js +0 -0
  530. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.js +0 -0
  532. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.js +0 -0
  534. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.js +0 -0
  536. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.js +0 -0
  538. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.js +0 -0
  540. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.js +0 -0
  542. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.js +0 -0
  544. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.js +0 -0
  546. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.js +0 -0
  548. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.js +0 -0
  550. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.js +0 -0
  552. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.js +0 -0
  554. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.js +0 -0
  556. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.js +0 -0
  558. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.js +0 -0
  560. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.js +0 -0
  562. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.d.ts +0 -0
  563. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.js +0 -0
  564. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.d.ts +0 -0
  565. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.js +0 -0
  566. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.d.ts +0 -0
  567. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.js +0 -0
  568. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.d.ts +0 -0
  569. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.js +0 -0
  570. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.d.ts +0 -0
  571. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.js +0 -0
  572. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.js +0 -0
  573. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.d.ts +0 -0
  574. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.js +0 -0
  575. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.js +0 -0
  576. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.d.ts +0 -0
  577. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.js +0 -0
  578. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.d.ts +0 -0
  579. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.js +0 -0
  580. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.d.ts +0 -0
  581. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.js +0 -0
  582. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.d.ts +0 -0
  583. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.js +0 -0
  584. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.d.ts +0 -0
  585. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.js +0 -0
@@ -62,47 +62,83 @@ class UpdateManager {
62
62
  }
63
63
  }
64
64
  async processResult(result) {
65
- if (result instanceof _2_tl_js_1.types.messages.Dialogs ||
66
- result instanceof _2_tl_js_1.types.messages.DialogsSlice ||
67
- result instanceof _2_tl_js_1.types.messages.Messages ||
68
- result instanceof _2_tl_js_1.types.messages.MessagesSlice ||
69
- result instanceof _2_tl_js_1.types.messages.ChannelMessages ||
70
- result instanceof _2_tl_js_1.types.messages.ChatFull ||
71
- result instanceof _2_tl_js_1.types.contacts.Found ||
65
+ if (result instanceof _2_tl_js_1.types.account.AuthorizationForm ||
66
+ result instanceof _2_tl_js_1.types.account.AutoSaveSettings ||
72
67
  result instanceof _2_tl_js_1.types.account.PrivacyRules ||
73
- result instanceof _2_tl_js_1.types.contacts.ResolvedPeer ||
74
- result instanceof _2_tl_js_1.types.channels.ChannelParticipants ||
68
+ result instanceof _2_tl_js_1.types.account.WebAuthorizations ||
69
+ result instanceof _2_tl_js_1.types.AttachMenuBots ||
70
+ result instanceof _2_tl_js_1.types.AttachMenuBotsBot ||
71
+ result instanceof _2_tl_js_1.types.channels.AdminLogResults ||
75
72
  result instanceof _2_tl_js_1.types.channels.ChannelParticipant ||
76
- result instanceof _2_tl_js_1.types.messages.PeerDialogs ||
73
+ result instanceof _2_tl_js_1.types.channels.ChannelParticipants ||
74
+ result instanceof _2_tl_js_1.types.channels.SendAsPeers ||
75
+ result instanceof _2_tl_js_1.types.ChatInvite ||
76
+ result instanceof _2_tl_js_1.types.chatlists.ChatlistInvite ||
77
+ result instanceof _2_tl_js_1.types.chatlists.ChatlistInviteAlready ||
78
+ result instanceof _2_tl_js_1.types.chatlists.ChatlistUpdates ||
79
+ result instanceof _2_tl_js_1.types.chatlists.ExportedInvites ||
80
+ result instanceof _2_tl_js_1.types.contacts.Blocked ||
81
+ result instanceof _2_tl_js_1.types.contacts.BlockedSlice ||
82
+ result instanceof _2_tl_js_1.types.contacts.Contacts ||
83
+ result instanceof _2_tl_js_1.types.contacts.Found ||
84
+ result instanceof _2_tl_js_1.types.contacts.ImportedContacts ||
85
+ result instanceof _2_tl_js_1.types.contacts.ResolvedPeer ||
77
86
  result instanceof _2_tl_js_1.types.contacts.TopPeers ||
78
- result instanceof _2_tl_js_1.types.channels.AdminLogResults ||
87
+ result instanceof _2_tl_js_1.types.help.PromoData ||
79
88
  result instanceof _2_tl_js_1.types.help.RecentMeUrls ||
89
+ result instanceof _2_tl_js_1.types.messages.BotResults ||
90
+ result instanceof _2_tl_js_1.types.messages.ChannelMessages ||
91
+ result instanceof _2_tl_js_1.types.messages.ChatAdminsWithInvites ||
92
+ result instanceof _2_tl_js_1.types.messages.ChatFull ||
93
+ result instanceof _2_tl_js_1.types.messages.ChatInviteImporters ||
94
+ result instanceof _2_tl_js_1.types.messages.Chats ||
95
+ result instanceof _2_tl_js_1.types.messages.ChatsSlice ||
96
+ result instanceof _2_tl_js_1.types.messages.Dialogs ||
97
+ result instanceof _2_tl_js_1.types.messages.DialogsSlice ||
98
+ result instanceof _2_tl_js_1.types.messages.DiscussionMessage ||
99
+ result instanceof _2_tl_js_1.types.messages.ExportedChatInvite ||
100
+ result instanceof _2_tl_js_1.types.messages.ExportedChatInviteReplaced ||
101
+ result instanceof _2_tl_js_1.types.messages.ExportedChatInvites ||
102
+ result instanceof _2_tl_js_1.types.messages.ForumTopics ||
103
+ result instanceof _2_tl_js_1.types.messages.HighScores ||
80
104
  result instanceof _2_tl_js_1.types.messages.InactiveChats ||
81
- result instanceof _2_tl_js_1.types.help.PromoData ||
105
+ result instanceof _2_tl_js_1.types.messages.MessageReactionsList ||
106
+ result instanceof _2_tl_js_1.types.messages.Messages ||
107
+ result instanceof _2_tl_js_1.types.messages.MessagesSlice ||
82
108
  result instanceof _2_tl_js_1.types.messages.MessageViews ||
83
- result instanceof _2_tl_js_1.types.messages.DiscussionMessage ||
109
+ result instanceof _2_tl_js_1.types.messages.PeerDialogs ||
110
+ result instanceof _2_tl_js_1.types.messages.PeerSettings ||
111
+ result instanceof _2_tl_js_1.types.messages.SearchResultsCalendar ||
112
+ result instanceof _2_tl_js_1.types.messages.SponsoredMessages ||
113
+ result instanceof _2_tl_js_1.types.messages.VotesList ||
114
+ result instanceof _2_tl_js_1.types.messages.WebPage ||
115
+ result instanceof _2_tl_js_1.types.payments.CheckedGiftCode ||
116
+ result instanceof _2_tl_js_1.types.payments.PaymentForm ||
117
+ result instanceof _2_tl_js_1.types.payments.PaymentReceipt ||
84
118
  result instanceof _2_tl_js_1.types.phone.GroupCall ||
85
119
  result instanceof _2_tl_js_1.types.phone.GroupParticipants ||
86
120
  result instanceof _2_tl_js_1.types.phone.JoinAsPeers ||
87
- result instanceof _2_tl_js_1.types.messages.SponsoredMessages ||
88
- result instanceof _2_tl_js_1.types.messages.SearchResultsCalendar ||
89
- result instanceof _2_tl_js_1.types.channels.SendAsPeers ||
90
- result instanceof _2_tl_js_1.types.users.UserFull ||
91
- result instanceof _2_tl_js_1.types.messages.PeerSettings ||
92
- result instanceof _2_tl_js_1.types.messages.MessageReactionsList ||
93
- result instanceof _2_tl_js_1.types.messages.ForumTopics ||
94
- result instanceof _2_tl_js_1.types.account.AutoSaveSettings ||
95
- result instanceof _2_tl_js_1.types.chatlists.ExportedInvites ||
96
- result instanceof _2_tl_js_1.types.chatlists.ChatlistInviteAlready ||
97
- result instanceof _2_tl_js_1.types.chatlists.ChatlistInvite ||
98
- result instanceof _2_tl_js_1.types.chatlists.ChatlistUpdates ||
99
- result instanceof _2_tl_js_1.types.messages.Chats ||
100
- result instanceof _2_tl_js_1.types.messages.ChatsSlice) {
101
- await this.processChats(result.chats);
121
+ result instanceof _2_tl_js_1.types.phone.PhoneCall ||
122
+ result instanceof _2_tl_js_1.types.photos.Photo ||
123
+ result instanceof _2_tl_js_1.types.photos.Photos ||
124
+ result instanceof _2_tl_js_1.types.photos.PhotosSlice ||
125
+ result instanceof _2_tl_js_1.types.premium.BoostsList ||
126
+ result instanceof _2_tl_js_1.types.premium.MyBoosts ||
127
+ result instanceof _2_tl_js_1.types.stats.MegagroupStats ||
128
+ result instanceof _2_tl_js_1.types.stats.PublicForwards ||
129
+ result instanceof _2_tl_js_1.types.stories.AllStories ||
130
+ result instanceof _2_tl_js_1.types.stories.PeerStories ||
131
+ result instanceof _2_tl_js_1.types.stories.Stories ||
132
+ result instanceof _2_tl_js_1.types.stories.StoryViews ||
133
+ result instanceof _2_tl_js_1.types.stories.StoryViewsList ||
134
+ result instanceof _2_tl_js_1.types.users.UserFull) {
135
+ if ("chats" in result) {
136
+ await this.processChats(result.chats);
137
+ }
102
138
  if ("users" in result) {
103
139
  await this.processUsers(result.users);
104
140
  }
105
- if ("messages" in result) {
141
+ if ("messages" in result && Array.isArray(result.messages)) {
106
142
  for (const message of result.messages) {
107
143
  if (message instanceof _2_tl_js_1.types.Message || message instanceof _2_tl_js_1.types.MessageService) {
108
144
  await __classPrivateFieldGet(this, _UpdateManager_c, "f").messageStorage.setMessage((0, _2_tl_js_1.peerToChatId)(message.peer_id), message.id, message);
@@ -1,5 +1,5 @@
1
1
  import { enums, types } from "../2_tl.js";
2
- import { ChatAction, ChatMember, FileSource, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
2
+ import { ChatAction, ChatMember, FileSource, FileType, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
3
3
  import { BanChatMemberParams, DeleteMessagesParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetHistoryParams, PinMessageParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams } from "./0_params.js";
4
4
  import { AddReactionParams, SetReactionsParams } from "./0_params.js";
5
5
  import { C as C_ } from "./0_types.js";
@@ -19,7 +19,38 @@ export declare class MessageManager {
19
19
  entities?: MessageEntity[];
20
20
  }): Promise<readonly [string, (import("../tl/2_types.js").MessageEntityMention_ | import("../tl/2_types.js").MessageEntityHashtag_ | import("../tl/2_types.js").MessageEntityBotCommand_ | import("../tl/2_types.js").MessageEntityUrl_ | import("../tl/2_types.js").MessageEntityEmail_ | import("../tl/2_types.js").MessageEntityBold_ | import("../tl/2_types.js").MessageEntityItalic_ | import("../tl/2_types.js").MessageEntityCode_ | import("../tl/2_types.js").MessageEntityPre_ | import("../tl/2_types.js").MessageEntityTextUrl_ | import("../tl/2_types.js").InputMessageEntityMentionName_ | import("../tl/2_types.js").MessageEntityPhone_ | import("../tl/2_types.js").MessageEntityCashtag_ | import("../tl/2_types.js").MessageEntityUnderline_ | import("../tl/2_types.js").MessageEntityStrike_ | import("../tl/2_types.js").MessageEntityBankCard_ | import("../tl/2_types.js").MessageEntitySpoiler_ | import("../tl/2_types.js").MessageEntityCustomEmoji_ | import("../tl/2_types.js").MessageEntityBlockquote_)[] | undefined]>;
21
21
  getStickerSetName(inputStickerSet: types.InputStickerSetID, hash?: number): Promise<string>;
22
- constructMessage(message_: enums.Message, r?: boolean): Promise<Message>;
22
+ constructMessage(message_: enums.Message, r?: boolean): Promise<import("../3_types.js").MessageLink | import("../3_types.js").MessagePhoto | import("../3_types.js").MessageDocument | import("../3_types.js").MessageVideo | import("../3_types.js").MessageSticker | import("../3_types.js").MessageAnimation | import("../3_types.js").MessageVoice | import("../3_types.js").MessageAudio | import("../3_types.js").MessageDice | import("../3_types.js").MessageVideoNote | import("../3_types.js").MessageContact | import("../3_types.js").MessageGame | import("../3_types.js").MessagePoll | import("../3_types.js").MessageVenue | import("../3_types.js").MessageLocation | import("../3_types.js").MessageNewChatMembers | import("../3_types.js").MessageLeftChatMember | import("../3_types.js").MessageNewChatTitle | import("../3_types.js").MessageNewChatPhoto | import("../3_types.js").MessageDeletedChatPhoto | import("../3_types.js").MessageSupergroupCreated | import("../3_types.js").MessageChannelCreated | import("../3_types.js").MessageAutoDeleteTimerChanged | import("../3_types.js").MessageChatMigratedTo | import("../3_types.js").MessageChatMigratedFrom | import("../3_types.js").MessagePinnedMessage | import("../3_types.js").MessageUserShared | import("../3_types.js").MessageWriteAccessAllowed | import("../3_types.js").MessageForumTopicCreated | import("../3_types.js").MessageForumTopicEdited | import("../3_types.js").MessageForumTopicClosed | import("../3_types.js").MessageForumTopicReopened | import("../3_types.js").MessageVideoChatScheduled | import("../3_types.js").MessageVideoChatStarted | import("../3_types.js").MessageVideoChatEnded | import("../3_types.js").MessageGiveaway | import("../3_types.js").MessageUnsupported | {
23
+ text: string;
24
+ entities: NonNullable<MessageEntity | null>[];
25
+ out: boolean;
26
+ id: number;
27
+ threadId?: number | undefined;
28
+ from?: import("../3_types.js").User | undefined;
29
+ senderChat?: import("../3_types.js").ChatP | undefined;
30
+ date: Date;
31
+ chat: import("../3_types.js").ChatP;
32
+ link?: string | undefined;
33
+ forwardFrom?: import("../3_types.js").User | undefined;
34
+ forwardFromChat?: import("../3_types.js").ChatP | undefined;
35
+ forwardId?: number | undefined;
36
+ forwardSignature?: string | undefined;
37
+ forwardSenderName?: string | undefined;
38
+ forwardDate?: Date | undefined;
39
+ isTopicMessage: boolean;
40
+ isAutomaticForward?: boolean | undefined;
41
+ replyToMessage?: Message | undefined;
42
+ replyToMessageId?: number | undefined;
43
+ reactions?: import("../3_types.js").MessageReaction[] | undefined;
44
+ replyQuote?: import("../3_types.js").ReplyQuote | undefined;
45
+ viaBot?: import("../3_types.js").User | undefined;
46
+ editDate?: Date | undefined;
47
+ hasProtectedContent?: boolean | undefined;
48
+ mediaGroupId?: string | undefined;
49
+ authorSignature?: string | undefined;
50
+ views?: number | undefined;
51
+ forwards?: number | undefined;
52
+ replyMarkup?: import("../3_types.js").ReplyMarkup | undefined;
53
+ }>;
23
54
  forwardMessages(from: ID, to: ID, messageIds: number[], params?: ForwardMessagesParams): Promise<Message[]>;
24
55
  getHistory(chatId: ID, params?: GetHistoryParams): Promise<Message[]>;
25
56
  usernameResolver: UsernameResolver;
@@ -35,8 +66,13 @@ export declare class MessageManager {
35
66
  sendVideo(chatId: ID, video: FileSource, params?: SendVideoParams): Promise<import("../3_types.js").MessageVideo>;
36
67
  sendDocument(chatId: ID, document: FileSource, params?: SendDocumentParams): Promise<import("../3_types.js").MessageDocument>;
37
68
  sendPhoto(chatId: ID, photo: FileSource, params?: SendPhotoParams): Promise<import("../3_types.js").MessagePhoto>;
69
+ resolveFileId(maybeFileId: string, expectedFileType: FileType): {
70
+ id: bigint;
71
+ access_hash: bigint;
72
+ file_reference: Uint8Array;
73
+ } | null;
38
74
  sendPoll(chatId: ID, question: string, options: [string, string, ...string[]], params?: SendPollParams): Promise<import("../3_types.js").MessagePoll>;
39
- editMessageReplyMarkup(chatId: ID, messageId: number, params?: EditMessageReplyMarkupParams): Promise<import("../3_types.js").MessageText | import("../3_types.js").MessagePhoto | import("../3_types.js").MessageDocument | import("../3_types.js").MessageVideo | import("../3_types.js").MessageSticker | import("../3_types.js").MessageAnimation | import("../3_types.js").MessageVoice | import("../3_types.js").MessageAudio | import("../3_types.js").MessageDice | import("../3_types.js").MessageVideoNote | import("../3_types.js").MessageContact | import("../3_types.js").MessageGame | import("../3_types.js").MessagePoll | import("../3_types.js").MessageVenue | import("../3_types.js").MessageLocation | import("../3_types.js").MessageNewChatMembers | import("../3_types.js").MessageLeftChatMember | import("../3_types.js").MessageNewChatTitle | import("../3_types.js").MessageNewChatPhoto | import("../3_types.js").MessageDeletedChatPhoto | import("../3_types.js").MessageGroupCreated | import("../3_types.js").MessageSupergroupCreated | import("../3_types.js").MessageChannelCreated | import("../3_types.js").MessageAutoDeleteTimerChanged | import("../3_types.js").MessageChatMigratedTo | import("../3_types.js").MessageChatMigratedFrom | import("../3_types.js").MessagePinnedMessage | import("../3_types.js").MessageUserShared | import("../3_types.js").MessageWriteAccessAllowed | import("../3_types.js").MessageForumTopicCreated | import("../3_types.js").MessageForumTopicEdited | import("../3_types.js").MessageForumTopicClosed | import("../3_types.js").MessageForumTopicReopened | import("../3_types.js").MessageVideoChatScheduled | import("../3_types.js").MessageVideoChatStarted | import("../3_types.js").MessageVideoChatEnded | import("../3_types.js").MessageGiveaway | import("../3_types.js").MessageUnsupported>;
75
+ editMessageReplyMarkup(chatId: ID, messageId: number, params?: EditMessageReplyMarkupParams): Promise<import("../3_types.js").MessageText | import("../3_types.js").MessageLink | import("../3_types.js").MessagePhoto | import("../3_types.js").MessageDocument | import("../3_types.js").MessageVideo | import("../3_types.js").MessageSticker | import("../3_types.js").MessageAnimation | import("../3_types.js").MessageVoice | import("../3_types.js").MessageAudio | import("../3_types.js").MessageDice | import("../3_types.js").MessageVideoNote | import("../3_types.js").MessageContact | import("../3_types.js").MessageGame | import("../3_types.js").MessagePoll | import("../3_types.js").MessageVenue | import("../3_types.js").MessageLocation | import("../3_types.js").MessageNewChatMembers | import("../3_types.js").MessageLeftChatMember | import("../3_types.js").MessageNewChatTitle | import("../3_types.js").MessageNewChatPhoto | import("../3_types.js").MessageDeletedChatPhoto | import("../3_types.js").MessageGroupCreated | import("../3_types.js").MessageSupergroupCreated | import("../3_types.js").MessageChannelCreated | import("../3_types.js").MessageAutoDeleteTimerChanged | import("../3_types.js").MessageChatMigratedTo | import("../3_types.js").MessageChatMigratedFrom | import("../3_types.js").MessagePinnedMessage | import("../3_types.js").MessageUserShared | import("../3_types.js").MessageWriteAccessAllowed | import("../3_types.js").MessageForumTopicCreated | import("../3_types.js").MessageForumTopicEdited | import("../3_types.js").MessageForumTopicClosed | import("../3_types.js").MessageForumTopicReopened | import("../3_types.js").MessageVideoChatScheduled | import("../3_types.js").MessageVideoChatStarted | import("../3_types.js").MessageVideoChatEnded | import("../3_types.js").MessageGiveaway | import("../3_types.js").MessageUnsupported>;
40
76
  editInlineMessageReplyMarkup(inlineMessageId: string, params?: EditMessageReplyMarkupParams): Promise<void>;
41
77
  editMessageText(chatId: ID, messageId: number, text: string, params?: EditMessageParams): Promise<import("../3_types.js").MessageText>;
42
78
  editInlineMessageText(inlineMessageId: string, text: string, params?: EditMessageParams): Promise<void>;
@@ -60,5 +96,7 @@ export declare class MessageManager {
60
96
  unbanChatMember(chatId: ID, memberId: ID): Promise<void>;
61
97
  setChatMemberRights(chatId: ID, memberId: ID, params?: SetChatMemberRightsParams): Promise<void>;
62
98
  getChatAdministrators(chatId: ID): Promise<ChatMember[]>;
99
+ enableJoinRequests(chatId: ID): Promise<void>;
100
+ disableJoinRequests(chatId: ID): Promise<void>;
63
101
  }
64
102
  export {};
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  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");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _MessageManager_instances, _MessageManager_c, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_resolveFileId, _MessageManager_sendReaction;
13
+ var _MessageManager_instances, _MessageManager_c, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_sendReaction, _MessageManager_toggleJoinRequests;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.MessageManager = void 0;
16
16
  const _0_deps_js_1 = require("../0_deps.js");
@@ -178,22 +178,47 @@ class MessageManager {
178
178
  const replyMarkup = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params);
179
179
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
180
180
  const randomId = (0, _1_utilities_js_1.getRandomId)();
181
- const noWebpage = params?.disableWebPagePreview ? true : undefined;
181
+ const noWebpage = params?.linkPreview?.disable ? true : undefined;
182
+ const invertMedia = params?.linkPreview?.aboveText ? true : undefined;
182
183
  const silent = params?.disableNotification ? true : undefined;
183
184
  const noforwards = params?.protectContent ? true : undefined;
184
185
  const sendAs = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveSendAs).call(this, params);
185
- const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMessage({
186
- peer,
187
- random_id: randomId,
188
- message,
189
- no_webpage: noWebpage,
190
- silent,
191
- noforwards,
192
- reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
193
- send_as: sendAs,
194
- entities,
195
- reply_markup: replyMarkup,
196
- });
186
+ let result;
187
+ if (!noWebpage && params?.linkPreview?.url) {
188
+ result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMedia({
189
+ peer,
190
+ random_id: randomId,
191
+ media: new _2_tl_js_1.types.InputMediaWebPage({
192
+ url: params.linkPreview.url,
193
+ force_large_media: params.linkPreview.largeMedia ? true : undefined,
194
+ force_small_media: params.linkPreview.smallMedia ? true : undefined,
195
+ optional: message.length ? undefined : true,
196
+ }),
197
+ message,
198
+ invert_media: invertMedia,
199
+ silent,
200
+ noforwards,
201
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
202
+ send_as: sendAs,
203
+ entities,
204
+ reply_markup: replyMarkup,
205
+ });
206
+ }
207
+ else {
208
+ result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMessage({
209
+ peer,
210
+ random_id: randomId,
211
+ message,
212
+ no_webpage: noWebpage,
213
+ invert_media: invertMedia,
214
+ silent,
215
+ noforwards,
216
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
217
+ send_as: sendAs,
218
+ entities,
219
+ reply_markup: replyMarkup,
220
+ });
221
+ }
197
222
  const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
198
223
  return (0, _3_types_js_2.assertMessageType)(message_, "text");
199
224
  }
@@ -376,7 +401,7 @@ class MessageManager {
376
401
  let media = null;
377
402
  const spoiler = params?.hasSpoiler ? true : undefined;
378
403
  if (typeof photo === "string") {
379
- const fileId = __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveFileId).call(this, photo, _3_types_js_2.FileType.Photo);
404
+ const fileId = this.resolveFileId(photo, _3_types_js_2.FileType.Photo);
380
405
  if (fileId != null) {
381
406
  media = new _2_tl_js_1.types.InputMediaPhoto({
382
407
  id: new _2_tl_js_1.types.InputPhoto(fileId),
@@ -397,6 +422,29 @@ class MessageManager {
397
422
  const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendMedia).call(this, chatId, media, params);
398
423
  return (0, _3_types_js_2.assertMessageType)(message, "photo");
399
424
  }
425
+ resolveFileId(maybeFileId, expectedFileType) {
426
+ let fileId = null;
427
+ try {
428
+ fileId = _3_types_js_2.FileID.decode(maybeFileId);
429
+ }
430
+ catch (err) {
431
+ d("fileId: %o", err);
432
+ }
433
+ if (fileId != null) {
434
+ if (fileId.fileType != expectedFileType) {
435
+ (0, _1_utilities_js_1.UNREACHABLE)();
436
+ }
437
+ if (fileId.params.mediaId == undefined || fileId.params.accessHash == undefined || fileId.params.fileReference == undefined) {
438
+ (0, _1_utilities_js_1.UNREACHABLE)();
439
+ }
440
+ return {
441
+ id: fileId.params.mediaId,
442
+ access_hash: fileId.params.accessHash,
443
+ file_reference: fileId.params.fileReference,
444
+ };
445
+ }
446
+ return null;
447
+ }
400
448
  async sendPoll(chatId, question, options, params) {
401
449
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
402
450
  const randomId = (0, _1_utilities_js_1.getRandomId)();
@@ -458,12 +506,25 @@ class MessageManager {
458
506
  }
459
507
  async editMessageText(chatId, messageId, text, params) {
460
508
  const [message, entities] = await this.parseText(text, params);
509
+ const noWebpage = params?.linkPreview?.disable ? true : undefined;
510
+ const invertMedia = params?.linkPreview?.aboveText ? true : undefined;
511
+ let media = undefined;
512
+ if (!noWebpage && params?.linkPreview?.url) {
513
+ media = new _2_tl_js_1.types.InputMediaWebPage({
514
+ url: params.linkPreview.url,
515
+ force_large_media: params.linkPreview.largeMedia ? true : undefined,
516
+ force_small_media: params.linkPreview.smallMedia ? true : undefined,
517
+ optional: message.length ? undefined : true,
518
+ });
519
+ }
461
520
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
462
521
  id: messageId,
463
522
  peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
464
523
  entities,
465
524
  message,
466
- no_webpage: params?.disableWebPagePreview ? true : undefined,
525
+ media,
526
+ no_webpage: noWebpage,
527
+ invert_media: invertMedia,
467
528
  reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
468
529
  });
469
530
  const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
@@ -472,11 +533,24 @@ class MessageManager {
472
533
  async editInlineMessageText(inlineMessageId, text, params) {
473
534
  const [message, entities] = await this.parseText(text, params);
474
535
  const id = (0, _3_types_js_2.deserializeInlineMessageId)(inlineMessageId);
536
+ const noWebpage = params?.linkPreview?.disable ? true : undefined;
537
+ const invertMedia = params?.linkPreview?.aboveText ? true : undefined;
538
+ let media = undefined;
539
+ if (!noWebpage && params?.linkPreview?.url) {
540
+ media = new _2_tl_js_1.types.InputMediaWebPage({
541
+ url: params.linkPreview.url,
542
+ force_large_media: params.linkPreview.largeMedia ? true : undefined,
543
+ force_small_media: params.linkPreview.smallMedia ? true : undefined,
544
+ optional: message.length ? undefined : true,
545
+ });
546
+ }
475
547
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
476
548
  id,
477
549
  entities,
478
550
  message,
479
- no_webpage: params?.disableWebPagePreview ? true : undefined,
551
+ media,
552
+ no_webpage: noWebpage,
553
+ invert_media: invertMedia,
480
554
  reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
481
555
  });
482
556
  }
@@ -787,6 +861,12 @@ class MessageManager {
787
861
  (0, _1_utilities_js_1.UNREACHABLE)();
788
862
  }
789
863
  }
864
+ async enableJoinRequests(chatId) {
865
+ await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_toggleJoinRequests).call(this, chatId, true);
866
+ }
867
+ async disableJoinRequests(chatId) {
868
+ await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_toggleJoinRequests).call(this, chatId, false);
869
+ }
790
870
  }
791
871
  exports.MessageManager = MessageManager;
792
872
  _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
@@ -830,7 +910,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
830
910
  let media = null;
831
911
  const spoiler = params?.hasSpoiler ? true : undefined;
832
912
  if (typeof document === "string") {
833
- const fileId = __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveFileId).call(this, document, fileType);
913
+ const fileId = this.resolveFileId(document, fileType);
834
914
  if (fileId != null) {
835
915
  media = new _2_tl_js_1.types.InputMediaDocument({
836
916
  id: new _2_tl_js_1.types.InputDocument(fileId),
@@ -890,28 +970,6 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
890
970
  entities: captionEntities,
891
971
  });
892
972
  return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
893
- }, _MessageManager_resolveFileId = function _MessageManager_resolveFileId(maybeFileId, expectedFileType) {
894
- let fileId = null;
895
- try {
896
- fileId = _3_types_js_2.FileID.decode(maybeFileId);
897
- }
898
- catch (err) {
899
- d("fileId: %o", err);
900
- }
901
- if (fileId != null) {
902
- if (fileId.fileType != expectedFileType) {
903
- (0, _1_utilities_js_1.UNREACHABLE)();
904
- }
905
- if (fileId.params.mediaId == undefined || fileId.params.accessHash == undefined || fileId.params.fileReference == undefined) {
906
- (0, _1_utilities_js_1.UNREACHABLE)();
907
- }
908
- return {
909
- id: fileId.params.mediaId,
910
- access_hash: fileId.params.accessHash,
911
- file_reference: fileId.params.fileReference,
912
- };
913
- }
914
- return null;
915
973
  }, _MessageManager_sendReaction = async function _MessageManager_sendReaction(chatId, messageId, reactions, params) {
916
974
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendReaction({
917
975
  peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
@@ -920,4 +978,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
920
978
  big: params?.big ? true : undefined,
921
979
  add_to_recent: params?.addToRecents ? true : undefined,
922
980
  });
981
+ }, _MessageManager_toggleJoinRequests = async function _MessageManager_toggleJoinRequests(chatId, enabled) {
982
+ const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
983
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.toggleJoinRequest({ channel, enabled });
923
984
  };
@@ -0,0 +1,28 @@
1
+ import { enums, types } from "../2_tl.js";
2
+ import { ID, Story, Update } from "../3_types.js";
3
+ import { InputStoryContent } from "../types/1_input_story_content.js";
4
+ import { CreateStoryParams } from "./0_params.js";
5
+ import { C as C_ } from "./0_types.js";
6
+ import { FileManager } from "./1_file_manager.js";
7
+ import { MessageManager } from "./2_message_manager.js";
8
+ type C = C_ & {
9
+ fileManager: FileManager;
10
+ messageManager: MessageManager;
11
+ };
12
+ type StoryManagerUpdate = types.UpdateStory;
13
+ export declare class StoryManager {
14
+ #private;
15
+ constructor(c: C);
16
+ createStory(chatId: ID, content: InputStoryContent, params?: CreateStoryParams): Promise<Story>;
17
+ getStories(chatId: ID, storyIds: number[]): Promise<Story[]>;
18
+ getStory(chatId: ID, storyId: number): Promise<Story>;
19
+ deleteStories(chatId: ID, storyIds: number[]): Promise<void>;
20
+ deleteStory(chatId: ID, storyId: number): Promise<void>;
21
+ addStoriesToHighlights(chatId: ID, storyIds: number[]): Promise<void>;
22
+ addStoryToHighlights(chatId: ID, storyId: number): Promise<void>;
23
+ removeStoriesFromHighlights(chatId: ID, storyIds: number[]): Promise<void>;
24
+ removeStoryFromHighlights(chatId: ID, storyId: number): Promise<void>;
25
+ static canHandleUpdate(update: enums.Update): update is StoryManagerUpdate;
26
+ handleUpdate(update: StoryManagerUpdate): Promise<Update | null>;
27
+ }
28
+ export {};
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ 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");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ 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");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _StoryManager_instances, _StoryManager_c, _StoryManager_updatesToStory, _StoryManager_togglePinned;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.StoryManager = void 0;
16
+ const _0_deps_js_1 = require("../0_deps.js");
17
+ const _1_utilities_js_1 = require("../1_utilities.js");
18
+ const _2_tl_js_1 = require("../2_tl.js");
19
+ const _3_types_js_1 = require("../3_types.js");
20
+ const _0_utilities_js_1 = require("./0_utilities.js");
21
+ class StoryManager {
22
+ constructor(c) {
23
+ _StoryManager_instances.add(this);
24
+ _StoryManager_c.set(this, void 0);
25
+ __classPrivateFieldSet(this, _StoryManager_c, c, "f");
26
+ }
27
+ async createStory(chatId, content, params) {
28
+ let media = null;
29
+ const source = "video" in content ? content.video : "photo" in content ? content.photo : (0, _1_utilities_js_1.UNREACHABLE)();
30
+ if (typeof source === "string") {
31
+ const fileId = __classPrivateFieldGet(this, _StoryManager_c, "f").messageManager.resolveFileId(source, _3_types_js_1.FileType.Photo);
32
+ if (fileId != null) {
33
+ media = new _2_tl_js_1.types.InputMediaPhoto({
34
+ id: new _2_tl_js_1.types.InputPhoto(fileId),
35
+ });
36
+ }
37
+ }
38
+ if (media == null) {
39
+ if (typeof source === "string" && (0, _0_utilities_js_1.isHttpUrl)(source)) {
40
+ throw new Error("URL not supported");
41
+ }
42
+ else {
43
+ const [contents, fileName_] = await (0, _0_utilities_js_1.getFileContents)(source);
44
+ const fileName = params?.fileName ?? fileName_;
45
+ const mimeType = (0, _0_deps_js_1.contentType)(fileName.split(".").slice(-1)[0]) ?? "application/octet-stream";
46
+ const file = await __classPrivateFieldGet(this, _StoryManager_c, "f").fileManager.upload(contents, { fileName, chunkSize: params?.chunkSize, signal: params?.signal });
47
+ if ("video" in content) {
48
+ media = new _2_tl_js_1.types.InputMediaUploadedDocument({
49
+ file,
50
+ attributes: [new _2_tl_js_1.types.DocumentAttributeFilename({ file_name: fileName }), new _2_tl_js_1.types.DocumentAttributeVideo({ w: 720, h: 1280, duration: content.duration })],
51
+ mime_type: mimeType,
52
+ });
53
+ }
54
+ else {
55
+ media = new _2_tl_js_1.types.InputMediaUploadedPhoto({ file });
56
+ }
57
+ }
58
+ }
59
+ const caption_ = params?.caption;
60
+ const parseResult = caption_ !== undefined ? await __classPrivateFieldGet(this, _StoryManager_c, "f").messageManager.parseText(caption_, { parseMode: params?.parseMode, entities: params?.captionEntities }) : undefined;
61
+ const caption = parseResult === undefined ? undefined : parseResult[0];
62
+ const entities = parseResult === undefined ? undefined : parseResult[1];
63
+ const peer = await __classPrivateFieldGet(this, _StoryManager_c, "f").getInputPeer(chatId);
64
+ const randomId = (0, _1_utilities_js_1.getRandomId)();
65
+ const privacyRules = await (0, _3_types_js_1.storyPrivacyToTlObject)(params?.privacy ?? { everyoneExcept: [] }, __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity);
66
+ const mediaAreas = new Array();
67
+ if (params?.interactiveAreas?.length) {
68
+ for (const area of params.interactiveAreas) {
69
+ mediaAreas.push(await (0, _3_types_js_1.storyInteractiveAreaToTlObject)(area, __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity));
70
+ }
71
+ }
72
+ const updates = await __classPrivateFieldGet(this, _StoryManager_c, "f").api.stories.sendStory({
73
+ peer,
74
+ random_id: randomId,
75
+ media,
76
+ privacy_rules: privacyRules,
77
+ caption,
78
+ entities,
79
+ noforwards: params?.protectContent ? true : undefined,
80
+ period: params?.activeFor,
81
+ pinned: params?.highlight ? true : undefined,
82
+ media_areas: mediaAreas,
83
+ });
84
+ return await __classPrivateFieldGet(this, _StoryManager_instances, "m", _StoryManager_updatesToStory).call(this, updates);
85
+ }
86
+ async getStories(chatId, storyIds) {
87
+ const peer = await __classPrivateFieldGet(this, _StoryManager_c, "f").getInputPeer(chatId);
88
+ const stories_ = await __classPrivateFieldGet(this, _StoryManager_c, "f").api.stories.getStoriesByID({ peer, id: storyIds });
89
+ const stories = new Array();
90
+ for (const story of stories_.stories) {
91
+ stories.push(await (0, _3_types_js_1.constructStory)(story[_2_tl_js_1.as](_2_tl_js_1.types.StoryItem), (0, _2_tl_js_1.inputPeerToPeer)(peer), __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity));
92
+ }
93
+ return stories;
94
+ }
95
+ async getStory(chatId, storyId) {
96
+ return await this.getStories(chatId, [storyId]).then((v) => v[0] ?? null);
97
+ }
98
+ async deleteStories(chatId, storyIds) {
99
+ const peer = await __classPrivateFieldGet(this, _StoryManager_c, "f").getInputPeer(chatId);
100
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").api.stories.deleteStories({ peer, id: storyIds });
101
+ }
102
+ async deleteStory(chatId, storyId) {
103
+ await this.deleteStories(chatId, [storyId]);
104
+ }
105
+ async addStoriesToHighlights(chatId, storyIds) {
106
+ await __classPrivateFieldGet(this, _StoryManager_instances, "m", _StoryManager_togglePinned).call(this, chatId, storyIds, true);
107
+ }
108
+ async addStoryToHighlights(chatId, storyId) {
109
+ await this.addStoriesToHighlights(chatId, [storyId]);
110
+ }
111
+ async removeStoriesFromHighlights(chatId, storyIds) {
112
+ await __classPrivateFieldGet(this, _StoryManager_instances, "m", _StoryManager_togglePinned).call(this, chatId, storyIds, false);
113
+ }
114
+ async removeStoryFromHighlights(chatId, storyId) {
115
+ await this.removeStoriesFromHighlights(chatId, [storyId]);
116
+ }
117
+ static canHandleUpdate(update) {
118
+ return update instanceof _2_tl_js_1.types.UpdateStory;
119
+ }
120
+ async handleUpdate(update) {
121
+ if (update.story instanceof _2_tl_js_1.types.StoryItemDeleted) {
122
+ const chatId = (0, _2_tl_js_1.peerToChatId)(update.peer);
123
+ const storyId = update.story.id;
124
+ return { deletedStory: { chatId, storyId } };
125
+ }
126
+ else if (update.story instanceof _2_tl_js_1.types.StoryItem) {
127
+ const story = await (0, _3_types_js_1.constructStory)(update.story, update.peer, __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity);
128
+ return { story };
129
+ }
130
+ else {
131
+ return null;
132
+ }
133
+ }
134
+ }
135
+ exports.StoryManager = StoryManager;
136
+ _StoryManager_c = new WeakMap(), _StoryManager_instances = new WeakSet(), _StoryManager_updatesToStory = async function _StoryManager_updatesToStory(updates) {
137
+ if (updates instanceof _2_tl_js_1.types.Updates) {
138
+ const updateStory = updates.updates.find((v) => v instanceof _2_tl_js_1.types.UpdateStory);
139
+ if (updateStory && updateStory.story instanceof _2_tl_js_1.types.StoryItem) {
140
+ return await (0, _3_types_js_1.constructStory)(updateStory.story, updateStory.peer, __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity);
141
+ }
142
+ }
143
+ (0, _1_utilities_js_1.UNREACHABLE)();
144
+ }, _StoryManager_togglePinned = async function _StoryManager_togglePinned(chatId, storyIds, pinned) {
145
+ const peer = await __classPrivateFieldGet(this, _StoryManager_c, "f").getInputPeer(chatId);
146
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").api.stories.togglePinned({ peer, id: storyIds, pinned });
147
+ };