@mtkruto/node 0.1.143 → 0.1.145

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 (561) 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 +1 -0
  4. package/esm/3_types.js +1 -0
  5. package/esm/4_constants.d.ts +2 -2
  6. package/esm/4_constants.js +2 -2
  7. package/esm/client/0_message.js +9 -9
  8. package/esm/client/0_types.d.ts +1 -0
  9. package/esm/client/1_file_manager.js +1 -1
  10. package/esm/client/1_update_manager.js +33 -13
  11. package/esm/client/2_client_plain.js +4 -4
  12. package/esm/client/2_message_manager.d.ts +3 -2
  13. package/esm/client/2_message_manager.js +52 -36
  14. package/esm/client/4_client.d.ts +12 -1
  15. package/esm/client/4_client.js +24 -12
  16. package/esm/deps/deno.land/std@0.212.0/assert/_constants.js +2 -0
  17. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.js +39 -18
  18. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.js +1 -1
  19. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.js +1 -1
  20. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.js +1 -1
  21. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.js +1 -1
  22. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.js +1 -1
  23. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.js +1 -1
  24. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.js +1 -1
  25. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.js +1 -1
  26. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.js +1 -1
  27. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.js +1 -1
  28. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.js +1 -1
  29. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.js +1 -1
  30. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.js +1 -1
  31. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.js +1 -1
  32. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.js +1 -1
  33. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.js +1 -1
  34. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.js +1 -1
  35. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.js +1 -1
  36. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.js +1 -1
  37. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.js +1 -1
  38. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.js +1 -1
  39. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.js +1 -1
  40. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.js +1 -1
  41. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.js +1 -1
  42. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.js +1 -1
  43. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.js +1 -1
  44. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.js +1 -1
  45. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.js +1 -1
  46. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.js +1 -1
  47. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.js +1 -1
  48. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.js +1 -1
  49. package/{script/deps/deno.land/std@0.210.0 → esm/deps/deno.land/std@0.212.0}/fmt/colors.d.ts +16 -11
  50. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/fmt/colors.js +14 -11
  51. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.js +1 -1
  52. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.js +8 -6
  53. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.js +1 -1
  54. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.js +1 -1
  55. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.js +1 -1
  56. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.js +2 -2
  57. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.js +1 -1
  58. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.js +1 -1
  59. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.js +1 -1
  60. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.js +1 -1
  61. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.js +1 -1
  62. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.js +1 -1
  63. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.js +1 -1
  64. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.js +1 -1
  65. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.js +1 -1
  66. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.js +1 -1
  67. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.js +1 -1
  68. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.js +1 -1
  69. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.js +1 -1
  70. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.js +1 -1
  71. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.js +1 -1
  72. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.js +1 -1
  73. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.js +1 -1
  74. package/esm/deps/deno.land/std@0.212.0/path/_interface.js +3 -0
  75. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.js +1 -1
  76. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.js +1 -1
  77. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/common.d.ts +2 -1
  78. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/common.js +1 -1
  79. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.js +1 -1
  80. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.js +1 -1
  81. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.js +1 -1
  82. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.js +1 -1
  83. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.js +1 -1
  84. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.js +1 -1
  85. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.js +1 -1
  86. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.js +1 -1
  87. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.js +1 -1
  88. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.js +1 -1
  89. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.js +1 -1
  90. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.js +1 -1
  91. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.js +1 -1
  92. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.js +1 -1
  93. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.js +1 -1
  94. 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
  95. package/esm/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/common.js +1 -1
  96. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.js +1 -1
  97. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.js +1 -1
  98. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.js +1 -1
  99. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.d.ts +1 -1
  100. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.js +2 -2
  101. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.js +1 -1
  102. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.js +1 -1
  103. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_glob.js +1 -1
  104. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.js +1 -1
  105. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join_globs.js +1 -1
  106. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.js +1 -1
  107. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.js +1 -1
  108. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize_glob.js +1 -1
  109. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.js +1 -1
  110. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.js +1 -1
  111. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.js +1 -1
  112. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.js +1 -1
  113. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.d.ts +1 -1
  114. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.js +2 -2
  115. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.js +1 -1
  116. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.js +1 -1
  117. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.js +1 -1
  118. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.js +1 -1
  119. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.js +1 -1
  120. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.js +1 -1
  121. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.js +1 -1
  122. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.js +1 -1
  123. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/common.d.ts +2 -1
  124. package/esm/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/common.js +1 -1
  125. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.js +1 -1
  126. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.js +1 -1
  127. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.js +1 -1
  128. 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
  129. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/from_file_url.js +2 -2
  130. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.js +1 -1
  131. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.js +1 -1
  132. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_glob.js +1 -1
  133. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.js +1 -1
  134. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join_globs.js +1 -1
  135. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.js +1 -1
  136. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.js +1 -1
  137. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize_glob.js +1 -1
  138. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.js +1 -1
  139. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.js +1 -1
  140. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.js +1 -1
  141. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.js +1 -1
  142. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.d.ts +1 -1
  143. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.js +2 -2
  144. package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.js +1 -1
  145. package/esm/storage/0_storage.d.ts +3 -6
  146. package/esm/storage/0_storage.js +17 -17
  147. package/esm/tl/0_tl_raw_reader.js +3 -2
  148. package/esm/tl/0_tl_raw_writer.js +3 -3
  149. package/esm/tl/2_types.d.ts +218 -4
  150. package/esm/tl/2_types.js +632 -19
  151. package/esm/tl/3_functions.d.ts +232 -0
  152. package/esm/tl/3_functions.js +608 -4
  153. package/esm/transport/0_obfuscation.js +2 -2
  154. package/esm/transport/1_transport_abridged.js +1 -1
  155. package/esm/transport/1_transport_intermediate.js +1 -1
  156. package/esm/types/0__file_id.js +2 -2
  157. package/esm/types/0_chat_member_rights.d.ts +3 -0
  158. package/esm/types/0_chat_member_rights.js +45 -1
  159. package/esm/types/0_message_entity.d.ts +2 -1
  160. package/esm/types/0_message_entity.js +27 -4
  161. package/esm/types/1_chat_p.js +1 -1
  162. package/esm/types/2_chat_member.d.ts +46 -0
  163. package/esm/types/2_chat_member.js +89 -0
  164. package/esm/types/4_inline_query_result.d.ts +1 -1
  165. package/esm/types/4_inline_query_result.js +2 -2
  166. package/package.json +1 -1
  167. package/script/0_deps.d.ts +4 -4
  168. package/script/0_deps.js +5 -5
  169. package/script/3_types.d.ts +1 -0
  170. package/script/3_types.js +1 -0
  171. package/script/4_constants.d.ts +2 -2
  172. package/script/4_constants.js +2 -2
  173. package/script/client/0_message.js +9 -9
  174. package/script/client/0_types.d.ts +1 -0
  175. package/script/client/1_file_manager.js +1 -1
  176. package/script/client/1_update_manager.js +33 -13
  177. package/script/client/2_client_plain.js +4 -4
  178. package/script/client/2_message_manager.d.ts +3 -2
  179. package/script/client/2_message_manager.js +51 -35
  180. package/script/client/4_client.d.ts +12 -1
  181. package/script/client/4_client.js +24 -12
  182. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_constants.js +1 -1
  183. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.js +39 -18
  184. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.js +1 -1
  185. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.js +1 -1
  186. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.js +1 -1
  187. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.js +1 -1
  188. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.js +1 -1
  189. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.js +1 -1
  190. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.js +1 -1
  191. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.js +1 -1
  192. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.js +1 -1
  193. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.js +1 -1
  194. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.js +1 -1
  195. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.js +1 -1
  196. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.js +1 -1
  197. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.js +1 -1
  198. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.js +1 -1
  199. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.js +1 -1
  200. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.js +1 -1
  201. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.js +1 -1
  202. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.js +1 -1
  203. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.js +1 -1
  204. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.js +1 -1
  205. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.js +1 -1
  206. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.js +1 -1
  207. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.js +1 -1
  208. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.js +1 -1
  209. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.js +1 -1
  210. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.js +1 -1
  211. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.js +1 -1
  212. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.js +1 -1
  213. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.js +1 -1
  214. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.js +1 -1
  215. package/{esm/deps/deno.land/std@0.210.0 → script/deps/deno.land/std@0.212.0}/fmt/colors.d.ts +16 -11
  216. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/fmt/colors.js +14 -11
  217. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.js +1 -1
  218. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.js +8 -6
  219. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.js +1 -1
  220. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.js +1 -1
  221. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.js +1 -1
  222. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.js +2 -2
  223. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.js +1 -1
  224. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.js +1 -1
  225. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.js +1 -1
  226. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/vendor/mime-db.v1.52.0.js +1 -1
  227. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.js +1 -1
  228. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.js +1 -1
  229. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.js +1 -1
  230. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.js +1 -1
  231. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.js +1 -1
  232. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.js +1 -1
  233. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.js +1 -1
  234. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.js +1 -1
  235. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.js +1 -1
  236. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.js +1 -1
  237. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.js +1 -1
  238. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.js +1 -1
  239. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.js +1 -1
  240. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_interface.js +1 -1
  241. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.js +1 -1
  242. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.js +1 -1
  243. 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
  244. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/common.js +1 -1
  245. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.js +1 -1
  246. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.js +1 -1
  247. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.js +1 -1
  248. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.js +1 -1
  249. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.js +1 -1
  250. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.js +1 -1
  251. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.js +1 -1
  252. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.js +1 -1
  253. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.js +1 -1
  254. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.js +1 -1
  255. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.js +1 -1
  256. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.js +1 -1
  257. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.js +1 -1
  258. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.js +1 -1
  259. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.js +1 -1
  260. package/script/deps/deno.land/std@0.212.0/path/posix/common.d.ts +14 -0
  261. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/common.js +1 -1
  262. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.js +1 -1
  263. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.js +1 -1
  264. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.js +1 -1
  265. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.d.ts +1 -1
  266. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/from_file_url.js +2 -2
  267. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.js +1 -1
  268. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.js +1 -1
  269. package/script/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/is_glob.js +1 -1
  270. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.js +1 -1
  271. package/script/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/join_globs.js +1 -1
  272. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.js +1 -1
  273. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.js +1 -1
  274. package/script/deps/deno.land/{std@0.210.0/path/windows → std@0.212.0/path/posix}/normalize_glob.js +1 -1
  275. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.js +1 -1
  276. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.js +1 -1
  277. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.js +1 -1
  278. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.js +1 -1
  279. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.d.ts +1 -1
  280. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_file_url.js +2 -2
  281. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.js +1 -1
  282. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.js +1 -1
  283. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.js +1 -1
  284. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.js +1 -1
  285. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.js +1 -1
  286. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.js +1 -1
  287. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.js +1 -1
  288. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.js +1 -1
  289. package/script/deps/deno.land/std@0.212.0/path/windows/common.d.ts +14 -0
  290. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/common.js +1 -1
  291. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.js +1 -1
  292. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.js +1 -1
  293. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.js +1 -1
  294. 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
  295. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/from_file_url.js +2 -2
  296. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.js +1 -1
  297. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.js +1 -1
  298. package/script/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/is_glob.js +1 -1
  299. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.js +1 -1
  300. package/script/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/join_globs.js +1 -1
  301. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.js +1 -1
  302. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.js +1 -1
  303. package/script/deps/deno.land/{std@0.210.0/path/posix → std@0.212.0/path/windows}/normalize_glob.js +1 -1
  304. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.js +1 -1
  305. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.js +1 -1
  306. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.js +1 -1
  307. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.js +1 -1
  308. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.d.ts +1 -1
  309. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_file_url.js +2 -2
  310. package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.js +1 -1
  311. package/script/storage/0_storage.d.ts +3 -6
  312. package/script/storage/0_storage.js +17 -17
  313. package/script/tl/0_tl_raw_reader.js +3 -2
  314. package/script/tl/0_tl_raw_writer.js +3 -3
  315. package/script/tl/2_types.d.ts +218 -4
  316. package/script/tl/2_types.js +674 -44
  317. package/script/tl/3_functions.d.ts +232 -0
  318. package/script/tl/3_functions.js +629 -14
  319. package/script/transport/0_obfuscation.js +2 -2
  320. package/script/transport/1_transport_abridged.js +1 -1
  321. package/script/transport/1_transport_intermediate.js +1 -1
  322. package/script/types/0__file_id.js +2 -2
  323. package/script/types/0_chat_member_rights.d.ts +3 -0
  324. package/script/types/0_chat_member_rights.js +48 -0
  325. package/script/types/0_message_entity.d.ts +2 -1
  326. package/script/types/0_message_entity.js +27 -4
  327. package/script/types/1_chat_p.js +1 -1
  328. package/script/types/2_chat_member.d.ts +46 -0
  329. package/script/types/2_chat_member.js +93 -0
  330. package/script/types/4_inline_query_result.d.ts +1 -1
  331. package/script/types/4_inline_query_result.js +2 -2
  332. package/esm/deps/deno.land/std@0.210.0/assert/_constants.js +0 -2
  333. package/esm/deps/deno.land/std@0.210.0/path/_interface.js +0 -3
  334. package/script/deps/deno.land/std@0.210.0/path/posix/common.d.ts +0 -13
  335. package/script/deps/deno.land/std@0.210.0/path/windows/common.d.ts +0 -13
  336. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_constants.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.d.ts +0 -0
  344. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.d.ts +0 -0
  346. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.d.ts +0 -0
  348. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.d.ts +0 -0
  350. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.d.ts +0 -0
  354. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.d.ts +0 -0
  358. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.d.ts +0 -0
  360. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.d.ts +0 -0
  361. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.d.ts +0 -0
  364. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.d.ts +0 -0
  366. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.d.ts +0 -0
  368. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.d.ts +0 -0
  370. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.d.ts +0 -0
  372. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.d.ts +0 -0
  374. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.d.ts +0 -0
  375. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.d.ts +0 -0
  376. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.d.ts +0 -0
  377. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.d.ts +0 -0
  378. /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
  379. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.d.ts +0 -0
  380. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.d.ts +0 -0
  381. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.d.ts +0 -0
  382. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.d.ts +0 -0
  383. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.d.ts +0 -0
  384. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.d.ts +0 -0
  385. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.d.ts +0 -0
  386. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.d.ts +0 -0
  388. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.d.ts +0 -0
  390. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  391. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.d.ts +0 -0
  392. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_interface.d.ts +0 -0
  393. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.d.ts +0 -0
  394. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.d.ts +0 -0
  395. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.d.ts +0 -0
  396. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.d.ts +0 -0
  397. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.d.ts +0 -0
  398. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.d.ts +0 -0
  399. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.d.ts +0 -0
  400. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.d.ts +0 -0
  401. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.d.ts +0 -0
  402. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.d.ts +0 -0
  403. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.d.ts +0 -0
  404. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.d.ts +0 -0
  405. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.d.ts +0 -0
  406. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.d.ts +0 -0
  407. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.d.ts +0 -0
  408. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.d.ts +0 -0
  409. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.d.ts +0 -0
  410. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.d.ts +0 -0
  411. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.d.ts +0 -0
  412. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.d.ts +0 -0
  413. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.d.ts +0 -0
  414. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.d.ts +0 -0
  415. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_glob.d.ts +0 -0
  416. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.d.ts +0 -0
  417. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join_globs.d.ts +0 -0
  418. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.d.ts +0 -0
  419. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.d.ts +0 -0
  420. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize_glob.d.ts +0 -0
  421. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.d.ts +0 -0
  422. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.d.ts +0 -0
  423. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.d.ts +0 -0
  424. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.d.ts +0 -0
  425. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.d.ts +0 -0
  426. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.d.ts +0 -0
  427. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.d.ts +0 -0
  428. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.d.ts +0 -0
  429. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.d.ts +0 -0
  430. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.d.ts +0 -0
  431. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.d.ts +0 -0
  432. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.d.ts +0 -0
  433. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.d.ts +0 -0
  434. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.d.ts +0 -0
  435. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.d.ts +0 -0
  436. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.d.ts +0 -0
  437. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.d.ts +0 -0
  438. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_glob.d.ts +0 -0
  439. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.d.ts +0 -0
  440. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join_globs.d.ts +0 -0
  441. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.d.ts +0 -0
  442. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.d.ts +0 -0
  443. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize_glob.d.ts +0 -0
  444. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.d.ts +0 -0
  445. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.d.ts +0 -0
  446. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.d.ts +0 -0
  447. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.d.ts +0 -0
  448. /package/esm/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.d.ts +0 -0
  449. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_constants.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_diff.d.ts +0 -0
  451. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/_format.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert.d.ts +0 -0
  453. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_almost_equals.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_array_includes.d.ts +0 -0
  455. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_equals.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_exists.d.ts +0 -0
  457. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_false.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_greater_or_equal.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_instance_of.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_is_error.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_less_or_equal.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_match.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_equals.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_instance_of.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_match.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_not_strict_equals.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_object_match.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_rejects.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_strict_equals.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_string_includes.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assert_throws.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/assertion_error.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/equal.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/fail.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/mod.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unimplemented.d.ts +0 -0
  479. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/assert/unreachable.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/_util.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/encoding/base64.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_db.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/_util.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/content_type.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extension.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/extensions_by_type.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/format_media_type.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/get_charset.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/parse_media_type.d.ts +0 -0
  490. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/media_types/type_by_extension.d.ts +0 -0
  491. /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
  492. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/assert_path.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/basename.d.ts +0 -0
  494. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/common.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/constants.d.ts +0 -0
  496. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/dirname.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/format.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/from_file_url.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  500. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/normalize_string.d.ts +0 -0
  502. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/relative.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  504. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_common/to_file_url.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_interface.d.ts +0 -0
  506. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/_os.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/basename.d.ts +0 -0
  508. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/dirname.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/extname.d.ts +0 -0
  510. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/format.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/from_file_url.d.ts +0 -0
  512. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/glob_to_regexp.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_absolute.d.ts +0 -0
  514. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/is_glob.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join.d.ts +0 -0
  516. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/join_globs.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/mod.d.ts +0 -0
  518. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/normalize_glob.d.ts +0 -0
  520. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/parse.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/_util.d.ts +0 -0
  522. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/basename.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/dirname.d.ts +0 -0
  524. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/extname.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/format.d.ts +0 -0
  526. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/glob_to_regexp.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_absolute.d.ts +0 -0
  528. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/is_glob.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join.d.ts +0 -0
  530. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/join_globs.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/mod.d.ts +0 -0
  532. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/normalize_glob.d.ts +0 -0
  534. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/parse.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/relative.d.ts +0 -0
  536. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/resolve.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/separator.d.ts +0 -0
  538. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/posix/to_namespaced_path.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/relative.d.ts +0 -0
  540. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/resolve.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/separator.d.ts +0 -0
  542. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_file_url.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/to_namespaced_path.d.ts +0 -0
  544. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/_util.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/basename.d.ts +0 -0
  546. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/dirname.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/extname.d.ts +0 -0
  548. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/format.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/glob_to_regexp.d.ts +0 -0
  550. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_absolute.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/is_glob.d.ts +0 -0
  552. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/join_globs.d.ts +0 -0
  554. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/mod.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize.d.ts +0 -0
  556. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/normalize_glob.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/parse.d.ts +0 -0
  558. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/relative.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/resolve.d.ts +0 -0
  560. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/separator.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.210.0 → std@0.212.0}/path/windows/to_namespaced_path.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { enums, types } from "../2_tl.js";
