@mtkruto/node 0.1.144 → 0.1.146

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 (555) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +5 -5
  3. package/esm/3_types.d.ts +2 -0
  4. package/esm/3_types.js +2 -0
  5. package/esm/4_constants.d.ts +2 -2
  6. package/esm/4_constants.js +2 -2
  7. package/esm/client/0_types.d.ts +1 -0
  8. package/esm/client/1_reaction_manager.d.ts +4 -2
  9. package/esm/client/1_update_manager.js +33 -13
  10. package/esm/client/2_message_manager.d.ts +4 -3
  11. package/esm/client/2_message_manager.js +34 -17
  12. package/esm/client/3_callback_query_manager.d.ts +3 -2
  13. package/esm/client/3_chat_list_manager.d.ts +3 -2
  14. package/esm/client/3_inline_query_manager.d.ts +3 -2
  15. package/esm/client/4_client.d.ts +2 -0
  16. package/esm/client/4_client.js +1 -1
  17. package/esm/deps/deno.land/std@0.212.0/assert/_constants.js +2 -0
  18. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.js +39 -18
  19. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.js +1 -1
  20. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.js +1 -1
  21. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.js +1 -1
  22. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.js +1 -1
  23. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.js +1 -1
  24. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.js +1 -1
  25. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.js +1 -1
  26. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.js +1 -1
  27. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.js +1 -1
  28. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.js +1 -1
  29. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.js +1 -1
  30. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.js +1 -1
  31. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.js +1 -1
  32. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.js +1 -1
  33. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.js +1 -1
  34. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.js +1 -1
  35. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.js +1 -1
  36. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.js +1 -1
  37. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.js +1 -1
  38. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.js +1 -1
  39. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.js +1 -1
  40. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.js +1 -1
  41. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.js +1 -1
  42. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.js +1 -1
  43. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.js +1 -1
  44. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.js +1 -1
  45. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.js +1 -1
  46. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.js +1 -1
  47. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.js +1 -1
  48. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.js +1 -1
  49. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.js +1 -1
  50. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.212.0}/fmt/colors.d.ts +16 -11
  51. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/fmt/colors.js +14 -11
  52. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.js +1 -1
  53. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.js +8 -6
  54. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.js +1 -1
  55. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.js +1 -1
  56. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.js +1 -1
  57. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.js +2 -2
  58. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.js +1 -1
  59. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.js +1 -1
  60. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.js +1 -1
  61. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.js +1 -1
  62. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.js +1 -1
  63. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.js +1 -1
  64. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.js +1 -1
  65. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.js +1 -1
  66. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.js +1 -1
  67. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.js +1 -1
  68. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.js +1 -1
  69. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.js +1 -1
  70. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.js +1 -1
  71. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.js +1 -1
  72. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.js +1 -1
  73. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.js +1 -1
  74. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.js +1 -1
  75. package/esm/deps/deno.land/std@0.212.0/path/_interface.js +3 -0
  76. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.js +1 -1
  77. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.js +1 -1
  78. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/common.d.ts +2 -1
  79. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/common.js +1 -1
  80. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.js +1 -1
  81. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.js +1 -1
  82. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.js +1 -1
  83. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.js +1 -1
  84. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.js +1 -1
  85. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.js +1 -1
  86. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.js +1 -1
  87. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.js +1 -1
  88. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.js +1 -1
  89. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.js +1 -1
  90. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.js +1 -1
  91. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.js +1 -1
  92. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.js +1 -1
  93. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.js +1 -1
  94. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.js +1 -1
  95. package/{script/deps/deno.land/std@0.210.0/path → esm/deps/deno.land/std@0.212.0/path/posix}/common.d.ts +2 -1
  96. package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/common.js +1 -1
  97. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.js +1 -1
  98. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.js +1 -1
  99. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.js +1 -1
  100. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.d.ts +1 -1
  101. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.js +2 -2
  102. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.js +1 -1
  103. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.js +1 -1
  104. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_glob.js +1 -1
  105. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.js +1 -1
  106. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join_globs.js +1 -1
  107. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.js +1 -1
  108. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.js +1 -1
  109. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize_glob.js +1 -1
  110. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.js +1 -1
  111. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.js +1 -1
  112. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.js +1 -1
  113. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.js +1 -1
  114. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.d.ts +1 -1
  115. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.js +2 -2
  116. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.js +1 -1
  117. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.js +1 -1
  118. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.js +1 -1
  119. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.js +1 -1
  120. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.js +1 -1
  121. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.js +1 -1
  122. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.js +1 -1
  123. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.js +1 -1
  124. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/common.d.ts +2 -1
  125. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/common.js +1 -1
  126. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.js +1 -1
  127. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.js +1 -1
  128. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.js +1 -1
  129. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.212.0}/path/windows/from_file_url.d.ts +1 -1
  130. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/from_file_url.js +2 -2
  131. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.js +1 -1
  132. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.js +1 -1
  133. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_glob.js +1 -1
  134. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.js +1 -1
  135. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join_globs.js +1 -1
  136. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.js +1 -1
  137. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.js +1 -1
  138. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize_glob.js +1 -1
  139. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.js +1 -1
  140. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.js +1 -1
  141. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.js +1 -1
  142. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.js +1 -1
  143. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.d.ts +1 -1
  144. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.js +2 -2
  145. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.js +1 -1
  146. package/esm/storage/0_storage.d.ts +3 -6
  147. package/esm/storage/0_storage.js +16 -16
  148. package/esm/tl/2_types.d.ts +218 -4
  149. package/esm/tl/2_types.js +632 -19
  150. package/esm/tl/3_functions.d.ts +232 -0
  151. package/esm/tl/3_functions.js +608 -4
  152. package/esm/types/0_message_entity.d.ts +2 -1
  153. package/esm/types/0_message_entity.js +27 -4
  154. package/esm/types/1_chat_p.js +1 -1
  155. package/esm/types/2_invite_link.d.ts +23 -0
  156. package/esm/types/2_invite_link.js +27 -0
  157. package/esm/types/3_chat_member_updated.d.ts +23 -0
  158. package/esm/types/3_chat_member_updated.js +33 -0
  159. package/esm/types/4_inline_query_result.d.ts +1 -1
  160. package/esm/types/4_inline_query_result.js +2 -2
  161. package/esm/types/4_message.d.ts +7 -7
  162. package/esm/types/6_update.d.ts +19 -2
  163. package/package.json +1 -1
  164. package/script/0_deps.d.ts +4 -4
  165. package/script/0_deps.js +5 -5
  166. package/script/3_types.d.ts +2 -0
  167. package/script/3_types.js +2 -0
  168. package/script/4_constants.d.ts +2 -2
  169. package/script/4_constants.js +2 -2
  170. package/script/client/0_types.d.ts +1 -0
  171. package/script/client/1_reaction_manager.d.ts +4 -2
  172. package/script/client/1_update_manager.js +33 -13
  173. package/script/client/2_message_manager.d.ts +4 -3
  174. package/script/client/2_message_manager.js +64 -47
  175. package/script/client/3_callback_query_manager.d.ts +3 -2
  176. package/script/client/3_chat_list_manager.d.ts +3 -2
  177. package/script/client/3_inline_query_manager.d.ts +3 -2
  178. package/script/client/4_client.d.ts +2 -0
  179. package/script/client/4_client.js +1 -1
  180. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_constants.js +1 -1
  181. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.js +39 -18
  182. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.js +1 -1
  183. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.js +1 -1
  184. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.js +1 -1
  185. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.js +1 -1
  186. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.js +1 -1
  187. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.js +1 -1
  188. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.js +1 -1
  189. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.js +1 -1
  190. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.js +1 -1
  191. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.js +1 -1
  192. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.js +1 -1
  193. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.js +1 -1
  194. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.js +1 -1
  195. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.js +1 -1
  196. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.js +1 -1
  197. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.js +1 -1
  198. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.js +1 -1
  199. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.js +1 -1
  200. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.js +1 -1
  201. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.js +1 -1
  202. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.js +1 -1
  203. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.js +1 -1
  204. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.js +1 -1
  205. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.js +1 -1
  206. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.js +1 -1
  207. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.js +1 -1
  208. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.js +1 -1
  209. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.js +1 -1
  210. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.js +1 -1
  211. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.js +1 -1
  212. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.js +1 -1
  213. package/{esm/deps/deno.land/std@0.210.0 → script/deps/deno.land/std@0.212.0}/fmt/colors.d.ts +16 -11
  214. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/fmt/colors.js +14 -11
  215. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.js +1 -1
  216. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.js +8 -6
  217. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.js +1 -1
  218. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.js +1 -1
  219. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.js +1 -1
  220. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.js +2 -2
  221. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.js +1 -1
  222. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.js +1 -1
  223. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.js +1 -1
  224. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.js +1 -1
  225. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.js +1 -1
  226. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.js +1 -1
  227. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.js +1 -1
  228. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.js +1 -1
  229. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.js +1 -1
  230. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.js +1 -1
  231. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.js +1 -1
  232. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.js +1 -1
  233. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.js +1 -1
  234. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.js +1 -1
  235. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.js +1 -1
  236. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.js +1 -1
  237. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.js +1 -1
  238. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_interface.js +1 -1
  239. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.js +1 -1
  240. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.js +1 -1
  241. package/{esm/deps/deno.land/std@0.210.0/path/windows → script/deps/deno.land/std@0.212.0/path}/common.d.ts +2 -1
  242. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/common.js +1 -1
  243. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.js +1 -1
  244. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.js +1 -1
  245. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.js +1 -1
  246. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.js +1 -1
  247. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.js +1 -1
  248. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.js +1 -1
  249. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.js +1 -1
  250. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.js +1 -1
  251. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.js +1 -1
  252. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.js +1 -1
  253. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.js +1 -1
  254. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.js +1 -1
  255. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.js +1 -1
  256. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.js +1 -1
  257. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.js +1 -1
  258. package/script/deps/deno.land/std@0.212.0/path/posix/common.d.ts +14 -0
  259. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/common.js +1 -1
  260. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.js +1 -1
  261. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.js +1 -1
  262. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.js +1 -1
  263. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.d.ts +1 -1
  264. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.js +2 -2
  265. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.js +1 -1
  266. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.js +1 -1
  267. package/script/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/is_glob.js +1 -1
  268. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.js +1 -1
  269. package/script/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/join_globs.js +1 -1
  270. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.js +1 -1
  271. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.js +1 -1
  272. package/script/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/normalize_glob.js +1 -1
  273. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.js +1 -1
  274. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.js +1 -1
  275. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.js +1 -1
  276. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.js +1 -1
  277. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.d.ts +1 -1
  278. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.js +2 -2
  279. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.js +1 -1
  280. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.js +1 -1
  281. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.js +1 -1
  282. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.js +1 -1
  283. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.js +1 -1
  284. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.js +1 -1
  285. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.js +1 -1
  286. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.js +1 -1
  287. package/script/deps/deno.land/std@0.212.0/path/windows/common.d.ts +14 -0
  288. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/common.js +1 -1
  289. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.js +1 -1
  290. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.js +1 -1
  291. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.js +1 -1
  292. package/{esm/deps/deno.land/std@0.210.0 → script/deps/deno.land/std@0.212.0}/path/windows/from_file_url.d.ts +1 -1
  293. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/from_file_url.js +2 -2
  294. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.js +1 -1
  295. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.js +1 -1
  296. package/script/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/is_glob.js +1 -1
  297. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.js +1 -1
  298. package/script/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/join_globs.js +1 -1
  299. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.js +1 -1
  300. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.js +1 -1
  301. package/script/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/normalize_glob.js +1 -1
  302. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.js +1 -1
  303. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.js +1 -1
  304. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.js +1 -1
  305. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.js +1 -1
  306. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.d.ts +1 -1
  307. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.js +2 -2
  308. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.js +1 -1
  309. package/script/storage/0_storage.d.ts +3 -6
  310. package/script/storage/0_storage.js +16 -16
  311. package/script/tl/2_types.d.ts +218 -4
  312. package/script/tl/2_types.js +674 -44
  313. package/script/tl/3_functions.d.ts +232 -0
  314. package/script/tl/3_functions.js +629 -14
  315. package/script/types/0_message_entity.d.ts +2 -1
  316. package/script/types/0_message_entity.js +27 -4
  317. package/script/types/1_chat_p.js +1 -1
  318. package/script/types/2_invite_link.d.ts +23 -0
  319. package/script/types/2_invite_link.js +31 -0
  320. package/script/types/3_chat_member_updated.d.ts +23 -0
  321. package/script/types/3_chat_member_updated.js +37 -0
  322. package/script/types/4_inline_query_result.d.ts +1 -1
  323. package/script/types/4_inline_query_result.js +2 -2
  324. package/script/types/4_message.d.ts +7 -7
  325. package/script/types/6_update.d.ts +19 -2
  326. package/esm/deps/deno.land/std@0.210.0/assert/_constants.js +0 -2
  327. package/esm/deps/deno.land/std@0.210.0/path/_interface.js +0 -3
  328. package/script/deps/deno.land/std@0.210.0/path/posix/common.d.ts +0 -13
  329. package/script/deps/deno.land/std@0.210.0/path/windows/common.d.ts +0 -13
  330. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_constants.d.ts +0 -0
  331. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.d.ts +0 -0
  332. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.d.ts +0 -0
  333. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.d.ts +0 -0
  334. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.d.ts +0 -0
  335. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.d.ts +0 -0
  344. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.d.ts +0 -0
  346. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.d.ts +0 -0
  348. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.d.ts +0 -0
  350. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.d.ts +0 -0
  354. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.d.ts +0 -0
  358. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.d.ts +0 -0
  360. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.d.ts +0 -0
  361. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.d.ts +0 -0
  364. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.d.ts +0 -0
  366. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.d.ts +0 -0
  368. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.d.ts +0 -0
  370. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.d.ts +0 -0
  372. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.d.ts +0 -0
  374. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.d.ts +0 -0
  375. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.d.ts +0 -0
  376. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.d.ts +0 -0
  377. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.d.ts +0 -0
  378. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.d.ts +0 -0
  379. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.d.ts +0 -0
  380. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  381. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.d.ts +0 -0
  382. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.d.ts +0 -0
  383. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.d.ts +0 -0
  384. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  385. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.d.ts +0 -0
  386. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_interface.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.d.ts +0 -0
  388. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.d.ts +0 -0
  390. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.d.ts +0 -0
  391. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.d.ts +0 -0
  392. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.d.ts +0 -0
  393. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.d.ts +0 -0
  394. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.d.ts +0 -0
  395. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.d.ts +0 -0
  396. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.d.ts +0 -0
  397. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.d.ts +0 -0
  398. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.d.ts +0 -0
  399. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.d.ts +0 -0
  400. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.d.ts +0 -0
  401. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.d.ts +0 -0
  402. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.d.ts +0 -0
  403. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.d.ts +0 -0
  404. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.d.ts +0 -0
  405. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.d.ts +0 -0
  406. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.d.ts +0 -0
  407. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.d.ts +0 -0
  408. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.d.ts +0 -0
  409. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_glob.d.ts +0 -0
  410. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.d.ts +0 -0
  411. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join_globs.d.ts +0 -0
  412. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.d.ts +0 -0
  413. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.d.ts +0 -0
  414. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize_glob.d.ts +0 -0
  415. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.d.ts +0 -0
  416. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.d.ts +0 -0
  417. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.d.ts +0 -0
  418. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.d.ts +0 -0
  419. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.d.ts +0 -0
  420. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.d.ts +0 -0
  421. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.d.ts +0 -0
  422. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.d.ts +0 -0
  423. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.d.ts +0 -0
  424. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.d.ts +0 -0
  425. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.d.ts +0 -0
  426. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.d.ts +0 -0
  427. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.d.ts +0 -0
  428. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.d.ts +0 -0
  429. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.d.ts +0 -0
  430. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.d.ts +0 -0
  431. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.d.ts +0 -0
  432. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_glob.d.ts +0 -0
  433. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.d.ts +0 -0
  434. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join_globs.d.ts +0 -0
  435. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.d.ts +0 -0
  436. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.d.ts +0 -0
  437. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize_glob.d.ts +0 -0
  438. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.d.ts +0 -0
  439. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.d.ts +0 -0
  440. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.d.ts +0 -0
  441. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.d.ts +0 -0
  442. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.d.ts +0 -0
  443. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_constants.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.d.ts +0 -0
  445. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.d.ts +0 -0
  447. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.d.ts +0 -0
  449. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.d.ts +0 -0
  451. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.d.ts +0 -0
  453. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.d.ts +0 -0
  455. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.d.ts +0 -0
  457. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.d.ts +0 -0
  479. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.d.ts +0 -0
  490. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.d.ts +0 -0
  492. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  494. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.d.ts +0 -0
  496. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_interface.d.ts +0 -0
  500. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.d.ts +0 -0
  502. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.d.ts +0 -0
  504. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.d.ts +0 -0
  506. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.d.ts +0 -0
  508. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.d.ts +0 -0
  510. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.d.ts +0 -0
  512. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.d.ts +0 -0
  514. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.d.ts +0 -0
  516. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.d.ts +0 -0
  518. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.d.ts +0 -0
  520. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.d.ts +0 -0
  522. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_glob.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.d.ts +0 -0
  524. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join_globs.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.d.ts +0 -0
  526. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize_glob.d.ts +0 -0
  528. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.d.ts +0 -0
  530. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.d.ts +0 -0
  532. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.d.ts +0 -0
  534. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.d.ts +0 -0
  536. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.d.ts +0 -0
  538. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.d.ts +0 -0
  540. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.d.ts +0 -0
  542. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.d.ts +0 -0
  544. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_glob.d.ts +0 -0
  546. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join_globs.d.ts +0 -0
  548. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.d.ts +0 -0
  550. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize_glob.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.d.ts +0 -0
  552. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.d.ts +0 -0
  554. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.d.ts +0 -0
