@mtkruto/node 0.3.0 → 0.4.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.js +3 -3
- package/esm/client/0_params.d.ts +6 -2
- 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/0_utilities.js +2 -2
- 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 +6 -0
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +3 -3
- package/{script/deps/jsr.io/@std/io/0.224.9 → esm/deps/jsr.io/@std/io/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/transport/2_transport_provider.js +4 -4
- 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.js +3 -3
- 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 +6 -2
- 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 +18 -18
- 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 +6 -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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.js +1 -2
- 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 +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/less.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/less_or_equal.js +1 -2
- 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 +1 -2
- 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 +1 -2
- 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/script/deps/jsr.io/@std/internal/1.0.4/build_message.js +3 -4
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.js +5 -6
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.js +4 -5
- package/script/deps/jsr.io/@std/internal/1.0.4/format.js +1 -2
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.js +10 -11
- package/{esm/deps/jsr.io/@std/io/0.224.9 → script/deps/jsr.io/@std/io/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/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/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.js +2 -3
- package/script/types/2_inline_query.js +1 -2
- package/script/types/2_invite_link.js +1 -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_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/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/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.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;
|
|
@@ -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");
|
|
@@ -66,7 +67,6 @@ function constructInlineKeyboardButton(button_) {
|
|
|
66
67
|
(0, _0_deps_js_1.unreachable)();
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
|
-
exports.constructInlineKeyboardButton = constructInlineKeyboardButton;
|
|
70
70
|
async function inlineKeyboardButtonToTlObject(button, usernameResolver) {
|
|
71
71
|
if ("url" in button) {
|
|
72
72
|
return { _: "keyboardButtonUrl", text: button.text, url: button.url };
|
|
@@ -113,4 +113,3 @@ async function inlineKeyboardButtonToTlObject(button, usernameResolver) {
|
|
|
113
113
|
(0, _0_deps_js_1.unreachable)();
|
|
114
114
|
}
|
|
115
115
|
}
|
|
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;
|
|
@@ -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");
|
|
@@ -47,4 +47,3 @@ async function constructInviteLink(inviteLink_, getEntity) {
|
|
|
47
47
|
pendingJoinRequestCount,
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
exports.constructInviteLink = constructInviteLink;
|
|
@@ -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.constructMessageReactionCount =
|
|
22
|
+
exports.constructMessageReactionCount = constructMessageReactionCount;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _1_chat_p_js_1 = require("./1_chat_p.js");
|
|
25
25
|
const _1_reaction_count_js_1 = require("./1_reaction_count.js");
|
|
@@ -37,4 +37,3 @@ async function constructMessageReactionCount(update, getEntity) {
|
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
exports.constructMessageReactionCount = constructMessageReactionCount;
|
|
@@ -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.constructMessageReactions =
|
|
22
|
+
exports.constructMessageReactions = constructMessageReactions;
|
|
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_reaction_js_1 = require("./0_reaction.js");
|
|
@@ -57,4 +57,3 @@ async function constructMessageReactions(update, getEntity) {
|
|
|
57
57
|
newReactions,
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
exports.constructMessageReactions = constructMessageReactions;
|
package/script/types/2_poll.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.constructPoll =
|
|
22
|
+
exports.constructPoll = constructPoll;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _0_message_entity_js_1 = require("./0_message_entity.js");
|
|
25
25
|
const _1_poll_option_js_1 = require("./1_poll_option.js");
|
|
@@ -44,4 +44,3 @@ function constructPoll(media_) {
|
|
|
44
44
|
closeDate: poll.close_date ? new Date(poll.close_date * 1000) : undefined,
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
exports.constructPoll = constructPoll;
|
|
@@ -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.constructPreCheckoutQuery =
|
|
22
|
+
exports.constructPreCheckoutQuery = constructPreCheckoutQuery;
|
|
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_order_info_js_1 = require("./1_order_info.js");
|
|
@@ -40,4 +40,3 @@ async function constructPreCheckoutQuery(query, getEntity) {
|
|
|
40
40
|
orderInfo: query.info ? (0, _1_order_info_js_1.constructOrderInfo)(query.info) : undefined,
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
exports.constructPreCheckoutQuery = constructPreCheckoutQuery;
|
|
@@ -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.constructStoryContent =
|
|
22
|
+
exports.constructStoryContent = constructStoryContent;
|
|
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 _file_id_js_1 = require("./_file_id.js");
|
|
@@ -52,4 +52,3 @@ function constructStoryContent(media) {
|
|
|
52
52
|
(0, _0_deps_js_1.unreachable)();
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
exports.constructStoryContent = constructStoryContent;
|
|
@@ -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.constructStoryInteractions =
|
|
22
|
+
exports.constructStoryInteractions = constructStoryInteractions;
|
|
23
23
|
const _1_story_reaction_js_1 = require("./1_story_reaction.js");
|
|
24
24
|
function constructStoryInteractions(views_) {
|
|
25
25
|
const views = views_.views_count;
|
|
@@ -28,4 +28,3 @@ function constructStoryInteractions(views_) {
|
|
|
28
28
|
const reactions = views_.reactions ? views_.reactions.map(_1_story_reaction_js_1.constructStoryReaction) : undefined;
|
|
29
29
|
return { reactions, reactionCount, views, forwards };
|
|
30
30
|
}
|
|
31
|
-
exports.constructStoryInteractions = constructStoryInteractions;
|
|
@@ -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.constructStoryInteractiveArea = constructStoryInteractiveArea;
|
|
23
|
+
exports.storyInteractiveAreaToTlObject = storyInteractiveAreaToTlObject;
|
|
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_location_js_1 = require("./0_location.js");
|
|
@@ -70,7 +71,6 @@ function constructStoryInteractiveArea(area) {
|
|
|
70
71
|
(0, _0_deps_js_1.unreachable)();
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
exports.constructStoryInteractiveArea = constructStoryInteractiveArea;
|
|
74
74
|
function storyInteractiveAreaPositionToTlObject(position) {
|
|
75
75
|
return { _: "mediaAreaCoordinates", x: position.xPercentage, y: position.yPercentage, w: position.widthPercentage, h: position.heightPercentage, rotation: position.rotationAngle };
|
|
76
76
|
}
|
|
@@ -109,4 +109,3 @@ async function storyInteractiveAreaToTlObject(area, getEntity) {
|
|
|
109
109
|
(0, _0_deps_js_1.unreachable)();
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
exports.storyInteractiveAreaToTlObject = storyInteractiveAreaToTlObject;
|
|
@@ -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.constructSuccessfulPayment =
|
|
22
|
+
exports.constructSuccessfulPayment = constructSuccessfulPayment;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _1_order_info_js_1 = require("./1_order_info.js");
|
|
25
25
|
function constructSuccessfulPayment(action) {
|
|
@@ -33,4 +33,3 @@ function constructSuccessfulPayment(action) {
|
|
|
33
33
|
orderInfo: action.info ? (0, _1_order_info_js_1.constructOrderInfo)(action.info) : undefined,
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
exports.constructSuccessfulPayment = constructSuccessfulPayment;
|
|
@@ -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.constructChatMemberUpdated =
|
|
22
|
+
exports.constructChatMemberUpdated = constructChatMemberUpdated;
|
|
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");
|
|
@@ -54,4 +54,3 @@ async function constructChatMemberUpdated(update, getEntity) {
|
|
|
54
54
|
inviteLink,
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
exports.constructChatMemberUpdated = constructChatMemberUpdated;
|
|
@@ -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.constructJoinRequest =
|
|
22
|
+
exports.constructJoinRequest = constructJoinRequest;
|
|
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");
|
|
@@ -46,4 +46,3 @@ async function constructJoinRequest(update, getEntity) {
|
|
|
46
46
|
inviteLink,
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
exports.constructJoinRequest = constructJoinRequest;
|
|
@@ -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.constructReplyMarkup = constructReplyMarkup;
|
|
23
|
+
exports.replyMarkupToTlObject = replyMarkupToTlObject;
|
|
23
24
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
25
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
26
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
@@ -111,7 +112,6 @@ function constructReplyMarkup(replyMarkup) {
|
|
|
111
112
|
(0, _0_deps_js_1.unreachable)();
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
|
-
exports.constructReplyMarkup = constructReplyMarkup;
|
|
115
115
|
async function replyMarkupToTlObject(replyMarkup, usernameResolver) {
|
|
116
116
|
if ("inlineKeyboard" in replyMarkup) {
|
|
117
117
|
return await inlineKeyboardMarkupToTlObject(replyMarkup, usernameResolver);
|
|
@@ -129,4 +129,3 @@ async function replyMarkupToTlObject(replyMarkup, usernameResolver) {
|
|
|
129
129
|
(0, _0_deps_js_1.unreachable)();
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
exports.replyMarkupToTlObject = replyMarkupToTlObject;
|
package/script/types/3_story.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.constructStory =
|
|
22
|
+
exports.constructStory = constructStory;
|
|
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 _0_message_entity_js_1 = require("./0_message_entity.js");
|
|
@@ -58,4 +58,3 @@ async function constructStory(story, peer, getEntity) {
|
|
|
58
58
|
captionEntities,
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
exports.constructStory = constructStory;
|
|
@@ -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.constructInlineQueryResult = constructInlineQueryResult;
|
|
23
|
+
exports.inlineQueryResultToTlObject = inlineQueryResultToTlObject;
|
|
23
24
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
25
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
26
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
@@ -207,7 +208,6 @@ function constructInlineQueryResult(result) {
|
|
|
207
208
|
}
|
|
208
209
|
(0, _0_deps_js_1.unreachable)();
|
|
209
210
|
}
|
|
210
|
-
exports.constructInlineQueryResult = constructInlineQueryResult;
|
|
211
211
|
// deno-lint-ignore no-explicit-any
|
|
212
212
|
async function inlineQueryResultToTlObject(result_, parseText, usernameResolver) {
|
|
213
213
|
let document = null;
|
|
@@ -382,4 +382,3 @@ async function inlineQueryResultToTlObject(result_, parseText, usernameResolver)
|
|
|
382
382
|
(0, _0_deps_js_1.unreachable)();
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
exports.inlineQueryResultToTlObject = inlineQueryResultToTlObject;
|
|
@@ -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.assertMessageType = assertMessageType;
|
|
23
|
+
exports.constructMessage = constructMessage;
|
|
23
24
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
25
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
26
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
@@ -104,7 +105,6 @@ function assertMessageType(message, type) {
|
|
|
104
105
|
}
|
|
105
106
|
return message;
|
|
106
107
|
}
|
|
107
|
-
exports.assertMessageType = assertMessageType;
|
|
108
108
|
async function getSender(message_, getEntity) {
|
|
109
109
|
if ((0, _2_tl_js_1.is)("peerUser", message_.from_id)) {
|
|
110
110
|
const entity = await getEntity(message_.from_id);
|
|
@@ -535,4 +535,3 @@ async function constructMessage(message_, getEntity, getMessage, getStickerSetNa
|
|
|
535
535
|
}
|
|
536
536
|
return (0, _1_utilities_js_1.cleanObject)(m);
|
|
537
537
|
}
|
|
538
|
-
exports.constructMessage = constructMessage;
|
|
@@ -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.deserializeInlineMessageId = deserializeInlineMessageId;
|
|
23
|
+
exports.constructCallbackQuery = constructCallbackQuery;
|
|
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");
|
|
@@ -40,7 +41,6 @@ function deserializeInlineMessageId(inlineMessageId) {
|
|
|
40
41
|
}
|
|
41
42
|
throw ERR_INVALID_INLINE_MESSAGE_ID;
|
|
42
43
|
}
|
|
43
|
-
exports.deserializeInlineMessageId = deserializeInlineMessageId;
|
|
44
44
|
async function constructCallbackQuery(callbackQuery, getEntity, getMessage) {
|
|
45
45
|
const user_ = await getEntity({ _: "peerUser", user_id: callbackQuery.user_id });
|
|
46
46
|
if (!user_) {
|
|
@@ -62,4 +62,3 @@ async function constructCallbackQuery(callbackQuery, getEntity, getMessage) {
|
|
|
62
62
|
return (0, _1_utilities_js_1.cleanObject)({ id, from: user, inlineMessageId: (0, _1_utilities_js_1.base64EncodeUrlSafe)((0, _2_tl_js_1.serialize)(callbackQuery.msg_id)), chatInstance, data, gameShortName });
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
exports.constructCallbackQuery = constructCallbackQuery;
|
|
@@ -19,7 +19,11 @@
|
|
|
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.getChatListItemOrder = getChatListItemOrder;
|
|
23
|
+
exports.constructChatListItem = constructChatListItem;
|
|
24
|
+
exports.constructChatListItem2 = constructChatListItem2;
|
|
25
|
+
exports.constructChatListItem3 = constructChatListItem3;
|
|
26
|
+
exports.constructChatListItem4 = constructChatListItem4;
|
|
23
27
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
28
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
29
|
const _1_chat_p_js_1 = require("./1_chat_p.js");
|
|
@@ -31,7 +35,6 @@ function getChatListItemOrder(lastMessage, pinned) {
|
|
|
31
35
|
}
|
|
32
36
|
return p + String((BigInt(Math.floor(lastMessage.date.getTime())) << 32n) + BigInt(lastMessage.id));
|
|
33
37
|
}
|
|
34
|
-
exports.getChatListItemOrder = getChatListItemOrder;
|
|
35
38
|
async function constructChatListItem(chatId, pinned, lastMessageId, getEntity, getMessage) {
|
|
36
39
|
const entity = await getEntity((0, _2_tl_js_1.chatIdToPeer)(chatId));
|
|
37
40
|
if (entity == null) {
|
|
@@ -46,7 +49,6 @@ async function constructChatListItem(chatId, pinned, lastMessageId, getEntity, g
|
|
|
46
49
|
lastMessage,
|
|
47
50
|
};
|
|
48
51
|
}
|
|
49
|
-
exports.constructChatListItem = constructChatListItem;
|
|
50
52
|
function constructChatListItem2(entity, pinned, lastMessage) {
|
|
51
53
|
return {
|
|
52
54
|
chat: (0, _1_chat_p_js_1.constructChatP)(entity),
|
|
@@ -55,7 +57,6 @@ function constructChatListItem2(entity, pinned, lastMessage) {
|
|
|
55
57
|
lastMessage,
|
|
56
58
|
};
|
|
57
59
|
}
|
|
58
|
-
exports.constructChatListItem2 = constructChatListItem2;
|
|
59
60
|
async function constructChatListItem3(chatId, pinned, lastMessage, getEntity) {
|
|
60
61
|
const entity = await getEntity((0, _2_tl_js_1.chatIdToPeer)(chatId));
|
|
61
62
|
if (entity == null) {
|
|
@@ -68,7 +69,6 @@ async function constructChatListItem3(chatId, pinned, lastMessage, getEntity) {
|
|
|
68
69
|
lastMessage,
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
|
-
exports.constructChatListItem3 = constructChatListItem3;
|
|
72
72
|
async function constructChatListItem4(dialog, dialogs, pinnedChats, getEntity, getMessage, getStickerSetName) {
|
|
73
73
|
const topMessage_ = dialogs.messages.find((v) => "id" in v && v.id == dialog.top_message);
|
|
74
74
|
if (!topMessage_) {
|
|
@@ -91,4 +91,3 @@ async function constructChatListItem4(dialog, dialogs, pinnedChats, getEntity, g
|
|
|
91
91
|
pinned,
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
exports.constructChatListItem4 = constructChatListItem4;
|
|
@@ -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.constructInlineQueryAnswer =
|
|
22
|
+
exports.constructInlineQueryAnswer = constructInlineQueryAnswer;
|
|
23
23
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
24
|
const _4_inline_query_result_js_1 = require("./4_inline_query_result.js");
|
|
25
25
|
function constructInlineQueryAnswer(results) {
|
|
@@ -29,4 +29,3 @@ function constructInlineQueryAnswer(results) {
|
|
|
29
29
|
nextOffset: results.next_offset,
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
exports.constructInlineQueryAnswer = constructInlineQueryAnswer;
|