2
- import { ChatAction, FileSource, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
2
+ import { ChatAction, ChatMember, FileSource, ID, Message, MessageEntity, ParseMode, Reaction, Update, UsernameResolver } from "../3_types.js";
3
3
  import { BanChatMemberParams, DeleteMessagesParams, EditMessageParams, EditMessageReplyMarkupParams, ForwardMessagesParams, GetHistoryParams, PinMessageParams, SendAnimationParams, SendAudioParams, SendContactParams, SendDiceParams, SendDocumentParams, SendLocationParams, SendMessageParams, SendPhotoParams, SendPollParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatPhotoParams } from "./0_params.js";
4
4
  import { AddReactionParams, SetReactionsParams } from "./0_params.js";
5
5
  import { C as C_ } from "./0_types.js";
@@ -16,7 +16,7 @@ export declare class MessageManager {
16
16
  parseText(text: string, params?: {
17
17
  parseMode?: ParseMode;
18
18
  entities?: MessageEntity[];
19
- }): readonly [string, (import("../tl/2_types.js").MessageEntityMention_ | import("../tl/2_types.js").MessageEntityHashtag_ | import("../tl/2_types.js").MessageEntityBotCommand_ | import("../tl/2_types.js").MessageEntityUrl_ | import("../tl/2_types.js").MessageEntityEmail_ | import("../tl/2_types.js").MessageEntityBold_ | import("../tl/2_types.js").MessageEntityItalic_ | import("../tl/2_types.js").MessageEntityCode_ | import("../tl/2_types.js").MessageEntityPre_ | import("../tl/2_types.js").MessageEntityTextUrl_ | import("../tl/2_types.js").MessageEntityMentionName_ | import("../tl/2_types.js").MessageEntityPhone_ | import("../tl/2_types.js").MessageEntityCashtag_ | import("../tl/2_types.js").MessageEntityUnderline_ | import("../tl/2_types.js").MessageEntityStrike_ | import("../tl/2_types.js").MessageEntityBankCard_ | import("../tl/2_types.js").MessageEntitySpoiler_ | import("../tl/2_types.js").MessageEntityCustomEmoji_ | import("../tl/2_types.js").MessageEntityBlockquote_)[] | undefined];
19
+ }): Promise<readonly [string, (import("../tl/2_types.js").MessageEntityMention_ | import("../tl/2_types.js").MessageEntityHashtag_ | import("../tl/2_types.js").MessageEntityBotCommand_ | import("../tl/2_types.js").MessageEntityUrl_ | import("../tl/2_types.js").MessageEntityEmail_ | import("../tl/2_types.js").MessageEntityBold_ | import("../tl/2_types.js").MessageEntityItalic_ | import("../tl/2_types.js").MessageEntityCode_ | import("../tl/2_types.js").MessageEntityPre_ | import("../tl/2_types.js").MessageEntityTextUrl_ | import("../tl/2_types.js").InputMessageEntityMentionName_ | import("../tl/2_types.js").MessageEntityPhone_ | import("../tl/2_types.js").MessageEntityCashtag_ | import("../tl/2_types.js").MessageEntityUnderline_ | import("../tl/2_types.js").MessageEntityStrike_ | import("../tl/2_types.js").MessageEntityBankCard_ | import("../tl/2_types.js").MessageEntitySpoiler_ | import("../tl/2_types.js").MessageEntityCustomEmoji_ | import("../tl/2_types.js").MessageEntityBlockquote_)[] | undefined]>;
20
20
  getStickerSetName(inputStickerSet: types.InputStickerSetID, hash?: number): Promise<string>;
