@mtkruto/node 0.0.997 → 0.0.999

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 (347) hide show
  1. package/esm/0_deps.d.ts +2 -2
  2. package/esm/0_deps.js +2 -2
  3. package/esm/3_types.d.ts +39 -3
  4. package/esm/3_types.js +39 -3
  5. package/esm/4_constants.d.ts +1 -1
  6. package/esm/4_constants.js +1 -1
  7. package/esm/client/0_html.js +1 -1
  8. package/esm/client/3_types.d.ts +3 -6
  9. package/esm/client/3_types.js +1 -1
  10. package/esm/client/4_client.d.ts +20 -5
  11. package/esm/client/4_client.js +56 -40
  12. package/esm/connection/1_connection_web_socket.js +2 -1
  13. package/esm/deps/deno.land/std@0.201.0/assert/assert_greater.d.ts +5 -0
  14. package/esm/deps/deno.land/std@0.201.0/assert/assert_greater.js +14 -0
  15. package/esm/deps/deno.land/std@0.201.0/assert/assert_greater_or_equal.d.ts +5 -0
  16. package/esm/deps/deno.land/std@0.201.0/assert/assert_greater_or_equal.js +14 -0
  17. package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_instance_of.js +2 -2
  18. package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_is_error.js +4 -1
  19. package/esm/deps/deno.land/std@0.201.0/assert/assert_less.d.ts +5 -0
  20. package/esm/deps/deno.land/std@0.201.0/assert/assert_less.js +14 -0
  21. package/esm/deps/deno.land/std@0.201.0/assert/assert_less_or_equal.d.ts +5 -0
  22. package/esm/deps/deno.land/std@0.201.0/assert/assert_less_or_equal.js +14 -0
  23. package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/mod.d.ts +4 -0
  24. package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/mod.js +4 -0
  25. package/{script/deps/deno.land/std@0.200.0 → esm/deps/deno.land/std@0.201.0}/fmt/colors.d.ts +8 -1
  26. package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/fmt/colors.js +8 -1
  27. package/esm/tl/3_tl_reader.d.ts +1 -1
  28. package/esm/tl/3_tl_reader.js +6 -0
  29. package/esm/tl/4_tl_writer.js +8 -0
  30. package/esm/tl/6_message.js +3 -0
  31. package/esm/types/0_bot_command.d.ts +4 -0
  32. package/esm/types/0_chat_action.d.ts +1 -1
  33. package/esm/types/0_chat_id.d.ts +4 -0
  34. package/esm/types/0_chat_id.js +1 -0
  35. package/esm/types/0_chat_photo.js +1 -1
  36. package/esm/types/0_input_contact_message_content.d.ts +6 -0
  37. package/esm/types/0_input_contact_message_content.js +1 -0
  38. package/esm/types/0_input_location_message_content.d.ts +8 -0
  39. package/esm/types/0_input_location_message_content.js +1 -0
  40. package/esm/types/0_input_venue_message_content.d.ts +10 -0
  41. package/esm/types/0_input_venue_message_content.js +1 -0
  42. package/esm/types/0_labeled_price.d.ts +4 -0
  43. package/esm/types/0_labeled_price.js +1 -0
  44. package/esm/types/0_message_entity.d.ts +10 -10
  45. package/esm/types/0_message_entity.js +12 -12
  46. package/esm/types/0_parse_mode.d.ts +1 -0
  47. package/esm/types/0_parse_mode.js +1 -0
  48. package/esm/types/0_thumbnail.js +1 -1
  49. package/esm/types/{!0_misc.d.ts → 1__getters.d.ts} +7 -0
  50. package/esm/types/1__getters.js +1 -0
  51. package/esm/types/1_bot_command_scope.d.ts +32 -0
  52. package/esm/types/1_bot_command_scope.js +27 -0
  53. package/esm/types/1_chat.d.ts +5 -10
  54. package/esm/types/1_chat.js +4 -11
  55. package/esm/types/1_inline_query_result_button.d.ts +6 -0
  56. package/esm/types/1_inline_query_result_button.js +1 -0
  57. package/esm/types/1_input_invoice_message_content.d.ts +23 -0
  58. package/esm/types/1_input_invoice_message_content.js +1 -0
  59. package/esm/types/1_input_text_message_content.d.ts +8 -0
  60. package/esm/types/1_input_text_message_content.js +1 -0
  61. package/esm/types/1_photo.js +1 -1
  62. package/esm/types/1_sticker.d.ts +2 -2
  63. package/esm/types/1_sticker.js +1 -1
  64. package/esm/types/2_game.js +1 -1
  65. package/esm/types/{1_inline_keyboard_button.d.ts → 2_inline_keyboard_button.d.ts} +2 -2
  66. package/esm/types/2_inline_query.d.ts +1 -1
  67. package/esm/types/2_input_message_content.d.ts +6 -0
  68. package/esm/types/2_input_message_content.js +1 -0
  69. package/{script/types/2_inline_keyboard_markup.d.ts → esm/types/3_inline_keyboard_markup.d.ts} +3 -2
  70. package/esm/types/{2_inline_keyboard_markup.js → 3_inline_keyboard_markup.js} +1 -1
  71. package/esm/types/3_message.d.ts +2 -2
  72. package/esm/types/3_message.js +5 -5
  73. package/esm/types/4_callback_query.d.ts +1 -1
  74. package/esm/types/4_inline_query_result_article.d.ts +15 -0
  75. package/esm/types/4_inline_query_result_article.js +1 -0
  76. package/esm/types/4_inline_query_result_audio.d.ts +17 -0
  77. package/esm/types/4_inline_query_result_audio.js +1 -0
  78. package/esm/types/4_inline_query_result_cached_audio.d.ts +14 -0
  79. package/esm/types/4_inline_query_result_cached_audio.js +1 -0
  80. package/esm/types/4_inline_query_result_cached_document.d.ts +15 -0
  81. package/esm/types/4_inline_query_result_cached_document.js +1 -0
  82. package/esm/types/4_inline_query_result_cached_gif.d.ts +15 -0
  83. package/esm/types/4_inline_query_result_cached_gif.js +1 -0
  84. package/esm/types/4_inline_query_result_cached_mpeg4_gif.d.ts +15 -0
  85. package/esm/types/4_inline_query_result_cached_mpeg4_gif.js +1 -0
  86. package/esm/types/4_inline_query_result_cached_photo.d.ts +16 -0
  87. package/esm/types/4_inline_query_result_cached_photo.js +1 -0
  88. package/esm/types/4_inline_query_result_cached_sticker.d.ts +9 -0
  89. package/esm/types/4_inline_query_result_cached_sticker.js +1 -0
  90. package/esm/types/4_inline_query_result_cached_video.d.ts +16 -0
  91. package/esm/types/4_inline_query_result_cached_video.js +1 -0
  92. package/esm/types/4_inline_query_result_cached_voice.d.ts +15 -0
  93. package/esm/types/4_inline_query_result_cached_voice.js +1 -0
  94. package/esm/types/4_inline_query_result_contact.d.ts +15 -0
  95. package/esm/types/4_inline_query_result_contact.js +1 -0
  96. package/esm/types/4_inline_query_result_document.d.ts +18 -0
  97. package/esm/types/4_inline_query_result_document.js +1 -0
  98. package/esm/types/4_inline_query_result_game.d.ts +7 -0
  99. package/esm/types/4_inline_query_result_game.js +1 -0
  100. package/esm/types/4_inline_query_result_gif.d.ts +20 -0
  101. package/esm/types/4_inline_query_result_gif.js +1 -0
  102. package/esm/types/4_inline_query_result_location.d.ts +18 -0
  103. package/esm/types/4_inline_query_result_location.js +1 -0
  104. package/esm/types/4_inline_query_result_mpeg4_gif.d.ts +20 -0
  105. package/esm/types/4_inline_query_result_mpeg4_gif.js +1 -0
  106. package/esm/types/4_inline_query_result_photo.d.ts +19 -0
  107. package/esm/types/4_inline_query_result_photo.js +1 -0
  108. package/esm/types/4_inline_query_result_venue.d.ts +19 -0
  109. package/esm/types/4_inline_query_result_venue.js +1 -0
  110. package/esm/types/4_inline_query_result_video.d.ts +21 -0
  111. package/esm/types/4_inline_query_result_video.js +1 -0
  112. package/esm/types/4_inline_query_result_voice.d.ts +16 -0
  113. package/esm/types/4_inline_query_result_voice.js +1 -0
  114. package/esm/types/4_reply_markup.d.ts +7 -0
  115. package/esm/types/4_reply_markup.js +22 -0
  116. package/esm/types/5_inline_query_result.d.ts +29 -0
  117. package/esm/types/5_inline_query_result.js +256 -0
  118. package/package.json +1 -1
  119. package/script/0_deps.d.ts +2 -2
  120. package/script/0_deps.js +2 -2
  121. package/script/3_types.d.ts +39 -3
  122. package/script/3_types.js +39 -3
  123. package/script/4_constants.d.ts +1 -1
  124. package/script/4_constants.js +1 -1
  125. package/script/client/0_html.js +1 -1
  126. package/script/client/3_types.d.ts +3 -6
  127. package/script/client/3_types.js +3 -0
  128. package/script/client/4_client.d.ts +20 -5
  129. package/script/client/4_client.js +55 -39
  130. package/script/connection/1_connection_web_socket.js +2 -1
  131. package/script/deps/deno.land/std@0.201.0/assert/assert_greater.d.ts +5 -0
  132. package/script/deps/deno.land/std@0.201.0/assert/assert_greater.js +18 -0
  133. package/script/deps/deno.land/std@0.201.0/assert/assert_greater_or_equal.d.ts +5 -0
  134. package/script/deps/deno.land/std@0.201.0/assert/assert_greater_or_equal.js +18 -0
  135. package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_instance_of.js +2 -2
  136. package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_is_error.js +4 -1
  137. package/script/deps/deno.land/std@0.201.0/assert/assert_less.d.ts +5 -0
  138. package/script/deps/deno.land/std@0.201.0/assert/assert_less.js +18 -0
  139. package/script/deps/deno.land/std@0.201.0/assert/assert_less_or_equal.d.ts +5 -0
  140. package/script/deps/deno.land/std@0.201.0/assert/assert_less_or_equal.js +18 -0
  141. package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/mod.d.ts +4 -0
  142. package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/mod.js +4 -0
  143. package/{esm/deps/deno.land/std@0.200.0 → script/deps/deno.land/std@0.201.0}/fmt/colors.d.ts +8 -1
  144. package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/fmt/colors.js +10 -3
  145. package/script/tl/3_tl_reader.d.ts +1 -1
  146. package/script/tl/3_tl_reader.js +6 -0
  147. package/script/tl/4_tl_writer.js +8 -0
  148. package/script/tl/6_message.js +3 -0
  149. package/script/types/0_bot_command.d.ts +4 -0
  150. package/script/types/0_chat_action.d.ts +1 -1
  151. package/script/types/0_chat_id.d.ts +4 -0
  152. package/script/types/0_chat_id.js +2 -0
  153. package/script/types/0_chat_photo.js +7 -7
  154. package/script/types/0_input_contact_message_content.d.ts +6 -0
  155. package/script/types/0_input_contact_message_content.js +2 -0
  156. package/script/types/0_input_location_message_content.d.ts +8 -0
  157. package/script/types/0_input_location_message_content.js +2 -0
  158. package/script/types/0_input_venue_message_content.d.ts +10 -0
  159. package/script/types/0_input_venue_message_content.js +2 -0
  160. package/script/types/0_labeled_price.d.ts +4 -0
  161. package/script/types/0_labeled_price.js +2 -0
  162. package/script/types/0_message_entity.d.ts +10 -10
  163. package/script/types/0_message_entity.js +12 -12
  164. package/script/types/0_parse_mode.d.ts +1 -0
  165. package/script/types/0_parse_mode.js +2 -0
  166. package/script/types/0_thumbnail.js +5 -5
  167. package/script/types/{!0_misc.d.ts → 1__getters.d.ts} +7 -0
  168. package/script/types/1__getters.js +2 -0
  169. package/script/types/1_bot_command_scope.d.ts +32 -0
  170. package/script/types/1_bot_command_scope.js +31 -0
  171. package/script/types/1_chat.d.ts +5 -10
  172. package/script/types/1_chat.js +5 -12
  173. package/script/types/1_inline_query_result_button.d.ts +6 -0
  174. package/script/types/1_inline_query_result_button.js +2 -0
  175. package/script/types/1_input_invoice_message_content.d.ts +23 -0
  176. package/script/types/1_input_invoice_message_content.js +2 -0
  177. package/script/types/1_input_text_message_content.d.ts +8 -0
  178. package/script/types/1_input_text_message_content.js +2 -0
  179. package/script/types/1_photo.js +5 -5
  180. package/script/types/1_sticker.d.ts +2 -2
  181. package/script/types/1_sticker.js +1 -1
  182. package/script/types/2_game.js +3 -3
  183. package/script/types/{1_inline_keyboard_button.d.ts → 2_inline_keyboard_button.d.ts} +2 -2
  184. package/script/types/2_inline_query.d.ts +1 -1
  185. package/script/types/2_input_message_content.d.ts +6 -0
  186. package/script/types/2_input_message_content.js +2 -0
  187. package/{esm/types/2_inline_keyboard_markup.d.ts → script/types/3_inline_keyboard_markup.d.ts} +3 -2
  188. package/script/types/{2_inline_keyboard_markup.js → 3_inline_keyboard_markup.js} +3 -3
  189. package/script/types/3_message.d.ts +2 -2
  190. package/script/types/3_message.js +14 -14
  191. package/script/types/4_callback_query.d.ts +1 -1
  192. package/script/types/4_inline_query_result_article.d.ts +15 -0
  193. package/script/types/4_inline_query_result_article.js +2 -0
  194. package/script/types/4_inline_query_result_audio.d.ts +17 -0
  195. package/script/types/4_inline_query_result_audio.js +2 -0
  196. package/script/types/4_inline_query_result_cached_audio.d.ts +14 -0
  197. package/script/types/4_inline_query_result_cached_audio.js +2 -0
  198. package/script/types/4_inline_query_result_cached_document.d.ts +15 -0
  199. package/script/types/4_inline_query_result_cached_document.js +2 -0
  200. package/script/types/4_inline_query_result_cached_gif.d.ts +15 -0
  201. package/script/types/4_inline_query_result_cached_gif.js +2 -0
  202. package/script/types/4_inline_query_result_cached_mpeg4_gif.d.ts +15 -0
  203. package/script/types/4_inline_query_result_cached_mpeg4_gif.js +2 -0
  204. package/script/types/4_inline_query_result_cached_photo.d.ts +16 -0
  205. package/script/types/4_inline_query_result_cached_photo.js +2 -0
  206. package/script/types/4_inline_query_result_cached_sticker.d.ts +9 -0
  207. package/script/types/4_inline_query_result_cached_sticker.js +2 -0
  208. package/script/types/4_inline_query_result_cached_video.d.ts +16 -0
  209. package/script/types/4_inline_query_result_cached_video.js +2 -0
  210. package/script/types/4_inline_query_result_cached_voice.d.ts +15 -0
  211. package/script/types/4_inline_query_result_cached_voice.js +2 -0
  212. package/script/types/4_inline_query_result_contact.d.ts +15 -0
  213. package/script/types/4_inline_query_result_contact.js +2 -0
  214. package/script/types/4_inline_query_result_document.d.ts +18 -0
  215. package/script/types/4_inline_query_result_document.js +2 -0
  216. package/script/types/4_inline_query_result_game.d.ts +7 -0
  217. package/script/types/4_inline_query_result_game.js +2 -0
  218. package/script/types/4_inline_query_result_gif.d.ts +20 -0
  219. package/script/types/4_inline_query_result_gif.js +2 -0
  220. package/script/types/4_inline_query_result_location.d.ts +18 -0
  221. package/script/types/4_inline_query_result_location.js +2 -0
  222. package/script/types/4_inline_query_result_mpeg4_gif.d.ts +20 -0
  223. package/script/types/4_inline_query_result_mpeg4_gif.js +2 -0
  224. package/script/types/4_inline_query_result_photo.d.ts +19 -0
  225. package/script/types/4_inline_query_result_photo.js +2 -0
  226. package/script/types/4_inline_query_result_venue.d.ts +19 -0
  227. package/script/types/4_inline_query_result_venue.js +2 -0
  228. package/script/types/4_inline_query_result_video.d.ts +21 -0
  229. package/script/types/4_inline_query_result_video.js +2 -0
  230. package/script/types/4_inline_query_result_voice.d.ts +16 -0
  231. package/script/types/4_inline_query_result_voice.js +2 -0
  232. package/script/types/4_reply_markup.d.ts +7 -0
  233. package/script/types/4_reply_markup.js +26 -0
  234. package/script/types/5_inline_query_result.d.ts +29 -0
  235. package/script/types/5_inline_query_result.js +260 -0
  236. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_constants.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_constants.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_diff.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_diff.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_format.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_format.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert.js +0 -0
  244. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_almost_equals.d.ts +0 -0
  245. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_almost_equals.js +0 -0
  246. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_array_includes.d.ts +0 -0
  247. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_array_includes.js +0 -0
  248. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_equals.d.ts +0 -0
  249. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_equals.js +0 -0
  250. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_exists.d.ts +0 -0
  251. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_exists.js +0 -0
  252. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_false.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_false.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_instance_of.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_is_error.d.ts +0 -0
  256. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_match.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_match.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_equals.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_equals.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_instance_of.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_instance_of.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_match.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_match.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_strict_equals.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_strict_equals.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_object_match.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_object_match.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_rejects.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_rejects.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_strict_equals.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_strict_equals.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_string_includes.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_string_includes.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_throws.d.ts +0 -0
  275. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_throws.js +0 -0
  276. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assertion_error.d.ts +0 -0
  277. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assertion_error.js +0 -0
  278. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/equal.d.ts +0 -0
  279. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/equal.js +0 -0
  280. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/fail.d.ts +0 -0
  281. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/fail.js +0 -0
  282. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unimplemented.d.ts +0 -0
  283. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unimplemented.js +0 -0
  284. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unreachable.d.ts +0 -0
  285. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unreachable.js +0 -0
  286. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/encoding/base64.d.ts +0 -0
  287. /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/encoding/base64.js +0 -0
  288. /package/esm/types/{!0_file_id.d.ts → 0__file_id.d.ts} +0 -0
  289. /package/esm/types/{!0_file_id.js → 0__file_id.js} +0 -0
  290. /package/esm/types/{!0_misc.js → 0_bot_command.js} +0 -0
  291. /package/esm/types/{1_inline_keyboard_button.js → 2_inline_keyboard_button.js} +0 -0
  292. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_constants.d.ts +0 -0
  293. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_constants.js +0 -0
  294. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_diff.d.ts +0 -0
  295. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_diff.js +0 -0
  296. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_format.d.ts +0 -0
  297. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_format.js +0 -0
  298. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert.d.ts +0 -0
  299. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert.js +0 -0
  300. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_almost_equals.d.ts +0 -0
  301. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_almost_equals.js +0 -0
  302. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_array_includes.d.ts +0 -0
  303. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_array_includes.js +0 -0
  304. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_equals.d.ts +0 -0
  305. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_equals.js +0 -0
  306. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_exists.d.ts +0 -0
  307. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_exists.js +0 -0
  308. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_false.d.ts +0 -0
  309. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_false.js +0 -0
  310. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_instance_of.d.ts +0 -0
  311. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_is_error.d.ts +0 -0
  312. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_match.d.ts +0 -0
  313. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_match.js +0 -0
  314. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_equals.d.ts +0 -0
  315. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_equals.js +0 -0
  316. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_instance_of.d.ts +0 -0
  317. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_instance_of.js +0 -0
  318. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_match.d.ts +0 -0
  319. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_match.js +0 -0
  320. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_strict_equals.d.ts +0 -0
  321. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_strict_equals.js +0 -0
  322. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_object_match.d.ts +0 -0
  323. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_object_match.js +0 -0
  324. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_rejects.d.ts +0 -0
  325. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_rejects.js +0 -0
  326. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_strict_equals.d.ts +0 -0
  327. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_strict_equals.js +0 -0
  328. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_string_includes.d.ts +0 -0
  329. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_string_includes.js +0 -0
  330. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_throws.d.ts +0 -0
  331. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_throws.js +0 -0
  332. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assertion_error.d.ts +0 -0
  333. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assertion_error.js +0 -0
  334. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/equal.d.ts +0 -0
  335. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/equal.js +0 -0
  336. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/fail.d.ts +0 -0
  337. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/fail.js +0 -0
  338. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unimplemented.d.ts +0 -0
  339. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unimplemented.js +0 -0
  340. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unreachable.d.ts +0 -0
  341. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unreachable.js +0 -0
  342. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/encoding/base64.d.ts +0 -0
  343. /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/encoding/base64.js +0 -0
  344. /package/script/types/{!0_file_id.d.ts → 0__file_id.d.ts} +0 -0
  345. /package/script/types/{!0_file_id.js → 0__file_id.js} +0 -0
  346. /package/script/types/{!0_misc.js → 0_bot_command.js} +0 -0
  347. /package/script/types/{1_inline_keyboard_button.js → 2_inline_keyboard_button.js} +0 -0
