@mtkruto/node 0.1.147 → 0.1.149

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 (621) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +5 -5
  3. package/esm/1_utilities.d.ts +1 -0
  4. package/esm/1_utilities.js +1 -0
  5. package/esm/3_types.d.ts +2 -2
  6. package/esm/3_types.js +2 -2
  7. package/esm/4_constants.d.ts +1 -1
  8. package/esm/4_constants.js +1 -1
  9. package/esm/client/0_types.d.ts +1 -0
  10. package/esm/client/1_file_manager.js +2 -1
  11. package/esm/client/1_reaction_manager.js +3 -3
  12. package/esm/client/1_update_manager.js +10 -10
  13. package/esm/client/2_message_manager.d.ts +2 -0
  14. package/esm/client/2_message_manager.js +42 -31
  15. package/esm/client/3_chat_list_manager.js +1 -1
  16. package/esm/client/4_client.d.ts +21 -0
  17. package/esm/client/4_client.js +89 -40
  18. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.js +3 -2
  19. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.js +2 -2
  20. package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/fmt/colors.d.ts +1 -1
  21. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/fmt/colors.js +3 -1
  22. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.d.ts +10 -8
  23. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.js +4 -4
  24. package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/media_types/extension.d.ts +3 -3
  25. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extension.js +3 -3
  26. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.d.ts +1 -1
  27. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.js +1 -1
  28. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.d.ts +3 -3
  29. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.js +3 -3
  30. package/esm/deps/deno.land/std@0.214.0/media_types/parse_media_type.d.ts +23 -0
  31. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/parse_media_type.js +7 -21
  32. package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/media_types/type_by_extension.d.ts +2 -2
  33. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/type_by_extension.js +2 -2
  34. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.d.ts +1 -2
  35. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.js +2 -2
  36. package/esm/deps/deno.land/std@0.214.0/path/constants.d.ts +3 -0
  37. package/esm/deps/deno.land/std@0.214.0/path/constants.js +6 -0
  38. package/esm/deps/deno.land/std@0.214.0/path/mod.d.ts +65 -0
  39. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/mod.js +10 -5
  40. package/{script/deps/deno.land/std@0.212.0/path → esm/deps/deno.land/std@0.214.0/path/posix}/common.d.ts +1 -2
  41. package/esm/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/common.js +2 -2
  42. package/esm/deps/deno.land/std@0.214.0/path/posix/constants.d.ts +3 -0
  43. package/esm/deps/deno.land/{std@0.212.0/path/posix/separator.js → std@0.214.0/path/posix/constants.js} +3 -2
  44. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.js +2 -2
  45. package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/path/posix/mod.d.ts +8 -1
  46. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/mod.js +8 -1
  47. package/esm/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/normalize_glob.js +2 -2
  48. package/esm/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +8 -0
  49. package/esm/deps/deno.land/std@0.214.0/path/posix/separator.js +10 -0
  50. package/esm/deps/deno.land/std@0.214.0/path/separator.d.ts +8 -0
  51. package/esm/deps/deno.land/std@0.214.0/path/separator.js +11 -0
  52. package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/common.d.ts +1 -2
  53. package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/common.js +2 -2
  54. package/esm/deps/deno.land/std@0.214.0/path/windows/constants.d.ts +3 -0
  55. package/esm/deps/deno.land/std@0.214.0/path/windows/constants.js +5 -0
  56. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.js +2 -2
  57. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.d.ts +7 -0
  58. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.js +7 -0
  59. package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/normalize_glob.js +2 -2
  60. package/esm/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +8 -0
  61. package/esm/deps/deno.land/std@0.214.0/path/windows/separator.js +10 -0
  62. package/esm/storage/0_storage.d.ts +63 -11
  63. package/esm/storage/0_storage.js +159 -88
  64. package/esm/storage/1_storage_memory.d.ts +4 -1
  65. package/esm/storage/1_storage_memory.js +29 -9
  66. package/esm/tl/3_utilities.d.ts +5 -2
  67. package/esm/tl/3_utilities.js +32 -6
  68. package/esm/types/0_giveaway_parameters.d.ts +1 -0
  69. package/esm/types/0_login_url.d.ts +1 -0
  70. package/esm/types/0_mask_position.d.ts +1 -0
  71. package/esm/types/0_message_reference.d.ts +5 -0
  72. package/esm/types/0_poll_option.d.ts +1 -0
  73. package/esm/types/0_price_tag.d.ts +5 -0
  74. package/esm/types/0_restriction_reason.d.ts +1 -0
  75. package/esm/types/1_giveaway.d.ts +1 -0
  76. package/esm/types/1_inline_query_result_button.d.ts +1 -0
  77. package/esm/types/1_input_message_content.d.ts +2 -2
  78. package/esm/types/1_poll.d.ts +1 -0
  79. package/esm/types/1_reaction_count.d.ts +1 -0
  80. package/esm/types/1_reply_quote.d.ts +1 -0
  81. package/esm/types/1_sticker.d.ts +1 -0
  82. package/esm/types/2_chat_member.d.ts +1 -0
  83. package/esm/types/2_chosen_inline_result.d.ts +1 -0
  84. package/esm/types/2_game.d.ts +1 -0
  85. package/esm/types/2_message_interactions.d.ts +1 -0
  86. package/esm/types/2_message_reactions.d.ts +1 -0
  87. package/esm/types/3_chat_member_updated.d.ts +1 -0
  88. package/esm/types/3_reply_markup.d.ts +1 -0
  89. package/esm/types/4_inline_query_result.d.ts +1 -1
  90. package/esm/types/4_message.d.ts +1 -0
  91. package/esm/types/5_callback_query.d.ts +1 -0
  92. package/esm/types/5_callback_query.js +17 -2
  93. package/esm/types/6_update.d.ts +2 -2
  94. package/esm/utilities/0_cache_map.d.ts +6 -0
  95. package/esm/utilities/0_cache_map.js +30 -0
  96. package/package.json +1 -1
  97. package/script/0_deps.d.ts +4 -4
  98. package/script/0_deps.js +5 -5
  99. package/script/1_utilities.d.ts +1 -0
  100. package/script/1_utilities.js +1 -0
  101. package/script/3_types.d.ts +2 -2
  102. package/script/3_types.js +2 -2
  103. package/script/4_constants.d.ts +1 -1
  104. package/script/4_constants.js +1 -1
  105. package/script/client/0_types.d.ts +1 -0
  106. package/script/client/1_file_manager.js +2 -1
  107. package/script/client/1_reaction_manager.js +3 -3
  108. package/script/client/1_update_manager.js +10 -10
  109. package/script/client/2_message_manager.d.ts +2 -0
  110. package/script/client/2_message_manager.js +41 -30
  111. package/script/client/3_chat_list_manager.js +1 -1
  112. package/script/client/4_client.d.ts +21 -0
  113. package/script/client/4_client.js +88 -39
  114. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.js +4 -3
  115. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.js +2 -2
  116. package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/fmt/colors.d.ts +1 -1
  117. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/fmt/colors.js +4 -1
  118. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.d.ts +10 -8
  119. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.js +4 -4
  120. package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/media_types/extension.d.ts +3 -3
  121. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extension.js +3 -3
  122. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.d.ts +1 -1
  123. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.js +1 -1
  124. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.d.ts +3 -3
  125. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.js +3 -3
  126. package/script/deps/deno.land/std@0.214.0/media_types/parse_media_type.d.ts +23 -0
  127. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/parse_media_type.js +7 -21
  128. package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/media_types/type_by_extension.d.ts +2 -2
  129. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/type_by_extension.js +2 -2
  130. package/{esm/deps/deno.land/std@0.212.0/path/windows → script/deps/deno.land/std@0.214.0/path}/common.d.ts +1 -2
  131. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.js +2 -2
  132. package/script/deps/deno.land/std@0.214.0/path/constants.d.ts +3 -0
  133. package/script/deps/deno.land/std@0.214.0/path/constants.js +9 -0
  134. package/script/deps/deno.land/std@0.214.0/path/mod.d.ts +65 -0
  135. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/mod.js +10 -5
  136. package/script/deps/deno.land/std@0.214.0/path/posix/common.d.ts +13 -0
  137. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/common.js +2 -2
  138. package/script/deps/deno.land/std@0.214.0/path/posix/constants.d.ts +3 -0
  139. package/script/deps/deno.land/{std@0.212.0/path/posix/separator.js → std@0.214.0/path/posix/constants.js} +4 -3
  140. package/script/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/join_globs.js +2 -2
  141. package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/path/posix/mod.d.ts +8 -1
  142. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/mod.js +8 -1
  143. package/script/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/normalize_glob.js +2 -2
  144. package/script/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +8 -0
  145. package/script/deps/deno.land/std@0.214.0/path/posix/separator.js +13 -0
  146. package/script/deps/deno.land/std@0.214.0/path/separator.d.ts +8 -0
  147. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/separator.js +6 -0
  148. package/script/deps/deno.land/std@0.214.0/path/windows/common.d.ts +13 -0
  149. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/common.js +2 -2
  150. package/script/deps/deno.land/std@0.214.0/path/windows/constants.d.ts +3 -0
  151. package/script/deps/deno.land/{std@0.212.0/path/windows/separator.js → std@0.214.0/path/windows/constants.js} +4 -3
  152. package/script/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/join_globs.js +2 -2
  153. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.d.ts +7 -0
  154. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.js +7 -0
  155. package/script/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/normalize_glob.js +2 -2
  156. package/script/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +8 -0
  157. package/script/deps/deno.land/std@0.214.0/path/windows/separator.js +13 -0
  158. package/script/storage/0_storage.d.ts +63 -11
  159. package/script/storage/0_storage.js +159 -88
  160. package/script/storage/1_storage_memory.d.ts +4 -1
  161. package/script/storage/1_storage_memory.js +29 -9
  162. package/script/tl/3_utilities.d.ts +5 -2
  163. package/script/tl/3_utilities.js +35 -7
  164. package/script/types/0_giveaway_parameters.d.ts +1 -0
  165. package/script/types/0_login_url.d.ts +1 -0
  166. package/script/types/0_mask_position.d.ts +1 -0
  167. package/script/types/0_message_reference.d.ts +5 -0
  168. package/script/types/0_poll_option.d.ts +1 -0
  169. package/script/types/0_price_tag.d.ts +5 -0
  170. package/script/types/0_restriction_reason.d.ts +1 -0
  171. package/script/types/1_giveaway.d.ts +1 -0
  172. package/script/types/1_inline_query_result_button.d.ts +1 -0
  173. package/script/types/1_input_message_content.d.ts +2 -2
  174. package/script/types/1_poll.d.ts +1 -0
  175. package/script/types/1_reaction_count.d.ts +1 -0
  176. package/script/types/1_reply_quote.d.ts +1 -0
  177. package/script/types/1_sticker.d.ts +1 -0
  178. package/script/types/2_chat_member.d.ts +1 -0
  179. package/script/types/2_chosen_inline_result.d.ts +1 -0
  180. package/script/types/2_game.d.ts +1 -0
  181. package/script/types/2_message_interactions.d.ts +1 -0
  182. package/script/types/2_message_reactions.d.ts +1 -0
  183. package/script/types/3_chat_member_updated.d.ts +1 -0
  184. package/script/types/3_reply_markup.d.ts +1 -0
  185. package/script/types/4_inline_query_result.d.ts +1 -1
  186. package/script/types/4_message.d.ts +1 -0
  187. package/script/types/5_callback_query.d.ts +1 -0
  188. package/script/types/5_callback_query.js +17 -1
  189. package/script/types/6_update.d.ts +2 -2
  190. package/script/utilities/0_cache_map.d.ts +6 -0
  191. package/script/utilities/0_cache_map.js +34 -0
  192. package/esm/deps/deno.land/std@0.212.0/media_types/parse_media_type.d.ts +0 -37
  193. package/esm/deps/deno.land/std@0.212.0/path/mod.d.ts +0 -28
  194. package/esm/deps/deno.land/std@0.212.0/path/posix/separator.d.ts +0 -2
  195. package/esm/deps/deno.land/std@0.212.0/path/separator.d.ts +0 -2
  196. package/esm/deps/deno.land/std@0.212.0/path/separator.js +0 -5
  197. package/esm/deps/deno.land/std@0.212.0/path/windows/separator.d.ts +0 -2
  198. package/esm/deps/deno.land/std@0.212.0/path/windows/separator.js +0 -4
  199. package/esm/types/0_labeled_price.d.ts +0 -4
  200. package/esm/types/0_message_identifier.d.ts +0 -4
  201. package/script/deps/deno.land/std@0.212.0/media_types/parse_media_type.d.ts +0 -37
  202. package/script/deps/deno.land/std@0.212.0/path/mod.d.ts +0 -28
  203. package/script/deps/deno.land/std@0.212.0/path/posix/common.d.ts +0 -14
  204. package/script/deps/deno.land/std@0.212.0/path/posix/separator.d.ts +0 -2
  205. package/script/deps/deno.land/std@0.212.0/path/separator.d.ts +0 -2
  206. package/script/deps/deno.land/std@0.212.0/path/windows/common.d.ts +0 -14
  207. package/script/deps/deno.land/std@0.212.0/path/windows/separator.d.ts +0 -2
  208. package/script/types/0_labeled_price.d.ts +0 -4
  209. package/script/types/0_message_identifier.d.ts +0 -4
  210. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.d.ts +0 -0
  211. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.js +0 -0
  212. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.js +0 -0
  214. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.js +0 -0
  216. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.js +0 -0
  218. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.js +0 -0
  220. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.js +0 -0
  222. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.js +0 -0
  224. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.js +0 -0
  226. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.js +0 -0
  228. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.js +0 -0
  230. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.js +0 -0
  232. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.js +0 -0
  234. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.js +0 -0
  236. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.d.ts +0 -0
  244. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.js +0 -0
  245. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.d.ts +0 -0
  246. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.js +0 -0
  247. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.d.ts +0 -0
  248. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.js +0 -0
  249. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.d.ts +0 -0
  250. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.js +0 -0
  251. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.d.ts +0 -0
  252. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.js +0 -0
  253. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.d.ts +0 -0
  254. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.js +0 -0
  255. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.d.ts +0 -0
  256. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.js +0 -0
  257. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.d.ts +0 -0
  258. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.js +0 -0
  259. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.d.ts +0 -0
  260. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.js +0 -0
  261. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.d.ts +0 -0
  262. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.js +0 -0
  263. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.d.ts +0 -0
  264. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.js +0 -0
  265. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.d.ts +0 -0
  266. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.js +0 -0
  267. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.d.ts +0 -0
  268. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.js +0 -0
  269. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.d.ts +0 -0
  270. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.js +0 -0
  271. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.d.ts +0 -0
  272. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.js +0 -0
  273. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.d.ts +0 -0
  274. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.d.ts +0 -0
  275. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.js +0 -0
  276. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.d.ts +0 -0
  277. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.js +0 -0
  278. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.d.ts +0 -0
  279. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.js +0 -0
  280. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  281. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  282. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.d.ts +0 -0
  283. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.js +0 -0
  284. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.d.ts +0 -0
  285. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.js +0 -0
  286. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.d.ts +0 -0
  287. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.js +0 -0
  288. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.d.ts +0 -0
  289. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.js +0 -0
  290. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.d.ts +0 -0
  291. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.js +0 -0
  292. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.d.ts +0 -0
  293. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.js +0 -0
  294. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.d.ts +0 -0
  295. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.js +0 -0
  296. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  297. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.js +0 -0
  298. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.d.ts +0 -0
  299. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.js +0 -0
  300. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.d.ts +0 -0
  301. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.js +0 -0
  302. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.d.ts +0 -0
  303. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.js +0 -0
  304. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  305. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.js +0 -0
  306. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.d.ts +0 -0
  307. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.js +0 -0
  308. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.d.ts +0 -0
  309. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.js +0 -0
  310. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.d.ts +0 -0
  311. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.js +0 -0
  312. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.d.ts +0 -0
  313. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.js +0 -0
  314. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.d.ts +0 -0
  315. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.js +0 -0
  316. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.d.ts +0 -0
  317. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.js +0 -0
  318. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.d.ts +0 -0
  319. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.js +0 -0
  320. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.d.ts +0 -0
  321. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.js +0 -0
  322. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.d.ts +0 -0
  323. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.js +0 -0
  324. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.d.ts +0 -0
  325. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.js +0 -0
  326. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.d.ts +0 -0
  327. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.js +0 -0
  328. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.d.ts +0 -0
  329. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.js +0 -0
  330. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.d.ts +0 -0
  331. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.js +0 -0
  332. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.d.ts +0 -0
  333. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.js +0 -0
  334. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.d.ts +0 -0
  335. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.js +0 -0
  336. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.js +0 -0
  338. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.js +0 -0
  340. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.js +0 -0
  342. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.js +0 -0
  344. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.js +0 -0
  346. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.js +0 -0
  348. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.js +0 -0
  350. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.js +0 -0
  352. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.js +0 -0
  354. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.js +0 -0
  356. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.js +0 -0
  358. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.d.ts +0 -0
  360. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.js +0 -0
  361. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize_glob.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.js +0 -0
  364. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.js +0 -0
  366. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.js +0 -0
  368. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.js +0 -0
  370. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.js +0 -0
  372. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.js +0 -0
  374. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.d.ts +0 -0
  375. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.js +0 -0
  376. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.d.ts +0 -0
  377. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.js +0 -0
  378. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.d.ts +0 -0
  379. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.js +0 -0
  380. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.d.ts +0 -0
  381. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.js +0 -0
  382. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.d.ts +0 -0
  383. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.js +0 -0
  384. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.d.ts +0 -0
  385. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.js +0 -0
  386. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.js +0 -0
  388. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.js +0 -0
  390. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.d.ts +0 -0
  391. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.js +0 -0
  392. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.d.ts +0 -0
  393. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.js +0 -0
  394. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.d.ts +0 -0
  395. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.js +0 -0
  396. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.d.ts +0 -0
  397. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.js +0 -0
  398. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.d.ts +0 -0
  399. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.js +0 -0
  400. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.d.ts +0 -0
  401. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.d.ts +0 -0
  402. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.js +0 -0
  403. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize_glob.d.ts +0 -0
  404. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.d.ts +0 -0
  405. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.js +0 -0
  406. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.d.ts +0 -0
  407. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.js +0 -0
  408. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.d.ts +0 -0
  409. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.js +0 -0
  410. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.d.ts +0 -0
  411. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.js +0 -0
  412. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.d.ts +0 -0
  413. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.js +0 -0
  414. /package/esm/types/{0_labeled_price.js → 0_message_reference.js} +0 -0
  415. /package/esm/types/{0_message_identifier.js → 0_price_tag.js} +0 -0
  416. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.d.ts +0 -0
  417. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.js +0 -0
  418. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.d.ts +0 -0
  419. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.js +0 -0
  420. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.d.ts +0 -0
  421. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.js +0 -0
  422. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.js +0 -0
  424. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.js +0 -0
  426. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.js +0 -0
  428. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.js +0 -0
  430. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.d.ts +0 -0
  431. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.js +0 -0
  432. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.d.ts +0 -0
  433. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.js +0 -0
  434. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.d.ts +0 -0
  435. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.js +0 -0
  436. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.d.ts +0 -0
  437. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.js +0 -0
  438. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.d.ts +0 -0
  439. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.js +0 -0
  440. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.d.ts +0 -0
  441. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.js +0 -0
  442. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.d.ts +0 -0
  443. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.js +0 -0
  444. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.d.ts +0 -0
  445. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.js +0 -0
  446. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.d.ts +0 -0
  447. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.js +0 -0
  448. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.d.ts +0 -0
  449. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.js +0 -0
  451. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.js +0 -0
  453. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.js +0 -0
  455. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.js +0 -0
  457. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.js +0 -0
  459. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.js +0 -0
  461. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.js +0 -0
  463. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.js +0 -0
  465. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.js +0 -0
  467. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.js +0 -0
  469. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.js +0 -0
  471. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.js +0 -0
  473. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.js +0 -0
  475. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.js +0 -0
  477. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.js +0 -0
  479. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.js +0 -0
  482. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.js +0 -0
  484. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.js +0 -0
  486. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  488. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.js +0 -0
  490. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.js +0 -0
  492. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.js +0 -0
  494. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.js +0 -0
  496. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.js +0 -0
  498. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.js +0 -0
  500. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.js +0 -0
  502. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.js +0 -0
  504. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.js +0 -0
  506. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.js +0 -0
  508. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.js +0 -0
  510. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.js +0 -0
  512. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.js +0 -0
  514. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.js +0 -0
  516. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.js +0 -0
  518. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.js +0 -0
  520. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.js +0 -0
  522. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.js +0 -0
  524. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.js +0 -0
  526. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.js +0 -0
  528. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.js +0 -0
  530. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.js +0 -0
  532. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.js +0 -0
  534. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.js +0 -0
  536. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.js +0 -0
  538. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.js +0 -0
  540. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.js +0 -0
  542. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.js +0 -0
  544. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.js +0 -0
  546. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.js +0 -0
  548. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.js +0 -0
  550. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.js +0 -0
  552. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.js +0 -0
  554. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.js +0 -0
  556. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.js +0 -0
  558. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.js +0 -0
  560. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.js +0 -0
  562. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.d.ts +0 -0
  563. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.js +0 -0
  564. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.d.ts +0 -0
  565. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.d.ts +0 -0
  566. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.js +0 -0
  567. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize_glob.d.ts +0 -0
  568. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.d.ts +0 -0
  569. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.js +0 -0
  570. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.d.ts +0 -0
  571. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.js +0 -0
  572. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.d.ts +0 -0
  573. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.js +0 -0
  574. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.d.ts +0 -0
  575. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.js +0 -0
  576. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.d.ts +0 -0
  577. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.js +0 -0
  578. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.d.ts +0 -0
  579. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.js +0 -0
  580. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.d.ts +0 -0
  581. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.js +0 -0
  582. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.d.ts +0 -0
  583. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.js +0 -0
  584. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.d.ts +0 -0
  585. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.js +0 -0
  586. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.d.ts +0 -0
  587. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.js +0 -0
  588. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.d.ts +0 -0
  589. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.js +0 -0
  590. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.d.ts +0 -0
  591. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.js +0 -0
  592. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.d.ts +0 -0
  593. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.js +0 -0
  594. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.d.ts +0 -0
  595. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.js +0 -0
  596. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.d.ts +0 -0
  597. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.js +0 -0
  598. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.d.ts +0 -0
  599. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.js +0 -0
  600. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.d.ts +0 -0
  601. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.js +0 -0
  602. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.d.ts +0 -0
  603. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.js +0 -0
  604. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.d.ts +0 -0
  605. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.js +0 -0
  606. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.d.ts +0 -0
  607. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.d.ts +0 -0
  608. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.js +0 -0
  609. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize_glob.d.ts +0 -0
  610. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.d.ts +0 -0
  611. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.js +0 -0
  612. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.d.ts +0 -0
  613. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.js +0 -0
  614. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.d.ts +0 -0
  615. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.js +0 -0
  616. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.d.ts +0 -0
  617. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.js +0 -0
  618. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.d.ts +0 -0
  619. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.js +0 -0
  620. /package/script/types/{0_labeled_price.js → 0_message_reference.js} +0 -0
  621. /package/script/types/{0_message_identifier.js → 0_price_tag.js} +0 -0