@@ -17,6 +17,7 @@ const _0_deps_js_1 = require("../0_deps.js");
17
17
  const _1_utilities_js_1 = require("../1_utilities.js");
18
18
  const _2_tl_js_1 = require("../2_tl.js");
19
19
  const _3_types_js_1 = require("../3_types.js");
20
+ const _3_types_js_2 = require("../3_types.js");
20
21
  const _4_constants_js_1 = require("../4_constants.js");
21
22
  const _0_html_js_1 = require("./0_html.js");
22
23
  const _0_utilities_js_1 = require("./0_utilities.js");
@@ -86,7 +87,7 @@ class MessageManager {
86
87
  const messages = await this.getMessages(chatId, [messageId]);
87
88
  return messages[0] ?? null;
88
89
  }
89
- parseText(text, params) {
90
+ async parseText(text, params) {
90
91
  const entities_ = params?.entities ?? [];
91
92
  const parseMode = params?.parseMode ?? __classPrivateFieldGet(this, _MessageManager_c, "f").parseMode;
92
93
  switch (parseMode) {
@@ -103,7 +104,7 @@ class MessageManager {
103
104
  default:
104
105
  (0, _1_utilities_js_1.UNREACHABLE)();
105
106
  }
106
- const entities = entities_?.length > 0 ? entities_.map((v) => (0, _3_types_js_1.messageEntityToTlObject)(v)) : undefined;
107
+ const entities = entities_?.length > 0 ? await Promise.all(entities_.map((v) => (0, _3_types_js_2.messageEntityToTlObject)(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity))) : undefined;
107
108
  return [text, entities];
108
109
  }
109
110
  async getStickerSetName(inputStickerSet, hash = 0) {
@@ -119,7 +120,7 @@ class MessageManager {
119
120
  }
120
121
  }
121
122
  async constructMessage(message_, r) {
122
- return await (0, _3_types_js_1.constructMessage)(message_, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity, this.getMessage.bind(this), this.getStickerSetName.bind(this), r);
123
+ return await (0, _3_types_js_2.constructMessage)(message_, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity, this.getMessage.bind(this), this.getStickerSetName.bind(this), r);
123
124
  }
124
125
  async forwardMessages(from, to, messageIds, params) {
125
126
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.forwardMessages({
@@ -180,7 +181,7 @@ class MessageManager {
180
181
  return messages;
181
182
  }
182
183
  async sendMessage(chatId, text, params) {
183
- const [message, entities] = this.parseText(text, params);
184
+ const [message, entities] = await this.parseText(text, params);
184
185
  const replyMarkup = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params);
185
186
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
186
187
  const randomId = (0, _1_utilities_js_1.getRandomId)();
@@ -195,13 +196,13 @@ class MessageManager {
195
196
  no_webpage: noWebpage,
196
197
  silent,
197
198
  noforwards,
198
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
199
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
199
200
  send_as: sendAs,
200
201
  entities,
201
202
  reply_markup: replyMarkup,
202
203
  });
203
204
  const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
204
- return (0, _3_types_js_1.assertMessageType)(message_, "text");
205
+ return (0, _3_types_js_2.assertMessageType)(message_, "text");
205
206
  }
206
207
  async sendVenue(chatId, latitude, longitude, title, address, params) {
207
208
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
@@ -215,7 +216,7 @@ class MessageManager {
215
216
  random_id: randomId,
216
217
  silent,
217
218
  noforwards,
218
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
219
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
219
220
  send_as: sendAs,
220
221
  reply_markup: replyMarkup,
221
222
  media: new _2_tl_js_1.types.InputMediaVenue({
@@ -232,7 +233,7 @@ class MessageManager {
232
233
  message: "",
233
234
  });
234
235
  const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
235
- return (0, _3_types_js_1.assertMessageType)(message, "venue");
236
+ return (0, _3_types_js_2.assertMessageType)(message, "venue");
236
237
  }
237
238
  async sendContact(chatId, firstName, number, params) {
238
239
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
@@ -246,7 +247,7 @@ class MessageManager {
246
247
  random_id: randomId,
247
248
  silent,
248
249
  noforwards,
249
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
250
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
250
251
  send_as: sendAs,
251
252
  reply_markup: replyMarkup,
252
253
  media: new _2_tl_js_1.types.InputMediaContact({
@@ -258,7 +259,7 @@ class MessageManager {
258
259
  message: "",
259
260
  });
260
261
  const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
261
- return (0, _3_types_js_1.assertMessageType)(message, "contact");
262
+ return (0, _3_types_js_2.assertMessageType)(message, "contact");
262
263
  }
263
264
  async sendDice(chatId, params) {
264
265
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
@@ -272,7 +273,7 @@ class MessageManager {
272
273
  random_id: randomId,
273
274
  silent,
274
275
  noforwards,
275
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
276
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
276
277
  send_as: sendAs,
277
278
  reply_markup: replyMarkup,
278
279
  media: new _2_tl_js_1.types.InputMediaDice({
@@ -281,7 +282,7 @@ class MessageManager {
281
282
  message: "",
282
283
  });
283
284
  const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
284
- return (0, _3_types_js_1.assertMessageType)(message, "dice");
285
+ return (0, _3_types_js_2.assertMessageType)(message, "dice");
285
286
  }
286
287
  async sendLocation(chatId, latitude, longitude, params) {
287
288
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
@@ -295,7 +296,7 @@ class MessageManager {
295
296
  random_id: randomId,
296
297
  silent,
297
298
  noforwards,
298
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
299
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
299
300
  send_as: sendAs,
300
301
  reply_markup: replyMarkup,
301
302
  media: params?.livePeriod !== undefined
@@ -319,10 +320,10 @@ class MessageManager {
319
320
  message: "",
320
321
  });
321
322
  const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
322
- return (0, _3_types_js_1.assertMessageType)(message, "location");
323
+ return (0, _3_types_js_2.assertMessageType)(message, "location");
323
324
  }
324
325
  async sendVideoNote(chatId, audio, params) {
325
- const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, audio, params, _3_types_js_1.FileType.VideoNote, [
326
+ const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, audio, params, _3_types_js_2.FileType.VideoNote, [
326
327
  new _2_tl_js_1.types.DocumentAttributeVideo({
327
328
  round_message: true,
328
329
  w: params?.length ?? 0,
@@ -330,29 +331,29 @@ class MessageManager {
330
331
  duration: params?.duration ?? 0,
331
332
  }),
332
333
  ], false);
333
- return (0, _3_types_js_1.assertMessageType)(message, "videoNote");
334
+ return (0, _3_types_js_2.assertMessageType)(message, "videoNote");
334
335
  }
335
336
  async sendAudio(chatId, audio, params) {
336
- const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, audio, params, _3_types_js_1.FileType.Audio, [
337
+ const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, audio, params, _3_types_js_2.FileType.Audio, [
337
338
  new _2_tl_js_1.types.DocumentAttributeAudio({
338
339
  duration: params?.duration ?? 0,
339
340
  performer: params?.performer,
340
341
  title: params?.title,
341
342
  }),
342
343
  ]);
343
- return (0, _3_types_js_1.assertMessageType)(message, "audio");
344
+ return (0, _3_types_js_2.assertMessageType)(message, "audio");
344
345
  }
345
346
  async sendVoice(chatId, voice, params) {
346
- const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, voice, params, _3_types_js_1.FileType.Voice, [
347
+ const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, voice, params, _3_types_js_2.FileType.Voice, [
347
348
  new _2_tl_js_1.types.DocumentAttributeAudio({
348
349
  voice: true,
349
350
  duration: params?.duration ?? 0,
350
351
  }),
351
352
  ]);
352
- return (0, _3_types_js_1.assertMessageType)(message, "voice");
353
+ return (0, _3_types_js_2.assertMessageType)(message, "voice");
353
354
  }
354
355
  async sendAnimation(chatId, animation, params) {
355
- const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, animation, params, _3_types_js_1.FileType.Animation, [
356
+ const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, animation, params, _3_types_js_2.FileType.Animation, [
356
357
  new _2_tl_js_1.types.DocumentAttributeAnimated(),
357
358
  new _2_tl_js_1.types.DocumentAttributeVideo({
358
359
  supports_streaming: true,
@@ -361,10 +362,10 @@ class MessageManager {
361
362
  duration: params?.duration ?? 0,
362
363
  }),
363
364
  ]);
364
- return (0, _3_types_js_1.assertMessageType)(message, "animation");
365
+ return (0, _3_types_js_2.assertMessageType)(message, "animation");
365
366
  }
366
367
  async sendVideo(chatId, video, params) {
367
- const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, video, params, _3_types_js_1.FileType.Video, [
368
+ const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, video, params, _3_types_js_2.FileType.Video, [
368
369
  new _2_tl_js_1.types.DocumentAttributeVideo({
369
370
  supports_streaming: params?.supportsStreaming ? true : undefined,
370
371
  w: params?.width ?? 0,
@@ -372,17 +373,17 @@ class MessageManager {
372
373
  duration: params?.duration ?? 0,
373
374
  }),
374
375
  ]);
375
- return (0, _3_types_js_1.assertMessageType)(message, "video");
376
+ return (0, _3_types_js_2.assertMessageType)(message, "video");
376
377
  }
377
378
  async sendDocument(chatId, document, params) {
378
- const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, document, params, _3_types_js_1.FileType.Document, []);
379
- return (0, _3_types_js_1.assertMessageType)(message, "document");
379
+ const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendDocumentInner).call(this, chatId, document, params, _3_types_js_2.FileType.Document, []);
380
+ return (0, _3_types_js_2.assertMessageType)(message, "document");
380
381
  }
381
382
  async sendPhoto(chatId, photo, params) {
382
383
  let media = null;
383
384
  const spoiler = params?.hasSpoiler ? true : undefined;
384
385
  if (typeof photo === "string") {
385
- const fileId = __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveFileId).call(this, photo, _3_types_js_1.FileType.Photo);
386
+ const fileId = __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveFileId).call(this, photo, _3_types_js_2.FileType.Photo);
386
387
  if (fileId != null) {
387
388
  media = new _2_tl_js_1.types.InputMediaPhoto({
388
389
  id: new _2_tl_js_1.types.InputPhoto(fileId),
@@ -401,7 +402,7 @@ class MessageManager {
401
402
  }
402
403
  }
403
404
  const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendMedia).call(this, chatId, media, params);
404
- return (0, _3_types_js_1.assertMessageType)(message, "photo");
405
+ return (0, _3_types_js_2.assertMessageType)(message, "photo");
405
406
  }
406
407
  async sendPoll(chatId, question, options, params) {
407
408
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
@@ -411,7 +412,7 @@ class MessageManager {
411
412
  const sendAs = params?.sendAs ? await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
412
413
  const replyMarkup = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params);
413
414
  const explanation = params?.explanation;
414
- const parseResult = explanation !== undefined ? this.parseText(explanation, { parseMode: params?.explanationParseMode, entities: params?.explanationEntities }) : undefined;
415
+ const parseResult = explanation !== undefined ? await this.parseText(explanation, { parseMode: params?.explanationParseMode, entities: params?.explanationEntities }) : undefined;
415
416
  const solution = parseResult === undefined ? undefined : parseResult[0];
416
417
  const solutionEntities = parseResult === undefined ? undefined : parseResult[1];
417
418
  const answers = options.map((v, i) => new _2_tl_js_1.types.PollAnswer({ option: new Uint8Array([i]), text: v }));
@@ -438,13 +439,13 @@ class MessageManager {
438
439
  silent,
439
440
  noforwards,
440
441
  reply_markup: replyMarkup,
441
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
442
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
442
443
  send_as: sendAs,
443
444
  media,
444
445
  message: "",
445
446
  });
446
447
  const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
447
- return (0, _3_types_js_1.assertMessageType)(message, "poll");
448
+ return (0, _3_types_js_2.assertMessageType)(message, "poll");
448
449
  }
449
450
  async editMessageReplyMarkup(chatId, messageId, params) {
450
451
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
@@ -456,7 +457,7 @@ class MessageManager {
456
457
  return message_;
457
458
  }
458
459
  async editMessageText(chatId, messageId, text, params) {
459
- const [message, entities] = this.parseText(text, params);
460
+ const [message, entities] = await this.parseText(text, params);
460
461
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
461
462
  id: messageId,
462
463
  peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
@@ -466,7 +467,7 @@ class MessageManager {
466
467
  reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
467
468
  });
468
469
  const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
469
- return (0, _3_types_js_1.assertMessageType)(message_, "text");
470
+ return (0, _3_types_js_2.assertMessageType)(message_, "text");
470
471
  }
471
472
  async deleteMessages(chatId, messageIds, params) {
472
473
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
@@ -516,7 +517,7 @@ class MessageManager {
516
517
  async addReaction(chatId, messageId, reaction, params) {
517
518
  const chosenReactions = await this.getMessage(chatId, messageId).then((v) => v?.reactions ?? []).then((v) => v.filter((v) => v.chosen));
518
519
  for (const r of chosenReactions) {
519
- if ((0, _3_types_js_1.reactionEqual)(r.reaction, reaction)) {
520
+ if ((0, _3_types_js_2.reactionEqual)(r.reaction, reaction)) {
520
521
  return;
521
522
  }
522
523
  }
@@ -526,7 +527,7 @@ class MessageManager {
526
527
  async removeReaction(chatId, messageId, reaction) {
527
528
  const chosenReactions = await this.getMessage(chatId, messageId).then((v) => v?.reactions ?? []).then((v) => v.filter((v) => v.chosen));
528
529
  for (const r of chosenReactions) {
529
- if ((0, _3_types_js_1.reactionEqual)(r.reaction, reaction)) {
530
+ if ((0, _3_types_js_2.reactionEqual)(r.reaction, reaction)) {
530
531
  const reactions = chosenReactions.filter((v) => v != r).map((v) => v.reaction);
531
532
  await this.setReactions(chatId, messageId, reactions);
532
533
  break;
@@ -534,14 +535,20 @@ class MessageManager {
534
535
  }
535
536
  }
536
537
  static canHandleUpdate(update) {
537
- return 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 || update instanceof _2_tl_js_1.types.UpdateDeleteMessages || update instanceof _2_tl_js_1.types.UpdateDeleteChannelMessages;
538
+ return update instanceof _2_tl_js_1.types.UpdateNewMessage ||
539
+ update instanceof _2_tl_js_1.types.UpdateNewChannelMessage ||
540
+ update instanceof _2_tl_js_1.types.UpdateEditMessage ||
541
+ update instanceof _2_tl_js_1.types.UpdateEditChannelMessage ||
542
+ update instanceof _2_tl_js_1.types.UpdateDeleteMessages ||
543
+ update instanceof _2_tl_js_1.types.UpdateDeleteChannelMessages ||
544
+ update instanceof _2_tl_js_1.types.UpdateChannelParticipant ||
545
+ update instanceof _2_tl_js_1.types.UpdateChatParticipant;
538
546
  }
539
547
  async handleUpdate(update) {
540
548
  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) {
541
549
  if (update.message instanceof _2_tl_js_1.types.Message || update.message instanceof _2_tl_js_1.types.MessageService) {
542
550
  const chatId = (0, _2_tl_js_1.peerToChatId)(update.message.peer_id);
543
551
  await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.setMessage(chatId, update.message.id, update.message);
544
- // promises.push(this.#chatListManager.reassignChatLastMessage(chatId));
545
552
  }
546
553
  }
547
554
  if (update instanceof _2_tl_js_1.types.UpdateNewMessage ||
@@ -588,6 +595,16 @@ class MessageManager {
588
595
  }
589
596
  return { deletedMessages };
590
597
  }
598
+ if (update instanceof _2_tl_js_1.types.UpdateChannelParticipant || update instanceof _2_tl_js_1.types.UpdateChatParticipant) {
599
+ const chatMember = await (0, _3_types_js_1.constructChatMemberUpdated)(update, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity);
600
+ const selfId = await __classPrivateFieldGet(this, _MessageManager_c, "f").getSelfId();
601
+ if (chatMember.oldChatMember.user.id == selfId) {
602
+ return { myChatMember: chatMember };
603
+ }
604
+ else {
605
+ return { chatMember };
606
+ }
607
+ }
591
608
  return null;
592
609
  }
593
610
  async sendChatAction(chatId, action, params) {
@@ -721,7 +738,7 @@ class MessageManager {
721
738
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.editBanned({
722
739
  channel: new _2_tl_js_1.types.InputChannel(chat),
723
740
  participant: member,
724
- banned_rights: (0, _3_types_js_1.chatMemberRightsToTlObject)(params?.rights, params?.untilDate),
741
+ banned_rights: (0, _3_types_js_2.chatMemberRightsToTlObject)(params?.rights, params?.untilDate),
725
742
  });
726
743
  }
727
744
  async getChatAdministrators(chatId) {
@@ -740,7 +757,7 @@ class MessageManager {
740
757
  }
741
758
  const chatMembers = new Array();
742
759
  for (const p of participants.participants) {
743
- chatMembers.push(await (0, _3_types_js_1.constructChatMember)(p, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity));
760
+ chatMembers.push(await (0, _3_types_js_2.constructChatMember)(p, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity));
744
761
  }
745
762
  return chatMembers;
746
763
  }
@@ -751,7 +768,7 @@ class MessageManager {
751
768
  }
752
769
  const chatMembers = new Array();
753
770
  for (const p of fullChat.full_chat.participants.participants) {
754
- chatMembers.push(await (0, _3_types_js_1.constructChatMember)(p, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity));
771
+ chatMembers.push(await (0, _3_types_js_2.constructChatMember)(p, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity));
755
772
  }
756
773
  return chatMembers;
757
774
  }
@@ -786,7 +803,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
786
803
  }, _MessageManager_constructReplyMarkup = async function _MessageManager_constructReplyMarkup(params) {
787
804
  if (params?.replyMarkup) {
788
805
  await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertBot("replyMarkup");
789
- return (0, _3_types_js_1.replyMarkupToTlObject)(params.replyMarkup, this.usernameResolver.bind(this));
806
+ return (0, _3_types_js_2.replyMarkupToTlObject)(params.replyMarkup, this.usernameResolver.bind(this));
790
807
  }
791
808
  }, _MessageManager_resolveSendAs = async function _MessageManager_resolveSendAs(params) {
792
809
  const sendAs = params?.sendAs;
@@ -794,10 +811,10 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
794
811
  await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("sendAs");
795
812
  return sendAs ? await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(sendAs) : undefined;
796
813
  }
797
- }, _MessageManager_constructReplyTo = function _MessageManager_constructReplyTo(params) {
814
+ }, _MessageManager_constructReplyTo = async function _MessageManager_constructReplyTo(params) {
798
815
  const topMsgId = params?.messageThreadId;
799
816
  const replyToMsgId = params?.replyToMessageId;
800
- return replyToMsgId !== undefined ? new _2_tl_js_1.types.InputReplyToMessage({ reply_to_msg_id: replyToMsgId, top_msg_id: topMsgId, quote_text: params?.replyQuote?.text, quote_entities: params?.replyQuote?.entities.map(_3_types_js_1.messageEntityToTlObject), quote_offset: params?.replyQuote?.offset }) : undefined;
817
+ return replyToMsgId !== undefined ? new _2_tl_js_1.types.InputReplyToMessage({ reply_to_msg_id: replyToMsgId, top_msg_id: topMsgId, quote_text: params?.replyQuote?.text, quote_entities: await Promise.all(params?.replyQuote?.entities.map((v) => (0, _3_types_js_2.messageEntityToTlObject)(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity)) ?? []), quote_offset: params?.replyQuote?.offset }) : undefined;
801
818
  }, _MessageManager_sendDocumentInner = async function _MessageManager_sendDocumentInner(chatId, document, params, fileType, otherAttribs, urlSupported = false) {
802
819
  let media = null;
803
820
  const spoiler = params?.hasSpoiler ? true : undefined;
@@ -846,7 +863,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
846
863
  const sendAs = params?.sendAs ? await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
847
864
  const replyMarkup = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params);
848
865
  const caption_ = params?.caption;
849
- const parseResult = caption_ !== undefined ? this.parseText(caption_, { parseMode: params?.parseMode, entities: params?.captionEntities }) : undefined;
866
+ const parseResult = caption_ !== undefined ? await this.parseText(caption_, { parseMode: params?.parseMode, entities: params?.captionEntities }) : undefined;
850
867
  const caption = parseResult === undefined ? undefined : parseResult[0];
851
868
  const captionEntities = parseResult === undefined ? undefined : parseResult[1];
852
869
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMedia({
@@ -855,7 +872,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
855
872
  silent,
856
873
  noforwards,
857
874
  reply_markup: replyMarkup,
858
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
875
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
859
876
  send_as: sendAs,
860
877
  media,
861
878
  message: caption ?? "",
@@ -865,7 +882,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
865
882
  }, _MessageManager_resolveFileId = function _MessageManager_resolveFileId(maybeFileId, expectedFileType) {
866
883
  let fileId = null;
867
884
  try {
868
- fileId = _3_types_js_1.FileID.decode(maybeFileId);
885
+ fileId = _3_types_js_2.FileID.decode(maybeFileId);
869
886
  }
870
887
  catch (err) {
871
888
  d("fileId: %o", err);
@@ -888,7 +905,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
888
905
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendReaction({
889
906
  peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
890
907
  msg_id: messageId,
891
- reaction: reactions.map((v) => (0, _3_types_js_1.reactionToTlObject)(v)),
908
+ reaction: reactions.map((v) => (0, _3_types_js_2.reactionToTlObject)(v)),
892
909
  big: params?.big ? true : undefined,
893
910
  add_to_recent: params?.addToRecents ? true : undefined,
894
911
  });
@@ -6,11 +6,12 @@ import { MessageManager } from "./2_message_manager.js";
6
6
  type C = C_ & {
7
7
  messageManager: MessageManager;
8
8
  };
9
+ type CallbackQueryManagerUpdate = types.UpdateBotCallbackQuery | types.UpdateInlineBotCallbackQuery;
9
10
  export declare class CallbackQueryManager {
10
11
  #private;
11
12
  constructor(c: C);
12
13
  answerCallbackQuery(id: string, params?: AnswerCallbackQueryParams): Promise<void>;
13
- static canHandleUpdate(update: enums.Update): update is types.UpdateBotCallbackQuery | types.UpdateInlineBotCallbackQuery;
14
- handleUpdate(update: types.UpdateBotCallbackQuery | types.UpdateInlineBotCallbackQuery): Promise<Update>;
14
+ static canHandleUpdate(update: enums.Update): update is CallbackQueryManagerUpdate;
15
+ handleUpdate(update: CallbackQueryManagerUpdate): Promise<Update>;
15
16
  }
16
17
  export {};
@@ -5,13 +5,14 @@ import { MessageManager } from "./2_message_manager.js";
5
5
  type C = C_ & {
6
6
  messageManager: MessageManager;
7
7
  };
8
+ type ChatListManagerUpdate = types.UpdateNewMessage | types.UpdateNewChannelMessage | types.UpdatePinnedDialogs | types.UpdateFolderPeers | types.UpdateChannel | types.UpdateChat | types.UpdateUser | types.UpdateUserName;
8
9
  export declare class ChatListManager {
9
10
  #private;
10
11
  constructor(c: C);
11
12
  reassignChatLastMessage(chatId: number, add?: boolean, sendUpdate?: boolean): Promise<() => Promise<void>>;
12
13
  getChats(from?: "archived" | "main", after?: Chat, limit?: number): Promise<Chat[]>;
13
- static canHandleUpdate(update: enums.Update): update is types.UpdateNewMessage | types.UpdateNewChannelMessage | types.UpdatePinnedDialogs | types.UpdateFolderPeers | types.UpdateChannel | types.UpdateChat | types.UpdateUser | types.UpdateUserName;
14
- handleUpdate(update: types.UpdateNewMessage | types.UpdateNewChannelMessage | types.UpdatePinnedDialogs | types.UpdateFolderPeers | types.UpdateChannel | types.UpdateChat | types.UpdateUser | types.UpdateUserName): Promise<void>;
14
+ static canHandleUpdate(update: enums.Update): update is ChatListManagerUpdate;
15
+ handleUpdate(update: ChatListManagerUpdate): Promise<void>;
15
16
  getChat(chatId: ID): Promise<Chat>;
16
17
  }
17
18
  export {};
@@ -6,11 +6,12 @@ import { MessageManager } from "./2_message_manager.js";
6
6
  type C = C_ & {
7
7
  messageManager: MessageManager;
8
8
  };
9
+ type InlineQueryManagerUpdate = types.UpdateBotInlineQuery | types.UpdateBotInlineSend;
9
10
  export declare class InlineQueryManager {
10
11
  #private;
11
12
  constructor(c: C);
12
13
  answerInlineQuery(id: string, results: InlineQueryResult[], params?: AnswerInlineQueryParams): Promise<void>;
13
- static canHandleUpdate(update: enums.Update): update is types.UpdateBotInlineQuery | types.UpdateBotInlineSend;
14
- handleUpdate(update: types.UpdateBotInlineQuery | types.UpdateBotInlineSend): Promise<Update>;
14
+ static canHandleUpdate(update: enums.Update): update is InlineQueryManagerUpdate;
15
+ handleUpdate(update: InlineQueryManagerUpdate): Promise<Update>;
15
16
  }
16
17
  export {};
@@ -158,6 +158,8 @@ export interface ClientParams extends ClientPlainParams {
158
158
  prefixes?: string | string[];
159
159
  /** Whether to guarantee that order-sensitive updates are delivered at least once before delivering next ones. Useful mainly for clients providing a user interface à la Telegram Desktop. Defaults to `false`. */
160
160
  guaranteeUpdateDelivery?: boolean;
161
+ /** Whether to not handle updates received when the client was not running. Defaults to `true` for bots, and `false` for users. */
162
+ dropPendingUpdates?: boolean;
161
163
  }
162
164
  export declare class Client<C extends Context = Context> extends ClientAbstract {
163
165
  #private;
@@ -570,6 +570,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
570
570
  },
571
571
  cdn: params?.cdn ?? false,
572
572
  ignoreOutgoing: __classPrivateFieldGet(this, _Client_ignoreOutgoing, "f"),
573
+ dropPendingUpdates: params?.dropPendingUpdates,
573
574
  };
574
575
  __classPrivateFieldSet(this, _Client_updateManager, new _1_update_manager_js_1.UpdateManager(c), "f");
575
576
  __classPrivateFieldSet(this, _Client_networkStatisticsManager, new _1_network_statistics_manager_js_1.NetworkStatisticsManager(c), "f");
@@ -922,7 +923,6 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
922
923
  }
923
924
  else {
924
925
  inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUserAccessHash).call(this, inputPeer.user_id);
925
- await this.storage.setUserAccessHash(inputPeer.user_id, inputPeer.access_hash);
926
926
  }
927
927
  }
928
928
  return inputPeer;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CAN_NOT_DISPLAY = void 0;
4
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
4
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
5
  exports.CAN_NOT_DISPLAY = "[Cannot display]";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.buildMessage = exports.diffstr = exports.diff = exports.DiffType = void 0;
@@ -17,8 +17,10 @@ function createCommon(A, B, reverse) {
17
17
  if (A.length === 0 || B.length === 0)
18
18
  return [];
19
19
  for (let i = 0; i < Math.min(A.length, B.length); i += 1) {
20
- if (A[reverse ? A.length - i - 1 : i] === B[reverse ? B.length - i - 1 : i]) {
21
- common.push(A[reverse ? A.length - i - 1 : i]);
20
+ const a = reverse ? A[A.length - i - 1] : A[i];
21
+ const b = reverse ? B[B.length - i - 1] : B[i];
22
+ if (a !== undefined && a === b) {
23
+ common.push(a);
22
24
  }
23
25
  else {
24
26
  return common;
@@ -26,6 +28,12 @@ function createCommon(A, B, reverse) {
26
28
  }
27
29
  return common;
28
30
  }
31
+ function ensureDefined(item) {
32
+ if (item === undefined) {
33
+ throw Error("Unexpected missing FarthestPoint");
34
+ }
35
+ return item;
36
+ }
29
37
  /**
30
38
  * Renders the differences between the actual and expected values
31
39
  * @param A Actual value
@@ -112,22 +120,26 @@ function diff(A, B) {
112
120
  if (slide && slide.y === -1 && down && down.y === -1) {
113
121
  return { y: 0, id: 0 };
114
122
  }
115
- if ((down && down.y === -1) ||
123
+ const isAdding = (down?.y === -1) ||
116
124
  k === M ||
117
- (slide && slide.y) > (down && down.y) + 1) {
125
+ (slide?.y || 0) > (down?.y || 0) + 1;
126
+ if (slide && isAdding) {
118
127
  const prev = slide.id;
119
128
  ptr++;
120
129
  routes[ptr] = prev;
121
130
  routes[ptr + diffTypesPtrOffset] = ADDED;
122
131
  return { y: slide.y, id: ptr };
123
132
  }
124
- else {
133
+ else if (down && !isAdding) {
125
134
  const prev = down.id;
126
135
  ptr++;
127
136
  routes[ptr] = prev;
128
137
  routes[ptr + diffTypesPtrOffset] = REMOVED;
129
138
  return { y: down.y + 1, id: ptr };
130
139
  }
140
+ else {
141
+ throw new Error("Unexpected missing FarthestPoint");
142
+ }
131
143
  }
132
144
  function snake(k, slide, down, _offset, A, B) {
133
145
  const M = A.length;
@@ -145,7 +157,8 @@ function diff(A, B) {
145
157
  }
146
158
  return fp;
147
159
  }
148
- while (fp[delta + offset].y < N) {
160
+ let currentFP = ensureDefined(fp[delta + offset]);
161
+ while (currentFP && currentFP.y < N) {
149
162
  p = p + 1;
150
163
  for (let k = -p; k < delta; ++k) {
151
164
  fp[k + offset] = snake(k, fp[k - 1 + offset], fp[k + 1 + offset], offset, A, B);
@@ -154,10 +167,11 @@ function diff(A, B) {
154
167
  fp[k + offset] = snake(k, fp[k - 1 + offset], fp[k + 1 + offset], offset, A, B);
155
168
  }
156
169
  fp[delta + offset] = snake(delta, fp[delta - 1 + offset], fp[delta + 1 + offset], offset, A, B);
170
+ currentFP = ensureDefined(fp[delta + offset]);
157
171
  }
158
172
  return [
159
173
  ...prefixCommon.map((c) => ({ type: exports.DiffType.common, value: c })),
160
- ...backTrace(A, B, fp[delta + offset], swapped),
174
+ ...backTrace(A, B, currentFP, swapped),
161
175
  ...suffixCommon.map((c) => ({ type: exports.DiffType.common, value: c })),
162
176
  ];
163
177
  }
@@ -188,9 +202,14 @@ function diffstr(A, B) {
188
202
  const words = /^[a-zA-Z\u{C0}-\u{FF}\u{D8}-\u{F6}\u{F8}-\u{2C6}\u{2C8}-\u{2D7}\u{2DE}-\u{2FF}\u{1E00}-\u{1EFF}]+$/u;
189
203
  // Join boundary splits that we do not consider to be boundaries and merge empty strings surrounded by word chars
190
204
  for (let i = 0; i < tokens.length - 1; i++) {
191
- if (!tokens[i + 1] && tokens[i + 2] && words.test(tokens[i]) &&
192
- words.test(tokens[i + 2])) {
193
- tokens[i] += tokens[i + 2];
205
+ const token = tokens[i];
206
+ const tokenPlusTwo = tokens[i + 2];
207
+ if (!tokens[i + 1] &&
208
+ token &&
209
+ tokenPlusTwo &&
210
+ words.test(token) &&
211
+ words.test(tokenPlusTwo)) {
212
+ tokens[i] += tokenPlusTwo;
194
213
  tokens.splice(i + 1, 2);
195
214
  i--;
196
215
  }
@@ -199,18 +218,19 @@ function diffstr(A, B) {
199
218
  }
200
219
  else {
201
220
  // Split string on new lines symbols
202
- const tokens = [], lines = string.split(/(\n|\r\n)/);
221
+ const tokens = [];
222
+ const lines = string.split(/(\n|\r\n)/);
203
223
  // Ignore final empty token when text ends with a newline
204
224
  if (!lines[lines.length - 1]) {
205
225
  lines.pop();
206
226
  }
207
227
  // Merge the content and line separators into single tokens
208
- for (let i = 0; i < lines.length; i++) {
228
+ for (const [i, line] of lines.entries()) {
209
229
  if (i % 2) {
210
- tokens[tokens.length - 1] += lines[i];
230
+ tokens[tokens.length - 1] += line;
211
231
  }
212
232
  else {
213
- tokens.push(lines[i]);
233
+ tokens.push(line);
214
234
  }
215
235
  }
216
236
  return tokens;
@@ -220,11 +240,12 @@ function diffstr(A, B) {
220
240
  // and merge "space-diff" if surrounded by word-diff for cleaner displays
221
241
  function createDetails(line, tokens) {
222
242
  return tokens.filter(({ type }) => type === line.type || type === exports.DiffType.common).map((result, i, t) => {
223
- if ((result.type === exports.DiffType.common) && (t[i - 1]) &&
224
- (t[i - 1]?.type === t[i + 1]?.type) && /\s+/.test(result.value)) {
243
+ const token = t[i - 1];
244
+ if ((result.type === exports.DiffType.common) && token &&
245
+ (token.type === t[i + 1]?.type) && /\s+/.test(result.value)) {
225
246
  return {
226
247
  ...result,
227
- type: t[i - 1].type,
248
+ type: token.type,
228
249
  };
229
250
  }
230
251
  return result;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
3
  // This module is browser compatible.
4
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
5
  if (k2 === undefined) k2 = k;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assert = void 0;
4
- // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
4
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
5
  const assertion_error_js_1 = require("./assertion_error.js");
6
6
  /**
7
7
  * Make an assertion, error will be thrown if `expr` does not have truthy value.