@@ -0,0 +1,6 @@
1
+ import { InputContactMessageContent } from "./0_input_contact_message_content.js";
2
+ import { InputLocationMessageContent } from "./0_input_location_message_content.js";
3
+ import { InputVenuMessageContent } from "./0_input_venue_message_content.js";
4
+ import { InputInvoiceMessageContent } from "./1_input_invoice_message_content.js";
5
+ import { InputTextMessageContent } from "./1_input_text_message_content.js";
6
+ export type InputMessageContent = InputTextMessageContent | InputLocationMessageContent | InputVenuMessageContent | InputContactMessageContent | InputInvoiceMessageContent;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,10 @@
1
1
  import { types } from "../2_tl.js";
2
- import { InlineKeyboardButton, inlineKeyboardButtonToTlObject } from "./1_inline_keyboard_button.js";
2
+ import { UsernameResolver } from "./1__getters.js";
3
+ import { InlineKeyboardButton } from "./2_inline_keyboard_button.js";
3
4
  /** This object represents an inline keyboard that appears right next to the message it belongs to. */
4
5
  export interface InlineKeyboardMarkup {
5
6
  /** Array of button rows, each represented by an Array of InlineKeyboardButton objects */
6
7
  inlineKeyboard: InlineKeyboardButton[][];
7
8
  }