@@ -43,7 +43,7 @@ class MessageManager {
43
43
  const chatId_ = (0, _2_tl_js_1.peerToChatId)(peer);
44
44
  let shouldFetch = false;
45
45
  for (const messageId of messageIds) {
46
- const message = await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.getMessage(chatId_, messageId);
46
+ const message = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getMessage(chatId_, messageId);
47
47
  if (message == null) {
48
48
  messages_ = [];
49
49
  shouldFetch = true;
@@ -108,14 +108,14 @@ class MessageManager {
108
108
  return [text, entities];
109
109
  }
110
110
  async getStickerSetName(inputStickerSet, hash = 0) {
111
- const maybeStickerSetName = await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.getStickerSetName(inputStickerSet.id, inputStickerSet.access_hash);
111
+ const maybeStickerSetName = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getStickerSetName(inputStickerSet.id, inputStickerSet.access_hash);
112
112
  if (maybeStickerSetName != null && Date.now() - maybeStickerSetName[1].getTime() < _4_constants_js_1.STICKER_SET_NAME_TTL) {
113
113
  return maybeStickerSetName[0];
114
114
  }
115
115
  else {
116
116
  const stickerSet = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getStickerSet({ stickerset: inputStickerSet, hash });
117
117
  const name = stickerSet[_2_tl_js_1.as](_2_tl_js_1.types.messages.StickerSet).set.short_name;
118
- await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.updateStickerSetName(inputStickerSet.id, inputStickerSet.access_hash, name);
118
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.updateStickerSetName(inputStickerSet.id, inputStickerSet.access_hash, name);
119
119
  return name;
120
120
  }
121
121
  }
@@ -151,33 +151,26 @@ class MessageManager {
151
151
  }
152
152
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
153
153
  const messages = new Array();
154
- for (const message_ of await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.getHistory((0, _2_tl_js_1.peerToChatId)(peer), offsetId, limit)) {
154
+ if (messages.length > 0) {
155
+ offsetId = messages[messages.length - 1].id; // TODO: track id of oldest message and don't send requests for it
156
+ }
157
+ const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getHistory({
158
+ peer: peer,
159
+ offset_id: offsetId,
160
+ offset_date: 0,
161
+ add_offset: 0,
162
+ limit,
163
+ max_id: 0,
164
+ min_id: 0,
165
+ hash: 0n,
166
+ });
167
+ if (!("messages" in result)) {
168
+ (0, _1_utilities_js_1.UNREACHABLE)();
169
+ }
170
+ for (const message_ of result.messages) {
155
171
  const message = await this.constructMessage(message_, false);
156
172
  messages.push(message);
157
173
  }
158
- if (messages.length < limit) {
159
- d("have only %d messages but need %d more", messages.length, limit - messages.length);
160
- if (messages.length > 0) {
161
- offsetId = messages[messages.length - 1].id; // TODO: track id of oldest message and don't send requests for it
162
- }
163
- const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getHistory({
164
- peer: peer,
165
- offset_id: offsetId,
166
- offset_date: 0,
167
- add_offset: 0,
168
- limit,
169
- max_id: 0,
170
- min_id: 0,
171
- hash: 0n,
172
- });
173
- if (!("messages" in result)) {
174
- (0, _1_utilities_js_1.UNREACHABLE)();
175
- }
176
- for (const message_ of result.messages) {
177
- const message = await this.constructMessage(message_, false);
178
- messages.push(message);
179
- }
180
- }
181
174
  return messages;
182
175
  }
183
176
  async sendMessage(chatId, text, params) {
@@ -456,6 +449,13 @@ class MessageManager {
456
449
  const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
457
450
  return message_;
458
451
  }
452
+ async editInlineMessageReplyMarkup(inlineMessageId, params) {
453
+ const id = (0, _3_types_js_2.deserializeInlineMessageId)(inlineMessageId);
454
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
455
+ id,
456
+ reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
457
+ });
458
+ }
459
459
  async editMessageText(chatId, messageId, text, params) {
460
460
  const [message, entities] = await this.parseText(text, params);
461
461
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
@@ -469,6 +469,17 @@ class MessageManager {
469
469
  const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
470
470
  return (0, _3_types_js_2.assertMessageType)(message_, "text");
471
471
  }
472
+ async editInlineMessageText(inlineMessageId, text, params) {
473
+ const [message, entities] = await this.parseText(text, params);
474
+ const id = (0, _3_types_js_2.deserializeInlineMessageId)(inlineMessageId);
475
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
476
+ id,
477
+ entities,
478
+ message,
479
+ no_webpage: params?.disableWebPagePreview ? true : undefined,
480
+ reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
481
+ });
482
+ }
472
483
  async deleteMessages(chatId, messageIds, params) {
473
484
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
474
485
  if (peer instanceof _2_tl_js_1.types.InputPeerChannel) {
@@ -548,7 +559,7 @@ class MessageManager {
548
559
  if (update instanceof _2_tl_js_1.types.UpdateNewMessage || update instanceof _2_tl_js_1.types.UpdateNewChannelMessage || update instanceof _2_tl_js_1.types.UpdateEditMessage || update instanceof _2_tl_js_1.types.UpdateEditChannelMessage) {
549
560
  if (update.message instanceof _2_tl_js_1.types.Message || update.message instanceof _2_tl_js_1.types.MessageService) {
550
561
  const chatId = (0, _2_tl_js_1.peerToChatId)(update.message.peer_id);
551
- await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.setMessage(chatId, update.message.id, update.message);
562
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.setMessage(chatId, update.message.id, update.message);
552
563
  }
553
564
  }
554
565
  if (update instanceof _2_tl_js_1.types.UpdateNewMessage ||
@@ -575,7 +586,7 @@ class MessageManager {
575
586
  if (update instanceof _2_tl_js_1.types.UpdateDeleteMessages) {
576
587
  const deletedMessages = new Array();
577
588
  for (const messageId of update.messages) {
578
- const chatId = await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.getMessageChat(messageId);
589
+ const chatId = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getMessageChat(messageId);
579
590
  if (chatId) {
580
591
  deletedMessages.push({ chatId, messageId });
581
592
  }
@@ -588,7 +599,7 @@ class MessageManager {
588
599
  const chatId = (0, _2_tl_js_1.getChannelChatId)(update.channel_id);
589
600
  const deletedMessages = new Array();
590
601
  for (const messageId of update.messages) {
591
- const message = await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.getMessage(chatId, messageId);
602
+ const message = await __classPrivateFieldGet(this, _MessageManager_c, "f").messageStorage.getMessage(chatId, messageId);
592
603
  if (message != null) {
593
604
  deletedMessages.push({ chatId, messageId });
594
605
  }
@@ -43,7 +43,7 @@ class ChatListManager {
43
43
  if (!chat && !add) {
44
44
  return () => Promise.resolve();
45
45
  }
46
- const message_ = await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.getLastMessage(chatId);
46
+ const message_ = await __classPrivateFieldGet(this, _ChatListManager_c, "f").messageStorage.getLastMessage(chatId);
47
47
  if (message_ != null) {
48
48
  const message = await __classPrivateFieldGet(this, _ChatListManager_c, "f").messageManager.constructMessage(message_);
49
49
  if (chat) {
@@ -82,6 +82,8 @@ export interface Context {
82
82
  sendChatAction: (action: ChatAction, params?: {
83
83
  messageThreadId?: number;
84
84
  }) => Promise<void>;
85
+ editInlineMessageText: (text: string, params?: EditMessageParams) => Promise<void>;
86
+ editInlineMessageReplyMarkup: (params?: EditMessageReplyMarkupParams) => Promise<void>;
85
87
  /** Edit a message in the chat which the message was received from. */
86
88
  editMessageText: (messageId: number, text: string, params?: EditMessageParams) => Promise<MessageText>;
87
89
  /** Edit the reply markup of a message in the chat which the message was received from. */
@@ -128,6 +130,7 @@ export interface Context {
128
130
  kickChatMember: (memberId: ID) => Promise<void>;
129
131
  /** Set the rights of a member of the chat which the message was received from. */
130
132
  setChatMemberRights: (memberId: ID, params?: SetChatMemberRightsParams) => Promise<void>;
133
+ /** Delete all messages sent by a specific member of the chat which the message was received from. */
131
134
  deleteChatMemberMessages: (userId: ID) => Promise<void>;
132
135
  toJSON: () => Update;
133
136
  }
@@ -160,12 +163,15 @@ export interface ClientParams extends ClientPlainParams {
160
163
  guaranteeUpdateDelivery?: boolean;
161
164
  /** Whether to not handle updates received when the client was not running. Defaults to `true` for bots, and `false` for users. */
162
165
  dropPendingUpdates?: boolean;
166
+ /** Whether to store messages. Defaults to `false`. */
167
+ storeMessages?: boolean;
163
168
  }
164
169
  export declare class Client<C extends Context = Context> extends ClientAbstract {
165
170
  #private;
166
171
  readonly apiId: number | null;
167
172
  readonly apiHash: string | null;
168
173
  readonly storage: Storage;
174
+ readonly messageStorage: Storage;
169
175
  readonly appVersion: string;
170
176
  readonly deviceModel: string;
171
177
  readonly langCode: string;
@@ -268,6 +274,14 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
268
274
  * @returns The edited text message.
269
275
  */
270
276
  editMessageText(chatId: ID, messageId: number, text: string, params?: EditMessageParams): Promise<MessageText>;
277
+ /**
278
+ * Edit an inline message's text.
279
+ *
280
+ * @method
281
+ * @param inlineMessageId The inline message's identifier.
282
+ * @param text The new text of the message.
283
+ */
284
+ editInlineMessageText(inlineMessageId: string, text: string, params?: EditMessageParams): Promise<void>;
271
285
  /**
272
286
  * Edit a message's reply markup.
273
287
  *
@@ -277,6 +291,13 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
277
291
  * @returns The edited message.
278
292
  */
279
293
  editMessageReplyMarkup(chatId: ID, messageId: number, params?: EditMessageReplyMarkupParams): Promise<Message>;
294
+ /**
295
+ * Edit an inline message's reply markup.
296
+ *
297
+ * @method
298
+ * @param inlineMessageId The inline message's identifier.
299
+ */
300
+ editInlineMessageReplyMarkup(inlineMessageId: string, params?: EditMessageReplyMarkupParams): Promise<void>;
280
301
  /**
281
302
  * Retrieve multiple messages.
282
303
  *
@@ -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 _Client_instances, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_parseMode, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_setAuth, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop, _Client_pingLoopAbortSignal, _Client_pingInterval, _Client_lastUpdates, _Client_pingLoop, _Client_pingLoopStarted, _Client_autoStarted, _Client_lastMsgId, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe, _Client_handle;
13
+ var _Client_instances, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_parseMode, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_storeMessages, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_setAuth, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_pingLoop, _Client_pingLoopStarted, _Client_autoStarted, _Client_lastMsgId, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe, _Client_handle;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Client = exports.restartAuth = exports.skipInvoke = exports.handleMigrationError = void 0;
16
16
  const _0_deps_js_1 = require("../0_deps.js");
@@ -92,6 +92,12 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
92
92
  writable: true,
93
93
  value: void 0
94
94
  });
95
+ Object.defineProperty(this, "messageStorage", {
96
+ enumerable: true,
97
+ configurable: true,
98
+ writable: true,
99
+ value: void 0
100
+ });
95
101
  _Client_parseMode.set(this, void 0);
96
102
  Object.defineProperty(this, "appVersion", {
97
103
  enumerable: true,
@@ -133,6 +139,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
133
139
  _Client_autoStart.set(this, void 0);
134
140
  _Client_ignoreOutgoing.set(this, void 0);
135
141
  _Client_prefixes.set(this, void 0);
142
+ _Client_storeMessages.set(this, void 0);
136
143
  _Client_namespaceProxies.set(this, (() => {
137
144
  // deno-lint-ignore no-explicit-any
138
145
  const proxies = {};
@@ -203,6 +210,14 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
203
210
  (0, _1_utilities_js_1.UNREACHABLE)();
204
211
  }
205
212
  };
213
+ const mustGetInlineMsgId = () => {
214
+ if ("chosenInlineResult" in update) {
215
+ if (update.chosenInlineResult.inlineMessageId) {
216
+ return update.chosenInlineResult.inlineMessageId;
217
+ }
218
+ }
219
+ (0, _1_utilities_js_1.UNREACHABLE)();
220
+ };
206
221
  const chat_ = "messageReactions" in update ? update.messageReactions.chat : "messageReactionCount" in update ? update.messageReactionCount.chat : undefined;
207
222
  const chat = chat_ ?? msg?.chat;
208
223
  const from = "callbackQuery" in update ? update.callbackQuery.from : "inlineQuery" in update ? update.inlineQuery.from : "message" in update ? update.message.from : "editedMessage" in update ? update.editedMessage?.from : undefined;
@@ -351,6 +366,14 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
351
366
  const { chatId } = mustGetMsg();
352
367
  return this.sendChatAction(chatId, chatAction, params);
353
368
  },
369
+ editInlineMessageText: (text, params) => {
370
+ const inlineMessageId = mustGetInlineMsgId();
371
+ return this.editInlineMessageText(inlineMessageId, text, params);
372
+ },
373
+ editInlineMessageReplyMarkup: (params) => {
374
+ const inlineMessageId = mustGetInlineMsgId();
375
+ return this.editInlineMessageReplyMarkup(inlineMessageId, params);
376
+ },
354
377
  editMessageText: (messageId, text, params) => {
355
378
  const { chatId } = mustGetMsg();
356
379
  return this.editMessageText(chatId, messageId, text, params);
@@ -466,7 +489,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
466
489
  _Client_connectionInited.set(this, false);
467
490
  _Client_lastPropagatedAuthorizationState.set(this, null);
468
491
  _Client_selfId.set(this, null);
469
- _Client_pingLoopAbortSignal.set(this, null);
492
+ _Client_pingLoopAbortController.set(this, null);
470
493
  _Client_pingInterval.set(this, 60 * 1000); // 60 seconds
471
494
  _Client_lastUpdates.set(this, new Date());
472
495
  _Client_pingLoopStarted.set(this, false);
@@ -502,6 +525,12 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
502
525
  //#region Composer
503
526
  _Client_handle.set(this, _1_composer_js_1.skip);
504
527
  this.storage = storage ?? new _3_storage_js_1.StorageMemory();
528
+ if (!(__classPrivateFieldSet(this, _Client_storeMessages, params?.storeMessages ?? false, "f"))) {
529
+ this.messageStorage = new _3_storage_js_1.StorageMemory();
530
+ }
531
+ else {
532
+ this.messageStorage = this.storage;
533
+ }
505
534
  __classPrivateFieldSet(this, _Client_parseMode, params?.parseMode ?? null, "f");
506
535
  this.appVersion = params?.appVersion ?? _4_constants_js_1.APP_VERSION;
507
536
  this.deviceModel = params?.deviceModel ?? _4_constants_js_1.DEVICE_MODEL;
@@ -517,6 +546,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
517
546
  const c = {
518
547
  api: this.api,
519
548
  storage: this.storage,
549
+ messageStorage: this.messageStorage,
520
550
  guaranteeUpdateDelivery: __classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f"),
521
551
  setConnectionState: __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).bind(this),
522
552
  resetConnectionState: () => this.stateChangeHandler(this.connected),
@@ -695,7 +725,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
695
725
  release();
696
726
  }
697
727
  }
698
- async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_autoStart = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_prefixes = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopAbortSignal = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_autoStarted = new WeakMap(), _Client_lastMsgId = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_handle = new WeakMap(), _Client_instances = new WeakSet(), _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
728
+ async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_autoStart = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_prefixes = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_autoStarted = new WeakMap(), _Client_lastMsgId = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_handle = new WeakMap(), _Client_instances = new WeakSet(), _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
699
729
  __classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
700
730
  __classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
701
731
  }, _Client_setAuth = async function _Client_setAuth(key) {
@@ -721,7 +751,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
721
751
  async disconnect() {
722
752
  __classPrivateFieldSet(this, _Client_connectionInited, false, "f");
723
753
  await super.disconnect();
724
- __classPrivateFieldGet(this, _Client_pingLoopAbortSignal, "f")?.abort();
754
+ __classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.abort();
725
755
  }
726
756
  /**
727
757
  * Calls [initConnection](1) and authorizes the client with one of the following:
@@ -1072,21 +1102,29 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
1072
1102
  (0, _1_utilities_js_1.UNREACHABLE)();
1073
1103
  }
1074
1104
  }, _Client_pingLoop = async function _Client_pingLoop() {
1075
- __classPrivateFieldSet(this, _Client_pingLoopAbortSignal, new AbortController(), "f");
1105
+ __classPrivateFieldSet(this, _Client_pingLoopAbortController, new AbortController(), "f");
1076
1106
  while (this.connected) {
1077
1107
  try {
1078
1108
  await new Promise((resolve, reject) => {
1079
- setTimeout(resolve, __classPrivateFieldGet(this, _Client_pingInterval, "f"));
1080
- __classPrivateFieldGet(this, _Client_pingLoopAbortSignal, "f").signal.onabort = () => {
1081
- reject(__classPrivateFieldGet(this, _Client_pingLoopAbortSignal, "f")?.signal.reason);
1109
+ const timeout = setTimeout(resolve, __classPrivateFieldGet(this, _Client_pingInterval, "f"));
1110
+ __classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.onabort = () => {
1111
+ reject(__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.signal.reason);
1112
+ clearTimeout(timeout);
1082
1113
  };
1083
1114
  });
1115
+ if (!this.connected) {
1116
+ continue;
1117
+ }
1118
+ __classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
1084
1119
  await this.api.ping_delay_disconnect({ ping_id: (0, _1_utilities_js_1.getRandomId)(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") / 1000 + 15 });
1085
1120
  if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 * 60 * 1000) {
1086
1121
  (0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("lastUpdates"));
1087
1122
  }
1088
1123
  }
1089
1124
  catch (err) {
1125
+ if (!this.connected) {
1126
+ continue;
1127
+ }
1090
1128
  d("ping loop error: %o", err);
1091
1129
  }
1092
1130
  }
@@ -1171,64 +1209,56 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
1171
1209
  }
1172
1210
  if (typeof id === "string") {
1173
1211
  id = (0, _0_utilities_js_1.getUsername)(id);
1174
- let userId = 0n;
1175
- let channelId = 0n;
1176
- const maybeUsername = await this.storage.getUsername(id);
1177
- if (maybeUsername != null && Date.now() - maybeUsername[2].getTime() < _4_constants_js_1.USERNAME_TTL) {
1178
- const [type, id] = maybeUsername;
1179
- if (type == "user") {
1180
- userId = id;
1181
- }
1182
- else {
1183
- channelId = id;
1184
- }
1212
+ let resolvedId = 0;
1213
+ const maybeUsername = await this.messageStorage.getUsername(id);
1214
+ if (maybeUsername != null && Date.now() - maybeUsername[1].getTime() < _4_constants_js_1.USERNAME_TTL) {
1215
+ const [id] = maybeUsername;
1216
+ resolvedId = id;
1185
1217
  }
1186
1218
  else {
1187
1219
  const resolved = await this.api.contacts.resolveUsername({ username: id });
1188
1220
  await __classPrivateFieldGet(this, _Client_updateManager, "f").processChats(resolved.chats);
1189
1221
  await __classPrivateFieldGet(this, _Client_updateManager, "f").processUsers(resolved.users);
1190
1222
  if (resolved.peer instanceof _2_tl_js_1.types.PeerUser) {
1191
- userId = resolved.peer.user_id;
1223
+ resolvedId = (0, _2_tl_js_1.peerToChatId)(resolved.peer);
1192
1224
  }
1193
1225
  else if (resolved.peer instanceof _2_tl_js_1.types.PeerChannel) {
1194
- channelId = resolved.peer.channel_id;
1226
+ resolvedId = (0, _2_tl_js_1.peerToChatId)(resolved.peer);
1195
1227
  }
1196
1228
  else {
1197
1229
  (0, _1_utilities_js_1.UNREACHABLE)();
1198
1230
  }
1199
1231
  }
1200
- if (userId) {
1201
- const accessHash = await this.storage.getUserAccessHash(userId);
1202
- return new _2_tl_js_1.types.InputPeerUser({ user_id: userId, access_hash: accessHash ?? 0n });
1232
+ const resolvedIdType = (0, _2_tl_js_1.getChatIdPeerType)(resolvedId);
1233
+ if (resolvedIdType == "user") {
1234
+ const accessHash = await this.messageStorage.getUserAccessHash(resolvedId);
1235
+ return new _2_tl_js_1.types.InputPeerUser({ user_id: (0, _2_tl_js_1.chatIdToPeerId)(resolvedId), access_hash: accessHash ?? 0n });
1203
1236
  }
1204
- else if (channelId) {
1205
- const accessHash = await this.storage.getChannelAccessHash(channelId);
1206
- return new _2_tl_js_1.types.InputPeerChannel({ channel_id: channelId, access_hash: accessHash ?? 0n });
1237
+ else if (resolvedIdType == "channel") {
1238
+ const accessHash = await this.messageStorage.getChannelAccessHash(resolvedId);
1239
+ return new _2_tl_js_1.types.InputPeerChannel({ channel_id: (0, _2_tl_js_1.chatIdToPeerId)(resolvedId), access_hash: accessHash ?? 0n });
1207
1240
  }
1208
1241
  else {
1209
1242
  (0, _1_utilities_js_1.UNREACHABLE)();
1210
1243
  }
1211
1244
  }
1212
1245
  else if (id > 0) {
1213
- const id_ = BigInt(id);
1214
- const accessHash = await this.storage.getUserAccessHash(id_);
1215
- return new _2_tl_js_1.types.InputPeerUser({ user_id: id_, access_hash: accessHash ?? 0n });
1246
+ const accessHash = await this.messageStorage.getUserAccessHash(id);
1247
+ return new _2_tl_js_1.types.InputPeerUser({ user_id: (0, _2_tl_js_1.chatIdToPeerId)(id), access_hash: accessHash ?? 0n });
1216
1248
  }
1217
1249
  else if (-_4_constants_js_1.MAX_CHAT_ID <= id) {
1218
1250
  return new _2_tl_js_1.types.InputPeerChat({ chat_id: BigInt(Math.abs(id)) });
1219
1251
  }
1220
1252
  else if (_1_utilities_js_1.ZERO_CHANNEL_ID - _4_constants_js_1.MAX_CHANNEL_ID <= id && id != _1_utilities_js_1.ZERO_CHANNEL_ID) {
1221
- const id_ = BigInt(Math.abs(id - _1_utilities_js_1.ZERO_CHANNEL_ID));
1222
- const accessHash = await this.storage.getChannelAccessHash(id_);
1223
- return new _2_tl_js_1.types.InputPeerChannel({ channel_id: id_, access_hash: accessHash ?? 0n });
1253
+ const accessHash = await this.messageStorage.getChannelAccessHash(id);
1254
+ return new _2_tl_js_1.types.InputPeerChannel({ channel_id: (0, _2_tl_js_1.chatIdToPeerId)(id), access_hash: accessHash ?? 0n });
1224
1255
  }
1225
1256
  else {
1226
1257
  throw new Error("ID format unknown or not implemented");
1227
1258
  }
1228
1259
  }, getEntity)](peer) {
1229
- const type = peer instanceof _2_tl_js_1.types.PeerUser ? "user" : peer instanceof _2_tl_js_1.types.PeerChat ? "chat" : peer instanceof _2_tl_js_1.types.PeerChannel ? "channel" : (0, _1_utilities_js_1.UNREACHABLE)();
1230
- const id = peer instanceof _2_tl_js_1.types.PeerUser ? peer.user_id : peer instanceof _2_tl_js_1.types.PeerChat ? peer.chat_id : peer instanceof _2_tl_js_1.types.PeerChannel ? peer.channel_id : (0, _1_utilities_js_1.UNREACHABLE)();
1231
- return this.storage.getEntity(type, id);
1260
+ const id = (0, _2_tl_js_1.peerToChatId)(peer);
1261
+ return this.messageStorage.getEntity(id);
1232
1262
  }
1233
1263
  use(...middleware) {
1234
1264
  const composer = new _1_composer_js_1.Composer(...middleware);
@@ -1324,6 +1354,16 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
1324
1354
  async editMessageText(chatId, messageId, text, params) {
1325
1355
  return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
1326
1356
  }
1357
+ /**
1358
+ * Edit an inline message's text.
1359
+ *
1360
+ * @method
1361
+ * @param inlineMessageId The inline message's identifier.
1362
+ * @param text The new text of the message.
1363
+ */
1364
+ async editInlineMessageText(inlineMessageId, text, params) {
1365
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageText(inlineMessageId, text, params);
1366
+ }
1327
1367
  /**
1328
1368
  * Edit a message's reply markup.
1329
1369
  *
@@ -1335,6 +1375,15 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
1335
1375
  async editMessageReplyMarkup(chatId, messageId, params) {
1336
1376
  return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageReplyMarkup(chatId, messageId, params);
1337
1377
  }
1378
+ /**
1379
+ * Edit an inline message's reply markup.
1380
+ *
1381
+ * @method
1382
+ * @param inlineMessageId The inline message's identifier.
1383
+ */
1384
+ async editInlineMessageReplyMarkup(inlineMessageId, params) {
1385
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageReplyMarkup(inlineMessageId, params);
1386
+ }
1338
1387
  /**
1339
1388
  * Retrieve multiple messages.
1340
1389
  *
@@ -1870,14 +1919,14 @@ _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
1870
1919
  }, _Client_handleUpdate = async function _Client_handleUpdate(update) {
1871
1920
  const promises = new Array();
1872
1921
  if (update instanceof _2_tl_js_1.types.UpdateUserName) {
1873
- await this.storage.updateUsernames("user", update.user_id, update.usernames.map((v) => v.username));
1922
+ await this.messageStorage.updateUsernames(Number(update.user_id), update.usernames.map((v) => v.username));
1874
1923
  const peer = new _2_tl_js_1.types.PeerUser(update);
1875
1924
  const entity = await this[getEntity](peer);
1876
1925
  if (entity != null) {
1877
1926
  entity.usernames = update.usernames;
1878
1927
  entity.first_name = update.first_name;
1879
1928
  entity.last_name = update.last_name;
1880
- await this.storage.setEntity(entity);
1929
+ await this.messageStorage.setEntity(entity);
1881
1930
  }
1882
1931
  }
1883
1932
  if (_2_message_manager_js_1.MessageManager.canHandleUpdate(update)) {
@@ -1890,7 +1939,7 @@ _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
1890
1939
  finally {
1891
1940
  if ("deletedMessages" in update_) {
1892
1941
  for (const { chatId, messageId } of update_.deletedMessages) {
1893
- await this.storage.setMessage(chatId, messageId, null);
1942
+ await this.messageStorage.setMessage(chatId, messageId, null);
1894
1943
  await __classPrivateFieldGet(this, _Client_chatListManager, "f").reassignChatLastMessage(chatId);
1895
1944
  }
1896
1945
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.assertNotEquals = void 0;
4
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
+ const _constants_js_1 = require("./_constants.js");
5
6
  const equal_js_1 = require("./equal.js");
6
7
  const assertion_error_js_1 = require("./assertion_error.js");
7
8
  /**
@@ -28,13 +29,13 @@ function assertNotEquals(actual, expected, msg) {
28
29
  actualString = String(actual);
29
30
  }
30
31
  catch {
31
- actualString = "[Cannot display]";
32
+ actualString = _constants_js_1.CAN_NOT_DISPLAY;
32
33
  }
33
34
  try {
34
35
  expectedString = String(expected);
35
36
  }
36
37
  catch {
37
- expectedString = "[Cannot display]";
38
+ expectedString = _constants_js_1.CAN_NOT_DISPLAY;
38
39
  }
39
40
  const msgSuffix = msg ? `: ${msg}` : ".";
40
41
  throw new assertion_error_js_1.AssertionError(`Expected actual: ${actualString} not to be: ${expectedString}${msgSuffix}`);
@@ -3,16 +3,16 @@
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.decodeBase64 = exports.encodeBase64 = void 0;
6
- const _util_js_1 = require("./_util.js");
7
6
  /**
8
7
  * Utilities for
9
- * [base64]{@link https://datatracker.ietf.org/doc/html/rfc4648#section-4}
8
+ * {@link https://datatracker.ietf.org/doc/html/rfc4648#section-4 | base64}
10
9
  * encoding and decoding.
11
10
  *
12
11
  * This module is browser compatible.
13
12
  *
14
13
  * @module
15
14
  */
15
+ const _util_js_1 = require("./_util.js");
16
16
  const base64abc = [
17
17
  "A",
18
18
  "B",
@@ -273,7 +273,7 @@ export declare function bgRgb24(str: string, color: number | Rgb): string;
273
273
  *
274
274
  * @deprecated (will be removed in 1.0.0) Use {@linkcode stripAnsiCode} instead.
275
275
  */
276
- export declare const stripColor: typeof stripAnsiCode;
276
+ export declare function stripColor(string: string): string;
277
277
  /**
278
278
  * Remove ANSI escape codes from the string.
279
279
  *
@@ -546,7 +546,10 @@ const ANSI_PATTERN = new RegExp([
546
546
  *
547
547
  * @deprecated (will be removed in 1.0.0) Use {@linkcode stripAnsiCode} instead.
548
548
  */
549
- exports.stripColor = stripAnsiCode;
549
+ function stripColor(string) {
550
+ return stripAnsiCode(string);
551
+ }
552
+ exports.stripColor = stripColor;
550
553
  /**
551
554
  * Remove ANSI escape codes from the string.
552
555
  *
@@ -1,11 +1,14 @@
1
1
  import type { db } from "./_db.js";
2
- type DB = typeof db;
3
- type ContentTypeToExtension = {
2
+ /** MIME-types database. */
3
+ export type DB = typeof db;
4
+ /** Maps content types to their corresponding file extensions. */
5
+ export type ContentTypeToExtension = {
4
6
  [K in keyof DB]: DB[K] extends {
5
7
  "extensions": readonly string[];
6
8
  } ? DB[K]["extensions"][number] : never;
7
9
  };
8
- type KnownExtensionOrType = keyof ContentTypeToExtension | ContentTypeToExtension[keyof ContentTypeToExtension] | `.${ContentTypeToExtension[keyof ContentTypeToExtension]}`;
10
+ /** Known extension or type. Used in {@linkcode contentType}. */
11
+ export type KnownExtensionOrType = keyof ContentTypeToExtension | ContentTypeToExtension[keyof ContentTypeToExtension] | `.${ContentTypeToExtension[keyof ContentTypeToExtension]}`;
9
12
  /**
10
13
  * Given an extension or media type, return a full `Content-Type` or
11
14
  * `Content-Disposition` header value.
@@ -26,13 +29,12 @@ type KnownExtensionOrType = keyof ContentTypeToExtension | ContentTypeToExtensio
26
29
  * ```ts
27
30
  * import { contentType } from "https://deno.land/std@$STD_VERSION/media_types/content_type.ts";
28
31
  *
29
- * contentType(".json"); // `application/json; charset=UTF-8`
30
- * contentType("text/html"); // `text/html; charset=UTF-8`
31
- * contentType("text/html; charset=UTF-8"); // `text/html; charset=UTF-8`
32
- * contentType("txt"); // `text/plain; charset=UTF-8`
32
+ * contentType(".json"); // "application/json; charset=UTF-8"
33
+ * contentType("text/html"); // "text/html; charset=UTF-8"
34
+ * contentType("text/html; charset=UTF-8"); // "text/html; charset=UTF-8"
35
+ * contentType("txt"); // "text/plain; charset=UTF-8"
33
36
  * contentType("foo"); // undefined
34
37
  * contentType("file.json"); // undefined
35
38
  * ```
36
39
  */
37
40
  export declare function contentType<T extends (string & {}) | KnownExtensionOrType>(extensionOrType: T): Lowercase<T> extends KnownExtensionOrType ? string : string | undefined;
38
- export {};
@@ -27,10 +27,10 @@ const type_by_extension_js_1 = require("./type_by_extension.js");
27
27
  * ```ts
28
28
  * import { contentType } from "https://deno.land/std@$STD_VERSION/media_types/content_type.ts";
29
29
  *
30
- * contentType(".json"); // `application/json; charset=UTF-8`
31
- * contentType("text/html"); // `text/html; charset=UTF-8`
32
- * contentType("text/html; charset=UTF-8"); // `text/html; charset=UTF-8`
33
- * contentType("txt"); // `text/plain; charset=UTF-8`
30
+ * contentType(".json"); // "application/json; charset=UTF-8"
31
+ * contentType("text/html"); // "text/html; charset=UTF-8"
32
+ * contentType("text/html; charset=UTF-8"); // "text/html; charset=UTF-8"
33
+ * contentType("txt"); // "text/plain; charset=UTF-8"
34
34
  * contentType("foo"); // undefined
35
35
  * contentType("file.json"); // undefined
36
36
  * ```
@@ -8,9 +8,9 @@
8
8
  * ```ts
9
9
  * import { extension } from "https://deno.land/std@$STD_VERSION/media_types/extension.ts";
10
10
  *
11
- * extension("text/plain"); // `txt`
12
- * extension("application/json"); // `json`
13
- * extension("text/html; charset=UTF-8"); // `html`
11
+ * extension("text/plain"); // "txt"
12
+ * extension("application/json"); // "json"
13
+ * extension("text/html; charset=UTF-8"); // "html"
14
14
  * extension("application/foo"); // undefined
15
15
  * ```
16
16
  */