@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.
- package/esm/0_deps.d.ts +2 -2
- package/esm/0_deps.js +2 -2
- package/esm/3_types.d.ts +39 -3
- package/esm/3_types.js +39 -3
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_html.js +1 -1
- package/esm/client/3_types.d.ts +3 -6
- package/esm/client/3_types.js +1 -1
- package/esm/client/4_client.d.ts +20 -5
- package/esm/client/4_client.js +56 -40
- package/esm/connection/1_connection_web_socket.js +2 -1
- package/esm/deps/deno.land/std@0.201.0/assert/assert_greater.d.ts +5 -0
- package/esm/deps/deno.land/std@0.201.0/assert/assert_greater.js +14 -0
- package/esm/deps/deno.land/std@0.201.0/assert/assert_greater_or_equal.d.ts +5 -0
- package/esm/deps/deno.land/std@0.201.0/assert/assert_greater_or_equal.js +14 -0
- package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_instance_of.js +2 -2
- package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_is_error.js +4 -1
- package/esm/deps/deno.land/std@0.201.0/assert/assert_less.d.ts +5 -0
- package/esm/deps/deno.land/std@0.201.0/assert/assert_less.js +14 -0
- package/esm/deps/deno.land/std@0.201.0/assert/assert_less_or_equal.d.ts +5 -0
- package/esm/deps/deno.land/std@0.201.0/assert/assert_less_or_equal.js +14 -0
- package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/mod.d.ts +4 -0
- package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/mod.js +4 -0
- package/{script/deps/deno.land/std@0.200.0 → esm/deps/deno.land/std@0.201.0}/fmt/colors.d.ts +8 -1
- package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/fmt/colors.js +8 -1
- package/esm/tl/3_tl_reader.d.ts +1 -1
- package/esm/tl/3_tl_reader.js +6 -0
- package/esm/tl/4_tl_writer.js +8 -0
- package/esm/tl/6_message.js +3 -0
- package/esm/types/0_bot_command.d.ts +4 -0
- package/esm/types/0_chat_action.d.ts +1 -1
- package/esm/types/0_chat_id.d.ts +4 -0
- package/esm/types/0_chat_id.js +1 -0
- package/esm/types/0_chat_photo.js +1 -1
- package/esm/types/0_input_contact_message_content.d.ts +6 -0
- package/esm/types/0_input_contact_message_content.js +1 -0
- package/esm/types/0_input_location_message_content.d.ts +8 -0
- package/esm/types/0_input_location_message_content.js +1 -0
- package/esm/types/0_input_venue_message_content.d.ts +10 -0
- package/esm/types/0_input_venue_message_content.js +1 -0
- package/esm/types/0_labeled_price.d.ts +4 -0
- package/esm/types/0_labeled_price.js +1 -0
- package/esm/types/0_message_entity.d.ts +10 -10
- package/esm/types/0_message_entity.js +12 -12
- package/esm/types/0_parse_mode.d.ts +1 -0
- package/esm/types/0_parse_mode.js +1 -0
- package/esm/types/0_thumbnail.js +1 -1
- package/esm/types/{!0_misc.d.ts → 1__getters.d.ts} +7 -0
- package/esm/types/1__getters.js +1 -0
- package/esm/types/1_bot_command_scope.d.ts +32 -0
- package/esm/types/1_bot_command_scope.js +27 -0
- package/esm/types/1_chat.d.ts +5 -10
- package/esm/types/1_chat.js +4 -11
- package/esm/types/1_inline_query_result_button.d.ts +6 -0
- package/esm/types/1_inline_query_result_button.js +1 -0
- package/esm/types/1_input_invoice_message_content.d.ts +23 -0
- package/esm/types/1_input_invoice_message_content.js +1 -0
- package/esm/types/1_input_text_message_content.d.ts +8 -0
- package/esm/types/1_input_text_message_content.js +1 -0
- package/esm/types/1_photo.js +1 -1
- package/esm/types/1_sticker.d.ts +2 -2
- package/esm/types/1_sticker.js +1 -1
- package/esm/types/2_game.js +1 -1
- package/esm/types/{1_inline_keyboard_button.d.ts → 2_inline_keyboard_button.d.ts} +2 -2
- package/esm/types/2_inline_query.d.ts +1 -1
- package/esm/types/2_input_message_content.d.ts +6 -0
- package/esm/types/2_input_message_content.js +1 -0
- package/{script/types/2_inline_keyboard_markup.d.ts → esm/types/3_inline_keyboard_markup.d.ts} +3 -2
- package/esm/types/{2_inline_keyboard_markup.js → 3_inline_keyboard_markup.js} +1 -1
- package/esm/types/3_message.d.ts +2 -2
- package/esm/types/3_message.js +5 -5
- package/esm/types/4_callback_query.d.ts +1 -1
- package/esm/types/4_inline_query_result_article.d.ts +15 -0
- package/esm/types/4_inline_query_result_article.js +1 -0
- package/esm/types/4_inline_query_result_audio.d.ts +17 -0
- package/esm/types/4_inline_query_result_audio.js +1 -0
- package/esm/types/4_inline_query_result_cached_audio.d.ts +14 -0
- package/esm/types/4_inline_query_result_cached_audio.js +1 -0
- package/esm/types/4_inline_query_result_cached_document.d.ts +15 -0
- package/esm/types/4_inline_query_result_cached_document.js +1 -0
- package/esm/types/4_inline_query_result_cached_gif.d.ts +15 -0
- package/esm/types/4_inline_query_result_cached_gif.js +1 -0
- package/esm/types/4_inline_query_result_cached_mpeg4_gif.d.ts +15 -0
- package/esm/types/4_inline_query_result_cached_mpeg4_gif.js +1 -0
- package/esm/types/4_inline_query_result_cached_photo.d.ts +16 -0
- package/esm/types/4_inline_query_result_cached_photo.js +1 -0
- package/esm/types/4_inline_query_result_cached_sticker.d.ts +9 -0
- package/esm/types/4_inline_query_result_cached_sticker.js +1 -0
- package/esm/types/4_inline_query_result_cached_video.d.ts +16 -0
- package/esm/types/4_inline_query_result_cached_video.js +1 -0
- package/esm/types/4_inline_query_result_cached_voice.d.ts +15 -0
- package/esm/types/4_inline_query_result_cached_voice.js +1 -0
- package/esm/types/4_inline_query_result_contact.d.ts +15 -0
- package/esm/types/4_inline_query_result_contact.js +1 -0
- package/esm/types/4_inline_query_result_document.d.ts +18 -0
- package/esm/types/4_inline_query_result_document.js +1 -0
- package/esm/types/4_inline_query_result_game.d.ts +7 -0
- package/esm/types/4_inline_query_result_game.js +1 -0
- package/esm/types/4_inline_query_result_gif.d.ts +20 -0
- package/esm/types/4_inline_query_result_gif.js +1 -0
- package/esm/types/4_inline_query_result_location.d.ts +18 -0
- package/esm/types/4_inline_query_result_location.js +1 -0
- package/esm/types/4_inline_query_result_mpeg4_gif.d.ts +20 -0
- package/esm/types/4_inline_query_result_mpeg4_gif.js +1 -0
- package/esm/types/4_inline_query_result_photo.d.ts +19 -0
- package/esm/types/4_inline_query_result_photo.js +1 -0
- package/esm/types/4_inline_query_result_venue.d.ts +19 -0
- package/esm/types/4_inline_query_result_venue.js +1 -0
- package/esm/types/4_inline_query_result_video.d.ts +21 -0
- package/esm/types/4_inline_query_result_video.js +1 -0
- package/esm/types/4_inline_query_result_voice.d.ts +16 -0
- package/esm/types/4_inline_query_result_voice.js +1 -0
- package/esm/types/4_reply_markup.d.ts +7 -0
- package/esm/types/4_reply_markup.js +22 -0
- package/esm/types/5_inline_query_result.d.ts +29 -0
- package/esm/types/5_inline_query_result.js +256 -0
- package/package.json +1 -1
- package/script/0_deps.d.ts +2 -2
- package/script/0_deps.js +2 -2
- package/script/3_types.d.ts +39 -3
- package/script/3_types.js +39 -3
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_html.js +1 -1
- package/script/client/3_types.d.ts +3 -6
- package/script/client/3_types.js +3 -0
- package/script/client/4_client.d.ts +20 -5
- package/script/client/4_client.js +55 -39
- package/script/connection/1_connection_web_socket.js +2 -1
- package/script/deps/deno.land/std@0.201.0/assert/assert_greater.d.ts +5 -0
- package/script/deps/deno.land/std@0.201.0/assert/assert_greater.js +18 -0
- package/script/deps/deno.land/std@0.201.0/assert/assert_greater_or_equal.d.ts +5 -0
- package/script/deps/deno.land/std@0.201.0/assert/assert_greater_or_equal.js +18 -0
- package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_instance_of.js +2 -2
- package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_is_error.js +4 -1
- package/script/deps/deno.land/std@0.201.0/assert/assert_less.d.ts +5 -0
- package/script/deps/deno.land/std@0.201.0/assert/assert_less.js +18 -0
- package/script/deps/deno.land/std@0.201.0/assert/assert_less_or_equal.d.ts +5 -0
- package/script/deps/deno.land/std@0.201.0/assert/assert_less_or_equal.js +18 -0
- package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/mod.d.ts +4 -0
- package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/mod.js +4 -0
- package/{esm/deps/deno.land/std@0.200.0 → script/deps/deno.land/std@0.201.0}/fmt/colors.d.ts +8 -1
- package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/fmt/colors.js +10 -3
- package/script/tl/3_tl_reader.d.ts +1 -1
- package/script/tl/3_tl_reader.js +6 -0
- package/script/tl/4_tl_writer.js +8 -0
- package/script/tl/6_message.js +3 -0
- package/script/types/0_bot_command.d.ts +4 -0
- package/script/types/0_chat_action.d.ts +1 -1
- package/script/types/0_chat_id.d.ts +4 -0
- package/script/types/0_chat_id.js +2 -0
- package/script/types/0_chat_photo.js +7 -7
- package/script/types/0_input_contact_message_content.d.ts +6 -0
- package/script/types/0_input_contact_message_content.js +2 -0
- package/script/types/0_input_location_message_content.d.ts +8 -0
- package/script/types/0_input_location_message_content.js +2 -0
- package/script/types/0_input_venue_message_content.d.ts +10 -0
- package/script/types/0_input_venue_message_content.js +2 -0
- package/script/types/0_labeled_price.d.ts +4 -0
- package/script/types/0_labeled_price.js +2 -0
- package/script/types/0_message_entity.d.ts +10 -10
- package/script/types/0_message_entity.js +12 -12
- package/script/types/0_parse_mode.d.ts +1 -0
- package/script/types/0_parse_mode.js +2 -0
- package/script/types/0_thumbnail.js +5 -5
- package/script/types/{!0_misc.d.ts → 1__getters.d.ts} +7 -0
- package/script/types/1__getters.js +2 -0
- package/script/types/1_bot_command_scope.d.ts +32 -0
- package/script/types/1_bot_command_scope.js +31 -0
- package/script/types/1_chat.d.ts +5 -10
- package/script/types/1_chat.js +5 -12
- package/script/types/1_inline_query_result_button.d.ts +6 -0
- package/script/types/1_inline_query_result_button.js +2 -0
- package/script/types/1_input_invoice_message_content.d.ts +23 -0
- package/script/types/1_input_invoice_message_content.js +2 -0
- package/script/types/1_input_text_message_content.d.ts +8 -0
- package/script/types/1_input_text_message_content.js +2 -0
- package/script/types/1_photo.js +5 -5
- package/script/types/1_sticker.d.ts +2 -2
- package/script/types/1_sticker.js +1 -1
- package/script/types/2_game.js +3 -3
- package/script/types/{1_inline_keyboard_button.d.ts → 2_inline_keyboard_button.d.ts} +2 -2
- package/script/types/2_inline_query.d.ts +1 -1
- package/script/types/2_input_message_content.d.ts +6 -0
- package/script/types/2_input_message_content.js +2 -0
- package/{esm/types/2_inline_keyboard_markup.d.ts → script/types/3_inline_keyboard_markup.d.ts} +3 -2
- package/script/types/{2_inline_keyboard_markup.js → 3_inline_keyboard_markup.js} +3 -3
- package/script/types/3_message.d.ts +2 -2
- package/script/types/3_message.js +14 -14
- package/script/types/4_callback_query.d.ts +1 -1
- package/script/types/4_inline_query_result_article.d.ts +15 -0
- package/script/types/4_inline_query_result_article.js +2 -0
- package/script/types/4_inline_query_result_audio.d.ts +17 -0
- package/script/types/4_inline_query_result_audio.js +2 -0
- package/script/types/4_inline_query_result_cached_audio.d.ts +14 -0
- package/script/types/4_inline_query_result_cached_audio.js +2 -0
- package/script/types/4_inline_query_result_cached_document.d.ts +15 -0
- package/script/types/4_inline_query_result_cached_document.js +2 -0
- package/script/types/4_inline_query_result_cached_gif.d.ts +15 -0
- package/script/types/4_inline_query_result_cached_gif.js +2 -0
- package/script/types/4_inline_query_result_cached_mpeg4_gif.d.ts +15 -0
- package/script/types/4_inline_query_result_cached_mpeg4_gif.js +2 -0
- package/script/types/4_inline_query_result_cached_photo.d.ts +16 -0
- package/script/types/4_inline_query_result_cached_photo.js +2 -0
- package/script/types/4_inline_query_result_cached_sticker.d.ts +9 -0
- package/script/types/4_inline_query_result_cached_sticker.js +2 -0
- package/script/types/4_inline_query_result_cached_video.d.ts +16 -0
- package/script/types/4_inline_query_result_cached_video.js +2 -0
- package/script/types/4_inline_query_result_cached_voice.d.ts +15 -0
- package/script/types/4_inline_query_result_cached_voice.js +2 -0
- package/script/types/4_inline_query_result_contact.d.ts +15 -0
- package/script/types/4_inline_query_result_contact.js +2 -0
- package/script/types/4_inline_query_result_document.d.ts +18 -0
- package/script/types/4_inline_query_result_document.js +2 -0
- package/script/types/4_inline_query_result_game.d.ts +7 -0
- package/script/types/4_inline_query_result_game.js +2 -0
- package/script/types/4_inline_query_result_gif.d.ts +20 -0
- package/script/types/4_inline_query_result_gif.js +2 -0
- package/script/types/4_inline_query_result_location.d.ts +18 -0
- package/script/types/4_inline_query_result_location.js +2 -0
- package/script/types/4_inline_query_result_mpeg4_gif.d.ts +20 -0
- package/script/types/4_inline_query_result_mpeg4_gif.js +2 -0
- package/script/types/4_inline_query_result_photo.d.ts +19 -0
- package/script/types/4_inline_query_result_photo.js +2 -0
- package/script/types/4_inline_query_result_venue.d.ts +19 -0
- package/script/types/4_inline_query_result_venue.js +2 -0
- package/script/types/4_inline_query_result_video.d.ts +21 -0
- package/script/types/4_inline_query_result_video.js +2 -0
- package/script/types/4_inline_query_result_voice.d.ts +16 -0
- package/script/types/4_inline_query_result_voice.js +2 -0
- package/script/types/4_reply_markup.d.ts +7 -0
- package/script/types/4_reply_markup.js +26 -0
- package/script/types/5_inline_query_result.d.ts +29 -0
- package/script/types/5_inline_query_result.js +260 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.200.0 → std@0.201.0}/encoding/base64.js +0 -0
- /package/esm/types/{!0_file_id.d.ts → 0__file_id.d.ts} +0 -0
- /package/esm/types/{!0_file_id.js → 0__file_id.js} +0 -0
- /package/esm/types/{!0_misc.js → 0_bot_command.js} +0 -0
- /package/esm/types/{1_inline_keyboard_button.js → 2_inline_keyboard_button.js} +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.200.0 → std@0.201.0}/encoding/base64.js +0 -0
- /package/script/types/{!0_file_id.d.ts → 0__file_id.d.ts} +0 -0
- /package/script/types/{!0_file_id.js → 0__file_id.js} +0 -0
- /package/script/types/{!0_misc.js → 0_bot_command.js} +0 -0
- /package/script/types/{1_inline_keyboard_button.js → 2_inline_keyboard_button.js} +0 -0
|
@@ -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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.replyMarkupToTlObject = void 0;
|
|
4
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
5
|
+
const _0_force_reply_js_1 = require("./0_force_reply.js");
|
|
6
|
+
const _0_reply_keyboard_remove_js_1 = require("./0_reply_keyboard_remove.js");
|
|
7
|
+
const _2_reply_keyboard_markup_js_1 = require("./2_reply_keyboard_markup.js");
|
|
8
|
+
const _3_inline_keyboard_markup_js_1 = require("./3_inline_keyboard_markup.js");
|
|
9
|
+
async function replyMarkupToTlObject(replyMarkup, usernameResolver) {
|
|
10
|
+
if ("inlineKeyboard" in replyMarkup) {
|
|
11
|
+
return await (0, _3_inline_keyboard_markup_js_1.inlineKeyboardMarkupToTlObject)(replyMarkup, usernameResolver);
|
|
12
|
+
}
|
|
13
|
+
else if ("keyboard" in replyMarkup) {
|
|
14
|
+
return (0, _2_reply_keyboard_markup_js_1.replyKeyboardMarkupToTlObject)(replyMarkup);
|
|
15
|
+
}
|
|
16
|
+
else if ("removeKeyboard" in replyMarkup) {
|
|
17
|
+
return (0, _0_reply_keyboard_remove_js_1.replyKeyboardRemoveToTlObject)(replyMarkup);
|
|
18
|
+
}
|
|
19
|
+
else if ("forceReply" in replyMarkup) {
|
|
20
|
+
return (0, _0_force_reply_js_1.forceReplyToTlObject)(replyMarkup);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.replyMarkupToTlObject = replyMarkupToTlObject;
|
|
@@ -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>;
|