package tg

Import Path
	github.com/gotd/td/tg (on go.dev)

Dependency Relation
	imports 14 packages, and imported by 9 packages

Involved Source Files json_invoke.go Package tg contains generated types from MTProto Telegram API. tl_access_point_rule_gen.go tl_access_point_rule_slices_gen.go tl_account_accept_authorization_gen.go tl_account_accept_authorization_slices_gen.go tl_account_authorization_form_gen.go tl_account_authorization_form_slices_gen.go tl_account_authorizations_gen.go tl_account_authorizations_slices_gen.go tl_account_auto_download_settings_gen.go tl_account_auto_download_settings_slices_gen.go tl_account_auto_save_settings_gen.go tl_account_auto_save_settings_slices_gen.go tl_account_business_chat_links_gen.go tl_account_business_chat_links_slices_gen.go tl_account_cancel_password_email_gen.go tl_account_cancel_password_email_slices_gen.go tl_account_change_authorization_settings_gen.go tl_account_change_authorization_settings_slices_gen.go tl_account_change_phone_gen.go tl_account_change_phone_slices_gen.go tl_account_chat_themes_gen.go tl_account_chat_themes_slices_gen.go tl_account_check_username_gen.go tl_account_check_username_slices_gen.go tl_account_clear_recent_emoji_statuses_gen.go tl_account_clear_recent_emoji_statuses_slices_gen.go tl_account_confirm_bot_connection_gen.go tl_account_confirm_bot_connection_slices_gen.go tl_account_confirm_password_email_gen.go tl_account_confirm_password_email_slices_gen.go tl_account_confirm_phone_gen.go tl_account_confirm_phone_slices_gen.go tl_account_connected_bots_gen.go tl_account_connected_bots_slices_gen.go tl_account_content_settings_gen.go tl_account_content_settings_slices_gen.go tl_account_create_business_chat_link_gen.go tl_account_create_business_chat_link_slices_gen.go tl_account_create_theme_gen.go tl_account_create_theme_slices_gen.go tl_account_days_ttl_gen.go tl_account_days_ttl_slices_gen.go tl_account_decline_password_reset_gen.go tl_account_decline_password_reset_slices_gen.go tl_account_delete_account_gen.go tl_account_delete_account_slices_gen.go tl_account_delete_auto_save_exceptions_gen.go tl_account_delete_auto_save_exceptions_slices_gen.go tl_account_delete_business_chat_link_gen.go tl_account_delete_business_chat_link_slices_gen.go tl_account_delete_passkey_gen.go tl_account_delete_passkey_slices_gen.go tl_account_delete_secure_value_gen.go tl_account_delete_secure_value_slices_gen.go tl_account_delete_web_browser_settings_exceptions_gen.go tl_account_delete_web_browser_settings_exceptions_slices_gen.go tl_account_disable_peer_connected_bot_gen.go tl_account_disable_peer_connected_bot_slices_gen.go tl_account_edit_business_chat_link_gen.go tl_account_edit_business_chat_link_slices_gen.go tl_account_email_verified_gen.go tl_account_email_verified_slices_gen.go tl_account_emoji_statuses_gen.go tl_account_emoji_statuses_slices_gen.go tl_account_finish_takeout_session_gen.go tl_account_finish_takeout_session_slices_gen.go tl_account_get_account_ttl_gen.go tl_account_get_account_ttl_slices_gen.go tl_account_get_all_secure_values_gen.go tl_account_get_all_secure_values_slices_gen.go tl_account_get_authorization_form_gen.go tl_account_get_authorization_form_slices_gen.go tl_account_get_authorizations_gen.go tl_account_get_authorizations_slices_gen.go tl_account_get_auto_download_settings_gen.go tl_account_get_auto_download_settings_slices_gen.go tl_account_get_auto_save_settings_gen.go tl_account_get_auto_save_settings_slices_gen.go tl_account_get_bot_business_connection_gen.go tl_account_get_bot_business_connection_slices_gen.go tl_account_get_business_chat_links_gen.go tl_account_get_business_chat_links_slices_gen.go tl_account_get_channel_default_emoji_statuses_gen.go tl_account_get_channel_default_emoji_statuses_slices_gen.go tl_account_get_channel_restricted_status_emojis_gen.go tl_account_get_channel_restricted_status_emojis_slices_gen.go tl_account_get_chat_themes_gen.go tl_account_get_chat_themes_slices_gen.go tl_account_get_collectible_emoji_statuses_gen.go tl_account_get_collectible_emoji_statuses_slices_gen.go tl_account_get_connected_bots_gen.go tl_account_get_connected_bots_slices_gen.go tl_account_get_contact_sign_up_notification_gen.go tl_account_get_contact_sign_up_notification_slices_gen.go tl_account_get_content_settings_gen.go tl_account_get_content_settings_slices_gen.go tl_account_get_default_background_emojis_gen.go tl_account_get_default_background_emojis_slices_gen.go tl_account_get_default_emoji_statuses_gen.go tl_account_get_default_emoji_statuses_slices_gen.go tl_account_get_default_group_photo_emojis_gen.go tl_account_get_default_group_photo_emojis_slices_gen.go tl_account_get_default_profile_photo_emojis_gen.go tl_account_get_default_profile_photo_emojis_slices_gen.go tl_account_get_global_privacy_settings_gen.go tl_account_get_global_privacy_settings_slices_gen.go tl_account_get_multi_wall_papers_gen.go tl_account_get_multi_wall_papers_slices_gen.go tl_account_get_notify_exceptions_gen.go tl_account_get_notify_exceptions_slices_gen.go tl_account_get_notify_settings_gen.go tl_account_get_notify_settings_slices_gen.go tl_account_get_paid_messages_revenue_gen.go tl_account_get_paid_messages_revenue_slices_gen.go tl_account_get_passkeys_gen.go tl_account_get_passkeys_slices_gen.go tl_account_get_password_gen.go tl_account_get_password_settings_gen.go tl_account_get_password_settings_slices_gen.go tl_account_get_password_slices_gen.go tl_account_get_privacy_gen.go tl_account_get_privacy_slices_gen.go tl_account_get_reactions_notify_settings_gen.go tl_account_get_reactions_notify_settings_slices_gen.go tl_account_get_recent_emoji_statuses_gen.go tl_account_get_recent_emoji_statuses_slices_gen.go tl_account_get_saved_music_ids_gen.go tl_account_get_saved_music_ids_slices_gen.go tl_account_get_saved_ringtones_gen.go tl_account_get_saved_ringtones_slices_gen.go tl_account_get_secure_value_gen.go tl_account_get_secure_value_slices_gen.go tl_account_get_theme_gen.go tl_account_get_theme_slices_gen.go tl_account_get_themes_gen.go tl_account_get_themes_slices_gen.go tl_account_get_tmp_password_gen.go tl_account_get_tmp_password_slices_gen.go tl_account_get_unique_gift_chat_themes_gen.go tl_account_get_unique_gift_chat_themes_slices_gen.go tl_account_get_wall_paper_gen.go tl_account_get_wall_paper_slices_gen.go tl_account_get_wall_papers_gen.go tl_account_get_wall_papers_slices_gen.go tl_account_get_web_authorizations_gen.go tl_account_get_web_authorizations_slices_gen.go tl_account_get_web_browser_settings_gen.go tl_account_get_web_browser_settings_slices_gen.go tl_account_init_passkey_registration_gen.go tl_account_init_passkey_registration_slices_gen.go tl_account_init_takeout_session_gen.go tl_account_init_takeout_session_slices_gen.go tl_account_install_theme_gen.go tl_account_install_theme_slices_gen.go tl_account_install_wall_paper_gen.go tl_account_install_wall_paper_slices_gen.go tl_account_invalidate_sign_in_codes_gen.go tl_account_invalidate_sign_in_codes_slices_gen.go tl_account_paid_messages_revenue_gen.go tl_account_paid_messages_revenue_slices_gen.go tl_account_passkey_registration_options_gen.go tl_account_passkey_registration_options_slices_gen.go tl_account_passkeys_gen.go tl_account_passkeys_slices_gen.go tl_account_password_gen.go tl_account_password_input_settings_gen.go tl_account_password_input_settings_slices_gen.go tl_account_password_settings_gen.go tl_account_password_settings_slices_gen.go tl_account_password_slices_gen.go tl_account_privacy_rules_gen.go tl_account_privacy_rules_slices_gen.go tl_account_register_device_gen.go tl_account_register_device_slices_gen.go tl_account_register_passkey_gen.go tl_account_register_passkey_slices_gen.go tl_account_reorder_usernames_gen.go tl_account_reorder_usernames_slices_gen.go tl_account_report_peer_gen.go tl_account_report_peer_slices_gen.go tl_account_report_profile_photo_gen.go tl_account_report_profile_photo_slices_gen.go tl_account_resend_password_email_gen.go tl_account_resend_password_email_slices_gen.go tl_account_reset_authorization_gen.go tl_account_reset_authorization_slices_gen.go tl_account_reset_notify_settings_gen.go tl_account_reset_notify_settings_slices_gen.go tl_account_reset_password_gen.go tl_account_reset_password_result_gen.go tl_account_reset_password_result_slices_gen.go tl_account_reset_password_slices_gen.go tl_account_reset_wall_papers_gen.go tl_account_reset_wall_papers_slices_gen.go tl_account_reset_web_authorization_gen.go tl_account_reset_web_authorization_slices_gen.go tl_account_reset_web_authorizations_gen.go tl_account_reset_web_authorizations_slices_gen.go tl_account_resolve_business_chat_link_gen.go tl_account_resolve_business_chat_link_slices_gen.go tl_account_resolved_business_chat_links_gen.go tl_account_resolved_business_chat_links_slices_gen.go tl_account_save_auto_download_settings_gen.go tl_account_save_auto_download_settings_slices_gen.go tl_account_save_auto_save_settings_gen.go tl_account_save_auto_save_settings_slices_gen.go tl_account_save_music_gen.go tl_account_save_music_slices_gen.go tl_account_save_ringtone_gen.go tl_account_save_ringtone_slices_gen.go tl_account_save_secure_value_gen.go tl_account_save_secure_value_slices_gen.go tl_account_save_theme_gen.go tl_account_save_theme_slices_gen.go tl_account_save_wall_paper_gen.go tl_account_save_wall_paper_slices_gen.go tl_account_saved_music_ids_gen.go tl_account_saved_music_ids_slices_gen.go tl_account_saved_ringtone_gen.go tl_account_saved_ringtone_slices_gen.go tl_account_saved_ringtones_gen.go tl_account_saved_ringtones_slices_gen.go tl_account_send_change_phone_code_gen.go tl_account_send_change_phone_code_slices_gen.go tl_account_send_confirm_phone_code_gen.go tl_account_send_confirm_phone_code_slices_gen.go tl_account_send_verify_email_code_gen.go tl_account_send_verify_email_code_slices_gen.go tl_account_send_verify_phone_code_gen.go tl_account_send_verify_phone_code_slices_gen.go tl_account_sent_email_code_gen.go tl_account_sent_email_code_slices_gen.go tl_account_set_account_ttl_gen.go tl_account_set_account_ttl_slices_gen.go tl_account_set_authorization_ttl_gen.go tl_account_set_authorization_ttl_slices_gen.go tl_account_set_contact_sign_up_notification_gen.go tl_account_set_contact_sign_up_notification_slices_gen.go tl_account_set_content_settings_gen.go tl_account_set_content_settings_slices_gen.go tl_account_set_global_privacy_settings_gen.go tl_account_set_global_privacy_settings_slices_gen.go tl_account_set_main_profile_tab_gen.go tl_account_set_main_profile_tab_slices_gen.go tl_account_set_privacy_gen.go tl_account_set_privacy_slices_gen.go tl_account_set_reactions_notify_settings_gen.go tl_account_set_reactions_notify_settings_slices_gen.go tl_account_takeout_gen.go tl_account_takeout_slices_gen.go tl_account_themes_gen.go tl_account_themes_slices_gen.go tl_account_tmp_password_gen.go tl_account_tmp_password_slices_gen.go tl_account_toggle_connected_bot_paused_gen.go tl_account_toggle_connected_bot_paused_slices_gen.go tl_account_toggle_no_paid_messages_exception_gen.go tl_account_toggle_no_paid_messages_exception_slices_gen.go tl_account_toggle_sponsored_messages_gen.go tl_account_toggle_sponsored_messages_slices_gen.go tl_account_toggle_username_gen.go tl_account_toggle_username_slices_gen.go tl_account_toggle_web_browser_settings_exception_gen.go tl_account_toggle_web_browser_settings_exception_slices_gen.go tl_account_unregister_device_gen.go tl_account_unregister_device_slices_gen.go tl_account_update_birthday_gen.go tl_account_update_birthday_slices_gen.go tl_account_update_business_away_message_gen.go tl_account_update_business_away_message_slices_gen.go tl_account_update_business_greeting_message_gen.go tl_account_update_business_greeting_message_slices_gen.go tl_account_update_business_intro_gen.go tl_account_update_business_intro_slices_gen.go tl_account_update_business_location_gen.go tl_account_update_business_location_slices_gen.go tl_account_update_business_work_hours_gen.go tl_account_update_business_work_hours_slices_gen.go tl_account_update_color_gen.go tl_account_update_color_slices_gen.go tl_account_update_connected_bot_gen.go tl_account_update_connected_bot_slices_gen.go tl_account_update_device_locked_gen.go tl_account_update_device_locked_slices_gen.go tl_account_update_emoji_status_gen.go tl_account_update_emoji_status_slices_gen.go tl_account_update_notify_settings_gen.go tl_account_update_notify_settings_slices_gen.go tl_account_update_password_settings_gen.go tl_account_update_password_settings_slices_gen.go tl_account_update_personal_channel_gen.go tl_account_update_personal_channel_slices_gen.go tl_account_update_profile_gen.go tl_account_update_profile_slices_gen.go tl_account_update_status_gen.go tl_account_update_status_slices_gen.go tl_account_update_theme_gen.go tl_account_update_theme_slices_gen.go tl_account_update_username_gen.go tl_account_update_username_slices_gen.go tl_account_update_web_browser_settings_gen.go tl_account_update_web_browser_settings_slices_gen.go tl_account_upload_ringtone_gen.go tl_account_upload_ringtone_slices_gen.go tl_account_upload_theme_gen.go tl_account_upload_theme_slices_gen.go tl_account_upload_wall_paper_gen.go tl_account_upload_wall_paper_slices_gen.go tl_account_verify_email_gen.go tl_account_verify_email_slices_gen.go tl_account_verify_phone_gen.go tl_account_verify_phone_slices_gen.go tl_account_wall_papers_gen.go tl_account_wall_papers_slices_gen.go tl_account_web_authorizations_gen.go tl_account_web_authorizations_slices_gen.go tl_account_web_browser_settings_gen.go tl_account_web_browser_settings_slices_gen.go tl_ai_compose_tone_example_gen.go tl_ai_compose_tone_example_slices_gen.go tl_ai_compose_tone_gen.go tl_ai_compose_tone_slices_gen.go tl_aicompose_create_tone_gen.go tl_aicompose_create_tone_slices_gen.go tl_aicompose_delete_tone_gen.go tl_aicompose_delete_tone_slices_gen.go tl_aicompose_get_tone_example_gen.go tl_aicompose_get_tone_example_slices_gen.go tl_aicompose_get_tone_gen.go tl_aicompose_get_tone_slices_gen.go tl_aicompose_get_tones_gen.go tl_aicompose_get_tones_slices_gen.go tl_aicompose_save_tone_gen.go tl_aicompose_save_tone_slices_gen.go tl_aicompose_tones_gen.go tl_aicompose_tones_slices_gen.go tl_aicompose_update_tone_gen.go tl_aicompose_update_tone_slices_gen.go tl_attach_menu_bot_gen.go tl_attach_menu_bot_icon_color_gen.go tl_attach_menu_bot_icon_color_slices_gen.go tl_attach_menu_bot_icon_gen.go tl_attach_menu_bot_icon_slices_gen.go tl_attach_menu_bot_slices_gen.go tl_attach_menu_bots_bot_gen.go tl_attach_menu_bots_bot_slices_gen.go tl_attach_menu_bots_gen.go tl_attach_menu_bots_slices_gen.go tl_attach_menu_peer_type_gen.go tl_attach_menu_peer_type_slices_gen.go tl_auction_bid_level_gen.go tl_auction_bid_level_slices_gen.go tl_auth_accept_login_token_gen.go tl_auth_accept_login_token_slices_gen.go tl_auth_authorization_gen.go tl_auth_authorization_slices_gen.go tl_auth_bind_temp_auth_key_gen.go tl_auth_bind_temp_auth_key_slices_gen.go tl_auth_cancel_code_gen.go tl_auth_cancel_code_slices_gen.go tl_auth_check_paid_auth_gen.go tl_auth_check_paid_auth_slices_gen.go tl_auth_check_password_gen.go tl_auth_check_password_slices_gen.go tl_auth_check_recovery_password_gen.go tl_auth_check_recovery_password_slices_gen.go tl_auth_code_type_gen.go tl_auth_code_type_slices_gen.go tl_auth_drop_temp_auth_keys_gen.go tl_auth_drop_temp_auth_keys_slices_gen.go tl_auth_export_authorization_gen.go tl_auth_export_authorization_slices_gen.go tl_auth_export_login_token_gen.go tl_auth_export_login_token_slices_gen.go tl_auth_exported_authorization_gen.go tl_auth_exported_authorization_slices_gen.go tl_auth_finish_passkey_login_gen.go tl_auth_finish_passkey_login_slices_gen.go tl_auth_import_authorization_gen.go tl_auth_import_authorization_slices_gen.go tl_auth_import_bot_authorization_gen.go tl_auth_import_bot_authorization_slices_gen.go tl_auth_import_login_token_gen.go tl_auth_import_login_token_slices_gen.go tl_auth_import_web_token_authorization_gen.go tl_auth_import_web_token_authorization_slices_gen.go tl_auth_init_passkey_login_gen.go tl_auth_init_passkey_login_slices_gen.go tl_auth_log_out_gen.go tl_auth_log_out_slices_gen.go tl_auth_logged_out_gen.go tl_auth_logged_out_slices_gen.go tl_auth_login_token_gen.go tl_auth_login_token_slices_gen.go tl_auth_passkey_login_options_gen.go tl_auth_passkey_login_options_slices_gen.go tl_auth_password_recovery_gen.go tl_auth_password_recovery_slices_gen.go tl_auth_recover_password_gen.go tl_auth_recover_password_slices_gen.go tl_auth_report_missing_code_gen.go tl_auth_report_missing_code_slices_gen.go tl_auth_request_firebase_sms_gen.go tl_auth_request_firebase_sms_slices_gen.go tl_auth_request_password_recovery_gen.go tl_auth_request_password_recovery_slices_gen.go tl_auth_resend_code_gen.go tl_auth_resend_code_slices_gen.go tl_auth_reset_authorizations_gen.go tl_auth_reset_authorizations_slices_gen.go tl_auth_reset_login_email_gen.go tl_auth_reset_login_email_slices_gen.go tl_auth_send_code_gen.go tl_auth_send_code_slices_gen.go tl_auth_sent_code_gen.go tl_auth_sent_code_slices_gen.go tl_auth_sent_code_type_gen.go tl_auth_sent_code_type_slices_gen.go tl_auth_sign_in_gen.go tl_auth_sign_in_slices_gen.go tl_auth_sign_up_gen.go tl_auth_sign_up_slices_gen.go tl_authorization_gen.go tl_authorization_slices_gen.go tl_auto_download_settings_gen.go tl_auto_download_settings_slices_gen.go tl_auto_save_exception_gen.go tl_auto_save_exception_slices_gen.go tl_auto_save_settings_gen.go tl_auto_save_settings_slices_gen.go tl_available_effect_gen.go tl_available_effect_slices_gen.go tl_available_reaction_gen.go tl_available_reaction_slices_gen.go tl_bank_card_open_url_gen.go tl_bank_card_open_url_slices_gen.go tl_base_theme_gen.go tl_base_theme_slices_gen.go tl_birthday_gen.go tl_birthday_slices_gen.go tl_bool_gen.go tl_bool_slices_gen.go tl_boost_gen.go tl_boost_slices_gen.go tl_bot_app_gen.go tl_bot_app_settings_gen.go tl_bot_app_settings_slices_gen.go tl_bot_app_slices_gen.go tl_bot_business_connection_gen.go tl_bot_business_connection_slices_gen.go tl_bot_command_gen.go tl_bot_command_scope_gen.go tl_bot_command_scope_slices_gen.go tl_bot_command_slices_gen.go tl_bot_command_vector_gen.go tl_bot_command_vector_slices_gen.go tl_bot_info_gen.go tl_bot_info_slices_gen.go tl_bot_inline_message_gen.go tl_bot_inline_message_slices_gen.go tl_bot_inline_result_gen.go tl_bot_inline_result_slices_gen.go tl_bot_menu_button_gen.go tl_bot_menu_button_slices_gen.go tl_bot_preview_media_gen.go tl_bot_preview_media_slices_gen.go tl_bot_preview_media_vector_gen.go tl_bot_preview_media_vector_slices_gen.go tl_bot_verification_gen.go tl_bot_verification_slices_gen.go tl_bot_verifier_settings_gen.go tl_bot_verifier_settings_slices_gen.go tl_bots_access_settings_gen.go tl_bots_access_settings_slices_gen.go tl_bots_add_preview_media_gen.go tl_bots_add_preview_media_slices_gen.go tl_bots_allow_send_message_gen.go tl_bots_allow_send_message_slices_gen.go tl_bots_answer_webhook_json_query_gen.go tl_bots_answer_webhook_json_query_slices_gen.go tl_bots_bot_info_gen.go tl_bots_bot_info_slices_gen.go tl_bots_can_send_message_gen.go tl_bots_can_send_message_slices_gen.go tl_bots_check_download_file_params_gen.go tl_bots_check_download_file_params_slices_gen.go tl_bots_check_username_gen.go tl_bots_check_username_slices_gen.go tl_bots_create_bot_gen.go tl_bots_create_bot_slices_gen.go tl_bots_delete_preview_media_gen.go tl_bots_delete_preview_media_slices_gen.go tl_bots_edit_access_settings_gen.go tl_bots_edit_access_settings_slices_gen.go tl_bots_edit_preview_media_gen.go tl_bots_edit_preview_media_slices_gen.go tl_bots_export_bot_token_gen.go tl_bots_export_bot_token_slices_gen.go tl_bots_exported_bot_token_gen.go tl_bots_exported_bot_token_slices_gen.go tl_bots_get_access_settings_gen.go tl_bots_get_access_settings_slices_gen.go tl_bots_get_admined_bots_gen.go tl_bots_get_admined_bots_slices_gen.go tl_bots_get_bot_commands_gen.go tl_bots_get_bot_commands_slices_gen.go tl_bots_get_bot_info_gen.go tl_bots_get_bot_info_slices_gen.go tl_bots_get_bot_menu_button_gen.go tl_bots_get_bot_menu_button_slices_gen.go tl_bots_get_bot_recommendations_gen.go tl_bots_get_bot_recommendations_slices_gen.go tl_bots_get_popular_app_bots_gen.go tl_bots_get_popular_app_bots_slices_gen.go tl_bots_get_preview_info_gen.go tl_bots_get_preview_info_slices_gen.go tl_bots_get_preview_medias_gen.go tl_bots_get_preview_medias_slices_gen.go tl_bots_get_requested_web_view_button_gen.go tl_bots_get_requested_web_view_button_slices_gen.go tl_bots_invoke_web_view_custom_method_gen.go tl_bots_invoke_web_view_custom_method_slices_gen.go tl_bots_popular_app_bots_gen.go tl_bots_popular_app_bots_slices_gen.go tl_bots_preview_info_gen.go tl_bots_preview_info_slices_gen.go tl_bots_reorder_preview_medias_gen.go tl_bots_reorder_preview_medias_slices_gen.go tl_bots_reorder_usernames_gen.go tl_bots_reorder_usernames_slices_gen.go tl_bots_request_web_view_button_gen.go tl_bots_request_web_view_button_slices_gen.go tl_bots_requested_button_gen.go tl_bots_requested_button_slices_gen.go tl_bots_reset_bot_commands_gen.go tl_bots_reset_bot_commands_slices_gen.go tl_bots_send_custom_request_gen.go tl_bots_send_custom_request_slices_gen.go tl_bots_set_bot_broadcast_default_admin_rights_gen.go tl_bots_set_bot_broadcast_default_admin_rights_slices_gen.go tl_bots_set_bot_commands_gen.go tl_bots_set_bot_commands_slices_gen.go tl_bots_set_bot_group_default_admin_rights_gen.go tl_bots_set_bot_group_default_admin_rights_slices_gen.go tl_bots_set_bot_info_gen.go tl_bots_set_bot_info_slices_gen.go tl_bots_set_bot_menu_button_gen.go tl_bots_set_bot_menu_button_slices_gen.go tl_bots_set_custom_verification_gen.go tl_bots_set_custom_verification_slices_gen.go tl_bots_set_join_chat_results_gen.go tl_bots_set_join_chat_results_slices_gen.go tl_bots_toggle_user_emoji_status_permission_gen.go tl_bots_toggle_user_emoji_status_permission_slices_gen.go tl_bots_toggle_username_gen.go tl_bots_toggle_username_slices_gen.go tl_bots_update_star_ref_program_gen.go tl_bots_update_star_ref_program_slices_gen.go tl_bots_update_user_emoji_status_gen.go tl_bots_update_user_emoji_status_slices_gen.go tl_business_away_message_gen.go tl_business_away_message_schedule_gen.go tl_business_away_message_schedule_slices_gen.go tl_business_away_message_slices_gen.go tl_business_bot_recipients_gen.go tl_business_bot_recipients_slices_gen.go tl_business_bot_rights_gen.go tl_business_bot_rights_slices_gen.go tl_business_chat_link_gen.go tl_business_chat_link_slices_gen.go tl_business_greeting_message_gen.go tl_business_greeting_message_slices_gen.go tl_business_intro_gen.go tl_business_intro_slices_gen.go tl_business_location_gen.go tl_business_location_slices_gen.go tl_business_recipients_gen.go tl_business_recipients_slices_gen.go tl_business_weekly_open_gen.go tl_business_weekly_open_slices_gen.go tl_business_work_hours_gen.go tl_business_work_hours_slices_gen.go tl_bytes_gen.go tl_bytes_slices_gen.go tl_cdn_config_gen.go tl_cdn_config_slices_gen.go tl_cdn_public_key_gen.go tl_cdn_public_key_slices_gen.go tl_channel_admin_log_event_action_gen.go tl_channel_admin_log_event_action_slices_gen.go tl_channel_admin_log_event_gen.go tl_channel_admin_log_event_slices_gen.go tl_channel_admin_log_events_filter_gen.go tl_channel_admin_log_events_filter_slices_gen.go tl_channel_location_gen.go tl_channel_location_slices_gen.go tl_channel_messages_filter_gen.go tl_channel_messages_filter_slices_gen.go tl_channel_participant_gen.go tl_channel_participant_slices_gen.go tl_channel_participants_filter_gen.go tl_channel_participants_filter_slices_gen.go tl_channels_admin_log_results_gen.go tl_channels_admin_log_results_slices_gen.go tl_channels_channel_participant_gen.go tl_channels_channel_participant_slices_gen.go tl_channels_channel_participants_gen.go tl_channels_channel_participants_slices_gen.go tl_channels_check_search_posts_flood_gen.go tl_channels_check_search_posts_flood_slices_gen.go tl_channels_check_username_gen.go tl_channels_check_username_slices_gen.go tl_channels_convert_to_gigagroup_gen.go tl_channels_convert_to_gigagroup_slices_gen.go tl_channels_create_channel_gen.go tl_channels_create_channel_slices_gen.go tl_channels_deactivate_all_usernames_gen.go tl_channels_deactivate_all_usernames_slices_gen.go tl_channels_delete_channel_gen.go tl_channels_delete_channel_slices_gen.go tl_channels_delete_history_gen.go tl_channels_delete_history_slices_gen.go tl_channels_delete_messages_gen.go tl_channels_delete_messages_slices_gen.go tl_channels_delete_participant_history_gen.go tl_channels_delete_participant_history_slices_gen.go tl_channels_edit_admin_gen.go tl_channels_edit_admin_slices_gen.go tl_channels_edit_banned_gen.go tl_channels_edit_banned_slices_gen.go tl_channels_edit_location_gen.go tl_channels_edit_location_slices_gen.go tl_channels_edit_photo_gen.go tl_channels_edit_photo_slices_gen.go tl_channels_edit_title_gen.go tl_channels_edit_title_slices_gen.go tl_channels_export_message_link_gen.go tl_channels_export_message_link_slices_gen.go tl_channels_get_admin_log_gen.go tl_channels_get_admin_log_slices_gen.go tl_channels_get_admined_public_channels_gen.go tl_channels_get_admined_public_channels_slices_gen.go tl_channels_get_channel_recommendations_gen.go tl_channels_get_channel_recommendations_slices_gen.go tl_channels_get_channels_gen.go tl_channels_get_channels_slices_gen.go tl_channels_get_full_channel_gen.go tl_channels_get_full_channel_slices_gen.go tl_channels_get_groups_for_discussion_gen.go tl_channels_get_groups_for_discussion_slices_gen.go tl_channels_get_inactive_channels_gen.go tl_channels_get_inactive_channels_slices_gen.go tl_channels_get_left_channels_gen.go tl_channels_get_left_channels_slices_gen.go tl_channels_get_message_author_gen.go tl_channels_get_message_author_slices_gen.go tl_channels_get_messages_gen.go tl_channels_get_messages_slices_gen.go tl_channels_get_participant_gen.go tl_channels_get_participant_slices_gen.go tl_channels_get_participants_gen.go tl_channels_get_participants_slices_gen.go tl_channels_get_send_as_gen.go tl_channels_get_send_as_slices_gen.go tl_channels_invite_to_channel_gen.go tl_channels_invite_to_channel_slices_gen.go tl_channels_join_channel_gen.go tl_channels_join_channel_slices_gen.go tl_channels_leave_channel_gen.go tl_channels_leave_channel_slices_gen.go tl_channels_read_history_gen.go tl_channels_read_history_slices_gen.go tl_channels_read_message_contents_gen.go tl_channels_read_message_contents_slices_gen.go tl_channels_reorder_usernames_gen.go tl_channels_reorder_usernames_slices_gen.go tl_channels_report_anti_spam_false_positive_gen.go tl_channels_report_anti_spam_false_positive_slices_gen.go tl_channels_report_spam_gen.go tl_channels_report_spam_slices_gen.go tl_channels_restrict_sponsored_messages_gen.go tl_channels_restrict_sponsored_messages_slices_gen.go tl_channels_search_posts_gen.go tl_channels_search_posts_slices_gen.go tl_channels_send_as_peers_gen.go tl_channels_send_as_peers_slices_gen.go tl_channels_set_boosts_to_unblock_restrictions_gen.go tl_channels_set_boosts_to_unblock_restrictions_slices_gen.go tl_channels_set_discussion_group_gen.go tl_channels_set_discussion_group_slices_gen.go tl_channels_set_emoji_stickers_gen.go tl_channels_set_emoji_stickers_slices_gen.go tl_channels_set_main_profile_tab_gen.go tl_channels_set_main_profile_tab_slices_gen.go tl_channels_set_stickers_gen.go tl_channels_set_stickers_slices_gen.go tl_channels_sponsored_message_report_result_gen.go tl_channels_sponsored_message_report_result_slices_gen.go tl_channels_toggle_anti_spam_gen.go tl_channels_toggle_anti_spam_slices_gen.go tl_channels_toggle_autotranslation_gen.go tl_channels_toggle_autotranslation_slices_gen.go tl_channels_toggle_forum_gen.go tl_channels_toggle_forum_slices_gen.go tl_channels_toggle_join_request_gen.go tl_channels_toggle_join_request_slices_gen.go tl_channels_toggle_join_to_send_gen.go tl_channels_toggle_join_to_send_slices_gen.go tl_channels_toggle_participants_hidden_gen.go tl_channels_toggle_participants_hidden_slices_gen.go tl_channels_toggle_pre_history_hidden_gen.go tl_channels_toggle_pre_history_hidden_slices_gen.go tl_channels_toggle_signatures_gen.go tl_channels_toggle_signatures_slices_gen.go tl_channels_toggle_slow_mode_gen.go tl_channels_toggle_slow_mode_slices_gen.go tl_channels_toggle_username_gen.go tl_channels_toggle_username_slices_gen.go tl_channels_toggle_view_forum_as_messages_gen.go tl_channels_toggle_view_forum_as_messages_slices_gen.go tl_channels_update_color_gen.go tl_channels_update_color_slices_gen.go tl_channels_update_emoji_status_gen.go tl_channels_update_emoji_status_slices_gen.go tl_channels_update_paid_messages_price_gen.go tl_channels_update_paid_messages_price_slices_gen.go tl_channels_update_username_gen.go tl_channels_update_username_slices_gen.go tl_chat_admin_rights_gen.go tl_chat_admin_rights_slices_gen.go tl_chat_admin_with_invites_gen.go tl_chat_admin_with_invites_slices_gen.go tl_chat_banned_rights_gen.go tl_chat_banned_rights_slices_gen.go tl_chat_full_gen.go tl_chat_full_slices_gen.go tl_chat_gen.go tl_chat_invite_gen.go tl_chat_invite_importer_gen.go tl_chat_invite_importer_slices_gen.go tl_chat_invite_slices_gen.go tl_chat_onlines_gen.go tl_chat_onlines_slices_gen.go tl_chat_participant_gen.go tl_chat_participant_slices_gen.go tl_chat_participants_gen.go tl_chat_participants_slices_gen.go tl_chat_photo_gen.go tl_chat_photo_slices_gen.go tl_chat_reactions_gen.go tl_chat_reactions_slices_gen.go tl_chat_slices_gen.go tl_chat_theme_gen.go tl_chat_theme_slices_gen.go tl_chatlists_chatlist_invite_gen.go tl_chatlists_chatlist_invite_slices_gen.go tl_chatlists_chatlist_updates_gen.go tl_chatlists_chatlist_updates_slices_gen.go tl_chatlists_check_chatlist_invite_gen.go tl_chatlists_check_chatlist_invite_slices_gen.go tl_chatlists_delete_exported_invite_gen.go tl_chatlists_delete_exported_invite_slices_gen.go tl_chatlists_edit_exported_invite_gen.go tl_chatlists_edit_exported_invite_slices_gen.go tl_chatlists_export_chatlist_invite_gen.go tl_chatlists_export_chatlist_invite_slices_gen.go tl_chatlists_exported_chatlist_invite_gen.go tl_chatlists_exported_chatlist_invite_slices_gen.go tl_chatlists_exported_invites_gen.go tl_chatlists_exported_invites_slices_gen.go tl_chatlists_get_chatlist_updates_gen.go tl_chatlists_get_chatlist_updates_slices_gen.go tl_chatlists_get_exported_invites_gen.go tl_chatlists_get_exported_invites_slices_gen.go tl_chatlists_get_leave_chatlist_suggestions_gen.go tl_chatlists_get_leave_chatlist_suggestions_slices_gen.go tl_chatlists_hide_chatlist_updates_gen.go tl_chatlists_hide_chatlist_updates_slices_gen.go tl_chatlists_join_chatlist_invite_gen.go tl_chatlists_join_chatlist_invite_slices_gen.go tl_chatlists_join_chatlist_updates_gen.go tl_chatlists_join_chatlist_updates_slices_gen.go tl_chatlists_leave_chatlist_gen.go tl_chatlists_leave_chatlist_slices_gen.go tl_client_gen.go tl_code_settings_gen.go tl_code_settings_slices_gen.go tl_communities_create_gen.go tl_communities_create_slices_gen.go tl_communities_get_joined_communities_gen.go tl_communities_get_joined_communities_slices_gen.go tl_communities_get_participant_joined_chats_gen.go tl_communities_get_participant_joined_chats_slices_gen.go tl_communities_get_peer_link_requests_gen.go tl_communities_get_peer_link_requests_slices_gen.go tl_communities_participant_joined_chats_gen.go tl_communities_participant_joined_chats_slices_gen.go tl_communities_peer_link_requests_gen.go tl_communities_peer_link_requests_slices_gen.go tl_communities_toggle_all_peer_link_request_approval_gen.go tl_communities_toggle_all_peer_link_request_approval_slices_gen.go tl_communities_toggle_community_collapsed_in_dialogs_gen.go tl_communities_toggle_community_collapsed_in_dialogs_slices_gen.go tl_communities_toggle_participant_banned_gen.go tl_communities_toggle_participant_banned_slices_gen.go tl_communities_toggle_peer_link_gen.go tl_communities_toggle_peer_link_request_approval_gen.go tl_communities_toggle_peer_link_request_approval_slices_gen.go tl_communities_toggle_peer_link_slices_gen.go tl_community_peer_gen.go tl_community_peer_request_gen.go tl_community_peer_request_slices_gen.go tl_community_peer_slices_gen.go tl_config_gen.go tl_config_slices_gen.go tl_connected_bot_gen.go tl_connected_bot_slices_gen.go tl_connected_bot_star_ref_gen.go tl_connected_bot_star_ref_slices_gen.go tl_contact_birthday_gen.go tl_contact_birthday_slices_gen.go tl_contact_gen.go tl_contact_slices_gen.go tl_contact_status_gen.go tl_contact_status_slices_gen.go tl_contact_status_vector_gen.go tl_contact_status_vector_slices_gen.go tl_contacts_accept_contact_gen.go tl_contacts_accept_contact_slices_gen.go tl_contacts_add_contact_gen.go tl_contacts_add_contact_slices_gen.go tl_contacts_block_from_replies_gen.go tl_contacts_block_from_replies_slices_gen.go tl_contacts_block_gen.go tl_contacts_block_slices_gen.go tl_contacts_blocked_gen.go tl_contacts_blocked_slices_gen.go tl_contacts_contact_birthdays_gen.go tl_contacts_contact_birthdays_slices_gen.go tl_contacts_contacts_gen.go tl_contacts_contacts_slices_gen.go tl_contacts_delete_by_phones_gen.go tl_contacts_delete_by_phones_slices_gen.go tl_contacts_delete_contacts_gen.go tl_contacts_delete_contacts_slices_gen.go tl_contacts_edit_close_friends_gen.go tl_contacts_edit_close_friends_slices_gen.go tl_contacts_export_contact_token_gen.go tl_contacts_export_contact_token_slices_gen.go tl_contacts_found_gen.go tl_contacts_found_slices_gen.go tl_contacts_get_birthdays_gen.go tl_contacts_get_birthdays_slices_gen.go tl_contacts_get_blocked_gen.go tl_contacts_get_blocked_slices_gen.go tl_contacts_get_contact_ids_gen.go tl_contacts_get_contact_ids_slices_gen.go tl_contacts_get_contacts_gen.go tl_contacts_get_contacts_slices_gen.go tl_contacts_get_located_gen.go tl_contacts_get_located_slices_gen.go tl_contacts_get_saved_gen.go tl_contacts_get_saved_slices_gen.go tl_contacts_get_sponsored_peers_gen.go tl_contacts_get_sponsored_peers_slices_gen.go tl_contacts_get_statuses_gen.go tl_contacts_get_statuses_slices_gen.go tl_contacts_get_top_peers_gen.go tl_contacts_get_top_peers_slices_gen.go tl_contacts_import_contact_token_gen.go tl_contacts_import_contact_token_slices_gen.go tl_contacts_import_contacts_gen.go tl_contacts_import_contacts_slices_gen.go tl_contacts_imported_contacts_gen.go tl_contacts_imported_contacts_slices_gen.go tl_contacts_reset_saved_gen.go tl_contacts_reset_saved_slices_gen.go tl_contacts_reset_top_peer_rating_gen.go tl_contacts_reset_top_peer_rating_slices_gen.go tl_contacts_resolve_phone_gen.go tl_contacts_resolve_phone_slices_gen.go tl_contacts_resolve_username_gen.go tl_contacts_resolve_username_slices_gen.go tl_contacts_resolved_peer_gen.go tl_contacts_resolved_peer_slices_gen.go tl_contacts_search_gen.go tl_contacts_search_slices_gen.go tl_contacts_set_blocked_gen.go tl_contacts_set_blocked_slices_gen.go tl_contacts_sponsored_peers_gen.go tl_contacts_sponsored_peers_slices_gen.go tl_contacts_toggle_top_peers_gen.go tl_contacts_toggle_top_peers_slices_gen.go tl_contacts_top_peers_gen.go tl_contacts_top_peers_slices_gen.go tl_contacts_unblock_gen.go tl_contacts_unblock_slices_gen.go tl_contacts_update_contact_note_gen.go tl_contacts_update_contact_note_slices_gen.go tl_data_json_gen.go tl_data_json_slices_gen.go tl_dc_option_gen.go tl_dc_option_slices_gen.go tl_default_history_ttl_gen.go tl_default_history_ttl_slices_gen.go tl_dialog_filter_gen.go tl_dialog_filter_slices_gen.go tl_dialog_filter_suggested_gen.go tl_dialog_filter_suggested_slices_gen.go tl_dialog_filter_suggested_vector_gen.go tl_dialog_filter_suggested_vector_slices_gen.go tl_dialog_gen.go tl_dialog_peer_class_vector_gen.go tl_dialog_peer_class_vector_slices_gen.go tl_dialog_peer_gen.go tl_dialog_peer_slices_gen.go tl_dialog_slices_gen.go tl_disallowed_gifts_settings_gen.go tl_disallowed_gifts_settings_slices_gen.go tl_document_attribute_gen.go tl_document_attribute_slices_gen.go tl_document_class_vector_gen.go tl_document_class_vector_slices_gen.go tl_document_gen.go tl_document_slices_gen.go tl_double_gen.go tl_double_slices_gen.go tl_draft_message_gen.go tl_draft_message_slices_gen.go tl_email_verification_gen.go tl_email_verification_slices_gen.go tl_email_verify_purpose_gen.go tl_email_verify_purpose_slices_gen.go tl_emoji_group_gen.go tl_emoji_group_slices_gen.go tl_emoji_keyword_gen.go tl_emoji_keyword_slices_gen.go tl_emoji_keywords_difference_gen.go tl_emoji_keywords_difference_slices_gen.go tl_emoji_language_gen.go tl_emoji_language_slices_gen.go tl_emoji_language_vector_gen.go tl_emoji_language_vector_slices_gen.go tl_emoji_list_gen.go tl_emoji_list_slices_gen.go tl_emoji_status_gen.go tl_emoji_status_slices_gen.go tl_emoji_url_gen.go tl_emoji_url_slices_gen.go tl_encrypted_chat_gen.go tl_encrypted_chat_slices_gen.go tl_encrypted_file_gen.go tl_encrypted_file_slices_gen.go tl_encrypted_message_gen.go tl_encrypted_message_slices_gen.go tl_ephemeral_delete_message_gen.go tl_ephemeral_delete_message_slices_gen.go tl_ephemeral_get_callback_answer_gen.go tl_ephemeral_get_callback_answer_slices_gen.go tl_ephemeral_message_gen.go tl_ephemeral_message_slices_gen.go tl_ephemeral_report_message_gen.go tl_ephemeral_report_message_slices_gen.go tl_ephemeral_send_message_gen.go tl_ephemeral_send_message_slices_gen.go tl_error_gen.go tl_error_slices_gen.go tl_errors_gen.go tl_exported_chat_invite_gen.go tl_exported_chat_invite_slices_gen.go tl_exported_chatlist_invite_gen.go tl_exported_chatlist_invite_slices_gen.go tl_exported_contact_token_gen.go tl_exported_contact_token_slices_gen.go tl_exported_message_link_gen.go tl_exported_message_link_slices_gen.go tl_exported_story_link_gen.go tl_exported_story_link_slices_gen.go tl_fact_check_gen.go tl_fact_check_slices_gen.go tl_fact_check_vector_gen.go tl_fact_check_vector_slices_gen.go tl_file_hash_gen.go tl_file_hash_slices_gen.go tl_file_hash_vector_gen.go tl_file_hash_vector_slices_gen.go tl_folder_gen.go tl_folder_peer_gen.go tl_folder_peer_slices_gen.go tl_folder_slices_gen.go tl_folders_edit_peer_folders_gen.go tl_folders_edit_peer_folders_slices_gen.go tl_forum_topic_gen.go tl_forum_topic_slices_gen.go tl_found_story_gen.go tl_found_story_slices_gen.go tl_fragment_collectible_info_gen.go tl_fragment_collectible_info_slices_gen.go tl_fragment_get_collectible_info_gen.go tl_fragment_get_collectible_info_slices_gen.go tl_game_gen.go tl_game_slices_gen.go tl_geo_point_address_gen.go tl_geo_point_address_slices_gen.go tl_geo_point_gen.go tl_geo_point_slices_gen.go tl_global_privacy_settings_gen.go tl_global_privacy_settings_slices_gen.go tl_group_call_donor_gen.go tl_group_call_donor_slices_gen.go tl_group_call_gen.go tl_group_call_message_gen.go tl_group_call_message_slices_gen.go tl_group_call_participant_gen.go tl_group_call_participant_slices_gen.go tl_group_call_participant_video_gen.go tl_group_call_participant_video_slices_gen.go tl_group_call_participant_video_source_group_gen.go tl_group_call_participant_video_source_group_slices_gen.go tl_group_call_slices_gen.go tl_group_call_stream_channel_gen.go tl_group_call_stream_channel_slices_gen.go tl_handlers_gen.go tl_help_accept_terms_of_service_gen.go tl_help_accept_terms_of_service_slices_gen.go tl_help_app_config_gen.go tl_help_app_config_slices_gen.go tl_help_app_update_gen.go tl_help_app_update_slices_gen.go tl_help_config_simple_gen.go tl_help_config_simple_slices_gen.go tl_help_countries_list_gen.go tl_help_countries_list_slices_gen.go tl_help_country_code_gen.go tl_help_country_code_slices_gen.go tl_help_country_gen.go tl_help_country_slices_gen.go tl_help_deep_link_info_gen.go tl_help_deep_link_info_slices_gen.go tl_help_dismiss_suggestion_gen.go tl_help_dismiss_suggestion_slices_gen.go tl_help_edit_user_info_gen.go tl_help_edit_user_info_slices_gen.go tl_help_get_app_config_gen.go tl_help_get_app_config_slices_gen.go tl_help_get_app_update_gen.go tl_help_get_app_update_slices_gen.go tl_help_get_cdn_config_gen.go tl_help_get_cdn_config_slices_gen.go tl_help_get_config_gen.go tl_help_get_config_slices_gen.go tl_help_get_countries_list_gen.go tl_help_get_countries_list_slices_gen.go tl_help_get_deep_link_info_gen.go tl_help_get_deep_link_info_slices_gen.go tl_help_get_invite_text_gen.go tl_help_get_invite_text_slices_gen.go tl_help_get_nearest_dc_gen.go tl_help_get_nearest_dc_slices_gen.go tl_help_get_passport_config_gen.go tl_help_get_passport_config_slices_gen.go tl_help_get_peer_colors_gen.go tl_help_get_peer_colors_slices_gen.go tl_help_get_peer_profile_colors_gen.go tl_help_get_peer_profile_colors_slices_gen.go tl_help_get_premium_promo_gen.go tl_help_get_premium_promo_slices_gen.go tl_help_get_promo_data_gen.go tl_help_get_promo_data_slices_gen.go tl_help_get_recent_me_urls_gen.go tl_help_get_recent_me_urls_slices_gen.go tl_help_get_support_gen.go tl_help_get_support_name_gen.go tl_help_get_support_name_slices_gen.go tl_help_get_support_slices_gen.go tl_help_get_terms_of_service_update_gen.go tl_help_get_terms_of_service_update_slices_gen.go tl_help_get_timezones_list_gen.go tl_help_get_timezones_list_slices_gen.go tl_help_get_user_info_gen.go tl_help_get_user_info_slices_gen.go tl_help_hide_promo_data_gen.go tl_help_hide_promo_data_slices_gen.go tl_help_invite_text_gen.go tl_help_invite_text_slices_gen.go tl_help_passport_config_gen.go tl_help_passport_config_slices_gen.go tl_help_peer_color_option_gen.go tl_help_peer_color_option_slices_gen.go tl_help_peer_color_set_gen.go tl_help_peer_color_set_slices_gen.go tl_help_peer_colors_gen.go tl_help_peer_colors_slices_gen.go tl_help_premium_promo_gen.go tl_help_premium_promo_slices_gen.go tl_help_promo_data_gen.go tl_help_promo_data_slices_gen.go tl_help_recent_me_urls_gen.go tl_help_recent_me_urls_slices_gen.go tl_help_save_app_log_gen.go tl_help_save_app_log_slices_gen.go tl_help_set_bot_updates_status_gen.go tl_help_set_bot_updates_status_slices_gen.go tl_help_support_gen.go tl_help_support_name_gen.go tl_help_support_name_slices_gen.go tl_help_support_slices_gen.go tl_help_terms_of_service_gen.go tl_help_terms_of_service_slices_gen.go tl_help_terms_of_service_update_gen.go tl_help_terms_of_service_update_slices_gen.go tl_help_timezones_list_gen.go tl_help_timezones_list_slices_gen.go tl_help_user_info_gen.go tl_help_user_info_slices_gen.go tl_high_score_gen.go tl_high_score_slices_gen.go tl_imported_contact_gen.go tl_imported_contact_slices_gen.go tl_init_connection_gen.go tl_init_connection_slices_gen.go tl_inline_bot_switch_p_m_gen.go tl_inline_bot_switch_p_m_slices_gen.go tl_inline_bot_web_view_gen.go tl_inline_bot_web_view_slices_gen.go tl_inline_query_peer_type_gen.go tl_inline_query_peer_type_slices_gen.go tl_input_ai_compose_tone_gen.go tl_input_ai_compose_tone_slices_gen.go tl_input_app_event_gen.go tl_input_app_event_slices_gen.go tl_input_bot_app_gen.go tl_input_bot_app_slices_gen.go tl_input_bot_inline_message_gen.go tl_input_bot_inline_message_id_gen.go tl_input_bot_inline_message_id_slices_gen.go tl_input_bot_inline_message_slices_gen.go tl_input_bot_inline_result_gen.go tl_input_bot_inline_result_slices_gen.go tl_input_business_away_message_gen.go tl_input_business_away_message_slices_gen.go tl_input_business_bot_recipients_gen.go tl_input_business_bot_recipients_slices_gen.go tl_input_business_chat_link_gen.go tl_input_business_chat_link_slices_gen.go tl_input_business_greeting_message_gen.go tl_input_business_greeting_message_slices_gen.go tl_input_business_intro_gen.go tl_input_business_intro_slices_gen.go tl_input_business_recipients_gen.go tl_input_business_recipients_slices_gen.go tl_input_channel_gen.go tl_input_channel_slices_gen.go tl_input_chat_photo_gen.go tl_input_chat_photo_slices_gen.go tl_input_chat_theme_gen.go tl_input_chat_theme_slices_gen.go tl_input_chatlist_dialog_filter_gen.go tl_input_chatlist_dialog_filter_slices_gen.go tl_input_check_password_srp_gen.go tl_input_check_password_srp_slices_gen.go tl_input_client_proxy_gen.go tl_input_client_proxy_slices_gen.go tl_input_collectible_gen.go tl_input_collectible_slices_gen.go tl_input_dialog_peer_gen.go tl_input_dialog_peer_slices_gen.go tl_input_document_gen.go tl_input_document_slices_gen.go tl_input_encrypted_chat_gen.go tl_input_encrypted_chat_slices_gen.go tl_input_encrypted_file_gen.go tl_input_encrypted_file_slices_gen.go tl_input_file_gen.go tl_input_file_location_gen.go tl_input_file_location_slices_gen.go tl_input_file_slices_gen.go tl_input_folder_peer_gen.go tl_input_folder_peer_slices_gen.go tl_input_game_gen.go tl_input_game_slices_gen.go tl_input_geo_point_gen.go tl_input_geo_point_slices_gen.go tl_input_group_call_gen.go tl_input_group_call_slices_gen.go tl_input_invoice_gen.go tl_input_invoice_slices_gen.go tl_input_media_gen.go tl_input_media_slices_gen.go tl_input_message_gen.go tl_input_message_read_metric_gen.go tl_input_message_read_metric_slices_gen.go tl_input_message_slices_gen.go tl_input_notify_peer_gen.go tl_input_notify_peer_slices_gen.go tl_input_passkey_credential_gen.go tl_input_passkey_credential_slices_gen.go tl_input_passkey_response_gen.go tl_input_passkey_response_slices_gen.go tl_input_payment_credentials_gen.go tl_input_payment_credentials_slices_gen.go tl_input_peer_gen.go tl_input_peer_notify_settings_gen.go tl_input_peer_notify_settings_slices_gen.go tl_input_peer_slices_gen.go tl_input_phone_call_gen.go tl_input_phone_call_slices_gen.go tl_input_phone_contact_gen.go tl_input_phone_contact_slices_gen.go tl_input_photo_gen.go tl_input_photo_slices_gen.go tl_input_privacy_key_gen.go tl_input_privacy_key_slices_gen.go tl_input_privacy_rule_gen.go tl_input_privacy_rule_slices_gen.go tl_input_quick_reply_shortcut_gen.go tl_input_quick_reply_shortcut_slices_gen.go tl_input_reply_to_gen.go tl_input_reply_to_slices_gen.go tl_input_rich_file_gen.go tl_input_rich_file_slices_gen.go tl_input_rich_message_gen.go tl_input_rich_message_slices_gen.go tl_input_saved_star_gift_gen.go tl_input_saved_star_gift_slices_gen.go tl_input_secure_file_gen.go tl_input_secure_file_slices_gen.go tl_input_secure_value_gen.go tl_input_secure_value_slices_gen.go tl_input_single_media_gen.go tl_input_single_media_slices_gen.go tl_input_star_gift_auction_gen.go tl_input_star_gift_auction_slices_gen.go tl_input_stars_transaction_gen.go tl_input_stars_transaction_slices_gen.go tl_input_sticker_set_gen.go tl_input_sticker_set_item_gen.go tl_input_sticker_set_item_slices_gen.go tl_input_sticker_set_slices_gen.go tl_input_stickered_media_gen.go tl_input_stickered_media_slices_gen.go tl_input_store_payment_purpose_gen.go tl_input_store_payment_purpose_slices_gen.go tl_input_theme_gen.go tl_input_theme_settings_gen.go tl_input_theme_settings_slices_gen.go tl_input_theme_slices_gen.go tl_input_user_gen.go tl_input_user_slices_gen.go tl_input_wall_paper_gen.go tl_input_wall_paper_slices_gen.go tl_input_web_document_gen.go tl_input_web_document_slices_gen.go tl_input_web_file_location_gen.go tl_input_web_file_location_slices_gen.go tl_int_gen.go tl_int_slices_gen.go tl_int_vector_gen.go tl_int_vector_slices_gen.go tl_invoice_gen.go tl_invoice_slices_gen.go tl_invoke_after_msg_gen.go tl_invoke_after_msg_slices_gen.go tl_invoke_after_msgs_gen.go tl_invoke_after_msgs_slices_gen.go tl_invoke_with_apns_secret_gen.go tl_invoke_with_apns_secret_slices_gen.go tl_invoke_with_business_connection_gen.go tl_invoke_with_business_connection_slices_gen.go tl_invoke_with_google_play_integrity_gen.go tl_invoke_with_google_play_integrity_slices_gen.go tl_invoke_with_layer_gen.go tl_invoke_with_layer_slices_gen.go tl_invoke_with_messages_range_gen.go tl_invoke_with_messages_range_slices_gen.go tl_invoke_with_re_captcha_gen.go tl_invoke_with_re_captcha_slices_gen.go tl_invoke_with_takeout_gen.go tl_invoke_with_takeout_slices_gen.go tl_invoke_without_updates_gen.go tl_invoke_without_updates_slices_gen.go tl_ip_port_gen.go tl_ip_port_slices_gen.go tl_join_chat_bot_result_gen.go tl_join_chat_bot_result_slices_gen.go tl_json_object_value_gen.go tl_json_object_value_slices_gen.go tl_json_value_gen.go tl_json_value_slices_gen.go tl_keyboard_button_gen.go tl_keyboard_button_row_gen.go tl_keyboard_button_row_slices_gen.go tl_keyboard_button_slices_gen.go tl_keyboard_button_style_gen.go tl_keyboard_button_style_slices_gen.go tl_labeled_price_gen.go tl_labeled_price_slices_gen.go tl_lang_pack_difference_gen.go tl_lang_pack_difference_slices_gen.go tl_lang_pack_language_gen.go tl_lang_pack_language_slices_gen.go tl_lang_pack_language_vector_gen.go tl_lang_pack_language_vector_slices_gen.go tl_lang_pack_string_class_vector_gen.go tl_lang_pack_string_class_vector_slices_gen.go tl_lang_pack_string_gen.go tl_lang_pack_string_slices_gen.go tl_langpack_get_difference_gen.go tl_langpack_get_difference_slices_gen.go tl_langpack_get_lang_pack_gen.go tl_langpack_get_lang_pack_slices_gen.go tl_langpack_get_language_gen.go tl_langpack_get_language_slices_gen.go tl_langpack_get_languages_gen.go tl_langpack_get_languages_slices_gen.go tl_langpack_get_strings_gen.go tl_langpack_get_strings_slices_gen.go tl_long_gen.go tl_long_slices_gen.go tl_long_vector_gen.go tl_long_vector_slices_gen.go tl_mask_coords_gen.go tl_mask_coords_slices_gen.go tl_media_area_coordinates_gen.go tl_media_area_coordinates_slices_gen.go tl_media_area_gen.go tl_media_area_slices_gen.go tl_message_action_gen.go tl_message_action_slices_gen.go tl_message_entity_gen.go tl_message_entity_slices_gen.go tl_message_extended_media_gen.go tl_message_extended_media_slices_gen.go tl_message_fwd_header_gen.go tl_message_fwd_header_slices_gen.go tl_message_gen.go tl_message_media_gen.go tl_message_media_slices_gen.go tl_message_peer_reaction_gen.go tl_message_peer_reaction_slices_gen.go tl_message_peer_vote_gen.go tl_message_peer_vote_slices_gen.go tl_message_range_gen.go tl_message_range_slices_gen.go tl_message_range_vector_gen.go tl_message_range_vector_slices_gen.go tl_message_reactions_gen.go tl_message_reactions_slices_gen.go tl_message_reactor_gen.go tl_message_reactor_slices_gen.go tl_message_replies_gen.go tl_message_replies_slices_gen.go tl_message_reply_header_gen.go tl_message_reply_header_slices_gen.go tl_message_report_option_gen.go tl_message_report_option_slices_gen.go tl_message_slices_gen.go tl_message_views_gen.go tl_message_views_slices_gen.go tl_messages_accept_encryption_gen.go tl_messages_accept_encryption_slices_gen.go tl_messages_accept_url_auth_gen.go tl_messages_accept_url_auth_slices_gen.go tl_messages_add_chat_user_gen.go tl_messages_add_chat_user_slices_gen.go tl_messages_add_poll_answer_gen.go tl_messages_add_poll_answer_slices_gen.go tl_messages_affected_found_messages_gen.go tl_messages_affected_found_messages_slices_gen.go tl_messages_affected_history_gen.go tl_messages_affected_history_slices_gen.go tl_messages_affected_messages_gen.go tl_messages_affected_messages_slices_gen.go tl_messages_all_stickers_gen.go tl_messages_all_stickers_slices_gen.go tl_messages_append_todo_list_gen.go tl_messages_append_todo_list_slices_gen.go tl_messages_archived_stickers_gen.go tl_messages_archived_stickers_slices_gen.go tl_messages_available_effects_gen.go tl_messages_available_effects_slices_gen.go tl_messages_available_reactions_gen.go tl_messages_available_reactions_slices_gen.go tl_messages_bot_app_gen.go tl_messages_bot_app_slices_gen.go tl_messages_bot_callback_answer_gen.go tl_messages_bot_callback_answer_slices_gen.go tl_messages_bot_prepared_inline_message_gen.go tl_messages_bot_prepared_inline_message_slices_gen.go tl_messages_bot_results_gen.go tl_messages_bot_results_slices_gen.go tl_messages_chat_admins_with_invites_gen.go tl_messages_chat_admins_with_invites_slices_gen.go tl_messages_chat_full_gen.go tl_messages_chat_full_slices_gen.go tl_messages_chat_invite_importers_gen.go tl_messages_chat_invite_importers_slices_gen.go tl_messages_chat_invite_join_result_gen.go tl_messages_chat_invite_join_result_slices_gen.go tl_messages_chats_gen.go tl_messages_chats_slices_gen.go tl_messages_check_chat_invite_gen.go tl_messages_check_chat_invite_slices_gen.go tl_messages_check_history_import_gen.go tl_messages_check_history_import_peer_gen.go tl_messages_check_history_import_peer_slices_gen.go tl_messages_check_history_import_slices_gen.go tl_messages_check_quick_reply_shortcut_gen.go tl_messages_check_quick_reply_shortcut_slices_gen.go tl_messages_check_url_auth_match_code_gen.go tl_messages_check_url_auth_match_code_slices_gen.go tl_messages_checked_history_import_peer_gen.go tl_messages_checked_history_import_peer_slices_gen.go tl_messages_clear_all_drafts_gen.go tl_messages_clear_all_drafts_slices_gen.go tl_messages_clear_recent_reactions_gen.go tl_messages_clear_recent_reactions_slices_gen.go tl_messages_clear_recent_stickers_gen.go tl_messages_clear_recent_stickers_slices_gen.go tl_messages_click_sponsored_message_gen.go tl_messages_click_sponsored_message_slices_gen.go tl_messages_compose_message_with_a_i_gen.go tl_messages_compose_message_with_a_i_slices_gen.go tl_messages_compose_rich_message_with_a_i_gen.go tl_messages_compose_rich_message_with_a_i_slices_gen.go tl_messages_composed_message_with_a_i_gen.go tl_messages_composed_message_with_a_i_slices_gen.go tl_messages_composed_rich_message_with_a_i_gen.go tl_messages_composed_rich_message_with_a_i_slices_gen.go tl_messages_create_chat_gen.go tl_messages_create_chat_slices_gen.go tl_messages_create_forum_topic_gen.go tl_messages_create_forum_topic_slices_gen.go tl_messages_decline_url_auth_gen.go tl_messages_decline_url_auth_slices_gen.go tl_messages_delete_chat_gen.go tl_messages_delete_chat_slices_gen.go tl_messages_delete_chat_user_gen.go tl_messages_delete_chat_user_slices_gen.go tl_messages_delete_exported_chat_invite_gen.go tl_messages_delete_exported_chat_invite_slices_gen.go tl_messages_delete_fact_check_gen.go tl_messages_delete_fact_check_slices_gen.go tl_messages_delete_history_gen.go tl_messages_delete_history_slices_gen.go tl_messages_delete_messages_gen.go tl_messages_delete_messages_slices_gen.go tl_messages_delete_participant_reaction_gen.go tl_messages_delete_participant_reaction_slices_gen.go tl_messages_delete_participant_reactions_gen.go tl_messages_delete_participant_reactions_slices_gen.go tl_messages_delete_phone_call_history_gen.go tl_messages_delete_phone_call_history_slices_gen.go tl_messages_delete_poll_answer_gen.go tl_messages_delete_poll_answer_slices_gen.go tl_messages_delete_quick_reply_messages_gen.go tl_messages_delete_quick_reply_messages_slices_gen.go tl_messages_delete_quick_reply_shortcut_gen.go tl_messages_delete_quick_reply_shortcut_slices_gen.go tl_messages_delete_revoked_exported_chat_invites_gen.go tl_messages_delete_revoked_exported_chat_invites_slices_gen.go tl_messages_delete_saved_history_gen.go tl_messages_delete_saved_history_slices_gen.go tl_messages_delete_scheduled_messages_gen.go tl_messages_delete_scheduled_messages_slices_gen.go tl_messages_delete_topic_history_gen.go tl_messages_delete_topic_history_slices_gen.go tl_messages_dh_config_gen.go tl_messages_dh_config_slices_gen.go tl_messages_dialog_filters_gen.go tl_messages_dialog_filters_slices_gen.go tl_messages_dialogs_gen.go tl_messages_dialogs_slices_gen.go tl_messages_discard_encryption_gen.go tl_messages_discard_encryption_slices_gen.go tl_messages_discussion_message_gen.go tl_messages_discussion_message_slices_gen.go tl_messages_edit_chat_about_gen.go tl_messages_edit_chat_about_slices_gen.go tl_messages_edit_chat_admin_gen.go tl_messages_edit_chat_admin_slices_gen.go tl_messages_edit_chat_creator_gen.go tl_messages_edit_chat_creator_slices_gen.go tl_messages_edit_chat_default_banned_rights_gen.go tl_messages_edit_chat_default_banned_rights_slices_gen.go tl_messages_edit_chat_participant_rank_gen.go tl_messages_edit_chat_participant_rank_slices_gen.go tl_messages_edit_chat_photo_gen.go tl_messages_edit_chat_photo_slices_gen.go tl_messages_edit_chat_title_gen.go tl_messages_edit_chat_title_slices_gen.go tl_messages_edit_exported_chat_invite_gen.go tl_messages_edit_exported_chat_invite_slices_gen.go tl_messages_edit_fact_check_gen.go tl_messages_edit_fact_check_slices_gen.go tl_messages_edit_forum_topic_gen.go tl_messages_edit_forum_topic_slices_gen.go tl_messages_edit_inline_bot_message_gen.go tl_messages_edit_inline_bot_message_slices_gen.go tl_messages_edit_message_gen.go tl_messages_edit_message_slices_gen.go tl_messages_edit_quick_reply_shortcut_gen.go tl_messages_edit_quick_reply_shortcut_slices_gen.go tl_messages_emoji_game_info_gen.go tl_messages_emoji_game_info_slices_gen.go tl_messages_emoji_game_outcome_gen.go tl_messages_emoji_game_outcome_slices_gen.go tl_messages_emoji_groups_gen.go tl_messages_emoji_groups_slices_gen.go tl_messages_export_chat_invite_gen.go tl_messages_export_chat_invite_slices_gen.go tl_messages_exported_chat_invite_gen.go tl_messages_exported_chat_invite_slices_gen.go tl_messages_exported_chat_invites_gen.go tl_messages_exported_chat_invites_slices_gen.go tl_messages_fave_sticker_gen.go tl_messages_fave_sticker_slices_gen.go tl_messages_faved_stickers_gen.go tl_messages_faved_stickers_slices_gen.go tl_messages_featured_stickers_gen.go tl_messages_featured_stickers_slices_gen.go tl_messages_filter_gen.go tl_messages_filter_slices_gen.go tl_messages_forum_topics_gen.go tl_messages_forum_topics_slices_gen.go tl_messages_forward_messages_gen.go tl_messages_forward_messages_slices_gen.go tl_messages_found_sticker_sets_gen.go tl_messages_found_sticker_sets_slices_gen.go tl_messages_found_stickers_gen.go tl_messages_found_stickers_slices_gen.go tl_messages_get_admins_with_invites_gen.go tl_messages_get_admins_with_invites_slices_gen.go tl_messages_get_all_drafts_gen.go tl_messages_get_all_drafts_slices_gen.go tl_messages_get_all_stickers_gen.go tl_messages_get_all_stickers_slices_gen.go tl_messages_get_archived_stickers_gen.go tl_messages_get_archived_stickers_slices_gen.go tl_messages_get_attach_menu_bot_gen.go tl_messages_get_attach_menu_bot_slices_gen.go tl_messages_get_attach_menu_bots_gen.go tl_messages_get_attach_menu_bots_slices_gen.go tl_messages_get_attached_stickers_gen.go tl_messages_get_attached_stickers_slices_gen.go tl_messages_get_available_effects_gen.go tl_messages_get_available_effects_slices_gen.go tl_messages_get_available_reactions_gen.go tl_messages_get_available_reactions_slices_gen.go tl_messages_get_bot_app_gen.go tl_messages_get_bot_app_slices_gen.go tl_messages_get_bot_callback_answer_gen.go tl_messages_get_bot_callback_answer_slices_gen.go tl_messages_get_chat_invite_importers_gen.go tl_messages_get_chat_invite_importers_slices_gen.go tl_messages_get_chats_gen.go tl_messages_get_chats_slices_gen.go tl_messages_get_common_chats_gen.go tl_messages_get_common_chats_slices_gen.go tl_messages_get_custom_emoji_documents_gen.go tl_messages_get_custom_emoji_documents_slices_gen.go tl_messages_get_default_history_ttl_gen.go tl_messages_get_default_history_ttl_slices_gen.go tl_messages_get_default_tag_reactions_gen.go tl_messages_get_default_tag_reactions_slices_gen.go tl_messages_get_dh_config_gen.go tl_messages_get_dh_config_slices_gen.go tl_messages_get_dialog_filters_gen.go tl_messages_get_dialog_filters_slices_gen.go tl_messages_get_dialog_unread_marks_gen.go tl_messages_get_dialog_unread_marks_slices_gen.go tl_messages_get_dialogs_gen.go tl_messages_get_dialogs_slices_gen.go tl_messages_get_discussion_message_gen.go tl_messages_get_discussion_message_slices_gen.go tl_messages_get_document_by_hash_gen.go tl_messages_get_document_by_hash_slices_gen.go tl_messages_get_emoji_game_info_gen.go tl_messages_get_emoji_game_info_slices_gen.go tl_messages_get_emoji_groups_gen.go tl_messages_get_emoji_groups_slices_gen.go tl_messages_get_emoji_keywords_difference_gen.go tl_messages_get_emoji_keywords_difference_slices_gen.go tl_messages_get_emoji_keywords_gen.go tl_messages_get_emoji_keywords_languages_gen.go tl_messages_get_emoji_keywords_languages_slices_gen.go tl_messages_get_emoji_keywords_slices_gen.go tl_messages_get_emoji_profile_photo_groups_gen.go tl_messages_get_emoji_profile_photo_groups_slices_gen.go tl_messages_get_emoji_status_groups_gen.go tl_messages_get_emoji_status_groups_slices_gen.go tl_messages_get_emoji_sticker_groups_gen.go tl_messages_get_emoji_sticker_groups_slices_gen.go tl_messages_get_emoji_stickers_gen.go tl_messages_get_emoji_stickers_slices_gen.go tl_messages_get_emoji_url_gen.go tl_messages_get_emoji_url_slices_gen.go tl_messages_get_exported_chat_invite_gen.go tl_messages_get_exported_chat_invite_slices_gen.go tl_messages_get_exported_chat_invites_gen.go tl_messages_get_exported_chat_invites_slices_gen.go tl_messages_get_extended_media_gen.go tl_messages_get_extended_media_slices_gen.go tl_messages_get_fact_check_gen.go tl_messages_get_fact_check_slices_gen.go tl_messages_get_faved_stickers_gen.go tl_messages_get_faved_stickers_slices_gen.go tl_messages_get_featured_emoji_stickers_gen.go tl_messages_get_featured_emoji_stickers_slices_gen.go tl_messages_get_featured_stickers_gen.go tl_messages_get_featured_stickers_slices_gen.go tl_messages_get_forum_topics_by_id_gen.go tl_messages_get_forum_topics_by_id_slices_gen.go tl_messages_get_forum_topics_gen.go tl_messages_get_forum_topics_slices_gen.go tl_messages_get_full_chat_gen.go tl_messages_get_full_chat_slices_gen.go tl_messages_get_future_chat_creator_after_leave_gen.go tl_messages_get_future_chat_creator_after_leave_slices_gen.go tl_messages_get_game_high_scores_gen.go tl_messages_get_game_high_scores_slices_gen.go tl_messages_get_history_gen.go tl_messages_get_history_slices_gen.go tl_messages_get_inline_bot_results_gen.go tl_messages_get_inline_bot_results_slices_gen.go tl_messages_get_inline_game_high_scores_gen.go tl_messages_get_inline_game_high_scores_slices_gen.go tl_messages_get_mask_stickers_gen.go tl_messages_get_mask_stickers_slices_gen.go tl_messages_get_message_edit_data_gen.go tl_messages_get_message_edit_data_slices_gen.go tl_messages_get_message_reactions_list_gen.go tl_messages_get_message_reactions_list_slices_gen.go tl_messages_get_message_read_participants_gen.go tl_messages_get_message_read_participants_slices_gen.go tl_messages_get_messages_gen.go tl_messages_get_messages_reactions_gen.go tl_messages_get_messages_reactions_slices_gen.go tl_messages_get_messages_slices_gen.go tl_messages_get_messages_views_gen.go tl_messages_get_messages_views_slices_gen.go tl_messages_get_my_stickers_gen.go tl_messages_get_my_stickers_slices_gen.go tl_messages_get_old_featured_stickers_gen.go tl_messages_get_old_featured_stickers_slices_gen.go tl_messages_get_onlines_gen.go tl_messages_get_onlines_slices_gen.go tl_messages_get_outbox_read_date_gen.go tl_messages_get_outbox_read_date_slices_gen.go tl_messages_get_paid_reaction_privacy_gen.go tl_messages_get_paid_reaction_privacy_slices_gen.go tl_messages_get_peer_dialogs_gen.go tl_messages_get_peer_dialogs_slices_gen.go tl_messages_get_peer_settings_gen.go tl_messages_get_peer_settings_slices_gen.go tl_messages_get_personal_channel_history_gen.go tl_messages_get_personal_channel_history_slices_gen.go tl_messages_get_pinned_dialogs_gen.go tl_messages_get_pinned_dialogs_slices_gen.go tl_messages_get_pinned_saved_dialogs_gen.go tl_messages_get_pinned_saved_dialogs_slices_gen.go tl_messages_get_poll_results_gen.go tl_messages_get_poll_results_slices_gen.go tl_messages_get_poll_votes_gen.go tl_messages_get_poll_votes_slices_gen.go tl_messages_get_prepared_inline_message_gen.go tl_messages_get_prepared_inline_message_slices_gen.go tl_messages_get_quick_replies_gen.go tl_messages_get_quick_replies_slices_gen.go tl_messages_get_quick_reply_messages_gen.go tl_messages_get_quick_reply_messages_slices_gen.go tl_messages_get_recent_locations_gen.go tl_messages_get_recent_locations_slices_gen.go tl_messages_get_recent_reactions_gen.go tl_messages_get_recent_reactions_slices_gen.go tl_messages_get_recent_stickers_gen.go tl_messages_get_recent_stickers_slices_gen.go tl_messages_get_replies_gen.go tl_messages_get_replies_slices_gen.go tl_messages_get_rich_message_gen.go tl_messages_get_rich_message_slices_gen.go tl_messages_get_saved_dialogs_by_id_gen.go tl_messages_get_saved_dialogs_by_id_slices_gen.go tl_messages_get_saved_dialogs_gen.go tl_messages_get_saved_dialogs_slices_gen.go tl_messages_get_saved_gifs_gen.go tl_messages_get_saved_gifs_slices_gen.go tl_messages_get_saved_history_gen.go tl_messages_get_saved_history_slices_gen.go tl_messages_get_saved_reaction_tags_gen.go tl_messages_get_saved_reaction_tags_slices_gen.go tl_messages_get_scheduled_history_gen.go tl_messages_get_scheduled_history_slices_gen.go tl_messages_get_scheduled_messages_gen.go tl_messages_get_scheduled_messages_slices_gen.go tl_messages_get_search_counters_gen.go tl_messages_get_search_counters_slices_gen.go tl_messages_get_search_results_calendar_gen.go tl_messages_get_search_results_calendar_slices_gen.go tl_messages_get_search_results_positions_gen.go tl_messages_get_search_results_positions_slices_gen.go tl_messages_get_split_ranges_gen.go tl_messages_get_split_ranges_slices_gen.go tl_messages_get_sponsored_messages_gen.go tl_messages_get_sponsored_messages_slices_gen.go tl_messages_get_sticker_set_gen.go tl_messages_get_sticker_set_slices_gen.go tl_messages_get_stickers_gen.go tl_messages_get_stickers_slices_gen.go tl_messages_get_suggested_dialog_filters_gen.go tl_messages_get_suggested_dialog_filters_slices_gen.go tl_messages_get_top_reactions_gen.go tl_messages_get_top_reactions_slices_gen.go tl_messages_get_unread_mentions_gen.go tl_messages_get_unread_mentions_slices_gen.go tl_messages_get_unread_poll_votes_gen.go tl_messages_get_unread_poll_votes_slices_gen.go tl_messages_get_unread_reactions_gen.go tl_messages_get_unread_reactions_slices_gen.go tl_messages_get_web_page_gen.go tl_messages_get_web_page_preview_gen.go tl_messages_get_web_page_preview_slices_gen.go tl_messages_get_web_page_slices_gen.go tl_messages_hide_all_chat_join_requests_gen.go tl_messages_hide_all_chat_join_requests_slices_gen.go tl_messages_hide_chat_join_request_gen.go tl_messages_hide_chat_join_request_slices_gen.go tl_messages_hide_peer_settings_bar_gen.go tl_messages_hide_peer_settings_bar_slices_gen.go tl_messages_high_scores_gen.go tl_messages_high_scores_slices_gen.go tl_messages_history_import_gen.go tl_messages_history_import_parsed_gen.go tl_messages_history_import_parsed_slices_gen.go tl_messages_history_import_slices_gen.go tl_messages_import_chat_invite_gen.go tl_messages_import_chat_invite_slices_gen.go tl_messages_inactive_chats_gen.go tl_messages_inactive_chats_slices_gen.go tl_messages_init_history_import_gen.go tl_messages_init_history_import_slices_gen.go tl_messages_install_sticker_set_gen.go tl_messages_install_sticker_set_slices_gen.go tl_messages_invited_users_gen.go tl_messages_invited_users_slices_gen.go tl_messages_mark_dialog_unread_gen.go tl_messages_mark_dialog_unread_slices_gen.go tl_messages_message_edit_data_gen.go tl_messages_message_edit_data_slices_gen.go tl_messages_message_reactions_list_gen.go tl_messages_message_reactions_list_slices_gen.go tl_messages_message_views_gen.go tl_messages_message_views_slices_gen.go tl_messages_messages_gen.go tl_messages_messages_slices_gen.go tl_messages_migrate_chat_gen.go tl_messages_migrate_chat_slices_gen.go tl_messages_my_stickers_gen.go tl_messages_my_stickers_slices_gen.go tl_messages_peer_dialogs_gen.go tl_messages_peer_dialogs_slices_gen.go tl_messages_peer_settings_gen.go tl_messages_peer_settings_slices_gen.go tl_messages_prepared_inline_message_gen.go tl_messages_prepared_inline_message_slices_gen.go tl_messages_prolong_web_view_gen.go tl_messages_prolong_web_view_slices_gen.go tl_messages_quick_replies_gen.go tl_messages_quick_replies_slices_gen.go tl_messages_rate_transcribed_audio_gen.go tl_messages_rate_transcribed_audio_slices_gen.go tl_messages_reactions_gen.go tl_messages_reactions_slices_gen.go tl_messages_read_discussion_gen.go tl_messages_read_discussion_slices_gen.go tl_messages_read_encrypted_history_gen.go tl_messages_read_encrypted_history_slices_gen.go tl_messages_read_featured_stickers_gen.go tl_messages_read_featured_stickers_slices_gen.go tl_messages_read_history_gen.go tl_messages_read_history_slices_gen.go tl_messages_read_mentions_gen.go tl_messages_read_mentions_slices_gen.go tl_messages_read_message_contents_gen.go tl_messages_read_message_contents_slices_gen.go tl_messages_read_poll_votes_gen.go tl_messages_read_poll_votes_slices_gen.go tl_messages_read_reactions_gen.go tl_messages_read_reactions_slices_gen.go tl_messages_read_saved_history_gen.go tl_messages_read_saved_history_slices_gen.go tl_messages_received_messages_gen.go tl_messages_received_messages_slices_gen.go tl_messages_received_queue_gen.go tl_messages_received_queue_slices_gen.go tl_messages_recent_stickers_gen.go tl_messages_recent_stickers_slices_gen.go tl_messages_reorder_pinned_dialogs_gen.go tl_messages_reorder_pinned_dialogs_slices_gen.go tl_messages_reorder_pinned_forum_topics_gen.go tl_messages_reorder_pinned_forum_topics_slices_gen.go tl_messages_reorder_pinned_saved_dialogs_gen.go tl_messages_reorder_pinned_saved_dialogs_slices_gen.go tl_messages_reorder_quick_replies_gen.go tl_messages_reorder_quick_replies_slices_gen.go tl_messages_reorder_sticker_sets_gen.go tl_messages_reorder_sticker_sets_slices_gen.go tl_messages_report_encrypted_spam_gen.go tl_messages_report_encrypted_spam_slices_gen.go tl_messages_report_gen.go tl_messages_report_messages_delivery_gen.go tl_messages_report_messages_delivery_slices_gen.go tl_messages_report_music_listen_gen.go tl_messages_report_music_listen_slices_gen.go tl_messages_report_reaction_gen.go tl_messages_report_reaction_slices_gen.go tl_messages_report_read_metrics_gen.go tl_messages_report_read_metrics_slices_gen.go tl_messages_report_slices_gen.go tl_messages_report_spam_gen.go tl_messages_report_spam_slices_gen.go tl_messages_report_sponsored_message_gen.go tl_messages_report_sponsored_message_slices_gen.go tl_messages_request_app_web_view_gen.go tl_messages_request_app_web_view_slices_gen.go tl_messages_request_chat_join_web_view_gen.go tl_messages_request_chat_join_web_view_slices_gen.go tl_messages_request_encryption_gen.go tl_messages_request_encryption_slices_gen.go tl_messages_request_main_web_view_gen.go tl_messages_request_main_web_view_slices_gen.go tl_messages_request_simple_web_view_gen.go tl_messages_request_simple_web_view_slices_gen.go tl_messages_request_url_auth_gen.go tl_messages_request_url_auth_slices_gen.go tl_messages_request_web_view_gen.go tl_messages_request_web_view_slices_gen.go tl_messages_save_default_send_as_gen.go tl_messages_save_default_send_as_slices_gen.go tl_messages_save_draft_gen.go tl_messages_save_draft_slices_gen.go tl_messages_save_gif_gen.go tl_messages_save_gif_slices_gen.go tl_messages_save_prepared_inline_message_gen.go tl_messages_save_prepared_inline_message_slices_gen.go tl_messages_save_recent_sticker_gen.go tl_messages_save_recent_sticker_slices_gen.go tl_messages_saved_dialogs_gen.go tl_messages_saved_dialogs_slices_gen.go tl_messages_saved_gifs_gen.go tl_messages_saved_gifs_slices_gen.go tl_messages_saved_reaction_tags_gen.go tl_messages_saved_reaction_tags_slices_gen.go tl_messages_search_counter_gen.go tl_messages_search_counter_slices_gen.go tl_messages_search_counter_vector_gen.go tl_messages_search_counter_vector_slices_gen.go tl_messages_search_custom_emoji_gen.go tl_messages_search_custom_emoji_slices_gen.go tl_messages_search_emoji_sticker_sets_gen.go tl_messages_search_emoji_sticker_sets_slices_gen.go tl_messages_search_gen.go tl_messages_search_global_gen.go tl_messages_search_global_slices_gen.go tl_messages_search_results_calendar_gen.go tl_messages_search_results_calendar_slices_gen.go tl_messages_search_results_positions_gen.go tl_messages_search_results_positions_slices_gen.go tl_messages_search_sent_media_gen.go tl_messages_search_sent_media_slices_gen.go tl_messages_search_slices_gen.go tl_messages_search_sticker_sets_gen.go tl_messages_search_sticker_sets_slices_gen.go tl_messages_search_stickers_gen.go tl_messages_search_stickers_slices_gen.go tl_messages_send_bot_requested_peer_gen.go tl_messages_send_bot_requested_peer_slices_gen.go tl_messages_send_encrypted_file_gen.go tl_messages_send_encrypted_file_slices_gen.go tl_messages_send_encrypted_gen.go tl_messages_send_encrypted_service_gen.go tl_messages_send_encrypted_service_slices_gen.go tl_messages_send_encrypted_slices_gen.go tl_messages_send_inline_bot_result_gen.go tl_messages_send_inline_bot_result_slices_gen.go tl_messages_send_media_gen.go tl_messages_send_media_slices_gen.go tl_messages_send_message_gen.go tl_messages_send_message_slices_gen.go tl_messages_send_multi_media_gen.go tl_messages_send_multi_media_slices_gen.go tl_messages_send_paid_reaction_gen.go tl_messages_send_paid_reaction_slices_gen.go tl_messages_send_quick_reply_messages_gen.go tl_messages_send_quick_reply_messages_slices_gen.go tl_messages_send_reaction_gen.go tl_messages_send_reaction_slices_gen.go tl_messages_send_scheduled_messages_gen.go tl_messages_send_scheduled_messages_slices_gen.go tl_messages_send_screenshot_notification_gen.go tl_messages_send_screenshot_notification_slices_gen.go tl_messages_send_vote_gen.go tl_messages_send_vote_slices_gen.go tl_messages_send_web_view_data_gen.go tl_messages_send_web_view_data_slices_gen.go tl_messages_send_web_view_result_message_gen.go tl_messages_send_web_view_result_message_slices_gen.go tl_messages_sent_encrypted_message_gen.go tl_messages_sent_encrypted_message_slices_gen.go tl_messages_set_bot_callback_answer_gen.go tl_messages_set_bot_callback_answer_slices_gen.go tl_messages_set_bot_guest_chat_result_gen.go tl_messages_set_bot_guest_chat_result_slices_gen.go tl_messages_set_bot_precheckout_results_gen.go tl_messages_set_bot_precheckout_results_slices_gen.go tl_messages_set_bot_shipping_results_gen.go tl_messages_set_bot_shipping_results_slices_gen.go tl_messages_set_chat_available_reactions_gen.go tl_messages_set_chat_available_reactions_slices_gen.go tl_messages_set_chat_theme_gen.go tl_messages_set_chat_theme_slices_gen.go tl_messages_set_chat_wall_paper_gen.go tl_messages_set_chat_wall_paper_slices_gen.go tl_messages_set_default_history_ttl_gen.go tl_messages_set_default_history_ttl_slices_gen.go tl_messages_set_default_reaction_gen.go tl_messages_set_default_reaction_slices_gen.go tl_messages_set_encrypted_typing_gen.go tl_messages_set_encrypted_typing_slices_gen.go tl_messages_set_game_score_gen.go tl_messages_set_game_score_slices_gen.go tl_messages_set_history_ttl_gen.go tl_messages_set_history_ttl_slices_gen.go tl_messages_set_inline_bot_results_gen.go tl_messages_set_inline_bot_results_slices_gen.go tl_messages_set_inline_game_score_gen.go tl_messages_set_inline_game_score_slices_gen.go tl_messages_set_typing_gen.go tl_messages_set_typing_slices_gen.go tl_messages_sponsored_messages_gen.go tl_messages_sponsored_messages_slices_gen.go tl_messages_start_bot_gen.go tl_messages_start_bot_slices_gen.go tl_messages_start_history_import_gen.go tl_messages_start_history_import_slices_gen.go tl_messages_sticker_set_gen.go tl_messages_sticker_set_install_result_gen.go tl_messages_sticker_set_install_result_slices_gen.go tl_messages_sticker_set_slices_gen.go tl_messages_stickers_gen.go tl_messages_stickers_slices_gen.go tl_messages_summarize_text_gen.go tl_messages_summarize_text_slices_gen.go tl_messages_toggle_bot_in_attach_menu_gen.go tl_messages_toggle_bot_in_attach_menu_slices_gen.go tl_messages_toggle_dialog_filter_tags_gen.go tl_messages_toggle_dialog_filter_tags_slices_gen.go tl_messages_toggle_dialog_pin_gen.go tl_messages_toggle_dialog_pin_slices_gen.go tl_messages_toggle_no_forwards_gen.go tl_messages_toggle_no_forwards_slices_gen.go tl_messages_toggle_paid_reaction_privacy_gen.go tl_messages_toggle_paid_reaction_privacy_slices_gen.go tl_messages_toggle_peer_translations_gen.go tl_messages_toggle_peer_translations_slices_gen.go tl_messages_toggle_saved_dialog_pin_gen.go tl_messages_toggle_saved_dialog_pin_slices_gen.go tl_messages_toggle_sticker_sets_gen.go tl_messages_toggle_sticker_sets_slices_gen.go tl_messages_toggle_suggested_post_approval_gen.go tl_messages_toggle_suggested_post_approval_slices_gen.go tl_messages_toggle_todo_completed_gen.go tl_messages_toggle_todo_completed_slices_gen.go tl_messages_transcribe_audio_gen.go tl_messages_transcribe_audio_slices_gen.go tl_messages_transcribed_audio_gen.go tl_messages_transcribed_audio_slices_gen.go tl_messages_translate_result_gen.go tl_messages_translate_result_slices_gen.go tl_messages_translate_rich_message_gen.go tl_messages_translate_rich_message_slices_gen.go tl_messages_translate_text_gen.go tl_messages_translate_text_slices_gen.go tl_messages_translated_rich_message_gen.go tl_messages_translated_rich_message_slices_gen.go tl_messages_uninstall_sticker_set_gen.go tl_messages_uninstall_sticker_set_slices_gen.go tl_messages_unpin_all_messages_gen.go tl_messages_unpin_all_messages_slices_gen.go tl_messages_update_dialog_filter_gen.go tl_messages_update_dialog_filter_slices_gen.go tl_messages_update_dialog_filters_order_gen.go tl_messages_update_dialog_filters_order_slices_gen.go tl_messages_update_pinned_forum_topic_gen.go tl_messages_update_pinned_forum_topic_slices_gen.go tl_messages_update_pinned_message_gen.go tl_messages_update_pinned_message_slices_gen.go tl_messages_update_saved_reaction_tag_gen.go tl_messages_update_saved_reaction_tag_slices_gen.go tl_messages_upload_encrypted_file_gen.go tl_messages_upload_encrypted_file_slices_gen.go tl_messages_upload_imported_media_gen.go tl_messages_upload_imported_media_slices_gen.go tl_messages_upload_media_gen.go tl_messages_upload_media_slices_gen.go tl_messages_view_sponsored_message_gen.go tl_messages_view_sponsored_message_slices_gen.go tl_messages_votes_list_gen.go tl_messages_votes_list_slices_gen.go tl_messages_web_page_gen.go tl_messages_web_page_preview_gen.go tl_messages_web_page_preview_slices_gen.go tl_messages_web_page_slices_gen.go tl_missing_invitee_gen.go tl_missing_invitee_slices_gen.go tl_my_boost_gen.go tl_my_boost_slices_gen.go tl_nearest_dc_gen.go tl_nearest_dc_slices_gen.go tl_notification_sound_gen.go tl_notification_sound_slices_gen.go tl_notify_peer_gen.go tl_notify_peer_slices_gen.go tl_null_gen.go tl_null_slices_gen.go tl_outbox_read_date_gen.go tl_outbox_read_date_slices_gen.go tl_page_block_gen.go tl_page_block_slices_gen.go tl_page_caption_gen.go tl_page_caption_slices_gen.go tl_page_gen.go tl_page_list_item_gen.go tl_page_list_item_slices_gen.go tl_page_list_ordered_item_gen.go tl_page_list_ordered_item_slices_gen.go tl_page_related_article_gen.go tl_page_related_article_slices_gen.go tl_page_slices_gen.go tl_page_table_cell_gen.go tl_page_table_cell_slices_gen.go tl_page_table_row_gen.go tl_page_table_row_slices_gen.go tl_paid_reaction_privacy_gen.go tl_paid_reaction_privacy_slices_gen.go tl_passkey_gen.go tl_passkey_slices_gen.go tl_password_kdf_algo_gen.go tl_password_kdf_algo_slices_gen.go tl_payment_charge_gen.go tl_payment_charge_slices_gen.go tl_payment_form_method_gen.go tl_payment_form_method_slices_gen.go tl_payment_requested_info_gen.go tl_payment_requested_info_slices_gen.go tl_payment_saved_credentials_card_gen.go tl_payment_saved_credentials_card_slices_gen.go tl_payments_apply_gift_code_gen.go tl_payments_apply_gift_code_slices_gen.go tl_payments_assign_app_store_transaction_gen.go tl_payments_assign_app_store_transaction_slices_gen.go tl_payments_assign_play_market_transaction_gen.go tl_payments_assign_play_market_transaction_slices_gen.go tl_payments_bank_card_data_gen.go tl_payments_bank_card_data_slices_gen.go tl_payments_bot_cancel_stars_subscription_gen.go tl_payments_bot_cancel_stars_subscription_slices_gen.go tl_payments_can_purchase_store_gen.go tl_payments_can_purchase_store_slices_gen.go tl_payments_change_stars_subscription_gen.go tl_payments_change_stars_subscription_slices_gen.go tl_payments_check_can_send_gift_gen.go tl_payments_check_can_send_gift_result_gen.go tl_payments_check_can_send_gift_result_slices_gen.go tl_payments_check_can_send_gift_slices_gen.go tl_payments_check_gift_code_gen.go tl_payments_check_gift_code_slices_gen.go tl_payments_checked_gift_code_gen.go tl_payments_checked_gift_code_slices_gen.go tl_payments_clear_saved_info_gen.go tl_payments_clear_saved_info_slices_gen.go tl_payments_connect_star_ref_bot_gen.go tl_payments_connect_star_ref_bot_slices_gen.go tl_payments_connected_star_ref_bots_gen.go tl_payments_connected_star_ref_bots_slices_gen.go tl_payments_convert_star_gift_gen.go tl_payments_convert_star_gift_slices_gen.go tl_payments_craft_star_gift_gen.go tl_payments_craft_star_gift_slices_gen.go tl_payments_create_star_gift_collection_gen.go tl_payments_create_star_gift_collection_slices_gen.go tl_payments_delete_star_gift_collection_gen.go tl_payments_delete_star_gift_collection_slices_gen.go tl_payments_edit_connected_star_ref_bot_gen.go tl_payments_edit_connected_star_ref_bot_slices_gen.go tl_payments_export_invoice_gen.go tl_payments_export_invoice_slices_gen.go tl_payments_exported_invoice_gen.go tl_payments_exported_invoice_slices_gen.go tl_payments_fulfill_stars_subscription_gen.go tl_payments_fulfill_stars_subscription_slices_gen.go tl_payments_get_bank_card_data_gen.go tl_payments_get_bank_card_data_slices_gen.go tl_payments_get_connected_star_ref_bot_gen.go tl_payments_get_connected_star_ref_bot_slices_gen.go tl_payments_get_connected_star_ref_bots_gen.go tl_payments_get_connected_star_ref_bots_slices_gen.go tl_payments_get_craft_star_gifts_gen.go tl_payments_get_craft_star_gifts_slices_gen.go tl_payments_get_giveaway_info_gen.go tl_payments_get_giveaway_info_slices_gen.go tl_payments_get_payment_form_gen.go tl_payments_get_payment_form_slices_gen.go tl_payments_get_payment_receipt_gen.go tl_payments_get_payment_receipt_slices_gen.go tl_payments_get_premium_gift_code_options_gen.go tl_payments_get_premium_gift_code_options_slices_gen.go tl_payments_get_resale_star_gifts_gen.go tl_payments_get_resale_star_gifts_slices_gen.go tl_payments_get_saved_info_gen.go tl_payments_get_saved_info_slices_gen.go tl_payments_get_saved_star_gift_gen.go tl_payments_get_saved_star_gift_slices_gen.go tl_payments_get_saved_star_gifts_gen.go tl_payments_get_saved_star_gifts_slices_gen.go tl_payments_get_star_gift_active_auctions_gen.go tl_payments_get_star_gift_active_auctions_slices_gen.go tl_payments_get_star_gift_auction_acquired_gifts_gen.go tl_payments_get_star_gift_auction_acquired_gifts_slices_gen.go tl_payments_get_star_gift_auction_state_gen.go tl_payments_get_star_gift_auction_state_slices_gen.go tl_payments_get_star_gift_collections_gen.go tl_payments_get_star_gift_collections_slices_gen.go tl_payments_get_star_gift_upgrade_attributes_gen.go tl_payments_get_star_gift_upgrade_attributes_slices_gen.go tl_payments_get_star_gift_upgrade_preview_gen.go tl_payments_get_star_gift_upgrade_preview_slices_gen.go tl_payments_get_star_gift_withdrawal_url_gen.go tl_payments_get_star_gift_withdrawal_url_slices_gen.go tl_payments_get_star_gifts_gen.go tl_payments_get_star_gifts_slices_gen.go tl_payments_get_stars_gift_options_gen.go tl_payments_get_stars_gift_options_slices_gen.go tl_payments_get_stars_giveaway_options_gen.go tl_payments_get_stars_giveaway_options_slices_gen.go tl_payments_get_stars_revenue_ads_account_url_gen.go tl_payments_get_stars_revenue_ads_account_url_slices_gen.go tl_payments_get_stars_revenue_stats_gen.go tl_payments_get_stars_revenue_stats_slices_gen.go tl_payments_get_stars_revenue_withdrawal_url_gen.go tl_payments_get_stars_revenue_withdrawal_url_slices_gen.go tl_payments_get_stars_status_gen.go tl_payments_get_stars_status_slices_gen.go tl_payments_get_stars_subscriptions_gen.go tl_payments_get_stars_subscriptions_slices_gen.go tl_payments_get_stars_topup_options_gen.go tl_payments_get_stars_topup_options_slices_gen.go tl_payments_get_stars_transactions_by_id_gen.go tl_payments_get_stars_transactions_by_id_slices_gen.go tl_payments_get_stars_transactions_gen.go tl_payments_get_stars_transactions_slices_gen.go tl_payments_get_suggested_star_ref_bots_gen.go tl_payments_get_suggested_star_ref_bots_slices_gen.go tl_payments_get_unique_star_gift_gen.go tl_payments_get_unique_star_gift_slices_gen.go tl_payments_get_unique_star_gift_value_info_gen.go tl_payments_get_unique_star_gift_value_info_slices_gen.go tl_payments_giveaway_info_gen.go tl_payments_giveaway_info_slices_gen.go tl_payments_launch_prepaid_giveaway_gen.go tl_payments_launch_prepaid_giveaway_slices_gen.go tl_payments_payment_form_gen.go tl_payments_payment_form_slices_gen.go tl_payments_payment_receipt_gen.go tl_payments_payment_receipt_slices_gen.go tl_payments_payment_result_gen.go tl_payments_payment_result_slices_gen.go tl_payments_refund_stars_charge_gen.go tl_payments_refund_stars_charge_slices_gen.go tl_payments_reorder_star_gift_collections_gen.go tl_payments_reorder_star_gift_collections_slices_gen.go tl_payments_resale_star_gifts_gen.go tl_payments_resale_star_gifts_slices_gen.go tl_payments_resolve_star_gift_offer_gen.go tl_payments_resolve_star_gift_offer_slices_gen.go tl_payments_save_star_gift_gen.go tl_payments_save_star_gift_slices_gen.go tl_payments_saved_info_gen.go tl_payments_saved_info_slices_gen.go tl_payments_saved_star_gifts_gen.go tl_payments_saved_star_gifts_slices_gen.go tl_payments_send_payment_form_gen.go tl_payments_send_payment_form_slices_gen.go tl_payments_send_star_gift_offer_gen.go tl_payments_send_star_gift_offer_slices_gen.go tl_payments_send_stars_form_gen.go tl_payments_send_stars_form_slices_gen.go tl_payments_star_gift_active_auctions_gen.go tl_payments_star_gift_active_auctions_slices_gen.go tl_payments_star_gift_auction_acquired_gifts_gen.go tl_payments_star_gift_auction_acquired_gifts_slices_gen.go tl_payments_star_gift_auction_state_gen.go tl_payments_star_gift_auction_state_slices_gen.go tl_payments_star_gift_collections_gen.go tl_payments_star_gift_collections_slices_gen.go tl_payments_star_gift_upgrade_attributes_gen.go tl_payments_star_gift_upgrade_attributes_slices_gen.go tl_payments_star_gift_upgrade_preview_gen.go tl_payments_star_gift_upgrade_preview_slices_gen.go tl_payments_star_gift_withdrawal_url_gen.go tl_payments_star_gift_withdrawal_url_slices_gen.go tl_payments_star_gifts_gen.go tl_payments_star_gifts_slices_gen.go tl_payments_stars_revenue_ads_account_url_gen.go tl_payments_stars_revenue_ads_account_url_slices_gen.go tl_payments_stars_revenue_stats_gen.go tl_payments_stars_revenue_stats_slices_gen.go tl_payments_stars_revenue_withdrawal_url_gen.go tl_payments_stars_revenue_withdrawal_url_slices_gen.go tl_payments_stars_status_gen.go tl_payments_stars_status_slices_gen.go tl_payments_suggested_star_ref_bots_gen.go tl_payments_suggested_star_ref_bots_slices_gen.go tl_payments_toggle_chat_star_gift_notifications_gen.go tl_payments_toggle_chat_star_gift_notifications_slices_gen.go tl_payments_toggle_star_gifts_pinned_to_top_gen.go tl_payments_toggle_star_gifts_pinned_to_top_slices_gen.go tl_payments_transfer_star_gift_gen.go tl_payments_transfer_star_gift_slices_gen.go tl_payments_unique_star_gift_gen.go tl_payments_unique_star_gift_slices_gen.go tl_payments_unique_star_gift_value_info_gen.go tl_payments_unique_star_gift_value_info_slices_gen.go tl_payments_update_star_gift_collection_gen.go tl_payments_update_star_gift_collection_slices_gen.go tl_payments_update_star_gift_price_gen.go tl_payments_update_star_gift_price_slices_gen.go tl_payments_upgrade_star_gift_gen.go tl_payments_upgrade_star_gift_slices_gen.go tl_payments_validate_requested_info_gen.go tl_payments_validate_requested_info_slices_gen.go tl_payments_validated_requested_info_gen.go tl_payments_validated_requested_info_slices_gen.go tl_peer_blocked_gen.go tl_peer_blocked_slices_gen.go tl_peer_class_vector_gen.go tl_peer_class_vector_slices_gen.go tl_peer_color_gen.go tl_peer_color_slices_gen.go tl_peer_gen.go tl_peer_located_gen.go tl_peer_located_slices_gen.go tl_peer_notify_settings_gen.go tl_peer_notify_settings_slices_gen.go tl_peer_settings_gen.go tl_peer_settings_slices_gen.go tl_peer_slices_gen.go tl_peer_stories_gen.go tl_peer_stories_slices_gen.go tl_pending_suggestion_gen.go tl_pending_suggestion_slices_gen.go tl_phone_accept_call_gen.go tl_phone_accept_call_slices_gen.go tl_phone_call_discard_reason_gen.go tl_phone_call_discard_reason_slices_gen.go tl_phone_call_gen.go tl_phone_call_protocol_gen.go tl_phone_call_protocol_slices_gen.go tl_phone_call_slices_gen.go tl_phone_check_group_call_gen.go tl_phone_check_group_call_slices_gen.go tl_phone_confirm_call_gen.go tl_phone_confirm_call_slices_gen.go tl_phone_connection_gen.go tl_phone_connection_slices_gen.go tl_phone_create_conference_call_gen.go tl_phone_create_conference_call_slices_gen.go tl_phone_create_group_call_gen.go tl_phone_create_group_call_slices_gen.go tl_phone_decline_conference_call_invite_gen.go tl_phone_decline_conference_call_invite_slices_gen.go tl_phone_delete_conference_call_participants_gen.go tl_phone_delete_conference_call_participants_slices_gen.go tl_phone_delete_group_call_messages_gen.go tl_phone_delete_group_call_messages_slices_gen.go tl_phone_delete_group_call_participant_messages_gen.go tl_phone_delete_group_call_participant_messages_slices_gen.go tl_phone_discard_call_gen.go tl_phone_discard_call_slices_gen.go tl_phone_discard_group_call_gen.go tl_phone_discard_group_call_slices_gen.go tl_phone_edit_group_call_participant_gen.go tl_phone_edit_group_call_participant_slices_gen.go tl_phone_edit_group_call_title_gen.go tl_phone_edit_group_call_title_slices_gen.go tl_phone_export_group_call_invite_gen.go tl_phone_export_group_call_invite_slices_gen.go tl_phone_exported_group_call_invite_gen.go tl_phone_exported_group_call_invite_slices_gen.go tl_phone_get_call_config_gen.go tl_phone_get_call_config_slices_gen.go tl_phone_get_group_call_chain_blocks_gen.go tl_phone_get_group_call_chain_blocks_slices_gen.go tl_phone_get_group_call_gen.go tl_phone_get_group_call_join_as_gen.go tl_phone_get_group_call_join_as_slices_gen.go tl_phone_get_group_call_slices_gen.go tl_phone_get_group_call_stars_gen.go tl_phone_get_group_call_stars_slices_gen.go tl_phone_get_group_call_stream_channels_gen.go tl_phone_get_group_call_stream_channels_slices_gen.go tl_phone_get_group_call_stream_rtmp_url_gen.go tl_phone_get_group_call_stream_rtmp_url_slices_gen.go tl_phone_get_group_participants_gen.go tl_phone_get_group_participants_slices_gen.go tl_phone_group_call_gen.go tl_phone_group_call_slices_gen.go tl_phone_group_call_stars_gen.go tl_phone_group_call_stars_slices_gen.go tl_phone_group_call_stream_channels_gen.go tl_phone_group_call_stream_channels_slices_gen.go tl_phone_group_call_stream_rtmp_url_gen.go tl_phone_group_call_stream_rtmp_url_slices_gen.go tl_phone_group_participants_gen.go tl_phone_group_participants_slices_gen.go tl_phone_invite_conference_call_participant_gen.go tl_phone_invite_conference_call_participant_slices_gen.go tl_phone_invite_to_group_call_gen.go tl_phone_invite_to_group_call_slices_gen.go tl_phone_join_as_peers_gen.go tl_phone_join_as_peers_slices_gen.go tl_phone_join_group_call_gen.go tl_phone_join_group_call_presentation_gen.go tl_phone_join_group_call_presentation_slices_gen.go tl_phone_join_group_call_slices_gen.go tl_phone_leave_group_call_gen.go tl_phone_leave_group_call_presentation_gen.go tl_phone_leave_group_call_presentation_slices_gen.go tl_phone_leave_group_call_slices_gen.go tl_phone_phone_call_gen.go tl_phone_phone_call_slices_gen.go tl_phone_received_call_gen.go tl_phone_received_call_slices_gen.go tl_phone_request_call_gen.go tl_phone_request_call_slices_gen.go tl_phone_save_call_debug_gen.go tl_phone_save_call_debug_slices_gen.go tl_phone_save_call_log_gen.go tl_phone_save_call_log_slices_gen.go tl_phone_save_default_group_call_join_as_gen.go tl_phone_save_default_group_call_join_as_slices_gen.go tl_phone_save_default_send_as_gen.go tl_phone_save_default_send_as_slices_gen.go tl_phone_send_conference_call_broadcast_gen.go tl_phone_send_conference_call_broadcast_slices_gen.go tl_phone_send_group_call_encrypted_message_gen.go tl_phone_send_group_call_encrypted_message_slices_gen.go tl_phone_send_group_call_message_gen.go tl_phone_send_group_call_message_slices_gen.go tl_phone_send_signaling_data_gen.go tl_phone_send_signaling_data_slices_gen.go tl_phone_set_call_rating_gen.go tl_phone_set_call_rating_slices_gen.go tl_phone_start_scheduled_group_call_gen.go tl_phone_start_scheduled_group_call_slices_gen.go tl_phone_toggle_group_call_record_gen.go tl_phone_toggle_group_call_record_slices_gen.go tl_phone_toggle_group_call_settings_gen.go tl_phone_toggle_group_call_settings_slices_gen.go tl_phone_toggle_group_call_start_subscription_gen.go tl_phone_toggle_group_call_start_subscription_slices_gen.go tl_photo_gen.go tl_photo_size_gen.go tl_photo_size_slices_gen.go tl_photo_slices_gen.go tl_photos_delete_photos_gen.go tl_photos_delete_photos_slices_gen.go tl_photos_get_user_photos_gen.go tl_photos_get_user_photos_slices_gen.go tl_photos_photo_gen.go tl_photos_photo_slices_gen.go tl_photos_photos_gen.go tl_photos_photos_slices_gen.go tl_photos_update_profile_photo_gen.go tl_photos_update_profile_photo_slices_gen.go tl_photos_upload_contact_profile_photo_gen.go tl_photos_upload_contact_profile_photo_slices_gen.go tl_photos_upload_profile_photo_gen.go tl_photos_upload_profile_photo_slices_gen.go tl_poll_answer_gen.go tl_poll_answer_slices_gen.go tl_poll_answer_voters_gen.go tl_poll_answer_voters_slices_gen.go tl_poll_gen.go tl_poll_results_gen.go tl_poll_results_slices_gen.go tl_poll_slices_gen.go tl_popular_contact_gen.go tl_popular_contact_slices_gen.go tl_post_address_gen.go tl_post_address_slices_gen.go tl_post_interaction_counters_gen.go tl_post_interaction_counters_slices_gen.go tl_premium_apply_boost_gen.go tl_premium_apply_boost_slices_gen.go tl_premium_boosts_list_gen.go tl_premium_boosts_list_slices_gen.go tl_premium_boosts_status_gen.go tl_premium_boosts_status_slices_gen.go tl_premium_get_boosts_list_gen.go tl_premium_get_boosts_list_slices_gen.go tl_premium_get_boosts_status_gen.go tl_premium_get_boosts_status_slices_gen.go tl_premium_get_my_boosts_gen.go tl_premium_get_my_boosts_slices_gen.go tl_premium_get_user_boosts_gen.go tl_premium_get_user_boosts_slices_gen.go tl_premium_gift_code_option_gen.go tl_premium_gift_code_option_slices_gen.go tl_premium_gift_code_option_vector_gen.go tl_premium_gift_code_option_vector_slices_gen.go tl_premium_my_boosts_gen.go tl_premium_my_boosts_slices_gen.go tl_premium_subscription_option_gen.go tl_premium_subscription_option_slices_gen.go tl_prepaid_giveaway_gen.go tl_prepaid_giveaway_slices_gen.go tl_privacy_key_gen.go tl_privacy_key_slices_gen.go tl_privacy_rule_gen.go tl_privacy_rule_slices_gen.go tl_profile_tab_gen.go tl_profile_tab_slices_gen.go tl_public_forward_gen.go tl_public_forward_slices_gen.go tl_quick_reply_gen.go tl_quick_reply_slices_gen.go tl_reaction_count_gen.go tl_reaction_count_slices_gen.go tl_reaction_gen.go tl_reaction_notifications_from_gen.go tl_reaction_notifications_from_slices_gen.go tl_reaction_slices_gen.go tl_reactions_notify_settings_gen.go tl_reactions_notify_settings_slices_gen.go tl_read_participant_date_gen.go tl_read_participant_date_slices_gen.go tl_read_participant_date_vector_gen.go tl_read_participant_date_vector_slices_gen.go tl_received_notify_message_gen.go tl_received_notify_message_slices_gen.go tl_received_notify_message_vector_gen.go tl_received_notify_message_vector_slices_gen.go tl_recent_me_url_gen.go tl_recent_me_url_slices_gen.go tl_recent_story_gen.go tl_recent_story_slices_gen.go tl_recent_story_vector_gen.go tl_recent_story_vector_slices_gen.go tl_registry_gen.go tl_reply_markup_gen.go tl_reply_markup_slices_gen.go tl_report_reason_gen.go tl_report_reason_slices_gen.go tl_report_result_gen.go tl_report_result_slices_gen.go tl_request_peer_type_gen.go tl_request_peer_type_slices_gen.go tl_requested_peer_gen.go tl_requested_peer_slices_gen.go tl_requirement_to_contact_class_vector_gen.go tl_requirement_to_contact_class_vector_slices_gen.go tl_requirement_to_contact_gen.go tl_requirement_to_contact_slices_gen.go tl_restriction_reason_gen.go tl_restriction_reason_slices_gen.go tl_rich_message_gen.go tl_rich_message_slices_gen.go tl_rich_text_gen.go tl_rich_text_slices_gen.go tl_saved_dialog_gen.go tl_saved_dialog_slices_gen.go tl_saved_phone_contact_gen.go tl_saved_phone_contact_slices_gen.go tl_saved_phone_contact_vector_gen.go tl_saved_phone_contact_vector_slices_gen.go tl_saved_reaction_tag_gen.go tl_saved_reaction_tag_slices_gen.go tl_saved_star_gift_gen.go tl_saved_star_gift_slices_gen.go tl_search_posts_flood_gen.go tl_search_posts_flood_slices_gen.go tl_search_result_position_gen.go tl_search_result_position_slices_gen.go tl_search_results_calendar_period_gen.go tl_search_results_calendar_period_slices_gen.go tl_secure_credentials_encrypted_gen.go tl_secure_credentials_encrypted_slices_gen.go tl_secure_data_gen.go tl_secure_data_slices_gen.go tl_secure_file_gen.go tl_secure_file_slices_gen.go tl_secure_password_kdf_algo_gen.go tl_secure_password_kdf_algo_slices_gen.go tl_secure_plain_data_gen.go tl_secure_plain_data_slices_gen.go tl_secure_required_type_gen.go tl_secure_required_type_slices_gen.go tl_secure_secret_settings_gen.go tl_secure_secret_settings_slices_gen.go tl_secure_value_error_gen.go tl_secure_value_error_slices_gen.go tl_secure_value_gen.go tl_secure_value_hash_gen.go tl_secure_value_hash_slices_gen.go tl_secure_value_slices_gen.go tl_secure_value_type_gen.go tl_secure_value_type_slices_gen.go tl_secure_value_vector_gen.go tl_secure_value_vector_slices_gen.go tl_send_as_peer_gen.go tl_send_as_peer_slices_gen.go tl_send_message_action_gen.go tl_send_message_action_slices_gen.go tl_server_gen.go tl_shipping_option_gen.go tl_shipping_option_slices_gen.go tl_sms_job_gen.go tl_sms_job_slices_gen.go tl_smsjobs_eligible_to_join_gen.go tl_smsjobs_eligible_to_join_slices_gen.go tl_smsjobs_finish_job_gen.go tl_smsjobs_finish_job_slices_gen.go tl_smsjobs_get_sms_job_gen.go tl_smsjobs_get_sms_job_slices_gen.go tl_smsjobs_get_status_gen.go tl_smsjobs_get_status_slices_gen.go tl_smsjobs_is_eligible_to_join_gen.go tl_smsjobs_is_eligible_to_join_slices_gen.go tl_smsjobs_join_gen.go tl_smsjobs_join_slices_gen.go tl_smsjobs_leave_gen.go tl_smsjobs_leave_slices_gen.go tl_smsjobs_status_gen.go tl_smsjobs_status_slices_gen.go tl_smsjobs_update_settings_gen.go tl_smsjobs_update_settings_slices_gen.go tl_sponsored_message_gen.go tl_sponsored_message_report_option_gen.go tl_sponsored_message_report_option_slices_gen.go tl_sponsored_message_slices_gen.go tl_sponsored_peer_gen.go tl_sponsored_peer_slices_gen.go tl_star_gift_active_auction_state_gen.go tl_star_gift_active_auction_state_slices_gen.go tl_star_gift_attribute_counter_gen.go tl_star_gift_attribute_counter_slices_gen.go tl_star_gift_attribute_gen.go tl_star_gift_attribute_id_gen.go tl_star_gift_attribute_id_slices_gen.go tl_star_gift_attribute_rarity_gen.go tl_star_gift_attribute_rarity_slices_gen.go tl_star_gift_attribute_slices_gen.go tl_star_gift_auction_acquired_gift_gen.go tl_star_gift_auction_acquired_gift_slices_gen.go tl_star_gift_auction_round_gen.go tl_star_gift_auction_round_slices_gen.go tl_star_gift_auction_state_gen.go tl_star_gift_auction_state_slices_gen.go tl_star_gift_auction_user_state_gen.go tl_star_gift_auction_user_state_slices_gen.go tl_star_gift_background_gen.go tl_star_gift_background_slices_gen.go tl_star_gift_collection_gen.go tl_star_gift_collection_slices_gen.go tl_star_gift_gen.go tl_star_gift_slices_gen.go tl_star_gift_upgrade_price_gen.go tl_star_gift_upgrade_price_slices_gen.go tl_star_ref_program_gen.go tl_star_ref_program_slices_gen.go tl_stars_amount_gen.go tl_stars_amount_slices_gen.go tl_stars_gift_option_gen.go tl_stars_gift_option_slices_gen.go tl_stars_gift_option_vector_gen.go tl_stars_gift_option_vector_slices_gen.go tl_stars_giveaway_option_gen.go tl_stars_giveaway_option_slices_gen.go tl_stars_giveaway_option_vector_gen.go tl_stars_giveaway_option_vector_slices_gen.go tl_stars_giveaway_winners_option_gen.go tl_stars_giveaway_winners_option_slices_gen.go tl_stars_rating_gen.go tl_stars_rating_slices_gen.go tl_stars_revenue_status_gen.go tl_stars_revenue_status_slices_gen.go tl_stars_subscription_gen.go tl_stars_subscription_pricing_gen.go tl_stars_subscription_pricing_slices_gen.go tl_stars_subscription_slices_gen.go tl_stars_topup_option_gen.go tl_stars_topup_option_slices_gen.go tl_stars_topup_option_vector_gen.go tl_stars_topup_option_vector_slices_gen.go tl_stars_transaction_gen.go tl_stars_transaction_peer_gen.go tl_stars_transaction_peer_slices_gen.go tl_stars_transaction_slices_gen.go tl_stats_abs_value_and_prev_gen.go tl_stats_abs_value_and_prev_slices_gen.go tl_stats_broadcast_stats_gen.go tl_stats_broadcast_stats_slices_gen.go tl_stats_date_range_days_gen.go tl_stats_date_range_days_slices_gen.go tl_stats_get_broadcast_stats_gen.go tl_stats_get_broadcast_stats_slices_gen.go tl_stats_get_megagroup_stats_gen.go tl_stats_get_megagroup_stats_slices_gen.go tl_stats_get_message_public_forwards_gen.go tl_stats_get_message_public_forwards_slices_gen.go tl_stats_get_message_stats_gen.go tl_stats_get_message_stats_slices_gen.go tl_stats_get_poll_stats_gen.go tl_stats_get_poll_stats_slices_gen.go tl_stats_get_story_public_forwards_gen.go tl_stats_get_story_public_forwards_slices_gen.go tl_stats_get_story_stats_gen.go tl_stats_get_story_stats_slices_gen.go tl_stats_graph_gen.go tl_stats_graph_slices_gen.go tl_stats_group_top_admin_gen.go tl_stats_group_top_admin_slices_gen.go tl_stats_group_top_inviter_gen.go tl_stats_group_top_inviter_slices_gen.go tl_stats_group_top_poster_gen.go tl_stats_group_top_poster_slices_gen.go tl_stats_load_async_graph_gen.go tl_stats_load_async_graph_slices_gen.go tl_stats_megagroup_stats_gen.go tl_stats_megagroup_stats_slices_gen.go tl_stats_message_stats_gen.go tl_stats_message_stats_slices_gen.go tl_stats_percent_value_gen.go tl_stats_percent_value_slices_gen.go tl_stats_poll_stats_gen.go tl_stats_poll_stats_slices_gen.go tl_stats_public_forwards_gen.go tl_stats_public_forwards_slices_gen.go tl_stats_story_stats_gen.go tl_stats_story_stats_slices_gen.go tl_stats_url_gen.go tl_stats_url_slices_gen.go tl_sticker_keyword_gen.go tl_sticker_keyword_slices_gen.go tl_sticker_pack_gen.go tl_sticker_pack_slices_gen.go tl_sticker_set_covered_class_vector_gen.go tl_sticker_set_covered_class_vector_slices_gen.go tl_sticker_set_covered_gen.go tl_sticker_set_covered_slices_gen.go tl_sticker_set_gen.go tl_sticker_set_slices_gen.go tl_stickers_add_sticker_to_set_gen.go tl_stickers_add_sticker_to_set_slices_gen.go tl_stickers_change_sticker_gen.go tl_stickers_change_sticker_position_gen.go tl_stickers_change_sticker_position_slices_gen.go tl_stickers_change_sticker_slices_gen.go tl_stickers_check_short_name_gen.go tl_stickers_check_short_name_slices_gen.go tl_stickers_create_sticker_set_gen.go tl_stickers_create_sticker_set_slices_gen.go tl_stickers_delete_sticker_set_gen.go tl_stickers_delete_sticker_set_slices_gen.go tl_stickers_remove_sticker_from_set_gen.go tl_stickers_remove_sticker_from_set_slices_gen.go tl_stickers_rename_sticker_set_gen.go tl_stickers_rename_sticker_set_slices_gen.go tl_stickers_replace_sticker_gen.go tl_stickers_replace_sticker_slices_gen.go tl_stickers_set_sticker_set_thumb_gen.go tl_stickers_set_sticker_set_thumb_slices_gen.go tl_stickers_suggest_short_name_gen.go tl_stickers_suggest_short_name_slices_gen.go tl_stickers_suggested_short_name_gen.go tl_stickers_suggested_short_name_slices_gen.go tl_storage_file_type_gen.go tl_storage_file_type_slices_gen.go tl_stories_activate_stealth_mode_gen.go tl_stories_activate_stealth_mode_slices_gen.go tl_stories_albums_gen.go tl_stories_albums_slices_gen.go tl_stories_all_stories_gen.go tl_stories_all_stories_slices_gen.go tl_stories_can_send_story_count_gen.go tl_stories_can_send_story_count_slices_gen.go tl_stories_can_send_story_gen.go tl_stories_can_send_story_slices_gen.go tl_stories_create_album_gen.go tl_stories_create_album_slices_gen.go tl_stories_delete_album_gen.go tl_stories_delete_album_slices_gen.go tl_stories_delete_stories_gen.go tl_stories_delete_stories_slices_gen.go tl_stories_edit_story_gen.go tl_stories_edit_story_slices_gen.go tl_stories_export_story_link_gen.go tl_stories_export_story_link_slices_gen.go tl_stories_found_stories_gen.go tl_stories_found_stories_slices_gen.go tl_stories_get_album_stories_gen.go tl_stories_get_album_stories_slices_gen.go tl_stories_get_albums_gen.go tl_stories_get_albums_slices_gen.go tl_stories_get_all_read_peer_stories_gen.go tl_stories_get_all_read_peer_stories_slices_gen.go tl_stories_get_all_stories_gen.go tl_stories_get_all_stories_slices_gen.go tl_stories_get_chats_to_send_gen.go tl_stories_get_chats_to_send_slices_gen.go tl_stories_get_peer_max_ids_gen.go tl_stories_get_peer_max_ids_slices_gen.go tl_stories_get_peer_stories_gen.go tl_stories_get_peer_stories_slices_gen.go tl_stories_get_pinned_stories_gen.go tl_stories_get_pinned_stories_slices_gen.go tl_stories_get_stories_archive_gen.go tl_stories_get_stories_archive_slices_gen.go tl_stories_get_stories_by_id_gen.go tl_stories_get_stories_by_id_slices_gen.go tl_stories_get_stories_views_gen.go tl_stories_get_stories_views_slices_gen.go tl_stories_get_story_reactions_list_gen.go tl_stories_get_story_reactions_list_slices_gen.go tl_stories_get_story_views_list_gen.go tl_stories_get_story_views_list_slices_gen.go tl_stories_increment_story_views_gen.go tl_stories_increment_story_views_slices_gen.go tl_stories_peer_stories_gen.go tl_stories_peer_stories_slices_gen.go tl_stories_read_stories_gen.go tl_stories_read_stories_slices_gen.go tl_stories_reorder_albums_gen.go tl_stories_reorder_albums_slices_gen.go tl_stories_report_gen.go tl_stories_report_slices_gen.go tl_stories_search_posts_gen.go tl_stories_search_posts_slices_gen.go tl_stories_send_reaction_gen.go tl_stories_send_reaction_slices_gen.go tl_stories_send_story_gen.go tl_stories_send_story_slices_gen.go tl_stories_start_live_gen.go tl_stories_start_live_slices_gen.go tl_stories_stealth_mode_gen.go tl_stories_stealth_mode_slices_gen.go tl_stories_stories_gen.go tl_stories_stories_slices_gen.go tl_stories_story_reactions_list_gen.go tl_stories_story_reactions_list_slices_gen.go tl_stories_story_views_gen.go tl_stories_story_views_list_gen.go tl_stories_story_views_list_slices_gen.go tl_stories_story_views_slices_gen.go tl_stories_toggle_all_stories_hidden_gen.go tl_stories_toggle_all_stories_hidden_slices_gen.go tl_stories_toggle_peer_stories_hidden_gen.go tl_stories_toggle_peer_stories_hidden_slices_gen.go tl_stories_toggle_pinned_gen.go tl_stories_toggle_pinned_slices_gen.go tl_stories_toggle_pinned_to_top_gen.go tl_stories_toggle_pinned_to_top_slices_gen.go tl_stories_update_album_gen.go tl_stories_update_album_slices_gen.go tl_story_album_gen.go tl_story_album_slices_gen.go tl_story_fwd_header_gen.go tl_story_fwd_header_slices_gen.go tl_story_item_gen.go tl_story_item_slices_gen.go tl_story_reaction_gen.go tl_story_reaction_slices_gen.go tl_story_view_gen.go tl_story_view_slices_gen.go tl_story_views_gen.go tl_story_views_slices_gen.go tl_string_gen.go tl_string_slices_gen.go tl_suggested_post_gen.go tl_suggested_post_slices_gen.go tl_test_use_config_simple_gen.go tl_test_use_config_simple_slices_gen.go tl_test_use_error_gen.go tl_test_use_error_slices_gen.go tl_text_with_entities_gen.go tl_text_with_entities_slices_gen.go tl_theme_gen.go tl_theme_settings_gen.go tl_theme_settings_slices_gen.go tl_theme_slices_gen.go tl_timezone_gen.go tl_timezone_slices_gen.go tl_todo_completion_gen.go tl_todo_completion_slices_gen.go tl_todo_item_gen.go tl_todo_item_slices_gen.go tl_todo_list_gen.go tl_todo_list_slices_gen.go tl_top_peer_category_gen.go tl_top_peer_category_peers_gen.go tl_top_peer_category_peers_slices_gen.go tl_top_peer_category_slices_gen.go tl_top_peer_gen.go tl_top_peer_slices_gen.go tl_true_gen.go tl_true_slices_gen.go tl_update_gen.go tl_update_slices_gen.go tl_updates_channel_difference_gen.go tl_updates_channel_difference_slices_gen.go tl_updates_classifier_gen.go tl_updates_difference_gen.go tl_updates_difference_slices_gen.go tl_updates_gen.go tl_updates_get_channel_difference_gen.go tl_updates_get_channel_difference_slices_gen.go tl_updates_get_difference_gen.go tl_updates_get_difference_slices_gen.go tl_updates_get_state_gen.go tl_updates_get_state_slices_gen.go tl_updates_slices_gen.go tl_updates_state_gen.go tl_updates_state_slices_gen.go tl_upload_cdn_file_gen.go tl_upload_cdn_file_slices_gen.go tl_upload_file_gen.go tl_upload_file_slices_gen.go tl_upload_get_cdn_file_gen.go tl_upload_get_cdn_file_hashes_gen.go tl_upload_get_cdn_file_hashes_slices_gen.go tl_upload_get_cdn_file_slices_gen.go tl_upload_get_file_gen.go tl_upload_get_file_hashes_gen.go tl_upload_get_file_hashes_slices_gen.go tl_upload_get_file_slices_gen.go tl_upload_get_web_file_gen.go tl_upload_get_web_file_slices_gen.go tl_upload_reupload_cdn_file_gen.go tl_upload_reupload_cdn_file_slices_gen.go tl_upload_save_big_file_part_gen.go tl_upload_save_big_file_part_slices_gen.go tl_upload_save_file_part_gen.go tl_upload_save_file_part_slices_gen.go tl_upload_web_file_gen.go tl_upload_web_file_slices_gen.go tl_url_auth_result_gen.go tl_url_auth_result_slices_gen.go tl_user_class_vector_gen.go tl_user_class_vector_slices_gen.go tl_user_full_gen.go tl_user_full_slices_gen.go tl_user_gen.go tl_user_profile_photo_gen.go tl_user_profile_photo_slices_gen.go tl_user_slices_gen.go tl_user_status_gen.go tl_user_status_slices_gen.go tl_username_gen.go tl_username_slices_gen.go tl_users_get_full_user_gen.go tl_users_get_full_user_slices_gen.go tl_users_get_requirements_to_contact_gen.go tl_users_get_requirements_to_contact_slices_gen.go tl_users_get_saved_music_by_id_gen.go tl_users_get_saved_music_by_id_slices_gen.go tl_users_get_saved_music_gen.go tl_users_get_saved_music_slices_gen.go tl_users_get_users_gen.go tl_users_get_users_slices_gen.go tl_users_saved_music_gen.go tl_users_saved_music_slices_gen.go tl_users_set_secure_value_errors_gen.go tl_users_set_secure_value_errors_slices_gen.go tl_users_suggest_birthday_gen.go tl_users_suggest_birthday_slices_gen.go tl_users_user_full_gen.go tl_users_user_full_slices_gen.go tl_users_users_gen.go tl_users_users_slices_gen.go tl_video_size_gen.go tl_video_size_slices_gen.go tl_wall_paper_class_vector_gen.go tl_wall_paper_class_vector_slices_gen.go tl_wall_paper_gen.go tl_wall_paper_settings_gen.go tl_wall_paper_settings_slices_gen.go tl_wall_paper_slices_gen.go tl_web_authorization_gen.go tl_web_authorization_slices_gen.go tl_web_document_gen.go tl_web_document_slices_gen.go tl_web_domain_exception_gen.go tl_web_domain_exception_slices_gen.go tl_web_page_attribute_gen.go tl_web_page_attribute_slices_gen.go tl_web_page_gen.go tl_web_page_slices_gen.go tl_web_view_message_sent_gen.go tl_web_view_message_sent_slices_gen.go tl_web_view_result_url_gen.go tl_web_view_result_url_slices_gen.go
Package-Level Type Names (total 4373, in which 4371 are exported)
/* sort exporteds by: | */
AccessPointRule represents TL type `accessPointRule#4679b65f`. See https://core.telegram.org/constructor/accessPointRule for reference. DCID field of AccessPointRule. IPs field of AccessPointRule. PhonePrefixRules field of AccessPointRule. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccessPointRule from given interface. GetDCID returns value of DCID field. GetIPs returns value of IPs field. GetPhonePrefixRules returns value of PhonePrefixRules field. MapIPs returns field IPs wrapped in IPPortClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccessPointRule) Zero() bool *AccessPointRule : github.com/gotd/td/bin.BareDecoder *AccessPointRule : github.com/gotd/td/bin.BareEncoder *AccessPointRule : github.com/gotd/td/bin.Decoder *AccessPointRule : github.com/gotd/td/bin.Encoder *AccessPointRule : github.com/gotd/td/bin.Object *AccessPointRule : github.com/gotd/td/tdp.Object *AccessPointRule : fmt.Stringer func (*HelpConfigSimple).GetRules() (value []AccessPointRule)
AccountAcceptAuthorizationRequest represents TL type `account.acceptAuthorization#f3ed4c73`. Sends a Telegram Passport authorization form, effectively sharing data with the service See https://core.telegram.org/method/account.acceptAuthorization for reference. Bot ID Encrypted values Service's public key Telegram Passport element types requested by the service Types of values sent and their hashes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountAcceptAuthorizationRequest from given interface. GetBotID returns value of BotID field. GetCredentials returns value of Credentials field. GetPublicKey returns value of PublicKey field. GetScope returns value of Scope field. GetValueHashes returns value of ValueHashes field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountAcceptAuthorizationRequest) Zero() bool *AccountAcceptAuthorizationRequest : github.com/gotd/td/bin.BareDecoder *AccountAcceptAuthorizationRequest : github.com/gotd/td/bin.BareEncoder *AccountAcceptAuthorizationRequest : github.com/gotd/td/bin.Decoder *AccountAcceptAuthorizationRequest : github.com/gotd/td/bin.Encoder *AccountAcceptAuthorizationRequest : github.com/gotd/td/bin.Object *AccountAcceptAuthorizationRequest : github.com/gotd/td/tdp.Object *AccountAcceptAuthorizationRequest : fmt.Stringer func (*Client).AccountAcceptAuthorization(ctx context.Context, request *AccountAcceptAuthorizationRequest) (bool, error)
AccountAuthorizationForm represents TL type `account.authorizationForm#ad2e1cd8`. Telegram Passport¹ authorization form Links: 1. https://core.telegram.org/passport See https://core.telegram.org/constructor/account.authorizationForm for reference. Telegram Passport¹ errors Links: 1) https://core.telegram.org/passport Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields URL of the service's privacy policy Use SetPrivacyPolicyURL and GetPrivacyPolicyURL helpers. Required Telegram Passport¹ documents Links: 1) https://core.telegram.org/passport Info about the bot to which the form will be submitted Already submitted Telegram Passport¹ documents Links: 1) https://core.telegram.org/passport Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountAuthorizationForm from given interface. GetErrors returns value of Errors field. GetPrivacyPolicyURL returns value of PrivacyPolicyURL conditional field and boolean which is true if field was set. GetRequiredTypes returns value of RequiredTypes field. GetUsers returns value of Users field. GetValues returns value of Values field. MapErrors returns field Errors wrapped in SecureValueErrorClassArray helper. MapRequiredTypes returns field RequiredTypes wrapped in SecureRequiredTypeClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetPrivacyPolicyURL sets value of PrivacyPolicyURL conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountAuthorizationForm) Zero() bool *AccountAuthorizationForm : github.com/gotd/td/bin.BareDecoder *AccountAuthorizationForm : github.com/gotd/td/bin.BareEncoder *AccountAuthorizationForm : github.com/gotd/td/bin.Decoder *AccountAuthorizationForm : github.com/gotd/td/bin.Encoder *AccountAuthorizationForm : github.com/gotd/td/bin.Object *AccountAuthorizationForm : github.com/gotd/td/tdp.Object *AccountAuthorizationForm : fmt.Stringer func (*Client).AccountGetAuthorizationForm(ctx context.Context, request *AccountGetAuthorizationFormRequest) (*AccountAuthorizationForm, error)
AccountAuthorizations represents TL type `account.authorizations#4bff8ea0`. Logged-in sessions See https://core.telegram.org/constructor/account.authorizations for reference. Time-to-live of session Logged-in sessions Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountAuthorizations from given interface. GetAuthorizationTTLDays returns value of AuthorizationTTLDays field. GetAuthorizations returns value of Authorizations field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountAuthorizations) Zero() bool *AccountAuthorizations : github.com/gotd/td/bin.BareDecoder *AccountAuthorizations : github.com/gotd/td/bin.BareEncoder *AccountAuthorizations : github.com/gotd/td/bin.Decoder *AccountAuthorizations : github.com/gotd/td/bin.Encoder *AccountAuthorizations : github.com/gotd/td/bin.Object *AccountAuthorizations : github.com/gotd/td/tdp.Object *AccountAuthorizations : fmt.Stringer func (*Client).AccountGetAuthorizations(ctx context.Context) (*AccountAuthorizations, error)
AccountAutoDownloadSettings represents TL type `account.autoDownloadSettings#63cacf26`. Media autodownload settings See https://core.telegram.org/constructor/account.autoDownloadSettings for reference. High data usage preset Low data usage preset Medium data usage preset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountAutoDownloadSettings from given interface. GetHigh returns value of High field. GetLow returns value of Low field. GetMedium returns value of Medium field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountAutoDownloadSettings) Zero() bool *AccountAutoDownloadSettings : github.com/gotd/td/bin.BareDecoder *AccountAutoDownloadSettings : github.com/gotd/td/bin.BareEncoder *AccountAutoDownloadSettings : github.com/gotd/td/bin.Decoder *AccountAutoDownloadSettings : github.com/gotd/td/bin.Encoder *AccountAutoDownloadSettings : github.com/gotd/td/bin.Object *AccountAutoDownloadSettings : github.com/gotd/td/tdp.Object *AccountAutoDownloadSettings : fmt.Stringer func (*Client).AccountGetAutoDownloadSettings(ctx context.Context) (*AccountAutoDownloadSettings, error)
AccountAutoSaveSettings represents TL type `account.autoSaveSettings#4c3e069d`. Contains media autosave settings See https://core.telegram.org/constructor/account.autoSaveSettings for reference. Default media autosave settings for channels¹ Links: 1) https://core.telegram.org/api/channel Chats mentioned in the peer-specific granular autosave settings Default media autosave settings for groups and supergroups¹ Links: 1) https://core.telegram.org/api/channel Peer-specific granular autosave settings Users mentioned in the peer-specific granular autosave settings Default media autosave settings for private chats Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountAutoSaveSettings from given interface. GetBroadcastsSettings returns value of BroadcastsSettings field. GetChats returns value of Chats field. GetChatsSettings returns value of ChatsSettings field. GetExceptions returns value of Exceptions field. GetUsers returns value of Users field. GetUsersSettings returns value of UsersSettings field. MapChats returns field Chats wrapped in ChatClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountAutoSaveSettings) Zero() bool *AccountAutoSaveSettings : github.com/gotd/td/bin.BareDecoder *AccountAutoSaveSettings : github.com/gotd/td/bin.BareEncoder *AccountAutoSaveSettings : github.com/gotd/td/bin.Decoder *AccountAutoSaveSettings : github.com/gotd/td/bin.Encoder *AccountAutoSaveSettings : github.com/gotd/td/bin.Object *AccountAutoSaveSettings : github.com/gotd/td/tdp.Object *AccountAutoSaveSettings : fmt.Stringer func (*Client).AccountGetAutoSaveSettings(ctx context.Context) (*AccountAutoSaveSettings, error)
AccountCancelPasswordEmailRequest represents TL type `account.cancelPasswordEmail#c1cbd5b6`. Cancel the code that was sent to verify an email to use as 2FA recovery method¹. Links: 1. https://core.telegram.org/api/srp See https://core.telegram.org/method/account.cancelPasswordEmail for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountCancelPasswordEmailRequest) Zero() bool *AccountCancelPasswordEmailRequest : github.com/gotd/td/bin.BareDecoder *AccountCancelPasswordEmailRequest : github.com/gotd/td/bin.BareEncoder *AccountCancelPasswordEmailRequest : github.com/gotd/td/bin.Decoder *AccountCancelPasswordEmailRequest : github.com/gotd/td/bin.Encoder *AccountCancelPasswordEmailRequest : github.com/gotd/td/bin.Object *AccountCancelPasswordEmailRequest : github.com/gotd/td/tdp.Object *AccountCancelPasswordEmailRequest : fmt.Stringer
AccountChangeAuthorizationSettingsRequest represents TL type `account.changeAuthorizationSettings#40f48462`. Change settings related to a session. See https://core.telegram.org/method/account.changeAuthorizationSettings for reference. Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed Use SetCallRequestsDisabled and GetCallRequestsDisabled helpers. If set, confirms a newly logged in session »¹. Links: 1) https://core.telegram.org/api/auth#confirming-login Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed Use SetEncryptedRequestsDisabled and GetEncryptedRequestsDisabled helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Session ID from the authorization¹ constructor, fetchable using account getAuthorizations² Links: 1) https://core.telegram.org/constructor/authorization 2) https://core.telegram.org/method/account.getAuthorizations Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountChangeAuthorizationSettingsRequest from given interface. GetCallRequestsDisabled returns value of CallRequestsDisabled conditional field and boolean which is true if field was set. GetConfirmed returns value of Confirmed conditional field. GetEncryptedRequestsDisabled returns value of EncryptedRequestsDisabled conditional field and boolean which is true if field was set. GetHash returns value of Hash field. SetCallRequestsDisabled sets value of CallRequestsDisabled conditional field. SetConfirmed sets value of Confirmed conditional field. SetEncryptedRequestsDisabled sets value of EncryptedRequestsDisabled conditional field. SetFlags sets flags for non-zero fields. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountChangeAuthorizationSettingsRequest) Zero() bool *AccountChangeAuthorizationSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountChangeAuthorizationSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountChangeAuthorizationSettingsRequest : github.com/gotd/td/bin.Decoder *AccountChangeAuthorizationSettingsRequest : github.com/gotd/td/bin.Encoder *AccountChangeAuthorizationSettingsRequest : github.com/gotd/td/bin.Object *AccountChangeAuthorizationSettingsRequest : github.com/gotd/td/tdp.Object *AccountChangeAuthorizationSettingsRequest : fmt.Stringer func (*Client).AccountChangeAuthorizationSettings(ctx context.Context, request *AccountChangeAuthorizationSettingsRequest) (bool, error)
AccountChangePhoneRequest represents TL type `account.changePhone#70c32edb`. Change the phone number of the current account See https://core.telegram.org/method/account.changePhone for reference. Phone code received when calling account.sendChangePhoneCode¹ Links: 1) https://core.telegram.org/method/account.sendChangePhoneCode Phone code hash received when calling account.sendChangePhoneCode¹ Links: 1) https://core.telegram.org/method/account.sendChangePhoneCode New phone number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountChangePhoneRequest from given interface. GetPhoneCode returns value of PhoneCode field. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountChangePhoneRequest) Zero() bool *AccountChangePhoneRequest : github.com/gotd/td/bin.BareDecoder *AccountChangePhoneRequest : github.com/gotd/td/bin.BareEncoder *AccountChangePhoneRequest : github.com/gotd/td/bin.Decoder *AccountChangePhoneRequest : github.com/gotd/td/bin.Encoder *AccountChangePhoneRequest : github.com/gotd/td/bin.Object *AccountChangePhoneRequest : github.com/gotd/td/tdp.Object *AccountChangePhoneRequest : fmt.Stringer func (*Client).AccountChangePhone(ctx context.Context, request *AccountChangePhoneRequest) (UserClass, error)
AccountChatThemes represents TL type `account.chatThemes#be098173`. Available chat themes¹ Links: 1. https://core.telegram.org/api/themes#chat-themes See https://core.telegram.org/constructor/account.chatThemes for reference. Chats mentioned in the themes field. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Hash to pass to the method that returned this constructor, to avoid refetching the result if it hasn't changed. Next offset for pagination. Use SetNextOffset and GetNextOffset helpers. Themes. Users mentioned in the themes field. AsModified tries to map AccountChatThemes to AccountChatThemes. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountChatThemes from given interface. GetChats returns value of Chats field. GetHash returns value of Hash field. GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set. GetThemes returns value of Themes field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapThemes returns field Themes wrapped in ChatThemeClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetNextOffset sets value of NextOffset conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountChatThemes) Zero() bool *AccountChatThemes : AccountChatThemesClass *AccountChatThemes : github.com/gotd/td/bin.BareDecoder *AccountChatThemes : github.com/gotd/td/bin.BareEncoder *AccountChatThemes : github.com/gotd/td/bin.Decoder *AccountChatThemes : github.com/gotd/td/bin.Encoder *AccountChatThemes : github.com/gotd/td/bin.Object *AccountChatThemes : github.com/gotd/td/tdp.Object *AccountChatThemes : fmt.Stringer func (*AccountChatThemes).AsModified() (*AccountChatThemes, bool) func AccountChatThemesArray.First() (v AccountChatThemes, ok bool) func AccountChatThemesArray.Last() (v AccountChatThemes, ok bool) func (*AccountChatThemesArray).Pop() (v AccountChatThemes, ok bool) func (*AccountChatThemesArray).PopFirst() (v AccountChatThemes, ok bool) func AccountChatThemesClass.AsModified() (*AccountChatThemes, bool) func AccountChatThemesClassArray.AppendOnlyModified(to []*AccountChatThemes) []*AccountChatThemes func AccountChatThemesClassArray.AsModified() (to []*AccountChatThemes) func AccountChatThemesClassArray.FirstAsModified() (v *AccountChatThemes, ok bool) func AccountChatThemesClassArray.LastAsModified() (v *AccountChatThemes, ok bool) func (*AccountChatThemesClassArray).PopAsModified() (v *AccountChatThemes, ok bool) func (*AccountChatThemesClassArray).PopFirstAsModified() (v *AccountChatThemes, ok bool) func (*AccountChatThemesNotModified).AsModified() (*AccountChatThemes, bool) func AccountChatThemesClassArray.AppendOnlyModified(to []*AccountChatThemes) []*AccountChatThemes
AccountChatThemesArray is adapter for slice of AccountChatThemes. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountChatThemes. Sort sorts slice of AccountChatThemes. SortStable sorts slice of AccountChatThemes. func AccountChatThemesArray.Retain(keep func(x AccountChatThemes) bool) AccountChatThemesArray func AccountChatThemesArray.Sort(less func(a, b AccountChatThemes) bool) AccountChatThemesArray func AccountChatThemesArray.SortStable(less func(a, b AccountChatThemes) bool) AccountChatThemesArray func AccountChatThemesClassArray.AsAccountChatThemes() (to AccountChatThemesArray)
AccountChatThemes boxes the AccountChatThemesClass providing a helper. ChatThemes AccountChatThemesClass Decode implements bin.Decoder for AccountChatThemesBox. Encode implements bin.Encode for AccountChatThemesBox. *AccountChatThemesBox : github.com/gotd/td/bin.Decoder *AccountChatThemesBox : github.com/gotd/td/bin.Encoder *AccountChatThemesBox : github.com/gotd/td/bin.Object
AccountChatThemesClass represents account.ChatThemes generic type. See https://core.telegram.org/type/account.ChatThemes for reference. Constructors: - [AccountChatThemesNotModified] - [AccountChatThemes] Example: g, err := tg.DecodeAccountChatThemes(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountChatThemesNotModified: // account.chatThemesNotModified#e011e1c4 case *tg.AccountChatThemes: // account.chatThemes#be098173 default: panic(v) } AsModified tries to map AccountChatThemesClass to AccountChatThemes. ( AccountChatThemesClass) Decode(b *bin.Buffer) error ( AccountChatThemesClass) DecodeBare(b *bin.Buffer) error ( AccountChatThemesClass) Encode(b *bin.Buffer) error ( AccountChatThemesClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountChatThemes *AccountChatThemesNotModified AccountChatThemesClass : github.com/gotd/td/bin.BareDecoder AccountChatThemesClass : github.com/gotd/td/bin.BareEncoder AccountChatThemesClass : github.com/gotd/td/bin.Decoder AccountChatThemesClass : github.com/gotd/td/bin.Encoder AccountChatThemesClass : github.com/gotd/td/bin.Object AccountChatThemesClass : fmt.Stringer func DecodeAccountChatThemes(buf *bin.Buffer) (AccountChatThemesClass, error) func AccountChatThemesClassArray.First() (v AccountChatThemesClass, ok bool) func AccountChatThemesClassArray.Last() (v AccountChatThemesClass, ok bool) func (*AccountChatThemesClassArray).Pop() (v AccountChatThemesClass, ok bool) func (*AccountChatThemesClassArray).PopFirst() (v AccountChatThemesClass, ok bool) func (*Client).AccountGetUniqueGiftChatThemes(ctx context.Context, request *AccountGetUniqueGiftChatThemesRequest) (AccountChatThemesClass, error)
AccountChatThemesClassArray is adapter for slice of AccountChatThemesClass. AppendOnlyModified appends only Modified constructors to given slice. AsAccountChatThemes returns copy with only AccountChatThemes constructors. AsModified returns copy with only Modified constructors. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of AccountChatThemesClass. Sort sorts slice of AccountChatThemesClass. SortStable sorts slice of AccountChatThemesClass. func AccountChatThemesClassArray.Retain(keep func(x AccountChatThemesClass) bool) AccountChatThemesClassArray func AccountChatThemesClassArray.Sort(less func(a, b AccountChatThemesClass) bool) AccountChatThemesClassArray func AccountChatThemesClassArray.SortStable(less func(a, b AccountChatThemesClass) bool) AccountChatThemesClassArray
AccountChatThemesNotModified represents TL type `account.chatThemesNotModified#e011e1c4`. The available chat themes were not modified See https://core.telegram.org/constructor/account.chatThemesNotModified for reference. AsModified tries to map AccountChatThemesNotModified to AccountChatThemes. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountChatThemesNotModified) Zero() bool *AccountChatThemesNotModified : AccountChatThemesClass *AccountChatThemesNotModified : github.com/gotd/td/bin.BareDecoder *AccountChatThemesNotModified : github.com/gotd/td/bin.BareEncoder *AccountChatThemesNotModified : github.com/gotd/td/bin.Decoder *AccountChatThemesNotModified : github.com/gotd/td/bin.Encoder *AccountChatThemesNotModified : github.com/gotd/td/bin.Object *AccountChatThemesNotModified : github.com/gotd/td/tdp.Object *AccountChatThemesNotModified : fmt.Stringer
AccountCheckUsernameRequest represents TL type `account.checkUsername#2714d86c`. Validates a username and checks availability. See https://core.telegram.org/method/account.checkUsername for reference. usernameAccepted characters: A-z (case-insensitive), 0-9 and underscores.Length: 5-32 characters. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountCheckUsernameRequest from given interface. GetUsername returns value of Username field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountCheckUsernameRequest) Zero() bool *AccountCheckUsernameRequest : github.com/gotd/td/bin.BareDecoder *AccountCheckUsernameRequest : github.com/gotd/td/bin.BareEncoder *AccountCheckUsernameRequest : github.com/gotd/td/bin.Decoder *AccountCheckUsernameRequest : github.com/gotd/td/bin.Encoder *AccountCheckUsernameRequest : github.com/gotd/td/bin.Object *AccountCheckUsernameRequest : github.com/gotd/td/tdp.Object *AccountCheckUsernameRequest : fmt.Stringer
AccountClearRecentEmojiStatusesRequest represents TL type `account.clearRecentEmojiStatuses#18201aae`. Clears list of recently used emoji statuses¹ Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/method/account.clearRecentEmojiStatuses for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountClearRecentEmojiStatusesRequest) Zero() bool *AccountClearRecentEmojiStatusesRequest : github.com/gotd/td/bin.BareDecoder *AccountClearRecentEmojiStatusesRequest : github.com/gotd/td/bin.BareEncoder *AccountClearRecentEmojiStatusesRequest : github.com/gotd/td/bin.Decoder *AccountClearRecentEmojiStatusesRequest : github.com/gotd/td/bin.Encoder *AccountClearRecentEmojiStatusesRequest : github.com/gotd/td/bin.Object *AccountClearRecentEmojiStatusesRequest : github.com/gotd/td/tdp.Object *AccountClearRecentEmojiStatusesRequest : fmt.Stringer
AccountConfirmBotConnectionRequest represents TL type `account.confirmBotConnection#67ed1f68`. See https://core.telegram.org/method/account.confirmBotConnection for reference. BotID field of AccountConfirmBotConnectionRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountConfirmBotConnectionRequest from given interface. GetBotID returns value of BotID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountConfirmBotConnectionRequest) Zero() bool *AccountConfirmBotConnectionRequest : github.com/gotd/td/bin.BareDecoder *AccountConfirmBotConnectionRequest : github.com/gotd/td/bin.BareEncoder *AccountConfirmBotConnectionRequest : github.com/gotd/td/bin.Decoder *AccountConfirmBotConnectionRequest : github.com/gotd/td/bin.Encoder *AccountConfirmBotConnectionRequest : github.com/gotd/td/bin.Object *AccountConfirmBotConnectionRequest : github.com/gotd/td/tdp.Object *AccountConfirmBotConnectionRequest : fmt.Stringer
AccountConfirmPasswordEmailRequest represents TL type `account.confirmPasswordEmail#8fdf1920`. Verify an email to use as 2FA recovery method¹. Links: 1. https://core.telegram.org/api/srp See https://core.telegram.org/method/account.confirmPasswordEmail for reference. The phone code that was received after setting a recovery email¹ Links: 1) https://core.telegram.org/api/srp#email-verification Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountConfirmPasswordEmailRequest from given interface. GetCode returns value of Code field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountConfirmPasswordEmailRequest) Zero() bool *AccountConfirmPasswordEmailRequest : github.com/gotd/td/bin.BareDecoder *AccountConfirmPasswordEmailRequest : github.com/gotd/td/bin.BareEncoder *AccountConfirmPasswordEmailRequest : github.com/gotd/td/bin.Decoder *AccountConfirmPasswordEmailRequest : github.com/gotd/td/bin.Encoder *AccountConfirmPasswordEmailRequest : github.com/gotd/td/bin.Object *AccountConfirmPasswordEmailRequest : github.com/gotd/td/tdp.Object *AccountConfirmPasswordEmailRequest : fmt.Stringer
AccountConfirmPhoneRequest represents TL type `account.confirmPhone#5f2178c3`. Confirm a phone number to cancel account deletion, for more info click here »¹ Links: 1. https://core.telegram.org/api/account-deletion See https://core.telegram.org/method/account.confirmPhone for reference. SMS code, for more info click here »¹ Links: 1) https://core.telegram.org/api/account-deletion Phone code hash, for more info click here »¹ Links: 1) https://core.telegram.org/api/account-deletion Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountConfirmPhoneRequest from given interface. GetPhoneCode returns value of PhoneCode field. GetPhoneCodeHash returns value of PhoneCodeHash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountConfirmPhoneRequest) Zero() bool *AccountConfirmPhoneRequest : github.com/gotd/td/bin.BareDecoder *AccountConfirmPhoneRequest : github.com/gotd/td/bin.BareEncoder *AccountConfirmPhoneRequest : github.com/gotd/td/bin.Decoder *AccountConfirmPhoneRequest : github.com/gotd/td/bin.Encoder *AccountConfirmPhoneRequest : github.com/gotd/td/bin.Object *AccountConfirmPhoneRequest : github.com/gotd/td/tdp.Object *AccountConfirmPhoneRequest : fmt.Stringer func (*Client).AccountConfirmPhone(ctx context.Context, request *AccountConfirmPhoneRequest) (bool, error)
AccountConnectedBots represents TL type `account.connectedBots#17d7f87b`. Info about currently connected business bots¹. Links: 1. https://core.telegram.org/api/bots/connected-business-bots See https://core.telegram.org/constructor/account.connectedBots for reference. Info about the connected bots Bot information Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountConnectedBots from given interface. GetConnectedBots returns value of ConnectedBots field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in UserClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountConnectedBots) Zero() bool *AccountConnectedBots : github.com/gotd/td/bin.BareDecoder *AccountConnectedBots : github.com/gotd/td/bin.BareEncoder *AccountConnectedBots : github.com/gotd/td/bin.Decoder *AccountConnectedBots : github.com/gotd/td/bin.Encoder *AccountConnectedBots : github.com/gotd/td/bin.Object *AccountConnectedBots : github.com/gotd/td/tdp.Object *AccountConnectedBots : fmt.Stringer func (*Client).AccountGetConnectedBots(ctx context.Context) (*AccountConnectedBots, error)
AccountContentSettings represents TL type `account.contentSettings#57e28221`. Sensitive content settings See https://core.telegram.org/constructor/account.contentSettings for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the current client can change the sensitive content settings to view NSFW content Whether viewing of sensitive (NSFW) content is enabled Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountContentSettings from given interface. GetSensitiveCanChange returns value of SensitiveCanChange conditional field. GetSensitiveEnabled returns value of SensitiveEnabled conditional field. SetFlags sets flags for non-zero fields. SetSensitiveCanChange sets value of SensitiveCanChange conditional field. SetSensitiveEnabled sets value of SensitiveEnabled conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountContentSettings) Zero() bool *AccountContentSettings : github.com/gotd/td/bin.BareDecoder *AccountContentSettings : github.com/gotd/td/bin.BareEncoder *AccountContentSettings : github.com/gotd/td/bin.Decoder *AccountContentSettings : github.com/gotd/td/bin.Encoder *AccountContentSettings : github.com/gotd/td/bin.Object *AccountContentSettings : github.com/gotd/td/tdp.Object *AccountContentSettings : fmt.Stringer func (*Client).AccountGetContentSettings(ctx context.Context) (*AccountContentSettings, error)
AccountCreateBusinessChatLinkRequest represents TL type `account.createBusinessChatLink#8851e68e`. Create a business chat deep link »¹. Links: 1. https://core.telegram.org/api/business#business-chat-links See https://core.telegram.org/method/account.createBusinessChatLink for reference. Info about the link to create. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountCreateBusinessChatLinkRequest from given interface. GetLink returns value of Link field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountCreateBusinessChatLinkRequest) Zero() bool *AccountCreateBusinessChatLinkRequest : github.com/gotd/td/bin.BareDecoder *AccountCreateBusinessChatLinkRequest : github.com/gotd/td/bin.BareEncoder *AccountCreateBusinessChatLinkRequest : github.com/gotd/td/bin.Decoder *AccountCreateBusinessChatLinkRequest : github.com/gotd/td/bin.Encoder *AccountCreateBusinessChatLinkRequest : github.com/gotd/td/bin.Object *AccountCreateBusinessChatLinkRequest : github.com/gotd/td/tdp.Object *AccountCreateBusinessChatLinkRequest : fmt.Stringer
AccountCreateThemeRequest represents TL type `account.createTheme#652e4400`. Create a theme See https://core.telegram.org/method/account.createTheme for reference. Theme file Use SetDocument and GetDocument helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Theme settings, multiple values can be provided for the different base themes (day/night mode, etc). Use SetSettings and GetSettings helpers. Unique theme ID used to generate theme deep links¹, can be empty to autogenerate a random ID. Links: 1) https://core.telegram.org/api/links#theme-links Theme name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountCreateThemeRequest from given interface. GetDocument returns value of Document conditional field and boolean which is true if field was set. GetDocumentAsNotEmpty returns mapped value of Document conditional field and boolean which is true if field was set. GetSettings returns value of Settings conditional field and boolean which is true if field was set. GetSlug returns value of Slug field. GetTitle returns value of Title field. SetDocument sets value of Document conditional field. SetFlags sets flags for non-zero fields. SetSettings sets value of Settings conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountCreateThemeRequest) Zero() bool *AccountCreateThemeRequest : github.com/gotd/td/bin.BareDecoder *AccountCreateThemeRequest : github.com/gotd/td/bin.BareEncoder *AccountCreateThemeRequest : github.com/gotd/td/bin.Decoder *AccountCreateThemeRequest : github.com/gotd/td/bin.Encoder *AccountCreateThemeRequest : github.com/gotd/td/bin.Object *AccountCreateThemeRequest : github.com/gotd/td/tdp.Object *AccountCreateThemeRequest : fmt.Stringer func (*Client).AccountCreateTheme(ctx context.Context, request *AccountCreateThemeRequest) (*Theme, error)
AccountDaysTTL represents TL type `accountDaysTTL#b8d0afdf`. Time to live in days of the current account See https://core.telegram.org/constructor/accountDaysTTL for reference. This account will self-destruct in the specified number of days Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountDaysTTL from given interface. GetDays returns value of Days field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountDaysTTL) Zero() bool *AccountDaysTTL : github.com/gotd/td/bin.BareDecoder *AccountDaysTTL : github.com/gotd/td/bin.BareEncoder *AccountDaysTTL : github.com/gotd/td/bin.Decoder *AccountDaysTTL : github.com/gotd/td/bin.Encoder *AccountDaysTTL : github.com/gotd/td/bin.Object *AccountDaysTTL : github.com/gotd/td/tdp.Object *AccountDaysTTL : fmt.Stringer func (*AccountSetAccountTTLRequest).GetTTL() (value AccountDaysTTL) func (*Client).AccountGetAccountTTL(ctx context.Context) (*AccountDaysTTL, error) func (*Client).AccountSetAccountTTL(ctx context.Context, ttl AccountDaysTTL) (bool, error)
AccountDeclinePasswordResetRequest represents TL type `account.declinePasswordReset#4c9409f6`. Abort a pending 2FA password reset, see here for more info »¹ Links: 1. https://core.telegram.org/api/srp#password-reset See https://core.telegram.org/method/account.declinePasswordReset for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountDeclinePasswordResetRequest) Zero() bool *AccountDeclinePasswordResetRequest : github.com/gotd/td/bin.BareDecoder *AccountDeclinePasswordResetRequest : github.com/gotd/td/bin.BareEncoder *AccountDeclinePasswordResetRequest : github.com/gotd/td/bin.Decoder *AccountDeclinePasswordResetRequest : github.com/gotd/td/bin.Encoder *AccountDeclinePasswordResetRequest : github.com/gotd/td/bin.Object *AccountDeclinePasswordResetRequest : github.com/gotd/td/tdp.Object *AccountDeclinePasswordResetRequest : fmt.Stringer
AccountDeleteAccountRequest represents TL type `account.deleteAccount#a2c0cf74`. Delete the user's account from the telegram servers. Can also be used to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured, see here »¹ for more info on password recovery, and here »² for more info on account deletion. Links: 1. https://core.telegram.org/api/srp#password-recovery 2. https://core.telegram.org/api/account-deletion See https://core.telegram.org/method/account.deleteAccount for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields 2FA password¹: this field can be omitted even for accounts with 2FA enabled: in this case account account deletion will be delayed by 7 days as specified in the docs »² Links: 1) https://core.telegram.org/api/srp 2) https://core.telegram.org/api/account-deletion Use SetPassword and GetPassword helpers. Why is the account being deleted, can be empty Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountDeleteAccountRequest from given interface. GetPassword returns value of Password conditional field and boolean which is true if field was set. GetPasswordAsNotEmpty returns mapped value of Password conditional field and boolean which is true if field was set. GetReason returns value of Reason field. SetFlags sets flags for non-zero fields. SetPassword sets value of Password conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountDeleteAccountRequest) Zero() bool *AccountDeleteAccountRequest : github.com/gotd/td/bin.BareDecoder *AccountDeleteAccountRequest : github.com/gotd/td/bin.BareEncoder *AccountDeleteAccountRequest : github.com/gotd/td/bin.Decoder *AccountDeleteAccountRequest : github.com/gotd/td/bin.Encoder *AccountDeleteAccountRequest : github.com/gotd/td/bin.Object *AccountDeleteAccountRequest : github.com/gotd/td/tdp.Object *AccountDeleteAccountRequest : fmt.Stringer func (*Client).AccountDeleteAccount(ctx context.Context, request *AccountDeleteAccountRequest) (bool, error)
AccountDeleteAutoSaveExceptionsRequest represents TL type `account.deleteAutoSaveExceptions#53bc0020`. Clear all peer-specific autosave settings. See https://core.telegram.org/method/account.deleteAutoSaveExceptions for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountDeleteAutoSaveExceptionsRequest) Zero() bool *AccountDeleteAutoSaveExceptionsRequest : github.com/gotd/td/bin.BareDecoder *AccountDeleteAutoSaveExceptionsRequest : github.com/gotd/td/bin.BareEncoder *AccountDeleteAutoSaveExceptionsRequest : github.com/gotd/td/bin.Decoder *AccountDeleteAutoSaveExceptionsRequest : github.com/gotd/td/bin.Encoder *AccountDeleteAutoSaveExceptionsRequest : github.com/gotd/td/bin.Object *AccountDeleteAutoSaveExceptionsRequest : github.com/gotd/td/tdp.Object *AccountDeleteAutoSaveExceptionsRequest : fmt.Stringer
AccountDeleteBusinessChatLinkRequest represents TL type `account.deleteBusinessChatLink#60073674`. Delete a business chat deep link »¹. Links: 1. https://core.telegram.org/api/business#business-chat-links See https://core.telegram.org/method/account.deleteBusinessChatLink for reference. Slug of the link, obtained as specified here »¹. Links: 1) https://core.telegram.org/api/links#business-chat-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountDeleteBusinessChatLinkRequest from given interface. GetSlug returns value of Slug field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountDeleteBusinessChatLinkRequest) Zero() bool *AccountDeleteBusinessChatLinkRequest : github.com/gotd/td/bin.BareDecoder *AccountDeleteBusinessChatLinkRequest : github.com/gotd/td/bin.BareEncoder *AccountDeleteBusinessChatLinkRequest : github.com/gotd/td/bin.Decoder *AccountDeleteBusinessChatLinkRequest : github.com/gotd/td/bin.Encoder *AccountDeleteBusinessChatLinkRequest : github.com/gotd/td/bin.Object *AccountDeleteBusinessChatLinkRequest : github.com/gotd/td/tdp.Object *AccountDeleteBusinessChatLinkRequest : fmt.Stringer
AccountDeletePasskeyRequest represents TL type `account.deletePasskey#f5b5563f`. Delete a passkey associated to the current account, see here »¹ for more info. Links: 1. https://core.telegram.org/api/passkeys#delete-passkeys See https://core.telegram.org/method/account.deletePasskey for reference. ID string Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountDeletePasskeyRequest from given interface. GetID returns value of ID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountDeletePasskeyRequest) Zero() bool *AccountDeletePasskeyRequest : github.com/gotd/td/bin.BareDecoder *AccountDeletePasskeyRequest : github.com/gotd/td/bin.BareEncoder *AccountDeletePasskeyRequest : github.com/gotd/td/bin.Decoder *AccountDeletePasskeyRequest : github.com/gotd/td/bin.Encoder *AccountDeletePasskeyRequest : github.com/gotd/td/bin.Object *AccountDeletePasskeyRequest : github.com/gotd/td/tdp.Object *AccountDeletePasskeyRequest : fmt.Stringer
AccountDeleteSecureValueRequest represents TL type `account.deleteSecureValue#b880bc4b`. Delete stored Telegram Passport¹ documents, for more info see the passport docs »² Links: 1. https://core.telegram.org/passport 2. https://core.telegram.org/passport/encryption#encryption See https://core.telegram.org/method/account.deleteSecureValue for reference. Document types to delete Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountDeleteSecureValueRequest from given interface. GetTypes returns value of Types field. MapTypes returns field Types wrapped in SecureValueTypeClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountDeleteSecureValueRequest) Zero() bool *AccountDeleteSecureValueRequest : github.com/gotd/td/bin.BareDecoder *AccountDeleteSecureValueRequest : github.com/gotd/td/bin.BareEncoder *AccountDeleteSecureValueRequest : github.com/gotd/td/bin.Decoder *AccountDeleteSecureValueRequest : github.com/gotd/td/bin.Encoder *AccountDeleteSecureValueRequest : github.com/gotd/td/bin.Object *AccountDeleteSecureValueRequest : github.com/gotd/td/tdp.Object *AccountDeleteSecureValueRequest : fmt.Stringer
AccountDeleteWebBrowserSettingsExceptionsRequest represents TL type `account.deleteWebBrowserSettingsExceptions#86a0765d`. See https://core.telegram.org/method/account.deleteWebBrowserSettingsExceptions for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountDeleteWebBrowserSettingsExceptionsRequest) Zero() bool *AccountDeleteWebBrowserSettingsExceptionsRequest : github.com/gotd/td/bin.BareDecoder *AccountDeleteWebBrowserSettingsExceptionsRequest : github.com/gotd/td/bin.BareEncoder *AccountDeleteWebBrowserSettingsExceptionsRequest : github.com/gotd/td/bin.Decoder *AccountDeleteWebBrowserSettingsExceptionsRequest : github.com/gotd/td/bin.Encoder *AccountDeleteWebBrowserSettingsExceptionsRequest : github.com/gotd/td/bin.Object *AccountDeleteWebBrowserSettingsExceptionsRequest : github.com/gotd/td/tdp.Object *AccountDeleteWebBrowserSettingsExceptionsRequest : fmt.Stringer
AccountDisablePeerConnectedBotRequest represents TL type `account.disablePeerConnectedBot#5e437ed9`. Permanently disconnect a specific chat from all business bots »¹ (equivalent to specifying it in recipients.exclude_users during initial configuration with account updateConnectedBot »²); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking account.updateConnectedBot »³. Links: 1. https://core.telegram.org/api/bots/connected-business-bots 2. https://core.telegram.org/method/account.updateConnectedBot 3. https://core.telegram.org/method/account.updateConnectedBot See https://core.telegram.org/method/account.disablePeerConnectedBot for reference. The chat to disconnect Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountDisablePeerConnectedBotRequest from given interface. GetPeer returns value of Peer field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountDisablePeerConnectedBotRequest) Zero() bool *AccountDisablePeerConnectedBotRequest : github.com/gotd/td/bin.BareDecoder *AccountDisablePeerConnectedBotRequest : github.com/gotd/td/bin.BareEncoder *AccountDisablePeerConnectedBotRequest : github.com/gotd/td/bin.Decoder *AccountDisablePeerConnectedBotRequest : github.com/gotd/td/bin.Encoder *AccountDisablePeerConnectedBotRequest : github.com/gotd/td/bin.Object *AccountDisablePeerConnectedBotRequest : github.com/gotd/td/tdp.Object *AccountDisablePeerConnectedBotRequest : fmt.Stringer
AccountEditBusinessChatLinkRequest represents TL type `account.editBusinessChatLink#8c3410af`. Edit a created business chat deep link »¹. Links: 1. https://core.telegram.org/api/business#business-chat-links See https://core.telegram.org/method/account.editBusinessChatLink for reference. New link information. Slug of the link, obtained as specified here »¹. Links: 1) https://core.telegram.org/api/links#business-chat-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountEditBusinessChatLinkRequest from given interface. GetLink returns value of Link field. GetSlug returns value of Slug field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountEditBusinessChatLinkRequest) Zero() bool *AccountEditBusinessChatLinkRequest : github.com/gotd/td/bin.BareDecoder *AccountEditBusinessChatLinkRequest : github.com/gotd/td/bin.BareEncoder *AccountEditBusinessChatLinkRequest : github.com/gotd/td/bin.Decoder *AccountEditBusinessChatLinkRequest : github.com/gotd/td/bin.Encoder *AccountEditBusinessChatLinkRequest : github.com/gotd/td/bin.Object *AccountEditBusinessChatLinkRequest : github.com/gotd/td/tdp.Object *AccountEditBusinessChatLinkRequest : fmt.Stringer func (*Client).AccountEditBusinessChatLink(ctx context.Context, request *AccountEditBusinessChatLinkRequest) (*BusinessChatLink, error)
AccountEmailVerified represents TL type `account.emailVerified#2b96cd1b`. The email was verified correctly. See https://core.telegram.org/constructor/account.emailVerified for reference. The verified email address. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountEmailVerified from given interface. GetEmail returns value of Email field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountEmailVerified) Zero() bool *AccountEmailVerified : AccountEmailVerifiedClass *AccountEmailVerified : github.com/gotd/td/bin.BareDecoder *AccountEmailVerified : github.com/gotd/td/bin.BareEncoder *AccountEmailVerified : github.com/gotd/td/bin.Decoder *AccountEmailVerified : github.com/gotd/td/bin.Encoder *AccountEmailVerified : github.com/gotd/td/bin.Object *AccountEmailVerified : github.com/gotd/td/tdp.Object *AccountEmailVerified : fmt.Stringer func AccountEmailVerifiedArray.First() (v AccountEmailVerified, ok bool) func AccountEmailVerifiedArray.Last() (v AccountEmailVerified, ok bool) func (*AccountEmailVerifiedArray).Pop() (v AccountEmailVerified, ok bool) func (*AccountEmailVerifiedArray).PopFirst() (v AccountEmailVerified, ok bool)
AccountEmailVerifiedArray is adapter for slice of AccountEmailVerified. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountEmailVerified. Sort sorts slice of AccountEmailVerified. SortStable sorts slice of AccountEmailVerified. func AccountEmailVerifiedArray.Retain(keep func(x AccountEmailVerified) bool) AccountEmailVerifiedArray func AccountEmailVerifiedArray.Sort(less func(a, b AccountEmailVerified) bool) AccountEmailVerifiedArray func AccountEmailVerifiedArray.SortStable(less func(a, b AccountEmailVerified) bool) AccountEmailVerifiedArray func AccountEmailVerifiedClassArray.AsAccountEmailVerified() (to AccountEmailVerifiedArray)
AccountEmailVerified boxes the AccountEmailVerifiedClass providing a helper. EmailVerified AccountEmailVerifiedClass Decode implements bin.Decoder for AccountEmailVerifiedBox. Encode implements bin.Encode for AccountEmailVerifiedBox. *AccountEmailVerifiedBox : github.com/gotd/td/bin.Decoder *AccountEmailVerifiedBox : github.com/gotd/td/bin.Encoder *AccountEmailVerifiedBox : github.com/gotd/td/bin.Object
AccountEmailVerifiedClass represents account.EmailVerified generic type. See https://core.telegram.org/type/account.EmailVerified for reference. Constructors: - [AccountEmailVerified] - [AccountEmailVerifiedLogin] Example: g, err := tg.DecodeAccountEmailVerified(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountEmailVerified: // account.emailVerified#2b96cd1b case *tg.AccountEmailVerifiedLogin: // account.emailVerifiedLogin#e1bb0d61 default: panic(v) } ( AccountEmailVerifiedClass) Decode(b *bin.Buffer) error ( AccountEmailVerifiedClass) DecodeBare(b *bin.Buffer) error ( AccountEmailVerifiedClass) Encode(b *bin.Buffer) error ( AccountEmailVerifiedClass) EncodeBare(b *bin.Buffer) error The verified email address. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountEmailVerified *AccountEmailVerifiedLogin AccountEmailVerifiedClass : github.com/gotd/td/bin.BareDecoder AccountEmailVerifiedClass : github.com/gotd/td/bin.BareEncoder AccountEmailVerifiedClass : github.com/gotd/td/bin.Decoder AccountEmailVerifiedClass : github.com/gotd/td/bin.Encoder AccountEmailVerifiedClass : github.com/gotd/td/bin.Object AccountEmailVerifiedClass : fmt.Stringer func DecodeAccountEmailVerified(buf *bin.Buffer) (AccountEmailVerifiedClass, error) func AccountEmailVerifiedClassArray.First() (v AccountEmailVerifiedClass, ok bool) func AccountEmailVerifiedClassArray.Last() (v AccountEmailVerifiedClass, ok bool) func (*AccountEmailVerifiedClassArray).Pop() (v AccountEmailVerifiedClass, ok bool) func (*AccountEmailVerifiedClassArray).PopFirst() (v AccountEmailVerifiedClass, ok bool) func (*Client).AccountVerifyEmail(ctx context.Context, request *AccountVerifyEmailRequest) (AccountEmailVerifiedClass, error)
AccountEmailVerifiedClassArray is adapter for slice of AccountEmailVerifiedClass. AsAccountEmailVerified returns copy with only AccountEmailVerified constructors. AsAccountEmailVerifiedLogin returns copy with only AccountEmailVerifiedLogin constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountEmailVerifiedClass. Sort sorts slice of AccountEmailVerifiedClass. SortStable sorts slice of AccountEmailVerifiedClass. func AccountEmailVerifiedClassArray.Retain(keep func(x AccountEmailVerifiedClass) bool) AccountEmailVerifiedClassArray func AccountEmailVerifiedClassArray.Sort(less func(a, b AccountEmailVerifiedClass) bool) AccountEmailVerifiedClassArray func AccountEmailVerifiedClassArray.SortStable(less func(a, b AccountEmailVerifiedClass) bool) AccountEmailVerifiedClassArray
AccountEmailVerifiedLogin represents TL type `account.emailVerifiedLogin#e1bb0d61`. The email was verified correctly, and a login code was just sent to it. See https://core.telegram.org/constructor/account.emailVerifiedLogin for reference. The verified email address. Info about the sent login code¹ Links: 1) https://core.telegram.org/api/auth Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountEmailVerifiedLogin from given interface. GetEmail returns value of Email field. GetSentCode returns value of SentCode field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountEmailVerifiedLogin) Zero() bool *AccountEmailVerifiedLogin : AccountEmailVerifiedClass *AccountEmailVerifiedLogin : github.com/gotd/td/bin.BareDecoder *AccountEmailVerifiedLogin : github.com/gotd/td/bin.BareEncoder *AccountEmailVerifiedLogin : github.com/gotd/td/bin.Decoder *AccountEmailVerifiedLogin : github.com/gotd/td/bin.Encoder *AccountEmailVerifiedLogin : github.com/gotd/td/bin.Object *AccountEmailVerifiedLogin : github.com/gotd/td/tdp.Object *AccountEmailVerifiedLogin : fmt.Stringer func AccountEmailVerifiedLoginArray.First() (v AccountEmailVerifiedLogin, ok bool) func AccountEmailVerifiedLoginArray.Last() (v AccountEmailVerifiedLogin, ok bool) func (*AccountEmailVerifiedLoginArray).Pop() (v AccountEmailVerifiedLogin, ok bool) func (*AccountEmailVerifiedLoginArray).PopFirst() (v AccountEmailVerifiedLogin, ok bool)
AccountEmailVerifiedLoginArray is adapter for slice of AccountEmailVerifiedLogin. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountEmailVerifiedLogin. Sort sorts slice of AccountEmailVerifiedLogin. SortStable sorts slice of AccountEmailVerifiedLogin. func AccountEmailVerifiedClassArray.AsAccountEmailVerifiedLogin() (to AccountEmailVerifiedLoginArray) func AccountEmailVerifiedLoginArray.Retain(keep func(x AccountEmailVerifiedLogin) bool) AccountEmailVerifiedLoginArray func AccountEmailVerifiedLoginArray.Sort(less func(a, b AccountEmailVerifiedLogin) bool) AccountEmailVerifiedLoginArray func AccountEmailVerifiedLoginArray.SortStable(less func(a, b AccountEmailVerifiedLogin) bool) AccountEmailVerifiedLoginArray
AccountEmojiStatuses represents TL type `account.emojiStatuses#90c467d1`. A list of emoji statuses¹ Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/constructor/account.emojiStatuses for reference. Hash used for caching, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Emoji statuses¹ Links: 1) https://core.telegram.org/api/emoji-status AsModified tries to map AccountEmojiStatuses to AccountEmojiStatuses. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountEmojiStatuses from given interface. GetHash returns value of Hash field. GetStatuses returns value of Statuses field. MapStatuses returns field Statuses wrapped in EmojiStatusClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountEmojiStatuses) Zero() bool *AccountEmojiStatuses : AccountEmojiStatusesClass *AccountEmojiStatuses : github.com/gotd/td/bin.BareDecoder *AccountEmojiStatuses : github.com/gotd/td/bin.BareEncoder *AccountEmojiStatuses : github.com/gotd/td/bin.Decoder *AccountEmojiStatuses : github.com/gotd/td/bin.Encoder *AccountEmojiStatuses : github.com/gotd/td/bin.Object *AccountEmojiStatuses : github.com/gotd/td/tdp.Object *AccountEmojiStatuses : fmt.Stringer func (*AccountEmojiStatuses).AsModified() (*AccountEmojiStatuses, bool) func AccountEmojiStatusesArray.First() (v AccountEmojiStatuses, ok bool) func AccountEmojiStatusesArray.Last() (v AccountEmojiStatuses, ok bool) func (*AccountEmojiStatusesArray).Pop() (v AccountEmojiStatuses, ok bool) func (*AccountEmojiStatusesArray).PopFirst() (v AccountEmojiStatuses, ok bool) func AccountEmojiStatusesClass.AsModified() (*AccountEmojiStatuses, bool) func AccountEmojiStatusesClassArray.AppendOnlyModified(to []*AccountEmojiStatuses) []*AccountEmojiStatuses func AccountEmojiStatusesClassArray.AsModified() (to []*AccountEmojiStatuses) func AccountEmojiStatusesClassArray.FirstAsModified() (v *AccountEmojiStatuses, ok bool) func AccountEmojiStatusesClassArray.LastAsModified() (v *AccountEmojiStatuses, ok bool) func (*AccountEmojiStatusesClassArray).PopAsModified() (v *AccountEmojiStatuses, ok bool) func (*AccountEmojiStatusesClassArray).PopFirstAsModified() (v *AccountEmojiStatuses, ok bool) func (*AccountEmojiStatusesNotModified).AsModified() (*AccountEmojiStatuses, bool) func AccountEmojiStatusesClassArray.AppendOnlyModified(to []*AccountEmojiStatuses) []*AccountEmojiStatuses
AccountEmojiStatusesArray is adapter for slice of AccountEmojiStatuses. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountEmojiStatuses. Sort sorts slice of AccountEmojiStatuses. SortStable sorts slice of AccountEmojiStatuses. func AccountEmojiStatusesArray.Retain(keep func(x AccountEmojiStatuses) bool) AccountEmojiStatusesArray func AccountEmojiStatusesArray.Sort(less func(a, b AccountEmojiStatuses) bool) AccountEmojiStatusesArray func AccountEmojiStatusesArray.SortStable(less func(a, b AccountEmojiStatuses) bool) AccountEmojiStatusesArray func AccountEmojiStatusesClassArray.AsAccountEmojiStatuses() (to AccountEmojiStatusesArray)
AccountEmojiStatuses boxes the AccountEmojiStatusesClass providing a helper. EmojiStatuses AccountEmojiStatusesClass Decode implements bin.Decoder for AccountEmojiStatusesBox. Encode implements bin.Encode for AccountEmojiStatusesBox. *AccountEmojiStatusesBox : github.com/gotd/td/bin.Decoder *AccountEmojiStatusesBox : github.com/gotd/td/bin.Encoder *AccountEmojiStatusesBox : github.com/gotd/td/bin.Object
AccountEmojiStatusesClass represents account.EmojiStatuses generic type. See https://core.telegram.org/type/account.EmojiStatuses for reference. Constructors: - [AccountEmojiStatusesNotModified] - [AccountEmojiStatuses] Example: g, err := tg.DecodeAccountEmojiStatuses(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountEmojiStatusesNotModified: // account.emojiStatusesNotModified#d08ce645 case *tg.AccountEmojiStatuses: // account.emojiStatuses#90c467d1 default: panic(v) } AsModified tries to map AccountEmojiStatusesClass to AccountEmojiStatuses. ( AccountEmojiStatusesClass) Decode(b *bin.Buffer) error ( AccountEmojiStatusesClass) DecodeBare(b *bin.Buffer) error ( AccountEmojiStatusesClass) Encode(b *bin.Buffer) error ( AccountEmojiStatusesClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountEmojiStatuses *AccountEmojiStatusesNotModified AccountEmojiStatusesClass : github.com/gotd/td/bin.BareDecoder AccountEmojiStatusesClass : github.com/gotd/td/bin.BareEncoder AccountEmojiStatusesClass : github.com/gotd/td/bin.Decoder AccountEmojiStatusesClass : github.com/gotd/td/bin.Encoder AccountEmojiStatusesClass : github.com/gotd/td/bin.Object AccountEmojiStatusesClass : fmt.Stringer func DecodeAccountEmojiStatuses(buf *bin.Buffer) (AccountEmojiStatusesClass, error) func AccountEmojiStatusesClassArray.First() (v AccountEmojiStatusesClass, ok bool) func AccountEmojiStatusesClassArray.Last() (v AccountEmojiStatusesClass, ok bool) func (*AccountEmojiStatusesClassArray).Pop() (v AccountEmojiStatusesClass, ok bool) func (*AccountEmojiStatusesClassArray).PopFirst() (v AccountEmojiStatusesClass, ok bool) func (*Client).AccountGetChannelDefaultEmojiStatuses(ctx context.Context, hash int64) (AccountEmojiStatusesClass, error) func (*Client).AccountGetCollectibleEmojiStatuses(ctx context.Context, hash int64) (AccountEmojiStatusesClass, error) func (*Client).AccountGetDefaultEmojiStatuses(ctx context.Context, hash int64) (AccountEmojiStatusesClass, error) func (*Client).AccountGetRecentEmojiStatuses(ctx context.Context, hash int64) (AccountEmojiStatusesClass, error)
AccountEmojiStatusesClassArray is adapter for slice of AccountEmojiStatusesClass. AppendOnlyModified appends only Modified constructors to given slice. AsAccountEmojiStatuses returns copy with only AccountEmojiStatuses constructors. AsModified returns copy with only Modified constructors. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of AccountEmojiStatusesClass. Sort sorts slice of AccountEmojiStatusesClass. SortStable sorts slice of AccountEmojiStatusesClass. func AccountEmojiStatusesClassArray.Retain(keep func(x AccountEmojiStatusesClass) bool) AccountEmojiStatusesClassArray func AccountEmojiStatusesClassArray.Sort(less func(a, b AccountEmojiStatusesClass) bool) AccountEmojiStatusesClassArray func AccountEmojiStatusesClassArray.SortStable(less func(a, b AccountEmojiStatusesClass) bool) AccountEmojiStatusesClassArray
AccountEmojiStatusesNotModified represents TL type `account.emojiStatusesNotModified#d08ce645`. The server-side list of emoji statuses¹ hasn't changed Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/constructor/account.emojiStatusesNotModified for reference. AsModified tries to map AccountEmojiStatusesNotModified to AccountEmojiStatuses. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountEmojiStatusesNotModified) Zero() bool *AccountEmojiStatusesNotModified : AccountEmojiStatusesClass *AccountEmojiStatusesNotModified : github.com/gotd/td/bin.BareDecoder *AccountEmojiStatusesNotModified : github.com/gotd/td/bin.BareEncoder *AccountEmojiStatusesNotModified : github.com/gotd/td/bin.Decoder *AccountEmojiStatusesNotModified : github.com/gotd/td/bin.Encoder *AccountEmojiStatusesNotModified : github.com/gotd/td/bin.Object *AccountEmojiStatusesNotModified : github.com/gotd/td/tdp.Object *AccountEmojiStatusesNotModified : fmt.Stringer
AccountFinishTakeoutSessionRequest represents TL type `account.finishTakeoutSession#1d2652ee`. Terminate a takeout session, see here » for more info¹. Links: 1. https://core.telegram.org/api/takeout See https://core.telegram.org/method/account.finishTakeoutSession for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Data exported successfully Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountFinishTakeoutSessionRequest from given interface. GetSuccess returns value of Success conditional field. SetFlags sets flags for non-zero fields. SetSuccess sets value of Success conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountFinishTakeoutSessionRequest) Zero() bool *AccountFinishTakeoutSessionRequest : github.com/gotd/td/bin.BareDecoder *AccountFinishTakeoutSessionRequest : github.com/gotd/td/bin.BareEncoder *AccountFinishTakeoutSessionRequest : github.com/gotd/td/bin.Decoder *AccountFinishTakeoutSessionRequest : github.com/gotd/td/bin.Encoder *AccountFinishTakeoutSessionRequest : github.com/gotd/td/bin.Object *AccountFinishTakeoutSessionRequest : github.com/gotd/td/tdp.Object *AccountFinishTakeoutSessionRequest : fmt.Stringer func (*Client).AccountFinishTakeoutSession(ctx context.Context, request *AccountFinishTakeoutSessionRequest) (bool, error)
AccountGetAccountTTLRequest represents TL type `account.getAccountTTL#8fc711d`. Get days to live of account See https://core.telegram.org/method/account.getAccountTTL for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetAccountTTLRequest) Zero() bool *AccountGetAccountTTLRequest : github.com/gotd/td/bin.BareDecoder *AccountGetAccountTTLRequest : github.com/gotd/td/bin.BareEncoder *AccountGetAccountTTLRequest : github.com/gotd/td/bin.Decoder *AccountGetAccountTTLRequest : github.com/gotd/td/bin.Encoder *AccountGetAccountTTLRequest : github.com/gotd/td/bin.Object *AccountGetAccountTTLRequest : github.com/gotd/td/tdp.Object *AccountGetAccountTTLRequest : fmt.Stringer
AccountGetAllSecureValuesRequest represents TL type `account.getAllSecureValues#b288bc7d`. Get all saved Telegram Passport¹ documents, for more info see the passport docs »² Links: 1. https://core.telegram.org/passport 2. https://core.telegram.org/passport/encryption#encryption See https://core.telegram.org/method/account.getAllSecureValues for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetAllSecureValuesRequest) Zero() bool *AccountGetAllSecureValuesRequest : github.com/gotd/td/bin.BareDecoder *AccountGetAllSecureValuesRequest : github.com/gotd/td/bin.BareEncoder *AccountGetAllSecureValuesRequest : github.com/gotd/td/bin.Decoder *AccountGetAllSecureValuesRequest : github.com/gotd/td/bin.Encoder *AccountGetAllSecureValuesRequest : github.com/gotd/td/bin.Object *AccountGetAllSecureValuesRequest : github.com/gotd/td/tdp.Object *AccountGetAllSecureValuesRequest : fmt.Stringer
AccountGetAuthorizationFormRequest represents TL type `account.getAuthorizationForm#a929597a`. Returns a Telegram Passport authorization form for sharing data with a service See https://core.telegram.org/method/account.getAuthorizationForm for reference. User identifier of the service's bot Service's public key Telegram Passport element types requested by the service Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetAuthorizationFormRequest from given interface. GetBotID returns value of BotID field. GetPublicKey returns value of PublicKey field. GetScope returns value of Scope field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetAuthorizationFormRequest) Zero() bool *AccountGetAuthorizationFormRequest : github.com/gotd/td/bin.BareDecoder *AccountGetAuthorizationFormRequest : github.com/gotd/td/bin.BareEncoder *AccountGetAuthorizationFormRequest : github.com/gotd/td/bin.Decoder *AccountGetAuthorizationFormRequest : github.com/gotd/td/bin.Encoder *AccountGetAuthorizationFormRequest : github.com/gotd/td/bin.Object *AccountGetAuthorizationFormRequest : github.com/gotd/td/tdp.Object *AccountGetAuthorizationFormRequest : fmt.Stringer func (*Client).AccountGetAuthorizationForm(ctx context.Context, request *AccountGetAuthorizationFormRequest) (*AccountAuthorizationForm, error)
AccountGetAuthorizationsRequest represents TL type `account.getAuthorizations#e320c158`. Get logged-in sessions See https://core.telegram.org/method/account.getAuthorizations for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetAuthorizationsRequest) Zero() bool *AccountGetAuthorizationsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetAuthorizationsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetAuthorizationsRequest : github.com/gotd/td/bin.Decoder *AccountGetAuthorizationsRequest : github.com/gotd/td/bin.Encoder *AccountGetAuthorizationsRequest : github.com/gotd/td/bin.Object *AccountGetAuthorizationsRequest : github.com/gotd/td/tdp.Object *AccountGetAuthorizationsRequest : fmt.Stringer
AccountGetAutoDownloadSettingsRequest represents TL type `account.getAutoDownloadSettings#56da0b3f`. Get media autodownload settings See https://core.telegram.org/method/account.getAutoDownloadSettings for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetAutoDownloadSettingsRequest) Zero() bool *AccountGetAutoDownloadSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetAutoDownloadSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetAutoDownloadSettingsRequest : github.com/gotd/td/bin.Decoder *AccountGetAutoDownloadSettingsRequest : github.com/gotd/td/bin.Encoder *AccountGetAutoDownloadSettingsRequest : github.com/gotd/td/bin.Object *AccountGetAutoDownloadSettingsRequest : github.com/gotd/td/tdp.Object *AccountGetAutoDownloadSettingsRequest : fmt.Stringer
AccountGetAutoSaveSettingsRequest represents TL type `account.getAutoSaveSettings#adcbbcda`. Get autosave settings See https://core.telegram.org/method/account.getAutoSaveSettings for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetAutoSaveSettingsRequest) Zero() bool *AccountGetAutoSaveSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetAutoSaveSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetAutoSaveSettingsRequest : github.com/gotd/td/bin.Decoder *AccountGetAutoSaveSettingsRequest : github.com/gotd/td/bin.Encoder *AccountGetAutoSaveSettingsRequest : github.com/gotd/td/bin.Object *AccountGetAutoSaveSettingsRequest : github.com/gotd/td/tdp.Object *AccountGetAutoSaveSettingsRequest : fmt.Stringer
AccountGetBotBusinessConnectionRequest represents TL type `account.getBotBusinessConnection#76a86270`. Bots may invoke this method to re-fetch the updateBotBusinessConnect¹ constructor associated with a specific business connection_id, see here »² for more info on connected business bots. This is needed for example for freshly logged in bots that are receiving some updateBotNewBusinessMessage³, etc. updates because some users have already connected to the bot before it could login. In this case, the bot is receiving messages from the business connection, but it hasn't cached the associated updateBotBusinessConnect⁴ with info about the connection (can it reply to messages? etc.) yet, and cannot receive the old ones because they were sent when the bot wasn't logged into the session yet. This method can be used to fetch info about a not-yet-cached business connection, and should not be invoked if the info is already cached or to fetch changes, as eventual changes will automatically be sent as new updateBotBusinessConnect⁵ updates to the bot using the usual update delivery methods »⁶. Links: 1. https://core.telegram.org/constructor/updateBotBusinessConnect 2. https://core.telegram.org/api/bots/connected-business-bots 3. https://core.telegram.org/constructor/updateBotNewBusinessMessage 4. https://core.telegram.org/constructor/updateBotBusinessConnect 5. https://core.telegram.org/constructor/updateBotBusinessConnect 6. https://core.telegram.org/api/updates See https://core.telegram.org/method/account.getBotBusinessConnection for reference. Business connection ID »¹. Links: 1) https://core.telegram.org/api/bots/connected-business-bots Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetBotBusinessConnectionRequest from given interface. GetConnectionID returns value of ConnectionID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetBotBusinessConnectionRequest) Zero() bool *AccountGetBotBusinessConnectionRequest : github.com/gotd/td/bin.BareDecoder *AccountGetBotBusinessConnectionRequest : github.com/gotd/td/bin.BareEncoder *AccountGetBotBusinessConnectionRequest : github.com/gotd/td/bin.Decoder *AccountGetBotBusinessConnectionRequest : github.com/gotd/td/bin.Encoder *AccountGetBotBusinessConnectionRequest : github.com/gotd/td/bin.Object *AccountGetBotBusinessConnectionRequest : github.com/gotd/td/tdp.Object *AccountGetBotBusinessConnectionRequest : fmt.Stringer
AccountGetBusinessChatLinksRequest represents TL type `account.getBusinessChatLinks#6f70dde1`. List all created business chat deep links »¹. Links: 1. https://core.telegram.org/api/business#business-chat-links See https://core.telegram.org/method/account.getBusinessChatLinks for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetBusinessChatLinksRequest) Zero() bool *AccountGetBusinessChatLinksRequest : github.com/gotd/td/bin.BareDecoder *AccountGetBusinessChatLinksRequest : github.com/gotd/td/bin.BareEncoder *AccountGetBusinessChatLinksRequest : github.com/gotd/td/bin.Decoder *AccountGetBusinessChatLinksRequest : github.com/gotd/td/bin.Encoder *AccountGetBusinessChatLinksRequest : github.com/gotd/td/bin.Object *AccountGetBusinessChatLinksRequest : github.com/gotd/td/tdp.Object *AccountGetBusinessChatLinksRequest : fmt.Stringer
AccountGetChannelDefaultEmojiStatusesRequest represents TL type `account.getChannelDefaultEmojiStatuses#7727a7d5`. Get a list of default suggested channel emoji statuses¹. Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/method/account.getChannelDefaultEmojiStatuses for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetChannelDefaultEmojiStatusesRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetChannelDefaultEmojiStatusesRequest) Zero() bool *AccountGetChannelDefaultEmojiStatusesRequest : github.com/gotd/td/bin.BareDecoder *AccountGetChannelDefaultEmojiStatusesRequest : github.com/gotd/td/bin.BareEncoder *AccountGetChannelDefaultEmojiStatusesRequest : github.com/gotd/td/bin.Decoder *AccountGetChannelDefaultEmojiStatusesRequest : github.com/gotd/td/bin.Encoder *AccountGetChannelDefaultEmojiStatusesRequest : github.com/gotd/td/bin.Object *AccountGetChannelDefaultEmojiStatusesRequest : github.com/gotd/td/tdp.Object *AccountGetChannelDefaultEmojiStatusesRequest : fmt.Stringer
AccountGetChannelRestrictedStatusEmojisRequest represents TL type `account.getChannelRestrictedStatusEmojis#35a9e0d5`. Returns fetch the full list of custom emoji IDs »¹ that cannot be used in channel emoji statuses »². Links: 1. https://core.telegram.org/api/custom-emoji 2. https://core.telegram.org/api/emoji-status See https://core.telegram.org/method/account.getChannelRestrictedStatusEmojis for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetChannelRestrictedStatusEmojisRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetChannelRestrictedStatusEmojisRequest) Zero() bool *AccountGetChannelRestrictedStatusEmojisRequest : github.com/gotd/td/bin.BareDecoder *AccountGetChannelRestrictedStatusEmojisRequest : github.com/gotd/td/bin.BareEncoder *AccountGetChannelRestrictedStatusEmojisRequest : github.com/gotd/td/bin.Decoder *AccountGetChannelRestrictedStatusEmojisRequest : github.com/gotd/td/bin.Encoder *AccountGetChannelRestrictedStatusEmojisRequest : github.com/gotd/td/bin.Object *AccountGetChannelRestrictedStatusEmojisRequest : github.com/gotd/td/tdp.Object *AccountGetChannelRestrictedStatusEmojisRequest : fmt.Stringer
AccountGetChatThemesRequest represents TL type `account.getChatThemes#d638de89`. Get all available chat themes »¹. Links: 1. https://core.telegram.org/api/themes See https://core.telegram.org/method/account.getChatThemes for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetChatThemesRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetChatThemesRequest) Zero() bool *AccountGetChatThemesRequest : github.com/gotd/td/bin.BareDecoder *AccountGetChatThemesRequest : github.com/gotd/td/bin.BareEncoder *AccountGetChatThemesRequest : github.com/gotd/td/bin.Decoder *AccountGetChatThemesRequest : github.com/gotd/td/bin.Encoder *AccountGetChatThemesRequest : github.com/gotd/td/bin.Object *AccountGetChatThemesRequest : github.com/gotd/td/tdp.Object *AccountGetChatThemesRequest : fmt.Stringer
AccountGetCollectibleEmojiStatusesRequest represents TL type `account.getCollectibleEmojiStatuses#2e7b4543`. Obtain a list of emoji statuses »¹ for owned collectible gifts². Links: 1. https://core.telegram.org/api/emoji-status 2. https://core.telegram.org/api/gifts#collectible-gifts See https://core.telegram.org/method/account.getCollectibleEmojiStatuses for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetCollectibleEmojiStatusesRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetCollectibleEmojiStatusesRequest) Zero() bool *AccountGetCollectibleEmojiStatusesRequest : github.com/gotd/td/bin.BareDecoder *AccountGetCollectibleEmojiStatusesRequest : github.com/gotd/td/bin.BareEncoder *AccountGetCollectibleEmojiStatusesRequest : github.com/gotd/td/bin.Decoder *AccountGetCollectibleEmojiStatusesRequest : github.com/gotd/td/bin.Encoder *AccountGetCollectibleEmojiStatusesRequest : github.com/gotd/td/bin.Object *AccountGetCollectibleEmojiStatusesRequest : github.com/gotd/td/tdp.Object *AccountGetCollectibleEmojiStatusesRequest : fmt.Stringer
AccountGetConnectedBotsRequest represents TL type `account.getConnectedBots#4ea4c80f`. List all currently connected business bots »¹ Links: 1. https://core.telegram.org/api/bots/connected-business-bots See https://core.telegram.org/method/account.getConnectedBots for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetConnectedBotsRequest) Zero() bool *AccountGetConnectedBotsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetConnectedBotsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetConnectedBotsRequest : github.com/gotd/td/bin.Decoder *AccountGetConnectedBotsRequest : github.com/gotd/td/bin.Encoder *AccountGetConnectedBotsRequest : github.com/gotd/td/bin.Object *AccountGetConnectedBotsRequest : github.com/gotd/td/tdp.Object *AccountGetConnectedBotsRequest : fmt.Stringer
AccountGetContactSignUpNotificationRequest represents TL type `account.getContactSignUpNotification#9f07c728`. Whether the user will receive notifications when contacts sign up See https://core.telegram.org/method/account.getContactSignUpNotification for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetContactSignUpNotificationRequest) Zero() bool *AccountGetContactSignUpNotificationRequest : github.com/gotd/td/bin.BareDecoder *AccountGetContactSignUpNotificationRequest : github.com/gotd/td/bin.BareEncoder *AccountGetContactSignUpNotificationRequest : github.com/gotd/td/bin.Decoder *AccountGetContactSignUpNotificationRequest : github.com/gotd/td/bin.Encoder *AccountGetContactSignUpNotificationRequest : github.com/gotd/td/bin.Object *AccountGetContactSignUpNotificationRequest : github.com/gotd/td/tdp.Object *AccountGetContactSignUpNotificationRequest : fmt.Stringer
AccountGetContentSettingsRequest represents TL type `account.getContentSettings#8b9b4dae`. Get sensitive content settings See https://core.telegram.org/method/account.getContentSettings for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetContentSettingsRequest) Zero() bool *AccountGetContentSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetContentSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetContentSettingsRequest : github.com/gotd/td/bin.Decoder *AccountGetContentSettingsRequest : github.com/gotd/td/bin.Encoder *AccountGetContentSettingsRequest : github.com/gotd/td/bin.Object *AccountGetContentSettingsRequest : github.com/gotd/td/tdp.Object *AccountGetContentSettingsRequest : fmt.Stringer
AccountGetDefaultBackgroundEmojisRequest represents TL type `account.getDefaultBackgroundEmojis#a60ab9ce`. Get a set of suggested custom emoji stickers¹ that can be used in an accent color pattern². Links: 1. https://core.telegram.org/api/custom-emoji 2. https://core.telegram.org/api/colors See https://core.telegram.org/method/account.getDefaultBackgroundEmojis for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetDefaultBackgroundEmojisRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetDefaultBackgroundEmojisRequest) Zero() bool *AccountGetDefaultBackgroundEmojisRequest : github.com/gotd/td/bin.BareDecoder *AccountGetDefaultBackgroundEmojisRequest : github.com/gotd/td/bin.BareEncoder *AccountGetDefaultBackgroundEmojisRequest : github.com/gotd/td/bin.Decoder *AccountGetDefaultBackgroundEmojisRequest : github.com/gotd/td/bin.Encoder *AccountGetDefaultBackgroundEmojisRequest : github.com/gotd/td/bin.Object *AccountGetDefaultBackgroundEmojisRequest : github.com/gotd/td/tdp.Object *AccountGetDefaultBackgroundEmojisRequest : fmt.Stringer
AccountGetDefaultEmojiStatusesRequest represents TL type `account.getDefaultEmojiStatuses#d6753386`. Get a list of default suggested emoji statuses¹ Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/method/account.getDefaultEmojiStatuses for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetDefaultEmojiStatusesRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetDefaultEmojiStatusesRequest) Zero() bool *AccountGetDefaultEmojiStatusesRequest : github.com/gotd/td/bin.BareDecoder *AccountGetDefaultEmojiStatusesRequest : github.com/gotd/td/bin.BareEncoder *AccountGetDefaultEmojiStatusesRequest : github.com/gotd/td/bin.Decoder *AccountGetDefaultEmojiStatusesRequest : github.com/gotd/td/bin.Encoder *AccountGetDefaultEmojiStatusesRequest : github.com/gotd/td/bin.Object *AccountGetDefaultEmojiStatusesRequest : github.com/gotd/td/tdp.Object *AccountGetDefaultEmojiStatusesRequest : fmt.Stringer
AccountGetDefaultGroupPhotoEmojisRequest represents TL type `account.getDefaultGroupPhotoEmojis#915860ae`. Get a set of suggested custom emoji stickers¹ that can be used as group picture² Links: 1. https://core.telegram.org/api/custom-emoji 2. https://core.telegram.org/api/files#sticker-profile-pictures See https://core.telegram.org/method/account.getDefaultGroupPhotoEmojis for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetDefaultGroupPhotoEmojisRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetDefaultGroupPhotoEmojisRequest) Zero() bool *AccountGetDefaultGroupPhotoEmojisRequest : github.com/gotd/td/bin.BareDecoder *AccountGetDefaultGroupPhotoEmojisRequest : github.com/gotd/td/bin.BareEncoder *AccountGetDefaultGroupPhotoEmojisRequest : github.com/gotd/td/bin.Decoder *AccountGetDefaultGroupPhotoEmojisRequest : github.com/gotd/td/bin.Encoder *AccountGetDefaultGroupPhotoEmojisRequest : github.com/gotd/td/bin.Object *AccountGetDefaultGroupPhotoEmojisRequest : github.com/gotd/td/tdp.Object *AccountGetDefaultGroupPhotoEmojisRequest : fmt.Stringer
AccountGetDefaultProfilePhotoEmojisRequest represents TL type `account.getDefaultProfilePhotoEmojis#e2750328`. Get a set of suggested custom emoji stickers¹ that can be used as profile picture² Links: 1. https://core.telegram.org/api/custom-emoji 2. https://core.telegram.org/api/files#sticker-profile-pictures See https://core.telegram.org/method/account.getDefaultProfilePhotoEmojis for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetDefaultProfilePhotoEmojisRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetDefaultProfilePhotoEmojisRequest) Zero() bool *AccountGetDefaultProfilePhotoEmojisRequest : github.com/gotd/td/bin.BareDecoder *AccountGetDefaultProfilePhotoEmojisRequest : github.com/gotd/td/bin.BareEncoder *AccountGetDefaultProfilePhotoEmojisRequest : github.com/gotd/td/bin.Decoder *AccountGetDefaultProfilePhotoEmojisRequest : github.com/gotd/td/bin.Encoder *AccountGetDefaultProfilePhotoEmojisRequest : github.com/gotd/td/bin.Object *AccountGetDefaultProfilePhotoEmojisRequest : github.com/gotd/td/tdp.Object *AccountGetDefaultProfilePhotoEmojisRequest : fmt.Stringer
AccountGetGlobalPrivacySettingsRequest represents TL type `account.getGlobalPrivacySettings#eb2b4cf6`. Get global privacy settings See https://core.telegram.org/method/account.getGlobalPrivacySettings for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetGlobalPrivacySettingsRequest) Zero() bool *AccountGetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.Decoder *AccountGetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.Encoder *AccountGetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.Object *AccountGetGlobalPrivacySettingsRequest : github.com/gotd/td/tdp.Object *AccountGetGlobalPrivacySettingsRequest : fmt.Stringer
AccountGetMultiWallPapersRequest represents TL type `account.getMultiWallPapers#65ad71dc`. Get info about multiple wallpapers¹ Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/method/account.getMultiWallPapers for reference. Wallpapers¹ to fetch info about Links: 1) https://core.telegram.org/api/wallpapers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetMultiWallPapersRequest from given interface. GetWallpapers returns value of Wallpapers field. MapWallpapers returns field Wallpapers wrapped in InputWallPaperClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetMultiWallPapersRequest) Zero() bool *AccountGetMultiWallPapersRequest : github.com/gotd/td/bin.BareDecoder *AccountGetMultiWallPapersRequest : github.com/gotd/td/bin.BareEncoder *AccountGetMultiWallPapersRequest : github.com/gotd/td/bin.Decoder *AccountGetMultiWallPapersRequest : github.com/gotd/td/bin.Encoder *AccountGetMultiWallPapersRequest : github.com/gotd/td/bin.Object *AccountGetMultiWallPapersRequest : github.com/gotd/td/tdp.Object *AccountGetMultiWallPapersRequest : fmt.Stringer
AccountGetNotifyExceptionsRequest represents TL type `account.getNotifyExceptions#53577479`. Returns list of chats with non-default notification settings See https://core.telegram.org/method/account.getNotifyExceptions for reference. If set, chats with non-default sound will be returned If set, chats with non-default notification settings for stories will be returned Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If specified, only chats of the specified category will be returned Use SetPeer and GetPeer helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetNotifyExceptionsRequest from given interface. GetCompareSound returns value of CompareSound conditional field. GetCompareStories returns value of CompareStories conditional field. GetPeer returns value of Peer conditional field and boolean which is true if field was set. SetCompareSound sets value of CompareSound conditional field. SetCompareStories sets value of CompareStories conditional field. SetFlags sets flags for non-zero fields. SetPeer sets value of Peer conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetNotifyExceptionsRequest) Zero() bool *AccountGetNotifyExceptionsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetNotifyExceptionsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetNotifyExceptionsRequest : github.com/gotd/td/bin.Decoder *AccountGetNotifyExceptionsRequest : github.com/gotd/td/bin.Encoder *AccountGetNotifyExceptionsRequest : github.com/gotd/td/bin.Object *AccountGetNotifyExceptionsRequest : github.com/gotd/td/tdp.Object *AccountGetNotifyExceptionsRequest : fmt.Stringer func (*Client).AccountGetNotifyExceptions(ctx context.Context, request *AccountGetNotifyExceptionsRequest) (UpdatesClass, error)
AccountGetNotifySettingsRequest represents TL type `account.getNotifySettings#12b3ad31`. Gets current notification settings for a given user/group, from all users/all groups. See https://core.telegram.org/method/account.getNotifySettings for reference. Notification source Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetNotifySettingsRequest from given interface. GetPeer returns value of Peer field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetNotifySettingsRequest) Zero() bool *AccountGetNotifySettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetNotifySettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetNotifySettingsRequest : github.com/gotd/td/bin.Decoder *AccountGetNotifySettingsRequest : github.com/gotd/td/bin.Encoder *AccountGetNotifySettingsRequest : github.com/gotd/td/bin.Object *AccountGetNotifySettingsRequest : github.com/gotd/td/tdp.Object *AccountGetNotifySettingsRequest : fmt.Stringer
AccountGetPaidMessagesRevenueRequest represents TL type `account.getPaidMessagesRevenue#19ba4a67`. Get the number of stars we have received from the specified user thanks to paid messages »¹; the received amount will be equal to the sent amount multiplied by stars_paid_message_commission_permille² divided by 1000. Links: 1. https://core.telegram.org/api/paid-messages 2. https://core.telegram.org/api/config#stars-paid-message-commission-permille See https://core.telegram.org/method/account.getPaidMessagesRevenue for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, can contain the ID of a monoforum (channel direct messages)¹ to obtain the number of stars the user has spent to send us direct messages via the channel. Links: 1) https://core.telegram.org/api/monoforum Use SetParentPeer and GetParentPeer helpers. The user that paid to send us messages. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetPaidMessagesRevenueRequest from given interface. GetParentPeer returns value of ParentPeer conditional field and boolean which is true if field was set. GetUserID returns value of UserID field. SetFlags sets flags for non-zero fields. SetParentPeer sets value of ParentPeer conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetPaidMessagesRevenueRequest) Zero() bool *AccountGetPaidMessagesRevenueRequest : github.com/gotd/td/bin.BareDecoder *AccountGetPaidMessagesRevenueRequest : github.com/gotd/td/bin.BareEncoder *AccountGetPaidMessagesRevenueRequest : github.com/gotd/td/bin.Decoder *AccountGetPaidMessagesRevenueRequest : github.com/gotd/td/bin.Encoder *AccountGetPaidMessagesRevenueRequest : github.com/gotd/td/bin.Object *AccountGetPaidMessagesRevenueRequest : github.com/gotd/td/tdp.Object *AccountGetPaidMessagesRevenueRequest : fmt.Stringer func (*Client).AccountGetPaidMessagesRevenue(ctx context.Context, request *AccountGetPaidMessagesRevenueRequest) (*AccountPaidMessagesRevenue, error)
AccountGetPasskeysRequest represents TL type `account.getPasskeys#ea1f0c52`. List the passkeys associated to the current account that can be used to log in, see here »¹ for more info on passkeys. Links: 1. https://core.telegram.org/api/passkeys#list-passkeys See https://core.telegram.org/method/account.getPasskeys for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetPasskeysRequest) Zero() bool *AccountGetPasskeysRequest : github.com/gotd/td/bin.BareDecoder *AccountGetPasskeysRequest : github.com/gotd/td/bin.BareEncoder *AccountGetPasskeysRequest : github.com/gotd/td/bin.Decoder *AccountGetPasskeysRequest : github.com/gotd/td/bin.Encoder *AccountGetPasskeysRequest : github.com/gotd/td/bin.Object *AccountGetPasskeysRequest : github.com/gotd/td/tdp.Object *AccountGetPasskeysRequest : fmt.Stringer
AccountGetPasswordRequest represents TL type `account.getPassword#548a30f5`. Obtain configuration for two-factor authorization with password See https://core.telegram.org/method/account.getPassword for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetPasswordRequest) Zero() bool *AccountGetPasswordRequest : github.com/gotd/td/bin.BareDecoder *AccountGetPasswordRequest : github.com/gotd/td/bin.BareEncoder *AccountGetPasswordRequest : github.com/gotd/td/bin.Decoder *AccountGetPasswordRequest : github.com/gotd/td/bin.Encoder *AccountGetPasswordRequest : github.com/gotd/td/bin.Object *AccountGetPasswordRequest : github.com/gotd/td/tdp.Object *AccountGetPasswordRequest : fmt.Stringer
AccountGetPasswordSettingsRequest represents TL type `account.getPasswordSettings#9cd4eaf9`. Get private info associated to the password info (recovery email, telegram passport¹ info & so on) Links: 1. https://core.telegram.org/passport See https://core.telegram.org/method/account.getPasswordSettings for reference. The password (see SRP¹) Links: 1) https://core.telegram.org/api/srp Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetPasswordSettingsRequest from given interface. GetPassword returns value of Password field. GetPasswordAsNotEmpty returns mapped value of Password field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetPasswordSettingsRequest) Zero() bool *AccountGetPasswordSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetPasswordSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetPasswordSettingsRequest : github.com/gotd/td/bin.Decoder *AccountGetPasswordSettingsRequest : github.com/gotd/td/bin.Encoder *AccountGetPasswordSettingsRequest : github.com/gotd/td/bin.Object *AccountGetPasswordSettingsRequest : github.com/gotd/td/tdp.Object *AccountGetPasswordSettingsRequest : fmt.Stringer
AccountGetPrivacyRequest represents TL type `account.getPrivacy#dadbc950`. Get privacy settings of current account See https://core.telegram.org/method/account.getPrivacy for reference. Peer category whose privacy settings should be fetched Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetPrivacyRequest from given interface. GetKey returns value of Key field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetPrivacyRequest) Zero() bool *AccountGetPrivacyRequest : github.com/gotd/td/bin.BareDecoder *AccountGetPrivacyRequest : github.com/gotd/td/bin.BareEncoder *AccountGetPrivacyRequest : github.com/gotd/td/bin.Decoder *AccountGetPrivacyRequest : github.com/gotd/td/bin.Encoder *AccountGetPrivacyRequest : github.com/gotd/td/bin.Object *AccountGetPrivacyRequest : github.com/gotd/td/tdp.Object *AccountGetPrivacyRequest : fmt.Stringer
AccountGetReactionsNotifySettingsRequest represents TL type `account.getReactionsNotifySettings#6dd654c`. Get the current reaction notification settings »¹. Links: 1. https://core.telegram.org/api/reactions#notifications-about-reactions See https://core.telegram.org/method/account.getReactionsNotifySettings for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetReactionsNotifySettingsRequest) Zero() bool *AccountGetReactionsNotifySettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetReactionsNotifySettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetReactionsNotifySettingsRequest : github.com/gotd/td/bin.Decoder *AccountGetReactionsNotifySettingsRequest : github.com/gotd/td/bin.Encoder *AccountGetReactionsNotifySettingsRequest : github.com/gotd/td/bin.Object *AccountGetReactionsNotifySettingsRequest : github.com/gotd/td/tdp.Object *AccountGetReactionsNotifySettingsRequest : fmt.Stringer
AccountGetRecentEmojiStatusesRequest represents TL type `account.getRecentEmojiStatuses#f578105`. Get recently used emoji statuses¹ Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/method/account.getRecentEmojiStatuses for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetRecentEmojiStatusesRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetRecentEmojiStatusesRequest) Zero() bool *AccountGetRecentEmojiStatusesRequest : github.com/gotd/td/bin.BareDecoder *AccountGetRecentEmojiStatusesRequest : github.com/gotd/td/bin.BareEncoder *AccountGetRecentEmojiStatusesRequest : github.com/gotd/td/bin.Decoder *AccountGetRecentEmojiStatusesRequest : github.com/gotd/td/bin.Encoder *AccountGetRecentEmojiStatusesRequest : github.com/gotd/td/bin.Object *AccountGetRecentEmojiStatusesRequest : github.com/gotd/td/tdp.Object *AccountGetRecentEmojiStatusesRequest : fmt.Stringer
AccountGetSavedMusicIDsRequest represents TL type `account.getSavedMusicIds#e09d5faf`. Fetch the full list of only the IDs of songs currently added to the profile, see here »¹ for more info. Links: 1. https://core.telegram.org/api/profile#music See https://core.telegram.org/method/account.getSavedMusicIds for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetSavedMusicIDsRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetSavedMusicIDsRequest) Zero() bool *AccountGetSavedMusicIDsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetSavedMusicIDsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetSavedMusicIDsRequest : github.com/gotd/td/bin.Decoder *AccountGetSavedMusicIDsRequest : github.com/gotd/td/bin.Encoder *AccountGetSavedMusicIDsRequest : github.com/gotd/td/bin.Object *AccountGetSavedMusicIDsRequest : github.com/gotd/td/tdp.Object *AccountGetSavedMusicIDsRequest : fmt.Stringer
AccountGetSavedRingtonesRequest represents TL type `account.getSavedRingtones#e1902288`. Fetch saved notification sounds See https://core.telegram.org/method/account.getSavedRingtones for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetSavedRingtonesRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetSavedRingtonesRequest) Zero() bool *AccountGetSavedRingtonesRequest : github.com/gotd/td/bin.BareDecoder *AccountGetSavedRingtonesRequest : github.com/gotd/td/bin.BareEncoder *AccountGetSavedRingtonesRequest : github.com/gotd/td/bin.Decoder *AccountGetSavedRingtonesRequest : github.com/gotd/td/bin.Encoder *AccountGetSavedRingtonesRequest : github.com/gotd/td/bin.Object *AccountGetSavedRingtonesRequest : github.com/gotd/td/tdp.Object *AccountGetSavedRingtonesRequest : fmt.Stringer
AccountGetSecureValueRequest represents TL type `account.getSecureValue#73665bc2`. Get saved Telegram Passport¹ document, for more info see the passport docs »² Links: 1. https://core.telegram.org/passport 2. https://core.telegram.org/passport/encryption#encryption See https://core.telegram.org/method/account.getSecureValue for reference. Document types to delete Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetSecureValueRequest from given interface. GetTypes returns value of Types field. MapTypes returns field Types wrapped in SecureValueTypeClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetSecureValueRequest) Zero() bool *AccountGetSecureValueRequest : github.com/gotd/td/bin.BareDecoder *AccountGetSecureValueRequest : github.com/gotd/td/bin.BareEncoder *AccountGetSecureValueRequest : github.com/gotd/td/bin.Decoder *AccountGetSecureValueRequest : github.com/gotd/td/bin.Encoder *AccountGetSecureValueRequest : github.com/gotd/td/bin.Object *AccountGetSecureValueRequest : github.com/gotd/td/tdp.Object *AccountGetSecureValueRequest : fmt.Stringer
AccountGetThemeRequest represents TL type `account.getTheme#3a5869ec`. Get theme information See https://core.telegram.org/method/account.getTheme for reference. Theme format, a string that identifies the theming engines supported by the client Theme Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetThemeRequest from given interface. GetFormat returns value of Format field. GetTheme returns value of Theme field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetThemeRequest) Zero() bool *AccountGetThemeRequest : github.com/gotd/td/bin.BareDecoder *AccountGetThemeRequest : github.com/gotd/td/bin.BareEncoder *AccountGetThemeRequest : github.com/gotd/td/bin.Decoder *AccountGetThemeRequest : github.com/gotd/td/bin.Encoder *AccountGetThemeRequest : github.com/gotd/td/bin.Object *AccountGetThemeRequest : github.com/gotd/td/tdp.Object *AccountGetThemeRequest : fmt.Stringer func (*Client).AccountGetTheme(ctx context.Context, request *AccountGetThemeRequest) (*Theme, error)
AccountGetThemesRequest represents TL type `account.getThemes#7206e458`. Get installed themes See https://core.telegram.org/method/account.getThemes for reference. Theme format, a string that identifies the theming engines supported by the client Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetThemesRequest from given interface. GetFormat returns value of Format field. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetThemesRequest) Zero() bool *AccountGetThemesRequest : github.com/gotd/td/bin.BareDecoder *AccountGetThemesRequest : github.com/gotd/td/bin.BareEncoder *AccountGetThemesRequest : github.com/gotd/td/bin.Decoder *AccountGetThemesRequest : github.com/gotd/td/bin.Encoder *AccountGetThemesRequest : github.com/gotd/td/bin.Object *AccountGetThemesRequest : github.com/gotd/td/tdp.Object *AccountGetThemesRequest : fmt.Stringer func (*Client).AccountGetThemes(ctx context.Context, request *AccountGetThemesRequest) (AccountThemesClass, error)
AccountGetTmpPasswordRequest represents TL type `account.getTmpPassword#449e0b51`. Get temporary payment password See https://core.telegram.org/method/account.getTmpPassword for reference. SRP password parameters Time during which the temporary password will be valid, in seconds; should be between 60 and 86400 Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetTmpPasswordRequest from given interface. GetPassword returns value of Password field. GetPasswordAsNotEmpty returns mapped value of Password field. GetPeriod returns value of Period field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetTmpPasswordRequest) Zero() bool *AccountGetTmpPasswordRequest : github.com/gotd/td/bin.BareDecoder *AccountGetTmpPasswordRequest : github.com/gotd/td/bin.BareEncoder *AccountGetTmpPasswordRequest : github.com/gotd/td/bin.Decoder *AccountGetTmpPasswordRequest : github.com/gotd/td/bin.Encoder *AccountGetTmpPasswordRequest : github.com/gotd/td/bin.Object *AccountGetTmpPasswordRequest : github.com/gotd/td/tdp.Object *AccountGetTmpPasswordRequest : fmt.Stringer func (*Client).AccountGetTmpPassword(ctx context.Context, request *AccountGetTmpPasswordRequest) (*AccountTmpPassword, error)
AccountGetUniqueGiftChatThemesRequest represents TL type `account.getUniqueGiftChatThemes#e42ce9c9`. Obtain all chat themes »¹ associated to owned collectible gifts »². Links: 1. https://core.telegram.org/api/themes#chat-themes 2. https://core.telegram.org/api/gifts#collectible-gifts See https://core.telegram.org/method/account.getUniqueGiftChatThemes for reference. Hash from a previously returned account.chatThemes¹ constructor, to avoid returning any result if the theme list hasn't changed. Links: 1) https://core.telegram.org/constructor/account.chatThemes Maximum number of results to return, see pagination¹. Note that the server may return less than limit results, even if the actual number of remaining results is >= limit, paginate to fetch them all. Links: 1) https://core.telegram.org/api/offsets Offset for pagination¹, intially an empty string, then equal the value of the last returned account.chatThemes².next_offset (if set). Links: 1) https://core.telegram.org/api/offsets 2) https://core.telegram.org/constructor/account.chatThemes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetUniqueGiftChatThemesRequest from given interface. GetHash returns value of Hash field. GetLimit returns value of Limit field. GetOffset returns value of Offset field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetUniqueGiftChatThemesRequest) Zero() bool *AccountGetUniqueGiftChatThemesRequest : github.com/gotd/td/bin.BareDecoder *AccountGetUniqueGiftChatThemesRequest : github.com/gotd/td/bin.BareEncoder *AccountGetUniqueGiftChatThemesRequest : github.com/gotd/td/bin.Decoder *AccountGetUniqueGiftChatThemesRequest : github.com/gotd/td/bin.Encoder *AccountGetUniqueGiftChatThemesRequest : github.com/gotd/td/bin.Object *AccountGetUniqueGiftChatThemesRequest : github.com/gotd/td/tdp.Object *AccountGetUniqueGiftChatThemesRequest : fmt.Stringer func (*Client).AccountGetUniqueGiftChatThemes(ctx context.Context, request *AccountGetUniqueGiftChatThemesRequest) (AccountChatThemesClass, error)
AccountGetWallPaperRequest represents TL type `account.getWallPaper#fc8ddbea`. Get info about a certain wallpaper¹ Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/method/account.getWallPaper for reference. The wallpaper¹ to get info about Links: 1) https://core.telegram.org/api/wallpapers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetWallPaperRequest from given interface. GetWallpaper returns value of Wallpaper field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetWallPaperRequest) Zero() bool *AccountGetWallPaperRequest : github.com/gotd/td/bin.BareDecoder *AccountGetWallPaperRequest : github.com/gotd/td/bin.BareEncoder *AccountGetWallPaperRequest : github.com/gotd/td/bin.Decoder *AccountGetWallPaperRequest : github.com/gotd/td/bin.Encoder *AccountGetWallPaperRequest : github.com/gotd/td/bin.Object *AccountGetWallPaperRequest : github.com/gotd/td/tdp.Object *AccountGetWallPaperRequest : fmt.Stringer
AccountGetWallPapersRequest represents TL type `account.getWallPapers#7967d36`. Returns a list of available wallpapers¹. Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/method/account.getWallPapers for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetWallPapersRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetWallPapersRequest) Zero() bool *AccountGetWallPapersRequest : github.com/gotd/td/bin.BareDecoder *AccountGetWallPapersRequest : github.com/gotd/td/bin.BareEncoder *AccountGetWallPapersRequest : github.com/gotd/td/bin.Decoder *AccountGetWallPapersRequest : github.com/gotd/td/bin.Encoder *AccountGetWallPapersRequest : github.com/gotd/td/bin.Object *AccountGetWallPapersRequest : github.com/gotd/td/tdp.Object *AccountGetWallPapersRequest : fmt.Stringer
AccountGetWebAuthorizationsRequest represents TL type `account.getWebAuthorizations#182e6d6f`. Get web login widget¹ authorizations Links: 1. https://core.telegram.org/widgets/login See https://core.telegram.org/method/account.getWebAuthorizations for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetWebAuthorizationsRequest) Zero() bool *AccountGetWebAuthorizationsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetWebAuthorizationsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetWebAuthorizationsRequest : github.com/gotd/td/bin.Decoder *AccountGetWebAuthorizationsRequest : github.com/gotd/td/bin.Encoder *AccountGetWebAuthorizationsRequest : github.com/gotd/td/bin.Object *AccountGetWebAuthorizationsRequest : github.com/gotd/td/tdp.Object *AccountGetWebAuthorizationsRequest : fmt.Stringer
AccountGetWebBrowserSettingsRequest represents TL type `account.getWebBrowserSettings#56655768`. See https://core.telegram.org/method/account.getWebBrowserSettings for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountGetWebBrowserSettingsRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountGetWebBrowserSettingsRequest) Zero() bool *AccountGetWebBrowserSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountGetWebBrowserSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountGetWebBrowserSettingsRequest : github.com/gotd/td/bin.Decoder *AccountGetWebBrowserSettingsRequest : github.com/gotd/td/bin.Encoder *AccountGetWebBrowserSettingsRequest : github.com/gotd/td/bin.Object *AccountGetWebBrowserSettingsRequest : github.com/gotd/td/tdp.Object *AccountGetWebBrowserSettingsRequest : fmt.Stringer
AccountInitPasskeyRegistrationRequest represents TL type `account.initPasskeyRegistration#429547e8`. Initialize passkey registration for the current account, see here »¹ for more info on the full flow. Links: 1. https://core.telegram.org/api/passkeys#creating-a-passkey See https://core.telegram.org/method/account.initPasskeyRegistration for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountInitPasskeyRegistrationRequest) Zero() bool *AccountInitPasskeyRegistrationRequest : github.com/gotd/td/bin.BareDecoder *AccountInitPasskeyRegistrationRequest : github.com/gotd/td/bin.BareEncoder *AccountInitPasskeyRegistrationRequest : github.com/gotd/td/bin.Decoder *AccountInitPasskeyRegistrationRequest : github.com/gotd/td/bin.Encoder *AccountInitPasskeyRegistrationRequest : github.com/gotd/td/bin.Object *AccountInitPasskeyRegistrationRequest : github.com/gotd/td/tdp.Object *AccountInitPasskeyRegistrationRequest : fmt.Stringer
AccountInitTakeoutSessionRequest represents TL type `account.initTakeoutSession#8ef3eab0`. Initialize a takeout session, see here » for more info¹. Links: 1. https://core.telegram.org/api/takeout See https://core.telegram.org/method/account.initTakeoutSession for reference. Whether to export contacts Maximum size of files to export Use SetFileMaxSize and GetFileMaxSize helpers. Whether to export files Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to export messages in channels¹ Links: 1) https://core.telegram.org/api/channel#channels Whether to export messages in basic groups¹ Links: 1) https://core.telegram.org/api/channel#basic-groups Whether to export messages in supergroups¹ Links: 1) https://core.telegram.org/api/channel#supergroups Whether to export messages in private chats Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountInitTakeoutSessionRequest from given interface. GetContacts returns value of Contacts conditional field. GetFileMaxSize returns value of FileMaxSize conditional field and boolean which is true if field was set. GetFiles returns value of Files conditional field. GetMessageChannels returns value of MessageChannels conditional field. GetMessageChats returns value of MessageChats conditional field. GetMessageMegagroups returns value of MessageMegagroups conditional field. GetMessageUsers returns value of MessageUsers conditional field. SetContacts sets value of Contacts conditional field. SetFileMaxSize sets value of FileMaxSize conditional field. SetFiles sets value of Files conditional field. SetFlags sets flags for non-zero fields. SetMessageChannels sets value of MessageChannels conditional field. SetMessageChats sets value of MessageChats conditional field. SetMessageMegagroups sets value of MessageMegagroups conditional field. SetMessageUsers sets value of MessageUsers conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountInitTakeoutSessionRequest) Zero() bool *AccountInitTakeoutSessionRequest : github.com/gotd/td/bin.BareDecoder *AccountInitTakeoutSessionRequest : github.com/gotd/td/bin.BareEncoder *AccountInitTakeoutSessionRequest : github.com/gotd/td/bin.Decoder *AccountInitTakeoutSessionRequest : github.com/gotd/td/bin.Encoder *AccountInitTakeoutSessionRequest : github.com/gotd/td/bin.Object *AccountInitTakeoutSessionRequest : github.com/gotd/td/tdp.Object *AccountInitTakeoutSessionRequest : fmt.Stringer func (*Client).AccountInitTakeoutSession(ctx context.Context, request *AccountInitTakeoutSessionRequest) (*AccountTakeout, error)
AccountInstallThemeRequest represents TL type `account.installTheme#c727bb3b`. Install a theme See https://core.telegram.org/method/account.installTheme for reference. Indicates a basic theme provided by all clients Use SetBaseTheme and GetBaseTheme helpers. Whether to install the dark version Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Theme format, a string that identifies the theming engines supported by the client Use SetFormat and GetFormat helpers. Theme to install Use SetTheme and GetTheme helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountInstallThemeRequest from given interface. GetBaseTheme returns value of BaseTheme conditional field and boolean which is true if field was set. GetDark returns value of Dark conditional field. GetFormat returns value of Format conditional field and boolean which is true if field was set. GetTheme returns value of Theme conditional field and boolean which is true if field was set. SetBaseTheme sets value of BaseTheme conditional field. SetDark sets value of Dark conditional field. SetFlags sets flags for non-zero fields. SetFormat sets value of Format conditional field. SetTheme sets value of Theme conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountInstallThemeRequest) Zero() bool *AccountInstallThemeRequest : github.com/gotd/td/bin.BareDecoder *AccountInstallThemeRequest : github.com/gotd/td/bin.BareEncoder *AccountInstallThemeRequest : github.com/gotd/td/bin.Decoder *AccountInstallThemeRequest : github.com/gotd/td/bin.Encoder *AccountInstallThemeRequest : github.com/gotd/td/bin.Object *AccountInstallThemeRequest : github.com/gotd/td/tdp.Object *AccountInstallThemeRequest : fmt.Stringer func (*Client).AccountInstallTheme(ctx context.Context, request *AccountInstallThemeRequest) (bool, error)
AccountInstallWallPaperRequest represents TL type `account.installWallPaper#feed5769`. Install wallpaper¹ Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/method/account.installWallPaper for reference. Wallpaper¹ settings Links: 1) https://core.telegram.org/api/wallpapers Wallpaper¹ to install Links: 1) https://core.telegram.org/api/wallpapers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountInstallWallPaperRequest from given interface. GetSettings returns value of Settings field. GetWallpaper returns value of Wallpaper field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountInstallWallPaperRequest) Zero() bool *AccountInstallWallPaperRequest : github.com/gotd/td/bin.BareDecoder *AccountInstallWallPaperRequest : github.com/gotd/td/bin.BareEncoder *AccountInstallWallPaperRequest : github.com/gotd/td/bin.Decoder *AccountInstallWallPaperRequest : github.com/gotd/td/bin.Encoder *AccountInstallWallPaperRequest : github.com/gotd/td/bin.Object *AccountInstallWallPaperRequest : github.com/gotd/td/tdp.Object *AccountInstallWallPaperRequest : fmt.Stringer func (*Client).AccountInstallWallPaper(ctx context.Context, request *AccountInstallWallPaperRequest) (bool, error)
AccountInvalidateSignInCodesRequest represents TL type `account.invalidateSignInCodes#ca8ae8ba`. Invalidate the specified login codes, see here »¹ for more info. Links: 1. https://core.telegram.org/api/auth#invalidating-login-codes See https://core.telegram.org/method/account.invalidateSignInCodes for reference. The login codes to invalidate. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountInvalidateSignInCodesRequest from given interface. GetCodes returns value of Codes field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountInvalidateSignInCodesRequest) Zero() bool *AccountInvalidateSignInCodesRequest : github.com/gotd/td/bin.BareDecoder *AccountInvalidateSignInCodesRequest : github.com/gotd/td/bin.BareEncoder *AccountInvalidateSignInCodesRequest : github.com/gotd/td/bin.Decoder *AccountInvalidateSignInCodesRequest : github.com/gotd/td/bin.Encoder *AccountInvalidateSignInCodesRequest : github.com/gotd/td/bin.Object *AccountInvalidateSignInCodesRequest : github.com/gotd/td/tdp.Object *AccountInvalidateSignInCodesRequest : fmt.Stringer
AccountPaidMessagesRevenue represents TL type `account.paidMessagesRevenue#1e109708`. Total number of non-refunded Telegram Stars¹ a user has spent on sending us messages either directly or through a channel, see here »² for more info on paid messages. Links: 1. https://core.telegram.org/api/stars 2. https://core.telegram.org/api/paid-messages See https://core.telegram.org/constructor/account.paidMessagesRevenue for reference. Amount in Stars¹. Links: 1) https://core.telegram.org/api/stars Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountPaidMessagesRevenue from given interface. GetStarsAmount returns value of StarsAmount field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountPaidMessagesRevenue) Zero() bool *AccountPaidMessagesRevenue : github.com/gotd/td/bin.BareDecoder *AccountPaidMessagesRevenue : github.com/gotd/td/bin.BareEncoder *AccountPaidMessagesRevenue : github.com/gotd/td/bin.Decoder *AccountPaidMessagesRevenue : github.com/gotd/td/bin.Encoder *AccountPaidMessagesRevenue : github.com/gotd/td/bin.Object *AccountPaidMessagesRevenue : github.com/gotd/td/tdp.Object *AccountPaidMessagesRevenue : fmt.Stringer func (*Client).AccountGetPaidMessagesRevenue(ctx context.Context, request *AccountGetPaidMessagesRevenueRequest) (*AccountPaidMessagesRevenue, error)
AccountPasskeyRegistrationOptions represents TL type `account.passkeyRegistrationOptions#e16b5ce1`. Passkey registration options, see here »¹ for more info on the full flow. Links: 1. https://core.telegram.org/api/passkeys#creating-a-passkey See https://core.telegram.org/constructor/account.passkeyRegistrationOptions for reference. JSON-encoded object whose publicKey field contains a PublicKeyCredentialCreationOptions¹ object. Links: 1) https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountPasskeyRegistrationOptions from given interface. GetOptions returns value of Options field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountPasskeyRegistrationOptions) Zero() bool *AccountPasskeyRegistrationOptions : github.com/gotd/td/bin.BareDecoder *AccountPasskeyRegistrationOptions : github.com/gotd/td/bin.BareEncoder *AccountPasskeyRegistrationOptions : github.com/gotd/td/bin.Decoder *AccountPasskeyRegistrationOptions : github.com/gotd/td/bin.Encoder *AccountPasskeyRegistrationOptions : github.com/gotd/td/bin.Object *AccountPasskeyRegistrationOptions : github.com/gotd/td/tdp.Object *AccountPasskeyRegistrationOptions : fmt.Stringer func (*Client).AccountInitPasskeyRegistration(ctx context.Context) (*AccountPasskeyRegistrationOptions, error)
AccountPasskeys represents TL type `account.passkeys#f8e0aa1c`. List of passkeys »¹ associated to the current account. Links: 1. https://core.telegram.org/api/passkeys#list-passkeys See https://core.telegram.org/constructor/account.passkeys for reference. List of passkeys that can be used to log into the current account Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountPasskeys from given interface. GetPasskeys returns value of Passkeys field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountPasskeys) Zero() bool *AccountPasskeys : github.com/gotd/td/bin.BareDecoder *AccountPasskeys : github.com/gotd/td/bin.BareEncoder *AccountPasskeys : github.com/gotd/td/bin.Decoder *AccountPasskeys : github.com/gotd/td/bin.Encoder *AccountPasskeys : github.com/gotd/td/bin.Object *AccountPasskeys : github.com/gotd/td/tdp.Object *AccountPasskeys : fmt.Stringer func (*Client).AccountGetPasskeys(ctx context.Context) (*AccountPasskeys, error)
AccountPassword represents TL type `account.password#957b50fb`. Configuration for two-factor authorization See https://core.telegram.org/constructor/account.password for reference. The KDF algorithm for SRP two-factor authentication¹ of the current password Links: 1) https://core.telegram.org/api/srp Use SetCurrentAlgo and GetCurrentAlgo helpers. A password recovery email¹ with the specified pattern² is still awaiting verification Links: 1) https://core.telegram.org/api/srp#email-verification 2) https://core.telegram.org/api/pattern Use SetEmailUnconfirmedPattern and GetEmailUnconfirmedPattern helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the user has a password Whether the user has a recovery method configured Whether telegram passport¹ is enabled Links: 1) https://core.telegram.org/passport Text hint for the password Use SetHint and GetHint helpers. A verified login email with the specified pattern¹ is configured Links: 1) https://core.telegram.org/api/pattern Use SetLoginEmailPattern and GetLoginEmailPattern helpers. The KDF algorithm for SRP two-factor authentication¹ to use when creating new passwords Links: 1) https://core.telegram.org/api/srp The KDF algorithm for telegram passport¹ Links: 1) https://core.telegram.org/passport The 2FA password will be automatically removed at this date, unless the user cancels the operation Use SetPendingResetDate and GetPendingResetDate helpers. Srp B param for SRP authorization¹ Links: 1) https://core.telegram.org/api/srp Use SetSRPB and GetSRPB helpers. Srp ID param for SRP authorization¹ Links: 1) https://core.telegram.org/api/srp Use SetSRPID and GetSRPID helpers. Secure random string Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountPassword from given interface. GetCurrentAlgo returns value of CurrentAlgo conditional field and boolean which is true if field was set. GetEmailUnconfirmedPattern returns value of EmailUnconfirmedPattern conditional field and boolean which is true if field was set. GetHasPassword returns value of HasPassword conditional field. GetHasRecovery returns value of HasRecovery conditional field. GetHasSecureValues returns value of HasSecureValues conditional field. GetHint returns value of Hint conditional field and boolean which is true if field was set. GetLoginEmailPattern returns value of LoginEmailPattern conditional field and boolean which is true if field was set. GetNewAlgo returns value of NewAlgo field. GetNewSecureAlgo returns value of NewSecureAlgo field. GetPendingResetDate returns value of PendingResetDate conditional field and boolean which is true if field was set. GetSRPB returns value of SRPB conditional field and boolean which is true if field was set. GetSRPID returns value of SRPID conditional field and boolean which is true if field was set. GetSecureRandom returns value of SecureRandom field. SetCurrentAlgo sets value of CurrentAlgo conditional field. SetEmailUnconfirmedPattern sets value of EmailUnconfirmedPattern conditional field. SetFlags sets flags for non-zero fields. SetHasPassword sets value of HasPassword conditional field. SetHasRecovery sets value of HasRecovery conditional field. SetHasSecureValues sets value of HasSecureValues conditional field. SetHint sets value of Hint conditional field. SetLoginEmailPattern sets value of LoginEmailPattern conditional field. SetPendingResetDate sets value of PendingResetDate conditional field. SetSRPB sets value of SRPB conditional field. SetSRPID sets value of SRPID conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountPassword) Zero() bool *AccountPassword : github.com/gotd/td/bin.BareDecoder *AccountPassword : github.com/gotd/td/bin.BareEncoder *AccountPassword : github.com/gotd/td/bin.Decoder *AccountPassword : github.com/gotd/td/bin.Encoder *AccountPassword : github.com/gotd/td/bin.Object *AccountPassword : github.com/gotd/td/tdp.Object *AccountPassword : fmt.Stringer func (*Client).AccountGetPassword(ctx context.Context) (*AccountPassword, error) func github.com/gotd/td/telegram/auth.PasswordHashProvider.PasswordHash(ctx context.Context, p *AccountPassword) (*InputCheckPasswordSRP, error)
AccountPasswordInputSettings represents TL type `account.passwordInputSettings#c23727c9`. Settings for setting up a new password See https://core.telegram.org/constructor/account.passwordInputSettings for reference. Password recovery email Use SetEmail and GetEmail helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Text hint for the password Use SetHint and GetHint helpers. The SRP algorithm¹ to use Links: 1) https://core.telegram.org/api/srp Use SetNewAlgo and GetNewAlgo helpers. The computed password hash¹ Links: 1) https://core.telegram.org/api/srp Use SetNewPasswordHash and GetNewPasswordHash helpers. Telegram passport¹ settings Links: 1) https://core.telegram.org/passport Use SetNewSecureSettings and GetNewSecureSettings helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountPasswordInputSettings from given interface. GetEmail returns value of Email conditional field and boolean which is true if field was set. GetHint returns value of Hint conditional field and boolean which is true if field was set. GetNewAlgo returns value of NewAlgo conditional field and boolean which is true if field was set. GetNewPasswordHash returns value of NewPasswordHash conditional field and boolean which is true if field was set. GetNewSecureSettings returns value of NewSecureSettings conditional field and boolean which is true if field was set. SetEmail sets value of Email conditional field. SetFlags sets flags for non-zero fields. SetHint sets value of Hint conditional field. SetNewAlgo sets value of NewAlgo conditional field. SetNewPasswordHash sets value of NewPasswordHash conditional field. SetNewSecureSettings sets value of NewSecureSettings conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountPasswordInputSettings) Zero() bool *AccountPasswordInputSettings : github.com/gotd/td/bin.BareDecoder *AccountPasswordInputSettings : github.com/gotd/td/bin.BareEncoder *AccountPasswordInputSettings : github.com/gotd/td/bin.Decoder *AccountPasswordInputSettings : github.com/gotd/td/bin.Encoder *AccountPasswordInputSettings : github.com/gotd/td/bin.Object *AccountPasswordInputSettings : github.com/gotd/td/tdp.Object *AccountPasswordInputSettings : fmt.Stringer func (*AccountUpdatePasswordSettingsRequest).GetNewSettings() (value AccountPasswordInputSettings) func (*AuthRecoverPasswordRequest).GetNewSettings() (value AccountPasswordInputSettings, ok bool) func (*AuthRecoverPasswordRequest).SetNewSettings(value AccountPasswordInputSettings)
AccountPasswordSettings represents TL type `account.passwordSettings#9a5c33e5`. Private info associated to the password info (recovery email, telegram passport¹ info & so on) Links: 1. https://core.telegram.org/passport See https://core.telegram.org/constructor/account.passwordSettings for reference. 2FA Recovery email¹ Links: 1) https://core.telegram.org/api/srp#email-verification Use SetEmail and GetEmail helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Telegram passport¹ settings Links: 1) https://core.telegram.org/passport Use SetSecureSettings and GetSecureSettings helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountPasswordSettings from given interface. GetEmail returns value of Email conditional field and boolean which is true if field was set. GetSecureSettings returns value of SecureSettings conditional field and boolean which is true if field was set. SetEmail sets value of Email conditional field. SetFlags sets flags for non-zero fields. SetSecureSettings sets value of SecureSettings conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountPasswordSettings) Zero() bool *AccountPasswordSettings : github.com/gotd/td/bin.BareDecoder *AccountPasswordSettings : github.com/gotd/td/bin.BareEncoder *AccountPasswordSettings : github.com/gotd/td/bin.Decoder *AccountPasswordSettings : github.com/gotd/td/bin.Encoder *AccountPasswordSettings : github.com/gotd/td/bin.Object *AccountPasswordSettings : github.com/gotd/td/tdp.Object *AccountPasswordSettings : fmt.Stringer func (*Client).AccountGetPasswordSettings(ctx context.Context, password InputCheckPasswordSRPClass) (*AccountPasswordSettings, error)
AccountPrivacyRules represents TL type `account.privacyRules#50a04e45`. Privacy rules See https://core.telegram.org/constructor/account.privacyRules for reference. Chats to which the rules apply Privacy rules Users to which the rules apply Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountPrivacyRules from given interface. GetChats returns value of Chats field. GetRules returns value of Rules field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapRules returns field Rules wrapped in PrivacyRuleClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountPrivacyRules) Zero() bool *AccountPrivacyRules : github.com/gotd/td/bin.BareDecoder *AccountPrivacyRules : github.com/gotd/td/bin.BareEncoder *AccountPrivacyRules : github.com/gotd/td/bin.Decoder *AccountPrivacyRules : github.com/gotd/td/bin.Encoder *AccountPrivacyRules : github.com/gotd/td/bin.Object *AccountPrivacyRules : github.com/gotd/td/tdp.Object *AccountPrivacyRules : fmt.Stringer func (*Client).AccountGetPrivacy(ctx context.Context, key InputPrivacyKeyClass) (*AccountPrivacyRules, error) func (*Client).AccountSetPrivacy(ctx context.Context, request *AccountSetPrivacyRequest) (*AccountPrivacyRules, error)
AccountRegisterDeviceRequest represents TL type `account.registerDevice#ec86017a`. Register device to receive PUSH notifications¹ Links: 1. https://core.telegram.org/api/push-updates See https://core.telegram.org/method/account.registerDevice for reference. If (boolTrue)¹ is transmitted, a sandbox-certificate will be used during transmission. Links: 1) https://core.telegram.org/constructor/boolTrue Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Avoid receiving (silent and invisible background) notifications. Useful to save battery. List of user identifiers of other users currently using the client For FCM and APNS VoIP, optional encryption key used to encrypt push notifications Device token, see PUSH updates¹ for the possible values. Links: 1) https://core.telegram.org/api/push-updates#subscribing-to-notifications Device token type, see PUSH updates¹ for the possible values. Links: 1) https://core.telegram.org/api/push-updates#subscribing-to-notifications Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountRegisterDeviceRequest from given interface. GetAppSandbox returns value of AppSandbox field. GetNoMuted returns value of NoMuted conditional field. GetOtherUIDs returns value of OtherUIDs field. GetSecret returns value of Secret field. GetToken returns value of Token field. GetTokenType returns value of TokenType field. SetFlags sets flags for non-zero fields. SetNoMuted sets value of NoMuted conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountRegisterDeviceRequest) Zero() bool *AccountRegisterDeviceRequest : github.com/gotd/td/bin.BareDecoder *AccountRegisterDeviceRequest : github.com/gotd/td/bin.BareEncoder *AccountRegisterDeviceRequest : github.com/gotd/td/bin.Decoder *AccountRegisterDeviceRequest : github.com/gotd/td/bin.Encoder *AccountRegisterDeviceRequest : github.com/gotd/td/bin.Object *AccountRegisterDeviceRequest : github.com/gotd/td/tdp.Object *AccountRegisterDeviceRequest : fmt.Stringer func (*Client).AccountRegisterDevice(ctx context.Context, request *AccountRegisterDeviceRequest) (bool, error)
AccountRegisterPasskeyRequest represents TL type `account.registerPasskey#55b41fd6`. Complete passkey registration for the current account, see here »¹ for more info on the full flow. Links: 1. https://core.telegram.org/api/passkeys#creating-a-passkey See https://core.telegram.org/method/account.registerPasskey for reference. Registration result. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountRegisterPasskeyRequest from given interface. GetCredential returns value of Credential field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountRegisterPasskeyRequest) Zero() bool *AccountRegisterPasskeyRequest : github.com/gotd/td/bin.BareDecoder *AccountRegisterPasskeyRequest : github.com/gotd/td/bin.BareEncoder *AccountRegisterPasskeyRequest : github.com/gotd/td/bin.Decoder *AccountRegisterPasskeyRequest : github.com/gotd/td/bin.Encoder *AccountRegisterPasskeyRequest : github.com/gotd/td/bin.Object *AccountRegisterPasskeyRequest : github.com/gotd/td/tdp.Object *AccountRegisterPasskeyRequest : fmt.Stringer
AccountReorderUsernamesRequest represents TL type `account.reorderUsernames#ef500eab`. Reorder usernames associated with the currently logged-in user. See https://core.telegram.org/method/account.reorderUsernames for reference. The new order for active usernames. All active usernames must be specified. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountReorderUsernamesRequest from given interface. GetOrder returns value of Order field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountReorderUsernamesRequest) Zero() bool *AccountReorderUsernamesRequest : github.com/gotd/td/bin.BareDecoder *AccountReorderUsernamesRequest : github.com/gotd/td/bin.BareEncoder *AccountReorderUsernamesRequest : github.com/gotd/td/bin.Decoder *AccountReorderUsernamesRequest : github.com/gotd/td/bin.Encoder *AccountReorderUsernamesRequest : github.com/gotd/td/bin.Object *AccountReorderUsernamesRequest : github.com/gotd/td/tdp.Object *AccountReorderUsernamesRequest : fmt.Stringer
AccountReportPeerRequest represents TL type `account.reportPeer#c5ba3d86`. Report a peer for violation of telegram's Terms of Service See https://core.telegram.org/method/account.reportPeer for reference. Comment for report moderation The peer to report The reason why this peer is being reported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountReportPeerRequest from given interface. GetMessage returns value of Message field. GetPeer returns value of Peer field. GetReason returns value of Reason field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountReportPeerRequest) Zero() bool *AccountReportPeerRequest : github.com/gotd/td/bin.BareDecoder *AccountReportPeerRequest : github.com/gotd/td/bin.BareEncoder *AccountReportPeerRequest : github.com/gotd/td/bin.Decoder *AccountReportPeerRequest : github.com/gotd/td/bin.Encoder *AccountReportPeerRequest : github.com/gotd/td/bin.Object *AccountReportPeerRequest : github.com/gotd/td/tdp.Object *AccountReportPeerRequest : fmt.Stringer func (*Client).AccountReportPeer(ctx context.Context, request *AccountReportPeerRequest) (bool, error)
AccountReportProfilePhotoRequest represents TL type `account.reportProfilePhoto#fa8cc6f5`. Report a profile photo of a dialog See https://core.telegram.org/method/account.reportProfilePhoto for reference. Comment for report moderation The dialog Dialog photo ID Report reason Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountReportProfilePhotoRequest from given interface. GetMessage returns value of Message field. GetPeer returns value of Peer field. GetPhotoID returns value of PhotoID field. GetPhotoIDAsNotEmpty returns mapped value of PhotoID field. GetReason returns value of Reason field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountReportProfilePhotoRequest) Zero() bool *AccountReportProfilePhotoRequest : github.com/gotd/td/bin.BareDecoder *AccountReportProfilePhotoRequest : github.com/gotd/td/bin.BareEncoder *AccountReportProfilePhotoRequest : github.com/gotd/td/bin.Decoder *AccountReportProfilePhotoRequest : github.com/gotd/td/bin.Encoder *AccountReportProfilePhotoRequest : github.com/gotd/td/bin.Object *AccountReportProfilePhotoRequest : github.com/gotd/td/tdp.Object *AccountReportProfilePhotoRequest : fmt.Stringer func (*Client).AccountReportProfilePhoto(ctx context.Context, request *AccountReportProfilePhotoRequest) (bool, error)
AccountResendPasswordEmailRequest represents TL type `account.resendPasswordEmail#7a7f2a15`. Resend the code to verify an email to use as 2FA recovery method¹. Links: 1. https://core.telegram.org/api/srp See https://core.telegram.org/method/account.resendPasswordEmail for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResendPasswordEmailRequest) Zero() bool *AccountResendPasswordEmailRequest : github.com/gotd/td/bin.BareDecoder *AccountResendPasswordEmailRequest : github.com/gotd/td/bin.BareEncoder *AccountResendPasswordEmailRequest : github.com/gotd/td/bin.Decoder *AccountResendPasswordEmailRequest : github.com/gotd/td/bin.Encoder *AccountResendPasswordEmailRequest : github.com/gotd/td/bin.Object *AccountResendPasswordEmailRequest : github.com/gotd/td/tdp.Object *AccountResendPasswordEmailRequest : fmt.Stringer
AccountResetAuthorizationRequest represents TL type `account.resetAuthorization#df77f3bc`. Log out an active authorized session¹ by its hash Links: 1. https://core.telegram.org/api/auth See https://core.telegram.org/method/account.resetAuthorization for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountResetAuthorizationRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResetAuthorizationRequest) Zero() bool *AccountResetAuthorizationRequest : github.com/gotd/td/bin.BareDecoder *AccountResetAuthorizationRequest : github.com/gotd/td/bin.BareEncoder *AccountResetAuthorizationRequest : github.com/gotd/td/bin.Decoder *AccountResetAuthorizationRequest : github.com/gotd/td/bin.Encoder *AccountResetAuthorizationRequest : github.com/gotd/td/bin.Object *AccountResetAuthorizationRequest : github.com/gotd/td/tdp.Object *AccountResetAuthorizationRequest : fmt.Stringer
AccountResetNotifySettingsRequest represents TL type `account.resetNotifySettings#db7e1747`. Resets all notification settings from users and groups. See https://core.telegram.org/method/account.resetNotifySettings for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResetNotifySettingsRequest) Zero() bool *AccountResetNotifySettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountResetNotifySettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountResetNotifySettingsRequest : github.com/gotd/td/bin.Decoder *AccountResetNotifySettingsRequest : github.com/gotd/td/bin.Encoder *AccountResetNotifySettingsRequest : github.com/gotd/td/bin.Object *AccountResetNotifySettingsRequest : github.com/gotd/td/tdp.Object *AccountResetNotifySettingsRequest : fmt.Stringer
AccountResetPasswordFailedWait represents TL type `account.resetPasswordFailedWait#e3779861`. You recently requested a password reset that was canceled, please wait until the specified date before requesting another reset. See https://core.telegram.org/constructor/account.resetPasswordFailedWait for reference. Wait until this date before requesting another reset. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountResetPasswordFailedWait from given interface. GetRetryDate returns value of RetryDate field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResetPasswordFailedWait) Zero() bool *AccountResetPasswordFailedWait : AccountResetPasswordResultClass *AccountResetPasswordFailedWait : github.com/gotd/td/bin.BareDecoder *AccountResetPasswordFailedWait : github.com/gotd/td/bin.BareEncoder *AccountResetPasswordFailedWait : github.com/gotd/td/bin.Decoder *AccountResetPasswordFailedWait : github.com/gotd/td/bin.Encoder *AccountResetPasswordFailedWait : github.com/gotd/td/bin.Object *AccountResetPasswordFailedWait : github.com/gotd/td/tdp.Object *AccountResetPasswordFailedWait : fmt.Stringer func AccountResetPasswordFailedWaitArray.First() (v AccountResetPasswordFailedWait, ok bool) func AccountResetPasswordFailedWaitArray.Last() (v AccountResetPasswordFailedWait, ok bool) func (*AccountResetPasswordFailedWaitArray).Pop() (v AccountResetPasswordFailedWait, ok bool) func (*AccountResetPasswordFailedWaitArray).PopFirst() (v AccountResetPasswordFailedWait, ok bool)
AccountResetPasswordFailedWaitArray is adapter for slice of AccountResetPasswordFailedWait. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountResetPasswordFailedWait. Sort sorts slice of AccountResetPasswordFailedWait. SortStable sorts slice of AccountResetPasswordFailedWait. func AccountResetPasswordFailedWaitArray.Retain(keep func(x AccountResetPasswordFailedWait) bool) AccountResetPasswordFailedWaitArray func AccountResetPasswordFailedWaitArray.Sort(less func(a, b AccountResetPasswordFailedWait) bool) AccountResetPasswordFailedWaitArray func AccountResetPasswordFailedWaitArray.SortStable(less func(a, b AccountResetPasswordFailedWait) bool) AccountResetPasswordFailedWaitArray func AccountResetPasswordResultClassArray.AsAccountResetPasswordFailedWait() (to AccountResetPasswordFailedWaitArray)
AccountResetPasswordOk represents TL type `account.resetPasswordOk#e926d63e`. The 2FA password was reset successfully. See https://core.telegram.org/constructor/account.resetPasswordOk for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResetPasswordOk) Zero() bool *AccountResetPasswordOk : AccountResetPasswordResultClass *AccountResetPasswordOk : github.com/gotd/td/bin.BareDecoder *AccountResetPasswordOk : github.com/gotd/td/bin.BareEncoder *AccountResetPasswordOk : github.com/gotd/td/bin.Decoder *AccountResetPasswordOk : github.com/gotd/td/bin.Encoder *AccountResetPasswordOk : github.com/gotd/td/bin.Object *AccountResetPasswordOk : github.com/gotd/td/tdp.Object *AccountResetPasswordOk : fmt.Stringer
AccountResetPasswordRequest represents TL type `account.resetPassword#9308ce1b`. Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info »¹ Links: 1. https://core.telegram.org/api/srp#password-reset See https://core.telegram.org/method/account.resetPassword for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResetPasswordRequest) Zero() bool *AccountResetPasswordRequest : github.com/gotd/td/bin.BareDecoder *AccountResetPasswordRequest : github.com/gotd/td/bin.BareEncoder *AccountResetPasswordRequest : github.com/gotd/td/bin.Decoder *AccountResetPasswordRequest : github.com/gotd/td/bin.Encoder *AccountResetPasswordRequest : github.com/gotd/td/bin.Object *AccountResetPasswordRequest : github.com/gotd/td/tdp.Object *AccountResetPasswordRequest : fmt.Stringer
AccountResetPasswordRequestedWait represents TL type `account.resetPasswordRequestedWait#e9effc7d`. You successfully requested a password reset, please wait until the specified date before finalizing the reset. See https://core.telegram.org/constructor/account.resetPasswordRequestedWait for reference. Wait until this date before finalizing the reset. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountResetPasswordRequestedWait from given interface. GetUntilDate returns value of UntilDate field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResetPasswordRequestedWait) Zero() bool *AccountResetPasswordRequestedWait : AccountResetPasswordResultClass *AccountResetPasswordRequestedWait : github.com/gotd/td/bin.BareDecoder *AccountResetPasswordRequestedWait : github.com/gotd/td/bin.BareEncoder *AccountResetPasswordRequestedWait : github.com/gotd/td/bin.Decoder *AccountResetPasswordRequestedWait : github.com/gotd/td/bin.Encoder *AccountResetPasswordRequestedWait : github.com/gotd/td/bin.Object *AccountResetPasswordRequestedWait : github.com/gotd/td/tdp.Object *AccountResetPasswordRequestedWait : fmt.Stringer func AccountResetPasswordRequestedWaitArray.First() (v AccountResetPasswordRequestedWait, ok bool) func AccountResetPasswordRequestedWaitArray.Last() (v AccountResetPasswordRequestedWait, ok bool) func (*AccountResetPasswordRequestedWaitArray).Pop() (v AccountResetPasswordRequestedWait, ok bool) func (*AccountResetPasswordRequestedWaitArray).PopFirst() (v AccountResetPasswordRequestedWait, ok bool)
AccountResetPasswordRequestedWaitArray is adapter for slice of AccountResetPasswordRequestedWait. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountResetPasswordRequestedWait. Sort sorts slice of AccountResetPasswordRequestedWait. SortStable sorts slice of AccountResetPasswordRequestedWait. func AccountResetPasswordRequestedWaitArray.Retain(keep func(x AccountResetPasswordRequestedWait) bool) AccountResetPasswordRequestedWaitArray func AccountResetPasswordRequestedWaitArray.Sort(less func(a, b AccountResetPasswordRequestedWait) bool) AccountResetPasswordRequestedWaitArray func AccountResetPasswordRequestedWaitArray.SortStable(less func(a, b AccountResetPasswordRequestedWait) bool) AccountResetPasswordRequestedWaitArray func AccountResetPasswordResultClassArray.AsAccountResetPasswordRequestedWait() (to AccountResetPasswordRequestedWaitArray)
AccountResetPasswordResult boxes the AccountResetPasswordResultClass providing a helper. ResetPasswordResult AccountResetPasswordResultClass Decode implements bin.Decoder for AccountResetPasswordResultBox. Encode implements bin.Encode for AccountResetPasswordResultBox. *AccountResetPasswordResultBox : github.com/gotd/td/bin.Decoder *AccountResetPasswordResultBox : github.com/gotd/td/bin.Encoder *AccountResetPasswordResultBox : github.com/gotd/td/bin.Object
AccountResetPasswordResultClass represents account.ResetPasswordResult generic type. See https://core.telegram.org/type/account.ResetPasswordResult for reference. Constructors: - [AccountResetPasswordFailedWait] - [AccountResetPasswordRequestedWait] - [AccountResetPasswordOk] Example: g, err := tg.DecodeAccountResetPasswordResult(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountResetPasswordFailedWait: // account.resetPasswordFailedWait#e3779861 case *tg.AccountResetPasswordRequestedWait: // account.resetPasswordRequestedWait#e9effc7d case *tg.AccountResetPasswordOk: // account.resetPasswordOk#e926d63e default: panic(v) } ( AccountResetPasswordResultClass) Decode(b *bin.Buffer) error ( AccountResetPasswordResultClass) DecodeBare(b *bin.Buffer) error ( AccountResetPasswordResultClass) Encode(b *bin.Buffer) error ( AccountResetPasswordResultClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountResetPasswordFailedWait *AccountResetPasswordOk *AccountResetPasswordRequestedWait AccountResetPasswordResultClass : github.com/gotd/td/bin.BareDecoder AccountResetPasswordResultClass : github.com/gotd/td/bin.BareEncoder AccountResetPasswordResultClass : github.com/gotd/td/bin.Decoder AccountResetPasswordResultClass : github.com/gotd/td/bin.Encoder AccountResetPasswordResultClass : github.com/gotd/td/bin.Object AccountResetPasswordResultClass : fmt.Stringer func DecodeAccountResetPasswordResult(buf *bin.Buffer) (AccountResetPasswordResultClass, error) func AccountResetPasswordResultClassArray.First() (v AccountResetPasswordResultClass, ok bool) func AccountResetPasswordResultClassArray.Last() (v AccountResetPasswordResultClass, ok bool) func (*AccountResetPasswordResultClassArray).Pop() (v AccountResetPasswordResultClass, ok bool) func (*AccountResetPasswordResultClassArray).PopFirst() (v AccountResetPasswordResultClass, ok bool) func (*Client).AccountResetPassword(ctx context.Context) (AccountResetPasswordResultClass, error)
AccountResetPasswordResultClassArray is adapter for slice of AccountResetPasswordResultClass. AsAccountResetPasswordFailedWait returns copy with only AccountResetPasswordFailedWait constructors. AsAccountResetPasswordRequestedWait returns copy with only AccountResetPasswordRequestedWait constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountResetPasswordResultClass. Sort sorts slice of AccountResetPasswordResultClass. SortStable sorts slice of AccountResetPasswordResultClass. func AccountResetPasswordResultClassArray.Retain(keep func(x AccountResetPasswordResultClass) bool) AccountResetPasswordResultClassArray func AccountResetPasswordResultClassArray.Sort(less func(a, b AccountResetPasswordResultClass) bool) AccountResetPasswordResultClassArray func AccountResetPasswordResultClassArray.SortStable(less func(a, b AccountResetPasswordResultClass) bool) AccountResetPasswordResultClassArray
AccountResetWallPapersRequest represents TL type `account.resetWallPapers#bb3b9804`. Delete all installed wallpapers¹, reverting to the default wallpaper set. Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/method/account.resetWallPapers for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResetWallPapersRequest) Zero() bool *AccountResetWallPapersRequest : github.com/gotd/td/bin.BareDecoder *AccountResetWallPapersRequest : github.com/gotd/td/bin.BareEncoder *AccountResetWallPapersRequest : github.com/gotd/td/bin.Decoder *AccountResetWallPapersRequest : github.com/gotd/td/bin.Encoder *AccountResetWallPapersRequest : github.com/gotd/td/bin.Object *AccountResetWallPapersRequest : github.com/gotd/td/tdp.Object *AccountResetWallPapersRequest : fmt.Stringer
AccountResetWebAuthorizationRequest represents TL type `account.resetWebAuthorization#2d01b9ef`. Log out an active web telegram login¹ session Links: 1. https://core.telegram.org/widgets/login See https://core.telegram.org/method/account.resetWebAuthorization for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountResetWebAuthorizationRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResetWebAuthorizationRequest) Zero() bool *AccountResetWebAuthorizationRequest : github.com/gotd/td/bin.BareDecoder *AccountResetWebAuthorizationRequest : github.com/gotd/td/bin.BareEncoder *AccountResetWebAuthorizationRequest : github.com/gotd/td/bin.Decoder *AccountResetWebAuthorizationRequest : github.com/gotd/td/bin.Encoder *AccountResetWebAuthorizationRequest : github.com/gotd/td/bin.Object *AccountResetWebAuthorizationRequest : github.com/gotd/td/tdp.Object *AccountResetWebAuthorizationRequest : fmt.Stringer
AccountResetWebAuthorizationsRequest represents TL type `account.resetWebAuthorizations#682d2594`. Reset all active web telegram login¹ sessions Links: 1. https://core.telegram.org/widgets/login See https://core.telegram.org/method/account.resetWebAuthorizations for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResetWebAuthorizationsRequest) Zero() bool *AccountResetWebAuthorizationsRequest : github.com/gotd/td/bin.BareDecoder *AccountResetWebAuthorizationsRequest : github.com/gotd/td/bin.BareEncoder *AccountResetWebAuthorizationsRequest : github.com/gotd/td/bin.Decoder *AccountResetWebAuthorizationsRequest : github.com/gotd/td/bin.Encoder *AccountResetWebAuthorizationsRequest : github.com/gotd/td/bin.Object *AccountResetWebAuthorizationsRequest : github.com/gotd/td/tdp.Object *AccountResetWebAuthorizationsRequest : fmt.Stringer
AccountResolveBusinessChatLinkRequest represents TL type `account.resolveBusinessChatLink#5492e5ee`. Resolve a business chat deep link »¹. Links: 1. https://core.telegram.org/api/business#business-chat-links See https://core.telegram.org/method/account.resolveBusinessChatLink for reference. Slug of the link, obtained as specified here »¹. Links: 1) https://core.telegram.org/api/links#business-chat-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountResolveBusinessChatLinkRequest from given interface. GetSlug returns value of Slug field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountResolveBusinessChatLinkRequest) Zero() bool *AccountResolveBusinessChatLinkRequest : github.com/gotd/td/bin.BareDecoder *AccountResolveBusinessChatLinkRequest : github.com/gotd/td/bin.BareEncoder *AccountResolveBusinessChatLinkRequest : github.com/gotd/td/bin.Decoder *AccountResolveBusinessChatLinkRequest : github.com/gotd/td/bin.Encoder *AccountResolveBusinessChatLinkRequest : github.com/gotd/td/bin.Object *AccountResolveBusinessChatLinkRequest : github.com/gotd/td/tdp.Object *AccountResolveBusinessChatLinkRequest : fmt.Stringer
AccountSaveAutoDownloadSettingsRequest represents TL type `account.saveAutoDownloadSettings#76f36233`. Change media autodownload settings See https://core.telegram.org/method/account.saveAutoDownloadSettings for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to save media in the high data usage preset Whether to save media in the low data usage preset Media autodownload settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSaveAutoDownloadSettingsRequest from given interface. GetHigh returns value of High conditional field. GetLow returns value of Low conditional field. GetSettings returns value of Settings field. SetFlags sets flags for non-zero fields. SetHigh sets value of High conditional field. SetLow sets value of Low conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSaveAutoDownloadSettingsRequest) Zero() bool *AccountSaveAutoDownloadSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountSaveAutoDownloadSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountSaveAutoDownloadSettingsRequest : github.com/gotd/td/bin.Decoder *AccountSaveAutoDownloadSettingsRequest : github.com/gotd/td/bin.Encoder *AccountSaveAutoDownloadSettingsRequest : github.com/gotd/td/bin.Object *AccountSaveAutoDownloadSettingsRequest : github.com/gotd/td/tdp.Object *AccountSaveAutoDownloadSettingsRequest : fmt.Stringer func (*Client).AccountSaveAutoDownloadSettings(ctx context.Context, request *AccountSaveAutoDownloadSettingsRequest) (bool, error)
AccountSaveAutoSaveSettingsRequest represents TL type `account.saveAutoSaveSettings#d69b8361`. Modify autosave settings See https://core.telegram.org/method/account.saveAutoSaveSettings for reference. Whether the new settings should affect all channels¹ Links: 1) https://core.telegram.org/api/channel Whether the new settings should affect all groups Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the new settings should affect a specific peer Use SetPeer and GetPeer helpers. The new autosave settings Whether the new settings should affect all private chats Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSaveAutoSaveSettingsRequest from given interface. GetBroadcasts returns value of Broadcasts conditional field. GetChats returns value of Chats conditional field. GetPeer returns value of Peer conditional field and boolean which is true if field was set. GetSettings returns value of Settings field. GetUsers returns value of Users conditional field. SetBroadcasts sets value of Broadcasts conditional field. SetChats sets value of Chats conditional field. SetFlags sets flags for non-zero fields. SetPeer sets value of Peer conditional field. SetUsers sets value of Users conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSaveAutoSaveSettingsRequest) Zero() bool *AccountSaveAutoSaveSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountSaveAutoSaveSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountSaveAutoSaveSettingsRequest : github.com/gotd/td/bin.Decoder *AccountSaveAutoSaveSettingsRequest : github.com/gotd/td/bin.Encoder *AccountSaveAutoSaveSettingsRequest : github.com/gotd/td/bin.Object *AccountSaveAutoSaveSettingsRequest : github.com/gotd/td/tdp.Object *AccountSaveAutoSaveSettingsRequest : fmt.Stringer func (*Client).AccountSaveAutoSaveSettings(ctx context.Context, request *AccountSaveAutoSaveSettingsRequest) (bool, error)
AccountSavedMusicIDs represents TL type `account.savedMusicIds#998d6636`. List of IDs of songs (document¹.ids) currently pinned on our profile, see here »² for more info. Links: 1. https://core.telegram.org/constructor/document 2. https://core.telegram.org/api/profile#music See https://core.telegram.org/constructor/account.savedMusicIds for reference. Full list of document¹.ids Links: 1) https://core.telegram.org/constructor/document AsModified tries to map AccountSavedMusicIDs to AccountSavedMusicIDs. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSavedMusicIDs from given interface. GetIDs returns value of IDs field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSavedMusicIDs) Zero() bool *AccountSavedMusicIDs : AccountSavedMusicIDsClass *AccountSavedMusicIDs : github.com/gotd/td/bin.BareDecoder *AccountSavedMusicIDs : github.com/gotd/td/bin.BareEncoder *AccountSavedMusicIDs : github.com/gotd/td/bin.Decoder *AccountSavedMusicIDs : github.com/gotd/td/bin.Encoder *AccountSavedMusicIDs : github.com/gotd/td/bin.Object *AccountSavedMusicIDs : github.com/gotd/td/tdp.Object *AccountSavedMusicIDs : fmt.Stringer func (*AccountSavedMusicIDs).AsModified() (*AccountSavedMusicIDs, bool) func AccountSavedMusicIDsArray.First() (v AccountSavedMusicIDs, ok bool) func AccountSavedMusicIDsArray.Last() (v AccountSavedMusicIDs, ok bool) func (*AccountSavedMusicIDsArray).Pop() (v AccountSavedMusicIDs, ok bool) func (*AccountSavedMusicIDsArray).PopFirst() (v AccountSavedMusicIDs, ok bool) func AccountSavedMusicIDsClass.AsModified() (*AccountSavedMusicIDs, bool) func AccountSavedMusicIDsClassArray.AppendOnlyModified(to []*AccountSavedMusicIDs) []*AccountSavedMusicIDs func AccountSavedMusicIDsClassArray.AsModified() (to []*AccountSavedMusicIDs) func AccountSavedMusicIDsClassArray.FirstAsModified() (v *AccountSavedMusicIDs, ok bool) func AccountSavedMusicIDsClassArray.LastAsModified() (v *AccountSavedMusicIDs, ok bool) func (*AccountSavedMusicIDsClassArray).PopAsModified() (v *AccountSavedMusicIDs, ok bool) func (*AccountSavedMusicIDsClassArray).PopFirstAsModified() (v *AccountSavedMusicIDs, ok bool) func (*AccountSavedMusicIDsNotModified).AsModified() (*AccountSavedMusicIDs, bool) func AccountSavedMusicIDsClassArray.AppendOnlyModified(to []*AccountSavedMusicIDs) []*AccountSavedMusicIDs
AccountSavedMusicIDsArray is adapter for slice of AccountSavedMusicIDs. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountSavedMusicIDs. Sort sorts slice of AccountSavedMusicIDs. SortStable sorts slice of AccountSavedMusicIDs. func AccountSavedMusicIDsArray.Retain(keep func(x AccountSavedMusicIDs) bool) AccountSavedMusicIDsArray func AccountSavedMusicIDsArray.Sort(less func(a, b AccountSavedMusicIDs) bool) AccountSavedMusicIDsArray func AccountSavedMusicIDsArray.SortStable(less func(a, b AccountSavedMusicIDs) bool) AccountSavedMusicIDsArray func AccountSavedMusicIDsClassArray.AsAccountSavedMusicIDs() (to AccountSavedMusicIDsArray)
AccountSavedMusicIDs boxes the AccountSavedMusicIDsClass providing a helper. SavedMusicIds AccountSavedMusicIDsClass Decode implements bin.Decoder for AccountSavedMusicIDsBox. Encode implements bin.Encode for AccountSavedMusicIDsBox. *AccountSavedMusicIDsBox : github.com/gotd/td/bin.Decoder *AccountSavedMusicIDsBox : github.com/gotd/td/bin.Encoder *AccountSavedMusicIDsBox : github.com/gotd/td/bin.Object
AccountSavedMusicIDsClass represents account.SavedMusicIds generic type. See https://core.telegram.org/type/account.SavedMusicIds for reference. Constructors: - [AccountSavedMusicIDsNotModified] - [AccountSavedMusicIDs] Example: g, err := tg.DecodeAccountSavedMusicIDs(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountSavedMusicIDsNotModified: // account.savedMusicIdsNotModified#4fc81d6e case *tg.AccountSavedMusicIDs: // account.savedMusicIds#998d6636 default: panic(v) } AsModified tries to map AccountSavedMusicIDsClass to AccountSavedMusicIDs. ( AccountSavedMusicIDsClass) Decode(b *bin.Buffer) error ( AccountSavedMusicIDsClass) DecodeBare(b *bin.Buffer) error ( AccountSavedMusicIDsClass) Encode(b *bin.Buffer) error ( AccountSavedMusicIDsClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountSavedMusicIDs *AccountSavedMusicIDsNotModified AccountSavedMusicIDsClass : github.com/gotd/td/bin.BareDecoder AccountSavedMusicIDsClass : github.com/gotd/td/bin.BareEncoder AccountSavedMusicIDsClass : github.com/gotd/td/bin.Decoder AccountSavedMusicIDsClass : github.com/gotd/td/bin.Encoder AccountSavedMusicIDsClass : github.com/gotd/td/bin.Object AccountSavedMusicIDsClass : fmt.Stringer func DecodeAccountSavedMusicIDs(buf *bin.Buffer) (AccountSavedMusicIDsClass, error) func AccountSavedMusicIDsClassArray.First() (v AccountSavedMusicIDsClass, ok bool) func AccountSavedMusicIDsClassArray.Last() (v AccountSavedMusicIDsClass, ok bool) func (*AccountSavedMusicIDsClassArray).Pop() (v AccountSavedMusicIDsClass, ok bool) func (*AccountSavedMusicIDsClassArray).PopFirst() (v AccountSavedMusicIDsClass, ok bool) func (*Client).AccountGetSavedMusicIDs(ctx context.Context, hash int64) (AccountSavedMusicIDsClass, error)
AccountSavedMusicIDsClassArray is adapter for slice of AccountSavedMusicIDsClass. AppendOnlyModified appends only Modified constructors to given slice. AsAccountSavedMusicIDs returns copy with only AccountSavedMusicIDs constructors. AsModified returns copy with only Modified constructors. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of AccountSavedMusicIDsClass. Sort sorts slice of AccountSavedMusicIDsClass. SortStable sorts slice of AccountSavedMusicIDsClass. func AccountSavedMusicIDsClassArray.Retain(keep func(x AccountSavedMusicIDsClass) bool) AccountSavedMusicIDsClassArray func AccountSavedMusicIDsClassArray.Sort(less func(a, b AccountSavedMusicIDsClass) bool) AccountSavedMusicIDsClassArray func AccountSavedMusicIDsClassArray.SortStable(less func(a, b AccountSavedMusicIDsClass) bool) AccountSavedMusicIDsClassArray
AccountSavedMusicIDsNotModified represents TL type `account.savedMusicIdsNotModified#4fc81d6e`. The list of IDs of songs (document¹.ids) currently pinned on our profile hasn't changed. Links: 1. https://core.telegram.org/constructor/document See https://core.telegram.org/constructor/account.savedMusicIdsNotModified for reference. AsModified tries to map AccountSavedMusicIDsNotModified to AccountSavedMusicIDs. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSavedMusicIDsNotModified) Zero() bool *AccountSavedMusicIDsNotModified : AccountSavedMusicIDsClass *AccountSavedMusicIDsNotModified : github.com/gotd/td/bin.BareDecoder *AccountSavedMusicIDsNotModified : github.com/gotd/td/bin.BareEncoder *AccountSavedMusicIDsNotModified : github.com/gotd/td/bin.Decoder *AccountSavedMusicIDsNotModified : github.com/gotd/td/bin.Encoder *AccountSavedMusicIDsNotModified : github.com/gotd/td/bin.Object *AccountSavedMusicIDsNotModified : github.com/gotd/td/tdp.Object *AccountSavedMusicIDsNotModified : fmt.Stringer
AccountSavedRingtone represents TL type `account.savedRingtone#b7263f6d`. The notification sound was already in MP3 format and was saved without any modification See https://core.telegram.org/constructor/account.savedRingtone for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSavedRingtone) Zero() bool *AccountSavedRingtone : AccountSavedRingtoneClass *AccountSavedRingtone : github.com/gotd/td/bin.BareDecoder *AccountSavedRingtone : github.com/gotd/td/bin.BareEncoder *AccountSavedRingtone : github.com/gotd/td/bin.Decoder *AccountSavedRingtone : github.com/gotd/td/bin.Encoder *AccountSavedRingtone : github.com/gotd/td/bin.Object *AccountSavedRingtone : github.com/gotd/td/tdp.Object *AccountSavedRingtone : fmt.Stringer
AccountSavedRingtone boxes the AccountSavedRingtoneClass providing a helper. SavedRingtone AccountSavedRingtoneClass Decode implements bin.Decoder for AccountSavedRingtoneBox. Encode implements bin.Encode for AccountSavedRingtoneBox. *AccountSavedRingtoneBox : github.com/gotd/td/bin.Decoder *AccountSavedRingtoneBox : github.com/gotd/td/bin.Encoder *AccountSavedRingtoneBox : github.com/gotd/td/bin.Object
AccountSavedRingtoneClass represents account.SavedRingtone generic type. See https://core.telegram.org/type/account.SavedRingtone for reference. Constructors: - [AccountSavedRingtone] - [AccountSavedRingtoneConverted] Example: g, err := tg.DecodeAccountSavedRingtone(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountSavedRingtone: // account.savedRingtone#b7263f6d case *tg.AccountSavedRingtoneConverted: // account.savedRingtoneConverted#1f307eb7 default: panic(v) } ( AccountSavedRingtoneClass) Decode(b *bin.Buffer) error ( AccountSavedRingtoneClass) DecodeBare(b *bin.Buffer) error ( AccountSavedRingtoneClass) Encode(b *bin.Buffer) error ( AccountSavedRingtoneClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountSavedRingtone *AccountSavedRingtoneConverted AccountSavedRingtoneClass : github.com/gotd/td/bin.BareDecoder AccountSavedRingtoneClass : github.com/gotd/td/bin.BareEncoder AccountSavedRingtoneClass : github.com/gotd/td/bin.Decoder AccountSavedRingtoneClass : github.com/gotd/td/bin.Encoder AccountSavedRingtoneClass : github.com/gotd/td/bin.Object AccountSavedRingtoneClass : fmt.Stringer func DecodeAccountSavedRingtone(buf *bin.Buffer) (AccountSavedRingtoneClass, error) func AccountSavedRingtoneClassArray.First() (v AccountSavedRingtoneClass, ok bool) func AccountSavedRingtoneClassArray.Last() (v AccountSavedRingtoneClass, ok bool) func (*AccountSavedRingtoneClassArray).Pop() (v AccountSavedRingtoneClass, ok bool) func (*AccountSavedRingtoneClassArray).PopFirst() (v AccountSavedRingtoneClass, ok bool) func (*Client).AccountSaveRingtone(ctx context.Context, request *AccountSaveRingtoneRequest) (AccountSavedRingtoneClass, error)
AccountSavedRingtoneClassArray is adapter for slice of AccountSavedRingtoneClass. AsAccountSavedRingtoneConverted returns copy with only AccountSavedRingtoneConverted constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountSavedRingtoneClass. Sort sorts slice of AccountSavedRingtoneClass. SortStable sorts slice of AccountSavedRingtoneClass. func AccountSavedRingtoneClassArray.Retain(keep func(x AccountSavedRingtoneClass) bool) AccountSavedRingtoneClassArray func AccountSavedRingtoneClassArray.Sort(less func(a, b AccountSavedRingtoneClass) bool) AccountSavedRingtoneClassArray func AccountSavedRingtoneClassArray.SortStable(less func(a, b AccountSavedRingtoneClass) bool) AccountSavedRingtoneClassArray
AccountSavedRingtoneConverted represents TL type `account.savedRingtoneConverted#1f307eb7`. The notification sound was not in MP3 format and was successfully converted and saved, use the returned Document¹ to refer to the notification sound from now on Links: 1. https://core.telegram.org/type/Document See https://core.telegram.org/constructor/account.savedRingtoneConverted for reference. The converted notification sound Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSavedRingtoneConverted from given interface. GetDocument returns value of Document field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSavedRingtoneConverted) Zero() bool *AccountSavedRingtoneConverted : AccountSavedRingtoneClass *AccountSavedRingtoneConverted : github.com/gotd/td/bin.BareDecoder *AccountSavedRingtoneConverted : github.com/gotd/td/bin.BareEncoder *AccountSavedRingtoneConverted : github.com/gotd/td/bin.Decoder *AccountSavedRingtoneConverted : github.com/gotd/td/bin.Encoder *AccountSavedRingtoneConverted : github.com/gotd/td/bin.Object *AccountSavedRingtoneConverted : github.com/gotd/td/tdp.Object *AccountSavedRingtoneConverted : fmt.Stringer func AccountSavedRingtoneConvertedArray.First() (v AccountSavedRingtoneConverted, ok bool) func AccountSavedRingtoneConvertedArray.Last() (v AccountSavedRingtoneConverted, ok bool) func (*AccountSavedRingtoneConvertedArray).Pop() (v AccountSavedRingtoneConverted, ok bool) func (*AccountSavedRingtoneConvertedArray).PopFirst() (v AccountSavedRingtoneConverted, ok bool)
AccountSavedRingtoneConvertedArray is adapter for slice of AccountSavedRingtoneConverted. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountSavedRingtoneConverted. Sort sorts slice of AccountSavedRingtoneConverted. SortStable sorts slice of AccountSavedRingtoneConverted. func AccountSavedRingtoneClassArray.AsAccountSavedRingtoneConverted() (to AccountSavedRingtoneConvertedArray) func AccountSavedRingtoneConvertedArray.Retain(keep func(x AccountSavedRingtoneConverted) bool) AccountSavedRingtoneConvertedArray func AccountSavedRingtoneConvertedArray.Sort(less func(a, b AccountSavedRingtoneConverted) bool) AccountSavedRingtoneConvertedArray func AccountSavedRingtoneConvertedArray.SortStable(less func(a, b AccountSavedRingtoneConverted) bool) AccountSavedRingtoneConvertedArray
AccountSavedRingtones represents TL type `account.savedRingtones#c1e92cc5`. A list of saved notification sounds See https://core.telegram.org/constructor/account.savedRingtones for reference. Hash used for caching, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Saved notification sounds AsModified tries to map AccountSavedRingtones to AccountSavedRingtones. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSavedRingtones from given interface. GetHash returns value of Hash field. GetRingtones returns value of Ringtones field. MapRingtones returns field Ringtones wrapped in DocumentClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSavedRingtones) Zero() bool *AccountSavedRingtones : AccountSavedRingtonesClass *AccountSavedRingtones : github.com/gotd/td/bin.BareDecoder *AccountSavedRingtones : github.com/gotd/td/bin.BareEncoder *AccountSavedRingtones : github.com/gotd/td/bin.Decoder *AccountSavedRingtones : github.com/gotd/td/bin.Encoder *AccountSavedRingtones : github.com/gotd/td/bin.Object *AccountSavedRingtones : github.com/gotd/td/tdp.Object *AccountSavedRingtones : fmt.Stringer func (*AccountSavedRingtones).AsModified() (*AccountSavedRingtones, bool) func AccountSavedRingtonesArray.First() (v AccountSavedRingtones, ok bool) func AccountSavedRingtonesArray.Last() (v AccountSavedRingtones, ok bool) func (*AccountSavedRingtonesArray).Pop() (v AccountSavedRingtones, ok bool) func (*AccountSavedRingtonesArray).PopFirst() (v AccountSavedRingtones, ok bool) func AccountSavedRingtonesClass.AsModified() (*AccountSavedRingtones, bool) func AccountSavedRingtonesClassArray.AppendOnlyModified(to []*AccountSavedRingtones) []*AccountSavedRingtones func AccountSavedRingtonesClassArray.AsModified() (to []*AccountSavedRingtones) func AccountSavedRingtonesClassArray.FirstAsModified() (v *AccountSavedRingtones, ok bool) func AccountSavedRingtonesClassArray.LastAsModified() (v *AccountSavedRingtones, ok bool) func (*AccountSavedRingtonesClassArray).PopAsModified() (v *AccountSavedRingtones, ok bool) func (*AccountSavedRingtonesClassArray).PopFirstAsModified() (v *AccountSavedRingtones, ok bool) func (*AccountSavedRingtonesNotModified).AsModified() (*AccountSavedRingtones, bool) func AccountSavedRingtonesClassArray.AppendOnlyModified(to []*AccountSavedRingtones) []*AccountSavedRingtones
AccountSavedRingtonesArray is adapter for slice of AccountSavedRingtones. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountSavedRingtones. Sort sorts slice of AccountSavedRingtones. SortStable sorts slice of AccountSavedRingtones. func AccountSavedRingtonesArray.Retain(keep func(x AccountSavedRingtones) bool) AccountSavedRingtonesArray func AccountSavedRingtonesArray.Sort(less func(a, b AccountSavedRingtones) bool) AccountSavedRingtonesArray func AccountSavedRingtonesArray.SortStable(less func(a, b AccountSavedRingtones) bool) AccountSavedRingtonesArray func AccountSavedRingtonesClassArray.AsAccountSavedRingtones() (to AccountSavedRingtonesArray)
AccountSavedRingtones boxes the AccountSavedRingtonesClass providing a helper. SavedRingtones AccountSavedRingtonesClass Decode implements bin.Decoder for AccountSavedRingtonesBox. Encode implements bin.Encode for AccountSavedRingtonesBox. *AccountSavedRingtonesBox : github.com/gotd/td/bin.Decoder *AccountSavedRingtonesBox : github.com/gotd/td/bin.Encoder *AccountSavedRingtonesBox : github.com/gotd/td/bin.Object
AccountSavedRingtonesClass represents account.SavedRingtones generic type. See https://core.telegram.org/type/account.SavedRingtones for reference. Constructors: - [AccountSavedRingtonesNotModified] - [AccountSavedRingtones] Example: g, err := tg.DecodeAccountSavedRingtones(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountSavedRingtonesNotModified: // account.savedRingtonesNotModified#fbf6e8b1 case *tg.AccountSavedRingtones: // account.savedRingtones#c1e92cc5 default: panic(v) } AsModified tries to map AccountSavedRingtonesClass to AccountSavedRingtones. ( AccountSavedRingtonesClass) Decode(b *bin.Buffer) error ( AccountSavedRingtonesClass) DecodeBare(b *bin.Buffer) error ( AccountSavedRingtonesClass) Encode(b *bin.Buffer) error ( AccountSavedRingtonesClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountSavedRingtones *AccountSavedRingtonesNotModified AccountSavedRingtonesClass : github.com/gotd/td/bin.BareDecoder AccountSavedRingtonesClass : github.com/gotd/td/bin.BareEncoder AccountSavedRingtonesClass : github.com/gotd/td/bin.Decoder AccountSavedRingtonesClass : github.com/gotd/td/bin.Encoder AccountSavedRingtonesClass : github.com/gotd/td/bin.Object AccountSavedRingtonesClass : fmt.Stringer func DecodeAccountSavedRingtones(buf *bin.Buffer) (AccountSavedRingtonesClass, error) func AccountSavedRingtonesClassArray.First() (v AccountSavedRingtonesClass, ok bool) func AccountSavedRingtonesClassArray.Last() (v AccountSavedRingtonesClass, ok bool) func (*AccountSavedRingtonesClassArray).Pop() (v AccountSavedRingtonesClass, ok bool) func (*AccountSavedRingtonesClassArray).PopFirst() (v AccountSavedRingtonesClass, ok bool) func (*Client).AccountGetSavedRingtones(ctx context.Context, hash int64) (AccountSavedRingtonesClass, error)
AccountSavedRingtonesClassArray is adapter for slice of AccountSavedRingtonesClass. AppendOnlyModified appends only Modified constructors to given slice. AsAccountSavedRingtones returns copy with only AccountSavedRingtones constructors. AsModified returns copy with only Modified constructors. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of AccountSavedRingtonesClass. Sort sorts slice of AccountSavedRingtonesClass. SortStable sorts slice of AccountSavedRingtonesClass. func AccountSavedRingtonesClassArray.Retain(keep func(x AccountSavedRingtonesClass) bool) AccountSavedRingtonesClassArray func AccountSavedRingtonesClassArray.Sort(less func(a, b AccountSavedRingtonesClass) bool) AccountSavedRingtonesClassArray func AccountSavedRingtonesClassArray.SortStable(less func(a, b AccountSavedRingtonesClass) bool) AccountSavedRingtonesClassArray
AccountSavedRingtonesNotModified represents TL type `account.savedRingtonesNotModified#fbf6e8b1`. The notification sound list hasn't changed. See https://core.telegram.org/constructor/account.savedRingtonesNotModified for reference. AsModified tries to map AccountSavedRingtonesNotModified to AccountSavedRingtones. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSavedRingtonesNotModified) Zero() bool *AccountSavedRingtonesNotModified : AccountSavedRingtonesClass *AccountSavedRingtonesNotModified : github.com/gotd/td/bin.BareDecoder *AccountSavedRingtonesNotModified : github.com/gotd/td/bin.BareEncoder *AccountSavedRingtonesNotModified : github.com/gotd/td/bin.Decoder *AccountSavedRingtonesNotModified : github.com/gotd/td/bin.Encoder *AccountSavedRingtonesNotModified : github.com/gotd/td/bin.Object *AccountSavedRingtonesNotModified : github.com/gotd/td/tdp.Object *AccountSavedRingtonesNotModified : fmt.Stringer
AccountSaveMusicRequest represents TL type `account.saveMusic#b26732a9`. Adds or removes a song from the current user's profile see here »¹ for more info on the music tab of the profile page. Links: 1. https://core.telegram.org/api/profile#music See https://core.telegram.org/method/account.saveMusic for reference. If set, the song will be added after the passed song (must be already pinned on the profile). Use SetAfterID and GetAfterID helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The song to add or remove; can be an already added song when reordering songs with after_id. Adding an already added song will never re-add it, only move it to the top of the song list (or after the song passed in after_id). If set, removes the song. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSaveMusicRequest from given interface. GetAfterID returns value of AfterID conditional field and boolean which is true if field was set. GetAfterIDAsNotEmpty returns mapped value of AfterID conditional field and boolean which is true if field was set. GetID returns value of ID field. GetIDAsNotEmpty returns mapped value of ID field. GetUnsave returns value of Unsave conditional field. SetAfterID sets value of AfterID conditional field. SetFlags sets flags for non-zero fields. SetUnsave sets value of Unsave conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSaveMusicRequest) Zero() bool *AccountSaveMusicRequest : github.com/gotd/td/bin.BareDecoder *AccountSaveMusicRequest : github.com/gotd/td/bin.BareEncoder *AccountSaveMusicRequest : github.com/gotd/td/bin.Decoder *AccountSaveMusicRequest : github.com/gotd/td/bin.Encoder *AccountSaveMusicRequest : github.com/gotd/td/bin.Object *AccountSaveMusicRequest : github.com/gotd/td/tdp.Object *AccountSaveMusicRequest : fmt.Stringer func (*Client).AccountSaveMusic(ctx context.Context, request *AccountSaveMusicRequest) (bool, error)
AccountSaveRingtoneRequest represents TL type `account.saveRingtone#3dea5b03`. Save or remove saved notification sound. If the notification sound is already in MP3 format, account.savedRingtone¹ will be returned. Otherwise, it will be automatically converted and a account.savedRingtoneConverted² will be returned, containing a new document³ object that should be used to refer to the ringtone from now on (ie when deleting it using the unsave parameter, or when downloading it). Links: 1. https://core.telegram.org/constructor/account.savedRingtone 2. https://core.telegram.org/constructor/account.savedRingtoneConverted 3. https://core.telegram.org/constructor/document See https://core.telegram.org/method/account.saveRingtone for reference. Notification sound uploaded using account.uploadRingtone¹ Links: 1) https://core.telegram.org/method/account.uploadRingtone Whether to add or delete the notification sound Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSaveRingtoneRequest from given interface. GetID returns value of ID field. GetIDAsNotEmpty returns mapped value of ID field. GetUnsave returns value of Unsave field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSaveRingtoneRequest) Zero() bool *AccountSaveRingtoneRequest : github.com/gotd/td/bin.BareDecoder *AccountSaveRingtoneRequest : github.com/gotd/td/bin.BareEncoder *AccountSaveRingtoneRequest : github.com/gotd/td/bin.Decoder *AccountSaveRingtoneRequest : github.com/gotd/td/bin.Encoder *AccountSaveRingtoneRequest : github.com/gotd/td/bin.Object *AccountSaveRingtoneRequest : github.com/gotd/td/tdp.Object *AccountSaveRingtoneRequest : fmt.Stringer func (*Client).AccountSaveRingtone(ctx context.Context, request *AccountSaveRingtoneRequest) (AccountSavedRingtoneClass, error)
AccountSaveSecureValueRequest represents TL type `account.saveSecureValue#899fe31d`. Securely save Telegram Passport¹ document, for more info see the passport docs »² Links: 1. https://core.telegram.org/passport 2. https://core.telegram.org/passport/encryption#encryption See https://core.telegram.org/method/account.saveSecureValue for reference. Passport secret hash, for more info see the passport docs »¹ Links: 1) https://core.telegram.org/passport/encryption#encryption Secure value, for more info see the passport docs »¹ Links: 1) https://core.telegram.org/passport/encryption#encryption Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSaveSecureValueRequest from given interface. GetSecureSecretID returns value of SecureSecretID field. GetValue returns value of Value field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSaveSecureValueRequest) Zero() bool *AccountSaveSecureValueRequest : github.com/gotd/td/bin.BareDecoder *AccountSaveSecureValueRequest : github.com/gotd/td/bin.BareEncoder *AccountSaveSecureValueRequest : github.com/gotd/td/bin.Decoder *AccountSaveSecureValueRequest : github.com/gotd/td/bin.Encoder *AccountSaveSecureValueRequest : github.com/gotd/td/bin.Object *AccountSaveSecureValueRequest : github.com/gotd/td/tdp.Object *AccountSaveSecureValueRequest : fmt.Stringer func (*Client).AccountSaveSecureValue(ctx context.Context, request *AccountSaveSecureValueRequest) (*SecureValue, error)
AccountSaveThemeRequest represents TL type `account.saveTheme#f257106c`. Save a theme See https://core.telegram.org/method/account.saveTheme for reference. Theme to save Unsave Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSaveThemeRequest from given interface. GetTheme returns value of Theme field. GetUnsave returns value of Unsave field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSaveThemeRequest) Zero() bool *AccountSaveThemeRequest : github.com/gotd/td/bin.BareDecoder *AccountSaveThemeRequest : github.com/gotd/td/bin.BareEncoder *AccountSaveThemeRequest : github.com/gotd/td/bin.Decoder *AccountSaveThemeRequest : github.com/gotd/td/bin.Encoder *AccountSaveThemeRequest : github.com/gotd/td/bin.Object *AccountSaveThemeRequest : github.com/gotd/td/tdp.Object *AccountSaveThemeRequest : fmt.Stringer func (*Client).AccountSaveTheme(ctx context.Context, request *AccountSaveThemeRequest) (bool, error)
AccountSaveWallPaperRequest represents TL type `account.saveWallPaper#6c5a5b37`. Install/uninstall wallpaper¹ Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/method/account.saveWallPaper for reference. Wallpaper settings Uninstall wallpaper? Wallpaper¹ to install or uninstall Links: 1) https://core.telegram.org/api/wallpapers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSaveWallPaperRequest from given interface. GetSettings returns value of Settings field. GetUnsave returns value of Unsave field. GetWallpaper returns value of Wallpaper field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSaveWallPaperRequest) Zero() bool *AccountSaveWallPaperRequest : github.com/gotd/td/bin.BareDecoder *AccountSaveWallPaperRequest : github.com/gotd/td/bin.BareEncoder *AccountSaveWallPaperRequest : github.com/gotd/td/bin.Decoder *AccountSaveWallPaperRequest : github.com/gotd/td/bin.Encoder *AccountSaveWallPaperRequest : github.com/gotd/td/bin.Object *AccountSaveWallPaperRequest : github.com/gotd/td/tdp.Object *AccountSaveWallPaperRequest : fmt.Stringer func (*Client).AccountSaveWallPaper(ctx context.Context, request *AccountSaveWallPaperRequest) (bool, error)
AccountSendChangePhoneCodeRequest represents TL type `account.sendChangePhoneCode#82574ae5`. Verify a new phone number to associate to the current account See https://core.telegram.org/method/account.sendChangePhoneCode for reference. New phone number Phone code settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSendChangePhoneCodeRequest from given interface. GetPhoneNumber returns value of PhoneNumber field. GetSettings returns value of Settings field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSendChangePhoneCodeRequest) Zero() bool *AccountSendChangePhoneCodeRequest : github.com/gotd/td/bin.BareDecoder *AccountSendChangePhoneCodeRequest : github.com/gotd/td/bin.BareEncoder *AccountSendChangePhoneCodeRequest : github.com/gotd/td/bin.Decoder *AccountSendChangePhoneCodeRequest : github.com/gotd/td/bin.Encoder *AccountSendChangePhoneCodeRequest : github.com/gotd/td/bin.Object *AccountSendChangePhoneCodeRequest : github.com/gotd/td/tdp.Object *AccountSendChangePhoneCodeRequest : fmt.Stringer func (*Client).AccountSendChangePhoneCode(ctx context.Context, request *AccountSendChangePhoneCodeRequest) (AuthSentCodeClass, error)
AccountSendConfirmPhoneCodeRequest represents TL type `account.sendConfirmPhoneCode#1b3faa88`. Send confirmation code to cancel account deletion, for more info click here »¹ Links: 1. https://core.telegram.org/api/account-deletion See https://core.telegram.org/method/account.sendConfirmPhoneCode for reference. The hash from the service notification, for more info click here »¹ Links: 1) https://core.telegram.org/api/account-deletion Phone code settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSendConfirmPhoneCodeRequest from given interface. GetHash returns value of Hash field. GetSettings returns value of Settings field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSendConfirmPhoneCodeRequest) Zero() bool *AccountSendConfirmPhoneCodeRequest : github.com/gotd/td/bin.BareDecoder *AccountSendConfirmPhoneCodeRequest : github.com/gotd/td/bin.BareEncoder *AccountSendConfirmPhoneCodeRequest : github.com/gotd/td/bin.Decoder *AccountSendConfirmPhoneCodeRequest : github.com/gotd/td/bin.Encoder *AccountSendConfirmPhoneCodeRequest : github.com/gotd/td/bin.Object *AccountSendConfirmPhoneCodeRequest : github.com/gotd/td/tdp.Object *AccountSendConfirmPhoneCodeRequest : fmt.Stringer func (*Client).AccountSendConfirmPhoneCode(ctx context.Context, request *AccountSendConfirmPhoneCodeRequest) (AuthSentCodeClass, error)
AccountSendVerifyEmailCodeRequest represents TL type `account.sendVerifyEmailCode#98e037bb`. Send an email verification code. See https://core.telegram.org/method/account.sendVerifyEmailCode for reference. The email where to send the code. Verification purpose. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSendVerifyEmailCodeRequest from given interface. GetEmail returns value of Email field. GetPurpose returns value of Purpose field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSendVerifyEmailCodeRequest) Zero() bool *AccountSendVerifyEmailCodeRequest : github.com/gotd/td/bin.BareDecoder *AccountSendVerifyEmailCodeRequest : github.com/gotd/td/bin.BareEncoder *AccountSendVerifyEmailCodeRequest : github.com/gotd/td/bin.Decoder *AccountSendVerifyEmailCodeRequest : github.com/gotd/td/bin.Encoder *AccountSendVerifyEmailCodeRequest : github.com/gotd/td/bin.Object *AccountSendVerifyEmailCodeRequest : github.com/gotd/td/tdp.Object *AccountSendVerifyEmailCodeRequest : fmt.Stringer func (*Client).AccountSendVerifyEmailCode(ctx context.Context, request *AccountSendVerifyEmailCodeRequest) (*AccountSentEmailCode, error)
AccountSendVerifyPhoneCodeRequest represents TL type `account.sendVerifyPhoneCode#a5a356f9`. Send the verification phone code for telegram passport¹. Links: 1. https://core.telegram.org/passport See https://core.telegram.org/method/account.sendVerifyPhoneCode for reference. New phone number Phone code settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSendVerifyPhoneCodeRequest from given interface. GetPhoneNumber returns value of PhoneNumber field. GetSettings returns value of Settings field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSendVerifyPhoneCodeRequest) Zero() bool *AccountSendVerifyPhoneCodeRequest : github.com/gotd/td/bin.BareDecoder *AccountSendVerifyPhoneCodeRequest : github.com/gotd/td/bin.BareEncoder *AccountSendVerifyPhoneCodeRequest : github.com/gotd/td/bin.Decoder *AccountSendVerifyPhoneCodeRequest : github.com/gotd/td/bin.Encoder *AccountSendVerifyPhoneCodeRequest : github.com/gotd/td/bin.Object *AccountSendVerifyPhoneCodeRequest : github.com/gotd/td/tdp.Object *AccountSendVerifyPhoneCodeRequest : fmt.Stringer func (*Client).AccountSendVerifyPhoneCode(ctx context.Context, request *AccountSendVerifyPhoneCodeRequest) (AuthSentCodeClass, error)
AccountSentEmailCode represents TL type `account.sentEmailCode#811f854f`. The sent email code See https://core.telegram.org/constructor/account.sentEmailCode for reference. The email (to which the code was sent) must match this pattern¹ Links: 1) https://core.telegram.org/api/pattern The length of the verification code Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSentEmailCode from given interface. GetEmailPattern returns value of EmailPattern field. GetLength returns value of Length field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSentEmailCode) Zero() bool *AccountSentEmailCode : github.com/gotd/td/bin.BareDecoder *AccountSentEmailCode : github.com/gotd/td/bin.BareEncoder *AccountSentEmailCode : github.com/gotd/td/bin.Decoder *AccountSentEmailCode : github.com/gotd/td/bin.Encoder *AccountSentEmailCode : github.com/gotd/td/bin.Object *AccountSentEmailCode : github.com/gotd/td/tdp.Object *AccountSentEmailCode : fmt.Stringer func (*Client).AccountSendVerifyEmailCode(ctx context.Context, request *AccountSendVerifyEmailCodeRequest) (*AccountSentEmailCode, error)
AccountSetAccountTTLRequest represents TL type `account.setAccountTTL#2442485e`. Set account self-destruction period See https://core.telegram.org/method/account.setAccountTTL for reference. Time to live in days Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSetAccountTTLRequest from given interface. GetTTL returns value of TTL field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSetAccountTTLRequest) Zero() bool *AccountSetAccountTTLRequest : github.com/gotd/td/bin.BareDecoder *AccountSetAccountTTLRequest : github.com/gotd/td/bin.BareEncoder *AccountSetAccountTTLRequest : github.com/gotd/td/bin.Decoder *AccountSetAccountTTLRequest : github.com/gotd/td/bin.Encoder *AccountSetAccountTTLRequest : github.com/gotd/td/bin.Object *AccountSetAccountTTLRequest : github.com/gotd/td/tdp.Object *AccountSetAccountTTLRequest : fmt.Stringer
AccountSetAuthorizationTTLRequest represents TL type `account.setAuthorizationTTL#bf899aa0`. Set time-to-live of current session See https://core.telegram.org/method/account.setAuthorizationTTL for reference. Time-to-live of current session in days Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSetAuthorizationTTLRequest from given interface. GetAuthorizationTTLDays returns value of AuthorizationTTLDays field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSetAuthorizationTTLRequest) Zero() bool *AccountSetAuthorizationTTLRequest : github.com/gotd/td/bin.BareDecoder *AccountSetAuthorizationTTLRequest : github.com/gotd/td/bin.BareEncoder *AccountSetAuthorizationTTLRequest : github.com/gotd/td/bin.Decoder *AccountSetAuthorizationTTLRequest : github.com/gotd/td/bin.Encoder *AccountSetAuthorizationTTLRequest : github.com/gotd/td/bin.Object *AccountSetAuthorizationTTLRequest : github.com/gotd/td/tdp.Object *AccountSetAuthorizationTTLRequest : fmt.Stringer
AccountSetContactSignUpNotificationRequest represents TL type `account.setContactSignUpNotification#cff43f61`. Toggle contact sign up notifications See https://core.telegram.org/method/account.setContactSignUpNotification for reference. Whether to disable contact sign up notifications Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSetContactSignUpNotificationRequest from given interface. GetSilent returns value of Silent field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSetContactSignUpNotificationRequest) Zero() bool *AccountSetContactSignUpNotificationRequest : github.com/gotd/td/bin.BareDecoder *AccountSetContactSignUpNotificationRequest : github.com/gotd/td/bin.BareEncoder *AccountSetContactSignUpNotificationRequest : github.com/gotd/td/bin.Decoder *AccountSetContactSignUpNotificationRequest : github.com/gotd/td/bin.Encoder *AccountSetContactSignUpNotificationRequest : github.com/gotd/td/bin.Object *AccountSetContactSignUpNotificationRequest : github.com/gotd/td/tdp.Object *AccountSetContactSignUpNotificationRequest : fmt.Stringer
AccountSetContentSettingsRequest represents TL type `account.setContentSettings#b574b16b`. Set sensitive content settings (for viewing or hiding NSFW content) See https://core.telegram.org/method/account.setContentSettings for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Enable NSFW content Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSetContentSettingsRequest from given interface. GetSensitiveEnabled returns value of SensitiveEnabled conditional field. SetFlags sets flags for non-zero fields. SetSensitiveEnabled sets value of SensitiveEnabled conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSetContentSettingsRequest) Zero() bool *AccountSetContentSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountSetContentSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountSetContentSettingsRequest : github.com/gotd/td/bin.Decoder *AccountSetContentSettingsRequest : github.com/gotd/td/bin.Encoder *AccountSetContentSettingsRequest : github.com/gotd/td/bin.Object *AccountSetContentSettingsRequest : github.com/gotd/td/tdp.Object *AccountSetContentSettingsRequest : fmt.Stringer func (*Client).AccountSetContentSettings(ctx context.Context, request *AccountSetContentSettingsRequest) (bool, error)
AccountSetGlobalPrivacySettingsRequest represents TL type `account.setGlobalPrivacySettings#1edaaac2`. Set global privacy settings See https://core.telegram.org/method/account.setGlobalPrivacySettings for reference. Global privacy settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSetGlobalPrivacySettingsRequest from given interface. GetSettings returns value of Settings field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSetGlobalPrivacySettingsRequest) Zero() bool *AccountSetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountSetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountSetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.Decoder *AccountSetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.Encoder *AccountSetGlobalPrivacySettingsRequest : github.com/gotd/td/bin.Object *AccountSetGlobalPrivacySettingsRequest : github.com/gotd/td/tdp.Object *AccountSetGlobalPrivacySettingsRequest : fmt.Stringer
AccountSetMainProfileTabRequest represents TL type `account.setMainProfileTab#5dee78b0`. Changes the main profile tab of the current user, see here »¹ for more info. Links: 1. https://core.telegram.org/api/profile#tabs See https://core.telegram.org/method/account.setMainProfileTab for reference. The tab to set as main tab. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSetMainProfileTabRequest from given interface. GetTab returns value of Tab field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSetMainProfileTabRequest) Zero() bool *AccountSetMainProfileTabRequest : github.com/gotd/td/bin.BareDecoder *AccountSetMainProfileTabRequest : github.com/gotd/td/bin.BareEncoder *AccountSetMainProfileTabRequest : github.com/gotd/td/bin.Decoder *AccountSetMainProfileTabRequest : github.com/gotd/td/bin.Encoder *AccountSetMainProfileTabRequest : github.com/gotd/td/bin.Object *AccountSetMainProfileTabRequest : github.com/gotd/td/tdp.Object *AccountSetMainProfileTabRequest : fmt.Stringer
AccountSetPrivacyRequest represents TL type `account.setPrivacy#c9f81ce8`. Change privacy settings of current account See https://core.telegram.org/method/account.setPrivacy for reference. New privacy rule Peers to which the privacy rule will apply. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSetPrivacyRequest from given interface. GetKey returns value of Key field. GetRules returns value of Rules field. MapRules returns field Rules wrapped in InputPrivacyRuleClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSetPrivacyRequest) Zero() bool *AccountSetPrivacyRequest : github.com/gotd/td/bin.BareDecoder *AccountSetPrivacyRequest : github.com/gotd/td/bin.BareEncoder *AccountSetPrivacyRequest : github.com/gotd/td/bin.Decoder *AccountSetPrivacyRequest : github.com/gotd/td/bin.Encoder *AccountSetPrivacyRequest : github.com/gotd/td/bin.Object *AccountSetPrivacyRequest : github.com/gotd/td/tdp.Object *AccountSetPrivacyRequest : fmt.Stringer func (*Client).AccountSetPrivacy(ctx context.Context, request *AccountSetPrivacyRequest) (*AccountPrivacyRules, error)
AccountSetReactionsNotifySettingsRequest represents TL type `account.setReactionsNotifySettings#316ce548`. Change the reaction notification settings »¹. Links: 1. https://core.telegram.org/api/reactions#notifications-about-reactions See https://core.telegram.org/method/account.setReactionsNotifySettings for reference. New reaction notification settings. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountSetReactionsNotifySettingsRequest from given interface. GetSettings returns value of Settings field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountSetReactionsNotifySettingsRequest) Zero() bool *AccountSetReactionsNotifySettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountSetReactionsNotifySettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountSetReactionsNotifySettingsRequest : github.com/gotd/td/bin.Decoder *AccountSetReactionsNotifySettingsRequest : github.com/gotd/td/bin.Encoder *AccountSetReactionsNotifySettingsRequest : github.com/gotd/td/bin.Object *AccountSetReactionsNotifySettingsRequest : github.com/gotd/td/tdp.Object *AccountSetReactionsNotifySettingsRequest : fmt.Stringer
AccountTakeout represents TL type `account.takeout#4dba4501`. Takeout info See https://core.telegram.org/constructor/account.takeout for reference. Takeout ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountTakeout from given interface. GetID returns value of ID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountTakeout) Zero() bool *AccountTakeout : github.com/gotd/td/bin.BareDecoder *AccountTakeout : github.com/gotd/td/bin.BareEncoder *AccountTakeout : github.com/gotd/td/bin.Decoder *AccountTakeout : github.com/gotd/td/bin.Encoder *AccountTakeout : github.com/gotd/td/bin.Object *AccountTakeout : github.com/gotd/td/tdp.Object *AccountTakeout : fmt.Stringer func (*Client).AccountInitTakeoutSession(ctx context.Context, request *AccountInitTakeoutSessionRequest) (*AccountTakeout, error)
AccountThemes represents TL type `account.themes#9a3d8c6d`. Installed themes See https://core.telegram.org/constructor/account.themes for reference. Hash used for caching, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Themes AsModified tries to map AccountThemes to AccountThemes. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountThemes from given interface. GetHash returns value of Hash field. GetThemes returns value of Themes field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountThemes) Zero() bool *AccountThemes : AccountThemesClass *AccountThemes : github.com/gotd/td/bin.BareDecoder *AccountThemes : github.com/gotd/td/bin.BareEncoder *AccountThemes : github.com/gotd/td/bin.Decoder *AccountThemes : github.com/gotd/td/bin.Encoder *AccountThemes : github.com/gotd/td/bin.Object *AccountThemes : github.com/gotd/td/tdp.Object *AccountThemes : fmt.Stringer func (*AccountThemes).AsModified() (*AccountThemes, bool) func AccountThemesArray.First() (v AccountThemes, ok bool) func AccountThemesArray.Last() (v AccountThemes, ok bool) func (*AccountThemesArray).Pop() (v AccountThemes, ok bool) func (*AccountThemesArray).PopFirst() (v AccountThemes, ok bool) func AccountThemesClass.AsModified() (*AccountThemes, bool) func AccountThemesClassArray.AppendOnlyModified(to []*AccountThemes) []*AccountThemes func AccountThemesClassArray.AsModified() (to []*AccountThemes) func AccountThemesClassArray.FirstAsModified() (v *AccountThemes, ok bool) func AccountThemesClassArray.LastAsModified() (v *AccountThemes, ok bool) func (*AccountThemesClassArray).PopAsModified() (v *AccountThemes, ok bool) func (*AccountThemesClassArray).PopFirstAsModified() (v *AccountThemes, ok bool) func (*AccountThemesNotModified).AsModified() (*AccountThemes, bool) func AccountThemesClassArray.AppendOnlyModified(to []*AccountThemes) []*AccountThemes
AccountThemesArray is adapter for slice of AccountThemes. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountThemes. Sort sorts slice of AccountThemes. SortStable sorts slice of AccountThemes. func AccountThemesArray.Retain(keep func(x AccountThemes) bool) AccountThemesArray func AccountThemesArray.Sort(less func(a, b AccountThemes) bool) AccountThemesArray func AccountThemesArray.SortStable(less func(a, b AccountThemes) bool) AccountThemesArray func AccountThemesClassArray.AsAccountThemes() (to AccountThemesArray)
AccountThemes boxes the AccountThemesClass providing a helper. Themes AccountThemesClass Decode implements bin.Decoder for AccountThemesBox. Encode implements bin.Encode for AccountThemesBox. *AccountThemesBox : github.com/gotd/td/bin.Decoder *AccountThemesBox : github.com/gotd/td/bin.Encoder *AccountThemesBox : github.com/gotd/td/bin.Object
AccountThemesClass represents account.Themes generic type. See https://core.telegram.org/type/account.Themes for reference. Constructors: - [AccountThemesNotModified] - [AccountThemes] Example: g, err := tg.DecodeAccountThemes(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountThemesNotModified: // account.themesNotModified#f41eb622 case *tg.AccountThemes: // account.themes#9a3d8c6d default: panic(v) } AsModified tries to map AccountThemesClass to AccountThemes. ( AccountThemesClass) Decode(b *bin.Buffer) error ( AccountThemesClass) DecodeBare(b *bin.Buffer) error ( AccountThemesClass) Encode(b *bin.Buffer) error ( AccountThemesClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountThemes *AccountThemesNotModified AccountThemesClass : github.com/gotd/td/bin.BareDecoder AccountThemesClass : github.com/gotd/td/bin.BareEncoder AccountThemesClass : github.com/gotd/td/bin.Decoder AccountThemesClass : github.com/gotd/td/bin.Encoder AccountThemesClass : github.com/gotd/td/bin.Object AccountThemesClass : fmt.Stringer func DecodeAccountThemes(buf *bin.Buffer) (AccountThemesClass, error) func AccountThemesClassArray.First() (v AccountThemesClass, ok bool) func AccountThemesClassArray.Last() (v AccountThemesClass, ok bool) func (*AccountThemesClassArray).Pop() (v AccountThemesClass, ok bool) func (*AccountThemesClassArray).PopFirst() (v AccountThemesClass, ok bool) func (*Client).AccountGetChatThemes(ctx context.Context, hash int64) (AccountThemesClass, error) func (*Client).AccountGetThemes(ctx context.Context, request *AccountGetThemesRequest) (AccountThemesClass, error)
AccountThemesClassArray is adapter for slice of AccountThemesClass. AppendOnlyModified appends only Modified constructors to given slice. AsAccountThemes returns copy with only AccountThemes constructors. AsModified returns copy with only Modified constructors. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of AccountThemesClass. Sort sorts slice of AccountThemesClass. SortStable sorts slice of AccountThemesClass. func AccountThemesClassArray.Retain(keep func(x AccountThemesClass) bool) AccountThemesClassArray func AccountThemesClassArray.Sort(less func(a, b AccountThemesClass) bool) AccountThemesClassArray func AccountThemesClassArray.SortStable(less func(a, b AccountThemesClass) bool) AccountThemesClassArray
AccountThemesNotModified represents TL type `account.themesNotModified#f41eb622`. No new themes were installed See https://core.telegram.org/constructor/account.themesNotModified for reference. AsModified tries to map AccountThemesNotModified to AccountThemes. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountThemesNotModified) Zero() bool *AccountThemesNotModified : AccountThemesClass *AccountThemesNotModified : github.com/gotd/td/bin.BareDecoder *AccountThemesNotModified : github.com/gotd/td/bin.BareEncoder *AccountThemesNotModified : github.com/gotd/td/bin.Decoder *AccountThemesNotModified : github.com/gotd/td/bin.Encoder *AccountThemesNotModified : github.com/gotd/td/bin.Object *AccountThemesNotModified : github.com/gotd/td/tdp.Object *AccountThemesNotModified : fmt.Stringer
AccountTmpPassword represents TL type `account.tmpPassword#db64fd34`. Temporary payment password See https://core.telegram.org/constructor/account.tmpPassword for reference. Temporary password Validity period Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountTmpPassword from given interface. GetTmpPassword returns value of TmpPassword field. GetValidUntil returns value of ValidUntil field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountTmpPassword) Zero() bool *AccountTmpPassword : github.com/gotd/td/bin.BareDecoder *AccountTmpPassword : github.com/gotd/td/bin.BareEncoder *AccountTmpPassword : github.com/gotd/td/bin.Decoder *AccountTmpPassword : github.com/gotd/td/bin.Encoder *AccountTmpPassword : github.com/gotd/td/bin.Object *AccountTmpPassword : github.com/gotd/td/tdp.Object *AccountTmpPassword : fmt.Stringer func (*Client).AccountGetTmpPassword(ctx context.Context, request *AccountGetTmpPasswordRequest) (*AccountTmpPassword, error)
AccountToggleConnectedBotPausedRequest represents TL type `account.toggleConnectedBotPaused#646e1097`. Pause or unpause a specific chat, temporarily disconnecting it from all business bots »¹. Links: 1. https://core.telegram.org/api/bots/connected-business-bots See https://core.telegram.org/method/account.toggleConnectedBotPaused for reference. Whether to pause or unpause the chat The chat to pause Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountToggleConnectedBotPausedRequest from given interface. GetPaused returns value of Paused field. GetPeer returns value of Peer field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountToggleConnectedBotPausedRequest) Zero() bool *AccountToggleConnectedBotPausedRequest : github.com/gotd/td/bin.BareDecoder *AccountToggleConnectedBotPausedRequest : github.com/gotd/td/bin.BareEncoder *AccountToggleConnectedBotPausedRequest : github.com/gotd/td/bin.Decoder *AccountToggleConnectedBotPausedRequest : github.com/gotd/td/bin.Encoder *AccountToggleConnectedBotPausedRequest : github.com/gotd/td/bin.Object *AccountToggleConnectedBotPausedRequest : github.com/gotd/td/tdp.Object *AccountToggleConnectedBotPausedRequest : fmt.Stringer func (*Client).AccountToggleConnectedBotPaused(ctx context.Context, request *AccountToggleConnectedBotPausedRequest) (bool, error)
AccountToggleNoPaidMessagesExceptionRequest represents TL type `account.toggleNoPaidMessagesException#fe2eda76`. Allow a user to send us messages without paying if paid messages »¹ are enabled. Links: 1. https://core.telegram.org/api/paid-messages See https://core.telegram.org/method/account.toggleNoPaidMessagesException for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, applies the setting within the monoforum aka direct messages »¹ (pass the ID of the monoforum, not the ID of the associated channel). Links: 1) https://core.telegram.org/api/monoforum Use SetParentPeer and GetParentPeer helpers. If set and require_payment is not set, refunds the amounts the user has already paid us to send us messages (directly or via a monoforum). If set, requires the user to pay in order to send us messages. Can only be set by monoforums, not users, i.e. parent_peer must be set if this flag is set; users must instead use the inputPrivacyKeyNoPaidMessages¹ privacy setting to remove a previously added exemption. If not set, allows the user to send us messages without paying (can be unset by both monoforums and users). Links: 1) https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages The user to exempt or unexempt. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountToggleNoPaidMessagesExceptionRequest from given interface. GetParentPeer returns value of ParentPeer conditional field and boolean which is true if field was set. GetRefundCharged returns value of RefundCharged conditional field. GetRequirePayment returns value of RequirePayment conditional field. GetUserID returns value of UserID field. SetFlags sets flags for non-zero fields. SetParentPeer sets value of ParentPeer conditional field. SetRefundCharged sets value of RefundCharged conditional field. SetRequirePayment sets value of RequirePayment conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountToggleNoPaidMessagesExceptionRequest) Zero() bool *AccountToggleNoPaidMessagesExceptionRequest : github.com/gotd/td/bin.BareDecoder *AccountToggleNoPaidMessagesExceptionRequest : github.com/gotd/td/bin.BareEncoder *AccountToggleNoPaidMessagesExceptionRequest : github.com/gotd/td/bin.Decoder *AccountToggleNoPaidMessagesExceptionRequest : github.com/gotd/td/bin.Encoder *AccountToggleNoPaidMessagesExceptionRequest : github.com/gotd/td/bin.Object *AccountToggleNoPaidMessagesExceptionRequest : github.com/gotd/td/tdp.Object *AccountToggleNoPaidMessagesExceptionRequest : fmt.Stringer func (*Client).AccountToggleNoPaidMessagesException(ctx context.Context, request *AccountToggleNoPaidMessagesExceptionRequest) (bool, error)
AccountToggleSponsoredMessagesRequest represents TL type `account.toggleSponsoredMessages#b9d9a38d`. Disable or re-enable Telegram ads for the current Premium¹ account. Useful for business owners that may want to launch and view their own Telegram ads via the Telegram ad platform »¹. Links: 1. https://core.telegram.org/api/premium 2. https://ads.telegram.org See https://core.telegram.org/method/account.toggleSponsoredMessages for reference. Enable or disable ads. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountToggleSponsoredMessagesRequest from given interface. GetEnabled returns value of Enabled field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountToggleSponsoredMessagesRequest) Zero() bool *AccountToggleSponsoredMessagesRequest : github.com/gotd/td/bin.BareDecoder *AccountToggleSponsoredMessagesRequest : github.com/gotd/td/bin.BareEncoder *AccountToggleSponsoredMessagesRequest : github.com/gotd/td/bin.Decoder *AccountToggleSponsoredMessagesRequest : github.com/gotd/td/bin.Encoder *AccountToggleSponsoredMessagesRequest : github.com/gotd/td/bin.Object *AccountToggleSponsoredMessagesRequest : github.com/gotd/td/tdp.Object *AccountToggleSponsoredMessagesRequest : fmt.Stringer
AccountToggleUsernameRequest represents TL type `account.toggleUsername#58d6b376`. Activate or deactivate a purchased fragment.com¹ username associated to the currently logged-in user. Links: 1. https://fragment.com See https://core.telegram.org/method/account.toggleUsername for reference. Whether to activate or deactivate it Username Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountToggleUsernameRequest from given interface. GetActive returns value of Active field. GetUsername returns value of Username field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountToggleUsernameRequest) Zero() bool *AccountToggleUsernameRequest : github.com/gotd/td/bin.BareDecoder *AccountToggleUsernameRequest : github.com/gotd/td/bin.BareEncoder *AccountToggleUsernameRequest : github.com/gotd/td/bin.Decoder *AccountToggleUsernameRequest : github.com/gotd/td/bin.Encoder *AccountToggleUsernameRequest : github.com/gotd/td/bin.Object *AccountToggleUsernameRequest : github.com/gotd/td/tdp.Object *AccountToggleUsernameRequest : fmt.Stringer func (*Client).AccountToggleUsername(ctx context.Context, request *AccountToggleUsernameRequest) (bool, error)
AccountToggleWebBrowserSettingsExceptionRequest represents TL type `account.toggleWebBrowserSettingsException#60ed4229`. See https://core.telegram.org/method/account.toggleWebBrowserSettingsException for reference. Delete field of AccountToggleWebBrowserSettingsExceptionRequest. Flags field of AccountToggleWebBrowserSettingsExceptionRequest. OpenExternalBrowser field of AccountToggleWebBrowserSettingsExceptionRequest. Use SetOpenExternalBrowser and GetOpenExternalBrowser helpers. URL field of AccountToggleWebBrowserSettingsExceptionRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountToggleWebBrowserSettingsExceptionRequest from given interface. GetDelete returns value of Delete conditional field. GetOpenExternalBrowser returns value of OpenExternalBrowser conditional field and boolean which is true if field was set. GetURL returns value of URL field. SetDelete sets value of Delete conditional field. SetFlags sets flags for non-zero fields. SetOpenExternalBrowser sets value of OpenExternalBrowser conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountToggleWebBrowserSettingsExceptionRequest) Zero() bool *AccountToggleWebBrowserSettingsExceptionRequest : github.com/gotd/td/bin.BareDecoder *AccountToggleWebBrowserSettingsExceptionRequest : github.com/gotd/td/bin.BareEncoder *AccountToggleWebBrowserSettingsExceptionRequest : github.com/gotd/td/bin.Decoder *AccountToggleWebBrowserSettingsExceptionRequest : github.com/gotd/td/bin.Encoder *AccountToggleWebBrowserSettingsExceptionRequest : github.com/gotd/td/bin.Object *AccountToggleWebBrowserSettingsExceptionRequest : github.com/gotd/td/tdp.Object *AccountToggleWebBrowserSettingsExceptionRequest : fmt.Stringer func (*Client).AccountToggleWebBrowserSettingsException(ctx context.Context, request *AccountToggleWebBrowserSettingsExceptionRequest) (UpdatesClass, error)
AccountUnregisterDeviceRequest represents TL type `account.unregisterDevice#6a0d3206`. Deletes a device by its token, stops sending PUSH-notifications to it. See https://core.telegram.org/method/account.unregisterDevice for reference. List of user identifiers of other users currently using the client Device token, see PUSH updates¹ for the possible values. Links: 1) https://core.telegram.org/api/push-updates#subscribing-to-notifications Device token type, see PUSH updates¹ for the possible values. Links: 1) https://core.telegram.org/api/push-updates#subscribing-to-notifications Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUnregisterDeviceRequest from given interface. GetOtherUIDs returns value of OtherUIDs field. GetToken returns value of Token field. GetTokenType returns value of TokenType field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUnregisterDeviceRequest) Zero() bool *AccountUnregisterDeviceRequest : github.com/gotd/td/bin.BareDecoder *AccountUnregisterDeviceRequest : github.com/gotd/td/bin.BareEncoder *AccountUnregisterDeviceRequest : github.com/gotd/td/bin.Decoder *AccountUnregisterDeviceRequest : github.com/gotd/td/bin.Encoder *AccountUnregisterDeviceRequest : github.com/gotd/td/bin.Object *AccountUnregisterDeviceRequest : github.com/gotd/td/tdp.Object *AccountUnregisterDeviceRequest : fmt.Stringer func (*Client).AccountUnregisterDevice(ctx context.Context, request *AccountUnregisterDeviceRequest) (bool, error)
AccountUpdateBirthdayRequest represents TL type `account.updateBirthday#cc6e0c11`. Update our birthday, see here »¹ for more info. Links: 1. https://core.telegram.org/api/profile#birthday See https://core.telegram.org/method/account.updateBirthday for reference. Birthday. Use SetBirthday and GetBirthday helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateBirthdayRequest from given interface. GetBirthday returns value of Birthday conditional field and boolean which is true if field was set. SetBirthday sets value of Birthday conditional field. SetFlags sets flags for non-zero fields. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateBirthdayRequest) Zero() bool *AccountUpdateBirthdayRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateBirthdayRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateBirthdayRequest : github.com/gotd/td/bin.Decoder *AccountUpdateBirthdayRequest : github.com/gotd/td/bin.Encoder *AccountUpdateBirthdayRequest : github.com/gotd/td/bin.Object *AccountUpdateBirthdayRequest : github.com/gotd/td/tdp.Object *AccountUpdateBirthdayRequest : fmt.Stringer func (*Client).AccountUpdateBirthday(ctx context.Context, request *AccountUpdateBirthdayRequest) (bool, error)
AccountUpdateBusinessAwayMessageRequest represents TL type `account.updateBusinessAwayMessage#a26a7fa5`. Set a list of Telegram Business away messages¹. Links: 1. https://core.telegram.org/api/business#away-messages See https://core.telegram.org/method/account.updateBusinessAwayMessage for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Away message configuration and contents. Use SetMessage and GetMessage helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateBusinessAwayMessageRequest from given interface. GetMessage returns value of Message conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetMessage sets value of Message conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateBusinessAwayMessageRequest) Zero() bool *AccountUpdateBusinessAwayMessageRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateBusinessAwayMessageRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateBusinessAwayMessageRequest : github.com/gotd/td/bin.Decoder *AccountUpdateBusinessAwayMessageRequest : github.com/gotd/td/bin.Encoder *AccountUpdateBusinessAwayMessageRequest : github.com/gotd/td/bin.Object *AccountUpdateBusinessAwayMessageRequest : github.com/gotd/td/tdp.Object *AccountUpdateBusinessAwayMessageRequest : fmt.Stringer func (*Client).AccountUpdateBusinessAwayMessage(ctx context.Context, request *AccountUpdateBusinessAwayMessageRequest) (bool, error)
AccountUpdateBusinessGreetingMessageRequest represents TL type `account.updateBusinessGreetingMessage#66cdafc4`. Set a list of Telegram Business greeting messages¹. Links: 1. https://core.telegram.org/api/business#greeting-messages See https://core.telegram.org/method/account.updateBusinessGreetingMessage for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Greeting message configuration and contents. Use SetMessage and GetMessage helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateBusinessGreetingMessageRequest from given interface. GetMessage returns value of Message conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetMessage sets value of Message conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateBusinessGreetingMessageRequest) Zero() bool *AccountUpdateBusinessGreetingMessageRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateBusinessGreetingMessageRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateBusinessGreetingMessageRequest : github.com/gotd/td/bin.Decoder *AccountUpdateBusinessGreetingMessageRequest : github.com/gotd/td/bin.Encoder *AccountUpdateBusinessGreetingMessageRequest : github.com/gotd/td/bin.Object *AccountUpdateBusinessGreetingMessageRequest : github.com/gotd/td/tdp.Object *AccountUpdateBusinessGreetingMessageRequest : fmt.Stringer func (*Client).AccountUpdateBusinessGreetingMessage(ctx context.Context, request *AccountUpdateBusinessGreetingMessageRequest) (bool, error)
AccountUpdateBusinessIntroRequest represents TL type `account.updateBusinessIntro#a614d034`. Set or remove the Telegram Business introduction »¹. Links: 1. https://core.telegram.org/api/business#business-introduction See https://core.telegram.org/method/account.updateBusinessIntro for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Telegram Business introduction, to remove it call the method without setting this flag. Use SetIntro and GetIntro helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateBusinessIntroRequest from given interface. GetIntro returns value of Intro conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetIntro sets value of Intro conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateBusinessIntroRequest) Zero() bool *AccountUpdateBusinessIntroRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateBusinessIntroRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateBusinessIntroRequest : github.com/gotd/td/bin.Decoder *AccountUpdateBusinessIntroRequest : github.com/gotd/td/bin.Encoder *AccountUpdateBusinessIntroRequest : github.com/gotd/td/bin.Object *AccountUpdateBusinessIntroRequest : github.com/gotd/td/tdp.Object *AccountUpdateBusinessIntroRequest : fmt.Stringer func (*Client).AccountUpdateBusinessIntro(ctx context.Context, request *AccountUpdateBusinessIntroRequest) (bool, error)
AccountUpdateBusinessLocationRequest represents TL type `account.updateBusinessLocation#9e6b131a`. Businesses »¹ may advertise their location using this method, see here »² for more info. To remove business location information invoke the method without setting any of the parameters. Links: 1. https://core.telegram.org/api/business#location 2. https://core.telegram.org/api/business#location See https://core.telegram.org/method/account.updateBusinessLocation for reference. Mandatory when setting/updating the location, contains a textual description of the address (max 96 UTF-8 chars). Use SetAddress and GetAddress helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Optional, contains a set of geographical coordinates. Use SetGeoPoint and GetGeoPoint helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateBusinessLocationRequest from given interface. GetAddress returns value of Address conditional field and boolean which is true if field was set. GetGeoPoint returns value of GeoPoint conditional field and boolean which is true if field was set. GetGeoPointAsNotEmpty returns mapped value of GeoPoint conditional field and boolean which is true if field was set. SetAddress sets value of Address conditional field. SetFlags sets flags for non-zero fields. SetGeoPoint sets value of GeoPoint conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateBusinessLocationRequest) Zero() bool *AccountUpdateBusinessLocationRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateBusinessLocationRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateBusinessLocationRequest : github.com/gotd/td/bin.Decoder *AccountUpdateBusinessLocationRequest : github.com/gotd/td/bin.Encoder *AccountUpdateBusinessLocationRequest : github.com/gotd/td/bin.Object *AccountUpdateBusinessLocationRequest : github.com/gotd/td/tdp.Object *AccountUpdateBusinessLocationRequest : fmt.Stringer func (*Client).AccountUpdateBusinessLocation(ctx context.Context, request *AccountUpdateBusinessLocationRequest) (bool, error)
AccountUpdateBusinessWorkHoursRequest represents TL type `account.updateBusinessWorkHours#4b00e066`. Specify a set of Telegram Business opening hours¹. This info will be contained in userFull².business_work_hours. To remove all opening hours, invoke the method without setting the business_work_hours field. Note that the opening hours specified by the user must be appropriately validated and transformed before invoking the method, as specified here »¹. Links: 1. https://core.telegram.org/api/business#opening-hours 2. https://core.telegram.org/constructor/userFull 3. https://core.telegram.org/api/business#opening-hours See https://core.telegram.org/method/account.updateBusinessWorkHours for reference. Opening hours (optional, if not set removes all opening hours). Use SetBusinessWorkHours and GetBusinessWorkHours helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateBusinessWorkHoursRequest from given interface. GetBusinessWorkHours returns value of BusinessWorkHours conditional field and boolean which is true if field was set. SetBusinessWorkHours sets value of BusinessWorkHours conditional field. SetFlags sets flags for non-zero fields. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateBusinessWorkHoursRequest) Zero() bool *AccountUpdateBusinessWorkHoursRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateBusinessWorkHoursRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateBusinessWorkHoursRequest : github.com/gotd/td/bin.Decoder *AccountUpdateBusinessWorkHoursRequest : github.com/gotd/td/bin.Encoder *AccountUpdateBusinessWorkHoursRequest : github.com/gotd/td/bin.Object *AccountUpdateBusinessWorkHoursRequest : github.com/gotd/td/tdp.Object *AccountUpdateBusinessWorkHoursRequest : fmt.Stringer func (*Client).AccountUpdateBusinessWorkHours(ctx context.Context, request *AccountUpdateBusinessWorkHoursRequest) (bool, error)
AccountUpdateColorRequest represents TL type `account.updateColor#684d214e`. Update the accent color and background custom emoji »¹ of the current account. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/method/account.updateColor for reference. ID of the accent color palette »¹ to use (not RGB24, see here »² for more info). Links: 1) https://core.telegram.org/api/colors 2) https://core.telegram.org/api/colors Use SetColor and GetColor helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateColorRequest from given interface. GetColor returns value of Color conditional field and boolean which is true if field was set. GetForProfile returns value of ForProfile conditional field. SetColor sets value of Color conditional field. SetFlags sets flags for non-zero fields. SetForProfile sets value of ForProfile conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateColorRequest) Zero() bool *AccountUpdateColorRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateColorRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateColorRequest : github.com/gotd/td/bin.Decoder *AccountUpdateColorRequest : github.com/gotd/td/bin.Encoder *AccountUpdateColorRequest : github.com/gotd/td/bin.Object *AccountUpdateColorRequest : github.com/gotd/td/tdp.Object *AccountUpdateColorRequest : fmt.Stringer func (*Client).AccountUpdateColor(ctx context.Context, request *AccountUpdateColorRequest) (bool, error)
AccountUpdateConnectedBotRequest represents TL type `account.updateConnectedBot#66a08c7e`. Connect a business bot »¹ to the current account, or to change the current connection settings. Links: 1. https://core.telegram.org/api/bots/connected-business-bots See https://core.telegram.org/method/account.updateConnectedBot for reference. The bot to connect or disconnect Whether to fully disconnect the bot from the current account. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Configuration for the business connection Business bot rights. Use SetRights and GetRights helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateConnectedBotRequest from given interface. GetBot returns value of Bot field. GetDeleted returns value of Deleted conditional field. GetRecipients returns value of Recipients field. GetRights returns value of Rights conditional field and boolean which is true if field was set. SetDeleted sets value of Deleted conditional field. SetFlags sets flags for non-zero fields. SetRights sets value of Rights conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateConnectedBotRequest) Zero() bool *AccountUpdateConnectedBotRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateConnectedBotRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateConnectedBotRequest : github.com/gotd/td/bin.Decoder *AccountUpdateConnectedBotRequest : github.com/gotd/td/bin.Encoder *AccountUpdateConnectedBotRequest : github.com/gotd/td/bin.Object *AccountUpdateConnectedBotRequest : github.com/gotd/td/tdp.Object *AccountUpdateConnectedBotRequest : fmt.Stringer func (*Client).AccountUpdateConnectedBot(ctx context.Context, request *AccountUpdateConnectedBotRequest) (UpdatesClass, error)
AccountUpdateDeviceLockedRequest represents TL type `account.updateDeviceLocked#38df3532`. When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications¹. Links: 1. https://core.telegram.org/api/push-updates See https://core.telegram.org/method/account.updateDeviceLocked for reference. Inactivity period after which to start hiding message texts in PUSH notifications¹. Links: 1) https://core.telegram.org/api/push-updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateDeviceLockedRequest from given interface. GetPeriod returns value of Period field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateDeviceLockedRequest) Zero() bool *AccountUpdateDeviceLockedRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateDeviceLockedRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateDeviceLockedRequest : github.com/gotd/td/bin.Decoder *AccountUpdateDeviceLockedRequest : github.com/gotd/td/bin.Encoder *AccountUpdateDeviceLockedRequest : github.com/gotd/td/bin.Object *AccountUpdateDeviceLockedRequest : github.com/gotd/td/tdp.Object *AccountUpdateDeviceLockedRequest : fmt.Stringer
AccountUpdateEmojiStatusRequest represents TL type `account.updateEmojiStatus#fbd3de6b`. Set an emoji status¹ Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/method/account.updateEmojiStatus for reference. Emoji status¹ to set Links: 1) https://core.telegram.org/api/emoji-status Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateEmojiStatusRequest from given interface. GetEmojiStatus returns value of EmojiStatus field. GetEmojiStatusAsNotEmpty returns mapped value of EmojiStatus field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateEmojiStatusRequest) Zero() bool *AccountUpdateEmojiStatusRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateEmojiStatusRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateEmojiStatusRequest : github.com/gotd/td/bin.Decoder *AccountUpdateEmojiStatusRequest : github.com/gotd/td/bin.Encoder *AccountUpdateEmojiStatusRequest : github.com/gotd/td/bin.Object *AccountUpdateEmojiStatusRequest : github.com/gotd/td/tdp.Object *AccountUpdateEmojiStatusRequest : fmt.Stringer
AccountUpdateNotifySettingsRequest represents TL type `account.updateNotifySettings#84be5b93`. Edits notification settings from a given user/group, from all users/all groups. See https://core.telegram.org/method/account.updateNotifySettings for reference. Notification source Notification settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateNotifySettingsRequest from given interface. GetPeer returns value of Peer field. GetSettings returns value of Settings field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateNotifySettingsRequest) Zero() bool *AccountUpdateNotifySettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateNotifySettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateNotifySettingsRequest : github.com/gotd/td/bin.Decoder *AccountUpdateNotifySettingsRequest : github.com/gotd/td/bin.Encoder *AccountUpdateNotifySettingsRequest : github.com/gotd/td/bin.Object *AccountUpdateNotifySettingsRequest : github.com/gotd/td/tdp.Object *AccountUpdateNotifySettingsRequest : fmt.Stringer func (*Client).AccountUpdateNotifySettings(ctx context.Context, request *AccountUpdateNotifySettingsRequest) (bool, error)
AccountUpdatePasswordSettingsRequest represents TL type `account.updatePasswordSettings#a59b102f`. Set a new 2FA password See https://core.telegram.org/method/account.updatePasswordSettings for reference. The new password (see SRP¹) Links: 1) https://core.telegram.org/api/srp The old password (see SRP¹) Links: 1) https://core.telegram.org/api/srp Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdatePasswordSettingsRequest from given interface. GetNewSettings returns value of NewSettings field. GetPassword returns value of Password field. GetPasswordAsNotEmpty returns mapped value of Password field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdatePasswordSettingsRequest) Zero() bool *AccountUpdatePasswordSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdatePasswordSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdatePasswordSettingsRequest : github.com/gotd/td/bin.Decoder *AccountUpdatePasswordSettingsRequest : github.com/gotd/td/bin.Encoder *AccountUpdatePasswordSettingsRequest : github.com/gotd/td/bin.Object *AccountUpdatePasswordSettingsRequest : github.com/gotd/td/tdp.Object *AccountUpdatePasswordSettingsRequest : fmt.Stringer func (*Client).AccountUpdatePasswordSettings(ctx context.Context, request *AccountUpdatePasswordSettingsRequest) (bool, error)
AccountUpdatePersonalChannelRequest represents TL type `account.updatePersonalChannel#d94305e0`. Associate (or remove) a personal channel »¹, that will be listed on our personal profile page »². Changing it will emit an updateUser¹ update. Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/api/profile#personal-channel 3. https://core.telegram.org/constructor/updateUser See https://core.telegram.org/method/account.updatePersonalChannel for reference. The channel, pass inputChannelEmpty¹ to remove it. Links: 1) https://core.telegram.org/constructor/inputChannelEmpty Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdatePersonalChannelRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdatePersonalChannelRequest) Zero() bool *AccountUpdatePersonalChannelRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdatePersonalChannelRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdatePersonalChannelRequest : github.com/gotd/td/bin.Decoder *AccountUpdatePersonalChannelRequest : github.com/gotd/td/bin.Encoder *AccountUpdatePersonalChannelRequest : github.com/gotd/td/bin.Object *AccountUpdatePersonalChannelRequest : github.com/gotd/td/tdp.Object *AccountUpdatePersonalChannelRequest : fmt.Stringer
AccountUpdateProfileRequest represents TL type `account.updateProfile#78515775`. Updates user profile. See https://core.telegram.org/method/account.updateProfile for reference. New bio Use SetAbout and GetAbout helpers. New user first name Use SetFirstName and GetFirstName helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields New user last name Use SetLastName and GetLastName helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateProfileRequest from given interface. GetAbout returns value of About conditional field and boolean which is true if field was set. GetFirstName returns value of FirstName conditional field and boolean which is true if field was set. GetLastName returns value of LastName conditional field and boolean which is true if field was set. SetAbout sets value of About conditional field. SetFirstName sets value of FirstName conditional field. SetFlags sets flags for non-zero fields. SetLastName sets value of LastName conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateProfileRequest) Zero() bool *AccountUpdateProfileRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateProfileRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateProfileRequest : github.com/gotd/td/bin.Decoder *AccountUpdateProfileRequest : github.com/gotd/td/bin.Encoder *AccountUpdateProfileRequest : github.com/gotd/td/bin.Object *AccountUpdateProfileRequest : github.com/gotd/td/tdp.Object *AccountUpdateProfileRequest : fmt.Stringer func (*Client).AccountUpdateProfile(ctx context.Context, request *AccountUpdateProfileRequest) (UserClass, error)
AccountUpdateStatusRequest represents TL type `account.updateStatus#6628562c`. Updates online user status. See https://core.telegram.org/method/account.updateStatus for reference. If (boolTrue)¹ is transmitted, user status will change to (userStatusOffline)². Links: 1) https://core.telegram.org/constructor/boolTrue 2) https://core.telegram.org/constructor/userStatusOffline Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateStatusRequest from given interface. GetOffline returns value of Offline field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateStatusRequest) Zero() bool *AccountUpdateStatusRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateStatusRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateStatusRequest : github.com/gotd/td/bin.Decoder *AccountUpdateStatusRequest : github.com/gotd/td/bin.Encoder *AccountUpdateStatusRequest : github.com/gotd/td/bin.Object *AccountUpdateStatusRequest : github.com/gotd/td/tdp.Object *AccountUpdateStatusRequest : fmt.Stringer
AccountUpdateThemeRequest represents TL type `account.updateTheme#2bf40ccc`. Update theme See https://core.telegram.org/method/account.updateTheme for reference. Theme file Use SetDocument and GetDocument helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Theme format, a string that identifies the theming engines supported by the client Theme settings Use SetSettings and GetSettings helpers. Unique theme ID Use SetSlug and GetSlug helpers. Theme to update Theme name Use SetTitle and GetTitle helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateThemeRequest from given interface. GetDocument returns value of Document conditional field and boolean which is true if field was set. GetDocumentAsNotEmpty returns mapped value of Document conditional field and boolean which is true if field was set. GetFormat returns value of Format field. GetSettings returns value of Settings conditional field and boolean which is true if field was set. GetSlug returns value of Slug conditional field and boolean which is true if field was set. GetTheme returns value of Theme field. GetTitle returns value of Title conditional field and boolean which is true if field was set. SetDocument sets value of Document conditional field. SetFlags sets flags for non-zero fields. SetSettings sets value of Settings conditional field. SetSlug sets value of Slug conditional field. SetTitle sets value of Title conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateThemeRequest) Zero() bool *AccountUpdateThemeRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateThemeRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateThemeRequest : github.com/gotd/td/bin.Decoder *AccountUpdateThemeRequest : github.com/gotd/td/bin.Encoder *AccountUpdateThemeRequest : github.com/gotd/td/bin.Object *AccountUpdateThemeRequest : github.com/gotd/td/tdp.Object *AccountUpdateThemeRequest : fmt.Stringer func (*Client).AccountUpdateTheme(ctx context.Context, request *AccountUpdateThemeRequest) (*Theme, error)
AccountUpdateUsernameRequest represents TL type `account.updateUsername#3e0bdd7c`. Changes username for the current user. See https://core.telegram.org/method/account.updateUsername for reference. usernameAccepted characters: A-z (case-insensitive), 0-9 and underscores.Length: 5-32 characters. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateUsernameRequest from given interface. GetUsername returns value of Username field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateUsernameRequest) Zero() bool *AccountUpdateUsernameRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateUsernameRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateUsernameRequest : github.com/gotd/td/bin.Decoder *AccountUpdateUsernameRequest : github.com/gotd/td/bin.Encoder *AccountUpdateUsernameRequest : github.com/gotd/td/bin.Object *AccountUpdateUsernameRequest : github.com/gotd/td/tdp.Object *AccountUpdateUsernameRequest : fmt.Stringer
AccountUpdateWebBrowserSettingsRequest represents TL type `account.updateWebBrowserSettings#9adf82fe`. See https://core.telegram.org/method/account.updateWebBrowserSettings for reference. DisplayCloseButton field of AccountUpdateWebBrowserSettingsRequest. Flags field of AccountUpdateWebBrowserSettingsRequest. OpenExternalBrowser field of AccountUpdateWebBrowserSettingsRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUpdateWebBrowserSettingsRequest from given interface. GetDisplayCloseButton returns value of DisplayCloseButton conditional field. GetOpenExternalBrowser returns value of OpenExternalBrowser conditional field. SetDisplayCloseButton sets value of DisplayCloseButton conditional field. SetFlags sets flags for non-zero fields. SetOpenExternalBrowser sets value of OpenExternalBrowser conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUpdateWebBrowserSettingsRequest) Zero() bool *AccountUpdateWebBrowserSettingsRequest : github.com/gotd/td/bin.BareDecoder *AccountUpdateWebBrowserSettingsRequest : github.com/gotd/td/bin.BareEncoder *AccountUpdateWebBrowserSettingsRequest : github.com/gotd/td/bin.Decoder *AccountUpdateWebBrowserSettingsRequest : github.com/gotd/td/bin.Encoder *AccountUpdateWebBrowserSettingsRequest : github.com/gotd/td/bin.Object *AccountUpdateWebBrowserSettingsRequest : github.com/gotd/td/tdp.Object *AccountUpdateWebBrowserSettingsRequest : fmt.Stringer func (*Client).AccountUpdateWebBrowserSettings(ctx context.Context, request *AccountUpdateWebBrowserSettingsRequest) (AccountWebBrowserSettingsClass, error)
AccountUploadRingtoneRequest represents TL type `account.uploadRingtone#831a83a2`. Upload notification sound, use account.saveRingtone¹ to convert it and add it to the list of saved notification sounds. Links: 1. https://core.telegram.org/method/account.saveRingtone See https://core.telegram.org/method/account.uploadRingtone for reference. Notification sound File name MIME type of file Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUploadRingtoneRequest from given interface. GetFile returns value of File field. GetFileName returns value of FileName field. GetMimeType returns value of MimeType field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUploadRingtoneRequest) Zero() bool *AccountUploadRingtoneRequest : github.com/gotd/td/bin.BareDecoder *AccountUploadRingtoneRequest : github.com/gotd/td/bin.BareEncoder *AccountUploadRingtoneRequest : github.com/gotd/td/bin.Decoder *AccountUploadRingtoneRequest : github.com/gotd/td/bin.Encoder *AccountUploadRingtoneRequest : github.com/gotd/td/bin.Object *AccountUploadRingtoneRequest : github.com/gotd/td/tdp.Object *AccountUploadRingtoneRequest : fmt.Stringer func (*Client).AccountUploadRingtone(ctx context.Context, request *AccountUploadRingtoneRequest) (DocumentClass, error)
AccountUploadThemeRequest represents TL type `account.uploadTheme#1c3db333`. Upload theme See https://core.telegram.org/method/account.uploadTheme for reference. Previously uploaded¹ theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors. Links: 1) https://core.telegram.org/api/themes#uploading-theme-files File name Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields MIME type, must be application/x-tgtheme-{format}, where format depends on the client Thumbnail Use SetThumb and GetThumb helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUploadThemeRequest from given interface. GetFile returns value of File field. GetFileName returns value of FileName field. GetMimeType returns value of MimeType field. GetThumb returns value of Thumb conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetThumb sets value of Thumb conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUploadThemeRequest) Zero() bool *AccountUploadThemeRequest : github.com/gotd/td/bin.BareDecoder *AccountUploadThemeRequest : github.com/gotd/td/bin.BareEncoder *AccountUploadThemeRequest : github.com/gotd/td/bin.Decoder *AccountUploadThemeRequest : github.com/gotd/td/bin.Encoder *AccountUploadThemeRequest : github.com/gotd/td/bin.Object *AccountUploadThemeRequest : github.com/gotd/td/tdp.Object *AccountUploadThemeRequest : fmt.Stringer func (*Client).AccountUploadTheme(ctx context.Context, request *AccountUploadThemeRequest) (DocumentClass, error)
AccountUploadWallPaperRequest represents TL type `account.uploadWallPaper#e39a8f03`. Create and upload a new wallpaper¹ Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/method/account.uploadWallPaper for reference. The JPG/PNG wallpaper Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Set this flag when uploading wallpapers to be passed to messages.setChatWallPaper¹. Links: 1) https://core.telegram.org/method/messages.setChatWallPaper MIME type of uploaded wallpaper Wallpaper settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountUploadWallPaperRequest from given interface. GetFile returns value of File field. GetForChat returns value of ForChat conditional field. GetMimeType returns value of MimeType field. GetSettings returns value of Settings field. SetFlags sets flags for non-zero fields. SetForChat sets value of ForChat conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountUploadWallPaperRequest) Zero() bool *AccountUploadWallPaperRequest : github.com/gotd/td/bin.BareDecoder *AccountUploadWallPaperRequest : github.com/gotd/td/bin.BareEncoder *AccountUploadWallPaperRequest : github.com/gotd/td/bin.Decoder *AccountUploadWallPaperRequest : github.com/gotd/td/bin.Encoder *AccountUploadWallPaperRequest : github.com/gotd/td/bin.Object *AccountUploadWallPaperRequest : github.com/gotd/td/tdp.Object *AccountUploadWallPaperRequest : fmt.Stringer func (*Client).AccountUploadWallPaper(ctx context.Context, request *AccountUploadWallPaperRequest) (WallPaperClass, error)
AccountVerifyEmailRequest represents TL type `account.verifyEmail#32da4cf`. Verify an email address. See https://core.telegram.org/method/account.verifyEmail for reference. Verification purpose Email verification code or token Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountVerifyEmailRequest from given interface. GetPurpose returns value of Purpose field. GetVerification returns value of Verification field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountVerifyEmailRequest) Zero() bool *AccountVerifyEmailRequest : github.com/gotd/td/bin.BareDecoder *AccountVerifyEmailRequest : github.com/gotd/td/bin.BareEncoder *AccountVerifyEmailRequest : github.com/gotd/td/bin.Decoder *AccountVerifyEmailRequest : github.com/gotd/td/bin.Encoder *AccountVerifyEmailRequest : github.com/gotd/td/bin.Object *AccountVerifyEmailRequest : github.com/gotd/td/tdp.Object *AccountVerifyEmailRequest : fmt.Stringer func (*Client).AccountVerifyEmail(ctx context.Context, request *AccountVerifyEmailRequest) (AccountEmailVerifiedClass, error)
AccountVerifyPhoneRequest represents TL type `account.verifyPhone#4dd3a7f6`. Verify a phone number for telegram passport¹. Links: 1. https://core.telegram.org/passport See https://core.telegram.org/method/account.verifyPhone for reference. Phone code received when calling account.sendChangePhoneCode¹ Links: 1) https://core.telegram.org/method/account.sendChangePhoneCode Phone code hash received when calling account.sendChangePhoneCode¹ Links: 1) https://core.telegram.org/method/account.sendChangePhoneCode New phone number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountVerifyPhoneRequest from given interface. GetPhoneCode returns value of PhoneCode field. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountVerifyPhoneRequest) Zero() bool *AccountVerifyPhoneRequest : github.com/gotd/td/bin.BareDecoder *AccountVerifyPhoneRequest : github.com/gotd/td/bin.BareEncoder *AccountVerifyPhoneRequest : github.com/gotd/td/bin.Decoder *AccountVerifyPhoneRequest : github.com/gotd/td/bin.Encoder *AccountVerifyPhoneRequest : github.com/gotd/td/bin.Object *AccountVerifyPhoneRequest : github.com/gotd/td/tdp.Object *AccountVerifyPhoneRequest : fmt.Stringer func (*Client).AccountVerifyPhone(ctx context.Context, request *AccountVerifyPhoneRequest) (bool, error)
AccountWallPapers represents TL type `account.wallPapers#cdc3858c`. Installed wallpapers¹ Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/constructor/account.wallPapers for reference. Hash used for caching, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Wallpapers¹ Links: 1) https://core.telegram.org/api/wallpapers AsModified tries to map AccountWallPapers to AccountWallPapers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountWallPapers from given interface. GetHash returns value of Hash field. GetWallpapers returns value of Wallpapers field. MapWallpapers returns field Wallpapers wrapped in WallPaperClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountWallPapers) Zero() bool *AccountWallPapers : AccountWallPapersClass *AccountWallPapers : github.com/gotd/td/bin.BareDecoder *AccountWallPapers : github.com/gotd/td/bin.BareEncoder *AccountWallPapers : github.com/gotd/td/bin.Decoder *AccountWallPapers : github.com/gotd/td/bin.Encoder *AccountWallPapers : github.com/gotd/td/bin.Object *AccountWallPapers : github.com/gotd/td/tdp.Object *AccountWallPapers : fmt.Stringer func (*AccountWallPapers).AsModified() (*AccountWallPapers, bool) func AccountWallPapersArray.First() (v AccountWallPapers, ok bool) func AccountWallPapersArray.Last() (v AccountWallPapers, ok bool) func (*AccountWallPapersArray).Pop() (v AccountWallPapers, ok bool) func (*AccountWallPapersArray).PopFirst() (v AccountWallPapers, ok bool) func AccountWallPapersClass.AsModified() (*AccountWallPapers, bool) func AccountWallPapersClassArray.AppendOnlyModified(to []*AccountWallPapers) []*AccountWallPapers func AccountWallPapersClassArray.AsModified() (to []*AccountWallPapers) func AccountWallPapersClassArray.FirstAsModified() (v *AccountWallPapers, ok bool) func AccountWallPapersClassArray.LastAsModified() (v *AccountWallPapers, ok bool) func (*AccountWallPapersClassArray).PopAsModified() (v *AccountWallPapers, ok bool) func (*AccountWallPapersClassArray).PopFirstAsModified() (v *AccountWallPapers, ok bool) func (*AccountWallPapersNotModified).AsModified() (*AccountWallPapers, bool) func AccountWallPapersClassArray.AppendOnlyModified(to []*AccountWallPapers) []*AccountWallPapers
AccountWallPapersArray is adapter for slice of AccountWallPapers. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountWallPapers. Sort sorts slice of AccountWallPapers. SortStable sorts slice of AccountWallPapers. func AccountWallPapersArray.Retain(keep func(x AccountWallPapers) bool) AccountWallPapersArray func AccountWallPapersArray.Sort(less func(a, b AccountWallPapers) bool) AccountWallPapersArray func AccountWallPapersArray.SortStable(less func(a, b AccountWallPapers) bool) AccountWallPapersArray func AccountWallPapersClassArray.AsAccountWallPapers() (to AccountWallPapersArray)
AccountWallPapers boxes the AccountWallPapersClass providing a helper. WallPapers AccountWallPapersClass Decode implements bin.Decoder for AccountWallPapersBox. Encode implements bin.Encode for AccountWallPapersBox. *AccountWallPapersBox : github.com/gotd/td/bin.Decoder *AccountWallPapersBox : github.com/gotd/td/bin.Encoder *AccountWallPapersBox : github.com/gotd/td/bin.Object
AccountWallPapersClass represents account.WallPapers generic type. See https://core.telegram.org/type/account.WallPapers for reference. Constructors: - [AccountWallPapersNotModified] - [AccountWallPapers] Example: g, err := tg.DecodeAccountWallPapers(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountWallPapersNotModified: // account.wallPapersNotModified#1c199183 case *tg.AccountWallPapers: // account.wallPapers#cdc3858c default: panic(v) } AsModified tries to map AccountWallPapersClass to AccountWallPapers. ( AccountWallPapersClass) Decode(b *bin.Buffer) error ( AccountWallPapersClass) DecodeBare(b *bin.Buffer) error ( AccountWallPapersClass) Encode(b *bin.Buffer) error ( AccountWallPapersClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountWallPapers *AccountWallPapersNotModified AccountWallPapersClass : github.com/gotd/td/bin.BareDecoder AccountWallPapersClass : github.com/gotd/td/bin.BareEncoder AccountWallPapersClass : github.com/gotd/td/bin.Decoder AccountWallPapersClass : github.com/gotd/td/bin.Encoder AccountWallPapersClass : github.com/gotd/td/bin.Object AccountWallPapersClass : fmt.Stringer func DecodeAccountWallPapers(buf *bin.Buffer) (AccountWallPapersClass, error) func AccountWallPapersClassArray.First() (v AccountWallPapersClass, ok bool) func AccountWallPapersClassArray.Last() (v AccountWallPapersClass, ok bool) func (*AccountWallPapersClassArray).Pop() (v AccountWallPapersClass, ok bool) func (*AccountWallPapersClassArray).PopFirst() (v AccountWallPapersClass, ok bool) func (*Client).AccountGetWallPapers(ctx context.Context, hash int64) (AccountWallPapersClass, error)
AccountWallPapersClassArray is adapter for slice of AccountWallPapersClass. AppendOnlyModified appends only Modified constructors to given slice. AsAccountWallPapers returns copy with only AccountWallPapers constructors. AsModified returns copy with only Modified constructors. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of AccountWallPapersClass. Sort sorts slice of AccountWallPapersClass. SortStable sorts slice of AccountWallPapersClass. func AccountWallPapersClassArray.Retain(keep func(x AccountWallPapersClass) bool) AccountWallPapersClassArray func AccountWallPapersClassArray.Sort(less func(a, b AccountWallPapersClass) bool) AccountWallPapersClassArray func AccountWallPapersClassArray.SortStable(less func(a, b AccountWallPapersClass) bool) AccountWallPapersClassArray
AccountWallPapersNotModified represents TL type `account.wallPapersNotModified#1c199183`. No new wallpapers¹ were found Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/constructor/account.wallPapersNotModified for reference. AsModified tries to map AccountWallPapersNotModified to AccountWallPapers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountWallPapersNotModified) Zero() bool *AccountWallPapersNotModified : AccountWallPapersClass *AccountWallPapersNotModified : github.com/gotd/td/bin.BareDecoder *AccountWallPapersNotModified : github.com/gotd/td/bin.BareEncoder *AccountWallPapersNotModified : github.com/gotd/td/bin.Decoder *AccountWallPapersNotModified : github.com/gotd/td/bin.Encoder *AccountWallPapersNotModified : github.com/gotd/td/bin.Object *AccountWallPapersNotModified : github.com/gotd/td/tdp.Object *AccountWallPapersNotModified : fmt.Stringer
AccountWebAuthorizations represents TL type `account.webAuthorizations#ed56c9fc`. Web authorizations See https://core.telegram.org/constructor/account.webAuthorizations for reference. Web authorization list Users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountWebAuthorizations from given interface. GetAuthorizations returns value of Authorizations field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in UserClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountWebAuthorizations) Zero() bool *AccountWebAuthorizations : github.com/gotd/td/bin.BareDecoder *AccountWebAuthorizations : github.com/gotd/td/bin.BareEncoder *AccountWebAuthorizations : github.com/gotd/td/bin.Decoder *AccountWebAuthorizations : github.com/gotd/td/bin.Encoder *AccountWebAuthorizations : github.com/gotd/td/bin.Object *AccountWebAuthorizations : github.com/gotd/td/tdp.Object *AccountWebAuthorizations : fmt.Stringer func (*Client).AccountGetWebAuthorizations(ctx context.Context) (*AccountWebAuthorizations, error)
AccountWebBrowserSettings represents TL type `account.webBrowserSettings#79eb8cb3`. See https://core.telegram.org/constructor/account.webBrowserSettings for reference. DisplayCloseButton field of AccountWebBrowserSettings. ExternalExceptions field of AccountWebBrowserSettings. Flags field of AccountWebBrowserSettings. Hash field of AccountWebBrowserSettings. InappExceptions field of AccountWebBrowserSettings. OpenExternalBrowser field of AccountWebBrowserSettings. AsModified tries to map AccountWebBrowserSettings to AccountWebBrowserSettings. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AccountWebBrowserSettings from given interface. GetDisplayCloseButton returns value of DisplayCloseButton conditional field. GetExternalExceptions returns value of ExternalExceptions field. GetHash returns value of Hash field. GetInappExceptions returns value of InappExceptions field. GetOpenExternalBrowser returns value of OpenExternalBrowser conditional field. SetDisplayCloseButton sets value of DisplayCloseButton conditional field. SetFlags sets flags for non-zero fields. SetOpenExternalBrowser sets value of OpenExternalBrowser conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountWebBrowserSettings) Zero() bool *AccountWebBrowserSettings : AccountWebBrowserSettingsClass *AccountWebBrowserSettings : github.com/gotd/td/bin.BareDecoder *AccountWebBrowserSettings : github.com/gotd/td/bin.BareEncoder *AccountWebBrowserSettings : github.com/gotd/td/bin.Decoder *AccountWebBrowserSettings : github.com/gotd/td/bin.Encoder *AccountWebBrowserSettings : github.com/gotd/td/bin.Object *AccountWebBrowserSettings : github.com/gotd/td/tdp.Object *AccountWebBrowserSettings : fmt.Stringer func (*AccountWebBrowserSettings).AsModified() (*AccountWebBrowserSettings, bool) func AccountWebBrowserSettingsArray.First() (v AccountWebBrowserSettings, ok bool) func AccountWebBrowserSettingsArray.Last() (v AccountWebBrowserSettings, ok bool) func (*AccountWebBrowserSettingsArray).Pop() (v AccountWebBrowserSettings, ok bool) func (*AccountWebBrowserSettingsArray).PopFirst() (v AccountWebBrowserSettings, ok bool) func AccountWebBrowserSettingsClass.AsModified() (*AccountWebBrowserSettings, bool) func AccountWebBrowserSettingsClassArray.AppendOnlyModified(to []*AccountWebBrowserSettings) []*AccountWebBrowserSettings func AccountWebBrowserSettingsClassArray.AsModified() (to []*AccountWebBrowserSettings) func AccountWebBrowserSettingsClassArray.FirstAsModified() (v *AccountWebBrowserSettings, ok bool) func AccountWebBrowserSettingsClassArray.LastAsModified() (v *AccountWebBrowserSettings, ok bool) func (*AccountWebBrowserSettingsClassArray).PopAsModified() (v *AccountWebBrowserSettings, ok bool) func (*AccountWebBrowserSettingsClassArray).PopFirstAsModified() (v *AccountWebBrowserSettings, ok bool) func (*AccountWebBrowserSettingsNotModified).AsModified() (*AccountWebBrowserSettings, bool) func AccountWebBrowserSettingsClassArray.AppendOnlyModified(to []*AccountWebBrowserSettings) []*AccountWebBrowserSettings
AccountWebBrowserSettingsArray is adapter for slice of AccountWebBrowserSettings. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AccountWebBrowserSettings. Sort sorts slice of AccountWebBrowserSettings. SortStable sorts slice of AccountWebBrowserSettings. func AccountWebBrowserSettingsArray.Retain(keep func(x AccountWebBrowserSettings) bool) AccountWebBrowserSettingsArray func AccountWebBrowserSettingsArray.Sort(less func(a, b AccountWebBrowserSettings) bool) AccountWebBrowserSettingsArray func AccountWebBrowserSettingsArray.SortStable(less func(a, b AccountWebBrowserSettings) bool) AccountWebBrowserSettingsArray func AccountWebBrowserSettingsClassArray.AsAccountWebBrowserSettings() (to AccountWebBrowserSettingsArray)
AccountWebBrowserSettings boxes the AccountWebBrowserSettingsClass providing a helper. WebBrowserSettings AccountWebBrowserSettingsClass Decode implements bin.Decoder for AccountWebBrowserSettingsBox. Encode implements bin.Encode for AccountWebBrowserSettingsBox. *AccountWebBrowserSettingsBox : github.com/gotd/td/bin.Decoder *AccountWebBrowserSettingsBox : github.com/gotd/td/bin.Encoder *AccountWebBrowserSettingsBox : github.com/gotd/td/bin.Object
AccountWebBrowserSettingsClass represents account.WebBrowserSettings generic type. See https://core.telegram.org/type/account.WebBrowserSettings for reference. Constructors: - [AccountWebBrowserSettingsNotModified] - [AccountWebBrowserSettings] Example: g, err := tg.DecodeAccountWebBrowserSettings(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AccountWebBrowserSettingsNotModified: // account.webBrowserSettingsNotModified#c31c8f4e case *tg.AccountWebBrowserSettings: // account.webBrowserSettings#79eb8cb3 default: panic(v) } AsModified tries to map AccountWebBrowserSettingsClass to AccountWebBrowserSettings. ( AccountWebBrowserSettingsClass) Decode(b *bin.Buffer) error ( AccountWebBrowserSettingsClass) DecodeBare(b *bin.Buffer) error ( AccountWebBrowserSettingsClass) Encode(b *bin.Buffer) error ( AccountWebBrowserSettingsClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AccountWebBrowserSettings *AccountWebBrowserSettingsNotModified AccountWebBrowserSettingsClass : github.com/gotd/td/bin.BareDecoder AccountWebBrowserSettingsClass : github.com/gotd/td/bin.BareEncoder AccountWebBrowserSettingsClass : github.com/gotd/td/bin.Decoder AccountWebBrowserSettingsClass : github.com/gotd/td/bin.Encoder AccountWebBrowserSettingsClass : github.com/gotd/td/bin.Object AccountWebBrowserSettingsClass : fmt.Stringer func DecodeAccountWebBrowserSettings(buf *bin.Buffer) (AccountWebBrowserSettingsClass, error) func AccountWebBrowserSettingsClassArray.First() (v AccountWebBrowserSettingsClass, ok bool) func AccountWebBrowserSettingsClassArray.Last() (v AccountWebBrowserSettingsClass, ok bool) func (*AccountWebBrowserSettingsClassArray).Pop() (v AccountWebBrowserSettingsClass, ok bool) func (*AccountWebBrowserSettingsClassArray).PopFirst() (v AccountWebBrowserSettingsClass, ok bool) func (*Client).AccountDeleteWebBrowserSettingsExceptions(ctx context.Context) (AccountWebBrowserSettingsClass, error) func (*Client).AccountGetWebBrowserSettings(ctx context.Context, hash int64) (AccountWebBrowserSettingsClass, error) func (*Client).AccountUpdateWebBrowserSettings(ctx context.Context, request *AccountUpdateWebBrowserSettingsRequest) (AccountWebBrowserSettingsClass, error)
AccountWebBrowserSettingsClassArray is adapter for slice of AccountWebBrowserSettingsClass. AppendOnlyModified appends only Modified constructors to given slice. AsAccountWebBrowserSettings returns copy with only AccountWebBrowserSettings constructors. AsModified returns copy with only Modified constructors. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of AccountWebBrowserSettingsClass. Sort sorts slice of AccountWebBrowserSettingsClass. SortStable sorts slice of AccountWebBrowserSettingsClass. func AccountWebBrowserSettingsClassArray.Retain(keep func(x AccountWebBrowserSettingsClass) bool) AccountWebBrowserSettingsClassArray func AccountWebBrowserSettingsClassArray.Sort(less func(a, b AccountWebBrowserSettingsClass) bool) AccountWebBrowserSettingsClassArray func AccountWebBrowserSettingsClassArray.SortStable(less func(a, b AccountWebBrowserSettingsClass) bool) AccountWebBrowserSettingsClassArray
AccountWebBrowserSettingsNotModified represents TL type `account.webBrowserSettingsNotModified#c31c8f4e`. See https://core.telegram.org/constructor/account.webBrowserSettingsNotModified for reference. AsModified tries to map AccountWebBrowserSettingsNotModified to AccountWebBrowserSettings. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AccountWebBrowserSettingsNotModified) Zero() bool *AccountWebBrowserSettingsNotModified : AccountWebBrowserSettingsClass *AccountWebBrowserSettingsNotModified : github.com/gotd/td/bin.BareDecoder *AccountWebBrowserSettingsNotModified : github.com/gotd/td/bin.BareEncoder *AccountWebBrowserSettingsNotModified : github.com/gotd/td/bin.Decoder *AccountWebBrowserSettingsNotModified : github.com/gotd/td/bin.Encoder *AccountWebBrowserSettingsNotModified : github.com/gotd/td/bin.Object *AccountWebBrowserSettingsNotModified : github.com/gotd/td/tdp.Object *AccountWebBrowserSettingsNotModified : fmt.Stringer
AicomposeCreateToneRequest represents TL type `aicompose.createTone#4aa83913`. See https://core.telegram.org/method/aicompose.createTone for reference. DisplayAuthor field of AicomposeCreateToneRequest. EmojiID field of AicomposeCreateToneRequest. Flags field of AicomposeCreateToneRequest. Prompt field of AicomposeCreateToneRequest. Title field of AicomposeCreateToneRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AicomposeCreateToneRequest from given interface. GetDisplayAuthor returns value of DisplayAuthor conditional field. GetEmojiID returns value of EmojiID field. GetPrompt returns value of Prompt field. GetTitle returns value of Title field. SetDisplayAuthor sets value of DisplayAuthor conditional field. SetFlags sets flags for non-zero fields. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AicomposeCreateToneRequest) Zero() bool *AicomposeCreateToneRequest : github.com/gotd/td/bin.BareDecoder *AicomposeCreateToneRequest : github.com/gotd/td/bin.BareEncoder *AicomposeCreateToneRequest : github.com/gotd/td/bin.Decoder *AicomposeCreateToneRequest : github.com/gotd/td/bin.Encoder *AicomposeCreateToneRequest : github.com/gotd/td/bin.Object *AicomposeCreateToneRequest : github.com/gotd/td/tdp.Object *AicomposeCreateToneRequest : fmt.Stringer func (*Client).AicomposeCreateTone(ctx context.Context, request *AicomposeCreateToneRequest) (AiComposeToneClass, error)
AicomposeDeleteToneRequest represents TL type `aicompose.deleteTone#dd39316a`. See https://core.telegram.org/method/aicompose.deleteTone for reference. Tone field of AicomposeDeleteToneRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AicomposeDeleteToneRequest from given interface. GetTone returns value of Tone field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AicomposeDeleteToneRequest) Zero() bool *AicomposeDeleteToneRequest : github.com/gotd/td/bin.BareDecoder *AicomposeDeleteToneRequest : github.com/gotd/td/bin.BareEncoder *AicomposeDeleteToneRequest : github.com/gotd/td/bin.Decoder *AicomposeDeleteToneRequest : github.com/gotd/td/bin.Encoder *AicomposeDeleteToneRequest : github.com/gotd/td/bin.Object *AicomposeDeleteToneRequest : github.com/gotd/td/tdp.Object *AicomposeDeleteToneRequest : fmt.Stringer
AicomposeGetToneExampleRequest represents TL type `aicompose.getToneExample#d1b4ab14`. See https://core.telegram.org/method/aicompose.getToneExample for reference. Num field of AicomposeGetToneExampleRequest. Tone field of AicomposeGetToneExampleRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AicomposeGetToneExampleRequest from given interface. GetNum returns value of Num field. GetTone returns value of Tone field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AicomposeGetToneExampleRequest) Zero() bool *AicomposeGetToneExampleRequest : github.com/gotd/td/bin.BareDecoder *AicomposeGetToneExampleRequest : github.com/gotd/td/bin.BareEncoder *AicomposeGetToneExampleRequest : github.com/gotd/td/bin.Decoder *AicomposeGetToneExampleRequest : github.com/gotd/td/bin.Encoder *AicomposeGetToneExampleRequest : github.com/gotd/td/bin.Object *AicomposeGetToneExampleRequest : github.com/gotd/td/tdp.Object *AicomposeGetToneExampleRequest : fmt.Stringer func (*Client).AicomposeGetToneExample(ctx context.Context, request *AicomposeGetToneExampleRequest) (*AiComposeToneExample, error)
AicomposeGetToneRequest represents TL type `aicompose.getTone#b2e8ba03`. See https://core.telegram.org/method/aicompose.getTone for reference. Tone field of AicomposeDeleteToneRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AicomposeGetToneRequest from given interface. GetTone returns value of Tone field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AicomposeGetToneRequest) Zero() bool *AicomposeGetToneRequest : github.com/gotd/td/bin.BareDecoder *AicomposeGetToneRequest : github.com/gotd/td/bin.BareEncoder *AicomposeGetToneRequest : github.com/gotd/td/bin.Decoder *AicomposeGetToneRequest : github.com/gotd/td/bin.Encoder *AicomposeGetToneRequest : github.com/gotd/td/bin.Object *AicomposeGetToneRequest : github.com/gotd/td/tdp.Object *AicomposeGetToneRequest : fmt.Stringer
AicomposeGetTonesRequest represents TL type `aicompose.getTones#abd59201`. See https://core.telegram.org/method/aicompose.getTones for reference. Hash used for caching, for more info click here¹. Links: 1) https://core.telegram.org/api/offsets#hash-generation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AicomposeGetTonesRequest from given interface. GetHash returns value of Hash field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AicomposeGetTonesRequest) Zero() bool *AicomposeGetTonesRequest : github.com/gotd/td/bin.BareDecoder *AicomposeGetTonesRequest : github.com/gotd/td/bin.BareEncoder *AicomposeGetTonesRequest : github.com/gotd/td/bin.Decoder *AicomposeGetTonesRequest : github.com/gotd/td/bin.Encoder *AicomposeGetTonesRequest : github.com/gotd/td/bin.Object *AicomposeGetTonesRequest : github.com/gotd/td/tdp.Object *AicomposeGetTonesRequest : fmt.Stringer
AicomposeSaveToneRequest represents TL type `aicompose.saveTone#1782cbb1`. See https://core.telegram.org/method/aicompose.saveTone for reference. Tone field of AicomposeSaveToneRequest. Unsave field of AicomposeSaveToneRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AicomposeSaveToneRequest from given interface. GetTone returns value of Tone field. GetUnsave returns value of Unsave field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AicomposeSaveToneRequest) Zero() bool *AicomposeSaveToneRequest : github.com/gotd/td/bin.BareDecoder *AicomposeSaveToneRequest : github.com/gotd/td/bin.BareEncoder *AicomposeSaveToneRequest : github.com/gotd/td/bin.Decoder *AicomposeSaveToneRequest : github.com/gotd/td/bin.Encoder *AicomposeSaveToneRequest : github.com/gotd/td/bin.Object *AicomposeSaveToneRequest : github.com/gotd/td/tdp.Object *AicomposeSaveToneRequest : fmt.Stringer func (*Client).AicomposeSaveTone(ctx context.Context, request *AicomposeSaveToneRequest) (bool, error)
AiComposeTone represents TL type `aiComposeTone#cff63ea9`. See https://core.telegram.org/constructor/aiComposeTone for reference. AccessHash field of AiComposeTone. AuthorID field of AiComposeTone. Use SetAuthorID and GetAuthorID helpers. Creator field of AiComposeTone. EmojiID field of AiComposeTone. Use SetEmojiID and GetEmojiID helpers. ExampleEnglish field of AiComposeTone. Use SetExampleEnglish and GetExampleEnglish helpers. Flags field of AiComposeTone. ID field of AiComposeTone. InstallsCount field of AiComposeTone. Use SetInstallsCount and GetInstallsCount helpers. Prompt field of AiComposeTone. Use SetPrompt and GetPrompt helpers. Slug field of AiComposeTone. Title field of AiComposeTone. AsInputAiComposeToneID tries to map AiComposeTone to InputAiComposeToneID. AsInputAiComposeToneSingleUse tries to map AiComposeTone to InputAiComposeToneSingleUse. AsInputAiComposeToneSlug tries to map AiComposeTone to InputAiComposeToneSlug. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AiComposeTone from given interface. GetAccessHash returns value of AccessHash field. GetAuthorID returns value of AuthorID conditional field and boolean which is true if field was set. GetCreator returns value of Creator conditional field. GetEmojiID returns value of EmojiID conditional field and boolean which is true if field was set. GetExampleEnglish returns value of ExampleEnglish conditional field and boolean which is true if field was set. GetID returns value of ID field. GetInstallsCount returns value of InstallsCount conditional field and boolean which is true if field was set. GetPrompt returns value of Prompt conditional field and boolean which is true if field was set. GetSlug returns value of Slug field. GetTitle returns value of Title field. SetAuthorID sets value of AuthorID conditional field. SetCreator sets value of Creator conditional field. SetEmojiID sets value of EmojiID conditional field. SetExampleEnglish sets value of ExampleEnglish conditional field. SetFlags sets flags for non-zero fields. SetInstallsCount sets value of InstallsCount conditional field. SetPrompt sets value of Prompt conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AiComposeTone) Zero() bool *AiComposeTone : AiComposeToneClass *AiComposeTone : github.com/gotd/td/bin.BareDecoder *AiComposeTone : github.com/gotd/td/bin.BareEncoder *AiComposeTone : github.com/gotd/td/bin.Decoder *AiComposeTone : github.com/gotd/td/bin.Encoder *AiComposeTone : github.com/gotd/td/bin.Object *AiComposeTone : github.com/gotd/td/tdp.Object *AiComposeTone : fmt.Stringer func AiComposeToneArray.First() (v AiComposeTone, ok bool) func AiComposeToneArray.Last() (v AiComposeTone, ok bool) func (*AiComposeToneArray).Pop() (v AiComposeTone, ok bool) func (*AiComposeToneArray).PopFirst() (v AiComposeTone, ok bool) func AiComposeToneArray.ToMap() map[int64]AiComposeTone func AiComposeToneArray.FillMap(to map[int64]AiComposeTone)
AiComposeToneArray is adapter for slice of AiComposeTone. FillMap fills constructors to given map. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AiComposeTone. Sort sorts slice of AiComposeTone. SortByID sorts slice of AiComposeTone by ID. SortStable sorts slice of AiComposeTone. SortStableByID sorts slice of AiComposeTone by ID. ToMap collects constructors to map. func AiComposeToneArray.Retain(keep func(x AiComposeTone) bool) AiComposeToneArray func AiComposeToneArray.Sort(less func(a, b AiComposeTone) bool) AiComposeToneArray func AiComposeToneArray.SortByID() AiComposeToneArray func AiComposeToneArray.SortStable(less func(a, b AiComposeTone) bool) AiComposeToneArray func AiComposeToneArray.SortStableByID() AiComposeToneArray func AiComposeToneClassArray.AsAiComposeTone() (to AiComposeToneArray)
AiComposeTone boxes the AiComposeToneClass providing a helper. AiComposeTone AiComposeToneClass Decode implements bin.Decoder for AiComposeToneBox. Encode implements bin.Encode for AiComposeToneBox. *AiComposeToneBox : github.com/gotd/td/bin.Decoder *AiComposeToneBox : github.com/gotd/td/bin.Encoder *AiComposeToneBox : github.com/gotd/td/bin.Object
AiComposeToneClass represents AiComposeTone generic type. See https://core.telegram.org/type/AiComposeTone for reference. Constructors: - [AiComposeTone] - [AiComposeToneDefault] Example: g, err := tg.DecodeAiComposeTone(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AiComposeTone: // aiComposeTone#cff63ea9 case *tg.AiComposeToneDefault: // aiComposeToneDefault#9bad6414 default: panic(v) } ( AiComposeToneClass) Decode(b *bin.Buffer) error ( AiComposeToneClass) DecodeBare(b *bin.Buffer) error ( AiComposeToneClass) Encode(b *bin.Buffer) error ( AiComposeToneClass) EncodeBare(b *bin.Buffer) error Title field of AiComposeTone. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AiComposeTone *AiComposeToneDefault AiComposeToneClass : github.com/gotd/td/bin.BareDecoder AiComposeToneClass : github.com/gotd/td/bin.BareEncoder AiComposeToneClass : github.com/gotd/td/bin.Decoder AiComposeToneClass : github.com/gotd/td/bin.Encoder AiComposeToneClass : github.com/gotd/td/bin.Object AiComposeToneClass : fmt.Stringer func DecodeAiComposeTone(buf *bin.Buffer) (AiComposeToneClass, error) func AiComposeToneClassArray.First() (v AiComposeToneClass, ok bool) func AiComposeToneClassArray.Last() (v AiComposeToneClass, ok bool) func (*AiComposeToneClassArray).Pop() (v AiComposeToneClass, ok bool) func (*AiComposeToneClassArray).PopFirst() (v AiComposeToneClass, ok bool) func (*AicomposeTones).GetTones() (value []AiComposeToneClass) func (*Client).AicomposeCreateTone(ctx context.Context, request *AicomposeCreateToneRequest) (AiComposeToneClass, error) func (*Client).AicomposeUpdateTone(ctx context.Context, request *AicomposeUpdateToneRequest) (AiComposeToneClass, error)
AiComposeToneClassArray is adapter for slice of AiComposeToneClass. AsAiComposeTone returns copy with only AiComposeTone constructors. AsAiComposeToneDefault returns copy with only AiComposeToneDefault constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AiComposeToneClass. Sort sorts slice of AiComposeToneClass. SortStable sorts slice of AiComposeToneClass. func AiComposeToneClassArray.Retain(keep func(x AiComposeToneClass) bool) AiComposeToneClassArray func AiComposeToneClassArray.Sort(less func(a, b AiComposeToneClass) bool) AiComposeToneClassArray func AiComposeToneClassArray.SortStable(less func(a, b AiComposeToneClass) bool) AiComposeToneClassArray func (*AicomposeTones).MapTones() (value AiComposeToneClassArray)
AiComposeToneDefault represents TL type `aiComposeToneDefault#9bad6414`. See https://core.telegram.org/constructor/aiComposeToneDefault for reference. EmojiID field of AiComposeToneDefault. Title field of AiComposeToneDefault. Tone field of AiComposeToneDefault. AsInput tries to map AiComposeToneDefault to InputAiComposeToneDefault. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AiComposeToneDefault from given interface. GetEmojiID returns value of EmojiID field. GetTitle returns value of Title field. GetTone returns value of Tone field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AiComposeToneDefault) Zero() bool *AiComposeToneDefault : AiComposeToneClass *AiComposeToneDefault : github.com/gotd/td/bin.BareDecoder *AiComposeToneDefault : github.com/gotd/td/bin.BareEncoder *AiComposeToneDefault : github.com/gotd/td/bin.Decoder *AiComposeToneDefault : github.com/gotd/td/bin.Encoder *AiComposeToneDefault : github.com/gotd/td/bin.Object *AiComposeToneDefault : github.com/gotd/td/tdp.Object *AiComposeToneDefault : fmt.Stringer func AiComposeToneDefaultArray.First() (v AiComposeToneDefault, ok bool) func AiComposeToneDefaultArray.Last() (v AiComposeToneDefault, ok bool) func (*AiComposeToneDefaultArray).Pop() (v AiComposeToneDefault, ok bool) func (*AiComposeToneDefaultArray).PopFirst() (v AiComposeToneDefault, ok bool)
AiComposeToneDefaultArray is adapter for slice of AiComposeToneDefault. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AiComposeToneDefault. Sort sorts slice of AiComposeToneDefault. SortStable sorts slice of AiComposeToneDefault. func AiComposeToneClassArray.AsAiComposeToneDefault() (to AiComposeToneDefaultArray) func AiComposeToneDefaultArray.Retain(keep func(x AiComposeToneDefault) bool) AiComposeToneDefaultArray func AiComposeToneDefaultArray.Sort(less func(a, b AiComposeToneDefault) bool) AiComposeToneDefaultArray func AiComposeToneDefaultArray.SortStable(less func(a, b AiComposeToneDefault) bool) AiComposeToneDefaultArray
AiComposeToneExample represents TL type `aiComposeToneExample#f1d628ec`. See https://core.telegram.org/constructor/aiComposeToneExample for reference. From field of AiComposeToneExample. To field of AiComposeToneExample. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AiComposeToneExample from given interface. GetFrom returns value of From field. GetTo returns value of To field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AiComposeToneExample) Zero() bool *AiComposeToneExample : github.com/gotd/td/bin.BareDecoder *AiComposeToneExample : github.com/gotd/td/bin.BareEncoder *AiComposeToneExample : github.com/gotd/td/bin.Decoder *AiComposeToneExample : github.com/gotd/td/bin.Encoder *AiComposeToneExample : github.com/gotd/td/bin.Object *AiComposeToneExample : github.com/gotd/td/tdp.Object *AiComposeToneExample : fmt.Stringer func (*AiComposeTone).GetExampleEnglish() (value AiComposeToneExample, ok bool) func (*Client).AicomposeGetToneExample(ctx context.Context, request *AicomposeGetToneExampleRequest) (*AiComposeToneExample, error) func (*AiComposeTone).SetExampleEnglish(value AiComposeToneExample)
AicomposeTones represents TL type `aicompose.tones#6c9d0efe`. See https://core.telegram.org/constructor/aicompose.tones for reference. Hash field of AicomposeTones. Tones field of AicomposeTones. Users field of AicomposeTones. AsModified tries to map AicomposeTones to AicomposeTones. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AicomposeTones from given interface. GetHash returns value of Hash field. GetTones returns value of Tones field. GetUsers returns value of Users field. MapTones returns field Tones wrapped in AiComposeToneClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AicomposeTones) Zero() bool *AicomposeTones : AicomposeTonesClass *AicomposeTones : github.com/gotd/td/bin.BareDecoder *AicomposeTones : github.com/gotd/td/bin.BareEncoder *AicomposeTones : github.com/gotd/td/bin.Decoder *AicomposeTones : github.com/gotd/td/bin.Encoder *AicomposeTones : github.com/gotd/td/bin.Object *AicomposeTones : github.com/gotd/td/tdp.Object *AicomposeTones : fmt.Stringer func (*AicomposeTones).AsModified() (*AicomposeTones, bool) func AicomposeTonesArray.First() (v AicomposeTones, ok bool) func AicomposeTonesArray.Last() (v AicomposeTones, ok bool) func (*AicomposeTonesArray).Pop() (v AicomposeTones, ok bool) func (*AicomposeTonesArray).PopFirst() (v AicomposeTones, ok bool) func AicomposeTonesClass.AsModified() (*AicomposeTones, bool) func AicomposeTonesClassArray.AppendOnlyModified(to []*AicomposeTones) []*AicomposeTones func AicomposeTonesClassArray.AsModified() (to []*AicomposeTones) func AicomposeTonesClassArray.FirstAsModified() (v *AicomposeTones, ok bool) func AicomposeTonesClassArray.LastAsModified() (v *AicomposeTones, ok bool) func (*AicomposeTonesClassArray).PopAsModified() (v *AicomposeTones, ok bool) func (*AicomposeTonesClassArray).PopFirstAsModified() (v *AicomposeTones, ok bool) func (*AicomposeTonesNotModified).AsModified() (*AicomposeTones, bool) func AicomposeTonesClassArray.AppendOnlyModified(to []*AicomposeTones) []*AicomposeTones
AicomposeTonesArray is adapter for slice of AicomposeTones. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AicomposeTones. Sort sorts slice of AicomposeTones. SortStable sorts slice of AicomposeTones. func AicomposeTonesArray.Retain(keep func(x AicomposeTones) bool) AicomposeTonesArray func AicomposeTonesArray.Sort(less func(a, b AicomposeTones) bool) AicomposeTonesArray func AicomposeTonesArray.SortStable(less func(a, b AicomposeTones) bool) AicomposeTonesArray func AicomposeTonesClassArray.AsAicomposeTones() (to AicomposeTonesArray)
AicomposeTones boxes the AicomposeTonesClass providing a helper. Tones AicomposeTonesClass Decode implements bin.Decoder for AicomposeTonesBox. Encode implements bin.Encode for AicomposeTonesBox. *AicomposeTonesBox : github.com/gotd/td/bin.Decoder *AicomposeTonesBox : github.com/gotd/td/bin.Encoder *AicomposeTonesBox : github.com/gotd/td/bin.Object
AicomposeTonesClass represents aicompose.Tones generic type. See https://core.telegram.org/type/aicompose.Tones for reference. Constructors: - [AicomposeTonesNotModified] - [AicomposeTones] Example: g, err := tg.DecodeAicomposeTones(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AicomposeTonesNotModified: // aicompose.tonesNotModified#c1f46103 case *tg.AicomposeTones: // aicompose.tones#6c9d0efe default: panic(v) } AsModified tries to map AicomposeTonesClass to AicomposeTones. ( AicomposeTonesClass) Decode(b *bin.Buffer) error ( AicomposeTonesClass) DecodeBare(b *bin.Buffer) error ( AicomposeTonesClass) Encode(b *bin.Buffer) error ( AicomposeTonesClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AicomposeTones *AicomposeTonesNotModified AicomposeTonesClass : github.com/gotd/td/bin.BareDecoder AicomposeTonesClass : github.com/gotd/td/bin.BareEncoder AicomposeTonesClass : github.com/gotd/td/bin.Decoder AicomposeTonesClass : github.com/gotd/td/bin.Encoder AicomposeTonesClass : github.com/gotd/td/bin.Object AicomposeTonesClass : fmt.Stringer func DecodeAicomposeTones(buf *bin.Buffer) (AicomposeTonesClass, error) func AicomposeTonesClassArray.First() (v AicomposeTonesClass, ok bool) func AicomposeTonesClassArray.Last() (v AicomposeTonesClass, ok bool) func (*AicomposeTonesClassArray).Pop() (v AicomposeTonesClass, ok bool) func (*AicomposeTonesClassArray).PopFirst() (v AicomposeTonesClass, ok bool) func (*Client).AicomposeGetTone(ctx context.Context, tone InputAiComposeToneClass) (AicomposeTonesClass, error) func (*Client).AicomposeGetTones(ctx context.Context, hash int64) (AicomposeTonesClass, error)
AicomposeTonesClassArray is adapter for slice of AicomposeTonesClass. AppendOnlyModified appends only Modified constructors to given slice. AsAicomposeTones returns copy with only AicomposeTones constructors. AsModified returns copy with only Modified constructors. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of AicomposeTonesClass. Sort sorts slice of AicomposeTonesClass. SortStable sorts slice of AicomposeTonesClass. func AicomposeTonesClassArray.Retain(keep func(x AicomposeTonesClass) bool) AicomposeTonesClassArray func AicomposeTonesClassArray.Sort(less func(a, b AicomposeTonesClass) bool) AicomposeTonesClassArray func AicomposeTonesClassArray.SortStable(less func(a, b AicomposeTonesClass) bool) AicomposeTonesClassArray
AiComposeTonesHandler is a AiComposeTones event handler. func UpdateDispatcher.OnAiComposeTones(handler AiComposeTonesHandler)
AicomposeTonesNotModified represents TL type `aicompose.tonesNotModified#c1f46103`. See https://core.telegram.org/constructor/aicompose.tonesNotModified for reference. AsModified tries to map AicomposeTonesNotModified to AicomposeTones. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AicomposeTonesNotModified) Zero() bool *AicomposeTonesNotModified : AicomposeTonesClass *AicomposeTonesNotModified : github.com/gotd/td/bin.BareDecoder *AicomposeTonesNotModified : github.com/gotd/td/bin.BareEncoder *AicomposeTonesNotModified : github.com/gotd/td/bin.Decoder *AicomposeTonesNotModified : github.com/gotd/td/bin.Encoder *AicomposeTonesNotModified : github.com/gotd/td/bin.Object *AicomposeTonesNotModified : github.com/gotd/td/tdp.Object *AicomposeTonesNotModified : fmt.Stringer
AicomposeUpdateToneRequest represents TL type `aicompose.updateTone#903bcf59`. See https://core.telegram.org/method/aicompose.updateTone for reference. DisplayAuthor field of AicomposeUpdateToneRequest. Use SetDisplayAuthor and GetDisplayAuthor helpers. EmojiID field of AicomposeUpdateToneRequest. Use SetEmojiID and GetEmojiID helpers. Flags field of AicomposeUpdateToneRequest. Prompt field of AicomposeUpdateToneRequest. Use SetPrompt and GetPrompt helpers. Title field of AicomposeUpdateToneRequest. Use SetTitle and GetTitle helpers. Tone field of AicomposeUpdateToneRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AicomposeUpdateToneRequest from given interface. GetDisplayAuthor returns value of DisplayAuthor conditional field and boolean which is true if field was set. GetEmojiID returns value of EmojiID conditional field and boolean which is true if field was set. GetPrompt returns value of Prompt conditional field and boolean which is true if field was set. GetTitle returns value of Title conditional field and boolean which is true if field was set. GetTone returns value of Tone field. SetDisplayAuthor sets value of DisplayAuthor conditional field. SetEmojiID sets value of EmojiID conditional field. SetFlags sets flags for non-zero fields. SetPrompt sets value of Prompt conditional field. SetTitle sets value of Title conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AicomposeUpdateToneRequest) Zero() bool *AicomposeUpdateToneRequest : github.com/gotd/td/bin.BareDecoder *AicomposeUpdateToneRequest : github.com/gotd/td/bin.BareEncoder *AicomposeUpdateToneRequest : github.com/gotd/td/bin.Decoder *AicomposeUpdateToneRequest : github.com/gotd/td/bin.Encoder *AicomposeUpdateToneRequest : github.com/gotd/td/bin.Object *AicomposeUpdateToneRequest : github.com/gotd/td/tdp.Object *AicomposeUpdateToneRequest : fmt.Stringer func (*Client).AicomposeUpdateTone(ctx context.Context, request *AicomposeUpdateToneRequest) (AiComposeToneClass, error)
AttachMenuBot represents TL type `attachMenuBot#d90d8dfe`. Represents a bot mini app that can be launched from the attachment/side menu »¹ At least one of the show_in_attach_menu or the show_in_side_menu flags will always be set. Links: 1. https://core.telegram.org/api/bots/attach See https://core.telegram.org/constructor/attachMenuBot for reference. Bot ID Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Deprecated flag, can be ignored. List of platform-specific static icons and animations to use for the attachment menu button If set, before launching the mini app the client should ask the user to add the mini app to the attachment/side menu, and only if the user accepts, after invoking messages toggleBotInAttachMenu¹ the app should be opened. Links: 1) https://core.telegram.org/method/messages.toggleBotInAttachMenu List of dialog types where this attachment menu entry should be shown Use SetPeerTypes and GetPeerTypes helpers. Whether the bot would like to send messages to the user. Attachment menu item name Whether, when installed, an attachment menu entry should be shown for the Mini App. Whether, when installed, an entry in the main view side menu should be shown for the Mini App. If inactive if set and the user hasn't previously accepted the third-party mini apps Terms of Service¹ for this bot, when showing the mini app installation prompt, an additional mandatory checkbox to accept the mini apps TOS² and a disclaimer indicating that this Mini App is not affiliated to Telegram should be shown. Links: 1) https://telegram.org/tos/mini-apps 2) https://telegram.org/tos/mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AttachMenuBot from given interface. GetBotID returns value of BotID field. GetHasSettings returns value of HasSettings conditional field. GetIcons returns value of Icons field. GetInactive returns value of Inactive conditional field. GetPeerTypes returns value of PeerTypes conditional field and boolean which is true if field was set. GetRequestWriteAccess returns value of RequestWriteAccess conditional field. GetShortName returns value of ShortName field. GetShowInAttachMenu returns value of ShowInAttachMenu conditional field. GetShowInSideMenu returns value of ShowInSideMenu conditional field. GetSideMenuDisclaimerNeeded returns value of SideMenuDisclaimerNeeded conditional field. MapPeerTypes returns field PeerTypes wrapped in AttachMenuPeerTypeClassArray helper. SetFlags sets flags for non-zero fields. SetHasSettings sets value of HasSettings conditional field. SetInactive sets value of Inactive conditional field. SetPeerTypes sets value of PeerTypes conditional field. SetRequestWriteAccess sets value of RequestWriteAccess conditional field. SetShowInAttachMenu sets value of ShowInAttachMenu conditional field. SetShowInSideMenu sets value of ShowInSideMenu conditional field. SetSideMenuDisclaimerNeeded sets value of SideMenuDisclaimerNeeded conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuBot) Zero() bool *AttachMenuBot : github.com/gotd/td/bin.BareDecoder *AttachMenuBot : github.com/gotd/td/bin.BareEncoder *AttachMenuBot : github.com/gotd/td/bin.Decoder *AttachMenuBot : github.com/gotd/td/bin.Encoder *AttachMenuBot : github.com/gotd/td/bin.Object *AttachMenuBot : github.com/gotd/td/tdp.Object *AttachMenuBot : fmt.Stringer func (*AttachMenuBots).GetBots() (value []AttachMenuBot) func (*AttachMenuBotsBot).GetBot() (value AttachMenuBot)
AttachMenuBotIcon represents TL type `attachMenuBotIcon#b2a7386b`. Represents an attachment menu icon for bot mini apps »¹ Links: 1. https://core.telegram.org/api/bots/attach See https://core.telegram.org/constructor/attachMenuBotIcon for reference. Attachment menu icon colors. Use SetColors and GetColors helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The actual icon file. One of the following values: note that animated icons must be played when the user clicks on the button, activating the bot mini app. default_static - Default attachment menu icon in SVG format placeholder_static - Default placeholder for opened Web Apps in SVG format ios_static - Attachment menu icon in SVG format for the official iOS app ios_animated - Animated attachment menu icon in TGS format for the official iOS app android_animated - Animated attachment menu icon in TGS format for the official Android app macos_animated - Animated attachment menu icon in TGS format for the official native Mac OS app ios_side_menu_static - Side menu icon in PNG format for the official iOS app android_side_menu_static - Side menu icon in SVG format for the official android app macos_side_menu_static - Side menu icon in PNG format for the official native Mac OS app Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AttachMenuBotIcon from given interface. GetColors returns value of Colors conditional field and boolean which is true if field was set. GetIcon returns value of Icon field. GetIconAsNotEmpty returns mapped value of Icon field. GetName returns value of Name field. SetColors sets value of Colors conditional field. SetFlags sets flags for non-zero fields. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuBotIcon) Zero() bool *AttachMenuBotIcon : github.com/gotd/td/bin.BareDecoder *AttachMenuBotIcon : github.com/gotd/td/bin.BareEncoder *AttachMenuBotIcon : github.com/gotd/td/bin.Decoder *AttachMenuBotIcon : github.com/gotd/td/bin.Encoder *AttachMenuBotIcon : github.com/gotd/td/bin.Object *AttachMenuBotIcon : github.com/gotd/td/tdp.Object *AttachMenuBotIcon : fmt.Stringer func (*AttachMenuBot).GetIcons() (value []AttachMenuBotIcon)
AttachMenuBotIconColor represents TL type `attachMenuBotIconColor#4576f3f0`. Represents an attachment menu icon color for bot mini apps »¹ Links: 1. https://core.telegram.org/api/bots/attach See https://core.telegram.org/constructor/attachMenuBotIconColor for reference. Color in RGB24 format One of the following values: light_icon - Color of the attachment menu icon (light mode) light_text - Color of the attachment menu label, once selected (light mode) dark_icon - Color of the attachment menu icon (dark mode) dark_text - Color of the attachment menu label, once selected (dark mode) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AttachMenuBotIconColor from given interface. GetColor returns value of Color field. GetName returns value of Name field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuBotIconColor) Zero() bool *AttachMenuBotIconColor : github.com/gotd/td/bin.BareDecoder *AttachMenuBotIconColor : github.com/gotd/td/bin.BareEncoder *AttachMenuBotIconColor : github.com/gotd/td/bin.Decoder *AttachMenuBotIconColor : github.com/gotd/td/bin.Encoder *AttachMenuBotIconColor : github.com/gotd/td/bin.Object *AttachMenuBotIconColor : github.com/gotd/td/tdp.Object *AttachMenuBotIconColor : fmt.Stringer func (*AttachMenuBotIcon).GetColors() (value []AttachMenuBotIconColor, ok bool) func (*AttachMenuBotIcon).SetColors(value []AttachMenuBotIconColor)
AttachMenuBots represents TL type `attachMenuBots#3c4301c0`. Represents a list of bot mini apps that can be launched from the attachment menu »¹ Links: 1. https://core.telegram.org/api/bots/attach See https://core.telegram.org/constructor/attachMenuBots for reference. List of bot mini apps that can be launched from the attachment menu »¹ Links: 1) https://core.telegram.org/api/bots/attach Hash used for caching, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Info about related users/bots AsModified tries to map AttachMenuBots to AttachMenuBots. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AttachMenuBots from given interface. GetBots returns value of Bots field. GetHash returns value of Hash field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in UserClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuBots) Zero() bool *AttachMenuBots : AttachMenuBotsClass *AttachMenuBots : github.com/gotd/td/bin.BareDecoder *AttachMenuBots : github.com/gotd/td/bin.BareEncoder *AttachMenuBots : github.com/gotd/td/bin.Decoder *AttachMenuBots : github.com/gotd/td/bin.Encoder *AttachMenuBots : github.com/gotd/td/bin.Object *AttachMenuBots : github.com/gotd/td/tdp.Object *AttachMenuBots : fmt.Stringer func (*AttachMenuBots).AsModified() (*AttachMenuBots, bool) func AttachMenuBotsArray.First() (v AttachMenuBots, ok bool) func AttachMenuBotsArray.Last() (v AttachMenuBots, ok bool) func (*AttachMenuBotsArray).Pop() (v AttachMenuBots, ok bool) func (*AttachMenuBotsArray).PopFirst() (v AttachMenuBots, ok bool) func AttachMenuBotsClass.AsModified() (*AttachMenuBots, bool) func AttachMenuBotsClassArray.AppendOnlyModified(to []*AttachMenuBots) []*AttachMenuBots func AttachMenuBotsClassArray.AsModified() (to []*AttachMenuBots) func AttachMenuBotsClassArray.FirstAsModified() (v *AttachMenuBots, ok bool) func AttachMenuBotsClassArray.LastAsModified() (v *AttachMenuBots, ok bool) func (*AttachMenuBotsClassArray).PopAsModified() (v *AttachMenuBots, ok bool) func (*AttachMenuBotsClassArray).PopFirstAsModified() (v *AttachMenuBots, ok bool) func (*AttachMenuBotsNotModified).AsModified() (*AttachMenuBots, bool) func AttachMenuBotsClassArray.AppendOnlyModified(to []*AttachMenuBots) []*AttachMenuBots
AttachMenuBotsArray is adapter for slice of AttachMenuBots. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AttachMenuBots. Sort sorts slice of AttachMenuBots. SortStable sorts slice of AttachMenuBots. func AttachMenuBotsArray.Retain(keep func(x AttachMenuBots) bool) AttachMenuBotsArray func AttachMenuBotsArray.Sort(less func(a, b AttachMenuBots) bool) AttachMenuBotsArray func AttachMenuBotsArray.SortStable(less func(a, b AttachMenuBots) bool) AttachMenuBotsArray func AttachMenuBotsClassArray.AsAttachMenuBots() (to AttachMenuBotsArray)
AttachMenuBotsBot represents TL type `attachMenuBotsBot#93bf667f`. Represents a bot mini app that can be launched from the attachment menu »¹ Links: 1. https://core.telegram.org/api/bots/attach See https://core.telegram.org/constructor/attachMenuBotsBot for reference. Represents a bot mini app that can be launched from the attachment menu »¹ Links: 1) https://core.telegram.org/api/bots/attach Info about related users and bots Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AttachMenuBotsBot from given interface. GetBot returns value of Bot field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in UserClassArray helper. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuBotsBot) Zero() bool *AttachMenuBotsBot : github.com/gotd/td/bin.BareDecoder *AttachMenuBotsBot : github.com/gotd/td/bin.BareEncoder *AttachMenuBotsBot : github.com/gotd/td/bin.Decoder *AttachMenuBotsBot : github.com/gotd/td/bin.Encoder *AttachMenuBotsBot : github.com/gotd/td/bin.Object *AttachMenuBotsBot : github.com/gotd/td/tdp.Object *AttachMenuBotsBot : fmt.Stringer func (*Client).MessagesGetAttachMenuBot(ctx context.Context, bot InputUserClass) (*AttachMenuBotsBot, error)
AttachMenuBots boxes the AttachMenuBotsClass providing a helper. AttachMenuBots AttachMenuBotsClass Decode implements bin.Decoder for AttachMenuBotsBox. Encode implements bin.Encode for AttachMenuBotsBox. *AttachMenuBotsBox : github.com/gotd/td/bin.Decoder *AttachMenuBotsBox : github.com/gotd/td/bin.Encoder *AttachMenuBotsBox : github.com/gotd/td/bin.Object
AttachMenuBotsClass represents AttachMenuBots generic type. See https://core.telegram.org/type/AttachMenuBots for reference. Constructors: - [AttachMenuBotsNotModified] - [AttachMenuBots] Example: g, err := tg.DecodeAttachMenuBots(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AttachMenuBotsNotModified: // attachMenuBotsNotModified#f1d88a5c case *tg.AttachMenuBots: // attachMenuBots#3c4301c0 default: panic(v) } AsModified tries to map AttachMenuBotsClass to AttachMenuBots. ( AttachMenuBotsClass) Decode(b *bin.Buffer) error ( AttachMenuBotsClass) DecodeBare(b *bin.Buffer) error ( AttachMenuBotsClass) Encode(b *bin.Buffer) error ( AttachMenuBotsClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AttachMenuBots *AttachMenuBotsNotModified AttachMenuBotsClass : github.com/gotd/td/bin.BareDecoder AttachMenuBotsClass : github.com/gotd/td/bin.BareEncoder AttachMenuBotsClass : github.com/gotd/td/bin.Decoder AttachMenuBotsClass : github.com/gotd/td/bin.Encoder AttachMenuBotsClass : github.com/gotd/td/bin.Object AttachMenuBotsClass : fmt.Stringer func DecodeAttachMenuBots(buf *bin.Buffer) (AttachMenuBotsClass, error) func AttachMenuBotsClassArray.First() (v AttachMenuBotsClass, ok bool) func AttachMenuBotsClassArray.Last() (v AttachMenuBotsClass, ok bool) func (*AttachMenuBotsClassArray).Pop() (v AttachMenuBotsClass, ok bool) func (*AttachMenuBotsClassArray).PopFirst() (v AttachMenuBotsClass, ok bool) func (*Client).MessagesGetAttachMenuBots(ctx context.Context, hash int64) (AttachMenuBotsClass, error)
AttachMenuBotsClassArray is adapter for slice of AttachMenuBotsClass. AppendOnlyModified appends only Modified constructors to given slice. AsAttachMenuBots returns copy with only AttachMenuBots constructors. AsModified returns copy with only Modified constructors. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of AttachMenuBotsClass. Sort sorts slice of AttachMenuBotsClass. SortStable sorts slice of AttachMenuBotsClass. func AttachMenuBotsClassArray.Retain(keep func(x AttachMenuBotsClass) bool) AttachMenuBotsClassArray func AttachMenuBotsClassArray.Sort(less func(a, b AttachMenuBotsClass) bool) AttachMenuBotsClassArray func AttachMenuBotsClassArray.SortStable(less func(a, b AttachMenuBotsClass) bool) AttachMenuBotsClassArray
AttachMenuBotsHandler is a AttachMenuBots event handler. func UpdateDispatcher.OnAttachMenuBots(handler AttachMenuBotsHandler)
AttachMenuBotsNotModified represents TL type `attachMenuBotsNotModified#f1d88a5c`. The list of bot mini apps hasn't changed See https://core.telegram.org/constructor/attachMenuBotsNotModified for reference. AsModified tries to map AttachMenuBotsNotModified to AttachMenuBots. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuBotsNotModified) Zero() bool *AttachMenuBotsNotModified : AttachMenuBotsClass *AttachMenuBotsNotModified : github.com/gotd/td/bin.BareDecoder *AttachMenuBotsNotModified : github.com/gotd/td/bin.BareEncoder *AttachMenuBotsNotModified : github.com/gotd/td/bin.Decoder *AttachMenuBotsNotModified : github.com/gotd/td/bin.Encoder *AttachMenuBotsNotModified : github.com/gotd/td/bin.Object *AttachMenuBotsNotModified : github.com/gotd/td/tdp.Object *AttachMenuBotsNotModified : fmt.Stringer
AttachMenuPeerTypeBotPM represents TL type `attachMenuPeerTypeBotPM#c32bfa1a`. The bot attachment menu entry is available in private chats with other bots (excluding the bot that offers the current attachment menu) See https://core.telegram.org/constructor/attachMenuPeerTypeBotPM for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuPeerTypeBotPM) Zero() bool *AttachMenuPeerTypeBotPM : AttachMenuPeerTypeClass *AttachMenuPeerTypeBotPM : github.com/gotd/td/bin.BareDecoder *AttachMenuPeerTypeBotPM : github.com/gotd/td/bin.BareEncoder *AttachMenuPeerTypeBotPM : github.com/gotd/td/bin.Decoder *AttachMenuPeerTypeBotPM : github.com/gotd/td/bin.Encoder *AttachMenuPeerTypeBotPM : github.com/gotd/td/bin.Object *AttachMenuPeerTypeBotPM : github.com/gotd/td/tdp.Object *AttachMenuPeerTypeBotPM : fmt.Stringer
AttachMenuPeerType boxes the AttachMenuPeerTypeClass providing a helper. AttachMenuPeerType AttachMenuPeerTypeClass Decode implements bin.Decoder for AttachMenuPeerTypeBox. Encode implements bin.Encode for AttachMenuPeerTypeBox. *AttachMenuPeerTypeBox : github.com/gotd/td/bin.Decoder *AttachMenuPeerTypeBox : github.com/gotd/td/bin.Encoder *AttachMenuPeerTypeBox : github.com/gotd/td/bin.Object
AttachMenuPeerTypeBroadcast represents TL type `attachMenuPeerTypeBroadcast#7bfbdefc`. The bot attachment menu entry is available in channels See https://core.telegram.org/constructor/attachMenuPeerTypeBroadcast for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuPeerTypeBroadcast) Zero() bool *AttachMenuPeerTypeBroadcast : AttachMenuPeerTypeClass *AttachMenuPeerTypeBroadcast : github.com/gotd/td/bin.BareDecoder *AttachMenuPeerTypeBroadcast : github.com/gotd/td/bin.BareEncoder *AttachMenuPeerTypeBroadcast : github.com/gotd/td/bin.Decoder *AttachMenuPeerTypeBroadcast : github.com/gotd/td/bin.Encoder *AttachMenuPeerTypeBroadcast : github.com/gotd/td/bin.Object *AttachMenuPeerTypeBroadcast : github.com/gotd/td/tdp.Object *AttachMenuPeerTypeBroadcast : fmt.Stringer
AttachMenuPeerTypeChat represents TL type `attachMenuPeerTypeChat#509113f`. The bot attachment menu entry is available in groups and supergroups¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/attachMenuPeerTypeChat for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuPeerTypeChat) Zero() bool *AttachMenuPeerTypeChat : AttachMenuPeerTypeClass *AttachMenuPeerTypeChat : github.com/gotd/td/bin.BareDecoder *AttachMenuPeerTypeChat : github.com/gotd/td/bin.BareEncoder *AttachMenuPeerTypeChat : github.com/gotd/td/bin.Decoder *AttachMenuPeerTypeChat : github.com/gotd/td/bin.Encoder *AttachMenuPeerTypeChat : github.com/gotd/td/bin.Object *AttachMenuPeerTypeChat : github.com/gotd/td/tdp.Object *AttachMenuPeerTypeChat : fmt.Stringer
AttachMenuPeerTypeClass represents AttachMenuPeerType generic type. See https://core.telegram.org/type/AttachMenuPeerType for reference. Constructors: - [AttachMenuPeerTypeSameBotPM] - [AttachMenuPeerTypeBotPM] - [AttachMenuPeerTypePM] - [AttachMenuPeerTypeChat] - [AttachMenuPeerTypeBroadcast] Example: g, err := tg.DecodeAttachMenuPeerType(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AttachMenuPeerTypeSameBotPM: // attachMenuPeerTypeSameBotPM#7d6be90e case *tg.AttachMenuPeerTypeBotPM: // attachMenuPeerTypeBotPM#c32bfa1a case *tg.AttachMenuPeerTypePM: // attachMenuPeerTypePM#f146d31f case *tg.AttachMenuPeerTypeChat: // attachMenuPeerTypeChat#509113f case *tg.AttachMenuPeerTypeBroadcast: // attachMenuPeerTypeBroadcast#7bfbdefc default: panic(v) } ( AttachMenuPeerTypeClass) Decode(b *bin.Buffer) error ( AttachMenuPeerTypeClass) DecodeBare(b *bin.Buffer) error ( AttachMenuPeerTypeClass) Encode(b *bin.Buffer) error ( AttachMenuPeerTypeClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AttachMenuPeerTypeBotPM *AttachMenuPeerTypeBroadcast *AttachMenuPeerTypeChat *AttachMenuPeerTypePM *AttachMenuPeerTypeSameBotPM AttachMenuPeerTypeClass : github.com/gotd/td/bin.BareDecoder AttachMenuPeerTypeClass : github.com/gotd/td/bin.BareEncoder AttachMenuPeerTypeClass : github.com/gotd/td/bin.Decoder AttachMenuPeerTypeClass : github.com/gotd/td/bin.Encoder AttachMenuPeerTypeClass : github.com/gotd/td/bin.Object AttachMenuPeerTypeClass : fmt.Stringer func DecodeAttachMenuPeerType(buf *bin.Buffer) (AttachMenuPeerTypeClass, error) func (*AttachMenuBot).GetPeerTypes() (value []AttachMenuPeerTypeClass, ok bool) func AttachMenuPeerTypeClassArray.First() (v AttachMenuPeerTypeClass, ok bool) func AttachMenuPeerTypeClassArray.Last() (v AttachMenuPeerTypeClass, ok bool) func (*AttachMenuPeerTypeClassArray).Pop() (v AttachMenuPeerTypeClass, ok bool) func (*AttachMenuPeerTypeClassArray).PopFirst() (v AttachMenuPeerTypeClass, ok bool) func (*AttachMenuBot).SetPeerTypes(value []AttachMenuPeerTypeClass)
AttachMenuPeerTypeClassArray is adapter for slice of AttachMenuPeerTypeClass. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AttachMenuPeerTypeClass. Sort sorts slice of AttachMenuPeerTypeClass. SortStable sorts slice of AttachMenuPeerTypeClass. func (*AttachMenuBot).MapPeerTypes() (value AttachMenuPeerTypeClassArray, ok bool) func AttachMenuPeerTypeClassArray.Retain(keep func(x AttachMenuPeerTypeClass) bool) AttachMenuPeerTypeClassArray func AttachMenuPeerTypeClassArray.Sort(less func(a, b AttachMenuPeerTypeClass) bool) AttachMenuPeerTypeClassArray func AttachMenuPeerTypeClassArray.SortStable(less func(a, b AttachMenuPeerTypeClass) bool) AttachMenuPeerTypeClassArray
AttachMenuPeerTypePM represents TL type `attachMenuPeerTypePM#f146d31f`. The bot attachment menu entry is available in private chats with other users (not bots) See https://core.telegram.org/constructor/attachMenuPeerTypePM for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuPeerTypePM) Zero() bool *AttachMenuPeerTypePM : AttachMenuPeerTypeClass *AttachMenuPeerTypePM : github.com/gotd/td/bin.BareDecoder *AttachMenuPeerTypePM : github.com/gotd/td/bin.BareEncoder *AttachMenuPeerTypePM : github.com/gotd/td/bin.Decoder *AttachMenuPeerTypePM : github.com/gotd/td/bin.Encoder *AttachMenuPeerTypePM : github.com/gotd/td/bin.Object *AttachMenuPeerTypePM : github.com/gotd/td/tdp.Object *AttachMenuPeerTypePM : fmt.Stringer
AttachMenuPeerTypeSameBotPM represents TL type `attachMenuPeerTypeSameBotPM#7d6be90e`. The bot attachment menu entry is available in the chat with the bot that offers it See https://core.telegram.org/constructor/attachMenuPeerTypeSameBotPM for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AttachMenuPeerTypeSameBotPM) Zero() bool *AttachMenuPeerTypeSameBotPM : AttachMenuPeerTypeClass *AttachMenuPeerTypeSameBotPM : github.com/gotd/td/bin.BareDecoder *AttachMenuPeerTypeSameBotPM : github.com/gotd/td/bin.BareEncoder *AttachMenuPeerTypeSameBotPM : github.com/gotd/td/bin.Decoder *AttachMenuPeerTypeSameBotPM : github.com/gotd/td/bin.Encoder *AttachMenuPeerTypeSameBotPM : github.com/gotd/td/bin.Object *AttachMenuPeerTypeSameBotPM : github.com/gotd/td/tdp.Object *AttachMenuPeerTypeSameBotPM : fmt.Stringer
AuctionBidLevel represents TL type `auctionBidLevel#310240cc`. Describes a bid in an auction¹. Links: 1. https://core.telegram.org/api/auctions See https://core.telegram.org/constructor/auctionBidLevel for reference. Amount of the bid in Telegram Stars¹. Links: 1) https://core.telegram.org/api/stars Date when the bid was placed. Position of the bid. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuctionBidLevel from given interface. GetAmount returns value of Amount field. GetDate returns value of Date field. GetPos returns value of Pos field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuctionBidLevel) Zero() bool *AuctionBidLevel : github.com/gotd/td/bin.BareDecoder *AuctionBidLevel : github.com/gotd/td/bin.BareEncoder *AuctionBidLevel : github.com/gotd/td/bin.Decoder *AuctionBidLevel : github.com/gotd/td/bin.Encoder *AuctionBidLevel : github.com/gotd/td/bin.Object *AuctionBidLevel : github.com/gotd/td/tdp.Object *AuctionBidLevel : fmt.Stringer func (*StarGiftAuctionState).GetBidLevels() (value []AuctionBidLevel)
AuthAcceptLoginTokenRequest represents TL type `auth.acceptLoginToken#e894ad4d`. Accept QR code login token, logging in the app that generated it. Returns info about the new session. For more info, see login via QR code¹. Links: 1. https://core.telegram.org/api/qr-login See https://core.telegram.org/method/auth.acceptLoginToken for reference. Login token embedded in QR code, for more info, see login via QR code¹. Links: 1) https://core.telegram.org/api/qr-login Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthAcceptLoginTokenRequest from given interface. GetToken returns value of Token field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthAcceptLoginTokenRequest) Zero() bool *AuthAcceptLoginTokenRequest : github.com/gotd/td/bin.BareDecoder *AuthAcceptLoginTokenRequest : github.com/gotd/td/bin.BareEncoder *AuthAcceptLoginTokenRequest : github.com/gotd/td/bin.Decoder *AuthAcceptLoginTokenRequest : github.com/gotd/td/bin.Encoder *AuthAcceptLoginTokenRequest : github.com/gotd/td/bin.Object *AuthAcceptLoginTokenRequest : github.com/gotd/td/tdp.Object *AuthAcceptLoginTokenRequest : fmt.Stringer
AuthAuthorization represents TL type `auth.authorization#2ea2c0d4`. Contains user authorization info. See https://core.telegram.org/constructor/auth.authorization for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields A future auth token¹ Links: 1) https://core.telegram.org/api/auth#future-auth-tokens Use SetFutureAuthToken and GetFutureAuthToken helpers. If and only if setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass. Use SetOtherwiseReloginDays and GetOtherwiseReloginDays helpers. Suggests the user to set up a 2-step verification password to be able to log in again Temporary passport¹ sessions Links: 1) https://core.telegram.org/passport Use SetTmpSessions and GetTmpSessions helpers. Info on authorized user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthAuthorization from given interface. GetFutureAuthToken returns value of FutureAuthToken conditional field and boolean which is true if field was set. GetOtherwiseReloginDays returns value of OtherwiseReloginDays conditional field and boolean which is true if field was set. GetSetupPasswordRequired returns value of SetupPasswordRequired conditional field. GetTmpSessions returns value of TmpSessions conditional field and boolean which is true if field was set. GetUser returns value of User field. SetFlags sets flags for non-zero fields. SetFutureAuthToken sets value of FutureAuthToken conditional field. SetOtherwiseReloginDays sets value of OtherwiseReloginDays conditional field. SetSetupPasswordRequired sets value of SetupPasswordRequired conditional field. SetTmpSessions sets value of TmpSessions conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthAuthorization) Zero() bool *AuthAuthorization : AuthAuthorizationClass *AuthAuthorization : github.com/gotd/td/bin.BareDecoder *AuthAuthorization : github.com/gotd/td/bin.BareEncoder *AuthAuthorization : github.com/gotd/td/bin.Decoder *AuthAuthorization : github.com/gotd/td/bin.Encoder *AuthAuthorization : github.com/gotd/td/bin.Object *AuthAuthorization : github.com/gotd/td/tdp.Object *AuthAuthorization : fmt.Stringer func AuthAuthorizationArray.First() (v AuthAuthorization, ok bool) func AuthAuthorizationArray.Last() (v AuthAuthorization, ok bool) func (*AuthAuthorizationArray).Pop() (v AuthAuthorization, ok bool) func (*AuthAuthorizationArray).PopFirst() (v AuthAuthorization, ok bool) func github.com/gotd/td/telegram/auth.(*Client).Bot(ctx context.Context, token string) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth.(*Client).Password(ctx context.Context, password string) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth.(*Client).PasswordWith(ctx context.Context, hash auth.PasswordHashFunc) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth.(*Client).RecoverPassword(ctx context.Context, opts auth.RecoverPasswordOptions) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth.(*Client).SignIn(ctx context.Context, phone, code, codeHash string) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth.(*Client).SignUp(ctx context.Context, s auth.SignUp) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth.FlowClient.Password(ctx context.Context, password string) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth.FlowClient.SignIn(ctx context.Context, phone, code, codeHash string) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth.FlowClient.SignUp(ctx context.Context, s auth.SignUp) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth/qrlogin.QR.Auth(ctx context.Context, loggedIn qrlogin.LoggedIn, show func(ctx context.Context, token qrlogin.Token) error, exceptIDs ...int64) (*AuthAuthorization, error) func github.com/gotd/td/telegram/auth/qrlogin.QR.Import(ctx context.Context) (*AuthAuthorization, error)
AuthAuthorizationArray is adapter for slice of AuthAuthorization. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthAuthorization. Sort sorts slice of AuthAuthorization. SortStable sorts slice of AuthAuthorization. func AuthAuthorizationArray.Retain(keep func(x AuthAuthorization) bool) AuthAuthorizationArray func AuthAuthorizationArray.Sort(less func(a, b AuthAuthorization) bool) AuthAuthorizationArray func AuthAuthorizationArray.SortStable(less func(a, b AuthAuthorization) bool) AuthAuthorizationArray func AuthAuthorizationClassArray.AsAuthAuthorization() (to AuthAuthorizationArray)
AuthAuthorization boxes the AuthAuthorizationClass providing a helper. Authorization AuthAuthorizationClass Decode implements bin.Decoder for AuthAuthorizationBox. Encode implements bin.Encode for AuthAuthorizationBox. *AuthAuthorizationBox : github.com/gotd/td/bin.Decoder *AuthAuthorizationBox : github.com/gotd/td/bin.Encoder *AuthAuthorizationBox : github.com/gotd/td/bin.Object
AuthAuthorizationClass represents auth.Authorization generic type. See https://core.telegram.org/type/auth.Authorization for reference. Constructors: - [AuthAuthorization] - [AuthAuthorizationSignUpRequired] Example: g, err := tg.DecodeAuthAuthorization(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AuthAuthorization: // auth.authorization#2ea2c0d4 case *tg.AuthAuthorizationSignUpRequired: // auth.authorizationSignUpRequired#44747e9a default: panic(v) } ( AuthAuthorizationClass) Decode(b *bin.Buffer) error ( AuthAuthorizationClass) DecodeBare(b *bin.Buffer) error ( AuthAuthorizationClass) Encode(b *bin.Buffer) error ( AuthAuthorizationClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AuthAuthorization *AuthAuthorizationSignUpRequired AuthAuthorizationClass : github.com/gotd/td/bin.BareDecoder AuthAuthorizationClass : github.com/gotd/td/bin.BareEncoder AuthAuthorizationClass : github.com/gotd/td/bin.Decoder AuthAuthorizationClass : github.com/gotd/td/bin.Encoder AuthAuthorizationClass : github.com/gotd/td/bin.Object AuthAuthorizationClass : fmt.Stringer func DecodeAuthAuthorization(buf *bin.Buffer) (AuthAuthorizationClass, error) func AuthAuthorizationClassArray.First() (v AuthAuthorizationClass, ok bool) func AuthAuthorizationClassArray.Last() (v AuthAuthorizationClass, ok bool) func (*AuthAuthorizationClassArray).Pop() (v AuthAuthorizationClass, ok bool) func (*AuthAuthorizationClassArray).PopFirst() (v AuthAuthorizationClass, ok bool) func (*AuthLoginTokenSuccess).GetAuthorization() (value AuthAuthorizationClass) func (*AuthSentCodeSuccess).GetAuthorization() (value AuthAuthorizationClass) func (*Client).AuthCheckPassword(ctx context.Context, password InputCheckPasswordSRPClass) (AuthAuthorizationClass, error) func (*Client).AuthFinishPasskeyLogin(ctx context.Context, request *AuthFinishPasskeyLoginRequest) (AuthAuthorizationClass, error) func (*Client).AuthImportAuthorization(ctx context.Context, request *AuthImportAuthorizationRequest) (AuthAuthorizationClass, error) func (*Client).AuthImportBotAuthorization(ctx context.Context, request *AuthImportBotAuthorizationRequest) (AuthAuthorizationClass, error) func (*Client).AuthImportWebTokenAuthorization(ctx context.Context, request *AuthImportWebTokenAuthorizationRequest) (AuthAuthorizationClass, error) func (*Client).AuthRecoverPassword(ctx context.Context, request *AuthRecoverPasswordRequest) (AuthAuthorizationClass, error) func (*Client).AuthSignIn(ctx context.Context, request *AuthSignInRequest) (AuthAuthorizationClass, error) func (*Client).AuthSignUp(ctx context.Context, request *AuthSignUpRequest) (AuthAuthorizationClass, error)
AuthAuthorizationClassArray is adapter for slice of AuthAuthorizationClass. AsAuthAuthorization returns copy with only AuthAuthorization constructors. AsAuthAuthorizationSignUpRequired returns copy with only AuthAuthorizationSignUpRequired constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthAuthorizationClass. Sort sorts slice of AuthAuthorizationClass. SortStable sorts slice of AuthAuthorizationClass. func AuthAuthorizationClassArray.Retain(keep func(x AuthAuthorizationClass) bool) AuthAuthorizationClassArray func AuthAuthorizationClassArray.Sort(less func(a, b AuthAuthorizationClass) bool) AuthAuthorizationClassArray func AuthAuthorizationClassArray.SortStable(less func(a, b AuthAuthorizationClass) bool) AuthAuthorizationClassArray
AuthAuthorizationSignUpRequired represents TL type `auth.authorizationSignUpRequired#44747e9a`. An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up¹ Links: 1. https://core.telegram.org/api/auth See https://core.telegram.org/constructor/auth.authorizationSignUpRequired for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Telegram's terms of service: the user must read and accept the terms of service before signing up to telegram Use SetTermsOfService and GetTermsOfService helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthAuthorizationSignUpRequired from given interface. GetTermsOfService returns value of TermsOfService conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTermsOfService sets value of TermsOfService conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthAuthorizationSignUpRequired) Zero() bool *AuthAuthorizationSignUpRequired : AuthAuthorizationClass *AuthAuthorizationSignUpRequired : github.com/gotd/td/bin.BareDecoder *AuthAuthorizationSignUpRequired : github.com/gotd/td/bin.BareEncoder *AuthAuthorizationSignUpRequired : github.com/gotd/td/bin.Decoder *AuthAuthorizationSignUpRequired : github.com/gotd/td/bin.Encoder *AuthAuthorizationSignUpRequired : github.com/gotd/td/bin.Object *AuthAuthorizationSignUpRequired : github.com/gotd/td/tdp.Object *AuthAuthorizationSignUpRequired : fmt.Stringer func AuthAuthorizationSignUpRequiredArray.First() (v AuthAuthorizationSignUpRequired, ok bool) func AuthAuthorizationSignUpRequiredArray.Last() (v AuthAuthorizationSignUpRequired, ok bool) func (*AuthAuthorizationSignUpRequiredArray).Pop() (v AuthAuthorizationSignUpRequired, ok bool) func (*AuthAuthorizationSignUpRequiredArray).PopFirst() (v AuthAuthorizationSignUpRequired, ok bool)
AuthAuthorizationSignUpRequiredArray is adapter for slice of AuthAuthorizationSignUpRequired. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthAuthorizationSignUpRequired. Sort sorts slice of AuthAuthorizationSignUpRequired. SortStable sorts slice of AuthAuthorizationSignUpRequired. func AuthAuthorizationClassArray.AsAuthAuthorizationSignUpRequired() (to AuthAuthorizationSignUpRequiredArray) func AuthAuthorizationSignUpRequiredArray.Retain(keep func(x AuthAuthorizationSignUpRequired) bool) AuthAuthorizationSignUpRequiredArray func AuthAuthorizationSignUpRequiredArray.Sort(less func(a, b AuthAuthorizationSignUpRequired) bool) AuthAuthorizationSignUpRequiredArray func AuthAuthorizationSignUpRequiredArray.SortStable(less func(a, b AuthAuthorizationSignUpRequired) bool) AuthAuthorizationSignUpRequiredArray
AuthBindTempAuthKeyRequest represents TL type `auth.bindTempAuthKey#cdd42a05`. Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one. For more information, see Perfect Forward Secrecy¹. Links: 1. https://core.telegram.org/api/pfs See https://core.telegram.org/method/auth.bindTempAuthKey for reference. See Generating encrypted_message¹ Links: 1) https://core.telegram.org#generating-encrypted-message Unix timestamp to invalidate temporary key, see Binding message contents¹ Links: 1) https://core.telegram.org#binding-message-contents Random long from Binding message contents¹ Links: 1) https://core.telegram.org#binding-message-contents Permanent auth_key_id to bind to Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthBindTempAuthKeyRequest from given interface. GetEncryptedMessage returns value of EncryptedMessage field. GetExpiresAt returns value of ExpiresAt field. GetNonce returns value of Nonce field. GetPermAuthKeyID returns value of PermAuthKeyID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthBindTempAuthKeyRequest) Zero() bool *AuthBindTempAuthKeyRequest : github.com/gotd/td/bin.BareDecoder *AuthBindTempAuthKeyRequest : github.com/gotd/td/bin.BareEncoder *AuthBindTempAuthKeyRequest : github.com/gotd/td/bin.Decoder *AuthBindTempAuthKeyRequest : github.com/gotd/td/bin.Encoder *AuthBindTempAuthKeyRequest : github.com/gotd/td/bin.Object *AuthBindTempAuthKeyRequest : github.com/gotd/td/tdp.Object *AuthBindTempAuthKeyRequest : fmt.Stringer func (*Client).AuthBindTempAuthKey(ctx context.Context, request *AuthBindTempAuthKeyRequest) (bool, error)
AuthCancelCodeRequest represents TL type `auth.cancelCode#1f040578`. Cancel the login verification code See https://core.telegram.org/method/auth.cancelCode for reference. Phone code hash from auth.sendCode¹ Links: 1) https://core.telegram.org/method/auth.sendCode Phone number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthCancelCodeRequest from given interface. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthCancelCodeRequest) Zero() bool *AuthCancelCodeRequest : github.com/gotd/td/bin.BareDecoder *AuthCancelCodeRequest : github.com/gotd/td/bin.BareEncoder *AuthCancelCodeRequest : github.com/gotd/td/bin.Decoder *AuthCancelCodeRequest : github.com/gotd/td/bin.Encoder *AuthCancelCodeRequest : github.com/gotd/td/bin.Object *AuthCancelCodeRequest : github.com/gotd/td/tdp.Object *AuthCancelCodeRequest : fmt.Stringer func (*Client).AuthCancelCode(ctx context.Context, request *AuthCancelCodeRequest) (bool, error)
AuthCheckPaidAuthRequest represents TL type `auth.checkPaidAuth#56e59f9c`. Checks the status of a login payment¹. Links: 1. https://core.telegram.org/api/auth#paid-auth See https://core.telegram.org/method/auth.checkPaidAuth for reference. The payment form ID passed to payments.sendPaymentForm¹. Links: 1) https://core.telegram.org/method/payments.sendPaymentForm The phone code hash obtained from auth.sendCode¹ Links: 1) https://core.telegram.org/method/auth.sendCode Phone number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthCheckPaidAuthRequest from given interface. GetFormID returns value of FormID field. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthCheckPaidAuthRequest) Zero() bool *AuthCheckPaidAuthRequest : github.com/gotd/td/bin.BareDecoder *AuthCheckPaidAuthRequest : github.com/gotd/td/bin.BareEncoder *AuthCheckPaidAuthRequest : github.com/gotd/td/bin.Decoder *AuthCheckPaidAuthRequest : github.com/gotd/td/bin.Encoder *AuthCheckPaidAuthRequest : github.com/gotd/td/bin.Object *AuthCheckPaidAuthRequest : github.com/gotd/td/tdp.Object *AuthCheckPaidAuthRequest : fmt.Stringer func (*Client).AuthCheckPaidAuth(ctx context.Context, request *AuthCheckPaidAuthRequest) (AuthSentCodeClass, error)
AuthCheckPasswordRequest represents TL type `auth.checkPassword#d18b4d16`. Try logging to an account protected by a 2FA password¹. Links: 1. https://core.telegram.org/api/srp See https://core.telegram.org/method/auth.checkPassword for reference. The password (see SRP¹) Links: 1) https://core.telegram.org/api/srp Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthCheckPasswordRequest from given interface. GetPassword returns value of Password field. GetPasswordAsNotEmpty returns mapped value of Password field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthCheckPasswordRequest) Zero() bool *AuthCheckPasswordRequest : github.com/gotd/td/bin.BareDecoder *AuthCheckPasswordRequest : github.com/gotd/td/bin.BareEncoder *AuthCheckPasswordRequest : github.com/gotd/td/bin.Decoder *AuthCheckPasswordRequest : github.com/gotd/td/bin.Encoder *AuthCheckPasswordRequest : github.com/gotd/td/bin.Object *AuthCheckPasswordRequest : github.com/gotd/td/tdp.Object *AuthCheckPasswordRequest : fmt.Stringer
AuthCheckRecoveryPasswordRequest represents TL type `auth.checkRecoveryPassword#d36bf79`. Check if the 2FA recovery code¹ sent using auth.requestPasswordRecovery² is valid, before passing it to auth.recoverPassword³. Links: 1. https://core.telegram.org/api/srp 2. https://core.telegram.org/method/auth.requestPasswordRecovery 3. https://core.telegram.org/method/auth.recoverPassword See https://core.telegram.org/method/auth.checkRecoveryPassword for reference. The phone code that was received after setting a recovery email¹ Links: 1) https://core.telegram.org/api/srp#email-verification Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthCheckRecoveryPasswordRequest from given interface. GetCode returns value of Code field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthCheckRecoveryPasswordRequest) Zero() bool *AuthCheckRecoveryPasswordRequest : github.com/gotd/td/bin.BareDecoder *AuthCheckRecoveryPasswordRequest : github.com/gotd/td/bin.BareEncoder *AuthCheckRecoveryPasswordRequest : github.com/gotd/td/bin.Decoder *AuthCheckRecoveryPasswordRequest : github.com/gotd/td/bin.Encoder *AuthCheckRecoveryPasswordRequest : github.com/gotd/td/bin.Object *AuthCheckRecoveryPasswordRequest : github.com/gotd/td/tdp.Object *AuthCheckRecoveryPasswordRequest : fmt.Stringer
AuthCodeType boxes the AuthCodeTypeClass providing a helper. CodeType AuthCodeTypeClass Decode implements bin.Decoder for AuthCodeTypeBox. Encode implements bin.Encode for AuthCodeTypeBox. *AuthCodeTypeBox : github.com/gotd/td/bin.Decoder *AuthCodeTypeBox : github.com/gotd/td/bin.Encoder *AuthCodeTypeBox : github.com/gotd/td/bin.Object
AuthCodeTypeCall represents TL type `auth.codeTypeCall#741cd3e3`. The next time, the authentication code is to be delivered via an outgoing phone call. See https://core.telegram.org/constructor/auth.codeTypeCall for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthCodeTypeCall) Zero() bool *AuthCodeTypeCall : AuthCodeTypeClass *AuthCodeTypeCall : github.com/gotd/td/bin.BareDecoder *AuthCodeTypeCall : github.com/gotd/td/bin.BareEncoder *AuthCodeTypeCall : github.com/gotd/td/bin.Decoder *AuthCodeTypeCall : github.com/gotd/td/bin.Encoder *AuthCodeTypeCall : github.com/gotd/td/bin.Object *AuthCodeTypeCall : github.com/gotd/td/tdp.Object *AuthCodeTypeCall : fmt.Stringer
AuthCodeTypeClass represents auth.CodeType generic type. See https://core.telegram.org/type/auth.CodeType for reference. Constructors: - [AuthCodeTypeSMS] - [AuthCodeTypeCall] - [AuthCodeTypeFlashCall] - [AuthCodeTypeMissedCall] - [AuthCodeTypeFragmentSMS] Example: g, err := tg.DecodeAuthCodeType(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AuthCodeTypeSMS: // auth.codeTypeSms#72a3158c case *tg.AuthCodeTypeCall: // auth.codeTypeCall#741cd3e3 case *tg.AuthCodeTypeFlashCall: // auth.codeTypeFlashCall#226ccefb case *tg.AuthCodeTypeMissedCall: // auth.codeTypeMissedCall#d61ad6ee case *tg.AuthCodeTypeFragmentSMS: // auth.codeTypeFragmentSms#6ed998c default: panic(v) } ( AuthCodeTypeClass) Decode(b *bin.Buffer) error ( AuthCodeTypeClass) DecodeBare(b *bin.Buffer) error ( AuthCodeTypeClass) Encode(b *bin.Buffer) error ( AuthCodeTypeClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AuthCodeTypeCall *AuthCodeTypeFlashCall *AuthCodeTypeFragmentSMS *AuthCodeTypeMissedCall *AuthCodeTypeSMS AuthCodeTypeClass : github.com/gotd/td/bin.BareDecoder AuthCodeTypeClass : github.com/gotd/td/bin.BareEncoder AuthCodeTypeClass : github.com/gotd/td/bin.Decoder AuthCodeTypeClass : github.com/gotd/td/bin.Encoder AuthCodeTypeClass : github.com/gotd/td/bin.Object AuthCodeTypeClass : fmt.Stringer func DecodeAuthCodeType(buf *bin.Buffer) (AuthCodeTypeClass, error) func AuthCodeTypeClassArray.First() (v AuthCodeTypeClass, ok bool) func AuthCodeTypeClassArray.Last() (v AuthCodeTypeClass, ok bool) func (*AuthCodeTypeClassArray).Pop() (v AuthCodeTypeClass, ok bool) func (*AuthCodeTypeClassArray).PopFirst() (v AuthCodeTypeClass, ok bool) func (*AuthSentCode).GetNextType() (value AuthCodeTypeClass, ok bool) func (*AuthSentCode).SetNextType(value AuthCodeTypeClass)
AuthCodeTypeClassArray is adapter for slice of AuthCodeTypeClass. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthCodeTypeClass. Sort sorts slice of AuthCodeTypeClass. SortStable sorts slice of AuthCodeTypeClass. func AuthCodeTypeClassArray.Retain(keep func(x AuthCodeTypeClass) bool) AuthCodeTypeClassArray func AuthCodeTypeClassArray.Sort(less func(a, b AuthCodeTypeClass) bool) AuthCodeTypeClassArray func AuthCodeTypeClassArray.SortStable(less func(a, b AuthCodeTypeClass) bool) AuthCodeTypeClassArray
AuthCodeTypeFlashCall represents TL type `auth.codeTypeFlashCall#226ccefb`. The next time, the authentication code will be delivered via an immediately canceled incoming call. See https://core.telegram.org/constructor/auth.codeTypeFlashCall for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthCodeTypeFlashCall) Zero() bool *AuthCodeTypeFlashCall : AuthCodeTypeClass *AuthCodeTypeFlashCall : github.com/gotd/td/bin.BareDecoder *AuthCodeTypeFlashCall : github.com/gotd/td/bin.BareEncoder *AuthCodeTypeFlashCall : github.com/gotd/td/bin.Decoder *AuthCodeTypeFlashCall : github.com/gotd/td/bin.Encoder *AuthCodeTypeFlashCall : github.com/gotd/td/bin.Object *AuthCodeTypeFlashCall : github.com/gotd/td/tdp.Object *AuthCodeTypeFlashCall : fmt.Stringer
AuthCodeTypeFragmentSMS represents TL type `auth.codeTypeFragmentSms#6ed998c`. The next time, the authentication code will be delivered via fragment.com¹ Links: 1. https://fragment.com See https://core.telegram.org/constructor/auth.codeTypeFragmentSms for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthCodeTypeFragmentSMS) Zero() bool *AuthCodeTypeFragmentSMS : AuthCodeTypeClass *AuthCodeTypeFragmentSMS : github.com/gotd/td/bin.BareDecoder *AuthCodeTypeFragmentSMS : github.com/gotd/td/bin.BareEncoder *AuthCodeTypeFragmentSMS : github.com/gotd/td/bin.Decoder *AuthCodeTypeFragmentSMS : github.com/gotd/td/bin.Encoder *AuthCodeTypeFragmentSMS : github.com/gotd/td/bin.Object *AuthCodeTypeFragmentSMS : github.com/gotd/td/tdp.Object *AuthCodeTypeFragmentSMS : fmt.Stringer
AuthCodeTypeMissedCall represents TL type `auth.codeTypeMissedCall#d61ad6ee`. The next time, the authentication code will be delivered via an immediately canceled incoming call, handled manually by the user. See https://core.telegram.org/constructor/auth.codeTypeMissedCall for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthCodeTypeMissedCall) Zero() bool *AuthCodeTypeMissedCall : AuthCodeTypeClass *AuthCodeTypeMissedCall : github.com/gotd/td/bin.BareDecoder *AuthCodeTypeMissedCall : github.com/gotd/td/bin.BareEncoder *AuthCodeTypeMissedCall : github.com/gotd/td/bin.Decoder *AuthCodeTypeMissedCall : github.com/gotd/td/bin.Encoder *AuthCodeTypeMissedCall : github.com/gotd/td/bin.Object *AuthCodeTypeMissedCall : github.com/gotd/td/tdp.Object *AuthCodeTypeMissedCall : fmt.Stringer
AuthCodeTypeSMS represents TL type `auth.codeTypeSms#72a3158c`. The next time, the authentication code will be delivered via an immediately canceled incoming call. See https://core.telegram.org/constructor/auth.codeTypeSms for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthCodeTypeSMS) Zero() bool *AuthCodeTypeSMS : AuthCodeTypeClass *AuthCodeTypeSMS : github.com/gotd/td/bin.BareDecoder *AuthCodeTypeSMS : github.com/gotd/td/bin.BareEncoder *AuthCodeTypeSMS : github.com/gotd/td/bin.Decoder *AuthCodeTypeSMS : github.com/gotd/td/bin.Encoder *AuthCodeTypeSMS : github.com/gotd/td/bin.Object *AuthCodeTypeSMS : github.com/gotd/td/tdp.Object *AuthCodeTypeSMS : fmt.Stringer
AuthDropTempAuthKeysRequest represents TL type `auth.dropTempAuthKeys#8e48a188`. Delete all temporary authorization keys except for the ones specified See https://core.telegram.org/method/auth.dropTempAuthKeys for reference. The auth keys that shouldn't be dropped. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthDropTempAuthKeysRequest from given interface. GetExceptAuthKeys returns value of ExceptAuthKeys field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthDropTempAuthKeysRequest) Zero() bool *AuthDropTempAuthKeysRequest : github.com/gotd/td/bin.BareDecoder *AuthDropTempAuthKeysRequest : github.com/gotd/td/bin.BareEncoder *AuthDropTempAuthKeysRequest : github.com/gotd/td/bin.Decoder *AuthDropTempAuthKeysRequest : github.com/gotd/td/bin.Encoder *AuthDropTempAuthKeysRequest : github.com/gotd/td/bin.Object *AuthDropTempAuthKeysRequest : github.com/gotd/td/tdp.Object *AuthDropTempAuthKeysRequest : fmt.Stringer
AuthExportAuthorizationRequest represents TL type `auth.exportAuthorization#e5bfffcd`. Returns data for copying authorization to another data-center. See https://core.telegram.org/method/auth.exportAuthorization for reference. Number of a target data-center Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthExportAuthorizationRequest from given interface. GetDCID returns value of DCID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthExportAuthorizationRequest) Zero() bool *AuthExportAuthorizationRequest : github.com/gotd/td/bin.BareDecoder *AuthExportAuthorizationRequest : github.com/gotd/td/bin.BareEncoder *AuthExportAuthorizationRequest : github.com/gotd/td/bin.Decoder *AuthExportAuthorizationRequest : github.com/gotd/td/bin.Encoder *AuthExportAuthorizationRequest : github.com/gotd/td/bin.Object *AuthExportAuthorizationRequest : github.com/gotd/td/tdp.Object *AuthExportAuthorizationRequest : fmt.Stringer
AuthExportedAuthorization represents TL type `auth.exportedAuthorization#b434e2b8`. Data for copying of authorization between data centers. See https://core.telegram.org/constructor/auth.exportedAuthorization for reference. authorizes key current user identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthExportedAuthorization from given interface. GetBytes returns value of Bytes field. GetID returns value of ID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthExportedAuthorization) Zero() bool *AuthExportedAuthorization : github.com/gotd/td/bin.BareDecoder *AuthExportedAuthorization : github.com/gotd/td/bin.BareEncoder *AuthExportedAuthorization : github.com/gotd/td/bin.Decoder *AuthExportedAuthorization : github.com/gotd/td/bin.Encoder *AuthExportedAuthorization : github.com/gotd/td/bin.Object *AuthExportedAuthorization : github.com/gotd/td/tdp.Object *AuthExportedAuthorization : fmt.Stringer func (*Client).AuthExportAuthorization(ctx context.Context, dcid int) (*AuthExportedAuthorization, error)
AuthExportLoginTokenRequest represents TL type `auth.exportLoginToken#b7e085fe`. Generate a login token, for login via QR code¹. The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken deep link »² in the QR code. For more info, see login via QR code¹. Links: 1. https://core.telegram.org/api/qr-login 2. https://core.telegram.org/api/links#qr-code-login-links 3. https://core.telegram.org/api/qr-login See https://core.telegram.org/method/auth.exportLoginToken for reference. Application identifier hash (see. App configuration¹) Links: 1) https://core.telegram.org/myapp Application identifier (see. App configuration¹) Links: 1) https://core.telegram.org/myapp List of already logged-in user IDs, to prevent logging in twice with the same user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthExportLoginTokenRequest from given interface. GetAPIHash returns value of APIHash field. GetAPIID returns value of APIID field. GetExceptIDs returns value of ExceptIDs field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthExportLoginTokenRequest) Zero() bool *AuthExportLoginTokenRequest : github.com/gotd/td/bin.BareDecoder *AuthExportLoginTokenRequest : github.com/gotd/td/bin.BareEncoder *AuthExportLoginTokenRequest : github.com/gotd/td/bin.Decoder *AuthExportLoginTokenRequest : github.com/gotd/td/bin.Encoder *AuthExportLoginTokenRequest : github.com/gotd/td/bin.Object *AuthExportLoginTokenRequest : github.com/gotd/td/tdp.Object *AuthExportLoginTokenRequest : fmt.Stringer func (*Client).AuthExportLoginToken(ctx context.Context, request *AuthExportLoginTokenRequest) (AuthLoginTokenClass, error)
AuthFinishPasskeyLoginRequest represents TL type `auth.finishPasskeyLogin#9857ad07`. Complete login with a passkey over an unauthenticated connection, see here »¹ for more info. Must be sent to the user's native DC, as specified by the user_handle (dcId:userId) returned in the passkey assertion, see here »¹ for the full flow. Links: 1. https://core.telegram.org/api/passkeys#logging-in-with-a-passkey 2. https://core.telegram.org/api/passkeys#logging-in-with-a-passkey See https://core.telegram.org/method/auth.finishPasskeyLogin for reference. Passkey assertion result. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Auth key ID for the connection to from_dc_id (use the permanent auth key ID if PFS is enabled); set only if the user's DC is different from the DC used for the initial auth initPasskeyLogin¹. Links: 1) https://core.telegram.org/method/auth.initPasskeyLogin Use SetFromAuthKeyID and GetFromAuthKeyID helpers. DC ID used for the initial auth.initPasskeyLogin¹ request; set only if the user's DC is different from the DC used for the initial auth.initPasskeyLogin². Links: 1) https://core.telegram.org/method/auth.initPasskeyLogin 2) https://core.telegram.org/method/auth.initPasskeyLogin Use SetFromDCID and GetFromDCID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthFinishPasskeyLoginRequest from given interface. GetCredential returns value of Credential field. GetFromAuthKeyID returns value of FromAuthKeyID conditional field and boolean which is true if field was set. GetFromDCID returns value of FromDCID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetFromAuthKeyID sets value of FromAuthKeyID conditional field. SetFromDCID sets value of FromDCID conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthFinishPasskeyLoginRequest) Zero() bool *AuthFinishPasskeyLoginRequest : github.com/gotd/td/bin.BareDecoder *AuthFinishPasskeyLoginRequest : github.com/gotd/td/bin.BareEncoder *AuthFinishPasskeyLoginRequest : github.com/gotd/td/bin.Decoder *AuthFinishPasskeyLoginRequest : github.com/gotd/td/bin.Encoder *AuthFinishPasskeyLoginRequest : github.com/gotd/td/bin.Object *AuthFinishPasskeyLoginRequest : github.com/gotd/td/tdp.Object *AuthFinishPasskeyLoginRequest : fmt.Stringer func (*Client).AuthFinishPasskeyLogin(ctx context.Context, request *AuthFinishPasskeyLoginRequest) (AuthAuthorizationClass, error)
AuthImportAuthorizationRequest represents TL type `auth.importAuthorization#a57a7dad`. Logs in a user using a key transmitted from his native data-center. See https://core.telegram.org/method/auth.importAuthorization for reference. authorizes key current user identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthImportAuthorizationRequest from given interface. GetBytes returns value of Bytes field. GetID returns value of ID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthImportAuthorizationRequest) Zero() bool *AuthImportAuthorizationRequest : github.com/gotd/td/bin.BareDecoder *AuthImportAuthorizationRequest : github.com/gotd/td/bin.BareEncoder *AuthImportAuthorizationRequest : github.com/gotd/td/bin.Decoder *AuthImportAuthorizationRequest : github.com/gotd/td/bin.Encoder *AuthImportAuthorizationRequest : github.com/gotd/td/bin.Object *AuthImportAuthorizationRequest : github.com/gotd/td/tdp.Object *AuthImportAuthorizationRequest : fmt.Stringer func (*Client).AuthImportAuthorization(ctx context.Context, request *AuthImportAuthorizationRequest) (AuthAuthorizationClass, error)
AuthImportBotAuthorizationRequest represents TL type `auth.importBotAuthorization#67a3ff2c`. Login as a bot See https://core.telegram.org/method/auth.importBotAuthorization for reference. Application identifier hash (see. App configuration¹) Links: 1) https://core.telegram.org/myapp Application identifier (see. App configuration¹) Links: 1) https://core.telegram.org/myapp Bot token (see bots¹) Links: 1) https://core.telegram.org/bots Reserved for future use Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthImportBotAuthorizationRequest from given interface. GetAPIHash returns value of APIHash field. GetAPIID returns value of APIID field. GetBotAuthToken returns value of BotAuthToken field. GetFlags returns value of Flags field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthImportBotAuthorizationRequest) Zero() bool *AuthImportBotAuthorizationRequest : github.com/gotd/td/bin.BareDecoder *AuthImportBotAuthorizationRequest : github.com/gotd/td/bin.BareEncoder *AuthImportBotAuthorizationRequest : github.com/gotd/td/bin.Decoder *AuthImportBotAuthorizationRequest : github.com/gotd/td/bin.Encoder *AuthImportBotAuthorizationRequest : github.com/gotd/td/bin.Object *AuthImportBotAuthorizationRequest : github.com/gotd/td/tdp.Object *AuthImportBotAuthorizationRequest : fmt.Stringer func (*Client).AuthImportBotAuthorization(ctx context.Context, request *AuthImportBotAuthorizationRequest) (AuthAuthorizationClass, error)
AuthImportLoginTokenRequest represents TL type `auth.importLoginToken#95ac5ce4`. Login using a redirected login token, generated in case of DC mismatch during QR code login¹. For more info, see login via QR code¹. Links: 1. https://core.telegram.org/api/qr-login 2. https://core.telegram.org/api/qr-login See https://core.telegram.org/method/auth.importLoginToken for reference. Login token embedded in QR code, for more info, see login via QR code¹. Links: 1) https://core.telegram.org/api/qr-login Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthImportLoginTokenRequest from given interface. GetToken returns value of Token field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthImportLoginTokenRequest) Zero() bool *AuthImportLoginTokenRequest : github.com/gotd/td/bin.BareDecoder *AuthImportLoginTokenRequest : github.com/gotd/td/bin.BareEncoder *AuthImportLoginTokenRequest : github.com/gotd/td/bin.Decoder *AuthImportLoginTokenRequest : github.com/gotd/td/bin.Encoder *AuthImportLoginTokenRequest : github.com/gotd/td/bin.Object *AuthImportLoginTokenRequest : github.com/gotd/td/tdp.Object *AuthImportLoginTokenRequest : fmt.Stringer
AuthImportWebTokenAuthorizationRequest represents TL type `auth.importWebTokenAuthorization#2db873a9`. Login by importing an authorization token See https://core.telegram.org/method/auth.importWebTokenAuthorization for reference. API hash¹ Links: 1) https://core.telegram.org/api/obtaining_api_id API ID¹ Links: 1) https://core.telegram.org/api/obtaining_api_id The authorization token Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthImportWebTokenAuthorizationRequest from given interface. GetAPIHash returns value of APIHash field. GetAPIID returns value of APIID field. GetWebAuthToken returns value of WebAuthToken field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthImportWebTokenAuthorizationRequest) Zero() bool *AuthImportWebTokenAuthorizationRequest : github.com/gotd/td/bin.BareDecoder *AuthImportWebTokenAuthorizationRequest : github.com/gotd/td/bin.BareEncoder *AuthImportWebTokenAuthorizationRequest : github.com/gotd/td/bin.Decoder *AuthImportWebTokenAuthorizationRequest : github.com/gotd/td/bin.Encoder *AuthImportWebTokenAuthorizationRequest : github.com/gotd/td/bin.Object *AuthImportWebTokenAuthorizationRequest : github.com/gotd/td/tdp.Object *AuthImportWebTokenAuthorizationRequest : fmt.Stringer func (*Client).AuthImportWebTokenAuthorization(ctx context.Context, request *AuthImportWebTokenAuthorizationRequest) (AuthAuthorizationClass, error)
AuthInitPasskeyLoginRequest represents TL type `auth.initPasskeyLogin#518ad0b7`. Initialize login with a passkey over an unauthenticated connection, see here »¹ for more info. Links: 1. https://core.telegram.org/api/passkeys#logging-in-with-a-passkey See https://core.telegram.org/method/auth.initPasskeyLogin for reference. Application identifier hash (see App configuration¹) Links: 1) https://core.telegram.org/myapp Application identifier (see App configuration¹) Links: 1) https://core.telegram.org/myapp Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthInitPasskeyLoginRequest from given interface. GetAPIHash returns value of APIHash field. GetAPIID returns value of APIID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthInitPasskeyLoginRequest) Zero() bool *AuthInitPasskeyLoginRequest : github.com/gotd/td/bin.BareDecoder *AuthInitPasskeyLoginRequest : github.com/gotd/td/bin.BareEncoder *AuthInitPasskeyLoginRequest : github.com/gotd/td/bin.Decoder *AuthInitPasskeyLoginRequest : github.com/gotd/td/bin.Encoder *AuthInitPasskeyLoginRequest : github.com/gotd/td/bin.Object *AuthInitPasskeyLoginRequest : github.com/gotd/td/tdp.Object *AuthInitPasskeyLoginRequest : fmt.Stringer func (*Client).AuthInitPasskeyLogin(ctx context.Context, request *AuthInitPasskeyLoginRequest) (*AuthPasskeyLoginOptions, error)
AuthLoggedOut represents TL type `auth.loggedOut#c3a2835f`. Future auth token »¹ to be used on subsequent authorizations Links: 1. https://core.telegram.org/api/auth#future-auth-tokens See https://core.telegram.org/constructor/auth.loggedOut for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Future auth token »¹ to be used on subsequent authorizations Links: 1) https://core.telegram.org/api/auth#future-auth-tokens Use SetFutureAuthToken and GetFutureAuthToken helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthLoggedOut from given interface. GetFutureAuthToken returns value of FutureAuthToken conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetFutureAuthToken sets value of FutureAuthToken conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthLoggedOut) Zero() bool *AuthLoggedOut : github.com/gotd/td/bin.BareDecoder *AuthLoggedOut : github.com/gotd/td/bin.BareEncoder *AuthLoggedOut : github.com/gotd/td/bin.Decoder *AuthLoggedOut : github.com/gotd/td/bin.Encoder *AuthLoggedOut : github.com/gotd/td/bin.Object *AuthLoggedOut : github.com/gotd/td/tdp.Object *AuthLoggedOut : fmt.Stringer func (*Client).AuthLogOut(ctx context.Context) (*AuthLoggedOut, error)
AuthLoginToken represents TL type `auth.loginToken#629f1980`. Login token (for QR code login¹) Links: 1. https://core.telegram.org/api/qr-login See https://core.telegram.org/constructor/auth.loginToken for reference. Expiration date of QR code Token to render in QR code Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthLoginToken from given interface. GetExpires returns value of Expires field. GetToken returns value of Token field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthLoginToken) Zero() bool *AuthLoginToken : AuthLoginTokenClass *AuthLoginToken : github.com/gotd/td/bin.BareDecoder *AuthLoginToken : github.com/gotd/td/bin.BareEncoder *AuthLoginToken : github.com/gotd/td/bin.Decoder *AuthLoginToken : github.com/gotd/td/bin.Encoder *AuthLoginToken : github.com/gotd/td/bin.Object *AuthLoginToken : github.com/gotd/td/tdp.Object *AuthLoginToken : fmt.Stringer func AuthLoginTokenArray.First() (v AuthLoginToken, ok bool) func AuthLoginTokenArray.Last() (v AuthLoginToken, ok bool) func (*AuthLoginTokenArray).Pop() (v AuthLoginToken, ok bool) func (*AuthLoginTokenArray).PopFirst() (v AuthLoginToken, ok bool)
AuthLoginTokenArray is adapter for slice of AuthLoginToken. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthLoginToken. Sort sorts slice of AuthLoginToken. SortStable sorts slice of AuthLoginToken. func AuthLoginTokenArray.Retain(keep func(x AuthLoginToken) bool) AuthLoginTokenArray func AuthLoginTokenArray.Sort(less func(a, b AuthLoginToken) bool) AuthLoginTokenArray func AuthLoginTokenArray.SortStable(less func(a, b AuthLoginToken) bool) AuthLoginTokenArray func AuthLoginTokenClassArray.AsAuthLoginToken() (to AuthLoginTokenArray)
AuthLoginToken boxes the AuthLoginTokenClass providing a helper. LoginToken AuthLoginTokenClass Decode implements bin.Decoder for AuthLoginTokenBox. Encode implements bin.Encode for AuthLoginTokenBox. *AuthLoginTokenBox : github.com/gotd/td/bin.Decoder *AuthLoginTokenBox : github.com/gotd/td/bin.Encoder *AuthLoginTokenBox : github.com/gotd/td/bin.Object
AuthLoginTokenClass represents auth.LoginToken generic type. See https://core.telegram.org/type/auth.LoginToken for reference. Constructors: - [AuthLoginToken] - [AuthLoginTokenMigrateTo] - [AuthLoginTokenSuccess] Example: g, err := tg.DecodeAuthLoginToken(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AuthLoginToken: // auth.loginToken#629f1980 case *tg.AuthLoginTokenMigrateTo: // auth.loginTokenMigrateTo#68e9916 case *tg.AuthLoginTokenSuccess: // auth.loginTokenSuccess#390d5c5e default: panic(v) } ( AuthLoginTokenClass) Decode(b *bin.Buffer) error ( AuthLoginTokenClass) DecodeBare(b *bin.Buffer) error ( AuthLoginTokenClass) Encode(b *bin.Buffer) error ( AuthLoginTokenClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AuthLoginToken *AuthLoginTokenMigrateTo *AuthLoginTokenSuccess AuthLoginTokenClass : github.com/gotd/td/bin.BareDecoder AuthLoginTokenClass : github.com/gotd/td/bin.BareEncoder AuthLoginTokenClass : github.com/gotd/td/bin.Decoder AuthLoginTokenClass : github.com/gotd/td/bin.Encoder AuthLoginTokenClass : github.com/gotd/td/bin.Object AuthLoginTokenClass : fmt.Stringer func DecodeAuthLoginToken(buf *bin.Buffer) (AuthLoginTokenClass, error) func AuthLoginTokenClassArray.First() (v AuthLoginTokenClass, ok bool) func AuthLoginTokenClassArray.Last() (v AuthLoginTokenClass, ok bool) func (*AuthLoginTokenClassArray).Pop() (v AuthLoginTokenClass, ok bool) func (*AuthLoginTokenClassArray).PopFirst() (v AuthLoginTokenClass, ok bool) func (*Client).AuthExportLoginToken(ctx context.Context, request *AuthExportLoginTokenRequest) (AuthLoginTokenClass, error) func (*Client).AuthImportLoginToken(ctx context.Context, token []byte) (AuthLoginTokenClass, error)
AuthLoginTokenClassArray is adapter for slice of AuthLoginTokenClass. AsAuthLoginToken returns copy with only AuthLoginToken constructors. AsAuthLoginTokenMigrateTo returns copy with only AuthLoginTokenMigrateTo constructors. AsAuthLoginTokenSuccess returns copy with only AuthLoginTokenSuccess constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthLoginTokenClass. Sort sorts slice of AuthLoginTokenClass. SortStable sorts slice of AuthLoginTokenClass. func AuthLoginTokenClassArray.Retain(keep func(x AuthLoginTokenClass) bool) AuthLoginTokenClassArray func AuthLoginTokenClassArray.Sort(less func(a, b AuthLoginTokenClass) bool) AuthLoginTokenClassArray func AuthLoginTokenClassArray.SortStable(less func(a, b AuthLoginTokenClass) bool) AuthLoginTokenClassArray
AuthLoginTokenMigrateTo represents TL type `auth.loginTokenMigrateTo#68e9916`. Repeat the query to the specified DC See https://core.telegram.org/constructor/auth.loginTokenMigrateTo for reference. DC ID Token to use for login Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthLoginTokenMigrateTo from given interface. GetDCID returns value of DCID field. GetToken returns value of Token field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthLoginTokenMigrateTo) Zero() bool *AuthLoginTokenMigrateTo : AuthLoginTokenClass *AuthLoginTokenMigrateTo : github.com/gotd/td/bin.BareDecoder *AuthLoginTokenMigrateTo : github.com/gotd/td/bin.BareEncoder *AuthLoginTokenMigrateTo : github.com/gotd/td/bin.Decoder *AuthLoginTokenMigrateTo : github.com/gotd/td/bin.Encoder *AuthLoginTokenMigrateTo : github.com/gotd/td/bin.Object *AuthLoginTokenMigrateTo : github.com/gotd/td/tdp.Object *AuthLoginTokenMigrateTo : fmt.Stringer func AuthLoginTokenMigrateToArray.First() (v AuthLoginTokenMigrateTo, ok bool) func AuthLoginTokenMigrateToArray.Last() (v AuthLoginTokenMigrateTo, ok bool) func (*AuthLoginTokenMigrateToArray).Pop() (v AuthLoginTokenMigrateTo, ok bool) func (*AuthLoginTokenMigrateToArray).PopFirst() (v AuthLoginTokenMigrateTo, ok bool)
AuthLoginTokenMigrateToArray is adapter for slice of AuthLoginTokenMigrateTo. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthLoginTokenMigrateTo. Sort sorts slice of AuthLoginTokenMigrateTo. SortStable sorts slice of AuthLoginTokenMigrateTo. func AuthLoginTokenClassArray.AsAuthLoginTokenMigrateTo() (to AuthLoginTokenMigrateToArray) func AuthLoginTokenMigrateToArray.Retain(keep func(x AuthLoginTokenMigrateTo) bool) AuthLoginTokenMigrateToArray func AuthLoginTokenMigrateToArray.Sort(less func(a, b AuthLoginTokenMigrateTo) bool) AuthLoginTokenMigrateToArray func AuthLoginTokenMigrateToArray.SortStable(less func(a, b AuthLoginTokenMigrateTo) bool) AuthLoginTokenMigrateToArray
AuthLoginTokenSuccess represents TL type `auth.loginTokenSuccess#390d5c5e`. Login via token (QR code) succeeded! See https://core.telegram.org/constructor/auth.loginTokenSuccess for reference. Authorization AuthAuthorizationClass Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthLoginTokenSuccess from given interface. GetAuthorization returns value of Authorization field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthLoginTokenSuccess) Zero() bool *AuthLoginTokenSuccess : AuthLoginTokenClass *AuthLoginTokenSuccess : github.com/gotd/td/bin.BareDecoder *AuthLoginTokenSuccess : github.com/gotd/td/bin.BareEncoder *AuthLoginTokenSuccess : github.com/gotd/td/bin.Decoder *AuthLoginTokenSuccess : github.com/gotd/td/bin.Encoder *AuthLoginTokenSuccess : github.com/gotd/td/bin.Object *AuthLoginTokenSuccess : github.com/gotd/td/tdp.Object *AuthLoginTokenSuccess : fmt.Stringer func AuthLoginTokenSuccessArray.First() (v AuthLoginTokenSuccess, ok bool) func AuthLoginTokenSuccessArray.Last() (v AuthLoginTokenSuccess, ok bool) func (*AuthLoginTokenSuccessArray).Pop() (v AuthLoginTokenSuccess, ok bool) func (*AuthLoginTokenSuccessArray).PopFirst() (v AuthLoginTokenSuccess, ok bool)
AuthLoginTokenSuccessArray is adapter for slice of AuthLoginTokenSuccess. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthLoginTokenSuccess. Sort sorts slice of AuthLoginTokenSuccess. SortStable sorts slice of AuthLoginTokenSuccess. func AuthLoginTokenClassArray.AsAuthLoginTokenSuccess() (to AuthLoginTokenSuccessArray) func AuthLoginTokenSuccessArray.Retain(keep func(x AuthLoginTokenSuccess) bool) AuthLoginTokenSuccessArray func AuthLoginTokenSuccessArray.Sort(less func(a, b AuthLoginTokenSuccess) bool) AuthLoginTokenSuccessArray func AuthLoginTokenSuccessArray.SortStable(less func(a, b AuthLoginTokenSuccess) bool) AuthLoginTokenSuccessArray
AuthLogOutRequest represents TL type `auth.logOut#3e72ba19`. Logs out the user. See https://core.telegram.org/method/auth.logOut for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthLogOutRequest) Zero() bool *AuthLogOutRequest : github.com/gotd/td/bin.BareDecoder *AuthLogOutRequest : github.com/gotd/td/bin.BareEncoder *AuthLogOutRequest : github.com/gotd/td/bin.Decoder *AuthLogOutRequest : github.com/gotd/td/bin.Encoder *AuthLogOutRequest : github.com/gotd/td/bin.Object *AuthLogOutRequest : github.com/gotd/td/tdp.Object *AuthLogOutRequest : fmt.Stringer
Authorization represents TL type `authorization#ad01d61d`. Logged-in session See https://core.telegram.org/constructor/authorization for reference. API ID¹ Links: 1) https://core.telegram.org/api/obtaining_api_id App name App version Whether this session will accept phone calls Country determined from IP Whether this is the current session When was the session last active When was the session created Device model Whether this session will accept encrypted chats Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Identifier Last known IP Whether the session is from an official app Whether the session is still waiting for a 2FA password Platform Region determined from IP System version Whether the session is unconfirmed, see here »¹ for more info. Links: 1) https://core.telegram.org/api/auth#confirming-login Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Authorization from given interface. GetAPIID returns value of APIID field. GetAppName returns value of AppName field. GetAppVersion returns value of AppVersion field. GetCallRequestsDisabled returns value of CallRequestsDisabled conditional field. GetCountry returns value of Country field. GetCurrent returns value of Current conditional field. GetDateActive returns value of DateActive field. GetDateCreated returns value of DateCreated field. GetDeviceModel returns value of DeviceModel field. GetEncryptedRequestsDisabled returns value of EncryptedRequestsDisabled conditional field. GetHash returns value of Hash field. GetIP returns value of IP field. GetOfficialApp returns value of OfficialApp conditional field. GetPasswordPending returns value of PasswordPending conditional field. GetPlatform returns value of Platform field. GetRegion returns value of Region field. GetSystemVersion returns value of SystemVersion field. GetUnconfirmed returns value of Unconfirmed conditional field. SetCallRequestsDisabled sets value of CallRequestsDisabled conditional field. SetCurrent sets value of Current conditional field. SetEncryptedRequestsDisabled sets value of EncryptedRequestsDisabled conditional field. SetFlags sets flags for non-zero fields. SetOfficialApp sets value of OfficialApp conditional field. SetPasswordPending sets value of PasswordPending conditional field. SetUnconfirmed sets value of Unconfirmed conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*Authorization) Zero() bool *Authorization : github.com/gotd/td/bin.BareDecoder *Authorization : github.com/gotd/td/bin.BareEncoder *Authorization : github.com/gotd/td/bin.Decoder *Authorization : github.com/gotd/td/bin.Encoder *Authorization : github.com/gotd/td/bin.Object *Authorization : github.com/gotd/td/tdp.Object *Authorization : fmt.Stringer func (*AccountAuthorizations).GetAuthorizations() (value []Authorization) func (*Client).AuthAcceptLoginToken(ctx context.Context, token []byte) (*Authorization, error) func github.com/gotd/td/telegram/auth/qrlogin.AcceptQR(ctx context.Context, raw *Client, t qrlogin.Token) (*Authorization, error) func github.com/gotd/td/telegram/auth/qrlogin.QR.Accept(ctx context.Context, t qrlogin.Token) (*Authorization, error)
AuthPasskeyLoginOptions represents TL type `auth.passkeyLoginOptions#e2037789`. Passkey login options, see here »¹ for more info on the full flow. Links: 1. https://core.telegram.org/api/passkeys#logging-in-with-a-passkey See https://core.telegram.org/constructor/auth.passkeyLoginOptions for reference. JSON-encoded object whose publicKey field contains a PublicKeyCredentialCreationOptions¹ object. Links: 1) https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthPasskeyLoginOptions from given interface. GetOptions returns value of Options field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthPasskeyLoginOptions) Zero() bool *AuthPasskeyLoginOptions : github.com/gotd/td/bin.BareDecoder *AuthPasskeyLoginOptions : github.com/gotd/td/bin.BareEncoder *AuthPasskeyLoginOptions : github.com/gotd/td/bin.Decoder *AuthPasskeyLoginOptions : github.com/gotd/td/bin.Encoder *AuthPasskeyLoginOptions : github.com/gotd/td/bin.Object *AuthPasskeyLoginOptions : github.com/gotd/td/tdp.Object *AuthPasskeyLoginOptions : fmt.Stringer func (*Client).AuthInitPasskeyLogin(ctx context.Context, request *AuthInitPasskeyLoginRequest) (*AuthPasskeyLoginOptions, error)
AuthPasswordRecovery represents TL type `auth.passwordRecovery#137948a5`. Recovery info of a 2FA password¹, only for accounts with a recovery email configured². Links: 1. https://core.telegram.org/api/srp 2. https://core.telegram.org/api/srp#email-verification See https://core.telegram.org/constructor/auth.passwordRecovery for reference. The email to which the recovery code was sent must match this pattern¹. Links: 1) https://core.telegram.org/api/pattern Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthPasswordRecovery from given interface. GetEmailPattern returns value of EmailPattern field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthPasswordRecovery) Zero() bool *AuthPasswordRecovery : github.com/gotd/td/bin.BareDecoder *AuthPasswordRecovery : github.com/gotd/td/bin.BareEncoder *AuthPasswordRecovery : github.com/gotd/td/bin.Decoder *AuthPasswordRecovery : github.com/gotd/td/bin.Encoder *AuthPasswordRecovery : github.com/gotd/td/bin.Object *AuthPasswordRecovery : github.com/gotd/td/tdp.Object *AuthPasswordRecovery : fmt.Stringer func (*Client).AuthRequestPasswordRecovery(ctx context.Context) (*AuthPasswordRecovery, error) func github.com/gotd/td/telegram/auth.(*Client).RequestPasswordRecovery(ctx context.Context) (*AuthPasswordRecovery, error)
AuthRecoverPasswordRequest represents TL type `auth.recoverPassword#37096c70`. Reset the 2FA password¹ using the recovery code sent using auth requestPasswordRecovery². Links: 1. https://core.telegram.org/api/srp 2. https://core.telegram.org/method/auth.requestPasswordRecovery See https://core.telegram.org/method/auth.recoverPassword for reference. Code received via email Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields New password Use SetNewSettings and GetNewSettings helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthRecoverPasswordRequest from given interface. GetCode returns value of Code field. GetNewSettings returns value of NewSettings conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetNewSettings sets value of NewSettings conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthRecoverPasswordRequest) Zero() bool *AuthRecoverPasswordRequest : github.com/gotd/td/bin.BareDecoder *AuthRecoverPasswordRequest : github.com/gotd/td/bin.BareEncoder *AuthRecoverPasswordRequest : github.com/gotd/td/bin.Decoder *AuthRecoverPasswordRequest : github.com/gotd/td/bin.Encoder *AuthRecoverPasswordRequest : github.com/gotd/td/bin.Object *AuthRecoverPasswordRequest : github.com/gotd/td/tdp.Object *AuthRecoverPasswordRequest : fmt.Stringer func (*Client).AuthRecoverPassword(ctx context.Context, request *AuthRecoverPasswordRequest) (AuthAuthorizationClass, error)
AuthReportMissingCodeRequest represents TL type `auth.reportMissingCode#cb9deff6`. Official apps only, reports that the SMS authentication code wasn't delivered. See https://core.telegram.org/method/auth.reportMissingCode for reference. MNC¹ of the current network operator. Links: 1) https://en.wikipedia.org/wiki/Mobile_country_code The phone code hash obtained from auth.sendCode¹ Links: 1) https://core.telegram.org/method/auth.sendCode Phone number where we were supposed to receive the code Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthReportMissingCodeRequest from given interface. GetMnc returns value of Mnc field. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthReportMissingCodeRequest) Zero() bool *AuthReportMissingCodeRequest : github.com/gotd/td/bin.BareDecoder *AuthReportMissingCodeRequest : github.com/gotd/td/bin.BareEncoder *AuthReportMissingCodeRequest : github.com/gotd/td/bin.Decoder *AuthReportMissingCodeRequest : github.com/gotd/td/bin.Encoder *AuthReportMissingCodeRequest : github.com/gotd/td/bin.Object *AuthReportMissingCodeRequest : github.com/gotd/td/tdp.Object *AuthReportMissingCodeRequest : fmt.Stringer func (*Client).AuthReportMissingCode(ctx context.Context, request *AuthReportMissingCodeRequest) (bool, error)
AuthRequestFirebaseSMSRequest represents TL type `auth.requestFirebaseSms#8e39261e`. Request an SMS code via Firebase. See https://core.telegram.org/method/auth.requestFirebaseSms for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Secret token received via an apple push notification Use SetIosPushSecret and GetIosPushSecret helpers. Phone code hash returned by auth.sendCode¹ Links: 1) https://core.telegram.org/method/auth.sendCode Phone number On Android, an object obtained as described in the auth documentation »¹ Links: 1) https://core.telegram.org/api/auth Use SetPlayIntegrityToken and GetPlayIntegrityToken helpers. On Android, a JWS object obtained as described in the auth documentation »¹ Links: 1) https://core.telegram.org/api/auth Use SetSafetyNetToken and GetSafetyNetToken helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthRequestFirebaseSMSRequest from given interface. GetIosPushSecret returns value of IosPushSecret conditional field and boolean which is true if field was set. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. GetPlayIntegrityToken returns value of PlayIntegrityToken conditional field and boolean which is true if field was set. GetSafetyNetToken returns value of SafetyNetToken conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetIosPushSecret sets value of IosPushSecret conditional field. SetPlayIntegrityToken sets value of PlayIntegrityToken conditional field. SetSafetyNetToken sets value of SafetyNetToken conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthRequestFirebaseSMSRequest) Zero() bool *AuthRequestFirebaseSMSRequest : github.com/gotd/td/bin.BareDecoder *AuthRequestFirebaseSMSRequest : github.com/gotd/td/bin.BareEncoder *AuthRequestFirebaseSMSRequest : github.com/gotd/td/bin.Decoder *AuthRequestFirebaseSMSRequest : github.com/gotd/td/bin.Encoder *AuthRequestFirebaseSMSRequest : github.com/gotd/td/bin.Object *AuthRequestFirebaseSMSRequest : github.com/gotd/td/tdp.Object *AuthRequestFirebaseSMSRequest : fmt.Stringer func (*Client).AuthRequestFirebaseSMS(ctx context.Context, request *AuthRequestFirebaseSMSRequest) (bool, error)
AuthRequestPasswordRecoveryRequest represents TL type `auth.requestPasswordRecovery#d897bc66`. Request recovery code of a 2FA password¹, only for accounts with a recovery email configured². Links: 1. https://core.telegram.org/api/srp 2. https://core.telegram.org/api/srp#email-verification See https://core.telegram.org/method/auth.requestPasswordRecovery for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthRequestPasswordRecoveryRequest) Zero() bool *AuthRequestPasswordRecoveryRequest : github.com/gotd/td/bin.BareDecoder *AuthRequestPasswordRecoveryRequest : github.com/gotd/td/bin.BareEncoder *AuthRequestPasswordRecoveryRequest : github.com/gotd/td/bin.Decoder *AuthRequestPasswordRecoveryRequest : github.com/gotd/td/bin.Encoder *AuthRequestPasswordRecoveryRequest : github.com/gotd/td/bin.Object *AuthRequestPasswordRecoveryRequest : github.com/gotd/td/tdp.Object *AuthRequestPasswordRecoveryRequest : fmt.Stringer
AuthResendCodeRequest represents TL type `auth.resendCode#cae47523`. Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login¹ for more info. Links: 1. https://core.telegram.org/api/auth See https://core.telegram.org/method/auth.resendCode for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The phone code hash obtained from auth.sendCode¹ Links: 1) https://core.telegram.org/method/auth.sendCode The phone number Official clients only, used if the device integrity verification failed, and no secret could be obtained to invoke auth.requestFirebaseSms¹: in this case, the device integrity verification failure reason must be passed here. Links: 1) https://core.telegram.org/method/auth.requestFirebaseSms Use SetReason and GetReason helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthResendCodeRequest from given interface. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. GetReason returns value of Reason conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetReason sets value of Reason conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthResendCodeRequest) Zero() bool *AuthResendCodeRequest : github.com/gotd/td/bin.BareDecoder *AuthResendCodeRequest : github.com/gotd/td/bin.BareEncoder *AuthResendCodeRequest : github.com/gotd/td/bin.Decoder *AuthResendCodeRequest : github.com/gotd/td/bin.Encoder *AuthResendCodeRequest : github.com/gotd/td/bin.Object *AuthResendCodeRequest : github.com/gotd/td/tdp.Object *AuthResendCodeRequest : fmt.Stringer func (*Client).AuthResendCode(ctx context.Context, request *AuthResendCodeRequest) (AuthSentCodeClass, error)
AuthResetAuthorizationsRequest represents TL type `auth.resetAuthorizations#9fab0d1a`. Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method account.registerDevice¹ Links: 1. https://core.telegram.org/method/account.registerDevice See https://core.telegram.org/method/auth.resetAuthorizations for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthResetAuthorizationsRequest) Zero() bool *AuthResetAuthorizationsRequest : github.com/gotd/td/bin.BareDecoder *AuthResetAuthorizationsRequest : github.com/gotd/td/bin.BareEncoder *AuthResetAuthorizationsRequest : github.com/gotd/td/bin.Decoder *AuthResetAuthorizationsRequest : github.com/gotd/td/bin.Encoder *AuthResetAuthorizationsRequest : github.com/gotd/td/bin.Object *AuthResetAuthorizationsRequest : github.com/gotd/td/tdp.Object *AuthResetAuthorizationsRequest : fmt.Stringer
AuthResetLoginEmailRequest represents TL type `auth.resetLoginEmail#7e960193`. Reset the login email »¹. Links: 1. https://core.telegram.org/api/auth#email-verification See https://core.telegram.org/method/auth.resetLoginEmail for reference. Phone code hash from auth.sendCode¹ Links: 1) https://core.telegram.org/method/auth.sendCode Phone number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthResetLoginEmailRequest from given interface. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthResetLoginEmailRequest) Zero() bool *AuthResetLoginEmailRequest : github.com/gotd/td/bin.BareDecoder *AuthResetLoginEmailRequest : github.com/gotd/td/bin.BareEncoder *AuthResetLoginEmailRequest : github.com/gotd/td/bin.Decoder *AuthResetLoginEmailRequest : github.com/gotd/td/bin.Encoder *AuthResetLoginEmailRequest : github.com/gotd/td/bin.Object *AuthResetLoginEmailRequest : github.com/gotd/td/tdp.Object *AuthResetLoginEmailRequest : fmt.Stringer func (*Client).AuthResetLoginEmail(ctx context.Context, request *AuthResetLoginEmailRequest) (AuthSentCodeClass, error)
AuthSendCodeRequest represents TL type `auth.sendCode#a677244f`. Send the verification code for login See https://core.telegram.org/method/auth.sendCode for reference. Application secret hash (see App configuration¹) Links: 1) https://core.telegram.org/myapp Application identifier (see App configuration¹) Links: 1) https://core.telegram.org/myapp Phone number in international format Settings for the code type to send Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSendCodeRequest from given interface. GetAPIHash returns value of APIHash field. GetAPIID returns value of APIID field. GetPhoneNumber returns value of PhoneNumber field. GetSettings returns value of Settings field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSendCodeRequest) Zero() bool *AuthSendCodeRequest : github.com/gotd/td/bin.BareDecoder *AuthSendCodeRequest : github.com/gotd/td/bin.BareEncoder *AuthSendCodeRequest : github.com/gotd/td/bin.Decoder *AuthSendCodeRequest : github.com/gotd/td/bin.Encoder *AuthSendCodeRequest : github.com/gotd/td/bin.Object *AuthSendCodeRequest : github.com/gotd/td/tdp.Object *AuthSendCodeRequest : fmt.Stringer func (*Client).AuthSendCode(ctx context.Context, request *AuthSendCodeRequest) (AuthSentCodeClass, error)
AuthSentCode represents TL type `auth.sentCode#5e002502`. Contains info about a sent verification code. See https://core.telegram.org/constructor/auth.sentCode for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Phone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use auth.resendCode¹ Links: 1) https://core.telegram.org/method/auth.resendCode Use SetNextType and GetNextType helpers. Phone code hash, to be stored and later re-used with auth.signIn¹ Links: 1) https://core.telegram.org/method/auth.signIn Timeout for reception of the phone code Use SetTimeout and GetTimeout helpers. Phone code type Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCode from given interface. GetNextType returns value of NextType conditional field and boolean which is true if field was set. GetPhoneCodeHash returns value of PhoneCodeHash field. GetTimeout returns value of Timeout conditional field and boolean which is true if field was set. GetType returns value of Type field. SetFlags sets flags for non-zero fields. SetNextType sets value of NextType conditional field. SetTimeout sets value of Timeout conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCode) Zero() bool *AuthSentCode : AuthSentCodeClass *AuthSentCode : github.com/gotd/td/bin.BareDecoder *AuthSentCode : github.com/gotd/td/bin.BareEncoder *AuthSentCode : github.com/gotd/td/bin.Decoder *AuthSentCode : github.com/gotd/td/bin.Encoder *AuthSentCode : github.com/gotd/td/bin.Object *AuthSentCode : github.com/gotd/td/tdp.Object *AuthSentCode : fmt.Stringer func AuthSentCodeArray.First() (v AuthSentCode, ok bool) func AuthSentCodeArray.Last() (v AuthSentCode, ok bool) func (*AuthSentCodeArray).Pop() (v AuthSentCode, ok bool) func (*AuthSentCodeArray).PopFirst() (v AuthSentCode, ok bool) func github.com/gotd/td/telegram/auth.CodeAuthenticator.Code(ctx context.Context, sentCode *AuthSentCode) (string, error) func github.com/gotd/td/telegram/auth.CodeAuthenticatorFunc.Code(ctx context.Context, sentCode *AuthSentCode) (string, error) func github.com/gotd/td/telegram/auth.UserAuthenticator.Code(ctx context.Context, sentCode *AuthSentCode) (string, error)
AuthSentCodeArray is adapter for slice of AuthSentCode. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCode. Sort sorts slice of AuthSentCode. SortStable sorts slice of AuthSentCode. func AuthSentCodeArray.Retain(keep func(x AuthSentCode) bool) AuthSentCodeArray func AuthSentCodeArray.Sort(less func(a, b AuthSentCode) bool) AuthSentCodeArray func AuthSentCodeArray.SortStable(less func(a, b AuthSentCode) bool) AuthSentCodeArray func AuthSentCodeClassArray.AsAuthSentCode() (to AuthSentCodeArray)
AuthSentCode boxes the AuthSentCodeClass providing a helper. SentCode AuthSentCodeClass Decode implements bin.Decoder for AuthSentCodeBox. Encode implements bin.Encode for AuthSentCodeBox. *AuthSentCodeBox : github.com/gotd/td/bin.Decoder *AuthSentCodeBox : github.com/gotd/td/bin.Encoder *AuthSentCodeBox : github.com/gotd/td/bin.Object
AuthSentCodeClass represents auth.SentCode generic type. See https://core.telegram.org/type/auth.SentCode for reference. Constructors: - [AuthSentCode] - [AuthSentCodeSuccess] - [AuthSentCodePaymentRequired] Example: g, err := tg.DecodeAuthSentCode(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AuthSentCode: // auth.sentCode#5e002502 case *tg.AuthSentCodeSuccess: // auth.sentCodeSuccess#2390fe44 case *tg.AuthSentCodePaymentRequired: // auth.sentCodePaymentRequired#f8827ebf default: panic(v) } ( AuthSentCodeClass) Decode(b *bin.Buffer) error ( AuthSentCodeClass) DecodeBare(b *bin.Buffer) error ( AuthSentCodeClass) Encode(b *bin.Buffer) error ( AuthSentCodeClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AuthSentCode *AuthSentCodePaymentRequired *AuthSentCodeSuccess AuthSentCodeClass : github.com/gotd/td/bin.BareDecoder AuthSentCodeClass : github.com/gotd/td/bin.BareEncoder AuthSentCodeClass : github.com/gotd/td/bin.Decoder AuthSentCodeClass : github.com/gotd/td/bin.Encoder AuthSentCodeClass : github.com/gotd/td/bin.Object AuthSentCodeClass : fmt.Stringer func DecodeAuthSentCode(buf *bin.Buffer) (AuthSentCodeClass, error) func (*AccountEmailVerifiedLogin).GetSentCode() (value AuthSentCodeClass) func AuthSentCodeClassArray.First() (v AuthSentCodeClass, ok bool) func AuthSentCodeClassArray.Last() (v AuthSentCodeClass, ok bool) func (*AuthSentCodeClassArray).Pop() (v AuthSentCodeClass, ok bool) func (*AuthSentCodeClassArray).PopFirst() (v AuthSentCodeClass, ok bool) func (*Client).AccountSendChangePhoneCode(ctx context.Context, request *AccountSendChangePhoneCodeRequest) (AuthSentCodeClass, error) func (*Client).AccountSendConfirmPhoneCode(ctx context.Context, request *AccountSendConfirmPhoneCodeRequest) (AuthSentCodeClass, error) func (*Client).AccountSendVerifyPhoneCode(ctx context.Context, request *AccountSendVerifyPhoneCodeRequest) (AuthSentCodeClass, error) func (*Client).AuthCheckPaidAuth(ctx context.Context, request *AuthCheckPaidAuthRequest) (AuthSentCodeClass, error) func (*Client).AuthResendCode(ctx context.Context, request *AuthResendCodeRequest) (AuthSentCodeClass, error) func (*Client).AuthResetLoginEmail(ctx context.Context, request *AuthResetLoginEmailRequest) (AuthSentCodeClass, error) func (*Client).AuthSendCode(ctx context.Context, request *AuthSendCodeRequest) (AuthSentCodeClass, error) func (*UpdateSentPhoneCode).GetSentCode() (value AuthSentCodeClass) func github.com/gotd/td/telegram/auth.(*Client).ResendCode(ctx context.Context, phone string, hash string) (AuthSentCodeClass, error) func github.com/gotd/td/telegram/auth.(*Client).SendCode(ctx context.Context, phone string, options auth.SendCodeOptions) (AuthSentCodeClass, error) func github.com/gotd/td/telegram/auth.FlowClient.SendCode(ctx context.Context, phone string, options auth.SendCodeOptions) (AuthSentCodeClass, error)
AuthSentCodeClassArray is adapter for slice of AuthSentCodeClass. AsAuthSentCode returns copy with only AuthSentCode constructors. AsAuthSentCodePaymentRequired returns copy with only AuthSentCodePaymentRequired constructors. AsAuthSentCodeSuccess returns copy with only AuthSentCodeSuccess constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeClass. Sort sorts slice of AuthSentCodeClass. SortStable sorts slice of AuthSentCodeClass. func AuthSentCodeClassArray.Retain(keep func(x AuthSentCodeClass) bool) AuthSentCodeClassArray func AuthSentCodeClassArray.Sort(less func(a, b AuthSentCodeClass) bool) AuthSentCodeClassArray func AuthSentCodeClassArray.SortStable(less func(a, b AuthSentCodeClass) bool) AuthSentCodeClassArray
AuthSentCodePaymentRequired represents TL type `auth.sentCodePaymentRequired#f8827ebf`. Official apps may receive this constructor, indicating that due to the high cost of SMS verification codes for the user's country/provider, the user must purchase a Telegram Premium¹ subscription in order to proceed with the login/signup, see here »² for more info. Links: 1. https://core.telegram.org/api/premium 2. https://core.telegram.org/api/auth#paid-auth See https://core.telegram.org/constructor/auth.sentCodePaymentRequired for reference. Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json¹, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Links: 1) https://core.telegram.org/bots/payments/currencies.json Three-letter ISO 4217 currency¹ code. Links: 1) https://core.telegram.org/bots/payments#supported-currencies Phone code hash, to be stored and later re-used with auth.signIn¹ Links: 1) https://core.telegram.org/method/auth.signIn PremiumDays field of AuthSentCodePaymentRequired. For official apps, tore identifier of the Telegram Premium subscription. An email address that can be contacted for more information about this request. The mandatory subject for the email. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodePaymentRequired from given interface. GetAmount returns value of Amount field. GetCurrency returns value of Currency field. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPremiumDays returns value of PremiumDays field. GetStoreProduct returns value of StoreProduct field. GetSupportEmailAddress returns value of SupportEmailAddress field. GetSupportEmailSubject returns value of SupportEmailSubject field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodePaymentRequired) Zero() bool *AuthSentCodePaymentRequired : AuthSentCodeClass *AuthSentCodePaymentRequired : github.com/gotd/td/bin.BareDecoder *AuthSentCodePaymentRequired : github.com/gotd/td/bin.BareEncoder *AuthSentCodePaymentRequired : github.com/gotd/td/bin.Decoder *AuthSentCodePaymentRequired : github.com/gotd/td/bin.Encoder *AuthSentCodePaymentRequired : github.com/gotd/td/bin.Object *AuthSentCodePaymentRequired : github.com/gotd/td/tdp.Object *AuthSentCodePaymentRequired : fmt.Stringer func AuthSentCodePaymentRequiredArray.First() (v AuthSentCodePaymentRequired, ok bool) func AuthSentCodePaymentRequiredArray.Last() (v AuthSentCodePaymentRequired, ok bool) func (*AuthSentCodePaymentRequiredArray).Pop() (v AuthSentCodePaymentRequired, ok bool) func (*AuthSentCodePaymentRequiredArray).PopFirst() (v AuthSentCodePaymentRequired, ok bool)
AuthSentCodePaymentRequiredArray is adapter for slice of AuthSentCodePaymentRequired. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodePaymentRequired. Sort sorts slice of AuthSentCodePaymentRequired. SortStable sorts slice of AuthSentCodePaymentRequired. func AuthSentCodeClassArray.AsAuthSentCodePaymentRequired() (to AuthSentCodePaymentRequiredArray) func AuthSentCodePaymentRequiredArray.Retain(keep func(x AuthSentCodePaymentRequired) bool) AuthSentCodePaymentRequiredArray func AuthSentCodePaymentRequiredArray.Sort(less func(a, b AuthSentCodePaymentRequired) bool) AuthSentCodePaymentRequiredArray func AuthSentCodePaymentRequiredArray.SortStable(less func(a, b AuthSentCodePaymentRequired) bool) AuthSentCodePaymentRequiredArray
AuthSentCodeSuccess represents TL type `auth.sentCodeSuccess#2390fe44`. The user successfully authorized using future auth tokens¹ Links: 1. https://core.telegram.org/api/auth#future-auth-tokens See https://core.telegram.org/constructor/auth.sentCodeSuccess for reference. Authorization AuthAuthorizationClass Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeSuccess from given interface. GetAuthorization returns value of Authorization field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeSuccess) Zero() bool *AuthSentCodeSuccess : AuthSentCodeClass *AuthSentCodeSuccess : github.com/gotd/td/bin.BareDecoder *AuthSentCodeSuccess : github.com/gotd/td/bin.BareEncoder *AuthSentCodeSuccess : github.com/gotd/td/bin.Decoder *AuthSentCodeSuccess : github.com/gotd/td/bin.Encoder *AuthSentCodeSuccess : github.com/gotd/td/bin.Object *AuthSentCodeSuccess : github.com/gotd/td/tdp.Object *AuthSentCodeSuccess : fmt.Stringer func AuthSentCodeSuccessArray.First() (v AuthSentCodeSuccess, ok bool) func AuthSentCodeSuccessArray.Last() (v AuthSentCodeSuccess, ok bool) func (*AuthSentCodeSuccessArray).Pop() (v AuthSentCodeSuccess, ok bool) func (*AuthSentCodeSuccessArray).PopFirst() (v AuthSentCodeSuccess, ok bool)
AuthSentCodeSuccessArray is adapter for slice of AuthSentCodeSuccess. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeSuccess. Sort sorts slice of AuthSentCodeSuccess. SortStable sorts slice of AuthSentCodeSuccess. func AuthSentCodeClassArray.AsAuthSentCodeSuccess() (to AuthSentCodeSuccessArray) func AuthSentCodeSuccessArray.Retain(keep func(x AuthSentCodeSuccess) bool) AuthSentCodeSuccessArray func AuthSentCodeSuccessArray.Sort(less func(a, b AuthSentCodeSuccess) bool) AuthSentCodeSuccessArray func AuthSentCodeSuccessArray.SortStable(less func(a, b AuthSentCodeSuccess) bool) AuthSentCodeSuccessArray
AuthSentCodeTypeApp represents TL type `auth.sentCodeTypeApp#3dbb5986`. The code was sent through the telegram app See https://core.telegram.org/constructor/auth.sentCodeTypeApp for reference. Length of the code in bytes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeApp from given interface. GetLength returns value of Length field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeApp) Zero() bool *AuthSentCodeTypeApp : AuthSentCodeTypeClass *AuthSentCodeTypeApp : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeApp : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeApp : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeApp : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeApp : github.com/gotd/td/bin.Object *AuthSentCodeTypeApp : github.com/gotd/td/tdp.Object *AuthSentCodeTypeApp : fmt.Stringer func AuthSentCodeTypeAppArray.First() (v AuthSentCodeTypeApp, ok bool) func AuthSentCodeTypeAppArray.Last() (v AuthSentCodeTypeApp, ok bool) func (*AuthSentCodeTypeAppArray).Pop() (v AuthSentCodeTypeApp, ok bool) func (*AuthSentCodeTypeAppArray).PopFirst() (v AuthSentCodeTypeApp, ok bool)
AuthSentCodeTypeAppArray is adapter for slice of AuthSentCodeTypeApp. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeApp. Sort sorts slice of AuthSentCodeTypeApp. SortStable sorts slice of AuthSentCodeTypeApp. func AuthSentCodeTypeAppArray.Retain(keep func(x AuthSentCodeTypeApp) bool) AuthSentCodeTypeAppArray func AuthSentCodeTypeAppArray.Sort(less func(a, b AuthSentCodeTypeApp) bool) AuthSentCodeTypeAppArray func AuthSentCodeTypeAppArray.SortStable(less func(a, b AuthSentCodeTypeApp) bool) AuthSentCodeTypeAppArray func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeApp() (to AuthSentCodeTypeAppArray)
AuthSentCodeType boxes the AuthSentCodeTypeClass providing a helper. SentCodeType AuthSentCodeTypeClass Decode implements bin.Decoder for AuthSentCodeTypeBox. Encode implements bin.Encode for AuthSentCodeTypeBox. *AuthSentCodeTypeBox : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeBox : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeBox : github.com/gotd/td/bin.Object
AuthSentCodeTypeCall represents TL type `auth.sentCodeTypeCall#5353e5a7`. The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input. See https://core.telegram.org/constructor/auth.sentCodeTypeCall for reference. Length of the code in bytes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeCall from given interface. GetLength returns value of Length field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeCall) Zero() bool *AuthSentCodeTypeCall : AuthSentCodeTypeClass *AuthSentCodeTypeCall : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeCall : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeCall : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeCall : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeCall : github.com/gotd/td/bin.Object *AuthSentCodeTypeCall : github.com/gotd/td/tdp.Object *AuthSentCodeTypeCall : fmt.Stringer func AuthSentCodeTypeCallArray.First() (v AuthSentCodeTypeCall, ok bool) func AuthSentCodeTypeCallArray.Last() (v AuthSentCodeTypeCall, ok bool) func (*AuthSentCodeTypeCallArray).Pop() (v AuthSentCodeTypeCall, ok bool) func (*AuthSentCodeTypeCallArray).PopFirst() (v AuthSentCodeTypeCall, ok bool)
AuthSentCodeTypeCallArray is adapter for slice of AuthSentCodeTypeCall. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeCall. Sort sorts slice of AuthSentCodeTypeCall. SortStable sorts slice of AuthSentCodeTypeCall. func AuthSentCodeTypeCallArray.Retain(keep func(x AuthSentCodeTypeCall) bool) AuthSentCodeTypeCallArray func AuthSentCodeTypeCallArray.Sort(less func(a, b AuthSentCodeTypeCall) bool) AuthSentCodeTypeCallArray func AuthSentCodeTypeCallArray.SortStable(less func(a, b AuthSentCodeTypeCall) bool) AuthSentCodeTypeCallArray func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeCall() (to AuthSentCodeTypeCallArray)
AuthSentCodeTypeClass represents auth.SentCodeType generic type. See https://core.telegram.org/type/auth.SentCodeType for reference. Constructors: - [AuthSentCodeTypeApp] - [AuthSentCodeTypeSMS] - [AuthSentCodeTypeCall] - [AuthSentCodeTypeFlashCall] - [AuthSentCodeTypeMissedCall] - [AuthSentCodeTypeEmailCode] - [AuthSentCodeTypeSetUpEmailRequired] - [AuthSentCodeTypeFragmentSMS] - [AuthSentCodeTypeFirebaseSMS] - [AuthSentCodeTypeSMSWord] - [AuthSentCodeTypeSMSPhrase] Example: g, err := tg.DecodeAuthSentCodeType(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.AuthSentCodeTypeApp: // auth.sentCodeTypeApp#3dbb5986 case *tg.AuthSentCodeTypeSMS: // auth.sentCodeTypeSms#c000bba2 case *tg.AuthSentCodeTypeCall: // auth.sentCodeTypeCall#5353e5a7 case *tg.AuthSentCodeTypeFlashCall: // auth.sentCodeTypeFlashCall#ab03c6d9 case *tg.AuthSentCodeTypeMissedCall: // auth.sentCodeTypeMissedCall#82006484 case *tg.AuthSentCodeTypeEmailCode: // auth.sentCodeTypeEmailCode#f450f59b case *tg.AuthSentCodeTypeSetUpEmailRequired: // auth.sentCodeTypeSetUpEmailRequired#a5491dea case *tg.AuthSentCodeTypeFragmentSMS: // auth.sentCodeTypeFragmentSms#d9565c39 case *tg.AuthSentCodeTypeFirebaseSMS: // auth.sentCodeTypeFirebaseSms#9fd736 case *tg.AuthSentCodeTypeSMSWord: // auth.sentCodeTypeSmsWord#a416ac81 case *tg.AuthSentCodeTypeSMSPhrase: // auth.sentCodeTypeSmsPhrase#b37794af default: panic(v) } ( AuthSentCodeTypeClass) Decode(b *bin.Buffer) error ( AuthSentCodeTypeClass) DecodeBare(b *bin.Buffer) error ( AuthSentCodeTypeClass) Encode(b *bin.Buffer) error ( AuthSentCodeTypeClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *AuthSentCodeTypeApp *AuthSentCodeTypeCall *AuthSentCodeTypeEmailCode *AuthSentCodeTypeFirebaseSMS *AuthSentCodeTypeFlashCall *AuthSentCodeTypeFragmentSMS *AuthSentCodeTypeMissedCall *AuthSentCodeTypeSetUpEmailRequired *AuthSentCodeTypeSMS *AuthSentCodeTypeSMSPhrase *AuthSentCodeTypeSMSWord AuthSentCodeTypeClass : github.com/gotd/td/bin.BareDecoder AuthSentCodeTypeClass : github.com/gotd/td/bin.BareEncoder AuthSentCodeTypeClass : github.com/gotd/td/bin.Decoder AuthSentCodeTypeClass : github.com/gotd/td/bin.Encoder AuthSentCodeTypeClass : github.com/gotd/td/bin.Object AuthSentCodeTypeClass : fmt.Stringer func DecodeAuthSentCodeType(buf *bin.Buffer) (AuthSentCodeTypeClass, error) func (*AuthSentCode).GetType() (value AuthSentCodeTypeClass) func AuthSentCodeTypeClassArray.First() (v AuthSentCodeTypeClass, ok bool) func AuthSentCodeTypeClassArray.Last() (v AuthSentCodeTypeClass, ok bool) func (*AuthSentCodeTypeClassArray).Pop() (v AuthSentCodeTypeClass, ok bool) func (*AuthSentCodeTypeClassArray).PopFirst() (v AuthSentCodeTypeClass, ok bool)
AuthSentCodeTypeClassArray is adapter for slice of AuthSentCodeTypeClass. AsAuthSentCodeTypeApp returns copy with only AuthSentCodeTypeApp constructors. AsAuthSentCodeTypeCall returns copy with only AuthSentCodeTypeCall constructors. AsAuthSentCodeTypeEmailCode returns copy with only AuthSentCodeTypeEmailCode constructors. AsAuthSentCodeTypeFirebaseSMS returns copy with only AuthSentCodeTypeFirebaseSMS constructors. AsAuthSentCodeTypeFlashCall returns copy with only AuthSentCodeTypeFlashCall constructors. AsAuthSentCodeTypeFragmentSMS returns copy with only AuthSentCodeTypeFragmentSMS constructors. AsAuthSentCodeTypeMissedCall returns copy with only AuthSentCodeTypeMissedCall constructors. AsAuthSentCodeTypeSMS returns copy with only AuthSentCodeTypeSMS constructors. AsAuthSentCodeTypeSMSPhrase returns copy with only AuthSentCodeTypeSMSPhrase constructors. AsAuthSentCodeTypeSMSWord returns copy with only AuthSentCodeTypeSMSWord constructors. AsAuthSentCodeTypeSetUpEmailRequired returns copy with only AuthSentCodeTypeSetUpEmailRequired constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeClass. Sort sorts slice of AuthSentCodeTypeClass. SortStable sorts slice of AuthSentCodeTypeClass. func AuthSentCodeTypeClassArray.Retain(keep func(x AuthSentCodeTypeClass) bool) AuthSentCodeTypeClassArray func AuthSentCodeTypeClassArray.Sort(less func(a, b AuthSentCodeTypeClass) bool) AuthSentCodeTypeClassArray func AuthSentCodeTypeClassArray.SortStable(less func(a, b AuthSentCodeTypeClass) bool) AuthSentCodeTypeClassArray
AuthSentCodeTypeEmailCode represents TL type `auth.sentCodeTypeEmailCode#f450f59b`. The code was sent via the previously configured login email »¹ Links: 1. https://core.telegram.org/api/auth#email-verification See https://core.telegram.org/constructor/auth.sentCodeTypeEmailCode for reference. Whether authorization through Apple ID is allowed Pattern¹ of the email Links: 1) https://core.telegram.org/api/pattern Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether authorization through Google ID is allowed Length of the sent verification code Clients should wait for the specified amount of seconds before allowing the user to invoke auth.resetLoginEmail¹ (will be 0 for Premium² users). Links: 1) https://core.telegram.org/method/auth.resetLoginEmail 2) https://core.telegram.org/api/premium Use SetResetAvailablePeriod and GetResetAvailablePeriod helpers. An email reset was already requested, and will occur at the specified date. Use SetResetPendingDate and GetResetPendingDate helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeEmailCode from given interface. GetAppleSigninAllowed returns value of AppleSigninAllowed conditional field. GetEmailPattern returns value of EmailPattern field. GetGoogleSigninAllowed returns value of GoogleSigninAllowed conditional field. GetLength returns value of Length field. GetResetAvailablePeriod returns value of ResetAvailablePeriod conditional field and boolean which is true if field was set. GetResetPendingDate returns value of ResetPendingDate conditional field and boolean which is true if field was set. SetAppleSigninAllowed sets value of AppleSigninAllowed conditional field. SetFlags sets flags for non-zero fields. SetGoogleSigninAllowed sets value of GoogleSigninAllowed conditional field. SetResetAvailablePeriod sets value of ResetAvailablePeriod conditional field. SetResetPendingDate sets value of ResetPendingDate conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeEmailCode) Zero() bool *AuthSentCodeTypeEmailCode : AuthSentCodeTypeClass *AuthSentCodeTypeEmailCode : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeEmailCode : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeEmailCode : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeEmailCode : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeEmailCode : github.com/gotd/td/bin.Object *AuthSentCodeTypeEmailCode : github.com/gotd/td/tdp.Object *AuthSentCodeTypeEmailCode : fmt.Stringer func AuthSentCodeTypeEmailCodeArray.First() (v AuthSentCodeTypeEmailCode, ok bool) func AuthSentCodeTypeEmailCodeArray.Last() (v AuthSentCodeTypeEmailCode, ok bool) func (*AuthSentCodeTypeEmailCodeArray).Pop() (v AuthSentCodeTypeEmailCode, ok bool) func (*AuthSentCodeTypeEmailCodeArray).PopFirst() (v AuthSentCodeTypeEmailCode, ok bool)
AuthSentCodeTypeEmailCodeArray is adapter for slice of AuthSentCodeTypeEmailCode. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeEmailCode. Sort sorts slice of AuthSentCodeTypeEmailCode. SortStable sorts slice of AuthSentCodeTypeEmailCode. func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeEmailCode() (to AuthSentCodeTypeEmailCodeArray) func AuthSentCodeTypeEmailCodeArray.Retain(keep func(x AuthSentCodeTypeEmailCode) bool) AuthSentCodeTypeEmailCodeArray func AuthSentCodeTypeEmailCodeArray.Sort(less func(a, b AuthSentCodeTypeEmailCode) bool) AuthSentCodeTypeEmailCodeArray func AuthSentCodeTypeEmailCodeArray.SortStable(less func(a, b AuthSentCodeTypeEmailCode) bool) AuthSentCodeTypeEmailCodeArray
AuthSentCodeTypeFirebaseSMS represents TL type `auth.sentCodeTypeFirebaseSms#9fd736`. An authentication code should be delivered via SMS after Firebase attestation, as described in the auth documentation »¹. Links: 1. https://core.telegram.org/api/auth See https://core.telegram.org/constructor/auth.sentCodeTypeFirebaseSms for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Length of the code that will be delivered. On Android, the nonce to be used as described in the auth documentation »¹ Links: 1) https://core.telegram.org/api/auth Use SetNonce and GetNonce helpers. Play Integrity API nonce Use SetPlayIntegrityNonce and GetPlayIntegrityNonce helpers. Google Play Integrity project ID Use SetPlayIntegrityProjectID and GetPlayIntegrityProjectID helpers. On iOS: if a push notification with the ios_push_secret isn't received within push_timeout seconds, the next_type authentication method must be used, with auth resendCode¹. Links: 1) https://core.telegram.org/method/auth.resendCode Use SetPushTimeout and GetPushTimeout helpers. On iOS, must be compared with the receipt extracted from the received push notification. Use SetReceipt and GetReceipt helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeFirebaseSMS from given interface. GetLength returns value of Length field. GetNonce returns value of Nonce conditional field and boolean which is true if field was set. GetPlayIntegrityNonce returns value of PlayIntegrityNonce conditional field and boolean which is true if field was set. GetPlayIntegrityProjectID returns value of PlayIntegrityProjectID conditional field and boolean which is true if field was set. GetPushTimeout returns value of PushTimeout conditional field and boolean which is true if field was set. GetReceipt returns value of Receipt conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetNonce sets value of Nonce conditional field. SetPlayIntegrityNonce sets value of PlayIntegrityNonce conditional field. SetPlayIntegrityProjectID sets value of PlayIntegrityProjectID conditional field. SetPushTimeout sets value of PushTimeout conditional field. SetReceipt sets value of Receipt conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeFirebaseSMS) Zero() bool *AuthSentCodeTypeFirebaseSMS : AuthSentCodeTypeClass *AuthSentCodeTypeFirebaseSMS : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeFirebaseSMS : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeFirebaseSMS : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeFirebaseSMS : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeFirebaseSMS : github.com/gotd/td/bin.Object *AuthSentCodeTypeFirebaseSMS : github.com/gotd/td/tdp.Object *AuthSentCodeTypeFirebaseSMS : fmt.Stringer func AuthSentCodeTypeFirebaseSMSArray.First() (v AuthSentCodeTypeFirebaseSMS, ok bool) func AuthSentCodeTypeFirebaseSMSArray.Last() (v AuthSentCodeTypeFirebaseSMS, ok bool) func (*AuthSentCodeTypeFirebaseSMSArray).Pop() (v AuthSentCodeTypeFirebaseSMS, ok bool) func (*AuthSentCodeTypeFirebaseSMSArray).PopFirst() (v AuthSentCodeTypeFirebaseSMS, ok bool)
AuthSentCodeTypeFirebaseSMSArray is adapter for slice of AuthSentCodeTypeFirebaseSMS. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeFirebaseSMS. Sort sorts slice of AuthSentCodeTypeFirebaseSMS. SortStable sorts slice of AuthSentCodeTypeFirebaseSMS. func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeFirebaseSMS() (to AuthSentCodeTypeFirebaseSMSArray) func AuthSentCodeTypeFirebaseSMSArray.Retain(keep func(x AuthSentCodeTypeFirebaseSMS) bool) AuthSentCodeTypeFirebaseSMSArray func AuthSentCodeTypeFirebaseSMSArray.Sort(less func(a, b AuthSentCodeTypeFirebaseSMS) bool) AuthSentCodeTypeFirebaseSMSArray func AuthSentCodeTypeFirebaseSMSArray.SortStable(less func(a, b AuthSentCodeTypeFirebaseSMS) bool) AuthSentCodeTypeFirebaseSMSArray
AuthSentCodeTypeFlashCall represents TL type `auth.sentCodeTypeFlashCall#ab03c6d9`. The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern. See https://core.telegram.org/constructor/auth.sentCodeTypeFlashCall for reference. pattern¹ to match Links: 1) https://core.telegram.org/api/pattern Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeFlashCall from given interface. GetPattern returns value of Pattern field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeFlashCall) Zero() bool *AuthSentCodeTypeFlashCall : AuthSentCodeTypeClass *AuthSentCodeTypeFlashCall : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeFlashCall : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeFlashCall : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeFlashCall : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeFlashCall : github.com/gotd/td/bin.Object *AuthSentCodeTypeFlashCall : github.com/gotd/td/tdp.Object *AuthSentCodeTypeFlashCall : fmt.Stringer func AuthSentCodeTypeFlashCallArray.First() (v AuthSentCodeTypeFlashCall, ok bool) func AuthSentCodeTypeFlashCallArray.Last() (v AuthSentCodeTypeFlashCall, ok bool) func (*AuthSentCodeTypeFlashCallArray).Pop() (v AuthSentCodeTypeFlashCall, ok bool) func (*AuthSentCodeTypeFlashCallArray).PopFirst() (v AuthSentCodeTypeFlashCall, ok bool)
AuthSentCodeTypeFlashCallArray is adapter for slice of AuthSentCodeTypeFlashCall. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeFlashCall. Sort sorts slice of AuthSentCodeTypeFlashCall. SortStable sorts slice of AuthSentCodeTypeFlashCall. func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeFlashCall() (to AuthSentCodeTypeFlashCallArray) func AuthSentCodeTypeFlashCallArray.Retain(keep func(x AuthSentCodeTypeFlashCall) bool) AuthSentCodeTypeFlashCallArray func AuthSentCodeTypeFlashCallArray.Sort(less func(a, b AuthSentCodeTypeFlashCall) bool) AuthSentCodeTypeFlashCallArray func AuthSentCodeTypeFlashCallArray.SortStable(less func(a, b AuthSentCodeTypeFlashCall) bool) AuthSentCodeTypeFlashCallArray
AuthSentCodeTypeFragmentSMS represents TL type `auth.sentCodeTypeFragmentSms#d9565c39`. The code was delivered via fragment.com¹. Links: 1. https://fragment.com See https://core.telegram.org/constructor/auth.sentCodeTypeFragmentSms for reference. Length of the delivered code. Open the specified URL to log into fragment.com¹ with the wallet that owns the specified phone number and view the code. Links: 1) https://fragment.com Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeFragmentSMS from given interface. GetLength returns value of Length field. GetURL returns value of URL field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeFragmentSMS) Zero() bool *AuthSentCodeTypeFragmentSMS : AuthSentCodeTypeClass *AuthSentCodeTypeFragmentSMS : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeFragmentSMS : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeFragmentSMS : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeFragmentSMS : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeFragmentSMS : github.com/gotd/td/bin.Object *AuthSentCodeTypeFragmentSMS : github.com/gotd/td/tdp.Object *AuthSentCodeTypeFragmentSMS : fmt.Stringer func AuthSentCodeTypeFragmentSMSArray.First() (v AuthSentCodeTypeFragmentSMS, ok bool) func AuthSentCodeTypeFragmentSMSArray.Last() (v AuthSentCodeTypeFragmentSMS, ok bool) func (*AuthSentCodeTypeFragmentSMSArray).Pop() (v AuthSentCodeTypeFragmentSMS, ok bool) func (*AuthSentCodeTypeFragmentSMSArray).PopFirst() (v AuthSentCodeTypeFragmentSMS, ok bool)
AuthSentCodeTypeFragmentSMSArray is adapter for slice of AuthSentCodeTypeFragmentSMS. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeFragmentSMS. Sort sorts slice of AuthSentCodeTypeFragmentSMS. SortStable sorts slice of AuthSentCodeTypeFragmentSMS. func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeFragmentSMS() (to AuthSentCodeTypeFragmentSMSArray) func AuthSentCodeTypeFragmentSMSArray.Retain(keep func(x AuthSentCodeTypeFragmentSMS) bool) AuthSentCodeTypeFragmentSMSArray func AuthSentCodeTypeFragmentSMSArray.Sort(less func(a, b AuthSentCodeTypeFragmentSMS) bool) AuthSentCodeTypeFragmentSMSArray func AuthSentCodeTypeFragmentSMSArray.SortStable(less func(a, b AuthSentCodeTypeFragmentSMS) bool) AuthSentCodeTypeFragmentSMSArray
AuthSentCodeTypeMissedCall represents TL type `auth.sentCodeTypeMissedCall#82006484`. The code will be sent via a flash phone call, that will be closed immediately. The last digits of the phone number that calls are the code that must be entered manually by the user. See https://core.telegram.org/constructor/auth.sentCodeTypeMissedCall for reference. Length of the verification code Prefix of the phone number from which the call will be made Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeMissedCall from given interface. GetLength returns value of Length field. GetPrefix returns value of Prefix field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeMissedCall) Zero() bool *AuthSentCodeTypeMissedCall : AuthSentCodeTypeClass *AuthSentCodeTypeMissedCall : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeMissedCall : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeMissedCall : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeMissedCall : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeMissedCall : github.com/gotd/td/bin.Object *AuthSentCodeTypeMissedCall : github.com/gotd/td/tdp.Object *AuthSentCodeTypeMissedCall : fmt.Stringer func AuthSentCodeTypeMissedCallArray.First() (v AuthSentCodeTypeMissedCall, ok bool) func AuthSentCodeTypeMissedCallArray.Last() (v AuthSentCodeTypeMissedCall, ok bool) func (*AuthSentCodeTypeMissedCallArray).Pop() (v AuthSentCodeTypeMissedCall, ok bool) func (*AuthSentCodeTypeMissedCallArray).PopFirst() (v AuthSentCodeTypeMissedCall, ok bool)
AuthSentCodeTypeMissedCallArray is adapter for slice of AuthSentCodeTypeMissedCall. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeMissedCall. Sort sorts slice of AuthSentCodeTypeMissedCall. SortStable sorts slice of AuthSentCodeTypeMissedCall. func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeMissedCall() (to AuthSentCodeTypeMissedCallArray) func AuthSentCodeTypeMissedCallArray.Retain(keep func(x AuthSentCodeTypeMissedCall) bool) AuthSentCodeTypeMissedCallArray func AuthSentCodeTypeMissedCallArray.Sort(less func(a, b AuthSentCodeTypeMissedCall) bool) AuthSentCodeTypeMissedCallArray func AuthSentCodeTypeMissedCallArray.SortStable(less func(a, b AuthSentCodeTypeMissedCall) bool) AuthSentCodeTypeMissedCallArray
AuthSentCodeTypeSetUpEmailRequired represents TL type `auth.sentCodeTypeSetUpEmailRequired#a5491dea`. The user should add and verify an email address in order to login as described here »¹. Links: 1. https://core.telegram.org/api/auth#email-verification See https://core.telegram.org/constructor/auth.sentCodeTypeSetUpEmailRequired for reference. Whether authorization through Apple ID is allowed Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether authorization through Google ID is allowed Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeSetUpEmailRequired from given interface. GetAppleSigninAllowed returns value of AppleSigninAllowed conditional field. GetGoogleSigninAllowed returns value of GoogleSigninAllowed conditional field. SetAppleSigninAllowed sets value of AppleSigninAllowed conditional field. SetFlags sets flags for non-zero fields. SetGoogleSigninAllowed sets value of GoogleSigninAllowed conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeSetUpEmailRequired) Zero() bool *AuthSentCodeTypeSetUpEmailRequired : AuthSentCodeTypeClass *AuthSentCodeTypeSetUpEmailRequired : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeSetUpEmailRequired : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeSetUpEmailRequired : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeSetUpEmailRequired : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeSetUpEmailRequired : github.com/gotd/td/bin.Object *AuthSentCodeTypeSetUpEmailRequired : github.com/gotd/td/tdp.Object *AuthSentCodeTypeSetUpEmailRequired : fmt.Stringer func AuthSentCodeTypeSetUpEmailRequiredArray.First() (v AuthSentCodeTypeSetUpEmailRequired, ok bool) func AuthSentCodeTypeSetUpEmailRequiredArray.Last() (v AuthSentCodeTypeSetUpEmailRequired, ok bool) func (*AuthSentCodeTypeSetUpEmailRequiredArray).Pop() (v AuthSentCodeTypeSetUpEmailRequired, ok bool) func (*AuthSentCodeTypeSetUpEmailRequiredArray).PopFirst() (v AuthSentCodeTypeSetUpEmailRequired, ok bool)
AuthSentCodeTypeSetUpEmailRequiredArray is adapter for slice of AuthSentCodeTypeSetUpEmailRequired. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeSetUpEmailRequired. Sort sorts slice of AuthSentCodeTypeSetUpEmailRequired. SortStable sorts slice of AuthSentCodeTypeSetUpEmailRequired. func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeSetUpEmailRequired() (to AuthSentCodeTypeSetUpEmailRequiredArray) func AuthSentCodeTypeSetUpEmailRequiredArray.Retain(keep func(x AuthSentCodeTypeSetUpEmailRequired) bool) AuthSentCodeTypeSetUpEmailRequiredArray func AuthSentCodeTypeSetUpEmailRequiredArray.Sort(less func(a, b AuthSentCodeTypeSetUpEmailRequired) bool) AuthSentCodeTypeSetUpEmailRequiredArray func AuthSentCodeTypeSetUpEmailRequiredArray.SortStable(less func(a, b AuthSentCodeTypeSetUpEmailRequired) bool) AuthSentCodeTypeSetUpEmailRequiredArray
AuthSentCodeTypeSMS represents TL type `auth.sentCodeTypeSms#c000bba2`. The code was sent via SMS See https://core.telegram.org/constructor/auth.sentCodeTypeSms for reference. Length of the code in bytes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeSMS from given interface. GetLength returns value of Length field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeSMS) Zero() bool *AuthSentCodeTypeSMS : AuthSentCodeTypeClass *AuthSentCodeTypeSMS : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeSMS : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeSMS : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeSMS : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeSMS : github.com/gotd/td/bin.Object *AuthSentCodeTypeSMS : github.com/gotd/td/tdp.Object *AuthSentCodeTypeSMS : fmt.Stringer func AuthSentCodeTypeSMSArray.First() (v AuthSentCodeTypeSMS, ok bool) func AuthSentCodeTypeSMSArray.Last() (v AuthSentCodeTypeSMS, ok bool) func (*AuthSentCodeTypeSMSArray).Pop() (v AuthSentCodeTypeSMS, ok bool) func (*AuthSentCodeTypeSMSArray).PopFirst() (v AuthSentCodeTypeSMS, ok bool)
AuthSentCodeTypeSMSArray is adapter for slice of AuthSentCodeTypeSMS. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeSMS. Sort sorts slice of AuthSentCodeTypeSMS. SortStable sorts slice of AuthSentCodeTypeSMS. func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeSMS() (to AuthSentCodeTypeSMSArray) func AuthSentCodeTypeSMSArray.Retain(keep func(x AuthSentCodeTypeSMS) bool) AuthSentCodeTypeSMSArray func AuthSentCodeTypeSMSArray.Sort(less func(a, b AuthSentCodeTypeSMS) bool) AuthSentCodeTypeSMSArray func AuthSentCodeTypeSMSArray.SortStable(less func(a, b AuthSentCodeTypeSMS) bool) AuthSentCodeTypeSMSArray
AuthSentCodeTypeSMSPhrase represents TL type `auth.sentCodeTypeSmsPhrase#b37794af`. The code was sent via SMS as a secret phrase starting with the word specified in beginning See https://core.telegram.org/constructor/auth.sentCodeTypeSmsPhrase for reference. If set, the secret word in the sent SMS (which may contain multiple words) starts with this letter. Use SetBeginning and GetBeginning helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeSMSPhrase from given interface. GetBeginning returns value of Beginning conditional field and boolean which is true if field was set. SetBeginning sets value of Beginning conditional field. SetFlags sets flags for non-zero fields. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeSMSPhrase) Zero() bool *AuthSentCodeTypeSMSPhrase : AuthSentCodeTypeClass *AuthSentCodeTypeSMSPhrase : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeSMSPhrase : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeSMSPhrase : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeSMSPhrase : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeSMSPhrase : github.com/gotd/td/bin.Object *AuthSentCodeTypeSMSPhrase : github.com/gotd/td/tdp.Object *AuthSentCodeTypeSMSPhrase : fmt.Stringer func AuthSentCodeTypeSMSPhraseArray.First() (v AuthSentCodeTypeSMSPhrase, ok bool) func AuthSentCodeTypeSMSPhraseArray.Last() (v AuthSentCodeTypeSMSPhrase, ok bool) func (*AuthSentCodeTypeSMSPhraseArray).Pop() (v AuthSentCodeTypeSMSPhrase, ok bool) func (*AuthSentCodeTypeSMSPhraseArray).PopFirst() (v AuthSentCodeTypeSMSPhrase, ok bool)
AuthSentCodeTypeSMSPhraseArray is adapter for slice of AuthSentCodeTypeSMSPhrase. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeSMSPhrase. Sort sorts slice of AuthSentCodeTypeSMSPhrase. SortStable sorts slice of AuthSentCodeTypeSMSPhrase. func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeSMSPhrase() (to AuthSentCodeTypeSMSPhraseArray) func AuthSentCodeTypeSMSPhraseArray.Retain(keep func(x AuthSentCodeTypeSMSPhrase) bool) AuthSentCodeTypeSMSPhraseArray func AuthSentCodeTypeSMSPhraseArray.Sort(less func(a, b AuthSentCodeTypeSMSPhrase) bool) AuthSentCodeTypeSMSPhraseArray func AuthSentCodeTypeSMSPhraseArray.SortStable(less func(a, b AuthSentCodeTypeSMSPhrase) bool) AuthSentCodeTypeSMSPhraseArray
AuthSentCodeTypeSMSWord represents TL type `auth.sentCodeTypeSmsWord#a416ac81`. The code was sent via SMS as a secret word, starting with the letter specified in beginning See https://core.telegram.org/constructor/auth.sentCodeTypeSmsWord for reference. If set, the secret word in the sent SMS (which may contain multiple words) starts with this letter. Use SetBeginning and GetBeginning helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSentCodeTypeSMSWord from given interface. GetBeginning returns value of Beginning conditional field and boolean which is true if field was set. SetBeginning sets value of Beginning conditional field. SetFlags sets flags for non-zero fields. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSentCodeTypeSMSWord) Zero() bool *AuthSentCodeTypeSMSWord : AuthSentCodeTypeClass *AuthSentCodeTypeSMSWord : github.com/gotd/td/bin.BareDecoder *AuthSentCodeTypeSMSWord : github.com/gotd/td/bin.BareEncoder *AuthSentCodeTypeSMSWord : github.com/gotd/td/bin.Decoder *AuthSentCodeTypeSMSWord : github.com/gotd/td/bin.Encoder *AuthSentCodeTypeSMSWord : github.com/gotd/td/bin.Object *AuthSentCodeTypeSMSWord : github.com/gotd/td/tdp.Object *AuthSentCodeTypeSMSWord : fmt.Stringer func AuthSentCodeTypeSMSWordArray.First() (v AuthSentCodeTypeSMSWord, ok bool) func AuthSentCodeTypeSMSWordArray.Last() (v AuthSentCodeTypeSMSWord, ok bool) func (*AuthSentCodeTypeSMSWordArray).Pop() (v AuthSentCodeTypeSMSWord, ok bool) func (*AuthSentCodeTypeSMSWordArray).PopFirst() (v AuthSentCodeTypeSMSWord, ok bool)
AuthSentCodeTypeSMSWordArray is adapter for slice of AuthSentCodeTypeSMSWord. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of AuthSentCodeTypeSMSWord. Sort sorts slice of AuthSentCodeTypeSMSWord. SortStable sorts slice of AuthSentCodeTypeSMSWord. func AuthSentCodeTypeClassArray.AsAuthSentCodeTypeSMSWord() (to AuthSentCodeTypeSMSWordArray) func AuthSentCodeTypeSMSWordArray.Retain(keep func(x AuthSentCodeTypeSMSWord) bool) AuthSentCodeTypeSMSWordArray func AuthSentCodeTypeSMSWordArray.Sort(less func(a, b AuthSentCodeTypeSMSWord) bool) AuthSentCodeTypeSMSWordArray func AuthSentCodeTypeSMSWordArray.SortStable(less func(a, b AuthSentCodeTypeSMSWord) bool) AuthSentCodeTypeSMSWordArray
AuthSignInRequest represents TL type `auth.signIn#8d52a951`. Signs in a user with a validated phone number. See https://core.telegram.org/method/auth.signIn for reference. Email verification code or token Use SetEmailVerification and GetEmailVerification helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Valid numerical code from the SMS-message Use SetPhoneCode and GetPhoneCode helpers. SMS-message ID, obtained from auth.sendCode¹ Links: 1) https://core.telegram.org/method/auth.sendCode Phone number in the international format Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSignInRequest from given interface. GetEmailVerification returns value of EmailVerification conditional field and boolean which is true if field was set. GetPhoneCode returns value of PhoneCode conditional field and boolean which is true if field was set. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. SetEmailVerification sets value of EmailVerification conditional field. SetFlags sets flags for non-zero fields. SetPhoneCode sets value of PhoneCode conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSignInRequest) Zero() bool *AuthSignInRequest : github.com/gotd/td/bin.BareDecoder *AuthSignInRequest : github.com/gotd/td/bin.BareEncoder *AuthSignInRequest : github.com/gotd/td/bin.Decoder *AuthSignInRequest : github.com/gotd/td/bin.Encoder *AuthSignInRequest : github.com/gotd/td/bin.Object *AuthSignInRequest : github.com/gotd/td/tdp.Object *AuthSignInRequest : fmt.Stringer func (*Client).AuthSignIn(ctx context.Context, request *AuthSignInRequest) (AuthAuthorizationClass, error)
AuthSignUpRequest represents TL type `auth.signUp#aac7b717`. Registers a validated phone number in the system. See https://core.telegram.org/method/auth.signUp for reference. New user first name Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields New user last name If set, users on Telegram that have already added phone_number to their contacts will not receive signup notifications about this user. SMS-message ID Phone number in the international format Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AuthSignUpRequest from given interface. GetFirstName returns value of FirstName field. GetLastName returns value of LastName field. GetNoJoinedNotifications returns value of NoJoinedNotifications conditional field. GetPhoneCodeHash returns value of PhoneCodeHash field. GetPhoneNumber returns value of PhoneNumber field. SetFlags sets flags for non-zero fields. SetNoJoinedNotifications sets value of NoJoinedNotifications conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AuthSignUpRequest) Zero() bool *AuthSignUpRequest : github.com/gotd/td/bin.BareDecoder *AuthSignUpRequest : github.com/gotd/td/bin.BareEncoder *AuthSignUpRequest : github.com/gotd/td/bin.Decoder *AuthSignUpRequest : github.com/gotd/td/bin.Encoder *AuthSignUpRequest : github.com/gotd/td/bin.Object *AuthSignUpRequest : github.com/gotd/td/tdp.Object *AuthSignUpRequest : fmt.Stringer func (*Client).AuthSignUp(ctx context.Context, request *AuthSignUpRequest) (AuthAuthorizationClass, error)
AutoDownloadSettings represents TL type `autoDownloadSettings#baa57628`. Autodownload settings See https://core.telegram.org/constructor/autoDownloadSettings for reference. Whether to preload the next audio track when you're listening to music Disable automatic media downloads? Maximum size of other files to preload Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB. Whether to enable data saving mode in phone calls Maximum size of photos to preload A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files smaller than 20MB. Whether to preload stories¹; in particular, the first documentAttributeVideo² preload_prefix_size bytes of story videos should be preloaded. Links: 1) https://core.telegram.org/api/stories 2) https://core.telegram.org/constructor/documentAttributeVideo Whether to preload the first seconds of videos larger than the specified limit Maximum size of videos to preload Maximum suggested bitrate for uploading videos Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AutoDownloadSettings from given interface. GetAudioPreloadNext returns value of AudioPreloadNext conditional field. GetDisabled returns value of Disabled conditional field. GetFileSizeMax returns value of FileSizeMax field. GetLargeQueueActiveOperationsMax returns value of LargeQueueActiveOperationsMax field. GetPhonecallsLessData returns value of PhonecallsLessData conditional field. GetPhotoSizeMax returns value of PhotoSizeMax field. GetSmallQueueActiveOperationsMax returns value of SmallQueueActiveOperationsMax field. GetStoriesPreload returns value of StoriesPreload conditional field. GetVideoPreloadLarge returns value of VideoPreloadLarge conditional field. GetVideoSizeMax returns value of VideoSizeMax field. GetVideoUploadMaxbitrate returns value of VideoUploadMaxbitrate field. SetAudioPreloadNext sets value of AudioPreloadNext conditional field. SetDisabled sets value of Disabled conditional field. SetFlags sets flags for non-zero fields. SetPhonecallsLessData sets value of PhonecallsLessData conditional field. SetStoriesPreload sets value of StoriesPreload conditional field. SetVideoPreloadLarge sets value of VideoPreloadLarge conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AutoDownloadSettings) Zero() bool *AutoDownloadSettings : github.com/gotd/td/bin.BareDecoder *AutoDownloadSettings : github.com/gotd/td/bin.BareEncoder *AutoDownloadSettings : github.com/gotd/td/bin.Decoder *AutoDownloadSettings : github.com/gotd/td/bin.Encoder *AutoDownloadSettings : github.com/gotd/td/bin.Object *AutoDownloadSettings : github.com/gotd/td/tdp.Object *AutoDownloadSettings : fmt.Stringer func (*AccountAutoDownloadSettings).GetHigh() (value AutoDownloadSettings) func (*AccountAutoDownloadSettings).GetLow() (value AutoDownloadSettings) func (*AccountAutoDownloadSettings).GetMedium() (value AutoDownloadSettings) func (*AccountSaveAutoDownloadSettingsRequest).GetSettings() (value AutoDownloadSettings)
AutoSaveException represents TL type `autoSaveException#81602d47`. Peer-specific media autosave settings See https://core.telegram.org/constructor/autoSaveException for reference. The peer Media autosave settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AutoSaveException from given interface. GetPeer returns value of Peer field. GetSettings returns value of Settings field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AutoSaveException) Zero() bool *AutoSaveException : github.com/gotd/td/bin.BareDecoder *AutoSaveException : github.com/gotd/td/bin.BareEncoder *AutoSaveException : github.com/gotd/td/bin.Decoder *AutoSaveException : github.com/gotd/td/bin.Encoder *AutoSaveException : github.com/gotd/td/bin.Object *AutoSaveException : github.com/gotd/td/tdp.Object *AutoSaveException : fmt.Stringer func (*AccountAutoSaveSettings).GetExceptions() (value []AutoSaveException)
AutoSaveSettings represents TL type `autoSaveSettings#c84834ce`. Media autosave settings See https://core.telegram.org/constructor/autoSaveSettings for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether photos should be autosaved to the gallery. If set, specifies a size limit for autosavable videos Use SetVideoMaxSize and GetVideoMaxSize helpers. Whether videos should be autosaved to the gallery. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AutoSaveSettings from given interface. GetPhotos returns value of Photos conditional field. GetVideoMaxSize returns value of VideoMaxSize conditional field and boolean which is true if field was set. GetVideos returns value of Videos conditional field. SetFlags sets flags for non-zero fields. SetPhotos sets value of Photos conditional field. SetVideoMaxSize sets value of VideoMaxSize conditional field. SetVideos sets value of Videos conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AutoSaveSettings) Zero() bool *AutoSaveSettings : github.com/gotd/td/bin.BareDecoder *AutoSaveSettings : github.com/gotd/td/bin.BareEncoder *AutoSaveSettings : github.com/gotd/td/bin.Decoder *AutoSaveSettings : github.com/gotd/td/bin.Encoder *AutoSaveSettings : github.com/gotd/td/bin.Object *AutoSaveSettings : github.com/gotd/td/tdp.Object *AutoSaveSettings : fmt.Stringer func (*AccountAutoSaveSettings).GetBroadcastsSettings() (value AutoSaveSettings) func (*AccountAutoSaveSettings).GetChatsSettings() (value AutoSaveSettings) func (*AccountAutoSaveSettings).GetUsersSettings() (value AutoSaveSettings) func (*AccountSaveAutoSaveSettingsRequest).GetSettings() (value AutoSaveSettings) func (*AutoSaveException).GetSettings() (value AutoSaveSettings)
AutoSaveSettingsHandler is a AutoSaveSettings event handler. func UpdateDispatcher.OnAutoSaveSettings(handler AutoSaveSettingsHandler)
AvailableEffect represents TL type `availableEffect#93c3e27e`. Represents a message effect »¹. All long IDs except for id are document¹.ids from the containing messages availableEffects² constructor. See here »¹ for more info on how to use following fields. Links: 1. https://core.telegram.org/api/effects 2. https://core.telegram.org/constructor/document 3. https://core.telegram.org/constructor/messages.availableEffects 4. https://core.telegram.org/api/effects See https://core.telegram.org/constructor/availableEffect for reference. If set, contains the actual animated effect (TGS format »)¹. If not set, the animated effect must be set equal to the premium animated sticker effect² associated to the animated sticker specified in effect_sticker_id (always different from the preview animation, fetched thanks to the videoSize³ of type f as specified here »⁴). Links: 1) https://core.telegram.org/api/stickers#animated-stickers 2) https://core.telegram.org/api/stickers#premium-animated-sticker-effects 3) https://core.telegram.org/constructor/videoSize 4) https://core.telegram.org/api/stickers#premium-animated-sticker-effects Use SetEffectAnimationID and GetEffectAnimationID helpers. Contains the preview animation (TGS format »)¹, used for the effect selection menu. Links: 1) https://core.telegram.org/api/stickers#animated-stickers Emoji corresponding to the effect, to be used as icon for the effect if static_icon_id is not set. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Unique effect ID. Whether a Premium¹ subscription is required to use this effect. Links: 1) https://core.telegram.org/api/premium ID of the document containing the static icon (WEBP) of the effect. Use SetStaticIconID and GetStaticIconID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AvailableEffect from given interface. GetEffectAnimationID returns value of EffectAnimationID conditional field and boolean which is true if field was set. GetEffectStickerID returns value of EffectStickerID field. GetEmoticon returns value of Emoticon field. GetID returns value of ID field. GetPremiumRequired returns value of PremiumRequired conditional field. GetStaticIconID returns value of StaticIconID conditional field and boolean which is true if field was set. SetEffectAnimationID sets value of EffectAnimationID conditional field. SetFlags sets flags for non-zero fields. SetPremiumRequired sets value of PremiumRequired conditional field. SetStaticIconID sets value of StaticIconID conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AvailableEffect) Zero() bool *AvailableEffect : github.com/gotd/td/bin.BareDecoder *AvailableEffect : github.com/gotd/td/bin.BareEncoder *AvailableEffect : github.com/gotd/td/bin.Decoder *AvailableEffect : github.com/gotd/td/bin.Encoder *AvailableEffect : github.com/gotd/td/bin.Object *AvailableEffect : github.com/gotd/td/tdp.Object *AvailableEffect : fmt.Stringer func (*MessagesAvailableEffects).GetEffects() (value []AvailableEffect)
AvailableReaction represents TL type `availableReaction#c077ec01`. Animations associated with a message reaction See https://core.telegram.org/constructor/availableReaction for reference. The animated sticker to show when the reaction is chosen and activated The animated sticker to show when the user opens the reaction dropdown The animation that plays around the button when you press an existing reaction (played together with center_icon). Use SetAroundAnimation and GetAroundAnimation helpers. The animation of the emoji inside the button when you press an existing reaction (played together with around_animation). Use SetCenterIcon and GetCenterIcon helpers. The background effect (still an animated sticker) to play under the activate_animation when the reaction is chosen and activated Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If not set, the reaction can be added to new messages and enabled in chats. Whether this reaction can only be used by Telegram Premium users Reaction emoji The animated sticker to show when the user hovers over the reaction Static icon for the reaction Reaction description Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AvailableReaction from given interface. GetActivateAnimation returns value of ActivateAnimation field. GetActivateAnimationAsNotEmpty returns mapped value of ActivateAnimation field. GetAppearAnimation returns value of AppearAnimation field. GetAppearAnimationAsNotEmpty returns mapped value of AppearAnimation field. GetAroundAnimation returns value of AroundAnimation conditional field and boolean which is true if field was set. GetAroundAnimationAsNotEmpty returns mapped value of AroundAnimation conditional field and boolean which is true if field was set. GetCenterIcon returns value of CenterIcon conditional field and boolean which is true if field was set. GetCenterIconAsNotEmpty returns mapped value of CenterIcon conditional field and boolean which is true if field was set. GetEffectAnimation returns value of EffectAnimation field. GetEffectAnimationAsNotEmpty returns mapped value of EffectAnimation field. GetInactive returns value of Inactive conditional field. GetPremium returns value of Premium conditional field. GetReaction returns value of Reaction field. GetSelectAnimation returns value of SelectAnimation field. GetSelectAnimationAsNotEmpty returns mapped value of SelectAnimation field. GetStaticIcon returns value of StaticIcon field. GetStaticIconAsNotEmpty returns mapped value of StaticIcon field. GetTitle returns value of Title field. SetAroundAnimation sets value of AroundAnimation conditional field. SetCenterIcon sets value of CenterIcon conditional field. SetFlags sets flags for non-zero fields. SetInactive sets value of Inactive conditional field. SetPremium sets value of Premium conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*AvailableReaction) Zero() bool *AvailableReaction : github.com/gotd/td/bin.BareDecoder *AvailableReaction : github.com/gotd/td/bin.BareEncoder *AvailableReaction : github.com/gotd/td/bin.Decoder *AvailableReaction : github.com/gotd/td/bin.Encoder *AvailableReaction : github.com/gotd/td/bin.Object *AvailableReaction : github.com/gotd/td/tdp.Object *AvailableReaction : fmt.Stringer func (*MessagesAvailableReactions).GetReactions() (value []AvailableReaction)
BankCardOpenURL represents TL type `bankCardOpenUrl#f568028a`. Credit card info URL provided by the bank See https://core.telegram.org/constructor/bankCardOpenUrl for reference. Bank name Info URL Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BankCardOpenURL from given interface. GetName returns value of Name field. GetURL returns value of URL field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BankCardOpenURL) Zero() bool *BankCardOpenURL : github.com/gotd/td/bin.BareDecoder *BankCardOpenURL : github.com/gotd/td/bin.BareEncoder *BankCardOpenURL : github.com/gotd/td/bin.Decoder *BankCardOpenURL : github.com/gotd/td/bin.Encoder *BankCardOpenURL : github.com/gotd/td/bin.Object *BankCardOpenURL : github.com/gotd/td/tdp.Object *BankCardOpenURL : fmt.Stringer func (*PaymentsBankCardData).GetOpenURLs() (value []BankCardOpenURL)
BaseThemeArctic represents TL type `baseThemeArctic#5b11125a`. Arctic theme See https://core.telegram.org/constructor/baseThemeArctic for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BaseThemeArctic) Zero() bool *BaseThemeArctic : BaseThemeClass *BaseThemeArctic : github.com/gotd/td/bin.BareDecoder *BaseThemeArctic : github.com/gotd/td/bin.BareEncoder *BaseThemeArctic : github.com/gotd/td/bin.Decoder *BaseThemeArctic : github.com/gotd/td/bin.Encoder *BaseThemeArctic : github.com/gotd/td/bin.Object *BaseThemeArctic : github.com/gotd/td/tdp.Object *BaseThemeArctic : fmt.Stringer
BaseTheme boxes the BaseThemeClass providing a helper. BaseTheme BaseThemeClass Decode implements bin.Decoder for BaseThemeBox. Encode implements bin.Encode for BaseThemeBox. *BaseThemeBox : github.com/gotd/td/bin.Decoder *BaseThemeBox : github.com/gotd/td/bin.Encoder *BaseThemeBox : github.com/gotd/td/bin.Object
BaseThemeClass represents BaseTheme generic type. See https://core.telegram.org/type/BaseTheme for reference. Constructors: - [BaseThemeClassic] - [BaseThemeDay] - [BaseThemeNight] - [BaseThemeTinted] - [BaseThemeArctic] Example: g, err := tg.DecodeBaseTheme(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.BaseThemeClassic: // baseThemeClassic#c3a12462 case *tg.BaseThemeDay: // baseThemeDay#fbd81688 case *tg.BaseThemeNight: // baseThemeNight#b7b31ea8 case *tg.BaseThemeTinted: // baseThemeTinted#6d5f77ee case *tg.BaseThemeArctic: // baseThemeArctic#5b11125a default: panic(v) } ( BaseThemeClass) Decode(b *bin.Buffer) error ( BaseThemeClass) DecodeBare(b *bin.Buffer) error ( BaseThemeClass) Encode(b *bin.Buffer) error ( BaseThemeClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *BaseThemeArctic *BaseThemeClassic *BaseThemeDay *BaseThemeNight *BaseThemeTinted BaseThemeClass : github.com/gotd/td/bin.BareDecoder BaseThemeClass : github.com/gotd/td/bin.BareEncoder BaseThemeClass : github.com/gotd/td/bin.Decoder BaseThemeClass : github.com/gotd/td/bin.Encoder BaseThemeClass : github.com/gotd/td/bin.Object BaseThemeClass : fmt.Stringer func DecodeBaseTheme(buf *bin.Buffer) (BaseThemeClass, error) func (*AccountInstallThemeRequest).GetBaseTheme() (value BaseThemeClass, ok bool) func BaseThemeClassArray.First() (v BaseThemeClass, ok bool) func BaseThemeClassArray.Last() (v BaseThemeClass, ok bool) func (*BaseThemeClassArray).Pop() (v BaseThemeClass, ok bool) func (*BaseThemeClassArray).PopFirst() (v BaseThemeClass, ok bool) func (*InputThemeSettings).GetBaseTheme() (value BaseThemeClass) func (*ThemeSettings).GetBaseTheme() (value BaseThemeClass) func (*AccountInstallThemeRequest).SetBaseTheme(value BaseThemeClass)
BaseThemeClassArray is adapter for slice of BaseThemeClass. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BaseThemeClass. Sort sorts slice of BaseThemeClass. SortStable sorts slice of BaseThemeClass. func BaseThemeClassArray.Retain(keep func(x BaseThemeClass) bool) BaseThemeClassArray func BaseThemeClassArray.Sort(less func(a, b BaseThemeClass) bool) BaseThemeClassArray func BaseThemeClassArray.SortStable(less func(a, b BaseThemeClass) bool) BaseThemeClassArray
BaseThemeClassic represents TL type `baseThemeClassic#c3a12462`. Classic theme See https://core.telegram.org/constructor/baseThemeClassic for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BaseThemeClassic) Zero() bool *BaseThemeClassic : BaseThemeClass *BaseThemeClassic : github.com/gotd/td/bin.BareDecoder *BaseThemeClassic : github.com/gotd/td/bin.BareEncoder *BaseThemeClassic : github.com/gotd/td/bin.Decoder *BaseThemeClassic : github.com/gotd/td/bin.Encoder *BaseThemeClassic : github.com/gotd/td/bin.Object *BaseThemeClassic : github.com/gotd/td/tdp.Object *BaseThemeClassic : fmt.Stringer
BaseThemeDay represents TL type `baseThemeDay#fbd81688`. Day theme See https://core.telegram.org/constructor/baseThemeDay for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BaseThemeDay) Zero() bool *BaseThemeDay : BaseThemeClass *BaseThemeDay : github.com/gotd/td/bin.BareDecoder *BaseThemeDay : github.com/gotd/td/bin.BareEncoder *BaseThemeDay : github.com/gotd/td/bin.Decoder *BaseThemeDay : github.com/gotd/td/bin.Encoder *BaseThemeDay : github.com/gotd/td/bin.Object *BaseThemeDay : github.com/gotd/td/tdp.Object *BaseThemeDay : fmt.Stringer
BaseThemeNight represents TL type `baseThemeNight#b7b31ea8`. Night theme See https://core.telegram.org/constructor/baseThemeNight for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BaseThemeNight) Zero() bool *BaseThemeNight : BaseThemeClass *BaseThemeNight : github.com/gotd/td/bin.BareDecoder *BaseThemeNight : github.com/gotd/td/bin.BareEncoder *BaseThemeNight : github.com/gotd/td/bin.Decoder *BaseThemeNight : github.com/gotd/td/bin.Encoder *BaseThemeNight : github.com/gotd/td/bin.Object *BaseThemeNight : github.com/gotd/td/tdp.Object *BaseThemeNight : fmt.Stringer
BaseThemeTinted represents TL type `baseThemeTinted#6d5f77ee`. Tinted theme See https://core.telegram.org/constructor/baseThemeTinted for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BaseThemeTinted) Zero() bool *BaseThemeTinted : BaseThemeClass *BaseThemeTinted : github.com/gotd/td/bin.BareDecoder *BaseThemeTinted : github.com/gotd/td/bin.BareEncoder *BaseThemeTinted : github.com/gotd/td/bin.Decoder *BaseThemeTinted : github.com/gotd/td/bin.Encoder *BaseThemeTinted : github.com/gotd/td/bin.Object *BaseThemeTinted : github.com/gotd/td/tdp.Object *BaseThemeTinted : fmt.Stringer
Birthday represents TL type `birthday#6c8e1e06`. Birthday¹ information for a user. Also used to invite users to gift Telegram Premium subscriptions »¹ to other users with birthdays within a +1/-1 day time range, related to the current day. Links: 1. https://core.telegram.org/api/profile#birthday 2. https://core.telegram.org/api/premium#gifting-telegram-premium See https://core.telegram.org/constructor/birthday for reference. Birth day Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Birth month (Optional) birth year. Use SetYear and GetYear helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Birthday from given interface. GetDay returns value of Day field. GetMonth returns value of Month field. GetYear returns value of Year conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetYear sets value of Year conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*Birthday) Zero() bool *Birthday : github.com/gotd/td/bin.BareDecoder *Birthday : github.com/gotd/td/bin.BareEncoder *Birthday : github.com/gotd/td/bin.Decoder *Birthday : github.com/gotd/td/bin.Encoder *Birthday : github.com/gotd/td/bin.Object *Birthday : github.com/gotd/td/tdp.Object *Birthday : fmt.Stringer func (*AccountUpdateBirthdayRequest).GetBirthday() (value Birthday, ok bool) func (*ContactBirthday).GetBirthday() (value Birthday) func (*MessageActionSuggestBirthday).GetBirthday() (value Birthday) func (*UserFull).GetBirthday() (value Birthday, ok bool) func (*UsersSuggestBirthdayRequest).GetBirthday() (value Birthday) func (*AccountUpdateBirthdayRequest).SetBirthday(value Birthday) func (*UserFull).SetBirthday(value Birthday)
Bool boxes the BoolClass providing a helper. Bool BoolClass Decode implements bin.Decoder for BoolBox. Encode implements bin.Encode for BoolBox. *BoolBox : github.com/gotd/td/bin.Decoder *BoolBox : github.com/gotd/td/bin.Encoder *BoolBox : github.com/gotd/td/bin.Object
BoolClass represents Bool generic type. See https://core.telegram.org/type/Bool for reference. Constructors: - [BoolFalse] - [BoolTrue] Example: g, err := tg.DecodeBool(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.BoolFalse: // boolFalse#bc799737 case *tg.BoolTrue: // boolTrue#997275b5 default: panic(v) } ( BoolClass) Decode(b *bin.Buffer) error ( BoolClass) DecodeBare(b *bin.Buffer) error ( BoolClass) Encode(b *bin.Buffer) error ( BoolClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *BoolFalse *BoolTrue BoolClass : github.com/gotd/td/bin.BareDecoder BoolClass : github.com/gotd/td/bin.BareEncoder BoolClass : github.com/gotd/td/bin.Decoder BoolClass : github.com/gotd/td/bin.Encoder BoolClass : github.com/gotd/td/bin.Object BoolClass : fmt.Stringer func DecodeBool(buf *bin.Buffer) (BoolClass, error) func BoolClassArray.First() (v BoolClass, ok bool) func BoolClassArray.Last() (v BoolClass, ok bool) func (*BoolClassArray).Pop() (v BoolClass, ok bool) func (*BoolClassArray).PopFirst() (v BoolClass, ok bool)
BoolClassArray is adapter for slice of BoolClass. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BoolClass. Sort sorts slice of BoolClass. SortStable sorts slice of BoolClass. func BoolClassArray.Retain(keep func(x BoolClass) bool) BoolClassArray func BoolClassArray.Sort(less func(a, b BoolClass) bool) BoolClassArray func BoolClassArray.SortStable(less func(a, b BoolClass) bool) BoolClassArray
BoolFalse represents TL type `boolFalse#bc799737`. Constructor may be interpreted as a booleanfalse value. See https://core.telegram.org/constructor/boolFalse for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BoolFalse) Zero() bool *BoolFalse : BoolClass *BoolFalse : github.com/gotd/td/bin.BareDecoder *BoolFalse : github.com/gotd/td/bin.BareEncoder *BoolFalse : github.com/gotd/td/bin.Decoder *BoolFalse : github.com/gotd/td/bin.Encoder *BoolFalse : github.com/gotd/td/bin.Object *BoolFalse : github.com/gotd/td/tdp.Object *BoolFalse : fmt.Stringer
BoolTrue represents TL type `boolTrue#997275b5`. The constructor can be interpreted as a booleantrue value. See https://core.telegram.org/constructor/boolTrue for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BoolTrue) Zero() bool *BoolTrue : BoolClass *BoolTrue : github.com/gotd/td/bin.BareDecoder *BoolTrue : github.com/gotd/td/bin.BareEncoder *BoolTrue : github.com/gotd/td/bin.Decoder *BoolTrue : github.com/gotd/td/bin.Encoder *BoolTrue : github.com/gotd/td/bin.Object *BoolTrue : github.com/gotd/td/tdp.Object *BoolTrue : fmt.Stringer
Boost represents TL type `boost#4b3e14d6`. Info about one or more boosts¹ applied by a specific user. Links: 1. https://core.telegram.org/api/boost See https://core.telegram.org/constructor/boost for reference. When was the boost applied When does the boost expire Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this boost was applied because the channel/supergroup directly gifted a subscription to the user¹. Links: 1) https://core.telegram.org/api/giveaways Whether this boost was applied because the user was chosen in a giveaway started by the channel/supergroup¹. Links: 1) https://core.telegram.org/api/giveaways The message ID of the giveaway¹ Links: 1) https://core.telegram.org/api/giveaways Use SetGiveawayMsgID and GetGiveawayMsgID helpers. Unique ID for this set of boosts. If set, this boost counts as multiplier boosts, otherwise it counts as a single boost. Use SetMultiplier and GetMultiplier helpers. Number of Telegram Stars distributed among the winners of the giveaway. Use SetStars and GetStars helpers. If set, the user hasn't yet invoked payments.applyGiftCode¹ to claim a subscription gifted directly or in a giveaway by the channel². Links: 1) https://core.telegram.org/method/payments.applyGiftCode 2) https://core.telegram.org/api/giveaways The created Telegram Premium gift code, only set if either gift or giveaway are set AND it is either a gift code for the currently logged in user or if it was already claimed. Use SetUsedGiftSlug and GetUsedGiftSlug helpers. ID of the user that applied the boost. Use SetUserID and GetUserID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Boost from given interface. GetDate returns value of Date field. GetExpires returns value of Expires field. GetGift returns value of Gift conditional field. GetGiveaway returns value of Giveaway conditional field. GetGiveawayMsgID returns value of GiveawayMsgID conditional field and boolean which is true if field was set. GetID returns value of ID field. GetMultiplier returns value of Multiplier conditional field and boolean which is true if field was set. GetStars returns value of Stars conditional field and boolean which is true if field was set. GetUnclaimed returns value of Unclaimed conditional field. GetUsedGiftSlug returns value of UsedGiftSlug conditional field and boolean which is true if field was set. GetUserID returns value of UserID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetGift sets value of Gift conditional field. SetGiveaway sets value of Giveaway conditional field. SetGiveawayMsgID sets value of GiveawayMsgID conditional field. SetMultiplier sets value of Multiplier conditional field. SetStars sets value of Stars conditional field. SetUnclaimed sets value of Unclaimed conditional field. SetUsedGiftSlug sets value of UsedGiftSlug conditional field. SetUserID sets value of UserID conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*Boost) Zero() bool *Boost : github.com/gotd/td/bin.BareDecoder *Boost : github.com/gotd/td/bin.BareEncoder *Boost : github.com/gotd/td/bin.Decoder *Boost : github.com/gotd/td/bin.Encoder *Boost : github.com/gotd/td/bin.Object *Boost : github.com/gotd/td/tdp.Object *Boost : fmt.Stringer func (*PremiumBoostsList).GetBoosts() (value []Boost) func (*UpdateBotChatBoost).GetBoost() (value Boost)
BotApp represents TL type `botApp#95fcd1d6`. Contains information about a direct link Mini App¹. Links: 1. https://core.telegram.org/api/bots/webapps#direct-link-mini-apps See https://core.telegram.org/constructor/botApp for reference. bot mini app access hash bot mini app description. bot mini app animation. Use SetDocument and GetDocument helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Hash to pass to messages.getBotApp¹, to avoid refetching bot app info if it hasn't changed. Links: 1) https://core.telegram.org/method/messages.getBotApp bot mini app ID bot mini app photo. bot mini app short name, used to generate Direct Mini App deep links¹. Links: 1) https://core.telegram.org/api/links#direct-mini-app-links bot mini app title. AsInputBotAppID tries to map BotApp to InputBotAppID. AsModified tries to map BotApp to BotApp. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotApp from given interface. GetAccessHash returns value of AccessHash field. GetDescription returns value of Description field. GetDocument returns value of Document conditional field and boolean which is true if field was set. GetHash returns value of Hash field. GetID returns value of ID field. GetPhoto returns value of Photo field. GetShortName returns value of ShortName field. GetTitle returns value of Title field. SetDocument sets value of Document conditional field. SetFlags sets flags for non-zero fields. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotApp) Zero() bool *BotApp : BotAppClass *BotApp : github.com/gotd/td/bin.BareDecoder *BotApp : github.com/gotd/td/bin.BareEncoder *BotApp : github.com/gotd/td/bin.Decoder *BotApp : github.com/gotd/td/bin.Encoder *BotApp : github.com/gotd/td/bin.Object *BotApp : github.com/gotd/td/tdp.Object *BotApp : fmt.Stringer func (*BotApp).AsModified() (*BotApp, bool) func BotAppArray.First() (v BotApp, ok bool) func BotAppArray.Last() (v BotApp, ok bool) func (*BotAppArray).Pop() (v BotApp, ok bool) func (*BotAppArray).PopFirst() (v BotApp, ok bool) func BotAppArray.ToMap() map[int64]BotApp func BotAppClass.AsModified() (*BotApp, bool) func BotAppClassArray.AppendOnlyModified(to []*BotApp) []*BotApp func BotAppClassArray.AsModified() (to []*BotApp) func BotAppClassArray.FirstAsModified() (v *BotApp, ok bool) func BotAppClassArray.LastAsModified() (v *BotApp, ok bool) func BotAppClassArray.ModifiedToMap() map[int64]*BotApp func (*BotAppClassArray).PopAsModified() (v *BotApp, ok bool) func (*BotAppClassArray).PopFirstAsModified() (v *BotApp, ok bool) func (*BotAppNotModified).AsModified() (*BotApp, bool) func (*MessagesBotApp).GetAppAsModified() (*BotApp, bool) func BotAppArray.FillMap(to map[int64]BotApp) func BotAppClassArray.AppendOnlyModified(to []*BotApp) []*BotApp func BotAppClassArray.FillModifiedMap(to map[int64]*BotApp)
BotAppArray is adapter for slice of BotApp. FillMap fills constructors to given map. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotApp. Sort sorts slice of BotApp. SortByID sorts slice of BotApp by ID. SortStable sorts slice of BotApp. SortStableByID sorts slice of BotApp by ID. ToMap collects constructors to map. func BotAppArray.Retain(keep func(x BotApp) bool) BotAppArray func BotAppArray.Sort(less func(a, b BotApp) bool) BotAppArray func BotAppArray.SortByID() BotAppArray func BotAppArray.SortStable(less func(a, b BotApp) bool) BotAppArray func BotAppArray.SortStableByID() BotAppArray func BotAppClassArray.AsBotApp() (to BotAppArray)
BotApp boxes the BotAppClass providing a helper. BotApp BotAppClass Decode implements bin.Decoder for BotAppBox. Encode implements bin.Encode for BotAppBox. *BotAppBox : github.com/gotd/td/bin.Decoder *BotAppBox : github.com/gotd/td/bin.Encoder *BotAppBox : github.com/gotd/td/bin.Object
BotAppClass represents BotApp generic type. See https://core.telegram.org/type/BotApp for reference. Constructors: - [BotAppNotModified] - [BotApp] Example: g, err := tg.DecodeBotApp(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.BotAppNotModified: // botAppNotModified#5da674b7 case *tg.BotApp: // botApp#95fcd1d6 default: panic(v) } AsModified tries to map BotAppClass to BotApp. ( BotAppClass) Decode(b *bin.Buffer) error ( BotAppClass) DecodeBare(b *bin.Buffer) error ( BotAppClass) Encode(b *bin.Buffer) error ( BotAppClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *BotApp *BotAppNotModified BotAppClass : github.com/gotd/td/bin.BareDecoder BotAppClass : github.com/gotd/td/bin.BareEncoder BotAppClass : github.com/gotd/td/bin.Decoder BotAppClass : github.com/gotd/td/bin.Encoder BotAppClass : github.com/gotd/td/bin.Object BotAppClass : fmt.Stringer func DecodeBotApp(buf *bin.Buffer) (BotAppClass, error) func BotAppClassArray.First() (v BotAppClass, ok bool) func BotAppClassArray.Last() (v BotAppClass, ok bool) func (*BotAppClassArray).Pop() (v BotAppClass, ok bool) func (*BotAppClassArray).PopFirst() (v BotAppClass, ok bool) func (*MessageActionBotAllowed).GetApp() (value BotAppClass, ok bool) func (*MessagesBotApp).GetApp() (value BotAppClass) func (*MessageActionBotAllowed).SetApp(value BotAppClass)
BotAppClassArray is adapter for slice of BotAppClass. AppendOnlyModified appends only Modified constructors to given slice. AsBotApp returns copy with only BotApp constructors. AsModified returns copy with only Modified constructors. FillModifiedMap fills only Modified constructors to given map. First returns first element of slice (if exists). FirstAsModified returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsModified returns last element of slice (if exists). ModifiedToMap collects only Modified constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsModified returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsModified returns element of slice (if exists). Retain filters in-place slice of BotAppClass. Sort sorts slice of BotAppClass. SortStable sorts slice of BotAppClass. func BotAppClassArray.Retain(keep func(x BotAppClass) bool) BotAppClassArray func BotAppClassArray.Sort(less func(a, b BotAppClass) bool) BotAppClassArray func BotAppClassArray.SortStable(less func(a, b BotAppClass) bool) BotAppClassArray
BotAppNotModified represents TL type `botAppNotModified#5da674b7`. Bot app info hasn't changed. See https://core.telegram.org/constructor/botAppNotModified for reference. AsModified tries to map BotAppNotModified to BotApp. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotAppNotModified) Zero() bool *BotAppNotModified : BotAppClass *BotAppNotModified : github.com/gotd/td/bin.BareDecoder *BotAppNotModified : github.com/gotd/td/bin.BareEncoder *BotAppNotModified : github.com/gotd/td/bin.Decoder *BotAppNotModified : github.com/gotd/td/bin.Encoder *BotAppNotModified : github.com/gotd/td/bin.Object *BotAppNotModified : github.com/gotd/td/tdp.Object *BotAppNotModified : fmt.Stringer
BotAppSettings represents TL type `botAppSettings#c99b1950`. Mini app »¹ settings Links: 1. https://core.telegram.org/api/bots/webapps See https://core.telegram.org/constructor/botAppSettings for reference. Default light mode background color Use SetBackgroundColor and GetBackgroundColor helpers. Default dark mode background color Use SetBackgroundDarkColor and GetBackgroundDarkColor helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Default light mode header color Use SetHeaderColor and GetHeaderColor helpers. Default dark mode header color Use SetHeaderDarkColor and GetHeaderDarkColor helpers. SVG placeholder logo, compressed using the same format used for vector thumbnails »¹. Links: 1) https://core.telegram.org/api/files#vector-thumbnails Use SetPlaceholderPath and GetPlaceholderPath helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotAppSettings from given interface. GetBackgroundColor returns value of BackgroundColor conditional field and boolean which is true if field was set. GetBackgroundDarkColor returns value of BackgroundDarkColor conditional field and boolean which is true if field was set. GetHeaderColor returns value of HeaderColor conditional field and boolean which is true if field was set. GetHeaderDarkColor returns value of HeaderDarkColor conditional field and boolean which is true if field was set. GetPlaceholderPath returns value of PlaceholderPath conditional field and boolean which is true if field was set. SetBackgroundColor sets value of BackgroundColor conditional field. SetBackgroundDarkColor sets value of BackgroundDarkColor conditional field. SetFlags sets flags for non-zero fields. SetHeaderColor sets value of HeaderColor conditional field. SetHeaderDarkColor sets value of HeaderDarkColor conditional field. SetPlaceholderPath sets value of PlaceholderPath conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotAppSettings) Zero() bool *BotAppSettings : github.com/gotd/td/bin.BareDecoder *BotAppSettings : github.com/gotd/td/bin.BareEncoder *BotAppSettings : github.com/gotd/td/bin.Decoder *BotAppSettings : github.com/gotd/td/bin.Encoder *BotAppSettings : github.com/gotd/td/bin.Object *BotAppSettings : github.com/gotd/td/tdp.Object *BotAppSettings : fmt.Stringer func (*BotInfo).GetAppSettings() (value BotAppSettings, ok bool) func (*BotInfo).SetAppSettings(value BotAppSettings)
BotBusinessConnectHandler is a BotBusinessConnect event handler. func UpdateDispatcher.OnBotBusinessConnect(handler BotBusinessConnectHandler)
BotBusinessConnection represents TL type `botBusinessConnection#8f34b2f5`. Contains info about a bot business connection¹. Links: 1. https://core.telegram.org/api/bots/connected-business-bots See https://core.telegram.org/constructor/botBusinessConnection for reference. Business connection ID, used to identify messages coming from the connection and to reply to them as specified here »¹. Links: 1) https://core.telegram.org/api/bots/connected-business-bots ID of the datacenter where to send queries wrapped in a invokeWithBusinessConnection¹ as specified here »². Links: 1) https://core.telegram.org/method/invokeWithBusinessConnection 2) https://core.telegram.org/api/bots/connected-business-bots When was the connection created. Whether this business connection is currently disabled Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Business bot rights. Use SetRights and GetRights helpers. ID of the user that the bot is connected to via this connection. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotBusinessConnection from given interface. GetConnectionID returns value of ConnectionID field. GetDCID returns value of DCID field. GetDate returns value of Date field. GetDisabled returns value of Disabled conditional field. GetRights returns value of Rights conditional field and boolean which is true if field was set. GetUserID returns value of UserID field. SetDisabled sets value of Disabled conditional field. SetFlags sets flags for non-zero fields. SetRights sets value of Rights conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotBusinessConnection) Zero() bool *BotBusinessConnection : github.com/gotd/td/bin.BareDecoder *BotBusinessConnection : github.com/gotd/td/bin.BareEncoder *BotBusinessConnection : github.com/gotd/td/bin.Decoder *BotBusinessConnection : github.com/gotd/td/bin.Encoder *BotBusinessConnection : github.com/gotd/td/bin.Object *BotBusinessConnection : github.com/gotd/td/tdp.Object *BotBusinessConnection : fmt.Stringer func (*UpdateBotBusinessConnect).GetConnection() (value BotBusinessConnection)
BotCallbackQueryHandler is a BotCallbackQuery event handler. func UpdateDispatcher.OnBotCallbackQuery(handler BotCallbackQueryHandler)
BotChatBoostHandler is a BotChatBoost event handler. func UpdateDispatcher.OnBotChatBoost(handler BotChatBoostHandler)
BotChatInviteRequesterHandler is a BotChatInviteRequester event handler. func UpdateDispatcher.OnBotChatInviteRequester(handler BotChatInviteRequesterHandler)
BotCommand represents TL type `botCommand#9852d6d2`. Describes a bot command that can be used in a chat See https://core.telegram.org/constructor/botCommand for reference. /command name Description of the command Ephemeral field of BotCommand. Flags field of BotCommand. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotCommand from given interface. GetCommand returns value of Command field. GetDescription returns value of Description field. GetEphemeral returns value of Ephemeral conditional field. SetEphemeral sets value of Ephemeral conditional field. SetFlags sets flags for non-zero fields. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotCommand) Zero() bool *BotCommand : github.com/gotd/td/bin.BareDecoder *BotCommand : github.com/gotd/td/bin.BareEncoder *BotCommand : github.com/gotd/td/bin.Decoder *BotCommand : github.com/gotd/td/bin.Encoder *BotCommand : github.com/gotd/td/bin.Object *BotCommand : github.com/gotd/td/tdp.Object *BotCommand : fmt.Stringer func (*BotCommandVector).GetElems() (value []BotCommand) func (*BotInfo).GetCommands() (value []BotCommand, ok bool) func (*BotsSetBotCommandsRequest).GetCommands() (value []BotCommand) func (*Client).BotsGetBotCommands(ctx context.Context, request *BotsGetBotCommandsRequest) ([]BotCommand, error) func (*UpdateBotCommands).GetCommands() (value []BotCommand) func (*BotInfo).SetCommands(value []BotCommand)
BotCommandScope boxes the BotCommandScopeClass providing a helper. BotCommandScope BotCommandScopeClass Decode implements bin.Decoder for BotCommandScopeBox. Encode implements bin.Encode for BotCommandScopeBox. *BotCommandScopeBox : github.com/gotd/td/bin.Decoder *BotCommandScopeBox : github.com/gotd/td/bin.Encoder *BotCommandScopeBox : github.com/gotd/td/bin.Object
BotCommandScopeChatAdmins represents TL type `botCommandScopeChatAdmins#b9aa606a`. The specified bot commands will be valid only for chat administrators, in all groups and supergroups¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/botCommandScopeChatAdmins for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotCommandScopeChatAdmins) Zero() bool *BotCommandScopeChatAdmins : BotCommandScopeClass *BotCommandScopeChatAdmins : github.com/gotd/td/bin.BareDecoder *BotCommandScopeChatAdmins : github.com/gotd/td/bin.BareEncoder *BotCommandScopeChatAdmins : github.com/gotd/td/bin.Decoder *BotCommandScopeChatAdmins : github.com/gotd/td/bin.Encoder *BotCommandScopeChatAdmins : github.com/gotd/td/bin.Object *BotCommandScopeChatAdmins : github.com/gotd/td/tdp.Object *BotCommandScopeChatAdmins : fmt.Stringer
BotCommandScopeChats represents TL type `botCommandScopeChats#6fe1a881`. The specified bot commands will be valid in all groups and supergroups¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/botCommandScopeChats for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotCommandScopeChats) Zero() bool *BotCommandScopeChats : BotCommandScopeClass *BotCommandScopeChats : github.com/gotd/td/bin.BareDecoder *BotCommandScopeChats : github.com/gotd/td/bin.BareEncoder *BotCommandScopeChats : github.com/gotd/td/bin.Decoder *BotCommandScopeChats : github.com/gotd/td/bin.Encoder *BotCommandScopeChats : github.com/gotd/td/bin.Object *BotCommandScopeChats : github.com/gotd/td/tdp.Object *BotCommandScopeChats : fmt.Stringer
BotCommandScopeClass represents BotCommandScope generic type. See https://core.telegram.org/type/BotCommandScope for reference. Constructors: - [BotCommandScopeDefault] - [BotCommandScopeUsers] - [BotCommandScopeChats] - [BotCommandScopeChatAdmins] - [BotCommandScopePeer] - [BotCommandScopePeerAdmins] - [BotCommandScopePeerUser] Example: g, err := tg.DecodeBotCommandScope(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.BotCommandScopeDefault: // botCommandScopeDefault#2f6cb2ab case *tg.BotCommandScopeUsers: // botCommandScopeUsers#3c4f04d8 case *tg.BotCommandScopeChats: // botCommandScopeChats#6fe1a881 case *tg.BotCommandScopeChatAdmins: // botCommandScopeChatAdmins#b9aa606a case *tg.BotCommandScopePeer: // botCommandScopePeer#db9d897d case *tg.BotCommandScopePeerAdmins: // botCommandScopePeerAdmins#3fd863d1 case *tg.BotCommandScopePeerUser: // botCommandScopePeerUser#a1321f3 default: panic(v) } ( BotCommandScopeClass) Decode(b *bin.Buffer) error ( BotCommandScopeClass) DecodeBare(b *bin.Buffer) error ( BotCommandScopeClass) Encode(b *bin.Buffer) error ( BotCommandScopeClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *BotCommandScopeChatAdmins *BotCommandScopeChats *BotCommandScopeDefault *BotCommandScopePeer *BotCommandScopePeerAdmins *BotCommandScopePeerUser *BotCommandScopeUsers BotCommandScopeClass : github.com/gotd/td/bin.BareDecoder BotCommandScopeClass : github.com/gotd/td/bin.BareEncoder BotCommandScopeClass : github.com/gotd/td/bin.Decoder BotCommandScopeClass : github.com/gotd/td/bin.Encoder BotCommandScopeClass : github.com/gotd/td/bin.Object BotCommandScopeClass : fmt.Stringer func DecodeBotCommandScope(buf *bin.Buffer) (BotCommandScopeClass, error) func BotCommandScopeClassArray.First() (v BotCommandScopeClass, ok bool) func BotCommandScopeClassArray.Last() (v BotCommandScopeClass, ok bool) func (*BotCommandScopeClassArray).Pop() (v BotCommandScopeClass, ok bool) func (*BotCommandScopeClassArray).PopFirst() (v BotCommandScopeClass, ok bool) func (*BotsGetBotCommandsRequest).GetScope() (value BotCommandScopeClass) func (*BotsResetBotCommandsRequest).GetScope() (value BotCommandScopeClass) func (*BotsSetBotCommandsRequest).GetScope() (value BotCommandScopeClass)
BotCommandScopeClassArray is adapter for slice of BotCommandScopeClass. AsBotCommandScopePeer returns copy with only BotCommandScopePeer constructors. AsBotCommandScopePeerAdmins returns copy with only BotCommandScopePeerAdmins constructors. AsBotCommandScopePeerUser returns copy with only BotCommandScopePeerUser constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotCommandScopeClass. Sort sorts slice of BotCommandScopeClass. SortStable sorts slice of BotCommandScopeClass. func BotCommandScopeClassArray.Retain(keep func(x BotCommandScopeClass) bool) BotCommandScopeClassArray func BotCommandScopeClassArray.Sort(less func(a, b BotCommandScopeClass) bool) BotCommandScopeClassArray func BotCommandScopeClassArray.SortStable(less func(a, b BotCommandScopeClass) bool) BotCommandScopeClassArray
BotCommandScopeDefault represents TL type `botCommandScopeDefault#2f6cb2ab`. The commands will be valid in all dialogs See https://core.telegram.org/constructor/botCommandScopeDefault for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotCommandScopeDefault) Zero() bool *BotCommandScopeDefault : BotCommandScopeClass *BotCommandScopeDefault : github.com/gotd/td/bin.BareDecoder *BotCommandScopeDefault : github.com/gotd/td/bin.BareEncoder *BotCommandScopeDefault : github.com/gotd/td/bin.Decoder *BotCommandScopeDefault : github.com/gotd/td/bin.Encoder *BotCommandScopeDefault : github.com/gotd/td/bin.Object *BotCommandScopeDefault : github.com/gotd/td/tdp.Object *BotCommandScopeDefault : fmt.Stringer
BotCommandScopePeer represents TL type `botCommandScopePeer#db9d897d`. The specified bot commands will be valid only in a specific dialog. See https://core.telegram.org/constructor/botCommandScopePeer for reference. The chat to disconnect Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotCommandScopePeer from given interface. GetPeer returns value of Peer field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotCommandScopePeer) Zero() bool *BotCommandScopePeer : BotCommandScopeClass *BotCommandScopePeer : github.com/gotd/td/bin.BareDecoder *BotCommandScopePeer : github.com/gotd/td/bin.BareEncoder *BotCommandScopePeer : github.com/gotd/td/bin.Decoder *BotCommandScopePeer : github.com/gotd/td/bin.Encoder *BotCommandScopePeer : github.com/gotd/td/bin.Object *BotCommandScopePeer : github.com/gotd/td/tdp.Object *BotCommandScopePeer : fmt.Stringer func BotCommandScopePeerArray.First() (v BotCommandScopePeer, ok bool) func BotCommandScopePeerArray.Last() (v BotCommandScopePeer, ok bool) func (*BotCommandScopePeerArray).Pop() (v BotCommandScopePeer, ok bool) func (*BotCommandScopePeerArray).PopFirst() (v BotCommandScopePeer, ok bool)
BotCommandScopePeerAdmins represents TL type `botCommandScopePeerAdmins#3fd863d1`. The specified bot commands will be valid for all admins of the specified group or supergroup¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/botCommandScopePeerAdmins for reference. The chat to disconnect Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotCommandScopePeerAdmins from given interface. GetPeer returns value of Peer field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotCommandScopePeerAdmins) Zero() bool *BotCommandScopePeerAdmins : BotCommandScopeClass *BotCommandScopePeerAdmins : github.com/gotd/td/bin.BareDecoder *BotCommandScopePeerAdmins : github.com/gotd/td/bin.BareEncoder *BotCommandScopePeerAdmins : github.com/gotd/td/bin.Decoder *BotCommandScopePeerAdmins : github.com/gotd/td/bin.Encoder *BotCommandScopePeerAdmins : github.com/gotd/td/bin.Object *BotCommandScopePeerAdmins : github.com/gotd/td/tdp.Object *BotCommandScopePeerAdmins : fmt.Stringer func BotCommandScopePeerAdminsArray.First() (v BotCommandScopePeerAdmins, ok bool) func BotCommandScopePeerAdminsArray.Last() (v BotCommandScopePeerAdmins, ok bool) func (*BotCommandScopePeerAdminsArray).Pop() (v BotCommandScopePeerAdmins, ok bool) func (*BotCommandScopePeerAdminsArray).PopFirst() (v BotCommandScopePeerAdmins, ok bool)
BotCommandScopePeerAdminsArray is adapter for slice of BotCommandScopePeerAdmins. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotCommandScopePeerAdmins. Sort sorts slice of BotCommandScopePeerAdmins. SortStable sorts slice of BotCommandScopePeerAdmins. func BotCommandScopeClassArray.AsBotCommandScopePeerAdmins() (to BotCommandScopePeerAdminsArray) func BotCommandScopePeerAdminsArray.Retain(keep func(x BotCommandScopePeerAdmins) bool) BotCommandScopePeerAdminsArray func BotCommandScopePeerAdminsArray.Sort(less func(a, b BotCommandScopePeerAdmins) bool) BotCommandScopePeerAdminsArray func BotCommandScopePeerAdminsArray.SortStable(less func(a, b BotCommandScopePeerAdmins) bool) BotCommandScopePeerAdminsArray
BotCommandScopePeerArray is adapter for slice of BotCommandScopePeer. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotCommandScopePeer. Sort sorts slice of BotCommandScopePeer. SortStable sorts slice of BotCommandScopePeer. func BotCommandScopeClassArray.AsBotCommandScopePeer() (to BotCommandScopePeerArray) func BotCommandScopePeerArray.Retain(keep func(x BotCommandScopePeer) bool) BotCommandScopePeerArray func BotCommandScopePeerArray.Sort(less func(a, b BotCommandScopePeer) bool) BotCommandScopePeerArray func BotCommandScopePeerArray.SortStable(less func(a, b BotCommandScopePeer) bool) BotCommandScopePeerArray
BotCommandScopePeerUser represents TL type `botCommandScopePeerUser#a1321f3`. The specified bot commands will be valid only for a specific user in the specified group or supergroup¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/botCommandScopePeerUser for reference. The chat The user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotCommandScopePeerUser from given interface. GetPeer returns value of Peer field. GetUserID returns value of UserID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotCommandScopePeerUser) Zero() bool *BotCommandScopePeerUser : BotCommandScopeClass *BotCommandScopePeerUser : github.com/gotd/td/bin.BareDecoder *BotCommandScopePeerUser : github.com/gotd/td/bin.BareEncoder *BotCommandScopePeerUser : github.com/gotd/td/bin.Decoder *BotCommandScopePeerUser : github.com/gotd/td/bin.Encoder *BotCommandScopePeerUser : github.com/gotd/td/bin.Object *BotCommandScopePeerUser : github.com/gotd/td/tdp.Object *BotCommandScopePeerUser : fmt.Stringer func BotCommandScopePeerUserArray.First() (v BotCommandScopePeerUser, ok bool) func BotCommandScopePeerUserArray.Last() (v BotCommandScopePeerUser, ok bool) func (*BotCommandScopePeerUserArray).Pop() (v BotCommandScopePeerUser, ok bool) func (*BotCommandScopePeerUserArray).PopFirst() (v BotCommandScopePeerUser, ok bool)
BotCommandScopePeerUserArray is adapter for slice of BotCommandScopePeerUser. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotCommandScopePeerUser. Sort sorts slice of BotCommandScopePeerUser. SortStable sorts slice of BotCommandScopePeerUser. func BotCommandScopeClassArray.AsBotCommandScopePeerUser() (to BotCommandScopePeerUserArray) func BotCommandScopePeerUserArray.Retain(keep func(x BotCommandScopePeerUser) bool) BotCommandScopePeerUserArray func BotCommandScopePeerUserArray.Sort(less func(a, b BotCommandScopePeerUser) bool) BotCommandScopePeerUserArray func BotCommandScopePeerUserArray.SortStable(less func(a, b BotCommandScopePeerUser) bool) BotCommandScopePeerUserArray
BotCommandScopeUsers represents TL type `botCommandScopeUsers#3c4f04d8`. The specified bot commands will only be valid in all private chats with users. See https://core.telegram.org/constructor/botCommandScopeUsers for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotCommandScopeUsers) Zero() bool *BotCommandScopeUsers : BotCommandScopeClass *BotCommandScopeUsers : github.com/gotd/td/bin.BareDecoder *BotCommandScopeUsers : github.com/gotd/td/bin.BareEncoder *BotCommandScopeUsers : github.com/gotd/td/bin.Decoder *BotCommandScopeUsers : github.com/gotd/td/bin.Encoder *BotCommandScopeUsers : github.com/gotd/td/bin.Object *BotCommandScopeUsers : github.com/gotd/td/tdp.Object *BotCommandScopeUsers : fmt.Stringer
BotCommandsHandler is a BotCommands event handler. func UpdateDispatcher.OnBotCommands(handler BotCommandsHandler)
BotCommandVector is a box for Vector<BotCommand> Elements of Vector<BotCommand> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotCommandVector from given interface. GetElems returns value of Elems field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotCommandVector) Zero() bool *BotCommandVector : github.com/gotd/td/bin.BareDecoder *BotCommandVector : github.com/gotd/td/bin.BareEncoder *BotCommandVector : github.com/gotd/td/bin.Decoder *BotCommandVector : github.com/gotd/td/bin.Encoder *BotCommandVector : github.com/gotd/td/bin.Object *BotCommandVector : github.com/gotd/td/tdp.Object *BotCommandVector : fmt.Stringer
BotDeleteBusinessMessageHandler is a BotDeleteBusinessMessage event handler. func UpdateDispatcher.OnBotDeleteBusinessMessage(handler BotDeleteBusinessMessageHandler)
BotEditBusinessMessageHandler is a BotEditBusinessMessage event handler. func UpdateDispatcher.OnBotEditBusinessMessage(handler BotEditBusinessMessageHandler)
BotGuestChatQueryHandler is a BotGuestChatQuery event handler. func UpdateDispatcher.OnBotGuestChatQuery(handler BotGuestChatQueryHandler)
BotInfo represents TL type `botInfo#4d8a0299`. Info about bots (available bot commands, etc) See https://core.telegram.org/constructor/botInfo for reference. Mini app »¹ settings Links: 1) https://core.telegram.org/api/bots/webapps Use SetAppSettings and GetAppSettings helpers. Bot commands that can be used in the chat Use SetCommands and GetCommands helpers. Description of the bot Use SetDescription and GetDescription helpers. Description animation in MPEG4 format Use SetDescriptionDocument and GetDescriptionDocument helpers. Description photo Use SetDescriptionPhoto and GetDescriptionPhoto helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, the bot has some preview medias for the configured Main Mini App, see here »¹ for more info on Main Mini App preview medias. Links: 1) https://core.telegram.org/api/bots/webapps#main-mini-app-previews Indicates the action to execute when pressing the in-UI menu button for bots Use SetMenuButton and GetMenuButton helpers. The HTTP link to the privacy policy of the bot. If not set, then the /privacy command must be used, if supported by the bot (i.e. if it's present in the commands vector). If it isn't supported, then https://telegram.org/privacy-tpa¹ must be opened, instead. Links: 1) https://telegram.org/privacy-tpa Use SetPrivacyPolicyURL and GetPrivacyPolicyURL helpers. ID of the bot Use SetUserID and GetUserID helpers. This bot can verify peers¹: this field contains more info about the verification the bot can assign to peers. Links: 1) https://core.telegram.org/api/bots/verification Use SetVerifierSettings and GetVerifierSettings helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInfo from given interface. GetAppSettings returns value of AppSettings conditional field and boolean which is true if field was set. GetCommands returns value of Commands conditional field and boolean which is true if field was set. GetDescription returns value of Description conditional field and boolean which is true if field was set. GetDescriptionDocument returns value of DescriptionDocument conditional field and boolean which is true if field was set. GetDescriptionDocumentAsNotEmpty returns mapped value of DescriptionDocument conditional field and boolean which is true if field was set. GetDescriptionPhoto returns value of DescriptionPhoto conditional field and boolean which is true if field was set. GetDescriptionPhotoAsNotEmpty returns mapped value of DescriptionPhoto conditional field and boolean which is true if field was set. GetHasPreviewMedias returns value of HasPreviewMedias conditional field. GetMenuButton returns value of MenuButton conditional field and boolean which is true if field was set. GetPrivacyPolicyURL returns value of PrivacyPolicyURL conditional field and boolean which is true if field was set. GetUserID returns value of UserID conditional field and boolean which is true if field was set. GetVerifierSettings returns value of VerifierSettings conditional field and boolean which is true if field was set. SetAppSettings sets value of AppSettings conditional field. SetCommands sets value of Commands conditional field. SetDescription sets value of Description conditional field. SetDescriptionDocument sets value of DescriptionDocument conditional field. SetDescriptionPhoto sets value of DescriptionPhoto conditional field. SetFlags sets flags for non-zero fields. SetHasPreviewMedias sets value of HasPreviewMedias conditional field. SetMenuButton sets value of MenuButton conditional field. SetPrivacyPolicyURL sets value of PrivacyPolicyURL conditional field. SetUserID sets value of UserID conditional field. SetVerifierSettings sets value of VerifierSettings conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInfo) Zero() bool *BotInfo : github.com/gotd/td/bin.BareDecoder *BotInfo : github.com/gotd/td/bin.BareEncoder *BotInfo : github.com/gotd/td/bin.Decoder *BotInfo : github.com/gotd/td/bin.Encoder *BotInfo : github.com/gotd/td/bin.Object *BotInfo : github.com/gotd/td/tdp.Object *BotInfo : fmt.Stringer func (*ChannelFull).GetBotInfo() (value []BotInfo) func (*ChatFull).GetBotInfo() (value []BotInfo, ok bool) func (*UserFull).GetBotInfo() (value BotInfo, ok bool) func (*ChatFull).SetBotInfo(value []BotInfo) func (*UserFull).SetBotInfo(value BotInfo)
BotInlineMediaResult represents TL type `botInlineMediaResult#17db940b`. Media result See https://core.telegram.org/constructor/botInlineMediaResult for reference. Description Use SetDescription and GetDescription helpers. If type is document, the document to send Use SetDocument and GetDocument helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Result ID If type is photo, the photo to send Use SetPhoto and GetPhoto helpers. Depending on the type and on the constructor¹, contains the caption of the media or the content of the message to be sent instead of the media Links: 1) https://core.telegram.org/type/BotInlineMessage Result title Use SetTitle and GetTitle helpers. Result type (see bot API docs¹) Links: 1) https://core.telegram.org/bots/api#inlinequeryresult Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineMediaResult from given interface. GetDescription returns value of Description conditional field and boolean which is true if field was set. GetDocument returns value of Document conditional field and boolean which is true if field was set. GetID returns value of ID field. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetSendMessage returns value of SendMessage field. GetTitle returns value of Title conditional field and boolean which is true if field was set. GetType returns value of Type field. SetDescription sets value of Description conditional field. SetDocument sets value of Document conditional field. SetFlags sets flags for non-zero fields. SetPhoto sets value of Photo conditional field. SetTitle sets value of Title conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineMediaResult) Zero() bool *BotInlineMediaResult : BotInlineResultClass *BotInlineMediaResult : github.com/gotd/td/bin.BareDecoder *BotInlineMediaResult : github.com/gotd/td/bin.BareEncoder *BotInlineMediaResult : github.com/gotd/td/bin.Decoder *BotInlineMediaResult : github.com/gotd/td/bin.Encoder *BotInlineMediaResult : github.com/gotd/td/bin.Object *BotInlineMediaResult : github.com/gotd/td/tdp.Object *BotInlineMediaResult : fmt.Stringer func BotInlineMediaResultArray.First() (v BotInlineMediaResult, ok bool) func BotInlineMediaResultArray.Last() (v BotInlineMediaResult, ok bool) func (*BotInlineMediaResultArray).Pop() (v BotInlineMediaResult, ok bool) func (*BotInlineMediaResultArray).PopFirst() (v BotInlineMediaResult, ok bool)
BotInlineMediaResultArray is adapter for slice of BotInlineMediaResult. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMediaResult. Sort sorts slice of BotInlineMediaResult. SortStable sorts slice of BotInlineMediaResult. func BotInlineMediaResultArray.Retain(keep func(x BotInlineMediaResult) bool) BotInlineMediaResultArray func BotInlineMediaResultArray.Sort(less func(a, b BotInlineMediaResult) bool) BotInlineMediaResultArray func BotInlineMediaResultArray.SortStable(less func(a, b BotInlineMediaResult) bool) BotInlineMediaResultArray func BotInlineResultClassArray.AsBotInlineMediaResult() (to BotInlineMediaResultArray)
BotInlineMessage boxes the BotInlineMessageClass providing a helper. BotInlineMessage BotInlineMessageClass Decode implements bin.Decoder for BotInlineMessageBox. Encode implements bin.Encode for BotInlineMessageBox. *BotInlineMessageBox : github.com/gotd/td/bin.Decoder *BotInlineMessageBox : github.com/gotd/td/bin.Encoder *BotInlineMessageBox : github.com/gotd/td/bin.Object
BotInlineMessageClass represents BotInlineMessage generic type. See https://core.telegram.org/type/BotInlineMessage for reference. Constructors: - [BotInlineMessageMediaAuto] - [BotInlineMessageText] - [BotInlineMessageMediaGeo] - [BotInlineMessageMediaVenue] - [BotInlineMessageMediaContact] - [BotInlineMessageMediaInvoice] - [BotInlineMessageMediaWebPage] - [BotInlineMessageRichMessage] Example: g, err := tg.DecodeBotInlineMessage(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.BotInlineMessageMediaAuto: // botInlineMessageMediaAuto#764cf810 case *tg.BotInlineMessageText: // botInlineMessageText#8c7f65e2 case *tg.BotInlineMessageMediaGeo: // botInlineMessageMediaGeo#51846fd case *tg.BotInlineMessageMediaVenue: // botInlineMessageMediaVenue#8a86659c case *tg.BotInlineMessageMediaContact: // botInlineMessageMediaContact#18d1cdc2 case *tg.BotInlineMessageMediaInvoice: // botInlineMessageMediaInvoice#354a9b09 case *tg.BotInlineMessageMediaWebPage: // botInlineMessageMediaWebPage#809ad9a6 case *tg.BotInlineMessageRichMessage: // botInlineMessageRichMessage#a617e7b default: panic(v) } ( BotInlineMessageClass) Decode(b *bin.Buffer) error ( BotInlineMessageClass) DecodeBare(b *bin.Buffer) error ( BotInlineMessageClass) Encode(b *bin.Buffer) error ( BotInlineMessageClass) EncodeBare(b *bin.Buffer) error Inline keyboard String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *BotInlineMessageMediaAuto *BotInlineMessageMediaContact *BotInlineMessageMediaGeo *BotInlineMessageMediaInvoice *BotInlineMessageMediaVenue *BotInlineMessageMediaWebPage *BotInlineMessageRichMessage *BotInlineMessageText BotInlineMessageClass : github.com/gotd/td/bin.BareDecoder BotInlineMessageClass : github.com/gotd/td/bin.BareEncoder BotInlineMessageClass : github.com/gotd/td/bin.Decoder BotInlineMessageClass : github.com/gotd/td/bin.Encoder BotInlineMessageClass : github.com/gotd/td/bin.Object BotInlineMessageClass : fmt.Stringer func DecodeBotInlineMessage(buf *bin.Buffer) (BotInlineMessageClass, error) func (*BotInlineMediaResult).GetSendMessage() (value BotInlineMessageClass) func BotInlineMessageClassArray.First() (v BotInlineMessageClass, ok bool) func BotInlineMessageClassArray.Last() (v BotInlineMessageClass, ok bool) func (*BotInlineMessageClassArray).Pop() (v BotInlineMessageClass, ok bool) func (*BotInlineMessageClassArray).PopFirst() (v BotInlineMessageClass, ok bool) func (*BotInlineResult).GetSendMessage() (value BotInlineMessageClass) func BotInlineResultClass.GetSendMessage() (value BotInlineMessageClass)
BotInlineMessageClassArray is adapter for slice of BotInlineMessageClass. AsBotInlineMessageMediaAuto returns copy with only BotInlineMessageMediaAuto constructors. AsBotInlineMessageMediaContact returns copy with only BotInlineMessageMediaContact constructors. AsBotInlineMessageMediaGeo returns copy with only BotInlineMessageMediaGeo constructors. AsBotInlineMessageMediaInvoice returns copy with only BotInlineMessageMediaInvoice constructors. AsBotInlineMessageMediaVenue returns copy with only BotInlineMessageMediaVenue constructors. AsBotInlineMessageMediaWebPage returns copy with only BotInlineMessageMediaWebPage constructors. AsBotInlineMessageRichMessage returns copy with only BotInlineMessageRichMessage constructors. AsBotInlineMessageText returns copy with only BotInlineMessageText constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMessageClass. Sort sorts slice of BotInlineMessageClass. SortStable sorts slice of BotInlineMessageClass. func BotInlineMessageClassArray.Retain(keep func(x BotInlineMessageClass) bool) BotInlineMessageClassArray func BotInlineMessageClassArray.Sort(less func(a, b BotInlineMessageClass) bool) BotInlineMessageClassArray func BotInlineMessageClassArray.SortStable(less func(a, b BotInlineMessageClass) bool) BotInlineMessageClassArray
BotInlineMessageMediaAuto represents TL type `botInlineMessageMediaAuto#764cf810`. Send whatever media is attached to the botInlineMediaResult¹ Links: 1. https://core.telegram.org/constructor/botInlineMediaResult See https://core.telegram.org/constructor/botInlineMessageMediaAuto for reference. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Use SetEntities and GetEntities helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. Caption Inline keyboard Use SetReplyMarkup and GetReplyMarkup helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineMessageMediaAuto from given interface. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetInvertMedia returns value of InvertMedia conditional field. GetMessage returns value of Message field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetInvertMedia sets value of InvertMedia conditional field. SetReplyMarkup sets value of ReplyMarkup conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineMessageMediaAuto) Zero() bool *BotInlineMessageMediaAuto : BotInlineMessageClass *BotInlineMessageMediaAuto : github.com/gotd/td/bin.BareDecoder *BotInlineMessageMediaAuto : github.com/gotd/td/bin.BareEncoder *BotInlineMessageMediaAuto : github.com/gotd/td/bin.Decoder *BotInlineMessageMediaAuto : github.com/gotd/td/bin.Encoder *BotInlineMessageMediaAuto : github.com/gotd/td/bin.Object *BotInlineMessageMediaAuto : github.com/gotd/td/tdp.Object *BotInlineMessageMediaAuto : fmt.Stringer func BotInlineMessageMediaAutoArray.First() (v BotInlineMessageMediaAuto, ok bool) func BotInlineMessageMediaAutoArray.Last() (v BotInlineMessageMediaAuto, ok bool) func (*BotInlineMessageMediaAutoArray).Pop() (v BotInlineMessageMediaAuto, ok bool) func (*BotInlineMessageMediaAutoArray).PopFirst() (v BotInlineMessageMediaAuto, ok bool)
BotInlineMessageMediaAutoArray is adapter for slice of BotInlineMessageMediaAuto. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMessageMediaAuto. Sort sorts slice of BotInlineMessageMediaAuto. SortStable sorts slice of BotInlineMessageMediaAuto. func BotInlineMessageClassArray.AsBotInlineMessageMediaAuto() (to BotInlineMessageMediaAutoArray) func BotInlineMessageMediaAutoArray.Retain(keep func(x BotInlineMessageMediaAuto) bool) BotInlineMessageMediaAutoArray func BotInlineMessageMediaAutoArray.Sort(less func(a, b BotInlineMessageMediaAuto) bool) BotInlineMessageMediaAutoArray func BotInlineMessageMediaAutoArray.SortStable(less func(a, b BotInlineMessageMediaAuto) bool) BotInlineMessageMediaAutoArray
BotInlineMessageMediaContact represents TL type `botInlineMessageMediaContact#18d1cdc2`. Send a contact See https://core.telegram.org/constructor/botInlineMessageMediaContact for reference. First name Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Last name Phone number Inline keyboard Use SetReplyMarkup and GetReplyMarkup helpers. VCard info Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineMessageMediaContact from given interface. GetFirstName returns value of FirstName field. GetLastName returns value of LastName field. GetPhoneNumber returns value of PhoneNumber field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. GetVcard returns value of Vcard field. SetFlags sets flags for non-zero fields. SetReplyMarkup sets value of ReplyMarkup conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineMessageMediaContact) Zero() bool *BotInlineMessageMediaContact : BotInlineMessageClass *BotInlineMessageMediaContact : github.com/gotd/td/bin.BareDecoder *BotInlineMessageMediaContact : github.com/gotd/td/bin.BareEncoder *BotInlineMessageMediaContact : github.com/gotd/td/bin.Decoder *BotInlineMessageMediaContact : github.com/gotd/td/bin.Encoder *BotInlineMessageMediaContact : github.com/gotd/td/bin.Object *BotInlineMessageMediaContact : github.com/gotd/td/tdp.Object *BotInlineMessageMediaContact : fmt.Stringer func BotInlineMessageMediaContactArray.First() (v BotInlineMessageMediaContact, ok bool) func BotInlineMessageMediaContactArray.Last() (v BotInlineMessageMediaContact, ok bool) func (*BotInlineMessageMediaContactArray).Pop() (v BotInlineMessageMediaContact, ok bool) func (*BotInlineMessageMediaContactArray).PopFirst() (v BotInlineMessageMediaContact, ok bool)
BotInlineMessageMediaContactArray is adapter for slice of BotInlineMessageMediaContact. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMessageMediaContact. Sort sorts slice of BotInlineMessageMediaContact. SortStable sorts slice of BotInlineMessageMediaContact. func BotInlineMessageClassArray.AsBotInlineMessageMediaContact() (to BotInlineMessageMediaContactArray) func BotInlineMessageMediaContactArray.Retain(keep func(x BotInlineMessageMediaContact) bool) BotInlineMessageMediaContactArray func BotInlineMessageMediaContactArray.Sort(less func(a, b BotInlineMessageMediaContact) bool) BotInlineMessageMediaContactArray func BotInlineMessageMediaContactArray.SortStable(less func(a, b BotInlineMessageMediaContact) bool) BotInlineMessageMediaContactArray
BotInlineMessageMediaGeo represents TL type `botInlineMessageMediaGeo#51846fd`. Send a geolocation See https://core.telegram.org/constructor/botInlineMessageMediaGeo for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Geolocation For live locations¹, a direction in which the location moves, in degrees; 1-360. Links: 1) https://core.telegram.org/api/live-location Use SetHeading and GetHeading helpers. Validity period Use SetPeriod and GetPeriod helpers. For live locations¹, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Links: 1) https://core.telegram.org/api/live-location Use SetProximityNotificationRadius and GetProximityNotificationRadius helpers. Inline keyboard Use SetReplyMarkup and GetReplyMarkup helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineMessageMediaGeo from given interface. GetGeo returns value of Geo field. GetHeading returns value of Heading conditional field and boolean which is true if field was set. GetPeriod returns value of Period conditional field and boolean which is true if field was set. GetProximityNotificationRadius returns value of ProximityNotificationRadius conditional field and boolean which is true if field was set. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetHeading sets value of Heading conditional field. SetPeriod sets value of Period conditional field. SetProximityNotificationRadius sets value of ProximityNotificationRadius conditional field. SetReplyMarkup sets value of ReplyMarkup conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineMessageMediaGeo) Zero() bool *BotInlineMessageMediaGeo : BotInlineMessageClass *BotInlineMessageMediaGeo : github.com/gotd/td/bin.BareDecoder *BotInlineMessageMediaGeo : github.com/gotd/td/bin.BareEncoder *BotInlineMessageMediaGeo : github.com/gotd/td/bin.Decoder *BotInlineMessageMediaGeo : github.com/gotd/td/bin.Encoder *BotInlineMessageMediaGeo : github.com/gotd/td/bin.Object *BotInlineMessageMediaGeo : github.com/gotd/td/tdp.Object *BotInlineMessageMediaGeo : fmt.Stringer func BotInlineMessageMediaGeoArray.First() (v BotInlineMessageMediaGeo, ok bool) func BotInlineMessageMediaGeoArray.Last() (v BotInlineMessageMediaGeo, ok bool) func (*BotInlineMessageMediaGeoArray).Pop() (v BotInlineMessageMediaGeo, ok bool) func (*BotInlineMessageMediaGeoArray).PopFirst() (v BotInlineMessageMediaGeo, ok bool)
BotInlineMessageMediaGeoArray is adapter for slice of BotInlineMessageMediaGeo. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMessageMediaGeo. Sort sorts slice of BotInlineMessageMediaGeo. SortStable sorts slice of BotInlineMessageMediaGeo. func BotInlineMessageClassArray.AsBotInlineMessageMediaGeo() (to BotInlineMessageMediaGeoArray) func BotInlineMessageMediaGeoArray.Retain(keep func(x BotInlineMessageMediaGeo) bool) BotInlineMessageMediaGeoArray func BotInlineMessageMediaGeoArray.Sort(less func(a, b BotInlineMessageMediaGeo) bool) BotInlineMessageMediaGeoArray func BotInlineMessageMediaGeoArray.SortStable(less func(a, b BotInlineMessageMediaGeo) bool) BotInlineMessageMediaGeoArray
BotInlineMessageMediaInvoice represents TL type `botInlineMessageMediaInvoice#354a9b09`. Send an invoice See https://core.telegram.org/constructor/botInlineMessageMediaInvoice for reference. Three-letter ISO 4217 currency¹ code, or XTR for Telegram Stars². Links: 1) https://core.telegram.org/bots/payments#supported-currencies 2) https://core.telegram.org/api/stars Product description, 1-255 characters Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Product photo Use SetPhoto and GetPhoto helpers. Inline keyboard Use SetReplyMarkup and GetReplyMarkup helpers. Set this flag if you require the user's shipping address to complete the order Test invoice Product name, 1-32 characters Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json¹, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Links: 1) https://core.telegram.org/bots/payments/currencies.json Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineMessageMediaInvoice from given interface. GetCurrency returns value of Currency field. GetDescription returns value of Description field. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. GetShippingAddressRequested returns value of ShippingAddressRequested conditional field. GetTest returns value of Test conditional field. GetTitle returns value of Title field. GetTotalAmount returns value of TotalAmount field. SetFlags sets flags for non-zero fields. SetPhoto sets value of Photo conditional field. SetReplyMarkup sets value of ReplyMarkup conditional field. SetShippingAddressRequested sets value of ShippingAddressRequested conditional field. SetTest sets value of Test conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineMessageMediaInvoice) Zero() bool *BotInlineMessageMediaInvoice : BotInlineMessageClass *BotInlineMessageMediaInvoice : github.com/gotd/td/bin.BareDecoder *BotInlineMessageMediaInvoice : github.com/gotd/td/bin.BareEncoder *BotInlineMessageMediaInvoice : github.com/gotd/td/bin.Decoder *BotInlineMessageMediaInvoice : github.com/gotd/td/bin.Encoder *BotInlineMessageMediaInvoice : github.com/gotd/td/bin.Object *BotInlineMessageMediaInvoice : github.com/gotd/td/tdp.Object *BotInlineMessageMediaInvoice : fmt.Stringer func BotInlineMessageMediaInvoiceArray.First() (v BotInlineMessageMediaInvoice, ok bool) func BotInlineMessageMediaInvoiceArray.Last() (v BotInlineMessageMediaInvoice, ok bool) func (*BotInlineMessageMediaInvoiceArray).Pop() (v BotInlineMessageMediaInvoice, ok bool) func (*BotInlineMessageMediaInvoiceArray).PopFirst() (v BotInlineMessageMediaInvoice, ok bool)
BotInlineMessageMediaInvoiceArray is adapter for slice of BotInlineMessageMediaInvoice. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMessageMediaInvoice. Sort sorts slice of BotInlineMessageMediaInvoice. SortStable sorts slice of BotInlineMessageMediaInvoice. func BotInlineMessageClassArray.AsBotInlineMessageMediaInvoice() (to BotInlineMessageMediaInvoiceArray) func BotInlineMessageMediaInvoiceArray.Retain(keep func(x BotInlineMessageMediaInvoice) bool) BotInlineMessageMediaInvoiceArray func BotInlineMessageMediaInvoiceArray.Sort(less func(a, b BotInlineMessageMediaInvoice) bool) BotInlineMessageMediaInvoiceArray func BotInlineMessageMediaInvoiceArray.SortStable(less func(a, b BotInlineMessageMediaInvoice) bool) BotInlineMessageMediaInvoiceArray
BotInlineMessageMediaVenue represents TL type `botInlineMessageMediaVenue#8a86659c`. Send a venue See https://core.telegram.org/constructor/botInlineMessageMediaVenue for reference. Address Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Geolocation of venue Venue provider: currently only "foursquare" and "gplaces" (Google Places) need to be supported Inline keyboard Use SetReplyMarkup and GetReplyMarkup helpers. Venue name Venue ID in the provider's database Venue type in the provider's database Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineMessageMediaVenue from given interface. GetAddress returns value of Address field. GetGeo returns value of Geo field. GetProvider returns value of Provider field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. GetTitle returns value of Title field. GetVenueID returns value of VenueID field. GetVenueType returns value of VenueType field. SetFlags sets flags for non-zero fields. SetReplyMarkup sets value of ReplyMarkup conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineMessageMediaVenue) Zero() bool *BotInlineMessageMediaVenue : BotInlineMessageClass *BotInlineMessageMediaVenue : github.com/gotd/td/bin.BareDecoder *BotInlineMessageMediaVenue : github.com/gotd/td/bin.BareEncoder *BotInlineMessageMediaVenue : github.com/gotd/td/bin.Decoder *BotInlineMessageMediaVenue : github.com/gotd/td/bin.Encoder *BotInlineMessageMediaVenue : github.com/gotd/td/bin.Object *BotInlineMessageMediaVenue : github.com/gotd/td/tdp.Object *BotInlineMessageMediaVenue : fmt.Stringer func BotInlineMessageMediaVenueArray.First() (v BotInlineMessageMediaVenue, ok bool) func BotInlineMessageMediaVenueArray.Last() (v BotInlineMessageMediaVenue, ok bool) func (*BotInlineMessageMediaVenueArray).Pop() (v BotInlineMessageMediaVenue, ok bool) func (*BotInlineMessageMediaVenueArray).PopFirst() (v BotInlineMessageMediaVenue, ok bool)
BotInlineMessageMediaVenueArray is adapter for slice of BotInlineMessageMediaVenue. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMessageMediaVenue. Sort sorts slice of BotInlineMessageMediaVenue. SortStable sorts slice of BotInlineMessageMediaVenue. func BotInlineMessageClassArray.AsBotInlineMessageMediaVenue() (to BotInlineMessageMediaVenueArray) func BotInlineMessageMediaVenueArray.Retain(keep func(x BotInlineMessageMediaVenue) bool) BotInlineMessageMediaVenueArray func BotInlineMessageMediaVenueArray.Sort(less func(a, b BotInlineMessageMediaVenue) bool) BotInlineMessageMediaVenueArray func BotInlineMessageMediaVenueArray.SortStable(less func(a, b BotInlineMessageMediaVenue) bool) BotInlineMessageMediaVenueArray
BotInlineMessageMediaWebPage represents TL type `botInlineMessageMediaWebPage#809ad9a6`. Specifies options that must be used to generate the link preview for the message, or even a standalone link preview without an attached message. See https://core.telegram.org/constructor/botInlineMessageMediaWebPage for reference. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Use SetEntities and GetEntities helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, specifies that a large media preview should be used. If set, specifies that a small media preview should be used. If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. If set, indicates that the URL used for the webpage preview was specified manually using inputMediaWebPage¹, and may not be related to any of the URLs specified in the message. Links: 1) https://core.telegram.org/constructor/inputMediaWebPage The message, can be empty. Reply markup for sending bot buttons Use SetReplyMarkup and GetReplyMarkup helpers. If set, the link can be opened directly without user confirmation. The URL to use for the link preview. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineMessageMediaWebPage from given interface. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetForceLargeMedia returns value of ForceLargeMedia conditional field. GetForceSmallMedia returns value of ForceSmallMedia conditional field. GetInvertMedia returns value of InvertMedia conditional field. GetManual returns value of Manual conditional field. GetMessage returns value of Message field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. GetSafe returns value of Safe conditional field. GetURL returns value of URL field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetForceLargeMedia sets value of ForceLargeMedia conditional field. SetForceSmallMedia sets value of ForceSmallMedia conditional field. SetInvertMedia sets value of InvertMedia conditional field. SetManual sets value of Manual conditional field. SetReplyMarkup sets value of ReplyMarkup conditional field. SetSafe sets value of Safe conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineMessageMediaWebPage) Zero() bool *BotInlineMessageMediaWebPage : BotInlineMessageClass *BotInlineMessageMediaWebPage : github.com/gotd/td/bin.BareDecoder *BotInlineMessageMediaWebPage : github.com/gotd/td/bin.BareEncoder *BotInlineMessageMediaWebPage : github.com/gotd/td/bin.Decoder *BotInlineMessageMediaWebPage : github.com/gotd/td/bin.Encoder *BotInlineMessageMediaWebPage : github.com/gotd/td/bin.Object *BotInlineMessageMediaWebPage : github.com/gotd/td/tdp.Object *BotInlineMessageMediaWebPage : fmt.Stringer func BotInlineMessageMediaWebPageArray.First() (v BotInlineMessageMediaWebPage, ok bool) func BotInlineMessageMediaWebPageArray.Last() (v BotInlineMessageMediaWebPage, ok bool) func (*BotInlineMessageMediaWebPageArray).Pop() (v BotInlineMessageMediaWebPage, ok bool) func (*BotInlineMessageMediaWebPageArray).PopFirst() (v BotInlineMessageMediaWebPage, ok bool)
BotInlineMessageMediaWebPageArray is adapter for slice of BotInlineMessageMediaWebPage. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMessageMediaWebPage. Sort sorts slice of BotInlineMessageMediaWebPage. SortStable sorts slice of BotInlineMessageMediaWebPage. func BotInlineMessageClassArray.AsBotInlineMessageMediaWebPage() (to BotInlineMessageMediaWebPageArray) func BotInlineMessageMediaWebPageArray.Retain(keep func(x BotInlineMessageMediaWebPage) bool) BotInlineMessageMediaWebPageArray func BotInlineMessageMediaWebPageArray.Sort(less func(a, b BotInlineMessageMediaWebPage) bool) BotInlineMessageMediaWebPageArray func BotInlineMessageMediaWebPageArray.SortStable(less func(a, b BotInlineMessageMediaWebPage) bool) BotInlineMessageMediaWebPageArray
BotInlineMessageRichMessage represents TL type `botInlineMessageRichMessage#a617e7b`. See https://core.telegram.org/constructor/botInlineMessageRichMessage for reference. Flags field of BotInlineMessageRichMessage. ReplyMarkup field of BotInlineMessageRichMessage. Use SetReplyMarkup and GetReplyMarkup helpers. RichMessage field of BotInlineMessageRichMessage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineMessageRichMessage from given interface. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. GetRichMessage returns value of RichMessage field. SetFlags sets flags for non-zero fields. SetReplyMarkup sets value of ReplyMarkup conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineMessageRichMessage) Zero() bool *BotInlineMessageRichMessage : BotInlineMessageClass *BotInlineMessageRichMessage : github.com/gotd/td/bin.BareDecoder *BotInlineMessageRichMessage : github.com/gotd/td/bin.BareEncoder *BotInlineMessageRichMessage : github.com/gotd/td/bin.Decoder *BotInlineMessageRichMessage : github.com/gotd/td/bin.Encoder *BotInlineMessageRichMessage : github.com/gotd/td/bin.Object *BotInlineMessageRichMessage : github.com/gotd/td/tdp.Object *BotInlineMessageRichMessage : fmt.Stringer func BotInlineMessageRichMessageArray.First() (v BotInlineMessageRichMessage, ok bool) func BotInlineMessageRichMessageArray.Last() (v BotInlineMessageRichMessage, ok bool) func (*BotInlineMessageRichMessageArray).Pop() (v BotInlineMessageRichMessage, ok bool) func (*BotInlineMessageRichMessageArray).PopFirst() (v BotInlineMessageRichMessage, ok bool)
BotInlineMessageRichMessageArray is adapter for slice of BotInlineMessageRichMessage. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMessageRichMessage. Sort sorts slice of BotInlineMessageRichMessage. SortStable sorts slice of BotInlineMessageRichMessage. func BotInlineMessageClassArray.AsBotInlineMessageRichMessage() (to BotInlineMessageRichMessageArray) func BotInlineMessageRichMessageArray.Retain(keep func(x BotInlineMessageRichMessage) bool) BotInlineMessageRichMessageArray func BotInlineMessageRichMessageArray.Sort(less func(a, b BotInlineMessageRichMessage) bool) BotInlineMessageRichMessageArray func BotInlineMessageRichMessageArray.SortStable(less func(a, b BotInlineMessageRichMessage) bool) BotInlineMessageRichMessageArray
BotInlineMessageText represents TL type `botInlineMessageText#8c7f65e2`. Send a simple text message See https://core.telegram.org/constructor/botInlineMessageText for reference. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Use SetEntities and GetEntities helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. The message Disable webpage preview Inline keyboard Use SetReplyMarkup and GetReplyMarkup helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineMessageText from given interface. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetInvertMedia returns value of InvertMedia conditional field. GetMessage returns value of Message field. GetNoWebpage returns value of NoWebpage conditional field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetInvertMedia sets value of InvertMedia conditional field. SetNoWebpage sets value of NoWebpage conditional field. SetReplyMarkup sets value of ReplyMarkup conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineMessageText) Zero() bool *BotInlineMessageText : BotInlineMessageClass *BotInlineMessageText : github.com/gotd/td/bin.BareDecoder *BotInlineMessageText : github.com/gotd/td/bin.BareEncoder *BotInlineMessageText : github.com/gotd/td/bin.Decoder *BotInlineMessageText : github.com/gotd/td/bin.Encoder *BotInlineMessageText : github.com/gotd/td/bin.Object *BotInlineMessageText : github.com/gotd/td/tdp.Object *BotInlineMessageText : fmt.Stringer func BotInlineMessageTextArray.First() (v BotInlineMessageText, ok bool) func BotInlineMessageTextArray.Last() (v BotInlineMessageText, ok bool) func (*BotInlineMessageTextArray).Pop() (v BotInlineMessageText, ok bool) func (*BotInlineMessageTextArray).PopFirst() (v BotInlineMessageText, ok bool)
BotInlineMessageTextArray is adapter for slice of BotInlineMessageText. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineMessageText. Sort sorts slice of BotInlineMessageText. SortStable sorts slice of BotInlineMessageText. func BotInlineMessageClassArray.AsBotInlineMessageText() (to BotInlineMessageTextArray) func BotInlineMessageTextArray.Retain(keep func(x BotInlineMessageText) bool) BotInlineMessageTextArray func BotInlineMessageTextArray.Sort(less func(a, b BotInlineMessageText) bool) BotInlineMessageTextArray func BotInlineMessageTextArray.SortStable(less func(a, b BotInlineMessageText) bool) BotInlineMessageTextArray
BotInlineQueryHandler is a BotInlineQuery event handler. func UpdateDispatcher.OnBotInlineQuery(handler BotInlineQueryHandler)
BotInlineResult represents TL type `botInlineResult#11965f3a`. Generic result See https://core.telegram.org/constructor/botInlineResult for reference. Content of the result Use SetContent and GetContent helpers. Result description Use SetDescription and GetDescription helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Result ID Message to send Thumbnail for the result Use SetThumb and GetThumb helpers. Result title Use SetTitle and GetTitle helpers. Result type (see bot API docs¹) Links: 1) https://core.telegram.org/bots/api#inlinequeryresult URL of article or webpage Use SetURL and GetURL helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInlineResult from given interface. GetContent returns value of Content conditional field and boolean which is true if field was set. GetDescription returns value of Description conditional field and boolean which is true if field was set. GetID returns value of ID field. GetSendMessage returns value of SendMessage field. GetThumb returns value of Thumb conditional field and boolean which is true if field was set. GetTitle returns value of Title conditional field and boolean which is true if field was set. GetType returns value of Type field. GetURL returns value of URL conditional field and boolean which is true if field was set. SetContent sets value of Content conditional field. SetDescription sets value of Description conditional field. SetFlags sets flags for non-zero fields. SetThumb sets value of Thumb conditional field. SetTitle sets value of Title conditional field. SetURL sets value of URL conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotInlineResult) Zero() bool *BotInlineResult : BotInlineResultClass *BotInlineResult : github.com/gotd/td/bin.BareDecoder *BotInlineResult : github.com/gotd/td/bin.BareEncoder *BotInlineResult : github.com/gotd/td/bin.Decoder *BotInlineResult : github.com/gotd/td/bin.Encoder *BotInlineResult : github.com/gotd/td/bin.Object *BotInlineResult : github.com/gotd/td/tdp.Object *BotInlineResult : fmt.Stringer func BotInlineResultArray.First() (v BotInlineResult, ok bool) func BotInlineResultArray.Last() (v BotInlineResult, ok bool) func (*BotInlineResultArray).Pop() (v BotInlineResult, ok bool) func (*BotInlineResultArray).PopFirst() (v BotInlineResult, ok bool)
BotInlineResultArray is adapter for slice of BotInlineResult. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineResult. Sort sorts slice of BotInlineResult. SortStable sorts slice of BotInlineResult. func BotInlineResultArray.Retain(keep func(x BotInlineResult) bool) BotInlineResultArray func BotInlineResultArray.Sort(less func(a, b BotInlineResult) bool) BotInlineResultArray func BotInlineResultArray.SortStable(less func(a, b BotInlineResult) bool) BotInlineResultArray func BotInlineResultClassArray.AsBotInlineResult() (to BotInlineResultArray)
BotInlineResult boxes the BotInlineResultClass providing a helper. BotInlineResult BotInlineResultClass Decode implements bin.Decoder for BotInlineResultBox. Encode implements bin.Encode for BotInlineResultBox. *BotInlineResultBox : github.com/gotd/td/bin.Decoder *BotInlineResultBox : github.com/gotd/td/bin.Encoder *BotInlineResultBox : github.com/gotd/td/bin.Object
BotInlineResultClass represents BotInlineResult generic type. See https://core.telegram.org/type/BotInlineResult for reference. Constructors: - [BotInlineResult] - [BotInlineMediaResult] Example: g, err := tg.DecodeBotInlineResult(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.BotInlineResult: // botInlineResult#11965f3a case *tg.BotInlineMediaResult: // botInlineMediaResult#17db940b default: panic(v) } ( BotInlineResultClass) Decode(b *bin.Buffer) error ( BotInlineResultClass) DecodeBare(b *bin.Buffer) error ( BotInlineResultClass) Encode(b *bin.Buffer) error ( BotInlineResultClass) EncodeBare(b *bin.Buffer) error Result description Result ID Message to send Result title Result type (see bot API docs¹) Links: 1) https://core.telegram.org/bots/api#inlinequeryresult String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *BotInlineMediaResult *BotInlineResult BotInlineResultClass : github.com/gotd/td/bin.BareDecoder BotInlineResultClass : github.com/gotd/td/bin.BareEncoder BotInlineResultClass : github.com/gotd/td/bin.Decoder BotInlineResultClass : github.com/gotd/td/bin.Encoder BotInlineResultClass : github.com/gotd/td/bin.Object BotInlineResultClass : fmt.Stringer func DecodeBotInlineResult(buf *bin.Buffer) (BotInlineResultClass, error) func BotInlineResultClassArray.First() (v BotInlineResultClass, ok bool) func BotInlineResultClassArray.Last() (v BotInlineResultClass, ok bool) func (*BotInlineResultClassArray).Pop() (v BotInlineResultClass, ok bool) func (*BotInlineResultClassArray).PopFirst() (v BotInlineResultClass, ok bool) func (*MessagesBotResults).GetResults() (value []BotInlineResultClass) func (*MessagesPreparedInlineMessage).GetResult() (value BotInlineResultClass)
BotInlineResultClassArray is adapter for slice of BotInlineResultClass. AsBotInlineMediaResult returns copy with only BotInlineMediaResult constructors. AsBotInlineResult returns copy with only BotInlineResult constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotInlineResultClass. Sort sorts slice of BotInlineResultClass. SortStable sorts slice of BotInlineResultClass. func BotInlineResultClassArray.Retain(keep func(x BotInlineResultClass) bool) BotInlineResultClassArray func BotInlineResultClassArray.Sort(less func(a, b BotInlineResultClass) bool) BotInlineResultClassArray func BotInlineResultClassArray.SortStable(less func(a, b BotInlineResultClass) bool) BotInlineResultClassArray func (*MessagesBotResults).MapResults() (value BotInlineResultClassArray)
BotInlineSendHandler is a BotInlineSend event handler. func UpdateDispatcher.OnBotInlineSend(handler BotInlineSendHandler)
BotMenuButton represents TL type `botMenuButton#c7b57ce6`. Bot menu button¹ that opens a web app² when clicked. Links: 1. https://core.telegram.org/api/bots/menu 2. https://core.telegram.org/api/bots/webapps See https://core.telegram.org/constructor/botMenuButton for reference. Title to be displayed on the menu button instead of 'Menu' URL of a web app¹ to open when the user clicks on the button Links: 1) https://core.telegram.org/api/bots/webapps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotMenuButton from given interface. GetText returns value of Text field. GetURL returns value of URL field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotMenuButton) Zero() bool *BotMenuButton : BotMenuButtonClass *BotMenuButton : github.com/gotd/td/bin.BareDecoder *BotMenuButton : github.com/gotd/td/bin.BareEncoder *BotMenuButton : github.com/gotd/td/bin.Decoder *BotMenuButton : github.com/gotd/td/bin.Encoder *BotMenuButton : github.com/gotd/td/bin.Object *BotMenuButton : github.com/gotd/td/tdp.Object *BotMenuButton : fmt.Stringer func BotMenuButtonArray.First() (v BotMenuButton, ok bool) func BotMenuButtonArray.Last() (v BotMenuButton, ok bool) func (*BotMenuButtonArray).Pop() (v BotMenuButton, ok bool) func (*BotMenuButtonArray).PopFirst() (v BotMenuButton, ok bool)
BotMenuButtonArray is adapter for slice of BotMenuButton. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotMenuButton. Sort sorts slice of BotMenuButton. SortStable sorts slice of BotMenuButton. func BotMenuButtonArray.Retain(keep func(x BotMenuButton) bool) BotMenuButtonArray func BotMenuButtonArray.Sort(less func(a, b BotMenuButton) bool) BotMenuButtonArray func BotMenuButtonArray.SortStable(less func(a, b BotMenuButton) bool) BotMenuButtonArray func BotMenuButtonClassArray.AsBotMenuButton() (to BotMenuButtonArray)
BotMenuButton boxes the BotMenuButtonClass providing a helper. BotMenuButton BotMenuButtonClass Decode implements bin.Decoder for BotMenuButtonBox. Encode implements bin.Encode for BotMenuButtonBox. *BotMenuButtonBox : github.com/gotd/td/bin.Decoder *BotMenuButtonBox : github.com/gotd/td/bin.Encoder *BotMenuButtonBox : github.com/gotd/td/bin.Object
BotMenuButtonClass represents BotMenuButton generic type. See https://core.telegram.org/type/BotMenuButton for reference. Constructors: - [BotMenuButtonDefault] - [BotMenuButtonCommands] - [BotMenuButton] Example: g, err := tg.DecodeBotMenuButton(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.BotMenuButtonDefault: // botMenuButtonDefault#7533a588 case *tg.BotMenuButtonCommands: // botMenuButtonCommands#4258c205 case *tg.BotMenuButton: // botMenuButton#c7b57ce6 default: panic(v) } ( BotMenuButtonClass) Decode(b *bin.Buffer) error ( BotMenuButtonClass) DecodeBare(b *bin.Buffer) error ( BotMenuButtonClass) Encode(b *bin.Buffer) error ( BotMenuButtonClass) EncodeBare(b *bin.Buffer) error String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeName returns name of type in TL schema. Zero returns true if current object has a zero value. *BotMenuButton *BotMenuButtonCommands *BotMenuButtonDefault BotMenuButtonClass : github.com/gotd/td/bin.BareDecoder BotMenuButtonClass : github.com/gotd/td/bin.BareEncoder BotMenuButtonClass : github.com/gotd/td/bin.Decoder BotMenuButtonClass : github.com/gotd/td/bin.Encoder BotMenuButtonClass : github.com/gotd/td/bin.Object BotMenuButtonClass : fmt.Stringer func DecodeBotMenuButton(buf *bin.Buffer) (BotMenuButtonClass, error) func (*BotInfo).GetMenuButton() (value BotMenuButtonClass, ok bool) func BotMenuButtonClassArray.First() (v BotMenuButtonClass, ok bool) func BotMenuButtonClassArray.Last() (v BotMenuButtonClass, ok bool) func (*BotMenuButtonClassArray).Pop() (v BotMenuButtonClass, ok bool) func (*BotMenuButtonClassArray).PopFirst() (v BotMenuButtonClass, ok bool) func (*BotsSetBotMenuButtonRequest).GetButton() (value BotMenuButtonClass) func (*Client).BotsGetBotMenuButton(ctx context.Context, userid InputUserClass) (BotMenuButtonClass, error) func (*UpdateBotMenuButton).GetButton() (value BotMenuButtonClass) func (*BotInfo).SetMenuButton(value BotMenuButtonClass)
BotMenuButtonClassArray is adapter for slice of BotMenuButtonClass. AsBotMenuButton returns copy with only BotMenuButton constructors. First returns first element of slice (if exists). Last returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopFirst returns first element of slice (if exists) and deletes it. Retain filters in-place slice of BotMenuButtonClass. Sort sorts slice of BotMenuButtonClass. SortStable sorts slice of BotMenuButtonClass. func BotMenuButtonClassArray.Retain(keep func(x BotMenuButtonClass) bool) BotMenuButtonClassArray func BotMenuButtonClassArray.Sort(less func(a, b BotMenuButtonClass) bool) BotMenuButtonClassArray func BotMenuButtonClassArray.SortStable(less func(a, b BotMenuButtonClass) bool) BotMenuButtonClassArray
BotMenuButtonCommands represents TL type `botMenuButtonCommands#4258c205`. Bot menu button¹ that opens the bot command list when clicked. Links: 1. https://core.telegram.org/api/bots/menu See https://core.telegram.org/constructor/botMenuButtonCommands for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotMenuButtonCommands) Zero() bool *BotMenuButtonCommands : BotMenuButtonClass *BotMenuButtonCommands : github.com/gotd/td/bin.BareDecoder *BotMenuButtonCommands : github.com/gotd/td/bin.BareEncoder *BotMenuButtonCommands : github.com/gotd/td/bin.Decoder *BotMenuButtonCommands : github.com/gotd/td/bin.Encoder *BotMenuButtonCommands : github.com/gotd/td/bin.Object *BotMenuButtonCommands : github.com/gotd/td/tdp.Object *BotMenuButtonCommands : fmt.Stringer
BotMenuButtonDefault represents TL type `botMenuButtonDefault#7533a588`. Placeholder bot menu button¹ never returned to users: see the docs for more info². Links: 1. https://core.telegram.org/api/bots/menu 2. https://core.telegram.org/api/bots/menu See https://core.telegram.org/constructor/botMenuButtonDefault for reference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotMenuButtonDefault) Zero() bool *BotMenuButtonDefault : BotMenuButtonClass *BotMenuButtonDefault : github.com/gotd/td/bin.BareDecoder *BotMenuButtonDefault : github.com/gotd/td/bin.BareEncoder *BotMenuButtonDefault : github.com/gotd/td/bin.Decoder *BotMenuButtonDefault : github.com/gotd/td/bin.Encoder *BotMenuButtonDefault : github.com/gotd/td/bin.Object *BotMenuButtonDefault : github.com/gotd/td/tdp.Object *BotMenuButtonDefault : fmt.Stringer
BotMenuButtonHandler is a BotMenuButton event handler. func UpdateDispatcher.OnBotMenuButton(handler BotMenuButtonHandler)
BotMessageReactionHandler is a BotMessageReaction event handler. func UpdateDispatcher.OnBotMessageReaction(handler BotMessageReactionHandler)
BotMessageReactionsHandler is a BotMessageReactions event handler. func UpdateDispatcher.OnBotMessageReactions(handler BotMessageReactionsHandler)
BotNewBusinessMessageHandler is a BotNewBusinessMessage event handler. func UpdateDispatcher.OnBotNewBusinessMessage(handler BotNewBusinessMessageHandler)
BotPrecheckoutQueryHandler is a BotPrecheckoutQuery event handler. func UpdateDispatcher.OnBotPrecheckoutQuery(handler BotPrecheckoutQueryHandler)
BotPreviewMedia represents TL type `botPreviewMedia#23e91ba3`. Represents a Main Mini App preview media, see here »¹ for more info. Links: 1. https://core.telegram.org/api/bots/webapps#main-mini-app-previews See https://core.telegram.org/constructor/botPreviewMedia for reference. When was this media last updated. The actual photo/video. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotPreviewMedia from given interface. GetDate returns value of Date field. GetMedia returns value of Media field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotPreviewMedia) Zero() bool *BotPreviewMedia : github.com/gotd/td/bin.BareDecoder *BotPreviewMedia : github.com/gotd/td/bin.BareEncoder *BotPreviewMedia : github.com/gotd/td/bin.Decoder *BotPreviewMedia : github.com/gotd/td/bin.Encoder *BotPreviewMedia : github.com/gotd/td/bin.Object *BotPreviewMedia : github.com/gotd/td/tdp.Object *BotPreviewMedia : fmt.Stringer func (*BotPreviewMediaVector).GetElems() (value []BotPreviewMedia) func (*BotsPreviewInfo).GetMedia() (value []BotPreviewMedia) func (*Client).BotsAddPreviewMedia(ctx context.Context, request *BotsAddPreviewMediaRequest) (*BotPreviewMedia, error) func (*Client).BotsEditPreviewMedia(ctx context.Context, request *BotsEditPreviewMediaRequest) (*BotPreviewMedia, error) func (*Client).BotsGetPreviewMedias(ctx context.Context, bot InputUserClass) ([]BotPreviewMedia, error)
BotPreviewMediaVector is a box for Vector<BotPreviewMedia> Elements of Vector<BotPreviewMedia> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotPreviewMediaVector from given interface. GetElems returns value of Elems field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotPreviewMediaVector) Zero() bool *BotPreviewMediaVector : github.com/gotd/td/bin.BareDecoder *BotPreviewMediaVector : github.com/gotd/td/bin.BareEncoder *BotPreviewMediaVector : github.com/gotd/td/bin.Decoder *BotPreviewMediaVector : github.com/gotd/td/bin.Encoder *BotPreviewMediaVector : github.com/gotd/td/bin.Object *BotPreviewMediaVector : github.com/gotd/td/tdp.Object *BotPreviewMediaVector : fmt.Stringer
BotPurchasedPaidMediaHandler is a BotPurchasedPaidMedia event handler. func UpdateDispatcher.OnBotPurchasedPaidMedia(handler BotPurchasedPaidMediaHandler)
BotsAccessSettings represents TL type `bots.accessSettings#dd1fbf93`. See https://core.telegram.org/constructor/bots.accessSettings for reference. AddUsers field of BotsAccessSettings. Use SetAddUsers and GetAddUsers helpers. Flags field of BotsAccessSettings. Restricted field of BotsAccessSettings. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsAccessSettings from given interface. GetAddUsers returns value of AddUsers conditional field and boolean which is true if field was set. GetRestricted returns value of Restricted conditional field. MapAddUsers returns field AddUsers wrapped in UserClassArray helper. SetAddUsers sets value of AddUsers conditional field. SetFlags sets flags for non-zero fields. SetRestricted sets value of Restricted conditional field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotsAccessSettings) Zero() bool *BotsAccessSettings : github.com/gotd/td/bin.BareDecoder *BotsAccessSettings : github.com/gotd/td/bin.BareEncoder *BotsAccessSettings : github.com/gotd/td/bin.Decoder *BotsAccessSettings : github.com/gotd/td/bin.Encoder *BotsAccessSettings : github.com/gotd/td/bin.Object *BotsAccessSettings : github.com/gotd/td/tdp.Object *BotsAccessSettings : fmt.Stringer func (*Client).BotsGetAccessSettings(ctx context.Context, bot InputUserClass) (*BotsAccessSettings, error)
BotsAddPreviewMediaRequest represents TL type `bots.addPreviewMedia#17aeb75a`. Add a main mini app preview, see here »¹ for more info. Only owners of bots with a configured Main Mini App can use this method, see see here »¹ for more info on how to check if you can invoke this method. Links: 1. https://core.telegram.org/api/bots/webapps#main-mini-app-previews 2. https://core.telegram.org/api/bots/webapps#main-mini-app-previews See https://core.telegram.org/method/bots.addPreviewMedia for reference. The bot that owns the Main Mini App. ISO 639-1 language code, indicating the localization of the preview to add. The photo/video preview, uploaded using messages.uploadMedia¹. Links: 1) https://core.telegram.org/method/messages.uploadMedia Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsAddPreviewMediaRequest from given interface. GetBot returns value of Bot field. GetLangCode returns value of LangCode field. GetMedia returns value of Media field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotsAddPreviewMediaRequest) Zero() bool *BotsAddPreviewMediaRequest : github.com/gotd/td/bin.BareDecoder *BotsAddPreviewMediaRequest : github.com/gotd/td/bin.BareEncoder *BotsAddPreviewMediaRequest : github.com/gotd/td/bin.Decoder *BotsAddPreviewMediaRequest : github.com/gotd/td/bin.Encoder *BotsAddPreviewMediaRequest : github.com/gotd/td/bin.Object *BotsAddPreviewMediaRequest : github.com/gotd/td/tdp.Object *BotsAddPreviewMediaRequest : fmt.Stringer func (*Client).BotsAddPreviewMedia(ctx context.Context, request *BotsAddPreviewMediaRequest) (*BotPreviewMedia, error)
BotsAllowSendMessageRequest represents TL type `bots.allowSendMessage#f132e3ef`. Allow the specified bot to send us messages See https://core.telegram.org/method/bots.allowSendMessage for reference. The bot Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsAllowSendMessageRequest from given interface. GetBot returns value of Bot field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotsAllowSendMessageRequest) Zero() bool *BotsAllowSendMessageRequest : github.com/gotd/td/bin.BareDecoder *BotsAllowSendMessageRequest : github.com/gotd/td/bin.BareEncoder *BotsAllowSendMessageRequest : github.com/gotd/td/bin.Decoder *BotsAllowSendMessageRequest : github.com/gotd/td/bin.Encoder *BotsAllowSendMessageRequest : github.com/gotd/td/bin.Object *BotsAllowSendMessageRequest : github.com/gotd/td/tdp.Object *BotsAllowSendMessageRequest : fmt.Stringer
BotsAnswerWebhookJSONQueryRequest represents TL type `bots.answerWebhookJSONQuery#e6213f4d`. Answers a custom query; for bots only See https://core.telegram.org/method/bots.answerWebhookJSONQuery for reference. JSON-serialized answer to the query Identifier of a custom query Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsAnswerWebhookJSONQueryRequest from given interface. GetData returns value of Data field. GetQueryID returns value of QueryID field. String implements fmt.Stringer. TypeID returns type id in TL schema. See https://core.telegram.org/mtproto/TL-tl#remarks. TypeInfo returns info about TL type. TypeName returns name of type in TL schema. (*BotsAnswerWebhookJSONQueryRequest) Zero() bool *BotsAnswerWebhookJSONQueryRequest : github.com/gotd/td/bin.BareDecoder *BotsAnswerWebhookJSONQueryRequest : github.com/gotd/td/bin.BareEncoder *BotsAnswerWebhookJSONQueryRequest : github.com/gotd/td/bin.Decoder *BotsAnswerWebhookJSONQueryRequest : github.com/gotd/td/bin.Encoder *BotsAnswerWebhookJSONQueryRequest : github.com/gotd/td/bin.Object *BotsAnswerWebhookJSONQueryRequest : github.com/gotd/td/tdp.Object *BotsAnswerWebhookJSONQueryRequest : fmt.Stringer func (*Client).BotsAnswerWebhookJSONQuery(ctx context.Context, request *BotsAnswerWebhookJSONQueryRequest) (bool, error)
BotsBotInfo represents TL type `bots.botInfo#e8a775b0`. Localized information about a bot. See https://core.telegram.org/constructor/bots.botInfo for reference. Bot about text Bot description Bot name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder.