@mtkruto/node 0.3.1 → 0.5.0
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 +1 -1
- package/esm/0_deps.js +1 -1
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +4 -4
- package/esm/client/0_params.d.ts +10 -3
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_password.js +2 -2
- package/esm/client/0_utilities.d.ts +4 -4
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/1_client_encrypted.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +1 -1
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +16 -0
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +3 -3
- package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +4 -4
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/less.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +5 -5
- package/{script/deps/jsr.io/@std/internal/1.0.4 → esm/deps/jsr.io/@std/internal/1.0.5}/build_message.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.js +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts.map +1 -1
- package/esm/tl/0_api.d.ts +199 -41
- package/esm/tl/0_api.d.ts.map +1 -1
- package/esm/tl/0_api.js +314 -75
- package/esm/transport/1_transport_abridged.d.ts.map +1 -1
- package/esm/transport/1_transport_intermediate.d.ts.map +1 -1
- package/esm/transport/2_transport_provider.js +4 -4
- package/esm/types/2_inline_keyboard_button.d.ts +9 -1
- package/esm/types/2_inline_keyboard_button.d.ts.map +1 -1
- package/esm/types/2_inline_keyboard_button.js +6 -0
- package/esm/types/2_invite_link.d.ts +5 -1
- package/esm/types/2_invite_link.d.ts.map +1 -1
- package/esm/types/2_invite_link.js +2 -0
- package/esm/utilities/0_cache_map.d.ts.map +1 -1
- package/esm/utilities/0_units.js +3 -3
- package/esm/utilities/2_queue.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +1 -1
- package/script/0_deps.js +3 -3
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +4 -4
- package/script/4_errors.js +2 -2
- package/script/client/0_filters.js +1 -2
- package/script/client/0_html.js +1 -2
- package/script/client/0_markdown.js +2 -2
- package/script/client/0_message.js +5 -6
- package/script/client/0_params.d.ts +10 -3
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_password.js +8 -8
- package/script/client/0_utilities.d.ts +4 -4
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/0_utilities.js +16 -16
- package/script/client/1_client_encrypted.d.ts.map +1 -1
- package/script/client/1_composer.js +4 -4
- package/script/client/2_update_manager.js +1 -1
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +16 -0
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +2 -2
- package/script/deps/deno.land/std@0.224.0/io/write_all.js +2 -3
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +1 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +2 -2
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +2 -2
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +9 -9
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +4 -4
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +1 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +3 -3
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +4 -4
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +4 -4
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +5 -6
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +6 -7
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +6 -7
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +5 -6
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +8 -9
- package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.js +10 -11
- package/script/deps/jsr.io/@std/assert/1.0.6/almost_equals.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/array_includes.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/assert.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +5 -6
- package/script/deps/jsr.io/@std/assert/1.0.6/exists.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/fail.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/false.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/greater.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/less.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/less_or_equal.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/match.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_equals.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/rejects.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +6 -7
- package/script/deps/jsr.io/@std/assert/1.0.6/string_includes.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/throws.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/unimplemented.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/unreachable.js +1 -2
- package/script/deps/jsr.io/@std/bytes/1.0.2/concat.js +1 -2
- package/script/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.js +1 -2
- package/script/deps/jsr.io/@std/encoding/1.0.5/base64.js +2 -3
- package/{esm/deps/jsr.io/@std/internal/1.0.4 → script/deps/jsr.io/@std/internal/1.0.5}/build_message.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +3 -4
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +5 -6
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +4 -5
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +1 -2
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +10 -11
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.js +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.js +2 -3
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/_util.js +8 -9
- package/script/deps/jsr.io/@std/media-types/1.0.3/all_extensions.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/content_type.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/extension.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/format_media_type.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/get_charset.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/parse_media_type.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +3 -4
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +2 -3
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/basename.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/common.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/extname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/format.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/join.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/parse.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/relative.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +3 -4
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +1 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +1 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +2 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +1 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +2 -3
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +6 -6
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +1 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +10 -10
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +1 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +5 -6
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +1 -2
- package/script/storage/1_utilities.js +7 -7
- package/script/tl/0_api.d.ts +199 -41
- package/script/tl/0_api.d.ts.map +1 -1
- package/script/tl/0_api.js +314 -75
- package/script/tl/1_utilities.js +9 -10
- package/script/tl/2_deserialize.js +1 -2
- package/script/tl/2_serialize.js +1 -2
- package/script/tl/3_utilities.js +6 -7
- package/script/tl/4_rpc_result.js +2 -2
- package/script/tl/5_message.js +6 -6
- package/script/transport/0_obfuscation.js +1 -2
- package/script/transport/1_transport_abridged.d.ts.map +1 -1
- package/script/transport/1_transport_intermediate.d.ts.map +1 -1
- package/script/transport/2_transport_provider.js +7 -8
- package/script/transport/3_transport_provider_tcp.js +1 -2
- package/script/types/0_birthday.js +1 -2
- package/script/types/0_callback_query_answer.js +1 -2
- package/script/types/0_callback_query_question.js +1 -2
- package/script/types/0_chat_administrator_rights.js +2 -3
- package/script/types/0_chat_member_rights.js +2 -3
- package/script/types/0_chat_photo.js +1 -2
- package/script/types/0_contact.js +1 -2
- package/script/types/0_dice.js +1 -2
- package/script/types/0_failed_invitation.js +1 -2
- package/script/types/0_giveaway_parameters.js +1 -2
- package/script/types/0_invoice.js +1 -2
- package/script/types/0_link_preview.js +1 -2
- package/script/types/0_live_stream_channel.js +1 -2
- package/script/types/0_location.js +1 -2
- package/script/types/0_mask_position.js +1 -2
- package/script/types/0_message_entity.js +3 -4
- package/script/types/0_message_search_filter.js +1 -2
- package/script/types/0_mini_app_info.js +1 -2
- package/script/types/0_opening_hours.js +1 -2
- package/script/types/0_reaction.js +3 -4
- package/script/types/0_refunded_payment.js +1 -2
- package/script/types/0_restriction_reason.js +1 -2
- package/script/types/0_self_destruct_option.js +1 -2
- package/script/types/0_shipping_address.js +1 -2
- package/script/types/0_thumbnail.js +1 -2
- package/script/types/0_video_chat.js +1 -2
- package/script/types/0_voice.js +1 -2
- package/script/types/1_animation.js +1 -2
- package/script/types/1_audio.js +1 -2
- package/script/types/1_bot_command_scope.js +1 -2
- package/script/types/1_chat_p.js +1 -2
- package/script/types/1_document.js +1 -2
- package/script/types/1_giveaway.js +1 -2
- package/script/types/1_keyboard_button.js +2 -3
- package/script/types/1_message_reaction.js +1 -2
- package/script/types/1_order_info.js +1 -2
- package/script/types/1_photo.js +2 -3
- package/script/types/1_poll_option.js +1 -2
- package/script/types/1_reaction_count.js +1 -2
- package/script/types/1_reply_quote.js +1 -2
- package/script/types/1_sticker.js +1 -2
- package/script/types/1_story_privacy.js +2 -3
- package/script/types/1_story_reaction.js +1 -2
- package/script/types/1_user.js +1 -2
- package/script/types/1_venue.js +1 -2
- package/script/types/1_video.js +1 -2
- package/script/types/1_video_note.js +1 -2
- package/script/types/2_business_connection.js +1 -2
- package/script/types/2_chat.js +1 -2
- package/script/types/2_chat_member.js +1 -2
- package/script/types/2_chosen_inline_result.js +1 -2
- package/script/types/2_forward_header.js +1 -2
- package/script/types/2_game.js +1 -2
- package/script/types/2_inactive_chat.js +1 -2
- package/script/types/2_inline_keyboard_button.d.ts +9 -1
- package/script/types/2_inline_keyboard_button.d.ts.map +1 -1
- package/script/types/2_inline_keyboard_button.js +8 -3
- package/script/types/2_inline_query.js +1 -2
- package/script/types/2_invite_link.d.ts +5 -1
- package/script/types/2_invite_link.d.ts.map +1 -1
- package/script/types/2_invite_link.js +3 -2
- package/script/types/2_message_reaction_count.js +1 -2
- package/script/types/2_message_reactions.js +1 -2
- package/script/types/2_poll.js +1 -2
- package/script/types/2_pre_checkout_query.js +1 -2
- package/script/types/2_story_content.js +1 -2
- package/script/types/2_story_interactions.js +1 -2
- package/script/types/2_story_interactive_area.js +2 -3
- package/script/types/2_successful_payment.js +1 -2
- package/script/types/3_chat_member_updated.js +1 -2
- package/script/types/3_join_request.js +1 -2
- package/script/types/3_reply_markup.js +2 -3
- package/script/types/3_story.js +1 -2
- package/script/types/4_inline_query_result.js +2 -3
- package/script/types/4_message.js +2 -3
- package/script/types/5_callback_query.js +2 -3
- package/script/types/5_chat_list_item.js +5 -6
- package/script/types/5_inline_query_answer.js +1 -2
- package/script/types/_file_id.js +5 -5
- package/script/utilities/0_bigint.js +6 -7
- package/script/utilities/0_buffer.js +1 -2
- package/script/utilities/0_cache_map.d.ts.map +1 -1
- package/script/utilities/0_color.js +2 -3
- package/script/utilities/0_env.js +2 -3
- package/script/utilities/0_hash.js +2 -3
- package/script/utilities/0_object.js +1 -2
- package/script/utilities/0_rle.js +2 -3
- package/script/utilities/0_units.js +3 -3
- package/script/utilities/1_auth.js +1 -2
- package/script/utilities/1_base64.js +2 -3
- package/script/utilities/1_logger.js +5 -5
- package/script/utilities/1_math.js +1 -2
- package/script/utilities/1_misc.js +8 -8
- package/script/utilities/2_queue.d.ts.map +1 -1
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.js +0 -0
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.selfDestructOptionToInt =
|
|
22
|
+
exports.selfDestructOptionToInt = selfDestructOptionToInt;
|
|
23
23
|
const _0_errors_js_1 = require("../0_errors.js");
|
|
24
24
|
function selfDestructOptionToInt(option) {
|
|
25
25
|
if (option == "afterOpen") {
|
|
@@ -40,4 +40,3 @@ function selfDestructOptionToInt(option) {
|
|
|
40
40
|
throw new _0_errors_js_1.InputError("Invalid self destruct option.");
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
exports.selfDestructOptionToInt = selfDestructOptionToInt;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructShippingAddress =
|
|
22
|
+
exports.constructShippingAddress = constructShippingAddress;
|
|
23
23
|
function constructShippingAddress(shippingAddress) {
|
|
24
24
|
return {
|
|
25
25
|
countryCode: shippingAddress.country_iso2,
|
|
@@ -30,4 +30,3 @@ function constructShippingAddress(shippingAddress) {
|
|
|
30
30
|
postCode: shippingAddress.post_code,
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
exports.constructShippingAddress = constructShippingAddress;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructThumbnail =
|
|
22
|
+
exports.constructThumbnail = constructThumbnail;
|
|
23
23
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
24
|
const _file_id_js_1 = require("./_file_id.js");
|
|
25
25
|
function constructThumbnail(size, file) {
|
|
@@ -39,4 +39,3 @@ function constructThumbnail(size, file) {
|
|
|
39
39
|
fileSize: size.size,
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.constructThumbnail = constructThumbnail;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructVideoChat =
|
|
22
|
+
exports.constructVideoChat = constructVideoChat;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
25
|
function constructVideoChat(call) {
|
|
@@ -57,4 +57,3 @@ function constructVideoChat(call) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
exports.constructVideoChat = constructVideoChat;
|
package/script/types/0_voice.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructVoice =
|
|
22
|
+
exports.constructVoice = constructVoice;
|
|
23
23
|
function constructVoice(document, audioAttributes, fileId, fileUniqueId) {
|
|
24
24
|
return {
|
|
25
25
|
fileId,
|
|
@@ -29,4 +29,3 @@ function constructVoice(document, audioAttributes, fileId, fileUniqueId) {
|
|
|
29
29
|
fileSize: Number(document.size),
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
exports.constructVoice = constructVoice;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructAnimation =
|
|
22
|
+
exports.constructAnimation = constructAnimation;
|
|
23
23
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
24
|
const _0_thumbnail_js_1 = require("./0_thumbnail.js");
|
|
25
25
|
function constructAnimation(document, videoAttribute, fileAttribute, fileId, fileUniqueId) {
|
|
@@ -35,4 +35,3 @@ function constructAnimation(document, videoAttribute, fileAttribute, fileId, fil
|
|
|
35
35
|
fileSize: Number(document.size),
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
exports.constructAnimation = constructAnimation;
|
package/script/types/1_audio.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructAudio =
|
|
22
|
+
exports.constructAudio = constructAudio;
|
|
23
23
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
24
|
const _0_thumbnail_js_1 = require("./0_thumbnail.js");
|
|
25
25
|
function constructAudio(document, audioAttribute, fileId, fileUniqueId) {
|
|
@@ -34,4 +34,3 @@ function constructAudio(document, audioAttribute, fileId, fileUniqueId) {
|
|
|
34
34
|
thumbnails: document.thumbs ? document.thumbs.map((v) => (0, _2_tl_js_1.is)("photoSize", v) ? (0, _0_thumbnail_js_1.constructThumbnail)(v, document) : null).filter((v) => v) : [],
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
exports.constructAudio = constructAudio;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.botCommandScopeToTlObject =
|
|
22
|
+
exports.botCommandScopeToTlObject = botCommandScopeToTlObject;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
25
|
async function botCommandScopeToTlObject(scope, getInputPeer) {
|
|
@@ -47,4 +47,3 @@ async function botCommandScopeToTlObject(scope, getInputPeer) {
|
|
|
47
47
|
(0, _0_deps_js_1.unreachable)();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
exports.botCommandScopeToTlObject = botCommandScopeToTlObject;
|
package/script/types/1_chat_p.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructChatP =
|
|
22
|
+
exports.constructChatP = constructChatP;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
25
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
@@ -109,4 +109,3 @@ function constructChatP(chat) {
|
|
|
109
109
|
(0, _0_deps_js_1.unreachable)();
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
exports.constructChatP = constructChatP;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructDocument =
|
|
22
|
+
exports.constructDocument = constructDocument;
|
|
23
23
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
24
|
const _0_thumbnail_js_1 = require("./0_thumbnail.js");
|
|
25
25
|
function constructDocument(document, fileNameAttribute, fileId, fileUniqueId) {
|
|
@@ -32,4 +32,3 @@ function constructDocument(document, fileNameAttribute, fileId, fileUniqueId) {
|
|
|
32
32
|
fileSize: Number(document.size),
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
exports.constructDocument = constructDocument;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructGiveaway =
|
|
22
|
+
exports.constructGiveaway = constructGiveaway;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _0_giveaway_parameters_js_1 = require("./0_giveaway_parameters.js");
|
|
25
25
|
function constructGiveaway(g) {
|
|
@@ -29,4 +29,3 @@ function constructGiveaway(g) {
|
|
|
29
29
|
const parameters = (0, _0_giveaway_parameters_js_1.constructGiveawayParameters)(g);
|
|
30
30
|
return (0, _1_utilities_js_1.cleanObject)({ parameters, winnerCount, premiumMonthCount, starCount: starCount ? Number(starCount) : undefined });
|
|
31
31
|
}
|
|
32
|
-
exports.constructGiveaway = constructGiveaway;
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
22
|
+
exports.constructKeyboardButton = constructKeyboardButton;
|
|
23
|
+
exports.keyboardButtonToTlObject = keyboardButtonToTlObject;
|
|
23
24
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
25
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
26
|
const _0_chat_administrator_rights_js_1 = require("./0_chat_administrator_rights.js");
|
|
@@ -100,7 +101,6 @@ function constructKeyboardButton(button_) {
|
|
|
100
101
|
(0, _0_deps_js_1.unreachable)();
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
exports.constructKeyboardButton = constructKeyboardButton;
|
|
104
104
|
function keyboardButtonToTlObject(button) {
|
|
105
105
|
if ("requestUser" in button) {
|
|
106
106
|
return { _: "keyboardButtonRequestPeer", text: button.text, button_id: button.requestUser.requestId, peer_type: ({ _: "requestPeerTypeUser", bot: button.requestUser.userIsBot, premium: button.requestUser.userIsPremium }), max_quantity: 1 };
|
|
@@ -129,4 +129,3 @@ function keyboardButtonToTlObject(button) {
|
|
|
129
129
|
return { _: "keyboardButton", text: button.text };
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
exports.keyboardButtonToTlObject = keyboardButtonToTlObject;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructMessageReaction =
|
|
22
|
+
exports.constructMessageReaction = constructMessageReaction;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
25
|
const _0_reaction_js_1 = require("./0_reaction.js");
|
|
@@ -42,4 +42,3 @@ function constructMessageReaction(reaction_, recentReactions) {
|
|
|
42
42
|
const chosen = reaction_.chosen_order !== undefined ? true : false;
|
|
43
43
|
return { reaction, count, choosers, chosen };
|
|
44
44
|
}
|
|
45
|
-
exports.constructMessageReaction = constructMessageReaction;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructOrderInfo =
|
|
22
|
+
exports.constructOrderInfo = constructOrderInfo;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _0_shipping_address_js_1 = require("./0_shipping_address.js");
|
|
25
25
|
function constructOrderInfo(info) {
|
|
@@ -30,4 +30,3 @@ function constructOrderInfo(info) {
|
|
|
30
30
|
shippingAddress: info.shipping_address ? (0, _0_shipping_address_js_1.constructShippingAddress)(info.shipping_address) : undefined,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
exports.constructOrderInfo = constructOrderInfo;
|
package/script/types/1_photo.js
CHANGED
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
22
|
+
exports.constructPhoto = constructPhoto;
|
|
23
|
+
exports.getPhotoSizes = getPhotoSizes;
|
|
23
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
25
|
const _file_id_js_1 = require("./_file_id.js");
|
|
25
26
|
const _0_thumbnail_js_1 = require("./0_thumbnail.js");
|
|
@@ -33,7 +34,6 @@ function constructPhoto(photo) {
|
|
|
33
34
|
thumbnails: sizes.slice(0, -1).map((v) => (0, _0_thumbnail_js_1.constructThumbnail)(v, photo)),
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
exports.constructPhoto = constructPhoto;
|
|
37
37
|
function getPhotoSizes(photo) {
|
|
38
38
|
const sizes = photo.sizes
|
|
39
39
|
.map((v) => {
|
|
@@ -49,4 +49,3 @@ function getPhotoSizes(photo) {
|
|
|
49
49
|
const largest = sizes.slice(-1)[0];
|
|
50
50
|
return { sizes, largest };
|
|
51
51
|
}
|
|
52
|
-
exports.getPhotoSizes = getPhotoSizes;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructPollOption =
|
|
22
|
+
exports.constructPollOption = constructPollOption;
|
|
23
23
|
const _0_message_entity_js_1 = require("./0_message_entity.js");
|
|
24
24
|
function constructPollOption(option, results) {
|
|
25
25
|
return {
|
|
@@ -28,4 +28,3 @@ function constructPollOption(option, results) {
|
|
|
28
28
|
voterCount: results.find((v) => v.option.every((v, i) => option.option[i] == v))?.voters ?? 0,
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
exports.constructPollOption = constructPollOption;
|
|
@@ -19,11 +19,10 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructReactionCount =
|
|
22
|
+
exports.constructReactionCount = constructReactionCount;
|
|
23
23
|
const _0_reaction_js_1 = require("./0_reaction.js");
|
|
24
24
|
function constructReactionCount(reaction_) {
|
|
25
25
|
const reaction = (0, _0_reaction_js_1.constructReaction)(reaction_.reaction);
|
|
26
26
|
const count = reaction_.count;
|
|
27
27
|
return { reaction, count };
|
|
28
28
|
}
|
|
29
|
-
exports.constructReactionCount = constructReactionCount;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructReplyQuote =
|
|
22
|
+
exports.constructReplyQuote = constructReplyQuote;
|
|
23
23
|
const _0_message_entity_js_1 = require("./0_message_entity.js");
|
|
24
24
|
function constructReplyQuote(quoteText, quoteOffset, quoteEntities) {
|
|
25
25
|
quoteText ??= "";
|
|
@@ -31,4 +31,3 @@ function constructReplyQuote(quoteText, quoteOffset, quoteEntities) {
|
|
|
31
31
|
entities: quoteEntities.map(_0_message_entity_js_1.constructMessageEntity).filter((v) => !!v),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
exports.constructReplyQuote = constructReplyQuote;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructSticker =
|
|
22
|
+
exports.constructSticker = constructSticker;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
25
|
const _0_mask_position_js_1 = require("./0_mask_position.js");
|
|
@@ -48,4 +48,3 @@ async function constructSticker(document, fileId, fileUniqueId, getStickerSetNam
|
|
|
48
48
|
fileSize: Number(document.size),
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
exports.constructSticker = constructSticker;
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
22
|
+
exports.storyPrivacyToTlObject = storyPrivacyToTlObject;
|
|
23
|
+
exports.constructStoryPrivacy = constructStoryPrivacy;
|
|
23
24
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
25
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
26
|
async function resolveUsers(ids, getEntity) {
|
|
@@ -63,7 +64,6 @@ async function storyPrivacyToTlObject(privacy, getEntity) {
|
|
|
63
64
|
}
|
|
64
65
|
return rules;
|
|
65
66
|
}
|
|
66
|
-
exports.storyPrivacyToTlObject = storyPrivacyToTlObject;
|
|
67
67
|
function constructStoryPrivacy(privacy) {
|
|
68
68
|
const except = privacy.find((v) => (0, _2_tl_js_1.is)("privacyValueDisallowUsers", v))?.users?.map(Number) ?? [];
|
|
69
69
|
if (privacy.some((v) => (0, _2_tl_js_1.is)("privacyValueAllowAll", v))) {
|
|
@@ -78,4 +78,3 @@ function constructStoryPrivacy(privacy) {
|
|
|
78
78
|
const only = privacy.find((v) => (0, _2_tl_js_1.is)("privacyValueAllowUsers", v))?.users?.map(Number) ?? [];
|
|
79
79
|
return { only };
|
|
80
80
|
}
|
|
81
|
-
exports.constructStoryPrivacy = constructStoryPrivacy;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructStoryReaction =
|
|
22
|
+
exports.constructStoryReaction = constructStoryReaction;
|
|
23
23
|
const _0_reaction_js_1 = require("./0_reaction.js");
|
|
24
24
|
function constructStoryReaction(reaction_) {
|
|
25
25
|
const reaction = (0, _0_reaction_js_1.constructReaction)(reaction_.reaction);
|
|
@@ -27,4 +27,3 @@ function constructStoryReaction(reaction_) {
|
|
|
27
27
|
const chosen = reaction_.chosen_order !== undefined ? true : false;
|
|
28
28
|
return { reaction, count, chosen };
|
|
29
29
|
}
|
|
30
|
-
exports.constructStoryReaction = constructStoryReaction;
|
package/script/types/1_user.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructUser =
|
|
22
|
+
exports.constructUser = constructUser;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
25
|
const _0_chat_photo_js_1 = require("./0_chat_photo.js");
|
|
@@ -48,4 +48,3 @@ function constructUser(user_) {
|
|
|
48
48
|
}
|
|
49
49
|
return (0, _1_utilities_js_1.cleanObject)(user);
|
|
50
50
|
}
|
|
51
|
-
exports.constructUser = constructUser;
|
package/script/types/1_venue.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructVenue =
|
|
22
|
+
exports.constructVenue = constructVenue;
|
|
23
23
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
24
|
function constructVenue(media_) {
|
|
25
25
|
const geo = (0, _2_tl_js_1.as)("geoPoint", media_.geo);
|
|
@@ -35,4 +35,3 @@ function constructVenue(media_) {
|
|
|
35
35
|
foursquareType: media_.venue_type,
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
exports.constructVenue = constructVenue;
|
package/script/types/1_video.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructVideo =
|
|
22
|
+
exports.constructVideo = constructVideo;
|
|
23
23
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
24
|
const _0_thumbnail_js_1 = require("./0_thumbnail.js");
|
|
25
25
|
function constructVideo(document, videoAttribute, fileName, fileId, fileUniqueId) {
|
|
@@ -35,4 +35,3 @@ function constructVideo(document, videoAttribute, fileName, fileId, fileUniqueId
|
|
|
35
35
|
fileSize: Number(document.size),
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
exports.constructVideo = constructVideo;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructVideoNote =
|
|
22
|
+
exports.constructVideoNote = constructVideoNote;
|
|
23
23
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
24
|
const _0_thumbnail_js_1 = require("./0_thumbnail.js");
|
|
25
25
|
function constructVideoNote(document, videoAttribute, fileId, fileUniqueId) {
|
|
@@ -32,4 +32,3 @@ function constructVideoNote(document, videoAttribute, fileId, fileUniqueId) {
|
|
|
32
32
|
fileSize: Number(document.size),
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
exports.constructVideoNote = constructVideoNote;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructBusinessConnection =
|
|
22
|
+
exports.constructBusinessConnection = constructBusinessConnection;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _1_user_js_1 = require("./1_user.js");
|
|
25
25
|
async function constructBusinessConnection(connection, getEntity) {
|
|
@@ -31,4 +31,3 @@ async function constructBusinessConnection(connection, getEntity) {
|
|
|
31
31
|
isEnabled: !connection.disabled,
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
exports.constructBusinessConnection = constructBusinessConnection;
|
package/script/types/2_chat.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructChat =
|
|
22
|
+
exports.constructChat = constructChat;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
25
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
@@ -68,4 +68,3 @@ async function constructChat(fullChat, getEntity) {
|
|
|
68
68
|
}
|
|
69
69
|
(0, _0_deps_js_1.unreachable)();
|
|
70
70
|
}
|
|
71
|
-
exports.constructChat = constructChat;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructChatMember =
|
|
22
|
+
exports.constructChatMember = constructChatMember;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
25
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
@@ -110,4 +110,3 @@ async function constructChatMember(participant, getEntity) {
|
|
|
110
110
|
(0, _0_deps_js_1.unreachable)();
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
exports.constructChatMember = constructChatMember;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructChosenInlineResult =
|
|
22
|
+
exports.constructChosenInlineResult = constructChosenInlineResult;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
25
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
@@ -38,4 +38,3 @@ async function constructChosenInlineResult(ubis, getEntity) {
|
|
|
38
38
|
query: ubis.query,
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
exports.constructChosenInlineResult = constructChosenInlineResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.constructForwardHeader =
|
|
3
|
+
exports.constructForwardHeader = constructForwardHeader;
|
|
4
4
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
5
5
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
6
6
|
const _1_chat_p_js_1 = require("./1_chat_p.js");
|
|
@@ -56,4 +56,3 @@ async function constructForwardHeader(fwdHeader, getEntity) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
exports.constructForwardHeader = constructForwardHeader;
|
package/script/types/2_game.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructGame =
|
|
22
|
+
exports.constructGame = constructGame;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
25
|
const _file_id_js_1 = require("./_file_id.js");
|
|
@@ -45,4 +45,3 @@ function constructGame(media_) {
|
|
|
45
45
|
: undefined,
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
exports.constructGame = constructGame;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructInactiveChat =
|
|
22
|
+
exports.constructInactiveChat = constructInactiveChat;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
25
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
@@ -34,4 +34,3 @@ function constructInactiveChat(chat_, lastActivity) {
|
|
|
34
34
|
chat,
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
exports.constructInactiveChat = constructInactiveChat;
|
|
@@ -123,8 +123,16 @@ export interface InlineKeyboardButtonPay extends _InlineKeyboardButtonBase {
|
|
|
123
123
|
/** @discriminator */
|
|
124
124
|
pay: boolean;
|
|
125
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* An inline keyboard that, when pressed, copies the text inside its `copy` field.
|
|
128
|
+
* @unlisted
|
|
129
|
+
*/
|
|
130
|
+
export interface InlineKeyboardButtonCopy extends _InlineKeyboardButtonBase {
|
|
131
|
+
/** @discriminator */
|
|
132
|
+
copy: string;
|
|
133
|
+
}
|
|
126
134
|
/** A button of an inline keyboard. */
|
|
127
|
-
export type InlineKeyboardButton = InlineKeyboardButtonURL | InlineKeyboardButtonCallback | InlineKeyboardButtonMiniApp | InlineKeyboardButtonLogin | InlineKeyboardButtonSwitchInline | InlineKeyboardButtonSwitchInlineCurrent | InlineKeyboardButtonSwitchInlineChosen | InlineKeyboardButtonGame | InlineKeyboardButtonPay;
|
|
135
|
+
export type InlineKeyboardButton = InlineKeyboardButtonURL | InlineKeyboardButtonCallback | InlineKeyboardButtonMiniApp | InlineKeyboardButtonLogin | InlineKeyboardButtonSwitchInline | InlineKeyboardButtonSwitchInlineCurrent | InlineKeyboardButtonSwitchInlineChosen | InlineKeyboardButtonGame | InlineKeyboardButtonPay | InlineKeyboardButtonCopy;
|
|
128
136
|
export declare function constructInlineKeyboardButton(button_: Api.KeyboardButton): InlineKeyboardButton;
|
|
129
137
|
export declare function inlineKeyboardButtonToTlObject(button: InlineKeyboardButton, usernameResolver: UsernameResolver): Promise<Api.KeyboardButton>;
|
|
130
138
|
//# sourceMappingURL=2_inline_keyboard_button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_inline_keyboard_button.d.ts","sourceRoot":"","sources":["../../src/types/2_inline_keyboard_button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAM,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAwB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEzE,gBAAgB;AAChB,MAAM,WAAW,yBAAyB;IACxC,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA6B,SAAQ,yBAAyB;IAC7E;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,gBAAgB;AAChB,MAAM,WAAW,2BAA4B,SAAQ,yBAAyB;IAC5E;;;OAGG;IACH,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC1E;;;OAGG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,gCAAiC,SAAQ,yBAAyB;IACjF;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,uCAAwC,SAAQ,yBAAyB;IACxF;;;OAGG;IACH,4BAA4B,EAAE,MAAM,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,WAAW,sCAAuC,SAAQ,yBAAyB;IACvF,qBAAqB;IACrB,4BAA4B,EAAE;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,qBAAqB;IACrB,YAAY,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE,qBAAqB;IACrB,GAAG,EAAE,OAAO,CAAC;CACd;AAED,sCAAsC;AACtC,MAAM,MAAM,oBAAoB,GAC5B,uBAAuB,GACvB,4BAA4B,GAC5B,2BAA2B,GAC3B,yBAAyB,GACzB,gCAAgC,GAChC,uCAAuC,GACvC,sCAAsC,GACtC,wBAAwB,GACxB,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"2_inline_keyboard_button.d.ts","sourceRoot":"","sources":["../../src/types/2_inline_keyboard_button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAM,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAwB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEzE,gBAAgB;AAChB,MAAM,WAAW,yBAAyB;IACxC,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA6B,SAAQ,yBAAyB;IAC7E;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,gBAAgB;AAChB,MAAM,WAAW,2BAA4B,SAAQ,yBAAyB;IAC5E;;;OAGG;IACH,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC1E;;;OAGG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,gCAAiC,SAAQ,yBAAyB;IACjF;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,uCAAwC,SAAQ,yBAAyB;IACxF;;;OAGG;IACH,4BAA4B,EAAE,MAAM,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,WAAW,sCAAuC,SAAQ,yBAAyB;IACvF,qBAAqB;IACrB,4BAA4B,EAAE;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,qBAAqB;IACrB,YAAY,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE,qBAAqB;IACrB,GAAG,EAAE,OAAO,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,sCAAsC;AACtC,MAAM,MAAM,oBAAoB,GAC5B,uBAAuB,GACvB,4BAA4B,GAC5B,2BAA2B,GAC3B,yBAAyB,GACzB,gCAAgC,GAChC,uCAAuC,GACvC,sCAAsC,GACtC,wBAAwB,GACxB,uBAAuB,GACvB,wBAAwB,CAAC;AAE7B,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,GAAG,CAAC,cAAc,GAAG,oBAAoB,CAgC/F;AAED,wBAAsB,8BAA8B,CAAC,MAAM,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAuClJ"}
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
22
|
+
exports.constructInlineKeyboardButton = constructInlineKeyboardButton;
|
|
23
|
+
exports.inlineKeyboardButtonToTlObject = inlineKeyboardButtonToTlObject;
|
|
23
24
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
25
|
const _0_errors_js_1 = require("../0_errors.js");
|
|
25
26
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
@@ -59,6 +60,9 @@ function constructInlineKeyboardButton(button_) {
|
|
|
59
60
|
else if ((0, _2_tl_js_1.is)("keyboardButtonGame", button_)) {
|
|
60
61
|
return { text: button_.text, callbackGame: {} };
|
|
61
62
|
}
|
|
63
|
+
else if ((0, _2_tl_js_1.is)("keyboardButtonCopy", button_)) {
|
|
64
|
+
return { text: button_.text, copy: button_.copy_text };
|
|
65
|
+
}
|
|
62
66
|
else if ((0, _2_tl_js_1.is)("keyboardButtonRequestPeer", button_)) {
|
|
63
67
|
(0, _0_deps_js_1.unreachable)();
|
|
64
68
|
}
|
|
@@ -66,7 +70,6 @@ function constructInlineKeyboardButton(button_) {
|
|
|
66
70
|
(0, _0_deps_js_1.unreachable)();
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
|
-
exports.constructInlineKeyboardButton = constructInlineKeyboardButton;
|
|
70
73
|
async function inlineKeyboardButtonToTlObject(button, usernameResolver) {
|
|
71
74
|
if ("url" in button) {
|
|
72
75
|
return { _: "keyboardButtonUrl", text: button.text, url: button.url };
|
|
@@ -109,8 +112,10 @@ async function inlineKeyboardButtonToTlObject(button, usernameResolver) {
|
|
|
109
112
|
else if ("pay" in button) {
|
|
110
113
|
return { _: "keyboardButtonBuy", text: button.text };
|
|
111
114
|
}
|
|
115
|
+
else if ("copy" in button) {
|
|
116
|
+
return { _: "keyboardButtonCopy", text: button.text, copy_text: button.copy };
|
|
117
|
+
}
|
|
112
118
|
else {
|
|
113
119
|
(0, _0_deps_js_1.unreachable)();
|
|
114
120
|
}
|
|
115
121
|
}
|
|
116
|
-
exports.inlineKeyboardButtonToTlObject = inlineKeyboardButtonToTlObject;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructInlineQuery =
|
|
22
|
+
exports.constructInlineQuery = constructInlineQuery;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
25
|
const _0_location_js_1 = require("./0_location.js");
|
|
@@ -61,4 +61,3 @@ async function constructInlineQuery(query_, getEntity) {
|
|
|
61
61
|
location,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
exports.constructInlineQuery = constructInlineQuery;
|
|
@@ -32,12 +32,16 @@ export interface InviteLink {
|
|
|
32
32
|
revoked: boolean;
|
|
33
33
|
/** An optional title. */
|
|
34
34
|
title?: string;
|
|
35
|
-
/** A point in time within the future in which the
|
|
35
|
+
/** A point in time within the future in which the invite link will be revoked. */
|
|
36
36
|
expiresAt?: Date;
|
|
37
37
|
/** The times the invite link can be used. */
|
|
38
38
|
limit?: number;
|
|
39
39
|
/** The number of pending join requests originating from this invite link. */
|
|
40
40
|
pendingJoinRequestCount?: number;
|
|
41
|
+
/** The amount of stars required to renew the subscription. */
|
|
42
|
+
subscriptionPrice?: number;
|
|
43
|
+
/** A point in time within the future in which the subscription will expire. */
|
|
44
|
+
subscriptionExpiresAt?: number;
|
|
41
45
|
}
|
|
42
46
|
export declare function constructInviteLink(inviteLink_: Api.chatInviteExported, getEntity: EntityGetter): Promise<InviteLink>;
|
|
43
47
|
//# sourceMappingURL=2_invite_link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_invite_link.d.ts","sourceRoot":"","sources":["../../src/types/2_invite_link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,0BAA0B;AAC1B,MAAM,WAAW,UAAU;IACzB,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,OAAO,EAAE,IAAI,CAAC;IACd,gGAAgG;IAChG,gBAAgB,EAAE,OAAO,CAAC;IAE1B,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"2_invite_link.d.ts","sourceRoot":"","sources":["../../src/types/2_invite_link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,0BAA0B;AAC1B,MAAM,WAAW,UAAU;IACzB,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,OAAO,EAAE,IAAI,CAAC;IACd,gGAAgG;IAChG,gBAAgB,EAAE,OAAO,CAAC;IAE1B,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,GAAG,CAAC,kBAAkB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAyB3H"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.constructInviteLink =
|
|
22
|
+
exports.constructInviteLink = constructInviteLink;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
25
|
const _1_user_js_1 = require("./1_user.js");
|
|
@@ -45,6 +45,7 @@ async function constructInviteLink(inviteLink_, getEntity) {
|
|
|
45
45
|
expiresAt,
|
|
46
46
|
limit,
|
|
47
47
|
pendingJoinRequestCount,
|
|
48
|
+
subcriptionPrice: inviteLink_.subscription_pricing || undefined,
|
|
49
|
+
subscriptionExpiresAt: inviteLink_.subscription_expired || undefined,
|
|
48
50
|
});
|
|
49
51
|
}
|
|
50
|
-
exports.constructInviteLink = constructInviteLink;
|