21
21
  constructMessage(message_: enums.Message, r?: boolean): Promise<Message>;
22
22
  forwardMessages(from: ID, to: ID, messageIds: number[], params?: ForwardMessagesParams): Promise<Message[]>;
@@ -56,5 +56,6 @@ export declare class MessageManager {
56
56
  banChatMember(chatId: ID, memberId: ID, params?: BanChatMemberParams): Promise<void>;
57
57
  unbanChatMember(chatId: ID, memberId: ID): Promise<void>;
58
58
  setChatMemberRights(chatId: ID, memberId: ID, params?: SetChatMemberRightsParams): Promise<void>;
59
+ getChatAdministrators(chatId: ID): Promise<ChatMember[]>;
59
60
  }
60
61
  export {};
@@ -86,7 +86,7 @@ class MessageManager {
86
86
  const messages = await this.getMessages(chatId, [messageId]);
87
87
  return messages[0] ?? null;
88
88
  }
89
- parseText(text, params) {
89
+ async parseText(text, params) {
90
90
  const entities_ = params?.entities ?? [];
91
91
  const parseMode = params?.parseMode ?? __classPrivateFieldGet(this, _MessageManager_c, "f").parseMode;
92
92
  switch (parseMode) {
@@ -103,7 +103,7 @@ class MessageManager {
103
103
  default:
104
104
  (0, _1_utilities_js_1.UNREACHABLE)();
105
105
  }
106
- const entities = entities_?.length > 0 ? entities_.map((v) => (0, _3_types_js_1.messageEntityToTlObject)(v)) : undefined;
106
+ const entities = entities_?.length > 0 ? await Promise.all(entities_.map((v) => (0, _3_types_js_1.messageEntityToTlObject)(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity))) : undefined;
107
107
  return [text, entities];
108
108
  }
109
109
  async getStickerSetName(inputStickerSet, hash = 0) {
@@ -180,7 +180,7 @@ class MessageManager {
180
180
  return messages;
181
181
  }
182
182
  async sendMessage(chatId, text, params) {
183
- const [message, entities] = this.parseText(text, params);
183
+ const [message, entities] = await this.parseText(text, params);
184
184
  const replyMarkup = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params);
185
185
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
186
186
  const randomId = (0, _1_utilities_js_1.getRandomId)();
@@ -195,7 +195,7 @@ class MessageManager {
195
195
  no_webpage: noWebpage,
196
196
  silent,
197
197
  noforwards,
198
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
198
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
199
199
  send_as: sendAs,
200
200
  entities,
201
201
  reply_markup: replyMarkup,
@@ -215,7 +215,7 @@ class MessageManager {
215
215
  random_id: randomId,
216
216
  silent,
217
217
  noforwards,
218
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
218
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
219
219
  send_as: sendAs,
220
220
  reply_markup: replyMarkup,
221
221
  media: new _2_tl_js_1.types.InputMediaVenue({
@@ -246,7 +246,7 @@ class MessageManager {
246
246
  random_id: randomId,
247
247
  silent,
248
248
  noforwards,
249
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
249
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
250
250
  send_as: sendAs,
251
251
  reply_markup: replyMarkup,
252
252
  media: new _2_tl_js_1.types.InputMediaContact({
@@ -272,7 +272,7 @@ class MessageManager {
272
272
  random_id: randomId,
273
273
  silent,
274
274
  noforwards,
275
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
275
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
276
276
  send_as: sendAs,
277
277
  reply_markup: replyMarkup,
278
278
  media: new _2_tl_js_1.types.InputMediaDice({
@@ -295,7 +295,7 @@ class MessageManager {
295
295
  random_id: randomId,
296
296
  silent,
297
297
  noforwards,
298
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
298
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
299
299
  send_as: sendAs,
300
300
  reply_markup: replyMarkup,
301
301
  media: params?.livePeriod !== undefined
@@ -411,7 +411,7 @@ class MessageManager {
411
411
  const sendAs = params?.sendAs ? await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
412
412
  const replyMarkup = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params);
413
413
  const explanation = params?.explanation;
414
- const parseResult = explanation !== undefined ? this.parseText(explanation, { parseMode: params?.explanationParseMode, entities: params?.explanationEntities }) : undefined;
414
+ const parseResult = explanation !== undefined ? await this.parseText(explanation, { parseMode: params?.explanationParseMode, entities: params?.explanationEntities }) : undefined;
415
415
  const solution = parseResult === undefined ? undefined : parseResult[0];
416
416
  const solutionEntities = parseResult === undefined ? undefined : parseResult[1];
417
417
  const answers = options.map((v, i) => new _2_tl_js_1.types.PollAnswer({ option: new Uint8Array([i]), text: v }));
@@ -438,7 +438,7 @@ class MessageManager {
438
438
  silent,
439
439
  noforwards,
440
440
  reply_markup: replyMarkup,
441
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
441
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
442
442
  send_as: sendAs,
443
443
  media,
444
444
  message: "",
@@ -456,7 +456,7 @@ class MessageManager {
456
456
  return message_;
457
457
  }
458
458
  async editMessageText(chatId, messageId, text, params) {
459
- const [message, entities] = this.parseText(text, params);
459
+ const [message, entities] = await this.parseText(text, params);
460
460
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
461
461
  id: messageId,
462
462
  peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
@@ -721,28 +721,44 @@ class MessageManager {
721
721
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.editBanned({
722
722
  channel: new _2_tl_js_1.types.InputChannel(chat),
723
723
  participant: member,
724
- banned_rights: new _2_tl_js_1.types.ChatBannedRights({
725
- until_date: params?.untilDate ? (0, _1_utilities_js_1.toUnixTimestamp)(params.untilDate) : 0,
726
- send_messages: params?.rights?.canSendMessages ? true : undefined,
727
- send_audios: params?.rights?.canSendAudio ? true : undefined,
728
- send_docs: params?.rights?.canSendDocuments ? true : undefined,
729
- send_photos: params?.rights?.canSendPhotos ? true : undefined,
730
- send_videos: params?.rights?.canSendVideos ? true : undefined,
731
- send_roundvideos: params?.rights?.canSendVideoNotes ? true : undefined,
732
- send_voices: params?.rights?.canSendVoice ? true : undefined,
733
- send_polls: params?.rights?.canSendPolls ? true : undefined,
734
- send_stickers: params?.rights?.canSendStickers ? true : undefined,
735
- send_gifs: params?.rights?.canSendAnimations ? true : undefined,
736
- send_games: params?.rights?.canSendGames ? true : undefined,
737
- send_inline: params?.rights?.canSendInlineBotResults ? true : undefined,
738
- embed_links: params?.rights?.canAddWebPagePreviews ? true : undefined,
739
- change_info: params?.rights?.canChangeInfo ? true : undefined,
740
- invite_users: params?.rights?.canInviteUsers ? true : undefined,
741
- pin_messages: params?.rights?.canPinMessages ? true : undefined,
742
- manage_topics: params?.rights?.canManageTopics ? true : undefined,
743
- }),
724
+ banned_rights: (0, _3_types_js_1.chatMemberRightsToTlObject)(params?.rights, params?.untilDate),
744
725
  });
745
726
  }
727
+ async getChatAdministrators(chatId) {
728
+ const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
729
+ if (peer instanceof _2_tl_js_1.types.InputPeerChannel) {
730
+ const channel = new _2_tl_js_1.types.InputChannel(peer);
731
+ const participants = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.getParticipants({
732
+ channel,
733
+ filter: new _2_tl_js_1.types.ChannelParticipantsAdmins(),
734
+ offset: 0,
735
+ limit: 100,
736
+ hash: 0n,
737
+ });
738
+ if (participants instanceof _2_tl_js_1.types.channels.ChannelParticipantsNotModified) {
739
+ (0, _1_utilities_js_1.UNREACHABLE)();
740
+ }
741
+ const chatMembers = new Array();
742
+ for (const p of participants.participants) {
743
+ chatMembers.push(await (0, _3_types_js_1.constructChatMember)(p, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity));
744
+ }
745
+ return chatMembers;
746
+ }
747
+ else if (peer instanceof _2_tl_js_1.types.InputPeerChat) {
748
+ const fullChat = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.getFullChat(peer); // TODO: full chat cache
749
+ if (!(fullChat.full_chat instanceof _2_tl_js_1.types.ChatFull) || !(fullChat.full_chat.participants instanceof _2_tl_js_1.types.ChatParticipants)) {
750
+ (0, _1_utilities_js_1.UNREACHABLE)();
751
+ }
752
+ const chatMembers = new Array();
753
+ 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));
755
+ }
756
+ return chatMembers;
757
+ }
758
+ else {
759
+ (0, _1_utilities_js_1.UNREACHABLE)();
760
+ }
761
+ }
746
762
  }
747
763
  exports.MessageManager = MessageManager;
748
764
  _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
@@ -778,10 +794,10 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
778
794
  await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("sendAs");
779
795
  return sendAs ? await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(sendAs) : undefined;
780
796
  }
781
- }, _MessageManager_constructReplyTo = function _MessageManager_constructReplyTo(params) {
797
+ }, _MessageManager_constructReplyTo = async function _MessageManager_constructReplyTo(params) {
782
798
  const topMsgId = params?.messageThreadId;
783
799
  const replyToMsgId = params?.replyToMessageId;
784
- 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;
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: await Promise.all(params?.replyQuote?.entities.map((v) => (0, _3_types_js_1.messageEntityToTlObject)(v, __classPrivateFieldGet(this, _MessageManager_c, "f").getEntity)) ?? []), quote_offset: params?.replyQuote?.offset }) : undefined;
785
801
  }, _MessageManager_sendDocumentInner = async function _MessageManager_sendDocumentInner(chatId, document, params, fileType, otherAttribs, urlSupported = false) {
786
802
  let media = null;
787
803
  const spoiler = params?.hasSpoiler ? true : undefined;
@@ -830,7 +846,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
830
846
  const sendAs = params?.sendAs ? await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(params.sendAs) : undefined; // TODO: check default sendAs
831
847
  const replyMarkup = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params);
832
848
  const caption_ = params?.caption;
833
- const parseResult = caption_ !== undefined ? this.parseText(caption_, { parseMode: params?.parseMode, entities: params?.captionEntities }) : undefined;
849
+ const parseResult = caption_ !== undefined ? await this.parseText(caption_, { parseMode: params?.parseMode, entities: params?.captionEntities }) : undefined;
834
850
  const caption = parseResult === undefined ? undefined : parseResult[0];
835
851
  const captionEntities = parseResult === undefined ? undefined : parseResult[1];
836
852
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMedia({
@@ -839,7 +855,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
839
855
  silent,
840
856
  noforwards,
841
857
  reply_markup: replyMarkup,
842
- reply_to: __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
858
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
843
859
  send_as: sendAs,
844
860
  media,
845
861
  message: caption ?? "",
@@ -2,7 +2,7 @@ import { MaybePromise } from "../1_utilities.js";
2
2
  import { functions, types } from "../2_tl.js";
3
3
  import { Storage } from "../3_storage.js";
4
4
  import { DC } from "../3_transport.js";
5
- import { BotCommand, Chat, ChatAction, ChatP, Document, FileSource, ID, InlineQueryResult, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Reaction, Update, UpdateIntersection, User } from "../3_types.js";
5
+ import { BotCommand, Chat, ChatAction, ChatMember, ChatP, Document, FileSource, ID, InlineQueryResult, Message, MessageAnimation, MessageAudio, MessageContact, MessageDice, MessageDocument, MessageLocation, MessagePhoto, MessagePoll, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, NetworkStatistics, ParseMode, Reaction, Update, UpdateIntersection, User } from "../3_types.js";
6
6
  import { Migrate } from "../4_errors.js";
7
7
  import { ClientAbstract } from "./0_client_abstract.js";
8
8
  import { FilterQuery, WithFilter } from "./0_filters.js";
@@ -74,6 +74,8 @@ export interface Context {
74
74
  kickSender: () => Promise<void>;
75
75
  /** Set the rights of the received message. */
76
76
  setSenderRights: (params?: SetChatMemberRightsParams) => Promise<void>;
77
+ /** Get the administrators of the chat which the message was received from. */
78
+ getChatAdministrators: () => Promise<ChatMember[]>;
77
79
  /** Change the reactions made to the received message. */
78
80
  react: (reactions: Reaction[], params?: SetReactionsParams) => Promise<void>;
79
81
  /** Send a chat action to the chat which the message was received from. */
@@ -156,6 +158,8 @@ export interface ClientParams extends ClientPlainParams {
156
158
  prefixes?: string | string[];
157
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`. */
158
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;
159
163
  }
160
164
  export declare class Client<C extends Context = Context> extends ClientAbstract {
161
165
  #private;
@@ -694,5 +698,12 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
694
698
  * @param memberId The identifier of a member.
695
699
  */
696
700
  setChatMemberRights(chatId: ID, memberId: ID, params?: SetChatMemberRightsParams): Promise<void>;
701
+ /**
702
+ * Get the administrators of a chat.
703
+ *
704
+ * @method
705
+ * @param chatId The identifier of the chat.
706
+ */
707
+ getChatAdministrators(chatId: ID): Promise<ChatMember[]>;
697
708
  }
698
709
  export {};
@@ -327,6 +327,10 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
327
327
  }
328
328
  return this.setChatMemberRights(chatId, senderId, params);
329
329
  },
330
+ getChatAdministrators: () => {
331
+ const { chatId } = mustGetMsg();
332
+ return this.getChatAdministrators(chatId);
333
+ },
330
334
  react: (reactions, params) => {
331
335
  const { chatId, messageId } = mustGetMsg();
332
336
  return this.setReactions(chatId, messageId, reactions, params);
@@ -566,6 +570,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
566
570
  },
567
571
  cdn: params?.cdn ?? false,
568
572
  ignoreOutgoing: __classPrivateFieldGet(this, _Client_ignoreOutgoing, "f"),
573
+ dropPendingUpdates: params?.dropPendingUpdates,
569
574
  };
570
575
  __classPrivateFieldSet(this, _Client_updateManager, new _1_update_manager_js_1.UpdateManager(c), "f");
571
576
  __classPrivateFieldSet(this, _Client_networkStatisticsManager, new _1_network_statistics_manager_js_1.NetworkStatisticsManager(c), "f");
@@ -742,16 +747,6 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
742
747
  if (!this.apiHash) {
743
748
  throw new Error("apiHash not set");
744
749
  }
745
- if (typeof params === "undefined") {
746
- const loginType = (0, _1_utilities_js_1.mustPromptOneOf)("Do you want to login as bot [b] or user [u]?", ["b", "u"]);
747
- if (loginType == "b") {
748
- params = (0, _1_utilities_js_1.mustPrompt)("Bot token:");
749
- }
750
- else {
751
- params = { phone: () => (0, _1_utilities_js_1.mustPrompt)("Phone number:"), code: () => (0, _1_utilities_js_1.mustPrompt)("Verification code:"), password: () => (0, _1_utilities_js_1.mustPrompt)("Password:") };
752
- }
753
- }
754
- dAuth("authorizing with %s", typeof params === "string" ? "bot token" : params instanceof _2_tl_js_1.types.auth.ExportedAuthorization ? "exported authorization" : "AuthorizeUserParams");
755
750
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
756
751
  try {
757
752
  await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
@@ -765,6 +760,16 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
765
760
  throw err;
766
761
  }
767
762
  }
763
+ if (typeof params === "undefined") {
764
+ const loginType = (0, _1_utilities_js_1.mustPromptOneOf)("Do you want to login as bot [b] or user [u]?", ["b", "u"]);
765
+ if (loginType == "b") {
766
+ params = (0, _1_utilities_js_1.mustPrompt)("Bot token:");
767
+ }
768
+ else {
769
+ params = { phone: () => (0, _1_utilities_js_1.mustPrompt)("Phone number:"), code: () => (0, _1_utilities_js_1.mustPrompt)("Verification code:"), password: () => (0, _1_utilities_js_1.mustPrompt)("Password:") };
770
+ }
771
+ }
772
+ dAuth("authorizing with %s", typeof params === "string" ? "bot token" : params instanceof _2_tl_js_1.types.auth.ExportedAuthorization ? "exported authorization" : "AuthorizeUserParams");
768
773
  if (typeof params === "string") {
769
774
  while (true) {
770
775
  try {
@@ -902,7 +907,6 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
902
907
  */
903
908
  async start(params) {
904
909
  await this.connect();
905
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
906
910
  await this.authorize(params);
907
911
  }
908
912
  /**
@@ -919,7 +923,6 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
919
923
  }
920
924
  else {
921
925
  inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUserAccessHash).call(this, inputPeer.user_id);
922
- await this.storage.setUserAccessHash(inputPeer.user_id, inputPeer.access_hash);
923
926
  }
924
927
  }
925
928
  return inputPeer;
@@ -1847,6 +1850,15 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
1847
1850
  async setChatMemberRights(chatId, memberId, params) {
1848
1851
  await __classPrivateFieldGet(this, _Client_messageManager, "f").setChatMemberRights(chatId, memberId, params);
1849
1852
  }
1853
+ /**
1854
+ * Get the administrators of a chat.
1855
+ *
1856
+ * @method
1857
+ * @param chatId The identifier of the chat.
1858
+ */
1859
+ async getChatAdministrators(chatId) {
1860
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").getChatAdministrators(chatId);
1861
+ }
1850
1862
  }
1851
1863
  exports.Client = Client;
1852
1864
  _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
@@ -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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertAlmostEquals = 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 that `actual` and `expected` are almost equal numbers
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertArrayIncludes = 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 equal_js_1 = require("./equal.js");
6
6
  const _format_js_1 = require("./_format.js");
7
7
  const assertion_error_js_1 = require("./assertion_error.js");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertEquals = 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 equal_js_1 = require("./equal.js");
6
6
  const _format_js_1 = require("./_format.js");
7
7
  const assertion_error_js_1 = require("./assertion_error.js");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertExists = 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 that actual is not null or undefined.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertFalse = 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` have truthy value.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertGreater = 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 _format_js_1 = require("./_format.js");
6
6
  const assertion_error_js_1 = require("./assertion_error.js");
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertGreaterOrEqual = 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 _format_js_1 = require("./_format.js");
6
6
  const assertion_error_js_1 = require("./assertion_error.js");
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertInstanceOf = 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 that `obj` is an instance of `type`.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertIsError = 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
  const colors_js_1 = require("../fmt/colors.js");
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertLess = 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 _format_js_1 = require("./_format.js");
6
6
  const assertion_error_js_1 = require("./assertion_error.js");
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertLessOrEqual = 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 _format_js_1 = require("./_format.js");
6
6
  const assertion_error_js_1 = require("./assertion_error.js");
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertMatch = 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 that `actual` match RegExp `expected`. If not