8
9
  export declare function constructInlineKeyboardMarkup(keyboard_: types.ReplyInlineMarkup): InlineKeyboardMarkup;
9
- export declare function inlineKeyboardMarkupToTlObject(keyboard: InlineKeyboardMarkup, usernameResolver: Parameters<typeof inlineKeyboardButtonToTlObject>[1]): Promise<types.ReplyInlineMarkup>;
10
+ export declare function inlineKeyboardMarkupToTlObject(keyboard: InlineKeyboardMarkup, usernameResolver: UsernameResolver): Promise<types.ReplyInlineMarkup>;
@@ -1,5 +1,5 @@
1
1
  import { types } from "../2_tl.js";
2
- import { constructInlineKeyboardButton, inlineKeyboardButtonToTlObject } from "./1_inline_keyboard_button.js";
2
+ import { constructInlineKeyboardButton, inlineKeyboardButtonToTlObject } from "./2_inline_keyboard_button.js";
3
3
  export function constructInlineKeyboardMarkup(keyboard_) {
4
4
  const rows = new Array();
5
5
  for (const row_ of keyboard_.rows) {
@@ -1,6 +1,5 @@
1
1
  import { MaybePromise } from "../1_utilities.js";
2
2
  import { types } from "../2_tl.js";
3
- import { EntityGetter } from "./!0_misc.js";
4
3
  import { ForceReply } from "./0_force_reply.js";
5
4
  import { MessageEntity } from "./0_message_entity.js";
6
5
  import { Audio } from "./0_audio.js";
@@ -10,6 +9,7 @@ import { Venue } from "./0_venue.js";
10
9
  import { Location } from "./0_location.js";
11
10
  import { Dice } from "./0_dice.js";
12
11
  import { ReplyKeyboardRemove } from "./0_reply_keyboard_remove.js";
12
+ import { EntityGetter } from "./1__getters.js";
13
13
  import { Chat } from "./1_chat.js";
14
14
  import { Photo } from "./1_photo.js";
15
15
  import { Document } from "./1_document.js";
@@ -19,7 +19,7 @@ import { Animation } from "./1_animation.js";
19
19
  import { User } from "./1_user.js";
20
20
  import { Poll } from "./1_poll.js";
21
21
  import { Sticker, StickerSetNameGetter } from "./1_sticker.js";
22
- import { InlineKeyboardMarkup } from "./2_inline_keyboard_markup.js";
22
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
23
23
  import { ReplyKeyboardMarkup } from "./2_reply_keyboard_markup.js";
24
24
  import { Game } from "./2_game.js";
25
25
  /** This object represents a message. */
@@ -2,7 +2,7 @@ import { debug } from "../0_deps.js";
2
2
  import { cleanObject, UNREACHABLE } from "../1_utilities.js";
3
3
  import { as, types } from "../2_tl.js";
4
4
  import { ZERO_CHANNEL_ID } from "../4_constants.js";
5
- import { FileID, FileType, FileUniqueID, FileUniqueType } from "./!0_file_id.js";
5
+ import { FileID, FileType, FileUniqueID, FileUniqueType } from "./0__file_id.js";
6
6
  import { constructForceReply } from "./0_force_reply.js";
7
7
  import { constructMessageEntity } from "./0_message_entity.js";
8
8
  import { constructAudio } from "./0_audio.js";
@@ -12,7 +12,7 @@ import { constructVenue } from "./0_venue.js";
12
12
  import { constructLocation } from "./0_location.js";
13
13
  import { constructDice } from "./0_dice.js";
14
14
  import { constructReplyKeyboardRemove } from "./0_reply_keyboard_remove.js";
15
- import { ChatType, constructChat } from "./1_chat.js";
15
+ import { constructChat } from "./1_chat.js";
16
16
  import { constructPhoto } from "./1_photo.js";
17
17
  import { constructDocument } from "./1_document.js";
18
18
  import { constructVideo } from "./1_video.js";
@@ -21,7 +21,7 @@ import { constructAnimation } from "./1_animation.js";
21
21
  import { constructUser } from "./1_user.js";
22
22
  import { constructPoll } from "./1_poll.js";
23
23
  import { constructSticker } from "./1_sticker.js";
24
- import { constructInlineKeyboardMarkup } from "./2_inline_keyboard_markup.js";
24
+ import { constructInlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
25
25
  import { constructReplyKeyboardMarkup } from "./2_reply_keyboard_markup.js";
26
26
  import { constructGame } from "./2_game.js";
27
27
  const d = debug("types/Message");
@@ -117,10 +117,10 @@ async function constructServiceMessage(message_, chat, getEntity, getMessage) {
117
117
  }
118
118
  }
119
119
  else if (message_.action instanceof types.MessageActionChannelCreate) {
120
- if (message.chat.type == ChatType.Channel) {
120
+ if (message.chat.type == "channel") {
121
121
  message.channelCreated = true;
122
122
  }
123
- else if (message.chat.type == ChatType.Supergroup) {
123
+ else if (message.chat.type == "supergroup") {
124
124
  message.supergroupCreated = true;
125
125
  }
126
126
  else {
@@ -1,5 +1,5 @@
1
1
  import { types } from "../2_tl.js";
2
- import { EntityGetter } from "./!0_misc.js";
2
+ import { EntityGetter } from "./1__getters.js";
3
3
  import { User } from "./1_user.js";
4
4
  import { Message, MessageGetter } from "./3_message.js";
5
5
  export interface CallbackQuery {
@@ -0,0 +1,15 @@
1
+ import { InputMessageContent } from "./2_input_message_content.js";
2
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
3
+ export interface InlineQueryResultArticle {
4
+ type: "article";
5
+ id: string;
6
+ title: string;
7
+ inputMessageContent: InputMessageContent;
8
+ replyMarkup?: InlineKeyboardMarkup;
9
+ url?: string;
10
+ hideUrl?: boolean;
11
+ description?: string;
12
+ thumbnailUrl?: string;
13
+ thumbnailWidth?: string;
14
+ thumbnailHeight?: string;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultAudio {
6
+ type: "audio";
7
+ id: string;
8
+ audioUrl: string;
9
+ title: string;
10
+ caption?: string;
11
+ parseMode?: ParseMode;
12
+ captionEntities?: MessageEntity[];
13
+ performer?: string;
14
+ audioDuration?: number;
15
+ replyMarkup?: InlineKeyboardMarkup;
16
+ inputMessageContent?: InputMessageContent;
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultCachedAudio {
6
+ type: "audio";
7
+ id: string;
8
+ audioFileId: string;
9
+ caption?: string;
10
+ parseMode?: ParseMode;
11
+ captionEntities?: MessageEntity[];
12
+ replyMarkup?: InlineKeyboardMarkup;
13
+ inputMessageContent?: InputMessageContent;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultCachedDocument {
6
+ type: "document";
7
+ id: string;
8
+ documentFileId: string;
9
+ description?: string;
10
+ caption?: string;
11
+ parseMode?: ParseMode;
12
+ captionEntities?: MessageEntity[];
13
+ replyMarkup?: InlineKeyboardMarkup;
14
+ inputMessageContent?: InputMessageContent;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultCachedGif {
6
+ type: "gif";
7
+ id: string;
8
+ gifFileId: string;
9
+ title?: string;
10
+ caption?: string;
11
+ parseMode?: ParseMode;
12
+ captionEntities?: MessageEntity[];
13
+ replyMarkup?: InlineKeyboardMarkup;
14
+ inputMessageContent?: InputMessageContent;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultCachedMpeg4Gif {
6
+ type: "mpeg4_gif";
7
+ id: string;
8
+ mpeg4FileId: string;
9
+ title?: string;
10
+ caption?: string;
11
+ parseMode?: ParseMode;
12
+ captionEntities?: MessageEntity[];
13
+ replyMarkup?: InlineKeyboardMarkup;
14
+ inputMessageContent?: InputMessageContent;
15
+ }
@@ -0,0 +1,16 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultCachedPhoto {
6
+ type: "photo";
7
+ id: string;
8
+ photoFileId: string;
9
+ title?: string;
10
+ description?: string;
11
+ caption?: string;
12
+ parseMode?: ParseMode;
13
+ captionEntities?: MessageEntity[];
14
+ replyMarkup?: InlineKeyboardMarkup;
15
+ inputMessageContent?: InputMessageContent;
16
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { InputMessageContent } from "./2_input_message_content.js";
2
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
3
+ export interface InlineQueryResultCachedSticker {
4
+ type: "sticker";
5
+ id: string;
6
+ stickerFileId: string;
7
+ replyMarkup?: InlineKeyboardMarkup;
8
+ inputMessageContent?: InputMessageContent;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultCachedVideo {
6
+ type: "video";
7
+ id: string;
8
+ videoFileId: string;
9
+ title: string;
10
+ description?: string;
11
+ caption?: string;
12
+ parseMode?: ParseMode;
13
+ captionEntities?: MessageEntity[];
14
+ replyMarkup?: InlineKeyboardMarkup;
15
+ inputMessageContent?: InputMessageContent;
16
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultCachedVoice {
6
+ type: "voice";
7
+ id: string;
8
+ voiceFileId: string;
9
+ title: string;
10
+ caption?: string;
11
+ parseMode?: ParseMode;
12
+ captionEntities?: MessageEntity[];
13
+ replyMarkup?: InlineKeyboardMarkup;
14
+ inputMessageContent?: InputMessageContent;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { InputMessageContent } from "./2_input_message_content.js";
2
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
3
+ export interface InlineQueryResultContact {
4
+ type: "game";
5
+ id: string;
6
+ phoneNumber: string;
7
+ firstName: string;
8
+ lastName?: string;
9
+ vcard?: string;
10
+ replyMarkup?: InlineKeyboardMarkup;
11
+ inputMessageContent?: InputMessageContent;
12
+ thumbnailUrl?: string;
13
+ thumbnailWidth?: string;
14
+ thumbnailHeight?: string;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultDocument {
6
+ type: "document";
7
+ id: string;
8
+ documentUrl: string;
9
+ title: string;
10
+ caption?: string;
11
+ parseMode?: ParseMode;
12
+ captionEntities?: MessageEntity[];
13
+ replyMarkup?: InlineKeyboardMarkup;
14
+ inputMessageContent?: InputMessageContent;
15
+ thumbnailUrl?: string;
16
+ thumbnailWidth?: string;
17
+ thumbnailHeight?: string;
18
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
2
+ export interface InlineQueryResultGame {
3
+ type: "game";
4
+ id: string;
5
+ gameShortName: string;
6
+ replyMarkup?: InlineKeyboardMarkup;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultGif {
6
+ type: "gif";
7
+ id: string;
8
+ gifUrl: string;
9
+ gifWidth?: number;
10
+ gifHeight?: number;
11
+ gifDuration?: number;
12
+ thumbnailUrl?: string;
13
+ thumbnailMimeType?: string;
14
+ title?: string;
15
+ caption?: string;
16
+ parseMode?: ParseMode;
17
+ captionEntities?: MessageEntity[];
18
+ replyMarkup?: InlineKeyboardMarkup;
19
+ inputMessageContent?: InputMessageContent;
20
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ import { InputMessageContent } from "./2_input_message_content.js";
2
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
3
+ export interface InlineQueryResultLocation {
4
+ type: "location";
5
+ id: string;
6
+ latitude: number;
7
+ longitude: number;
8
+ title: string;
9
+ horizontalAccuracy?: number;
10
+ livePeriod?: number;
11
+ heading?: number;
12
+ proximityAlertRadius?: number;
13
+ replyMarkup?: InlineKeyboardMarkup;
14
+ inputMessageContent?: InputMessageContent;
15
+ thumbnailUrl?: string;
16
+ thumbnailWidth?: string;
17
+ thumbnailHeight?: string;
18
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultMpeg4Gif {
6
+ type: "mpeg4_gif";
7
+ id: string;
8
+ mpeg4Url: string;
9
+ mpeg4Width?: number;
10
+ mpeg4Height?: number;
11
+ mpeg4Duration?: number;
12
+ thumbnailUrl?: string;
13
+ thumbnailMimeType?: string;
14
+ title?: string;
15
+ caption?: string;
16
+ parseMode?: ParseMode;
17
+ captionEntities?: MessageEntity[];
18
+ replyMarkup?: InlineKeyboardMarkup;
19
+ inputMessageContent?: InputMessageContent;
20
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultPhoto {
6
+ type: "photo";
7
+ id: string;
8
+ photoUrl: string;
9
+ thumbnailUrl: string;
10
+ photoWidth?: number;
11
+ photoHeight?: number;
12
+ title?: string;
13
+ description?: string;
14
+ caption?: string;
15
+ parseMode?: ParseMode;
16
+ captionEntities?: MessageEntity[];
17
+ replyMarkup?: InlineKeyboardMarkup;
18
+ inputMessageContent?: InputMessageContent;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import { InputMessageContent } from "./2_input_message_content.js";
2
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
3
+ export interface InlineQueryResultVenue {
4
+ type: "venue";
5
+ id: string;
6
+ latitude: number;
7
+ longitude: number;
8
+ title: string;
9
+ address: string;
10
+ fourSquareId?: string;
11
+ foursquareType?: string;
12
+ googlePlaceId?: string;
13
+ googlePlaceType?: string;
14
+ replyMarkup?: InlineKeyboardMarkup;
15
+ inputMessageContent?: InputMessageContent;
16
+ thumbnailUrl?: string;
17
+ thumbnailWidth?: string;
18
+ thumbnailHeight?: string;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultVideo {
6
+ type: "video";
7
+ id: string;
8
+ videoUrl: string;
9
+ mimeType: string;
10
+ thumbnailUrl: string;
11
+ title: string;
12
+ caption?: string;
13
+ parseMode?: ParseMode;
14
+ captionEntities?: MessageEntity[];
15
+ videoWidth?: number;
16
+ videoHeight?: number;
17
+ videoDuration?: number;
18
+ description?: string;
19
+ replyMarkup?: InlineKeyboardMarkup;
20
+ inputMessageContent?: InputMessageContent;
21
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import { MessageEntity } from "./0_message_entity.js";
2
+ import { ParseMode } from "./0_parse_mode.js";
3
+ import { InputMessageContent } from "./2_input_message_content.js";
4
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
5
+ export interface InlineQueryResultVoice {
6
+ type: "voice";
7
+ id: string;
8
+ voiceUrl: string;
9
+ title: string;
10
+ caption?: string;
11
+ parseMode?: ParseMode;
12
+ captionEntities?: MessageEntity[];
13
+ voiceDuration?: number;
14
+ replyMarkup?: InlineKeyboardMarkup;
15
+ inputMessageContent?: InputMessageContent;
16
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ForceReply } from "./0_force_reply.js";
2
+ import { ReplyKeyboardRemove } from "./0_reply_keyboard_remove.js";
3
+ import { UsernameResolver } from "./1__getters.js";
4
+ import { ReplyKeyboardMarkup } from "./2_reply_keyboard_markup.js";
5
+ import { InlineKeyboardMarkup } from "./3_inline_keyboard_markup.js";
6
+ export type ReplyMarkup = InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
7
+ export declare function replyMarkupToTlObject(replyMarkup: ReplyMarkup, usernameResolver: UsernameResolver): Promise<import("../tl/2_types.js").ReplyKeyboardHide | import("../tl/2_types.js").ReplyKeyboardForceReply | import("../tl/2_types.js").ReplyKeyboardMarkup | import("../tl/2_types.js").ReplyInlineMarkup>;
@@ -0,0 +1,22 @@
1
+ import { UNREACHABLE } from "../1_utilities.js";
2
+ import { forceReplyToTlObject } from "./0_force_reply.js";
3
+ import { replyKeyboardRemoveToTlObject } from "./0_reply_keyboard_remove.js";
4
+ import { replyKeyboardMarkupToTlObject } from "./2_reply_keyboard_markup.js";
5
+ import { inlineKeyboardMarkupToTlObject } from "./3_inline_keyboard_markup.js";
6
+ export async function replyMarkupToTlObject(replyMarkup, usernameResolver) {
7
+ if ("inlineKeyboard" in replyMarkup) {
8
+ return await inlineKeyboardMarkupToTlObject(replyMarkup, usernameResolver);
9
+ }
10
+ else if ("keyboard" in replyMarkup) {
11
+ return replyKeyboardMarkupToTlObject(replyMarkup);
12
+ }
13
+ else if ("removeKeyboard" in replyMarkup) {
14
+ return replyKeyboardRemoveToTlObject(replyMarkup);
15
+ }
16
+ else if ("forceReply" in replyMarkup) {
17
+ return forceReplyToTlObject(replyMarkup);
18
+ }
19
+ else {
20
+ UNREACHABLE();
21
+ }
22
+ }
@@ -0,0 +1,29 @@
1
+ import { types } from "../2_tl.js";
2
+ import { MessageEntity } from "./0_message_entity.js";
3
+ import { ParseMode } from "./0_parse_mode.js";
4
+ import { InlineQueryResultArticle } from "./4_inline_query_result_article.js";
5
+ import { InlineQueryResultAudio } from "./4_inline_query_result_audio.js";
6
+ import { InlineQueryResultCachedAudio } from "./4_inline_query_result_cached_audio.js";
7
+ import { InlineQueryResultCachedDocument } from "./4_inline_query_result_cached_document.js";
8
+ import { InlineQueryResultCachedGif } from "./4_inline_query_result_cached_gif.js";
9
+ import { InlineQueryResultCachedMpeg4Gif } from "./4_inline_query_result_cached_mpeg4_gif.js";
10
+ import { InlineQueryResultCachedPhoto } from "./4_inline_query_result_cached_photo.js";
11
+ import { InlineQueryResultCachedSticker } from "./4_inline_query_result_cached_sticker.js";
12
+ import { InlineQueryResultCachedVideo } from "./4_inline_query_result_cached_video.js";
13
+ import { InlineQueryResultCachedVoice } from "./4_inline_query_result_cached_voice.js";
14
+ import { InlineQueryResultContact } from "./4_inline_query_result_contact.js";
15
+ import { InlineQueryResultDocument } from "./4_inline_query_result_document.js";
16
+ import { InlineQueryResultGame } from "./4_inline_query_result_game.js";
17
+ import { InlineQueryResultGif } from "./4_inline_query_result_gif.js";
18
+ import { InlineQueryResultLocation } from "./4_inline_query_result_location.js";
19
+ import { InlineQueryResultMpeg4Gif } from "./4_inline_query_result_mpeg4_gif.js";
20
+ import { InlineQueryResultPhoto } from "./4_inline_query_result_photo.js";
21
+ import { InlineQueryResultVenue } from "./4_inline_query_result_venue.js";
22
+ import { InlineQueryResultVideo } from "./4_inline_query_result_video.js";
23
+ import { InlineQueryResultVoice } from "./4_inline_query_result_voice.js";
24
+ import { UsernameResolver } from "./1__getters.js";
25
+ export type InlineQueryResult = InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice;
26
+ export declare function inlineQueryResultToTlObject(result_: InlineQueryResult, parseText: (text: string, params?: {
27
+ parseMode?: ParseMode;
28
+ entities?: MessageEntity[];
29
+ }) => readonly [string, any[] | undefined], usernameResolver: UsernameResolver): Promise<types.InputBotInlineResult | types.InputBotInlineResultDocument>;