├── .gitignore ├── LICENSE ├── README.md ├── example ├── .gitignore ├── lib │ └── main.dart └── pubspec.yaml ├── lib ├── src │ ├── api │ │ ├── extensions │ │ │ ├── convert_extensions.dart │ │ │ ├── data_class_extensions.dart │ │ │ └── extensions.dart │ │ ├── function.dart │ │ ├── functions │ │ │ ├── accept_call.dart │ │ │ ├── accept_terms_of_service.dart │ │ │ ├── activate_story_stealth_mode.dart │ │ │ ├── add_bot_media_preview.dart │ │ │ ├── add_chat_folder_by_invite_link.dart │ │ │ ├── add_chat_member.dart │ │ │ ├── add_chat_members.dart │ │ │ ├── add_chat_to_list.dart │ │ │ ├── add_contact.dart │ │ │ ├── add_custom_server_language_pack.dart │ │ │ ├── add_favorite_sticker.dart │ │ │ ├── add_file_to_downloads.dart │ │ │ ├── add_local_message.dart │ │ │ ├── add_log_message.dart │ │ │ ├── add_message_reaction.dart │ │ │ ├── add_network_statistics.dart │ │ │ ├── add_pending_paid_message_reaction.dart │ │ │ ├── add_proxy.dart │ │ │ ├── add_quick_reply_shortcut_inline_query_result_message.dart │ │ │ ├── add_quick_reply_shortcut_message.dart │ │ │ ├── add_quick_reply_shortcut_message_album.dart │ │ │ ├── add_recent_sticker.dart │ │ │ ├── add_recently_found_chat.dart │ │ │ ├── add_saved_animation.dart │ │ │ ├── add_saved_notification_sound.dart │ │ │ ├── add_sticker_to_set.dart │ │ │ ├── allow_bot_to_send_messages.dart │ │ │ ├── answer_callback_query.dart │ │ │ ├── answer_custom_query.dart │ │ │ ├── answer_inline_query.dart │ │ │ ├── answer_pre_checkout_query.dart │ │ │ ├── answer_shipping_query.dart │ │ │ ├── answer_web_app_query.dart │ │ │ ├── apply_premium_gift_code.dart │ │ │ ├── assign_app_store_transaction.dart │ │ │ ├── assign_google_play_transaction.dart │ │ │ ├── ban_chat_member.dart │ │ │ ├── block_message_sender_from_replies.dart │ │ │ ├── boost_chat.dart │ │ │ ├── can_bot_send_messages.dart │ │ │ ├── can_purchase_from_store.dart │ │ │ ├── can_send_message_to_user.dart │ │ │ ├── can_send_story.dart │ │ │ ├── can_transfer_ownership.dart │ │ │ ├── cancel_download_file.dart │ │ │ ├── cancel_password_reset.dart │ │ │ ├── cancel_preliminary_upload_file.dart │ │ │ ├── cancel_recovery_email_address_verification.dart │ │ │ ├── change_imported_contacts.dart │ │ │ ├── change_sticker_set.dart │ │ │ ├── check_authentication_bot_token.dart │ │ │ ├── check_authentication_code.dart │ │ │ ├── check_authentication_email_code.dart │ │ │ ├── check_authentication_password.dart │ │ │ ├── check_authentication_password_recovery_code.dart │ │ │ ├── check_chat_folder_invite_link.dart │ │ │ ├── check_chat_invite_link.dart │ │ │ ├── check_chat_username.dart │ │ │ ├── check_created_public_chats_limit.dart │ │ │ ├── check_email_address_verification_code.dart │ │ │ ├── check_login_email_address_code.dart │ │ │ ├── check_password_recovery_code.dart │ │ │ ├── check_phone_number_code.dart │ │ │ ├── check_premium_gift_code.dart │ │ │ ├── check_quick_reply_shortcut_name.dart │ │ │ ├── check_recovery_email_address_code.dart │ │ │ ├── check_sticker_set_name.dart │ │ │ ├── clean_file_name.dart │ │ │ ├── clear_all_draft_messages.dart │ │ │ ├── clear_autosave_settings_exceptions.dart │ │ │ ├── clear_imported_contacts.dart │ │ │ ├── clear_recent_emoji_statuses.dart │ │ │ ├── clear_recent_reactions.dart │ │ │ ├── clear_recent_stickers.dart │ │ │ ├── clear_recently_found_chats.dart │ │ │ ├── clear_searched_for_tags.dart │ │ │ ├── click_animated_emoji_message.dart │ │ │ ├── click_chat_sponsored_message.dart │ │ │ ├── click_premium_subscription_button.dart │ │ │ ├── close.dart │ │ │ ├── close_chat.dart │ │ │ ├── close_secret_chat.dart │ │ │ ├── close_story.dart │ │ │ ├── close_web_app.dart │ │ │ ├── commit_pending_paid_message_reactions.dart │ │ │ ├── confirm_qr_code_authentication.dart │ │ │ ├── confirm_session.dart │ │ │ ├── create_basic_group_chat.dart │ │ │ ├── create_business_chat_link.dart │ │ │ ├── create_call.dart │ │ │ ├── create_chat_folder.dart │ │ │ ├── create_chat_folder_invite_link.dart │ │ │ ├── create_chat_invite_link.dart │ │ │ ├── create_chat_subscription_invite_link.dart │ │ │ ├── create_forum_topic.dart │ │ │ ├── create_invoice_link.dart │ │ │ ├── create_new_basic_group_chat.dart │ │ │ ├── create_new_secret_chat.dart │ │ │ ├── create_new_sticker_set.dart │ │ │ ├── create_new_supergroup_chat.dart │ │ │ ├── create_private_chat.dart │ │ │ ├── create_secret_chat.dart │ │ │ ├── create_supergroup_chat.dart │ │ │ ├── create_temporary_password.dart │ │ │ ├── create_video_chat.dart │ │ │ ├── delete_account.dart │ │ │ ├── delete_all_call_messages.dart │ │ │ ├── delete_all_revoked_chat_invite_links.dart │ │ │ ├── delete_bot_media_previews.dart │ │ │ ├── delete_business_chat_link.dart │ │ │ ├── delete_business_connected_bot.dart │ │ │ ├── delete_chat.dart │ │ │ ├── delete_chat_background.dart │ │ │ ├── delete_chat_folder.dart │ │ │ ├── delete_chat_folder_invite_link.dart │ │ │ ├── delete_chat_history.dart │ │ │ ├── delete_chat_messages_by_date.dart │ │ │ ├── delete_chat_messages_by_sender.dart │ │ │ ├── delete_chat_reply_markup.dart │ │ │ ├── delete_commands.dart │ │ │ ├── delete_default_background.dart │ │ │ ├── delete_file.dart │ │ │ ├── delete_forum_topic.dart │ │ │ ├── delete_language_pack.dart │ │ │ ├── delete_messages.dart │ │ │ ├── delete_passport_element.dart │ │ │ ├── delete_profile_photo.dart │ │ │ ├── delete_quick_reply_shortcut.dart │ │ │ ├── delete_quick_reply_shortcut_messages.dart │ │ │ ├── delete_revoked_chat_invite_link.dart │ │ │ ├── delete_saved_credentials.dart │ │ │ ├── delete_saved_messages_topic_history.dart │ │ │ ├── delete_saved_messages_topic_messages_by_date.dart │ │ │ ├── delete_saved_order_info.dart │ │ │ ├── delete_sticker_set.dart │ │ │ ├── delete_story.dart │ │ │ ├── destroy.dart │ │ │ ├── disable_all_supergroup_usernames.dart │ │ │ ├── disable_proxy.dart │ │ │ ├── discard_call.dart │ │ │ ├── disconnect_all_websites.dart │ │ │ ├── disconnect_website.dart │ │ │ ├── download_file.dart │ │ │ ├── edit_bot_media_preview.dart │ │ │ ├── edit_business_chat_link.dart │ │ │ ├── edit_business_message_caption.dart │ │ │ ├── edit_business_message_live_location.dart │ │ │ ├── edit_business_message_media.dart │ │ │ ├── edit_business_message_reply_markup.dart │ │ │ ├── edit_business_message_text.dart │ │ │ ├── edit_chat_folder.dart │ │ │ ├── edit_chat_folder_invite_link.dart │ │ │ ├── edit_chat_invite_link.dart │ │ │ ├── edit_chat_subscription_invite_link.dart │ │ │ ├── edit_custom_language_pack_info.dart │ │ │ ├── edit_forum_topic.dart │ │ │ ├── edit_inline_message_caption.dart │ │ │ ├── edit_inline_message_live_location.dart │ │ │ ├── edit_inline_message_media.dart │ │ │ ├── edit_inline_message_reply_markup.dart │ │ │ ├── edit_inline_message_text.dart │ │ │ ├── edit_message_caption.dart │ │ │ ├── edit_message_live_location.dart │ │ │ ├── edit_message_media.dart │ │ │ ├── edit_message_reply_markup.dart │ │ │ ├── edit_message_scheduling_state.dart │ │ │ ├── edit_message_text.dart │ │ │ ├── edit_proxy.dart │ │ │ ├── edit_quick_reply_message.dart │ │ │ ├── edit_star_subscription.dart │ │ │ ├── edit_story.dart │ │ │ ├── edit_story_cover.dart │ │ │ ├── enable_proxy.dart │ │ │ ├── end_group_call.dart │ │ │ ├── end_group_call_recording.dart │ │ │ ├── end_group_call_screen_sharing.dart │ │ │ ├── finish_file_generation.dart │ │ │ ├── forward_messages.dart │ │ │ ├── get_account_ttl.dart │ │ │ ├── get_active_sessions.dart │ │ │ ├── get_all_passport_elements.dart │ │ │ ├── get_all_sticker_emojis.dart │ │ │ ├── get_animated_emoji.dart │ │ │ ├── get_application_config.dart │ │ │ ├── get_application_download_link.dart │ │ │ ├── get_archive_chat_list_settings.dart │ │ │ ├── get_archived_sticker_sets.dart │ │ │ ├── get_attached_sticker_sets.dart │ │ │ ├── get_attachment_menu_bot.dart │ │ │ ├── get_authorization_state.dart │ │ │ ├── get_auto_download_settings_presets.dart │ │ │ ├── get_autosave_settings.dart │ │ │ ├── get_available_chat_boost_slots.dart │ │ │ ├── get_available_gifts.dart │ │ │ ├── get_background_url.dart │ │ │ ├── get_bank_card_info.dart │ │ │ ├── get_basic_group.dart │ │ │ ├── get_basic_group_full_info.dart │ │ │ ├── get_blocked_message_senders.dart │ │ │ ├── get_bot_info_description.dart │ │ │ ├── get_bot_info_short_description.dart │ │ │ ├── get_bot_media_preview_info.dart │ │ │ ├── get_bot_media_previews.dart │ │ │ ├── get_bot_name.dart │ │ │ ├── get_business_chat_link_info.dart │ │ │ ├── get_business_chat_links.dart │ │ │ ├── get_business_connected_bot.dart │ │ │ ├── get_business_connection.dart │ │ │ ├── get_business_features.dart │ │ │ ├── get_callback_query_answer.dart │ │ │ ├── get_callback_query_message.dart │ │ │ ├── get_chat.dart │ │ │ ├── get_chat_active_stories.dart │ │ │ ├── get_chat_administrators.dart │ │ │ ├── get_chat_archived_stories.dart │ │ │ ├── get_chat_available_message_senders.dart │ │ │ ├── get_chat_boost_features.dart │ │ │ ├── get_chat_boost_level_features.dart │ │ │ ├── get_chat_boost_link.dart │ │ │ ├── get_chat_boost_link_info.dart │ │ │ ├── get_chat_boost_status.dart │ │ │ ├── get_chat_boosts.dart │ │ │ ├── get_chat_event_log.dart │ │ │ ├── get_chat_folder.dart │ │ │ ├── get_chat_folder_chat_count.dart │ │ │ ├── get_chat_folder_chats_to_leave.dart │ │ │ ├── get_chat_folder_default_icon_name.dart │ │ │ ├── get_chat_folder_invite_links.dart │ │ │ ├── get_chat_folder_new_chats.dart │ │ │ ├── get_chat_history.dart │ │ │ ├── get_chat_invite_link.dart │ │ │ ├── get_chat_invite_link_counts.dart │ │ │ ├── get_chat_invite_link_members.dart │ │ │ ├── get_chat_invite_links.dart │ │ │ ├── get_chat_join_requests.dart │ │ │ ├── get_chat_lists_to_add_chat.dart │ │ │ ├── get_chat_member.dart │ │ │ ├── get_chat_message_by_date.dart │ │ │ ├── get_chat_message_calendar.dart │ │ │ ├── get_chat_message_count.dart │ │ │ ├── get_chat_message_position.dart │ │ │ ├── get_chat_notification_settings_exceptions.dart │ │ │ ├── get_chat_pinned_message.dart │ │ │ ├── get_chat_posted_to_chat_page_stories.dart │ │ │ ├── get_chat_revenue_statistics.dart │ │ │ ├── get_chat_revenue_transactions.dart │ │ │ ├── get_chat_revenue_withdrawal_url.dart │ │ │ ├── get_chat_scheduled_messages.dart │ │ │ ├── get_chat_similar_chat_count.dart │ │ │ ├── get_chat_similar_chats.dart │ │ │ ├── get_chat_sparse_message_positions.dart │ │ │ ├── get_chat_sponsored_messages.dart │ │ │ ├── get_chat_statistics.dart │ │ │ ├── get_chat_story_interactions.dart │ │ │ ├── get_chats.dart │ │ │ ├── get_chats_for_chat_folder_invite_link.dart │ │ │ ├── get_chats_to_send_stories.dart │ │ │ ├── get_close_friends.dart │ │ │ ├── get_collectible_item_info.dart │ │ │ ├── get_commands.dart │ │ │ ├── get_connected_websites.dart │ │ │ ├── get_contacts.dart │ │ │ ├── get_countries.dart │ │ │ ├── get_country_code.dart │ │ │ ├── get_country_flag_emoji.dart │ │ │ ├── get_created_public_chats.dart │ │ │ ├── get_current_state.dart │ │ │ ├── get_current_weather.dart │ │ │ ├── get_custom_emoji_reaction_animations.dart │ │ │ ├── get_custom_emoji_stickers.dart │ │ │ ├── get_database_statistics.dart │ │ │ ├── get_deep_link_info.dart │ │ │ ├── get_default_background_custom_emoji_stickers.dart │ │ │ ├── get_default_chat_emoji_statuses.dart │ │ │ ├── get_default_chat_photo_custom_emoji_stickers.dart │ │ │ ├── get_default_emoji_statuses.dart │ │ │ ├── get_default_message_auto_delete_time.dart │ │ │ ├── get_default_profile_photo_custom_emoji_stickers.dart │ │ │ ├── get_disallowed_chat_emoji_statuses.dart │ │ │ ├── get_emoji_categories.dart │ │ │ ├── get_emoji_reaction.dart │ │ │ ├── get_emoji_suggestions_url.dart │ │ │ ├── get_external_link.dart │ │ │ ├── get_external_link_info.dart │ │ │ ├── get_favorite_stickers.dart │ │ │ ├── get_file.dart │ │ │ ├── get_file_downloaded_prefix_size.dart │ │ │ ├── get_file_extension.dart │ │ │ ├── get_file_mime_type.dart │ │ │ ├── get_forum_topic.dart │ │ │ ├── get_forum_topic_default_icons.dart │ │ │ ├── get_forum_topic_link.dart │ │ │ ├── get_forum_topics.dart │ │ │ ├── get_game_high_scores.dart │ │ │ ├── get_giveaway_info.dart │ │ │ ├── get_greeting_stickers.dart │ │ │ ├── get_grossing_web_app_bots.dart │ │ │ ├── get_group_call.dart │ │ │ ├── get_group_call_invite_link.dart │ │ │ ├── get_group_call_stream_segment.dart │ │ │ ├── get_group_call_streams.dart │ │ │ ├── get_groups_in_common.dart │ │ │ ├── get_imported_contact_count.dart │ │ │ ├── get_inactive_supergroup_chats.dart │ │ │ ├── get_inline_game_high_scores.dart │ │ │ ├── get_inline_query_results.dart │ │ │ ├── get_installed_backgrounds.dart │ │ │ ├── get_installed_sticker_sets.dart │ │ │ ├── get_internal_link.dart │ │ │ ├── get_internal_link_type.dart │ │ │ ├── get_json_string.dart │ │ │ ├── get_json_value.dart │ │ │ ├── get_keyword_emojis.dart │ │ │ ├── get_language_pack_info.dart │ │ │ ├── get_language_pack_string.dart │ │ │ ├── get_language_pack_strings.dart │ │ │ ├── get_link_preview.dart │ │ │ ├── get_localization_target_info.dart │ │ │ ├── get_log_stream.dart │ │ │ ├── get_log_tag_verbosity_level.dart │ │ │ ├── get_log_tags.dart │ │ │ ├── get_log_verbosity_level.dart │ │ │ ├── get_login_url.dart │ │ │ ├── get_login_url_info.dart │ │ │ ├── get_main_web_app.dart │ │ │ ├── get_map_thumbnail_file.dart │ │ │ ├── get_markdown_text.dart │ │ │ ├── get_me.dart │ │ │ ├── get_menu_button.dart │ │ │ ├── get_message.dart │ │ │ ├── get_message_added_reactions.dart │ │ │ ├── get_message_available_reactions.dart │ │ │ ├── get_message_effect.dart │ │ │ ├── get_message_embedding_code.dart │ │ │ ├── get_message_file_type.dart │ │ │ ├── get_message_import_confirmation_text.dart │ │ │ ├── get_message_link.dart │ │ │ ├── get_message_link_info.dart │ │ │ ├── get_message_locally.dart │ │ │ ├── get_message_properties.dart │ │ │ ├── get_message_public_forwards.dart │ │ │ ├── get_message_read_date.dart │ │ │ ├── get_message_statistics.dart │ │ │ ├── get_message_thread.dart │ │ │ ├── get_message_thread_history.dart │ │ │ ├── get_message_viewers.dart │ │ │ ├── get_messages.dart │ │ │ ├── get_network_statistics.dart │ │ │ ├── get_new_chat_privacy_settings.dart │ │ │ ├── get_option.dart │ │ │ ├── get_owned_sticker_sets.dart │ │ │ ├── get_passport_authorization_form.dart │ │ │ ├── get_passport_authorization_form_available_elements.dart │ │ │ ├── get_passport_element.dart │ │ │ ├── get_password_state.dart │ │ │ ├── get_payment_form.dart │ │ │ ├── get_payment_receipt.dart │ │ │ ├── get_phone_number_info.dart │ │ │ ├── get_phone_number_info_sync.dart │ │ │ ├── get_poll_voters.dart │ │ │ ├── get_preferred_country_language.dart │ │ │ ├── get_premium_features.dart │ │ │ ├── get_premium_gift_code_payment_options.dart │ │ │ ├── get_premium_info_sticker.dart │ │ │ ├── get_premium_limit.dart │ │ │ ├── get_premium_state.dart │ │ │ ├── get_premium_sticker_examples.dart │ │ │ ├── get_premium_stickers.dart │ │ │ ├── get_proxies.dart │ │ │ ├── get_proxy_link.dart │ │ │ ├── get_push_receiver_id.dart │ │ │ ├── get_read_date_privacy_settings.dart │ │ │ ├── get_recent_emoji_statuses.dart │ │ │ ├── get_recent_inline_bots.dart │ │ │ ├── get_recent_stickers.dart │ │ │ ├── get_recently_opened_chats.dart │ │ │ ├── get_recently_visited_t_me_urls.dart │ │ │ ├── get_recommended_chat_folders.dart │ │ │ ├── get_recommended_chats.dart │ │ │ ├── get_recovery_email_address.dart │ │ │ ├── get_remote_file.dart │ │ │ ├── get_replied_message.dart │ │ │ ├── get_saved_animations.dart │ │ │ ├── get_saved_messages_tags.dart │ │ │ ├── get_saved_messages_topic_history.dart │ │ │ ├── get_saved_messages_topic_message_by_date.dart │ │ │ ├── get_saved_notification_sound.dart │ │ │ ├── get_saved_notification_sounds.dart │ │ │ ├── get_saved_order_info.dart │ │ │ ├── get_scope_notification_settings.dart │ │ │ ├── get_searched_for_tags.dart │ │ │ ├── get_secret_chat.dart │ │ │ ├── get_star_ad_account_url.dart │ │ │ ├── get_star_gift_payment_options.dart │ │ │ ├── get_star_giveaway_payment_options.dart │ │ │ ├── get_star_payment_options.dart │ │ │ ├── get_star_revenue_statistics.dart │ │ │ ├── get_star_subscriptions.dart │ │ │ ├── get_star_transactions.dart │ │ │ ├── get_star_withdrawal_url.dart │ │ │ ├── get_statistical_graph.dart │ │ │ ├── get_sticker_emojis.dart │ │ │ ├── get_sticker_set.dart │ │ │ ├── get_sticker_set_name.dart │ │ │ ├── get_stickers.dart │ │ │ ├── get_storage_statistics.dart │ │ │ ├── get_storage_statistics_fast.dart │ │ │ ├── get_story.dart │ │ │ ├── get_story_available_reactions.dart │ │ │ ├── get_story_interactions.dart │ │ │ ├── get_story_notification_settings_exceptions.dart │ │ │ ├── get_story_public_forwards.dart │ │ │ ├── get_story_statistics.dart │ │ │ ├── get_suggested_file_name.dart │ │ │ ├── get_suggested_sticker_set_name.dart │ │ │ ├── get_suitable_discussion_chats.dart │ │ │ ├── get_suitable_personal_chats.dart │ │ │ ├── get_supergroup.dart │ │ │ ├── get_supergroup_full_info.dart │ │ │ ├── get_supergroup_members.dart │ │ │ ├── get_support_name.dart │ │ │ ├── get_support_user.dart │ │ │ ├── get_temporary_password_state.dart │ │ │ ├── get_text_entities.dart │ │ │ ├── get_theme_parameters_json_string.dart │ │ │ ├── get_themed_chat_emoji_statuses.dart │ │ │ ├── get_themed_emoji_statuses.dart │ │ │ ├── get_time_zones.dart │ │ │ ├── get_top_chats.dart │ │ │ ├── get_trending_sticker_sets.dart │ │ │ ├── get_user.dart │ │ │ ├── get_user_chat_boosts.dart │ │ │ ├── get_user_full_info.dart │ │ │ ├── get_user_gifts.dart │ │ │ ├── get_user_link.dart │ │ │ ├── get_user_privacy_setting_rules.dart │ │ │ ├── get_user_profile_photos.dart │ │ │ ├── get_user_support_info.dart │ │ │ ├── get_video_chat_available_participants.dart │ │ │ ├── get_video_chat_rtmp_url.dart │ │ │ ├── get_web_app_link_url.dart │ │ │ ├── get_web_app_url.dart │ │ │ ├── get_web_page_instant_view.dart │ │ │ ├── hide_contact_close_birthdays.dart │ │ │ ├── hide_suggested_action.dart │ │ │ ├── import_contacts.dart │ │ │ ├── import_messages.dart │ │ │ ├── invite_group_call_participants.dart │ │ │ ├── join_chat.dart │ │ │ ├── join_chat_by_invite_link.dart │ │ │ ├── join_group_call.dart │ │ │ ├── launch_prepaid_giveaway.dart │ │ │ ├── leave_chat.dart │ │ │ ├── leave_group_call.dart │ │ │ ├── load_active_stories.dart │ │ │ ├── load_chats.dart │ │ │ ├── load_group_call_participants.dart │ │ │ ├── load_quick_reply_shortcut_messages.dart │ │ │ ├── load_quick_reply_shortcuts.dart │ │ │ ├── load_saved_messages_topics.dart │ │ │ ├── log_out.dart │ │ │ ├── open_chat.dart │ │ │ ├── open_chat_similar_chat.dart │ │ │ ├── open_message_content.dart │ │ │ ├── open_story.dart │ │ │ ├── open_web_app.dart │ │ │ ├── optimize_storage.dart │ │ │ ├── parse_markdown.dart │ │ │ ├── parse_text_entities.dart │ │ │ ├── pin_chat_message.dart │ │ │ ├── ping_proxy.dart │ │ │ ├── preliminary_upload_file.dart │ │ │ ├── process_chat_folder_new_chats.dart │ │ │ ├── process_chat_join_request.dart │ │ │ ├── process_chat_join_requests.dart │ │ │ ├── process_push_notification.dart │ │ │ ├── rate_speech_recognition.dart │ │ │ ├── read_all_chat_mentions.dart │ │ │ ├── read_all_chat_reactions.dart │ │ │ ├── read_all_message_thread_mentions.dart │ │ │ ├── read_all_message_thread_reactions.dart │ │ │ ├── read_chat_list.dart │ │ │ ├── read_file_part.dart │ │ │ ├── readd_quick_reply_shortcut_messages.dart │ │ │ ├── recognize_speech.dart │ │ │ ├── recover_authentication_password.dart │ │ │ ├── recover_password.dart │ │ │ ├── refund_star_payment.dart │ │ │ ├── register_device.dart │ │ │ ├── register_user.dart │ │ │ ├── remove_all_files_from_downloads.dart │ │ │ ├── remove_business_connected_bot_from_chat.dart │ │ │ ├── remove_chat_action_bar.dart │ │ │ ├── remove_contacts.dart │ │ │ ├── remove_favorite_sticker.dart │ │ │ ├── remove_file_from_downloads.dart │ │ │ ├── remove_installed_background.dart │ │ │ ├── remove_message_reaction.dart │ │ │ ├── remove_notification.dart │ │ │ ├── remove_notification_group.dart │ │ │ ├── remove_pending_paid_message_reactions.dart │ │ │ ├── remove_proxy.dart │ │ │ ├── remove_recent_hashtag.dart │ │ │ ├── remove_recent_sticker.dart │ │ │ ├── remove_recently_found_chat.dart │ │ │ ├── remove_saved_animation.dart │ │ │ ├── remove_saved_notification_sound.dart │ │ │ ├── remove_searched_for_tag.dart │ │ │ ├── remove_sticker_from_set.dart │ │ │ ├── remove_top_chat.dart │ │ │ ├── reorder_active_usernames.dart │ │ │ ├── reorder_bot_active_usernames.dart │ │ │ ├── reorder_bot_media_previews.dart │ │ │ ├── reorder_chat_folders.dart │ │ │ ├── reorder_installed_sticker_sets.dart │ │ │ ├── reorder_quick_reply_shortcuts.dart │ │ │ ├── reorder_supergroup_active_usernames.dart │ │ │ ├── replace_primary_chat_invite_link.dart │ │ │ ├── replace_sticker_in_set.dart │ │ │ ├── replace_video_chat_rtmp_url.dart │ │ │ ├── report_authentication_code_missing.dart │ │ │ ├── report_chat.dart │ │ │ ├── report_chat_photo.dart │ │ │ ├── report_chat_sponsored_message.dart │ │ │ ├── report_message_reactions.dart │ │ │ ├── report_phone_number_code_missing.dart │ │ │ ├── report_story.dart │ │ │ ├── report_supergroup_anti_spam_false_positive.dart │ │ │ ├── report_supergroup_spam.dart │ │ │ ├── request_authentication_password_recovery.dart │ │ │ ├── request_password_recovery.dart │ │ │ ├── request_qr_code_authentication.dart │ │ │ ├── resend_authentication_code.dart │ │ │ ├── resend_email_address_verification_code.dart │ │ │ ├── resend_login_email_address_code.dart │ │ │ ├── resend_messages.dart │ │ │ ├── resend_phone_number_code.dart │ │ │ ├── resend_recovery_email_address_code.dart │ │ │ ├── reset_all_notification_settings.dart │ │ │ ├── reset_authentication_email_address.dart │ │ │ ├── reset_installed_backgrounds.dart │ │ │ ├── reset_network_statistics.dart │ │ │ ├── reset_password.dart │ │ │ ├── reuse_star_subscription.dart │ │ │ ├── revoke_chat_invite_link.dart │ │ │ ├── revoke_group_call_invite_link.dart │ │ │ ├── save_application_log_event.dart │ │ │ ├── search_background.dart │ │ │ ├── search_call_messages.dart │ │ │ ├── search_chat_members.dart │ │ │ ├── search_chat_messages.dart │ │ │ ├── search_chat_recent_location_messages.dart │ │ │ ├── search_chats.dart │ │ │ ├── search_chats_on_server.dart │ │ │ ├── search_contacts.dart │ │ │ ├── search_emojis.dart │ │ │ ├── search_file_downloads.dart │ │ │ ├── search_hashtags.dart │ │ │ ├── search_installed_sticker_sets.dart │ │ │ ├── search_messages.dart │ │ │ ├── search_outgoing_document_messages.dart │ │ │ ├── search_public_chat.dart │ │ │ ├── search_public_chats.dart │ │ │ ├── search_public_messages_by_tag.dart │ │ │ ├── search_public_stories_by_location.dart │ │ │ ├── search_public_stories_by_tag.dart │ │ │ ├── search_public_stories_by_venue.dart │ │ │ ├── search_quote.dart │ │ │ ├── search_recently_found_chats.dart │ │ │ ├── search_saved_messages.dart │ │ │ ├── search_secret_messages.dart │ │ │ ├── search_sticker_set.dart │ │ │ ├── search_sticker_sets.dart │ │ │ ├── search_stickers.dart │ │ │ ├── search_strings_by_prefix.dart │ │ │ ├── search_user_by_phone_number.dart │ │ │ ├── search_user_by_token.dart │ │ │ ├── search_web_app.dart │ │ │ ├── sell_gift.dart │ │ │ ├── send_authentication_firebase_sms.dart │ │ │ ├── send_bot_start_message.dart │ │ │ ├── send_business_message.dart │ │ │ ├── send_business_message_album.dart │ │ │ ├── send_call_debug_information.dart │ │ │ ├── send_call_log.dart │ │ │ ├── send_call_rating.dart │ │ │ ├── send_call_signaling_data.dart │ │ │ ├── send_chat_action.dart │ │ │ ├── send_custom_request.dart │ │ │ ├── send_email_address_verification_code.dart │ │ │ ├── send_gift.dart │ │ │ ├── send_inline_query_result_message.dart │ │ │ ├── send_message.dart │ │ │ ├── send_message_album.dart │ │ │ ├── send_passport_authorization_form.dart │ │ │ ├── send_payment_form.dart │ │ │ ├── send_phone_number_code.dart │ │ │ ├── send_phone_number_firebase_sms.dart │ │ │ ├── send_quick_reply_shortcut_messages.dart │ │ │ ├── send_story.dart │ │ │ ├── send_web_app_custom_request.dart │ │ │ ├── send_web_app_data.dart │ │ │ ├── set_accent_color.dart │ │ │ ├── set_account_ttl.dart │ │ │ ├── set_alarm.dart │ │ │ ├── set_application_verification_token.dart │ │ │ ├── set_archive_chat_list_settings.dart │ │ │ ├── set_authentication_email_address.dart │ │ │ ├── set_authentication_phone_number.dart │ │ │ ├── set_auto_download_settings.dart │ │ │ ├── set_autosave_settings.dart │ │ │ ├── set_bio.dart │ │ │ ├── set_birthdate.dart │ │ │ ├── set_bot_info_description.dart │ │ │ ├── set_bot_info_short_description.dart │ │ │ ├── set_bot_name.dart │ │ │ ├── set_bot_profile_photo.dart │ │ │ ├── set_bot_updates_status.dart │ │ │ ├── set_business_away_message_settings.dart │ │ │ ├── set_business_connected_bot.dart │ │ │ ├── set_business_greeting_message_settings.dart │ │ │ ├── set_business_location.dart │ │ │ ├── set_business_message_is_pinned.dart │ │ │ ├── set_business_opening_hours.dart │ │ │ ├── set_business_start_page.dart │ │ │ ├── set_chat_accent_color.dart │ │ │ ├── set_chat_active_stories_list.dart │ │ │ ├── set_chat_available_reactions.dart │ │ │ ├── set_chat_background.dart │ │ │ ├── set_chat_client_data.dart │ │ │ ├── set_chat_description.dart │ │ │ ├── set_chat_discussion_group.dart │ │ │ ├── set_chat_draft_message.dart │ │ │ ├── set_chat_emoji_status.dart │ │ │ ├── set_chat_location.dart │ │ │ ├── set_chat_member_status.dart │ │ │ ├── set_chat_message_auto_delete_time.dart │ │ │ ├── set_chat_message_sender.dart │ │ │ ├── set_chat_notification_settings.dart │ │ │ ├── set_chat_permissions.dart │ │ │ ├── set_chat_photo.dart │ │ │ ├── set_chat_pinned_stories.dart │ │ │ ├── set_chat_profile_accent_color.dart │ │ │ ├── set_chat_slow_mode_delay.dart │ │ │ ├── set_chat_theme.dart │ │ │ ├── set_chat_title.dart │ │ │ ├── set_close_friends.dart │ │ │ ├── set_commands.dart │ │ │ ├── set_custom_emoji_sticker_set_thumbnail.dart │ │ │ ├── set_custom_language_pack.dart │ │ │ ├── set_custom_language_pack_string.dart │ │ │ ├── set_database_encryption_key.dart │ │ │ ├── set_default_background.dart │ │ │ ├── set_default_channel_administrator_rights.dart │ │ │ ├── set_default_group_administrator_rights.dart │ │ │ ├── set_default_message_auto_delete_time.dart │ │ │ ├── set_default_reaction_type.dart │ │ │ ├── set_emoji_status.dart │ │ │ ├── set_file_generation_progress.dart │ │ │ ├── set_forum_topic_notification_settings.dart │ │ │ ├── set_game_score.dart │ │ │ ├── set_group_call_participant_is_speaking.dart │ │ │ ├── set_group_call_participant_volume_level.dart │ │ │ ├── set_group_call_title.dart │ │ │ ├── set_inactive_session_ttl.dart │ │ │ ├── set_inline_game_score.dart │ │ │ ├── set_log_stream.dart │ │ │ ├── set_log_tag_verbosity_level.dart │ │ │ ├── set_log_verbosity_level.dart │ │ │ ├── set_login_email_address.dart │ │ │ ├── set_menu_button.dart │ │ │ ├── set_message_fact_check.dart │ │ │ ├── set_message_reactions.dart │ │ │ ├── set_message_sender_block_list.dart │ │ │ ├── set_name.dart │ │ │ ├── set_network_type.dart │ │ │ ├── set_new_chat_privacy_settings.dart │ │ │ ├── set_option.dart │ │ │ ├── set_passport_element.dart │ │ │ ├── set_passport_element_errors.dart │ │ │ ├── set_password.dart │ │ │ ├── set_personal_chat.dart │ │ │ ├── set_pinned_chats.dart │ │ │ ├── set_pinned_forum_topics.dart │ │ │ ├── set_pinned_saved_messages_topics.dart │ │ │ ├── set_poll_answer.dart │ │ │ ├── set_profile_accent_color.dart │ │ │ ├── set_profile_photo.dart │ │ │ ├── set_quick_reply_shortcut_name.dart │ │ │ ├── set_reaction_notification_settings.dart │ │ │ ├── set_read_date_privacy_settings.dart │ │ │ ├── set_recovery_email_address.dart │ │ │ ├── set_saved_messages_tag_label.dart │ │ │ ├── set_scope_notification_settings.dart │ │ │ ├── set_sticker_emojis.dart │ │ │ ├── set_sticker_keywords.dart │ │ │ ├── set_sticker_mask_position.dart │ │ │ ├── set_sticker_position_in_set.dart │ │ │ ├── set_sticker_set_thumbnail.dart │ │ │ ├── set_sticker_set_title.dart │ │ │ ├── set_story_privacy_settings.dart │ │ │ ├── set_story_reaction.dart │ │ │ ├── set_supergroup_custom_emoji_sticker_set.dart │ │ │ ├── set_supergroup_sticker_set.dart │ │ │ ├── set_supergroup_unrestrict_boost_count.dart │ │ │ ├── set_supergroup_username.dart │ │ │ ├── set_tdlib_parameters.dart │ │ │ ├── set_user_personal_profile_photo.dart │ │ │ ├── set_user_privacy_setting_rules.dart │ │ │ ├── set_user_support_info.dart │ │ │ ├── set_username.dart │ │ │ ├── set_video_chat_default_participant.dart │ │ │ ├── share_chat_with_bot.dart │ │ │ ├── share_phone_number.dart │ │ │ ├── share_users_with_bot.dart │ │ │ ├── start_group_call_recording.dart │ │ │ ├── start_group_call_screen_sharing.dart │ │ │ ├── start_scheduled_group_call.dart │ │ │ ├── stop_business_poll.dart │ │ │ ├── stop_poll.dart │ │ │ ├── suggest_user_profile_photo.dart │ │ │ ├── synchronize_language_pack.dart │ │ │ ├── terminate_all_other_sessions.dart │ │ │ ├── terminate_session.dart │ │ │ ├── test_call_bytes.dart │ │ │ ├── test_call_empty.dart │ │ │ ├── test_call_string.dart │ │ │ ├── test_call_vector_int.dart │ │ │ ├── test_call_vector_int_object.dart │ │ │ ├── test_call_vector_string.dart │ │ │ ├── test_call_vector_string_object.dart │ │ │ ├── test_get_difference.dart │ │ │ ├── test_network.dart │ │ │ ├── test_proxy.dart │ │ │ ├── test_return_error.dart │ │ │ ├── test_square_int.dart │ │ │ ├── test_use_update.dart │ │ │ ├── toggle_all_downloads_are_paused.dart │ │ │ ├── toggle_bot_is_added_to_attachment_menu.dart │ │ │ ├── toggle_bot_username_is_active.dart │ │ │ ├── toggle_business_connected_bot_chat_is_paused.dart │ │ │ ├── toggle_chat_default_disable_notification.dart │ │ │ ├── toggle_chat_folder_tags.dart │ │ │ ├── toggle_chat_has_protected_content.dart │ │ │ ├── toggle_chat_is_marked_as_unread.dart │ │ │ ├── toggle_chat_is_pinned.dart │ │ │ ├── toggle_chat_is_translatable.dart │ │ │ ├── toggle_chat_view_as_topics.dart │ │ │ ├── toggle_download_is_paused.dart │ │ │ ├── toggle_forum_topic_is_closed.dart │ │ │ ├── toggle_forum_topic_is_pinned.dart │ │ │ ├── toggle_general_forum_topic_is_hidden.dart │ │ │ ├── toggle_gift_is_saved.dart │ │ │ ├── toggle_group_call_enabled_start_notification.dart │ │ │ ├── toggle_group_call_is_my_video_enabled.dart │ │ │ ├── toggle_group_call_is_my_video_paused.dart │ │ │ ├── toggle_group_call_mute_new_participants.dart │ │ │ ├── toggle_group_call_participant_is_hand_raised.dart │ │ │ ├── toggle_group_call_participant_is_muted.dart │ │ │ ├── toggle_group_call_screen_sharing_is_paused.dart │ │ │ ├── toggle_has_sponsored_messages_enabled.dart │ │ │ ├── toggle_paid_message_reaction_is_anonymous.dart │ │ │ ├── toggle_saved_messages_topic_is_pinned.dart │ │ │ ├── toggle_session_can_accept_calls.dart │ │ │ ├── toggle_session_can_accept_secret_chats.dart │ │ │ ├── toggle_story_is_posted_to_chat_page.dart │ │ │ ├── toggle_supergroup_can_have_sponsored_messages.dart │ │ │ ├── toggle_supergroup_has_aggressive_anti_spam_enabled.dart │ │ │ ├── toggle_supergroup_has_hidden_members.dart │ │ │ ├── toggle_supergroup_is_all_history_available.dart │ │ │ ├── toggle_supergroup_is_broadcast_group.dart │ │ │ ├── toggle_supergroup_is_forum.dart │ │ │ ├── toggle_supergroup_join_by_request.dart │ │ │ ├── toggle_supergroup_join_to_send_messages.dart │ │ │ ├── toggle_supergroup_sign_messages.dart │ │ │ ├── toggle_supergroup_username_is_active.dart │ │ │ ├── toggle_username_is_active.dart │ │ │ ├── transfer_chat_ownership.dart │ │ │ ├── translate_message_text.dart │ │ │ ├── translate_text.dart │ │ │ ├── unpin_all_chat_messages.dart │ │ │ ├── unpin_all_message_thread_messages.dart │ │ │ ├── unpin_chat_message.dart │ │ │ ├── upgrade_basic_group_chat_to_supergroup_chat.dart │ │ │ ├── upload_sticker_file.dart │ │ │ ├── validate_order_info.dart │ │ │ ├── view_messages.dart │ │ │ ├── view_premium_feature.dart │ │ │ ├── view_trending_sticker_sets.dart │ │ │ └── write_generated_file_part.dart │ │ ├── object.dart │ │ ├── objects │ │ │ ├── accent_color.dart │ │ │ ├── account_ttl.dart │ │ │ ├── added_reaction.dart │ │ │ ├── added_reactions.dart │ │ │ ├── address.dart │ │ │ ├── alternative_video.dart │ │ │ ├── animated_chat_photo.dart │ │ │ ├── animated_emoji.dart │ │ │ ├── animation.dart │ │ │ ├── animations.dart │ │ │ ├── archive_chat_list_settings.dart │ │ │ ├── attachment_menu_bot.dart │ │ │ ├── attachment_menu_bot_color.dart │ │ │ ├── audio.dart │ │ │ ├── authentication_code_info.dart │ │ │ ├── authentication_code_type.dart │ │ │ ├── authentication_code_type_call.dart │ │ │ ├── authentication_code_type_firebase_android.dart │ │ │ ├── authentication_code_type_firebase_ios.dart │ │ │ ├── authentication_code_type_flash_call.dart │ │ │ ├── authentication_code_type_fragment.dart │ │ │ ├── authentication_code_type_missed_call.dart │ │ │ ├── authentication_code_type_sms.dart │ │ │ ├── authentication_code_type_sms_phrase.dart │ │ │ ├── authentication_code_type_sms_word.dart │ │ │ ├── authentication_code_type_telegram_message.dart │ │ │ ├── authorization_state.dart │ │ │ ├── authorization_state_closed.dart │ │ │ ├── authorization_state_closing.dart │ │ │ ├── authorization_state_logging_out.dart │ │ │ ├── authorization_state_ready.dart │ │ │ ├── authorization_state_wait_code.dart │ │ │ ├── authorization_state_wait_email_address.dart │ │ │ ├── authorization_state_wait_email_code.dart │ │ │ ├── authorization_state_wait_other_device_confirmation.dart │ │ │ ├── authorization_state_wait_password.dart │ │ │ ├── authorization_state_wait_phone_number.dart │ │ │ ├── authorization_state_wait_registration.dart │ │ │ ├── authorization_state_wait_tdlib_parameters.dart │ │ │ ├── auto_download_settings.dart │ │ │ ├── auto_download_settings_presets.dart │ │ │ ├── autosave_settings.dart │ │ │ ├── autosave_settings_exception.dart │ │ │ ├── autosave_settings_scope.dart │ │ │ ├── autosave_settings_scope_channel_chats.dart │ │ │ ├── autosave_settings_scope_chat.dart │ │ │ ├── autosave_settings_scope_group_chats.dart │ │ │ ├── autosave_settings_scope_private_chats.dart │ │ │ ├── available_reaction.dart │ │ │ ├── available_reactions.dart │ │ │ ├── background.dart │ │ │ ├── background_fill.dart │ │ │ ├── background_fill_freeform_gradient.dart │ │ │ ├── background_fill_gradient.dart │ │ │ ├── background_fill_solid.dart │ │ │ ├── background_type.dart │ │ │ ├── background_type_chat_theme.dart │ │ │ ├── background_type_fill.dart │ │ │ ├── background_type_pattern.dart │ │ │ ├── background_type_wallpaper.dart │ │ │ ├── backgrounds.dart │ │ │ ├── bank_card_action_open_url.dart │ │ │ ├── bank_card_info.dart │ │ │ ├── basic_group.dart │ │ │ ├── basic_group_full_info.dart │ │ │ ├── birthdate.dart │ │ │ ├── block_list.dart │ │ │ ├── block_list_main.dart │ │ │ ├── block_list_stories.dart │ │ │ ├── bot_command.dart │ │ │ ├── bot_command_scope.dart │ │ │ ├── bot_command_scope_all_chat_administrators.dart │ │ │ ├── bot_command_scope_all_group_chats.dart │ │ │ ├── bot_command_scope_all_private_chats.dart │ │ │ ├── bot_command_scope_chat.dart │ │ │ ├── bot_command_scope_chat_administrators.dart │ │ │ ├── bot_command_scope_chat_member.dart │ │ │ ├── bot_command_scope_default.dart │ │ │ ├── bot_commands.dart │ │ │ ├── bot_info.dart │ │ │ ├── bot_media_preview.dart │ │ │ ├── bot_media_preview_info.dart │ │ │ ├── bot_media_previews.dart │ │ │ ├── bot_menu_button.dart │ │ │ ├── bot_transaction_purpose.dart │ │ │ ├── bot_transaction_purpose_invoice_payment.dart │ │ │ ├── bot_transaction_purpose_paid_media.dart │ │ │ ├── bot_write_access_allow_reason.dart │ │ │ ├── bot_write_access_allow_reason_accepted_request.dart │ │ │ ├── bot_write_access_allow_reason_added_to_attachment_menu.dart │ │ │ ├── bot_write_access_allow_reason_connected_website.dart │ │ │ ├── bot_write_access_allow_reason_launched_web_app.dart │ │ │ ├── business_away_message_schedule.dart │ │ │ ├── business_away_message_schedule_always.dart │ │ │ ├── business_away_message_schedule_custom.dart │ │ │ ├── business_away_message_schedule_outside_of_opening_hours.dart │ │ │ ├── business_away_message_settings.dart │ │ │ ├── business_bot_manage_bar.dart │ │ │ ├── business_chat_link.dart │ │ │ ├── business_chat_link_info.dart │ │ │ ├── business_chat_links.dart │ │ │ ├── business_connected_bot.dart │ │ │ ├── business_connection.dart │ │ │ ├── business_feature.dart │ │ │ ├── business_feature_account_links.dart │ │ │ ├── business_feature_away_message.dart │ │ │ ├── business_feature_bots.dart │ │ │ ├── business_feature_chat_folder_tags.dart │ │ │ ├── business_feature_emoji_status.dart │ │ │ ├── business_feature_greeting_message.dart │ │ │ ├── business_feature_location.dart │ │ │ ├── business_feature_opening_hours.dart │ │ │ ├── business_feature_promotion_animation.dart │ │ │ ├── business_feature_quick_replies.dart │ │ │ ├── business_feature_start_page.dart │ │ │ ├── business_feature_upgraded_stories.dart │ │ │ ├── business_features.dart │ │ │ ├── business_greeting_message_settings.dart │ │ │ ├── business_info.dart │ │ │ ├── business_location.dart │ │ │ ├── business_message.dart │ │ │ ├── business_messages.dart │ │ │ ├── business_opening_hours.dart │ │ │ ├── business_opening_hours_interval.dart │ │ │ ├── business_recipients.dart │ │ │ ├── business_start_page.dart │ │ │ ├── call.dart │ │ │ ├── call_discard_reason.dart │ │ │ ├── call_discard_reason_declined.dart │ │ │ ├── call_discard_reason_disconnected.dart │ │ │ ├── call_discard_reason_empty.dart │ │ │ ├── call_discard_reason_hung_up.dart │ │ │ ├── call_discard_reason_missed.dart │ │ │ ├── call_id.dart │ │ │ ├── call_problem.dart │ │ │ ├── call_problem_distorted_speech.dart │ │ │ ├── call_problem_distorted_video.dart │ │ │ ├── call_problem_dropped.dart │ │ │ ├── call_problem_echo.dart │ │ │ ├── call_problem_interruptions.dart │ │ │ ├── call_problem_noise.dart │ │ │ ├── call_problem_pixelated_video.dart │ │ │ ├── call_problem_silent_local.dart │ │ │ ├── call_problem_silent_remote.dart │ │ │ ├── call_protocol.dart │ │ │ ├── call_server.dart │ │ │ ├── call_server_type.dart │ │ │ ├── call_server_type_telegram_reflector.dart │ │ │ ├── call_server_type_webrtc.dart │ │ │ ├── call_state.dart │ │ │ ├── call_state_discarded.dart │ │ │ ├── call_state_error.dart │ │ │ ├── call_state_exchanging_keys.dart │ │ │ ├── call_state_hanging_up.dart │ │ │ ├── call_state_pending.dart │ │ │ ├── call_state_ready.dart │ │ │ ├── callback_query_answer.dart │ │ │ ├── callback_query_payload.dart │ │ │ ├── callback_query_payload_data.dart │ │ │ ├── callback_query_payload_data_with_password.dart │ │ │ ├── callback_query_payload_game.dart │ │ │ ├── can_send_message_to_user_result.dart │ │ │ ├── can_send_message_to_user_result_ok.dart │ │ │ ├── can_send_message_to_user_result_user_is_deleted.dart │ │ │ ├── can_send_message_to_user_result_user_restricts_new_chats.dart │ │ │ ├── can_send_story_result.dart │ │ │ ├── can_send_story_result_active_story_limit_exceeded.dart │ │ │ ├── can_send_story_result_boost_needed.dart │ │ │ ├── can_send_story_result_monthly_limit_exceeded.dart │ │ │ ├── can_send_story_result_ok.dart │ │ │ ├── can_send_story_result_premium_needed.dart │ │ │ ├── can_send_story_result_weekly_limit_exceeded.dart │ │ │ ├── can_transfer_ownership_result.dart │ │ │ ├── can_transfer_ownership_result_ok.dart │ │ │ ├── can_transfer_ownership_result_password_needed.dart │ │ │ ├── can_transfer_ownership_result_password_too_fresh.dart │ │ │ ├── can_transfer_ownership_result_session_too_fresh.dart │ │ │ ├── chat.dart │ │ │ ├── chat_action.dart │ │ │ ├── chat_action_bar.dart │ │ │ ├── chat_action_bar_add_contact.dart │ │ │ ├── chat_action_bar_invite_members.dart │ │ │ ├── chat_action_bar_join_request.dart │ │ │ ├── chat_action_bar_report_add_block.dart │ │ │ ├── chat_action_bar_report_spam.dart │ │ │ ├── chat_action_bar_share_phone_number.dart │ │ │ ├── chat_action_cancel.dart │ │ │ ├── chat_action_choosing_contact.dart │ │ │ ├── chat_action_choosing_location.dart │ │ │ ├── chat_action_choosing_sticker.dart │ │ │ ├── chat_action_recording_video.dart │ │ │ ├── chat_action_recording_video_note.dart │ │ │ ├── chat_action_recording_voice_note.dart │ │ │ ├── chat_action_start_playing_game.dart │ │ │ ├── chat_action_typing.dart │ │ │ ├── chat_action_uploading_document.dart │ │ │ ├── chat_action_uploading_photo.dart │ │ │ ├── chat_action_uploading_video.dart │ │ │ ├── chat_action_uploading_video_note.dart │ │ │ ├── chat_action_uploading_voice_note.dart │ │ │ ├── chat_action_watching_animations.dart │ │ │ ├── chat_active_stories.dart │ │ │ ├── chat_administrator.dart │ │ │ ├── chat_administrator_rights.dart │ │ │ ├── chat_administrators.dart │ │ │ ├── chat_available_reactions.dart │ │ │ ├── chat_available_reactions_all.dart │ │ │ ├── chat_available_reactions_some.dart │ │ │ ├── chat_background.dart │ │ │ ├── chat_boost.dart │ │ │ ├── chat_boost_features.dart │ │ │ ├── chat_boost_level_features.dart │ │ │ ├── chat_boost_link.dart │ │ │ ├── chat_boost_link_info.dart │ │ │ ├── chat_boost_slot.dart │ │ │ ├── chat_boost_slots.dart │ │ │ ├── chat_boost_source.dart │ │ │ ├── chat_boost_source_gift_code.dart │ │ │ ├── chat_boost_source_giveaway.dart │ │ │ ├── chat_boost_source_premium.dart │ │ │ ├── chat_boost_status.dart │ │ │ ├── chat_event.dart │ │ │ ├── chat_event_accent_color_changed.dart │ │ │ ├── chat_event_action.dart │ │ │ ├── chat_event_active_usernames_changed.dart │ │ │ ├── chat_event_available_reactions_changed.dart │ │ │ ├── chat_event_background_changed.dart │ │ │ ├── chat_event_custom_emoji_sticker_set_changed.dart │ │ │ ├── chat_event_description_changed.dart │ │ │ ├── chat_event_emoji_status_changed.dart │ │ │ ├── chat_event_forum_topic_created.dart │ │ │ ├── chat_event_forum_topic_deleted.dart │ │ │ ├── chat_event_forum_topic_edited.dart │ │ │ ├── chat_event_forum_topic_pinned.dart │ │ │ ├── chat_event_forum_topic_toggle_is_closed.dart │ │ │ ├── chat_event_forum_topic_toggle_is_hidden.dart │ │ │ ├── chat_event_has_aggressive_anti_spam_enabled_toggled.dart │ │ │ ├── chat_event_has_protected_content_toggled.dart │ │ │ ├── chat_event_invite_link_deleted.dart │ │ │ ├── chat_event_invite_link_edited.dart │ │ │ ├── chat_event_invite_link_revoked.dart │ │ │ ├── chat_event_invites_toggled.dart │ │ │ ├── chat_event_is_all_history_available_toggled.dart │ │ │ ├── chat_event_is_forum_toggled.dart │ │ │ ├── chat_event_linked_chat_changed.dart │ │ │ ├── chat_event_location_changed.dart │ │ │ ├── chat_event_log_filters.dart │ │ │ ├── chat_event_member_invited.dart │ │ │ ├── chat_event_member_joined.dart │ │ │ ├── chat_event_member_joined_by_invite_link.dart │ │ │ ├── chat_event_member_joined_by_request.dart │ │ │ ├── chat_event_member_left.dart │ │ │ ├── chat_event_member_promoted.dart │ │ │ ├── chat_event_member_restricted.dart │ │ │ ├── chat_event_member_subscription_extended.dart │ │ │ ├── chat_event_message_auto_delete_time_changed.dart │ │ │ ├── chat_event_message_deleted.dart │ │ │ ├── chat_event_message_edited.dart │ │ │ ├── chat_event_message_pinned.dart │ │ │ ├── chat_event_message_unpinned.dart │ │ │ ├── chat_event_permissions_changed.dart │ │ │ ├── chat_event_photo_changed.dart │ │ │ ├── chat_event_poll_stopped.dart │ │ │ ├── chat_event_profile_accent_color_changed.dart │ │ │ ├── chat_event_show_message_sender_toggled.dart │ │ │ ├── chat_event_sign_messages_toggled.dart │ │ │ ├── chat_event_slow_mode_delay_changed.dart │ │ │ ├── chat_event_sticker_set_changed.dart │ │ │ ├── chat_event_title_changed.dart │ │ │ ├── chat_event_username_changed.dart │ │ │ ├── chat_event_video_chat_created.dart │ │ │ ├── chat_event_video_chat_ended.dart │ │ │ ├── chat_event_video_chat_mute_new_participants_toggled.dart │ │ │ ├── chat_event_video_chat_participant_is_muted_toggled.dart │ │ │ ├── chat_event_video_chat_participant_volume_level_changed.dart │ │ │ ├── chat_events.dart │ │ │ ├── chat_folder.dart │ │ │ ├── chat_folder_icon.dart │ │ │ ├── chat_folder_info.dart │ │ │ ├── chat_folder_invite_link.dart │ │ │ ├── chat_folder_invite_link_info.dart │ │ │ ├── chat_folder_invite_links.dart │ │ │ ├── chat_invite_link.dart │ │ │ ├── chat_invite_link_count.dart │ │ │ ├── chat_invite_link_counts.dart │ │ │ ├── chat_invite_link_info.dart │ │ │ ├── chat_invite_link_member.dart │ │ │ ├── chat_invite_link_members.dart │ │ │ ├── chat_invite_link_subscription_info.dart │ │ │ ├── chat_invite_links.dart │ │ │ ├── chat_join_request.dart │ │ │ ├── chat_join_requests.dart │ │ │ ├── chat_join_requests_info.dart │ │ │ ├── chat_list.dart │ │ │ ├── chat_list_archive.dart │ │ │ ├── chat_list_folder.dart │ │ │ ├── chat_list_main.dart │ │ │ ├── chat_lists.dart │ │ │ ├── chat_location.dart │ │ │ ├── chat_member.dart │ │ │ ├── chat_member_status.dart │ │ │ ├── chat_member_status_administrator.dart │ │ │ ├── chat_member_status_banned.dart │ │ │ ├── chat_member_status_creator.dart │ │ │ ├── chat_member_status_left.dart │ │ │ ├── chat_member_status_member.dart │ │ │ ├── chat_member_status_restricted.dart │ │ │ ├── chat_members.dart │ │ │ ├── chat_members_filter.dart │ │ │ ├── chat_members_filter_administrators.dart │ │ │ ├── chat_members_filter_banned.dart │ │ │ ├── chat_members_filter_bots.dart │ │ │ ├── chat_members_filter_contacts.dart │ │ │ ├── chat_members_filter_members.dart │ │ │ ├── chat_members_filter_mention.dart │ │ │ ├── chat_members_filter_restricted.dart │ │ │ ├── chat_message_sender.dart │ │ │ ├── chat_message_senders.dart │ │ │ ├── chat_notification_settings.dart │ │ │ ├── chat_permissions.dart │ │ │ ├── chat_photo.dart │ │ │ ├── chat_photo_info.dart │ │ │ ├── chat_photo_sticker.dart │ │ │ ├── chat_photo_sticker_type.dart │ │ │ ├── chat_photo_sticker_type_custom_emoji.dart │ │ │ ├── chat_photo_sticker_type_regular_or_mask.dart │ │ │ ├── chat_photos.dart │ │ │ ├── chat_position.dart │ │ │ ├── chat_revenue_amount.dart │ │ │ ├── chat_revenue_statistics.dart │ │ │ ├── chat_revenue_transaction.dart │ │ │ ├── chat_revenue_transaction_type.dart │ │ │ ├── chat_revenue_transaction_type_earnings.dart │ │ │ ├── chat_revenue_transaction_type_refund.dart │ │ │ ├── chat_revenue_transaction_type_withdrawal.dart │ │ │ ├── chat_revenue_transactions.dart │ │ │ ├── chat_source.dart │ │ │ ├── chat_source_mtproto_proxy.dart │ │ │ ├── chat_source_public_service_announcement.dart │ │ │ ├── chat_statistics.dart │ │ │ ├── chat_statistics_administrator_actions_info.dart │ │ │ ├── chat_statistics_channel.dart │ │ │ ├── chat_statistics_interaction_info.dart │ │ │ ├── chat_statistics_inviter_info.dart │ │ │ ├── chat_statistics_message_sender_info.dart │ │ │ ├── chat_statistics_object_type.dart │ │ │ ├── chat_statistics_object_type_message.dart │ │ │ ├── chat_statistics_object_type_story.dart │ │ │ ├── chat_statistics_supergroup.dart │ │ │ ├── chat_theme.dart │ │ │ ├── chat_transaction_purpose.dart │ │ │ ├── chat_transaction_purpose_giveaway.dart │ │ │ ├── chat_transaction_purpose_join.dart │ │ │ ├── chat_transaction_purpose_paid_media.dart │ │ │ ├── chat_transaction_purpose_reaction.dart │ │ │ ├── chat_type.dart │ │ │ ├── chat_type_basic_group.dart │ │ │ ├── chat_type_private.dart │ │ │ ├── chat_type_secret.dart │ │ │ ├── chat_type_supergroup.dart │ │ │ ├── chats.dart │ │ │ ├── check_chat_username_result.dart │ │ │ ├── check_chat_username_result_ok.dart │ │ │ ├── check_chat_username_result_public_chats_too_many.dart │ │ │ ├── check_chat_username_result_public_groups_unavailable.dart │ │ │ ├── check_chat_username_result_username_invalid.dart │ │ │ ├── check_chat_username_result_username_occupied.dart │ │ │ ├── check_chat_username_result_username_purchasable.dart │ │ │ ├── check_sticker_set_name_result.dart │ │ │ ├── check_sticker_set_name_result_name_invalid.dart │ │ │ ├── check_sticker_set_name_result_name_occupied.dart │ │ │ ├── check_sticker_set_name_result_ok.dart │ │ │ ├── close_birthday_user.dart │ │ │ ├── closed_vector_path.dart │ │ │ ├── collectible_item_info.dart │ │ │ ├── collectible_item_type.dart │ │ │ ├── collectible_item_type_phone_number.dart │ │ │ ├── collectible_item_type_username.dart │ │ │ ├── connected_website.dart │ │ │ ├── connected_websites.dart │ │ │ ├── connection_state.dart │ │ │ ├── connection_state_connecting.dart │ │ │ ├── connection_state_connecting_to_proxy.dart │ │ │ ├── connection_state_ready.dart │ │ │ ├── connection_state_updating.dart │ │ │ ├── connection_state_waiting_for_network.dart │ │ │ ├── contact.dart │ │ │ ├── count.dart │ │ │ ├── countries.dart │ │ │ ├── country_info.dart │ │ │ ├── created_basic_group_chat.dart │ │ │ ├── current_weather.dart │ │ │ ├── custom_request_result.dart │ │ │ ├── database_statistics.dart │ │ │ ├── date.dart │ │ │ ├── date_range.dart │ │ │ ├── dated_file.dart │ │ │ ├── deep_link_info.dart │ │ │ ├── device_token.dart │ │ │ ├── device_token_apple_push.dart │ │ │ ├── device_token_apple_push_vo_ip.dart │ │ │ ├── device_token_black_berry_push.dart │ │ │ ├── device_token_firebase_cloud_messaging.dart │ │ │ ├── device_token_huawei_push.dart │ │ │ ├── device_token_microsoft_push.dart │ │ │ ├── device_token_microsoft_push_vo_ip.dart │ │ │ ├── device_token_simple_push.dart │ │ │ ├── device_token_tizen_push.dart │ │ │ ├── device_token_ubuntu_push.dart │ │ │ ├── device_token_web_push.dart │ │ │ ├── device_token_windows_push.dart │ │ │ ├── dice_stickers.dart │ │ │ ├── dice_stickers_regular.dart │ │ │ ├── dice_stickers_slot_machine.dart │ │ │ ├── document.dart │ │ │ ├── downloaded_file_counts.dart │ │ │ ├── draft_message.dart │ │ │ ├── email_address_authentication.dart │ │ │ ├── email_address_authentication_apple_id.dart │ │ │ ├── email_address_authentication_code.dart │ │ │ ├── email_address_authentication_code_info.dart │ │ │ ├── email_address_authentication_google_id.dart │ │ │ ├── email_address_reset_state.dart │ │ │ ├── email_address_reset_state_available.dart │ │ │ ├── email_address_reset_state_pending.dart │ │ │ ├── emoji_categories.dart │ │ │ ├── emoji_category.dart │ │ │ ├── emoji_category_source.dart │ │ │ ├── emoji_category_source_premium.dart │ │ │ ├── emoji_category_source_search.dart │ │ │ ├── emoji_category_type.dart │ │ │ ├── emoji_category_type_chat_photo.dart │ │ │ ├── emoji_category_type_default.dart │ │ │ ├── emoji_category_type_emoji_status.dart │ │ │ ├── emoji_category_type_regular_stickers.dart │ │ │ ├── emoji_keyword.dart │ │ │ ├── emoji_keywords.dart │ │ │ ├── emoji_reaction.dart │ │ │ ├── emoji_status.dart │ │ │ ├── emoji_statuses.dart │ │ │ ├── emojis.dart │ │ │ ├── encrypted_credentials.dart │ │ │ ├── encrypted_passport_element.dart │ │ │ ├── fact_check.dart │ │ │ ├── failed_to_add_member.dart │ │ │ ├── failed_to_add_members.dart │ │ │ ├── file.dart │ │ │ ├── file_download.dart │ │ │ ├── file_downloaded_prefix_size.dart │ │ │ ├── file_part.dart │ │ │ ├── file_type.dart │ │ │ ├── file_type_animation.dart │ │ │ ├── file_type_audio.dart │ │ │ ├── file_type_document.dart │ │ │ ├── file_type_none.dart │ │ │ ├── file_type_notification_sound.dart │ │ │ ├── file_type_photo.dart │ │ │ ├── file_type_photo_story.dart │ │ │ ├── file_type_profile_photo.dart │ │ │ ├── file_type_secret.dart │ │ │ ├── file_type_secret_thumbnail.dart │ │ │ ├── file_type_secure.dart │ │ │ ├── file_type_sticker.dart │ │ │ ├── file_type_thumbnail.dart │ │ │ ├── file_type_unknown.dart │ │ │ ├── file_type_video.dart │ │ │ ├── file_type_video_note.dart │ │ │ ├── file_type_video_story.dart │ │ │ ├── file_type_voice_note.dart │ │ │ ├── file_type_wallpaper.dart │ │ │ ├── firebase_authentication_settings.dart │ │ │ ├── firebase_authentication_settings_android.dart │ │ │ ├── firebase_authentication_settings_ios.dart │ │ │ ├── firebase_device_verification_parameters.dart │ │ │ ├── firebase_device_verification_parameters_play_integrity.dart │ │ │ ├── firebase_device_verification_parameters_safety_net.dart │ │ │ ├── formatted_text.dart │ │ │ ├── forum_topic.dart │ │ │ ├── forum_topic_icon.dart │ │ │ ├── forum_topic_info.dart │ │ │ ├── forum_topics.dart │ │ │ ├── forward_source.dart │ │ │ ├── found_chat_boosts.dart │ │ │ ├── found_chat_messages.dart │ │ │ ├── found_file_downloads.dart │ │ │ ├── found_messages.dart │ │ │ ├── found_position.dart │ │ │ ├── found_positions.dart │ │ │ ├── found_stories.dart │ │ │ ├── found_users.dart │ │ │ ├── found_web_app.dart │ │ │ ├── game.dart │ │ │ ├── game_high_score.dart │ │ │ ├── game_high_scores.dart │ │ │ ├── gift.dart │ │ │ ├── gifts.dart │ │ │ ├── giveaway_info.dart │ │ │ ├── giveaway_info_completed.dart │ │ │ ├── giveaway_info_ongoing.dart │ │ │ ├── giveaway_parameters.dart │ │ │ ├── giveaway_participant_status.dart │ │ │ ├── giveaway_participant_status_administrator.dart │ │ │ ├── giveaway_participant_status_already_was_member.dart │ │ │ ├── giveaway_participant_status_disallowed_country.dart │ │ │ ├── giveaway_participant_status_eligible.dart │ │ │ ├── giveaway_participant_status_participating.dart │ │ │ ├── giveaway_prize.dart │ │ │ ├── giveaway_prize_premium.dart │ │ │ ├── giveaway_prize_stars.dart │ │ │ ├── group_call.dart │ │ │ ├── group_call_id.dart │ │ │ ├── group_call_participant.dart │ │ │ ├── group_call_participant_video_info.dart │ │ │ ├── group_call_recent_speaker.dart │ │ │ ├── group_call_stream.dart │ │ │ ├── group_call_streams.dart │ │ │ ├── group_call_video_quality.dart │ │ │ ├── group_call_video_quality_full.dart │ │ │ ├── group_call_video_quality_medium.dart │ │ │ ├── group_call_video_quality_thumbnail.dart │ │ │ ├── group_call_video_source_group.dart │ │ │ ├── hashtags.dart │ │ │ ├── http_url.dart │ │ │ ├── identity_document.dart │ │ │ ├── imported_contacts.dart │ │ │ ├── inline_keyboard_button.dart │ │ │ ├── inline_keyboard_button_type.dart │ │ │ ├── inline_keyboard_button_type_buy.dart │ │ │ ├── inline_keyboard_button_type_callback.dart │ │ │ ├── inline_keyboard_button_type_callback_game.dart │ │ │ ├── inline_keyboard_button_type_callback_with_password.dart │ │ │ ├── inline_keyboard_button_type_copy_text.dart │ │ │ ├── inline_keyboard_button_type_login_url.dart │ │ │ ├── inline_keyboard_button_type_switch_inline.dart │ │ │ ├── inline_keyboard_button_type_url.dart │ │ │ ├── inline_keyboard_button_type_user.dart │ │ │ ├── inline_keyboard_button_type_web_app.dart │ │ │ ├── inline_query_result.dart │ │ │ ├── inline_query_result_animation.dart │ │ │ ├── inline_query_result_article.dart │ │ │ ├── inline_query_result_audio.dart │ │ │ ├── inline_query_result_contact.dart │ │ │ ├── inline_query_result_document.dart │ │ │ ├── inline_query_result_game.dart │ │ │ ├── inline_query_result_location.dart │ │ │ ├── inline_query_result_photo.dart │ │ │ ├── inline_query_result_sticker.dart │ │ │ ├── inline_query_result_venue.dart │ │ │ ├── inline_query_result_video.dart │ │ │ ├── inline_query_result_voice_note.dart │ │ │ ├── inline_query_results.dart │ │ │ ├── inline_query_results_button.dart │ │ │ ├── inline_query_results_button_type.dart │ │ │ ├── inline_query_results_button_type_start_bot.dart │ │ │ ├── inline_query_results_button_type_web_app.dart │ │ │ ├── input_background.dart │ │ │ ├── input_background_local.dart │ │ │ ├── input_background_previous.dart │ │ │ ├── input_background_remote.dart │ │ │ ├── input_business_chat_link.dart │ │ │ ├── input_business_start_page.dart │ │ │ ├── input_chat_photo.dart │ │ │ ├── input_chat_photo_animation.dart │ │ │ ├── input_chat_photo_previous.dart │ │ │ ├── input_chat_photo_static.dart │ │ │ ├── input_chat_photo_sticker.dart │ │ │ ├── input_credentials.dart │ │ │ ├── input_credentials_apple_pay.dart │ │ │ ├── input_credentials_google_pay.dart │ │ │ ├── input_credentials_new.dart │ │ │ ├── input_credentials_saved.dart │ │ │ ├── input_file.dart │ │ │ ├── input_file_generated.dart │ │ │ ├── input_file_id.dart │ │ │ ├── input_file_local.dart │ │ │ ├── input_file_remote.dart │ │ │ ├── input_identity_document.dart │ │ │ ├── input_inline_query_result.dart │ │ │ ├── input_inline_query_result_animation.dart │ │ │ ├── input_inline_query_result_article.dart │ │ │ ├── input_inline_query_result_audio.dart │ │ │ ├── input_inline_query_result_contact.dart │ │ │ ├── input_inline_query_result_document.dart │ │ │ ├── input_inline_query_result_game.dart │ │ │ ├── input_inline_query_result_location.dart │ │ │ ├── input_inline_query_result_photo.dart │ │ │ ├── input_inline_query_result_sticker.dart │ │ │ ├── input_inline_query_result_venue.dart │ │ │ ├── input_inline_query_result_video.dart │ │ │ ├── input_inline_query_result_voice_note.dart │ │ │ ├── input_invoice.dart │ │ │ ├── input_invoice_message.dart │ │ │ ├── input_invoice_name.dart │ │ │ ├── input_invoice_telegram.dart │ │ │ ├── input_message_animation.dart │ │ │ ├── input_message_audio.dart │ │ │ ├── input_message_contact.dart │ │ │ ├── input_message_content.dart │ │ │ ├── input_message_dice.dart │ │ │ ├── input_message_document.dart │ │ │ ├── input_message_forwarded.dart │ │ │ ├── input_message_game.dart │ │ │ ├── input_message_invoice.dart │ │ │ ├── input_message_location.dart │ │ │ ├── input_message_paid_media.dart │ │ │ ├── input_message_photo.dart │ │ │ ├── input_message_poll.dart │ │ │ ├── input_message_reply_to.dart │ │ │ ├── input_message_reply_to_external_message.dart │ │ │ ├── input_message_reply_to_message.dart │ │ │ ├── input_message_reply_to_story.dart │ │ │ ├── input_message_sticker.dart │ │ │ ├── input_message_story.dart │ │ │ ├── input_message_text.dart │ │ │ ├── input_message_venue.dart │ │ │ ├── input_message_video.dart │ │ │ ├── input_message_video_note.dart │ │ │ ├── input_message_voice_note.dart │ │ │ ├── input_paid_media.dart │ │ │ ├── input_paid_media_type.dart │ │ │ ├── input_paid_media_type_photo.dart │ │ │ ├── input_paid_media_type_video.dart │ │ │ ├── input_passport_element.dart │ │ │ ├── input_passport_element_address.dart │ │ │ ├── input_passport_element_bank_statement.dart │ │ │ ├── input_passport_element_driver_license.dart │ │ │ ├── input_passport_element_email_address.dart │ │ │ ├── input_passport_element_error.dart │ │ │ ├── input_passport_element_error_source.dart │ │ │ ├── input_passport_element_error_source_data_field.dart │ │ │ ├── input_passport_element_error_source_file.dart │ │ │ ├── input_passport_element_error_source_files.dart │ │ │ ├── input_passport_element_error_source_front_side.dart │ │ │ ├── input_passport_element_error_source_reverse_side.dart │ │ │ ├── input_passport_element_error_source_selfie.dart │ │ │ ├── input_passport_element_error_source_translation_file.dart │ │ │ ├── input_passport_element_error_source_translation_files.dart │ │ │ ├── input_passport_element_error_source_unspecified.dart │ │ │ ├── input_passport_element_identity_card.dart │ │ │ ├── input_passport_element_internal_passport.dart │ │ │ ├── input_passport_element_passport.dart │ │ │ ├── input_passport_element_passport_registration.dart │ │ │ ├── input_passport_element_personal_details.dart │ │ │ ├── input_passport_element_phone_number.dart │ │ │ ├── input_passport_element_rental_agreement.dart │ │ │ ├── input_passport_element_temporary_registration.dart │ │ │ ├── input_passport_element_utility_bill.dart │ │ │ ├── input_personal_document.dart │ │ │ ├── input_sticker.dart │ │ │ ├── input_story_area.dart │ │ │ ├── input_story_area_type.dart │ │ │ ├── input_story_area_type_found_venue.dart │ │ │ ├── input_story_area_type_link.dart │ │ │ ├── input_story_area_type_location.dart │ │ │ ├── input_story_area_type_message.dart │ │ │ ├── input_story_area_type_previous_venue.dart │ │ │ ├── input_story_area_type_suggested_reaction.dart │ │ │ ├── input_story_area_type_weather.dart │ │ │ ├── input_story_areas.dart │ │ │ ├── input_story_content.dart │ │ │ ├── input_story_content_photo.dart │ │ │ ├── input_story_content_video.dart │ │ │ ├── input_text_quote.dart │ │ │ ├── input_thumbnail.dart │ │ │ ├── internal_link_type.dart │ │ │ ├── internal_link_type_active_sessions.dart │ │ │ ├── internal_link_type_attachment_menu_bot.dart │ │ │ ├── internal_link_type_authentication_code.dart │ │ │ ├── internal_link_type_background.dart │ │ │ ├── internal_link_type_bot_add_to_channel.dart │ │ │ ├── internal_link_type_bot_start.dart │ │ │ ├── internal_link_type_bot_start_in_group.dart │ │ │ ├── internal_link_type_business_chat.dart │ │ │ ├── internal_link_type_buy_stars.dart │ │ │ ├── internal_link_type_change_phone_number.dart │ │ │ ├── internal_link_type_chat_boost.dart │ │ │ ├── internal_link_type_chat_folder_invite.dart │ │ │ ├── internal_link_type_chat_folder_settings.dart │ │ │ ├── internal_link_type_chat_invite.dart │ │ │ ├── internal_link_type_default_message_auto_delete_timer_settings.dart │ │ │ ├── internal_link_type_edit_profile_settings.dart │ │ │ ├── internal_link_type_game.dart │ │ │ ├── internal_link_type_instant_view.dart │ │ │ ├── internal_link_type_invoice.dart │ │ │ ├── internal_link_type_language_pack.dart │ │ │ ├── internal_link_type_language_settings.dart │ │ │ ├── internal_link_type_main_web_app.dart │ │ │ ├── internal_link_type_message.dart │ │ │ ├── internal_link_type_message_draft.dart │ │ │ ├── internal_link_type_passport_data_request.dart │ │ │ ├── internal_link_type_phone_number_confirmation.dart │ │ │ ├── internal_link_type_premium_features.dart │ │ │ ├── internal_link_type_premium_gift.dart │ │ │ ├── internal_link_type_premium_gift_code.dart │ │ │ ├── internal_link_type_privacy_and_security_settings.dart │ │ │ ├── internal_link_type_proxy.dart │ │ │ ├── internal_link_type_public_chat.dart │ │ │ ├── internal_link_type_qr_code_authentication.dart │ │ │ ├── internal_link_type_restore_purchases.dart │ │ │ ├── internal_link_type_settings.dart │ │ │ ├── internal_link_type_sticker_set.dart │ │ │ ├── internal_link_type_story.dart │ │ │ ├── internal_link_type_theme.dart │ │ │ ├── internal_link_type_theme_settings.dart │ │ │ ├── internal_link_type_unknown_deep_link.dart │ │ │ ├── internal_link_type_unsupported_proxy.dart │ │ │ ├── internal_link_type_user_phone_number.dart │ │ │ ├── internal_link_type_user_token.dart │ │ │ ├── internal_link_type_video_chat.dart │ │ │ ├── internal_link_type_web_app.dart │ │ │ ├── invite_link_chat_type.dart │ │ │ ├── invite_link_chat_type_basic_group.dart │ │ │ ├── invite_link_chat_type_channel.dart │ │ │ ├── invite_link_chat_type_supergroup.dart │ │ │ ├── invoice.dart │ │ │ ├── json_object_member.dart │ │ │ ├── json_value.dart │ │ │ ├── json_value_array.dart │ │ │ ├── json_value_boolean.dart │ │ │ ├── json_value_null.dart │ │ │ ├── json_value_number.dart │ │ │ ├── json_value_object.dart │ │ │ ├── json_value_string.dart │ │ │ ├── keyboard_button.dart │ │ │ ├── keyboard_button_type.dart │ │ │ ├── keyboard_button_type_request_chat.dart │ │ │ ├── keyboard_button_type_request_location.dart │ │ │ ├── keyboard_button_type_request_phone_number.dart │ │ │ ├── keyboard_button_type_request_poll.dart │ │ │ ├── keyboard_button_type_request_users.dart │ │ │ ├── keyboard_button_type_text.dart │ │ │ ├── keyboard_button_type_web_app.dart │ │ │ ├── labeled_price_part.dart │ │ │ ├── language_pack_info.dart │ │ │ ├── language_pack_string.dart │ │ │ ├── language_pack_string_value.dart │ │ │ ├── language_pack_string_value_deleted.dart │ │ │ ├── language_pack_string_value_ordinary.dart │ │ │ ├── language_pack_string_value_pluralized.dart │ │ │ ├── language_pack_strings.dart │ │ │ ├── link_preview.dart │ │ │ ├── link_preview_album_media.dart │ │ │ ├── link_preview_album_media_photo.dart │ │ │ ├── link_preview_album_media_video.dart │ │ │ ├── link_preview_options.dart │ │ │ ├── link_preview_type.dart │ │ │ ├── link_preview_type_album.dart │ │ │ ├── link_preview_type_animation.dart │ │ │ ├── link_preview_type_app.dart │ │ │ ├── link_preview_type_article.dart │ │ │ ├── link_preview_type_audio.dart │ │ │ ├── link_preview_type_background.dart │ │ │ ├── link_preview_type_channel_boost.dart │ │ │ ├── link_preview_type_chat.dart │ │ │ ├── link_preview_type_document.dart │ │ │ ├── link_preview_type_embedded_animation_player.dart │ │ │ ├── link_preview_type_embedded_audio_player.dart │ │ │ ├── link_preview_type_embedded_video_player.dart │ │ │ ├── link_preview_type_external_audio.dart │ │ │ ├── link_preview_type_external_video.dart │ │ │ ├── link_preview_type_invoice.dart │ │ │ ├── link_preview_type_message.dart │ │ │ ├── link_preview_type_photo.dart │ │ │ ├── link_preview_type_premium_gift_code.dart │ │ │ ├── link_preview_type_shareable_chat_folder.dart │ │ │ ├── link_preview_type_sticker.dart │ │ │ ├── link_preview_type_sticker_set.dart │ │ │ ├── link_preview_type_story.dart │ │ │ ├── link_preview_type_supergroup_boost.dart │ │ │ ├── link_preview_type_theme.dart │ │ │ ├── link_preview_type_unsupported.dart │ │ │ ├── link_preview_type_user.dart │ │ │ ├── link_preview_type_video.dart │ │ │ ├── link_preview_type_video_chat.dart │ │ │ ├── link_preview_type_video_note.dart │ │ │ ├── link_preview_type_voice_note.dart │ │ │ ├── link_preview_type_web_app.dart │ │ │ ├── local_file.dart │ │ │ ├── localization_target_info.dart │ │ │ ├── location.dart │ │ │ ├── location_address.dart │ │ │ ├── log_stream.dart │ │ │ ├── log_stream_default.dart │ │ │ ├── log_stream_empty.dart │ │ │ ├── log_stream_file.dart │ │ │ ├── log_tags.dart │ │ │ ├── log_verbosity_level.dart │ │ │ ├── login_url_info.dart │ │ │ ├── login_url_info_open.dart │ │ │ ├── login_url_info_request_confirmation.dart │ │ │ ├── main_web_app.dart │ │ │ ├── mask_point.dart │ │ │ ├── mask_point_chin.dart │ │ │ ├── mask_point_eyes.dart │ │ │ ├── mask_point_forehead.dart │ │ │ ├── mask_point_mouth.dart │ │ │ ├── mask_position.dart │ │ │ ├── message.dart │ │ │ ├── message_animated_emoji.dart │ │ │ ├── message_animation.dart │ │ │ ├── message_audio.dart │ │ │ ├── message_auto_delete_time.dart │ │ │ ├── message_basic_group_chat_create.dart │ │ │ ├── message_bot_write_access_allowed.dart │ │ │ ├── message_calendar.dart │ │ │ ├── message_calendar_day.dart │ │ │ ├── message_call.dart │ │ │ ├── message_chat_add_members.dart │ │ │ ├── message_chat_boost.dart │ │ │ ├── message_chat_change_photo.dart │ │ │ ├── message_chat_change_title.dart │ │ │ ├── message_chat_delete_member.dart │ │ │ ├── message_chat_delete_photo.dart │ │ │ ├── message_chat_join_by_link.dart │ │ │ ├── message_chat_join_by_request.dart │ │ │ ├── message_chat_set_background.dart │ │ │ ├── message_chat_set_message_auto_delete_time.dart │ │ │ ├── message_chat_set_theme.dart │ │ │ ├── message_chat_shared.dart │ │ │ ├── message_chat_upgrade_from.dart │ │ │ ├── message_chat_upgrade_to.dart │ │ │ ├── message_contact.dart │ │ │ ├── message_contact_registered.dart │ │ │ ├── message_content.dart │ │ │ ├── message_copy_options.dart │ │ │ ├── message_custom_service_action.dart │ │ │ ├── message_dice.dart │ │ │ ├── message_document.dart │ │ │ ├── message_effect.dart │ │ │ ├── message_effect_type.dart │ │ │ ├── message_effect_type_emoji_reaction.dart │ │ │ ├── message_effect_type_premium_sticker.dart │ │ │ ├── message_expired_photo.dart │ │ │ ├── message_expired_video.dart │ │ │ ├── message_expired_video_note.dart │ │ │ ├── message_expired_voice_note.dart │ │ │ ├── message_file_type.dart │ │ │ ├── message_file_type_group.dart │ │ │ ├── message_file_type_private.dart │ │ │ ├── message_file_type_unknown.dart │ │ │ ├── message_forum_topic_created.dart │ │ │ ├── message_forum_topic_edited.dart │ │ │ ├── message_forum_topic_is_closed_toggled.dart │ │ │ ├── message_forum_topic_is_hidden_toggled.dart │ │ │ ├── message_forward_info.dart │ │ │ ├── message_game.dart │ │ │ ├── message_game_score.dart │ │ │ ├── message_gift.dart │ │ │ ├── message_gifted_premium.dart │ │ │ ├── message_gifted_stars.dart │ │ │ ├── message_giveaway.dart │ │ │ ├── message_giveaway_completed.dart │ │ │ ├── message_giveaway_created.dart │ │ │ ├── message_giveaway_prize_stars.dart │ │ │ ├── message_giveaway_winners.dart │ │ │ ├── message_import_info.dart │ │ │ ├── message_interaction_info.dart │ │ │ ├── message_invite_video_chat_participants.dart │ │ │ ├── message_invoice.dart │ │ │ ├── message_link.dart │ │ │ ├── message_link_info.dart │ │ │ ├── message_location.dart │ │ │ ├── message_origin.dart │ │ │ ├── message_origin_channel.dart │ │ │ ├── message_origin_chat.dart │ │ │ ├── message_origin_hidden_user.dart │ │ │ ├── message_origin_user.dart │ │ │ ├── message_paid_media.dart │ │ │ ├── message_passport_data_received.dart │ │ │ ├── message_passport_data_sent.dart │ │ │ ├── message_payment_refunded.dart │ │ │ ├── message_payment_successful.dart │ │ │ ├── message_payment_successful_bot.dart │ │ │ ├── message_photo.dart │ │ │ ├── message_pin_message.dart │ │ │ ├── message_poll.dart │ │ │ ├── message_position.dart │ │ │ ├── message_positions.dart │ │ │ ├── message_premium_gift_code.dart │ │ │ ├── message_properties.dart │ │ │ ├── message_proximity_alert_triggered.dart │ │ │ ├── message_reaction.dart │ │ │ ├── message_reactions.dart │ │ │ ├── message_read_date.dart │ │ │ ├── message_read_date_my_privacy_restricted.dart │ │ │ ├── message_read_date_read.dart │ │ │ ├── message_read_date_too_old.dart │ │ │ ├── message_read_date_unread.dart │ │ │ ├── message_read_date_user_privacy_restricted.dart │ │ │ ├── message_reply_info.dart │ │ │ ├── message_reply_to.dart │ │ │ ├── message_reply_to_message.dart │ │ │ ├── message_reply_to_story.dart │ │ │ ├── message_scheduling_state.dart │ │ │ ├── message_scheduling_state_send_at_date.dart │ │ │ ├── message_scheduling_state_send_when_online.dart │ │ │ ├── message_scheduling_state_send_when_video_processed.dart │ │ │ ├── message_screenshot_taken.dart │ │ │ ├── message_self_destruct_type.dart │ │ │ ├── message_self_destruct_type_immediately.dart │ │ │ ├── message_self_destruct_type_timer.dart │ │ │ ├── message_send_options.dart │ │ │ ├── message_sender.dart │ │ │ ├── message_sender_chat.dart │ │ │ ├── message_sender_user.dart │ │ │ ├── message_senders.dart │ │ │ ├── message_sending_state.dart │ │ │ ├── message_sending_state_failed.dart │ │ │ ├── message_sending_state_pending.dart │ │ │ ├── message_source.dart │ │ │ ├── message_source_chat_event_log.dart │ │ │ ├── message_source_chat_history.dart │ │ │ ├── message_source_chat_list.dart │ │ │ ├── message_source_forum_topic_history.dart │ │ │ ├── message_source_history_preview.dart │ │ │ ├── message_source_message_thread_history.dart │ │ │ ├── message_source_notification.dart │ │ │ ├── message_source_other.dart │ │ │ ├── message_source_screenshot.dart │ │ │ ├── message_source_search.dart │ │ │ ├── message_sponsor.dart │ │ │ ├── message_statistics.dart │ │ │ ├── message_sticker.dart │ │ │ ├── message_story.dart │ │ │ ├── message_suggest_profile_photo.dart │ │ │ ├── message_supergroup_chat_create.dart │ │ │ ├── message_text.dart │ │ │ ├── message_thread_info.dart │ │ │ ├── message_unsupported.dart │ │ │ ├── message_users_shared.dart │ │ │ ├── message_venue.dart │ │ │ ├── message_video.dart │ │ │ ├── message_video_chat_ended.dart │ │ │ ├── message_video_chat_scheduled.dart │ │ │ ├── message_video_chat_started.dart │ │ │ ├── message_video_note.dart │ │ │ ├── message_viewer.dart │ │ │ ├── message_viewers.dart │ │ │ ├── message_voice_note.dart │ │ │ ├── message_web_app_data_received.dart │ │ │ ├── message_web_app_data_sent.dart │ │ │ ├── messages.dart │ │ │ ├── minithumbnail.dart │ │ │ ├── network_statistics.dart │ │ │ ├── network_statistics_entry.dart │ │ │ ├── network_statistics_entry_call.dart │ │ │ ├── network_statistics_entry_file.dart │ │ │ ├── network_type.dart │ │ │ ├── network_type_mobile.dart │ │ │ ├── network_type_mobile_roaming.dart │ │ │ ├── network_type_none.dart │ │ │ ├── network_type_other.dart │ │ │ ├── network_type_wi_fi.dart │ │ │ ├── new_chat_privacy_settings.dart │ │ │ ├── notification.dart │ │ │ ├── notification_group.dart │ │ │ ├── notification_group_type.dart │ │ │ ├── notification_group_type_calls.dart │ │ │ ├── notification_group_type_mentions.dart │ │ │ ├── notification_group_type_messages.dart │ │ │ ├── notification_group_type_secret_chat.dart │ │ │ ├── notification_settings_scope.dart │ │ │ ├── notification_settings_scope_channel_chats.dart │ │ │ ├── notification_settings_scope_group_chats.dart │ │ │ ├── notification_settings_scope_private_chats.dart │ │ │ ├── notification_sound.dart │ │ │ ├── notification_sounds.dart │ │ │ ├── notification_type.dart │ │ │ ├── notification_type_new_call.dart │ │ │ ├── notification_type_new_message.dart │ │ │ ├── notification_type_new_push_message.dart │ │ │ ├── notification_type_new_secret_chat.dart │ │ │ ├── ok.dart │ │ │ ├── option_value.dart │ │ │ ├── option_value_boolean.dart │ │ │ ├── option_value_empty.dart │ │ │ ├── option_value_integer.dart │ │ │ ├── option_value_string.dart │ │ │ ├── order_info.dart │ │ │ ├── page_block.dart │ │ │ ├── page_block_anchor.dart │ │ │ ├── page_block_animation.dart │ │ │ ├── page_block_audio.dart │ │ │ ├── page_block_author_date.dart │ │ │ ├── page_block_block_quote.dart │ │ │ ├── page_block_caption.dart │ │ │ ├── page_block_chat_link.dart │ │ │ ├── page_block_collage.dart │ │ │ ├── page_block_cover.dart │ │ │ ├── page_block_details.dart │ │ │ ├── page_block_divider.dart │ │ │ ├── page_block_embedded.dart │ │ │ ├── page_block_embedded_post.dart │ │ │ ├── page_block_footer.dart │ │ │ ├── page_block_header.dart │ │ │ ├── page_block_horizontal_alignment.dart │ │ │ ├── page_block_horizontal_alignment_center.dart │ │ │ ├── page_block_horizontal_alignment_left.dart │ │ │ ├── page_block_horizontal_alignment_right.dart │ │ │ ├── page_block_kicker.dart │ │ │ ├── page_block_list.dart │ │ │ ├── page_block_list_item.dart │ │ │ ├── page_block_map.dart │ │ │ ├── page_block_paragraph.dart │ │ │ ├── page_block_photo.dart │ │ │ ├── page_block_preformatted.dart │ │ │ ├── page_block_pull_quote.dart │ │ │ ├── page_block_related_article.dart │ │ │ ├── page_block_related_articles.dart │ │ │ ├── page_block_slideshow.dart │ │ │ ├── page_block_subheader.dart │ │ │ ├── page_block_subtitle.dart │ │ │ ├── page_block_table.dart │ │ │ ├── page_block_table_cell.dart │ │ │ ├── page_block_title.dart │ │ │ ├── page_block_vertical_alignment.dart │ │ │ ├── page_block_vertical_alignment_bottom.dart │ │ │ ├── page_block_vertical_alignment_middle.dart │ │ │ ├── page_block_vertical_alignment_top.dart │ │ │ ├── page_block_video.dart │ │ │ ├── page_block_voice_note.dart │ │ │ ├── paid_media.dart │ │ │ ├── paid_media_photo.dart │ │ │ ├── paid_media_preview.dart │ │ │ ├── paid_media_unsupported.dart │ │ │ ├── paid_media_video.dart │ │ │ ├── paid_reactor.dart │ │ │ ├── passport_authorization_form.dart │ │ │ ├── passport_element.dart │ │ │ ├── passport_element_address.dart │ │ │ ├── passport_element_bank_statement.dart │ │ │ ├── passport_element_driver_license.dart │ │ │ ├── passport_element_email_address.dart │ │ │ ├── passport_element_error.dart │ │ │ ├── passport_element_error_source.dart │ │ │ ├── passport_element_error_source_data_field.dart │ │ │ ├── passport_element_error_source_file.dart │ │ │ ├── passport_element_error_source_files.dart │ │ │ ├── passport_element_error_source_front_side.dart │ │ │ ├── passport_element_error_source_reverse_side.dart │ │ │ ├── passport_element_error_source_selfie.dart │ │ │ ├── passport_element_error_source_translation_file.dart │ │ │ ├── passport_element_error_source_translation_files.dart │ │ │ ├── passport_element_error_source_unspecified.dart │ │ │ ├── passport_element_identity_card.dart │ │ │ ├── passport_element_internal_passport.dart │ │ │ ├── passport_element_passport.dart │ │ │ ├── passport_element_passport_registration.dart │ │ │ ├── passport_element_personal_details.dart │ │ │ ├── passport_element_phone_number.dart │ │ │ ├── passport_element_rental_agreement.dart │ │ │ ├── passport_element_temporary_registration.dart │ │ │ ├── passport_element_type.dart │ │ │ ├── passport_element_type_address.dart │ │ │ ├── passport_element_type_bank_statement.dart │ │ │ ├── passport_element_type_driver_license.dart │ │ │ ├── passport_element_type_email_address.dart │ │ │ ├── passport_element_type_identity_card.dart │ │ │ ├── passport_element_type_internal_passport.dart │ │ │ ├── passport_element_type_passport.dart │ │ │ ├── passport_element_type_passport_registration.dart │ │ │ ├── passport_element_type_personal_details.dart │ │ │ ├── passport_element_type_phone_number.dart │ │ │ ├── passport_element_type_rental_agreement.dart │ │ │ ├── passport_element_type_temporary_registration.dart │ │ │ ├── passport_element_type_utility_bill.dart │ │ │ ├── passport_element_utility_bill.dart │ │ │ ├── passport_elements.dart │ │ │ ├── passport_elements_with_errors.dart │ │ │ ├── passport_required_element.dart │ │ │ ├── passport_suitable_element.dart │ │ │ ├── password_state.dart │ │ │ ├── payment_form.dart │ │ │ ├── payment_form_type.dart │ │ │ ├── payment_form_type_regular.dart │ │ │ ├── payment_form_type_stars.dart │ │ │ ├── payment_option.dart │ │ │ ├── payment_provider.dart │ │ │ ├── payment_provider_other.dart │ │ │ ├── payment_provider_smart_glocal.dart │ │ │ ├── payment_provider_stripe.dart │ │ │ ├── payment_receipt.dart │ │ │ ├── payment_receipt_type.dart │ │ │ ├── payment_receipt_type_regular.dart │ │ │ ├── payment_receipt_type_stars.dart │ │ │ ├── payment_result.dart │ │ │ ├── personal_details.dart │ │ │ ├── personal_document.dart │ │ │ ├── phone_number_authentication_settings.dart │ │ │ ├── phone_number_code_type.dart │ │ │ ├── phone_number_code_type_change.dart │ │ │ ├── phone_number_code_type_confirm_ownership.dart │ │ │ ├── phone_number_code_type_verify.dart │ │ │ ├── phone_number_info.dart │ │ │ ├── photo.dart │ │ │ ├── photo_size.dart │ │ │ ├── point.dart │ │ │ ├── poll.dart │ │ │ ├── poll_option.dart │ │ │ ├── poll_type.dart │ │ │ ├── poll_type_quiz.dart │ │ │ ├── poll_type_regular.dart │ │ │ ├── premium_feature.dart │ │ │ ├── premium_feature_accent_color.dart │ │ │ ├── premium_feature_advanced_chat_management.dart │ │ │ ├── premium_feature_animated_profile_photo.dart │ │ │ ├── premium_feature_app_icons.dart │ │ │ ├── premium_feature_background_for_both.dart │ │ │ ├── premium_feature_business.dart │ │ │ ├── premium_feature_chat_boost.dart │ │ │ ├── premium_feature_custom_emoji.dart │ │ │ ├── premium_feature_disabled_ads.dart │ │ │ ├── premium_feature_emoji_status.dart │ │ │ ├── premium_feature_forum_topic_icon.dart │ │ │ ├── premium_feature_improved_download_speed.dart │ │ │ ├── premium_feature_increased_limits.dart │ │ │ ├── premium_feature_increased_upload_file_size.dart │ │ │ ├── premium_feature_last_seen_times.dart │ │ │ ├── premium_feature_message_effects.dart │ │ │ ├── premium_feature_message_privacy.dart │ │ │ ├── premium_feature_profile_badge.dart │ │ │ ├── premium_feature_promotion_animation.dart │ │ │ ├── premium_feature_real_time_chat_translation.dart │ │ │ ├── premium_feature_saved_messages_tags.dart │ │ │ ├── premium_feature_unique_reactions.dart │ │ │ ├── premium_feature_unique_stickers.dart │ │ │ ├── premium_feature_upgraded_stories.dart │ │ │ ├── premium_feature_voice_recognition.dart │ │ │ ├── premium_features.dart │ │ │ ├── premium_gift_code_info.dart │ │ │ ├── premium_gift_code_payment_option.dart │ │ │ ├── premium_gift_code_payment_options.dart │ │ │ ├── premium_limit.dart │ │ │ ├── premium_limit_type.dart │ │ │ ├── premium_limit_type_active_story_count.dart │ │ │ ├── premium_limit_type_bio_length.dart │ │ │ ├── premium_limit_type_caption_length.dart │ │ │ ├── premium_limit_type_chat_folder_chosen_chat_count.dart │ │ │ ├── premium_limit_type_chat_folder_count.dart │ │ │ ├── premium_limit_type_chat_folder_invite_link_count.dart │ │ │ ├── premium_limit_type_created_public_chat_count.dart │ │ │ ├── premium_limit_type_favorite_sticker_count.dart │ │ │ ├── premium_limit_type_monthly_sent_story_count.dart │ │ │ ├── premium_limit_type_pinned_archived_chat_count.dart │ │ │ ├── premium_limit_type_pinned_chat_count.dart │ │ │ ├── premium_limit_type_pinned_saved_messages_topic_count.dart │ │ │ ├── premium_limit_type_saved_animation_count.dart │ │ │ ├── premium_limit_type_shareable_chat_folder_count.dart │ │ │ ├── premium_limit_type_similar_chat_count.dart │ │ │ ├── premium_limit_type_story_caption_length.dart │ │ │ ├── premium_limit_type_story_suggested_reaction_area_count.dart │ │ │ ├── premium_limit_type_supergroup_count.dart │ │ │ ├── premium_limit_type_weekly_sent_story_count.dart │ │ │ ├── premium_payment_option.dart │ │ │ ├── premium_source.dart │ │ │ ├── premium_source_business_feature.dart │ │ │ ├── premium_source_feature.dart │ │ │ ├── premium_source_limit_exceeded.dart │ │ │ ├── premium_source_link.dart │ │ │ ├── premium_source_settings.dart │ │ │ ├── premium_source_story_feature.dart │ │ │ ├── premium_state.dart │ │ │ ├── premium_state_payment_option.dart │ │ │ ├── premium_story_feature.dart │ │ │ ├── premium_story_feature_custom_expiration_duration.dart │ │ │ ├── premium_story_feature_links_and_formatting.dart │ │ │ ├── premium_story_feature_permanent_views_history.dart │ │ │ ├── premium_story_feature_priority_order.dart │ │ │ ├── premium_story_feature_save_stories.dart │ │ │ ├── premium_story_feature_stealth_mode.dart │ │ │ ├── premium_story_feature_video_quality.dart │ │ │ ├── prepaid_giveaway.dart │ │ │ ├── product_info.dart │ │ │ ├── profile_accent_color.dart │ │ │ ├── profile_accent_colors.dart │ │ │ ├── profile_photo.dart │ │ │ ├── proxies.dart │ │ │ ├── proxy.dart │ │ │ ├── proxy_type.dart │ │ │ ├── proxy_type_http.dart │ │ │ ├── proxy_type_mtproto.dart │ │ │ ├── proxy_type_socks5.dart │ │ │ ├── public_chat_type.dart │ │ │ ├── public_chat_type_has_username.dart │ │ │ ├── public_chat_type_is_location_based.dart │ │ │ ├── public_forward.dart │ │ │ ├── public_forward_message.dart │ │ │ ├── public_forward_story.dart │ │ │ ├── public_forwards.dart │ │ │ ├── push_message_content.dart │ │ │ ├── push_message_content_animation.dart │ │ │ ├── push_message_content_audio.dart │ │ │ ├── push_message_content_basic_group_chat_create.dart │ │ │ ├── push_message_content_chat_add_members.dart │ │ │ ├── push_message_content_chat_change_photo.dart │ │ │ ├── push_message_content_chat_change_title.dart │ │ │ ├── push_message_content_chat_delete_member.dart │ │ │ ├── push_message_content_chat_join_by_link.dart │ │ │ ├── push_message_content_chat_join_by_request.dart │ │ │ ├── push_message_content_chat_set_background.dart │ │ │ ├── push_message_content_chat_set_theme.dart │ │ │ ├── push_message_content_contact.dart │ │ │ ├── push_message_content_contact_registered.dart │ │ │ ├── push_message_content_document.dart │ │ │ ├── push_message_content_game.dart │ │ │ ├── push_message_content_game_score.dart │ │ │ ├── push_message_content_gift.dart │ │ │ ├── push_message_content_giveaway.dart │ │ │ ├── push_message_content_hidden.dart │ │ │ ├── push_message_content_invoice.dart │ │ │ ├── push_message_content_location.dart │ │ │ ├── push_message_content_media_album.dart │ │ │ ├── push_message_content_message_forwards.dart │ │ │ ├── push_message_content_paid_media.dart │ │ │ ├── push_message_content_photo.dart │ │ │ ├── push_message_content_poll.dart │ │ │ ├── push_message_content_premium_gift_code.dart │ │ │ ├── push_message_content_recurring_payment.dart │ │ │ ├── push_message_content_screenshot_taken.dart │ │ │ ├── push_message_content_sticker.dart │ │ │ ├── push_message_content_story.dart │ │ │ ├── push_message_content_suggest_profile_photo.dart │ │ │ ├── push_message_content_text.dart │ │ │ ├── push_message_content_video.dart │ │ │ ├── push_message_content_video_note.dart │ │ │ ├── push_message_content_voice_note.dart │ │ │ ├── push_receiver_id.dart │ │ │ ├── quick_reply_message.dart │ │ │ ├── quick_reply_messages.dart │ │ │ ├── quick_reply_shortcut.dart │ │ │ ├── reaction_notification_settings.dart │ │ │ ├── reaction_notification_source.dart │ │ │ ├── reaction_notification_source_all.dart │ │ │ ├── reaction_notification_source_contacts.dart │ │ │ ├── reaction_notification_source_none.dart │ │ │ ├── reaction_type.dart │ │ │ ├── reaction_type_custom_emoji.dart │ │ │ ├── reaction_type_emoji.dart │ │ │ ├── reaction_type_paid.dart │ │ │ ├── reaction_unavailability_reason.dart │ │ │ ├── reaction_unavailability_reason_anonymous_administrator.dart │ │ │ ├── reaction_unavailability_reason_guest.dart │ │ │ ├── read_date_privacy_settings.dart │ │ │ ├── recommended_chat_folder.dart │ │ │ ├── recommended_chat_folders.dart │ │ │ ├── recovery_email_address.dart │ │ │ ├── remote_file.dart │ │ │ ├── reply_markup.dart │ │ │ ├── reply_markup_force_reply.dart │ │ │ ├── reply_markup_inline_keyboard.dart │ │ │ ├── reply_markup_remove_keyboard.dart │ │ │ ├── reply_markup_show_keyboard.dart │ │ │ ├── report_chat_result.dart │ │ │ ├── report_chat_result_messages_required.dart │ │ │ ├── report_chat_result_ok.dart │ │ │ ├── report_chat_result_option_required.dart │ │ │ ├── report_chat_result_text_required.dart │ │ │ ├── report_chat_sponsored_message_result.dart │ │ │ ├── report_chat_sponsored_message_result_ads_hidden.dart │ │ │ ├── report_chat_sponsored_message_result_failed.dart │ │ │ ├── report_chat_sponsored_message_result_ok.dart │ │ │ ├── report_chat_sponsored_message_result_option_required.dart │ │ │ ├── report_chat_sponsored_message_result_premium_required.dart │ │ │ ├── report_option.dart │ │ │ ├── report_reason.dart │ │ │ ├── report_reason_child_abuse.dart │ │ │ ├── report_reason_copyright.dart │ │ │ ├── report_reason_custom.dart │ │ │ ├── report_reason_fake.dart │ │ │ ├── report_reason_illegal_drugs.dart │ │ │ ├── report_reason_personal_details.dart │ │ │ ├── report_reason_pornography.dart │ │ │ ├── report_reason_spam.dart │ │ │ ├── report_reason_unrelated_location.dart │ │ │ ├── report_reason_violence.dart │ │ │ ├── report_story_result.dart │ │ │ ├── report_story_result_ok.dart │ │ │ ├── report_story_result_option_required.dart │ │ │ ├── report_story_result_text_required.dart │ │ │ ├── resend_code_reason.dart │ │ │ ├── resend_code_reason_user_request.dart │ │ │ ├── resend_code_reason_verification_failed.dart │ │ │ ├── reset_password_result.dart │ │ │ ├── reset_password_result_declined.dart │ │ │ ├── reset_password_result_ok.dart │ │ │ ├── reset_password_result_pending.dart │ │ │ ├── revenue_withdrawal_state.dart │ │ │ ├── revenue_withdrawal_state_failed.dart │ │ │ ├── revenue_withdrawal_state_pending.dart │ │ │ ├── revenue_withdrawal_state_succeeded.dart │ │ │ ├── rich_text.dart │ │ │ ├── rich_text_anchor.dart │ │ │ ├── rich_text_anchor_link.dart │ │ │ ├── rich_text_bold.dart │ │ │ ├── rich_text_email_address.dart │ │ │ ├── rich_text_fixed.dart │ │ │ ├── rich_text_icon.dart │ │ │ ├── rich_text_italic.dart │ │ │ ├── rich_text_marked.dart │ │ │ ├── rich_text_phone_number.dart │ │ │ ├── rich_text_plain.dart │ │ │ ├── rich_text_reference.dart │ │ │ ├── rich_text_strikethrough.dart │ │ │ ├── rich_text_subscript.dart │ │ │ ├── rich_text_superscript.dart │ │ │ ├── rich_text_underline.dart │ │ │ ├── rich_text_url.dart │ │ │ ├── rich_texts.dart │ │ │ ├── rtmp_url.dart │ │ │ ├── saved_credentials.dart │ │ │ ├── saved_messages_tag.dart │ │ │ ├── saved_messages_tags.dart │ │ │ ├── saved_messages_topic.dart │ │ │ ├── saved_messages_topic_type.dart │ │ │ ├── saved_messages_topic_type_author_hidden.dart │ │ │ ├── saved_messages_topic_type_my_notes.dart │ │ │ ├── saved_messages_topic_type_saved_from_chat.dart │ │ │ ├── scope_autosave_settings.dart │ │ │ ├── scope_notification_settings.dart │ │ │ ├── search_messages_filter.dart │ │ │ ├── search_messages_filter_animation.dart │ │ │ ├── search_messages_filter_audio.dart │ │ │ ├── search_messages_filter_chat_photo.dart │ │ │ ├── search_messages_filter_document.dart │ │ │ ├── search_messages_filter_empty.dart │ │ │ ├── search_messages_filter_failed_to_send.dart │ │ │ ├── search_messages_filter_mention.dart │ │ │ ├── search_messages_filter_photo.dart │ │ │ ├── search_messages_filter_photo_and_video.dart │ │ │ ├── search_messages_filter_pinned.dart │ │ │ ├── search_messages_filter_unread_mention.dart │ │ │ ├── search_messages_filter_unread_reaction.dart │ │ │ ├── search_messages_filter_url.dart │ │ │ ├── search_messages_filter_video.dart │ │ │ ├── search_messages_filter_video_note.dart │ │ │ ├── search_messages_filter_voice_and_video_note.dart │ │ │ ├── search_messages_filter_voice_note.dart │ │ │ ├── seconds.dart │ │ │ ├── secret_chat.dart │ │ │ ├── secret_chat_state.dart │ │ │ ├── secret_chat_state_closed.dart │ │ │ ├── secret_chat_state_pending.dart │ │ │ ├── secret_chat_state_ready.dart │ │ │ ├── sent_web_app_message.dart │ │ │ ├── session.dart │ │ │ ├── session_type.dart │ │ │ ├── session_type_android.dart │ │ │ ├── session_type_apple.dart │ │ │ ├── session_type_brave.dart │ │ │ ├── session_type_chrome.dart │ │ │ ├── session_type_edge.dart │ │ │ ├── session_type_firefox.dart │ │ │ ├── session_type_ipad.dart │ │ │ ├── session_type_iphone.dart │ │ │ ├── session_type_linux.dart │ │ │ ├── session_type_mac.dart │ │ │ ├── session_type_opera.dart │ │ │ ├── session_type_safari.dart │ │ │ ├── session_type_ubuntu.dart │ │ │ ├── session_type_unknown.dart │ │ │ ├── session_type_vivaldi.dart │ │ │ ├── session_type_windows.dart │ │ │ ├── session_type_xbox.dart │ │ │ ├── sessions.dart │ │ │ ├── shared_chat.dart │ │ │ ├── shared_user.dart │ │ │ ├── shipping_option.dart │ │ │ ├── speech_recognition_result.dart │ │ │ ├── speech_recognition_result_error.dart │ │ │ ├── speech_recognition_result_pending.dart │ │ │ ├── speech_recognition_result_text.dart │ │ │ ├── sponsored_message.dart │ │ │ ├── sponsored_messages.dart │ │ │ ├── star_giveaway_payment_option.dart │ │ │ ├── star_giveaway_payment_options.dart │ │ │ ├── star_giveaway_winner_option.dart │ │ │ ├── star_payment_option.dart │ │ │ ├── star_payment_options.dart │ │ │ ├── star_revenue_statistics.dart │ │ │ ├── star_revenue_status.dart │ │ │ ├── star_subscription.dart │ │ │ ├── star_subscription_pricing.dart │ │ │ ├── star_subscriptions.dart │ │ │ ├── star_transaction.dart │ │ │ ├── star_transaction_direction.dart │ │ │ ├── star_transaction_direction_incoming.dart │ │ │ ├── star_transaction_direction_outgoing.dart │ │ │ ├── star_transaction_partner.dart │ │ │ ├── star_transaction_partner_app_store.dart │ │ │ ├── star_transaction_partner_bot.dart │ │ │ ├── star_transaction_partner_business.dart │ │ │ ├── star_transaction_partner_chat.dart │ │ │ ├── star_transaction_partner_fragment.dart │ │ │ ├── star_transaction_partner_google_play.dart │ │ │ ├── star_transaction_partner_telegram.dart │ │ │ ├── star_transaction_partner_telegram_ads.dart │ │ │ ├── star_transaction_partner_telegram_api.dart │ │ │ ├── star_transaction_partner_unsupported.dart │ │ │ ├── star_transaction_partner_user.dart │ │ │ ├── star_transactions.dart │ │ │ ├── statistical_graph.dart │ │ │ ├── statistical_graph_async.dart │ │ │ ├── statistical_graph_data.dart │ │ │ ├── statistical_graph_error.dart │ │ │ ├── statistical_value.dart │ │ │ ├── sticker.dart │ │ │ ├── sticker_format.dart │ │ │ ├── sticker_format_tgs.dart │ │ │ ├── sticker_format_webm.dart │ │ │ ├── sticker_format_webp.dart │ │ │ ├── sticker_full_type.dart │ │ │ ├── sticker_full_type_custom_emoji.dart │ │ │ ├── sticker_full_type_mask.dart │ │ │ ├── sticker_full_type_regular.dart │ │ │ ├── sticker_set.dart │ │ │ ├── sticker_set_info.dart │ │ │ ├── sticker_sets.dart │ │ │ ├── sticker_type.dart │ │ │ ├── sticker_type_custom_emoji.dart │ │ │ ├── sticker_type_mask.dart │ │ │ ├── sticker_type_regular.dart │ │ │ ├── stickers.dart │ │ │ ├── storage_statistics.dart │ │ │ ├── storage_statistics_by_chat.dart │ │ │ ├── storage_statistics_by_file_type.dart │ │ │ ├── storage_statistics_fast.dart │ │ │ ├── store_payment_purpose.dart │ │ │ ├── store_payment_purpose_gifted_stars.dart │ │ │ ├── store_payment_purpose_premium_gift_codes.dart │ │ │ ├── store_payment_purpose_premium_giveaway.dart │ │ │ ├── store_payment_purpose_premium_subscription.dart │ │ │ ├── store_payment_purpose_star_giveaway.dart │ │ │ ├── store_payment_purpose_stars.dart │ │ │ ├── stories.dart │ │ │ ├── story.dart │ │ │ ├── story_area.dart │ │ │ ├── story_area_position.dart │ │ │ ├── story_area_type.dart │ │ │ ├── story_area_type_link.dart │ │ │ ├── story_area_type_location.dart │ │ │ ├── story_area_type_message.dart │ │ │ ├── story_area_type_suggested_reaction.dart │ │ │ ├── story_area_type_venue.dart │ │ │ ├── story_area_type_weather.dart │ │ │ ├── story_content.dart │ │ │ ├── story_content_photo.dart │ │ │ ├── story_content_unsupported.dart │ │ │ ├── story_content_video.dart │ │ │ ├── story_full_id.dart │ │ │ ├── story_info.dart │ │ │ ├── story_interaction.dart │ │ │ ├── story_interaction_info.dart │ │ │ ├── story_interaction_type.dart │ │ │ ├── story_interaction_type_forward.dart │ │ │ ├── story_interaction_type_repost.dart │ │ │ ├── story_interaction_type_view.dart │ │ │ ├── story_interactions.dart │ │ │ ├── story_list.dart │ │ │ ├── story_list_archive.dart │ │ │ ├── story_list_main.dart │ │ │ ├── story_origin.dart │ │ │ ├── story_origin_hidden_user.dart │ │ │ ├── story_origin_public_story.dart │ │ │ ├── story_privacy_settings.dart │ │ │ ├── story_privacy_settings_close_friends.dart │ │ │ ├── story_privacy_settings_contacts.dart │ │ │ ├── story_privacy_settings_everyone.dart │ │ │ ├── story_privacy_settings_selected_users.dart │ │ │ ├── story_repost_info.dart │ │ │ ├── story_statistics.dart │ │ │ ├── story_video.dart │ │ │ ├── suggested_action.dart │ │ │ ├── suggested_action_check_password.dart │ │ │ ├── suggested_action_check_phone_number.dart │ │ │ ├── suggested_action_convert_to_broadcast_group.dart │ │ │ ├── suggested_action_enable_archive_and_mute_new_chats.dart │ │ │ ├── suggested_action_extend_premium.dart │ │ │ ├── suggested_action_extend_star_subscriptions.dart │ │ │ ├── suggested_action_gift_premium_for_christmas.dart │ │ │ ├── suggested_action_restore_premium.dart │ │ │ ├── suggested_action_set_birthdate.dart │ │ │ ├── suggested_action_set_password.dart │ │ │ ├── suggested_action_subscribe_to_annual_premium.dart │ │ │ ├── suggested_action_upgrade_premium.dart │ │ │ ├── suggested_action_view_checks_hint.dart │ │ │ ├── supergroup.dart │ │ │ ├── supergroup_full_info.dart │ │ │ ├── supergroup_members_filter.dart │ │ │ ├── supergroup_members_filter_administrators.dart │ │ │ ├── supergroup_members_filter_banned.dart │ │ │ ├── supergroup_members_filter_bots.dart │ │ │ ├── supergroup_members_filter_contacts.dart │ │ │ ├── supergroup_members_filter_mention.dart │ │ │ ├── supergroup_members_filter_recent.dart │ │ │ ├── supergroup_members_filter_restricted.dart │ │ │ ├── supergroup_members_filter_search.dart │ │ │ ├── t_me_url.dart │ │ │ ├── t_me_url_type.dart │ │ │ ├── t_me_url_type_chat_invite.dart │ │ │ ├── t_me_url_type_sticker_set.dart │ │ │ ├── t_me_url_type_supergroup.dart │ │ │ ├── t_me_url_type_user.dart │ │ │ ├── t_me_urls.dart │ │ │ ├── target_chat.dart │ │ │ ├── target_chat_chosen.dart │ │ │ ├── target_chat_current.dart │ │ │ ├── target_chat_internal_link.dart │ │ │ ├── td_error.dart │ │ │ ├── telegram_payment_purpose.dart │ │ │ ├── telegram_payment_purpose_gifted_stars.dart │ │ │ ├── telegram_payment_purpose_join_chat.dart │ │ │ ├── telegram_payment_purpose_premium_gift_codes.dart │ │ │ ├── telegram_payment_purpose_premium_giveaway.dart │ │ │ ├── telegram_payment_purpose_star_giveaway.dart │ │ │ ├── telegram_payment_purpose_stars.dart │ │ │ ├── temporary_password_state.dart │ │ │ ├── terms_of_service.dart │ │ │ ├── test_bytes.dart │ │ │ ├── test_int.dart │ │ │ ├── test_string.dart │ │ │ ├── test_vector_int.dart │ │ │ ├── test_vector_int_object.dart │ │ │ ├── test_vector_string.dart │ │ │ ├── test_vector_string_object.dart │ │ │ ├── text.dart │ │ │ ├── text_entities.dart │ │ │ ├── text_entity.dart │ │ │ ├── text_entity_type.dart │ │ │ ├── text_entity_type_bank_card_number.dart │ │ │ ├── text_entity_type_block_quote.dart │ │ │ ├── text_entity_type_bold.dart │ │ │ ├── text_entity_type_bot_command.dart │ │ │ ├── text_entity_type_cashtag.dart │ │ │ ├── text_entity_type_code.dart │ │ │ ├── text_entity_type_custom_emoji.dart │ │ │ ├── text_entity_type_email_address.dart │ │ │ ├── text_entity_type_expandable_block_quote.dart │ │ │ ├── text_entity_type_hashtag.dart │ │ │ ├── text_entity_type_italic.dart │ │ │ ├── text_entity_type_media_timestamp.dart │ │ │ ├── text_entity_type_mention.dart │ │ │ ├── text_entity_type_mention_name.dart │ │ │ ├── text_entity_type_phone_number.dart │ │ │ ├── text_entity_type_pre.dart │ │ │ ├── text_entity_type_pre_code.dart │ │ │ ├── text_entity_type_spoiler.dart │ │ │ ├── text_entity_type_strikethrough.dart │ │ │ ├── text_entity_type_text_url.dart │ │ │ ├── text_entity_type_underline.dart │ │ │ ├── text_entity_type_url.dart │ │ │ ├── text_parse_mode.dart │ │ │ ├── text_parse_mode_html.dart │ │ │ ├── text_parse_mode_markdown.dart │ │ │ ├── text_quote.dart │ │ │ ├── theme_parameters.dart │ │ │ ├── theme_settings.dart │ │ │ ├── thumbnail.dart │ │ │ ├── thumbnail_format.dart │ │ │ ├── thumbnail_format_gif.dart │ │ │ ├── thumbnail_format_jpeg.dart │ │ │ ├── thumbnail_format_mpeg4.dart │ │ │ ├── thumbnail_format_png.dart │ │ │ ├── thumbnail_format_tgs.dart │ │ │ ├── thumbnail_format_webm.dart │ │ │ ├── thumbnail_format_webp.dart │ │ │ ├── time_zone.dart │ │ │ ├── time_zones.dart │ │ │ ├── top_chat_category.dart │ │ │ ├── top_chat_category_bots.dart │ │ │ ├── top_chat_category_calls.dart │ │ │ ├── top_chat_category_channels.dart │ │ │ ├── top_chat_category_forward_chats.dart │ │ │ ├── top_chat_category_groups.dart │ │ │ ├── top_chat_category_inline_bots.dart │ │ │ ├── top_chat_category_users.dart │ │ │ ├── top_chat_category_web_app_bots.dart │ │ │ ├── trending_sticker_sets.dart │ │ │ ├── unconfirmed_session.dart │ │ │ ├── unread_reaction.dart │ │ │ ├── update.dart │ │ │ ├── update_accent_colors.dart │ │ │ ├── update_active_emoji_reactions.dart │ │ │ ├── update_active_live_location_messages.dart │ │ │ ├── update_active_notifications.dart │ │ │ ├── update_animated_emoji_message_clicked.dart │ │ │ ├── update_animation_search_parameters.dart │ │ │ ├── update_application_verification_required.dart │ │ │ ├── update_attachment_menu_bots.dart │ │ │ ├── update_authorization_state.dart │ │ │ ├── update_autosave_settings.dart │ │ │ ├── update_available_message_effects.dart │ │ │ ├── update_basic_group.dart │ │ │ ├── update_basic_group_full_info.dart │ │ │ ├── update_business_connection.dart │ │ │ ├── update_business_message_edited.dart │ │ │ ├── update_business_messages_deleted.dart │ │ │ ├── update_call.dart │ │ │ ├── update_chat_accent_colors.dart │ │ │ ├── update_chat_action.dart │ │ │ ├── update_chat_action_bar.dart │ │ │ ├── update_chat_active_stories.dart │ │ │ ├── update_chat_added_to_list.dart │ │ │ ├── update_chat_available_reactions.dart │ │ │ ├── update_chat_background.dart │ │ │ ├── update_chat_block_list.dart │ │ │ ├── update_chat_boost.dart │ │ │ ├── update_chat_business_bot_manage_bar.dart │ │ │ ├── update_chat_default_disable_notification.dart │ │ │ ├── update_chat_draft_message.dart │ │ │ ├── update_chat_emoji_status.dart │ │ │ ├── update_chat_folders.dart │ │ │ ├── update_chat_has_protected_content.dart │ │ │ ├── update_chat_has_scheduled_messages.dart │ │ │ ├── update_chat_is_marked_as_unread.dart │ │ │ ├── update_chat_is_translatable.dart │ │ │ ├── update_chat_last_message.dart │ │ │ ├── update_chat_member.dart │ │ │ ├── update_chat_message_auto_delete_time.dart │ │ │ ├── update_chat_message_sender.dart │ │ │ ├── update_chat_notification_settings.dart │ │ │ ├── update_chat_online_member_count.dart │ │ │ ├── update_chat_pending_join_requests.dart │ │ │ ├── update_chat_permissions.dart │ │ │ ├── update_chat_photo.dart │ │ │ ├── update_chat_position.dart │ │ │ ├── update_chat_read_inbox.dart │ │ │ ├── update_chat_read_outbox.dart │ │ │ ├── update_chat_removed_from_list.dart │ │ │ ├── update_chat_reply_markup.dart │ │ │ ├── update_chat_revenue_amount.dart │ │ │ ├── update_chat_theme.dart │ │ │ ├── update_chat_themes.dart │ │ │ ├── update_chat_title.dart │ │ │ ├── update_chat_unread_mention_count.dart │ │ │ ├── update_chat_unread_reaction_count.dart │ │ │ ├── update_chat_video_chat.dart │ │ │ ├── update_chat_view_as_topics.dart │ │ │ ├── update_connection_state.dart │ │ │ ├── update_contact_close_birthdays.dart │ │ │ ├── update_default_background.dart │ │ │ ├── update_default_reaction_type.dart │ │ │ ├── update_delete_messages.dart │ │ │ ├── update_dice_emojis.dart │ │ │ ├── update_favorite_stickers.dart │ │ │ ├── update_file.dart │ │ │ ├── update_file_added_to_downloads.dart │ │ │ ├── update_file_download.dart │ │ │ ├── update_file_downloads.dart │ │ │ ├── update_file_generation_start.dart │ │ │ ├── update_file_generation_stop.dart │ │ │ ├── update_file_removed_from_downloads.dart │ │ │ ├── update_forum_topic_info.dart │ │ │ ├── update_group_call.dart │ │ │ ├── update_group_call_participant.dart │ │ │ ├── update_have_pending_notifications.dart │ │ │ ├── update_installed_sticker_sets.dart │ │ │ ├── update_language_pack_strings.dart │ │ │ ├── update_message_content.dart │ │ │ ├── update_message_content_opened.dart │ │ │ ├── update_message_edited.dart │ │ │ ├── update_message_fact_check.dart │ │ │ ├── update_message_interaction_info.dart │ │ │ ├── update_message_is_pinned.dart │ │ │ ├── update_message_live_location_viewed.dart │ │ │ ├── update_message_mention_read.dart │ │ │ ├── update_message_reaction.dart │ │ │ ├── update_message_reactions.dart │ │ │ ├── update_message_send_acknowledged.dart │ │ │ ├── update_message_send_failed.dart │ │ │ ├── update_message_send_succeeded.dart │ │ │ ├── update_message_unread_reactions.dart │ │ │ ├── update_new_business_callback_query.dart │ │ │ ├── update_new_business_message.dart │ │ │ ├── update_new_call_signaling_data.dart │ │ │ ├── update_new_callback_query.dart │ │ │ ├── update_new_chat.dart │ │ │ ├── update_new_chat_join_request.dart │ │ │ ├── update_new_chosen_inline_result.dart │ │ │ ├── update_new_custom_event.dart │ │ │ ├── update_new_custom_query.dart │ │ │ ├── update_new_inline_callback_query.dart │ │ │ ├── update_new_inline_query.dart │ │ │ ├── update_new_message.dart │ │ │ ├── update_new_pre_checkout_query.dart │ │ │ ├── update_new_shipping_query.dart │ │ │ ├── update_notification.dart │ │ │ ├── update_notification_group.dart │ │ │ ├── update_option.dart │ │ │ ├── update_owned_star_count.dart │ │ │ ├── update_paid_media_purchased.dart │ │ │ ├── update_poll.dart │ │ │ ├── update_poll_answer.dart │ │ │ ├── update_profile_accent_colors.dart │ │ │ ├── update_quick_reply_shortcut.dart │ │ │ ├── update_quick_reply_shortcut_deleted.dart │ │ │ ├── update_quick_reply_shortcut_messages.dart │ │ │ ├── update_quick_reply_shortcuts.dart │ │ │ ├── update_reaction_notification_settings.dart │ │ │ ├── update_recent_stickers.dart │ │ │ ├── update_saved_animations.dart │ │ │ ├── update_saved_messages_tags.dart │ │ │ ├── update_saved_messages_topic.dart │ │ │ ├── update_saved_messages_topic_count.dart │ │ │ ├── update_saved_notification_sounds.dart │ │ │ ├── update_scope_notification_settings.dart │ │ │ ├── update_secret_chat.dart │ │ │ ├── update_service_notification.dart │ │ │ ├── update_speech_recognition_trial.dart │ │ │ ├── update_speed_limit_notification.dart │ │ │ ├── update_star_revenue_status.dart │ │ │ ├── update_sticker_set.dart │ │ │ ├── update_story.dart │ │ │ ├── update_story_deleted.dart │ │ │ ├── update_story_list_chat_count.dart │ │ │ ├── update_story_send_failed.dart │ │ │ ├── update_story_send_succeeded.dart │ │ │ ├── update_story_stealth_mode.dart │ │ │ ├── update_suggested_actions.dart │ │ │ ├── update_supergroup.dart │ │ │ ├── update_supergroup_full_info.dart │ │ │ ├── update_terms_of_service.dart │ │ │ ├── update_trending_sticker_sets.dart │ │ │ ├── update_unconfirmed_session.dart │ │ │ ├── update_unread_chat_count.dart │ │ │ ├── update_unread_message_count.dart │ │ │ ├── update_user.dart │ │ │ ├── update_user_full_info.dart │ │ │ ├── update_user_privacy_setting_rules.dart │ │ │ ├── update_user_status.dart │ │ │ ├── update_video_published.dart │ │ │ ├── update_web_app_message_sent.dart │ │ │ ├── updates.dart │ │ │ ├── user.dart │ │ │ ├── user_full_info.dart │ │ │ ├── user_gift.dart │ │ │ ├── user_gifts.dart │ │ │ ├── user_link.dart │ │ │ ├── user_privacy_setting.dart │ │ │ ├── user_privacy_setting_allow_calls.dart │ │ │ ├── user_privacy_setting_allow_chat_invites.dart │ │ │ ├── user_privacy_setting_allow_finding_by_phone_number.dart │ │ │ ├── user_privacy_setting_allow_peer_to_peer_calls.dart │ │ │ ├── user_privacy_setting_allow_private_voice_and_video_note_messages.dart │ │ │ ├── user_privacy_setting_rule.dart │ │ │ ├── user_privacy_setting_rule_allow_all.dart │ │ │ ├── user_privacy_setting_rule_allow_chat_members.dart │ │ │ ├── user_privacy_setting_rule_allow_contacts.dart │ │ │ ├── user_privacy_setting_rule_allow_premium_users.dart │ │ │ ├── user_privacy_setting_rule_allow_users.dart │ │ │ ├── user_privacy_setting_rule_restrict_all.dart │ │ │ ├── user_privacy_setting_rule_restrict_chat_members.dart │ │ │ ├── user_privacy_setting_rule_restrict_contacts.dart │ │ │ ├── user_privacy_setting_rule_restrict_users.dart │ │ │ ├── user_privacy_setting_rules.dart │ │ │ ├── user_privacy_setting_show_bio.dart │ │ │ ├── user_privacy_setting_show_birthdate.dart │ │ │ ├── user_privacy_setting_show_link_in_forwarded_messages.dart │ │ │ ├── user_privacy_setting_show_phone_number.dart │ │ │ ├── user_privacy_setting_show_profile_photo.dart │ │ │ ├── user_privacy_setting_show_status.dart │ │ │ ├── user_status.dart │ │ │ ├── user_status_empty.dart │ │ │ ├── user_status_last_month.dart │ │ │ ├── user_status_last_week.dart │ │ │ ├── user_status_offline.dart │ │ │ ├── user_status_online.dart │ │ │ ├── user_status_recently.dart │ │ │ ├── user_support_info.dart │ │ │ ├── user_transaction_purpose.dart │ │ │ ├── user_transaction_purpose_gift_sell.dart │ │ │ ├── user_transaction_purpose_gift_send.dart │ │ │ ├── user_transaction_purpose_gifted_stars.dart │ │ │ ├── user_type.dart │ │ │ ├── user_type_bot.dart │ │ │ ├── user_type_deleted.dart │ │ │ ├── user_type_regular.dart │ │ │ ├── user_type_unknown.dart │ │ │ ├── usernames.dart │ │ │ ├── users.dart │ │ │ ├── validated_order_info.dart │ │ │ ├── vector_path_command.dart │ │ │ ├── vector_path_command_cubic_bezier_curve.dart │ │ │ ├── vector_path_command_line.dart │ │ │ ├── venue.dart │ │ │ ├── video.dart │ │ │ ├── video_chat.dart │ │ │ ├── video_note.dart │ │ │ ├── voice_note.dart │ │ │ ├── web_app.dart │ │ │ ├── web_app_info.dart │ │ │ └── web_page_instant_view.dart │ │ └── tdapi.dart │ └── client │ │ ├── client.dart │ │ ├── client_impl.dart │ │ ├── platform │ │ ├── io │ │ │ ├── io_platform.dart │ │ │ ├── json_bindings.dart │ │ │ ├── receive_isolate_data.dart │ │ │ └── receive_isolate_endpoint.dart │ │ ├── platform.dart │ │ └── web │ │ │ └── web_platform.dart │ │ ├── td_error.dart │ │ └── td_function_exception.dart ├── td_api.dart └── td_client.dart └── pubspec.yaml /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | *.jugger.dart 44 | *.freezed.dart 45 | /android 46 | /macos 47 | /ios 48 | /web 49 | /windows 50 | .metadata 51 | /test -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: example 2 | publish_to: 'none' 3 | 4 | environment: 5 | sdk: ">=2.12.0 <3.0.0" 6 | flutter: ">=1.17.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | path_provider: 2.0.9 12 | tdlib: 13 | path: ../ -------------------------------------------------------------------------------- /lib/src/api/function.dart: -------------------------------------------------------------------------------- 1 | abstract class TdFunction { 2 | const TdFunction(); 3 | 4 | Map toJson(); 5 | 6 | String getConstructor(); 7 | } 8 | -------------------------------------------------------------------------------- /lib/src/api/functions/apply_premium_gift_code.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Applies a Telegram Premium gift code 6 | /// Returns [Ok] 7 | @immutable 8 | class ApplyPremiumGiftCode extends TdFunction { 9 | const ApplyPremiumGiftCode({ 10 | required this.code, 11 | }); 12 | 13 | /// [code] The code to apply 14 | final String code; 15 | 16 | static const String constructor = 'applyPremiumGiftCode'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'code': code, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/can_transfer_ownership.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Checks whether the current session can be used to transfer a chat 6 | /// ownership to another user 7 | /// Returns [CanTransferOwnershipResult] 8 | @immutable 9 | class CanTransferOwnership extends TdFunction { 10 | const CanTransferOwnership(); 11 | 12 | static const String constructor = 'canTransferOwnership'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/cancel_password_reset.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Cancels reset of 2-step verification password. The method can be called if 6 | /// passwordState.pending_reset_date 7 | /// Returns [Ok] 8 | @immutable 9 | class CancelPasswordReset extends TdFunction { 10 | const CancelPasswordReset(); 11 | 12 | static const String constructor = 'cancelPasswordReset'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/cancel_recovery_email_address_verification.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Cancels verification of the 2-step verification recovery email address 6 | /// Returns [PasswordState] 7 | @immutable 8 | class CancelRecoveryEmailAddressVerification extends TdFunction { 9 | const CancelRecoveryEmailAddressVerification(); 10 | 11 | static const String constructor = 'cancelRecoveryEmailAddressVerification'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/check_premium_gift_code.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Return information about a Telegram Premium gift code 6 | /// Returns [PremiumGiftCodeInfo] 7 | @immutable 8 | class CheckPremiumGiftCode extends TdFunction { 9 | const CheckPremiumGiftCode({ 10 | required this.code, 11 | }); 12 | 13 | /// [code] The code to check 14 | final String code; 15 | 16 | static const String constructor = 'checkPremiumGiftCode'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'code': code, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/check_sticker_set_name.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Checks whether a name can be used for a new sticker set 6 | /// Returns [CheckStickerSetNameResult] 7 | @immutable 8 | class CheckStickerSetName extends TdFunction { 9 | const CheckStickerSetName({ 10 | required this.name, 11 | }); 12 | 13 | /// [name] Name to be checked 14 | final String name; 15 | 16 | static const String constructor = 'checkStickerSetName'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'name': name, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/clear_autosave_settings_exceptions.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Clears the list of all autosave settings exceptions. The method is 6 | /// guaranteed to work only after at least one call to getAutosaveSettings 7 | /// Returns [Ok] 8 | @immutable 9 | class ClearAutosaveSettingsExceptions extends TdFunction { 10 | const ClearAutosaveSettingsExceptions(); 11 | 12 | static const String constructor = 'clearAutosaveSettingsExceptions'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/clear_imported_contacts.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Clears all imported contacts, contact list remains unchanged 6 | /// Returns [Ok] 7 | @immutable 8 | class ClearImportedContacts extends TdFunction { 9 | const ClearImportedContacts(); 10 | 11 | static const String constructor = 'clearImportedContacts'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/clear_recent_emoji_statuses.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Clears the list of recently used emoji statuses for self status 6 | /// Returns [Ok] 7 | @immutable 8 | class ClearRecentEmojiStatuses extends TdFunction { 9 | const ClearRecentEmojiStatuses(); 10 | 11 | static const String constructor = 'clearRecentEmojiStatuses'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/clear_recent_reactions.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Clears the list of recently used reactions 6 | /// Returns [Ok] 7 | @immutable 8 | class ClearRecentReactions extends TdFunction { 9 | const ClearRecentReactions(); 10 | 11 | static const String constructor = 'clearRecentReactions'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/clear_recently_found_chats.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Clears the list of recently found chats 6 | /// Returns [Ok] 7 | @immutable 8 | class ClearRecentlyFoundChats extends TdFunction { 9 | const ClearRecentlyFoundChats(); 10 | 11 | static const String constructor = 'clearRecentlyFoundChats'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/click_premium_subscription_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Informs TDLib that the user clicked Premium subscription button on the 6 | /// Premium features screen 7 | /// Returns [Ok] 8 | @immutable 9 | class ClickPremiumSubscriptionButton extends TdFunction { 10 | const ClickPremiumSubscriptionButton(); 11 | 12 | static const String constructor = 'clickPremiumSubscriptionButton'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/close.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Closes the TDLib instance. All databases will be flushed to disk and 6 | /// properly closed. After the close completes, updateAuthorizationState with 7 | /// authorizationStateClosed will be sent. Can be called before initialization 8 | /// Returns [Ok] 9 | @immutable 10 | class Close extends TdFunction { 11 | const Close(); 12 | 13 | static const String constructor = 'close'; 14 | 15 | @override 16 | String getConstructor() => constructor; 17 | 18 | @override 19 | Map toJson() => { 20 | '@type': constructor, 21 | }; 22 | 23 | @override 24 | bool operator ==(Object other) => overriddenEquality(other); 25 | 26 | @override 27 | int get hashCode => overriddenHashCode; 28 | } 29 | -------------------------------------------------------------------------------- /lib/src/api/functions/close_chat.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Informs TDLib that the chat is closed by the user. Many useful activities 6 | /// depend on the chat being opened or closed 7 | /// Returns [Ok] 8 | @immutable 9 | class CloseChat extends TdFunction { 10 | const CloseChat({ 11 | required this.chatId, 12 | }); 13 | 14 | /// [chatId] Chat identifier 15 | final int chatId; 16 | 17 | static const String constructor = 'closeChat'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'chat_id': chatId, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/confirm_session.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Confirms an unconfirmed session of the current user from another device 6 | /// Returns [Ok] 7 | @immutable 8 | class ConfirmSession extends TdFunction { 9 | const ConfirmSession({ 10 | required this.sessionId, 11 | }); 12 | 13 | /// [sessionId] Session identifier 14 | final int sessionId; 15 | 16 | static const String constructor = 'confirmSession'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'session_id': sessionId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/create_new_secret_chat.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Creates a new secret chat. Returns the newly created chat 6 | /// Returns [Chat] 7 | @immutable 8 | class CreateNewSecretChat extends TdFunction { 9 | const CreateNewSecretChat({ 10 | required this.userId, 11 | }); 12 | 13 | /// [userId] Identifier of the target user 14 | final int userId; 15 | 16 | static const String constructor = 'createNewSecretChat'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'user_id': userId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/create_secret_chat.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns an existing chat corresponding to a known secret chat 6 | /// Returns [Chat] 7 | @immutable 8 | class CreateSecretChat extends TdFunction { 9 | const CreateSecretChat({ 10 | required this.secretChatId, 11 | }); 12 | 13 | /// [secretChatId] Secret chat identifier 14 | final int secretChatId; 15 | 16 | static const String constructor = 'createSecretChat'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'secret_chat_id': secretChatId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/delete_all_call_messages.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Deletes all call messages 6 | /// Returns [Ok] 7 | @immutable 8 | class DeleteAllCallMessages extends TdFunction { 9 | const DeleteAllCallMessages({ 10 | required this.revoke, 11 | }); 12 | 13 | /// [revoke] Pass true to delete the messages for all users 14 | final bool revoke; 15 | 16 | static const String constructor = 'deleteAllCallMessages'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'revoke': revoke, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/delete_business_chat_link.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Deletes a business chat link of the current account 6 | /// Returns [Ok] 7 | @immutable 8 | class DeleteBusinessChatLink extends TdFunction { 9 | const DeleteBusinessChatLink({ 10 | required this.link, 11 | }); 12 | 13 | /// [link] The link to delete 14 | final String link; 15 | 16 | static const String constructor = 'deleteBusinessChatLink'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'link': link, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/delete_file.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Deletes a file from the TDLib file cache 6 | /// Returns [Ok] 7 | @immutable 8 | class DeleteFile extends TdFunction { 9 | const DeleteFile({ 10 | required this.fileId, 11 | }); 12 | 13 | /// [fileId] Identifier of the file to delete 14 | final int fileId; 15 | 16 | static const String constructor = 'deleteFile'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'file_id': fileId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/delete_passport_element.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Deletes a Telegram Passport element 6 | /// Returns [Ok] 7 | @immutable 8 | class DeletePassportElement extends TdFunction { 9 | const DeletePassportElement({ 10 | required this.type, 11 | }); 12 | 13 | /// [type] Element type 14 | final PassportElementType type; 15 | 16 | static const String constructor = 'deletePassportElement'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'type': type.toJson(), 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/delete_profile_photo.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Deletes a profile photo 6 | /// Returns [Ok] 7 | @immutable 8 | class DeleteProfilePhoto extends TdFunction { 9 | const DeleteProfilePhoto({ 10 | required this.profilePhotoId, 11 | }); 12 | 13 | /// [profilePhotoId] Identifier of the profile photo to delete 14 | final int profilePhotoId; 15 | 16 | static const String constructor = 'deleteProfilePhoto'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'profile_photo_id': profilePhotoId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/delete_saved_credentials.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Deletes saved credentials for all payment provider bots 6 | /// Returns [Ok] 7 | @immutable 8 | class DeleteSavedCredentials extends TdFunction { 9 | const DeleteSavedCredentials(); 10 | 11 | static const String constructor = 'deleteSavedCredentials'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/delete_saved_order_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Deletes saved order information 6 | /// Returns [Ok] 7 | @immutable 8 | class DeleteSavedOrderInfo extends TdFunction { 9 | const DeleteSavedOrderInfo(); 10 | 11 | static const String constructor = 'deleteSavedOrderInfo'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/delete_sticker_set.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Completely deletes a sticker set 6 | /// Returns [Ok] 7 | @immutable 8 | class DeleteStickerSet extends TdFunction { 9 | const DeleteStickerSet({ 10 | required this.name, 11 | }); 12 | 13 | /// [name] Sticker set name. The sticker set must be owned by the current user 14 | final String name; 15 | 16 | static const String constructor = 'deleteStickerSet'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'name': name, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/disable_proxy.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Disables the currently enabled proxy. Can be called before authorization 6 | /// Returns [Ok] 7 | @immutable 8 | class DisableProxy extends TdFunction { 9 | const DisableProxy(); 10 | 11 | static const String constructor = 'disableProxy'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/disconnect_all_websites.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Disconnects all websites from the current user's Telegram account 6 | /// Returns [Ok] 7 | @immutable 8 | class DisconnectAllWebsites extends TdFunction { 9 | const DisconnectAllWebsites(); 10 | 11 | static const String constructor = 'disconnectAllWebsites'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/disconnect_website.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Disconnects website from the current user's Telegram account 6 | /// Returns [Ok] 7 | @immutable 8 | class DisconnectWebsite extends TdFunction { 9 | const DisconnectWebsite({ 10 | required this.websiteId, 11 | }); 12 | 13 | /// [websiteId] Website identifier 14 | final int websiteId; 15 | 16 | static const String constructor = 'disconnectWebsite'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'website_id': websiteId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/enable_proxy.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Enables a proxy. Only one proxy can be enabled at a time. Can be called 6 | /// before authorization 7 | /// Returns [Ok] 8 | @immutable 9 | class EnableProxy extends TdFunction { 10 | const EnableProxy({ 11 | required this.proxyId, 12 | }); 13 | 14 | /// [proxyId] Proxy identifier 15 | final int proxyId; 16 | 17 | static const String constructor = 'enableProxy'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'proxy_id': proxyId, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/end_group_call.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Ends a group call. Requires groupCall.can_be_managed 6 | /// Returns [Ok] 7 | @immutable 8 | class EndGroupCall extends TdFunction { 9 | const EndGroupCall({ 10 | required this.groupCallId, 11 | }); 12 | 13 | /// [groupCallId] Group call identifier 14 | final int groupCallId; 15 | 16 | static const String constructor = 'endGroupCall'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'group_call_id': groupCallId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_account_ttl.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the period of inactivity after which the account of the current 6 | /// user will automatically be deleted 7 | /// Returns [AccountTtl] 8 | @immutable 9 | class GetAccountTtl extends TdFunction { 10 | const GetAccountTtl(); 11 | 12 | static const String constructor = 'getAccountTtl'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_active_sessions.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns all active sessions of the current user 6 | /// Returns [Sessions] 7 | @immutable 8 | class GetActiveSessions extends TdFunction { 9 | const GetActiveSessions(); 10 | 11 | static const String constructor = 'getActiveSessions'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_application_config.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns application config, provided by the server. Can be called before 6 | /// authorization 7 | /// Returns [JsonValue] 8 | @immutable 9 | class GetApplicationConfig extends TdFunction { 10 | const GetApplicationConfig(); 11 | 12 | static const String constructor = 'getApplicationConfig'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_application_download_link.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the link for downloading official Telegram application to be used 6 | /// when the current user invites friends to Telegram 7 | /// Returns [HttpUrl] 8 | @immutable 9 | class GetApplicationDownloadLink extends TdFunction { 10 | const GetApplicationDownloadLink(); 11 | 12 | static const String constructor = 'getApplicationDownloadLink'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_archive_chat_list_settings.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns settings for automatic moving of chats to and from the Archive 6 | /// chat lists 7 | /// Returns [ArchiveChatListSettings] 8 | @immutable 9 | class GetArchiveChatListSettings extends TdFunction { 10 | const GetArchiveChatListSettings(); 11 | 12 | static const String constructor = 'getArchiveChatListSettings'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_auto_download_settings_presets.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns auto-download settings presets for the current user 6 | /// Returns [AutoDownloadSettingsPresets] 7 | @immutable 8 | class GetAutoDownloadSettingsPresets extends TdFunction { 9 | const GetAutoDownloadSettingsPresets(); 10 | 11 | static const String constructor = 'getAutoDownloadSettingsPresets'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_autosave_settings.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns autosave settings for the current user 6 | /// Returns [AutosaveSettings] 7 | @immutable 8 | class GetAutosaveSettings extends TdFunction { 9 | const GetAutosaveSettings(); 10 | 11 | static const String constructor = 'getAutosaveSettings'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_available_chat_boost_slots.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the list of available chat boost slots for the current user 6 | /// Returns [ChatBoostSlots] 7 | @immutable 8 | class GetAvailableChatBoostSlots extends TdFunction { 9 | const GetAvailableChatBoostSlots(); 10 | 11 | static const String constructor = 'getAvailableChatBoostSlots'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_available_gifts.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns gifts that can be sent to other users 6 | /// Returns [Gifts] 7 | @immutable 8 | class GetAvailableGifts extends TdFunction { 9 | const GetAvailableGifts(); 10 | 11 | static const String constructor = 'getAvailableGifts'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_bank_card_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about a bank card 6 | /// Returns [BankCardInfo] 7 | @immutable 8 | class GetBankCardInfo extends TdFunction { 9 | const GetBankCardInfo({ 10 | required this.bankCardNumber, 11 | }); 12 | 13 | /// [bankCardNumber] The bank card number 14 | final String bankCardNumber; 15 | 16 | static const String constructor = 'getBankCardInfo'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'bank_card_number': bankCardNumber, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_business_chat_links.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns business chat links created for the current account 6 | /// Returns [BusinessChatLinks] 7 | @immutable 8 | class GetBusinessChatLinks extends TdFunction { 9 | const GetBusinessChatLinks(); 10 | 11 | static const String constructor = 'getBusinessChatLinks'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_business_connected_bot.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the business bot that is connected to the current user account. 6 | /// Returns a 404 error if there is no connected bot 7 | /// Returns [BusinessConnectedBot] 8 | @immutable 9 | class GetBusinessConnectedBot extends TdFunction { 10 | const GetBusinessConnectedBot(); 11 | 12 | static const String constructor = 'getBusinessConnectedBot'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_chat.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about a chat by its identifier; this is an offline 6 | /// request if the current user is not a bot 7 | /// Returns [Chat] 8 | @immutable 9 | class GetChat extends TdFunction { 10 | const GetChat({ 11 | required this.chatId, 12 | }); 13 | 14 | /// [chatId] Chat identifier 15 | final int chatId; 16 | 17 | static const String constructor = 'getChat'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'chat_id': chatId, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_chat_active_stories.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the list of active stories posted by the given chat 6 | /// Returns [ChatActiveStories] 7 | @immutable 8 | class GetChatActiveStories extends TdFunction { 9 | const GetChatActiveStories({ 10 | required this.chatId, 11 | }); 12 | 13 | /// [chatId] Chat identifier 14 | final int chatId; 15 | 16 | static const String constructor = 'getChatActiveStories'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'chat_id': chatId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_chat_boost_link.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns an HTTPS link to boost the specified supergroup or channel chat 6 | /// Returns [ChatBoostLink] 7 | @immutable 8 | class GetChatBoostLink extends TdFunction { 9 | const GetChatBoostLink({ 10 | required this.chatId, 11 | }); 12 | 13 | /// [chatId] Identifier of the chat 14 | final int chatId; 15 | 16 | static const String constructor = 'getChatBoostLink'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'chat_id': chatId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_chat_boost_status.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the current boost status for a supergroup or a channel chat 6 | /// Returns [ChatBoostStatus] 7 | @immutable 8 | class GetChatBoostStatus extends TdFunction { 9 | const GetChatBoostStatus({ 10 | required this.chatId, 11 | }); 12 | 13 | /// [chatId] Identifier of the chat 14 | final int chatId; 15 | 16 | static const String constructor = 'getChatBoostStatus'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'chat_id': chatId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_chat_folder.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about a chat folder by its identifier 6 | /// Returns [ChatFolder] 7 | @immutable 8 | class GetChatFolder extends TdFunction { 9 | const GetChatFolder({ 10 | required this.chatFolderId, 11 | }); 12 | 13 | /// [chatFolderId] Chat folder identifier 14 | final int chatFolderId; 15 | 16 | static const String constructor = 'getChatFolder'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'chat_folder_id': chatFolderId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_chats_to_send_stories.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns supergroup and channel chats in which the current user has the 6 | /// right to post stories. The chats must be rechecked with canSendStory 7 | /// before actually trying to post a story there 8 | /// Returns [Chats] 9 | @immutable 10 | class GetChatsToSendStories extends TdFunction { 11 | const GetChatsToSendStories(); 12 | 13 | static const String constructor = 'getChatsToSendStories'; 14 | 15 | @override 16 | String getConstructor() => constructor; 17 | 18 | @override 19 | Map toJson() => { 20 | '@type': constructor, 21 | }; 22 | 23 | @override 24 | bool operator ==(Object other) => overriddenEquality(other); 25 | 26 | @override 27 | int get hashCode => overriddenHashCode; 28 | } 29 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_close_friends.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns all close friends of the current user 6 | /// Returns [Users] 7 | @immutable 8 | class GetCloseFriends extends TdFunction { 9 | const GetCloseFriends(); 10 | 11 | static const String constructor = 'getCloseFriends'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_connected_websites.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns all website where the current user used Telegram to log in 6 | /// Returns [ConnectedWebsites] 7 | @immutable 8 | class GetConnectedWebsites extends TdFunction { 9 | const GetConnectedWebsites(); 10 | 11 | static const String constructor = 'getConnectedWebsites'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_contacts.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns all contacts of the user 6 | /// Returns [Users] 7 | @immutable 8 | class GetContacts extends TdFunction { 9 | const GetContacts(); 10 | 11 | static const String constructor = 'getContacts'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_countries.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about existing countries. Can be called before 6 | /// authorization 7 | /// Returns [Countries] 8 | @immutable 9 | class GetCountries extends TdFunction { 10 | const GetCountries(); 11 | 12 | static const String constructor = 'getCountries'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_country_code.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Uses the current IP address to find the current country. Returns 6 | /// two-letter ISO 3166-1 alpha-2 country code. Can be called before 7 | /// authorization 8 | /// Returns [Text] 9 | @immutable 10 | class GetCountryCode extends TdFunction { 11 | const GetCountryCode(); 12 | 13 | static const String constructor = 'getCountryCode'; 14 | 15 | @override 16 | String getConstructor() => constructor; 17 | 18 | @override 19 | Map toJson() => { 20 | '@type': constructor, 21 | }; 22 | 23 | @override 24 | bool operator ==(Object other) => overriddenEquality(other); 25 | 26 | @override 27 | int get hashCode => overriddenHashCode; 28 | } 29 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_current_weather.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the current weather in the given location 6 | /// Returns [CurrentWeather] 7 | @immutable 8 | class GetCurrentWeather extends TdFunction { 9 | const GetCurrentWeather({ 10 | required this.location, 11 | }); 12 | 13 | /// [location] The location 14 | final Location location; 15 | 16 | static const String constructor = 'getCurrentWeather'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'location': location.toJson(), 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_custom_emoji_reaction_animations.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns TGS stickers with generic animations for custom emoji reactions 6 | /// Returns [Stickers] 7 | @immutable 8 | class GetCustomEmojiReactionAnimations extends TdFunction { 9 | const GetCustomEmojiReactionAnimations(); 10 | 11 | static const String constructor = 'getCustomEmojiReactionAnimations'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_database_statistics.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns database statistics 6 | /// Returns [DatabaseStatistics] 7 | @immutable 8 | class GetDatabaseStatistics extends TdFunction { 9 | const GetDatabaseStatistics(); 10 | 11 | static const String constructor = 'getDatabaseStatistics'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_default_background_custom_emoji_stickers.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns default list of custom emoji stickers for reply background 6 | /// Returns [Stickers] 7 | @immutable 8 | class GetDefaultBackgroundCustomEmojiStickers extends TdFunction { 9 | const GetDefaultBackgroundCustomEmojiStickers(); 10 | 11 | static const String constructor = 'getDefaultBackgroundCustomEmojiStickers'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_default_chat_emoji_statuses.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns default emoji statuses for chats 6 | /// Returns [EmojiStatuses] 7 | @immutable 8 | class GetDefaultChatEmojiStatuses extends TdFunction { 9 | const GetDefaultChatEmojiStatuses(); 10 | 11 | static const String constructor = 'getDefaultChatEmojiStatuses'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_default_chat_photo_custom_emoji_stickers.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns default list of custom emoji stickers for placing on a chat photo 6 | /// Returns [Stickers] 7 | @immutable 8 | class GetDefaultChatPhotoCustomEmojiStickers extends TdFunction { 9 | const GetDefaultChatPhotoCustomEmojiStickers(); 10 | 11 | static const String constructor = 'getDefaultChatPhotoCustomEmojiStickers'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_default_emoji_statuses.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns default emoji statuses for self status 6 | /// Returns [EmojiStatuses] 7 | @immutable 8 | class GetDefaultEmojiStatuses extends TdFunction { 9 | const GetDefaultEmojiStatuses(); 10 | 11 | static const String constructor = 'getDefaultEmojiStatuses'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_default_message_auto_delete_time.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns default message auto-delete time setting for new chats 6 | /// Returns [MessageAutoDeleteTime] 7 | @immutable 8 | class GetDefaultMessageAutoDeleteTime extends TdFunction { 9 | const GetDefaultMessageAutoDeleteTime(); 10 | 11 | static const String constructor = 'getDefaultMessageAutoDeleteTime'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_default_profile_photo_custom_emoji_stickers.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns default list of custom emoji stickers for placing on a profile 6 | /// photo 7 | /// Returns [Stickers] 8 | @immutable 9 | class GetDefaultProfilePhotoCustomEmojiStickers extends TdFunction { 10 | const GetDefaultProfilePhotoCustomEmojiStickers(); 11 | 12 | static const String constructor = 'getDefaultProfilePhotoCustomEmojiStickers'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_disallowed_chat_emoji_statuses.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the list of emoji statuses, which can't be used as chat emoji 6 | /// status, even they are from a sticker set with 7 | /// is_allowed_as_chat_emoji_status == true 8 | /// Returns [EmojiStatuses] 9 | @immutable 10 | class GetDisallowedChatEmojiStatuses extends TdFunction { 11 | const GetDisallowedChatEmojiStatuses(); 12 | 13 | static const String constructor = 'getDisallowedChatEmojiStatuses'; 14 | 15 | @override 16 | String getConstructor() => constructor; 17 | 18 | @override 19 | Map toJson() => { 20 | '@type': constructor, 21 | }; 22 | 23 | @override 24 | bool operator ==(Object other) => overriddenEquality(other); 25 | 26 | @override 27 | int get hashCode => overriddenHashCode; 28 | } 29 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_favorite_stickers.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns favorite stickers 6 | /// Returns [Stickers] 7 | @immutable 8 | class GetFavoriteStickers extends TdFunction { 9 | const GetFavoriteStickers(); 10 | 11 | static const String constructor = 'getFavoriteStickers'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_file.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about a file; this is an offline request 6 | /// Returns [File] 7 | @immutable 8 | class GetFile extends TdFunction { 9 | const GetFile({ 10 | required this.fileId, 11 | }); 12 | 13 | /// [fileId] Identifier of the file to get 14 | final int fileId; 15 | 16 | static const String constructor = 'getFile'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'file_id': fileId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_forum_topic_default_icons.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the list of custom emoji, which can be used as forum topic icon by 6 | /// all users 7 | /// Returns [Stickers] 8 | @immutable 9 | class GetForumTopicDefaultIcons extends TdFunction { 10 | const GetForumTopicDefaultIcons(); 11 | 12 | static const String constructor = 'getForumTopicDefaultIcons'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_greeting_stickers.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns greeting stickers from regular sticker sets that can be used for 6 | /// the start page of other users 7 | /// Returns [Stickers] 8 | @immutable 9 | class GetGreetingStickers extends TdFunction { 10 | const GetGreetingStickers(); 11 | 12 | static const String constructor = 'getGreetingStickers'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_group_call.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about a group call 6 | /// Returns [GroupCall] 7 | @immutable 8 | class GetGroupCall extends TdFunction { 9 | const GetGroupCall({ 10 | required this.groupCallId, 11 | }); 12 | 13 | /// [groupCallId] Group call identifier 14 | final int groupCallId; 15 | 16 | static const String constructor = 'getGroupCall'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'group_call_id': groupCallId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_imported_contact_count.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the total number of imported contacts 6 | /// Returns [Count] 7 | @immutable 8 | class GetImportedContactCount extends TdFunction { 9 | const GetImportedContactCount(); 10 | 11 | static const String constructor = 'getImportedContactCount'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_json_value.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Converts a JSON-serialized string to corresponding JsonValue object. Can 6 | /// be called synchronously 7 | /// Returns [JsonValue] 8 | @immutable 9 | class GetJsonValue extends TdFunction { 10 | const GetJsonValue({ 11 | required this.json, 12 | }); 13 | 14 | /// [json] The JSON-serialized string 15 | final String json; 16 | 17 | static const String constructor = 'getJsonValue'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'json': json, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_log_stream.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about currently used log stream for internal logging 6 | /// of TDLib. Can be called synchronously 7 | /// Returns [LogStream] 8 | @immutable 9 | class GetLogStream extends TdFunction { 10 | const GetLogStream(); 11 | 12 | static const String constructor = 'getLogStream'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_log_tags.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the list of available TDLib internal log tags, for example, 6 | /// ["actor", "binlog", "connections", "notifications", "proxy"]. Can be 7 | /// called synchronously 8 | /// Returns [LogTags] 9 | @immutable 10 | class GetLogTags extends TdFunction { 11 | const GetLogTags(); 12 | 13 | static const String constructor = 'getLogTags'; 14 | 15 | @override 16 | String getConstructor() => constructor; 17 | 18 | @override 19 | Map toJson() => { 20 | '@type': constructor, 21 | }; 22 | 23 | @override 24 | bool operator ==(Object other) => overriddenEquality(other); 25 | 26 | @override 27 | int get hashCode => overriddenHashCode; 28 | } 29 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_log_verbosity_level.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns current verbosity level of the internal logging of TDLib. Can be 6 | /// called synchronously 7 | /// Returns [LogVerbosityLevel] 8 | @immutable 9 | class GetLogVerbosityLevel extends TdFunction { 10 | const GetLogVerbosityLevel(); 11 | 12 | static const String constructor = 'getLogVerbosityLevel'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_me.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the current user 6 | /// Returns [User] 7 | @immutable 8 | class GetMe extends TdFunction { 9 | const GetMe(); 10 | 11 | static const String constructor = 'getMe'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_new_chat_privacy_settings.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns privacy settings for new chat creation 6 | /// Returns [NewChatPrivacySettings] 7 | @immutable 8 | class GetNewChatPrivacySettings extends TdFunction { 9 | const GetNewChatPrivacySettings(); 10 | 11 | static const String constructor = 'getNewChatPrivacySettings'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_password_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the current state of 2-step verification 6 | /// Returns [PasswordState] 7 | @immutable 8 | class GetPasswordState extends TdFunction { 9 | const GetPasswordState(); 10 | 11 | static const String constructor = 'getPasswordState'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_premium_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns state of Telegram Premium subscription and promotion videos for 6 | /// Premium features 7 | /// Returns [PremiumState] 8 | @immutable 9 | class GetPremiumState extends TdFunction { 10 | const GetPremiumState(); 11 | 12 | static const String constructor = 'getPremiumState'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_premium_sticker_examples.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns examples of premium stickers for demonstration purposes 6 | /// Returns [Stickers] 7 | @immutable 8 | class GetPremiumStickerExamples extends TdFunction { 9 | const GetPremiumStickerExamples(); 10 | 11 | static const String constructor = 'getPremiumStickerExamples'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_premium_stickers.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns premium stickers from regular sticker sets 6 | /// Returns [Stickers] 7 | @immutable 8 | class GetPremiumStickers extends TdFunction { 9 | const GetPremiumStickers({ 10 | required this.limit, 11 | }); 12 | 13 | /// [limit] The maximum number of stickers to be returned; 0-100 14 | final int limit; 15 | 16 | static const String constructor = 'getPremiumStickers'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'limit': limit, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_proxies.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the list of proxies that are currently set up. Can be called 6 | /// before authorization 7 | /// Returns [Proxies] 8 | @immutable 9 | class GetProxies extends TdFunction { 10 | const GetProxies(); 11 | 12 | static const String constructor = 'getProxies'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_read_date_privacy_settings.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns privacy settings for message read date 6 | /// Returns [ReadDatePrivacySettings] 7 | @immutable 8 | class GetReadDatePrivacySettings extends TdFunction { 9 | const GetReadDatePrivacySettings(); 10 | 11 | static const String constructor = 'getReadDatePrivacySettings'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_recent_emoji_statuses.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns recent emoji statuses for self status 6 | /// Returns [EmojiStatuses] 7 | @immutable 8 | class GetRecentEmojiStatuses extends TdFunction { 9 | const GetRecentEmojiStatuses(); 10 | 11 | static const String constructor = 'getRecentEmojiStatuses'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_recent_inline_bots.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns up to 20 recently used inline bots in the order of their last 6 | /// usage 7 | /// Returns [Users] 8 | @immutable 9 | class GetRecentInlineBots extends TdFunction { 10 | const GetRecentInlineBots(); 11 | 12 | static const String constructor = 'getRecentInlineBots'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_recommended_chat_folders.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns recommended chat folders for the current user 6 | /// Returns [RecommendedChatFolders] 7 | @immutable 8 | class GetRecommendedChatFolders extends TdFunction { 9 | const GetRecommendedChatFolders(); 10 | 11 | static const String constructor = 'getRecommendedChatFolders'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_recommended_chats.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns a list of channel chats recommended to the current user 6 | /// Returns [Chats] 7 | @immutable 8 | class GetRecommendedChats extends TdFunction { 9 | const GetRecommendedChats(); 10 | 11 | static const String constructor = 'getRecommendedChats'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_saved_animations.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns saved animations 6 | /// Returns [Animations] 7 | @immutable 8 | class GetSavedAnimations extends TdFunction { 9 | const GetSavedAnimations(); 10 | 11 | static const String constructor = 'getSavedAnimations'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_saved_notification_sounds.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the list of saved notification sounds. If a sound isn't in the 6 | /// list, then default sound needs to be used 7 | /// Returns [NotificationSounds] 8 | @immutable 9 | class GetSavedNotificationSounds extends TdFunction { 10 | const GetSavedNotificationSounds(); 11 | 12 | static const String constructor = 'getSavedNotificationSounds'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_saved_order_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns saved order information. Returns a 404 error if there is no saved 6 | /// order information 7 | /// Returns [OrderInfo] 8 | @immutable 9 | class GetSavedOrderInfo extends TdFunction { 10 | const GetSavedOrderInfo(); 11 | 12 | static const String constructor = 'getSavedOrderInfo'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_star_giveaway_payment_options.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns available options for Telegram Star giveaway creation 6 | /// Returns [StarGiveawayPaymentOptions] 7 | @immutable 8 | class GetStarGiveawayPaymentOptions extends TdFunction { 9 | const GetStarGiveawayPaymentOptions(); 10 | 11 | static const String constructor = 'getStarGiveawayPaymentOptions'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_star_payment_options.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns available options for Telegram Stars purchase 6 | /// Returns [StarPaymentOptions] 7 | @immutable 8 | class GetStarPaymentOptions extends TdFunction { 9 | const GetStarPaymentOptions(); 10 | 11 | static const String constructor = 'getStarPaymentOptions'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_sticker_set.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about a sticker set by its identifier 6 | /// Returns [StickerSet] 7 | @immutable 8 | class GetStickerSet extends TdFunction { 9 | const GetStickerSet({ 10 | required this.setId, 11 | }); 12 | 13 | /// [setId] Identifier of the sticker set 14 | final int setId; 15 | 16 | static const String constructor = 'getStickerSet'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'set_id': setId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_sticker_set_name.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns name of a sticker set by its identifier 6 | /// Returns [Text] 7 | @immutable 8 | class GetStickerSetName extends TdFunction { 9 | const GetStickerSetName({ 10 | required this.setId, 11 | }); 12 | 13 | /// [setId] Identifier of the sticker set 14 | final int setId; 15 | 16 | static const String constructor = 'getStickerSetName'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'set_id': setId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_storage_statistics_fast.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Quickly returns approximate storage usage statistics. Can be called before 6 | /// authorization 7 | /// Returns [StorageStatisticsFast] 8 | @immutable 9 | class GetStorageStatisticsFast extends TdFunction { 10 | const GetStorageStatisticsFast(); 11 | 12 | static const String constructor = 'getStorageStatisticsFast'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_story_notification_settings_exceptions.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the list of chats with non-default notification settings for 6 | /// stories 7 | /// Returns [Chats] 8 | @immutable 9 | class GetStoryNotificationSettingsExceptions extends TdFunction { 10 | const GetStoryNotificationSettingsExceptions(); 11 | 12 | static const String constructor = 'getStoryNotificationSettingsExceptions'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_suitable_personal_chats.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns a list of channel chats, which can be used as a personal chat 6 | /// Returns [Chats] 7 | @immutable 8 | class GetSuitablePersonalChats extends TdFunction { 9 | const GetSuitablePersonalChats(); 10 | 11 | static const String constructor = 'getSuitablePersonalChats'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_support_name.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns localized name of the Telegram support user; for Telegram support 6 | /// only 7 | /// Returns [Text] 8 | @immutable 9 | class GetSupportName extends TdFunction { 10 | const GetSupportName(); 11 | 12 | static const String constructor = 'getSupportName'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_support_user.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns a user that can be contacted to get support 6 | /// Returns [User] 7 | @immutable 8 | class GetSupportUser extends TdFunction { 9 | const GetSupportUser(); 10 | 11 | static const String constructor = 'getSupportUser'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_temporary_password_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about the current temporary password 6 | /// Returns [TemporaryPasswordState] 7 | @immutable 8 | class GetTemporaryPasswordState extends TdFunction { 9 | const GetTemporaryPasswordState(); 10 | 11 | static const String constructor = 'getTemporaryPasswordState'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_themed_chat_emoji_statuses.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns up to 8 emoji statuses, which must be shown in the emoji status 6 | /// list for chats 7 | /// Returns [EmojiStatuses] 8 | @immutable 9 | class GetThemedChatEmojiStatuses extends TdFunction { 10 | const GetThemedChatEmojiStatuses(); 11 | 12 | static const String constructor = 'getThemedChatEmojiStatuses'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_themed_emoji_statuses.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns up to 8 emoji statuses, which must be shown right after the 6 | /// default Premium Badge in the emoji status list for self status 7 | /// Returns [EmojiStatuses] 8 | @immutable 9 | class GetThemedEmojiStatuses extends TdFunction { 10 | const GetThemedEmojiStatuses(); 11 | 12 | static const String constructor = 'getThemedEmojiStatuses'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_time_zones.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the list of supported time zones 6 | /// Returns [TimeZones] 7 | @immutable 8 | class GetTimeZones extends TdFunction { 9 | const GetTimeZones(); 10 | 11 | static const String constructor = 'getTimeZones'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_user.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns information about a user by their identifier. This is an offline 6 | /// request if the current user is not a bot 7 | /// Returns [User] 8 | @immutable 9 | class GetUser extends TdFunction { 10 | const GetUser({ 11 | required this.userId, 12 | }); 13 | 14 | /// [userId] User identifier 15 | final int userId; 16 | 17 | static const String constructor = 'getUser'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'user_id': userId, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_user_full_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns full information about a user by their identifier 6 | /// Returns [UserFullInfo] 7 | @immutable 8 | class GetUserFullInfo extends TdFunction { 9 | const GetUserFullInfo({ 10 | required this.userId, 11 | }); 12 | 13 | /// [userId] User identifier 14 | final int userId; 15 | 16 | static const String constructor = 'getUserFullInfo'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'user_id': userId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_user_link.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns an HTTPS link, which can be used to get information about the 6 | /// current user 7 | /// Returns [UserLink] 8 | @immutable 9 | class GetUserLink extends TdFunction { 10 | const GetUserLink(); 11 | 12 | static const String constructor = 'getUserLink'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_user_support_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns support information for the given user; for Telegram support only 6 | /// Returns [UserSupportInfo] 7 | @immutable 8 | class GetUserSupportInfo extends TdFunction { 9 | const GetUserSupportInfo({ 10 | required this.userId, 11 | }); 12 | 13 | /// [userId] User identifier 14 | final int userId; 15 | 16 | static const String constructor = 'getUserSupportInfo'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'user_id': userId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/get_video_chat_rtmp_url.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns RTMP URL for streaming to the chat; requires owner privileges 6 | /// Returns [RtmpUrl] 7 | @immutable 8 | class GetVideoChatRtmpUrl extends TdFunction { 9 | const GetVideoChatRtmpUrl({ 10 | required this.chatId, 11 | }); 12 | 13 | /// [chatId] Chat identifier 14 | final int chatId; 15 | 16 | static const String constructor = 'getVideoChatRtmpUrl'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'chat_id': chatId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/hide_contact_close_birthdays.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Hides the list of contacts that have close birthdays for 24 hours 6 | /// Returns [Ok] 7 | @immutable 8 | class HideContactCloseBirthdays extends TdFunction { 9 | const HideContactCloseBirthdays(); 10 | 11 | static const String constructor = 'hideContactCloseBirthdays'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/hide_suggested_action.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Hides a suggested action 6 | /// Returns [Ok] 7 | @immutable 8 | class HideSuggestedAction extends TdFunction { 9 | const HideSuggestedAction({ 10 | required this.action, 11 | }); 12 | 13 | /// [action] Suggested action to hide 14 | final SuggestedAction action; 15 | 16 | static const String constructor = 'hideSuggestedAction'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'action': action.toJson(), 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/leave_chat.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Removes the current user from chat members. Private and secret chats can't 6 | /// be left using this method 7 | /// Returns [Ok] 8 | @immutable 9 | class LeaveChat extends TdFunction { 10 | const LeaveChat({ 11 | required this.chatId, 12 | }); 13 | 14 | /// [chatId] Chat identifier 15 | final int chatId; 16 | 17 | static const String constructor = 'leaveChat'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'chat_id': chatId, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/leave_group_call.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Leaves a group call 6 | /// Returns [Ok] 7 | @immutable 8 | class LeaveGroupCall extends TdFunction { 9 | const LeaveGroupCall({ 10 | required this.groupCallId, 11 | }); 12 | 13 | /// [groupCallId] Group call identifier 14 | final int groupCallId; 15 | 16 | static const String constructor = 'leaveGroupCall'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'group_call_id': groupCallId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/load_quick_reply_shortcuts.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Loads quick reply shortcuts created by the current user. The loaded data 6 | /// will be sent through updateQuickReplyShortcut and 7 | /// updateQuickReplyShortcuts 8 | /// Returns [Ok] 9 | @immutable 10 | class LoadQuickReplyShortcuts extends TdFunction { 11 | const LoadQuickReplyShortcuts(); 12 | 13 | static const String constructor = 'loadQuickReplyShortcuts'; 14 | 15 | @override 16 | String getConstructor() => constructor; 17 | 18 | @override 19 | Map toJson() => { 20 | '@type': constructor, 21 | }; 22 | 23 | @override 24 | bool operator ==(Object other) => overriddenEquality(other); 25 | 26 | @override 27 | int get hashCode => overriddenHashCode; 28 | } 29 | -------------------------------------------------------------------------------- /lib/src/api/functions/log_out.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Closes the TDLib instance after a proper logout. Requires an available 6 | /// network connection. All local data will be destroyed. After the logout 7 | /// completes, updateAuthorizationState with authorizationStateClosed will be 8 | /// sent 9 | /// Returns [Ok] 10 | @immutable 11 | class LogOut extends TdFunction { 12 | const LogOut(); 13 | 14 | static const String constructor = 'logOut'; 15 | 16 | @override 17 | String getConstructor() => constructor; 18 | 19 | @override 20 | Map toJson() => { 21 | '@type': constructor, 22 | }; 23 | 24 | @override 25 | bool operator ==(Object other) => overriddenEquality(other); 26 | 27 | @override 28 | int get hashCode => overriddenHashCode; 29 | } 30 | -------------------------------------------------------------------------------- /lib/src/api/functions/read_all_chat_mentions.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Marks all mentions in a chat as read 6 | /// Returns [Ok] 7 | @immutable 8 | class ReadAllChatMentions extends TdFunction { 9 | const ReadAllChatMentions({ 10 | required this.chatId, 11 | }); 12 | 13 | /// [chatId] Chat identifier 14 | final int chatId; 15 | 16 | static const String constructor = 'readAllChatMentions'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'chat_id': chatId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/read_all_chat_reactions.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Marks all reactions in a chat or a forum topic as read 6 | /// Returns [Ok] 7 | @immutable 8 | class ReadAllChatReactions extends TdFunction { 9 | const ReadAllChatReactions({ 10 | required this.chatId, 11 | }); 12 | 13 | /// [chatId] Chat identifier 14 | final int chatId; 15 | 16 | static const String constructor = 'readAllChatReactions'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'chat_id': chatId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/remove_chat_action_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Removes a chat action bar without any other action 6 | /// Returns [Ok] 7 | @immutable 8 | class RemoveChatActionBar extends TdFunction { 9 | const RemoveChatActionBar({ 10 | required this.chatId, 11 | }); 12 | 13 | /// [chatId] Chat identifier 14 | final int chatId; 15 | 16 | static const String constructor = 'removeChatActionBar'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'chat_id': chatId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/remove_contacts.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Removes users from the contact list 6 | /// Returns [Ok] 7 | @immutable 8 | class RemoveContacts extends TdFunction { 9 | const RemoveContacts({ 10 | required this.userIds, 11 | }); 12 | 13 | /// [userIds] Identifiers of users to be deleted 14 | final List userIds; 15 | 16 | static const String constructor = 'removeContacts'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'user_ids': userIds.map((item) => item).toList(), 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/remove_proxy.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Removes a proxy server. Can be called before authorization 6 | /// Returns [Ok] 7 | @immutable 8 | class RemoveProxy extends TdFunction { 9 | const RemoveProxy({ 10 | required this.proxyId, 11 | }); 12 | 13 | /// [proxyId] Proxy identifier 14 | final int proxyId; 15 | 16 | static const String constructor = 'removeProxy'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'proxy_id': proxyId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/remove_recent_hashtag.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Removes a hashtag from the list of recently used hashtags 6 | /// Returns [Ok] 7 | @immutable 8 | class RemoveRecentHashtag extends TdFunction { 9 | const RemoveRecentHashtag({ 10 | required this.hashtag, 11 | }); 12 | 13 | /// [hashtag] Hashtag to delete 14 | final String hashtag; 15 | 16 | static const String constructor = 'removeRecentHashtag'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'hashtag': hashtag, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/remove_recently_found_chat.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Removes a chat from the list of recently found chats 6 | /// Returns [Ok] 7 | @immutable 8 | class RemoveRecentlyFoundChat extends TdFunction { 9 | const RemoveRecentlyFoundChat({ 10 | required this.chatId, 11 | }); 12 | 13 | /// [chatId] Identifier of the chat to be removed 14 | final int chatId; 15 | 16 | static const String constructor = 'removeRecentlyFoundChat'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'chat_id': chatId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/request_password_recovery.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Requests to send a 2-step verification password recovery code to an email 6 | /// address that was previously set up 7 | /// Returns [EmailAddressAuthenticationCodeInfo] 8 | @immutable 9 | class RequestPasswordRecovery extends TdFunction { 10 | const RequestPasswordRecovery(); 11 | 12 | static const String constructor = 'requestPasswordRecovery'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/resend_email_address_verification_code.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Resends the code to verify an email address to be added to a user's 6 | /// Telegram Passport 7 | /// Returns [EmailAddressAuthenticationCodeInfo] 8 | @immutable 9 | class ResendEmailAddressVerificationCode extends TdFunction { 10 | const ResendEmailAddressVerificationCode(); 11 | 12 | static const String constructor = 'resendEmailAddressVerificationCode'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/resend_login_email_address_code.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Resends the login email address verification code 6 | /// Returns [EmailAddressAuthenticationCodeInfo] 7 | @immutable 8 | class ResendLoginEmailAddressCode extends TdFunction { 9 | const ResendLoginEmailAddressCode(); 10 | 11 | static const String constructor = 'resendLoginEmailAddressCode'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/resend_recovery_email_address_code.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Resends the 2-step verification recovery email address verification code 6 | /// Returns [PasswordState] 7 | @immutable 8 | class ResendRecoveryEmailAddressCode extends TdFunction { 9 | const ResendRecoveryEmailAddressCode(); 10 | 11 | static const String constructor = 'resendRecoveryEmailAddressCode'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/reset_all_notification_settings.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Resets all chat and scope notification settings to their default values. 6 | /// By default, all chats are unmuted and message previews are shown 7 | /// Returns [Ok] 8 | @immutable 9 | class ResetAllNotificationSettings extends TdFunction { 10 | const ResetAllNotificationSettings(); 11 | 12 | static const String constructor = 'resetAllNotificationSettings'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/reset_installed_backgrounds.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Resets list of installed backgrounds to its default value 6 | /// Returns [Ok] 7 | @immutable 8 | class ResetInstalledBackgrounds extends TdFunction { 9 | const ResetInstalledBackgrounds(); 10 | 11 | static const String constructor = 'resetInstalledBackgrounds'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/reset_network_statistics.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Resets all network data usage statistics to zero. Can be called before 6 | /// authorization 7 | /// Returns [Ok] 8 | @immutable 9 | class ResetNetworkStatistics extends TdFunction { 10 | const ResetNetworkStatistics(); 11 | 12 | static const String constructor = 'resetNetworkStatistics'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/reset_password.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Removes 2-step verification password without previous password and access 6 | /// to recovery email address. The password can't be reset immediately and the 7 | /// request needs to be repeated after the specified time 8 | /// Returns [ResetPasswordResult] 9 | @immutable 10 | class ResetPassword extends TdFunction { 11 | const ResetPassword(); 12 | 13 | static const String constructor = 'resetPassword'; 14 | 15 | @override 16 | String getConstructor() => constructor; 17 | 18 | @override 19 | Map toJson() => { 20 | '@type': constructor, 21 | }; 22 | 23 | @override 24 | bool operator ==(Object other) => overriddenEquality(other); 25 | 26 | @override 27 | int get hashCode => overriddenHashCode; 28 | } 29 | -------------------------------------------------------------------------------- /lib/src/api/functions/search_background.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Searches for a background by its name 6 | /// Returns [Background] 7 | @immutable 8 | class SearchBackground extends TdFunction { 9 | const SearchBackground({ 10 | required this.name, 11 | }); 12 | 13 | /// [name] The name of the background 14 | final String name; 15 | 16 | static const String constructor = 'searchBackground'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'name': name, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/search_user_by_token.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Searches a user by a token from the user's link 6 | /// Returns [User] 7 | @immutable 8 | class SearchUserByToken extends TdFunction { 9 | const SearchUserByToken({ 10 | required this.token, 11 | }); 12 | 13 | /// [token] Token to search for 14 | final String token; 15 | 16 | static const String constructor = 'searchUserByToken'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'token': token, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/set_alarm.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Succeeds after a specified amount of time has passed. Can be called before 6 | /// initialization 7 | /// Returns [Ok] 8 | @immutable 9 | class SetAlarm extends TdFunction { 10 | const SetAlarm({ 11 | required this.seconds, 12 | }); 13 | 14 | /// [seconds] Number of seconds before the function returns 15 | final double seconds; 16 | 17 | static const String constructor = 'setAlarm'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'seconds': seconds, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/set_bio.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Changes the bio of the current user 6 | /// Returns [Ok] 7 | @immutable 8 | class SetBio extends TdFunction { 9 | const SetBio({ 10 | required this.bio, 11 | }); 12 | 13 | /// [bio] The new value of the user bio; 0-getOption("bio_length_max") 14 | /// characters without line feeds 15 | final String bio; 16 | 17 | static const String constructor = 'setBio'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'bio': bio, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/start_scheduled_group_call.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Starts a scheduled group call 6 | /// Returns [Ok] 7 | @immutable 8 | class StartScheduledGroupCall extends TdFunction { 9 | const StartScheduledGroupCall({ 10 | required this.groupCallId, 11 | }); 12 | 13 | /// [groupCallId] Group call identifier 14 | final int groupCallId; 15 | 16 | static const String constructor = 'startScheduledGroupCall'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'group_call_id': groupCallId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/terminate_all_other_sessions.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Terminates all other sessions of the current user 6 | /// Returns [Ok] 7 | @immutable 8 | class TerminateAllOtherSessions extends TdFunction { 9 | const TerminateAllOtherSessions(); 10 | 11 | static const String constructor = 'terminateAllOtherSessions'; 12 | 13 | @override 14 | String getConstructor() => constructor; 15 | 16 | @override 17 | Map toJson() => { 18 | '@type': constructor, 19 | }; 20 | 21 | @override 22 | bool operator ==(Object other) => overriddenEquality(other); 23 | 24 | @override 25 | int get hashCode => overriddenHashCode; 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/api/functions/terminate_session.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Terminates a session of the current user 6 | /// Returns [Ok] 7 | @immutable 8 | class TerminateSession extends TdFunction { 9 | const TerminateSession({ 10 | required this.sessionId, 11 | }); 12 | 13 | /// [sessionId] Session identifier 14 | final int sessionId; 15 | 16 | static const String constructor = 'terminateSession'; 17 | 18 | @override 19 | String getConstructor() => constructor; 20 | 21 | @override 22 | Map toJson() => { 23 | 'session_id': sessionId, 24 | '@type': constructor, 25 | }; 26 | 27 | @override 28 | bool operator ==(Object other) => overriddenEquality(other); 29 | 30 | @override 31 | int get hashCode => overriddenHashCode; 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/api/functions/test_call_bytes.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the received bytes; for testing only. This is an offline method. 6 | /// Can be called before authorization 7 | /// Returns [TestBytes] 8 | @immutable 9 | class TestCallBytes extends TdFunction { 10 | const TestCallBytes({ 11 | required this.x, 12 | }); 13 | 14 | /// [x] Bytes to return 15 | final String x; 16 | 17 | static const String constructor = 'testCallBytes'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'x': x, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/test_call_empty.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Does nothing; for testing only. This is an offline method. Can be called 6 | /// before authorization 7 | /// Returns [Ok] 8 | @immutable 9 | class TestCallEmpty extends TdFunction { 10 | const TestCallEmpty(); 11 | 12 | static const String constructor = 'testCallEmpty'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/test_call_string.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the received string; for testing only. This is an offline method. 6 | /// Can be called before authorization 7 | /// Returns [TestString] 8 | @immutable 9 | class TestCallString extends TdFunction { 10 | const TestCallString({ 11 | required this.x, 12 | }); 13 | 14 | /// [x] String to return 15 | final String x; 16 | 17 | static const String constructor = 'testCallString'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'x': x, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/test_get_difference.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Forces an updates.getDifference call to the Telegram servers; for testing 6 | /// only 7 | /// Returns [Ok] 8 | @immutable 9 | class TestGetDifference extends TdFunction { 10 | const TestGetDifference(); 11 | 12 | static const String constructor = 'testGetDifference'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/test_network.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Sends a simple network request to the Telegram servers; for testing only. 6 | /// Can be called before authorization 7 | /// Returns [Ok] 8 | @immutable 9 | class TestNetwork extends TdFunction { 10 | const TestNetwork(); 11 | 12 | static const String constructor = 'testNetwork'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/functions/test_square_int.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Returns the squared received number; for testing only. This is an offline 6 | /// method. Can be called before authorization 7 | /// Returns [TestInt] 8 | @immutable 9 | class TestSquareInt extends TdFunction { 10 | const TestSquareInt({ 11 | required this.x, 12 | }); 13 | 14 | /// [x] Number to square 15 | final int x; 16 | 17 | static const String constructor = 'testSquareInt'; 18 | 19 | @override 20 | String getConstructor() => constructor; 21 | 22 | @override 23 | Map toJson() => { 24 | 'x': x, 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/functions/test_use_update.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Does nothing and ensures that the Update object is used; for testing only. 6 | /// This is an offline method. Can be called before authorization 7 | /// Returns [Update] 8 | @immutable 9 | class TestUseUpdate extends TdFunction { 10 | const TestUseUpdate(); 11 | 12 | static const String constructor = 'testUseUpdate'; 13 | 14 | @override 15 | String getConstructor() => constructor; 16 | 17 | @override 18 | Map toJson() => { 19 | '@type': constructor, 20 | }; 21 | 22 | @override 23 | bool operator ==(Object other) => overriddenEquality(other); 24 | 25 | @override 26 | int get hashCode => overriddenHashCode; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/api/object.dart: -------------------------------------------------------------------------------- 1 | abstract class TdObject { 2 | const TdObject(); 3 | 4 | Map toJson(); 5 | 6 | String getConstructor(); 7 | } 8 | -------------------------------------------------------------------------------- /lib/src/api/objects/call_problem_dropped.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The call ended unexpectedly 6 | @immutable 7 | class CallProblemDropped extends CallProblem { 8 | const CallProblemDropped(); 9 | 10 | static const String constructor = 'callProblemDropped'; 11 | 12 | static CallProblemDropped? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const CallProblemDropped(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/call_problem_echo.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The user heard their own voice 6 | @immutable 7 | class CallProblemEcho extends CallProblem { 8 | const CallProblemEcho(); 9 | 10 | static const String constructor = 'callProblemEcho'; 11 | 12 | static CallProblemEcho? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const CallProblemEcho(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/call_problem_noise.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The user heard background noise 6 | @immutable 7 | class CallProblemNoise extends CallProblem { 8 | const CallProblemNoise(); 9 | 10 | static const String constructor = 'callProblemNoise'; 11 | 12 | static CallProblemNoise? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const CallProblemNoise(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/can_send_story_result_ok.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A story can be sent 6 | @immutable 7 | class CanSendStoryResultOk extends CanSendStoryResult { 8 | const CanSendStoryResultOk(); 9 | 10 | static const String constructor = 'canSendStoryResultOk'; 11 | 12 | static CanSendStoryResultOk? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const CanSendStoryResultOk(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/chat_action_cancel.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The user has canceled the previous action 6 | @immutable 7 | class ChatActionCancel extends ChatAction { 8 | const ChatActionCancel(); 9 | 10 | static const String constructor = 'chatActionCancel'; 11 | 12 | static ChatActionCancel? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ChatActionCancel(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/chat_action_typing.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The user is typing a message 6 | @immutable 7 | class ChatActionTyping extends ChatAction { 8 | const ChatActionTyping(); 9 | 10 | static const String constructor = 'chatActionTyping'; 11 | 12 | static ChatActionTyping? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ChatActionTyping(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/chat_event_member_left.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A member left the chat 6 | @immutable 7 | class ChatEventMemberLeft extends ChatEventAction { 8 | const ChatEventMemberLeft(); 9 | 10 | static const String constructor = 'chatEventMemberLeft'; 11 | 12 | static ChatEventMemberLeft? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ChatEventMemberLeft(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/chat_list_main.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A main list of chats 6 | @immutable 7 | class ChatListMain extends ChatList { 8 | const ChatListMain(); 9 | 10 | static const String constructor = 'chatListMain'; 11 | 12 | static ChatListMain? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ChatListMain(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_animation.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is an animation 6 | @immutable 7 | class FileTypeAnimation extends FileType { 8 | const FileTypeAnimation(); 9 | 10 | static const String constructor = 'fileTypeAnimation'; 11 | 12 | static FileTypeAnimation? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeAnimation(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_audio.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is an audio file 6 | @immutable 7 | class FileTypeAudio extends FileType { 8 | const FileTypeAudio(); 9 | 10 | static const String constructor = 'fileTypeAudio'; 11 | 12 | static FileTypeAudio? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeAudio(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_document.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a document 6 | @immutable 7 | class FileTypeDocument extends FileType { 8 | const FileTypeDocument(); 9 | 10 | static const String constructor = 'fileTypeDocument'; 11 | 12 | static FileTypeDocument? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeDocument(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_none.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The data is not a file 6 | @immutable 7 | class FileTypeNone extends FileType { 8 | const FileTypeNone(); 9 | 10 | static const String constructor = 'fileTypeNone'; 11 | 12 | static FileTypeNone? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeNone(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_photo.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a photo 6 | @immutable 7 | class FileTypePhoto extends FileType { 8 | const FileTypePhoto(); 9 | 10 | static const String constructor = 'fileTypePhoto'; 11 | 12 | static FileTypePhoto? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypePhoto(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_photo_story.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a photo published as a story 6 | @immutable 7 | class FileTypePhotoStory extends FileType { 8 | const FileTypePhotoStory(); 9 | 10 | static const String constructor = 'fileTypePhotoStory'; 11 | 12 | static FileTypePhotoStory? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypePhotoStory(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_profile_photo.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a profile photo 6 | @immutable 7 | class FileTypeProfilePhoto extends FileType { 8 | const FileTypeProfilePhoto(); 9 | 10 | static const String constructor = 'fileTypeProfilePhoto'; 11 | 12 | static FileTypeProfilePhoto? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeProfilePhoto(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_sticker.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a sticker 6 | @immutable 7 | class FileTypeSticker extends FileType { 8 | const FileTypeSticker(); 9 | 10 | static const String constructor = 'fileTypeSticker'; 11 | 12 | static FileTypeSticker? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeSticker(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_thumbnail.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a thumbnail of another file 6 | @immutable 7 | class FileTypeThumbnail extends FileType { 8 | const FileTypeThumbnail(); 9 | 10 | static const String constructor = 'fileTypeThumbnail'; 11 | 12 | static FileTypeThumbnail? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeThumbnail(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_unknown.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file type is not yet known 6 | @immutable 7 | class FileTypeUnknown extends FileType { 8 | const FileTypeUnknown(); 9 | 10 | static const String constructor = 'fileTypeUnknown'; 11 | 12 | static FileTypeUnknown? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeUnknown(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_video.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a video 6 | @immutable 7 | class FileTypeVideo extends FileType { 8 | const FileTypeVideo(); 9 | 10 | static const String constructor = 'fileTypeVideo'; 11 | 12 | static FileTypeVideo? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeVideo(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_video_note.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a video note 6 | @immutable 7 | class FileTypeVideoNote extends FileType { 8 | const FileTypeVideoNote(); 9 | 10 | static const String constructor = 'fileTypeVideoNote'; 11 | 12 | static FileTypeVideoNote? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeVideoNote(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_video_story.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a video published as a story 6 | @immutable 7 | class FileTypeVideoStory extends FileType { 8 | const FileTypeVideoStory(); 9 | 10 | static const String constructor = 'fileTypeVideoStory'; 11 | 12 | static FileTypeVideoStory? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeVideoStory(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_voice_note.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a voice note 6 | @immutable 7 | class FileTypeVoiceNote extends FileType { 8 | const FileTypeVoiceNote(); 9 | 10 | static const String constructor = 'fileTypeVoiceNote'; 11 | 12 | static FileTypeVoiceNote? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeVoiceNote(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/file_type_wallpaper.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The file is a wallpaper or a background pattern 6 | @immutable 7 | class FileTypeWallpaper extends FileType { 8 | const FileTypeWallpaper(); 9 | 10 | static const String constructor = 'fileTypeWallpaper'; 11 | 12 | static FileTypeWallpaper? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const FileTypeWallpaper(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/json_value_null.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// Represents a null JSON value 6 | @immutable 7 | class JsonValueNull extends JsonValue { 8 | const JsonValueNull(); 9 | 10 | static const String constructor = 'jsonValueNull'; 11 | 12 | static JsonValueNull? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const JsonValueNull(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/log_stream_default.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The log is written to stderr or an OS specific log 6 | @immutable 7 | class LogStreamDefault extends LogStream { 8 | const LogStreamDefault(); 9 | 10 | static const String constructor = 'logStreamDefault'; 11 | 12 | static LogStreamDefault? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const LogStreamDefault(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/log_stream_empty.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The log is written nowhere 6 | @immutable 7 | class LogStreamEmpty extends LogStream { 8 | const LogStreamEmpty(); 9 | 10 | static const String constructor = 'logStreamEmpty'; 11 | 12 | static LogStreamEmpty? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const LogStreamEmpty(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/mask_point_chin.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The mask is placed relatively to the chin 6 | @immutable 7 | class MaskPointChin extends MaskPoint { 8 | const MaskPointChin(); 9 | 10 | static const String constructor = 'maskPointChin'; 11 | 12 | static MaskPointChin? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const MaskPointChin(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/mask_point_eyes.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The mask is placed relatively to the eyes 6 | @immutable 7 | class MaskPointEyes extends MaskPoint { 8 | const MaskPointEyes(); 9 | 10 | static const String constructor = 'maskPointEyes'; 11 | 12 | static MaskPointEyes? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const MaskPointEyes(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/mask_point_forehead.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The mask is placed relatively to the forehead 6 | @immutable 7 | class MaskPointForehead extends MaskPoint { 8 | const MaskPointForehead(); 9 | 10 | static const String constructor = 'maskPointForehead'; 11 | 12 | static MaskPointForehead? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const MaskPointForehead(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/mask_point_mouth.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The mask is placed relatively to the mouth 6 | @immutable 7 | class MaskPointMouth extends MaskPoint { 8 | const MaskPointMouth(); 9 | 10 | static const String constructor = 'maskPointMouth'; 11 | 12 | static MaskPointMouth? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const MaskPointMouth(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/message_chat_delete_photo.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A deleted chat photo 6 | @immutable 7 | class MessageChatDeletePhoto extends MessageContent { 8 | const MessageChatDeletePhoto(); 9 | 10 | static const String constructor = 'messageChatDeletePhoto'; 11 | 12 | static MessageChatDeletePhoto? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const MessageChatDeletePhoto(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/message_expired_photo.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A self-destructed photo message 6 | @immutable 7 | class MessageExpiredPhoto extends MessageContent { 8 | const MessageExpiredPhoto(); 9 | 10 | static const String constructor = 'messageExpiredPhoto'; 11 | 12 | static MessageExpiredPhoto? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const MessageExpiredPhoto(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/message_expired_video.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A self-destructed video message 6 | @immutable 7 | class MessageExpiredVideo extends MessageContent { 8 | const MessageExpiredVideo(); 9 | 10 | static const String constructor = 'messageExpiredVideo'; 11 | 12 | static MessageExpiredVideo? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const MessageExpiredVideo(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/message_read_date_unread.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The message is unread yet 6 | @immutable 7 | class MessageReadDateUnread extends MessageReadDate { 8 | const MessageReadDateUnread(); 9 | 10 | static const String constructor = 'messageReadDateUnread'; 11 | 12 | static MessageReadDateUnread? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const MessageReadDateUnread(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/message_source_other.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The message is from some other source 6 | @immutable 7 | class MessageSourceOther extends MessageSource { 8 | const MessageSourceOther(); 9 | 10 | static const String constructor = 'messageSourceOther'; 11 | 12 | static MessageSourceOther? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const MessageSourceOther(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/network_type_mobile.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A mobile network 6 | @immutable 7 | class NetworkTypeMobile extends NetworkType { 8 | const NetworkTypeMobile(); 9 | 10 | static const String constructor = 'networkTypeMobile'; 11 | 12 | static NetworkTypeMobile? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const NetworkTypeMobile(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/network_type_none.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The network is not available 6 | @immutable 7 | class NetworkTypeNone extends NetworkType { 8 | const NetworkTypeNone(); 9 | 10 | static const String constructor = 'networkTypeNone'; 11 | 12 | static NetworkTypeNone? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const NetworkTypeNone(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/network_type_other.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A different network type (e.g., Ethernet network) 6 | @immutable 7 | class NetworkTypeOther extends NetworkType { 8 | const NetworkTypeOther(); 9 | 10 | static const String constructor = 'networkTypeOther'; 11 | 12 | static NetworkTypeOther? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const NetworkTypeOther(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/network_type_wi_fi.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A Wi-Fi network 6 | @immutable 7 | class NetworkTypeWiFi extends NetworkType { 8 | const NetworkTypeWiFi(); 9 | 10 | static const String constructor = 'networkTypeWiFi'; 11 | 12 | static NetworkTypeWiFi? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const NetworkTypeWiFi(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/ok.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// An object of this type is returned on a successful function call for 6 | /// certain functions 7 | @immutable 8 | class Ok extends TdObject { 9 | const Ok(); 10 | 11 | static const String constructor = 'ok'; 12 | 13 | static Ok? fromJson(Map? json) { 14 | if (json == null) { 15 | return null; 16 | } 17 | 18 | return Ok(); 19 | } 20 | 21 | @override 22 | String getConstructor() => constructor; 23 | 24 | @override 25 | Map toJson() => { 26 | '@type': constructor, 27 | }; 28 | 29 | @override 30 | bool operator ==(Object other) => overriddenEquality(other); 31 | 32 | @override 33 | int get hashCode => overriddenHashCode; 34 | } 35 | -------------------------------------------------------------------------------- /lib/src/api/objects/page_block_divider.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// An empty block separating a page 6 | @immutable 7 | class PageBlockDivider extends PageBlock { 8 | const PageBlockDivider(); 9 | 10 | static const String constructor = 'pageBlockDivider'; 11 | 12 | static PageBlockDivider? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const PageBlockDivider(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/paid_media_unsupported.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The media is unsupported 6 | @immutable 7 | class PaidMediaUnsupported extends PaidMedia { 8 | const PaidMediaUnsupported(); 9 | 10 | static const String constructor = 'paidMediaUnsupported'; 11 | 12 | static PaidMediaUnsupported? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const PaidMediaUnsupported(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/reaction_type_paid.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The paid reaction in a channel chat 6 | @immutable 7 | class ReactionTypePaid extends ReactionType { 8 | const ReactionTypePaid(); 9 | 10 | static const String constructor = 'reactionTypePaid'; 11 | 12 | static ReactionTypePaid? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ReactionTypePaid(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/report_chat_result_ok.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The chat was reported successfully 6 | @immutable 7 | class ReportChatResultOk extends ReportChatResult { 8 | const ReportChatResultOk(); 9 | 10 | static const String constructor = 'reportChatResultOk'; 11 | 12 | static ReportChatResultOk? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ReportChatResultOk(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/report_reason_custom.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A custom reason provided by the user 6 | @immutable 7 | class ReportReasonCustom extends ReportReason { 8 | const ReportReasonCustom(); 9 | 10 | static const String constructor = 'reportReasonCustom'; 11 | 12 | static ReportReasonCustom? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ReportReasonCustom(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/report_reason_fake.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The chat represents a fake account 6 | @immutable 7 | class ReportReasonFake extends ReportReason { 8 | const ReportReasonFake(); 9 | 10 | static const String constructor = 'reportReasonFake'; 11 | 12 | static ReportReasonFake? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ReportReasonFake(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/report_reason_spam.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The chat contains spam messages 6 | @immutable 7 | class ReportReasonSpam extends ReportReason { 8 | const ReportReasonSpam(); 9 | 10 | static const String constructor = 'reportReasonSpam'; 11 | 12 | static ReportReasonSpam? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ReportReasonSpam(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/report_reason_violence.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The chat promotes violence 6 | @immutable 7 | class ReportReasonViolence extends ReportReason { 8 | const ReportReasonViolence(); 9 | 10 | static const String constructor = 'reportReasonViolence'; 11 | 12 | static ReportReasonViolence? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ReportReasonViolence(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/report_story_result_ok.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The story was reported successfully 6 | @immutable 7 | class ReportStoryResultOk extends ReportStoryResult { 8 | const ReportStoryResultOk(); 9 | 10 | static const String constructor = 'reportStoryResultOk'; 11 | 12 | static ReportStoryResultOk? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ReportStoryResultOk(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/reset_password_result_ok.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The password was reset 6 | @immutable 7 | class ResetPasswordResultOk extends ResetPasswordResult { 8 | const ResetPasswordResultOk(); 9 | 10 | static const String constructor = 'resetPasswordResultOk'; 11 | 12 | static ResetPasswordResultOk? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ResetPasswordResultOk(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/secret_chat_state_closed.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The secret chat is closed 6 | @immutable 7 | class SecretChatStateClosed extends SecretChatState { 8 | const SecretChatStateClosed(); 9 | 10 | static const String constructor = 'secretChatStateClosed'; 11 | 12 | static SecretChatStateClosed? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SecretChatStateClosed(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/secret_chat_state_ready.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The secret chat is ready to use 6 | @immutable 7 | class SecretChatStateReady extends SecretChatState { 8 | const SecretChatStateReady(); 9 | 10 | static const String constructor = 'secretChatStateReady'; 11 | 12 | static SecretChatStateReady? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SecretChatStateReady(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_android.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on an Android device 6 | @immutable 7 | class SessionTypeAndroid extends SessionType { 8 | const SessionTypeAndroid(); 9 | 10 | static const String constructor = 'sessionTypeAndroid'; 11 | 12 | static SessionTypeAndroid? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeAndroid(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_apple.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on a generic Apple device 6 | @immutable 7 | class SessionTypeApple extends SessionType { 8 | const SessionTypeApple(); 9 | 10 | static const String constructor = 'sessionTypeApple'; 11 | 12 | static SessionTypeApple? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeApple(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_brave.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on the Brave browser 6 | @immutable 7 | class SessionTypeBrave extends SessionType { 8 | const SessionTypeBrave(); 9 | 10 | static const String constructor = 'sessionTypeBrave'; 11 | 12 | static SessionTypeBrave? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeBrave(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_chrome.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on the Chrome browser 6 | @immutable 7 | class SessionTypeChrome extends SessionType { 8 | const SessionTypeChrome(); 9 | 10 | static const String constructor = 'sessionTypeChrome'; 11 | 12 | static SessionTypeChrome? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeChrome(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_edge.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on the Edge browser 6 | @immutable 7 | class SessionTypeEdge extends SessionType { 8 | const SessionTypeEdge(); 9 | 10 | static const String constructor = 'sessionTypeEdge'; 11 | 12 | static SessionTypeEdge? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeEdge(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_firefox.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on the Firefox browser 6 | @immutable 7 | class SessionTypeFirefox extends SessionType { 8 | const SessionTypeFirefox(); 9 | 10 | static const String constructor = 'sessionTypeFirefox'; 11 | 12 | static SessionTypeFirefox? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeFirefox(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_ipad.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on an iPad device 6 | @immutable 7 | class SessionTypeIpad extends SessionType { 8 | const SessionTypeIpad(); 9 | 10 | static const String constructor = 'sessionTypeIpad'; 11 | 12 | static SessionTypeIpad? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeIpad(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_iphone.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on an iPhone device 6 | @immutable 7 | class SessionTypeIphone extends SessionType { 8 | const SessionTypeIphone(); 9 | 10 | static const String constructor = 'sessionTypeIphone'; 11 | 12 | static SessionTypeIphone? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeIphone(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_linux.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on a Linux device 6 | @immutable 7 | class SessionTypeLinux extends SessionType { 8 | const SessionTypeLinux(); 9 | 10 | static const String constructor = 'sessionTypeLinux'; 11 | 12 | static SessionTypeLinux? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeLinux(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_mac.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on a Mac device 6 | @immutable 7 | class SessionTypeMac extends SessionType { 8 | const SessionTypeMac(); 9 | 10 | static const String constructor = 'sessionTypeMac'; 11 | 12 | static SessionTypeMac? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeMac(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_opera.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on the Opera browser 6 | @immutable 7 | class SessionTypeOpera extends SessionType { 8 | const SessionTypeOpera(); 9 | 10 | static const String constructor = 'sessionTypeOpera'; 11 | 12 | static SessionTypeOpera? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeOpera(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_safari.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on the Safari browser 6 | @immutable 7 | class SessionTypeSafari extends SessionType { 8 | const SessionTypeSafari(); 9 | 10 | static const String constructor = 'sessionTypeSafari'; 11 | 12 | static SessionTypeSafari? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeSafari(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_ubuntu.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on an Ubuntu device 6 | @immutable 7 | class SessionTypeUbuntu extends SessionType { 8 | const SessionTypeUbuntu(); 9 | 10 | static const String constructor = 'sessionTypeUbuntu'; 11 | 12 | static SessionTypeUbuntu? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeUbuntu(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_vivaldi.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on the Vivaldi browser 6 | @immutable 7 | class SessionTypeVivaldi extends SessionType { 8 | const SessionTypeVivaldi(); 9 | 10 | static const String constructor = 'sessionTypeVivaldi'; 11 | 12 | static SessionTypeVivaldi? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeVivaldi(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_windows.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on a Windows device 6 | @immutable 7 | class SessionTypeWindows extends SessionType { 8 | const SessionTypeWindows(); 9 | 10 | static const String constructor = 'sessionTypeWindows'; 11 | 12 | static SessionTypeWindows? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeWindows(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/session_type_xbox.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The session is running on an Xbox console 6 | @immutable 7 | class SessionTypeXbox extends SessionType { 8 | const SessionTypeXbox(); 9 | 10 | static const String constructor = 'sessionTypeXbox'; 11 | 12 | static SessionTypeXbox? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const SessionTypeXbox(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/sticker_format_tgs.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The sticker is an animation in TGS format 6 | @immutable 7 | class StickerFormatTgs extends StickerFormat { 8 | const StickerFormatTgs(); 9 | 10 | static const String constructor = 'stickerFormatTgs'; 11 | 12 | static StickerFormatTgs? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const StickerFormatTgs(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/sticker_format_webm.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The sticker is a video in WEBM format 6 | @immutable 7 | class StickerFormatWebm extends StickerFormat { 8 | const StickerFormatWebm(); 9 | 10 | static const String constructor = 'stickerFormatWebm'; 11 | 12 | static StickerFormatWebm? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const StickerFormatWebm(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/sticker_format_webp.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The sticker is an image in WEBP format 6 | @immutable 7 | class StickerFormatWebp extends StickerFormat { 8 | const StickerFormatWebp(); 9 | 10 | static const String constructor = 'stickerFormatWebp'; 11 | 12 | static StickerFormatWebp? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const StickerFormatWebp(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/sticker_type_regular.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The sticker is a regular sticker 6 | @immutable 7 | class StickerTypeRegular extends StickerType { 8 | const StickerTypeRegular(); 9 | 10 | static const String constructor = 'stickerTypeRegular'; 11 | 12 | static StickerTypeRegular? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const StickerTypeRegular(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/story_list_archive.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The list of stories, shown in the Arvhive chat list 6 | @immutable 7 | class StoryListArchive extends StoryList { 8 | const StoryListArchive(); 9 | 10 | static const String constructor = 'storyListArchive'; 11 | 12 | static StoryListArchive? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const StoryListArchive(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/story_list_main.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The list of stories, shown in the main chat list and folder chat lists 6 | @immutable 7 | class StoryListMain extends StoryList { 8 | const StoryListMain(); 9 | 10 | static const String constructor = 'storyListMain'; 11 | 12 | static StoryListMain? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const StoryListMain(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/target_chat_current.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The currently opened chat needs to be kept 6 | @immutable 7 | class TargetChatCurrent extends TargetChat { 8 | const TargetChatCurrent(); 9 | 10 | static const String constructor = 'targetChatCurrent'; 11 | 12 | static TargetChatCurrent? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const TargetChatCurrent(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/text_entity_type_bold.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A bold text 6 | @immutable 7 | class TextEntityTypeBold extends TextEntityType { 8 | const TextEntityTypeBold(); 9 | 10 | static const String constructor = 'textEntityTypeBold'; 11 | 12 | static TextEntityTypeBold? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const TextEntityTypeBold(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/text_entity_type_italic.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// An italic text 6 | @immutable 7 | class TextEntityTypeItalic extends TextEntityType { 8 | const TextEntityTypeItalic(); 9 | 10 | static const String constructor = 'textEntityTypeItalic'; 11 | 12 | static TextEntityTypeItalic? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const TextEntityTypeItalic(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/text_entity_type_spoiler.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A spoiler text 6 | @immutable 7 | class TextEntityTypeSpoiler extends TextEntityType { 8 | const TextEntityTypeSpoiler(); 9 | 10 | static const String constructor = 'textEntityTypeSpoiler'; 11 | 12 | static TextEntityTypeSpoiler? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const TextEntityTypeSpoiler(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/text_entity_type_url.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// An HTTP URL 6 | @immutable 7 | class TextEntityTypeUrl extends TextEntityType { 8 | const TextEntityTypeUrl(); 9 | 10 | static const String constructor = 'textEntityTypeUrl'; 11 | 12 | static TextEntityTypeUrl? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const TextEntityTypeUrl(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/thumbnail_format_jpeg.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The thumbnail is in JPEG format 6 | @immutable 7 | class ThumbnailFormatJpeg extends ThumbnailFormat { 8 | const ThumbnailFormatJpeg(); 9 | 10 | static const String constructor = 'thumbnailFormatJpeg'; 11 | 12 | static ThumbnailFormatJpeg? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const ThumbnailFormatJpeg(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/user_status_empty.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// The user's status has never been changed 6 | @immutable 7 | class UserStatusEmpty extends UserStatus { 8 | const UserStatusEmpty(); 9 | 10 | static const String constructor = 'userStatusEmpty'; 11 | 12 | static UserStatusEmpty? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const UserStatusEmpty(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/api/objects/user_type_regular.dart: -------------------------------------------------------------------------------- 1 | import 'package:meta/meta.dart'; 2 | import '../extensions/data_class_extensions.dart'; 3 | import '../tdapi.dart'; 4 | 5 | /// A regular user 6 | @immutable 7 | class UserTypeRegular extends UserType { 8 | const UserTypeRegular(); 9 | 10 | static const String constructor = 'userTypeRegular'; 11 | 12 | static UserTypeRegular? fromJson(Map? json) { 13 | if (json == null) { 14 | return null; 15 | } 16 | 17 | return const UserTypeRegular(); 18 | } 19 | 20 | @override 21 | String getConstructor() => constructor; 22 | 23 | @override 24 | Map toJson() => { 25 | '@type': constructor, 26 | }; 27 | 28 | @override 29 | bool operator ==(Object other) => overriddenEquality(other); 30 | 31 | @override 32 | int get hashCode => overriddenHashCode; 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/client/platform/io/receive_isolate_data.dart: -------------------------------------------------------------------------------- 1 | import 'dart:isolate'; 2 | 3 | class ReceiveIsolateData { 4 | final SendPort isolateToMainPort; 5 | final int clientAddress; 6 | 7 | ReceiveIsolateData({ 8 | required this.isolateToMainPort, 9 | required this.clientAddress, 10 | }); 11 | } 12 | -------------------------------------------------------------------------------- /lib/src/client/platform/platform.dart: -------------------------------------------------------------------------------- 1 | import 'package:tdlib/td_api.dart'; 2 | 3 | abstract class Platform { 4 | void send({required Map function}); 5 | 6 | Map execute({required Map function}); 7 | 8 | Future initialize(); 9 | 10 | Stream get events; 11 | 12 | void destroy(); 13 | } 14 | 15 | class Event { 16 | final TdObject object; 17 | final int? extra; 18 | 19 | Event({required this.object, required this.extra}); 20 | } 21 | -------------------------------------------------------------------------------- /lib/src/client/platform/web/web_platform.dart: -------------------------------------------------------------------------------- 1 | import '../platform.dart'; 2 | 3 | class PlatformImpl implements Platform { 4 | @override 5 | void destroy() { 6 | // TODO: implement destroy 7 | throw UnimplementedError(); 8 | } 9 | 10 | @override 11 | // TODO: implement events 12 | Stream get events => throw UnimplementedError(); 13 | 14 | @override 15 | Map execute({required Map function}) { 16 | // TODO: implement execute 17 | throw UnimplementedError(); 18 | } 19 | 20 | @override 21 | Future initialize() { 22 | // TODO: implement initialize 23 | throw UnimplementedError(); 24 | } 25 | 26 | @override 27 | void send({required Map function}) { 28 | // TODO: implement send 29 | throw UnimplementedError(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/src/client/td_error.dart: -------------------------------------------------------------------------------- 1 | class TdError extends Error { 2 | TdError(this.message); 3 | 4 | final String message; 5 | 6 | @override 7 | String toString() => message; 8 | } 9 | -------------------------------------------------------------------------------- /lib/src/client/td_function_exception.dart: -------------------------------------------------------------------------------- 1 | import '../../td_api.dart'; 2 | 3 | class TdFunctionException implements Exception { 4 | TdFunctionException({ 5 | required this.error, 6 | required this.function, 7 | }); 8 | 9 | final TdFunction function; 10 | final TdError error; 11 | 12 | @override 13 | String toString() => 14 | 'TdFunctionException(function: ${function.toJson()}, error: ${error.toJson()})'; 15 | } 16 | -------------------------------------------------------------------------------- /lib/td_api.dart: -------------------------------------------------------------------------------- 1 | library td_api; 2 | 3 | export 'src/api/tdapi.dart'; 4 | export 'src/api/extensions/convert_extensions.dart'; 5 | export 'src/api/extensions/extensions.dart'; 6 | -------------------------------------------------------------------------------- /lib/td_client.dart: -------------------------------------------------------------------------------- 1 | library td_client; 2 | 3 | export 'src/client/client.dart'; 4 | export 'src/client/td_function_exception.dart'; 5 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: tdlib 2 | 3 | environment: 4 | sdk: ">=2.16.0 <3.0.0" 5 | 6 | dependencies: 7 | collection: ^1.0.0 8 | ffi: ^2.0.0 9 | meta: ^1.0.0 10 | rxdart: '>=0.26.0 <1.0.0' --------------------------------------------------------------------------------