package tg

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

Dependency Relation
	imports 10 packages, and imported by 7 packages

Involved Source Files 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_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_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_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_content_settings_gen.go tl_account_content_settings_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_secure_value_gen.go tl_account_delete_secure_value_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_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_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_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_recent_emoji_statuses_gen.go tl_account_get_recent_emoji_statuses_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_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_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_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_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_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_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_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_privacy_gen.go tl_account_set_privacy_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_username_gen.go tl_account_toggle_username_slices_gen.go tl_account_unregister_device_gen.go tl_account_unregister_device_slices_gen.go tl_account_update_color_gen.go tl_account_update_color_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_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_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_app_web_view_result_url_gen.go tl_app_web_view_result_url_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_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_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_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_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_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_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_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_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_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_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_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_invoke_web_view_custom_method_gen.go tl_bots_invoke_web_view_custom_method_slices_gen.go tl_bots_reorder_usernames_gen.go tl_bots_reorder_usernames_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_toggle_username_gen.go tl_bots_toggle_username_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_username_gen.go tl_channels_check_username_slices_gen.go tl_channels_click_sponsored_message_gen.go tl_channels_click_sponsored_message_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_create_forum_topic_gen.go tl_channels_create_forum_topic_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_delete_topic_history_gen.go tl_channels_delete_topic_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_creator_gen.go tl_channels_edit_creator_slices_gen.go tl_channels_edit_forum_topic_gen.go tl_channels_edit_forum_topic_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_forum_topics_by_id_gen.go tl_channels_get_forum_topics_by_id_slices_gen.go tl_channels_get_forum_topics_gen.go tl_channels_get_forum_topics_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_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_get_sponsored_messages_gen.go tl_channels_get_sponsored_messages_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_pinned_forum_topics_gen.go tl_channels_reorder_pinned_forum_topics_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_send_as_peers_gen.go tl_channels_send_as_peers_slices_gen.go tl_channels_set_discussion_group_gen.go tl_channels_set_discussion_group_slices_gen.go tl_channels_set_stickers_gen.go tl_channels_set_stickers_slices_gen.go tl_channels_toggle_anti_spam_gen.go tl_channels_toggle_anti_spam_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_pinned_forum_topic_gen.go tl_channels_update_pinned_forum_topic_slices_gen.go tl_channels_update_username_gen.go tl_channels_update_username_slices_gen.go tl_channels_view_sponsored_message_gen.go tl_channels_view_sponsored_message_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_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_config_gen.go tl_config_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_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_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_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_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_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_class_vector_gen.go tl_dialog_filter_class_vector_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_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_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_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_game_gen.go tl_game_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_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_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_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_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_channel_gen.go tl_input_channel_slices_gen.go tl_input_chat_photo_gen.go tl_input_chat_photo_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_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_slices_gen.go tl_input_notify_peer_gen.go tl_input_notify_peer_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_reply_to_gen.go tl_input_reply_to_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_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_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_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_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_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_replies_gen.go tl_message_replies_slices_gen.go tl_message_reply_header_gen.go tl_message_reply_header_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_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_archived_stickers_gen.go tl_messages_archived_stickers_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_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_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_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_create_chat_gen.go tl_messages_create_chat_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_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_phone_call_history_gen.go tl_messages_delete_phone_call_history_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_scheduled_messages_gen.go tl_messages_delete_scheduled_messages_slices_gen.go tl_messages_dh_config_gen.go tl_messages_dh_config_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_default_banned_rights_gen.go tl_messages_edit_chat_default_banned_rights_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_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_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_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_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_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_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_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_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_full_chat_gen.go tl_messages_get_full_chat_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_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_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_pinned_dialogs_gen.go tl_messages_get_pinned_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_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_saved_gifs_gen.go tl_messages_get_saved_gifs_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_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_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_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_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_prolong_web_view_gen.go tl_messages_prolong_web_view_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_reactions_gen.go tl_messages_read_reactions_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_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_reaction_gen.go tl_messages_report_reaction_slices_gen.go tl_messages_report_slices_gen.go tl_messages_report_spam_gen.go tl_messages_report_spam_slices_gen.go tl_messages_request_app_web_view_gen.go tl_messages_request_app_web_view_slices_gen.go tl_messages_request_encryption_gen.go tl_messages_request_encryption_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_recent_sticker_gen.go tl_messages_save_recent_sticker_slices_gen.go tl_messages_saved_gifs_gen.go tl_messages_saved_gifs_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_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_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_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_toggle_bot_in_attach_menu_gen.go tl_messages_toggle_bot_in_attach_menu_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_peer_translations_gen.go tl_messages_toggle_peer_translations_slices_gen.go tl_messages_toggle_sticker_sets_gen.go tl_messages_toggle_sticker_sets_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_text_gen.go tl_messages_translate_text_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_message_gen.go tl_messages_update_pinned_message_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_votes_list_gen.go tl_messages_votes_list_slices_gen.go tl_messages_web_page_gen.go tl_messages_web_page_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_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_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_can_purchase_premium_gen.go tl_payments_can_purchase_premium_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_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_get_bank_card_data_gen.go tl_payments_get_bank_card_data_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_saved_info_gen.go tl_payments_get_saved_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_saved_info_gen.go tl_payments_saved_info_slices_gen.go tl_payments_send_payment_form_gen.go tl_payments_send_payment_form_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_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_group_call_gen.go tl_phone_create_group_call_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_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_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_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_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_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_gift_option_gen.go tl_premium_gift_option_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_public_forward_gen.go tl_public_forward_slices_gen.go tl_reaction_count_gen.go tl_reaction_count_slices_gen.go tl_reaction_gen.go tl_reaction_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_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_request_peer_type_gen.go tl_request_peer_type_slices_gen.go tl_restriction_reason_gen.go tl_restriction_reason_slices_gen.go tl_rich_text_gen.go tl_rich_text_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_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_simple_web_view_result_url_gen.go tl_simple_web_view_result_url_slices_gen.go tl_sponsored_message_gen.go tl_sponsored_message_slices_gen.go tl_sponsored_web_page_gen.go tl_sponsored_web_page_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_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_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_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_all_stories_gen.go tl_stories_all_stories_slices_gen.go tl_stories_can_send_story_gen.go tl_stories_can_send_story_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_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_report_gen.go tl_stories_report_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_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_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_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_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_users_gen.go tl_users_get_users_slices_gen.go tl_users_set_secure_value_errors_gen.go tl_users_set_secure_value_errors_slices_gen.go tl_users_user_full_gen.go tl_users_user_full_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_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 3207, in which 3206 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)
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
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)
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)
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
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
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. 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 for pagination, 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. 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).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
AccountGetChannelDefaultEmojiStatusesRequest represents TL type `account.getChannelDefaultEmojiStatuses#7727a7d5`. See https://core.telegram.org/method/account.getChannelDefaultEmojiStatuses for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. 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`. See https://core.telegram.org/method/account.getChannelRestrictedStatusEmojis for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. 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 See https://core.telegram.org/method/account.getChatThemes for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. 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
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 field of AccountGetChannelDefaultEmojiStatusesRequest. 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 field of AccountGetChannelDefaultEmojiStatusesRequest. 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 field of AccountGetChannelDefaultEmojiStatusesRequest. 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 field of AccountGetChannelDefaultEmojiStatusesRequest. 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
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
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 field of AccountGetChannelDefaultEmojiStatusesRequest. 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
AccountGetSavedRingtonesRequest represents TL type `account.getSavedRingtones#e1902288`. Fetch saved notification sounds See https://core.telegram.org/method/account.getSavedRingtones for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. 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 for pagination, 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)
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 field of AccountGetChannelDefaultEmojiStatusesRequest. 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
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
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)
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)
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 field of AccountGetChannelDefaultEmojiStatusesRequest. 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. 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 field of AccountGetChannelDefaultEmojiStatusesRequest. 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
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)
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. 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 for pagination, 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. 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
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
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)
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 for pagination, 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. 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)
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)
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)
AccountUpdateColorRequest represents TL type `account.updateColor#7cefa15d`. 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. Custom emoji ID used in the accent color pattern. Use SetBackgroundEmojiID and GetBackgroundEmojiID helpers. 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. GetBackgroundEmojiID returns value of BackgroundEmojiID conditional field and boolean which is true if field was set. GetColor returns value of Color conditional field and boolean which is true if field was set. GetForProfile returns value of ForProfile conditional field. SetBackgroundEmojiID sets value of BackgroundEmojiID 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)
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)
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
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 for pagination, 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. 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)
AppWebViewResultURL represents TL type `appWebViewResultUrl#3c1b4f0d`. Contains the link that must be used to open a named Mini App¹. Links: 1. https://core.telegram.org/api/bots/webapps#named-mini-apps See https://core.telegram.org/constructor/appWebViewResultUrl for reference. The URL to open Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills AppWebViewResultURL from given interface. 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. (*AppWebViewResultURL) Zero() bool *AppWebViewResultURL : github.com/gotd/td/bin.BareDecoder *AppWebViewResultURL : github.com/gotd/td/bin.BareEncoder *AppWebViewResultURL : github.com/gotd/td/bin.Decoder *AppWebViewResultURL : github.com/gotd/td/bin.Encoder *AppWebViewResultURL : github.com/gotd/td/bin.Object *AppWebViewResultURL : github.com/gotd/td/tdp.Object *AppWebViewResultURL : fmt.Stringer func (*Client).MessagesRequestAppWebView(ctx context.Context, request *MessagesRequestAppWebViewRequest) (*AppWebViewResultURL, 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 for pagination, 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. 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. 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
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. Iff 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).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. 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).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)
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. 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)
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)
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. 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)
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)
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)
AuthRequestFirebaseSMSRequest represents TL type `auth.requestFirebaseSms#89464b50`. 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, 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. 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. 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#3ef1a9bf`. 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. 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 AuthResendCodeRequest 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. (*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. 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 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 *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).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 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. 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
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. 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#e57b1432 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 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. 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#e57b1432`. 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. 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. 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. 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
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#80eee427`. Registers a validated phone number in the system. See https://core.telegram.org/method/auth.signUp for reference. New user first name New user last name 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. 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. (*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 LargeQueueActiveOperationsMax field of AutoDownloadSettings. Whether to enable data saving mode in phone calls Maximum size of photos to preload SmallQueueActiveOperationsMax field of AutoDownloadSettings. 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)
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. 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
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. 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#2a1c8c71`. 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 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¹. 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. 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. 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. 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 named Mini App¹. Links: 1. https://core.telegram.org/api/bots/webapps#named-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 named Mini App deep links¹. Links: 1) https://core.telegram.org/api/links#named-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 (*SponsoredMessage).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. 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 (*SponsoredMessage).GetApp() (value BotAppClass, ok bool) func (*MessageActionBotAllowed).SetApp(value BotAppClass) func (*SponsoredMessage).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
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#c27ac8c7`. 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 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. String implements fmt.Stringer. TypeID returns type id in TL 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. 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 dialog 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 dialog 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
BotInfo represents TL type `botInfo#8f300b57`. Info about bots (available bot commands, etc) See https://core.telegram.org/constructor/botInfo for reference. 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 Indicates the action to execute when pressing the in-UI menu button for bots Use SetMenuButton and GetMenuButton helpers. ID of the bot Use SetUserID and GetUserID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotInfo from given interface. 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. GetMenuButton returns value of MenuButton 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. 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. SetMenuButton sets value of MenuButton 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. (*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. 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 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 *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. 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 Links: 1) https://core.telegram.org/bots/payments#supported-currencies 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
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. 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)
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. 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)
BotPrecheckoutQueryHandler is a BotPrecheckoutQuery event handler. func UpdateDispatcher.OnBotPrecheckoutQuery(handler BotPrecheckoutQueryHandler)
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. FillFrom fills BotsBotInfo from given interface. GetAbout returns value of About field. GetDescription returns value of Description 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. (*BotsBotInfo) Zero() bool *BotsBotInfo : github.com/gotd/td/bin.BareDecoder *BotsBotInfo : github.com/gotd/td/bin.BareEncoder *BotsBotInfo : github.com/gotd/td/bin.Decoder *BotsBotInfo : github.com/gotd/td/bin.Encoder *BotsBotInfo : github.com/gotd/td/bin.Object *BotsBotInfo : github.com/gotd/td/tdp.Object *BotsBotInfo : fmt.Stringer func (*Client).BotsGetBotInfo(ctx context.Context, request *BotsGetBotInfoRequest) (*BotsBotInfo, error)
BotsCanSendMessageRequest represents TL type `bots.canSendMessage#1359f4e6`. Check whether the specified bot can send us messages See https://core.telegram.org/method/bots.canSendMessage for reference. The bot Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsCanSendMessageRequest 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. (*BotsCanSendMessageRequest) Zero() bool *BotsCanSendMessageRequest : github.com/gotd/td/bin.BareDecoder *BotsCanSendMessageRequest : github.com/gotd/td/bin.BareEncoder *BotsCanSendMessageRequest : github.com/gotd/td/bin.Decoder *BotsCanSendMessageRequest : github.com/gotd/td/bin.Encoder *BotsCanSendMessageRequest : github.com/gotd/td/bin.Object *BotsCanSendMessageRequest : github.com/gotd/td/tdp.Object *BotsCanSendMessageRequest : fmt.Stringer
BotsGetBotCommandsRequest represents TL type `bots.getBotCommands#e34c0dd6`. Obtain a list of bot commands for the specified bot scope and language code See https://core.telegram.org/method/bots.getBotCommands for reference. Language code Command scope Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsGetBotCommandsRequest from given interface. GetLangCode returns value of LangCode 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. (*BotsGetBotCommandsRequest) Zero() bool *BotsGetBotCommandsRequest : github.com/gotd/td/bin.BareDecoder *BotsGetBotCommandsRequest : github.com/gotd/td/bin.BareEncoder *BotsGetBotCommandsRequest : github.com/gotd/td/bin.Decoder *BotsGetBotCommandsRequest : github.com/gotd/td/bin.Encoder *BotsGetBotCommandsRequest : github.com/gotd/td/bin.Object *BotsGetBotCommandsRequest : github.com/gotd/td/tdp.Object *BotsGetBotCommandsRequest : fmt.Stringer func (*Client).BotsGetBotCommands(ctx context.Context, request *BotsGetBotCommandsRequest) ([]BotCommand, error)
BotsGetBotInfoRequest represents TL type `bots.getBotInfo#dcd914fd`. Get localized name, about text and description of a bot (or of the current account, if called by a bot). See https://core.telegram.org/method/bots.getBotInfo for reference. If called by a user, must contain the peer of a bot we own. Use SetBot and GetBot helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Language code, if left empty this method will return the fallback about text and description. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsGetBotInfoRequest from given interface. GetBot returns value of Bot conditional field and boolean which is true if field was set. GetLangCode returns value of LangCode field. SetBot sets value of Bot 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. (*BotsGetBotInfoRequest) Zero() bool *BotsGetBotInfoRequest : github.com/gotd/td/bin.BareDecoder *BotsGetBotInfoRequest : github.com/gotd/td/bin.BareEncoder *BotsGetBotInfoRequest : github.com/gotd/td/bin.Decoder *BotsGetBotInfoRequest : github.com/gotd/td/bin.Encoder *BotsGetBotInfoRequest : github.com/gotd/td/bin.Object *BotsGetBotInfoRequest : github.com/gotd/td/tdp.Object *BotsGetBotInfoRequest : fmt.Stringer func (*Client).BotsGetBotInfo(ctx context.Context, request *BotsGetBotInfoRequest) (*BotsBotInfo, error)
BotsGetBotMenuButtonRequest represents TL type `bots.getBotMenuButton#9c60eb28`. Gets the menu button action for a given user or for all users, previously set using bots.setBotMenuButton¹; users can see this information in the botInfo² constructor. Links: 1. https://core.telegram.org/method/bots.setBotMenuButton 2. https://core.telegram.org/constructor/botInfo See https://core.telegram.org/method/bots.getBotMenuButton for reference. User ID or empty for the default menu button. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsGetBotMenuButtonRequest from given interface. 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. (*BotsGetBotMenuButtonRequest) Zero() bool *BotsGetBotMenuButtonRequest : github.com/gotd/td/bin.BareDecoder *BotsGetBotMenuButtonRequest : github.com/gotd/td/bin.BareEncoder *BotsGetBotMenuButtonRequest : github.com/gotd/td/bin.Decoder *BotsGetBotMenuButtonRequest : github.com/gotd/td/bin.Encoder *BotsGetBotMenuButtonRequest : github.com/gotd/td/bin.Object *BotsGetBotMenuButtonRequest : github.com/gotd/td/tdp.Object *BotsGetBotMenuButtonRequest : fmt.Stringer
BotShippingQueryHandler is a BotShippingQuery event handler. func UpdateDispatcher.OnBotShippingQuery(handler BotShippingQueryHandler)
BotsInvokeWebViewCustomMethodRequest represents TL type `bots.invokeWebViewCustomMethod#87fc5e7`. Send a custom request from a mini bot app¹, triggered by a web_app_invoke_custom_method event »². The response should be sent using a custom_method_invoked¹ event, see here »² for more info on the flow. Links: 1. https://core.telegram.org/api/bots/webapps 2. https://core.telegram.org/api/web-events#web-app-invoke-custom-method 3. https://core.telegram.org/api/bots/webapps#custom-method-invoked 4. https://core.telegram.org/api/web-events#web-app-invoke-custom-method See https://core.telegram.org/method/bots.invokeWebViewCustomMethod for reference. Identifier of the bot associated to the mini bot app¹ Links: 1) https://core.telegram.org/api/bots/webapps Identifier of the custom method to invoke Method parameters Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsInvokeWebViewCustomMethodRequest from given interface. GetBot returns value of Bot field. GetCustomMethod returns value of CustomMethod field. GetParams returns value of Params 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. (*BotsInvokeWebViewCustomMethodRequest) Zero() bool *BotsInvokeWebViewCustomMethodRequest : github.com/gotd/td/bin.BareDecoder *BotsInvokeWebViewCustomMethodRequest : github.com/gotd/td/bin.BareEncoder *BotsInvokeWebViewCustomMethodRequest : github.com/gotd/td/bin.Decoder *BotsInvokeWebViewCustomMethodRequest : github.com/gotd/td/bin.Encoder *BotsInvokeWebViewCustomMethodRequest : github.com/gotd/td/bin.Object *BotsInvokeWebViewCustomMethodRequest : github.com/gotd/td/tdp.Object *BotsInvokeWebViewCustomMethodRequest : fmt.Stringer func (*Client).BotsInvokeWebViewCustomMethod(ctx context.Context, request *BotsInvokeWebViewCustomMethodRequest) (*DataJSON, error)
BotsReorderUsernamesRequest represents TL type `bots.reorderUsernames#9709b1c2`. Reorder usernames associated to a bot we own. See https://core.telegram.org/method/bots.reorderUsernames for reference. The bot 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 BotsReorderUsernamesRequest from given interface. GetBot returns value of Bot field. 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. (*BotsReorderUsernamesRequest) Zero() bool *BotsReorderUsernamesRequest : github.com/gotd/td/bin.BareDecoder *BotsReorderUsernamesRequest : github.com/gotd/td/bin.BareEncoder *BotsReorderUsernamesRequest : github.com/gotd/td/bin.Decoder *BotsReorderUsernamesRequest : github.com/gotd/td/bin.Encoder *BotsReorderUsernamesRequest : github.com/gotd/td/bin.Object *BotsReorderUsernamesRequest : github.com/gotd/td/tdp.Object *BotsReorderUsernamesRequest : fmt.Stringer func (*Client).BotsReorderUsernames(ctx context.Context, request *BotsReorderUsernamesRequest) (bool, error)
BotsResetBotCommandsRequest represents TL type `bots.resetBotCommands#3d8de0f9`. Clear bot commands for the specified bot scope and language code See https://core.telegram.org/method/bots.resetBotCommands for reference. Language code Command scope Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsResetBotCommandsRequest from given interface. GetLangCode returns value of LangCode 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. (*BotsResetBotCommandsRequest) Zero() bool *BotsResetBotCommandsRequest : github.com/gotd/td/bin.BareDecoder *BotsResetBotCommandsRequest : github.com/gotd/td/bin.BareEncoder *BotsResetBotCommandsRequest : github.com/gotd/td/bin.Decoder *BotsResetBotCommandsRequest : github.com/gotd/td/bin.Encoder *BotsResetBotCommandsRequest : github.com/gotd/td/bin.Object *BotsResetBotCommandsRequest : github.com/gotd/td/tdp.Object *BotsResetBotCommandsRequest : fmt.Stringer func (*Client).BotsResetBotCommands(ctx context.Context, request *BotsResetBotCommandsRequest) (bool, error)
BotsSendCustomRequestRequest represents TL type `bots.sendCustomRequest#aa2769ed`. Sends a custom request; for bots only See https://core.telegram.org/method/bots.sendCustomRequest for reference. The method name JSON-serialized method parameters Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsSendCustomRequestRequest from given interface. GetCustomMethod returns value of CustomMethod field. GetParams returns value of Params 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. (*BotsSendCustomRequestRequest) Zero() bool *BotsSendCustomRequestRequest : github.com/gotd/td/bin.BareDecoder *BotsSendCustomRequestRequest : github.com/gotd/td/bin.BareEncoder *BotsSendCustomRequestRequest : github.com/gotd/td/bin.Decoder *BotsSendCustomRequestRequest : github.com/gotd/td/bin.Encoder *BotsSendCustomRequestRequest : github.com/gotd/td/bin.Object *BotsSendCustomRequestRequest : github.com/gotd/td/tdp.Object *BotsSendCustomRequestRequest : fmt.Stringer func (*Client).BotsSendCustomRequest(ctx context.Context, request *BotsSendCustomRequestRequest) (*DataJSON, error)
BotsSetBotBroadcastDefaultAdminRightsRequest represents TL type `bots.setBotBroadcastDefaultAdminRights#788464e1`. Set the default suggested admin rights¹ for bots being added as admins to channels, see here for more info on how to handle them »². Links: 1. https://core.telegram.org/api/rights#suggested-bot-rights 2. https://core.telegram.org/api/rights#suggested-bot-rights See https://core.telegram.org/method/bots.setBotBroadcastDefaultAdminRights for reference. Admin rights Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsSetBotBroadcastDefaultAdminRightsRequest from given interface. GetAdminRights returns value of AdminRights 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. (*BotsSetBotBroadcastDefaultAdminRightsRequest) Zero() bool *BotsSetBotBroadcastDefaultAdminRightsRequest : github.com/gotd/td/bin.BareDecoder *BotsSetBotBroadcastDefaultAdminRightsRequest : github.com/gotd/td/bin.BareEncoder *BotsSetBotBroadcastDefaultAdminRightsRequest : github.com/gotd/td/bin.Decoder *BotsSetBotBroadcastDefaultAdminRightsRequest : github.com/gotd/td/bin.Encoder *BotsSetBotBroadcastDefaultAdminRightsRequest : github.com/gotd/td/bin.Object *BotsSetBotBroadcastDefaultAdminRightsRequest : github.com/gotd/td/tdp.Object *BotsSetBotBroadcastDefaultAdminRightsRequest : fmt.Stringer
BotsSetBotCommandsRequest represents TL type `bots.setBotCommands#517165a`. Set bot command list See https://core.telegram.org/method/bots.setBotCommands for reference. Bot commands Language code Command scope Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsSetBotCommandsRequest from given interface. GetCommands returns value of Commands field. GetLangCode returns value of LangCode 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. (*BotsSetBotCommandsRequest) Zero() bool *BotsSetBotCommandsRequest : github.com/gotd/td/bin.BareDecoder *BotsSetBotCommandsRequest : github.com/gotd/td/bin.BareEncoder *BotsSetBotCommandsRequest : github.com/gotd/td/bin.Decoder *BotsSetBotCommandsRequest : github.com/gotd/td/bin.Encoder *BotsSetBotCommandsRequest : github.com/gotd/td/bin.Object *BotsSetBotCommandsRequest : github.com/gotd/td/tdp.Object *BotsSetBotCommandsRequest : fmt.Stringer func (*Client).BotsSetBotCommands(ctx context.Context, request *BotsSetBotCommandsRequest) (bool, error)
BotsSetBotGroupDefaultAdminRightsRequest represents TL type `bots.setBotGroupDefaultAdminRights#925ec9ea`. Set the default suggested admin rights¹ for bots being added as admins to groups, see here for more info on how to handle them »². Links: 1. https://core.telegram.org/api/rights#suggested-bot-rights 2. https://core.telegram.org/api/rights#suggested-bot-rights See https://core.telegram.org/method/bots.setBotGroupDefaultAdminRights for reference. Admin rights Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsSetBotGroupDefaultAdminRightsRequest from given interface. GetAdminRights returns value of AdminRights 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. (*BotsSetBotGroupDefaultAdminRightsRequest) Zero() bool *BotsSetBotGroupDefaultAdminRightsRequest : github.com/gotd/td/bin.BareDecoder *BotsSetBotGroupDefaultAdminRightsRequest : github.com/gotd/td/bin.BareEncoder *BotsSetBotGroupDefaultAdminRightsRequest : github.com/gotd/td/bin.Decoder *BotsSetBotGroupDefaultAdminRightsRequest : github.com/gotd/td/bin.Encoder *BotsSetBotGroupDefaultAdminRightsRequest : github.com/gotd/td/bin.Object *BotsSetBotGroupDefaultAdminRightsRequest : github.com/gotd/td/tdp.Object *BotsSetBotGroupDefaultAdminRightsRequest : fmt.Stringer
BotsSetBotInfoRequest represents TL type `bots.setBotInfo#10cf3123`. Set localized name, about text and description of a bot (or of the current account, if called by a bot). See https://core.telegram.org/method/bots.setBotInfo for reference. New about text Use SetAbout and GetAbout helpers. If called by a user, must contain the peer of a bot we own. Use SetBot and GetBot helpers. New description Use SetDescription and GetDescription helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Language code, if left empty update the fallback about text and description New bot name Use SetName and GetName helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsSetBotInfoRequest from given interface. GetAbout returns value of About conditional field and boolean which is true if field was set. GetBot returns value of Bot 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. GetLangCode returns value of LangCode field. GetName returns value of Name conditional field and boolean which is true if field was set. SetAbout sets value of About conditional field. SetBot sets value of Bot conditional field. SetDescription sets value of Description conditional field. SetFlags sets flags for non-zero fields. SetName sets value of Name 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. (*BotsSetBotInfoRequest) Zero() bool *BotsSetBotInfoRequest : github.com/gotd/td/bin.BareDecoder *BotsSetBotInfoRequest : github.com/gotd/td/bin.BareEncoder *BotsSetBotInfoRequest : github.com/gotd/td/bin.Decoder *BotsSetBotInfoRequest : github.com/gotd/td/bin.Encoder *BotsSetBotInfoRequest : github.com/gotd/td/bin.Object *BotsSetBotInfoRequest : github.com/gotd/td/tdp.Object *BotsSetBotInfoRequest : fmt.Stringer func (*Client).BotsSetBotInfo(ctx context.Context, request *BotsSetBotInfoRequest) (bool, error)
BotsSetBotMenuButtonRequest represents TL type `bots.setBotMenuButton#4504d54f`. Sets the menu button action »¹ for a given user or for all users Links: 1. https://core.telegram.org/api/bots/menu See https://core.telegram.org/method/bots.setBotMenuButton for reference. Bot menu button action User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsSetBotMenuButtonRequest from given interface. GetButton returns value of Button 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. (*BotsSetBotMenuButtonRequest) Zero() bool *BotsSetBotMenuButtonRequest : github.com/gotd/td/bin.BareDecoder *BotsSetBotMenuButtonRequest : github.com/gotd/td/bin.BareEncoder *BotsSetBotMenuButtonRequest : github.com/gotd/td/bin.Decoder *BotsSetBotMenuButtonRequest : github.com/gotd/td/bin.Encoder *BotsSetBotMenuButtonRequest : github.com/gotd/td/bin.Object *BotsSetBotMenuButtonRequest : github.com/gotd/td/tdp.Object *BotsSetBotMenuButtonRequest : fmt.Stringer func (*Client).BotsSetBotMenuButton(ctx context.Context, request *BotsSetBotMenuButtonRequest) (bool, error)
BotsToggleUsernameRequest represents TL type `bots.toggleUsername#53ca973`. Activate or deactivate a purchased fragment.com¹ username associated to a bot we own. Links: 1. https://fragment.com See https://core.telegram.org/method/bots.toggleUsername for reference. Whether to activate or deactivate it The bot Username Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills BotsToggleUsernameRequest from given interface. GetActive returns value of Active field. GetBot returns value of Bot 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. (*BotsToggleUsernameRequest) Zero() bool *BotsToggleUsernameRequest : github.com/gotd/td/bin.BareDecoder *BotsToggleUsernameRequest : github.com/gotd/td/bin.BareEncoder *BotsToggleUsernameRequest : github.com/gotd/td/bin.Decoder *BotsToggleUsernameRequest : github.com/gotd/td/bin.Encoder *BotsToggleUsernameRequest : github.com/gotd/td/bin.Object *BotsToggleUsernameRequest : github.com/gotd/td/tdp.Object *BotsToggleUsernameRequest : fmt.Stringer func (*Client).BotsToggleUsername(ctx context.Context, request *BotsToggleUsernameRequest) (bool, error)
BotStoppedHandler is a BotStopped event handler. func UpdateDispatcher.OnBotStopped(handler BotStoppedHandler)
BotWebhookJSONHandler is a BotWebhookJSON event handler. func UpdateDispatcher.OnBotWebhookJSON(handler BotWebhookJSONHandler)
BotWebhookJSONQueryHandler is a BotWebhookJSONQuery event handler. func UpdateDispatcher.OnBotWebhookJSONQuery(handler BotWebhookJSONQueryHandler)
Bytes represents TL type `bytes#e937bb82`. See https://core.telegram.org/constructor/bytes 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. (*Bytes) Zero() bool *Bytes : github.com/gotd/td/bin.BareDecoder *Bytes : github.com/gotd/td/bin.BareEncoder *Bytes : github.com/gotd/td/bin.Decoder *Bytes : github.com/gotd/td/bin.Encoder *Bytes : github.com/gotd/td/bin.Object *Bytes : github.com/gotd/td/tdp.Object *Bytes : fmt.Stringer
CDNConfig represents TL type `cdnConfig#5725e40a`. Configuration for CDN¹ file downloads. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/constructor/cdnConfig for reference. Vector of public keys to use only during handshakes to CDN¹ DCs. Links: 1) https://core.telegram.org/cdn Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills CDNConfig from given interface. GetPublicKeys returns value of PublicKeys 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. (*CDNConfig) Zero() bool *CDNConfig : github.com/gotd/td/bin.BareDecoder *CDNConfig : github.com/gotd/td/bin.BareEncoder *CDNConfig : github.com/gotd/td/bin.Decoder *CDNConfig : github.com/gotd/td/bin.Encoder *CDNConfig : github.com/gotd/td/bin.Object *CDNConfig : github.com/gotd/td/tdp.Object *CDNConfig : fmt.Stringer func (*Client).HelpGetCDNConfig(ctx context.Context) (*CDNConfig, error)
CDNPublicKey represents TL type `cdnPublicKey#c982eaba`. Public key to use only during handshakes to CDN¹ DCs. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/constructor/cdnPublicKey for reference. CDN DC¹ ID Links: 1) https://core.telegram.org/cdn RSA public key Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills CDNPublicKey from given interface. GetDCID returns value of DCID field. GetPublicKey returns value of PublicKey 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. (*CDNPublicKey) Zero() bool *CDNPublicKey : github.com/gotd/td/bin.BareDecoder *CDNPublicKey : github.com/gotd/td/bin.BareEncoder *CDNPublicKey : github.com/gotd/td/bin.Decoder *CDNPublicKey : github.com/gotd/td/bin.Encoder *CDNPublicKey : github.com/gotd/td/bin.Object *CDNPublicKey : github.com/gotd/td/tdp.Object *CDNPublicKey : fmt.Stringer func (*CDNConfig).GetPublicKeys() (value []CDNPublicKey)
Channel represents TL type `channel#aadfc8f`. Channel/supergroup info See https://core.telegram.org/constructor/channel for reference. Access hash Use SetAccessHash and GetAccessHash helpers. Admin rights of the user in this channel (see rights¹) Links: 1) https://core.telegram.org/api/rights Use SetAdminRights and GetAdminRights helpers. Banned rights of the user in this channel (see rights¹) Links: 1) https://core.telegram.org/api/rights Use SetBannedRights and GetBannedRights helpers. Is this a channel? Whether a group call or livestream is currently active Whether there's anyone in the group call or livestream The channel's accent color¹. Links: 1) https://core.telegram.org/api/colors Use SetColor and GetColor helpers. Whether the current user is the creator of this channel Date when the user joined the supergroup/channel, or if the user isn't a member, its creation date Default chat rights (see rights¹) Links: 1) https://core.telegram.org/api/rights Use SetDefaultBannedRights and GetDefaultBannedRights helpers. EmojiStatus field of Channel. Use SetEmojiStatus and GetEmojiStatus helpers. If set, this supergroup/channel¹ was reported by many users as a fake or scam: be careful when interacting with it. Links: 1) https://core.telegram.org/api/channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this supergroup is a forum¹ Links: 1) https://core.telegram.org/api/forum Whether this supergroup¹ is a gigagroup Links: 1) https://core.telegram.org/api/channel Whether this chanel has a geoposition Whether this channel has a private join link ID of the channel Whether a user's join request will have to be approved by administrators¹, toggle using channels.toggleJoinToSend² Links: 1) https://core.telegram.org/api/invites#join-requests 2) https://core.telegram.org/method/channels.toggleJoinRequest Whether a user needs to join the supergroup before they can send messages: can be false only for discussion groups »¹, toggle using channels.toggleJoinToSend² Links: 1) https://core.telegram.org/api/discussion 2) https://core.telegram.org/method/channels.toggleJoinToSend Whether the current user has left or is not a member of this channel Level field of Channel. Use SetLevel and GetLevel helpers. Is this a supergroup? See min¹ Links: 1) https://core.telegram.org/api/min Whether this channel or group is protected¹, thus does not allow forwarding messages from it Links: 1) https://telegram.org/blog/protected-content-delete-by-date-and-more Participant count Use SetParticipantsCount and GetParticipantsCount helpers. Profile photo ProfileColor field of Channel. Use SetProfileColor and GetProfileColor helpers. Whether viewing/writing in this channel for a reason (see restriction_reason Contains the reason why access to this channel must be restricted. Use SetRestrictionReason and GetRestrictionReason helpers. This channel/supergroup is probably a scam Whether signatures are enabled (channels) Whether slow mode is enabled for groups to prevent flood in chat Whether we have hidden all stories posted by this channel »¹. Links: 1) https://core.telegram.org/api/stories#hiding-stories-of-other-users If set, indicates that the stories_hidden flag was not populated, and its value must cannot be relied on; use the previously cached value, or re-fetch the constructor using channels.getChannels¹ to obtain the latest value of the stories_hidden flag. Links: 1) https://core.telegram.org/method/channels.getChannels ID of the maximum read story¹. Links: 1) https://core.telegram.org/api/stories Use SetStoriesMaxID and GetStoriesMaxID helpers. No stories from the channel are visible. Title Username Use SetUsername and GetUsername helpers. Additional usernames Use SetUsernames and GetUsernames helpers. Is this channel verified by telegram? AsFull tries to map Channel to FullChat. AsInput tries to map Channel to InputChannel. AsInputPeer tries to map Channel to InputPeerChannel. AsNotEmpty tries to map Channel to NotEmptyChat. AsNotForbidden tries to map Channel to NotForbiddenChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Channel from given interface. GetAccessHash returns value of AccessHash conditional field and boolean which is true if field was set. GetAdminRights returns value of AdminRights conditional field and boolean which is true if field was set. GetBannedRights returns value of BannedRights conditional field and boolean which is true if field was set. GetBroadcast returns value of Broadcast conditional field. GetCallActive returns value of CallActive conditional field. GetCallNotEmpty returns value of CallNotEmpty conditional field. GetColor returns value of Color conditional field and boolean which is true if field was set. GetCreator returns value of Creator conditional field. GetDate returns value of Date field. GetDefaultBannedRights returns value of DefaultBannedRights conditional field and boolean which is true if field was set. GetEmojiStatus returns value of EmojiStatus conditional field and boolean which is true if field was set. GetFake returns value of Fake conditional field. GetForum returns value of Forum conditional field. GetGigagroup returns value of Gigagroup conditional field. GetHasGeo returns value of HasGeo conditional field. GetHasLink returns value of HasLink conditional field. GetID returns value of ID field. GetJoinRequest returns value of JoinRequest conditional field. GetJoinToSend returns value of JoinToSend conditional field. GetLeft returns value of Left conditional field. GetLevel returns value of Level conditional field and boolean which is true if field was set. GetMegagroup returns value of Megagroup conditional field. GetMin returns value of Min conditional field. GetNoforwards returns value of Noforwards conditional field. GetParticipantsCount returns value of ParticipantsCount conditional field and boolean which is true if field was set. GetPhoto returns value of Photo field. GetProfileColor returns value of ProfileColor conditional field and boolean which is true if field was set. GetRestricted returns value of Restricted conditional field. GetRestrictionReason returns value of RestrictionReason conditional field and boolean which is true if field was set. GetScam returns value of Scam conditional field. GetSignatures returns value of Signatures conditional field. GetSlowmodeEnabled returns value of SlowmodeEnabled conditional field. GetStoriesHidden returns value of StoriesHidden conditional field. GetStoriesHiddenMin returns value of StoriesHiddenMin conditional field. GetStoriesMaxID returns value of StoriesMaxID conditional field and boolean which is true if field was set. GetStoriesUnavailable returns value of StoriesUnavailable conditional field. GetTitle returns value of Title field. GetUsername returns value of Username conditional field and boolean which is true if field was set. GetUsernames returns value of Usernames conditional field and boolean which is true if field was set. GetVerified returns value of Verified conditional field. SetAccessHash sets value of AccessHash conditional field. SetAdminRights sets value of AdminRights conditional field. SetBannedRights sets value of BannedRights conditional field. SetBroadcast sets value of Broadcast conditional field. SetCallActive sets value of CallActive conditional field. SetCallNotEmpty sets value of CallNotEmpty conditional field. SetColor sets value of Color conditional field. SetCreator sets value of Creator conditional field. SetDefaultBannedRights sets value of DefaultBannedRights conditional field. SetEmojiStatus sets value of EmojiStatus conditional field. SetFake sets value of Fake conditional field. SetFlags sets flags for non-zero fields. SetForum sets value of Forum conditional field. SetGigagroup sets value of Gigagroup conditional field. SetHasGeo sets value of HasGeo conditional field. SetHasLink sets value of HasLink conditional field. SetJoinRequest sets value of JoinRequest conditional field. SetJoinToSend sets value of JoinToSend conditional field. SetLeft sets value of Left conditional field. SetLevel sets value of Level conditional field. SetMegagroup sets value of Megagroup conditional field. SetMin sets value of Min conditional field. SetNoforwards sets value of Noforwards conditional field. SetParticipantsCount sets value of ParticipantsCount conditional field. SetProfileColor sets value of ProfileColor conditional field. SetRestricted sets value of Restricted conditional field. SetRestrictionReason sets value of RestrictionReason conditional field. SetScam sets value of Scam conditional field. SetSignatures sets value of Signatures conditional field. SetSlowmodeEnabled sets value of SlowmodeEnabled conditional field. SetStoriesHidden sets value of StoriesHidden conditional field. SetStoriesHiddenMin sets value of StoriesHiddenMin conditional field. SetStoriesMaxID sets value of StoriesMaxID conditional field. SetStoriesUnavailable sets value of StoriesUnavailable conditional field. SetUsername sets value of Username conditional field. SetUsernames sets value of Usernames conditional field. SetVerified sets value of Verified 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. (*Channel) Zero() bool *Channel : ChatClass *Channel : FullChat *Channel : NotEmptyChat *Channel : NotForbiddenChat *Channel : github.com/gotd/td/bin.BareDecoder *Channel : github.com/gotd/td/bin.BareEncoder *Channel : github.com/gotd/td/bin.Decoder *Channel : github.com/gotd/td/bin.Encoder *Channel : github.com/gotd/td/bin.Object *Channel : github.com/gotd/td/tdp.Object *Channel : fmt.Stringer func ChannelArray.First() (v Channel, ok bool) func ChannelArray.Last() (v Channel, ok bool) func (*ChannelArray).Pop() (v Channel, ok bool) func (*ChannelArray).PopFirst() (v Channel, ok bool) func ChannelArray.ToMap() map[int64]Channel func ChatClassArray.ChannelToMap() map[int64]*Channel func ChannelArray.FillMap(to map[int64]Channel) func ChatClassArray.FillChannelMap(to map[int64]*Channel)
ChannelAdminLogEvent represents TL type `channelAdminLogEvent#1fad68cd`. Admin log event See https://core.telegram.org/constructor/channelAdminLogEvent for reference. Action Date Event ID User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEvent from given interface. GetAction returns value of Action field. GetDate returns value of Date field. GetID returns value of ID 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. (*ChannelAdminLogEvent) Zero() bool *ChannelAdminLogEvent : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEvent : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEvent : github.com/gotd/td/bin.Decoder *ChannelAdminLogEvent : github.com/gotd/td/bin.Encoder *ChannelAdminLogEvent : github.com/gotd/td/bin.Object *ChannelAdminLogEvent : github.com/gotd/td/tdp.Object *ChannelAdminLogEvent : fmt.Stringer func (*ChannelsAdminLogResults).GetEvents() (value []ChannelAdminLogEvent)
ChannelAdminLogEventAction boxes the ChannelAdminLogEventActionClass providing a helper. ChannelAdminLogEventAction ChannelAdminLogEventActionClass Decode implements bin.Decoder for ChannelAdminLogEventActionBox. Encode implements bin.Encode for ChannelAdminLogEventActionBox. *ChannelAdminLogEventActionBox : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionBox : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionBox : github.com/gotd/td/bin.Object
ChannelAdminLogEventActionChangeAbout represents TL type `channelAdminLogEventActionChangeAbout#55188a2e`. The description was changed See https://core.telegram.org/constructor/channelAdminLogEventActionChangeAbout for reference. New title Previous title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeAbout from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeAbout) Zero() bool *ChannelAdminLogEventActionChangeAbout : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeAbout : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeAbout : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeAbout : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeAbout : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeAbout : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeAbout : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeAbout : fmt.Stringer func ChannelAdminLogEventActionChangeAboutArray.First() (v ChannelAdminLogEventActionChangeAbout, ok bool) func ChannelAdminLogEventActionChangeAboutArray.Last() (v ChannelAdminLogEventActionChangeAbout, ok bool) func (*ChannelAdminLogEventActionChangeAboutArray).Pop() (v ChannelAdminLogEventActionChangeAbout, ok bool) func (*ChannelAdminLogEventActionChangeAboutArray).PopFirst() (v ChannelAdminLogEventActionChangeAbout, ok bool)
ChannelAdminLogEventActionChangeAboutArray is adapter for slice of ChannelAdminLogEventActionChangeAbout. 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 ChannelAdminLogEventActionChangeAbout. Sort sorts slice of ChannelAdminLogEventActionChangeAbout. SortStable sorts slice of ChannelAdminLogEventActionChangeAbout. func ChannelAdminLogEventActionChangeAboutArray.Retain(keep func(x ChannelAdminLogEventActionChangeAbout) bool) ChannelAdminLogEventActionChangeAboutArray func ChannelAdminLogEventActionChangeAboutArray.Sort(less func(a, b ChannelAdminLogEventActionChangeAbout) bool) ChannelAdminLogEventActionChangeAboutArray func ChannelAdminLogEventActionChangeAboutArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeAbout) bool) ChannelAdminLogEventActionChangeAboutArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeAbout() (to ChannelAdminLogEventActionChangeAboutArray)
ChannelAdminLogEventActionChangeAvailableReactions represents TL type `channelAdminLogEventActionChangeAvailableReactions#be4e0ef8`. The set of allowed message reactions »¹ for this channel has changed Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/constructor/channelAdminLogEventActionChangeAvailableReactions for reference. New allowed reaction emojis Previously allowed reaction emojis Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeAvailableReactions from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeAvailableReactions) Zero() bool *ChannelAdminLogEventActionChangeAvailableReactions : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeAvailableReactions : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeAvailableReactions : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeAvailableReactions : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeAvailableReactions : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeAvailableReactions : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeAvailableReactions : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeAvailableReactions : fmt.Stringer func ChannelAdminLogEventActionChangeAvailableReactionsArray.First() (v ChannelAdminLogEventActionChangeAvailableReactions, ok bool) func ChannelAdminLogEventActionChangeAvailableReactionsArray.Last() (v ChannelAdminLogEventActionChangeAvailableReactions, ok bool) func (*ChannelAdminLogEventActionChangeAvailableReactionsArray).Pop() (v ChannelAdminLogEventActionChangeAvailableReactions, ok bool) func (*ChannelAdminLogEventActionChangeAvailableReactionsArray).PopFirst() (v ChannelAdminLogEventActionChangeAvailableReactions, ok bool)
ChannelAdminLogEventActionChangeAvailableReactionsArray is adapter for slice of ChannelAdminLogEventActionChangeAvailableReactions. 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 ChannelAdminLogEventActionChangeAvailableReactions. Sort sorts slice of ChannelAdminLogEventActionChangeAvailableReactions. SortStable sorts slice of ChannelAdminLogEventActionChangeAvailableReactions. func ChannelAdminLogEventActionChangeAvailableReactionsArray.Retain(keep func(x ChannelAdminLogEventActionChangeAvailableReactions) bool) ChannelAdminLogEventActionChangeAvailableReactionsArray func ChannelAdminLogEventActionChangeAvailableReactionsArray.Sort(less func(a, b ChannelAdminLogEventActionChangeAvailableReactions) bool) ChannelAdminLogEventActionChangeAvailableReactionsArray func ChannelAdminLogEventActionChangeAvailableReactionsArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeAvailableReactions) bool) ChannelAdminLogEventActionChangeAvailableReactionsArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeAvailableReactions() (to ChannelAdminLogEventActionChangeAvailableReactionsArray)
ChannelAdminLogEventActionChangeEmojiStatus represents TL type `channelAdminLogEventActionChangeEmojiStatus#3ea9feb1`. See https://core.telegram.org/constructor/channelAdminLogEventActionChangeEmojiStatus for reference. NewValue field of ChannelAdminLogEventActionChangeEmojiStatus. PrevValue field of ChannelAdminLogEventActionChangeEmojiStatus. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeEmojiStatus from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeEmojiStatus) Zero() bool *ChannelAdminLogEventActionChangeEmojiStatus : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeEmojiStatus : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeEmojiStatus : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeEmojiStatus : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeEmojiStatus : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeEmojiStatus : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeEmojiStatus : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeEmojiStatus : fmt.Stringer func ChannelAdminLogEventActionChangeEmojiStatusArray.First() (v ChannelAdminLogEventActionChangeEmojiStatus, ok bool) func ChannelAdminLogEventActionChangeEmojiStatusArray.Last() (v ChannelAdminLogEventActionChangeEmojiStatus, ok bool) func (*ChannelAdminLogEventActionChangeEmojiStatusArray).Pop() (v ChannelAdminLogEventActionChangeEmojiStatus, ok bool) func (*ChannelAdminLogEventActionChangeEmojiStatusArray).PopFirst() (v ChannelAdminLogEventActionChangeEmojiStatus, ok bool)
ChannelAdminLogEventActionChangeEmojiStatusArray is adapter for slice of ChannelAdminLogEventActionChangeEmojiStatus. 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 ChannelAdminLogEventActionChangeEmojiStatus. Sort sorts slice of ChannelAdminLogEventActionChangeEmojiStatus. SortStable sorts slice of ChannelAdminLogEventActionChangeEmojiStatus. func ChannelAdminLogEventActionChangeEmojiStatusArray.Retain(keep func(x ChannelAdminLogEventActionChangeEmojiStatus) bool) ChannelAdminLogEventActionChangeEmojiStatusArray func ChannelAdminLogEventActionChangeEmojiStatusArray.Sort(less func(a, b ChannelAdminLogEventActionChangeEmojiStatus) bool) ChannelAdminLogEventActionChangeEmojiStatusArray func ChannelAdminLogEventActionChangeEmojiStatusArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeEmojiStatus) bool) ChannelAdminLogEventActionChangeEmojiStatusArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeEmojiStatus() (to ChannelAdminLogEventActionChangeEmojiStatusArray)
ChannelAdminLogEventActionChangeHistoryTTL represents TL type `channelAdminLogEventActionChangeHistoryTTL#6e941a38`. The Time-To-Live of messages in this chat was changed See https://core.telegram.org/constructor/channelAdminLogEventActionChangeHistoryTTL for reference. New slow mode value Previous slow mode value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeHistoryTTL from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeHistoryTTL) Zero() bool *ChannelAdminLogEventActionChangeHistoryTTL : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeHistoryTTL : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeHistoryTTL : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeHistoryTTL : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeHistoryTTL : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeHistoryTTL : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeHistoryTTL : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeHistoryTTL : fmt.Stringer func ChannelAdminLogEventActionChangeHistoryTTLArray.First() (v ChannelAdminLogEventActionChangeHistoryTTL, ok bool) func ChannelAdminLogEventActionChangeHistoryTTLArray.Last() (v ChannelAdminLogEventActionChangeHistoryTTL, ok bool) func (*ChannelAdminLogEventActionChangeHistoryTTLArray).Pop() (v ChannelAdminLogEventActionChangeHistoryTTL, ok bool) func (*ChannelAdminLogEventActionChangeHistoryTTLArray).PopFirst() (v ChannelAdminLogEventActionChangeHistoryTTL, ok bool)
ChannelAdminLogEventActionChangeHistoryTTLArray is adapter for slice of ChannelAdminLogEventActionChangeHistoryTTL. 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 ChannelAdminLogEventActionChangeHistoryTTL. Sort sorts slice of ChannelAdminLogEventActionChangeHistoryTTL. SortStable sorts slice of ChannelAdminLogEventActionChangeHistoryTTL. func ChannelAdminLogEventActionChangeHistoryTTLArray.Retain(keep func(x ChannelAdminLogEventActionChangeHistoryTTL) bool) ChannelAdminLogEventActionChangeHistoryTTLArray func ChannelAdminLogEventActionChangeHistoryTTLArray.Sort(less func(a, b ChannelAdminLogEventActionChangeHistoryTTL) bool) ChannelAdminLogEventActionChangeHistoryTTLArray func ChannelAdminLogEventActionChangeHistoryTTLArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeHistoryTTL) bool) ChannelAdminLogEventActionChangeHistoryTTLArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeHistoryTTL() (to ChannelAdminLogEventActionChangeHistoryTTLArray)
ChannelAdminLogEventActionChangeLinkedChat represents TL type `channelAdminLogEventActionChangeLinkedChat#50c7ac8`. The linked chat was changed See https://core.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat for reference. New linked chat Previous linked chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeLinkedChat from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeLinkedChat) Zero() bool *ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeLinkedChat : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeLinkedChat : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeLinkedChat : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeLinkedChat : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeLinkedChat : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeLinkedChat : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeLinkedChat : fmt.Stringer func ChannelAdminLogEventActionChangeLinkedChatArray.First() (v ChannelAdminLogEventActionChangeLinkedChat, ok bool) func ChannelAdminLogEventActionChangeLinkedChatArray.Last() (v ChannelAdminLogEventActionChangeLinkedChat, ok bool) func (*ChannelAdminLogEventActionChangeLinkedChatArray).Pop() (v ChannelAdminLogEventActionChangeLinkedChat, ok bool) func (*ChannelAdminLogEventActionChangeLinkedChatArray).PopFirst() (v ChannelAdminLogEventActionChangeLinkedChat, ok bool)
ChannelAdminLogEventActionChangeLinkedChatArray is adapter for slice of ChannelAdminLogEventActionChangeLinkedChat. 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 ChannelAdminLogEventActionChangeLinkedChat. Sort sorts slice of ChannelAdminLogEventActionChangeLinkedChat. SortStable sorts slice of ChannelAdminLogEventActionChangeLinkedChat. func ChannelAdminLogEventActionChangeLinkedChatArray.Retain(keep func(x ChannelAdminLogEventActionChangeLinkedChat) bool) ChannelAdminLogEventActionChangeLinkedChatArray func ChannelAdminLogEventActionChangeLinkedChatArray.Sort(less func(a, b ChannelAdminLogEventActionChangeLinkedChat) bool) ChannelAdminLogEventActionChangeLinkedChatArray func ChannelAdminLogEventActionChangeLinkedChatArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeLinkedChat) bool) ChannelAdminLogEventActionChangeLinkedChatArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeLinkedChat() (to ChannelAdminLogEventActionChangeLinkedChatArray)
ChannelAdminLogEventActionChangeLocation represents TL type `channelAdminLogEventActionChangeLocation#e6b76ae`. The geogroup location was changed See https://core.telegram.org/constructor/channelAdminLogEventActionChangeLocation for reference. New location Previous location Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeLocation from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeLocation) Zero() bool *ChannelAdminLogEventActionChangeLocation : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeLocation : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeLocation : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeLocation : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeLocation : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeLocation : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeLocation : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeLocation : fmt.Stringer func ChannelAdminLogEventActionChangeLocationArray.First() (v ChannelAdminLogEventActionChangeLocation, ok bool) func ChannelAdminLogEventActionChangeLocationArray.Last() (v ChannelAdminLogEventActionChangeLocation, ok bool) func (*ChannelAdminLogEventActionChangeLocationArray).Pop() (v ChannelAdminLogEventActionChangeLocation, ok bool) func (*ChannelAdminLogEventActionChangeLocationArray).PopFirst() (v ChannelAdminLogEventActionChangeLocation, ok bool)
ChannelAdminLogEventActionChangeLocationArray is adapter for slice of ChannelAdminLogEventActionChangeLocation. 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 ChannelAdminLogEventActionChangeLocation. Sort sorts slice of ChannelAdminLogEventActionChangeLocation. SortStable sorts slice of ChannelAdminLogEventActionChangeLocation. func ChannelAdminLogEventActionChangeLocationArray.Retain(keep func(x ChannelAdminLogEventActionChangeLocation) bool) ChannelAdminLogEventActionChangeLocationArray func ChannelAdminLogEventActionChangeLocationArray.Sort(less func(a, b ChannelAdminLogEventActionChangeLocation) bool) ChannelAdminLogEventActionChangeLocationArray func ChannelAdminLogEventActionChangeLocationArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeLocation) bool) ChannelAdminLogEventActionChangeLocationArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeLocation() (to ChannelAdminLogEventActionChangeLocationArray)
ChannelAdminLogEventActionChangePeerColor represents TL type `channelAdminLogEventActionChangePeerColor#5796e780`. See https://core.telegram.org/constructor/channelAdminLogEventActionChangePeerColor for reference. NewValue field of ChannelAdminLogEventActionChangePeerColor. PrevValue field of ChannelAdminLogEventActionChangePeerColor. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangePeerColor from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangePeerColor) Zero() bool *ChannelAdminLogEventActionChangePeerColor : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangePeerColor : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangePeerColor : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangePeerColor : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangePeerColor : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangePeerColor : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangePeerColor : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangePeerColor : fmt.Stringer func ChannelAdminLogEventActionChangePeerColorArray.First() (v ChannelAdminLogEventActionChangePeerColor, ok bool) func ChannelAdminLogEventActionChangePeerColorArray.Last() (v ChannelAdminLogEventActionChangePeerColor, ok bool) func (*ChannelAdminLogEventActionChangePeerColorArray).Pop() (v ChannelAdminLogEventActionChangePeerColor, ok bool) func (*ChannelAdminLogEventActionChangePeerColorArray).PopFirst() (v ChannelAdminLogEventActionChangePeerColor, ok bool)
ChannelAdminLogEventActionChangePeerColorArray is adapter for slice of ChannelAdminLogEventActionChangePeerColor. 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 ChannelAdminLogEventActionChangePeerColor. Sort sorts slice of ChannelAdminLogEventActionChangePeerColor. SortStable sorts slice of ChannelAdminLogEventActionChangePeerColor. func ChannelAdminLogEventActionChangePeerColorArray.Retain(keep func(x ChannelAdminLogEventActionChangePeerColor) bool) ChannelAdminLogEventActionChangePeerColorArray func ChannelAdminLogEventActionChangePeerColorArray.Sort(less func(a, b ChannelAdminLogEventActionChangePeerColor) bool) ChannelAdminLogEventActionChangePeerColorArray func ChannelAdminLogEventActionChangePeerColorArray.SortStable(less func(a, b ChannelAdminLogEventActionChangePeerColor) bool) ChannelAdminLogEventActionChangePeerColorArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangePeerColor() (to ChannelAdminLogEventActionChangePeerColorArray)
ChannelAdminLogEventActionChangePhoto represents TL type `channelAdminLogEventActionChangePhoto#434bd2af`. The channel/supergroup's picture was changed See https://core.telegram.org/constructor/channelAdminLogEventActionChangePhoto for reference. New picture Previous picture Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangePhoto from given interface. GetNewPhoto returns value of NewPhoto field. GetPrevPhoto returns value of PrevPhoto 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. (*ChannelAdminLogEventActionChangePhoto) Zero() bool *ChannelAdminLogEventActionChangePhoto : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangePhoto : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangePhoto : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangePhoto : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangePhoto : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangePhoto : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangePhoto : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangePhoto : fmt.Stringer func ChannelAdminLogEventActionChangePhotoArray.First() (v ChannelAdminLogEventActionChangePhoto, ok bool) func ChannelAdminLogEventActionChangePhotoArray.Last() (v ChannelAdminLogEventActionChangePhoto, ok bool) func (*ChannelAdminLogEventActionChangePhotoArray).Pop() (v ChannelAdminLogEventActionChangePhoto, ok bool) func (*ChannelAdminLogEventActionChangePhotoArray).PopFirst() (v ChannelAdminLogEventActionChangePhoto, ok bool)
ChannelAdminLogEventActionChangePhotoArray is adapter for slice of ChannelAdminLogEventActionChangePhoto. 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 ChannelAdminLogEventActionChangePhoto. Sort sorts slice of ChannelAdminLogEventActionChangePhoto. SortStable sorts slice of ChannelAdminLogEventActionChangePhoto. func ChannelAdminLogEventActionChangePhotoArray.Retain(keep func(x ChannelAdminLogEventActionChangePhoto) bool) ChannelAdminLogEventActionChangePhotoArray func ChannelAdminLogEventActionChangePhotoArray.Sort(less func(a, b ChannelAdminLogEventActionChangePhoto) bool) ChannelAdminLogEventActionChangePhotoArray func ChannelAdminLogEventActionChangePhotoArray.SortStable(less func(a, b ChannelAdminLogEventActionChangePhoto) bool) ChannelAdminLogEventActionChangePhotoArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangePhoto() (to ChannelAdminLogEventActionChangePhotoArray)
ChannelAdminLogEventActionChangeProfilePeerColor represents TL type `channelAdminLogEventActionChangeProfilePeerColor#5e477b25`. See https://core.telegram.org/constructor/channelAdminLogEventActionChangeProfilePeerColor for reference. NewValue field of ChannelAdminLogEventActionChangePeerColor. PrevValue field of ChannelAdminLogEventActionChangePeerColor. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeProfilePeerColor from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeProfilePeerColor) Zero() bool *ChannelAdminLogEventActionChangeProfilePeerColor : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeProfilePeerColor : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeProfilePeerColor : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeProfilePeerColor : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeProfilePeerColor : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeProfilePeerColor : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeProfilePeerColor : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeProfilePeerColor : fmt.Stringer func ChannelAdminLogEventActionChangeProfilePeerColorArray.First() (v ChannelAdminLogEventActionChangeProfilePeerColor, ok bool) func ChannelAdminLogEventActionChangeProfilePeerColorArray.Last() (v ChannelAdminLogEventActionChangeProfilePeerColor, ok bool) func (*ChannelAdminLogEventActionChangeProfilePeerColorArray).Pop() (v ChannelAdminLogEventActionChangeProfilePeerColor, ok bool) func (*ChannelAdminLogEventActionChangeProfilePeerColorArray).PopFirst() (v ChannelAdminLogEventActionChangeProfilePeerColor, ok bool)
ChannelAdminLogEventActionChangeProfilePeerColorArray is adapter for slice of ChannelAdminLogEventActionChangeProfilePeerColor. 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 ChannelAdminLogEventActionChangeProfilePeerColor. Sort sorts slice of ChannelAdminLogEventActionChangeProfilePeerColor. SortStable sorts slice of ChannelAdminLogEventActionChangeProfilePeerColor. func ChannelAdminLogEventActionChangeProfilePeerColorArray.Retain(keep func(x ChannelAdminLogEventActionChangeProfilePeerColor) bool) ChannelAdminLogEventActionChangeProfilePeerColorArray func ChannelAdminLogEventActionChangeProfilePeerColorArray.Sort(less func(a, b ChannelAdminLogEventActionChangeProfilePeerColor) bool) ChannelAdminLogEventActionChangeProfilePeerColorArray func ChannelAdminLogEventActionChangeProfilePeerColorArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeProfilePeerColor) bool) ChannelAdminLogEventActionChangeProfilePeerColorArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeProfilePeerColor() (to ChannelAdminLogEventActionChangeProfilePeerColorArray)
ChannelAdminLogEventActionChangeStickerSet represents TL type `channelAdminLogEventActionChangeStickerSet#b1c3caa7`. The supergroup's stickerset was changed See https://core.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet for reference. New stickerset Previous stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeStickerSet from given interface. GetNewStickerset returns value of NewStickerset field. GetPrevStickerset returns value of PrevStickerset 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. (*ChannelAdminLogEventActionChangeStickerSet) Zero() bool *ChannelAdminLogEventActionChangeStickerSet : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeStickerSet : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeStickerSet : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeStickerSet : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeStickerSet : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeStickerSet : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeStickerSet : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeStickerSet : fmt.Stringer func ChannelAdminLogEventActionChangeStickerSetArray.First() (v ChannelAdminLogEventActionChangeStickerSet, ok bool) func ChannelAdminLogEventActionChangeStickerSetArray.Last() (v ChannelAdminLogEventActionChangeStickerSet, ok bool) func (*ChannelAdminLogEventActionChangeStickerSetArray).Pop() (v ChannelAdminLogEventActionChangeStickerSet, ok bool) func (*ChannelAdminLogEventActionChangeStickerSetArray).PopFirst() (v ChannelAdminLogEventActionChangeStickerSet, ok bool)
ChannelAdminLogEventActionChangeStickerSetArray is adapter for slice of ChannelAdminLogEventActionChangeStickerSet. 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 ChannelAdminLogEventActionChangeStickerSet. Sort sorts slice of ChannelAdminLogEventActionChangeStickerSet. SortStable sorts slice of ChannelAdminLogEventActionChangeStickerSet. func ChannelAdminLogEventActionChangeStickerSetArray.Retain(keep func(x ChannelAdminLogEventActionChangeStickerSet) bool) ChannelAdminLogEventActionChangeStickerSetArray func ChannelAdminLogEventActionChangeStickerSetArray.Sort(less func(a, b ChannelAdminLogEventActionChangeStickerSet) bool) ChannelAdminLogEventActionChangeStickerSetArray func ChannelAdminLogEventActionChangeStickerSetArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeStickerSet) bool) ChannelAdminLogEventActionChangeStickerSetArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeStickerSet() (to ChannelAdminLogEventActionChangeStickerSetArray)
ChannelAdminLogEventActionChangeTitle represents TL type `channelAdminLogEventActionChangeTitle#e6dfb825`. Channel/supergroup title was changed See https://core.telegram.org/constructor/channelAdminLogEventActionChangeTitle for reference. New title Previous title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeTitle from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeTitle) Zero() bool *ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeTitle : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeTitle : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeTitle : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeTitle : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeTitle : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeTitle : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeTitle : fmt.Stringer func ChannelAdminLogEventActionChangeTitleArray.First() (v ChannelAdminLogEventActionChangeTitle, ok bool) func ChannelAdminLogEventActionChangeTitleArray.Last() (v ChannelAdminLogEventActionChangeTitle, ok bool) func (*ChannelAdminLogEventActionChangeTitleArray).Pop() (v ChannelAdminLogEventActionChangeTitle, ok bool) func (*ChannelAdminLogEventActionChangeTitleArray).PopFirst() (v ChannelAdminLogEventActionChangeTitle, ok bool)
ChannelAdminLogEventActionChangeTitleArray is adapter for slice of ChannelAdminLogEventActionChangeTitle. 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 ChannelAdminLogEventActionChangeTitle. Sort sorts slice of ChannelAdminLogEventActionChangeTitle. SortStable sorts slice of ChannelAdminLogEventActionChangeTitle. func ChannelAdminLogEventActionChangeTitleArray.Retain(keep func(x ChannelAdminLogEventActionChangeTitle) bool) ChannelAdminLogEventActionChangeTitleArray func ChannelAdminLogEventActionChangeTitleArray.Sort(less func(a, b ChannelAdminLogEventActionChangeTitle) bool) ChannelAdminLogEventActionChangeTitleArray func ChannelAdminLogEventActionChangeTitleArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeTitle) bool) ChannelAdminLogEventActionChangeTitleArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeTitle() (to ChannelAdminLogEventActionChangeTitleArray)
ChannelAdminLogEventActionChangeUsername represents TL type `channelAdminLogEventActionChangeUsername#6a4afc38`. Channel/supergroup username was changed See https://core.telegram.org/constructor/channelAdminLogEventActionChangeUsername for reference. New title Previous title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeUsername from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeUsername) Zero() bool *ChannelAdminLogEventActionChangeUsername : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeUsername : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeUsername : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeUsername : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeUsername : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeUsername : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeUsername : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeUsername : fmt.Stringer func ChannelAdminLogEventActionChangeUsernameArray.First() (v ChannelAdminLogEventActionChangeUsername, ok bool) func ChannelAdminLogEventActionChangeUsernameArray.Last() (v ChannelAdminLogEventActionChangeUsername, ok bool) func (*ChannelAdminLogEventActionChangeUsernameArray).Pop() (v ChannelAdminLogEventActionChangeUsername, ok bool) func (*ChannelAdminLogEventActionChangeUsernameArray).PopFirst() (v ChannelAdminLogEventActionChangeUsername, ok bool)
ChannelAdminLogEventActionChangeUsernameArray is adapter for slice of ChannelAdminLogEventActionChangeUsername. 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 ChannelAdminLogEventActionChangeUsername. Sort sorts slice of ChannelAdminLogEventActionChangeUsername. SortStable sorts slice of ChannelAdminLogEventActionChangeUsername. func ChannelAdminLogEventActionChangeUsernameArray.Retain(keep func(x ChannelAdminLogEventActionChangeUsername) bool) ChannelAdminLogEventActionChangeUsernameArray func ChannelAdminLogEventActionChangeUsernameArray.Sort(less func(a, b ChannelAdminLogEventActionChangeUsername) bool) ChannelAdminLogEventActionChangeUsernameArray func ChannelAdminLogEventActionChangeUsernameArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeUsername) bool) ChannelAdminLogEventActionChangeUsernameArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeUsername() (to ChannelAdminLogEventActionChangeUsernameArray)
ChannelAdminLogEventActionChangeUsernames represents TL type `channelAdminLogEventActionChangeUsernames#f04fb3a9`. The list of usernames associated with the channel was changed See https://core.telegram.org/constructor/channelAdminLogEventActionChangeUsernames for reference. New set of usernames Previous set of usernames Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeUsernames from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeUsernames) Zero() bool *ChannelAdminLogEventActionChangeUsernames : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeUsernames : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeUsernames : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeUsernames : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeUsernames : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeUsernames : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeUsernames : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeUsernames : fmt.Stringer func ChannelAdminLogEventActionChangeUsernamesArray.First() (v ChannelAdminLogEventActionChangeUsernames, ok bool) func ChannelAdminLogEventActionChangeUsernamesArray.Last() (v ChannelAdminLogEventActionChangeUsernames, ok bool) func (*ChannelAdminLogEventActionChangeUsernamesArray).Pop() (v ChannelAdminLogEventActionChangeUsernames, ok bool) func (*ChannelAdminLogEventActionChangeUsernamesArray).PopFirst() (v ChannelAdminLogEventActionChangeUsernames, ok bool)
ChannelAdminLogEventActionChangeUsernamesArray is adapter for slice of ChannelAdminLogEventActionChangeUsernames. 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 ChannelAdminLogEventActionChangeUsernames. Sort sorts slice of ChannelAdminLogEventActionChangeUsernames. SortStable sorts slice of ChannelAdminLogEventActionChangeUsernames. func ChannelAdminLogEventActionChangeUsernamesArray.Retain(keep func(x ChannelAdminLogEventActionChangeUsernames) bool) ChannelAdminLogEventActionChangeUsernamesArray func ChannelAdminLogEventActionChangeUsernamesArray.Sort(less func(a, b ChannelAdminLogEventActionChangeUsernames) bool) ChannelAdminLogEventActionChangeUsernamesArray func ChannelAdminLogEventActionChangeUsernamesArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeUsernames) bool) ChannelAdminLogEventActionChangeUsernamesArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeUsernames() (to ChannelAdminLogEventActionChangeUsernamesArray)
ChannelAdminLogEventActionChangeWallpaper represents TL type `channelAdminLogEventActionChangeWallpaper#31bb5d52`. See https://core.telegram.org/constructor/channelAdminLogEventActionChangeWallpaper for reference. NewValue field of ChannelAdminLogEventActionChangeWallpaper. PrevValue field of ChannelAdminLogEventActionChangeWallpaper. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionChangeWallpaper from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionChangeWallpaper) Zero() bool *ChannelAdminLogEventActionChangeWallpaper : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionChangeWallpaper : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionChangeWallpaper : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionChangeWallpaper : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionChangeWallpaper : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionChangeWallpaper : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionChangeWallpaper : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionChangeWallpaper : fmt.Stringer func ChannelAdminLogEventActionChangeWallpaperArray.First() (v ChannelAdminLogEventActionChangeWallpaper, ok bool) func ChannelAdminLogEventActionChangeWallpaperArray.Last() (v ChannelAdminLogEventActionChangeWallpaper, ok bool) func (*ChannelAdminLogEventActionChangeWallpaperArray).Pop() (v ChannelAdminLogEventActionChangeWallpaper, ok bool) func (*ChannelAdminLogEventActionChangeWallpaperArray).PopFirst() (v ChannelAdminLogEventActionChangeWallpaper, ok bool)
ChannelAdminLogEventActionChangeWallpaperArray is adapter for slice of ChannelAdminLogEventActionChangeWallpaper. 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 ChannelAdminLogEventActionChangeWallpaper. Sort sorts slice of ChannelAdminLogEventActionChangeWallpaper. SortStable sorts slice of ChannelAdminLogEventActionChangeWallpaper. func ChannelAdminLogEventActionChangeWallpaperArray.Retain(keep func(x ChannelAdminLogEventActionChangeWallpaper) bool) ChannelAdminLogEventActionChangeWallpaperArray func ChannelAdminLogEventActionChangeWallpaperArray.Sort(less func(a, b ChannelAdminLogEventActionChangeWallpaper) bool) ChannelAdminLogEventActionChangeWallpaperArray func ChannelAdminLogEventActionChangeWallpaperArray.SortStable(less func(a, b ChannelAdminLogEventActionChangeWallpaper) bool) ChannelAdminLogEventActionChangeWallpaperArray func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionChangeWallpaper() (to ChannelAdminLogEventActionChangeWallpaperArray)
ChannelAdminLogEventActionClass represents ChannelAdminLogEventAction generic type. See https://core.telegram.org/type/ChannelAdminLogEventAction for reference. Example: g, err := tg.DecodeChannelAdminLogEventAction(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChannelAdminLogEventActionChangeTitle: // channelAdminLogEventActionChangeTitle#e6dfb825 case *tg.ChannelAdminLogEventActionChangeAbout: // channelAdminLogEventActionChangeAbout#55188a2e case *tg.ChannelAdminLogEventActionChangeUsername: // channelAdminLogEventActionChangeUsername#6a4afc38 case *tg.ChannelAdminLogEventActionChangePhoto: // channelAdminLogEventActionChangePhoto#434bd2af case *tg.ChannelAdminLogEventActionToggleInvites: // channelAdminLogEventActionToggleInvites#1b7907ae case *tg.ChannelAdminLogEventActionToggleSignatures: // channelAdminLogEventActionToggleSignatures#26ae0971 case *tg.ChannelAdminLogEventActionUpdatePinned: // channelAdminLogEventActionUpdatePinned#e9e82c18 case *tg.ChannelAdminLogEventActionEditMessage: // channelAdminLogEventActionEditMessage#709b2405 case *tg.ChannelAdminLogEventActionDeleteMessage: // channelAdminLogEventActionDeleteMessage#42e047bb case *tg.ChannelAdminLogEventActionParticipantJoin: // channelAdminLogEventActionParticipantJoin#183040d3 case *tg.ChannelAdminLogEventActionParticipantLeave: // channelAdminLogEventActionParticipantLeave#f89777f2 case *tg.ChannelAdminLogEventActionParticipantInvite: // channelAdminLogEventActionParticipantInvite#e31c34d8 case *tg.ChannelAdminLogEventActionParticipantToggleBan: // channelAdminLogEventActionParticipantToggleBan#e6d83d7e case *tg.ChannelAdminLogEventActionParticipantToggleAdmin: // channelAdminLogEventActionParticipantToggleAdmin#d5676710 case *tg.ChannelAdminLogEventActionChangeStickerSet: // channelAdminLogEventActionChangeStickerSet#b1c3caa7 case *tg.ChannelAdminLogEventActionTogglePreHistoryHidden: // channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 case *tg.ChannelAdminLogEventActionDefaultBannedRights: // channelAdminLogEventActionDefaultBannedRights#2df5fc0a case *tg.ChannelAdminLogEventActionStopPoll: // channelAdminLogEventActionStopPoll#8f079643 case *tg.ChannelAdminLogEventActionChangeLinkedChat: // channelAdminLogEventActionChangeLinkedChat#50c7ac8 case *tg.ChannelAdminLogEventActionChangeLocation: // channelAdminLogEventActionChangeLocation#e6b76ae case *tg.ChannelAdminLogEventActionToggleSlowMode: // channelAdminLogEventActionToggleSlowMode#53909779 case *tg.ChannelAdminLogEventActionStartGroupCall: // channelAdminLogEventActionStartGroupCall#23209745 case *tg.ChannelAdminLogEventActionDiscardGroupCall: // channelAdminLogEventActionDiscardGroupCall#db9f9140 case *tg.ChannelAdminLogEventActionParticipantMute: // channelAdminLogEventActionParticipantMute#f92424d2 case *tg.ChannelAdminLogEventActionParticipantUnmute: // channelAdminLogEventActionParticipantUnmute#e64429c0 case *tg.ChannelAdminLogEventActionToggleGroupCallSetting: // channelAdminLogEventActionToggleGroupCallSetting#56d6a247 case *tg.ChannelAdminLogEventActionParticipantJoinByInvite: // channelAdminLogEventActionParticipantJoinByInvite#fe9fc158 case *tg.ChannelAdminLogEventActionExportedInviteDelete: // channelAdminLogEventActionExportedInviteDelete#5a50fca4 case *tg.ChannelAdminLogEventActionExportedInviteRevoke: // channelAdminLogEventActionExportedInviteRevoke#410a134e case *tg.ChannelAdminLogEventActionExportedInviteEdit: // channelAdminLogEventActionExportedInviteEdit#e90ebb59 case *tg.ChannelAdminLogEventActionParticipantVolume: // channelAdminLogEventActionParticipantVolume#3e7f6847 case *tg.ChannelAdminLogEventActionChangeHistoryTTL: // channelAdminLogEventActionChangeHistoryTTL#6e941a38 case *tg.ChannelAdminLogEventActionParticipantJoinByRequest: // channelAdminLogEventActionParticipantJoinByRequest#afb6144a case *tg.ChannelAdminLogEventActionToggleNoForwards: // channelAdminLogEventActionToggleNoForwards#cb2ac766 case *tg.ChannelAdminLogEventActionSendMessage: // channelAdminLogEventActionSendMessage#278f2868 case *tg.ChannelAdminLogEventActionChangeAvailableReactions: // channelAdminLogEventActionChangeAvailableReactions#be4e0ef8 case *tg.ChannelAdminLogEventActionChangeUsernames: // channelAdminLogEventActionChangeUsernames#f04fb3a9 case *tg.ChannelAdminLogEventActionToggleForum: // channelAdminLogEventActionToggleForum#2cc6383 case *tg.ChannelAdminLogEventActionCreateTopic: // channelAdminLogEventActionCreateTopic#58707d28 case *tg.ChannelAdminLogEventActionEditTopic: // channelAdminLogEventActionEditTopic#f06fe208 case *tg.ChannelAdminLogEventActionDeleteTopic: // channelAdminLogEventActionDeleteTopic#ae168909 case *tg.ChannelAdminLogEventActionPinTopic: // channelAdminLogEventActionPinTopic#5d8d353b case *tg.ChannelAdminLogEventActionToggleAntiSpam: // channelAdminLogEventActionToggleAntiSpam#64f36dfc case *tg.ChannelAdminLogEventActionChangePeerColor: // channelAdminLogEventActionChangePeerColor#5796e780 case *tg.ChannelAdminLogEventActionChangeProfilePeerColor: // channelAdminLogEventActionChangeProfilePeerColor#5e477b25 case *tg.ChannelAdminLogEventActionChangeWallpaper: // channelAdminLogEventActionChangeWallpaper#31bb5d52 case *tg.ChannelAdminLogEventActionChangeEmojiStatus: // channelAdminLogEventActionChangeEmojiStatus#3ea9feb1 default: panic(v) } ( ChannelAdminLogEventActionClass) Decode(b *bin.Buffer) error ( ChannelAdminLogEventActionClass) DecodeBare(b *bin.Buffer) error ( ChannelAdminLogEventActionClass) Encode(b *bin.Buffer) error ( ChannelAdminLogEventActionClass) 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. *ChannelAdminLogEventActionChangeAbout *ChannelAdminLogEventActionChangeAvailableReactions *ChannelAdminLogEventActionChangeEmojiStatus *ChannelAdminLogEventActionChangeHistoryTTL *ChannelAdminLogEventActionChangeLinkedChat *ChannelAdminLogEventActionChangeLocation *ChannelAdminLogEventActionChangePeerColor *ChannelAdminLogEventActionChangePhoto *ChannelAdminLogEventActionChangeProfilePeerColor *ChannelAdminLogEventActionChangeStickerSet *ChannelAdminLogEventActionChangeTitle *ChannelAdminLogEventActionChangeUsername *ChannelAdminLogEventActionChangeUsernames *ChannelAdminLogEventActionChangeWallpaper *ChannelAdminLogEventActionCreateTopic *ChannelAdminLogEventActionDefaultBannedRights *ChannelAdminLogEventActionDeleteMessage *ChannelAdminLogEventActionDeleteTopic *ChannelAdminLogEventActionDiscardGroupCall *ChannelAdminLogEventActionEditMessage *ChannelAdminLogEventActionEditTopic *ChannelAdminLogEventActionExportedInviteDelete *ChannelAdminLogEventActionExportedInviteEdit *ChannelAdminLogEventActionExportedInviteRevoke *ChannelAdminLogEventActionParticipantInvite *ChannelAdminLogEventActionParticipantJoin *ChannelAdminLogEventActionParticipantJoinByInvite *ChannelAdminLogEventActionParticipantJoinByRequest *ChannelAdminLogEventActionParticipantLeave *ChannelAdminLogEventActionParticipantMute *ChannelAdminLogEventActionParticipantToggleAdmin *ChannelAdminLogEventActionParticipantToggleBan *ChannelAdminLogEventActionParticipantUnmute *ChannelAdminLogEventActionParticipantVolume *ChannelAdminLogEventActionPinTopic *ChannelAdminLogEventActionSendMessage *ChannelAdminLogEventActionStartGroupCall *ChannelAdminLogEventActionStopPoll *ChannelAdminLogEventActionToggleAntiSpam *ChannelAdminLogEventActionToggleForum *ChannelAdminLogEventActionToggleGroupCallSetting *ChannelAdminLogEventActionToggleInvites *ChannelAdminLogEventActionToggleNoForwards *ChannelAdminLogEventActionTogglePreHistoryHidden *ChannelAdminLogEventActionToggleSignatures *ChannelAdminLogEventActionToggleSlowMode *ChannelAdminLogEventActionUpdatePinned ChannelAdminLogEventActionClass : github.com/gotd/td/bin.BareDecoder ChannelAdminLogEventActionClass : github.com/gotd/td/bin.BareEncoder ChannelAdminLogEventActionClass : github.com/gotd/td/bin.Decoder ChannelAdminLogEventActionClass : github.com/gotd/td/bin.Encoder ChannelAdminLogEventActionClass : github.com/gotd/td/bin.Object ChannelAdminLogEventActionClass : fmt.Stringer func DecodeChannelAdminLogEventAction(buf *bin.Buffer) (ChannelAdminLogEventActionClass, error) func (*ChannelAdminLogEvent).GetAction() (value ChannelAdminLogEventActionClass) func ChannelAdminLogEventActionClassArray.First() (v ChannelAdminLogEventActionClass, ok bool) func ChannelAdminLogEventActionClassArray.Last() (v ChannelAdminLogEventActionClass, ok bool) func (*ChannelAdminLogEventActionClassArray).Pop() (v ChannelAdminLogEventActionClass, ok bool) func (*ChannelAdminLogEventActionClassArray).PopFirst() (v ChannelAdminLogEventActionClass, ok bool)
ChannelAdminLogEventActionClassArray is adapter for slice of ChannelAdminLogEventActionClass. AsChannelAdminLogEventActionChangeAbout returns copy with only ChannelAdminLogEventActionChangeAbout constructors. AsChannelAdminLogEventActionChangeAvailableReactions returns copy with only ChannelAdminLogEventActionChangeAvailableReactions constructors. AsChannelAdminLogEventActionChangeEmojiStatus returns copy with only ChannelAdminLogEventActionChangeEmojiStatus constructors. AsChannelAdminLogEventActionChangeHistoryTTL returns copy with only ChannelAdminLogEventActionChangeHistoryTTL constructors. AsChannelAdminLogEventActionChangeLinkedChat returns copy with only ChannelAdminLogEventActionChangeLinkedChat constructors. AsChannelAdminLogEventActionChangeLocation returns copy with only ChannelAdminLogEventActionChangeLocation constructors. AsChannelAdminLogEventActionChangePeerColor returns copy with only ChannelAdminLogEventActionChangePeerColor constructors. AsChannelAdminLogEventActionChangePhoto returns copy with only ChannelAdminLogEventActionChangePhoto constructors. AsChannelAdminLogEventActionChangeProfilePeerColor returns copy with only ChannelAdminLogEventActionChangeProfilePeerColor constructors. AsChannelAdminLogEventActionChangeStickerSet returns copy with only ChannelAdminLogEventActionChangeStickerSet constructors. AsChannelAdminLogEventActionChangeTitle returns copy with only ChannelAdminLogEventActionChangeTitle constructors. AsChannelAdminLogEventActionChangeUsername returns copy with only ChannelAdminLogEventActionChangeUsername constructors. AsChannelAdminLogEventActionChangeUsernames returns copy with only ChannelAdminLogEventActionChangeUsernames constructors. AsChannelAdminLogEventActionChangeWallpaper returns copy with only ChannelAdminLogEventActionChangeWallpaper constructors. AsChannelAdminLogEventActionCreateTopic returns copy with only ChannelAdminLogEventActionCreateTopic constructors. AsChannelAdminLogEventActionDefaultBannedRights returns copy with only ChannelAdminLogEventActionDefaultBannedRights constructors. AsChannelAdminLogEventActionDeleteMessage returns copy with only ChannelAdminLogEventActionDeleteMessage constructors. AsChannelAdminLogEventActionDeleteTopic returns copy with only ChannelAdminLogEventActionDeleteTopic constructors. AsChannelAdminLogEventActionDiscardGroupCall returns copy with only ChannelAdminLogEventActionDiscardGroupCall constructors. AsChannelAdminLogEventActionEditMessage returns copy with only ChannelAdminLogEventActionEditMessage constructors. AsChannelAdminLogEventActionEditTopic returns copy with only ChannelAdminLogEventActionEditTopic constructors. AsChannelAdminLogEventActionExportedInviteDelete returns copy with only ChannelAdminLogEventActionExportedInviteDelete constructors. AsChannelAdminLogEventActionExportedInviteEdit returns copy with only ChannelAdminLogEventActionExportedInviteEdit constructors. AsChannelAdminLogEventActionExportedInviteRevoke returns copy with only ChannelAdminLogEventActionExportedInviteRevoke constructors. AsChannelAdminLogEventActionParticipantInvite returns copy with only ChannelAdminLogEventActionParticipantInvite constructors. AsChannelAdminLogEventActionParticipantJoinByInvite returns copy with only ChannelAdminLogEventActionParticipantJoinByInvite constructors. AsChannelAdminLogEventActionParticipantJoinByRequest returns copy with only ChannelAdminLogEventActionParticipantJoinByRequest constructors. AsChannelAdminLogEventActionParticipantMute returns copy with only ChannelAdminLogEventActionParticipantMute constructors. AsChannelAdminLogEventActionParticipantToggleAdmin returns copy with only ChannelAdminLogEventActionParticipantToggleAdmin constructors. AsChannelAdminLogEventActionParticipantToggleBan returns copy with only ChannelAdminLogEventActionParticipantToggleBan constructors. AsChannelAdminLogEventActionParticipantUnmute returns copy with only ChannelAdminLogEventActionParticipantUnmute constructors. AsChannelAdminLogEventActionParticipantVolume returns copy with only ChannelAdminLogEventActionParticipantVolume constructors. AsChannelAdminLogEventActionPinTopic returns copy with only ChannelAdminLogEventActionPinTopic constructors. AsChannelAdminLogEventActionSendMessage returns copy with only ChannelAdminLogEventActionSendMessage constructors. AsChannelAdminLogEventActionStartGroupCall returns copy with only ChannelAdminLogEventActionStartGroupCall constructors. AsChannelAdminLogEventActionStopPoll returns copy with only ChannelAdminLogEventActionStopPoll constructors. AsChannelAdminLogEventActionToggleAntiSpam returns copy with only ChannelAdminLogEventActionToggleAntiSpam constructors. AsChannelAdminLogEventActionToggleForum returns copy with only ChannelAdminLogEventActionToggleForum constructors. AsChannelAdminLogEventActionToggleGroupCallSetting returns copy with only ChannelAdminLogEventActionToggleGroupCallSetting constructors. AsChannelAdminLogEventActionToggleInvites returns copy with only ChannelAdminLogEventActionToggleInvites constructors. AsChannelAdminLogEventActionToggleNoForwards returns copy with only ChannelAdminLogEventActionToggleNoForwards constructors. AsChannelAdminLogEventActionTogglePreHistoryHidden returns copy with only ChannelAdminLogEventActionTogglePreHistoryHidden constructors. AsChannelAdminLogEventActionToggleSignatures returns copy with only ChannelAdminLogEventActionToggleSignatures constructors. AsChannelAdminLogEventActionToggleSlowMode returns copy with only ChannelAdminLogEventActionToggleSlowMode constructors. AsChannelAdminLogEventActionUpdatePinned returns copy with only ChannelAdminLogEventActionUpdatePinned 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 ChannelAdminLogEventActionClass. Sort sorts slice of ChannelAdminLogEventActionClass. SortStable sorts slice of ChannelAdminLogEventActionClass. func ChannelAdminLogEventActionClassArray.Retain(keep func(x ChannelAdminLogEventActionClass) bool) ChannelAdminLogEventActionClassArray func ChannelAdminLogEventActionClassArray.Sort(less func(a, b ChannelAdminLogEventActionClass) bool) ChannelAdminLogEventActionClassArray func ChannelAdminLogEventActionClassArray.SortStable(less func(a, b ChannelAdminLogEventActionClass) bool) ChannelAdminLogEventActionClassArray
ChannelAdminLogEventActionCreateTopic represents TL type `channelAdminLogEventActionCreateTopic#58707d28`. A forum topic¹ was created Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/channelAdminLogEventActionCreateTopic for reference. The forum topic¹ that was created Links: 1) https://core.telegram.org/api/forum#forum-topics Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionCreateTopic from given interface. GetTopic returns value of Topic 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. (*ChannelAdminLogEventActionCreateTopic) Zero() bool *ChannelAdminLogEventActionCreateTopic : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionCreateTopic : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionCreateTopic : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionCreateTopic : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionCreateTopic : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionCreateTopic : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionCreateTopic : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionCreateTopic : fmt.Stringer func ChannelAdminLogEventActionCreateTopicArray.First() (v ChannelAdminLogEventActionCreateTopic, ok bool) func ChannelAdminLogEventActionCreateTopicArray.Last() (v ChannelAdminLogEventActionCreateTopic, ok bool) func (*ChannelAdminLogEventActionCreateTopicArray).Pop() (v ChannelAdminLogEventActionCreateTopic, ok bool) func (*ChannelAdminLogEventActionCreateTopicArray).PopFirst() (v ChannelAdminLogEventActionCreateTopic, ok bool)
ChannelAdminLogEventActionCreateTopicArray is adapter for slice of ChannelAdminLogEventActionCreateTopic. 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 ChannelAdminLogEventActionCreateTopic. Sort sorts slice of ChannelAdminLogEventActionCreateTopic. SortStable sorts slice of ChannelAdminLogEventActionCreateTopic. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionCreateTopic() (to ChannelAdminLogEventActionCreateTopicArray) func ChannelAdminLogEventActionCreateTopicArray.Retain(keep func(x ChannelAdminLogEventActionCreateTopic) bool) ChannelAdminLogEventActionCreateTopicArray func ChannelAdminLogEventActionCreateTopicArray.Sort(less func(a, b ChannelAdminLogEventActionCreateTopic) bool) ChannelAdminLogEventActionCreateTopicArray func ChannelAdminLogEventActionCreateTopicArray.SortStable(less func(a, b ChannelAdminLogEventActionCreateTopic) bool) ChannelAdminLogEventActionCreateTopicArray
ChannelAdminLogEventActionDefaultBannedRights represents TL type `channelAdminLogEventActionDefaultBannedRights#2df5fc0a`. The default banned rights were modified See https://core.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights for reference. New global banned rights¹. Links: 1) https://core.telegram.org/api/rights Previous global banned rights¹ Links: 1) https://core.telegram.org/api/rights Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionDefaultBannedRights from given interface. GetNewBannedRights returns value of NewBannedRights field. GetPrevBannedRights returns value of PrevBannedRights 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. (*ChannelAdminLogEventActionDefaultBannedRights) Zero() bool *ChannelAdminLogEventActionDefaultBannedRights : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionDefaultBannedRights : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionDefaultBannedRights : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionDefaultBannedRights : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionDefaultBannedRights : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionDefaultBannedRights : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionDefaultBannedRights : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionDefaultBannedRights : fmt.Stringer func ChannelAdminLogEventActionDefaultBannedRightsArray.First() (v ChannelAdminLogEventActionDefaultBannedRights, ok bool) func ChannelAdminLogEventActionDefaultBannedRightsArray.Last() (v ChannelAdminLogEventActionDefaultBannedRights, ok bool) func (*ChannelAdminLogEventActionDefaultBannedRightsArray).Pop() (v ChannelAdminLogEventActionDefaultBannedRights, ok bool) func (*ChannelAdminLogEventActionDefaultBannedRightsArray).PopFirst() (v ChannelAdminLogEventActionDefaultBannedRights, ok bool)
ChannelAdminLogEventActionDefaultBannedRightsArray is adapter for slice of ChannelAdminLogEventActionDefaultBannedRights. 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 ChannelAdminLogEventActionDefaultBannedRights. Sort sorts slice of ChannelAdminLogEventActionDefaultBannedRights. SortStable sorts slice of ChannelAdminLogEventActionDefaultBannedRights. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionDefaultBannedRights() (to ChannelAdminLogEventActionDefaultBannedRightsArray) func ChannelAdminLogEventActionDefaultBannedRightsArray.Retain(keep func(x ChannelAdminLogEventActionDefaultBannedRights) bool) ChannelAdminLogEventActionDefaultBannedRightsArray func ChannelAdminLogEventActionDefaultBannedRightsArray.Sort(less func(a, b ChannelAdminLogEventActionDefaultBannedRights) bool) ChannelAdminLogEventActionDefaultBannedRightsArray func ChannelAdminLogEventActionDefaultBannedRightsArray.SortStable(less func(a, b ChannelAdminLogEventActionDefaultBannedRights) bool) ChannelAdminLogEventActionDefaultBannedRightsArray
ChannelAdminLogEventActionDeleteMessage represents TL type `channelAdminLogEventActionDeleteMessage#42e047bb`. A message was deleted See https://core.telegram.org/constructor/channelAdminLogEventActionDeleteMessage for reference. The message that was pinned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionDeleteMessage from given interface. GetMessage returns value of Message 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. (*ChannelAdminLogEventActionDeleteMessage) Zero() bool *ChannelAdminLogEventActionDeleteMessage : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionDeleteMessage : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionDeleteMessage : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionDeleteMessage : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionDeleteMessage : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionDeleteMessage : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionDeleteMessage : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionDeleteMessage : fmt.Stringer func ChannelAdminLogEventActionDeleteMessageArray.First() (v ChannelAdminLogEventActionDeleteMessage, ok bool) func ChannelAdminLogEventActionDeleteMessageArray.Last() (v ChannelAdminLogEventActionDeleteMessage, ok bool) func (*ChannelAdminLogEventActionDeleteMessageArray).Pop() (v ChannelAdminLogEventActionDeleteMessage, ok bool) func (*ChannelAdminLogEventActionDeleteMessageArray).PopFirst() (v ChannelAdminLogEventActionDeleteMessage, ok bool)
ChannelAdminLogEventActionDeleteMessageArray is adapter for slice of ChannelAdminLogEventActionDeleteMessage. 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 ChannelAdminLogEventActionDeleteMessage. Sort sorts slice of ChannelAdminLogEventActionDeleteMessage. SortStable sorts slice of ChannelAdminLogEventActionDeleteMessage. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionDeleteMessage() (to ChannelAdminLogEventActionDeleteMessageArray) func ChannelAdminLogEventActionDeleteMessageArray.Retain(keep func(x ChannelAdminLogEventActionDeleteMessage) bool) ChannelAdminLogEventActionDeleteMessageArray func ChannelAdminLogEventActionDeleteMessageArray.Sort(less func(a, b ChannelAdminLogEventActionDeleteMessage) bool) ChannelAdminLogEventActionDeleteMessageArray func ChannelAdminLogEventActionDeleteMessageArray.SortStable(less func(a, b ChannelAdminLogEventActionDeleteMessage) bool) ChannelAdminLogEventActionDeleteMessageArray
ChannelAdminLogEventActionDeleteTopic represents TL type `channelAdminLogEventActionDeleteTopic#ae168909`. A forum topic¹ was deleted Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/channelAdminLogEventActionDeleteTopic for reference. The forum topic¹ that was created Links: 1) https://core.telegram.org/api/forum#forum-topics Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionDeleteTopic from given interface. GetTopic returns value of Topic 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. (*ChannelAdminLogEventActionDeleteTopic) Zero() bool *ChannelAdminLogEventActionDeleteTopic : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionDeleteTopic : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionDeleteTopic : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionDeleteTopic : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionDeleteTopic : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionDeleteTopic : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionDeleteTopic : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionDeleteTopic : fmt.Stringer func ChannelAdminLogEventActionDeleteTopicArray.First() (v ChannelAdminLogEventActionDeleteTopic, ok bool) func ChannelAdminLogEventActionDeleteTopicArray.Last() (v ChannelAdminLogEventActionDeleteTopic, ok bool) func (*ChannelAdminLogEventActionDeleteTopicArray).Pop() (v ChannelAdminLogEventActionDeleteTopic, ok bool) func (*ChannelAdminLogEventActionDeleteTopicArray).PopFirst() (v ChannelAdminLogEventActionDeleteTopic, ok bool)
ChannelAdminLogEventActionDeleteTopicArray is adapter for slice of ChannelAdminLogEventActionDeleteTopic. 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 ChannelAdminLogEventActionDeleteTopic. Sort sorts slice of ChannelAdminLogEventActionDeleteTopic. SortStable sorts slice of ChannelAdminLogEventActionDeleteTopic. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionDeleteTopic() (to ChannelAdminLogEventActionDeleteTopicArray) func ChannelAdminLogEventActionDeleteTopicArray.Retain(keep func(x ChannelAdminLogEventActionDeleteTopic) bool) ChannelAdminLogEventActionDeleteTopicArray func ChannelAdminLogEventActionDeleteTopicArray.Sort(less func(a, b ChannelAdminLogEventActionDeleteTopic) bool) ChannelAdminLogEventActionDeleteTopicArray func ChannelAdminLogEventActionDeleteTopicArray.SortStable(less func(a, b ChannelAdminLogEventActionDeleteTopic) bool) ChannelAdminLogEventActionDeleteTopicArray
ChannelAdminLogEventActionDiscardGroupCall represents TL type `channelAdminLogEventActionDiscardGroupCall#db9f9140`. A group call was terminated See https://core.telegram.org/constructor/channelAdminLogEventActionDiscardGroupCall for reference. Group call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionDiscardGroupCall from given interface. GetCall returns value of Call 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. (*ChannelAdminLogEventActionDiscardGroupCall) Zero() bool *ChannelAdminLogEventActionDiscardGroupCall : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionDiscardGroupCall : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionDiscardGroupCall : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionDiscardGroupCall : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionDiscardGroupCall : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionDiscardGroupCall : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionDiscardGroupCall : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionDiscardGroupCall : fmt.Stringer func ChannelAdminLogEventActionDiscardGroupCallArray.First() (v ChannelAdminLogEventActionDiscardGroupCall, ok bool) func ChannelAdminLogEventActionDiscardGroupCallArray.Last() (v ChannelAdminLogEventActionDiscardGroupCall, ok bool) func (*ChannelAdminLogEventActionDiscardGroupCallArray).Pop() (v ChannelAdminLogEventActionDiscardGroupCall, ok bool) func (*ChannelAdminLogEventActionDiscardGroupCallArray).PopFirst() (v ChannelAdminLogEventActionDiscardGroupCall, ok bool)
ChannelAdminLogEventActionDiscardGroupCallArray is adapter for slice of ChannelAdminLogEventActionDiscardGroupCall. 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 ChannelAdminLogEventActionDiscardGroupCall. Sort sorts slice of ChannelAdminLogEventActionDiscardGroupCall. SortStable sorts slice of ChannelAdminLogEventActionDiscardGroupCall. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionDiscardGroupCall() (to ChannelAdminLogEventActionDiscardGroupCallArray) func ChannelAdminLogEventActionDiscardGroupCallArray.Retain(keep func(x ChannelAdminLogEventActionDiscardGroupCall) bool) ChannelAdminLogEventActionDiscardGroupCallArray func ChannelAdminLogEventActionDiscardGroupCallArray.Sort(less func(a, b ChannelAdminLogEventActionDiscardGroupCall) bool) ChannelAdminLogEventActionDiscardGroupCallArray func ChannelAdminLogEventActionDiscardGroupCallArray.SortStable(less func(a, b ChannelAdminLogEventActionDiscardGroupCall) bool) ChannelAdminLogEventActionDiscardGroupCallArray
ChannelAdminLogEventActionEditMessage represents TL type `channelAdminLogEventActionEditMessage#709b2405`. A message was edited See https://core.telegram.org/constructor/channelAdminLogEventActionEditMessage for reference. New message Old message Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionEditMessage from given interface. GetNewMessage returns value of NewMessage field. GetPrevMessage returns value of PrevMessage 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. (*ChannelAdminLogEventActionEditMessage) Zero() bool *ChannelAdminLogEventActionEditMessage : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionEditMessage : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionEditMessage : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionEditMessage : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionEditMessage : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionEditMessage : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionEditMessage : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionEditMessage : fmt.Stringer func ChannelAdminLogEventActionEditMessageArray.First() (v ChannelAdminLogEventActionEditMessage, ok bool) func ChannelAdminLogEventActionEditMessageArray.Last() (v ChannelAdminLogEventActionEditMessage, ok bool) func (*ChannelAdminLogEventActionEditMessageArray).Pop() (v ChannelAdminLogEventActionEditMessage, ok bool) func (*ChannelAdminLogEventActionEditMessageArray).PopFirst() (v ChannelAdminLogEventActionEditMessage, ok bool)
ChannelAdminLogEventActionEditMessageArray is adapter for slice of ChannelAdminLogEventActionEditMessage. 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 ChannelAdminLogEventActionEditMessage. Sort sorts slice of ChannelAdminLogEventActionEditMessage. SortStable sorts slice of ChannelAdminLogEventActionEditMessage. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionEditMessage() (to ChannelAdminLogEventActionEditMessageArray) func ChannelAdminLogEventActionEditMessageArray.Retain(keep func(x ChannelAdminLogEventActionEditMessage) bool) ChannelAdminLogEventActionEditMessageArray func ChannelAdminLogEventActionEditMessageArray.Sort(less func(a, b ChannelAdminLogEventActionEditMessage) bool) ChannelAdminLogEventActionEditMessageArray func ChannelAdminLogEventActionEditMessageArray.SortStable(less func(a, b ChannelAdminLogEventActionEditMessage) bool) ChannelAdminLogEventActionEditMessageArray
ChannelAdminLogEventActionEditTopic represents TL type `channelAdminLogEventActionEditTopic#f06fe208`. A forum topic¹ was edited Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/channelAdminLogEventActionEditTopic for reference. New topic information Previous topic information Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionEditTopic from given interface. GetNewTopic returns value of NewTopic field. GetPrevTopic returns value of PrevTopic 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. (*ChannelAdminLogEventActionEditTopic) Zero() bool *ChannelAdminLogEventActionEditTopic : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionEditTopic : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionEditTopic : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionEditTopic : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionEditTopic : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionEditTopic : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionEditTopic : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionEditTopic : fmt.Stringer func ChannelAdminLogEventActionEditTopicArray.First() (v ChannelAdminLogEventActionEditTopic, ok bool) func ChannelAdminLogEventActionEditTopicArray.Last() (v ChannelAdminLogEventActionEditTopic, ok bool) func (*ChannelAdminLogEventActionEditTopicArray).Pop() (v ChannelAdminLogEventActionEditTopic, ok bool) func (*ChannelAdminLogEventActionEditTopicArray).PopFirst() (v ChannelAdminLogEventActionEditTopic, ok bool)
ChannelAdminLogEventActionEditTopicArray is adapter for slice of ChannelAdminLogEventActionEditTopic. 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 ChannelAdminLogEventActionEditTopic. Sort sorts slice of ChannelAdminLogEventActionEditTopic. SortStable sorts slice of ChannelAdminLogEventActionEditTopic. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionEditTopic() (to ChannelAdminLogEventActionEditTopicArray) func ChannelAdminLogEventActionEditTopicArray.Retain(keep func(x ChannelAdminLogEventActionEditTopic) bool) ChannelAdminLogEventActionEditTopicArray func ChannelAdminLogEventActionEditTopicArray.Sort(less func(a, b ChannelAdminLogEventActionEditTopic) bool) ChannelAdminLogEventActionEditTopicArray func ChannelAdminLogEventActionEditTopicArray.SortStable(less func(a, b ChannelAdminLogEventActionEditTopic) bool) ChannelAdminLogEventActionEditTopicArray
ChannelAdminLogEventActionExportedInviteDelete represents TL type `channelAdminLogEventActionExportedInviteDelete#5a50fca4`. A chat invite was deleted See https://core.telegram.org/constructor/channelAdminLogEventActionExportedInviteDelete for reference. The deleted chat invite Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionExportedInviteDelete from given interface. GetInvite returns value of Invite 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. (*ChannelAdminLogEventActionExportedInviteDelete) Zero() bool *ChannelAdminLogEventActionExportedInviteDelete : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionExportedInviteDelete : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionExportedInviteDelete : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionExportedInviteDelete : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionExportedInviteDelete : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionExportedInviteDelete : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionExportedInviteDelete : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionExportedInviteDelete : fmt.Stringer func ChannelAdminLogEventActionExportedInviteDeleteArray.First() (v ChannelAdminLogEventActionExportedInviteDelete, ok bool) func ChannelAdminLogEventActionExportedInviteDeleteArray.Last() (v ChannelAdminLogEventActionExportedInviteDelete, ok bool) func (*ChannelAdminLogEventActionExportedInviteDeleteArray).Pop() (v ChannelAdminLogEventActionExportedInviteDelete, ok bool) func (*ChannelAdminLogEventActionExportedInviteDeleteArray).PopFirst() (v ChannelAdminLogEventActionExportedInviteDelete, ok bool)
ChannelAdminLogEventActionExportedInviteDeleteArray is adapter for slice of ChannelAdminLogEventActionExportedInviteDelete. 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 ChannelAdminLogEventActionExportedInviteDelete. Sort sorts slice of ChannelAdminLogEventActionExportedInviteDelete. SortStable sorts slice of ChannelAdminLogEventActionExportedInviteDelete. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionExportedInviteDelete() (to ChannelAdminLogEventActionExportedInviteDeleteArray) func ChannelAdminLogEventActionExportedInviteDeleteArray.Retain(keep func(x ChannelAdminLogEventActionExportedInviteDelete) bool) ChannelAdminLogEventActionExportedInviteDeleteArray func ChannelAdminLogEventActionExportedInviteDeleteArray.Sort(less func(a, b ChannelAdminLogEventActionExportedInviteDelete) bool) ChannelAdminLogEventActionExportedInviteDeleteArray func ChannelAdminLogEventActionExportedInviteDeleteArray.SortStable(less func(a, b ChannelAdminLogEventActionExportedInviteDelete) bool) ChannelAdminLogEventActionExportedInviteDeleteArray
ChannelAdminLogEventActionExportedInviteEdit represents TL type `channelAdminLogEventActionExportedInviteEdit#e90ebb59`. A chat invite was edited See https://core.telegram.org/constructor/channelAdminLogEventActionExportedInviteEdit for reference. New chat invite information Previous chat invite information Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionExportedInviteEdit from given interface. GetNewInvite returns value of NewInvite field. GetPrevInvite returns value of PrevInvite 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. (*ChannelAdminLogEventActionExportedInviteEdit) Zero() bool *ChannelAdminLogEventActionExportedInviteEdit : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionExportedInviteEdit : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionExportedInviteEdit : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionExportedInviteEdit : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionExportedInviteEdit : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionExportedInviteEdit : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionExportedInviteEdit : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionExportedInviteEdit : fmt.Stringer func ChannelAdminLogEventActionExportedInviteEditArray.First() (v ChannelAdminLogEventActionExportedInviteEdit, ok bool) func ChannelAdminLogEventActionExportedInviteEditArray.Last() (v ChannelAdminLogEventActionExportedInviteEdit, ok bool) func (*ChannelAdminLogEventActionExportedInviteEditArray).Pop() (v ChannelAdminLogEventActionExportedInviteEdit, ok bool) func (*ChannelAdminLogEventActionExportedInviteEditArray).PopFirst() (v ChannelAdminLogEventActionExportedInviteEdit, ok bool)
ChannelAdminLogEventActionExportedInviteEditArray is adapter for slice of ChannelAdminLogEventActionExportedInviteEdit. 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 ChannelAdminLogEventActionExportedInviteEdit. Sort sorts slice of ChannelAdminLogEventActionExportedInviteEdit. SortStable sorts slice of ChannelAdminLogEventActionExportedInviteEdit. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionExportedInviteEdit() (to ChannelAdminLogEventActionExportedInviteEditArray) func ChannelAdminLogEventActionExportedInviteEditArray.Retain(keep func(x ChannelAdminLogEventActionExportedInviteEdit) bool) ChannelAdminLogEventActionExportedInviteEditArray func ChannelAdminLogEventActionExportedInviteEditArray.Sort(less func(a, b ChannelAdminLogEventActionExportedInviteEdit) bool) ChannelAdminLogEventActionExportedInviteEditArray func ChannelAdminLogEventActionExportedInviteEditArray.SortStable(less func(a, b ChannelAdminLogEventActionExportedInviteEdit) bool) ChannelAdminLogEventActionExportedInviteEditArray
ChannelAdminLogEventActionExportedInviteRevoke represents TL type `channelAdminLogEventActionExportedInviteRevoke#410a134e`. A specific invite link was revoked See https://core.telegram.org/constructor/channelAdminLogEventActionExportedInviteRevoke for reference. The deleted chat invite Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionExportedInviteRevoke from given interface. GetInvite returns value of Invite 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. (*ChannelAdminLogEventActionExportedInviteRevoke) Zero() bool *ChannelAdminLogEventActionExportedInviteRevoke : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionExportedInviteRevoke : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionExportedInviteRevoke : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionExportedInviteRevoke : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionExportedInviteRevoke : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionExportedInviteRevoke : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionExportedInviteRevoke : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionExportedInviteRevoke : fmt.Stringer func ChannelAdminLogEventActionExportedInviteRevokeArray.First() (v ChannelAdminLogEventActionExportedInviteRevoke, ok bool) func ChannelAdminLogEventActionExportedInviteRevokeArray.Last() (v ChannelAdminLogEventActionExportedInviteRevoke, ok bool) func (*ChannelAdminLogEventActionExportedInviteRevokeArray).Pop() (v ChannelAdminLogEventActionExportedInviteRevoke, ok bool) func (*ChannelAdminLogEventActionExportedInviteRevokeArray).PopFirst() (v ChannelAdminLogEventActionExportedInviteRevoke, ok bool)
ChannelAdminLogEventActionExportedInviteRevokeArray is adapter for slice of ChannelAdminLogEventActionExportedInviteRevoke. 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 ChannelAdminLogEventActionExportedInviteRevoke. Sort sorts slice of ChannelAdminLogEventActionExportedInviteRevoke. SortStable sorts slice of ChannelAdminLogEventActionExportedInviteRevoke. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionExportedInviteRevoke() (to ChannelAdminLogEventActionExportedInviteRevokeArray) func ChannelAdminLogEventActionExportedInviteRevokeArray.Retain(keep func(x ChannelAdminLogEventActionExportedInviteRevoke) bool) ChannelAdminLogEventActionExportedInviteRevokeArray func ChannelAdminLogEventActionExportedInviteRevokeArray.Sort(less func(a, b ChannelAdminLogEventActionExportedInviteRevoke) bool) ChannelAdminLogEventActionExportedInviteRevokeArray func ChannelAdminLogEventActionExportedInviteRevokeArray.SortStable(less func(a, b ChannelAdminLogEventActionExportedInviteRevoke) bool) ChannelAdminLogEventActionExportedInviteRevokeArray
ChannelAdminLogEventActionParticipantInvite represents TL type `channelAdminLogEventActionParticipantInvite#e31c34d8`. A user was invited to the group See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantInvite for reference. The user that was invited Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionParticipantInvite from given interface. GetParticipant returns value of Participant 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. (*ChannelAdminLogEventActionParticipantInvite) Zero() bool *ChannelAdminLogEventActionParticipantInvite : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantInvite : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantInvite : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantInvite : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantInvite : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantInvite : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantInvite : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantInvite : fmt.Stringer func ChannelAdminLogEventActionParticipantInviteArray.First() (v ChannelAdminLogEventActionParticipantInvite, ok bool) func ChannelAdminLogEventActionParticipantInviteArray.Last() (v ChannelAdminLogEventActionParticipantInvite, ok bool) func (*ChannelAdminLogEventActionParticipantInviteArray).Pop() (v ChannelAdminLogEventActionParticipantInvite, ok bool) func (*ChannelAdminLogEventActionParticipantInviteArray).PopFirst() (v ChannelAdminLogEventActionParticipantInvite, ok bool)
ChannelAdminLogEventActionParticipantInviteArray is adapter for slice of ChannelAdminLogEventActionParticipantInvite. 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 ChannelAdminLogEventActionParticipantInvite. Sort sorts slice of ChannelAdminLogEventActionParticipantInvite. SortStable sorts slice of ChannelAdminLogEventActionParticipantInvite. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionParticipantInvite() (to ChannelAdminLogEventActionParticipantInviteArray) func ChannelAdminLogEventActionParticipantInviteArray.Retain(keep func(x ChannelAdminLogEventActionParticipantInvite) bool) ChannelAdminLogEventActionParticipantInviteArray func ChannelAdminLogEventActionParticipantInviteArray.Sort(less func(a, b ChannelAdminLogEventActionParticipantInvite) bool) ChannelAdminLogEventActionParticipantInviteArray func ChannelAdminLogEventActionParticipantInviteArray.SortStable(less func(a, b ChannelAdminLogEventActionParticipantInvite) bool) ChannelAdminLogEventActionParticipantInviteArray
ChannelAdminLogEventActionParticipantJoin represents TL type `channelAdminLogEventActionParticipantJoin#183040d3`. A user has joined the group (in the case of big groups, info of the user that has joined isn't shown) See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoin 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. (*ChannelAdminLogEventActionParticipantJoin) Zero() bool *ChannelAdminLogEventActionParticipantJoin : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantJoin : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantJoin : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantJoin : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantJoin : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantJoin : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantJoin : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantJoin : fmt.Stringer
ChannelAdminLogEventActionParticipantJoinByInvite represents TL type `channelAdminLogEventActionParticipantJoinByInvite#fe9fc158`. A user joined the supergroup/channel¹ using a specific invite link Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByInvite for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The invite link used to join the supergroup/channel¹ Links: 1) https://core.telegram.org/api/channel The participant joined by importing a chat folder deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionParticipantJoinByInvite from given interface. GetInvite returns value of Invite field. GetViaChatlist returns value of ViaChatlist conditional field. SetFlags sets flags for non-zero fields. SetViaChatlist sets value of ViaChatlist 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. (*ChannelAdminLogEventActionParticipantJoinByInvite) Zero() bool *ChannelAdminLogEventActionParticipantJoinByInvite : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantJoinByInvite : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantJoinByInvite : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantJoinByInvite : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantJoinByInvite : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantJoinByInvite : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantJoinByInvite : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantJoinByInvite : fmt.Stringer func ChannelAdminLogEventActionParticipantJoinByInviteArray.First() (v ChannelAdminLogEventActionParticipantJoinByInvite, ok bool) func ChannelAdminLogEventActionParticipantJoinByInviteArray.Last() (v ChannelAdminLogEventActionParticipantJoinByInvite, ok bool) func (*ChannelAdminLogEventActionParticipantJoinByInviteArray).Pop() (v ChannelAdminLogEventActionParticipantJoinByInvite, ok bool) func (*ChannelAdminLogEventActionParticipantJoinByInviteArray).PopFirst() (v ChannelAdminLogEventActionParticipantJoinByInvite, ok bool)
ChannelAdminLogEventActionParticipantJoinByInviteArray is adapter for slice of ChannelAdminLogEventActionParticipantJoinByInvite. 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 ChannelAdminLogEventActionParticipantJoinByInvite. Sort sorts slice of ChannelAdminLogEventActionParticipantJoinByInvite. SortStable sorts slice of ChannelAdminLogEventActionParticipantJoinByInvite. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionParticipantJoinByInvite() (to ChannelAdminLogEventActionParticipantJoinByInviteArray) func ChannelAdminLogEventActionParticipantJoinByInviteArray.Retain(keep func(x ChannelAdminLogEventActionParticipantJoinByInvite) bool) ChannelAdminLogEventActionParticipantJoinByInviteArray func ChannelAdminLogEventActionParticipantJoinByInviteArray.Sort(less func(a, b ChannelAdminLogEventActionParticipantJoinByInvite) bool) ChannelAdminLogEventActionParticipantJoinByInviteArray func ChannelAdminLogEventActionParticipantJoinByInviteArray.SortStable(less func(a, b ChannelAdminLogEventActionParticipantJoinByInvite) bool) ChannelAdminLogEventActionParticipantJoinByInviteArray
ChannelAdminLogEventActionParticipantJoinByRequest represents TL type `channelAdminLogEventActionParticipantJoinByRequest#afb6144a`. A new member was accepted to the chat by an admin See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByRequest for reference. ID of the admin that approved the invite The invite link that was used to join the chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionParticipantJoinByRequest from given interface. GetApprovedBy returns value of ApprovedBy field. GetInvite returns value of Invite 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. (*ChannelAdminLogEventActionParticipantJoinByRequest) Zero() bool *ChannelAdminLogEventActionParticipantJoinByRequest : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantJoinByRequest : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantJoinByRequest : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantJoinByRequest : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantJoinByRequest : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantJoinByRequest : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantJoinByRequest : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantJoinByRequest : fmt.Stringer func ChannelAdminLogEventActionParticipantJoinByRequestArray.First() (v ChannelAdminLogEventActionParticipantJoinByRequest, ok bool) func ChannelAdminLogEventActionParticipantJoinByRequestArray.Last() (v ChannelAdminLogEventActionParticipantJoinByRequest, ok bool) func (*ChannelAdminLogEventActionParticipantJoinByRequestArray).Pop() (v ChannelAdminLogEventActionParticipantJoinByRequest, ok bool) func (*ChannelAdminLogEventActionParticipantJoinByRequestArray).PopFirst() (v ChannelAdminLogEventActionParticipantJoinByRequest, ok bool)
ChannelAdminLogEventActionParticipantJoinByRequestArray is adapter for slice of ChannelAdminLogEventActionParticipantJoinByRequest. 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 ChannelAdminLogEventActionParticipantJoinByRequest. Sort sorts slice of ChannelAdminLogEventActionParticipantJoinByRequest. SortStable sorts slice of ChannelAdminLogEventActionParticipantJoinByRequest. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionParticipantJoinByRequest() (to ChannelAdminLogEventActionParticipantJoinByRequestArray) func ChannelAdminLogEventActionParticipantJoinByRequestArray.Retain(keep func(x ChannelAdminLogEventActionParticipantJoinByRequest) bool) ChannelAdminLogEventActionParticipantJoinByRequestArray func ChannelAdminLogEventActionParticipantJoinByRequestArray.Sort(less func(a, b ChannelAdminLogEventActionParticipantJoinByRequest) bool) ChannelAdminLogEventActionParticipantJoinByRequestArray func ChannelAdminLogEventActionParticipantJoinByRequestArray.SortStable(less func(a, b ChannelAdminLogEventActionParticipantJoinByRequest) bool) ChannelAdminLogEventActionParticipantJoinByRequestArray
ChannelAdminLogEventActionParticipantLeave represents TL type `channelAdminLogEventActionParticipantLeave#f89777f2`. A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown) See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantLeave 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. (*ChannelAdminLogEventActionParticipantLeave) Zero() bool *ChannelAdminLogEventActionParticipantLeave : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantLeave : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantLeave : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantLeave : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantLeave : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantLeave : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantLeave : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantLeave : fmt.Stringer
ChannelAdminLogEventActionParticipantMute represents TL type `channelAdminLogEventActionParticipantMute#f92424d2`. A group call participant was muted See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantMute for reference. The participant that was muted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionParticipantMute from given interface. GetParticipant returns value of Participant 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. (*ChannelAdminLogEventActionParticipantMute) Zero() bool *ChannelAdminLogEventActionParticipantMute : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantMute : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantMute : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantMute : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantMute : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantMute : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantMute : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantMute : fmt.Stringer func ChannelAdminLogEventActionParticipantMuteArray.First() (v ChannelAdminLogEventActionParticipantMute, ok bool) func ChannelAdminLogEventActionParticipantMuteArray.Last() (v ChannelAdminLogEventActionParticipantMute, ok bool) func (*ChannelAdminLogEventActionParticipantMuteArray).Pop() (v ChannelAdminLogEventActionParticipantMute, ok bool) func (*ChannelAdminLogEventActionParticipantMuteArray).PopFirst() (v ChannelAdminLogEventActionParticipantMute, ok bool)
ChannelAdminLogEventActionParticipantMuteArray is adapter for slice of ChannelAdminLogEventActionParticipantMute. 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 ChannelAdminLogEventActionParticipantMute. Sort sorts slice of ChannelAdminLogEventActionParticipantMute. SortStable sorts slice of ChannelAdminLogEventActionParticipantMute. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionParticipantMute() (to ChannelAdminLogEventActionParticipantMuteArray) func ChannelAdminLogEventActionParticipantMuteArray.Retain(keep func(x ChannelAdminLogEventActionParticipantMute) bool) ChannelAdminLogEventActionParticipantMuteArray func ChannelAdminLogEventActionParticipantMuteArray.Sort(less func(a, b ChannelAdminLogEventActionParticipantMute) bool) ChannelAdminLogEventActionParticipantMuteArray func ChannelAdminLogEventActionParticipantMuteArray.SortStable(less func(a, b ChannelAdminLogEventActionParticipantMute) bool) ChannelAdminLogEventActionParticipantMuteArray
ChannelAdminLogEventActionParticipantToggleAdmin represents TL type `channelAdminLogEventActionParticipantToggleAdmin#d5676710`. The admin rights¹ of a user were changed Links: 1. https://core.telegram.org/api/rights See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin for reference. New banned rights of user Old banned rights of user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionParticipantToggleAdmin from given interface. GetNewParticipant returns value of NewParticipant field. GetPrevParticipant returns value of PrevParticipant 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. (*ChannelAdminLogEventActionParticipantToggleAdmin) Zero() bool *ChannelAdminLogEventActionParticipantToggleAdmin : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantToggleAdmin : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantToggleAdmin : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantToggleAdmin : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantToggleAdmin : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantToggleAdmin : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantToggleAdmin : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantToggleAdmin : fmt.Stringer func ChannelAdminLogEventActionParticipantToggleAdminArray.First() (v ChannelAdminLogEventActionParticipantToggleAdmin, ok bool) func ChannelAdminLogEventActionParticipantToggleAdminArray.Last() (v ChannelAdminLogEventActionParticipantToggleAdmin, ok bool) func (*ChannelAdminLogEventActionParticipantToggleAdminArray).Pop() (v ChannelAdminLogEventActionParticipantToggleAdmin, ok bool) func (*ChannelAdminLogEventActionParticipantToggleAdminArray).PopFirst() (v ChannelAdminLogEventActionParticipantToggleAdmin, ok bool)
ChannelAdminLogEventActionParticipantToggleAdminArray is adapter for slice of ChannelAdminLogEventActionParticipantToggleAdmin. 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 ChannelAdminLogEventActionParticipantToggleAdmin. Sort sorts slice of ChannelAdminLogEventActionParticipantToggleAdmin. SortStable sorts slice of ChannelAdminLogEventActionParticipantToggleAdmin. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionParticipantToggleAdmin() (to ChannelAdminLogEventActionParticipantToggleAdminArray) func ChannelAdminLogEventActionParticipantToggleAdminArray.Retain(keep func(x ChannelAdminLogEventActionParticipantToggleAdmin) bool) ChannelAdminLogEventActionParticipantToggleAdminArray func ChannelAdminLogEventActionParticipantToggleAdminArray.Sort(less func(a, b ChannelAdminLogEventActionParticipantToggleAdmin) bool) ChannelAdminLogEventActionParticipantToggleAdminArray func ChannelAdminLogEventActionParticipantToggleAdminArray.SortStable(less func(a, b ChannelAdminLogEventActionParticipantToggleAdmin) bool) ChannelAdminLogEventActionParticipantToggleAdminArray
ChannelAdminLogEventActionParticipantToggleBan represents TL type `channelAdminLogEventActionParticipantToggleBan#e6d83d7e`. The banned rights¹ of a user were changed Links: 1. https://core.telegram.org/api/rights See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan for reference. New banned rights of user Old banned rights of user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionParticipantToggleBan from given interface. GetNewParticipant returns value of NewParticipant field. GetPrevParticipant returns value of PrevParticipant 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. (*ChannelAdminLogEventActionParticipantToggleBan) Zero() bool *ChannelAdminLogEventActionParticipantToggleBan : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantToggleBan : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantToggleBan : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantToggleBan : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantToggleBan : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantToggleBan : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantToggleBan : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantToggleBan : fmt.Stringer func ChannelAdminLogEventActionParticipantToggleBanArray.First() (v ChannelAdminLogEventActionParticipantToggleBan, ok bool) func ChannelAdminLogEventActionParticipantToggleBanArray.Last() (v ChannelAdminLogEventActionParticipantToggleBan, ok bool) func (*ChannelAdminLogEventActionParticipantToggleBanArray).Pop() (v ChannelAdminLogEventActionParticipantToggleBan, ok bool) func (*ChannelAdminLogEventActionParticipantToggleBanArray).PopFirst() (v ChannelAdminLogEventActionParticipantToggleBan, ok bool)
ChannelAdminLogEventActionParticipantToggleBanArray is adapter for slice of ChannelAdminLogEventActionParticipantToggleBan. 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 ChannelAdminLogEventActionParticipantToggleBan. Sort sorts slice of ChannelAdminLogEventActionParticipantToggleBan. SortStable sorts slice of ChannelAdminLogEventActionParticipantToggleBan. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionParticipantToggleBan() (to ChannelAdminLogEventActionParticipantToggleBanArray) func ChannelAdminLogEventActionParticipantToggleBanArray.Retain(keep func(x ChannelAdminLogEventActionParticipantToggleBan) bool) ChannelAdminLogEventActionParticipantToggleBanArray func ChannelAdminLogEventActionParticipantToggleBanArray.Sort(less func(a, b ChannelAdminLogEventActionParticipantToggleBan) bool) ChannelAdminLogEventActionParticipantToggleBanArray func ChannelAdminLogEventActionParticipantToggleBanArray.SortStable(less func(a, b ChannelAdminLogEventActionParticipantToggleBan) bool) ChannelAdminLogEventActionParticipantToggleBanArray
ChannelAdminLogEventActionParticipantUnmute represents TL type `channelAdminLogEventActionParticipantUnmute#e64429c0`. A group call participant was unmuted See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantUnmute for reference. The participant that was muted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionParticipantUnmute from given interface. GetParticipant returns value of Participant 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. (*ChannelAdminLogEventActionParticipantUnmute) Zero() bool *ChannelAdminLogEventActionParticipantUnmute : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantUnmute : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantUnmute : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantUnmute : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantUnmute : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantUnmute : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantUnmute : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantUnmute : fmt.Stringer func ChannelAdminLogEventActionParticipantUnmuteArray.First() (v ChannelAdminLogEventActionParticipantUnmute, ok bool) func ChannelAdminLogEventActionParticipantUnmuteArray.Last() (v ChannelAdminLogEventActionParticipantUnmute, ok bool) func (*ChannelAdminLogEventActionParticipantUnmuteArray).Pop() (v ChannelAdminLogEventActionParticipantUnmute, ok bool) func (*ChannelAdminLogEventActionParticipantUnmuteArray).PopFirst() (v ChannelAdminLogEventActionParticipantUnmute, ok bool)
ChannelAdminLogEventActionParticipantUnmuteArray is adapter for slice of ChannelAdminLogEventActionParticipantUnmute. 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 ChannelAdminLogEventActionParticipantUnmute. Sort sorts slice of ChannelAdminLogEventActionParticipantUnmute. SortStable sorts slice of ChannelAdminLogEventActionParticipantUnmute. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionParticipantUnmute() (to ChannelAdminLogEventActionParticipantUnmuteArray) func ChannelAdminLogEventActionParticipantUnmuteArray.Retain(keep func(x ChannelAdminLogEventActionParticipantUnmute) bool) ChannelAdminLogEventActionParticipantUnmuteArray func ChannelAdminLogEventActionParticipantUnmuteArray.Sort(less func(a, b ChannelAdminLogEventActionParticipantUnmute) bool) ChannelAdminLogEventActionParticipantUnmuteArray func ChannelAdminLogEventActionParticipantUnmuteArray.SortStable(less func(a, b ChannelAdminLogEventActionParticipantUnmute) bool) ChannelAdminLogEventActionParticipantUnmuteArray
ChannelAdminLogEventActionParticipantVolume represents TL type `channelAdminLogEventActionParticipantVolume#3e7f6847`. channelAdminLogEvent.user_id has set the volume of participant.peer to participant volume See https://core.telegram.org/constructor/channelAdminLogEventActionParticipantVolume for reference. The participant that was muted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionParticipantVolume from given interface. GetParticipant returns value of Participant 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. (*ChannelAdminLogEventActionParticipantVolume) Zero() bool *ChannelAdminLogEventActionParticipantVolume : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionParticipantVolume : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionParticipantVolume : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionParticipantVolume : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionParticipantVolume : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionParticipantVolume : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionParticipantVolume : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionParticipantVolume : fmt.Stringer func ChannelAdminLogEventActionParticipantVolumeArray.First() (v ChannelAdminLogEventActionParticipantVolume, ok bool) func ChannelAdminLogEventActionParticipantVolumeArray.Last() (v ChannelAdminLogEventActionParticipantVolume, ok bool) func (*ChannelAdminLogEventActionParticipantVolumeArray).Pop() (v ChannelAdminLogEventActionParticipantVolume, ok bool) func (*ChannelAdminLogEventActionParticipantVolumeArray).PopFirst() (v ChannelAdminLogEventActionParticipantVolume, ok bool)
ChannelAdminLogEventActionParticipantVolumeArray is adapter for slice of ChannelAdminLogEventActionParticipantVolume. 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 ChannelAdminLogEventActionParticipantVolume. Sort sorts slice of ChannelAdminLogEventActionParticipantVolume. SortStable sorts slice of ChannelAdminLogEventActionParticipantVolume. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionParticipantVolume() (to ChannelAdminLogEventActionParticipantVolumeArray) func ChannelAdminLogEventActionParticipantVolumeArray.Retain(keep func(x ChannelAdminLogEventActionParticipantVolume) bool) ChannelAdminLogEventActionParticipantVolumeArray func ChannelAdminLogEventActionParticipantVolumeArray.Sort(less func(a, b ChannelAdminLogEventActionParticipantVolume) bool) ChannelAdminLogEventActionParticipantVolumeArray func ChannelAdminLogEventActionParticipantVolumeArray.SortStable(less func(a, b ChannelAdminLogEventActionParticipantVolume) bool) ChannelAdminLogEventActionParticipantVolumeArray
ChannelAdminLogEventActionPinTopic represents TL type `channelAdminLogEventActionPinTopic#5d8d353b`. A forum topic¹ was pinned or unpinned Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/channelAdminLogEventActionPinTopic for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields New topic information Use SetNewTopic and GetNewTopic helpers. Previous topic information Use SetPrevTopic and GetPrevTopic helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionPinTopic from given interface. GetNewTopic returns value of NewTopic conditional field and boolean which is true if field was set. GetPrevTopic returns value of PrevTopic conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetNewTopic sets value of NewTopic conditional field. SetPrevTopic sets value of PrevTopic 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. (*ChannelAdminLogEventActionPinTopic) Zero() bool *ChannelAdminLogEventActionPinTopic : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionPinTopic : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionPinTopic : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionPinTopic : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionPinTopic : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionPinTopic : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionPinTopic : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionPinTopic : fmt.Stringer func ChannelAdminLogEventActionPinTopicArray.First() (v ChannelAdminLogEventActionPinTopic, ok bool) func ChannelAdminLogEventActionPinTopicArray.Last() (v ChannelAdminLogEventActionPinTopic, ok bool) func (*ChannelAdminLogEventActionPinTopicArray).Pop() (v ChannelAdminLogEventActionPinTopic, ok bool) func (*ChannelAdminLogEventActionPinTopicArray).PopFirst() (v ChannelAdminLogEventActionPinTopic, ok bool)
ChannelAdminLogEventActionPinTopicArray is adapter for slice of ChannelAdminLogEventActionPinTopic. 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 ChannelAdminLogEventActionPinTopic. Sort sorts slice of ChannelAdminLogEventActionPinTopic. SortStable sorts slice of ChannelAdminLogEventActionPinTopic. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionPinTopic() (to ChannelAdminLogEventActionPinTopicArray) func ChannelAdminLogEventActionPinTopicArray.Retain(keep func(x ChannelAdminLogEventActionPinTopic) bool) ChannelAdminLogEventActionPinTopicArray func ChannelAdminLogEventActionPinTopicArray.Sort(less func(a, b ChannelAdminLogEventActionPinTopic) bool) ChannelAdminLogEventActionPinTopicArray func ChannelAdminLogEventActionPinTopicArray.SortStable(less func(a, b ChannelAdminLogEventActionPinTopic) bool) ChannelAdminLogEventActionPinTopicArray
ChannelAdminLogEventActionSendMessage represents TL type `channelAdminLogEventActionSendMessage#278f2868`. A message was posted in a channel See https://core.telegram.org/constructor/channelAdminLogEventActionSendMessage for reference. The message that was pinned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionSendMessage from given interface. GetMessage returns value of Message 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. (*ChannelAdminLogEventActionSendMessage) Zero() bool *ChannelAdminLogEventActionSendMessage : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionSendMessage : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionSendMessage : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionSendMessage : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionSendMessage : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionSendMessage : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionSendMessage : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionSendMessage : fmt.Stringer func ChannelAdminLogEventActionSendMessageArray.First() (v ChannelAdminLogEventActionSendMessage, ok bool) func ChannelAdminLogEventActionSendMessageArray.Last() (v ChannelAdminLogEventActionSendMessage, ok bool) func (*ChannelAdminLogEventActionSendMessageArray).Pop() (v ChannelAdminLogEventActionSendMessage, ok bool) func (*ChannelAdminLogEventActionSendMessageArray).PopFirst() (v ChannelAdminLogEventActionSendMessage, ok bool)
ChannelAdminLogEventActionSendMessageArray is adapter for slice of ChannelAdminLogEventActionSendMessage. 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 ChannelAdminLogEventActionSendMessage. Sort sorts slice of ChannelAdminLogEventActionSendMessage. SortStable sorts slice of ChannelAdminLogEventActionSendMessage. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionSendMessage() (to ChannelAdminLogEventActionSendMessageArray) func ChannelAdminLogEventActionSendMessageArray.Retain(keep func(x ChannelAdminLogEventActionSendMessage) bool) ChannelAdminLogEventActionSendMessageArray func ChannelAdminLogEventActionSendMessageArray.Sort(less func(a, b ChannelAdminLogEventActionSendMessage) bool) ChannelAdminLogEventActionSendMessageArray func ChannelAdminLogEventActionSendMessageArray.SortStable(less func(a, b ChannelAdminLogEventActionSendMessage) bool) ChannelAdminLogEventActionSendMessageArray
ChannelAdminLogEventActionStartGroupCall represents TL type `channelAdminLogEventActionStartGroupCall#23209745`. A group call was started See https://core.telegram.org/constructor/channelAdminLogEventActionStartGroupCall for reference. Group call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionStartGroupCall from given interface. GetCall returns value of Call 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. (*ChannelAdminLogEventActionStartGroupCall) Zero() bool *ChannelAdminLogEventActionStartGroupCall : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionStartGroupCall : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionStartGroupCall : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionStartGroupCall : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionStartGroupCall : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionStartGroupCall : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionStartGroupCall : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionStartGroupCall : fmt.Stringer func ChannelAdminLogEventActionStartGroupCallArray.First() (v ChannelAdminLogEventActionStartGroupCall, ok bool) func ChannelAdminLogEventActionStartGroupCallArray.Last() (v ChannelAdminLogEventActionStartGroupCall, ok bool) func (*ChannelAdminLogEventActionStartGroupCallArray).Pop() (v ChannelAdminLogEventActionStartGroupCall, ok bool) func (*ChannelAdminLogEventActionStartGroupCallArray).PopFirst() (v ChannelAdminLogEventActionStartGroupCall, ok bool)
ChannelAdminLogEventActionStartGroupCallArray is adapter for slice of ChannelAdminLogEventActionStartGroupCall. 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 ChannelAdminLogEventActionStartGroupCall. Sort sorts slice of ChannelAdminLogEventActionStartGroupCall. SortStable sorts slice of ChannelAdminLogEventActionStartGroupCall. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionStartGroupCall() (to ChannelAdminLogEventActionStartGroupCallArray) func ChannelAdminLogEventActionStartGroupCallArray.Retain(keep func(x ChannelAdminLogEventActionStartGroupCall) bool) ChannelAdminLogEventActionStartGroupCallArray func ChannelAdminLogEventActionStartGroupCallArray.Sort(less func(a, b ChannelAdminLogEventActionStartGroupCall) bool) ChannelAdminLogEventActionStartGroupCallArray func ChannelAdminLogEventActionStartGroupCallArray.SortStable(less func(a, b ChannelAdminLogEventActionStartGroupCall) bool) ChannelAdminLogEventActionStartGroupCallArray
ChannelAdminLogEventActionStopPoll represents TL type `channelAdminLogEventActionStopPoll#8f079643`. A poll was stopped See https://core.telegram.org/constructor/channelAdminLogEventActionStopPoll for reference. The message that was pinned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionStopPoll from given interface. GetMessage returns value of Message 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. (*ChannelAdminLogEventActionStopPoll) Zero() bool *ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionStopPoll : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionStopPoll : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionStopPoll : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionStopPoll : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionStopPoll : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionStopPoll : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionStopPoll : fmt.Stringer func ChannelAdminLogEventActionStopPollArray.First() (v ChannelAdminLogEventActionStopPoll, ok bool) func ChannelAdminLogEventActionStopPollArray.Last() (v ChannelAdminLogEventActionStopPoll, ok bool) func (*ChannelAdminLogEventActionStopPollArray).Pop() (v ChannelAdminLogEventActionStopPoll, ok bool) func (*ChannelAdminLogEventActionStopPollArray).PopFirst() (v ChannelAdminLogEventActionStopPoll, ok bool)
ChannelAdminLogEventActionStopPollArray is adapter for slice of ChannelAdminLogEventActionStopPoll. 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 ChannelAdminLogEventActionStopPoll. Sort sorts slice of ChannelAdminLogEventActionStopPoll. SortStable sorts slice of ChannelAdminLogEventActionStopPoll. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionStopPoll() (to ChannelAdminLogEventActionStopPollArray) func ChannelAdminLogEventActionStopPollArray.Retain(keep func(x ChannelAdminLogEventActionStopPoll) bool) ChannelAdminLogEventActionStopPollArray func ChannelAdminLogEventActionStopPollArray.Sort(less func(a, b ChannelAdminLogEventActionStopPoll) bool) ChannelAdminLogEventActionStopPollArray func ChannelAdminLogEventActionStopPollArray.SortStable(less func(a, b ChannelAdminLogEventActionStopPoll) bool) ChannelAdminLogEventActionStopPollArray
ChannelAdminLogEventActionToggleAntiSpam represents TL type `channelAdminLogEventActionToggleAntiSpam#64f36dfc`. Native antispam¹ functionality was enabled or disabled. Links: 1. https://core.telegram.org/api/antispam See https://core.telegram.org/constructor/channelAdminLogEventActionToggleAntiSpam for reference. New value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionToggleAntiSpam from given interface. GetNewValue returns value of NewValue 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. (*ChannelAdminLogEventActionToggleAntiSpam) Zero() bool *ChannelAdminLogEventActionToggleAntiSpam : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionToggleAntiSpam : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionToggleAntiSpam : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionToggleAntiSpam : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionToggleAntiSpam : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionToggleAntiSpam : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionToggleAntiSpam : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionToggleAntiSpam : fmt.Stringer func ChannelAdminLogEventActionToggleAntiSpamArray.First() (v ChannelAdminLogEventActionToggleAntiSpam, ok bool) func ChannelAdminLogEventActionToggleAntiSpamArray.Last() (v ChannelAdminLogEventActionToggleAntiSpam, ok bool) func (*ChannelAdminLogEventActionToggleAntiSpamArray).Pop() (v ChannelAdminLogEventActionToggleAntiSpam, ok bool) func (*ChannelAdminLogEventActionToggleAntiSpamArray).PopFirst() (v ChannelAdminLogEventActionToggleAntiSpam, ok bool)
ChannelAdminLogEventActionToggleAntiSpamArray is adapter for slice of ChannelAdminLogEventActionToggleAntiSpam. 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 ChannelAdminLogEventActionToggleAntiSpam. Sort sorts slice of ChannelAdminLogEventActionToggleAntiSpam. SortStable sorts slice of ChannelAdminLogEventActionToggleAntiSpam. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionToggleAntiSpam() (to ChannelAdminLogEventActionToggleAntiSpamArray) func ChannelAdminLogEventActionToggleAntiSpamArray.Retain(keep func(x ChannelAdminLogEventActionToggleAntiSpam) bool) ChannelAdminLogEventActionToggleAntiSpamArray func ChannelAdminLogEventActionToggleAntiSpamArray.Sort(less func(a, b ChannelAdminLogEventActionToggleAntiSpam) bool) ChannelAdminLogEventActionToggleAntiSpamArray func ChannelAdminLogEventActionToggleAntiSpamArray.SortStable(less func(a, b ChannelAdminLogEventActionToggleAntiSpam) bool) ChannelAdminLogEventActionToggleAntiSpamArray
ChannelAdminLogEventActionToggleForum represents TL type `channelAdminLogEventActionToggleForum#2cc6383`. Forum¹ functionality was enabled or disabled. Links: 1. https://core.telegram.org/api/forum See https://core.telegram.org/constructor/channelAdminLogEventActionToggleForum for reference. New value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionToggleForum from given interface. GetNewValue returns value of NewValue 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. (*ChannelAdminLogEventActionToggleForum) Zero() bool *ChannelAdminLogEventActionToggleForum : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionToggleForum : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionToggleForum : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionToggleForum : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionToggleForum : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionToggleForum : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionToggleForum : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionToggleForum : fmt.Stringer func ChannelAdminLogEventActionToggleForumArray.First() (v ChannelAdminLogEventActionToggleForum, ok bool) func ChannelAdminLogEventActionToggleForumArray.Last() (v ChannelAdminLogEventActionToggleForum, ok bool) func (*ChannelAdminLogEventActionToggleForumArray).Pop() (v ChannelAdminLogEventActionToggleForum, ok bool) func (*ChannelAdminLogEventActionToggleForumArray).PopFirst() (v ChannelAdminLogEventActionToggleForum, ok bool)
ChannelAdminLogEventActionToggleForumArray is adapter for slice of ChannelAdminLogEventActionToggleForum. 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 ChannelAdminLogEventActionToggleForum. Sort sorts slice of ChannelAdminLogEventActionToggleForum. SortStable sorts slice of ChannelAdminLogEventActionToggleForum. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionToggleForum() (to ChannelAdminLogEventActionToggleForumArray) func ChannelAdminLogEventActionToggleForumArray.Retain(keep func(x ChannelAdminLogEventActionToggleForum) bool) ChannelAdminLogEventActionToggleForumArray func ChannelAdminLogEventActionToggleForumArray.Sort(less func(a, b ChannelAdminLogEventActionToggleForum) bool) ChannelAdminLogEventActionToggleForumArray func ChannelAdminLogEventActionToggleForumArray.SortStable(less func(a, b ChannelAdminLogEventActionToggleForum) bool) ChannelAdminLogEventActionToggleForumArray
ChannelAdminLogEventActionToggleGroupCallSetting represents TL type `channelAdminLogEventActionToggleGroupCallSetting#56d6a247`. Group call settings were changed See https://core.telegram.org/constructor/channelAdminLogEventActionToggleGroupCallSetting for reference. Whether all users are muted by default upon joining Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionToggleGroupCallSetting from given interface. GetJoinMuted returns value of JoinMuted 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. (*ChannelAdminLogEventActionToggleGroupCallSetting) Zero() bool *ChannelAdminLogEventActionToggleGroupCallSetting : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionToggleGroupCallSetting : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionToggleGroupCallSetting : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionToggleGroupCallSetting : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionToggleGroupCallSetting : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionToggleGroupCallSetting : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionToggleGroupCallSetting : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionToggleGroupCallSetting : fmt.Stringer func ChannelAdminLogEventActionToggleGroupCallSettingArray.First() (v ChannelAdminLogEventActionToggleGroupCallSetting, ok bool) func ChannelAdminLogEventActionToggleGroupCallSettingArray.Last() (v ChannelAdminLogEventActionToggleGroupCallSetting, ok bool) func (*ChannelAdminLogEventActionToggleGroupCallSettingArray).Pop() (v ChannelAdminLogEventActionToggleGroupCallSetting, ok bool) func (*ChannelAdminLogEventActionToggleGroupCallSettingArray).PopFirst() (v ChannelAdminLogEventActionToggleGroupCallSetting, ok bool)
ChannelAdminLogEventActionToggleGroupCallSettingArray is adapter for slice of ChannelAdminLogEventActionToggleGroupCallSetting. 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 ChannelAdminLogEventActionToggleGroupCallSetting. Sort sorts slice of ChannelAdminLogEventActionToggleGroupCallSetting. SortStable sorts slice of ChannelAdminLogEventActionToggleGroupCallSetting. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionToggleGroupCallSetting() (to ChannelAdminLogEventActionToggleGroupCallSettingArray) func ChannelAdminLogEventActionToggleGroupCallSettingArray.Retain(keep func(x ChannelAdminLogEventActionToggleGroupCallSetting) bool) ChannelAdminLogEventActionToggleGroupCallSettingArray func ChannelAdminLogEventActionToggleGroupCallSettingArray.Sort(less func(a, b ChannelAdminLogEventActionToggleGroupCallSetting) bool) ChannelAdminLogEventActionToggleGroupCallSettingArray func ChannelAdminLogEventActionToggleGroupCallSettingArray.SortStable(less func(a, b ChannelAdminLogEventActionToggleGroupCallSetting) bool) ChannelAdminLogEventActionToggleGroupCallSettingArray
ChannelAdminLogEventActionToggleInvites represents TL type `channelAdminLogEventActionToggleInvites#1b7907ae`. Invites were enabled/disabled See https://core.telegram.org/constructor/channelAdminLogEventActionToggleInvites for reference. New value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionToggleInvites from given interface. GetNewValue returns value of NewValue 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. (*ChannelAdminLogEventActionToggleInvites) Zero() bool *ChannelAdminLogEventActionToggleInvites : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionToggleInvites : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionToggleInvites : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionToggleInvites : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionToggleInvites : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionToggleInvites : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionToggleInvites : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionToggleInvites : fmt.Stringer func ChannelAdminLogEventActionToggleInvitesArray.First() (v ChannelAdminLogEventActionToggleInvites, ok bool) func ChannelAdminLogEventActionToggleInvitesArray.Last() (v ChannelAdminLogEventActionToggleInvites, ok bool) func (*ChannelAdminLogEventActionToggleInvitesArray).Pop() (v ChannelAdminLogEventActionToggleInvites, ok bool) func (*ChannelAdminLogEventActionToggleInvitesArray).PopFirst() (v ChannelAdminLogEventActionToggleInvites, ok bool)
ChannelAdminLogEventActionToggleInvitesArray is adapter for slice of ChannelAdminLogEventActionToggleInvites. 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 ChannelAdminLogEventActionToggleInvites. Sort sorts slice of ChannelAdminLogEventActionToggleInvites. SortStable sorts slice of ChannelAdminLogEventActionToggleInvites. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionToggleInvites() (to ChannelAdminLogEventActionToggleInvitesArray) func ChannelAdminLogEventActionToggleInvitesArray.Retain(keep func(x ChannelAdminLogEventActionToggleInvites) bool) ChannelAdminLogEventActionToggleInvitesArray func ChannelAdminLogEventActionToggleInvitesArray.Sort(less func(a, b ChannelAdminLogEventActionToggleInvites) bool) ChannelAdminLogEventActionToggleInvitesArray func ChannelAdminLogEventActionToggleInvitesArray.SortStable(less func(a, b ChannelAdminLogEventActionToggleInvites) bool) ChannelAdminLogEventActionToggleInvitesArray
ChannelAdminLogEventActionToggleNoForwards represents TL type `channelAdminLogEventActionToggleNoForwards#cb2ac766`. Forwards were enabled or disabled See https://core.telegram.org/constructor/channelAdminLogEventActionToggleNoForwards for reference. New value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionToggleNoForwards from given interface. GetNewValue returns value of NewValue 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. (*ChannelAdminLogEventActionToggleNoForwards) Zero() bool *ChannelAdminLogEventActionToggleNoForwards : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionToggleNoForwards : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionToggleNoForwards : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionToggleNoForwards : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionToggleNoForwards : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionToggleNoForwards : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionToggleNoForwards : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionToggleNoForwards : fmt.Stringer func ChannelAdminLogEventActionToggleNoForwardsArray.First() (v ChannelAdminLogEventActionToggleNoForwards, ok bool) func ChannelAdminLogEventActionToggleNoForwardsArray.Last() (v ChannelAdminLogEventActionToggleNoForwards, ok bool) func (*ChannelAdminLogEventActionToggleNoForwardsArray).Pop() (v ChannelAdminLogEventActionToggleNoForwards, ok bool) func (*ChannelAdminLogEventActionToggleNoForwardsArray).PopFirst() (v ChannelAdminLogEventActionToggleNoForwards, ok bool)
ChannelAdminLogEventActionToggleNoForwardsArray is adapter for slice of ChannelAdminLogEventActionToggleNoForwards. 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 ChannelAdminLogEventActionToggleNoForwards. Sort sorts slice of ChannelAdminLogEventActionToggleNoForwards. SortStable sorts slice of ChannelAdminLogEventActionToggleNoForwards. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionToggleNoForwards() (to ChannelAdminLogEventActionToggleNoForwardsArray) func ChannelAdminLogEventActionToggleNoForwardsArray.Retain(keep func(x ChannelAdminLogEventActionToggleNoForwards) bool) ChannelAdminLogEventActionToggleNoForwardsArray func ChannelAdminLogEventActionToggleNoForwardsArray.Sort(less func(a, b ChannelAdminLogEventActionToggleNoForwards) bool) ChannelAdminLogEventActionToggleNoForwardsArray func ChannelAdminLogEventActionToggleNoForwardsArray.SortStable(less func(a, b ChannelAdminLogEventActionToggleNoForwards) bool) ChannelAdminLogEventActionToggleNoForwardsArray
ChannelAdminLogEventActionTogglePreHistoryHidden represents TL type `channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1`. The hidden prehistory setting was changed¹ Links: 1. https://core.telegram.org/method/channels.togglePreHistoryHidden See https://core.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden for reference. New value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionTogglePreHistoryHidden from given interface. GetNewValue returns value of NewValue 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. (*ChannelAdminLogEventActionTogglePreHistoryHidden) Zero() bool *ChannelAdminLogEventActionTogglePreHistoryHidden : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionTogglePreHistoryHidden : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionTogglePreHistoryHidden : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionTogglePreHistoryHidden : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionTogglePreHistoryHidden : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionTogglePreHistoryHidden : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionTogglePreHistoryHidden : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionTogglePreHistoryHidden : fmt.Stringer func ChannelAdminLogEventActionTogglePreHistoryHiddenArray.First() (v ChannelAdminLogEventActionTogglePreHistoryHidden, ok bool) func ChannelAdminLogEventActionTogglePreHistoryHiddenArray.Last() (v ChannelAdminLogEventActionTogglePreHistoryHidden, ok bool) func (*ChannelAdminLogEventActionTogglePreHistoryHiddenArray).Pop() (v ChannelAdminLogEventActionTogglePreHistoryHidden, ok bool) func (*ChannelAdminLogEventActionTogglePreHistoryHiddenArray).PopFirst() (v ChannelAdminLogEventActionTogglePreHistoryHidden, ok bool)
ChannelAdminLogEventActionTogglePreHistoryHiddenArray is adapter for slice of ChannelAdminLogEventActionTogglePreHistoryHidden. 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 ChannelAdminLogEventActionTogglePreHistoryHidden. Sort sorts slice of ChannelAdminLogEventActionTogglePreHistoryHidden. SortStable sorts slice of ChannelAdminLogEventActionTogglePreHistoryHidden. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionTogglePreHistoryHidden() (to ChannelAdminLogEventActionTogglePreHistoryHiddenArray) func ChannelAdminLogEventActionTogglePreHistoryHiddenArray.Retain(keep func(x ChannelAdminLogEventActionTogglePreHistoryHidden) bool) ChannelAdminLogEventActionTogglePreHistoryHiddenArray func ChannelAdminLogEventActionTogglePreHistoryHiddenArray.Sort(less func(a, b ChannelAdminLogEventActionTogglePreHistoryHidden) bool) ChannelAdminLogEventActionTogglePreHistoryHiddenArray func ChannelAdminLogEventActionTogglePreHistoryHiddenArray.SortStable(less func(a, b ChannelAdminLogEventActionTogglePreHistoryHidden) bool) ChannelAdminLogEventActionTogglePreHistoryHiddenArray
ChannelAdminLogEventActionToggleSignatures represents TL type `channelAdminLogEventActionToggleSignatures#26ae0971`. Channel signatures were enabled/disabled See https://core.telegram.org/constructor/channelAdminLogEventActionToggleSignatures for reference. New value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionToggleSignatures from given interface. GetNewValue returns value of NewValue 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. (*ChannelAdminLogEventActionToggleSignatures) Zero() bool *ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionToggleSignatures : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionToggleSignatures : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionToggleSignatures : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionToggleSignatures : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionToggleSignatures : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionToggleSignatures : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionToggleSignatures : fmt.Stringer func ChannelAdminLogEventActionToggleSignaturesArray.First() (v ChannelAdminLogEventActionToggleSignatures, ok bool) func ChannelAdminLogEventActionToggleSignaturesArray.Last() (v ChannelAdminLogEventActionToggleSignatures, ok bool) func (*ChannelAdminLogEventActionToggleSignaturesArray).Pop() (v ChannelAdminLogEventActionToggleSignatures, ok bool) func (*ChannelAdminLogEventActionToggleSignaturesArray).PopFirst() (v ChannelAdminLogEventActionToggleSignatures, ok bool)
ChannelAdminLogEventActionToggleSignaturesArray is adapter for slice of ChannelAdminLogEventActionToggleSignatures. 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 ChannelAdminLogEventActionToggleSignatures. Sort sorts slice of ChannelAdminLogEventActionToggleSignatures. SortStable sorts slice of ChannelAdminLogEventActionToggleSignatures. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionToggleSignatures() (to ChannelAdminLogEventActionToggleSignaturesArray) func ChannelAdminLogEventActionToggleSignaturesArray.Retain(keep func(x ChannelAdminLogEventActionToggleSignatures) bool) ChannelAdminLogEventActionToggleSignaturesArray func ChannelAdminLogEventActionToggleSignaturesArray.Sort(less func(a, b ChannelAdminLogEventActionToggleSignatures) bool) ChannelAdminLogEventActionToggleSignaturesArray func ChannelAdminLogEventActionToggleSignaturesArray.SortStable(less func(a, b ChannelAdminLogEventActionToggleSignatures) bool) ChannelAdminLogEventActionToggleSignaturesArray
ChannelAdminLogEventActionToggleSlowMode represents TL type `channelAdminLogEventActionToggleSlowMode#53909779`. Slow mode setting for supergroups was changed¹ Links: 1. https://core.telegram.org/method/channels.toggleSlowMode See https://core.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode for reference. New slow mode value Previous slow mode value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionToggleSlowMode from given interface. GetNewValue returns value of NewValue field. GetPrevValue returns value of PrevValue 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. (*ChannelAdminLogEventActionToggleSlowMode) Zero() bool *ChannelAdminLogEventActionToggleSlowMode : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionToggleSlowMode : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionToggleSlowMode : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionToggleSlowMode : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionToggleSlowMode : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionToggleSlowMode : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionToggleSlowMode : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionToggleSlowMode : fmt.Stringer func ChannelAdminLogEventActionToggleSlowModeArray.First() (v ChannelAdminLogEventActionToggleSlowMode, ok bool) func ChannelAdminLogEventActionToggleSlowModeArray.Last() (v ChannelAdminLogEventActionToggleSlowMode, ok bool) func (*ChannelAdminLogEventActionToggleSlowModeArray).Pop() (v ChannelAdminLogEventActionToggleSlowMode, ok bool) func (*ChannelAdminLogEventActionToggleSlowModeArray).PopFirst() (v ChannelAdminLogEventActionToggleSlowMode, ok bool)
ChannelAdminLogEventActionToggleSlowModeArray is adapter for slice of ChannelAdminLogEventActionToggleSlowMode. 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 ChannelAdminLogEventActionToggleSlowMode. Sort sorts slice of ChannelAdminLogEventActionToggleSlowMode. SortStable sorts slice of ChannelAdminLogEventActionToggleSlowMode. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionToggleSlowMode() (to ChannelAdminLogEventActionToggleSlowModeArray) func ChannelAdminLogEventActionToggleSlowModeArray.Retain(keep func(x ChannelAdminLogEventActionToggleSlowMode) bool) ChannelAdminLogEventActionToggleSlowModeArray func ChannelAdminLogEventActionToggleSlowModeArray.Sort(less func(a, b ChannelAdminLogEventActionToggleSlowMode) bool) ChannelAdminLogEventActionToggleSlowModeArray func ChannelAdminLogEventActionToggleSlowModeArray.SortStable(less func(a, b ChannelAdminLogEventActionToggleSlowMode) bool) ChannelAdminLogEventActionToggleSlowModeArray
ChannelAdminLogEventActionUpdatePinned represents TL type `channelAdminLogEventActionUpdatePinned#e9e82c18`. A message was pinned See https://core.telegram.org/constructor/channelAdminLogEventActionUpdatePinned for reference. The message that was pinned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventActionUpdatePinned from given interface. GetMessage returns value of Message 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. (*ChannelAdminLogEventActionUpdatePinned) Zero() bool *ChannelAdminLogEventActionUpdatePinned : ChannelAdminLogEventActionClass *ChannelAdminLogEventActionUpdatePinned : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventActionUpdatePinned : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventActionUpdatePinned : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventActionUpdatePinned : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventActionUpdatePinned : github.com/gotd/td/bin.Object *ChannelAdminLogEventActionUpdatePinned : github.com/gotd/td/tdp.Object *ChannelAdminLogEventActionUpdatePinned : fmt.Stringer func ChannelAdminLogEventActionUpdatePinnedArray.First() (v ChannelAdminLogEventActionUpdatePinned, ok bool) func ChannelAdminLogEventActionUpdatePinnedArray.Last() (v ChannelAdminLogEventActionUpdatePinned, ok bool) func (*ChannelAdminLogEventActionUpdatePinnedArray).Pop() (v ChannelAdminLogEventActionUpdatePinned, ok bool) func (*ChannelAdminLogEventActionUpdatePinnedArray).PopFirst() (v ChannelAdminLogEventActionUpdatePinned, ok bool)
ChannelAdminLogEventActionUpdatePinnedArray is adapter for slice of ChannelAdminLogEventActionUpdatePinned. 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 ChannelAdminLogEventActionUpdatePinned. Sort sorts slice of ChannelAdminLogEventActionUpdatePinned. SortStable sorts slice of ChannelAdminLogEventActionUpdatePinned. func ChannelAdminLogEventActionClassArray.AsChannelAdminLogEventActionUpdatePinned() (to ChannelAdminLogEventActionUpdatePinnedArray) func ChannelAdminLogEventActionUpdatePinnedArray.Retain(keep func(x ChannelAdminLogEventActionUpdatePinned) bool) ChannelAdminLogEventActionUpdatePinnedArray func ChannelAdminLogEventActionUpdatePinnedArray.Sort(less func(a, b ChannelAdminLogEventActionUpdatePinned) bool) ChannelAdminLogEventActionUpdatePinnedArray func ChannelAdminLogEventActionUpdatePinnedArray.SortStable(less func(a, b ChannelAdminLogEventActionUpdatePinned) bool) ChannelAdminLogEventActionUpdatePinnedArray
ChannelAdminLogEventsFilter represents TL type `channelAdminLogEventsFilter#ea107ae4`. Filter only certain admin log events See https://core.telegram.org/constructor/channelAdminLogEventsFilter for reference. Ban events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan Message deletion events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionDeleteMessage Admin demotion events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin Message edit events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionEditMessage Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Forum¹-related events Links: 1) https://core.telegram.org/api/forum Group call events Info change events (when about¹, linked chat², location³, photo⁴, stickerset⁵, title⁶ or username⁷, slowmode⁸, history TTL⁹ settings of a channel gets modified) Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionChangeAbout 2) https://core.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat 3) https://core.telegram.org/constructor/channelAdminLogEventActionChangeLocation 4) https://core.telegram.org/constructor/channelAdminLogEventActionChangePhoto 5) https://core.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet 6) https://core.telegram.org/constructor/channelAdminLogEventActionChangeTitle 7) https://core.telegram.org/constructor/channelAdminLogEventActionChangeUsername 8) https://core.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode 9) https://core.telegram.org/constructor/channelAdminLogEventActionChangeHistoryTTL Invite events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantInvite Invite events Join events¹, including joins using invite links² and join requests³. Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoin 2) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByInvite 3) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByRequest Kick events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan Leave events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantLeave Message pin events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionUpdatePinned Admin promotion events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin A message was posted in a channel Settings change events (invites¹, hidden prehistory², signatures³, default banned rights⁴, forum toggle events⁵) Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionToggleInvites 2) https://core.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden 3) https://core.telegram.org/constructor/channelAdminLogEventActionToggleSignatures 4) https://core.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights 5) https://core.telegram.org/constructor/channelAdminLogEventActionToggleForum Unban events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan Unkick events¹ Links: 1) https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelAdminLogEventsFilter from given interface. GetBan returns value of Ban conditional field. GetDelete returns value of Delete conditional field. GetDemote returns value of Demote conditional field. GetEdit returns value of Edit conditional field. GetForums returns value of Forums conditional field. GetGroupCall returns value of GroupCall conditional field. GetInfo returns value of Info conditional field. GetInvite returns value of Invite conditional field. GetInvites returns value of Invites conditional field. GetJoin returns value of Join conditional field. GetKick returns value of Kick conditional field. GetLeave returns value of Leave conditional field. GetPinned returns value of Pinned conditional field. GetPromote returns value of Promote conditional field. GetSend returns value of Send conditional field. GetSettings returns value of Settings conditional field. GetUnban returns value of Unban conditional field. GetUnkick returns value of Unkick conditional field. SetBan sets value of Ban conditional field. SetDelete sets value of Delete conditional field. SetDemote sets value of Demote conditional field. SetEdit sets value of Edit conditional field. SetFlags sets flags for non-zero fields. SetForums sets value of Forums conditional field. SetGroupCall sets value of GroupCall conditional field. SetInfo sets value of Info conditional field. SetInvite sets value of Invite conditional field. SetInvites sets value of Invites conditional field. SetJoin sets value of Join conditional field. SetKick sets value of Kick conditional field. SetLeave sets value of Leave conditional field. SetPinned sets value of Pinned conditional field. SetPromote sets value of Promote conditional field. SetSend sets value of Send conditional field. SetSettings sets value of Settings conditional field. SetUnban sets value of Unban conditional field. SetUnkick sets value of Unkick 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. (*ChannelAdminLogEventsFilter) Zero() bool *ChannelAdminLogEventsFilter : github.com/gotd/td/bin.BareDecoder *ChannelAdminLogEventsFilter : github.com/gotd/td/bin.BareEncoder *ChannelAdminLogEventsFilter : github.com/gotd/td/bin.Decoder *ChannelAdminLogEventsFilter : github.com/gotd/td/bin.Encoder *ChannelAdminLogEventsFilter : github.com/gotd/td/bin.Object *ChannelAdminLogEventsFilter : github.com/gotd/td/tdp.Object *ChannelAdminLogEventsFilter : fmt.Stringer func (*ChannelsGetAdminLogRequest).GetEventsFilter() (value ChannelAdminLogEventsFilter, ok bool) func (*ChannelsGetAdminLogRequest).SetEventsFilter(value ChannelAdminLogEventsFilter)
ChannelArray is adapter for slice of Channel. 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 Channel. Sort sorts slice of Channel. SortByDate sorts slice of Channel by Date. SortByID sorts slice of Channel by ID. SortStable sorts slice of Channel. SortStableByDate sorts slice of Channel by Date. SortStableByID sorts slice of Channel by ID. ToMap collects constructors to map. func ChannelArray.Retain(keep func(x Channel) bool) ChannelArray func ChannelArray.Sort(less func(a, b Channel) bool) ChannelArray func ChannelArray.SortByDate() ChannelArray func ChannelArray.SortByID() ChannelArray func ChannelArray.SortStable(less func(a, b Channel) bool) ChannelArray func ChannelArray.SortStableByDate() ChannelArray func ChannelArray.SortStableByID() ChannelArray func ChatClassArray.AsChannel() (to ChannelArray)
ChannelAvailableMessagesHandler is a ChannelAvailableMessages event handler. func UpdateDispatcher.OnChannelAvailableMessages(handler ChannelAvailableMessagesHandler)
ChannelForbidden represents TL type `channelForbidden#17d493d5`. Indicates a channel/supergroup we can't access because we were banned, or for some other reason. See https://core.telegram.org/constructor/channelForbidden for reference. Access hash Is this a channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Channel ID Is this a supergroup Title The ban is valid until the specified date Use SetUntilDate and GetUntilDate helpers. AsFull tries to map ChannelForbidden to FullChat. AsNotEmpty tries to map ChannelForbidden to NotEmptyChat. AsNotForbidden tries to map ChannelForbidden to NotForbiddenChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelForbidden from given interface. GetAccessHash returns value of AccessHash field. GetBroadcast returns value of Broadcast conditional field. GetID returns value of ID field. GetMegagroup returns value of Megagroup conditional field. GetTitle returns value of Title field. GetUntilDate returns value of UntilDate conditional field and boolean which is true if field was set. SetBroadcast sets value of Broadcast conditional field. SetFlags sets flags for non-zero fields. SetMegagroup sets value of Megagroup conditional field. SetUntilDate sets value of UntilDate 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. (*ChannelForbidden) Zero() bool *ChannelForbidden : ChatClass *ChannelForbidden : NotEmptyChat *ChannelForbidden : NotForbiddenChat *ChannelForbidden : github.com/gotd/td/bin.BareDecoder *ChannelForbidden : github.com/gotd/td/bin.BareEncoder *ChannelForbidden : github.com/gotd/td/bin.Decoder *ChannelForbidden : github.com/gotd/td/bin.Encoder *ChannelForbidden : github.com/gotd/td/bin.Object *ChannelForbidden : github.com/gotd/td/tdp.Object *ChannelForbidden : fmt.Stringer func ChannelForbiddenArray.First() (v ChannelForbidden, ok bool) func ChannelForbiddenArray.Last() (v ChannelForbidden, ok bool) func (*ChannelForbiddenArray).Pop() (v ChannelForbidden, ok bool) func (*ChannelForbiddenArray).PopFirst() (v ChannelForbidden, ok bool) func ChannelForbiddenArray.ToMap() map[int64]ChannelForbidden func ChatClassArray.ChannelForbiddenToMap() map[int64]*ChannelForbidden func ChannelForbiddenArray.FillMap(to map[int64]ChannelForbidden) func ChatClassArray.FillChannelForbiddenMap(to map[int64]*ChannelForbidden)
ChannelForbiddenArray is adapter for slice of ChannelForbidden. 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 ChannelForbidden. Sort sorts slice of ChannelForbidden. SortByID sorts slice of ChannelForbidden by ID. SortStable sorts slice of ChannelForbidden. SortStableByID sorts slice of ChannelForbidden by ID. ToMap collects constructors to map. func ChannelForbiddenArray.Retain(keep func(x ChannelForbidden) bool) ChannelForbiddenArray func ChannelForbiddenArray.Sort(less func(a, b ChannelForbidden) bool) ChannelForbiddenArray func ChannelForbiddenArray.SortByID() ChannelForbiddenArray func ChannelForbiddenArray.SortStable(less func(a, b ChannelForbidden) bool) ChannelForbiddenArray func ChannelForbiddenArray.SortStableByID() ChannelForbiddenArray func ChatClassArray.AsChannelForbidden() (to ChannelForbiddenArray)
ChannelFull represents TL type `channelFull#f2bcb6f`. Full info about a channel¹, supergroup² or gigagroup³. Links: 1. https://core.telegram.org/api/channel#channels 2. https://core.telegram.org/api/channel#supergroups 3. https://core.telegram.org/api/channel#gigagroups See https://core.telegram.org/constructor/channelFull for reference. Info about the channel Number of channel admins Use SetAdminsCount and GetAdminsCount helpers. Whether native antispam¹ functionality is enabled in this supergroup. Links: 1) https://core.telegram.org/api/antispam Identifier of a maximum unavailable message in a channel due to hidden history. Use SetAvailableMinID and GetAvailableMinID helpers. Allowed message reactions »¹ Links: 1) https://core.telegram.org/api/reactions Use SetAvailableReactions and GetAvailableReactions helpers. Number of users banned¹ from the channel Links: 1) https://core.telegram.org/api/rights Use SetBannedCount and GetBannedCount helpers. Whether any anonymous admin of this supergroup was blocked: if set, you won't receive messages from anonymous group admins in discussion replies via @replies¹ Links: 1) https://core.telegram.org/api/discussion Info about bots in the channel/supergroup Livestream or group call information Use SetCall and GetCall helpers. Can we delete this channel? Can we set the geolocation of this group (for geogroups) Can we associate¹ a stickerpack to the supergroup? Links: 1) https://core.telegram.org/method/channels.setStickers Can we set the channel's username? Can we view the participant list? Can the user view channel/supergroup statistics¹ Links: 1) https://core.telegram.org/api/stats Channel picture Default peer used for sending messages to this channel Use SetDefaultSendAs and GetDefaultSendAs helpers. Invite link Use SetExportedInvite and GetExportedInvite helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. When using phone.getGroupCallJoinAs¹ to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default. Links: 1) https://core.telegram.org/method/phone.getGroupCallJoinAs Use SetGroupcallDefaultJoinAs and GetGroupcallDefaultJoinAs helpers. Whether scheduled messages are available Is the history before we joined hidden to us? ID of the channel Number of users kicked¹ from the channel Links: 1) https://core.telegram.org/api/rights Use SetKickedCount and GetKickedCount helpers. ID of the linked discussion chat¹ for channels Links: 1) https://core.telegram.org/api/discussion Use SetLinkedChatID and GetLinkedChatID helpers. Location of the geogroup Use SetLocation and GetLocation helpers. The chat ID from which this group was migrated¹ Links: 1) https://core.telegram.org/api/channel Use SetMigratedFromChatID and GetMigratedFromChatID helpers. The message ID in the original chat at which this group was migrated¹ Links: 1) https://core.telegram.org/api/channel Use SetMigratedFromMaxID and GetMigratedFromMaxID helpers. Notification settings Number of users currently online Use SetOnlineCount and GetOnlineCount helpers. Number of participants of the channel Use SetParticipantsCount and GetParticipantsCount helpers. Whether the participant list is hidden. A list of suggested actions¹ for the supergroup admin, see here for more info »². Links: 1) https://core.telegram.org/api/config#suggestions 2) https://core.telegram.org/api/config#suggestions Use SetPendingSuggestions and GetPendingSuggestions helpers. Message ID of the last pinned message¹ Links: 1) https://core.telegram.org/api/pin Use SetPinnedMsgID and GetPinnedMsgID helpers. Latest PTS¹ for this channel Links: 1) https://core.telegram.org/api/updates Position up to which all incoming messages are read. Position up to which all outgoing messages are read. IDs of users who requested to join recently Use SetRecentRequesters and GetRecentRequesters helpers. Pending join requests »¹ Links: 1) https://core.telegram.org/api/invites#join-requests Use SetRequestsPending and GetRequestsPending helpers. Indicates when the user will be allowed to send another message in the supergroup (unixtime) Use SetSlowmodeNextSendDate and GetSlowmodeNextSendDate helpers. If specified, users in supergroups will only be able to send one message every slowmode_seconds seconds Use SetSlowmodeSeconds and GetSlowmodeSeconds helpers. If set, specifies the DC to use for fetching channel statistics Use SetStatsDC and GetStatsDC helpers. Associated stickerset Use SetStickerset and GetStickerset helpers. Channel stories¹ Links: 1) https://core.telegram.org/api/stories Use SetStories and GetStories helpers. Whether this user has some pinned stories¹. Links: 1) https://core.telegram.org/api/stories#pinned-or-archived-stories Time-To-Live of messages in this channel or supergroup Use SetTTLPeriod and GetTTLPeriod helpers. Emoji representing a specific chat theme Use SetThemeEmoticon and GetThemeEmoticon helpers. Whether the real-time chat translation popup¹ should be hidden. Links: 1) https://core.telegram.org/api/translation Count of unread messages Users may also choose to display messages from all topics of a forum¹ as if they were sent to a normal group, using a "View as messages" setting in the local client. This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages² method; invoking this method will update the value of this flag. Links: 1) https://core.telegram.org/api/forum 2) https://core.telegram.org/method/channels.toggleViewForumAsMessages Wallpaper field of ChannelFull. Use SetWallpaper and GetWallpaper helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelFull from given interface. GetAbout returns value of About field. GetAdminsCount returns value of AdminsCount conditional field and boolean which is true if field was set. GetAntispam returns value of Antispam conditional field. GetAvailableMinID returns value of AvailableMinID conditional field and boolean which is true if field was set. GetAvailableReactions returns value of AvailableReactions conditional field and boolean which is true if field was set. GetBannedCount returns value of BannedCount conditional field and boolean which is true if field was set. GetBlocked returns value of Blocked conditional field. GetBotInfo returns value of BotInfo field. GetCall returns value of Call conditional field and boolean which is true if field was set. GetCanDeleteChannel returns value of CanDeleteChannel conditional field. GetCanSetLocation returns value of CanSetLocation conditional field. GetCanSetStickers returns value of CanSetStickers conditional field. GetCanSetUsername returns value of CanSetUsername conditional field. GetCanViewParticipants returns value of CanViewParticipants conditional field. GetCanViewStats returns value of CanViewStats conditional field. GetChatPhoto returns value of ChatPhoto field. GetDefaultSendAs returns value of DefaultSendAs conditional field and boolean which is true if field was set. GetExportedInvite returns value of ExportedInvite conditional field and boolean which is true if field was set. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetGroupcallDefaultJoinAs returns value of GroupcallDefaultJoinAs conditional field and boolean which is true if field was set. GetHasScheduled returns value of HasScheduled conditional field. GetHiddenPrehistory returns value of HiddenPrehistory conditional field. GetID returns value of ID field. GetKickedCount returns value of KickedCount conditional field and boolean which is true if field was set. GetLinkedChatID returns value of LinkedChatID conditional field and boolean which is true if field was set. GetLocation returns value of Location conditional field and boolean which is true if field was set. GetMigratedFromChatID returns value of MigratedFromChatID conditional field and boolean which is true if field was set. GetMigratedFromMaxID returns value of MigratedFromMaxID conditional field and boolean which is true if field was set. GetNotifySettings returns value of NotifySettings field. GetOnlineCount returns value of OnlineCount conditional field and boolean which is true if field was set. GetParticipantsCount returns value of ParticipantsCount conditional field and boolean which is true if field was set. GetParticipantsHidden returns value of ParticipantsHidden conditional field. GetPendingSuggestions returns value of PendingSuggestions conditional field and boolean which is true if field was set. GetPinnedMsgID returns value of PinnedMsgID conditional field and boolean which is true if field was set. GetPts returns value of Pts field. GetReadInboxMaxID returns value of ReadInboxMaxID field. GetReadOutboxMaxID returns value of ReadOutboxMaxID field. GetRecentRequesters returns value of RecentRequesters conditional field and boolean which is true if field was set. GetRequestsPending returns value of RequestsPending conditional field and boolean which is true if field was set. GetSlowmodeNextSendDate returns value of SlowmodeNextSendDate conditional field and boolean which is true if field was set. GetSlowmodeSeconds returns value of SlowmodeSeconds conditional field and boolean which is true if field was set. GetStatsDC returns value of StatsDC conditional field and boolean which is true if field was set. GetStickerset returns value of Stickerset conditional field and boolean which is true if field was set. GetStories returns value of Stories conditional field and boolean which is true if field was set. GetStoriesPinnedAvailable returns value of StoriesPinnedAvailable conditional field. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. GetThemeEmoticon returns value of ThemeEmoticon conditional field and boolean which is true if field was set. GetTranslationsDisabled returns value of TranslationsDisabled conditional field. GetUnreadCount returns value of UnreadCount field. GetViewForumAsMessages returns value of ViewForumAsMessages conditional field. GetWallpaper returns value of Wallpaper conditional field and boolean which is true if field was set. SetAdminsCount sets value of AdminsCount conditional field. SetAntispam sets value of Antispam conditional field. SetAvailableMinID sets value of AvailableMinID conditional field. SetAvailableReactions sets value of AvailableReactions conditional field. SetBannedCount sets value of BannedCount conditional field. SetBlocked sets value of Blocked conditional field. SetCall sets value of Call conditional field. SetCanDeleteChannel sets value of CanDeleteChannel conditional field. SetCanSetLocation sets value of CanSetLocation conditional field. SetCanSetStickers sets value of CanSetStickers conditional field. SetCanSetUsername sets value of CanSetUsername conditional field. SetCanViewParticipants sets value of CanViewParticipants conditional field. SetCanViewStats sets value of CanViewStats conditional field. SetDefaultSendAs sets value of DefaultSendAs conditional field. SetExportedInvite sets value of ExportedInvite conditional field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID conditional field. SetGroupcallDefaultJoinAs sets value of GroupcallDefaultJoinAs conditional field. SetHasScheduled sets value of HasScheduled conditional field. SetHiddenPrehistory sets value of HiddenPrehistory conditional field. SetKickedCount sets value of KickedCount conditional field. SetLinkedChatID sets value of LinkedChatID conditional field. SetLocation sets value of Location conditional field. SetMigratedFromChatID sets value of MigratedFromChatID conditional field. SetMigratedFromMaxID sets value of MigratedFromMaxID conditional field. SetOnlineCount sets value of OnlineCount conditional field. SetParticipantsCount sets value of ParticipantsCount conditional field. SetParticipantsHidden sets value of ParticipantsHidden conditional field. SetPendingSuggestions sets value of PendingSuggestions conditional field. SetPinnedMsgID sets value of PinnedMsgID conditional field. SetRecentRequesters sets value of RecentRequesters conditional field. SetRequestsPending sets value of RequestsPending conditional field. SetSlowmodeNextSendDate sets value of SlowmodeNextSendDate conditional field. SetSlowmodeSeconds sets value of SlowmodeSeconds conditional field. SetStatsDC sets value of StatsDC conditional field. SetStickerset sets value of Stickerset conditional field. SetStories sets value of Stories conditional field. SetStoriesPinnedAvailable sets value of StoriesPinnedAvailable conditional field. SetTTLPeriod sets value of TTLPeriod conditional field. SetThemeEmoticon sets value of ThemeEmoticon conditional field. SetTranslationsDisabled sets value of TranslationsDisabled conditional field. SetViewForumAsMessages sets value of ViewForumAsMessages conditional field. SetWallpaper sets value of Wallpaper 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. (*ChannelFull) Zero() bool *ChannelFull : ChatFullClass *ChannelFull : github.com/gotd/td/bin.BareDecoder *ChannelFull : github.com/gotd/td/bin.BareEncoder *ChannelFull : github.com/gotd/td/bin.Decoder *ChannelFull : github.com/gotd/td/bin.Encoder *ChannelFull : github.com/gotd/td/bin.Object *ChannelFull : github.com/gotd/td/tdp.Object *ChannelFull : fmt.Stringer func ChannelFullArray.First() (v ChannelFull, ok bool) func ChannelFullArray.Last() (v ChannelFull, ok bool) func (*ChannelFullArray).Pop() (v ChannelFull, ok bool) func (*ChannelFullArray).PopFirst() (v ChannelFull, ok bool) func ChannelFullArray.ToMap() map[int64]ChannelFull func ChatFullClassArray.ChannelFullToMap() map[int64]*ChannelFull func ChannelFullArray.FillMap(to map[int64]ChannelFull) func ChatFullClassArray.FillChannelFullMap(to map[int64]*ChannelFull)
ChannelFullArray is adapter for slice of ChannelFull. 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 ChannelFull. Sort sorts slice of ChannelFull. SortByID sorts slice of ChannelFull by ID. SortStable sorts slice of ChannelFull. SortStableByID sorts slice of ChannelFull by ID. ToMap collects constructors to map. func ChannelFullArray.Retain(keep func(x ChannelFull) bool) ChannelFullArray func ChannelFullArray.Sort(less func(a, b ChannelFull) bool) ChannelFullArray func ChannelFullArray.SortByID() ChannelFullArray func ChannelFullArray.SortStable(less func(a, b ChannelFull) bool) ChannelFullArray func ChannelFullArray.SortStableByID() ChannelFullArray func ChatFullClassArray.AsChannelFull() (to ChannelFullArray)
ChannelHandler is a Channel event handler. func UpdateDispatcher.OnChannel(handler ChannelHandler)
ChannelLocation represents TL type `channelLocation#209b82db`. Geographical location of supergroup (geogroups) See https://core.telegram.org/constructor/channelLocation for reference. Textual description of the address Geographical location of supergroup AsNotEmpty tries to map ChannelLocation to ChannelLocation. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelLocation from given interface. GetAddress returns value of Address field. GetGeoPoint returns value of GeoPoint 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. (*ChannelLocation) Zero() bool *ChannelLocation : ChannelLocationClass *ChannelLocation : github.com/gotd/td/bin.BareDecoder *ChannelLocation : github.com/gotd/td/bin.BareEncoder *ChannelLocation : github.com/gotd/td/bin.Decoder *ChannelLocation : github.com/gotd/td/bin.Encoder *ChannelLocation : github.com/gotd/td/bin.Object *ChannelLocation : github.com/gotd/td/tdp.Object *ChannelLocation : fmt.Stringer func (*ChannelLocation).AsNotEmpty() (*ChannelLocation, bool) func ChannelLocationArray.First() (v ChannelLocation, ok bool) func ChannelLocationArray.Last() (v ChannelLocation, ok bool) func (*ChannelLocationArray).Pop() (v ChannelLocation, ok bool) func (*ChannelLocationArray).PopFirst() (v ChannelLocation, ok bool) func ChannelLocationClass.AsNotEmpty() (*ChannelLocation, bool) func ChannelLocationClassArray.AppendOnlyNotEmpty(to []*ChannelLocation) []*ChannelLocation func ChannelLocationClassArray.AsNotEmpty() (to []*ChannelLocation) func ChannelLocationClassArray.FirstAsNotEmpty() (v *ChannelLocation, ok bool) func ChannelLocationClassArray.LastAsNotEmpty() (v *ChannelLocation, ok bool) func (*ChannelLocationClassArray).PopAsNotEmpty() (v *ChannelLocation, ok bool) func (*ChannelLocationClassArray).PopFirstAsNotEmpty() (v *ChannelLocation, ok bool) func (*ChannelLocationEmpty).AsNotEmpty() (*ChannelLocation, bool) func ChannelLocationClassArray.AppendOnlyNotEmpty(to []*ChannelLocation) []*ChannelLocation
ChannelLocationArray is adapter for slice of ChannelLocation. 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 ChannelLocation. Sort sorts slice of ChannelLocation. SortStable sorts slice of ChannelLocation. func ChannelLocationArray.Retain(keep func(x ChannelLocation) bool) ChannelLocationArray func ChannelLocationArray.Sort(less func(a, b ChannelLocation) bool) ChannelLocationArray func ChannelLocationArray.SortStable(less func(a, b ChannelLocation) bool) ChannelLocationArray func ChannelLocationClassArray.AsChannelLocation() (to ChannelLocationArray)
ChannelLocation boxes the ChannelLocationClass providing a helper. ChannelLocation ChannelLocationClass Decode implements bin.Decoder for ChannelLocationBox. Encode implements bin.Encode for ChannelLocationBox. *ChannelLocationBox : github.com/gotd/td/bin.Decoder *ChannelLocationBox : github.com/gotd/td/bin.Encoder *ChannelLocationBox : github.com/gotd/td/bin.Object
ChannelLocationClass represents ChannelLocation generic type. See https://core.telegram.org/type/ChannelLocation for reference. Example: g, err := tg.DecodeChannelLocation(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChannelLocationEmpty: // channelLocationEmpty#bfb5ad8b case *tg.ChannelLocation: // channelLocation#209b82db default: panic(v) } AsNotEmpty tries to map ChannelLocationClass to ChannelLocation. ( ChannelLocationClass) Decode(b *bin.Buffer) error ( ChannelLocationClass) DecodeBare(b *bin.Buffer) error ( ChannelLocationClass) Encode(b *bin.Buffer) error ( ChannelLocationClass) 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. *ChannelLocation *ChannelLocationEmpty ChannelLocationClass : github.com/gotd/td/bin.BareDecoder ChannelLocationClass : github.com/gotd/td/bin.BareEncoder ChannelLocationClass : github.com/gotd/td/bin.Decoder ChannelLocationClass : github.com/gotd/td/bin.Encoder ChannelLocationClass : github.com/gotd/td/bin.Object ChannelLocationClass : fmt.Stringer func DecodeChannelLocation(buf *bin.Buffer) (ChannelLocationClass, error) func (*ChannelAdminLogEventActionChangeLocation).GetNewValue() (value ChannelLocationClass) func (*ChannelAdminLogEventActionChangeLocation).GetPrevValue() (value ChannelLocationClass) func (*ChannelFull).GetLocation() (value ChannelLocationClass, ok bool) func ChannelLocationClassArray.First() (v ChannelLocationClass, ok bool) func ChannelLocationClassArray.Last() (v ChannelLocationClass, ok bool) func (*ChannelLocationClassArray).Pop() (v ChannelLocationClass, ok bool) func (*ChannelLocationClassArray).PopFirst() (v ChannelLocationClass, ok bool) func (*ChannelFull).SetLocation(value ChannelLocationClass)
ChannelLocationClassArray is adapter for slice of ChannelLocationClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsChannelLocation returns copy with only ChannelLocation constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of ChannelLocationClass. Sort sorts slice of ChannelLocationClass. SortStable sorts slice of ChannelLocationClass. func ChannelLocationClassArray.Retain(keep func(x ChannelLocationClass) bool) ChannelLocationClassArray func ChannelLocationClassArray.Sort(less func(a, b ChannelLocationClass) bool) ChannelLocationClassArray func ChannelLocationClassArray.SortStable(less func(a, b ChannelLocationClass) bool) ChannelLocationClassArray
ChannelLocationEmpty represents TL type `channelLocationEmpty#bfb5ad8b`. No location (normal supergroup) See https://core.telegram.org/constructor/channelLocationEmpty for reference. AsNotEmpty tries to map ChannelLocationEmpty to ChannelLocation. 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. (*ChannelLocationEmpty) Zero() bool *ChannelLocationEmpty : ChannelLocationClass *ChannelLocationEmpty : github.com/gotd/td/bin.BareDecoder *ChannelLocationEmpty : github.com/gotd/td/bin.BareEncoder *ChannelLocationEmpty : github.com/gotd/td/bin.Decoder *ChannelLocationEmpty : github.com/gotd/td/bin.Encoder *ChannelLocationEmpty : github.com/gotd/td/bin.Object *ChannelLocationEmpty : github.com/gotd/td/tdp.Object *ChannelLocationEmpty : fmt.Stringer
ChannelMessageForwardsHandler is a ChannelMessageForwards event handler. func UpdateDispatcher.OnChannelMessageForwards(handler ChannelMessageForwardsHandler)
ChannelMessagesFilter represents TL type `channelMessagesFilter#cd77d957`. Filter for getting only certain types of channel messages See https://core.telegram.org/constructor/channelMessagesFilter for reference. Whether to exclude new messages from the search Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields A range of messages to fetch AsNotEmpty tries to map ChannelMessagesFilter to ChannelMessagesFilter. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelMessagesFilter from given interface. GetExcludeNewMessages returns value of ExcludeNewMessages conditional field. GetRanges returns value of Ranges field. SetExcludeNewMessages sets value of ExcludeNewMessages 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. (*ChannelMessagesFilter) Zero() bool *ChannelMessagesFilter : ChannelMessagesFilterClass *ChannelMessagesFilter : github.com/gotd/td/bin.BareDecoder *ChannelMessagesFilter : github.com/gotd/td/bin.BareEncoder *ChannelMessagesFilter : github.com/gotd/td/bin.Decoder *ChannelMessagesFilter : github.com/gotd/td/bin.Encoder *ChannelMessagesFilter : github.com/gotd/td/bin.Object *ChannelMessagesFilter : github.com/gotd/td/tdp.Object *ChannelMessagesFilter : fmt.Stringer func (*ChannelMessagesFilter).AsNotEmpty() (*ChannelMessagesFilter, bool) func ChannelMessagesFilterArray.First() (v ChannelMessagesFilter, ok bool) func ChannelMessagesFilterArray.Last() (v ChannelMessagesFilter, ok bool) func (*ChannelMessagesFilterArray).Pop() (v ChannelMessagesFilter, ok bool) func (*ChannelMessagesFilterArray).PopFirst() (v ChannelMessagesFilter, ok bool) func ChannelMessagesFilterClass.AsNotEmpty() (*ChannelMessagesFilter, bool) func ChannelMessagesFilterClassArray.AppendOnlyNotEmpty(to []*ChannelMessagesFilter) []*ChannelMessagesFilter func ChannelMessagesFilterClassArray.AsNotEmpty() (to []*ChannelMessagesFilter) func ChannelMessagesFilterClassArray.FirstAsNotEmpty() (v *ChannelMessagesFilter, ok bool) func ChannelMessagesFilterClassArray.LastAsNotEmpty() (v *ChannelMessagesFilter, ok bool) func (*ChannelMessagesFilterClassArray).PopAsNotEmpty() (v *ChannelMessagesFilter, ok bool) func (*ChannelMessagesFilterClassArray).PopFirstAsNotEmpty() (v *ChannelMessagesFilter, ok bool) func (*ChannelMessagesFilterEmpty).AsNotEmpty() (*ChannelMessagesFilter, bool) func (*UpdatesGetChannelDifferenceRequest).GetFilterAsNotEmpty() (*ChannelMessagesFilter, bool) func ChannelMessagesFilterClassArray.AppendOnlyNotEmpty(to []*ChannelMessagesFilter) []*ChannelMessagesFilter
ChannelMessagesFilterArray is adapter for slice of ChannelMessagesFilter. 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 ChannelMessagesFilter. Sort sorts slice of ChannelMessagesFilter. SortStable sorts slice of ChannelMessagesFilter. func ChannelMessagesFilterArray.Retain(keep func(x ChannelMessagesFilter) bool) ChannelMessagesFilterArray func ChannelMessagesFilterArray.Sort(less func(a, b ChannelMessagesFilter) bool) ChannelMessagesFilterArray func ChannelMessagesFilterArray.SortStable(less func(a, b ChannelMessagesFilter) bool) ChannelMessagesFilterArray func ChannelMessagesFilterClassArray.AsChannelMessagesFilter() (to ChannelMessagesFilterArray)
ChannelMessagesFilter boxes the ChannelMessagesFilterClass providing a helper. ChannelMessagesFilter ChannelMessagesFilterClass Decode implements bin.Decoder for ChannelMessagesFilterBox. Encode implements bin.Encode for ChannelMessagesFilterBox. *ChannelMessagesFilterBox : github.com/gotd/td/bin.Decoder *ChannelMessagesFilterBox : github.com/gotd/td/bin.Encoder *ChannelMessagesFilterBox : github.com/gotd/td/bin.Object
ChannelMessagesFilterClass represents ChannelMessagesFilter generic type. See https://core.telegram.org/type/ChannelMessagesFilter for reference. Example: g, err := tg.DecodeChannelMessagesFilter(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChannelMessagesFilterEmpty: // channelMessagesFilterEmpty#94d42ee7 case *tg.ChannelMessagesFilter: // channelMessagesFilter#cd77d957 default: panic(v) } AsNotEmpty tries to map ChannelMessagesFilterClass to ChannelMessagesFilter. ( ChannelMessagesFilterClass) Decode(b *bin.Buffer) error ( ChannelMessagesFilterClass) DecodeBare(b *bin.Buffer) error ( ChannelMessagesFilterClass) Encode(b *bin.Buffer) error ( ChannelMessagesFilterClass) 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. *ChannelMessagesFilter *ChannelMessagesFilterEmpty ChannelMessagesFilterClass : github.com/gotd/td/bin.BareDecoder ChannelMessagesFilterClass : github.com/gotd/td/bin.BareEncoder ChannelMessagesFilterClass : github.com/gotd/td/bin.Decoder ChannelMessagesFilterClass : github.com/gotd/td/bin.Encoder ChannelMessagesFilterClass : github.com/gotd/td/bin.Object ChannelMessagesFilterClass : fmt.Stringer func DecodeChannelMessagesFilter(buf *bin.Buffer) (ChannelMessagesFilterClass, error) func ChannelMessagesFilterClassArray.First() (v ChannelMessagesFilterClass, ok bool) func ChannelMessagesFilterClassArray.Last() (v ChannelMessagesFilterClass, ok bool) func (*ChannelMessagesFilterClassArray).Pop() (v ChannelMessagesFilterClass, ok bool) func (*ChannelMessagesFilterClassArray).PopFirst() (v ChannelMessagesFilterClass, ok bool) func (*UpdatesGetChannelDifferenceRequest).GetFilter() (value ChannelMessagesFilterClass)
ChannelMessagesFilterClassArray is adapter for slice of ChannelMessagesFilterClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsChannelMessagesFilter returns copy with only ChannelMessagesFilter constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of ChannelMessagesFilterClass. Sort sorts slice of ChannelMessagesFilterClass. SortStable sorts slice of ChannelMessagesFilterClass. func ChannelMessagesFilterClassArray.Retain(keep func(x ChannelMessagesFilterClass) bool) ChannelMessagesFilterClassArray func ChannelMessagesFilterClassArray.Sort(less func(a, b ChannelMessagesFilterClass) bool) ChannelMessagesFilterClassArray func ChannelMessagesFilterClassArray.SortStable(less func(a, b ChannelMessagesFilterClass) bool) ChannelMessagesFilterClassArray
ChannelMessagesFilterEmpty represents TL type `channelMessagesFilterEmpty#94d42ee7`. No filter See https://core.telegram.org/constructor/channelMessagesFilterEmpty for reference. AsNotEmpty tries to map ChannelMessagesFilterEmpty to ChannelMessagesFilter. 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. (*ChannelMessagesFilterEmpty) Zero() bool *ChannelMessagesFilterEmpty : ChannelMessagesFilterClass *ChannelMessagesFilterEmpty : github.com/gotd/td/bin.BareDecoder *ChannelMessagesFilterEmpty : github.com/gotd/td/bin.BareEncoder *ChannelMessagesFilterEmpty : github.com/gotd/td/bin.Decoder *ChannelMessagesFilterEmpty : github.com/gotd/td/bin.Encoder *ChannelMessagesFilterEmpty : github.com/gotd/td/bin.Object *ChannelMessagesFilterEmpty : github.com/gotd/td/tdp.Object *ChannelMessagesFilterEmpty : fmt.Stringer
ChannelMessageViewsHandler is a ChannelMessageViews event handler. func UpdateDispatcher.OnChannelMessageViews(handler ChannelMessageViewsHandler)
ChannelParticipant represents TL type `channelParticipant#c00c07c0`. Channel/supergroup participant See https://core.telegram.org/constructor/channelParticipant for reference. Date joined Participant user ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipant from given interface. GetDate returns value of Date 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. (*ChannelParticipant) Zero() bool *ChannelParticipant : ChannelParticipantClass *ChannelParticipant : github.com/gotd/td/bin.BareDecoder *ChannelParticipant : github.com/gotd/td/bin.BareEncoder *ChannelParticipant : github.com/gotd/td/bin.Decoder *ChannelParticipant : github.com/gotd/td/bin.Encoder *ChannelParticipant : github.com/gotd/td/bin.Object *ChannelParticipant : github.com/gotd/td/tdp.Object *ChannelParticipant : fmt.Stringer func ChannelParticipantArray.First() (v ChannelParticipant, ok bool) func ChannelParticipantArray.Last() (v ChannelParticipant, ok bool) func (*ChannelParticipantArray).Pop() (v ChannelParticipant, ok bool) func (*ChannelParticipantArray).PopFirst() (v ChannelParticipant, ok bool)
ChannelParticipantAdmin represents TL type `channelParticipantAdmin#34c3bb53`. Admin See https://core.telegram.org/constructor/channelParticipantAdmin for reference. Admin rights¹ Links: 1) https://core.telegram.org/api/rights Can this admin promote other admins with the same permissions? When did the user join Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields User that invited the admin to the channel/group Use SetInviterID and GetInviterID helpers. User that promoted the user to admin The role (rank) of the admin in the group: just an arbitrary string, admin by default Use SetRank and GetRank helpers. Is this the current user Admin user ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantAdmin from given interface. GetAdminRights returns value of AdminRights field. GetCanEdit returns value of CanEdit conditional field. GetDate returns value of Date field. GetInviterID returns value of InviterID conditional field and boolean which is true if field was set. GetPromotedBy returns value of PromotedBy field. GetRank returns value of Rank conditional field and boolean which is true if field was set. GetSelf returns value of Self conditional field. GetUserID returns value of UserID field. SetCanEdit sets value of CanEdit conditional field. SetFlags sets flags for non-zero fields. SetInviterID sets value of InviterID conditional field. SetRank sets value of Rank conditional field. SetSelf sets value of Self 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. (*ChannelParticipantAdmin) Zero() bool *ChannelParticipantAdmin : ChannelParticipantClass *ChannelParticipantAdmin : github.com/gotd/td/bin.BareDecoder *ChannelParticipantAdmin : github.com/gotd/td/bin.BareEncoder *ChannelParticipantAdmin : github.com/gotd/td/bin.Decoder *ChannelParticipantAdmin : github.com/gotd/td/bin.Encoder *ChannelParticipantAdmin : github.com/gotd/td/bin.Object *ChannelParticipantAdmin : github.com/gotd/td/tdp.Object *ChannelParticipantAdmin : fmt.Stringer func ChannelParticipantAdminArray.First() (v ChannelParticipantAdmin, ok bool) func ChannelParticipantAdminArray.Last() (v ChannelParticipantAdmin, ok bool) func (*ChannelParticipantAdminArray).Pop() (v ChannelParticipantAdmin, ok bool) func (*ChannelParticipantAdminArray).PopFirst() (v ChannelParticipantAdmin, ok bool)
ChannelParticipantAdminArray is adapter for slice of ChannelParticipantAdmin. 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 ChannelParticipantAdmin. Sort sorts slice of ChannelParticipantAdmin. SortByDate sorts slice of ChannelParticipantAdmin by Date. SortStable sorts slice of ChannelParticipantAdmin. SortStableByDate sorts slice of ChannelParticipantAdmin by Date. func ChannelParticipantAdminArray.Retain(keep func(x ChannelParticipantAdmin) bool) ChannelParticipantAdminArray func ChannelParticipantAdminArray.Sort(less func(a, b ChannelParticipantAdmin) bool) ChannelParticipantAdminArray func ChannelParticipantAdminArray.SortByDate() ChannelParticipantAdminArray func ChannelParticipantAdminArray.SortStable(less func(a, b ChannelParticipantAdmin) bool) ChannelParticipantAdminArray func ChannelParticipantAdminArray.SortStableByDate() ChannelParticipantAdminArray func ChannelParticipantClassArray.AsChannelParticipantAdmin() (to ChannelParticipantAdminArray)
ChannelParticipantArray is adapter for slice of ChannelParticipant. 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 ChannelParticipant. Sort sorts slice of ChannelParticipant. SortByDate sorts slice of ChannelParticipant by Date. SortStable sorts slice of ChannelParticipant. SortStableByDate sorts slice of ChannelParticipant by Date. func ChannelParticipantArray.Retain(keep func(x ChannelParticipant) bool) ChannelParticipantArray func ChannelParticipantArray.Sort(less func(a, b ChannelParticipant) bool) ChannelParticipantArray func ChannelParticipantArray.SortByDate() ChannelParticipantArray func ChannelParticipantArray.SortStable(less func(a, b ChannelParticipant) bool) ChannelParticipantArray func ChannelParticipantArray.SortStableByDate() ChannelParticipantArray func ChannelParticipantClassArray.AsChannelParticipant() (to ChannelParticipantArray)
ChannelParticipantBanned represents TL type `channelParticipantBanned#6df8014e`. Banned/kicked user See https://core.telegram.org/constructor/channelParticipantBanned for reference. Banned rights¹ Links: 1) https://core.telegram.org/api/rights When did the user join the group Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields User was kicked by the specified admin Whether the user has left the group The banned peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantBanned from given interface. GetBannedRights returns value of BannedRights field. GetDate returns value of Date field. GetKickedBy returns value of KickedBy field. GetLeft returns value of Left conditional field. GetPeer returns value of Peer field. SetFlags sets flags for non-zero fields. SetLeft sets value of Left 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. (*ChannelParticipantBanned) Zero() bool *ChannelParticipantBanned : ChannelParticipantClass *ChannelParticipantBanned : github.com/gotd/td/bin.BareDecoder *ChannelParticipantBanned : github.com/gotd/td/bin.BareEncoder *ChannelParticipantBanned : github.com/gotd/td/bin.Decoder *ChannelParticipantBanned : github.com/gotd/td/bin.Encoder *ChannelParticipantBanned : github.com/gotd/td/bin.Object *ChannelParticipantBanned : github.com/gotd/td/tdp.Object *ChannelParticipantBanned : fmt.Stringer func ChannelParticipantBannedArray.First() (v ChannelParticipantBanned, ok bool) func ChannelParticipantBannedArray.Last() (v ChannelParticipantBanned, ok bool) func (*ChannelParticipantBannedArray).Pop() (v ChannelParticipantBanned, ok bool) func (*ChannelParticipantBannedArray).PopFirst() (v ChannelParticipantBanned, ok bool)
ChannelParticipantBannedArray is adapter for slice of ChannelParticipantBanned. 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 ChannelParticipantBanned. Sort sorts slice of ChannelParticipantBanned. SortByDate sorts slice of ChannelParticipantBanned by Date. SortStable sorts slice of ChannelParticipantBanned. SortStableByDate sorts slice of ChannelParticipantBanned by Date. func ChannelParticipantBannedArray.Retain(keep func(x ChannelParticipantBanned) bool) ChannelParticipantBannedArray func ChannelParticipantBannedArray.Sort(less func(a, b ChannelParticipantBanned) bool) ChannelParticipantBannedArray func ChannelParticipantBannedArray.SortByDate() ChannelParticipantBannedArray func ChannelParticipantBannedArray.SortStable(less func(a, b ChannelParticipantBanned) bool) ChannelParticipantBannedArray func ChannelParticipantBannedArray.SortStableByDate() ChannelParticipantBannedArray func ChannelParticipantClassArray.AsChannelParticipantBanned() (to ChannelParticipantBannedArray)
ChannelParticipant boxes the ChannelParticipantClass providing a helper. ChannelParticipant ChannelParticipantClass Decode implements bin.Decoder for ChannelParticipantBox. Encode implements bin.Encode for ChannelParticipantBox. *ChannelParticipantBox : github.com/gotd/td/bin.Decoder *ChannelParticipantBox : github.com/gotd/td/bin.Encoder *ChannelParticipantBox : github.com/gotd/td/bin.Object
ChannelParticipantClass represents ChannelParticipant generic type. See https://core.telegram.org/type/ChannelParticipant for reference. Example: g, err := tg.DecodeChannelParticipant(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChannelParticipant: // channelParticipant#c00c07c0 case *tg.ChannelParticipantSelf: // channelParticipantSelf#35a8bfa7 case *tg.ChannelParticipantCreator: // channelParticipantCreator#2fe601d3 case *tg.ChannelParticipantAdmin: // channelParticipantAdmin#34c3bb53 case *tg.ChannelParticipantBanned: // channelParticipantBanned#6df8014e case *tg.ChannelParticipantLeft: // channelParticipantLeft#1b03f006 default: panic(v) } ( ChannelParticipantClass) Decode(b *bin.Buffer) error ( ChannelParticipantClass) DecodeBare(b *bin.Buffer) error ( ChannelParticipantClass) Encode(b *bin.Buffer) error ( ChannelParticipantClass) 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. *ChannelParticipant *ChannelParticipantAdmin *ChannelParticipantBanned *ChannelParticipantCreator *ChannelParticipantLeft *ChannelParticipantSelf ChannelParticipantClass : github.com/gotd/td/bin.BareDecoder ChannelParticipantClass : github.com/gotd/td/bin.BareEncoder ChannelParticipantClass : github.com/gotd/td/bin.Decoder ChannelParticipantClass : github.com/gotd/td/bin.Encoder ChannelParticipantClass : github.com/gotd/td/bin.Object ChannelParticipantClass : fmt.Stringer func DecodeChannelParticipant(buf *bin.Buffer) (ChannelParticipantClass, error) func (*ChannelAdminLogEventActionParticipantInvite).GetParticipant() (value ChannelParticipantClass) func (*ChannelAdminLogEventActionParticipantToggleAdmin).GetNewParticipant() (value ChannelParticipantClass) func (*ChannelAdminLogEventActionParticipantToggleAdmin).GetPrevParticipant() (value ChannelParticipantClass) func (*ChannelAdminLogEventActionParticipantToggleBan).GetNewParticipant() (value ChannelParticipantClass) func (*ChannelAdminLogEventActionParticipantToggleBan).GetPrevParticipant() (value ChannelParticipantClass) func ChannelParticipantClassArray.First() (v ChannelParticipantClass, ok bool) func ChannelParticipantClassArray.Last() (v ChannelParticipantClass, ok bool) func (*ChannelParticipantClassArray).Pop() (v ChannelParticipantClass, ok bool) func (*ChannelParticipantClassArray).PopFirst() (v ChannelParticipantClass, ok bool) func (*ChannelsChannelParticipant).GetParticipant() (value ChannelParticipantClass) func (*ChannelsChannelParticipants).GetParticipants() (value []ChannelParticipantClass) func (*UpdateChannelParticipant).GetNewParticipant() (value ChannelParticipantClass, ok bool) func (*UpdateChannelParticipant).GetPrevParticipant() (value ChannelParticipantClass, ok bool) func (*UpdateChannelParticipant).SetNewParticipant(value ChannelParticipantClass) func (*UpdateChannelParticipant).SetPrevParticipant(value ChannelParticipantClass)
ChannelParticipantClassArray is adapter for slice of ChannelParticipantClass. AsChannelParticipant returns copy with only ChannelParticipant constructors. AsChannelParticipantAdmin returns copy with only ChannelParticipantAdmin constructors. AsChannelParticipantBanned returns copy with only ChannelParticipantBanned constructors. AsChannelParticipantCreator returns copy with only ChannelParticipantCreator constructors. AsChannelParticipantLeft returns copy with only ChannelParticipantLeft constructors. AsChannelParticipantSelf returns copy with only ChannelParticipantSelf 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 ChannelParticipantClass. Sort sorts slice of ChannelParticipantClass. SortStable sorts slice of ChannelParticipantClass. func ChannelParticipantClassArray.Retain(keep func(x ChannelParticipantClass) bool) ChannelParticipantClassArray func ChannelParticipantClassArray.Sort(less func(a, b ChannelParticipantClass) bool) ChannelParticipantClassArray func ChannelParticipantClassArray.SortStable(less func(a, b ChannelParticipantClass) bool) ChannelParticipantClassArray func (*ChannelsChannelParticipants).MapParticipants() (value ChannelParticipantClassArray)
ChannelParticipantCreator represents TL type `channelParticipantCreator#2fe601d3`. Channel/supergroup creator See https://core.telegram.org/constructor/channelParticipantCreator for reference. Creator admin rights Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The role (rank) of the group creator in the group: just an arbitrary string, admin by default Use SetRank and GetRank helpers. User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantCreator from given interface. GetAdminRights returns value of AdminRights field. GetRank returns value of Rank conditional field and boolean which is true if field was set. GetUserID returns value of UserID field. SetFlags sets flags for non-zero fields. SetRank sets value of Rank 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. (*ChannelParticipantCreator) Zero() bool *ChannelParticipantCreator : ChannelParticipantClass *ChannelParticipantCreator : github.com/gotd/td/bin.BareDecoder *ChannelParticipantCreator : github.com/gotd/td/bin.BareEncoder *ChannelParticipantCreator : github.com/gotd/td/bin.Decoder *ChannelParticipantCreator : github.com/gotd/td/bin.Encoder *ChannelParticipantCreator : github.com/gotd/td/bin.Object *ChannelParticipantCreator : github.com/gotd/td/tdp.Object *ChannelParticipantCreator : fmt.Stringer func ChannelParticipantCreatorArray.First() (v ChannelParticipantCreator, ok bool) func ChannelParticipantCreatorArray.Last() (v ChannelParticipantCreator, ok bool) func (*ChannelParticipantCreatorArray).Pop() (v ChannelParticipantCreator, ok bool) func (*ChannelParticipantCreatorArray).PopFirst() (v ChannelParticipantCreator, ok bool)
ChannelParticipantCreatorArray is adapter for slice of ChannelParticipantCreator. 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 ChannelParticipantCreator. Sort sorts slice of ChannelParticipantCreator. SortStable sorts slice of ChannelParticipantCreator. func ChannelParticipantClassArray.AsChannelParticipantCreator() (to ChannelParticipantCreatorArray) func ChannelParticipantCreatorArray.Retain(keep func(x ChannelParticipantCreator) bool) ChannelParticipantCreatorArray func ChannelParticipantCreatorArray.Sort(less func(a, b ChannelParticipantCreator) bool) ChannelParticipantCreatorArray func ChannelParticipantCreatorArray.SortStable(less func(a, b ChannelParticipantCreator) bool) ChannelParticipantCreatorArray
ChannelParticipantHandler is a ChannelParticipant event handler. func UpdateDispatcher.OnChannelParticipant(handler ChannelParticipantHandler)
ChannelParticipantLeft represents TL type `channelParticipantLeft#1b03f006`. A participant that left the channel/supergroup See https://core.telegram.org/constructor/channelParticipantLeft for reference. The peer that left Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantLeft 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. (*ChannelParticipantLeft) Zero() bool *ChannelParticipantLeft : ChannelParticipantClass *ChannelParticipantLeft : github.com/gotd/td/bin.BareDecoder *ChannelParticipantLeft : github.com/gotd/td/bin.BareEncoder *ChannelParticipantLeft : github.com/gotd/td/bin.Decoder *ChannelParticipantLeft : github.com/gotd/td/bin.Encoder *ChannelParticipantLeft : github.com/gotd/td/bin.Object *ChannelParticipantLeft : github.com/gotd/td/tdp.Object *ChannelParticipantLeft : fmt.Stringer func ChannelParticipantLeftArray.First() (v ChannelParticipantLeft, ok bool) func ChannelParticipantLeftArray.Last() (v ChannelParticipantLeft, ok bool) func (*ChannelParticipantLeftArray).Pop() (v ChannelParticipantLeft, ok bool) func (*ChannelParticipantLeftArray).PopFirst() (v ChannelParticipantLeft, ok bool)
ChannelParticipantLeftArray is adapter for slice of ChannelParticipantLeft. 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 ChannelParticipantLeft. Sort sorts slice of ChannelParticipantLeft. SortStable sorts slice of ChannelParticipantLeft. func ChannelParticipantClassArray.AsChannelParticipantLeft() (to ChannelParticipantLeftArray) func ChannelParticipantLeftArray.Retain(keep func(x ChannelParticipantLeft) bool) ChannelParticipantLeftArray func ChannelParticipantLeftArray.Sort(less func(a, b ChannelParticipantLeft) bool) ChannelParticipantLeftArray func ChannelParticipantLeftArray.SortStable(less func(a, b ChannelParticipantLeft) bool) ChannelParticipantLeftArray
ChannelParticipantsAdmins represents TL type `channelParticipantsAdmins#b4608969`. Fetch only admin participants See https://core.telegram.org/constructor/channelParticipantsAdmins 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. (*ChannelParticipantsAdmins) Zero() bool *ChannelParticipantsAdmins : ChannelParticipantsFilterClass *ChannelParticipantsAdmins : github.com/gotd/td/bin.BareDecoder *ChannelParticipantsAdmins : github.com/gotd/td/bin.BareEncoder *ChannelParticipantsAdmins : github.com/gotd/td/bin.Decoder *ChannelParticipantsAdmins : github.com/gotd/td/bin.Encoder *ChannelParticipantsAdmins : github.com/gotd/td/bin.Object *ChannelParticipantsAdmins : github.com/gotd/td/tdp.Object *ChannelParticipantsAdmins : fmt.Stringer
ChannelParticipantsBanned represents TL type `channelParticipantsBanned#1427a5e1`. Fetch only banned participants See https://core.telegram.org/constructor/channelParticipantsBanned for reference. Optional filter for searching kicked participants by name (otherwise empty) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantsBanned from given interface. GetQ returns value of Q 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. (*ChannelParticipantsBanned) Zero() bool *ChannelParticipantsBanned : ChannelParticipantsFilterClass *ChannelParticipantsBanned : github.com/gotd/td/bin.BareDecoder *ChannelParticipantsBanned : github.com/gotd/td/bin.BareEncoder *ChannelParticipantsBanned : github.com/gotd/td/bin.Decoder *ChannelParticipantsBanned : github.com/gotd/td/bin.Encoder *ChannelParticipantsBanned : github.com/gotd/td/bin.Object *ChannelParticipantsBanned : github.com/gotd/td/tdp.Object *ChannelParticipantsBanned : fmt.Stringer func ChannelParticipantsBannedArray.First() (v ChannelParticipantsBanned, ok bool) func ChannelParticipantsBannedArray.Last() (v ChannelParticipantsBanned, ok bool) func (*ChannelParticipantsBannedArray).Pop() (v ChannelParticipantsBanned, ok bool) func (*ChannelParticipantsBannedArray).PopFirst() (v ChannelParticipantsBanned, ok bool)
ChannelParticipantsBannedArray is adapter for slice of ChannelParticipantsBanned. 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 ChannelParticipantsBanned. Sort sorts slice of ChannelParticipantsBanned. SortStable sorts slice of ChannelParticipantsBanned. func ChannelParticipantsBannedArray.Retain(keep func(x ChannelParticipantsBanned) bool) ChannelParticipantsBannedArray func ChannelParticipantsBannedArray.Sort(less func(a, b ChannelParticipantsBanned) bool) ChannelParticipantsBannedArray func ChannelParticipantsBannedArray.SortStable(less func(a, b ChannelParticipantsBanned) bool) ChannelParticipantsBannedArray func ChannelParticipantsFilterClassArray.AsChannelParticipantsBanned() (to ChannelParticipantsBannedArray)
ChannelParticipantsBots represents TL type `channelParticipantsBots#b0d1865b`. Fetch only bot participants See https://core.telegram.org/constructor/channelParticipantsBots 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. (*ChannelParticipantsBots) Zero() bool *ChannelParticipantsBots : ChannelParticipantsFilterClass *ChannelParticipantsBots : github.com/gotd/td/bin.BareDecoder *ChannelParticipantsBots : github.com/gotd/td/bin.BareEncoder *ChannelParticipantsBots : github.com/gotd/td/bin.Decoder *ChannelParticipantsBots : github.com/gotd/td/bin.Encoder *ChannelParticipantsBots : github.com/gotd/td/bin.Object *ChannelParticipantsBots : github.com/gotd/td/tdp.Object *ChannelParticipantsBots : fmt.Stringer
ChannelParticipantsContacts represents TL type `channelParticipantsContacts#bb6ae88d`. Fetch only participants that are also contacts See https://core.telegram.org/constructor/channelParticipantsContacts for reference. Optional filter for searching kicked participants by name (otherwise empty) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantsContacts from given interface. GetQ returns value of Q 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. (*ChannelParticipantsContacts) Zero() bool *ChannelParticipantsContacts : ChannelParticipantsFilterClass *ChannelParticipantsContacts : github.com/gotd/td/bin.BareDecoder *ChannelParticipantsContacts : github.com/gotd/td/bin.BareEncoder *ChannelParticipantsContacts : github.com/gotd/td/bin.Decoder *ChannelParticipantsContacts : github.com/gotd/td/bin.Encoder *ChannelParticipantsContacts : github.com/gotd/td/bin.Object *ChannelParticipantsContacts : github.com/gotd/td/tdp.Object *ChannelParticipantsContacts : fmt.Stringer func ChannelParticipantsContactsArray.First() (v ChannelParticipantsContacts, ok bool) func ChannelParticipantsContactsArray.Last() (v ChannelParticipantsContacts, ok bool) func (*ChannelParticipantsContactsArray).Pop() (v ChannelParticipantsContacts, ok bool) func (*ChannelParticipantsContactsArray).PopFirst() (v ChannelParticipantsContacts, ok bool)
ChannelParticipantsContactsArray is adapter for slice of ChannelParticipantsContacts. 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 ChannelParticipantsContacts. Sort sorts slice of ChannelParticipantsContacts. SortStable sorts slice of ChannelParticipantsContacts. func ChannelParticipantsContactsArray.Retain(keep func(x ChannelParticipantsContacts) bool) ChannelParticipantsContactsArray func ChannelParticipantsContactsArray.Sort(less func(a, b ChannelParticipantsContacts) bool) ChannelParticipantsContactsArray func ChannelParticipantsContactsArray.SortStable(less func(a, b ChannelParticipantsContacts) bool) ChannelParticipantsContactsArray func ChannelParticipantsFilterClassArray.AsChannelParticipantsContacts() (to ChannelParticipantsContactsArray)
ChannelParticipantSelf represents TL type `channelParticipantSelf#35a8bfa7`. Myself See https://core.telegram.org/constructor/channelParticipantSelf for reference. When did I join the channel/supergroup Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields User that invited me to the channel/supergroup User ID Whether I joined upon specific approval of an admin Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantSelf from given interface. GetDate returns value of Date field. GetInviterID returns value of InviterID field. GetUserID returns value of UserID field. GetViaRequest returns value of ViaRequest conditional field. SetFlags sets flags for non-zero fields. SetViaRequest sets value of ViaRequest 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. (*ChannelParticipantSelf) Zero() bool *ChannelParticipantSelf : ChannelParticipantClass *ChannelParticipantSelf : github.com/gotd/td/bin.BareDecoder *ChannelParticipantSelf : github.com/gotd/td/bin.BareEncoder *ChannelParticipantSelf : github.com/gotd/td/bin.Decoder *ChannelParticipantSelf : github.com/gotd/td/bin.Encoder *ChannelParticipantSelf : github.com/gotd/td/bin.Object *ChannelParticipantSelf : github.com/gotd/td/tdp.Object *ChannelParticipantSelf : fmt.Stringer func ChannelParticipantSelfArray.First() (v ChannelParticipantSelf, ok bool) func ChannelParticipantSelfArray.Last() (v ChannelParticipantSelf, ok bool) func (*ChannelParticipantSelfArray).Pop() (v ChannelParticipantSelf, ok bool) func (*ChannelParticipantSelfArray).PopFirst() (v ChannelParticipantSelf, ok bool)
ChannelParticipantSelfArray is adapter for slice of ChannelParticipantSelf. 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 ChannelParticipantSelf. Sort sorts slice of ChannelParticipantSelf. SortByDate sorts slice of ChannelParticipantSelf by Date. SortStable sorts slice of ChannelParticipantSelf. SortStableByDate sorts slice of ChannelParticipantSelf by Date. func ChannelParticipantClassArray.AsChannelParticipantSelf() (to ChannelParticipantSelfArray) func ChannelParticipantSelfArray.Retain(keep func(x ChannelParticipantSelf) bool) ChannelParticipantSelfArray func ChannelParticipantSelfArray.Sort(less func(a, b ChannelParticipantSelf) bool) ChannelParticipantSelfArray func ChannelParticipantSelfArray.SortByDate() ChannelParticipantSelfArray func ChannelParticipantSelfArray.SortStable(less func(a, b ChannelParticipantSelf) bool) ChannelParticipantSelfArray func ChannelParticipantSelfArray.SortStableByDate() ChannelParticipantSelfArray
ChannelParticipantsFilter boxes the ChannelParticipantsFilterClass providing a helper. ChannelParticipantsFilter ChannelParticipantsFilterClass Decode implements bin.Decoder for ChannelParticipantsFilterBox. Encode implements bin.Encode for ChannelParticipantsFilterBox. *ChannelParticipantsFilterBox : github.com/gotd/td/bin.Decoder *ChannelParticipantsFilterBox : github.com/gotd/td/bin.Encoder *ChannelParticipantsFilterBox : github.com/gotd/td/bin.Object
ChannelParticipantsFilterClass represents ChannelParticipantsFilter generic type. See https://core.telegram.org/type/ChannelParticipantsFilter for reference. Example: g, err := tg.DecodeChannelParticipantsFilter(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChannelParticipantsRecent: // channelParticipantsRecent#de3f3c79 case *tg.ChannelParticipantsAdmins: // channelParticipantsAdmins#b4608969 case *tg.ChannelParticipantsKicked: // channelParticipantsKicked#a3b54985 case *tg.ChannelParticipantsBots: // channelParticipantsBots#b0d1865b case *tg.ChannelParticipantsBanned: // channelParticipantsBanned#1427a5e1 case *tg.ChannelParticipantsSearch: // channelParticipantsSearch#656ac4b case *tg.ChannelParticipantsContacts: // channelParticipantsContacts#bb6ae88d case *tg.ChannelParticipantsMentions: // channelParticipantsMentions#e04b5ceb default: panic(v) } ( ChannelParticipantsFilterClass) Decode(b *bin.Buffer) error ( ChannelParticipantsFilterClass) DecodeBare(b *bin.Buffer) error ( ChannelParticipantsFilterClass) Encode(b *bin.Buffer) error ( ChannelParticipantsFilterClass) 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. *ChannelParticipantsAdmins *ChannelParticipantsBanned *ChannelParticipantsBots *ChannelParticipantsContacts *ChannelParticipantsKicked *ChannelParticipantsMentions *ChannelParticipantsRecent *ChannelParticipantsSearch ChannelParticipantsFilterClass : github.com/gotd/td/bin.BareDecoder ChannelParticipantsFilterClass : github.com/gotd/td/bin.BareEncoder ChannelParticipantsFilterClass : github.com/gotd/td/bin.Decoder ChannelParticipantsFilterClass : github.com/gotd/td/bin.Encoder ChannelParticipantsFilterClass : github.com/gotd/td/bin.Object ChannelParticipantsFilterClass : fmt.Stringer func DecodeChannelParticipantsFilter(buf *bin.Buffer) (ChannelParticipantsFilterClass, error) func ChannelParticipantsFilterClassArray.First() (v ChannelParticipantsFilterClass, ok bool) func ChannelParticipantsFilterClassArray.Last() (v ChannelParticipantsFilterClass, ok bool) func (*ChannelParticipantsFilterClassArray).Pop() (v ChannelParticipantsFilterClass, ok bool) func (*ChannelParticipantsFilterClassArray).PopFirst() (v ChannelParticipantsFilterClass, ok bool) func (*ChannelsGetParticipantsRequest).GetFilter() (value ChannelParticipantsFilterClass)
ChannelParticipantsFilterClassArray is adapter for slice of ChannelParticipantsFilterClass. AsChannelParticipantsBanned returns copy with only ChannelParticipantsBanned constructors. AsChannelParticipantsContacts returns copy with only ChannelParticipantsContacts constructors. AsChannelParticipantsKicked returns copy with only ChannelParticipantsKicked constructors. AsChannelParticipantsMentions returns copy with only ChannelParticipantsMentions constructors. AsChannelParticipantsSearch returns copy with only ChannelParticipantsSearch 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 ChannelParticipantsFilterClass. Sort sorts slice of ChannelParticipantsFilterClass. SortStable sorts slice of ChannelParticipantsFilterClass. func ChannelParticipantsFilterClassArray.Retain(keep func(x ChannelParticipantsFilterClass) bool) ChannelParticipantsFilterClassArray func ChannelParticipantsFilterClassArray.Sort(less func(a, b ChannelParticipantsFilterClass) bool) ChannelParticipantsFilterClassArray func ChannelParticipantsFilterClassArray.SortStable(less func(a, b ChannelParticipantsFilterClass) bool) ChannelParticipantsFilterClassArray
ChannelParticipantsKicked represents TL type `channelParticipantsKicked#a3b54985`. Fetch only kicked participants See https://core.telegram.org/constructor/channelParticipantsKicked for reference. Optional filter for searching kicked participants by name (otherwise empty) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantsKicked from given interface. GetQ returns value of Q 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. (*ChannelParticipantsKicked) Zero() bool *ChannelParticipantsKicked : ChannelParticipantsFilterClass *ChannelParticipantsKicked : github.com/gotd/td/bin.BareDecoder *ChannelParticipantsKicked : github.com/gotd/td/bin.BareEncoder *ChannelParticipantsKicked : github.com/gotd/td/bin.Decoder *ChannelParticipantsKicked : github.com/gotd/td/bin.Encoder *ChannelParticipantsKicked : github.com/gotd/td/bin.Object *ChannelParticipantsKicked : github.com/gotd/td/tdp.Object *ChannelParticipantsKicked : fmt.Stringer func ChannelParticipantsKickedArray.First() (v ChannelParticipantsKicked, ok bool) func ChannelParticipantsKickedArray.Last() (v ChannelParticipantsKicked, ok bool) func (*ChannelParticipantsKickedArray).Pop() (v ChannelParticipantsKicked, ok bool) func (*ChannelParticipantsKickedArray).PopFirst() (v ChannelParticipantsKicked, ok bool)
ChannelParticipantsKickedArray is adapter for slice of ChannelParticipantsKicked. 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 ChannelParticipantsKicked. Sort sorts slice of ChannelParticipantsKicked. SortStable sorts slice of ChannelParticipantsKicked. func ChannelParticipantsFilterClassArray.AsChannelParticipantsKicked() (to ChannelParticipantsKickedArray) func ChannelParticipantsKickedArray.Retain(keep func(x ChannelParticipantsKicked) bool) ChannelParticipantsKickedArray func ChannelParticipantsKickedArray.Sort(less func(a, b ChannelParticipantsKicked) bool) ChannelParticipantsKickedArray func ChannelParticipantsKickedArray.SortStable(less func(a, b ChannelParticipantsKicked) bool) ChannelParticipantsKickedArray
ChannelParticipantsMentions represents TL type `channelParticipantsMentions#e04b5ceb`. This filter is used when looking for supergroup members to mention. This filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific thread¹ through the comment section² of a channel. Links: 1. https://core.telegram.org/api/threads 2. https://core.telegram.org/api/threads#channel-comments See https://core.telegram.org/constructor/channelParticipantsMentions for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Filter by user name or username Use SetQ and GetQ helpers. Look only for users that posted in this thread¹ Links: 1) https://core.telegram.org/api/threads Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantsMentions from given interface. GetQ returns value of Q conditional field and boolean which is true if field was set. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetQ sets value of Q conditional field. SetTopMsgID sets value of TopMsgID 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. (*ChannelParticipantsMentions) Zero() bool *ChannelParticipantsMentions : ChannelParticipantsFilterClass *ChannelParticipantsMentions : github.com/gotd/td/bin.BareDecoder *ChannelParticipantsMentions : github.com/gotd/td/bin.BareEncoder *ChannelParticipantsMentions : github.com/gotd/td/bin.Decoder *ChannelParticipantsMentions : github.com/gotd/td/bin.Encoder *ChannelParticipantsMentions : github.com/gotd/td/bin.Object *ChannelParticipantsMentions : github.com/gotd/td/tdp.Object *ChannelParticipantsMentions : fmt.Stringer func ChannelParticipantsMentionsArray.First() (v ChannelParticipantsMentions, ok bool) func ChannelParticipantsMentionsArray.Last() (v ChannelParticipantsMentions, ok bool) func (*ChannelParticipantsMentionsArray).Pop() (v ChannelParticipantsMentions, ok bool) func (*ChannelParticipantsMentionsArray).PopFirst() (v ChannelParticipantsMentions, ok bool)
ChannelParticipantsMentionsArray is adapter for slice of ChannelParticipantsMentions. 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 ChannelParticipantsMentions. Sort sorts slice of ChannelParticipantsMentions. SortStable sorts slice of ChannelParticipantsMentions. func ChannelParticipantsFilterClassArray.AsChannelParticipantsMentions() (to ChannelParticipantsMentionsArray) func ChannelParticipantsMentionsArray.Retain(keep func(x ChannelParticipantsMentions) bool) ChannelParticipantsMentionsArray func ChannelParticipantsMentionsArray.Sort(less func(a, b ChannelParticipantsMentions) bool) ChannelParticipantsMentionsArray func ChannelParticipantsMentionsArray.SortStable(less func(a, b ChannelParticipantsMentions) bool) ChannelParticipantsMentionsArray
ChannelParticipantsRecent represents TL type `channelParticipantsRecent#de3f3c79`. Fetch only recent participants See https://core.telegram.org/constructor/channelParticipantsRecent 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. (*ChannelParticipantsRecent) Zero() bool *ChannelParticipantsRecent : ChannelParticipantsFilterClass *ChannelParticipantsRecent : github.com/gotd/td/bin.BareDecoder *ChannelParticipantsRecent : github.com/gotd/td/bin.BareEncoder *ChannelParticipantsRecent : github.com/gotd/td/bin.Decoder *ChannelParticipantsRecent : github.com/gotd/td/bin.Encoder *ChannelParticipantsRecent : github.com/gotd/td/bin.Object *ChannelParticipantsRecent : github.com/gotd/td/tdp.Object *ChannelParticipantsRecent : fmt.Stringer
ChannelParticipantsSearch represents TL type `channelParticipantsSearch#656ac4b`. Query participants by name See https://core.telegram.org/constructor/channelParticipantsSearch for reference. Optional filter for searching kicked participants by name (otherwise empty) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelParticipantsSearch from given interface. GetQ returns value of Q 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. (*ChannelParticipantsSearch) Zero() bool *ChannelParticipantsSearch : ChannelParticipantsFilterClass *ChannelParticipantsSearch : github.com/gotd/td/bin.BareDecoder *ChannelParticipantsSearch : github.com/gotd/td/bin.BareEncoder *ChannelParticipantsSearch : github.com/gotd/td/bin.Decoder *ChannelParticipantsSearch : github.com/gotd/td/bin.Encoder *ChannelParticipantsSearch : github.com/gotd/td/bin.Object *ChannelParticipantsSearch : github.com/gotd/td/tdp.Object *ChannelParticipantsSearch : fmt.Stringer func ChannelParticipantsSearchArray.First() (v ChannelParticipantsSearch, ok bool) func ChannelParticipantsSearchArray.Last() (v ChannelParticipantsSearch, ok bool) func (*ChannelParticipantsSearchArray).Pop() (v ChannelParticipantsSearch, ok bool) func (*ChannelParticipantsSearchArray).PopFirst() (v ChannelParticipantsSearch, ok bool)
ChannelParticipantsSearchArray is adapter for slice of ChannelParticipantsSearch. 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 ChannelParticipantsSearch. Sort sorts slice of ChannelParticipantsSearch. SortStable sorts slice of ChannelParticipantsSearch. func ChannelParticipantsFilterClassArray.AsChannelParticipantsSearch() (to ChannelParticipantsSearchArray) func ChannelParticipantsSearchArray.Retain(keep func(x ChannelParticipantsSearch) bool) ChannelParticipantsSearchArray func ChannelParticipantsSearchArray.Sort(less func(a, b ChannelParticipantsSearch) bool) ChannelParticipantsSearchArray func ChannelParticipantsSearchArray.SortStable(less func(a, b ChannelParticipantsSearch) bool) ChannelParticipantsSearchArray
ChannelPinnedTopicHandler is a ChannelPinnedTopic event handler. func UpdateDispatcher.OnChannelPinnedTopic(handler ChannelPinnedTopicHandler)
ChannelPinnedTopicsHandler is a ChannelPinnedTopics event handler. func UpdateDispatcher.OnChannelPinnedTopics(handler ChannelPinnedTopicsHandler)
ChannelReadMessagesContentsHandler is a ChannelReadMessagesContents event handler. func UpdateDispatcher.OnChannelReadMessagesContents(handler ChannelReadMessagesContentsHandler)
ChannelsAdminLogResults represents TL type `channels.adminLogResults#ed8af74d`. Admin log events See https://core.telegram.org/constructor/channels.adminLogResults for reference. Chats mentioned in events Admin log events Users mentioned in events Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsAdminLogResults from given interface. GetChats returns value of Chats field. GetEvents returns value of Events field. GetUsers returns value of Users 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. (*ChannelsAdminLogResults) Zero() bool *ChannelsAdminLogResults : github.com/gotd/td/bin.BareDecoder *ChannelsAdminLogResults : github.com/gotd/td/bin.BareEncoder *ChannelsAdminLogResults : github.com/gotd/td/bin.Decoder *ChannelsAdminLogResults : github.com/gotd/td/bin.Encoder *ChannelsAdminLogResults : github.com/gotd/td/bin.Object *ChannelsAdminLogResults : github.com/gotd/td/tdp.Object *ChannelsAdminLogResults : fmt.Stringer func (*Client).ChannelsGetAdminLog(ctx context.Context, request *ChannelsGetAdminLogRequest) (*ChannelsAdminLogResults, error)
ChannelsChannelParticipant represents TL type `channels.channelParticipant#dfb80317`. Represents a channel participant See https://core.telegram.org/constructor/channels.channelParticipant for reference. Mentioned chats The channel participant Users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsChannelParticipant from given interface. GetChats returns value of Chats field. GetParticipant returns value of Participant field. GetUsers returns value of Users 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. (*ChannelsChannelParticipant) Zero() bool *ChannelsChannelParticipant : github.com/gotd/td/bin.BareDecoder *ChannelsChannelParticipant : github.com/gotd/td/bin.BareEncoder *ChannelsChannelParticipant : github.com/gotd/td/bin.Decoder *ChannelsChannelParticipant : github.com/gotd/td/bin.Encoder *ChannelsChannelParticipant : github.com/gotd/td/bin.Object *ChannelsChannelParticipant : github.com/gotd/td/tdp.Object *ChannelsChannelParticipant : fmt.Stringer func (*Client).ChannelsGetParticipant(ctx context.Context, request *ChannelsGetParticipantRequest) (*ChannelsChannelParticipant, error)
ChannelsChannelParticipants represents TL type `channels.channelParticipants#9ab0feaf`. Represents multiple channel participants See https://core.telegram.org/constructor/channels.channelParticipants for reference. Mentioned chats Total number of participants that correspond to the given query Participants Users mentioned in participant info AsModified tries to map ChannelsChannelParticipants to ChannelsChannelParticipants. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsChannelParticipants from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetParticipants returns value of Participants field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapParticipants returns field Participants wrapped in ChannelParticipantClassArray 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. (*ChannelsChannelParticipants) Zero() bool *ChannelsChannelParticipants : ChannelsChannelParticipantsClass *ChannelsChannelParticipants : github.com/gotd/td/bin.BareDecoder *ChannelsChannelParticipants : github.com/gotd/td/bin.BareEncoder *ChannelsChannelParticipants : github.com/gotd/td/bin.Decoder *ChannelsChannelParticipants : github.com/gotd/td/bin.Encoder *ChannelsChannelParticipants : github.com/gotd/td/bin.Object *ChannelsChannelParticipants : github.com/gotd/td/tdp.Object *ChannelsChannelParticipants : fmt.Stringer func (*ChannelsChannelParticipants).AsModified() (*ChannelsChannelParticipants, bool) func ChannelsChannelParticipantsArray.First() (v ChannelsChannelParticipants, ok bool) func ChannelsChannelParticipantsArray.Last() (v ChannelsChannelParticipants, ok bool) func (*ChannelsChannelParticipantsArray).Pop() (v ChannelsChannelParticipants, ok bool) func (*ChannelsChannelParticipantsArray).PopFirst() (v ChannelsChannelParticipants, ok bool) func ChannelsChannelParticipantsClass.AsModified() (*ChannelsChannelParticipants, bool) func ChannelsChannelParticipantsClassArray.AppendOnlyModified(to []*ChannelsChannelParticipants) []*ChannelsChannelParticipants func ChannelsChannelParticipantsClassArray.AsModified() (to []*ChannelsChannelParticipants) func ChannelsChannelParticipantsClassArray.FirstAsModified() (v *ChannelsChannelParticipants, ok bool) func ChannelsChannelParticipantsClassArray.LastAsModified() (v *ChannelsChannelParticipants, ok bool) func (*ChannelsChannelParticipantsClassArray).PopAsModified() (v *ChannelsChannelParticipants, ok bool) func (*ChannelsChannelParticipantsClassArray).PopFirstAsModified() (v *ChannelsChannelParticipants, ok bool) func (*ChannelsChannelParticipantsNotModified).AsModified() (*ChannelsChannelParticipants, bool) func ChannelsChannelParticipantsClassArray.AppendOnlyModified(to []*ChannelsChannelParticipants) []*ChannelsChannelParticipants
ChannelsChannelParticipantsArray is adapter for slice of ChannelsChannelParticipants. 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 ChannelsChannelParticipants. Sort sorts slice of ChannelsChannelParticipants. SortStable sorts slice of ChannelsChannelParticipants. func ChannelsChannelParticipantsArray.Retain(keep func(x ChannelsChannelParticipants) bool) ChannelsChannelParticipantsArray func ChannelsChannelParticipantsArray.Sort(less func(a, b ChannelsChannelParticipants) bool) ChannelsChannelParticipantsArray func ChannelsChannelParticipantsArray.SortStable(less func(a, b ChannelsChannelParticipants) bool) ChannelsChannelParticipantsArray func ChannelsChannelParticipantsClassArray.AsChannelsChannelParticipants() (to ChannelsChannelParticipantsArray)
ChannelsChannelParticipants boxes the ChannelsChannelParticipantsClass providing a helper. ChannelParticipants ChannelsChannelParticipantsClass Decode implements bin.Decoder for ChannelsChannelParticipantsBox. Encode implements bin.Encode for ChannelsChannelParticipantsBox. *ChannelsChannelParticipantsBox : github.com/gotd/td/bin.Decoder *ChannelsChannelParticipantsBox : github.com/gotd/td/bin.Encoder *ChannelsChannelParticipantsBox : github.com/gotd/td/bin.Object
ChannelsChannelParticipantsClass represents channels.ChannelParticipants generic type. See https://core.telegram.org/type/channels.ChannelParticipants for reference. Example: g, err := tg.DecodeChannelsChannelParticipants(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChannelsChannelParticipants: // channels.channelParticipants#9ab0feaf case *tg.ChannelsChannelParticipantsNotModified: // channels.channelParticipantsNotModified#f0173fe9 default: panic(v) } AsModified tries to map ChannelsChannelParticipantsClass to ChannelsChannelParticipants. ( ChannelsChannelParticipantsClass) Decode(b *bin.Buffer) error ( ChannelsChannelParticipantsClass) DecodeBare(b *bin.Buffer) error ( ChannelsChannelParticipantsClass) Encode(b *bin.Buffer) error ( ChannelsChannelParticipantsClass) 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. *ChannelsChannelParticipants *ChannelsChannelParticipantsNotModified ChannelsChannelParticipantsClass : github.com/gotd/td/bin.BareDecoder ChannelsChannelParticipantsClass : github.com/gotd/td/bin.BareEncoder ChannelsChannelParticipantsClass : github.com/gotd/td/bin.Decoder ChannelsChannelParticipantsClass : github.com/gotd/td/bin.Encoder ChannelsChannelParticipantsClass : github.com/gotd/td/bin.Object ChannelsChannelParticipantsClass : fmt.Stringer func DecodeChannelsChannelParticipants(buf *bin.Buffer) (ChannelsChannelParticipantsClass, error) func ChannelsChannelParticipantsClassArray.First() (v ChannelsChannelParticipantsClass, ok bool) func ChannelsChannelParticipantsClassArray.Last() (v ChannelsChannelParticipantsClass, ok bool) func (*ChannelsChannelParticipantsClassArray).Pop() (v ChannelsChannelParticipantsClass, ok bool) func (*ChannelsChannelParticipantsClassArray).PopFirst() (v ChannelsChannelParticipantsClass, ok bool) func (*Client).ChannelsGetParticipants(ctx context.Context, request *ChannelsGetParticipantsRequest) (ChannelsChannelParticipantsClass, error)
ChannelsChannelParticipantsClassArray is adapter for slice of ChannelsChannelParticipantsClass. AppendOnlyModified appends only Modified constructors to given slice. AsChannelsChannelParticipants returns copy with only ChannelsChannelParticipants 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 ChannelsChannelParticipantsClass. Sort sorts slice of ChannelsChannelParticipantsClass. SortStable sorts slice of ChannelsChannelParticipantsClass. func ChannelsChannelParticipantsClassArray.Retain(keep func(x ChannelsChannelParticipantsClass) bool) ChannelsChannelParticipantsClassArray func ChannelsChannelParticipantsClassArray.Sort(less func(a, b ChannelsChannelParticipantsClass) bool) ChannelsChannelParticipantsClassArray func ChannelsChannelParticipantsClassArray.SortStable(less func(a, b ChannelsChannelParticipantsClass) bool) ChannelsChannelParticipantsClassArray
ChannelsChannelParticipantsNotModified represents TL type `channels.channelParticipantsNotModified#f0173fe9`. No new participant info could be found See https://core.telegram.org/constructor/channels.channelParticipantsNotModified for reference. AsModified tries to map ChannelsChannelParticipantsNotModified to ChannelsChannelParticipants. 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. (*ChannelsChannelParticipantsNotModified) Zero() bool *ChannelsChannelParticipantsNotModified : ChannelsChannelParticipantsClass *ChannelsChannelParticipantsNotModified : github.com/gotd/td/bin.BareDecoder *ChannelsChannelParticipantsNotModified : github.com/gotd/td/bin.BareEncoder *ChannelsChannelParticipantsNotModified : github.com/gotd/td/bin.Decoder *ChannelsChannelParticipantsNotModified : github.com/gotd/td/bin.Encoder *ChannelsChannelParticipantsNotModified : github.com/gotd/td/bin.Object *ChannelsChannelParticipantsNotModified : github.com/gotd/td/tdp.Object *ChannelsChannelParticipantsNotModified : fmt.Stringer
ChannelsCheckUsernameRequest represents TL type `channels.checkUsername#10e6bd2c`. Check if a username is free and can be assigned to a channel/supergroup See https://core.telegram.org/method/channels.checkUsername for reference. The channel/supergroup¹ that will assigned the specified username Links: 1) https://core.telegram.org/api/channel The username to check Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsCheckUsernameRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel 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. (*ChannelsCheckUsernameRequest) Zero() bool *ChannelsCheckUsernameRequest : github.com/gotd/td/bin.BareDecoder *ChannelsCheckUsernameRequest : github.com/gotd/td/bin.BareEncoder *ChannelsCheckUsernameRequest : github.com/gotd/td/bin.Decoder *ChannelsCheckUsernameRequest : github.com/gotd/td/bin.Encoder *ChannelsCheckUsernameRequest : github.com/gotd/td/bin.Object *ChannelsCheckUsernameRequest : github.com/gotd/td/tdp.Object *ChannelsCheckUsernameRequest : fmt.Stringer func (*Client).ChannelsCheckUsername(ctx context.Context, request *ChannelsCheckUsernameRequest) (bool, error)
ChannelsClickSponsoredMessageRequest represents TL type `channels.clickSponsoredMessage#18afbc93`. Informs the server that the user has either: See https://core.telegram.org/method/channels.clickSponsoredMessage for reference. Channel where the sponsored message was posted Message ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsClickSponsoredMessageRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetRandomID returns value of RandomID 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. (*ChannelsClickSponsoredMessageRequest) Zero() bool *ChannelsClickSponsoredMessageRequest : github.com/gotd/td/bin.BareDecoder *ChannelsClickSponsoredMessageRequest : github.com/gotd/td/bin.BareEncoder *ChannelsClickSponsoredMessageRequest : github.com/gotd/td/bin.Decoder *ChannelsClickSponsoredMessageRequest : github.com/gotd/td/bin.Encoder *ChannelsClickSponsoredMessageRequest : github.com/gotd/td/bin.Object *ChannelsClickSponsoredMessageRequest : github.com/gotd/td/tdp.Object *ChannelsClickSponsoredMessageRequest : fmt.Stringer func (*Client).ChannelsClickSponsoredMessage(ctx context.Context, request *ChannelsClickSponsoredMessageRequest) (bool, error)
ChannelsConvertToGigagroupRequest represents TL type `channels.convertToGigagroup#b290c69`. Convert a supergroup¹ to a gigagroup², when requested by channel suggestions³. Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/api/channel 3. https://core.telegram.org/api/config#channel-suggestions See https://core.telegram.org/method/channels.convertToGigagroup for reference. The supergroup¹ to convert Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsConvertToGigagroupRequest 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. (*ChannelsConvertToGigagroupRequest) Zero() bool *ChannelsConvertToGigagroupRequest : github.com/gotd/td/bin.BareDecoder *ChannelsConvertToGigagroupRequest : github.com/gotd/td/bin.BareEncoder *ChannelsConvertToGigagroupRequest : github.com/gotd/td/bin.Decoder *ChannelsConvertToGigagroupRequest : github.com/gotd/td/bin.Encoder *ChannelsConvertToGigagroupRequest : github.com/gotd/td/bin.Object *ChannelsConvertToGigagroupRequest : github.com/gotd/td/tdp.Object *ChannelsConvertToGigagroupRequest : fmt.Stringer
ChannelsCreateChannelRequest represents TL type `channels.createChannel#91006707`. Create a supergroup/channel¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.createChannel for reference. Channel description Geogroup address, see here »¹ for more info on geogroups. Links: 1) https://core.telegram.org/api/nearby Use SetAddress and GetAddress helpers. Whether to create a channel¹ Links: 1) https://core.telegram.org/api/channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the supergroup is being created to import messages from a foreign chat service using messages.initHistoryImport¹ Links: 1) https://core.telegram.org/method/messages.initHistoryImport Whether to create a forum¹ Links: 1) https://core.telegram.org/api/forum Geogroup location, see here »¹ for more info on geogroups. Links: 1) https://core.telegram.org/api/nearby Use SetGeoPoint and GetGeoPoint helpers. Whether to create a supergroup¹ Links: 1) https://core.telegram.org/api/channel Time-to-live of all messages that will be sent in the supergroup: once message date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use messages.setDefaultHistoryTTL¹ to edit this value later. Links: 1) https://core.telegram.org/method/messages.setDefaultHistoryTTL Use SetTTLPeriod and GetTTLPeriod helpers. Channel title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsCreateChannelRequest from given interface. GetAbout returns value of About field. GetAddress returns value of Address conditional field and boolean which is true if field was set. GetBroadcast returns value of Broadcast conditional field. GetForImport returns value of ForImport conditional field. GetForum returns value of Forum conditional field. 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. GetMegagroup returns value of Megagroup conditional field. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. GetTitle returns value of Title field. SetAddress sets value of Address conditional field. SetBroadcast sets value of Broadcast conditional field. SetFlags sets flags for non-zero fields. SetForImport sets value of ForImport conditional field. SetForum sets value of Forum conditional field. SetGeoPoint sets value of GeoPoint conditional field. SetMegagroup sets value of Megagroup conditional field. SetTTLPeriod sets value of TTLPeriod 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. (*ChannelsCreateChannelRequest) Zero() bool *ChannelsCreateChannelRequest : github.com/gotd/td/bin.BareDecoder *ChannelsCreateChannelRequest : github.com/gotd/td/bin.BareEncoder *ChannelsCreateChannelRequest : github.com/gotd/td/bin.Decoder *ChannelsCreateChannelRequest : github.com/gotd/td/bin.Encoder *ChannelsCreateChannelRequest : github.com/gotd/td/bin.Object *ChannelsCreateChannelRequest : github.com/gotd/td/tdp.Object *ChannelsCreateChannelRequest : fmt.Stringer func (*Client).ChannelsCreateChannel(ctx context.Context, request *ChannelsCreateChannelRequest) (UpdatesClass, error)
ChannelsCreateForumTopicRequest represents TL type `channels.createForumTopic#f40c0224`. Create a forum topic¹; requires manage_topics rights². Links: 1. https://core.telegram.org/api/forum 2. https://core.telegram.org/api/rights See https://core.telegram.org/method/channels.createForumTopic for reference. The forum¹ Links: 1) https://core.telegram.org/api/forum Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Use SetIconColor and GetIconColor helpers. ID of the custom emoji¹ used as topic icon. Telegram Premium² users can use any custom emoji, other users can only use the custom emojis contained in the inputStickerSetEmojiDefaultTopicIcons³ emoji pack. Links: 1) https://core.telegram.org/api/custom-emoji 2) https://core.telegram.org/api/premium 3) https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons Use SetIconEmojiID and GetIconEmojiID helpers. Unique client message ID to prevent duplicate sending of the same event Create the topic as the specified peer Use SetSendAs and GetSendAs helpers. Topic title (maximum UTF-8 length: 128) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsCreateForumTopicRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetIconColor returns value of IconColor conditional field and boolean which is true if field was set. GetIconEmojiID returns value of IconEmojiID conditional field and boolean which is true if field was set. GetRandomID returns value of RandomID field. GetSendAs returns value of SendAs conditional field and boolean which is true if field was set. GetTitle returns value of Title field. SetFlags sets flags for non-zero fields. SetIconColor sets value of IconColor conditional field. SetIconEmojiID sets value of IconEmojiID conditional field. SetSendAs sets value of SendAs 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. (*ChannelsCreateForumTopicRequest) Zero() bool *ChannelsCreateForumTopicRequest : github.com/gotd/td/bin.BareDecoder *ChannelsCreateForumTopicRequest : github.com/gotd/td/bin.BareEncoder *ChannelsCreateForumTopicRequest : github.com/gotd/td/bin.Decoder *ChannelsCreateForumTopicRequest : github.com/gotd/td/bin.Encoder *ChannelsCreateForumTopicRequest : github.com/gotd/td/bin.Object *ChannelsCreateForumTopicRequest : github.com/gotd/td/tdp.Object *ChannelsCreateForumTopicRequest : fmt.Stringer func (*Client).ChannelsCreateForumTopic(ctx context.Context, request *ChannelsCreateForumTopicRequest) (UpdatesClass, error)
ChannelsDeactivateAllUsernamesRequest represents TL type `channels.deactivateAllUsernames#a245dd3`. Disable all purchased usernames of a supergroup or channel See https://core.telegram.org/method/channels.deactivateAllUsernames for reference. The supergroup¹ to convert Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsDeactivateAllUsernamesRequest 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. (*ChannelsDeactivateAllUsernamesRequest) Zero() bool *ChannelsDeactivateAllUsernamesRequest : github.com/gotd/td/bin.BareDecoder *ChannelsDeactivateAllUsernamesRequest : github.com/gotd/td/bin.BareEncoder *ChannelsDeactivateAllUsernamesRequest : github.com/gotd/td/bin.Decoder *ChannelsDeactivateAllUsernamesRequest : github.com/gotd/td/bin.Encoder *ChannelsDeactivateAllUsernamesRequest : github.com/gotd/td/bin.Object *ChannelsDeactivateAllUsernamesRequest : github.com/gotd/td/tdp.Object *ChannelsDeactivateAllUsernamesRequest : fmt.Stringer
ChannelsDeleteChannelRequest represents TL type `channels.deleteChannel#c0111fe3`. Delete a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.deleteChannel for reference. The supergroup¹ to convert Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsDeleteChannelRequest 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. (*ChannelsDeleteChannelRequest) Zero() bool *ChannelsDeleteChannelRequest : github.com/gotd/td/bin.BareDecoder *ChannelsDeleteChannelRequest : github.com/gotd/td/bin.BareEncoder *ChannelsDeleteChannelRequest : github.com/gotd/td/bin.Decoder *ChannelsDeleteChannelRequest : github.com/gotd/td/bin.Encoder *ChannelsDeleteChannelRequest : github.com/gotd/td/bin.Object *ChannelsDeleteChannelRequest : github.com/gotd/td/tdp.Object *ChannelsDeleteChannelRequest : fmt.Stringer
ChannelsDeleteHistoryRequest represents TL type `channels.deleteHistory#9baa9647`. Delete the history of a supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.deleteHistory for reference. Supergroup¹ whose history must be deleted Links: 1) https://core.telegram.org/api/channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the history should be deleted for everyone ID of message up to which the history must be deleted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsDeleteHistoryRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetForEveryone returns value of ForEveryone conditional field. GetMaxID returns value of MaxID field. SetFlags sets flags for non-zero fields. SetForEveryone sets value of ForEveryone 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. (*ChannelsDeleteHistoryRequest) Zero() bool *ChannelsDeleteHistoryRequest : github.com/gotd/td/bin.BareDecoder *ChannelsDeleteHistoryRequest : github.com/gotd/td/bin.BareEncoder *ChannelsDeleteHistoryRequest : github.com/gotd/td/bin.Decoder *ChannelsDeleteHistoryRequest : github.com/gotd/td/bin.Encoder *ChannelsDeleteHistoryRequest : github.com/gotd/td/bin.Object *ChannelsDeleteHistoryRequest : github.com/gotd/td/tdp.Object *ChannelsDeleteHistoryRequest : fmt.Stringer func (*Client).ChannelsDeleteHistory(ctx context.Context, request *ChannelsDeleteHistoryRequest) (UpdatesClass, error)
ChannelsDeleteMessagesRequest represents TL type `channels.deleteMessages#84c1fd4e`. Delete messages in a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.deleteMessages for reference. Channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel IDs of messages to delete Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsDeleteMessagesRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel 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. (*ChannelsDeleteMessagesRequest) Zero() bool *ChannelsDeleteMessagesRequest : github.com/gotd/td/bin.BareDecoder *ChannelsDeleteMessagesRequest : github.com/gotd/td/bin.BareEncoder *ChannelsDeleteMessagesRequest : github.com/gotd/td/bin.Decoder *ChannelsDeleteMessagesRequest : github.com/gotd/td/bin.Encoder *ChannelsDeleteMessagesRequest : github.com/gotd/td/bin.Object *ChannelsDeleteMessagesRequest : github.com/gotd/td/tdp.Object *ChannelsDeleteMessagesRequest : fmt.Stringer func (*Client).ChannelsDeleteMessages(ctx context.Context, request *ChannelsDeleteMessagesRequest) (*MessagesAffectedMessages, error)
ChannelsDeleteParticipantHistoryRequest represents TL type `channels.deleteParticipantHistory#367544db`. Delete all messages sent by a specific participant of a given supergroup See https://core.telegram.org/method/channels.deleteParticipantHistory for reference. Supergroup The participant whose messages should be deleted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsDeleteParticipantHistoryRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetParticipant returns value of Participant 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. (*ChannelsDeleteParticipantHistoryRequest) Zero() bool *ChannelsDeleteParticipantHistoryRequest : github.com/gotd/td/bin.BareDecoder *ChannelsDeleteParticipantHistoryRequest : github.com/gotd/td/bin.BareEncoder *ChannelsDeleteParticipantHistoryRequest : github.com/gotd/td/bin.Decoder *ChannelsDeleteParticipantHistoryRequest : github.com/gotd/td/bin.Encoder *ChannelsDeleteParticipantHistoryRequest : github.com/gotd/td/bin.Object *ChannelsDeleteParticipantHistoryRequest : github.com/gotd/td/tdp.Object *ChannelsDeleteParticipantHistoryRequest : fmt.Stringer func (*Client).ChannelsDeleteParticipantHistory(ctx context.Context, request *ChannelsDeleteParticipantHistoryRequest) (*MessagesAffectedHistory, error)
ChannelsDeleteTopicHistoryRequest represents TL type `channels.deleteTopicHistory#34435f2d`. Delete message history of a forum topic¹ Links: 1. https://core.telegram.org/api/forum See https://core.telegram.org/method/channels.deleteTopicHistory for reference. Forum Topic ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsDeleteTopicHistoryRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetTopMsgID returns value of TopMsgID 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. (*ChannelsDeleteTopicHistoryRequest) Zero() bool *ChannelsDeleteTopicHistoryRequest : github.com/gotd/td/bin.BareDecoder *ChannelsDeleteTopicHistoryRequest : github.com/gotd/td/bin.BareEncoder *ChannelsDeleteTopicHistoryRequest : github.com/gotd/td/bin.Decoder *ChannelsDeleteTopicHistoryRequest : github.com/gotd/td/bin.Encoder *ChannelsDeleteTopicHistoryRequest : github.com/gotd/td/bin.Object *ChannelsDeleteTopicHistoryRequest : github.com/gotd/td/tdp.Object *ChannelsDeleteTopicHistoryRequest : fmt.Stringer func (*Client).ChannelsDeleteTopicHistory(ctx context.Context, request *ChannelsDeleteTopicHistoryRequest) (*MessagesAffectedHistory, error)
ChannelsEditAdminRequest represents TL type `channels.editAdmin#d33c8902`. Modify the admin rights of a user in a supergroup/channel¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.editAdmin for reference. The admin rights The supergroup/channel¹. Links: 1) https://core.telegram.org/api/channel Indicates the role (rank) of the admin in the group: just an arbitrary string The ID of the user whose admin rights should be modified Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsEditAdminRequest from given interface. GetAdminRights returns value of AdminRights field. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetRank returns value of Rank 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. (*ChannelsEditAdminRequest) Zero() bool *ChannelsEditAdminRequest : github.com/gotd/td/bin.BareDecoder *ChannelsEditAdminRequest : github.com/gotd/td/bin.BareEncoder *ChannelsEditAdminRequest : github.com/gotd/td/bin.Decoder *ChannelsEditAdminRequest : github.com/gotd/td/bin.Encoder *ChannelsEditAdminRequest : github.com/gotd/td/bin.Object *ChannelsEditAdminRequest : github.com/gotd/td/tdp.Object *ChannelsEditAdminRequest : fmt.Stringer func (*Client).ChannelsEditAdmin(ctx context.Context, request *ChannelsEditAdminRequest) (UpdatesClass, error)
ChannelsEditBannedRequest represents TL type `channels.editBanned#96e6cd81`. Ban/unban/kick a user in a supergroup/channel¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.editBanned for reference. The banned rights The supergroup/channel¹. Links: 1) https://core.telegram.org/api/channel Participant to ban Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsEditBannedRequest from given interface. GetBannedRights returns value of BannedRights field. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetParticipant returns value of Participant 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. (*ChannelsEditBannedRequest) Zero() bool *ChannelsEditBannedRequest : github.com/gotd/td/bin.BareDecoder *ChannelsEditBannedRequest : github.com/gotd/td/bin.BareEncoder *ChannelsEditBannedRequest : github.com/gotd/td/bin.Decoder *ChannelsEditBannedRequest : github.com/gotd/td/bin.Encoder *ChannelsEditBannedRequest : github.com/gotd/td/bin.Object *ChannelsEditBannedRequest : github.com/gotd/td/tdp.Object *ChannelsEditBannedRequest : fmt.Stringer func (*Client).ChannelsEditBanned(ctx context.Context, request *ChannelsEditBannedRequest) (UpdatesClass, error)
ChannelsEditCreatorRequest represents TL type `channels.editCreator#8f38cd1f`. Transfer channel ownership See https://core.telegram.org/method/channels.editCreator for reference. Channel 2FA password¹ of account Links: 1) https://core.telegram.org/api/srp New channel owner Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsEditCreatorRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetPassword returns value of Password field. GetPasswordAsNotEmpty returns mapped value of Password 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. (*ChannelsEditCreatorRequest) Zero() bool *ChannelsEditCreatorRequest : github.com/gotd/td/bin.BareDecoder *ChannelsEditCreatorRequest : github.com/gotd/td/bin.BareEncoder *ChannelsEditCreatorRequest : github.com/gotd/td/bin.Decoder *ChannelsEditCreatorRequest : github.com/gotd/td/bin.Encoder *ChannelsEditCreatorRequest : github.com/gotd/td/bin.Object *ChannelsEditCreatorRequest : github.com/gotd/td/tdp.Object *ChannelsEditCreatorRequest : fmt.Stringer func (*Client).ChannelsEditCreator(ctx context.Context, request *ChannelsEditCreatorRequest) (UpdatesClass, error)
ChannelsEditForumTopicRequest represents TL type `channels.editForumTopic#f4dfa185`. Edit forum topic¹; requires manage_topics rights². Links: 1. https://core.telegram.org/api/forum 2. https://core.telegram.org/api/rights See https://core.telegram.org/method/channels.editForumTopic for reference. Supergroup If present, will update the open/closed status of the topic. Use SetClosed and GetClosed helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If present, will hide/unhide the topic (only valid for the "General" topic, id=1). Use SetHidden and GetHidden helpers. If present, updates the custom emoji¹ used as topic icon. Telegram Premium² users can use any custom emoji, other users can only use the custom emojis contained in the inputStickerSetEmojiDefaultTopicIcons³ emoji pack. Pass 0 to switch to the fallback topic icon. Links: 1) https://core.telegram.org/api/custom-emoji 2) https://core.telegram.org/api/premium 3) https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons Use SetIconEmojiID and GetIconEmojiID helpers. If present, will update the topic title (maximum UTF-8 length: 128). Use SetTitle and GetTitle helpers. Topic ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsEditForumTopicRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetClosed returns value of Closed conditional field and boolean which is true if field was set. GetHidden returns value of Hidden conditional field and boolean which is true if field was set. GetIconEmojiID returns value of IconEmojiID 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. GetTopicID returns value of TopicID field. SetClosed sets value of Closed conditional field. SetFlags sets flags for non-zero fields. SetHidden sets value of Hidden conditional field. SetIconEmojiID sets value of IconEmojiID 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. (*ChannelsEditForumTopicRequest) Zero() bool *ChannelsEditForumTopicRequest : github.com/gotd/td/bin.BareDecoder *ChannelsEditForumTopicRequest : github.com/gotd/td/bin.BareEncoder *ChannelsEditForumTopicRequest : github.com/gotd/td/bin.Decoder *ChannelsEditForumTopicRequest : github.com/gotd/td/bin.Encoder *ChannelsEditForumTopicRequest : github.com/gotd/td/bin.Object *ChannelsEditForumTopicRequest : github.com/gotd/td/tdp.Object *ChannelsEditForumTopicRequest : fmt.Stringer func (*Client).ChannelsEditForumTopic(ctx context.Context, request *ChannelsEditForumTopicRequest) (UpdatesClass, error)
ChannelsEditLocationRequest represents TL type `channels.editLocation#58e63f6d`. Edit location of geogroup, see here »¹ for more info on geogroups. Links: 1. https://core.telegram.org/api/nearby See https://core.telegram.org/method/channels.editLocation for reference. Address string Geogroup¹ Links: 1) https://core.telegram.org/api/channel New geolocation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsEditLocationRequest from given interface. GetAddress returns value of Address field. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetGeoPoint returns value of GeoPoint field. GetGeoPointAsNotEmpty returns mapped value of GeoPoint 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. (*ChannelsEditLocationRequest) Zero() bool *ChannelsEditLocationRequest : github.com/gotd/td/bin.BareDecoder *ChannelsEditLocationRequest : github.com/gotd/td/bin.BareEncoder *ChannelsEditLocationRequest : github.com/gotd/td/bin.Decoder *ChannelsEditLocationRequest : github.com/gotd/td/bin.Encoder *ChannelsEditLocationRequest : github.com/gotd/td/bin.Object *ChannelsEditLocationRequest : github.com/gotd/td/tdp.Object *ChannelsEditLocationRequest : fmt.Stringer func (*Client).ChannelsEditLocation(ctx context.Context, request *ChannelsEditLocationRequest) (bool, error)
ChannelsEditPhotoRequest represents TL type `channels.editPhoto#f12e57c9`. Change the photo of a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.editPhoto for reference. Channel/supergroup whose photo should be edited New photo Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsEditPhotoRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetPhoto returns value of Photo 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. (*ChannelsEditPhotoRequest) Zero() bool *ChannelsEditPhotoRequest : github.com/gotd/td/bin.BareDecoder *ChannelsEditPhotoRequest : github.com/gotd/td/bin.BareEncoder *ChannelsEditPhotoRequest : github.com/gotd/td/bin.Decoder *ChannelsEditPhotoRequest : github.com/gotd/td/bin.Encoder *ChannelsEditPhotoRequest : github.com/gotd/td/bin.Object *ChannelsEditPhotoRequest : github.com/gotd/td/tdp.Object *ChannelsEditPhotoRequest : fmt.Stringer func (*Client).ChannelsEditPhoto(ctx context.Context, request *ChannelsEditPhotoRequest) (UpdatesClass, error)
ChannelsEditTitleRequest represents TL type `channels.editTitle#566decd0`. Edit the name of a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.editTitle for reference. Channel/supergroup New name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsEditTitleRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetTitle returns value of Title 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. (*ChannelsEditTitleRequest) Zero() bool *ChannelsEditTitleRequest : github.com/gotd/td/bin.BareDecoder *ChannelsEditTitleRequest : github.com/gotd/td/bin.BareEncoder *ChannelsEditTitleRequest : github.com/gotd/td/bin.Decoder *ChannelsEditTitleRequest : github.com/gotd/td/bin.Encoder *ChannelsEditTitleRequest : github.com/gotd/td/bin.Object *ChannelsEditTitleRequest : github.com/gotd/td/tdp.Object *ChannelsEditTitleRequest : fmt.Stringer func (*Client).ChannelsEditTitle(ctx context.Context, request *ChannelsEditTitleRequest) (UpdatesClass, error)
ChannelsExportMessageLinkRequest represents TL type `channels.exportMessageLink#e63fadeb`. Get link and embed info of a message in a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.exportMessageLink for reference. Channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to include other grouped media (for albums) Message ID Whether to also include a thread ID, if available, inside of the link Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsExportMessageLinkRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetGrouped returns value of Grouped conditional field. GetID returns value of ID field. GetThread returns value of Thread conditional field. SetFlags sets flags for non-zero fields. SetGrouped sets value of Grouped conditional field. SetThread sets value of Thread 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. (*ChannelsExportMessageLinkRequest) Zero() bool *ChannelsExportMessageLinkRequest : github.com/gotd/td/bin.BareDecoder *ChannelsExportMessageLinkRequest : github.com/gotd/td/bin.BareEncoder *ChannelsExportMessageLinkRequest : github.com/gotd/td/bin.Decoder *ChannelsExportMessageLinkRequest : github.com/gotd/td/bin.Encoder *ChannelsExportMessageLinkRequest : github.com/gotd/td/bin.Object *ChannelsExportMessageLinkRequest : github.com/gotd/td/tdp.Object *ChannelsExportMessageLinkRequest : fmt.Stringer func (*Client).ChannelsExportMessageLink(ctx context.Context, request *ChannelsExportMessageLinkRequest) (*ExportedMessageLink, error)
ChannelsGetAdminedPublicChannelsRequest represents TL type `channels.getAdminedPublicChannels#f8b036af`. Get channels/supergroups/geogroups¹ we're admin in. Usually called when the user exceeds the limit² for owned public channels/supergroups/geogroups³, and the user is given the choice to remove one of his channels/supergroups/geogroups. Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/constructor/config 3. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.getAdminedPublicChannels for reference. Get geogroups If set and the user has reached the limit of owned public channels/supergroups/geogroups¹, instead of returning the channel list one of the specified errors² will be returned.Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in channels checkUsername³/channels.updateUsername⁴. Links: 1) https://core.telegram.org/api/channel 2) https://core.telegram.org#possible-errors 3) https://core.telegram.org/method/channels.checkUsername 4) https://core.telegram.org/method/channels.updateUsername 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 ChannelsGetAdminedPublicChannelsRequest from given interface. GetByLocation returns value of ByLocation conditional field. GetCheckLimit returns value of CheckLimit conditional field. SetByLocation sets value of ByLocation conditional field. SetCheckLimit sets value of CheckLimit 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. (*ChannelsGetAdminedPublicChannelsRequest) Zero() bool *ChannelsGetAdminedPublicChannelsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetAdminedPublicChannelsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetAdminedPublicChannelsRequest : github.com/gotd/td/bin.Decoder *ChannelsGetAdminedPublicChannelsRequest : github.com/gotd/td/bin.Encoder *ChannelsGetAdminedPublicChannelsRequest : github.com/gotd/td/bin.Object *ChannelsGetAdminedPublicChannelsRequest : github.com/gotd/td/tdp.Object *ChannelsGetAdminedPublicChannelsRequest : fmt.Stringer func (*Client).ChannelsGetAdminedPublicChannels(ctx context.Context, request *ChannelsGetAdminedPublicChannelsRequest) (MessagesChatsClass, error)
ChannelsGetAdminLogRequest represents TL type `channels.getAdminLog#33ddf480`. Get the admin log of a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.getAdminLog for reference. Only show events from these admins Use SetAdmins and GetAdmins helpers. Channel Event filter Use SetEventsFilter and GetEventsFilter helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Maximum ID of message to return (see pagination¹) Links: 1) https://core.telegram.org/api/offsets Minimum ID of message to return (see pagination¹) Links: 1) https://core.telegram.org/api/offsets Search query, can be empty Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetAdminLogRequest from given interface. GetAdmins returns value of Admins conditional field and boolean which is true if field was set. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetEventsFilter returns value of EventsFilter conditional field and boolean which is true if field was set. GetLimit returns value of Limit field. GetMaxID returns value of MaxID field. GetMinID returns value of MinID field. GetQ returns value of Q field. MapAdmins returns field Admins wrapped in InputUserClassArray helper. SetAdmins sets value of Admins conditional field. SetEventsFilter sets value of EventsFilter 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. (*ChannelsGetAdminLogRequest) Zero() bool *ChannelsGetAdminLogRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetAdminLogRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetAdminLogRequest : github.com/gotd/td/bin.Decoder *ChannelsGetAdminLogRequest : github.com/gotd/td/bin.Encoder *ChannelsGetAdminLogRequest : github.com/gotd/td/bin.Object *ChannelsGetAdminLogRequest : github.com/gotd/td/tdp.Object *ChannelsGetAdminLogRequest : fmt.Stringer func (*Client).ChannelsGetAdminLog(ctx context.Context, request *ChannelsGetAdminLogRequest) (*ChannelsAdminLogResults, error)
ChannelsGetChannelRecommendationsRequest represents TL type `channels.getChannelRecommendations#83b70d97`. Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases. See https://core.telegram.org/method/channels.getChannelRecommendations for reference. The supergroup¹ to convert Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetChannelRecommendationsRequest 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. (*ChannelsGetChannelRecommendationsRequest) Zero() bool *ChannelsGetChannelRecommendationsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetChannelRecommendationsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetChannelRecommendationsRequest : github.com/gotd/td/bin.Decoder *ChannelsGetChannelRecommendationsRequest : github.com/gotd/td/bin.Encoder *ChannelsGetChannelRecommendationsRequest : github.com/gotd/td/bin.Object *ChannelsGetChannelRecommendationsRequest : github.com/gotd/td/tdp.Object *ChannelsGetChannelRecommendationsRequest : fmt.Stringer
ChannelsGetChannelsRequest represents TL type `channels.getChannels#a7f6bbb`. Get info about channels/supergroups¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.getChannels for reference. IDs of channels/supergroups to get info about Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetChannelsRequest from given interface. GetID returns value of ID field. MapID returns field ID wrapped in InputChannelClassArray 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. (*ChannelsGetChannelsRequest) Zero() bool *ChannelsGetChannelsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetChannelsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetChannelsRequest : github.com/gotd/td/bin.Decoder *ChannelsGetChannelsRequest : github.com/gotd/td/bin.Encoder *ChannelsGetChannelsRequest : github.com/gotd/td/bin.Object *ChannelsGetChannelsRequest : github.com/gotd/td/tdp.Object *ChannelsGetChannelsRequest : fmt.Stringer
ChannelsGetForumTopicsByIDRequest represents TL type `channels.getForumTopicsByID#b0831eb9`. Get forum topics by their ID See https://core.telegram.org/method/channels.getForumTopicsByID for reference. Forum Topic IDs Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetForumTopicsByIDRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetTopics returns value of Topics 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. (*ChannelsGetForumTopicsByIDRequest) Zero() bool *ChannelsGetForumTopicsByIDRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetForumTopicsByIDRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetForumTopicsByIDRequest : github.com/gotd/td/bin.Decoder *ChannelsGetForumTopicsByIDRequest : github.com/gotd/td/bin.Encoder *ChannelsGetForumTopicsByIDRequest : github.com/gotd/td/bin.Object *ChannelsGetForumTopicsByIDRequest : github.com/gotd/td/tdp.Object *ChannelsGetForumTopicsByIDRequest : fmt.Stringer func (*Client).ChannelsGetForumTopicsByID(ctx context.Context, request *ChannelsGetForumTopicsByIDRequest) (*MessagesForumTopics, error)
ChannelsGetForumTopicsRequest represents TL type `channels.getForumTopics#de560d1`. Get topics of a forum¹ Links: 1. https://core.telegram.org/api/forum See https://core.telegram.org/method/channels.getForumTopics for reference. Supergroup Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Maximum number of results to return, see pagination¹. For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit. Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹, date of the last message of the last found topic. Use 0 or any date in the future to get results from the last topic. Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹, ID of the last message of the last found topic (or initially 0). Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹, ID of the last found topic (or initially 0). Links: 1) https://core.telegram.org/api/offsets Search query Use SetQ and GetQ helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetForumTopicsRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetLimit returns value of Limit field. GetOffsetDate returns value of OffsetDate field. GetOffsetID returns value of OffsetID field. GetOffsetTopic returns value of OffsetTopic field. GetQ returns value of Q conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetQ sets value of Q 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. (*ChannelsGetForumTopicsRequest) Zero() bool *ChannelsGetForumTopicsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetForumTopicsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetForumTopicsRequest : github.com/gotd/td/bin.Decoder *ChannelsGetForumTopicsRequest : github.com/gotd/td/bin.Encoder *ChannelsGetForumTopicsRequest : github.com/gotd/td/bin.Object *ChannelsGetForumTopicsRequest : github.com/gotd/td/tdp.Object *ChannelsGetForumTopicsRequest : fmt.Stringer func (*Client).ChannelsGetForumTopics(ctx context.Context, request *ChannelsGetForumTopicsRequest) (*MessagesForumTopics, error)
ChannelsGetFullChannelRequest represents TL type `channels.getFullChannel#8736a09`. Get full info about a supergroup¹, gigagroup² or channel³ Links: 1. https://core.telegram.org/api/channel#supergroups 2. https://core.telegram.org/api/channel#gigagroups 3. https://core.telegram.org/api/channel#channels See https://core.telegram.org/method/channels.getFullChannel for reference. The supergroup¹ to convert Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetFullChannelRequest 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. (*ChannelsGetFullChannelRequest) Zero() bool *ChannelsGetFullChannelRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetFullChannelRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetFullChannelRequest : github.com/gotd/td/bin.Decoder *ChannelsGetFullChannelRequest : github.com/gotd/td/bin.Encoder *ChannelsGetFullChannelRequest : github.com/gotd/td/bin.Object *ChannelsGetFullChannelRequest : github.com/gotd/td/tdp.Object *ChannelsGetFullChannelRequest : fmt.Stringer
ChannelsGetGroupsForDiscussionRequest represents TL type `channels.getGroupsForDiscussion#f5dad378`. Get all groups that can be used as discussion groups¹. Returned basic group chats¹ must be first upgraded to supergroups² before they can be set as a discussion group. To set a returned supergroup as a discussion group, access to its old messages must be enabled using channels.togglePreHistoryHidden³, first. Links: 1. https://core.telegram.org/api/discussion 2. https://core.telegram.org/api/channel#basic-groups 3. https://core.telegram.org/api/channel#supergroups 4. https://core.telegram.org/method/channels.togglePreHistoryHidden See https://core.telegram.org/method/channels.getGroupsForDiscussion 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. (*ChannelsGetGroupsForDiscussionRequest) Zero() bool *ChannelsGetGroupsForDiscussionRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetGroupsForDiscussionRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetGroupsForDiscussionRequest : github.com/gotd/td/bin.Decoder *ChannelsGetGroupsForDiscussionRequest : github.com/gotd/td/bin.Encoder *ChannelsGetGroupsForDiscussionRequest : github.com/gotd/td/bin.Object *ChannelsGetGroupsForDiscussionRequest : github.com/gotd/td/tdp.Object *ChannelsGetGroupsForDiscussionRequest : fmt.Stringer
ChannelsGetInactiveChannelsRequest represents TL type `channels.getInactiveChannels#11e831ee`. Get inactive channels and supergroups See https://core.telegram.org/method/channels.getInactiveChannels 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. (*ChannelsGetInactiveChannelsRequest) Zero() bool *ChannelsGetInactiveChannelsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetInactiveChannelsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetInactiveChannelsRequest : github.com/gotd/td/bin.Decoder *ChannelsGetInactiveChannelsRequest : github.com/gotd/td/bin.Encoder *ChannelsGetInactiveChannelsRequest : github.com/gotd/td/bin.Object *ChannelsGetInactiveChannelsRequest : github.com/gotd/td/tdp.Object *ChannelsGetInactiveChannelsRequest : fmt.Stringer
ChannelsGetLeftChannelsRequest represents TL type `channels.getLeftChannels#8341ecc0`. Get a list of channels/supergroups¹ we left, requires a takeout session, see here » for more info². Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/api/takeout See https://core.telegram.org/method/channels.getLeftChannels for reference. Offset for pagination¹ Links: 1) https://core.telegram.org/api/offsets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetLeftChannelsRequest from given interface. 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. (*ChannelsGetLeftChannelsRequest) Zero() bool *ChannelsGetLeftChannelsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetLeftChannelsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetLeftChannelsRequest : github.com/gotd/td/bin.Decoder *ChannelsGetLeftChannelsRequest : github.com/gotd/td/bin.Encoder *ChannelsGetLeftChannelsRequest : github.com/gotd/td/bin.Object *ChannelsGetLeftChannelsRequest : github.com/gotd/td/tdp.Object *ChannelsGetLeftChannelsRequest : fmt.Stringer
ChannelsGetMessagesRequest represents TL type `channels.getMessages#ad8c9a23`. Get channel/supergroup¹ messages Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.getMessages for reference. Channel/supergroup IDs of messages to get Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetMessagesRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetID returns value of ID field. MapID returns field ID wrapped in InputMessageClassArray 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. (*ChannelsGetMessagesRequest) Zero() bool *ChannelsGetMessagesRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetMessagesRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetMessagesRequest : github.com/gotd/td/bin.Decoder *ChannelsGetMessagesRequest : github.com/gotd/td/bin.Encoder *ChannelsGetMessagesRequest : github.com/gotd/td/bin.Object *ChannelsGetMessagesRequest : github.com/gotd/td/tdp.Object *ChannelsGetMessagesRequest : fmt.Stringer func (*Client).ChannelsGetMessages(ctx context.Context, request *ChannelsGetMessagesRequest) (MessagesMessagesClass, error)
ChannelsGetParticipantRequest represents TL type `channels.getParticipant#a0ab6cc6`. Get info about a channel/supergroup¹ participant Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.getParticipant for reference. Supergroup The participant whose messages should be deleted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetParticipantRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetParticipant returns value of Participant 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. (*ChannelsGetParticipantRequest) Zero() bool *ChannelsGetParticipantRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetParticipantRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetParticipantRequest : github.com/gotd/td/bin.Decoder *ChannelsGetParticipantRequest : github.com/gotd/td/bin.Encoder *ChannelsGetParticipantRequest : github.com/gotd/td/bin.Object *ChannelsGetParticipantRequest : github.com/gotd/td/tdp.Object *ChannelsGetParticipantRequest : fmt.Stringer func (*Client).ChannelsGetParticipant(ctx context.Context, request *ChannelsGetParticipantRequest) (*ChannelsChannelParticipant, error)
ChannelsGetParticipantsRequest represents TL type `channels.getParticipants#77ced9d0`. Get the participants of a supergroup/channel¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.getParticipants for reference. Channel Which participant types to fetch Hash¹ Links: 1) https://core.telegram.org/api/offsets Limit¹ Links: 1) https://core.telegram.org/api/offsets Offset¹ Links: 1) https://core.telegram.org/api/offsets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetParticipantsRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetFilter returns value of Filter field. 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. (*ChannelsGetParticipantsRequest) Zero() bool *ChannelsGetParticipantsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetParticipantsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetParticipantsRequest : github.com/gotd/td/bin.Decoder *ChannelsGetParticipantsRequest : github.com/gotd/td/bin.Encoder *ChannelsGetParticipantsRequest : github.com/gotd/td/bin.Object *ChannelsGetParticipantsRequest : github.com/gotd/td/tdp.Object *ChannelsGetParticipantsRequest : fmt.Stringer func (*Client).ChannelsGetParticipants(ctx context.Context, request *ChannelsGetParticipantsRequest) (ChannelsChannelParticipantsClass, error)
ChannelsGetSendAsRequest represents TL type `channels.getSendAs#dc770ee`. Obtains a list of peers that can be used to send messages in a specific group See https://core.telegram.org/method/channels.getSendAs for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetSendAsRequest 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. (*ChannelsGetSendAsRequest) Zero() bool *ChannelsGetSendAsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetSendAsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetSendAsRequest : github.com/gotd/td/bin.Decoder *ChannelsGetSendAsRequest : github.com/gotd/td/bin.Encoder *ChannelsGetSendAsRequest : github.com/gotd/td/bin.Object *ChannelsGetSendAsRequest : github.com/gotd/td/tdp.Object *ChannelsGetSendAsRequest : fmt.Stringer
ChannelsGetSponsoredMessagesRequest represents TL type `channels.getSponsoredMessages#ec210fbf`. Get a list of sponsored messages See https://core.telegram.org/method/channels.getSponsoredMessages for reference. The supergroup¹ to convert Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsGetSponsoredMessagesRequest 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. (*ChannelsGetSponsoredMessagesRequest) Zero() bool *ChannelsGetSponsoredMessagesRequest : github.com/gotd/td/bin.BareDecoder *ChannelsGetSponsoredMessagesRequest : github.com/gotd/td/bin.BareEncoder *ChannelsGetSponsoredMessagesRequest : github.com/gotd/td/bin.Decoder *ChannelsGetSponsoredMessagesRequest : github.com/gotd/td/bin.Encoder *ChannelsGetSponsoredMessagesRequest : github.com/gotd/td/bin.Object *ChannelsGetSponsoredMessagesRequest : github.com/gotd/td/tdp.Object *ChannelsGetSponsoredMessagesRequest : fmt.Stringer
ChannelsInviteToChannelRequest represents TL type `channels.inviteToChannel#199f3a6c`. Invite users to a channel/supergroup May also return 0-N updates of type updateGroupInvitePrivacyForbidden¹: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link² can be shared with the user, instead. Links: 1. https://core.telegram.org/constructor/updateGroupInvitePrivacyForbidden 2. https://core.telegram.org/api/invites See https://core.telegram.org/method/channels.inviteToChannel for reference. Channel/supergroup Users to invite Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsInviteToChannelRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in InputUserClassArray 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. (*ChannelsInviteToChannelRequest) Zero() bool *ChannelsInviteToChannelRequest : github.com/gotd/td/bin.BareDecoder *ChannelsInviteToChannelRequest : github.com/gotd/td/bin.BareEncoder *ChannelsInviteToChannelRequest : github.com/gotd/td/bin.Decoder *ChannelsInviteToChannelRequest : github.com/gotd/td/bin.Encoder *ChannelsInviteToChannelRequest : github.com/gotd/td/bin.Object *ChannelsInviteToChannelRequest : github.com/gotd/td/tdp.Object *ChannelsInviteToChannelRequest : fmt.Stringer func (*Client).ChannelsInviteToChannel(ctx context.Context, request *ChannelsInviteToChannelRequest) (UpdatesClass, error)
ChannelsJoinChannelRequest represents TL type `channels.joinChannel#24b524c5`. Join a channel/supergroup See https://core.telegram.org/method/channels.joinChannel for reference. The supergroup¹ to convert Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsJoinChannelRequest 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. (*ChannelsJoinChannelRequest) Zero() bool *ChannelsJoinChannelRequest : github.com/gotd/td/bin.BareDecoder *ChannelsJoinChannelRequest : github.com/gotd/td/bin.BareEncoder *ChannelsJoinChannelRequest : github.com/gotd/td/bin.Decoder *ChannelsJoinChannelRequest : github.com/gotd/td/bin.Encoder *ChannelsJoinChannelRequest : github.com/gotd/td/bin.Object *ChannelsJoinChannelRequest : github.com/gotd/td/tdp.Object *ChannelsJoinChannelRequest : fmt.Stringer
ChannelsLeaveChannelRequest represents TL type `channels.leaveChannel#f836aa95`. Leave a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.leaveChannel for reference. The supergroup¹ to convert Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsLeaveChannelRequest 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. (*ChannelsLeaveChannelRequest) Zero() bool *ChannelsLeaveChannelRequest : github.com/gotd/td/bin.BareDecoder *ChannelsLeaveChannelRequest : github.com/gotd/td/bin.BareEncoder *ChannelsLeaveChannelRequest : github.com/gotd/td/bin.Decoder *ChannelsLeaveChannelRequest : github.com/gotd/td/bin.Encoder *ChannelsLeaveChannelRequest : github.com/gotd/td/bin.Object *ChannelsLeaveChannelRequest : github.com/gotd/td/tdp.Object *ChannelsLeaveChannelRequest : fmt.Stringer
ChannelsReadHistoryRequest represents TL type `channels.readHistory#cc104937`. Mark channel/supergroup¹ history as read Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.readHistory for reference. Channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel ID of message up to which messages should be marked as read Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsReadHistoryRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetMaxID returns value of MaxID 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. (*ChannelsReadHistoryRequest) Zero() bool *ChannelsReadHistoryRequest : github.com/gotd/td/bin.BareDecoder *ChannelsReadHistoryRequest : github.com/gotd/td/bin.BareEncoder *ChannelsReadHistoryRequest : github.com/gotd/td/bin.Decoder *ChannelsReadHistoryRequest : github.com/gotd/td/bin.Encoder *ChannelsReadHistoryRequest : github.com/gotd/td/bin.Object *ChannelsReadHistoryRequest : github.com/gotd/td/tdp.Object *ChannelsReadHistoryRequest : fmt.Stringer func (*Client).ChannelsReadHistory(ctx context.Context, request *ChannelsReadHistoryRequest) (bool, error)
ChannelsReadMessageContentsRequest represents TL type `channels.readMessageContents#eab5dc38`. Mark channel/supergroup¹ message contents as read Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.readMessageContents for reference. Channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel IDs of messages to delete Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsReadMessageContentsRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel 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. (*ChannelsReadMessageContentsRequest) Zero() bool *ChannelsReadMessageContentsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsReadMessageContentsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsReadMessageContentsRequest : github.com/gotd/td/bin.Decoder *ChannelsReadMessageContentsRequest : github.com/gotd/td/bin.Encoder *ChannelsReadMessageContentsRequest : github.com/gotd/td/bin.Object *ChannelsReadMessageContentsRequest : github.com/gotd/td/tdp.Object *ChannelsReadMessageContentsRequest : fmt.Stringer func (*Client).ChannelsReadMessageContents(ctx context.Context, request *ChannelsReadMessageContentsRequest) (bool, error)
ChannelsReorderPinnedForumTopicsRequest represents TL type `channels.reorderPinnedForumTopics#2950a18f`. Reorder pinned forum topics See https://core.telegram.org/method/channels.reorderPinnedForumTopics for reference. Supergroup ID Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If not set, the order of only the topics present both server-side and in order will be changed (i.e. mentioning topics not pinned server-side in order will not pin them, and not mentioning topics pinned server-side will not unpin them). If set, the entire server-side pinned topic list will be replaced with order (i.e. mentioning topics not pinned server-side in order will pin them, and not mentioning topics pinned server-side will unpin them) Topic IDs »¹ Links: 1) https://core.telegram.org/api/forum Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsReorderPinnedForumTopicsRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetForce returns value of Force conditional field. GetOrder returns value of Order field. SetFlags sets flags for non-zero fields. SetForce sets value of Force 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. (*ChannelsReorderPinnedForumTopicsRequest) Zero() bool *ChannelsReorderPinnedForumTopicsRequest : github.com/gotd/td/bin.BareDecoder *ChannelsReorderPinnedForumTopicsRequest : github.com/gotd/td/bin.BareEncoder *ChannelsReorderPinnedForumTopicsRequest : github.com/gotd/td/bin.Decoder *ChannelsReorderPinnedForumTopicsRequest : github.com/gotd/td/bin.Encoder *ChannelsReorderPinnedForumTopicsRequest : github.com/gotd/td/bin.Object *ChannelsReorderPinnedForumTopicsRequest : github.com/gotd/td/tdp.Object *ChannelsReorderPinnedForumTopicsRequest : fmt.Stringer func (*Client).ChannelsReorderPinnedForumTopics(ctx context.Context, request *ChannelsReorderPinnedForumTopicsRequest) (UpdatesClass, error)
ChannelsReorderUsernamesRequest represents TL type `channels.reorderUsernames#b45ced1d`. Reorder active usernames See https://core.telegram.org/method/channels.reorderUsernames for reference. The supergroup or channel 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 ChannelsReorderUsernamesRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsReorderUsernamesRequest) Zero() bool *ChannelsReorderUsernamesRequest : github.com/gotd/td/bin.BareDecoder *ChannelsReorderUsernamesRequest : github.com/gotd/td/bin.BareEncoder *ChannelsReorderUsernamesRequest : github.com/gotd/td/bin.Decoder *ChannelsReorderUsernamesRequest : github.com/gotd/td/bin.Encoder *ChannelsReorderUsernamesRequest : github.com/gotd/td/bin.Object *ChannelsReorderUsernamesRequest : github.com/gotd/td/tdp.Object *ChannelsReorderUsernamesRequest : fmt.Stringer func (*Client).ChannelsReorderUsernames(ctx context.Context, request *ChannelsReorderUsernamesRequest) (bool, error)
ChannelsReportAntiSpamFalsePositiveRequest represents TL type `channels.reportAntiSpamFalsePositive#a850a693`. Report a native antispam¹ false positive Links: 1. https://core.telegram.org/api/antispam See https://core.telegram.org/method/channels.reportAntiSpamFalsePositive for reference. Supergroup ID Message ID that was mistakenly deleted by the native antispam¹ system, taken from the admin log² Links: 1) https://core.telegram.org/api/antispam 2) https://core.telegram.org/api/recent-actions Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsReportAntiSpamFalsePositiveRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetMsgID returns value of MsgID 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. (*ChannelsReportAntiSpamFalsePositiveRequest) Zero() bool *ChannelsReportAntiSpamFalsePositiveRequest : github.com/gotd/td/bin.BareDecoder *ChannelsReportAntiSpamFalsePositiveRequest : github.com/gotd/td/bin.BareEncoder *ChannelsReportAntiSpamFalsePositiveRequest : github.com/gotd/td/bin.Decoder *ChannelsReportAntiSpamFalsePositiveRequest : github.com/gotd/td/bin.Encoder *ChannelsReportAntiSpamFalsePositiveRequest : github.com/gotd/td/bin.Object *ChannelsReportAntiSpamFalsePositiveRequest : github.com/gotd/td/tdp.Object *ChannelsReportAntiSpamFalsePositiveRequest : fmt.Stringer func (*Client).ChannelsReportAntiSpamFalsePositive(ctx context.Context, request *ChannelsReportAntiSpamFalsePositiveRequest) (bool, error)
ChannelsReportSpamRequest represents TL type `channels.reportSpam#f44a8315`. Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup See https://core.telegram.org/method/channels.reportSpam for reference. Supergroup IDs of spam messages Participant whose messages should be reported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsReportSpamRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetID returns value of ID field. GetParticipant returns value of Participant 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. (*ChannelsReportSpamRequest) Zero() bool *ChannelsReportSpamRequest : github.com/gotd/td/bin.BareDecoder *ChannelsReportSpamRequest : github.com/gotd/td/bin.BareEncoder *ChannelsReportSpamRequest : github.com/gotd/td/bin.Decoder *ChannelsReportSpamRequest : github.com/gotd/td/bin.Encoder *ChannelsReportSpamRequest : github.com/gotd/td/bin.Object *ChannelsReportSpamRequest : github.com/gotd/td/tdp.Object *ChannelsReportSpamRequest : fmt.Stringer func (*Client).ChannelsReportSpam(ctx context.Context, request *ChannelsReportSpamRequest) (bool, error)
ChannelsSendAsPeers represents TL type `channels.sendAsPeers#f496b0c6`. A list of peers that can be used to send messages in a specific group See https://core.telegram.org/constructor/channels.sendAsPeers for reference. Mentioned chats Peers that can be used to send messages to the group Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsSendAsPeers from given interface. GetChats returns value of Chats field. GetPeers returns value of Peers field. GetUsers returns value of Users 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. (*ChannelsSendAsPeers) Zero() bool *ChannelsSendAsPeers : github.com/gotd/td/bin.BareDecoder *ChannelsSendAsPeers : github.com/gotd/td/bin.BareEncoder *ChannelsSendAsPeers : github.com/gotd/td/bin.Decoder *ChannelsSendAsPeers : github.com/gotd/td/bin.Encoder *ChannelsSendAsPeers : github.com/gotd/td/bin.Object *ChannelsSendAsPeers : github.com/gotd/td/tdp.Object *ChannelsSendAsPeers : fmt.Stringer func (*Client).ChannelsGetSendAs(ctx context.Context, peer InputPeerClass) (*ChannelsSendAsPeers, error)
ChannelsSetDiscussionGroupRequest represents TL type `channels.setDiscussionGroup#40582bb2`. Associate a group to a channel as discussion group¹ for that channel Links: 1. https://core.telegram.org/api/discussion See https://core.telegram.org/method/channels.setDiscussionGroup for reference. Channel Discussion group¹ to associate to the channel Links: 1) https://core.telegram.org/api/discussion Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsSetDiscussionGroupRequest from given interface. GetBroadcast returns value of Broadcast field. GetBroadcastAsNotEmpty returns mapped value of Broadcast field. GetGroup returns value of Group field. GetGroupAsNotEmpty returns mapped value of Group 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. (*ChannelsSetDiscussionGroupRequest) Zero() bool *ChannelsSetDiscussionGroupRequest : github.com/gotd/td/bin.BareDecoder *ChannelsSetDiscussionGroupRequest : github.com/gotd/td/bin.BareEncoder *ChannelsSetDiscussionGroupRequest : github.com/gotd/td/bin.Decoder *ChannelsSetDiscussionGroupRequest : github.com/gotd/td/bin.Encoder *ChannelsSetDiscussionGroupRequest : github.com/gotd/td/bin.Object *ChannelsSetDiscussionGroupRequest : github.com/gotd/td/tdp.Object *ChannelsSetDiscussionGroupRequest : fmt.Stringer func (*Client).ChannelsSetDiscussionGroup(ctx context.Context, request *ChannelsSetDiscussionGroupRequest) (bool, error)
ChannelsSetStickersRequest represents TL type `channels.setStickers#ea8ca4f9`. Associate a stickerset to the supergroup See https://core.telegram.org/method/channels.setStickers for reference. Supergroup The stickerset to associate Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsSetStickersRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetStickerset returns value of Stickerset 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. (*ChannelsSetStickersRequest) Zero() bool *ChannelsSetStickersRequest : github.com/gotd/td/bin.BareDecoder *ChannelsSetStickersRequest : github.com/gotd/td/bin.BareEncoder *ChannelsSetStickersRequest : github.com/gotd/td/bin.Decoder *ChannelsSetStickersRequest : github.com/gotd/td/bin.Encoder *ChannelsSetStickersRequest : github.com/gotd/td/bin.Object *ChannelsSetStickersRequest : github.com/gotd/td/tdp.Object *ChannelsSetStickersRequest : fmt.Stringer func (*Client).ChannelsSetStickers(ctx context.Context, request *ChannelsSetStickersRequest) (bool, error)
ChannelsToggleAntiSpamRequest represents TL type `channels.toggleAntiSpam#68f3e4eb`. Enable or disable the native antispam system¹. Links: 1. https://core.telegram.org/api/antispam See https://core.telegram.org/method/channels.toggleAntiSpam for reference. Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters¹. Links: 1) https://core.telegram.org/api/config#client-configuration Enable or disable the native antispam system. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsToggleAntiSpamRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsToggleAntiSpamRequest) Zero() bool *ChannelsToggleAntiSpamRequest : github.com/gotd/td/bin.BareDecoder *ChannelsToggleAntiSpamRequest : github.com/gotd/td/bin.BareEncoder *ChannelsToggleAntiSpamRequest : github.com/gotd/td/bin.Decoder *ChannelsToggleAntiSpamRequest : github.com/gotd/td/bin.Encoder *ChannelsToggleAntiSpamRequest : github.com/gotd/td/bin.Object *ChannelsToggleAntiSpamRequest : github.com/gotd/td/tdp.Object *ChannelsToggleAntiSpamRequest : fmt.Stringer func (*Client).ChannelsToggleAntiSpam(ctx context.Context, request *ChannelsToggleAntiSpamRequest) (UpdatesClass, error)
ChannelsToggleForumRequest represents TL type `channels.toggleForum#a4298b29`. Enable or disable forum functionality¹ in a supergroup. Links: 1. https://core.telegram.org/api/forum See https://core.telegram.org/method/channels.toggleForum for reference. Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters¹. Links: 1) https://core.telegram.org/api/config#client-configuration Enable or disable the native antispam system. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsToggleForumRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsToggleForumRequest) Zero() bool *ChannelsToggleForumRequest : github.com/gotd/td/bin.BareDecoder *ChannelsToggleForumRequest : github.com/gotd/td/bin.BareEncoder *ChannelsToggleForumRequest : github.com/gotd/td/bin.Decoder *ChannelsToggleForumRequest : github.com/gotd/td/bin.Encoder *ChannelsToggleForumRequest : github.com/gotd/td/bin.Object *ChannelsToggleForumRequest : github.com/gotd/td/tdp.Object *ChannelsToggleForumRequest : fmt.Stringer func (*Client).ChannelsToggleForum(ctx context.Context, request *ChannelsToggleForumRequest) (UpdatesClass, error)
ChannelsToggleJoinRequestRequest represents TL type `channels.toggleJoinRequest#4c2985b6`. Set whether all users should request admin approval to join the group »¹. Links: 1. https://core.telegram.org/api/invites#join-requests See https://core.telegram.org/method/channels.toggleJoinRequest for reference. Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters¹. Links: 1) https://core.telegram.org/api/config#client-configuration Enable or disable the native antispam system. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsToggleJoinRequestRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsToggleJoinRequestRequest) Zero() bool *ChannelsToggleJoinRequestRequest : github.com/gotd/td/bin.BareDecoder *ChannelsToggleJoinRequestRequest : github.com/gotd/td/bin.BareEncoder *ChannelsToggleJoinRequestRequest : github.com/gotd/td/bin.Decoder *ChannelsToggleJoinRequestRequest : github.com/gotd/td/bin.Encoder *ChannelsToggleJoinRequestRequest : github.com/gotd/td/bin.Object *ChannelsToggleJoinRequestRequest : github.com/gotd/td/tdp.Object *ChannelsToggleJoinRequestRequest : fmt.Stringer func (*Client).ChannelsToggleJoinRequest(ctx context.Context, request *ChannelsToggleJoinRequestRequest) (UpdatesClass, error)
ChannelsToggleJoinToSendRequest represents TL type `channels.toggleJoinToSend#e4cb9580`. Set whether all users should join a discussion group in order to comment on a post »¹ Links: 1. https://core.telegram.org/api/discussion#requiring-users-to-join-the-group See https://core.telegram.org/method/channels.toggleJoinToSend for reference. Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters¹. Links: 1) https://core.telegram.org/api/config#client-configuration Enable or disable the native antispam system. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsToggleJoinToSendRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsToggleJoinToSendRequest) Zero() bool *ChannelsToggleJoinToSendRequest : github.com/gotd/td/bin.BareDecoder *ChannelsToggleJoinToSendRequest : github.com/gotd/td/bin.BareEncoder *ChannelsToggleJoinToSendRequest : github.com/gotd/td/bin.Decoder *ChannelsToggleJoinToSendRequest : github.com/gotd/td/bin.Encoder *ChannelsToggleJoinToSendRequest : github.com/gotd/td/bin.Object *ChannelsToggleJoinToSendRequest : github.com/gotd/td/tdp.Object *ChannelsToggleJoinToSendRequest : fmt.Stringer func (*Client).ChannelsToggleJoinToSend(ctx context.Context, request *ChannelsToggleJoinToSendRequest) (UpdatesClass, error)
ChannelsToggleParticipantsHiddenRequest represents TL type `channels.toggleParticipantsHidden#6a6e7854`. Hide or display the participants list in a supergroup¹. The supergroup must have at least hidden_members_group_size_min participants in order to use this method, as specified by the client configuration parameters »¹. Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/api/config#client-configuration See https://core.telegram.org/method/channels.toggleParticipantsHidden for reference. Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters¹. Links: 1) https://core.telegram.org/api/config#client-configuration Enable or disable the native antispam system. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsToggleParticipantsHiddenRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsToggleParticipantsHiddenRequest) Zero() bool *ChannelsToggleParticipantsHiddenRequest : github.com/gotd/td/bin.BareDecoder *ChannelsToggleParticipantsHiddenRequest : github.com/gotd/td/bin.BareEncoder *ChannelsToggleParticipantsHiddenRequest : github.com/gotd/td/bin.Decoder *ChannelsToggleParticipantsHiddenRequest : github.com/gotd/td/bin.Encoder *ChannelsToggleParticipantsHiddenRequest : github.com/gotd/td/bin.Object *ChannelsToggleParticipantsHiddenRequest : github.com/gotd/td/tdp.Object *ChannelsToggleParticipantsHiddenRequest : fmt.Stringer func (*Client).ChannelsToggleParticipantsHidden(ctx context.Context, request *ChannelsToggleParticipantsHiddenRequest) (UpdatesClass, error)
ChannelsTogglePreHistoryHiddenRequest represents TL type `channels.togglePreHistoryHidden#eabbb94c`. Hide/unhide message history for new channel/supergroup users See https://core.telegram.org/method/channels.togglePreHistoryHidden for reference. Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters¹. Links: 1) https://core.telegram.org/api/config#client-configuration Enable or disable the native antispam system. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsTogglePreHistoryHiddenRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsTogglePreHistoryHiddenRequest) Zero() bool *ChannelsTogglePreHistoryHiddenRequest : github.com/gotd/td/bin.BareDecoder *ChannelsTogglePreHistoryHiddenRequest : github.com/gotd/td/bin.BareEncoder *ChannelsTogglePreHistoryHiddenRequest : github.com/gotd/td/bin.Decoder *ChannelsTogglePreHistoryHiddenRequest : github.com/gotd/td/bin.Encoder *ChannelsTogglePreHistoryHiddenRequest : github.com/gotd/td/bin.Object *ChannelsTogglePreHistoryHiddenRequest : github.com/gotd/td/tdp.Object *ChannelsTogglePreHistoryHiddenRequest : fmt.Stringer func (*Client).ChannelsTogglePreHistoryHidden(ctx context.Context, request *ChannelsTogglePreHistoryHiddenRequest) (UpdatesClass, error)
ChannelsToggleSignaturesRequest represents TL type `channels.toggleSignatures#1f69b606`. Enable/disable message signatures in channels See https://core.telegram.org/method/channels.toggleSignatures for reference. Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters¹. Links: 1) https://core.telegram.org/api/config#client-configuration Enable or disable the native antispam system. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsToggleSignaturesRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsToggleSignaturesRequest) Zero() bool *ChannelsToggleSignaturesRequest : github.com/gotd/td/bin.BareDecoder *ChannelsToggleSignaturesRequest : github.com/gotd/td/bin.BareEncoder *ChannelsToggleSignaturesRequest : github.com/gotd/td/bin.Decoder *ChannelsToggleSignaturesRequest : github.com/gotd/td/bin.Encoder *ChannelsToggleSignaturesRequest : github.com/gotd/td/bin.Object *ChannelsToggleSignaturesRequest : github.com/gotd/td/tdp.Object *ChannelsToggleSignaturesRequest : fmt.Stringer func (*Client).ChannelsToggleSignatures(ctx context.Context, request *ChannelsToggleSignaturesRequest) (UpdatesClass, error)
ChannelsToggleSlowModeRequest represents TL type `channels.toggleSlowMode#edd49ef0`. Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds See https://core.telegram.org/method/channels.toggleSlowMode for reference. The supergroup¹ Links: 1) https://core.telegram.org/api/channel Users will only be able to send one message every seconds seconds, 0 to disable the limitation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsToggleSlowModeRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetSeconds returns value of Seconds 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. (*ChannelsToggleSlowModeRequest) Zero() bool *ChannelsToggleSlowModeRequest : github.com/gotd/td/bin.BareDecoder *ChannelsToggleSlowModeRequest : github.com/gotd/td/bin.BareEncoder *ChannelsToggleSlowModeRequest : github.com/gotd/td/bin.Decoder *ChannelsToggleSlowModeRequest : github.com/gotd/td/bin.Encoder *ChannelsToggleSlowModeRequest : github.com/gotd/td/bin.Object *ChannelsToggleSlowModeRequest : github.com/gotd/td/tdp.Object *ChannelsToggleSlowModeRequest : fmt.Stringer func (*Client).ChannelsToggleSlowMode(ctx context.Context, request *ChannelsToggleSlowModeRequest) (UpdatesClass, error)
ChannelsToggleUsernameRequest represents TL type `channels.toggleUsername#50f24105`. Activate or deactivate a purchased fragment.com¹ username associated to a supergroup or channel² we own. Links: 1. https://fragment.com 2. https://core.telegram.org/api/channel See https://core.telegram.org/method/channels.toggleUsername for reference. Whether to activate or deactivate the username Supergroup or channel¹ Links: 1) https://core.telegram.org/api/channel Username Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsToggleUsernameRequest from given interface. GetActive returns value of Active field. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel 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. (*ChannelsToggleUsernameRequest) Zero() bool *ChannelsToggleUsernameRequest : github.com/gotd/td/bin.BareDecoder *ChannelsToggleUsernameRequest : github.com/gotd/td/bin.BareEncoder *ChannelsToggleUsernameRequest : github.com/gotd/td/bin.Decoder *ChannelsToggleUsernameRequest : github.com/gotd/td/bin.Encoder *ChannelsToggleUsernameRequest : github.com/gotd/td/bin.Object *ChannelsToggleUsernameRequest : github.com/gotd/td/tdp.Object *ChannelsToggleUsernameRequest : fmt.Stringer func (*Client).ChannelsToggleUsername(ctx context.Context, request *ChannelsToggleUsernameRequest) (bool, error)
ChannelsToggleViewForumAsMessagesRequest represents TL type `channels.toggleViewForumAsMessages#9738bb15`. Users may also choose to display messages from all topics of a forum¹ as if they were sent to a normal group, using a "View as messages" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method. Invoking this method will update the value of the view_forum_as_messages flag of channelFull¹ or dialog² and emit an updateChannelViewForumAsMessages³. Links: 1. https://core.telegram.org/api/forum 2. https://core.telegram.org/constructor/channelFull 3. https://core.telegram.org/constructor/dialog 4. https://core.telegram.org/constructor/updateChannelViewForumAsMessages See https://core.telegram.org/method/channels.toggleViewForumAsMessages for reference. Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters¹. Links: 1) https://core.telegram.org/api/config#client-configuration Enable or disable the native antispam system. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsToggleViewForumAsMessagesRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsToggleViewForumAsMessagesRequest) Zero() bool *ChannelsToggleViewForumAsMessagesRequest : github.com/gotd/td/bin.BareDecoder *ChannelsToggleViewForumAsMessagesRequest : github.com/gotd/td/bin.BareEncoder *ChannelsToggleViewForumAsMessagesRequest : github.com/gotd/td/bin.Decoder *ChannelsToggleViewForumAsMessagesRequest : github.com/gotd/td/bin.Encoder *ChannelsToggleViewForumAsMessagesRequest : github.com/gotd/td/bin.Object *ChannelsToggleViewForumAsMessagesRequest : github.com/gotd/td/tdp.Object *ChannelsToggleViewForumAsMessagesRequest : fmt.Stringer func (*Client).ChannelsToggleViewForumAsMessages(ctx context.Context, request *ChannelsToggleViewForumAsMessagesRequest) (UpdatesClass, error)
ChannelsUpdateColorRequest represents TL type `channels.updateColor#d8aa3671`. Update the accent color and background custom emoji »¹ of a channel. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/method/channels.updateColor for reference. Custom emoji ID used in the accent color pattern. Use SetBackgroundEmojiID and GetBackgroundEmojiID helpers. Channel whose accent color should be changed. 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 ForProfile field of ChannelsUpdateColorRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsUpdateColorRequest from given interface. GetBackgroundEmojiID returns value of BackgroundEmojiID conditional field and boolean which is true if field was set. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetColor returns value of Color conditional field and boolean which is true if field was set. GetForProfile returns value of ForProfile conditional field. SetBackgroundEmojiID sets value of BackgroundEmojiID 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. (*ChannelsUpdateColorRequest) Zero() bool *ChannelsUpdateColorRequest : github.com/gotd/td/bin.BareDecoder *ChannelsUpdateColorRequest : github.com/gotd/td/bin.BareEncoder *ChannelsUpdateColorRequest : github.com/gotd/td/bin.Decoder *ChannelsUpdateColorRequest : github.com/gotd/td/bin.Encoder *ChannelsUpdateColorRequest : github.com/gotd/td/bin.Object *ChannelsUpdateColorRequest : github.com/gotd/td/tdp.Object *ChannelsUpdateColorRequest : fmt.Stringer func (*Client).ChannelsUpdateColor(ctx context.Context, request *ChannelsUpdateColorRequest) (UpdatesClass, error)
ChannelsUpdateEmojiStatusRequest represents TL type `channels.updateEmojiStatus#f0d3e6a8`. See https://core.telegram.org/method/channels.updateEmojiStatus for reference. Channel field of ChannelsUpdateEmojiStatusRequest. EmojiStatus field of ChannelsUpdateEmojiStatusRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsUpdateEmojiStatusRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. 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. (*ChannelsUpdateEmojiStatusRequest) Zero() bool *ChannelsUpdateEmojiStatusRequest : github.com/gotd/td/bin.BareDecoder *ChannelsUpdateEmojiStatusRequest : github.com/gotd/td/bin.BareEncoder *ChannelsUpdateEmojiStatusRequest : github.com/gotd/td/bin.Decoder *ChannelsUpdateEmojiStatusRequest : github.com/gotd/td/bin.Encoder *ChannelsUpdateEmojiStatusRequest : github.com/gotd/td/bin.Object *ChannelsUpdateEmojiStatusRequest : github.com/gotd/td/tdp.Object *ChannelsUpdateEmojiStatusRequest : fmt.Stringer func (*Client).ChannelsUpdateEmojiStatus(ctx context.Context, request *ChannelsUpdateEmojiStatusRequest) (UpdatesClass, error)
ChannelsUpdatePinnedForumTopicRequest represents TL type `channels.updatePinnedForumTopic#6c2d9026`. Pin or unpin forum topics¹ Links: 1. https://core.telegram.org/api/forum See https://core.telegram.org/method/channels.updatePinnedForumTopic for reference. Supergroup ID Whether to pin or unpin the topic Forum topic ID¹ Links: 1) https://core.telegram.org/api/forum Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsUpdatePinnedForumTopicRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetPinned returns value of Pinned field. GetTopicID returns value of TopicID 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. (*ChannelsUpdatePinnedForumTopicRequest) Zero() bool *ChannelsUpdatePinnedForumTopicRequest : github.com/gotd/td/bin.BareDecoder *ChannelsUpdatePinnedForumTopicRequest : github.com/gotd/td/bin.BareEncoder *ChannelsUpdatePinnedForumTopicRequest : github.com/gotd/td/bin.Decoder *ChannelsUpdatePinnedForumTopicRequest : github.com/gotd/td/bin.Encoder *ChannelsUpdatePinnedForumTopicRequest : github.com/gotd/td/bin.Object *ChannelsUpdatePinnedForumTopicRequest : github.com/gotd/td/tdp.Object *ChannelsUpdatePinnedForumTopicRequest : fmt.Stringer func (*Client).ChannelsUpdatePinnedForumTopic(ctx context.Context, request *ChannelsUpdatePinnedForumTopicRequest) (UpdatesClass, error)
ChannelsUpdateUsernameRequest represents TL type `channels.updateUsername#3514b3de`. Change or remove the username of a supergroup/channel See https://core.telegram.org/method/channels.updateUsername for reference. The channel/supergroup¹ that will assigned the specified username Links: 1) https://core.telegram.org/api/channel The username to check Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsUpdateUsernameRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel 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. (*ChannelsUpdateUsernameRequest) Zero() bool *ChannelsUpdateUsernameRequest : github.com/gotd/td/bin.BareDecoder *ChannelsUpdateUsernameRequest : github.com/gotd/td/bin.BareEncoder *ChannelsUpdateUsernameRequest : github.com/gotd/td/bin.Decoder *ChannelsUpdateUsernameRequest : github.com/gotd/td/bin.Encoder *ChannelsUpdateUsernameRequest : github.com/gotd/td/bin.Object *ChannelsUpdateUsernameRequest : github.com/gotd/td/tdp.Object *ChannelsUpdateUsernameRequest : fmt.Stringer func (*Client).ChannelsUpdateUsername(ctx context.Context, request *ChannelsUpdateUsernameRequest) (bool, error)
ChannelsViewSponsoredMessageRequest represents TL type `channels.viewSponsoredMessage#beaedb94`. Mark a specific sponsored message as read See https://core.telegram.org/method/channels.viewSponsoredMessage for reference. Channel where the sponsored message was posted Message ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChannelsViewSponsoredMessageRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetRandomID returns value of RandomID 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. (*ChannelsViewSponsoredMessageRequest) Zero() bool *ChannelsViewSponsoredMessageRequest : github.com/gotd/td/bin.BareDecoder *ChannelsViewSponsoredMessageRequest : github.com/gotd/td/bin.BareEncoder *ChannelsViewSponsoredMessageRequest : github.com/gotd/td/bin.Decoder *ChannelsViewSponsoredMessageRequest : github.com/gotd/td/bin.Encoder *ChannelsViewSponsoredMessageRequest : github.com/gotd/td/bin.Object *ChannelsViewSponsoredMessageRequest : github.com/gotd/td/tdp.Object *ChannelsViewSponsoredMessageRequest : fmt.Stringer func (*Client).ChannelsViewSponsoredMessage(ctx context.Context, request *ChannelsViewSponsoredMessageRequest) (bool, error)
ChannelTooLongHandler is a ChannelTooLong event handler. func UpdateDispatcher.OnChannelTooLong(handler ChannelTooLongHandler)
ChannelUserTypingHandler is a ChannelUserTyping event handler. func UpdateDispatcher.OnChannelUserTyping(handler ChannelUserTypingHandler)
ChannelViewForumAsMessagesHandler is a ChannelViewForumAsMessages event handler. func UpdateDispatcher.OnChannelViewForumAsMessages(handler ChannelViewForumAsMessagesHandler)
ChannelWebPageHandler is a ChannelWebPage event handler. func UpdateDispatcher.OnChannelWebPage(handler ChannelWebPageHandler)
Chat represents TL type `chat#41cbf256`. Info about a group See https://core.telegram.org/constructor/chat for reference. Admin rights¹ of the user in the group Links: 1) https://core.telegram.org/api/rights Use SetAdminRights and GetAdminRights helpers. Whether a group call is currently active Whether there's anyone in the group call Whether the current user is the creator of the group Date of creation of the group Whether the group was migrated¹ Links: 1) https://core.telegram.org/api/channel Default banned rights¹ of all users in the group Links: 1) https://core.telegram.org/api/rights Use SetDefaultBannedRights and GetDefaultBannedRights helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of the group Whether the current user has left the group Means this chat was upgraded¹ to a supergroup Links: 1) https://core.telegram.org/api/channel Use SetMigratedTo and GetMigratedTo helpers. Whether this group is protected¹, thus does not allow forwarding messages from it Links: 1) https://telegram.org/blog/protected-content-delete-by-date-and-more Participant count Chat photo Title Used in basic groups to reorder updates and make sure that all of them were received. AsFull tries to map Chat to FullChat. AsInputPeer tries to map Chat to InputPeerChat. AsNotEmpty tries to map Chat to NotEmptyChat. AsNotForbidden tries to map Chat to NotForbiddenChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Chat from given interface. GetAdminRights returns value of AdminRights conditional field and boolean which is true if field was set. GetCallActive returns value of CallActive conditional field. GetCallNotEmpty returns value of CallNotEmpty conditional field. GetCreator returns value of Creator conditional field. GetDate returns value of Date field. GetDeactivated returns value of Deactivated conditional field. GetDefaultBannedRights returns value of DefaultBannedRights conditional field and boolean which is true if field was set. GetID returns value of ID field. GetLeft returns value of Left conditional field. GetMigratedTo returns value of MigratedTo conditional field and boolean which is true if field was set. GetNoforwards returns value of Noforwards conditional field. GetParticipantsCount returns value of ParticipantsCount field. GetPhoto returns value of Photo field. GetTitle returns value of Title field. GetVersion returns value of Version field. SetAdminRights sets value of AdminRights conditional field. SetCallActive sets value of CallActive conditional field. SetCallNotEmpty sets value of CallNotEmpty conditional field. SetCreator sets value of Creator conditional field. SetDeactivated sets value of Deactivated conditional field. SetDefaultBannedRights sets value of DefaultBannedRights conditional field. SetFlags sets flags for non-zero fields. SetLeft sets value of Left conditional field. SetMigratedTo sets value of MigratedTo conditional field. SetNoforwards sets value of Noforwards 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. (*Chat) Zero() bool *Chat : ChatClass *Chat : FullChat *Chat : NotEmptyChat *Chat : NotForbiddenChat *Chat : github.com/gotd/td/bin.BareDecoder *Chat : github.com/gotd/td/bin.BareEncoder *Chat : github.com/gotd/td/bin.Decoder *Chat : github.com/gotd/td/bin.Encoder *Chat : github.com/gotd/td/bin.Object *Chat : github.com/gotd/td/tdp.Object *Chat : fmt.Stringer func ChatArray.First() (v Chat, ok bool) func ChatArray.Last() (v Chat, ok bool) func (*ChatArray).Pop() (v Chat, ok bool) func (*ChatArray).PopFirst() (v Chat, ok bool) func ChatArray.ToMap() map[int64]Chat func ChatClassArray.ChatToMap() map[int64]*Chat func ChatArray.FillMap(to map[int64]Chat) func ChatClassArray.FillChatMap(to map[int64]*Chat)
ChatAdminRights represents TL type `chatAdminRights#5fb224d5`. Represents the rights of an admin in a channel/supergroup¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/chatAdminRights for reference. If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel Whether this admin is anonymous If set, allows the admin to ban users from the channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel If set, allows the admin to modify the description of the channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel If set, allows the admin to also delete messages from other admins in the channel¹ Links: 1) https://core.telegram.org/api/channel If set, allows the admin to delete stories¹ posted by the other admins of the channel². Links: 1) https://core.telegram.org/api/stories 2) https://core.telegram.org/api/channel If set, allows the admin to also edit messages from other admins in the channel¹ Links: 1) https://core.telegram.org/api/channel If set, allows the admin to edit stories¹ posted by the other admins of the channel². Links: 1) https://core.telegram.org/api/stories 2) https://core.telegram.org/api/channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, allows the admin to invite users in the channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel If set, allows the admin to change group call/livestream settings If set, allows the admin to create, delete or modify forum topics »¹. Links: 1) https://core.telegram.org/api/forum#forum-topics Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat admin log¹, get chat statistics², get message statistics in channels³, get channel members, see anonymous administrators in supergroups and ignore slow mode. Links: 1) https://core.telegram.org/api/recent-actions 2) https://core.telegram.org/api/stats 3) https://core.telegram.org/api/stats If set, allows the admin to pin messages in the channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel If set, allows the admin to post messages in the channel¹ Links: 1) https://core.telegram.org/api/channel If set, allows the admin to post stories¹ as the channel². Links: 1) https://core.telegram.org/api/stories 2) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatAdminRights from given interface. GetAddAdmins returns value of AddAdmins conditional field. GetAnonymous returns value of Anonymous conditional field. GetBanUsers returns value of BanUsers conditional field. GetChangeInfo returns value of ChangeInfo conditional field. GetDeleteMessages returns value of DeleteMessages conditional field. GetDeleteStories returns value of DeleteStories conditional field. GetEditMessages returns value of EditMessages conditional field. GetEditStories returns value of EditStories conditional field. GetInviteUsers returns value of InviteUsers conditional field. GetManageCall returns value of ManageCall conditional field. GetManageTopics returns value of ManageTopics conditional field. GetOther returns value of Other conditional field. GetPinMessages returns value of PinMessages conditional field. GetPostMessages returns value of PostMessages conditional field. GetPostStories returns value of PostStories conditional field. SetAddAdmins sets value of AddAdmins conditional field. SetAnonymous sets value of Anonymous conditional field. SetBanUsers sets value of BanUsers conditional field. SetChangeInfo sets value of ChangeInfo conditional field. SetDeleteMessages sets value of DeleteMessages conditional field. SetDeleteStories sets value of DeleteStories conditional field. SetEditMessages sets value of EditMessages conditional field. SetEditStories sets value of EditStories conditional field. SetFlags sets flags for non-zero fields. SetInviteUsers sets value of InviteUsers conditional field. SetManageCall sets value of ManageCall conditional field. SetManageTopics sets value of ManageTopics conditional field. SetOther sets value of Other conditional field. SetPinMessages sets value of PinMessages conditional field. SetPostMessages sets value of PostMessages conditional field. SetPostStories sets value of PostStories 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. (*ChatAdminRights) Zero() bool *ChatAdminRights : github.com/gotd/td/bin.BareDecoder *ChatAdminRights : github.com/gotd/td/bin.BareEncoder *ChatAdminRights : github.com/gotd/td/bin.Decoder *ChatAdminRights : github.com/gotd/td/bin.Encoder *ChatAdminRights : github.com/gotd/td/bin.Object *ChatAdminRights : github.com/gotd/td/tdp.Object *ChatAdminRights : fmt.Stringer func (*BotsSetBotBroadcastDefaultAdminRightsRequest).GetAdminRights() (value ChatAdminRights) func (*BotsSetBotGroupDefaultAdminRightsRequest).GetAdminRights() (value ChatAdminRights) func (*Channel).GetAdminRights() (value ChatAdminRights, ok bool) func (*ChannelParticipantAdmin).GetAdminRights() (value ChatAdminRights) func (*ChannelParticipantCreator).GetAdminRights() (value ChatAdminRights) func (*ChannelsEditAdminRequest).GetAdminRights() (value ChatAdminRights) func (*Chat).GetAdminRights() (value ChatAdminRights, ok bool) func FullChat.GetAdminRights() (value ChatAdminRights, ok bool) func (*RequestPeerTypeBroadcast).GetBotAdminRights() (value ChatAdminRights, ok bool) func (*RequestPeerTypeBroadcast).GetUserAdminRights() (value ChatAdminRights, ok bool) func (*RequestPeerTypeChat).GetBotAdminRights() (value ChatAdminRights, ok bool) func (*RequestPeerTypeChat).GetUserAdminRights() (value ChatAdminRights, ok bool) func (*UserFull).GetBotBroadcastAdminRights() (value ChatAdminRights, ok bool) func (*UserFull).GetBotGroupAdminRights() (value ChatAdminRights, ok bool) func (*Channel).SetAdminRights(value ChatAdminRights) func (*Chat).SetAdminRights(value ChatAdminRights) func (*Client).BotsSetBotBroadcastDefaultAdminRights(ctx context.Context, adminrights ChatAdminRights) (bool, error) func (*Client).BotsSetBotGroupDefaultAdminRights(ctx context.Context, adminrights ChatAdminRights) (bool, error) func (*RequestPeerTypeBroadcast).SetBotAdminRights(value ChatAdminRights) func (*RequestPeerTypeBroadcast).SetUserAdminRights(value ChatAdminRights) func (*RequestPeerTypeChat).SetBotAdminRights(value ChatAdminRights) func (*RequestPeerTypeChat).SetUserAdminRights(value ChatAdminRights) func (*UserFull).SetBotBroadcastAdminRights(value ChatAdminRights) func (*UserFull).SetBotGroupAdminRights(value ChatAdminRights)
ChatAdminWithInvites represents TL type `chatAdminWithInvites#f2ecef23`. Info about chat invites generated by admins. See https://core.telegram.org/constructor/chatAdminWithInvites for reference. The admin Number of invites generated by the admin Number of revoked invites Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatAdminWithInvites from given interface. GetAdminID returns value of AdminID field. GetInvitesCount returns value of InvitesCount field. GetRevokedInvitesCount returns value of RevokedInvitesCount 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. (*ChatAdminWithInvites) Zero() bool *ChatAdminWithInvites : github.com/gotd/td/bin.BareDecoder *ChatAdminWithInvites : github.com/gotd/td/bin.BareEncoder *ChatAdminWithInvites : github.com/gotd/td/bin.Decoder *ChatAdminWithInvites : github.com/gotd/td/bin.Encoder *ChatAdminWithInvites : github.com/gotd/td/bin.Object *ChatAdminWithInvites : github.com/gotd/td/tdp.Object *ChatAdminWithInvites : fmt.Stringer func (*MessagesChatAdminsWithInvites).GetAdmins() (value []ChatAdminWithInvites)
ChatArray is adapter for slice of Chat. 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 Chat. Sort sorts slice of Chat. SortByDate sorts slice of Chat by Date. SortByID sorts slice of Chat by ID. SortStable sorts slice of Chat. SortStableByDate sorts slice of Chat by Date. SortStableByID sorts slice of Chat by ID. ToMap collects constructors to map. func ChatArray.Retain(keep func(x Chat) bool) ChatArray func ChatArray.Sort(less func(a, b Chat) bool) ChatArray func ChatArray.SortByDate() ChatArray func ChatArray.SortByID() ChatArray func ChatArray.SortStable(less func(a, b Chat) bool) ChatArray func ChatArray.SortStableByDate() ChatArray func ChatArray.SortStableByID() ChatArray func ChatClassArray.AsChat() (to ChatArray)
ChatBannedRights represents TL type `chatBannedRights#9f120418`. Represents the rights of a normal user in a supergroup/channel/chat¹. In this case, the flags are inverted: if set, a flag does not allow a user to do X. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/chatBannedRights for reference. If set, does not allow any user to change the description of a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to embed links in the messages of a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, does not allow any user to invite users in a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel If set, does not allow any user to create, delete or modify forum topics »¹. Links: 1) https://core.telegram.org/api/forum#forum-topics If set, does not allow any user to pin messages in a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send audio files in a supergroup/chat¹. Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send documents in a supergroup/chat¹. Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send games in a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send gifs in a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to use inline bots in a supergroup/chat¹. Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send any media in a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send messages in a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send photos in a supergroup/chat¹. Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send text messages in a supergroup/chat¹. Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send polls in a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send round videos in a supergroup/chat¹. Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send stickers in a supergroup/chat¹ Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send videos in a supergroup/chat¹. Links: 1) https://core.telegram.org/api/channel If set, does not allow a user to send voice messages in a supergroup/chat¹. Links: 1) https://core.telegram.org/api/channel Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days). If set, does not allow a user to view messages in a supergroup/channel/chat¹ Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatBannedRights from given interface. GetChangeInfo returns value of ChangeInfo conditional field. GetEmbedLinks returns value of EmbedLinks conditional field. GetInviteUsers returns value of InviteUsers conditional field. GetManageTopics returns value of ManageTopics conditional field. GetPinMessages returns value of PinMessages conditional field. GetSendAudios returns value of SendAudios conditional field. GetSendDocs returns value of SendDocs conditional field. GetSendGames returns value of SendGames conditional field. GetSendGifs returns value of SendGifs conditional field. GetSendInline returns value of SendInline conditional field. GetSendMedia returns value of SendMedia conditional field. GetSendMessages returns value of SendMessages conditional field. GetSendPhotos returns value of SendPhotos conditional field. GetSendPlain returns value of SendPlain conditional field. GetSendPolls returns value of SendPolls conditional field. GetSendRoundvideos returns value of SendRoundvideos conditional field. GetSendStickers returns value of SendStickers conditional field. GetSendVideos returns value of SendVideos conditional field. GetSendVoices returns value of SendVoices conditional field. GetUntilDate returns value of UntilDate field. GetViewMessages returns value of ViewMessages conditional field. SetChangeInfo sets value of ChangeInfo conditional field. SetEmbedLinks sets value of EmbedLinks conditional field. SetFlags sets flags for non-zero fields. SetInviteUsers sets value of InviteUsers conditional field. SetManageTopics sets value of ManageTopics conditional field. SetPinMessages sets value of PinMessages conditional field. SetSendAudios sets value of SendAudios conditional field. SetSendDocs sets value of SendDocs conditional field. SetSendGames sets value of SendGames conditional field. SetSendGifs sets value of SendGifs conditional field. SetSendInline sets value of SendInline conditional field. SetSendMedia sets value of SendMedia conditional field. SetSendMessages sets value of SendMessages conditional field. SetSendPhotos sets value of SendPhotos conditional field. SetSendPlain sets value of SendPlain conditional field. SetSendPolls sets value of SendPolls conditional field. SetSendRoundvideos sets value of SendRoundvideos conditional field. SetSendStickers sets value of SendStickers conditional field. SetSendVideos sets value of SendVideos conditional field. SetSendVoices sets value of SendVoices conditional field. SetViewMessages sets value of ViewMessages 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. (*ChatBannedRights) Zero() bool *ChatBannedRights : github.com/gotd/td/bin.BareDecoder *ChatBannedRights : github.com/gotd/td/bin.BareEncoder *ChatBannedRights : github.com/gotd/td/bin.Decoder *ChatBannedRights : github.com/gotd/td/bin.Encoder *ChatBannedRights : github.com/gotd/td/bin.Object *ChatBannedRights : github.com/gotd/td/tdp.Object *ChatBannedRights : fmt.Stringer func (*Channel).GetBannedRights() (value ChatBannedRights, ok bool) func (*Channel).GetDefaultBannedRights() (value ChatBannedRights, ok bool) func (*ChannelAdminLogEventActionDefaultBannedRights).GetNewBannedRights() (value ChatBannedRights) func (*ChannelAdminLogEventActionDefaultBannedRights).GetPrevBannedRights() (value ChatBannedRights) func (*ChannelParticipantBanned).GetBannedRights() (value ChatBannedRights) func (*ChannelsEditBannedRequest).GetBannedRights() (value ChatBannedRights) func (*Chat).GetDefaultBannedRights() (value ChatBannedRights, ok bool) func FullChat.GetDefaultBannedRights() (value ChatBannedRights, ok bool) func (*MessagesEditChatDefaultBannedRightsRequest).GetBannedRights() (value ChatBannedRights) func (*UpdateChatDefaultBannedRights).GetDefaultBannedRights() (value ChatBannedRights) func (*Channel).SetBannedRights(value ChatBannedRights) func (*Channel).SetDefaultBannedRights(value ChatBannedRights) func (*Chat).SetDefaultBannedRights(value ChatBannedRights)
Chat boxes the ChatClass providing a helper. Chat ChatClass Decode implements bin.Decoder for ChatBox. Encode implements bin.Encode for ChatBox. *ChatBox : github.com/gotd/td/bin.Decoder *ChatBox : github.com/gotd/td/bin.Encoder *ChatBox : github.com/gotd/td/bin.Object
ChatClass represents Chat generic type. See https://core.telegram.org/type/Chat for reference. Example: g, err := tg.DecodeChat(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChatEmpty: // chatEmpty#29562865 case *tg.Chat: // chat#41cbf256 case *tg.ChatForbidden: // chatForbidden#6592a1a7 case *tg.Channel: // channel#aadfc8f case *tg.ChannelForbidden: // channelForbidden#17d493d5 default: panic(v) } AsFull tries to map ChatClass to FullChat. AsNotEmpty tries to map ChatClass to NotEmptyChat. AsNotForbidden tries to map ChatClass to NotForbiddenChat. ( ChatClass) Decode(b *bin.Buffer) error ( ChatClass) DecodeBare(b *bin.Buffer) error ( ChatClass) Encode(b *bin.Buffer) error ( ChatClass) EncodeBare(b *bin.Buffer) error Group identifier 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. *Channel *ChannelForbidden *Chat *ChatEmpty *ChatForbidden ChatClass : NotForbiddenChat ChatClass : github.com/gotd/td/bin.BareDecoder ChatClass : github.com/gotd/td/bin.BareEncoder ChatClass : github.com/gotd/td/bin.Decoder ChatClass : github.com/gotd/td/bin.Encoder ChatClass : github.com/gotd/td/bin.Object ChatClass : fmt.Stringer func DecodeChat(buf *bin.Buffer) (ChatClass, error) func (*AccountAutoSaveSettings).GetChats() (value []ChatClass) func (*AccountPrivacyRules).GetChats() (value []ChatClass) func (*ChannelsAdminLogResults).GetChats() (value []ChatClass) func (*ChannelsChannelParticipant).GetChats() (value []ChatClass) func (*ChannelsChannelParticipants).GetChats() (value []ChatClass) func (*ChannelsSendAsPeers).GetChats() (value []ChatClass) func ChatClassArray.First() (v ChatClass, ok bool) func ChatClassArray.Last() (v ChatClass, ok bool) func (*ChatClassArray).Pop() (v ChatClass, ok bool) func (*ChatClassArray).PopFirst() (v ChatClass, ok bool) func (*ChatInviteAlready).GetChat() (value ChatClass) func (*ChatInvitePeek).GetChat() (value ChatClass) func (*ChatlistsChatlistInvite).GetChats() (value []ChatClass) func (*ChatlistsChatlistInviteAlready).GetChats() (value []ChatClass) func ChatlistsChatlistInviteClass.GetChats() (value []ChatClass) func (*ChatlistsChatlistUpdates).GetChats() (value []ChatClass) func (*ChatlistsExportedInvites).GetChats() (value []ChatClass) func (*ContactsBlocked).GetChats() (value []ChatClass) func ContactsBlockedClass.GetChats() (value []ChatClass) func (*ContactsBlockedSlice).GetChats() (value []ChatClass) func (*ContactsFound).GetChats() (value []ChatClass) func (*ContactsResolvedPeer).GetChats() (value []ChatClass) func (*ContactsTopPeers).GetChats() (value []ChatClass) func (*HelpPromoData).GetChats() (value []ChatClass) func (*HelpRecentMeURLs).GetChats() (value []ChatClass) func (*MessagesChannelMessages).GetChats() (value []ChatClass) func (*MessagesChatFull).GetChats() (value []ChatClass) func (*MessagesChats).GetChats() (value []ChatClass) func MessagesChatsClass.GetChats() (value []ChatClass) func (*MessagesChatsSlice).GetChats() (value []ChatClass) func (*MessagesDialogs).GetChats() (value []ChatClass) func (*MessagesDialogsSlice).GetChats() (value []ChatClass) func (*MessagesDiscussionMessage).GetChats() (value []ChatClass) func (*MessagesForumTopics).GetChats() (value []ChatClass) func (*MessagesInactiveChats).GetChats() (value []ChatClass) func (*MessagesMessageReactionsList).GetChats() (value []ChatClass) func (*MessagesMessages).GetChats() (value []ChatClass) func (*MessagesMessagesSlice).GetChats() (value []ChatClass) func (*MessagesMessageViews).GetChats() (value []ChatClass) func (*MessagesPeerDialogs).GetChats() (value []ChatClass) func (*MessagesPeerSettings).GetChats() (value []ChatClass) func (*MessagesSearchResultsCalendar).GetChats() (value []ChatClass) func (*MessagesSponsoredMessages).GetChats() (value []ChatClass) func (*MessagesVotesList).GetChats() (value []ChatClass) func (*MessagesWebPage).GetChats() (value []ChatClass) func ModifiedMessagesDialogs.GetChats() (value []ChatClass) func ModifiedMessagesMessages.GetChats() (value []ChatClass) func NotEmptyUpdatesChannelDifference.GetChats() (value []ChatClass) func (*PageBlockChannel).GetChannel() (value ChatClass) func (*PaymentsCheckedGiftCode).GetChats() (value []ChatClass) func (*PhoneGroupCall).GetChats() (value []ChatClass) func (*PhoneGroupParticipants).GetChats() (value []ChatClass) func (*PhoneJoinAsPeers).GetChats() (value []ChatClass) func (*PremiumMyBoosts).GetChats() (value []ChatClass) func (*StatsPublicForwards).GetChats() (value []ChatClass) func (*StoriesAllStories).GetChats() (value []ChatClass) func (*StoriesPeerStories).GetChats() (value []ChatClass) func (*StoriesStories).GetChats() (value []ChatClass) func (*StoriesStoryReactionsList).GetChats() (value []ChatClass) func (*StoriesStoryViewsList).GetChats() (value []ChatClass) func (*Updates).GetChats() (value []ChatClass) func (*UpdatesChannelDifference).GetChats() (value []ChatClass) func (*UpdatesChannelDifferenceTooLong).GetChats() (value []ChatClass) func (*UpdatesCombined).GetChats() (value []ChatClass) func (*UpdatesDifference).GetChats() (value []ChatClass) func (*UpdatesDifferenceSlice).GetChats() (value []ChatClass) func (*UsersUserFull).GetChats() (value []ChatClass)
ChatClassArray is adapter for slice of ChatClass. AppendOnlyFull appends only Full constructors to given slice. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AppendOnlyNotForbidden appends only NotForbidden constructors to given slice. AsChannel returns copy with only Channel constructors. AsChannelForbidden returns copy with only ChannelForbidden constructors. AsChat returns copy with only Chat constructors. AsChatEmpty returns copy with only ChatEmpty constructors. AsChatForbidden returns copy with only ChatForbidden constructors. AsFull returns copy with only Full constructors. AsNotEmpty returns copy with only NotEmpty constructors. AsNotForbidden returns copy with only NotForbidden constructors. ChannelForbiddenToMap collects only ChannelForbidden constructors to map. ChannelToMap collects only Channel constructors to map. ChatEmptyToMap collects only ChatEmpty constructors to map. ChatForbiddenToMap collects only ChatForbidden constructors to map. ChatToMap collects only Chat constructors to map. FillChannelForbiddenMap fills only ChannelForbidden constructors to given map. FillChannelMap fills only Channel constructors to given map. FillChatEmptyMap fills only ChatEmpty constructors to given map. FillChatForbiddenMap fills only ChatForbidden constructors to given map. FillChatMap fills only Chat constructors to given map. FillFullMap fills only Full constructors to given map. FillNotEmptyMap fills only NotEmpty constructors to given map. FillNotForbiddenMap fills only NotForbidden constructors to given map. First returns first element of slice (if exists). FirstAsFull returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). FirstAsNotForbidden returns first element of slice (if exists). FullToMap collects only Full constructors to map. Last returns last element of slice (if exists). LastAsFull returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). LastAsNotForbidden returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. NotForbiddenToMap collects only NotForbidden constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsFull returns element of slice (if exists). PopAsNotEmpty returns element of slice (if exists). PopAsNotForbidden returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsFull returns element of slice (if exists). PopFirstAsNotEmpty returns element of slice (if exists). PopFirstAsNotForbidden returns element of slice (if exists). Retain filters in-place slice of ChatClass. Sort sorts slice of ChatClass. SortByID sorts slice of ChatClass by ID. SortStable sorts slice of ChatClass. SortStableByID sorts slice of ChatClass by ID. func (*AccountAutoSaveSettings).MapChats() (value ChatClassArray) func (*AccountPrivacyRules).MapChats() (value ChatClassArray) func (*ChannelsAdminLogResults).MapChats() (value ChatClassArray) func (*ChannelsChannelParticipant).MapChats() (value ChatClassArray) func (*ChannelsChannelParticipants).MapChats() (value ChatClassArray) func (*ChannelsSendAsPeers).MapChats() (value ChatClassArray) func ChatClassArray.Retain(keep func(x ChatClass) bool) ChatClassArray func ChatClassArray.Sort(less func(a, b ChatClass) bool) ChatClassArray func ChatClassArray.SortByID() ChatClassArray func ChatClassArray.SortStable(less func(a, b ChatClass) bool) ChatClassArray func ChatClassArray.SortStableByID() ChatClassArray func (*ChatlistsChatlistInvite).MapChats() (value ChatClassArray) func (*ChatlistsChatlistInviteAlready).MapChats() (value ChatClassArray) func ChatlistsChatlistInviteClass.MapChats() (value ChatClassArray) func (*ChatlistsChatlistUpdates).MapChats() (value ChatClassArray) func (*ChatlistsExportedInvites).MapChats() (value ChatClassArray) func (*ContactsBlocked).MapChats() (value ChatClassArray) func ContactsBlockedClass.MapChats() (value ChatClassArray) func (*ContactsBlockedSlice).MapChats() (value ChatClassArray) func (*ContactsFound).MapChats() (value ChatClassArray) func (*ContactsResolvedPeer).MapChats() (value ChatClassArray) func (*ContactsTopPeers).MapChats() (value ChatClassArray) func (*HelpPromoData).MapChats() (value ChatClassArray) func (*HelpRecentMeURLs).MapChats() (value ChatClassArray) func (*MessagesChannelMessages).MapChats() (value ChatClassArray) func (*MessagesChatFull).MapChats() (value ChatClassArray) func (*MessagesChats).MapChats() (value ChatClassArray) func MessagesChatsClass.MapChats() (value ChatClassArray) func (*MessagesChatsSlice).MapChats() (value ChatClassArray) func (*MessagesDialogs).MapChats() (value ChatClassArray) func (*MessagesDialogsSlice).MapChats() (value ChatClassArray) func (*MessagesDiscussionMessage).MapChats() (value ChatClassArray) func (*MessagesForumTopics).MapChats() (value ChatClassArray) func (*MessagesInactiveChats).MapChats() (value ChatClassArray) func (*MessagesMessageReactionsList).MapChats() (value ChatClassArray) func (*MessagesMessages).MapChats() (value ChatClassArray) func (*MessagesMessagesSlice).MapChats() (value ChatClassArray) func (*MessagesMessageViews).MapChats() (value ChatClassArray) func (*MessagesPeerDialogs).MapChats() (value ChatClassArray) func (*MessagesPeerSettings).MapChats() (value ChatClassArray) func (*MessagesSearchResultsCalendar).MapChats() (value ChatClassArray) func (*MessagesSponsoredMessages).MapChats() (value ChatClassArray) func (*MessagesVotesList).MapChats() (value ChatClassArray) func (*MessagesWebPage).MapChats() (value ChatClassArray) func (*PaymentsCheckedGiftCode).MapChats() (value ChatClassArray) func (*PhoneGroupCall).MapChats() (value ChatClassArray) func (*PhoneGroupParticipants).MapChats() (value ChatClassArray) func (*PhoneJoinAsPeers).MapChats() (value ChatClassArray) func (*PremiumMyBoosts).MapChats() (value ChatClassArray) func (*StatsPublicForwards).MapChats() (value ChatClassArray) func (*StoriesAllStories).MapChats() (value ChatClassArray) func (*StoriesPeerStories).MapChats() (value ChatClassArray) func (*StoriesStories).MapChats() (value ChatClassArray) func (*StoriesStoryReactionsList).MapChats() (value ChatClassArray) func (*StoriesStoryViewsList).MapChats() (value ChatClassArray) func (*Updates).MapChats() (value ChatClassArray) func (*UpdatesChannelDifference).MapChats() (value ChatClassArray) func (*UpdatesChannelDifferenceTooLong).MapChats() (value ChatClassArray) func (*UpdatesCombined).MapChats() (value ChatClassArray) func (*UpdatesDifference).MapChats() (value ChatClassArray) func (*UpdatesDifferenceSlice).MapChats() (value ChatClassArray) func (*UsersUserFull).MapChats() (value ChatClassArray)
ChatDefaultBannedRightsHandler is a ChatDefaultBannedRights event handler. func UpdateDispatcher.OnChatDefaultBannedRights(handler ChatDefaultBannedRightsHandler)
ChatEmpty represents TL type `chatEmpty#29562865`. Empty constructor, group doesn't exist See https://core.telegram.org/constructor/chatEmpty for reference. Takeout ID AsFull tries to map ChatEmpty to FullChat. AsNotEmpty tries to map ChatEmpty to NotEmptyChat. AsNotForbidden tries to map ChatEmpty to NotForbiddenChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatEmpty 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. (*ChatEmpty) Zero() bool *ChatEmpty : ChatClass *ChatEmpty : NotForbiddenChat *ChatEmpty : github.com/gotd/td/bin.BareDecoder *ChatEmpty : github.com/gotd/td/bin.BareEncoder *ChatEmpty : github.com/gotd/td/bin.Decoder *ChatEmpty : github.com/gotd/td/bin.Encoder *ChatEmpty : github.com/gotd/td/bin.Object *ChatEmpty : github.com/gotd/td/tdp.Object *ChatEmpty : fmt.Stringer func ChatClassArray.ChatEmptyToMap() map[int64]*ChatEmpty func ChatEmptyArray.First() (v ChatEmpty, ok bool) func ChatEmptyArray.Last() (v ChatEmpty, ok bool) func (*ChatEmptyArray).Pop() (v ChatEmpty, ok bool) func (*ChatEmptyArray).PopFirst() (v ChatEmpty, ok bool) func ChatEmptyArray.ToMap() map[int64]ChatEmpty func ChatClassArray.FillChatEmptyMap(to map[int64]*ChatEmpty) func ChatEmptyArray.FillMap(to map[int64]ChatEmpty)
ChatEmptyArray is adapter for slice of ChatEmpty. 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 ChatEmpty. Sort sorts slice of ChatEmpty. SortByID sorts slice of ChatEmpty by ID. SortStable sorts slice of ChatEmpty. SortStableByID sorts slice of ChatEmpty by ID. ToMap collects constructors to map. func ChatClassArray.AsChatEmpty() (to ChatEmptyArray) func ChatEmptyArray.Retain(keep func(x ChatEmpty) bool) ChatEmptyArray func ChatEmptyArray.Sort(less func(a, b ChatEmpty) bool) ChatEmptyArray func ChatEmptyArray.SortByID() ChatEmptyArray func ChatEmptyArray.SortStable(less func(a, b ChatEmpty) bool) ChatEmptyArray func ChatEmptyArray.SortStableByID() ChatEmptyArray
ChatForbidden represents TL type `chatForbidden#6592a1a7`. A group to which the user has no access. E.g., because the user was kicked from the group. See https://core.telegram.org/constructor/chatForbidden for reference. User identifier Group name AsFull tries to map ChatForbidden to FullChat. AsNotEmpty tries to map ChatForbidden to NotEmptyChat. AsNotForbidden tries to map ChatForbidden to NotForbiddenChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatForbidden from given interface. GetID returns value of ID field. GetTitle returns value of Title 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. (*ChatForbidden) Zero() bool *ChatForbidden : ChatClass *ChatForbidden : NotEmptyChat *ChatForbidden : NotForbiddenChat *ChatForbidden : github.com/gotd/td/bin.BareDecoder *ChatForbidden : github.com/gotd/td/bin.BareEncoder *ChatForbidden : github.com/gotd/td/bin.Decoder *ChatForbidden : github.com/gotd/td/bin.Encoder *ChatForbidden : github.com/gotd/td/bin.Object *ChatForbidden : github.com/gotd/td/tdp.Object *ChatForbidden : fmt.Stringer func ChatClassArray.ChatForbiddenToMap() map[int64]*ChatForbidden func ChatForbiddenArray.First() (v ChatForbidden, ok bool) func ChatForbiddenArray.Last() (v ChatForbidden, ok bool) func (*ChatForbiddenArray).Pop() (v ChatForbidden, ok bool) func (*ChatForbiddenArray).PopFirst() (v ChatForbidden, ok bool) func ChatForbiddenArray.ToMap() map[int64]ChatForbidden func ChatClassArray.FillChatForbiddenMap(to map[int64]*ChatForbidden) func ChatForbiddenArray.FillMap(to map[int64]ChatForbidden)
ChatForbiddenArray is adapter for slice of ChatForbidden. 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 ChatForbidden. Sort sorts slice of ChatForbidden. SortByID sorts slice of ChatForbidden by ID. SortStable sorts slice of ChatForbidden. SortStableByID sorts slice of ChatForbidden by ID. ToMap collects constructors to map. func ChatClassArray.AsChatForbidden() (to ChatForbiddenArray) func ChatForbiddenArray.Retain(keep func(x ChatForbidden) bool) ChatForbiddenArray func ChatForbiddenArray.Sort(less func(a, b ChatForbidden) bool) ChatForbiddenArray func ChatForbiddenArray.SortByID() ChatForbiddenArray func ChatForbiddenArray.SortStable(less func(a, b ChatForbidden) bool) ChatForbiddenArray func ChatForbiddenArray.SortStableByID() ChatForbiddenArray
ChatFull represents TL type `chatFull#c9d31138`. Full info about a basic group¹. Links: 1. https://core.telegram.org/api/channel#basic-groups See https://core.telegram.org/constructor/chatFull for reference. About string for this chat Allowed message reactions »¹ Links: 1) https://core.telegram.org/api/reactions Use SetAvailableReactions and GetAvailableReactions helpers. Info about bots that are in this chat Use SetBotInfo and GetBotInfo helpers. Group call information Use SetCall and GetCall helpers. Can we change the username of this chat Chat photo Use SetChatPhoto and GetChatPhoto helpers. Chat invite Use SetExportedInvite and GetExportedInvite helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. When using phone.getGroupCallJoinAs¹ to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default. Links: 1) https://core.telegram.org/method/phone.getGroupCallJoinAs Use SetGroupcallDefaultJoinAs and GetGroupcallDefaultJoinAs helpers. Whether scheduled messages¹ are available Links: 1) https://core.telegram.org/api/scheduled-messages ID of the chat Notification settings Participant list Message ID of the last pinned message¹ Links: 1) https://core.telegram.org/api/pin Use SetPinnedMsgID and GetPinnedMsgID helpers. IDs of users who requested to join recently Use SetRecentRequesters and GetRecentRequesters helpers. Pending join requests »¹ Links: 1) https://core.telegram.org/api/invites#join-requests Use SetRequestsPending and GetRequestsPending helpers. Time-To-Live of messages sent by the current user to this chat Use SetTTLPeriod and GetTTLPeriod helpers. Emoji representing a specific chat theme Use SetThemeEmoticon and GetThemeEmoticon helpers. Whether the real-time chat translation popup¹ should be hidden. Links: 1) https://core.telegram.org/api/translation Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatFull from given interface. GetAbout returns value of About field. GetAvailableReactions returns value of AvailableReactions conditional field and boolean which is true if field was set. GetBotInfo returns value of BotInfo conditional field and boolean which is true if field was set. GetCall returns value of Call conditional field and boolean which is true if field was set. GetCanSetUsername returns value of CanSetUsername conditional field. GetChatPhoto returns value of ChatPhoto conditional field and boolean which is true if field was set. GetExportedInvite returns value of ExportedInvite conditional field and boolean which is true if field was set. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetGroupcallDefaultJoinAs returns value of GroupcallDefaultJoinAs conditional field and boolean which is true if field was set. GetHasScheduled returns value of HasScheduled conditional field. GetID returns value of ID field. GetNotifySettings returns value of NotifySettings field. GetParticipants returns value of Participants field. GetPinnedMsgID returns value of PinnedMsgID conditional field and boolean which is true if field was set. GetRecentRequesters returns value of RecentRequesters conditional field and boolean which is true if field was set. GetRequestsPending returns value of RequestsPending conditional field and boolean which is true if field was set. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. GetThemeEmoticon returns value of ThemeEmoticon conditional field and boolean which is true if field was set. GetTranslationsDisabled returns value of TranslationsDisabled conditional field. SetAvailableReactions sets value of AvailableReactions conditional field. SetBotInfo sets value of BotInfo conditional field. SetCall sets value of Call conditional field. SetCanSetUsername sets value of CanSetUsername conditional field. SetChatPhoto sets value of ChatPhoto conditional field. SetExportedInvite sets value of ExportedInvite conditional field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID conditional field. SetGroupcallDefaultJoinAs sets value of GroupcallDefaultJoinAs conditional field. SetHasScheduled sets value of HasScheduled conditional field. SetPinnedMsgID sets value of PinnedMsgID conditional field. SetRecentRequesters sets value of RecentRequesters conditional field. SetRequestsPending sets value of RequestsPending conditional field. SetTTLPeriod sets value of TTLPeriod conditional field. SetThemeEmoticon sets value of ThemeEmoticon conditional field. SetTranslationsDisabled sets value of TranslationsDisabled 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. (*ChatFull) Zero() bool *ChatFull : ChatFullClass *ChatFull : github.com/gotd/td/bin.BareDecoder *ChatFull : github.com/gotd/td/bin.BareEncoder *ChatFull : github.com/gotd/td/bin.Decoder *ChatFull : github.com/gotd/td/bin.Encoder *ChatFull : github.com/gotd/td/bin.Object *ChatFull : github.com/gotd/td/tdp.Object *ChatFull : fmt.Stringer func ChatFullArray.First() (v ChatFull, ok bool) func ChatFullArray.Last() (v ChatFull, ok bool) func (*ChatFullArray).Pop() (v ChatFull, ok bool) func (*ChatFullArray).PopFirst() (v ChatFull, ok bool) func ChatFullArray.ToMap() map[int64]ChatFull func ChatFullClassArray.ChatFullToMap() map[int64]*ChatFull func ChatFullArray.FillMap(to map[int64]ChatFull) func ChatFullClassArray.FillChatFullMap(to map[int64]*ChatFull)
ChatFullArray is adapter for slice of ChatFull. 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 ChatFull. Sort sorts slice of ChatFull. SortByID sorts slice of ChatFull by ID. SortStable sorts slice of ChatFull. SortStableByID sorts slice of ChatFull by ID. ToMap collects constructors to map. func ChatFullArray.Retain(keep func(x ChatFull) bool) ChatFullArray func ChatFullArray.Sort(less func(a, b ChatFull) bool) ChatFullArray func ChatFullArray.SortByID() ChatFullArray func ChatFullArray.SortStable(less func(a, b ChatFull) bool) ChatFullArray func ChatFullArray.SortStableByID() ChatFullArray func ChatFullClassArray.AsChatFull() (to ChatFullArray)
ChatFull boxes the ChatFullClass providing a helper. ChatFull ChatFullClass Decode implements bin.Decoder for ChatFullBox. Encode implements bin.Encode for ChatFullBox. *ChatFullBox : github.com/gotd/td/bin.Decoder *ChatFullBox : github.com/gotd/td/bin.Encoder *ChatFullBox : github.com/gotd/td/bin.Object
ChatFullClass represents ChatFull generic type. See https://core.telegram.org/type/ChatFull for reference. Example: g, err := tg.DecodeChatFull(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChatFull: // chatFull#c9d31138 case *tg.ChannelFull: // channelFull#f2bcb6f default: panic(v) } ( ChatFullClass) Decode(b *bin.Buffer) error ( ChatFullClass) DecodeBare(b *bin.Buffer) error ( ChatFullClass) Encode(b *bin.Buffer) error ( ChatFullClass) EncodeBare(b *bin.Buffer) error About string for this chat Allowed message reactions »¹ Links: 1) https://core.telegram.org/api/reactions Group call information Can we change the username of this chat Chat invite Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders When using phone.getGroupCallJoinAs¹ to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default. Links: 1) https://core.telegram.org/method/phone.getGroupCallJoinAs Whether scheduled messages¹ are available Links: 1) https://core.telegram.org/api/scheduled-messages ID of the chat Notification settings Message ID of the last pinned message¹ Links: 1) https://core.telegram.org/api/pin IDs of users who requested to join recently Pending join requests »¹ Links: 1) https://core.telegram.org/api/invites#join-requests Time-To-Live of messages sent by the current user to this chat Emoji representing a specific chat theme Whether the real-time chat translation popup¹ should be hidden. Links: 1) https://core.telegram.org/api/translation 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. *ChannelFull *ChatFull ChatFullClass : github.com/gotd/td/bin.BareDecoder ChatFullClass : github.com/gotd/td/bin.BareEncoder ChatFullClass : github.com/gotd/td/bin.Decoder ChatFullClass : github.com/gotd/td/bin.Encoder ChatFullClass : github.com/gotd/td/bin.Object ChatFullClass : fmt.Stringer func DecodeChatFull(buf *bin.Buffer) (ChatFullClass, error) func ChatFullClassArray.First() (v ChatFullClass, ok bool) func ChatFullClassArray.Last() (v ChatFullClass, ok bool) func (*ChatFullClassArray).Pop() (v ChatFullClass, ok bool) func (*ChatFullClassArray).PopFirst() (v ChatFullClass, ok bool) func (*MessagesChatFull).GetFullChat() (value ChatFullClass)
ChatFullClassArray is adapter for slice of ChatFullClass. AsChannelFull returns copy with only ChannelFull constructors. AsChatFull returns copy with only ChatFull constructors. ChannelFullToMap collects only ChannelFull constructors to map. ChatFullToMap collects only ChatFull constructors to map. FillChannelFullMap fills only ChannelFull constructors to given map. FillChatFullMap fills only ChatFull 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 ChatFullClass. Sort sorts slice of ChatFullClass. SortByID sorts slice of ChatFullClass by ID. SortStable sorts slice of ChatFullClass. SortStableByID sorts slice of ChatFullClass by ID. func ChatFullClassArray.Retain(keep func(x ChatFullClass) bool) ChatFullClassArray func ChatFullClassArray.Sort(less func(a, b ChatFullClass) bool) ChatFullClassArray func ChatFullClassArray.SortByID() ChatFullClassArray func ChatFullClassArray.SortStable(less func(a, b ChatFullClass) bool) ChatFullClassArray func ChatFullClassArray.SortStableByID() ChatFullClassArray
ChatHandler is a Chat event handler. func UpdateDispatcher.OnChat(handler ChatHandler)
ChatInvite represents TL type `chatInvite#cde0ec40`. Chat invite info See https://core.telegram.org/constructor/chatInvite for reference. Description of the group of channel Use SetAbout and GetAbout helpers. Whether this is a channel¹ Links: 1) https://core.telegram.org/api/channel Whether this is a channel/supergroup¹ or a normal group² Links: 1) https://core.telegram.org/api/channel 2) https://core.telegram.org/api/channel Profile color palette ID¹ Links: 1) https://core.telegram.org/api/colors If set, this chat was reported by many users as a fake or scam: be careful when interacting with it. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this is a supergroup¹ Links: 1) https://core.telegram.org/api/channel A few of the participants that are in the group Use SetParticipants and GetParticipants helpers. Participant count Chat/supergroup/channel photo Whether this is a public channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel Whether the join request »¹ must be first approved by an administrator Links: 1) https://core.telegram.org/api/invites#join-requests This chat is probably a scam Chat/supergroup/channel title Is this chat or channel verified by Telegram? Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatInvite from given interface. GetAbout returns value of About conditional field and boolean which is true if field was set. GetBroadcast returns value of Broadcast conditional field. GetChannel returns value of Channel conditional field. GetColor returns value of Color field. GetFake returns value of Fake conditional field. GetMegagroup returns value of Megagroup conditional field. GetParticipants returns value of Participants conditional field and boolean which is true if field was set. GetParticipantsCount returns value of ParticipantsCount field. GetPhoto returns value of Photo field. GetPublic returns value of Public conditional field. GetRequestNeeded returns value of RequestNeeded conditional field. GetScam returns value of Scam conditional field. GetTitle returns value of Title field. GetVerified returns value of Verified conditional field. MapParticipants returns field Participants wrapped in UserClassArray helper. SetAbout sets value of About conditional field. SetBroadcast sets value of Broadcast conditional field. SetChannel sets value of Channel conditional field. SetFake sets value of Fake conditional field. SetFlags sets flags for non-zero fields. SetMegagroup sets value of Megagroup conditional field. SetParticipants sets value of Participants conditional field. SetPublic sets value of Public conditional field. SetRequestNeeded sets value of RequestNeeded conditional field. SetScam sets value of Scam conditional field. SetVerified sets value of Verified 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. (*ChatInvite) Zero() bool *ChatInvite : ChatInviteClass *ChatInvite : github.com/gotd/td/bin.BareDecoder *ChatInvite : github.com/gotd/td/bin.BareEncoder *ChatInvite : github.com/gotd/td/bin.Decoder *ChatInvite : github.com/gotd/td/bin.Encoder *ChatInvite : github.com/gotd/td/bin.Object *ChatInvite : github.com/gotd/td/tdp.Object *ChatInvite : fmt.Stringer func ChatInviteArray.First() (v ChatInvite, ok bool) func ChatInviteArray.Last() (v ChatInvite, ok bool) func (*ChatInviteArray).Pop() (v ChatInvite, ok bool) func (*ChatInviteArray).PopFirst() (v ChatInvite, ok bool)
ChatInviteAlready represents TL type `chatInviteAlready#5a686d7c`. The user has already joined this chat See https://core.telegram.org/constructor/chatInviteAlready for reference. Chat ChatClass Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatInviteAlready from given interface. GetChat returns value of Chat 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. (*ChatInviteAlready) Zero() bool *ChatInviteAlready : ChatInviteClass *ChatInviteAlready : github.com/gotd/td/bin.BareDecoder *ChatInviteAlready : github.com/gotd/td/bin.BareEncoder *ChatInviteAlready : github.com/gotd/td/bin.Decoder *ChatInviteAlready : github.com/gotd/td/bin.Encoder *ChatInviteAlready : github.com/gotd/td/bin.Object *ChatInviteAlready : github.com/gotd/td/tdp.Object *ChatInviteAlready : fmt.Stringer func ChatInviteAlreadyArray.First() (v ChatInviteAlready, ok bool) func ChatInviteAlreadyArray.Last() (v ChatInviteAlready, ok bool) func (*ChatInviteAlreadyArray).Pop() (v ChatInviteAlready, ok bool) func (*ChatInviteAlreadyArray).PopFirst() (v ChatInviteAlready, ok bool)
ChatInviteAlreadyArray is adapter for slice of ChatInviteAlready. 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 ChatInviteAlready. Sort sorts slice of ChatInviteAlready. SortStable sorts slice of ChatInviteAlready. func ChatInviteAlreadyArray.Retain(keep func(x ChatInviteAlready) bool) ChatInviteAlreadyArray func ChatInviteAlreadyArray.Sort(less func(a, b ChatInviteAlready) bool) ChatInviteAlreadyArray func ChatInviteAlreadyArray.SortStable(less func(a, b ChatInviteAlready) bool) ChatInviteAlreadyArray func ChatInviteClassArray.AsChatInviteAlready() (to ChatInviteAlreadyArray)
ChatInviteArray is adapter for slice of ChatInvite. 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 ChatInvite. Sort sorts slice of ChatInvite. SortStable sorts slice of ChatInvite. func ChatInviteArray.Retain(keep func(x ChatInvite) bool) ChatInviteArray func ChatInviteArray.Sort(less func(a, b ChatInvite) bool) ChatInviteArray func ChatInviteArray.SortStable(less func(a, b ChatInvite) bool) ChatInviteArray func ChatInviteClassArray.AsChatInvite() (to ChatInviteArray)
ChatInvite boxes the ChatInviteClass providing a helper. ChatInvite ChatInviteClass Decode implements bin.Decoder for ChatInviteBox. Encode implements bin.Encode for ChatInviteBox. *ChatInviteBox : github.com/gotd/td/bin.Decoder *ChatInviteBox : github.com/gotd/td/bin.Encoder *ChatInviteBox : github.com/gotd/td/bin.Object
ChatInviteClass represents ChatInvite generic type. See https://core.telegram.org/type/ChatInvite for reference. Example: g, err := tg.DecodeChatInvite(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChatInviteAlready: // chatInviteAlready#5a686d7c case *tg.ChatInvite: // chatInvite#cde0ec40 case *tg.ChatInvitePeek: // chatInvitePeek#61695cb0 default: panic(v) } ( ChatInviteClass) Decode(b *bin.Buffer) error ( ChatInviteClass) DecodeBare(b *bin.Buffer) error ( ChatInviteClass) Encode(b *bin.Buffer) error ( ChatInviteClass) 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. *ChatInvite *ChatInviteAlready *ChatInvitePeek ChatInviteClass : github.com/gotd/td/bin.BareDecoder ChatInviteClass : github.com/gotd/td/bin.BareEncoder ChatInviteClass : github.com/gotd/td/bin.Decoder ChatInviteClass : github.com/gotd/td/bin.Encoder ChatInviteClass : github.com/gotd/td/bin.Object ChatInviteClass : fmt.Stringer func DecodeChatInvite(buf *bin.Buffer) (ChatInviteClass, error) func ChatInviteClassArray.First() (v ChatInviteClass, ok bool) func ChatInviteClassArray.Last() (v ChatInviteClass, ok bool) func (*ChatInviteClassArray).Pop() (v ChatInviteClass, ok bool) func (*ChatInviteClassArray).PopFirst() (v ChatInviteClass, ok bool) func (*Client).MessagesCheckChatInvite(ctx context.Context, hash string) (ChatInviteClass, error) func (*RecentMeURLChatInvite).GetChatInvite() (value ChatInviteClass) func (*SponsoredMessage).GetChatInvite() (value ChatInviteClass, ok bool) func (*SponsoredMessage).SetChatInvite(value ChatInviteClass)
ChatInviteClassArray is adapter for slice of ChatInviteClass. AsChatInvite returns copy with only ChatInvite constructors. AsChatInviteAlready returns copy with only ChatInviteAlready constructors. AsChatInvitePeek returns copy with only ChatInvitePeek 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 ChatInviteClass. Sort sorts slice of ChatInviteClass. SortStable sorts slice of ChatInviteClass. func ChatInviteClassArray.Retain(keep func(x ChatInviteClass) bool) ChatInviteClassArray func ChatInviteClassArray.Sort(less func(a, b ChatInviteClass) bool) ChatInviteClassArray func ChatInviteClassArray.SortStable(less func(a, b ChatInviteClass) bool) ChatInviteClassArray
ChatInviteExported represents TL type `chatInviteExported#ab4a819`. Exported chat invite See https://core.telegram.org/constructor/chatInviteExported for reference. ID of the admin that created this chat invite When was this chat invite created When does this chat invite expire Use SetExpireDate and GetExpireDate helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Chat invitation link Whether this chat invite has no expiration Whether users importing this invite link will have to be approved to join the channel or group Number of users that have already used this link to join Use SetRequested and GetRequested helpers. Whether this chat invite was revoked When was this chat invite last modified Use SetStartDate and GetStartDate helpers. Custom description for the invite link, visible only to admins Use SetTitle and GetTitle helpers. How many users joined using this link Use SetUsage and GetUsage helpers. Maximum number of users that can join using this link Use SetUsageLimit and GetUsageLimit helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatInviteExported from given interface. GetAdminID returns value of AdminID field. GetDate returns value of Date field. GetExpireDate returns value of ExpireDate conditional field and boolean which is true if field was set. GetLink returns value of Link field. GetPermanent returns value of Permanent conditional field. GetRequestNeeded returns value of RequestNeeded conditional field. GetRequested returns value of Requested conditional field and boolean which is true if field was set. GetRevoked returns value of Revoked conditional field. GetStartDate returns value of StartDate 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. GetUsage returns value of Usage conditional field and boolean which is true if field was set. GetUsageLimit returns value of UsageLimit conditional field and boolean which is true if field was set. SetExpireDate sets value of ExpireDate conditional field. SetFlags sets flags for non-zero fields. SetPermanent sets value of Permanent conditional field. SetRequestNeeded sets value of RequestNeeded conditional field. SetRequested sets value of Requested conditional field. SetRevoked sets value of Revoked conditional field. SetStartDate sets value of StartDate conditional field. SetTitle sets value of Title conditional field. SetUsage sets value of Usage conditional field. SetUsageLimit sets value of UsageLimit 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. (*ChatInviteExported) Zero() bool *ChatInviteExported : ExportedChatInviteClass *ChatInviteExported : github.com/gotd/td/bin.BareDecoder *ChatInviteExported : github.com/gotd/td/bin.BareEncoder *ChatInviteExported : github.com/gotd/td/bin.Decoder *ChatInviteExported : github.com/gotd/td/bin.Encoder *ChatInviteExported : github.com/gotd/td/bin.Object *ChatInviteExported : github.com/gotd/td/tdp.Object *ChatInviteExported : fmt.Stringer func ChatInviteExportedArray.First() (v ChatInviteExported, ok bool) func ChatInviteExportedArray.Last() (v ChatInviteExported, ok bool) func (*ChatInviteExportedArray).Pop() (v ChatInviteExported, ok bool) func (*ChatInviteExportedArray).PopFirst() (v ChatInviteExported, ok bool)
ChatInviteExportedArray is adapter for slice of ChatInviteExported. 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 ChatInviteExported. Sort sorts slice of ChatInviteExported. SortByDate sorts slice of ChatInviteExported by Date. SortStable sorts slice of ChatInviteExported. SortStableByDate sorts slice of ChatInviteExported by Date. func ChatInviteExportedArray.Retain(keep func(x ChatInviteExported) bool) ChatInviteExportedArray func ChatInviteExportedArray.Sort(less func(a, b ChatInviteExported) bool) ChatInviteExportedArray func ChatInviteExportedArray.SortByDate() ChatInviteExportedArray func ChatInviteExportedArray.SortStable(less func(a, b ChatInviteExported) bool) ChatInviteExportedArray func ChatInviteExportedArray.SortStableByDate() ChatInviteExportedArray func ExportedChatInviteClassArray.AsChatInviteExported() (to ChatInviteExportedArray)
ChatInviteImporter represents TL type `chatInviteImporter#8c5adfd9`. When and which user joined the chat using a chat invite See https://core.telegram.org/constructor/chatInviteImporter for reference. For users with pending requests, contains bio of the user that requested to join Use SetAbout and GetAbout helpers. The administrator that approved the join request »¹ of the user Links: 1) https://core.telegram.org/api/invites#join-requests Use SetApprovedBy and GetApprovedBy helpers. When did the user join Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this user currently has a pending join request »¹ Links: 1) https://core.telegram.org/api/invites#join-requests The user The participant joined by importing a chat folder deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatInviteImporter from given interface. GetAbout returns value of About conditional field and boolean which is true if field was set. GetApprovedBy returns value of ApprovedBy conditional field and boolean which is true if field was set. GetDate returns value of Date field. GetRequested returns value of Requested conditional field. GetUserID returns value of UserID field. GetViaChatlist returns value of ViaChatlist conditional field. SetAbout sets value of About conditional field. SetApprovedBy sets value of ApprovedBy conditional field. SetFlags sets flags for non-zero fields. SetRequested sets value of Requested conditional field. SetViaChatlist sets value of ViaChatlist 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. (*ChatInviteImporter) Zero() bool *ChatInviteImporter : github.com/gotd/td/bin.BareDecoder *ChatInviteImporter : github.com/gotd/td/bin.BareEncoder *ChatInviteImporter : github.com/gotd/td/bin.Decoder *ChatInviteImporter : github.com/gotd/td/bin.Encoder *ChatInviteImporter : github.com/gotd/td/bin.Object *ChatInviteImporter : github.com/gotd/td/tdp.Object *ChatInviteImporter : fmt.Stringer func (*MessagesChatInviteImporters).GetImporters() (value []ChatInviteImporter)
ChatInvitePeek represents TL type `chatInvitePeek#61695cb0`. A chat invitation that also allows peeking into the group to read messages without joining it. See https://core.telegram.org/constructor/chatInvitePeek for reference. Chat information Read-only anonymous access to this group will be revoked at this date Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatInvitePeek from given interface. GetChat returns value of Chat field. GetExpires returns value of Expires 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. (*ChatInvitePeek) Zero() bool *ChatInvitePeek : ChatInviteClass *ChatInvitePeek : github.com/gotd/td/bin.BareDecoder *ChatInvitePeek : github.com/gotd/td/bin.BareEncoder *ChatInvitePeek : github.com/gotd/td/bin.Decoder *ChatInvitePeek : github.com/gotd/td/bin.Encoder *ChatInvitePeek : github.com/gotd/td/bin.Object *ChatInvitePeek : github.com/gotd/td/tdp.Object *ChatInvitePeek : fmt.Stringer func ChatInvitePeekArray.First() (v ChatInvitePeek, ok bool) func ChatInvitePeekArray.Last() (v ChatInvitePeek, ok bool) func (*ChatInvitePeekArray).Pop() (v ChatInvitePeek, ok bool) func (*ChatInvitePeekArray).PopFirst() (v ChatInvitePeek, ok bool)
ChatInvitePeekArray is adapter for slice of ChatInvitePeek. 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 ChatInvitePeek. Sort sorts slice of ChatInvitePeek. SortStable sorts slice of ChatInvitePeek. func ChatInviteClassArray.AsChatInvitePeek() (to ChatInvitePeekArray) func ChatInvitePeekArray.Retain(keep func(x ChatInvitePeek) bool) ChatInvitePeekArray func ChatInvitePeekArray.Sort(less func(a, b ChatInvitePeek) bool) ChatInvitePeekArray func ChatInvitePeekArray.SortStable(less func(a, b ChatInvitePeek) bool) ChatInvitePeekArray
ChatInvitePublicJoinRequests represents TL type `chatInvitePublicJoinRequests#ed107ab7`. Used in updates and in the channel log to indicate when a user is requesting to join or has joined a discussion group¹ Links: 1. https://core.telegram.org/api/discussion#requiring-users-to-join-the-group See https://core.telegram.org/constructor/chatInvitePublicJoinRequests 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. (*ChatInvitePublicJoinRequests) Zero() bool *ChatInvitePublicJoinRequests : ExportedChatInviteClass *ChatInvitePublicJoinRequests : github.com/gotd/td/bin.BareDecoder *ChatInvitePublicJoinRequests : github.com/gotd/td/bin.BareEncoder *ChatInvitePublicJoinRequests : github.com/gotd/td/bin.Decoder *ChatInvitePublicJoinRequests : github.com/gotd/td/bin.Encoder *ChatInvitePublicJoinRequests : github.com/gotd/td/bin.Object *ChatInvitePublicJoinRequests : github.com/gotd/td/tdp.Object *ChatInvitePublicJoinRequests : fmt.Stringer
ChatlistsChatlistInvite represents TL type `chatlists.chatlistInvite#1dcd839d`. Info about a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/constructor/chatlists.chatlistInvite for reference. Related chat information Emoji to use as icon for the folder. Use SetEmoticon and GetEmoticon helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Supergroups and channels to join Name of the link Related user information Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsChatlistInvite from given interface. GetChats returns value of Chats field. GetEmoticon returns value of Emoticon conditional field and boolean which is true if field was set. GetPeers returns value of Peers field. GetTitle returns value of Title field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapPeers returns field Peers wrapped in PeerClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetEmoticon sets value of Emoticon 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. (*ChatlistsChatlistInvite) Zero() bool *ChatlistsChatlistInvite : ChatlistsChatlistInviteClass *ChatlistsChatlistInvite : github.com/gotd/td/bin.BareDecoder *ChatlistsChatlistInvite : github.com/gotd/td/bin.BareEncoder *ChatlistsChatlistInvite : github.com/gotd/td/bin.Decoder *ChatlistsChatlistInvite : github.com/gotd/td/bin.Encoder *ChatlistsChatlistInvite : github.com/gotd/td/bin.Object *ChatlistsChatlistInvite : github.com/gotd/td/tdp.Object *ChatlistsChatlistInvite : fmt.Stringer func ChatlistsChatlistInviteArray.First() (v ChatlistsChatlistInvite, ok bool) func ChatlistsChatlistInviteArray.Last() (v ChatlistsChatlistInvite, ok bool) func (*ChatlistsChatlistInviteArray).Pop() (v ChatlistsChatlistInvite, ok bool) func (*ChatlistsChatlistInviteArray).PopFirst() (v ChatlistsChatlistInvite, ok bool)
ChatlistsChatlistInviteAlready represents TL type `chatlists.chatlistInviteAlready#fa87f659`. Updated info about a chat folder deep link »¹ we already imported. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/constructor/chatlists.chatlistInviteAlready for reference. Peers that were already imported Related chat information ID of the imported folder New peers to be imported Related user information Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsChatlistInviteAlready from given interface. GetAlreadyPeers returns value of AlreadyPeers field. GetChats returns value of Chats field. GetFilterID returns value of FilterID field. GetMissingPeers returns value of MissingPeers field. GetUsers returns value of Users field. MapAlreadyPeers returns field AlreadyPeers wrapped in PeerClassArray helper. MapChats returns field Chats wrapped in ChatClassArray helper. MapMissingPeers returns field MissingPeers wrapped in PeerClassArray 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. (*ChatlistsChatlistInviteAlready) Zero() bool *ChatlistsChatlistInviteAlready : ChatlistsChatlistInviteClass *ChatlistsChatlistInviteAlready : github.com/gotd/td/bin.BareDecoder *ChatlistsChatlistInviteAlready : github.com/gotd/td/bin.BareEncoder *ChatlistsChatlistInviteAlready : github.com/gotd/td/bin.Decoder *ChatlistsChatlistInviteAlready : github.com/gotd/td/bin.Encoder *ChatlistsChatlistInviteAlready : github.com/gotd/td/bin.Object *ChatlistsChatlistInviteAlready : github.com/gotd/td/tdp.Object *ChatlistsChatlistInviteAlready : fmt.Stringer func ChatlistsChatlistInviteAlreadyArray.First() (v ChatlistsChatlistInviteAlready, ok bool) func ChatlistsChatlistInviteAlreadyArray.Last() (v ChatlistsChatlistInviteAlready, ok bool) func (*ChatlistsChatlistInviteAlreadyArray).Pop() (v ChatlistsChatlistInviteAlready, ok bool) func (*ChatlistsChatlistInviteAlreadyArray).PopFirst() (v ChatlistsChatlistInviteAlready, ok bool)
ChatlistsChatlistInviteAlreadyArray is adapter for slice of ChatlistsChatlistInviteAlready. 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 ChatlistsChatlistInviteAlready. Sort sorts slice of ChatlistsChatlistInviteAlready. SortStable sorts slice of ChatlistsChatlistInviteAlready. func ChatlistsChatlistInviteAlreadyArray.Retain(keep func(x ChatlistsChatlistInviteAlready) bool) ChatlistsChatlistInviteAlreadyArray func ChatlistsChatlistInviteAlreadyArray.Sort(less func(a, b ChatlistsChatlistInviteAlready) bool) ChatlistsChatlistInviteAlreadyArray func ChatlistsChatlistInviteAlreadyArray.SortStable(less func(a, b ChatlistsChatlistInviteAlready) bool) ChatlistsChatlistInviteAlreadyArray func ChatlistsChatlistInviteClassArray.AsChatlistsChatlistInviteAlready() (to ChatlistsChatlistInviteAlreadyArray)
ChatlistsChatlistInviteArray is adapter for slice of ChatlistsChatlistInvite. 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 ChatlistsChatlistInvite. Sort sorts slice of ChatlistsChatlistInvite. SortStable sorts slice of ChatlistsChatlistInvite. func ChatlistsChatlistInviteArray.Retain(keep func(x ChatlistsChatlistInvite) bool) ChatlistsChatlistInviteArray func ChatlistsChatlistInviteArray.Sort(less func(a, b ChatlistsChatlistInvite) bool) ChatlistsChatlistInviteArray func ChatlistsChatlistInviteArray.SortStable(less func(a, b ChatlistsChatlistInvite) bool) ChatlistsChatlistInviteArray func ChatlistsChatlistInviteClassArray.AsChatlistsChatlistInvite() (to ChatlistsChatlistInviteArray)
ChatlistsChatlistInvite boxes the ChatlistsChatlistInviteClass providing a helper. ChatlistInvite ChatlistsChatlistInviteClass Decode implements bin.Decoder for ChatlistsChatlistInviteBox. Encode implements bin.Encode for ChatlistsChatlistInviteBox. *ChatlistsChatlistInviteBox : github.com/gotd/td/bin.Decoder *ChatlistsChatlistInviteBox : github.com/gotd/td/bin.Encoder *ChatlistsChatlistInviteBox : github.com/gotd/td/bin.Object
ChatlistsChatlistInviteClass represents chatlists.ChatlistInvite generic type. See https://core.telegram.org/type/chatlists.ChatlistInvite for reference. Example: g, err := tg.DecodeChatlistsChatlistInvite(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChatlistsChatlistInviteAlready: // chatlists.chatlistInviteAlready#fa87f659 case *tg.ChatlistsChatlistInvite: // chatlists.chatlistInvite#1dcd839d default: panic(v) } ( ChatlistsChatlistInviteClass) Decode(b *bin.Buffer) error ( ChatlistsChatlistInviteClass) DecodeBare(b *bin.Buffer) error ( ChatlistsChatlistInviteClass) Encode(b *bin.Buffer) error ( ChatlistsChatlistInviteClass) EncodeBare(b *bin.Buffer) error Related chat information Related user information Related chat information Related user information 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. *ChatlistsChatlistInvite *ChatlistsChatlistInviteAlready ChatlistsChatlistInviteClass : github.com/gotd/td/bin.BareDecoder ChatlistsChatlistInviteClass : github.com/gotd/td/bin.BareEncoder ChatlistsChatlistInviteClass : github.com/gotd/td/bin.Decoder ChatlistsChatlistInviteClass : github.com/gotd/td/bin.Encoder ChatlistsChatlistInviteClass : github.com/gotd/td/bin.Object ChatlistsChatlistInviteClass : fmt.Stringer func DecodeChatlistsChatlistInvite(buf *bin.Buffer) (ChatlistsChatlistInviteClass, error) func ChatlistsChatlistInviteClassArray.First() (v ChatlistsChatlistInviteClass, ok bool) func ChatlistsChatlistInviteClassArray.Last() (v ChatlistsChatlistInviteClass, ok bool) func (*ChatlistsChatlistInviteClassArray).Pop() (v ChatlistsChatlistInviteClass, ok bool) func (*ChatlistsChatlistInviteClassArray).PopFirst() (v ChatlistsChatlistInviteClass, ok bool) func (*Client).ChatlistsCheckChatlistInvite(ctx context.Context, slug string) (ChatlistsChatlistInviteClass, error)
ChatlistsChatlistInviteClassArray is adapter for slice of ChatlistsChatlistInviteClass. AsChatlistsChatlistInvite returns copy with only ChatlistsChatlistInvite constructors. AsChatlistsChatlistInviteAlready returns copy with only ChatlistsChatlistInviteAlready 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 ChatlistsChatlistInviteClass. Sort sorts slice of ChatlistsChatlistInviteClass. SortStable sorts slice of ChatlistsChatlistInviteClass. func ChatlistsChatlistInviteClassArray.Retain(keep func(x ChatlistsChatlistInviteClass) bool) ChatlistsChatlistInviteClassArray func ChatlistsChatlistInviteClassArray.Sort(less func(a, b ChatlistsChatlistInviteClass) bool) ChatlistsChatlistInviteClassArray func ChatlistsChatlistInviteClassArray.SortStable(less func(a, b ChatlistsChatlistInviteClass) bool) ChatlistsChatlistInviteClassArray
ChatlistsChatlistUpdates represents TL type `chatlists.chatlistUpdates#93bd878d`. Updated information about a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/constructor/chatlists.chatlistUpdates for reference. Related chat information New peers to join Related user information Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsChatlistUpdates from given interface. GetChats returns value of Chats field. GetMissingPeers returns value of MissingPeers field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapMissingPeers returns field MissingPeers wrapped in PeerClassArray 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. (*ChatlistsChatlistUpdates) Zero() bool *ChatlistsChatlistUpdates : github.com/gotd/td/bin.BareDecoder *ChatlistsChatlistUpdates : github.com/gotd/td/bin.BareEncoder *ChatlistsChatlistUpdates : github.com/gotd/td/bin.Decoder *ChatlistsChatlistUpdates : github.com/gotd/td/bin.Encoder *ChatlistsChatlistUpdates : github.com/gotd/td/bin.Object *ChatlistsChatlistUpdates : github.com/gotd/td/tdp.Object *ChatlistsChatlistUpdates : fmt.Stringer func (*Client).ChatlistsGetChatlistUpdates(ctx context.Context, chatlist InputChatlistDialogFilter) (*ChatlistsChatlistUpdates, error)
ChatlistsCheckChatlistInviteRequest represents TL type `chatlists.checkChatlistInvite#41c10fff`. Obtain information about a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.checkChatlistInvite for reference. slug obtained from the chat folder deep link »¹ Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsCheckChatlistInviteRequest 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. (*ChatlistsCheckChatlistInviteRequest) Zero() bool *ChatlistsCheckChatlistInviteRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsCheckChatlistInviteRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsCheckChatlistInviteRequest : github.com/gotd/td/bin.Decoder *ChatlistsCheckChatlistInviteRequest : github.com/gotd/td/bin.Encoder *ChatlistsCheckChatlistInviteRequest : github.com/gotd/td/bin.Object *ChatlistsCheckChatlistInviteRequest : github.com/gotd/td/tdp.Object *ChatlistsCheckChatlistInviteRequest : fmt.Stringer
ChatlistsDeleteExportedInviteRequest represents TL type `chatlists.deleteExportedInvite#719c5c5e`. Delete a previously created chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.deleteExportedInvite for reference. The related folder slug obtained from the chat folder deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsDeleteExportedInviteRequest from given interface. GetChatlist returns value of Chatlist 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. (*ChatlistsDeleteExportedInviteRequest) Zero() bool *ChatlistsDeleteExportedInviteRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsDeleteExportedInviteRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsDeleteExportedInviteRequest : github.com/gotd/td/bin.Decoder *ChatlistsDeleteExportedInviteRequest : github.com/gotd/td/bin.Encoder *ChatlistsDeleteExportedInviteRequest : github.com/gotd/td/bin.Object *ChatlistsDeleteExportedInviteRequest : github.com/gotd/td/tdp.Object *ChatlistsDeleteExportedInviteRequest : fmt.Stringer func (*Client).ChatlistsDeleteExportedInvite(ctx context.Context, request *ChatlistsDeleteExportedInviteRequest) (bool, error)
ChatlistsEditExportedInviteRequest represents TL type `chatlists.editExportedInvite#653db63d`. Edit a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.editExportedInvite for reference. Folder ID Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, changes the list of peers shared with the link Use SetPeers and GetPeers helpers. slug obtained from the chat folder deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-folder-links If set, sets a new name for the link Use SetTitle and GetTitle helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsEditExportedInviteRequest from given interface. GetChatlist returns value of Chatlist field. GetPeers returns value of Peers conditional field and boolean which is true if field was set. GetSlug returns value of Slug field. GetTitle returns value of Title conditional field and boolean which is true if field was set. MapPeers returns field Peers wrapped in InputPeerClassArray helper. SetFlags sets flags for non-zero fields. SetPeers sets value of Peers 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. (*ChatlistsEditExportedInviteRequest) Zero() bool *ChatlistsEditExportedInviteRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsEditExportedInviteRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsEditExportedInviteRequest : github.com/gotd/td/bin.Decoder *ChatlistsEditExportedInviteRequest : github.com/gotd/td/bin.Encoder *ChatlistsEditExportedInviteRequest : github.com/gotd/td/bin.Object *ChatlistsEditExportedInviteRequest : github.com/gotd/td/tdp.Object *ChatlistsEditExportedInviteRequest : fmt.Stringer func (*Client).ChatlistsEditExportedInvite(ctx context.Context, request *ChatlistsEditExportedInviteRequest) (*ExportedChatlistInvite, error)
ChatlistsExportChatlistInviteRequest represents TL type `chatlists.exportChatlistInvite#8472478e`. Export a folder »¹, creating a chat folder deep link »². Links: 1. https://core.telegram.org/api/folders 2. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.exportChatlistInvite for reference. The folder to export The list of channels, group and supergroups to share with the link. Basic groups will automatically be converted to supergroups¹ when invoking the method. Links: 1) https://core.telegram.org/api/channel#migration An optional name for the link Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsExportChatlistInviteRequest from given interface. GetChatlist returns value of Chatlist field. GetPeers returns value of Peers field. GetTitle returns value of Title field. MapPeers returns field Peers wrapped in InputPeerClassArray 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. (*ChatlistsExportChatlistInviteRequest) Zero() bool *ChatlistsExportChatlistInviteRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsExportChatlistInviteRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsExportChatlistInviteRequest : github.com/gotd/td/bin.Decoder *ChatlistsExportChatlistInviteRequest : github.com/gotd/td/bin.Encoder *ChatlistsExportChatlistInviteRequest : github.com/gotd/td/bin.Object *ChatlistsExportChatlistInviteRequest : github.com/gotd/td/tdp.Object *ChatlistsExportChatlistInviteRequest : fmt.Stringer func (*Client).ChatlistsExportChatlistInvite(ctx context.Context, request *ChatlistsExportChatlistInviteRequest) (*ChatlistsExportedChatlistInvite, error)
ChatlistsExportedChatlistInvite represents TL type `chatlists.exportedChatlistInvite#10e6e3a6`. Info about an exported chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/constructor/chatlists.exportedChatlistInvite for reference. Folder ID The exported chat folder deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsExportedChatlistInvite from given interface. GetFilter returns value of Filter field. GetInvite returns value of Invite 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. (*ChatlistsExportedChatlistInvite) Zero() bool *ChatlistsExportedChatlistInvite : github.com/gotd/td/bin.BareDecoder *ChatlistsExportedChatlistInvite : github.com/gotd/td/bin.BareEncoder *ChatlistsExportedChatlistInvite : github.com/gotd/td/bin.Decoder *ChatlistsExportedChatlistInvite : github.com/gotd/td/bin.Encoder *ChatlistsExportedChatlistInvite : github.com/gotd/td/bin.Object *ChatlistsExportedChatlistInvite : github.com/gotd/td/tdp.Object *ChatlistsExportedChatlistInvite : fmt.Stringer func (*Client).ChatlistsExportChatlistInvite(ctx context.Context, request *ChatlistsExportChatlistInviteRequest) (*ChatlistsExportedChatlistInvite, error)
ChatlistsExportedInvites represents TL type `chatlists.exportedInvites#10ab6dc7`. Info about multiple chat folder deep links »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/constructor/chatlists.exportedInvites for reference. Related chat information The chat folder deep links »¹. Links: 1) https://core.telegram.org/api/links#chat-folder-links Related user information Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsExportedInvites from given interface. GetChats returns value of Chats field. GetInvites returns value of Invites field. GetUsers returns value of Users 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. (*ChatlistsExportedInvites) Zero() bool *ChatlistsExportedInvites : github.com/gotd/td/bin.BareDecoder *ChatlistsExportedInvites : github.com/gotd/td/bin.BareEncoder *ChatlistsExportedInvites : github.com/gotd/td/bin.Decoder *ChatlistsExportedInvites : github.com/gotd/td/bin.Encoder *ChatlistsExportedInvites : github.com/gotd/td/bin.Object *ChatlistsExportedInvites : github.com/gotd/td/tdp.Object *ChatlistsExportedInvites : fmt.Stringer func (*Client).ChatlistsGetExportedInvites(ctx context.Context, chatlist InputChatlistDialogFilter) (*ChatlistsExportedInvites, error)
ChatlistsGetChatlistUpdatesRequest represents TL type `chatlists.getChatlistUpdates#89419521`. Fetch new chats associated with an imported chat folder deep link »¹. Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »²). Links: 1. https://core.telegram.org/api/links#chat-folder-links 2. https://core.telegram.org/api/config#chatlist-update-period See https://core.telegram.org/method/chatlists.getChatlistUpdates for reference. The folder Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsGetChatlistUpdatesRequest from given interface. GetChatlist returns value of Chatlist 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. (*ChatlistsGetChatlistUpdatesRequest) Zero() bool *ChatlistsGetChatlistUpdatesRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsGetChatlistUpdatesRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsGetChatlistUpdatesRequest : github.com/gotd/td/bin.Decoder *ChatlistsGetChatlistUpdatesRequest : github.com/gotd/td/bin.Encoder *ChatlistsGetChatlistUpdatesRequest : github.com/gotd/td/bin.Object *ChatlistsGetChatlistUpdatesRequest : github.com/gotd/td/tdp.Object *ChatlistsGetChatlistUpdatesRequest : fmt.Stringer
ChatlistsGetExportedInvitesRequest represents TL type `chatlists.getExportedInvites#ce03da83`. List all chat folder deep links »¹ associated to a folder Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.getExportedInvites for reference. The folder Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsGetExportedInvitesRequest from given interface. GetChatlist returns value of Chatlist 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. (*ChatlistsGetExportedInvitesRequest) Zero() bool *ChatlistsGetExportedInvitesRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsGetExportedInvitesRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsGetExportedInvitesRequest : github.com/gotd/td/bin.Decoder *ChatlistsGetExportedInvitesRequest : github.com/gotd/td/bin.Encoder *ChatlistsGetExportedInvitesRequest : github.com/gotd/td/bin.Object *ChatlistsGetExportedInvitesRequest : github.com/gotd/td/tdp.Object *ChatlistsGetExportedInvitesRequest : fmt.Stringer
ChatlistsGetLeaveChatlistSuggestionsRequest represents TL type `chatlists.getLeaveChatlistSuggestions#fdbcd714`. Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link »¹, which are suggested to be left when the chat folder is deleted. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.getLeaveChatlistSuggestions for reference. The folder Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsGetLeaveChatlistSuggestionsRequest from given interface. GetChatlist returns value of Chatlist 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. (*ChatlistsGetLeaveChatlistSuggestionsRequest) Zero() bool *ChatlistsGetLeaveChatlistSuggestionsRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsGetLeaveChatlistSuggestionsRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsGetLeaveChatlistSuggestionsRequest : github.com/gotd/td/bin.Decoder *ChatlistsGetLeaveChatlistSuggestionsRequest : github.com/gotd/td/bin.Encoder *ChatlistsGetLeaveChatlistSuggestionsRequest : github.com/gotd/td/bin.Object *ChatlistsGetLeaveChatlistSuggestionsRequest : github.com/gotd/td/tdp.Object *ChatlistsGetLeaveChatlistSuggestionsRequest : fmt.Stringer
ChatlistsHideChatlistUpdatesRequest represents TL type `chatlists.hideChatlistUpdates#66e486fb`. Dismiss new pending peers recently added to a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.hideChatlistUpdates for reference. The folder Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsHideChatlistUpdatesRequest from given interface. GetChatlist returns value of Chatlist 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. (*ChatlistsHideChatlistUpdatesRequest) Zero() bool *ChatlistsHideChatlistUpdatesRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsHideChatlistUpdatesRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsHideChatlistUpdatesRequest : github.com/gotd/td/bin.Decoder *ChatlistsHideChatlistUpdatesRequest : github.com/gotd/td/bin.Encoder *ChatlistsHideChatlistUpdatesRequest : github.com/gotd/td/bin.Object *ChatlistsHideChatlistUpdatesRequest : github.com/gotd/td/tdp.Object *ChatlistsHideChatlistUpdatesRequest : fmt.Stringer
ChatlistsJoinChatlistInviteRequest represents TL type `chatlists.joinChatlistInvite#a6b1e39a`. Import a chat folder deep link »¹, joining some or all the chats in the folder. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.joinChatlistInvite for reference. List of new chats to join, fetched using chatlists.checkChatlistInvite¹ and filtered as specified in the documentation »². Links: 1) https://core.telegram.org/method/chatlists.checkChatlistInvite 2) https://core.telegram.org/api/folders#shared-folders slug obtained from a chat folder deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsJoinChatlistInviteRequest from given interface. GetPeers returns value of Peers field. GetSlug returns value of Slug field. MapPeers returns field Peers wrapped in InputPeerClassArray 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. (*ChatlistsJoinChatlistInviteRequest) Zero() bool *ChatlistsJoinChatlistInviteRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsJoinChatlistInviteRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsJoinChatlistInviteRequest : github.com/gotd/td/bin.Decoder *ChatlistsJoinChatlistInviteRequest : github.com/gotd/td/bin.Encoder *ChatlistsJoinChatlistInviteRequest : github.com/gotd/td/bin.Object *ChatlistsJoinChatlistInviteRequest : github.com/gotd/td/tdp.Object *ChatlistsJoinChatlistInviteRequest : fmt.Stringer func (*Client).ChatlistsJoinChatlistInvite(ctx context.Context, request *ChatlistsJoinChatlistInviteRequest) (UpdatesClass, error)
ChatlistsJoinChatlistUpdatesRequest represents TL type `chatlists.joinChatlistUpdates#e089f8f5`. Join channels and supergroups recently added to a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.joinChatlistUpdates for reference. The folder List of new chats to join, fetched using chatlists.getChatlistUpdates¹ and filtered as specified in the documentation »². Links: 1) https://core.telegram.org/method/chatlists.getChatlistUpdates 2) https://core.telegram.org/api/folders#shared-folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsJoinChatlistUpdatesRequest from given interface. GetChatlist returns value of Chatlist field. GetPeers returns value of Peers field. MapPeers returns field Peers wrapped in InputPeerClassArray 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. (*ChatlistsJoinChatlistUpdatesRequest) Zero() bool *ChatlistsJoinChatlistUpdatesRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsJoinChatlistUpdatesRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsJoinChatlistUpdatesRequest : github.com/gotd/td/bin.Decoder *ChatlistsJoinChatlistUpdatesRequest : github.com/gotd/td/bin.Encoder *ChatlistsJoinChatlistUpdatesRequest : github.com/gotd/td/bin.Object *ChatlistsJoinChatlistUpdatesRequest : github.com/gotd/td/tdp.Object *ChatlistsJoinChatlistUpdatesRequest : fmt.Stringer func (*Client).ChatlistsJoinChatlistUpdates(ctx context.Context, request *ChatlistsJoinChatlistUpdatesRequest) (UpdatesClass, error)
ChatlistsLeaveChatlistRequest represents TL type `chatlists.leaveChatlist#74fae13a`. Delete a folder imported using a chat folder deep link »¹ Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.leaveChatlist for reference. The folder List of new chats to join, fetched using chatlists.getChatlistUpdates¹ and filtered as specified in the documentation »². Links: 1) https://core.telegram.org/method/chatlists.getChatlistUpdates 2) https://core.telegram.org/api/folders#shared-folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatlistsLeaveChatlistRequest from given interface. GetChatlist returns value of Chatlist field. GetPeers returns value of Peers field. MapPeers returns field Peers wrapped in InputPeerClassArray 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. (*ChatlistsLeaveChatlistRequest) Zero() bool *ChatlistsLeaveChatlistRequest : github.com/gotd/td/bin.BareDecoder *ChatlistsLeaveChatlistRequest : github.com/gotd/td/bin.BareEncoder *ChatlistsLeaveChatlistRequest : github.com/gotd/td/bin.Decoder *ChatlistsLeaveChatlistRequest : github.com/gotd/td/bin.Encoder *ChatlistsLeaveChatlistRequest : github.com/gotd/td/bin.Object *ChatlistsLeaveChatlistRequest : github.com/gotd/td/tdp.Object *ChatlistsLeaveChatlistRequest : fmt.Stringer func (*Client).ChatlistsLeaveChatlist(ctx context.Context, request *ChatlistsLeaveChatlistRequest) (UpdatesClass, error)
ChatOnlines represents TL type `chatOnlines#f041e250`. Number of online users in a chat See https://core.telegram.org/constructor/chatOnlines for reference. Number of online users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatOnlines from given interface. GetOnlines returns value of Onlines 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. (*ChatOnlines) Zero() bool *ChatOnlines : github.com/gotd/td/bin.BareDecoder *ChatOnlines : github.com/gotd/td/bin.BareEncoder *ChatOnlines : github.com/gotd/td/bin.Decoder *ChatOnlines : github.com/gotd/td/bin.Encoder *ChatOnlines : github.com/gotd/td/bin.Object *ChatOnlines : github.com/gotd/td/tdp.Object *ChatOnlines : fmt.Stringer func (*Client).MessagesGetOnlines(ctx context.Context, peer InputPeerClass) (*ChatOnlines, error)
ChatParticipant represents TL type `chatParticipant#c02d4007`. Group member. See https://core.telegram.org/constructor/chatParticipant for reference. Date added to the group ID of the user that added the member to the group Member user ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatParticipant from given interface. GetDate returns value of Date field. GetInviterID returns value of InviterID 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. (*ChatParticipant) Zero() bool *ChatParticipant : ChatParticipantClass *ChatParticipant : github.com/gotd/td/bin.BareDecoder *ChatParticipant : github.com/gotd/td/bin.BareEncoder *ChatParticipant : github.com/gotd/td/bin.Decoder *ChatParticipant : github.com/gotd/td/bin.Encoder *ChatParticipant : github.com/gotd/td/bin.Object *ChatParticipant : github.com/gotd/td/tdp.Object *ChatParticipant : fmt.Stringer func ChatParticipantArray.First() (v ChatParticipant, ok bool) func ChatParticipantArray.Last() (v ChatParticipant, ok bool) func (*ChatParticipantArray).Pop() (v ChatParticipant, ok bool) func (*ChatParticipantArray).PopFirst() (v ChatParticipant, ok bool)
ChatParticipantAddHandler is a ChatParticipantAdd event handler. func UpdateDispatcher.OnChatParticipantAdd(handler ChatParticipantAddHandler)
ChatParticipantAdmin represents TL type `chatParticipantAdmin#a0933f5b`. Chat admin See https://core.telegram.org/constructor/chatParticipantAdmin for reference. Date added to the group ID of the user that added the member to the group Member user ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatParticipantAdmin from given interface. GetDate returns value of Date field. GetInviterID returns value of InviterID 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. (*ChatParticipantAdmin) Zero() bool *ChatParticipantAdmin : ChatParticipantClass *ChatParticipantAdmin : github.com/gotd/td/bin.BareDecoder *ChatParticipantAdmin : github.com/gotd/td/bin.BareEncoder *ChatParticipantAdmin : github.com/gotd/td/bin.Decoder *ChatParticipantAdmin : github.com/gotd/td/bin.Encoder *ChatParticipantAdmin : github.com/gotd/td/bin.Object *ChatParticipantAdmin : github.com/gotd/td/tdp.Object *ChatParticipantAdmin : fmt.Stringer func ChatParticipantAdminArray.First() (v ChatParticipantAdmin, ok bool) func ChatParticipantAdminArray.Last() (v ChatParticipantAdmin, ok bool) func (*ChatParticipantAdminArray).Pop() (v ChatParticipantAdmin, ok bool) func (*ChatParticipantAdminArray).PopFirst() (v ChatParticipantAdmin, ok bool)
ChatParticipantAdminArray is adapter for slice of ChatParticipantAdmin. 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 ChatParticipantAdmin. Sort sorts slice of ChatParticipantAdmin. SortByDate sorts slice of ChatParticipantAdmin by Date. SortStable sorts slice of ChatParticipantAdmin. SortStableByDate sorts slice of ChatParticipantAdmin by Date. func ChatParticipantAdminArray.Retain(keep func(x ChatParticipantAdmin) bool) ChatParticipantAdminArray func ChatParticipantAdminArray.Sort(less func(a, b ChatParticipantAdmin) bool) ChatParticipantAdminArray func ChatParticipantAdminArray.SortByDate() ChatParticipantAdminArray func ChatParticipantAdminArray.SortStable(less func(a, b ChatParticipantAdmin) bool) ChatParticipantAdminArray func ChatParticipantAdminArray.SortStableByDate() ChatParticipantAdminArray func ChatParticipantClassArray.AsChatParticipantAdmin() (to ChatParticipantAdminArray)
ChatParticipantAdminHandler is a ChatParticipantAdmin event handler. func UpdateDispatcher.OnChatParticipantAdmin(handler ChatParticipantAdminHandler)
ChatParticipantArray is adapter for slice of ChatParticipant. 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 ChatParticipant. Sort sorts slice of ChatParticipant. SortByDate sorts slice of ChatParticipant by Date. SortStable sorts slice of ChatParticipant. SortStableByDate sorts slice of ChatParticipant by Date. func ChatParticipantArray.Retain(keep func(x ChatParticipant) bool) ChatParticipantArray func ChatParticipantArray.Sort(less func(a, b ChatParticipant) bool) ChatParticipantArray func ChatParticipantArray.SortByDate() ChatParticipantArray func ChatParticipantArray.SortStable(less func(a, b ChatParticipant) bool) ChatParticipantArray func ChatParticipantArray.SortStableByDate() ChatParticipantArray func ChatParticipantClassArray.AsChatParticipant() (to ChatParticipantArray)
ChatParticipant boxes the ChatParticipantClass providing a helper. ChatParticipant ChatParticipantClass Decode implements bin.Decoder for ChatParticipantBox. Encode implements bin.Encode for ChatParticipantBox. *ChatParticipantBox : github.com/gotd/td/bin.Decoder *ChatParticipantBox : github.com/gotd/td/bin.Encoder *ChatParticipantBox : github.com/gotd/td/bin.Object
ChatParticipantClass represents ChatParticipant generic type. See https://core.telegram.org/type/ChatParticipant for reference. Example: g, err := tg.DecodeChatParticipant(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChatParticipant: // chatParticipant#c02d4007 case *tg.ChatParticipantCreator: // chatParticipantCreator#e46bcee4 case *tg.ChatParticipantAdmin: // chatParticipantAdmin#a0933f5b default: panic(v) } ( ChatParticipantClass) Decode(b *bin.Buffer) error ( ChatParticipantClass) DecodeBare(b *bin.Buffer) error ( ChatParticipantClass) Encode(b *bin.Buffer) error ( ChatParticipantClass) EncodeBare(b *bin.Buffer) error Member user ID 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. *ChatParticipant *ChatParticipantAdmin *ChatParticipantCreator ChatParticipantClass : github.com/gotd/td/bin.BareDecoder ChatParticipantClass : github.com/gotd/td/bin.BareEncoder ChatParticipantClass : github.com/gotd/td/bin.Decoder ChatParticipantClass : github.com/gotd/td/bin.Encoder ChatParticipantClass : github.com/gotd/td/bin.Object ChatParticipantClass : fmt.Stringer func DecodeChatParticipant(buf *bin.Buffer) (ChatParticipantClass, error) func ChatParticipantClassArray.First() (v ChatParticipantClass, ok bool) func ChatParticipantClassArray.Last() (v ChatParticipantClass, ok bool) func (*ChatParticipantClassArray).Pop() (v ChatParticipantClass, ok bool) func (*ChatParticipantClassArray).PopFirst() (v ChatParticipantClass, ok bool) func (*ChatParticipants).GetParticipants() (value []ChatParticipantClass) func (*ChatParticipantsForbidden).GetSelfParticipant() (value ChatParticipantClass, ok bool) func (*UpdateChatParticipant).GetNewParticipant() (value ChatParticipantClass, ok bool) func (*UpdateChatParticipant).GetPrevParticipant() (value ChatParticipantClass, ok bool) func (*ChatParticipantsForbidden).SetSelfParticipant(value ChatParticipantClass) func (*UpdateChatParticipant).SetNewParticipant(value ChatParticipantClass) func (*UpdateChatParticipant).SetPrevParticipant(value ChatParticipantClass)
ChatParticipantClassArray is adapter for slice of ChatParticipantClass. AsChatParticipant returns copy with only ChatParticipant constructors. AsChatParticipantAdmin returns copy with only ChatParticipantAdmin constructors. AsChatParticipantCreator returns copy with only ChatParticipantCreator 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 ChatParticipantClass. Sort sorts slice of ChatParticipantClass. SortStable sorts slice of ChatParticipantClass. func ChatParticipantClassArray.Retain(keep func(x ChatParticipantClass) bool) ChatParticipantClassArray func ChatParticipantClassArray.Sort(less func(a, b ChatParticipantClass) bool) ChatParticipantClassArray func ChatParticipantClassArray.SortStable(less func(a, b ChatParticipantClass) bool) ChatParticipantClassArray func (*ChatParticipants).MapParticipants() (value ChatParticipantClassArray)
ChatParticipantCreator represents TL type `chatParticipantCreator#e46bcee4`. Represents the creator of the group See https://core.telegram.org/constructor/chatParticipantCreator for reference. ID of the user that created the group Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatParticipantCreator from given interface. 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. (*ChatParticipantCreator) Zero() bool *ChatParticipantCreator : ChatParticipantClass *ChatParticipantCreator : github.com/gotd/td/bin.BareDecoder *ChatParticipantCreator : github.com/gotd/td/bin.BareEncoder *ChatParticipantCreator : github.com/gotd/td/bin.Decoder *ChatParticipantCreator : github.com/gotd/td/bin.Encoder *ChatParticipantCreator : github.com/gotd/td/bin.Object *ChatParticipantCreator : github.com/gotd/td/tdp.Object *ChatParticipantCreator : fmt.Stringer func ChatParticipantCreatorArray.First() (v ChatParticipantCreator, ok bool) func ChatParticipantCreatorArray.Last() (v ChatParticipantCreator, ok bool) func (*ChatParticipantCreatorArray).Pop() (v ChatParticipantCreator, ok bool) func (*ChatParticipantCreatorArray).PopFirst() (v ChatParticipantCreator, ok bool)
ChatParticipantCreatorArray is adapter for slice of ChatParticipantCreator. 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 ChatParticipantCreator. Sort sorts slice of ChatParticipantCreator. SortStable sorts slice of ChatParticipantCreator. func ChatParticipantClassArray.AsChatParticipantCreator() (to ChatParticipantCreatorArray) func ChatParticipantCreatorArray.Retain(keep func(x ChatParticipantCreator) bool) ChatParticipantCreatorArray func ChatParticipantCreatorArray.Sort(less func(a, b ChatParticipantCreator) bool) ChatParticipantCreatorArray func ChatParticipantCreatorArray.SortStable(less func(a, b ChatParticipantCreator) bool) ChatParticipantCreatorArray
ChatParticipantDeleteHandler is a ChatParticipantDelete event handler. func UpdateDispatcher.OnChatParticipantDelete(handler ChatParticipantDeleteHandler)
ChatParticipantHandler is a ChatParticipant event handler. func UpdateDispatcher.OnChatParticipant(handler ChatParticipantHandler)
ChatParticipants represents TL type `chatParticipants#3cbc93f8`. Group members. See https://core.telegram.org/constructor/chatParticipants for reference. Group identifier List of group members Group version number AsNotForbidden tries to map ChatParticipants to ChatParticipants. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatParticipants from given interface. GetChatID returns value of ChatID field. GetParticipants returns value of Participants field. GetVersion returns value of Version field. MapParticipants returns field Participants wrapped in ChatParticipantClassArray 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. (*ChatParticipants) Zero() bool *ChatParticipants : ChatParticipantsClass *ChatParticipants : github.com/gotd/td/bin.BareDecoder *ChatParticipants : github.com/gotd/td/bin.BareEncoder *ChatParticipants : github.com/gotd/td/bin.Decoder *ChatParticipants : github.com/gotd/td/bin.Encoder *ChatParticipants : github.com/gotd/td/bin.Object *ChatParticipants : github.com/gotd/td/tdp.Object *ChatParticipants : fmt.Stringer func (*ChatParticipants).AsNotForbidden() (*ChatParticipants, bool) func ChatParticipantsArray.First() (v ChatParticipants, ok bool) func ChatParticipantsArray.Last() (v ChatParticipants, ok bool) func (*ChatParticipantsArray).Pop() (v ChatParticipants, ok bool) func (*ChatParticipantsArray).PopFirst() (v ChatParticipants, ok bool) func ChatParticipantsClass.AsNotForbidden() (*ChatParticipants, bool) func ChatParticipantsClassArray.AppendOnlyNotForbidden(to []*ChatParticipants) []*ChatParticipants func ChatParticipantsClassArray.AsNotForbidden() (to []*ChatParticipants) func ChatParticipantsClassArray.FirstAsNotForbidden() (v *ChatParticipants, ok bool) func ChatParticipantsClassArray.LastAsNotForbidden() (v *ChatParticipants, ok bool) func (*ChatParticipantsClassArray).PopAsNotForbidden() (v *ChatParticipants, ok bool) func (*ChatParticipantsClassArray).PopFirstAsNotForbidden() (v *ChatParticipants, ok bool) func (*ChatParticipantsForbidden).AsNotForbidden() (*ChatParticipants, bool) func ChatParticipantsClassArray.AppendOnlyNotForbidden(to []*ChatParticipants) []*ChatParticipants
ChatParticipantsArray is adapter for slice of ChatParticipants. 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 ChatParticipants. Sort sorts slice of ChatParticipants. SortStable sorts slice of ChatParticipants. func ChatParticipantsArray.Retain(keep func(x ChatParticipants) bool) ChatParticipantsArray func ChatParticipantsArray.Sort(less func(a, b ChatParticipants) bool) ChatParticipantsArray func ChatParticipantsArray.SortStable(less func(a, b ChatParticipants) bool) ChatParticipantsArray func ChatParticipantsClassArray.AsChatParticipants() (to ChatParticipantsArray)
ChatParticipants boxes the ChatParticipantsClass providing a helper. ChatParticipants ChatParticipantsClass Decode implements bin.Decoder for ChatParticipantsBox. Encode implements bin.Encode for ChatParticipantsBox. *ChatParticipantsBox : github.com/gotd/td/bin.Decoder *ChatParticipantsBox : github.com/gotd/td/bin.Encoder *ChatParticipantsBox : github.com/gotd/td/bin.Object
ChatParticipantsClass represents ChatParticipants generic type. See https://core.telegram.org/type/ChatParticipants for reference. Example: g, err := tg.DecodeChatParticipants(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChatParticipantsForbidden: // chatParticipantsForbidden#8763d3e1 case *tg.ChatParticipants: // chatParticipants#3cbc93f8 default: panic(v) } AsNotForbidden tries to map ChatParticipantsClass to ChatParticipants. ( ChatParticipantsClass) Decode(b *bin.Buffer) error ( ChatParticipantsClass) DecodeBare(b *bin.Buffer) error ( ChatParticipantsClass) Encode(b *bin.Buffer) error ( ChatParticipantsClass) EncodeBare(b *bin.Buffer) error Group ID 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. *ChatParticipants *ChatParticipantsForbidden ChatParticipantsClass : github.com/gotd/td/bin.BareDecoder ChatParticipantsClass : github.com/gotd/td/bin.BareEncoder ChatParticipantsClass : github.com/gotd/td/bin.Decoder ChatParticipantsClass : github.com/gotd/td/bin.Encoder ChatParticipantsClass : github.com/gotd/td/bin.Object ChatParticipantsClass : fmt.Stringer func DecodeChatParticipants(buf *bin.Buffer) (ChatParticipantsClass, error) func (*ChatFull).GetParticipants() (value ChatParticipantsClass) func ChatParticipantsClassArray.First() (v ChatParticipantsClass, ok bool) func ChatParticipantsClassArray.Last() (v ChatParticipantsClass, ok bool) func (*ChatParticipantsClassArray).Pop() (v ChatParticipantsClass, ok bool) func (*ChatParticipantsClassArray).PopFirst() (v ChatParticipantsClass, ok bool) func (*UpdateChatParticipants).GetParticipants() (value ChatParticipantsClass)
ChatParticipantsClassArray is adapter for slice of ChatParticipantsClass. AppendOnlyNotForbidden appends only NotForbidden constructors to given slice. AsChatParticipants returns copy with only ChatParticipants constructors. AsChatParticipantsForbidden returns copy with only ChatParticipantsForbidden constructors. AsNotForbidden returns copy with only NotForbidden constructors. First returns first element of slice (if exists). FirstAsNotForbidden returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotForbidden returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotForbidden returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotForbidden returns element of slice (if exists). Retain filters in-place slice of ChatParticipantsClass. Sort sorts slice of ChatParticipantsClass. SortStable sorts slice of ChatParticipantsClass. func ChatParticipantsClassArray.Retain(keep func(x ChatParticipantsClass) bool) ChatParticipantsClassArray func ChatParticipantsClassArray.Sort(less func(a, b ChatParticipantsClass) bool) ChatParticipantsClassArray func ChatParticipantsClassArray.SortStable(less func(a, b ChatParticipantsClass) bool) ChatParticipantsClassArray
ChatParticipantsForbidden represents TL type `chatParticipantsForbidden#8763d3e1`. Info on members is unavailable See https://core.telegram.org/constructor/chatParticipantsForbidden for reference. Group ID Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Info about the group membership of the current user Use SetSelfParticipant and GetSelfParticipant helpers. AsNotForbidden tries to map ChatParticipantsForbidden to ChatParticipants. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatParticipantsForbidden from given interface. GetChatID returns value of ChatID field. GetSelfParticipant returns value of SelfParticipant conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetSelfParticipant sets value of SelfParticipant 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. (*ChatParticipantsForbidden) Zero() bool *ChatParticipantsForbidden : ChatParticipantsClass *ChatParticipantsForbidden : github.com/gotd/td/bin.BareDecoder *ChatParticipantsForbidden : github.com/gotd/td/bin.BareEncoder *ChatParticipantsForbidden : github.com/gotd/td/bin.Decoder *ChatParticipantsForbidden : github.com/gotd/td/bin.Encoder *ChatParticipantsForbidden : github.com/gotd/td/bin.Object *ChatParticipantsForbidden : github.com/gotd/td/tdp.Object *ChatParticipantsForbidden : fmt.Stringer func ChatParticipantsForbiddenArray.First() (v ChatParticipantsForbidden, ok bool) func ChatParticipantsForbiddenArray.Last() (v ChatParticipantsForbidden, ok bool) func (*ChatParticipantsForbiddenArray).Pop() (v ChatParticipantsForbidden, ok bool) func (*ChatParticipantsForbiddenArray).PopFirst() (v ChatParticipantsForbidden, ok bool)
ChatParticipantsForbiddenArray is adapter for slice of ChatParticipantsForbidden. 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 ChatParticipantsForbidden. Sort sorts slice of ChatParticipantsForbidden. SortStable sorts slice of ChatParticipantsForbidden. func ChatParticipantsClassArray.AsChatParticipantsForbidden() (to ChatParticipantsForbiddenArray) func ChatParticipantsForbiddenArray.Retain(keep func(x ChatParticipantsForbidden) bool) ChatParticipantsForbiddenArray func ChatParticipantsForbiddenArray.Sort(less func(a, b ChatParticipantsForbidden) bool) ChatParticipantsForbiddenArray func ChatParticipantsForbiddenArray.SortStable(less func(a, b ChatParticipantsForbidden) bool) ChatParticipantsForbiddenArray
ChatParticipantsHandler is a ChatParticipants event handler. func UpdateDispatcher.OnChatParticipants(handler ChatParticipantsHandler)
ChatPhoto represents TL type `chatPhoto#1c6e1c11`. Group profile photo. See https://core.telegram.org/constructor/chatPhoto for reference. DC where this photo is stored Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the user has an animated profile picture Photo ID Stripped thumbnail¹ Links: 1) https://core.telegram.org/api/files#stripped-thumbnails Use SetStrippedThumb and GetStrippedThumb helpers. AsNotEmpty tries to map ChatPhoto to ChatPhoto. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatPhoto from given interface. GetDCID returns value of DCID field. GetHasVideo returns value of HasVideo conditional field. GetPhotoID returns value of PhotoID field. GetStrippedThumb returns value of StrippedThumb conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetHasVideo sets value of HasVideo conditional field. SetStrippedThumb sets value of StrippedThumb 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. (*ChatPhoto) Zero() bool *ChatPhoto : ChatPhotoClass *ChatPhoto : github.com/gotd/td/bin.BareDecoder *ChatPhoto : github.com/gotd/td/bin.BareEncoder *ChatPhoto : github.com/gotd/td/bin.Decoder *ChatPhoto : github.com/gotd/td/bin.Encoder *ChatPhoto : github.com/gotd/td/bin.Object *ChatPhoto : github.com/gotd/td/tdp.Object *ChatPhoto : fmt.Stringer func (*ChatPhoto).AsNotEmpty() (*ChatPhoto, bool) func ChatPhotoArray.First() (v ChatPhoto, ok bool) func ChatPhotoArray.Last() (v ChatPhoto, ok bool) func (*ChatPhotoArray).Pop() (v ChatPhoto, ok bool) func (*ChatPhotoArray).PopFirst() (v ChatPhoto, ok bool) func ChatPhotoClass.AsNotEmpty() (*ChatPhoto, bool) func ChatPhotoClassArray.AppendOnlyNotEmpty(to []*ChatPhoto) []*ChatPhoto func ChatPhotoClassArray.AsNotEmpty() (to []*ChatPhoto) func ChatPhotoClassArray.FirstAsNotEmpty() (v *ChatPhoto, ok bool) func ChatPhotoClassArray.LastAsNotEmpty() (v *ChatPhoto, ok bool) func (*ChatPhotoClassArray).PopAsNotEmpty() (v *ChatPhoto, ok bool) func (*ChatPhotoClassArray).PopFirstAsNotEmpty() (v *ChatPhoto, ok bool) func (*ChatPhotoEmpty).AsNotEmpty() (*ChatPhoto, bool) func (*Folder).GetPhotoAsNotEmpty() (*ChatPhoto, bool) func ChatPhotoClassArray.AppendOnlyNotEmpty(to []*ChatPhoto) []*ChatPhoto
ChatPhotoArray is adapter for slice of ChatPhoto. 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 ChatPhoto. Sort sorts slice of ChatPhoto. SortStable sorts slice of ChatPhoto. func ChatPhotoArray.Retain(keep func(x ChatPhoto) bool) ChatPhotoArray func ChatPhotoArray.Sort(less func(a, b ChatPhoto) bool) ChatPhotoArray func ChatPhotoArray.SortStable(less func(a, b ChatPhoto) bool) ChatPhotoArray func ChatPhotoClassArray.AsChatPhoto() (to ChatPhotoArray)
ChatPhoto boxes the ChatPhotoClass providing a helper. ChatPhoto ChatPhotoClass Decode implements bin.Decoder for ChatPhotoBox. Encode implements bin.Encode for ChatPhotoBox. *ChatPhotoBox : github.com/gotd/td/bin.Decoder *ChatPhotoBox : github.com/gotd/td/bin.Encoder *ChatPhotoBox : github.com/gotd/td/bin.Object
ChatPhotoClass represents ChatPhoto generic type. See https://core.telegram.org/type/ChatPhoto for reference. Example: g, err := tg.DecodeChatPhoto(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChatPhotoEmpty: // chatPhotoEmpty#37c1011c case *tg.ChatPhoto: // chatPhoto#1c6e1c11 default: panic(v) } AsNotEmpty tries to map ChatPhotoClass to ChatPhoto. ( ChatPhotoClass) Decode(b *bin.Buffer) error ( ChatPhotoClass) DecodeBare(b *bin.Buffer) error ( ChatPhotoClass) Encode(b *bin.Buffer) error ( ChatPhotoClass) 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. *ChatPhoto *ChatPhotoEmpty ChatPhotoClass : github.com/gotd/td/bin.BareDecoder ChatPhotoClass : github.com/gotd/td/bin.BareEncoder ChatPhotoClass : github.com/gotd/td/bin.Decoder ChatPhotoClass : github.com/gotd/td/bin.Encoder ChatPhotoClass : github.com/gotd/td/bin.Object ChatPhotoClass : fmt.Stringer func DecodeChatPhoto(buf *bin.Buffer) (ChatPhotoClass, error) func (*Channel).GetPhoto() (value ChatPhotoClass) func (*Chat).GetPhoto() (value ChatPhotoClass) func ChatPhotoClassArray.First() (v ChatPhotoClass, ok bool) func ChatPhotoClassArray.Last() (v ChatPhotoClass, ok bool) func (*ChatPhotoClassArray).Pop() (v ChatPhotoClass, ok bool) func (*ChatPhotoClassArray).PopFirst() (v ChatPhotoClass, ok bool) func (*Folder).GetPhoto() (value ChatPhotoClass, ok bool) func FullChat.GetPhoto() (value ChatPhotoClass) func (*Folder).SetPhoto(value ChatPhotoClass)
ChatPhotoClassArray is adapter for slice of ChatPhotoClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsChatPhoto returns copy with only ChatPhoto constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of ChatPhotoClass. Sort sorts slice of ChatPhotoClass. SortStable sorts slice of ChatPhotoClass. func ChatPhotoClassArray.Retain(keep func(x ChatPhotoClass) bool) ChatPhotoClassArray func ChatPhotoClassArray.Sort(less func(a, b ChatPhotoClass) bool) ChatPhotoClassArray func ChatPhotoClassArray.SortStable(less func(a, b ChatPhotoClass) bool) ChatPhotoClassArray
ChatPhotoEmpty represents TL type `chatPhotoEmpty#37c1011c`. Group photo is not set. See https://core.telegram.org/constructor/chatPhotoEmpty for reference. AsNotEmpty tries to map ChatPhotoEmpty to ChatPhoto. 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. (*ChatPhotoEmpty) Zero() bool *ChatPhotoEmpty : ChatPhotoClass *ChatPhotoEmpty : github.com/gotd/td/bin.BareDecoder *ChatPhotoEmpty : github.com/gotd/td/bin.BareEncoder *ChatPhotoEmpty : github.com/gotd/td/bin.Decoder *ChatPhotoEmpty : github.com/gotd/td/bin.Encoder *ChatPhotoEmpty : github.com/gotd/td/bin.Object *ChatPhotoEmpty : github.com/gotd/td/tdp.Object *ChatPhotoEmpty : fmt.Stringer
ChatReactionsAll represents TL type `chatReactionsAll#52928bca`. All reactions or all non-custom reactions are allowed See https://core.telegram.org/constructor/chatReactionsAll for reference. Whether to allow custom reactions 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 ChatReactionsAll from given interface. GetAllowCustom returns value of AllowCustom conditional field. SetAllowCustom sets value of AllowCustom 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. (*ChatReactionsAll) Zero() bool *ChatReactionsAll : ChatReactionsClass *ChatReactionsAll : github.com/gotd/td/bin.BareDecoder *ChatReactionsAll : github.com/gotd/td/bin.BareEncoder *ChatReactionsAll : github.com/gotd/td/bin.Decoder *ChatReactionsAll : github.com/gotd/td/bin.Encoder *ChatReactionsAll : github.com/gotd/td/bin.Object *ChatReactionsAll : github.com/gotd/td/tdp.Object *ChatReactionsAll : fmt.Stringer func ChatReactionsAllArray.First() (v ChatReactionsAll, ok bool) func ChatReactionsAllArray.Last() (v ChatReactionsAll, ok bool) func (*ChatReactionsAllArray).Pop() (v ChatReactionsAll, ok bool) func (*ChatReactionsAllArray).PopFirst() (v ChatReactionsAll, ok bool)
ChatReactionsAllArray is adapter for slice of ChatReactionsAll. 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 ChatReactionsAll. Sort sorts slice of ChatReactionsAll. SortStable sorts slice of ChatReactionsAll. func ChatReactionsAllArray.Retain(keep func(x ChatReactionsAll) bool) ChatReactionsAllArray func ChatReactionsAllArray.Sort(less func(a, b ChatReactionsAll) bool) ChatReactionsAllArray func ChatReactionsAllArray.SortStable(less func(a, b ChatReactionsAll) bool) ChatReactionsAllArray func ChatReactionsClassArray.AsChatReactionsAll() (to ChatReactionsAllArray)
ChatReactions boxes the ChatReactionsClass providing a helper. ChatReactions ChatReactionsClass Decode implements bin.Decoder for ChatReactionsBox. Encode implements bin.Encode for ChatReactionsBox. *ChatReactionsBox : github.com/gotd/td/bin.Decoder *ChatReactionsBox : github.com/gotd/td/bin.Encoder *ChatReactionsBox : github.com/gotd/td/bin.Object
ChatReactionsClass represents ChatReactions generic type. See https://core.telegram.org/type/ChatReactions for reference. Example: g, err := tg.DecodeChatReactions(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChatReactionsNone: // chatReactionsNone#eafc32bc case *tg.ChatReactionsAll: // chatReactionsAll#52928bca case *tg.ChatReactionsSome: // chatReactionsSome#661d4037 default: panic(v) } ( ChatReactionsClass) Decode(b *bin.Buffer) error ( ChatReactionsClass) DecodeBare(b *bin.Buffer) error ( ChatReactionsClass) Encode(b *bin.Buffer) error ( ChatReactionsClass) 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. *ChatReactionsAll *ChatReactionsNone *ChatReactionsSome ChatReactionsClass : github.com/gotd/td/bin.BareDecoder ChatReactionsClass : github.com/gotd/td/bin.BareEncoder ChatReactionsClass : github.com/gotd/td/bin.Decoder ChatReactionsClass : github.com/gotd/td/bin.Encoder ChatReactionsClass : github.com/gotd/td/bin.Object ChatReactionsClass : fmt.Stringer func DecodeChatReactions(buf *bin.Buffer) (ChatReactionsClass, error) func (*ChannelAdminLogEventActionChangeAvailableReactions).GetNewValue() (value ChatReactionsClass) func (*ChannelAdminLogEventActionChangeAvailableReactions).GetPrevValue() (value ChatReactionsClass) func (*ChannelFull).GetAvailableReactions() (value ChatReactionsClass, ok bool) func (*ChatFull).GetAvailableReactions() (value ChatReactionsClass, ok bool) func ChatFullClass.GetAvailableReactions() (value ChatReactionsClass, ok bool) func ChatReactionsClassArray.First() (v ChatReactionsClass, ok bool) func ChatReactionsClassArray.Last() (v ChatReactionsClass, ok bool) func (*ChatReactionsClassArray).Pop() (v ChatReactionsClass, ok bool) func (*ChatReactionsClassArray).PopFirst() (v ChatReactionsClass, ok bool) func (*MessagesSetChatAvailableReactionsRequest).GetAvailableReactions() (value ChatReactionsClass) func (*ChannelFull).SetAvailableReactions(value ChatReactionsClass) func (*ChatFull).SetAvailableReactions(value ChatReactionsClass)
ChatReactionsClassArray is adapter for slice of ChatReactionsClass. AsChatReactionsAll returns copy with only ChatReactionsAll constructors. AsChatReactionsSome returns copy with only ChatReactionsSome 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 ChatReactionsClass. Sort sorts slice of ChatReactionsClass. SortStable sorts slice of ChatReactionsClass. func ChatReactionsClassArray.Retain(keep func(x ChatReactionsClass) bool) ChatReactionsClassArray func ChatReactionsClassArray.Sort(less func(a, b ChatReactionsClass) bool) ChatReactionsClassArray func ChatReactionsClassArray.SortStable(less func(a, b ChatReactionsClass) bool) ChatReactionsClassArray
ChatReactionsNone represents TL type `chatReactionsNone#eafc32bc`. No reactions are allowed See https://core.telegram.org/constructor/chatReactionsNone 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. (*ChatReactionsNone) Zero() bool *ChatReactionsNone : ChatReactionsClass *ChatReactionsNone : github.com/gotd/td/bin.BareDecoder *ChatReactionsNone : github.com/gotd/td/bin.BareEncoder *ChatReactionsNone : github.com/gotd/td/bin.Decoder *ChatReactionsNone : github.com/gotd/td/bin.Encoder *ChatReactionsNone : github.com/gotd/td/bin.Object *ChatReactionsNone : github.com/gotd/td/tdp.Object *ChatReactionsNone : fmt.Stringer
ChatReactionsSome represents TL type `chatReactionsSome#661d4037`. Some reactions are allowed See https://core.telegram.org/constructor/chatReactionsSome for reference. Allowed set of reactions: the reactions_in_chat_max¹ configuration field indicates the maximum number of reactions that can be specified in this field. Links: 1) https://core.telegram.org/api/config#reactions-in-chat-max Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ChatReactionsSome from given interface. GetReactions returns value of Reactions field. MapReactions returns field Reactions wrapped in ReactionClassArray 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. (*ChatReactionsSome) Zero() bool *ChatReactionsSome : ChatReactionsClass *ChatReactionsSome : github.com/gotd/td/bin.BareDecoder *ChatReactionsSome : github.com/gotd/td/bin.BareEncoder *ChatReactionsSome : github.com/gotd/td/bin.Decoder *ChatReactionsSome : github.com/gotd/td/bin.Encoder *ChatReactionsSome : github.com/gotd/td/bin.Object *ChatReactionsSome : github.com/gotd/td/tdp.Object *ChatReactionsSome : fmt.Stringer func ChatReactionsSomeArray.First() (v ChatReactionsSome, ok bool) func ChatReactionsSomeArray.Last() (v ChatReactionsSome, ok bool) func (*ChatReactionsSomeArray).Pop() (v ChatReactionsSome, ok bool) func (*ChatReactionsSomeArray).PopFirst() (v ChatReactionsSome, ok bool)
ChatReactionsSomeArray is adapter for slice of ChatReactionsSome. 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 ChatReactionsSome. Sort sorts slice of ChatReactionsSome. SortStable sorts slice of ChatReactionsSome. func ChatReactionsClassArray.AsChatReactionsSome() (to ChatReactionsSomeArray) func ChatReactionsSomeArray.Retain(keep func(x ChatReactionsSome) bool) ChatReactionsSomeArray func ChatReactionsSomeArray.Sort(less func(a, b ChatReactionsSome) bool) ChatReactionsSomeArray func ChatReactionsSomeArray.SortStable(less func(a, b ChatReactionsSome) bool) ChatReactionsSomeArray
ChatUserTypingHandler is a ChatUserTyping event handler. func UpdateDispatcher.OnChatUserTyping(handler ChatUserTypingHandler)
Client implement methods for calling functions from TL schema via Invoker. AccountAcceptAuthorization invokes method account.acceptAuthorization#f3ed4c73 returning error if any. Sends a Telegram Passport authorization form, effectively sharing data with the service See https://core.telegram.org/method/account.acceptAuthorization for reference. AccountCancelPasswordEmail invokes method account.cancelPasswordEmail#c1cbd5b6 returning error if any. Cancel the code that was sent to verify an email to use as 2FA recovery method¹. Links: 1. https://core.telegram.org/api/srp Possible errors: 400 EMAIL_HASH_EXPIRED: Email hash expired. See https://core.telegram.org/method/account.cancelPasswordEmail for reference. AccountChangeAuthorizationSettings invokes method account.changeAuthorizationSettings#40f48462 returning error if any. Change settings related to a session. Possible errors: 400 HASH_INVALID: The provided hash is invalid. See https://core.telegram.org/method/account.changeAuthorizationSettings for reference. AccountChangePhone invokes method account.changePhone#70c32edb returning error if any. Change the phone number of the current account Possible errors: 400 PHONE_CODE_EMPTY: phone_code is missing. 400 PHONE_CODE_EXPIRED: The phone code you provided has expired. 406 PHONE_NUMBER_INVALID: The phone number is invalid. 400 PHONE_NUMBER_OCCUPIED: The phone number is already in use. See https://core.telegram.org/method/account.changePhone for reference. AccountCheckUsername invokes method account.checkUsername#2714d86c returning error if any. Validates a username and checks availability. Possible errors: 400 USERNAME_INVALID: The provided username is not valid. 400 USERNAME_OCCUPIED: The provided username is already occupied. 400 USERNAME_PURCHASE_AVAILABLE: The specified username can be purchased on https://fragment.com. See https://core.telegram.org/method/account.checkUsername for reference. AccountClearRecentEmojiStatuses invokes method account.clearRecentEmojiStatuses#18201aae returning error if any. 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. AccountConfirmPasswordEmail invokes method account.confirmPasswordEmail#8fdf1920 returning error if any. Verify an email to use as 2FA recovery method¹. Links: 1. https://core.telegram.org/api/srp Possible errors: 400 CODE_INVALID: Code invalid. 400 EMAIL_HASH_EXPIRED: Email hash expired. See https://core.telegram.org/method/account.confirmPasswordEmail for reference. AccountConfirmPhone invokes method account.confirmPhone#5f2178c3 returning error if any. Confirm a phone number to cancel account deletion, for more info click here »¹ Links: 1. https://core.telegram.org/api/account-deletion Possible errors: 400 CODE_HASH_INVALID: Code hash invalid. 400 PHONE_CODE_EMPTY: phone_code is missing. See https://core.telegram.org/method/account.confirmPhone for reference. AccountCreateTheme invokes method account.createTheme#652e4400 returning error if any. Create a theme Possible errors: 400 THEME_MIME_INVALID: The theme's MIME type is invalid. 400 THEME_TITLE_INVALID: The specified theme title is invalid. See https://core.telegram.org/method/account.createTheme for reference. AccountDeclinePasswordReset invokes method account.declinePasswordReset#4c9409f6 returning error if any. Abort a pending 2FA password reset, see here for more info »¹ Links: 1. https://core.telegram.org/api/srp#password-reset Possible errors: 400 RESET_REQUEST_MISSING: No password reset is in progress. See https://core.telegram.org/method/account.declinePasswordReset for reference. AccountDeleteAccount invokes method account.deleteAccount#a2c0cf74 returning error if any. 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 Possible errors: 420 2FA_CONFIRM_WAIT_%d: Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in %d seconds. See https://core.telegram.org/method/account.deleteAccount for reference. AccountDeleteAutoSaveExceptions invokes method account.deleteAutoSaveExceptions#53bc0020 returning error if any. Clear all peer-specific autosave settings. See https://core.telegram.org/method/account.deleteAutoSaveExceptions for reference. AccountDeleteSecureValue invokes method account.deleteSecureValue#b880bc4b returning error if any. 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. AccountFinishTakeoutSession invokes method account.finishTakeoutSession#1d2652ee returning error if any. Terminate a takeout session, see here » for more info¹. Links: 1. https://core.telegram.org/api/takeout Possible errors: 403 TAKEOUT_REQUIRED: A takeout session needs to be initialized first, see here » for more info. See https://core.telegram.org/method/account.finishTakeoutSession for reference. AccountGetAccountTTL invokes method account.getAccountTTL#8fc711d returning error if any. Get days to live of account See https://core.telegram.org/method/account.getAccountTTL for reference. AccountGetAllSecureValues invokes method account.getAllSecureValues#b288bc7d returning error if any. 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. AccountGetAuthorizationForm invokes method account.getAuthorizationForm#a929597a returning error if any. Returns a Telegram Passport authorization form for sharing data with a service Possible errors: 400 PUBLIC_KEY_REQUIRED: A public key is required. See https://core.telegram.org/method/account.getAuthorizationForm for reference. AccountGetAuthorizations invokes method account.getAuthorizations#e320c158 returning error if any. Get logged-in sessions See https://core.telegram.org/method/account.getAuthorizations for reference. AccountGetAutoDownloadSettings invokes method account.getAutoDownloadSettings#56da0b3f returning error if any. Get media autodownload settings See https://core.telegram.org/method/account.getAutoDownloadSettings for reference. AccountGetAutoSaveSettings invokes method account.getAutoSaveSettings#adcbbcda returning error if any. Get autosave settings See https://core.telegram.org/method/account.getAutoSaveSettings for reference. AccountGetChannelDefaultEmojiStatuses invokes method account.getChannelDefaultEmojiStatuses#7727a7d5 returning error if any. See https://core.telegram.org/method/account.getChannelDefaultEmojiStatuses for reference. AccountGetChannelRestrictedStatusEmojis invokes method account.getChannelRestrictedStatusEmojis#35a9e0d5 returning error if any. See https://core.telegram.org/method/account.getChannelRestrictedStatusEmojis for reference. AccountGetChatThemes invokes method account.getChatThemes#d638de89 returning error if any. Get all available chat themes See https://core.telegram.org/method/account.getChatThemes for reference. AccountGetContactSignUpNotification invokes method account.getContactSignUpNotification#9f07c728 returning error if any. Whether the user will receive notifications when contacts sign up See https://core.telegram.org/method/account.getContactSignUpNotification for reference. AccountGetContentSettings invokes method account.getContentSettings#8b9b4dae returning error if any. Get sensitive content settings See https://core.telegram.org/method/account.getContentSettings for reference. AccountGetDefaultBackgroundEmojis invokes method account.getDefaultBackgroundEmojis#a60ab9ce returning error if any. 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. AccountGetDefaultEmojiStatuses invokes method account.getDefaultEmojiStatuses#d6753386 returning error if any. 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. AccountGetDefaultGroupPhotoEmojis invokes method account.getDefaultGroupPhotoEmojis#915860ae returning error if any. 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. AccountGetDefaultProfilePhotoEmojis invokes method account.getDefaultProfilePhotoEmojis#e2750328 returning error if any. 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. AccountGetGlobalPrivacySettings invokes method account.getGlobalPrivacySettings#eb2b4cf6 returning error if any. Get global privacy settings See https://core.telegram.org/method/account.getGlobalPrivacySettings for reference. AccountGetMultiWallPapers invokes method account.getMultiWallPapers#65ad71dc returning error if any. Get info about multiple wallpapers¹ Links: 1. https://core.telegram.org/api/wallpapers Possible errors: 400 WALLPAPER_INVALID: The specified wallpaper is invalid. See https://core.telegram.org/method/account.getMultiWallPapers for reference. AccountGetNotifyExceptions invokes method account.getNotifyExceptions#53577479 returning error if any. Returns list of chats with non-default notification settings See https://core.telegram.org/method/account.getNotifyExceptions for reference. AccountGetNotifySettings invokes method account.getNotifySettings#12b3ad31 returning error if any. Gets current notification settings for a given user/group, from all users/all groups. Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/account.getNotifySettings for reference. AccountGetPassword invokes method account.getPassword#548a30f5 returning error if any. Obtain configuration for two-factor authorization with password See https://core.telegram.org/method/account.getPassword for reference. AccountGetPasswordSettings invokes method account.getPasswordSettings#9cd4eaf9 returning error if any. Get private info associated to the password info (recovery email, telegram passport¹ info & so on) Links: 1. https://core.telegram.org/passport Possible errors: 400 PASSWORD_HASH_INVALID: The provided password hash is invalid. See https://core.telegram.org/method/account.getPasswordSettings for reference. AccountGetPrivacy invokes method account.getPrivacy#dadbc950 returning error if any. Get privacy settings of current account Possible errors: 400 PRIVACY_KEY_INVALID: The privacy key is invalid. See https://core.telegram.org/method/account.getPrivacy for reference. AccountGetRecentEmojiStatuses invokes method account.getRecentEmojiStatuses#f578105 returning error if any. Get recently used emoji statuses¹ Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/method/account.getRecentEmojiStatuses for reference. AccountGetSavedRingtones invokes method account.getSavedRingtones#e1902288 returning error if any. Fetch saved notification sounds See https://core.telegram.org/method/account.getSavedRingtones for reference. AccountGetSecureValue invokes method account.getSecureValue#73665bc2 returning error if any. 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. AccountGetTheme invokes method account.getTheme#3a5869ec returning error if any. Get theme information Possible errors: 400 THEME_FORMAT_INVALID: Invalid theme format provided. 400 THEME_INVALID: Invalid theme provided. See https://core.telegram.org/method/account.getTheme for reference. AccountGetThemes invokes method account.getThemes#7206e458 returning error if any. Get installed themes See https://core.telegram.org/method/account.getThemes for reference. AccountGetTmpPassword invokes method account.getTmpPassword#449e0b51 returning error if any. Get temporary payment password Possible errors: 400 PASSWORD_HASH_INVALID: The provided password hash is invalid. 400 TMP_PASSWORD_DISABLED: The temporary password is disabled. See https://core.telegram.org/method/account.getTmpPassword for reference. AccountGetWallPaper invokes method account.getWallPaper#fc8ddbea returning error if any. Get info about a certain wallpaper¹ Links: 1. https://core.telegram.org/api/wallpapers Possible errors: 400 WALLPAPER_INVALID: The specified wallpaper is invalid. See https://core.telegram.org/method/account.getWallPaper for reference. AccountGetWallPapers invokes method account.getWallPapers#7967d36 returning error if any. Returns a list of available wallpapers¹. Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/method/account.getWallPapers for reference. AccountGetWebAuthorizations invokes method account.getWebAuthorizations#182e6d6f returning error if any. Get web login widget¹ authorizations Links: 1. https://core.telegram.org/widgets/login See https://core.telegram.org/method/account.getWebAuthorizations for reference. AccountInitTakeoutSession invokes method account.initTakeoutSession#8ef3eab0 returning error if any. Initialize a takeout session, see here » for more info¹. Links: 1. https://core.telegram.org/api/takeout Possible errors: 420 TAKEOUT_INIT_DELAY_%d: Sorry, for security reasons, you will be able to begin downloading your data in %d seconds. We have notified all your devices about the export request to make sure it's authorized and to give you time to react if it's not. See https://core.telegram.org/method/account.initTakeoutSession for reference. AccountInstallTheme invokes method account.installTheme#c727bb3b returning error if any. Install a theme See https://core.telegram.org/method/account.installTheme for reference. AccountInstallWallPaper invokes method account.installWallPaper#feed5769 returning error if any. Install wallpaper¹ Links: 1. https://core.telegram.org/api/wallpapers Possible errors: 400 WALLPAPER_INVALID: The specified wallpaper is invalid. See https://core.telegram.org/method/account.installWallPaper for reference. AccountInvalidateSignInCodes invokes method account.invalidateSignInCodes#ca8ae8ba returning error if any. 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. AccountRegisterDevice invokes method account.registerDevice#ec86017a returning error if any. Register device to receive PUSH notifications¹ Links: 1. https://core.telegram.org/api/push-updates Possible errors: 400 TOKEN_EMPTY: The specified token is empty. 400 TOKEN_INVALID: The provided token is invalid. 400 TOKEN_TYPE_INVALID: The specified token type is invalid. 400 WEBPUSH_AUTH_INVALID: The specified web push authentication secret is invalid. 400 WEBPUSH_KEY_INVALID: The specified web push elliptic curve Diffie-Hellman public key is invalid. 400 WEBPUSH_TOKEN_INVALID: The specified web push token is invalid. See https://core.telegram.org/method/account.registerDevice for reference. AccountReorderUsernames invokes method account.reorderUsernames#ef500eab returning error if any. Reorder usernames associated with the currently logged-in user. Possible errors: 400 ORDER_INVALID: The specified username order is invalid. See https://core.telegram.org/method/account.reorderUsernames for reference. AccountReportPeer invokes method account.reportPeer#c5ba3d86 returning error if any. Report a peer for violation of telegram's Terms of Service Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/account.reportPeer for reference. AccountReportProfilePhoto invokes method account.reportProfilePhoto#fa8cc6f5 returning error if any. Report a profile photo of a dialog Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/account.reportProfilePhoto for reference. AccountResendPasswordEmail invokes method account.resendPasswordEmail#7a7f2a15 returning error if any. Resend the code to verify an email to use as 2FA recovery method¹. Links: 1. https://core.telegram.org/api/srp Possible errors: 400 EMAIL_HASH_EXPIRED: Email hash expired. See https://core.telegram.org/method/account.resendPasswordEmail for reference. AccountResetAuthorization invokes method account.resetAuthorization#df77f3bc returning error if any. Log out an active authorized session¹ by its hash Links: 1. https://core.telegram.org/api/auth Possible errors: 406 FRESH_RESET_AUTHORISATION_FORBIDDEN: You can't logout other sessions if less than 24 hours have passed since you logged on the current session. 400 HASH_INVALID: The provided hash is invalid. See https://core.telegram.org/method/account.resetAuthorization for reference. AccountResetNotifySettings invokes method account.resetNotifySettings#db7e1747 returning error if any. Resets all notification settings from users and groups. See https://core.telegram.org/method/account.resetNotifySettings for reference. AccountResetPassword invokes method account.resetPassword#9308ce1b returning error if any. 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 Possible errors: 400 PASSWORD_EMPTY: The provided password is empty. See https://core.telegram.org/method/account.resetPassword for reference. AccountResetWallPapers invokes method account.resetWallPapers#bb3b9804 returning error if any. 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. AccountResetWebAuthorization invokes method account.resetWebAuthorization#2d01b9ef returning error if any. Log out an active web telegram login¹ session Links: 1. https://core.telegram.org/widgets/login Possible errors: 400 HASH_INVALID: The provided hash is invalid. See https://core.telegram.org/method/account.resetWebAuthorization for reference. AccountResetWebAuthorizations invokes method account.resetWebAuthorizations#682d2594 returning error if any. 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. AccountSaveAutoDownloadSettings invokes method account.saveAutoDownloadSettings#76f36233 returning error if any. Change media autodownload settings See https://core.telegram.org/method/account.saveAutoDownloadSettings for reference. AccountSaveAutoSaveSettings invokes method account.saveAutoSaveSettings#d69b8361 returning error if any. Modify autosave settings Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/account.saveAutoSaveSettings for reference. Can be used by bots. AccountSaveRingtone invokes method account.saveRingtone#3dea5b03 returning error if any. 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. AccountSaveSecureValue invokes method account.saveSecureValue#899fe31d returning error if any. 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 Possible errors: 400 PASSWORD_REQUIRED: A 2FA password must be configured to use Telegram Passport. See https://core.telegram.org/method/account.saveSecureValue for reference. AccountSaveTheme invokes method account.saveTheme#f257106c returning error if any. Save a theme See https://core.telegram.org/method/account.saveTheme for reference. AccountSaveWallPaper invokes method account.saveWallPaper#6c5a5b37 returning error if any. Install/uninstall wallpaper¹ Links: 1. https://core.telegram.org/api/wallpapers Possible errors: 400 WALLPAPER_INVALID: The specified wallpaper is invalid. See https://core.telegram.org/method/account.saveWallPaper for reference. AccountSendChangePhoneCode invokes method account.sendChangePhoneCode#82574ae5 returning error if any. Verify a new phone number to associate to the current account Possible errors: 406 FRESH_CHANGE_PHONE_FORBIDDEN: You can't change phone number right after logging in, please wait at least 24 hours. 400 PHONE_NUMBER_BANNED: The provided phone number is banned from telegram. 406 PHONE_NUMBER_INVALID: The phone number is invalid. 400 PHONE_NUMBER_OCCUPIED: The phone number is already in use. See https://core.telegram.org/method/account.sendChangePhoneCode for reference. AccountSendConfirmPhoneCode invokes method account.sendConfirmPhoneCode#1b3faa88 returning error if any. Send confirmation code to cancel account deletion, for more info click here »¹ Links: 1. https://core.telegram.org/api/account-deletion Possible errors: 400 HASH_INVALID: The provided hash is invalid. See https://core.telegram.org/method/account.sendConfirmPhoneCode for reference. AccountSendVerifyEmailCode invokes method account.sendVerifyEmailCode#98e037bb returning error if any. Send an email verification code. Possible errors: 400 EMAIL_INVALID: The specified email is invalid. 400 EMAIL_NOT_SETUP: In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup. 400 PHONE_HASH_EXPIRED: An invalid or expired phone_code_hash was provided. 400 PHONE_NUMBER_INVALID: The phone number is invalid. See https://core.telegram.org/method/account.sendVerifyEmailCode for reference. AccountSendVerifyPhoneCode invokes method account.sendVerifyPhoneCode#a5a356f9 returning error if any. Send the verification phone code for telegram passport¹. Links: 1. https://core.telegram.org/passport Possible errors: 400 PHONE_NUMBER_INVALID: The phone number is invalid. See https://core.telegram.org/method/account.sendVerifyPhoneCode for reference. AccountSetAccountTTL invokes method account.setAccountTTL#2442485e returning error if any. Set account self-destruction period Possible errors: 400 TTL_DAYS_INVALID: The provided TTL is invalid. See https://core.telegram.org/method/account.setAccountTTL for reference. AccountSetAuthorizationTTL invokes method account.setAuthorizationTTL#bf899aa0 returning error if any. Set time-to-live of current session Possible errors: 406 FRESH_RESET_AUTHORISATION_FORBIDDEN: You can't logout other sessions if less than 24 hours have passed since you logged on the current session. 400 TTL_DAYS_INVALID: The provided TTL is invalid. See https://core.telegram.org/method/account.setAuthorizationTTL for reference. AccountSetContactSignUpNotification invokes method account.setContactSignUpNotification#cff43f61 returning error if any. Toggle contact sign up notifications See https://core.telegram.org/method/account.setContactSignUpNotification for reference. AccountSetContentSettings invokes method account.setContentSettings#b574b16b returning error if any. Set sensitive content settings (for viewing or hiding NSFW content) Possible errors: 403 SENSITIVE_CHANGE_FORBIDDEN: You can't change your sensitive content settings. See https://core.telegram.org/method/account.setContentSettings for reference. AccountSetGlobalPrivacySettings invokes method account.setGlobalPrivacySettings#1edaaac2 returning error if any. Set global privacy settings Possible errors: 400 AUTOARCHIVE_NOT_AVAILABLE: The autoarchive setting is not available at this time: please check the value of the autoarchive_setting_available field in client config » before calling this method. See https://core.telegram.org/method/account.setGlobalPrivacySettings for reference. AccountSetPrivacy invokes method account.setPrivacy#c9f81ce8 returning error if any. Change privacy settings of current account Possible errors: 400 PRIVACY_KEY_INVALID: The privacy key is invalid. 400 PRIVACY_TOO_LONG: Too many privacy rules were specified, the current limit is 1000. 400 PRIVACY_VALUE_INVALID: The specified privacy rule combination is invalid. See https://core.telegram.org/method/account.setPrivacy for reference. AccountToggleUsername invokes method account.toggleUsername#58d6b376 returning error if any. Activate or deactivate a purchased fragment.com¹ username associated to the currently logged-in user. Links: 1. https://fragment.com Possible errors: 400 USERNAMES_ACTIVE_TOO_MUCH: The maximum number of active usernames was reached. 400 USERNAME_INVALID: The provided username is not valid. See https://core.telegram.org/method/account.toggleUsername for reference. AccountUnregisterDevice invokes method account.unregisterDevice#6a0d3206 returning error if any. Deletes a device by its token, stops sending PUSH-notifications to it. Possible errors: 400 TOKEN_INVALID: The provided token is invalid. See https://core.telegram.org/method/account.unregisterDevice for reference. AccountUpdateColor invokes method account.updateColor#7cefa15d returning error if any. Update the accent color and background custom emoji »¹ of the current account. Links: 1. https://core.telegram.org/api/colors Possible errors: 400 COLOR_INVALID: The specified color palette ID was invalid. See https://core.telegram.org/method/account.updateColor for reference. AccountUpdateDeviceLocked invokes method account.updateDeviceLocked#38df3532 returning error if any. 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. AccountUpdateEmojiStatus invokes method account.updateEmojiStatus#fbd3de6b returning error if any. Set an emoji status¹ Links: 1. https://core.telegram.org/api/emoji-status Possible errors: 400 DOCUMENT_INVALID: The specified document is invalid. See https://core.telegram.org/method/account.updateEmojiStatus for reference. AccountUpdateNotifySettings invokes method account.updateNotifySettings#84be5b93 returning error if any. Edits notification settings from a given user/group, from all users/all groups. Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 SETTINGS_INVALID: Invalid settings were provided. See https://core.telegram.org/method/account.updateNotifySettings for reference. AccountUpdatePasswordSettings invokes method account.updatePasswordSettings#a59b102f returning error if any. Set a new 2FA password Possible errors: 400 EMAIL_INVALID: The specified email is invalid. 400 EMAIL_UNCONFIRMED: Email unconfirmed. 400 EMAIL_UNCONFIRMED_%d: The provided email isn't confirmed, %d is the length of the verification code that was just sent to the email: use account.verifyEmail to enter the received verification code and enable the recovery email. 400 NEW_SALT_INVALID: The new salt is invalid. 400 NEW_SETTINGS_EMPTY: No password is set on the current account, and no new password was specified in new_settings. 400 NEW_SETTINGS_INVALID: The new password settings are invalid. 400 PASSWORD_HASH_INVALID: The provided password hash is invalid. 400 SRP_ID_INVALID: Invalid SRP ID provided. 400 SRP_PASSWORD_CHANGED: Password has changed. See https://core.telegram.org/method/account.updatePasswordSettings for reference. AccountUpdateProfile invokes method account.updateProfile#78515775 returning error if any. Updates user profile. Possible errors: 400 ABOUT_TOO_LONG: About string too long. 400 FIRSTNAME_INVALID: The first name is invalid. See https://core.telegram.org/method/account.updateProfile for reference. AccountUpdateStatus invokes method account.updateStatus#6628562c returning error if any. Updates online user status. See https://core.telegram.org/method/account.updateStatus for reference. AccountUpdateTheme invokes method account.updateTheme#2bf40ccc returning error if any. Update theme Possible errors: 400 THEME_INVALID: Invalid theme provided. See https://core.telegram.org/method/account.updateTheme for reference. AccountUpdateUsername invokes method account.updateUsername#3e0bdd7c returning error if any. Changes username for the current user. Possible errors: 400 USERNAME_INVALID: The provided username is not valid. 400 USERNAME_NOT_MODIFIED: The username was not modified. 400 USERNAME_OCCUPIED: The provided username is already occupied. 400 USERNAME_PURCHASE_AVAILABLE: The specified username can be purchased on https://fragment.com. See https://core.telegram.org/method/account.updateUsername for reference. AccountUploadRingtone invokes method account.uploadRingtone#831a83a2 returning error if any. 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. AccountUploadTheme invokes method account.uploadTheme#1c3db333 returning error if any. Upload theme Possible errors: 400 THEME_FILE_INVALID: Invalid theme file provided. See https://core.telegram.org/method/account.uploadTheme for reference. AccountUploadWallPaper invokes method account.uploadWallPaper#e39a8f03 returning error if any. Create and upload a new wallpaper¹ Links: 1. https://core.telegram.org/api/wallpapers Possible errors: 400 WALLPAPER_FILE_INVALID: The specified wallpaper file is invalid. 400 WALLPAPER_MIME_INVALID: The specified wallpaper MIME type is invalid. See https://core.telegram.org/method/account.uploadWallPaper for reference. AccountVerifyEmail invokes method account.verifyEmail#32da4cf returning error if any. Verify an email address. Possible errors: 400 EMAIL_INVALID: The specified email is invalid. 400 EMAIL_VERIFY_EXPIRED: The verification email has expired. See https://core.telegram.org/method/account.verifyEmail for reference. AccountVerifyPhone invokes method account.verifyPhone#4dd3a7f6 returning error if any. Verify a phone number for telegram passport¹. Links: 1. https://core.telegram.org/passport Possible errors: 400 PHONE_CODE_EMPTY: phone_code is missing. 400 PHONE_CODE_EXPIRED: The phone code you provided has expired. 400 PHONE_NUMBER_INVALID: The phone number is invalid. See https://core.telegram.org/method/account.verifyPhone for reference. AuthAcceptLoginToken invokes method auth.acceptLoginToken#e894ad4d returning error if any. 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 Possible errors: 400 AUTH_TOKEN_ALREADY_ACCEPTED: The specified auth token was already accepted. 400 AUTH_TOKEN_EXCEPTION: An error occurred while importing the auth token. 400 AUTH_TOKEN_EXPIRED: The authorization token has expired. 400 AUTH_TOKEN_INVALIDX: The specified auth token is invalid. See https://core.telegram.org/method/auth.acceptLoginToken for reference. AuthBindTempAuthKey invokes method auth.bindTempAuthKey#cdd42a05 returning error if any. 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 Possible errors: 400 ENCRYPTED_MESSAGE_INVALID: Encrypted message invalid. 400 TEMP_AUTH_KEY_ALREADY_BOUND: The passed temporary key is already bound to another perm_auth_key_id. 400 TEMP_AUTH_KEY_EMPTY: No temporary auth key provided. See https://core.telegram.org/method/auth.bindTempAuthKey for reference. Can be used by bots. AuthCancelCode invokes method auth.cancelCode#1f040578 returning error if any. Cancel the login verification code Possible errors: 400 PHONE_CODE_EXPIRED: The phone code you provided has expired. 406 PHONE_NUMBER_INVALID: The phone number is invalid. See https://core.telegram.org/method/auth.cancelCode for reference. AuthCheckPassword invokes method auth.checkPassword#d18b4d16 returning error if any. Try logging to an account protected by a 2FA password¹. Links: 1. https://core.telegram.org/api/srp Possible errors: 400 PASSWORD_HASH_INVALID: The provided password hash is invalid. 400 SRP_ID_INVALID: Invalid SRP ID provided. 400 SRP_PASSWORD_CHANGED: Password has changed. See https://core.telegram.org/method/auth.checkPassword for reference. AuthCheckRecoveryPassword invokes method auth.checkRecoveryPassword#d36bf79 returning error if any. 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 Possible errors: 400 PASSWORD_RECOVERY_EXPIRED: The recovery code has expired. See https://core.telegram.org/method/auth.checkRecoveryPassword for reference. AuthDropTempAuthKeys invokes method auth.dropTempAuthKeys#8e48a188 returning error if any. Delete all temporary authorization keys except for the ones specified See https://core.telegram.org/method/auth.dropTempAuthKeys for reference. Can be used by bots. AuthExportAuthorization invokes method auth.exportAuthorization#e5bfffcd returning error if any. Returns data for copying authorization to another data-center. Possible errors: 400 DC_ID_INVALID: The provided DC ID is invalid. See https://core.telegram.org/method/auth.exportAuthorization for reference. Can be used by bots. AuthExportLoginToken invokes method auth.exportLoginToken#b7e085fe returning error if any. 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 Possible errors: 400 API_ID_INVALID: API ID invalid. 400 API_ID_PUBLISHED_FLOOD: This API id was published somewhere, you can't use it now. See https://core.telegram.org/method/auth.exportLoginToken for reference. AuthImportAuthorization invokes method auth.importAuthorization#a57a7dad returning error if any. Logs in a user using a key transmitted from his native data-center. Possible errors: 400 AUTH_BYTES_INVALID: The provided authorization is invalid. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/auth.importAuthorization for reference. Can be used by bots. AuthImportBotAuthorization invokes method auth.importBotAuthorization#67a3ff2c returning error if any. Login as a bot Possible errors: 400 ACCESS_TOKEN_EXPIRED: Access token expired. 400 ACCESS_TOKEN_INVALID: Access token invalid. 400 API_ID_INVALID: API ID invalid. 400 API_ID_PUBLISHED_FLOOD: This API id was published somewhere, you can't use it now. See https://core.telegram.org/method/auth.importBotAuthorization for reference. Can be used by bots. AuthImportLoginToken invokes method auth.importLoginToken#95ac5ce4 returning error if any. 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 Possible errors: 400 AUTH_TOKEN_ALREADY_ACCEPTED: The specified auth token was already accepted. 400 AUTH_TOKEN_EXPIRED: The authorization token has expired. 400 AUTH_TOKEN_INVALID: The specified auth token is invalid. 400 AUTH_TOKEN_INVALIDX: The specified auth token is invalid. 500 MEMBER_NOT_FOUND: See https://core.telegram.org/method/auth.importLoginToken for reference. AuthImportWebTokenAuthorization invokes method auth.importWebTokenAuthorization#2db873a9 returning error if any. Login by importing an authorization token Possible errors: 400 API_ID_INVALID: API ID invalid. See https://core.telegram.org/method/auth.importWebTokenAuthorization for reference. AuthLogOut invokes method auth.logOut#3e72ba19 returning error if any. Logs out the user. See https://core.telegram.org/method/auth.logOut for reference. Can be used by bots. AuthRecoverPassword invokes method auth.recoverPassword#37096c70 returning error if any. 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 Possible errors: 400 CODE_EMPTY: The provided code is empty. 400 NEW_SETTINGS_INVALID: The new password settings are invalid. See https://core.telegram.org/method/auth.recoverPassword for reference. AuthRequestFirebaseSMS invokes method auth.requestFirebaseSms#89464b50 returning error if any. Request an SMS code via Firebase. Possible errors: 400 PHONE_NUMBER_INVALID: The phone number is invalid. See https://core.telegram.org/method/auth.requestFirebaseSms for reference. AuthRequestPasswordRecovery invokes method auth.requestPasswordRecovery#d897bc66 returning error if any. 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 Possible errors: 400 PASSWORD_EMPTY: The provided password is empty. 400 PASSWORD_RECOVERY_NA: No email was set, can't recover password via email. See https://core.telegram.org/method/auth.requestPasswordRecovery for reference. AuthResendCode invokes method auth.resendCode#3ef1a9bf returning error if any. 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 Possible errors: 400 PHONE_CODE_EMPTY: phone_code is missing. 400 PHONE_CODE_EXPIRED: The phone code you provided has expired. 400 PHONE_CODE_HASH_EMPTY: phone_code_hash is missing. 406 PHONE_NUMBER_INVALID: The phone number is invalid. 406 SEND_CODE_UNAVAILABLE: Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend). See https://core.telegram.org/method/auth.resendCode for reference. AuthResetAuthorizations invokes method auth.resetAuthorizations#9fab0d1a returning error if any. 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 Possible errors: 406 FRESH_RESET_AUTHORISATION_FORBIDDEN: You can't logout other sessions if less than 24 hours have passed since you logged on the current session. See https://core.telegram.org/method/auth.resetAuthorizations for reference. AuthResetLoginEmail invokes method auth.resetLoginEmail#7e960193 returning error if any. Reset the login email »¹. Links: 1. https://core.telegram.org/api/auth#email-verification Possible errors: 400 PHONE_NUMBER_INVALID: The phone number is invalid. 400 TASK_ALREADY_EXISTS: An email reset was already requested. See https://core.telegram.org/method/auth.resetLoginEmail for reference. AuthSendCode invokes method auth.sendCode#a677244f returning error if any. Send the verification code for login Possible errors: 400 API_ID_INVALID: API ID invalid. 400 API_ID_PUBLISHED_FLOOD: This API id was published somewhere, you can't use it now. 500 AUTH_RESTART: Restart the authorization process. 400 PHONE_NUMBER_APP_SIGNUP_FORBIDDEN: You can't sign up using this app. 400 PHONE_NUMBER_BANNED: The provided phone number is banned from telegram. 400 PHONE_NUMBER_FLOOD: You asked for the code too many times. 406 PHONE_NUMBER_INVALID: The phone number is invalid. 406 PHONE_PASSWORD_FLOOD: You have tried logging in too many times. 400 PHONE_PASSWORD_PROTECTED: This phone is password protected. 400 SMS_CODE_CREATE_FAILED: An error occurred while creating the SMS code. See https://core.telegram.org/method/auth.sendCode for reference. AuthSignIn invokes method auth.signIn#8d52a951 returning error if any. Signs in a user with a validated phone number. Possible errors: 500 AUTH_RESTART: Restart the authorization process. 400 PHONE_CODE_EMPTY: phone_code is missing. 400 PHONE_CODE_EXPIRED: The phone code you provided has expired. 400 PHONE_CODE_INVALID: The provided phone code is invalid. 406 PHONE_NUMBER_INVALID: The phone number is invalid. 400 PHONE_NUMBER_UNOCCUPIED: The phone number is not yet being used. 500 SIGN_IN_FAILED: Failure while signing in. See https://core.telegram.org/method/auth.signIn for reference. AuthSignUp invokes method auth.signUp#80eee427 returning error if any. Registers a validated phone number in the system. Possible errors: 400 FIRSTNAME_INVALID: The first name is invalid. 400 LASTNAME_INVALID: The last name is invalid. 400 PHONE_CODE_EMPTY: phone_code is missing. 400 PHONE_CODE_EXPIRED: The phone code you provided has expired. 400 PHONE_CODE_INVALID: The provided phone code is invalid. 400 PHONE_NUMBER_FLOOD: You asked for the code too many times. 406 PHONE_NUMBER_INVALID: The phone number is invalid. 400 PHONE_NUMBER_OCCUPIED: The phone number is already in use. See https://core.telegram.org/method/auth.signUp for reference. BotsAllowSendMessage invokes method bots.allowSendMessage#f132e3ef returning error if any. Allow the specified bot to send us messages Possible errors: 400 BOT_INVALID: This is not a valid bot. See https://core.telegram.org/method/bots.allowSendMessage for reference. BotsAnswerWebhookJSONQuery invokes method bots.answerWebhookJSONQuery#e6213f4d returning error if any. Answers a custom query; for bots only Possible errors: 400 DATA_JSON_INVALID: The provided JSON data is invalid. 400 QUERY_ID_INVALID: The query ID is invalid. 403 USER_BOT_INVALID: User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts. See https://core.telegram.org/method/bots.answerWebhookJSONQuery for reference. Can be used by bots. BotsCanSendMessage invokes method bots.canSendMessage#1359f4e6 returning error if any. Check whether the specified bot can send us messages Possible errors: 400 BOT_INVALID: This is not a valid bot. See https://core.telegram.org/method/bots.canSendMessage for reference. BotsGetBotCommands invokes method bots.getBotCommands#e34c0dd6 returning error if any. Obtain a list of bot commands for the specified bot scope and language code Possible errors: 400 USER_BOT_INVALID: User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts. See https://core.telegram.org/method/bots.getBotCommands for reference. Can be used by bots. BotsGetBotInfo invokes method bots.getBotInfo#dcd914fd returning error if any. Get localized name, about text and description of a bot (or of the current account, if called by a bot). Possible errors: 400 LANG_CODE_INVALID: The specified language code is invalid. 400 USER_BOT_INVALID: User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts. See https://core.telegram.org/method/bots.getBotInfo for reference. Can be used by bots. BotsGetBotMenuButton invokes method bots.getBotMenuButton#9c60eb28 returning error if any. Gets the menu button action for a given user or for all users, previously set using bots.setBotMenuButton¹; users can see this information in the botInfo² constructor. Links: 1. https://core.telegram.org/method/bots.setBotMenuButton 2. https://core.telegram.org/constructor/botInfo Possible errors: 400 USER_BOT_REQUIRED: This method can only be called by a bot. See https://core.telegram.org/method/bots.getBotMenuButton for reference. Can be used by bots. BotsInvokeWebViewCustomMethod invokes method bots.invokeWebViewCustomMethod#87fc5e7 returning error if any. Send a custom request from a mini bot app¹, triggered by a web_app_invoke_custom_method event »². The response should be sent using a custom_method_invoked¹ event, see here »² for more info on the flow. Links: 1. https://core.telegram.org/api/bots/webapps 2. https://core.telegram.org/api/web-events#web-app-invoke-custom-method 3. https://core.telegram.org/api/bots/webapps#custom-method-invoked 4. https://core.telegram.org/api/web-events#web-app-invoke-custom-method Possible errors: 400 BOT_INVALID: This is not a valid bot. See https://core.telegram.org/method/bots.invokeWebViewCustomMethod for reference. BotsReorderUsernames invokes method bots.reorderUsernames#9709b1c2 returning error if any. Reorder usernames associated to a bot we own. Possible errors: 400 BOT_INVALID: This is not a valid bot. See https://core.telegram.org/method/bots.reorderUsernames for reference. Can be used by bots. BotsResetBotCommands invokes method bots.resetBotCommands#3d8de0f9 returning error if any. Clear bot commands for the specified bot scope and language code Possible errors: 400 LANG_CODE_INVALID: The specified language code is invalid. See https://core.telegram.org/method/bots.resetBotCommands for reference. Can be used by bots. BotsSendCustomRequest invokes method bots.sendCustomRequest#aa2769ed returning error if any. Sends a custom request; for bots only Possible errors: 400 DATA_JSON_INVALID: The provided JSON data is invalid. 400 METHOD_INVALID: The specified method is invalid. 403 USER_BOT_INVALID: User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts. See https://core.telegram.org/method/bots.sendCustomRequest for reference. Can be used by bots. BotsSetBotBroadcastDefaultAdminRights invokes method bots.setBotBroadcastDefaultAdminRights#788464e1 returning error if any. Set the default suggested admin rights¹ for bots being added as admins to channels, see here for more info on how to handle them »². Links: 1. https://core.telegram.org/api/rights#suggested-bot-rights 2. https://core.telegram.org/api/rights#suggested-bot-rights Possible errors: 400 RIGHTS_NOT_MODIFIED: The new admin rights are equal to the old rights, no change was made. See https://core.telegram.org/method/bots.setBotBroadcastDefaultAdminRights for reference. Can be used by bots. BotsSetBotCommands invokes method bots.setBotCommands#517165a returning error if any. Set bot command list Possible errors: 400 BOT_COMMAND_DESCRIPTION_INVALID: The specified command description is invalid. 400 BOT_COMMAND_INVALID: The specified command is invalid. 400 LANG_CODE_INVALID: The specified language code is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_BOT_REQUIRED: This method can only be called by a bot. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/bots.setBotCommands for reference. Can be used by bots. BotsSetBotGroupDefaultAdminRights invokes method bots.setBotGroupDefaultAdminRights#925ec9ea returning error if any. Set the default suggested admin rights¹ for bots being added as admins to groups, see here for more info on how to handle them »². Links: 1. https://core.telegram.org/api/rights#suggested-bot-rights 2. https://core.telegram.org/api/rights#suggested-bot-rights Possible errors: 400 RIGHTS_NOT_MODIFIED: The new admin rights are equal to the old rights, no change was made. 400 USER_BOT_REQUIRED: This method can only be called by a bot. See https://core.telegram.org/method/bots.setBotGroupDefaultAdminRights for reference. Can be used by bots. BotsSetBotInfo invokes method bots.setBotInfo#10cf3123 returning error if any. Set localized name, about text and description of a bot (or of the current account, if called by a bot). Possible errors: 400 USER_BOT_INVALID: User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts. See https://core.telegram.org/method/bots.setBotInfo for reference. Can be used by bots. BotsSetBotMenuButton invokes method bots.setBotMenuButton#4504d54f returning error if any. Sets the menu button action »¹ for a given user or for all users Links: 1. https://core.telegram.org/api/bots/menu Possible errors: 400 BUTTON_TEXT_INVALID: The specified button text is invalid. 400 BUTTON_URL_INVALID: Button URL invalid. See https://core.telegram.org/method/bots.setBotMenuButton for reference. Can be used by bots. BotsToggleUsername invokes method bots.toggleUsername#53ca973 returning error if any. Activate or deactivate a purchased fragment.com¹ username associated to a bot we own. Links: 1. https://fragment.com Possible errors: 400 BOT_INVALID: This is not a valid bot. See https://core.telegram.org/method/bots.toggleUsername for reference. Can be used by bots. ChannelsCheckUsername invokes method channels.checkUsername#10e6bd2c returning error if any. Check if a username is free and can be assigned to a channel/supergroup Possible errors: 400 CHANNELS_ADMIN_PUBLIC_TOO_MUCH: You're admin of too many public channels, make some channels private to change the username of this channel. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 USERNAME_INVALID: The provided username is not valid. 400 USERNAME_OCCUPIED: The provided username is already occupied. 400 USERNAME_PURCHASE_AVAILABLE: The specified username can be purchased on https://fragment.com. See https://core.telegram.org/method/channels.checkUsername for reference. ChannelsClickSponsoredMessage invokes method channels.clickSponsoredMessage#18afbc93 returning error if any. Informs the server that the user has either: Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. See https://core.telegram.org/method/channels.clickSponsoredMessage for reference. ChannelsConvertToGigagroup invokes method channels.convertToGigagroup#b290c69 returning error if any. Convert a supergroup¹ to a gigagroup², when requested by channel suggestions³. Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/api/channel 3. https://core.telegram.org/api/config#channel-suggestions Possible errors: 400 CHANNEL_ID_INVALID: The specified supergroup ID is invalid. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 FORUM_ENABLED: You can't execute the specified action because the group is a forum, disable forum functionality to continue. 400 PARTICIPANTS_TOO_FEW: Not enough participants. See https://core.telegram.org/method/channels.convertToGigagroup for reference. ChannelsCreateChannel invokes method channels.createChannel#91006707 returning error if any. Create a supergroup/channel¹. Links: 1. https://core.telegram.org/api/channel Possible errors: 400 ADDRESS_INVALID: The specified geopoint address is invalid. 400 CHANNELS_ADMIN_LOCATED_TOO_MUCH: The user has reached the limit of public geogroups. 400 CHANNELS_TOO_MUCH: You have joined too many channels/supergroups. 400 CHAT_ABOUT_TOO_LONG: Chat about too long. 500 CHAT_INVALID: Invalid chat. 400 CHAT_TITLE_EMPTY: No chat title provided. 400 TTL_PERIOD_INVALID: The specified TTL period is invalid. 406 USER_RESTRICTED: You're spamreported, you can't create channels or chats. See https://core.telegram.org/method/channels.createChannel for reference. ChannelsCreateForumTopic invokes method channels.createForumTopic#f40c0224 returning error if any. Create a forum topic¹; requires manage_topics rights². Links: 1. https://core.telegram.org/api/forum 2. https://core.telegram.org/api/rights Possible errors: 400 CHANNEL_FORUM_MISSING: This supergroup is not a forum. 400 CHANNEL_INVALID: The provided channel is invalid. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 403 PREMIUM_ACCOUNT_REQUIRED: A premium account is required to execute this action. 400 TOPIC_TITLE_EMPTY: The specified topic title is empty. See https://core.telegram.org/method/channels.createForumTopic for reference. Can be used by bots. ChannelsDeactivateAllUsernames invokes method channels.deactivateAllUsernames#a245dd3 returning error if any. Disable all purchased usernames of a supergroup or channel See https://core.telegram.org/method/channels.deactivateAllUsernames for reference. Can be used by bots. ChannelsDeleteChannel invokes method channels.deleteChannel#c0111fe3 returning error if any. Delete a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 406 CHANNEL_TOO_LARGE: Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change). 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. See https://core.telegram.org/method/channels.deleteChannel for reference. ChannelsDeleteHistory invokes method channels.deleteHistory#9baa9647 returning error if any. Delete the history of a supergroup¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PARICIPANT_MISSING: The current user is not in the channel. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHANNEL_TOO_BIG: This channel has too many participants (>1000) to be deleted. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. See https://core.telegram.org/method/channels.deleteHistory for reference. ChannelsDeleteMessages invokes method channels.deleteMessages#84c1fd4e returning error if any. Delete messages in a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 MESSAGE_DELETE_FORBIDDEN: You can't delete one of the messages you tried to delete, most likely because it is a service message. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/channels.deleteMessages for reference. Can be used by bots. ChannelsDeleteParticipantHistory invokes method channels.deleteParticipantHistory#367544db returning error if any. Delete all messages sent by a specific participant of a given supergroup Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PARTICIPANT_ID_INVALID: The specified participant ID is invalid. See https://core.telegram.org/method/channels.deleteParticipantHistory for reference. ChannelsDeleteTopicHistory invokes method channels.deleteTopicHistory#34435f2d returning error if any. Delete message history of a forum topic¹ Links: 1. https://core.telegram.org/api/forum Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 TOPIC_ID_INVALID: The specified topic ID is invalid. See https://core.telegram.org/method/channels.deleteTopicHistory for reference. Can be used by bots. ChannelsEditAdmin invokes method channels.editAdmin#d33c8902 returning error if any. Modify the admin rights of a user in a supergroup/channel¹. Links: 1. https://core.telegram.org/api/channel Possible errors: 400 ADMINS_TOO_MUCH: There are too many admins. 400 ADMIN_RANK_EMOJI_NOT_ALLOWED: An admin rank cannot contain emojis. 400 ADMIN_RANK_INVALID: The specified admin rank is invalid. 400 BOTS_TOO_MUCH: There are too many bots in this chat/channel. 400 BOT_CHANNELS_NA: Bots can't edit admin privileges. 400 BOT_GROUPS_BLOCKED: This bot can't be added to groups. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_INVITE_REQUIRED: You do not have the rights to do this. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 406 FRESH_CHANGE_ADMINS_FORBIDDEN: You were just elected admin, you can't add or modify other admins yet. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 PEER_ID_INVALID: The provided peer id is invalid. 403 RIGHT_FORBIDDEN: Your admin rights do not allow you to do this. 400 USERS_TOO_MUCH: The maximum number of users has been exceeded (to create a chat, for example). 400 USER_BLOCKED: User blocked. 403 USER_CHANNELS_TOO_MUCH: One of the users you tried to add is already in too many channels/supergroups. 400 USER_CREATOR: You can't leave this channel, because you're its creator. 400 USER_ID_INVALID: The provided user ID is invalid. 403 USER_NOT_MUTUAL_CONTACT: The provided user is not a mutual contact. 403 USER_PRIVACY_RESTRICTED: The user's privacy settings do not allow you to do this. 403 USER_RESTRICTED: You're spamreported, you can't create channels or chats. See https://core.telegram.org/method/channels.editAdmin for reference. Can be used by bots. ChannelsEditBanned invokes method channels.editBanned#96e6cd81 returning error if any. Ban/unban/kick a user in a supergroup/channel¹. Links: 1. https://core.telegram.org/api/channel Possible errors: 406 BANNED_RIGHTS_INVALID: You provided some invalid flags in the banned rights. 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PARTICIPANT_ID_INVALID: The specified participant ID is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_ADMIN_INVALID: You're not an admin. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/channels.editBanned for reference. Can be used by bots. ChannelsEditCreator invokes method channels.editCreator#8f38cd1f returning error if any. Transfer channel ownership Possible errors: 400 CHANNELS_ADMIN_PUBLIC_TOO_MUCH: You're admin of too many public channels, make some channels private to change the username of this channel. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 PASSWORD_HASH_INVALID: The provided password hash is invalid. 400 PASSWORD_MISSING: You must enable 2FA in order to transfer ownership of a channel. 400 PASSWORD_TOO_FRESH_%d: The password was modified less than 24 hours ago, try again in %d seconds. 400 SESSION_TOO_FRESH_%d: This session was created less than 24 hours ago, try again in %d seconds. 400 SRP_ID_INVALID: Invalid SRP ID provided. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/channels.editCreator for reference. ChannelsEditForumTopic invokes method channels.editForumTopic#f4dfa185 returning error if any. Edit forum topic¹; requires manage_topics rights². Links: 1. https://core.telegram.org/api/forum 2. https://core.telegram.org/api/rights Possible errors: 400 CHANNEL_FORUM_MISSING: This supergroup is not a forum. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 DOCUMENT_INVALID: The specified document is invalid. 400 GENERAL_MODIFY_ICON_FORBIDDEN: You can't modify the icon of the "General" topic. 400 TOPIC_CLOSE_SEPARATELY: The close flag cannot be provided together with any of the other flags. 400 TOPIC_HIDE_SEPARATELY: The hide flag cannot be provided together with any of the other flags. 400 TOPIC_ID_INVALID: The specified topic ID is invalid. 400 TOPIC_NOT_MODIFIED: The updated topic info is equal to the current topic info, nothing was changed. See https://core.telegram.org/method/channels.editForumTopic for reference. Can be used by bots. ChannelsEditLocation invokes method channels.editLocation#58e63f6d returning error if any. Edit location of geogroup, see here »¹ for more info on geogroups. Links: 1. https://core.telegram.org/api/nearby Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 MEGAGROUP_GEO_REQUIRED: This method can only be invoked on a geogroup. 400 MEGAGROUP_REQUIRED: You can only use this method on a supergroup. See https://core.telegram.org/method/channels.editLocation for reference. ChannelsEditPhoto invokes method channels.editPhoto#f12e57c9 returning error if any. Change the photo of a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 FILE_PARTS_INVALID: The number of file parts is invalid. 400 FILE_REFERENCE_INVALID: The specified file reference is invalid. 400 PHOTO_CROP_SIZE_SMALL: Photo is too small. 400 PHOTO_EXT_INVALID: The extension of the photo is invalid. 400 PHOTO_INVALID: Photo invalid. 400 STICKER_MIME_INVALID: The specified sticker MIME type is invalid. See https://core.telegram.org/method/channels.editPhoto for reference. Can be used by bots. ChannelsEditTitle invokes method channels.editTitle#566decd0 returning error if any. Edit the name of a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 CHAT_TITLE_EMPTY: No chat title provided. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. See https://core.telegram.org/method/channels.editTitle for reference. Can be used by bots. ChannelsExportMessageLink invokes method channels.exportMessageLink#e63fadeb returning error if any. Get link and embed info of a message in a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/channels.exportMessageLink for reference. ChannelsGetAdminLog invokes method channels.getAdminLog#33ddf480 returning error if any. Get the admin log of a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/channels.getAdminLog for reference. ChannelsGetAdminedPublicChannels invokes method channels.getAdminedPublicChannels#f8b036af returning error if any. Get channels/supergroups/geogroups¹ we're admin in. Usually called when the user exceeds the limit² for owned public channels/supergroups/geogroups³, and the user is given the choice to remove one of his channels/supergroups/geogroups. Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/constructor/config 3. https://core.telegram.org/api/channel Possible errors: 400 CHANNELS_ADMIN_LOCATED_TOO_MUCH: The user has reached the limit of public geogroups. 400 CHANNELS_ADMIN_PUBLIC_TOO_MUCH: You're admin of too many public channels, make some channels private to change the username of this channel. See https://core.telegram.org/method/channels.getAdminedPublicChannels for reference. ChannelsGetChannelRecommendations invokes method channels.getChannelRecommendations#83b70d97 returning error if any. Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases. Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. See https://core.telegram.org/method/channels.getChannelRecommendations for reference. ChannelsGetChannels invokes method channels.getChannels#a7f6bbb returning error if any. Get info about channels/supergroups¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. See https://core.telegram.org/method/channels.getChannels for reference. Can be used by bots. ChannelsGetForumTopics invokes method channels.getForumTopics#de560d1 returning error if any. Get topics of a forum¹ Links: 1. https://core.telegram.org/api/forum Possible errors: 400 CHANNEL_FORUM_MISSING: This supergroup is not a forum. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. See https://core.telegram.org/method/channels.getForumTopics for reference. ChannelsGetForumTopicsByID invokes method channels.getForumTopicsByID#b0831eb9 returning error if any. Get forum topics by their ID Possible errors: 400 CHANNEL_FORUM_MISSING: This supergroup is not a forum. 400 CHANNEL_INVALID: The provided channel is invalid. 400 TOPICS_EMPTY: You specified no topic IDs. See https://core.telegram.org/method/channels.getForumTopicsByID for reference. Can be used by bots. ChannelsGetFullChannel invokes method channels.getFullChannel#8736a09 returning error if any. Get full info about a supergroup¹, gigagroup² or channel³ Links: 1. https://core.telegram.org/api/channel#supergroups 2. https://core.telegram.org/api/channel#gigagroups 3. https://core.telegram.org/api/channel#channels Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHANNEL_PUBLIC_GROUP_NA: channel/supergroup not available. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/channels.getFullChannel for reference. Can be used by bots. ChannelsGetGroupsForDiscussion invokes method channels.getGroupsForDiscussion#f5dad378 returning error if any. Get all groups that can be used as discussion groups¹. Returned basic group chats¹ must be first upgraded to supergroups² before they can be set as a discussion group. To set a returned supergroup as a discussion group, access to its old messages must be enabled using channels.togglePreHistoryHidden³, first. Links: 1. https://core.telegram.org/api/discussion 2. https://core.telegram.org/api/channel#basic-groups 3. https://core.telegram.org/api/channel#supergroups 4. https://core.telegram.org/method/channels.togglePreHistoryHidden See https://core.telegram.org/method/channels.getGroupsForDiscussion for reference. ChannelsGetInactiveChannels invokes method channels.getInactiveChannels#11e831ee returning error if any. Get inactive channels and supergroups See https://core.telegram.org/method/channels.getInactiveChannels for reference. ChannelsGetLeftChannels invokes method channels.getLeftChannels#8341ecc0 returning error if any. Get a list of channels/supergroups¹ we left, requires a takeout session, see here » for more info². Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/api/takeout Possible errors: 403 TAKEOUT_REQUIRED: A takeout session needs to be initialized first, see here » for more info. See https://core.telegram.org/method/channels.getLeftChannels for reference. ChannelsGetMessages invokes method channels.getMessages#ad8c9a23 returning error if any. Get channel/supergroup¹ messages Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MESSAGE_IDS_EMPTY: No message ids were provided. 400 MSG_ID_INVALID: Invalid message ID provided. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. See https://core.telegram.org/method/channels.getMessages for reference. Can be used by bots. ChannelsGetParticipant invokes method channels.getParticipant#a0ab6cc6 returning error if any. Get info about a channel/supergroup¹ participant Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PARTICIPANT_ID_INVALID: The specified participant ID is invalid. 400 USER_ID_INVALID: The provided user ID is invalid. 400 USER_NOT_PARTICIPANT: You're not a member of this supergroup/channel. See https://core.telegram.org/method/channels.getParticipant for reference. Can be used by bots. ChannelsGetParticipants invokes method channels.getParticipants#77ced9d0 returning error if any. Get the participants of a supergroup/channel¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/channels.getParticipants for reference. Can be used by bots. ChannelsGetSendAs invokes method channels.getSendAs#dc770ee returning error if any. Obtains a list of peers that can be used to send messages in a specific group Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/channels.getSendAs for reference. ChannelsGetSponsoredMessages invokes method channels.getSponsoredMessages#ec210fbf returning error if any. Get a list of sponsored messages Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/channels.getSponsoredMessages for reference. ChannelsInviteToChannel invokes method channels.inviteToChannel#199f3a6c returning error if any. Invite users to a channel/supergroup May also return 0-N updates of type updateGroupInvitePrivacyForbidden¹: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link² can be shared with the user, instead. Links: 1. https://core.telegram.org/constructor/updateGroupInvitePrivacyForbidden 2. https://core.telegram.org/api/invites Possible errors: 400 BOTS_TOO_MUCH: There are too many bots in this chat/channel. 400 BOT_GROUPS_BLOCKED: This bot can't be added to groups. 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_INVALID: Invalid chat. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. 400 USERS_TOO_MUCH: The maximum number of users has been exceeded (to create a chat, for example). 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. 400 USER_BLOCKED: User blocked. 400 USER_BOT: Bots can only be admins in channels. 403 USER_CHANNELS_TOO_MUCH: One of the users you tried to add is already in too many channels/supergroups. 400 USER_ID_INVALID: The provided user ID is invalid. 400 USER_KICKED: This user was kicked from this supergroup/channel. 403 USER_NOT_MUTUAL_CONTACT: The provided user is not a mutual contact. 403 USER_PRIVACY_RESTRICTED: The user's privacy settings do not allow you to do this. See https://core.telegram.org/method/channels.inviteToChannel for reference. ChannelsJoinChannel invokes method channels.joinChannel#24b524c5 returning error if any. Join a channel/supergroup Possible errors: 400 CHANNELS_TOO_MUCH: You have joined too many channels/supergroups. 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_INVALID: Invalid chat. 400 INVITE_HASH_EMPTY: The invite hash is empty. 406 INVITE_HASH_EXPIRED: The invite link has expired. 400 INVITE_HASH_INVALID: The invite hash is invalid. 400 INVITE_REQUEST_SENT: You have successfully requested to join this chat or channel. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USERS_TOO_MUCH: The maximum number of users has been exceeded (to create a chat, for example). 400 USER_ALREADY_PARTICIPANT: The user is already in the group. 400 USER_CHANNELS_TOO_MUCH: One of the users you tried to add is already in too many channels/supergroups. See https://core.telegram.org/method/channels.joinChannel for reference. ChannelsLeaveChannel invokes method channels.leaveChannel#f836aa95 returning error if any. Leave a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHANNEL_PUBLIC_GROUP_NA: channel/supergroup not available. 400 CHAT_INVALID: Invalid chat. 400 MSG_ID_INVALID: Invalid message ID provided. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. 400 USER_CREATOR: You can't leave this channel, because you're its creator. 400 USER_NOT_PARTICIPANT: You're not a member of this supergroup/channel. See https://core.telegram.org/method/channels.leaveChannel for reference. Can be used by bots. ChannelsReadHistory invokes method channels.readHistory#cc104937 returning error if any. Mark channel/supergroup¹ history as read Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/channels.readHistory for reference. ChannelsReadMessageContents invokes method channels.readMessageContents#eab5dc38 returning error if any. Mark channel/supergroup¹ message contents as read Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/channels.readMessageContents for reference. ChannelsReorderPinnedForumTopics invokes method channels.reorderPinnedForumTopics#2950a18f returning error if any. Reorder pinned forum topics See https://core.telegram.org/method/channels.reorderPinnedForumTopics for reference. Can be used by bots. ChannelsReorderUsernames invokes method channels.reorderUsernames#b45ced1d returning error if any. Reorder active usernames Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. See https://core.telegram.org/method/channels.reorderUsernames for reference. Can be used by bots. ChannelsReportAntiSpamFalsePositive invokes method channels.reportAntiSpamFalsePositive#a850a693 returning error if any. Report a native antispam¹ false positive Links: 1. https://core.telegram.org/api/antispam See https://core.telegram.org/method/channels.reportAntiSpamFalsePositive for reference. Can be used by bots. ChannelsReportSpam invokes method channels.reportSpam#f44a8315 returning error if any. Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/channels.reportSpam for reference. ChannelsSetDiscussionGroup invokes method channels.setDiscussionGroup#40582bb2 returning error if any. Associate a group to a channel as discussion group¹ for that channel Links: 1. https://core.telegram.org/api/discussion Possible errors: 400 BROADCAST_ID_INVALID: Broadcast ID invalid. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 LINK_NOT_MODIFIED: Discussion link not modified. 400 MEGAGROUP_ID_INVALID: Invalid supergroup ID. 400 MEGAGROUP_PREHISTORY_HIDDEN: Group with hidden history for new members can't be set as discussion groups. See https://core.telegram.org/method/channels.setDiscussionGroup for reference. ChannelsSetStickers invokes method channels.setStickers#ea8ca4f9 returning error if any. Associate a stickerset to the supergroup Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 PARTICIPANTS_TOO_FEW: Not enough participants. 406 STICKERSET_OWNER_ANONYMOUS: Provided stickerset can't be installed as group stickerset to prevent admin deanonymization. See https://core.telegram.org/method/channels.setStickers for reference. Can be used by bots. ChannelsToggleAntiSpam invokes method channels.toggleAntiSpam#68f3e4eb returning error if any. Enable or disable the native antispam system¹. Links: 1. https://core.telegram.org/api/antispam Possible errors: 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. See https://core.telegram.org/method/channels.toggleAntiSpam for reference. Can be used by bots. ChannelsToggleForum invokes method channels.toggleForum#a4298b29 returning error if any. Enable or disable forum functionality¹ in a supergroup. Links: 1. https://core.telegram.org/api/forum Possible errors: 400 CHAT_DISCUSSION_UNALLOWED: You can't enable forum topics in a discussion group linked to a channel. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. See https://core.telegram.org/method/channels.toggleForum for reference. Can be used by bots. ChannelsToggleJoinRequest invokes method channels.toggleJoinRequest#4c2985b6 returning error if any. Set whether all users should request admin approval to join the group »¹. Links: 1. https://core.telegram.org/api/invites#join-requests Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 CHAT_PUBLIC_REQUIRED: You can only enable join requests in public groups. See https://core.telegram.org/method/channels.toggleJoinRequest for reference. ChannelsToggleJoinToSend invokes method channels.toggleJoinToSend#e4cb9580 returning error if any. Set whether all users should join a discussion group in order to comment on a post »¹ Links: 1. https://core.telegram.org/api/discussion#requiring-users-to-join-the-group Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. See https://core.telegram.org/method/channels.toggleJoinToSend for reference. ChannelsToggleParticipantsHidden invokes method channels.toggleParticipantsHidden#6a6e7854 returning error if any. Hide or display the participants list in a supergroup¹. The supergroup must have at least hidden_members_group_size_min participants in order to use this method, as specified by the client configuration parameters »¹. Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/api/config#client-configuration Possible errors: 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 PARTICIPANTS_TOO_FEW: Not enough participants. See https://core.telegram.org/method/channels.toggleParticipantsHidden for reference. Can be used by bots. ChannelsTogglePreHistoryHidden invokes method channels.togglePreHistoryHidden#eabbb94c returning error if any. Hide/unhide message history for new channel/supergroup users Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_LINK_EXISTS: The chat is public, you can't hide the history to new users. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 FORUM_ENABLED: You can't execute the specified action because the group is a forum, disable forum functionality to continue. See https://core.telegram.org/method/channels.togglePreHistoryHidden for reference. ChannelsToggleSignatures invokes method channels.toggleSignatures#1f69b606 returning error if any. Enable/disable message signatures in channels Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. See https://core.telegram.org/method/channels.toggleSignatures for reference. ChannelsToggleSlowMode invokes method channels.toggleSlowMode#edd49ef0 returning error if any. Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 SECONDS_INVALID: Invalid duration provided. See https://core.telegram.org/method/channels.toggleSlowMode for reference. ChannelsToggleUsername invokes method channels.toggleUsername#50f24105 returning error if any. Activate or deactivate a purchased fragment.com¹ username associated to a supergroup or channel² we own. Links: 1. https://fragment.com 2. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 USERNAMES_ACTIVE_TOO_MUCH: The maximum number of active usernames was reached. 400 USERNAME_INVALID: The provided username is not valid. See https://core.telegram.org/method/channels.toggleUsername for reference. Can be used by bots. ChannelsToggleViewForumAsMessages invokes method channels.toggleViewForumAsMessages#9738bb15 returning error if any. Users may also choose to display messages from all topics of a forum¹ as if they were sent to a normal group, using a "View as messages" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method. Invoking this method will update the value of the view_forum_as_messages flag of channelFull¹ or dialog² and emit an updateChannelViewForumAsMessages³. Links: 1. https://core.telegram.org/api/forum 2. https://core.telegram.org/constructor/channelFull 3. https://core.telegram.org/constructor/dialog 4. https://core.telegram.org/constructor/updateChannelViewForumAsMessages Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. See https://core.telegram.org/method/channels.toggleViewForumAsMessages for reference. ChannelsUpdateColor invokes method channels.updateColor#d8aa3671 returning error if any. Update the accent color and background custom emoji »¹ of a channel. Links: 1. https://core.telegram.org/api/colors Possible errors: 400 BOOSTS_REQUIRED: The specified channel must first be boosted by its users in order to perform this action. 400 CHANNEL_INVALID: The provided channel is invalid. See https://core.telegram.org/method/channels.updateColor for reference. ChannelsUpdateEmojiStatus invokes method channels.updateEmojiStatus#f0d3e6a8 returning error if any. See https://core.telegram.org/method/channels.updateEmojiStatus for reference. ChannelsUpdatePinnedForumTopic invokes method channels.updatePinnedForumTopic#6c2d9026 returning error if any. Pin or unpin forum topics¹ Links: 1. https://core.telegram.org/api/forum See https://core.telegram.org/method/channels.updatePinnedForumTopic for reference. Can be used by bots. ChannelsUpdateUsername invokes method channels.updateUsername#3514b3de returning error if any. Change or remove the username of a supergroup/channel Possible errors: 400 CHANNELS_ADMIN_PUBLIC_TOO_MUCH: You're admin of too many public channels, make some channels private to change the username of this channel. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 USERNAME_INVALID: The provided username is not valid. 400 USERNAME_NOT_MODIFIED: The username was not modified. 400 USERNAME_OCCUPIED: The provided username is already occupied. 400 USERNAME_PURCHASE_AVAILABLE: The specified username can be purchased on https://fragment.com. See https://core.telegram.org/method/channels.updateUsername for reference. ChannelsViewSponsoredMessage invokes method channels.viewSponsoredMessage#beaedb94 returning error if any. Mark a specific sponsored message as read Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. See https://core.telegram.org/method/channels.viewSponsoredMessage for reference. ChatlistsCheckChatlistInvite invokes method chatlists.checkChatlistInvite#41c10fff returning error if any. Obtain information about a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links Possible errors: 400 INVITE_SLUG_EMPTY: The specified invite slug is empty. 400 INVITE_SLUG_EXPIRED: The specified chat folder link has expired. See https://core.telegram.org/method/chatlists.checkChatlistInvite for reference. Can be used by bots. ChatlistsDeleteExportedInvite invokes method chatlists.deleteExportedInvite#719c5c5e returning error if any. Delete a previously created chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links Possible errors: 400 FILTER_ID_INVALID: The specified filter ID is invalid. See https://core.telegram.org/method/chatlists.deleteExportedInvite for reference. Can be used by bots. ChatlistsEditExportedInvite invokes method chatlists.editExportedInvite#653db63d returning error if any. Edit a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links Possible errors: 400 FILTER_ID_INVALID: The specified filter ID is invalid. See https://core.telegram.org/method/chatlists.editExportedInvite for reference. Can be used by bots. ChatlistsExportChatlistInvite invokes method chatlists.exportChatlistInvite#8472478e returning error if any. Export a folder »¹, creating a chat folder deep link »². Links: 1. https://core.telegram.org/api/folders 2. https://core.telegram.org/api/links#chat-folder-links Possible errors: 400 FILTER_ID_INVALID: The specified filter ID is invalid. 400 FILTER_NOT_SUPPORTED: The specified filter cannot be used in this context. 400 INVITES_TOO_MUCH: The maximum number of per-folder invites specified by the chatlist_invites_limit_default/chatlist_invites_limit_premium client configuration parameters » was reached. 400 PEERS_LIST_EMPTY: The specified list of peers is empty. See https://core.telegram.org/method/chatlists.exportChatlistInvite for reference. ChatlistsGetChatlistUpdates invokes method chatlists.getChatlistUpdates#89419521 returning error if any. Fetch new chats associated with an imported chat folder deep link »¹. Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »²). Links: 1. https://core.telegram.org/api/links#chat-folder-links 2. https://core.telegram.org/api/config#chatlist-update-period Possible errors: 400 FILTER_ID_INVALID: The specified filter ID is invalid. 400 INPUT_CHATLIST_INVALID: The specified folder is invalid. See https://core.telegram.org/method/chatlists.getChatlistUpdates for reference. Can be used by bots. ChatlistsGetExportedInvites invokes method chatlists.getExportedInvites#ce03da83 returning error if any. List all chat folder deep links »¹ associated to a folder Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.getExportedInvites for reference. Can be used by bots. ChatlistsGetLeaveChatlistSuggestions invokes method chatlists.getLeaveChatlistSuggestions#fdbcd714 returning error if any. Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link »¹, which are suggested to be left when the chat folder is deleted. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.getLeaveChatlistSuggestions for reference. Can be used by bots. ChatlistsHideChatlistUpdates invokes method chatlists.hideChatlistUpdates#66e486fb returning error if any. Dismiss new pending peers recently added to a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.hideChatlistUpdates for reference. Can be used by bots. ChatlistsJoinChatlistInvite invokes method chatlists.joinChatlistInvite#a6b1e39a returning error if any. Import a chat folder deep link »¹, joining some or all the chats in the folder. Links: 1. https://core.telegram.org/api/links#chat-folder-links Possible errors: 400 FILTER_INCLUDE_EMPTY: The include_peers vector of the filter is empty. 400 INVITE_SLUG_EMPTY: The specified invite slug is empty. 400 INVITE_SLUG_EXPIRED: The specified chat folder link has expired. See https://core.telegram.org/method/chatlists.joinChatlistInvite for reference. Can be used by bots. ChatlistsJoinChatlistUpdates invokes method chatlists.joinChatlistUpdates#e089f8f5 returning error if any. Join channels and supergroups recently added to a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.joinChatlistUpdates for reference. Can be used by bots. ChatlistsLeaveChatlist invokes method chatlists.leaveChatlist#74fae13a returning error if any. Delete a folder imported using a chat folder deep link »¹ Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/method/chatlists.leaveChatlist for reference. Can be used by bots. ContactsAcceptContact invokes method contacts.acceptContact#f831a20f returning error if any. If the add contact action bar is active¹, add that user as contact Links: 1. https://core.telegram.org/api/action-bar#add-contact Possible errors: 400 CONTACT_ADD_MISSING: Contact to add is missing. 400 CONTACT_ID_INVALID: The provided contact ID is invalid. 400 CONTACT_REQ_MISSING: Missing contact request. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/contacts.acceptContact for reference. ContactsAddContact invokes method contacts.addContact#e8f463d0 returning error if any. Add an existing telegram user as contact. Use contacts.importContacts¹ to add contacts by phone number, without knowing their Telegram ID. Links: 1. https://core.telegram.org/method/contacts.importContacts Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CONTACT_ID_INVALID: The provided contact ID is invalid. 400 CONTACT_NAME_EMPTY: Contact name empty. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/contacts.addContact for reference. ContactsBlock invokes method contacts.block#2e2e8734 returning error if any. Adds a peer to a blocklist, see here »¹ for more info. Links: 1. https://core.telegram.org/api/block Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CONTACT_ID_INVALID: The provided contact ID is invalid. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/contacts.block for reference. ContactsBlockFromReplies invokes method contacts.blockFromReplies#29a8962c returning error if any. Stop getting notifications about discussion replies¹ of a certain user in @replies Links: 1. https://core.telegram.org/api/discussion See https://core.telegram.org/method/contacts.blockFromReplies for reference. ContactsDeleteByPhones invokes method contacts.deleteByPhones#1013fd9e returning error if any. Delete contacts by phone number See https://core.telegram.org/method/contacts.deleteByPhones for reference. ContactsDeleteContacts invokes method contacts.deleteContacts#96a0e00 returning error if any. Deletes several contacts from the list. See https://core.telegram.org/method/contacts.deleteContacts for reference. ContactsEditCloseFriends invokes method contacts.editCloseFriends#ba6705f0 returning error if any. Edit the close friends list, see here »¹ for more info. Links: 1. https://core.telegram.org/api/privacy See https://core.telegram.org/method/contacts.editCloseFriends for reference. ContactsExportContactToken invokes method contacts.exportContactToken#f8654027 returning error if any. Generates a temporary profile link¹ for the currently logged-in user. Links: 1. https://core.telegram.org/api/links#temporary-profile-links See https://core.telegram.org/method/contacts.exportContactToken for reference. Can be used by bots. ContactsGetBlocked invokes method contacts.getBlocked#9a868f80 returning error if any. Returns the list of blocked users. See https://core.telegram.org/method/contacts.getBlocked for reference. ContactsGetContactIDs invokes method contacts.getContactIDs#7adc669d returning error if any. Get contact by telegram IDs See https://core.telegram.org/method/contacts.getContactIDs for reference. ContactsGetContacts invokes method contacts.getContacts#5dd69e12 returning error if any. Returns the current user's contact list. See https://core.telegram.org/method/contacts.getContacts for reference. ContactsGetLocated invokes method contacts.getLocated#d348bc44 returning error if any. Get users and geochats near you, see here »¹ for more info. Links: 1. https://core.telegram.org/api/nearby Possible errors: 400 GEO_POINT_INVALID: Invalid geoposition provided. 406 USERPIC_PRIVACY_REQUIRED: You need to disable privacy settings for your profile picture in order to make your geolocation public. 406 USERPIC_UPLOAD_REQUIRED: You must have a profile picture to publish your geolocation. See https://core.telegram.org/method/contacts.getLocated for reference. ContactsGetSaved invokes method contacts.getSaved#82f1e39f returning error if any. Get all contacts, requires a takeout session, see here » for more info¹. Links: 1. https://core.telegram.org/api/takeout Possible errors: 403 TAKEOUT_REQUIRED: A takeout¹ session needs to be initialized first, see here » for more info². See https://core.telegram.org/method/contacts.getSaved for reference. ContactsGetStatuses invokes method contacts.getStatuses#c4a353ee returning error if any. Returns the list of contact statuses. See https://core.telegram.org/method/contacts.getStatuses for reference. ContactsGetTopPeers invokes method contacts.getTopPeers#973478b6 returning error if any. Get most used peers Possible errors: 400 TYPES_EMPTY: No top peer type was provided. See https://core.telegram.org/method/contacts.getTopPeers for reference. ContactsImportContactToken invokes method contacts.importContactToken#13005788 returning error if any. Obtain user info from a temporary profile link¹. Links: 1. https://core.telegram.org/api/links#temporary-profile-links Possible errors: 400 IMPORT_TOKEN_INVALID: The specified token is invalid. See https://core.telegram.org/method/contacts.importContactToken for reference. Can be used by bots. ContactsImportContacts invokes method contacts.importContacts#2c800be5 returning error if any. Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info. Use contacts.addContact¹ to add Telegram contacts without actually using their phone number. Links: 1. https://core.telegram.org/method/contacts.addContact See https://core.telegram.org/method/contacts.importContacts for reference. ContactsResetSaved invokes method contacts.resetSaved#879537f1 returning error if any. Delete saved contacts See https://core.telegram.org/method/contacts.resetSaved for reference. ContactsResetTopPeerRating invokes method contacts.resetTopPeerRating#1ae373ac returning error if any. Reset rating¹ of top peer Links: 1. https://core.telegram.org/api/top-rating Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/contacts.resetTopPeerRating for reference. ContactsResolvePhone invokes method contacts.resolvePhone#8af94344 returning error if any. Resolve a phone number to get user info, if their privacy settings allow it. Possible errors: 400 PHONE_NOT_OCCUPIED: No user is associated to the specified phone number. See https://core.telegram.org/method/contacts.resolvePhone for reference. ContactsResolveUsername invokes method contacts.resolveUsername#f93ccba3 returning error if any. Resolve a @username to get peer info Possible errors: 400 CONNECTION_LAYER_INVALID: Layer invalid. 400 USERNAME_INVALID: The provided username is not valid. 400 USERNAME_NOT_OCCUPIED: The provided username is not occupied. See https://core.telegram.org/method/contacts.resolveUsername for reference. Can be used by bots. ContactsSearch invokes method contacts.search#11f812d8 returning error if any. Returns users found by username substring. Possible errors: 400 QUERY_TOO_SHORT: The query string is too short. 400 SEARCH_QUERY_EMPTY: The search query is empty. See https://core.telegram.org/method/contacts.search for reference. ContactsSetBlocked invokes method contacts.setBlocked#94c65c76 returning error if any. Replace the contents of an entire blocklist, see here for more info »¹. Links: 1. https://core.telegram.org/api/block See https://core.telegram.org/method/contacts.setBlocked for reference. ContactsToggleTopPeers invokes method contacts.toggleTopPeers#8514bdda returning error if any. Enable/disable top peers¹ Links: 1. https://core.telegram.org/api/top-rating See https://core.telegram.org/method/contacts.toggleTopPeers for reference. ContactsUnblock invokes method contacts.unblock#b550d328 returning error if any. Deletes a peer from a blocklist, see here »¹ for more info. Links: 1. https://core.telegram.org/api/block Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CONTACT_ID_INVALID: The provided contact ID is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/contacts.unblock for reference. FoldersEditPeerFolders invokes method folders.editPeerFolders#6847d0ab returning error if any. Edit peers in peer folder¹ Links: 1. https://core.telegram.org/api/folders#peer-folders Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 FOLDER_ID_INVALID: Invalid folder ID. See https://core.telegram.org/method/folders.editPeerFolders for reference. HelpAcceptTermsOfService invokes method help.acceptTermsOfService#ee72f79a returning error if any. Accept the new terms of service Possible errors: 400 DATA_JSON_INVALID: The provided JSON data is invalid. See https://core.telegram.org/method/help.acceptTermsOfService for reference. HelpDismissSuggestion invokes method help.dismissSuggestion#f50dbaa1 returning error if any. Dismiss a suggestion, see here for more info »¹. Links: 1. https://core.telegram.org/api/config#suggestions See https://core.telegram.org/method/help.dismissSuggestion for reference. HelpEditUserInfo invokes method help.editUserInfo#66b91b70 returning error if any. Internal use Possible errors: 400 ENTITY_BOUNDS_INVALID: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. 403 USER_INVALID: Invalid user provided. See https://core.telegram.org/method/help.editUserInfo for reference. HelpGetAppConfig invokes method help.getAppConfig#61e3f854 returning error if any. Get app-specific configuration, see client configuration¹ for more info on the result. Links: 1. https://core.telegram.org/api/config#client-configuration See https://core.telegram.org/method/help.getAppConfig for reference. HelpGetAppUpdate invokes method help.getAppUpdate#522d5a7d returning error if any. Returns information on update availability for the current application. See https://core.telegram.org/method/help.getAppUpdate for reference. HelpGetCDNConfig invokes method help.getCdnConfig#52029342 returning error if any. Get configuration for CDN¹ file downloads. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/method/help.getCdnConfig for reference. Can be used by bots. HelpGetConfig invokes method help.getConfig#c4f9186b returning error if any. Returns current configuration, including data center configuration. Possible errors: 400 CONNECTION_API_ID_INVALID: The provided API id is invalid. 400 CONNECTION_APP_VERSION_EMPTY: App version is empty. 400 CONNECTION_LAYER_INVALID: Layer invalid. 400 DATA_INVALID: Encrypted data invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 USERNAME_INVALID: The provided username is not valid. 403 USER_PRIVACY_RESTRICTED: The user's privacy settings do not allow you to do this. See https://core.telegram.org/method/help.getConfig for reference. Can be used by bots. HelpGetCountriesList invokes method help.getCountriesList#735787a8 returning error if any. Get name, ISO code, localized name and phone codes/patterns of all available countries See https://core.telegram.org/method/help.getCountriesList for reference. HelpGetDeepLinkInfo invokes method help.getDeepLinkInfo#3fedc75f returning error if any. Get info about an unsupported deep link, see here for more info »¹. Links: 1. https://core.telegram.org/api/links#unsupported-links See https://core.telegram.org/method/help.getDeepLinkInfo for reference. HelpGetInviteText invokes method help.getInviteText#4d392343 returning error if any. Returns localized text of a text message with an invitation. See https://core.telegram.org/method/help.getInviteText for reference. HelpGetNearestDC invokes method help.getNearestDc#1fb33026 returning error if any. Returns info on data center nearest to the user. See https://core.telegram.org/method/help.getNearestDc for reference. HelpGetPassportConfig invokes method help.getPassportConfig#c661ad08 returning error if any. Get passport¹ configuration Links: 1. https://core.telegram.org/passport See https://core.telegram.org/method/help.getPassportConfig for reference. HelpGetPeerColors invokes method help.getPeerColors#da80f42f returning error if any. Get the set of accent color palettes »¹ that can be used for message accents. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/method/help.getPeerColors for reference. HelpGetPeerProfileColors invokes method help.getPeerProfileColors#abcfa9fd returning error if any. Get the set of accent color palettes »¹ that can be used in profile page backgrounds. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/method/help.getPeerProfileColors for reference. HelpGetPremiumPromo invokes method help.getPremiumPromo#b81b93d4 returning error if any. Get Telegram Premium promotion information See https://core.telegram.org/method/help.getPremiumPromo for reference. HelpGetPromoData invokes method help.getPromoData#c0977421 returning error if any. Get MTProxy/Public Service Announcement information See https://core.telegram.org/method/help.getPromoData for reference. HelpGetRecentMeURLs invokes method help.getRecentMeUrls#3dc0f114 returning error if any. Get recently used t.me links. When installing official applications from "Download Telegram" buttons present in t me¹ pages, a referral parameter is passed to applications after installation. If, after downloading the application, the user creates a new account (instead of logging into an existing one), the referral parameter should be imported using this method, which returns the t.me² pages the user recently opened, before installing Telegram. Links: 1. https://t.me 2. https://t.me See https://core.telegram.org/method/help.getRecentMeUrls for reference. HelpGetSupport invokes method help.getSupport#9cdf08cd returning error if any. Returns the support user for the "ask a question" feature. See https://core.telegram.org/method/help.getSupport for reference. HelpGetSupportName invokes method help.getSupportName#d360e72c returning error if any. Get localized name of the telegram support user Possible errors: 403 USER_INVALID: Invalid user provided. See https://core.telegram.org/method/help.getSupportName for reference. HelpGetTermsOfServiceUpdate invokes method help.getTermsOfServiceUpdate#2ca51fd1 returning error if any. Look for updates of telegram's terms of service See https://core.telegram.org/method/help.getTermsOfServiceUpdate for reference. HelpGetUserInfo invokes method help.getUserInfo#38a08d3 returning error if any. Can only be used by TSF members to obtain internal information. Possible errors: 403 USER_INVALID: Invalid user provided. See https://core.telegram.org/method/help.getUserInfo for reference. HelpHidePromoData invokes method help.hidePromoData#1e251c95 returning error if any. Hide MTProxy/Public Service Announcement information See https://core.telegram.org/method/help.hidePromoData for reference. HelpSaveAppLog invokes method help.saveAppLog#6f02f748 returning error if any. Saves logs of application on the server. See https://core.telegram.org/method/help.saveAppLog for reference. HelpSetBotUpdatesStatus invokes method help.setBotUpdatesStatus#ec22cfcd returning error if any. Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only See https://core.telegram.org/method/help.setBotUpdatesStatus for reference. Can be used by bots. Invoker returns Invoker used by this client. LangpackGetDifference invokes method langpack.getDifference#cd984aa5 returning error if any. Get new strings in language pack Possible errors: 400 LANG_PACK_INVALID: The provided language pack is invalid. See https://core.telegram.org/method/langpack.getDifference for reference. LangpackGetLangPack invokes method langpack.getLangPack#f2f2330a returning error if any. Get localization pack strings Possible errors: 400 LANG_CODE_NOT_SUPPORTED: The specified language code is not supported. 400 LANG_PACK_INVALID: The provided language pack is invalid. See https://core.telegram.org/method/langpack.getLangPack for reference. LangpackGetLanguage invokes method langpack.getLanguage#6a596502 returning error if any. Get information about a language in a localization pack Possible errors: 400 LANG_CODE_NOT_SUPPORTED: The specified language code is not supported. 400 LANG_PACK_INVALID: The provided language pack is invalid. See https://core.telegram.org/method/langpack.getLanguage for reference. LangpackGetLanguages invokes method langpack.getLanguages#42c6978f returning error if any. Get information about all languages in a localization pack Possible errors: 400 LANG_PACK_INVALID: The provided language pack is invalid. See https://core.telegram.org/method/langpack.getLanguages for reference. LangpackGetStrings invokes method langpack.getStrings#efea3803 returning error if any. Get strings from a language pack Possible errors: 400 LANG_CODE_NOT_SUPPORTED: The specified language code is not supported. 400 LANG_PACK_INVALID: The provided language pack is invalid. See https://core.telegram.org/method/langpack.getStrings for reference. MessagesAcceptEncryption invokes method messages.acceptEncryption#3dbc0415 returning error if any. Confirms creation of a secret chat Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 ENCRYPTION_ALREADY_ACCEPTED: Secret chat already accepted. 400 ENCRYPTION_ALREADY_DECLINED: The secret chat was already declined. See https://core.telegram.org/method/messages.acceptEncryption for reference. MessagesAcceptURLAuth invokes method messages.acceptUrlAuth#b12c7125 returning error if any. Use this to accept a Seamless Telegram Login authorization request, for more info click here »¹ Links: 1. https://core.telegram.org/api/url-authorization See https://core.telegram.org/method/messages.acceptUrlAuth for reference. MessagesAddChatUser invokes method messages.addChatUser#f24753e3 returning error if any. Adds a user to a chat and sends a service message on it. May also return 0-N updates of type updateGroupInvitePrivacyForbidden¹: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link² can be shared with the user, instead. Links: 1. https://core.telegram.org/constructor/updateGroupInvitePrivacyForbidden 2. https://core.telegram.org/api/invites Possible errors: 400 BOT_GROUPS_BLOCKED: This bot can't be added to groups. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USERS_TOO_MUCH: The maximum number of users has been exceeded (to create a chat, for example). 400 USER_ALREADY_PARTICIPANT: The user is already in the group. 400 USER_ID_INVALID: The provided user ID is invalid. 400 USER_IS_BLOCKED: You were blocked by this user. 403 USER_NOT_MUTUAL_CONTACT: The provided user is not a mutual contact. 403 USER_PRIVACY_RESTRICTED: The user's privacy settings do not allow you to do this. 400 YOU_BLOCKED_USER: You blocked this user. See https://core.telegram.org/method/messages.addChatUser for reference. MessagesCheckChatInvite invokes method messages.checkChatInvite#3eadb1bb returning error if any. Check the validity of a chat invite link and get basic info about it Possible errors: 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 INVITE_HASH_EMPTY: The invite hash is empty. 406 INVITE_HASH_EXPIRED: The invite link has expired. 400 INVITE_HASH_INVALID: The invite hash is invalid. See https://core.telegram.org/method/messages.checkChatInvite for reference. MessagesCheckHistoryImport invokes method messages.checkHistoryImport#43fe19f3 returning error if any. Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats »¹. Links: 1. https://core.telegram.org/api/import Possible errors: 400 IMPORT_FORMAT_UNRECOGNIZED: The specified chat export file was exported from an unsupported chat app. See https://core.telegram.org/method/messages.checkHistoryImport for reference. MessagesCheckHistoryImportPeer invokes method messages.checkHistoryImportPeer#5dc60f03 returning error if any. Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info »¹. If the check succeeds, and no RPC errors are returned, a messages CheckedHistoryImportPeer¹ constructor will be returned, with a confirmation text to be shown to the user, before actually initializing the import. Links: 1. https://core.telegram.org/api/import 2. https://core.telegram.org/type/messages.CheckedHistoryImportPeer Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_NOT_MUTUAL_CONTACT: The provided user is not a mutual contact. See https://core.telegram.org/method/messages.checkHistoryImportPeer for reference. MessagesClearAllDrafts invokes method messages.clearAllDrafts#7e58ee9c returning error if any. Clear all drafts¹. Links: 1. https://core.telegram.org/api/drafts See https://core.telegram.org/method/messages.clearAllDrafts for reference. MessagesClearRecentReactions invokes method messages.clearRecentReactions#9dfeefb4 returning error if any. Clear recently used message reactions¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.clearRecentReactions for reference. MessagesClearRecentStickers invokes method messages.clearRecentStickers#8999602d returning error if any. Clear recent stickers See https://core.telegram.org/method/messages.clearRecentStickers for reference. MessagesCreateChat invokes method messages.createChat#34a818 returning error if any. Creates a new chat. May also return 0-N updates of type updateGroupInvitePrivacyForbidden¹: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link² can be shared with the user, instead. Links: 1. https://core.telegram.org/constructor/updateGroupInvitePrivacyForbidden 2. https://core.telegram.org/api/invites Possible errors: 500 CHAT_ID_GENERATE_FAILED: Failure while generating the chat ID. 400 CHAT_INVALID: Invalid chat. 400 CHAT_TITLE_EMPTY: No chat title provided. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 TTL_PERIOD_INVALID: The specified TTL period is invalid. 400 USERS_TOO_FEW: Not enough users (to create a chat, for example). 406 USER_RESTRICTED: You're spamreported, you can't create channels or chats. See https://core.telegram.org/method/messages.createChat for reference. MessagesDeleteChat invokes method messages.deleteChat#5bd0ee50 returning error if any. Delete a chat¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.deleteChat for reference. MessagesDeleteChatUser invokes method messages.deleteChatUser#a2185cab returning error if any. Deletes a user from a chat and sends a service message on it. Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_ID_INVALID: The provided user ID is invalid. 400 USER_NOT_PARTICIPANT: You're not a member of this supergroup/channel. See https://core.telegram.org/method/messages.deleteChatUser for reference. Can be used by bots. MessagesDeleteExportedChatInvite invokes method messages.deleteExportedChatInvite#d464a42b returning error if any. Delete a chat invite Possible errors: 400 INVITE_HASH_EXPIRED: The invite link has expired. 400 INVITE_REVOKED_MISSING: The specified invite link was already revoked or is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.deleteExportedChatInvite for reference. MessagesDeleteHistory invokes method messages.deleteHistory#b08f922a returning error if any. Deletes communication history. Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_REVOKE_DATE_UNSUPPORTED: min_date and max_date are not available for using with non-user peers. 400 MAX_DATE_INVALID: The specified maximum date is invalid. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 MIN_DATE_INVALID: The specified minimum date is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.deleteHistory for reference. MessagesDeleteMessages invokes method messages.deleteMessages#e58e95d2 returning error if any. Deletes messages by their identifiers. Possible errors: 403 MESSAGE_DELETE_FORBIDDEN: You can't delete one of the messages you tried to delete, most likely because it is a service message. 400 MESSAGE_ID_INVALID: The provided message id is invalid. See https://core.telegram.org/method/messages.deleteMessages for reference. Can be used by bots. MessagesDeletePhoneCallHistory invokes method messages.deletePhoneCallHistory#f9cbe409 returning error if any. Delete the entire phone call history. See https://core.telegram.org/method/messages.deletePhoneCallHistory for reference. MessagesDeleteRevokedExportedChatInvites invokes method messages.deleteRevokedExportedChatInvites#56987bd5 returning error if any. Delete all revoked chat invites Possible errors: 400 ADMIN_ID_INVALID: The specified admin ID is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.deleteRevokedExportedChatInvites for reference. MessagesDeleteScheduledMessages invokes method messages.deleteScheduledMessages#59ae2b16 returning error if any. Delete scheduled messages See https://core.telegram.org/method/messages.deleteScheduledMessages for reference. MessagesDiscardEncryption invokes method messages.discardEncryption#f393aea0 returning error if any. Cancels a request for creation and/or delete info on secret chat. Possible errors: 400 CHAT_ID_EMPTY: The provided chat ID is empty. 400 ENCRYPTION_ALREADY_ACCEPTED: Secret chat already accepted. 400 ENCRYPTION_ALREADY_DECLINED: The secret chat was already declined. 400 ENCRYPTION_ID_INVALID: The provided secret chat ID is invalid. See https://core.telegram.org/method/messages.discardEncryption for reference. MessagesEditChatAbout invokes method messages.editChatAbout#def60797 returning error if any. Edit the description of a group/supergroup/channel¹. Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ABOUT_NOT_MODIFIED: About text has not changed. 400 CHAT_ABOUT_TOO_LONG: Chat about too long. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.editChatAbout for reference. Can be used by bots. MessagesEditChatAdmin invokes method messages.editChatAdmin#a85bd1c2 returning error if any. Make a user admin in a basic group¹. Links: 1. https://core.telegram.org/api/channel#basic-groups Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_ID_INVALID: The provided user ID is invalid. 400 USER_NOT_PARTICIPANT: You're not a member of this supergroup/channel. See https://core.telegram.org/method/messages.editChatAdmin for reference. MessagesEditChatDefaultBannedRights invokes method messages.editChatDefaultBannedRights#a5866b41 returning error if any. Edit the default banned rights of a channel/supergroup/group¹. Links: 1. https://core.telegram.org/api/channel Possible errors: 400 BANNED_RIGHTS_INVALID: You provided some invalid flags in the banned rights. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 UNTIL_DATE_INVALID: Invalid until date provided. See https://core.telegram.org/method/messages.editChatDefaultBannedRights for reference. Can be used by bots. MessagesEditChatPhoto invokes method messages.editChatPhoto#35ddd674 returning error if any. Changes chat photo and sends a service message on it Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 IMAGE_PROCESS_FAILED: Failure while processing image. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 PHOTO_CROP_SIZE_SMALL: Photo is too small. 400 PHOTO_EXT_INVALID: The extension of the photo is invalid. 400 PHOTO_INVALID: Photo invalid. See https://core.telegram.org/method/messages.editChatPhoto for reference. Can be used by bots. MessagesEditChatTitle invokes method messages.editChatTitle#73783ffd returning error if any. Changes chat name and sends a service message on it. Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 CHAT_TITLE_EMPTY: No chat title provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.editChatTitle for reference. Can be used by bots. MessagesEditExportedChatInvite invokes method messages.editExportedChatInvite#bdca2f75 returning error if any. Edit an exported chat invite Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_INVITE_PERMANENT: You can't set an expiration date on permanent invite links. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 403 EDIT_BOT_INVITE_FORBIDDEN: Normal users can't edit invites that were created by bots. 400 INVITE_HASH_EXPIRED: The invite link has expired. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.editExportedChatInvite for reference. Can be used by bots. MessagesEditInlineBotMessage invokes method messages.editInlineBotMessage#83557dba returning error if any. Edit an inline bot message Possible errors: 400 BUTTON_DATA_INVALID: The data of one or more of the buttons you provided is invalid. 400 ENTITY_BOUNDS_INVALID: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 MESSAGE_NOT_MODIFIED: The provided message data is identical to the previous message data, the message wasn't modified. See https://core.telegram.org/method/messages.editInlineBotMessage for reference. Can be used by bots. MessagesEditMessage invokes method messages.editMessage#48f71778 returning error if any. Edit message Possible errors: 400 BOT_DOMAIN_INVALID: Bot domain invalid. 400 BOT_INVALID: This is not a valid bot. 400 BUTTON_DATA_INVALID: The data of one or more of the buttons you provided is invalid. 400 BUTTON_TYPE_INVALID: The type of one or more of the buttons you provided is invalid. 400 BUTTON_URL_INVALID: Button URL invalid. 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_FORWARDS_RESTRICTED: You can't forward messages from a protected chat. 403 CHAT_SEND_GIFS_FORBIDDEN: You can't send gifs in this chat. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 DOCUMENT_INVALID: The specified document is invalid. 400 ENTITIES_TOO_LONG: You provided too many styled message entities. 400 ENTITY_BOUNDS_INVALID: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. 400 FILE_PARTS_INVALID: The number of file parts is invalid. 400 IMAGE_PROCESS_FAILED: Failure while processing image. 403 INLINE_BOT_REQUIRED: Only the inline bot can edit message. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MEDIA_CAPTION_TOO_LONG: The caption is too long. 400 MEDIA_EMPTY: The provided media object is invalid. 400 MEDIA_GROUPED_INVALID: You tried to send media of different types in an album. 400 MEDIA_INVALID: Media invalid. 400 MEDIA_NEW_INVALID: The new media is invalid. 400 MEDIA_PREV_INVALID: Previous media invalid. 400 MEDIA_TTL_INVALID: The specified media TTL is invalid. 403 MESSAGE_AUTHOR_REQUIRED: Message author required. 400 MESSAGE_EDIT_TIME_EXPIRED: You can't edit this message anymore, too much time has passed since its creation. 400 MESSAGE_EMPTY: The provided message is empty. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 MESSAGE_NOT_MODIFIED: The provided message data is identical to the previous message data, the message wasn't modified. 400 MESSAGE_TOO_LONG: The provided message is too long. 400 MSG_ID_INVALID: Invalid message ID provided. 500 MSG_WAIT_FAILED: A waiting call returned an error. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 REPLY_MARKUP_INVALID: The provided reply markup is invalid. 400 SCHEDULE_DATE_INVALID: Invalid schedule date provided. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. See https://core.telegram.org/method/messages.editMessage for reference. Can be used by bots. MessagesExportChatInvite invokes method messages.exportChatInvite#a02ce5d5 returning error if any. Export an invite link for a chat Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 EXPIRE_DATE_INVALID: The specified expiration date is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USAGE_LIMIT_INVALID: The specified usage limit is invalid. See https://core.telegram.org/method/messages.exportChatInvite for reference. Can be used by bots. MessagesFaveSticker invokes method messages.faveSticker#b9ffc55b returning error if any. Mark or unmark a sticker as favorite Possible errors: 400 STICKER_ID_INVALID: The provided sticker ID is invalid. See https://core.telegram.org/method/messages.faveSticker for reference. MessagesForwardMessages invokes method messages.forwardMessages#c661bbc4 returning error if any. Forwards messages by their IDs. Possible errors: 400 BROADCAST_PUBLIC_VOTERS_FORBIDDEN: You can't forward polls with public voters. 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 406 CHAT_FORWARDS_RESTRICTED: You can't forward messages from a protected chat. 403 CHAT_GUEST_SEND_FORBIDDEN: You join the discussion group before commenting, see here » for more info. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_RESTRICTED: You can't send messages in this chat, you were restricted. 403 CHAT_SEND_AUDIOS_FORBIDDEN: You can't send audio messages in this chat. 403 CHAT_SEND_DOCS_FORBIDDEN: You can't send documents in this chat. 403 CHAT_SEND_GAME_FORBIDDEN: You can't send a game to this chat. 403 CHAT_SEND_GIFS_FORBIDDEN: You can't send gifs in this chat. 403 CHAT_SEND_MEDIA_FORBIDDEN: You can't send media in this chat. 403 CHAT_SEND_PHOTOS_FORBIDDEN: You can't send photos in this chat. 403 CHAT_SEND_PLAIN_FORBIDDEN: You can't send non-media (text) messages in this chat. 403 CHAT_SEND_POLL_FORBIDDEN: You can't send polls in this chat. 403 CHAT_SEND_STICKERS_FORBIDDEN: You can't send stickers in this chat. 403 CHAT_SEND_VIDEOS_FORBIDDEN: You can't send videos in this chat. 403 CHAT_SEND_VOICES_FORBIDDEN: You can't send voice recordings in this chat. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 GROUPED_MEDIA_INVALID: Invalid grouped media. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MEDIA_EMPTY: The provided media object is invalid. 400 MESSAGE_IDS_EMPTY: No message ids were provided. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 406 PAYMENT_UNSUPPORTED: A detailed description of the error will be received separately as described here ». 400 PEER_ID_INVALID: The provided peer id is invalid. 400 QUIZ_ANSWER_MISSING: You can forward a quiz while hiding the original author only after choosing an option in the quiz. 500 RANDOM_ID_DUPLICATE: You provided a random ID that was already used. 400 RANDOM_ID_INVALID: A provided random ID is invalid. 400 SCHEDULE_DATE_TOO_LATE: You can't schedule a message this far in the future. 400 SCHEDULE_TOO_MUCH: There are too many scheduled messages. 400 SEND_AS_PEER_INVALID: You can't send messages as the specified peer. 400 SLOWMODE_MULTI_MSGS_DISABLED: Slowmode is enabled, you cannot forward multiple messages to this group. 420 SLOWMODE_WAIT_%d: Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat. 406 TOPIC_CLOSED: This topic was closed, you can't send messages to it anymore. 406 TOPIC_DELETED: The specified topic was deleted. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. 403 USER_IS_BLOCKED: You were blocked by this user. 400 USER_IS_BOT: Bots can't send messages to other bots. 403 VOICE_MESSAGES_FORBIDDEN: This user's privacy settings forbid you from sending voice messages. 400 YOU_BLOCKED_USER: You blocked this user. See https://core.telegram.org/method/messages.forwardMessages for reference. Can be used by bots. MessagesGetAdminsWithInvites invokes method messages.getAdminsWithInvites#3920e6ef returning error if any. Get info about chat invites generated by admins. Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getAdminsWithInvites for reference. MessagesGetAllDrafts invokes method messages.getAllDrafts#6a3f8d65 returning error if any. Return all message drafts¹. Returns all the latest updateDraftMessage² updates related to all chats with drafts. Links: 1. https://core.telegram.org/api/drafts 2. https://core.telegram.org/constructor/updateDraftMessage See https://core.telegram.org/method/messages.getAllDrafts for reference. MessagesGetAllStickers invokes method messages.getAllStickers#b8a0a1a8 returning error if any. Get all installed stickers See https://core.telegram.org/method/messages.getAllStickers for reference. MessagesGetArchivedStickers invokes method messages.getArchivedStickers#57f17692 returning error if any. Get all archived stickers See https://core.telegram.org/method/messages.getArchivedStickers for reference. MessagesGetAttachMenuBot invokes method messages.getAttachMenuBot#77216192 returning error if any. Returns attachment menu entry for a bot mini app that can be launched from the attachment menu »¹ Links: 1. https://core.telegram.org/api/bots/attach Possible errors: 400 BOT_INVALID: This is not a valid bot. See https://core.telegram.org/method/messages.getAttachMenuBot for reference. MessagesGetAttachMenuBots invokes method messages.getAttachMenuBots#16fcc2cb returning error if any. Returns installed attachment menu bot mini apps »¹ Links: 1. https://core.telegram.org/api/bots/attach See https://core.telegram.org/method/messages.getAttachMenuBots for reference. MessagesGetAttachedStickers invokes method messages.getAttachedStickers#cc5b67cc returning error if any. Get stickers attached to a photo or video See https://core.telegram.org/method/messages.getAttachedStickers for reference. MessagesGetAvailableReactions invokes method messages.getAvailableReactions#18dea0ac returning error if any. Obtain available message reactions »¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.getAvailableReactions for reference. MessagesGetBotApp invokes method messages.getBotApp#34fdc5c3 returning error if any. Obtain information about a named Mini App¹ Links: 1. https://core.telegram.org/api/bots/webapps#named-mini-apps Possible errors: 400 BOT_APP_INVALID: The specified bot app is invalid. See https://core.telegram.org/method/messages.getBotApp for reference. MessagesGetBotCallbackAnswer invokes method messages.getBotCallbackAnswer#9342ca07 returning error if any. Press an inline callback button and get a callback answer from the bot Possible errors: 400 BOT_RESPONSE_TIMEOUT: A timeout occurred while fetching data from the bot. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 DATA_INVALID: Encrypted data invalid. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. -503 Timeout: Timeout while fetching data. See https://core.telegram.org/method/messages.getBotCallbackAnswer for reference. MessagesGetChatInviteImporters invokes method messages.getChatInviteImporters#df04dd4e returning error if any. Get info about the users that joined the chat using a specific chat invite Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 INVITE_HASH_EXPIRED: The invite link has expired. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 SEARCH_WITH_LINK_NOT_SUPPORTED: You cannot provide a search query and an invite link at the same time. See https://core.telegram.org/method/messages.getChatInviteImporters for reference. MessagesGetChats invokes method messages.getChats#49e9528f returning error if any. Returns chat basic info on their IDs. Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getChats for reference. Can be used by bots. MessagesGetCommonChats invokes method messages.getCommonChats#e40ca104 returning error if any. Get chats in common with a user Possible errors: 400 MSG_ID_INVALID: Invalid message ID provided. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/messages.getCommonChats for reference. MessagesGetCustomEmojiDocuments invokes method messages.getCustomEmojiDocuments#d9ab0f54 returning error if any. Fetch custom emoji stickers »¹. Returns a list of documents¹ with the animated custom emoji in TGS format, and a documentAttributeCustomEmoji² attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to. Links: 1. https://core.telegram.org/api/custom-emoji 2. https://core.telegram.org/constructor/document 3. https://core.telegram.org/constructor/documentAttributeCustomEmoji See https://core.telegram.org/method/messages.getCustomEmojiDocuments for reference. Can be used by bots. MessagesGetDefaultHistoryTTL invokes method messages.getDefaultHistoryTTL#658b7188 returning error if any. Gets the default value of the Time-To-Live setting, applied to all new chats. See https://core.telegram.org/method/messages.getDefaultHistoryTTL for reference. Can be used by bots. MessagesGetDhConfig invokes method messages.getDhConfig#26cf8950 returning error if any. Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. Possible errors: 400 RANDOM_LENGTH_INVALID: Random length invalid. See https://core.telegram.org/method/messages.getDhConfig for reference. MessagesGetDialogFilters invokes method messages.getDialogFilters#f19ed96d returning error if any. Get folders¹ Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/method/messages.getDialogFilters for reference. MessagesGetDialogUnreadMarks invokes method messages.getDialogUnreadMarks#22e24e22 returning error if any. Get dialogs manually marked as unread See https://core.telegram.org/method/messages.getDialogUnreadMarks for reference. MessagesGetDialogs invokes method messages.getDialogs#a0f4cb4f returning error if any. Returns the current user dialog list. Possible errors: 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 FOLDER_ID_INVALID: Invalid folder ID. 400 OFFSET_PEER_ID_INVALID: The provided offset peer is invalid. See https://core.telegram.org/method/messages.getDialogs for reference. MessagesGetDiscussionMessage invokes method messages.getDiscussionMessage#446972fd returning error if any. Get discussion message¹ from the associated discussion group² of a channel to show it on top of the comment section, without actually joining the group Links: 1. https://core.telegram.org/api/threads 2. https://core.telegram.org/api/discussion Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 TOPIC_ID_INVALID: The specified topic ID is invalid. See https://core.telegram.org/method/messages.getDiscussionMessage for reference. MessagesGetDocumentByHash invokes method messages.getDocumentByHash#b1f2061f returning error if any. Get a document by its SHA256 hash, mainly used for gifs Possible errors: 400 SHA256_HASH_INVALID: The provided SHA256 hash is invalid. See https://core.telegram.org/method/messages.getDocumentByHash for reference. Can be used by bots. MessagesGetEmojiGroups invokes method messages.getEmojiGroups#7488ce5b returning error if any. Represents a list of emoji categories¹, to be used when selecting custom emojis². Links: 1. https://core.telegram.org/api/custom-emoji#emoji-categories 2. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/method/messages.getEmojiGroups for reference. Can be used by bots. MessagesGetEmojiKeywords invokes method messages.getEmojiKeywords#35a0e062 returning error if any. Get localized emoji keywords »¹. Links: 1. https://core.telegram.org/api/custom-emoji#emoji-keywords See https://core.telegram.org/method/messages.getEmojiKeywords for reference. MessagesGetEmojiKeywordsDifference invokes method messages.getEmojiKeywordsDifference#1508b6af returning error if any. Get changed emoji keywords »¹. Links: 1. https://core.telegram.org/api/custom-emoji#emoji-keywords See https://core.telegram.org/method/messages.getEmojiKeywordsDifference for reference. MessagesGetEmojiKeywordsLanguages invokes method messages.getEmojiKeywordsLanguages#4e9963b2 returning error if any. Obtain a list of related languages that must be used when fetching emoji keyword lists »¹. Usually the method will return the passed language codes (if localized) + en + some language codes for similar languages (if applicable). Links: 1. https://core.telegram.org/api/custom-emoji#emoji-keywords See https://core.telegram.org/method/messages.getEmojiKeywordsLanguages for reference. MessagesGetEmojiProfilePhotoGroups invokes method messages.getEmojiProfilePhotoGroups#21a548f3 returning error if any. Represents a list of emoji categories¹, to be used when selecting custom emojis to set as profile picture². Links: 1. https://core.telegram.org/api/custom-emoji#emoji-categories 2. https://core.telegram.org/api/files#sticker-profile-pictures See https://core.telegram.org/method/messages.getEmojiProfilePhotoGroups for reference. Can be used by bots. MessagesGetEmojiStatusGroups invokes method messages.getEmojiStatusGroups#2ecd56cd returning error if any. Represents a list of emoji categories¹, to be used when selecting custom emojis to set as custom emoji status². Links: 1. https://core.telegram.org/api/custom-emoji#emoji-categories 2. https://core.telegram.org/api See https://core.telegram.org/method/messages.getEmojiStatusGroups for reference. Can be used by bots. MessagesGetEmojiStickers invokes method messages.getEmojiStickers#fbfca18f returning error if any. Gets the list of currently installed custom emoji stickersets¹. Links: 1. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/method/messages.getEmojiStickers for reference. MessagesGetEmojiURL invokes method messages.getEmojiURL#d5b10c26 returning error if any. Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji keywords »¹. The URL will be valid for 30 seconds after generation. Links: 1. https://core.telegram.org/api/custom-emoji#emoji-keywords See https://core.telegram.org/method/messages.getEmojiURL for reference. MessagesGetExportedChatInvite invokes method messages.getExportedChatInvite#73746f5c returning error if any. Get info about a chat invite Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 INVITE_HASH_EXPIRED: The invite link has expired. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getExportedChatInvite for reference. MessagesGetExportedChatInvites invokes method messages.getExportedChatInvites#a2b5a3f6 returning error if any. Get info about the chat invites of a specific chat Possible errors: 400 ADMIN_ID_INVALID: The specified admin ID is invalid. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getExportedChatInvites for reference. MessagesGetExtendedMedia invokes method messages.getExtendedMedia#84f80814 returning error if any. Get information about extended media See https://core.telegram.org/method/messages.getExtendedMedia for reference. MessagesGetFavedStickers invokes method messages.getFavedStickers#4f1aaa9 returning error if any. Get faved stickers See https://core.telegram.org/method/messages.getFavedStickers for reference. MessagesGetFeaturedEmojiStickers invokes method messages.getFeaturedEmojiStickers#ecf6736 returning error if any. Gets featured custom emoji stickersets. See https://core.telegram.org/method/messages.getFeaturedEmojiStickers for reference. MessagesGetFeaturedStickers invokes method messages.getFeaturedStickers#64780b14 returning error if any. Get featured stickers See https://core.telegram.org/method/messages.getFeaturedStickers for reference. MessagesGetFullChat invokes method messages.getFullChat#aeb00b34 returning error if any. Get full info about a basic group¹. Links: 1. https://core.telegram.org/api/channel#basic-groups Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getFullChat for reference. Can be used by bots. MessagesGetGameHighScores invokes method messages.getGameHighScores#e822649d returning error if any. Get highscores of a game Possible errors: 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_BOT_REQUIRED: This method can only be called by a bot. See https://core.telegram.org/method/messages.getGameHighScores for reference. Can be used by bots. MessagesGetHistory invokes method messages.getHistory#4423e6c5 returning error if any. Returns the conversation history with one interlocutor / within a chat Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getHistory for reference. MessagesGetInlineBotResults invokes method messages.getInlineBotResults#514e999d returning error if any. Query an inline bot Possible errors: 400 BOT_INLINE_DISABLED: This bot can't be used in inline mode. 400 BOT_INVALID: This is not a valid bot. 400 BOT_RESPONSE_TIMEOUT: A timeout occurred while fetching data from the bot. 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. -503 Timeout: Timeout while fetching data. See https://core.telegram.org/method/messages.getInlineBotResults for reference. MessagesGetInlineGameHighScores invokes method messages.getInlineGameHighScores#f635e1b returning error if any. Get highscores of a game sent using an inline bot Possible errors: 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 USER_BOT_REQUIRED: This method can only be called by a bot. See https://core.telegram.org/method/messages.getInlineGameHighScores for reference. Can be used by bots. MessagesGetMaskStickers invokes method messages.getMaskStickers#640f82b8 returning error if any. Get installed mask stickers See https://core.telegram.org/method/messages.getMaskStickers for reference. MessagesGetMessageEditData invokes method messages.getMessageEditData#fda68d36 returning error if any. Find out if a media message's caption can be edited Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 403 MESSAGE_AUTHOR_REQUIRED: Message author required. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getMessageEditData for reference. MessagesGetMessageReactionsList invokes method messages.getMessageReactionsList#461b3f48 returning error if any. Get message reaction¹ list, along with the sender of each reaction. Links: 1. https://core.telegram.org/api/reactions Possible errors: 403 BROADCAST_FORBIDDEN: Channel poll voters and reactions cannot be fetched to prevent deanonymization. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/messages.getMessageReactionsList for reference. MessagesGetMessageReadParticipants invokes method messages.getMessageReadParticipants#31c1c44f returning error if any. Get which users read a specific message: only available for groups and supergroups with less than chat_read_mark_size_threshold members¹, read receipts will be stored for chat_read_mark_expire_period seconds after the message was sent², see client configuration for more info »³. Links: 1. https://core.telegram.org/api/config#chat-read-mark-size-threshold 2. https://core.telegram.org/api/config#chat-read-mark-expire-period 3. https://core.telegram.org/api/config#client-configuration Possible errors: 400 CHAT_TOO_BIG: This method is not available for groups with more than chat_read_mark_size_threshold members, see client configuration ». 400 MSG_ID_INVALID: Invalid message ID provided. 400 MSG_TOO_OLD: chat_read_mark_expire_period seconds have passed since the message was sent, read receipts were deleted. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getMessageReadParticipants for reference. MessagesGetMessages invokes method messages.getMessages#63c66506 returning error if any. Returns the list of messages by their IDs. See https://core.telegram.org/method/messages.getMessages for reference. Can be used by bots. MessagesGetMessagesReactions invokes method messages.getMessagesReactions#8bba90e6 returning error if any. Get message reactions »¹ Links: 1. https://core.telegram.org/api/reactions Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. See https://core.telegram.org/method/messages.getMessagesReactions for reference. MessagesGetMessagesViews invokes method messages.getMessagesViews#5784d3e1 returning error if any. Get and increase the view counter of a message sent or forwarded from a channel¹ Links: 1. https://core.telegram.org/api/channel Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getMessagesViews for reference. MessagesGetOldFeaturedStickers invokes method messages.getOldFeaturedStickers#7ed094a1 returning error if any. Method for fetching previously featured stickers See https://core.telegram.org/method/messages.getOldFeaturedStickers for reference. MessagesGetOnlines invokes method messages.getOnlines#6e2be050 returning error if any. Get count of online users in a chat Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getOnlines for reference. MessagesGetPeerDialogs invokes method messages.getPeerDialogs#e470bcfd returning error if any. Get dialog info of specified peers Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getPeerDialogs for reference. MessagesGetPeerSettings invokes method messages.getPeerSettings#efd9a6a2 returning error if any. Get peer settings Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getPeerSettings for reference. MessagesGetPinnedDialogs invokes method messages.getPinnedDialogs#d6b94df2 returning error if any. Get pinned dialogs Possible errors: 400 FOLDER_ID_INVALID: Invalid folder ID. See https://core.telegram.org/method/messages.getPinnedDialogs for reference. MessagesGetPollResults invokes method messages.getPollResults#73bb643b returning error if any. Get poll results Possible errors: 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getPollResults for reference. MessagesGetPollVotes invokes method messages.getPollVotes#b86e380e returning error if any. Get poll results for non-anonymous polls Possible errors: 403 BROADCAST_FORBIDDEN: Channel poll voters and reactions cannot be fetched to prevent deanonymization. 400 MSG_ID_INVALID: Invalid message ID provided. 403 POLL_VOTE_REQUIRED: Cast a vote in the poll before calling this method. See https://core.telegram.org/method/messages.getPollVotes for reference. MessagesGetRecentLocations invokes method messages.getRecentLocations#702a40e0 returning error if any. Get live location history of a certain user See https://core.telegram.org/method/messages.getRecentLocations for reference. MessagesGetRecentReactions invokes method messages.getRecentReactions#39461db2 returning error if any. Get recently used message reactions¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.getRecentReactions for reference. MessagesGetRecentStickers invokes method messages.getRecentStickers#9da9403b returning error if any. Get recent stickers See https://core.telegram.org/method/messages.getRecentStickers for reference. MessagesGetReplies invokes method messages.getReplies#22ddd30c returning error if any. Get messages in a reply thread Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 TOPIC_ID_INVALID: The specified topic ID is invalid. See https://core.telegram.org/method/messages.getReplies for reference. MessagesGetSavedGifs invokes method messages.getSavedGifs#5cf09635 returning error if any. Get saved GIFs See https://core.telegram.org/method/messages.getSavedGifs for reference. MessagesGetScheduledHistory invokes method messages.getScheduledHistory#f516760b returning error if any. Get scheduled messages Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getScheduledHistory for reference. MessagesGetScheduledMessages invokes method messages.getScheduledMessages#bdbb0464 returning error if any. Get scheduled messages Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getScheduledMessages for reference. MessagesGetSearchCounters invokes method messages.getSearchCounters#ae7cc1 returning error if any. Get the number of results that would be found by a messages.search¹ call with the same parameters Links: 1. https://core.telegram.org/method/messages.search Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getSearchCounters for reference. MessagesGetSearchResultsCalendar invokes method messages.getSearchResultsCalendar#49f0bde9 returning error if any. Returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial results for the last returned day. Possible errors: 400 FILTER_NOT_SUPPORTED: The specified filter cannot be used in this context. See https://core.telegram.org/method/messages.getSearchResultsCalendar for reference. MessagesGetSearchResultsPositions invokes method messages.getSearchResultsPositions#6e9583a3 returning error if any. Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). See https://core.telegram.org/method/messages.getSearchResultsPositions for reference. MessagesGetSplitRanges invokes method messages.getSplitRanges#1cff7e08 returning error if any. Get message ranges for saving the user's chat history See https://core.telegram.org/method/messages.getSplitRanges for reference. MessagesGetStickerSet invokes method messages.getStickerSet#c8a0ec74 returning error if any. Get info about a stickerset Possible errors: 400 EMOTICON_STICKERPACK_MISSING: inputStickerSetDice.emoji cannot be empty. 406 STICKERSET_INVALID: The provided sticker set is invalid. See https://core.telegram.org/method/messages.getStickerSet for reference. Can be used by bots. MessagesGetStickers invokes method messages.getStickers#d5a5d3a1 returning error if any. Get stickers by emoji Possible errors: 400 EMOTICON_EMPTY: The emoji is empty. See https://core.telegram.org/method/messages.getStickers for reference. MessagesGetSuggestedDialogFilters invokes method messages.getSuggestedDialogFilters#a29cd42c returning error if any. Get suggested folders¹ Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/method/messages.getSuggestedDialogFilters for reference. MessagesGetTopReactions invokes method messages.getTopReactions#bb8125ba returning error if any. Got popular message reactions¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.getTopReactions for reference. MessagesGetUnreadMentions invokes method messages.getUnreadMentions#f107e790 returning error if any. Get unread messages where we were mentioned Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.getUnreadMentions for reference. MessagesGetUnreadReactions invokes method messages.getUnreadReactions#3223495b returning error if any. Get unread reactions to messages you sent See https://core.telegram.org/method/messages.getUnreadReactions for reference. MessagesGetWebPage invokes method messages.getWebPage#8d9692a3 returning error if any. Get instant view¹ page Links: 1. https://instantview.telegram.org Possible errors: 400 WC_CONVERT_URL_INVALID: WC convert URL invalid. See https://core.telegram.org/method/messages.getWebPage for reference. MessagesGetWebPagePreview invokes method messages.getWebPagePreview#8b68b0cc returning error if any. Get preview of webpage Possible errors: 400 ENTITY_BOUNDS_INVALID: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. 400 MESSAGE_EMPTY: The provided message is empty. See https://core.telegram.org/method/messages.getWebPagePreview for reference. MessagesHideAllChatJoinRequests invokes method messages.hideAllChatJoinRequests#e085f4ea returning error if any. Dismiss or approve all join requests¹ related to a specific chat or channel. Links: 1. https://core.telegram.org/api/invites#join-requests Possible errors: 400 CHANNELS_TOO_MUCH: You have joined too many channels/supergroups. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 HIDE_REQUESTER_MISSING: The join request was missing or was already handled. 400 INVITE_HASH_EXPIRED: The invite link has expired. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_CHANNELS_TOO_MUCH: One of the users you tried to add is already in too many channels/supergroups. See https://core.telegram.org/method/messages.hideAllChatJoinRequests for reference. MessagesHideChatJoinRequest invokes method messages.hideChatJoinRequest#7fe7e815 returning error if any. Dismiss or approve a chat join request¹ related to a specific chat or channel. Links: 1. https://core.telegram.org/api/invites#join-requests Possible errors: 400 CHANNELS_TOO_MUCH: You have joined too many channels/supergroups. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 HIDE_REQUESTER_MISSING: The join request was missing or was already handled. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_ALREADY_PARTICIPANT: The user is already in the group. 403 USER_CHANNELS_TOO_MUCH: One of the users you tried to add is already in too many channels/supergroups. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/messages.hideChatJoinRequest for reference. Can be used by bots. MessagesHidePeerSettingsBar invokes method messages.hidePeerSettingsBar#4facb138 returning error if any. Should be called after the user hides the report spam/add as contact bar¹ of a new chat, effectively prevents the user from executing the actions specified in the action bar »². Links: 1. https://core.telegram.org/api/action-bar 2. https://core.telegram.org/api/action-bar See https://core.telegram.org/method/messages.hidePeerSettingsBar for reference. MessagesImportChatInvite invokes method messages.importChatInvite#6c50051c returning error if any. Import a chat invite and join a private chat/supergroup/channel Possible errors: 400 CHANNELS_TOO_MUCH: You have joined too many channels/supergroups. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_INVALID: Invalid chat. 400 INVITE_HASH_EMPTY: The invite hash is empty. 406 INVITE_HASH_EXPIRED: The invite link has expired. 400 INVITE_HASH_INVALID: The invite hash is invalid. 400 INVITE_REQUEST_SENT: You have successfully requested to join this chat or channel. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USERS_TOO_MUCH: The maximum number of users has been exceeded (to create a chat, for example). 400 USER_ALREADY_PARTICIPANT: The user is already in the group. 400 USER_CHANNELS_TOO_MUCH: One of the users you tried to add is already in too many channels/supergroups. See https://core.telegram.org/method/messages.importChatInvite for reference. MessagesInitHistoryImport invokes method messages.initHistoryImport#34090c3b returning error if any. Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats »¹. Links: 1. https://core.telegram.org/api/import Possible errors: 400 IMPORT_FILE_INVALID: The specified chat export file is invalid. 400 IMPORT_FORMAT_UNRECOGNIZED: The specified chat export file was exported from an unsupported chat app. 406 PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN: Import for this chat is already in progress, wait %d minutes before starting a new one. See https://core.telegram.org/method/messages.initHistoryImport for reference. MessagesInstallStickerSet invokes method messages.installStickerSet#c78fe460 returning error if any. Install a stickerset Possible errors: 406 STICKERSET_INVALID: The provided sticker set is invalid. See https://core.telegram.org/method/messages.installStickerSet for reference. MessagesMarkDialogUnread invokes method messages.markDialogUnread#c286d98f returning error if any. Manually mark dialog as unread Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.markDialogUnread for reference. MessagesMigrateChat invokes method messages.migrateChat#a2875319 returning error if any. Turn a basic group into a supergroup¹ Links: 1. https://core.telegram.org/api/channel#migration Possible errors: 400 CHANNELS_TOO_MUCH: You have joined too many channels/supergroups. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 500 CHAT_INVALID: Invalid chat. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.migrateChat for reference. MessagesProlongWebView invokes method messages.prolongWebView#b0d81a83 returning error if any. Indicate to the server (from the user side) that the user is still using a web app. If the method returns a QUERY_ID_INVALID error, the webview must be closed. See https://core.telegram.org/method/messages.prolongWebView for reference. MessagesRateTranscribedAudio invokes method messages.rateTranscribedAudio#7f1d072f returning error if any. Rate transcribed voice message¹ Links: 1. https://core.telegram.org/api/transcribe See https://core.telegram.org/method/messages.rateTranscribedAudio for reference. MessagesReadDiscussion invokes method messages.readDiscussion#f731a9f4 returning error if any. Mark a thread¹ as read Links: 1. https://core.telegram.org/api/threads Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.readDiscussion for reference. MessagesReadEncryptedHistory invokes method messages.readEncryptedHistory#7f4b690a returning error if any. Marks message history within a secret chat as read. Possible errors: 400 MSG_WAIT_FAILED: A waiting call returned an error. See https://core.telegram.org/method/messages.readEncryptedHistory for reference. MessagesReadFeaturedStickers invokes method messages.readFeaturedStickers#5b118126 returning error if any. Mark new featured stickers as read See https://core.telegram.org/method/messages.readFeaturedStickers for reference. MessagesReadHistory invokes method messages.readHistory#e306d3a returning error if any. Marks message history as read. Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.readHistory for reference. MessagesReadMentions invokes method messages.readMentions#36e5bf4d returning error if any. Mark mentions as read Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.readMentions for reference. MessagesReadMessageContents invokes method messages.readMessageContents#36a73f77 returning error if any. Notifies the sender about the recipient having listened a voice message or watched a video. See https://core.telegram.org/method/messages.readMessageContents for reference. MessagesReadReactions invokes method messages.readReactions#54aa7f8e returning error if any. Mark message reactions »¹ as read Links: 1. https://core.telegram.org/api/reactions Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.readReactions for reference. MessagesReceivedMessages invokes method messages.receivedMessages#5a954c0 returning error if any. Confirms receipt of messages by a client, cancels PUSH-notification sending. See https://core.telegram.org/method/messages.receivedMessages for reference. MessagesReceivedQueue invokes method messages.receivedQueue#55a5bb66 returning error if any. Confirms receipt of messages in a secret chat by client, cancels push notifications. The method returns a list of random_ids of messages for which push notifications were cancelled. Possible errors: 400 MAX_QTS_INVALID: The specified max_qts is invalid. 500 MSG_WAIT_FAILED: A waiting call returned an error. See https://core.telegram.org/method/messages.receivedQueue for reference. MessagesReorderPinnedDialogs invokes method messages.reorderPinnedDialogs#3b1adf37 returning error if any. Reorder pinned dialogs Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.reorderPinnedDialogs for reference. MessagesReorderStickerSets invokes method messages.reorderStickerSets#78337739 returning error if any. Reorder installed stickersets See https://core.telegram.org/method/messages.reorderStickerSets for reference. MessagesReport invokes method messages.report#8953ab4e returning error if any. Report a message in a chat for violation of telegram's Terms of Service Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.report for reference. MessagesReportEncryptedSpam invokes method messages.reportEncryptedSpam#4b0c8c0f returning error if any. Report a secret chat for spam Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. See https://core.telegram.org/method/messages.reportEncryptedSpam for reference. MessagesReportReaction invokes method messages.reportReaction#3f64c076 returning error if any. Report a message reaction¹ Links: 1. https://core.telegram.org/api/reactions Possible errors: 400 MSG_ID_INVALID: Invalid message ID provided. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/messages.reportReaction for reference. MessagesReportSpam invokes method messages.reportSpam#cf1592db returning error if any. Report a new incoming chat for spam, if the peer settings¹ of the chat allow us to do that Links: 1. https://core.telegram.org/constructor/peerSettings Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.reportSpam for reference. MessagesRequestAppWebView invokes method messages.requestAppWebView#8c5a3b3c returning error if any. Open a bot mini app¹ from a named Mini App deep link², sending over user information after user confirmation. After calling this method, until the user closes the webview, messages prolongWebView¹ must be called every 60 seconds. Links: 1. https://core.telegram.org/bots/webapps 2. https://core.telegram.org/api/links#named-mini-app-links 3. https://core.telegram.org/method/messages.prolongWebView See https://core.telegram.org/method/messages.requestAppWebView for reference. MessagesRequestEncryption invokes method messages.requestEncryption#f64daf43 returning error if any. Sends a request to start a secret chat to the user. Possible errors: 400 DH_G_A_INVALID: g_a invalid. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/messages.requestEncryption for reference. MessagesRequestSimpleWebView invokes method messages.requestSimpleWebView#1a46500a returning error if any. Open a bot mini app¹. Links: 1. https://core.telegram.org/api/bots/webapps See https://core.telegram.org/method/messages.requestSimpleWebView for reference. MessagesRequestURLAuth invokes method messages.requestUrlAuth#198fb446 returning error if any. Get more info about a Seamless Telegram Login authorization request, for more info click here »¹ Links: 1. https://core.telegram.org/api/url-authorization See https://core.telegram.org/method/messages.requestUrlAuth for reference. MessagesRequestWebView invokes method messages.requestWebView#269dc2c1 returning error if any. Open a bot mini app¹, sending over user information after user confirmation. After calling this method, until the user closes the webview, messages prolongWebView¹ must be called every 60 seconds. Links: 1. https://core.telegram.org/bots/webapps 2. https://core.telegram.org/method/messages.prolongWebView Possible errors: 400 BOT_INVALID: This is not a valid bot. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.requestWebView for reference. MessagesSaveDefaultSendAs invokes method messages.saveDefaultSendAs#ccfddf96 returning error if any. Change the default peer that should be used when sending messages to a specific group Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. 400 SEND_AS_PEER_INVALID: You can't send messages as the specified peer. See https://core.telegram.org/method/messages.saveDefaultSendAs for reference. MessagesSaveDraft invokes method messages.saveDraft#7ff3b806 returning error if any. Save a message draft¹ associated to a chat. Links: 1. https://core.telegram.org/api/drafts Possible errors: 400 ENTITY_BOUNDS_INVALID: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.saveDraft for reference. MessagesSaveGif invokes method messages.saveGif#327a30cb returning error if any. Add GIF to saved gifs list Possible errors: 400 GIF_ID_INVALID: The provided GIF ID is invalid. See https://core.telegram.org/method/messages.saveGif for reference. MessagesSaveRecentSticker invokes method messages.saveRecentSticker#392718f8 returning error if any. Add/remove sticker from recent stickers list Possible errors: 400 STICKER_ID_INVALID: The provided sticker ID is invalid. See https://core.telegram.org/method/messages.saveRecentSticker for reference. MessagesSearch invokes method messages.search#a0fda762 returning error if any. Search for messages. Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 FROM_PEER_INVALID: The specified from_id is invalid. 400 INPUT_FILTER_INVALID: The specified filter is invalid. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 PEER_ID_NOT_SUPPORTED: The provided peer ID is not supported. 400 SEARCH_QUERY_EMPTY: The search query is empty. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/messages.search for reference. MessagesSearchCustomEmoji invokes method messages.searchCustomEmoji#2c11c0d7 returning error if any. Look for custom emojis¹ associated to a UTF8 emoji Links: 1. https://core.telegram.org/api/custom-emoji Possible errors: 400 EMOTICON_EMPTY: The emoji is empty. See https://core.telegram.org/method/messages.searchCustomEmoji for reference. Can be used by bots. MessagesSearchEmojiStickerSets invokes method messages.searchEmojiStickerSets#92b4494c returning error if any. Search for custom emoji stickersets »¹ Links: 1. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/method/messages.searchEmojiStickerSets for reference. MessagesSearchGlobal invokes method messages.searchGlobal#4bc6589a returning error if any. Search for messages and peers globally Possible errors: 400 FOLDER_ID_INVALID: Invalid folder ID. 400 SEARCH_QUERY_EMPTY: The search query is empty. See https://core.telegram.org/method/messages.searchGlobal for reference. MessagesSearchSentMedia invokes method messages.searchSentMedia#107e31a0 returning error if any. View and search recently sent media. This method does not support pagination. Possible errors: 400 FILTER_NOT_SUPPORTED: The specified filter cannot be used in this context. See https://core.telegram.org/method/messages.searchSentMedia for reference. MessagesSearchStickerSets invokes method messages.searchStickerSets#35705b8a returning error if any. Search for stickersets See https://core.telegram.org/method/messages.searchStickerSets for reference. MessagesSendBotRequestedPeer invokes method messages.sendBotRequestedPeer#91b2d060 returning error if any. Send a chosen peer, as requested by a keyboardButtonRequestPeer¹ button. Links: 1. https://core.telegram.org/constructor/keyboardButtonRequestPeer See https://core.telegram.org/method/messages.sendBotRequestedPeer for reference. Can be used by bots. MessagesSendEncrypted invokes method messages.sendEncrypted#44fa7a15 returning error if any. Sends a text message to a secret chat. Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 DATA_INVALID: Encrypted data invalid. 400 DATA_TOO_LONG: Data too long. 400 ENCRYPTION_DECLINED: The secret chat was declined. 500 MSG_WAIT_FAILED: A waiting call returned an error. 403 USER_IS_BLOCKED: You were blocked by this user. See https://core.telegram.org/method/messages.sendEncrypted for reference. MessagesSendEncryptedFile invokes method messages.sendEncryptedFile#5559481d returning error if any. Sends a message with a file attachment to a secret chat Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 DATA_TOO_LONG: Data too long. 400 ENCRYPTION_DECLINED: The secret chat was declined. 400 FILE_EMTPY: An empty file was provided. 400 MD5_CHECKSUM_INVALID: The MD5 checksums do not match. 400 MSG_WAIT_FAILED: A waiting call returned an error. See https://core.telegram.org/method/messages.sendEncryptedFile for reference. MessagesSendEncryptedService invokes method messages.sendEncryptedService#32d439a4 returning error if any. Sends a service message to a secret chat. Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 DATA_INVALID: Encrypted data invalid. 400 ENCRYPTION_DECLINED: The secret chat was declined. 400 ENCRYPTION_ID_INVALID: The provided secret chat ID is invalid. 500 MSG_WAIT_FAILED: A waiting call returned an error. 403 USER_DELETED: You can't send this secret message because the other participant deleted their account. 403 USER_IS_BLOCKED: You were blocked by this user. See https://core.telegram.org/method/messages.sendEncryptedService for reference. MessagesSendInlineBotResult invokes method messages.sendInlineBotResult#f7bc68ba returning error if any. Send a result obtained using messages.getInlineBotResults¹. Links: 1. https://core.telegram.org/method/messages.getInlineBotResults Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_GUEST_SEND_FORBIDDEN: You join the discussion group before commenting, see here » for more info. 400 CHAT_RESTRICTED: You can't send messages in this chat, you were restricted. 403 CHAT_SEND_AUDIOS_FORBIDDEN: You can't send audio messages in this chat. 403 CHAT_SEND_GAME_FORBIDDEN: You can't send a game to this chat. 403 CHAT_SEND_GIFS_FORBIDDEN: You can't send gifs in this chat. 403 CHAT_SEND_INLINE_FORBIDDEN: You can't send inline messages in this group. 403 CHAT_SEND_MEDIA_FORBIDDEN: You can't send media in this chat. 403 CHAT_SEND_PHOTOS_FORBIDDEN: You can't send photos in this chat. 403 CHAT_SEND_STICKERS_FORBIDDEN: You can't send stickers in this chat. 403 CHAT_SEND_VOICES_FORBIDDEN: You can't send voice recordings in this chat. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 ENTITY_BOUNDS_INVALID: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. 400 INLINE_RESULT_EXPIRED: The inline query expired. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MEDIA_EMPTY: The provided media object is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 QUERY_ID_EMPTY: The query ID is empty. 500 RANDOM_ID_DUPLICATE: You provided a random ID that was already used. 400 RESULT_ID_EMPTY: Result ID empty. 400 RESULT_ID_INVALID: One of the specified result IDs is invalid. 400 SCHEDULE_DATE_TOO_LATE: You can't schedule a message this far in the future. 400 SCHEDULE_TOO_MUCH: There are too many scheduled messages. 500 SEND_MEDIA_INVALID: 420 SLOWMODE_WAIT_%d: Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat. 400 TOPIC_DELETED: The specified topic was deleted. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. 400 VOICE_MESSAGES_FORBIDDEN: This user's privacy settings forbid you from sending voice messages. 400 WEBPAGE_CURL_FAILED: Failure while fetching the webpage with cURL. 400 WEBPAGE_MEDIA_EMPTY: Webpage media empty. 400 YOU_BLOCKED_USER: You blocked this user. See https://core.telegram.org/method/messages.sendInlineBotResult for reference. MessagesSendMedia invokes method messages.sendMedia#72ccc23d returning error if any. Send a media Possible errors: 400 BOT_PAYMENTS_DISABLED: Please enable bot payments in botfather before calling this method. 400 BROADCAST_PUBLIC_VOTERS_FORBIDDEN: You can't forward polls with public voters. 400 BUTTON_DATA_INVALID: The data of one or more of the buttons you provided is invalid. 400 BUTTON_TYPE_INVALID: The type of one or more of the buttons you provided is invalid. 400 BUTTON_URL_INVALID: Button URL invalid. 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_FORWARDS_RESTRICTED: You can't forward messages from a protected chat. 403 CHAT_GUEST_SEND_FORBIDDEN: You join the discussion group before commenting, see here » for more info. 400 CHAT_RESTRICTED: You can't send messages in this chat, you were restricted. 403 CHAT_SEND_AUDIOS_FORBIDDEN: You can't send audio messages in this chat. 403 CHAT_SEND_DOCS_FORBIDDEN: You can't send documents in this chat. 403 CHAT_SEND_GIFS_FORBIDDEN: You can't send gifs in this chat. 403 CHAT_SEND_MEDIA_FORBIDDEN: You can't send media in this chat. 403 CHAT_SEND_PHOTOS_FORBIDDEN: You can't send photos in this chat. 403 CHAT_SEND_PLAIN_FORBIDDEN: You can't send non-media (text) messages in this chat. 403 CHAT_SEND_POLL_FORBIDDEN: You can't send polls in this chat. 403 CHAT_SEND_STICKERS_FORBIDDEN: You can't send stickers in this chat. 403 CHAT_SEND_VIDEOS_FORBIDDEN: You can't send videos in this chat. 403 CHAT_SEND_VOICES_FORBIDDEN: You can't send voice recordings in this chat. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 CURRENCY_TOTAL_AMOUNT_INVALID: The total amount of all prices is invalid. 400 DOCUMENT_INVALID: The specified document is invalid. 400 EMOTICON_INVALID: The specified emoji is invalid. 400 ENTITY_BOUNDS_INVALID: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. 400 EXTERNAL_URL_INVALID: External URL invalid. 400 FILE_PARTS_INVALID: The number of file parts is invalid. 400 FILE_PART_LENGTH_INVALID: The length of a file part is invalid. 400 FILE_REFERENCE_EMPTY: An empty file reference was specified. 400 FILE_REFERENCE_EXPIRED: File reference expired, it must be refetched as described in the documentation. 400 GAME_BOT_INVALID: Bots can't send another bot's game. 400 IMAGE_PROCESS_FAILED: Failure while processing image. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MD5_CHECKSUM_INVALID: The MD5 checksums do not match. 400 MEDIA_CAPTION_TOO_LONG: The caption is too long. 400 MEDIA_EMPTY: The provided media object is invalid. 400 MEDIA_INVALID: Media invalid. 400 MESSAGE_EMPTY: The provided message is empty. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PAYMENT_PROVIDER_INVALID: The specified payment provider is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 PHOTO_EXT_INVALID: The extension of the photo is invalid. 400 PHOTO_INVALID_DIMENSIONS: The photo dimensions are invalid. 400 PHOTO_SAVE_FILE_INVALID: Internal issues, try again later. 400 POLL_ANSWERS_INVALID: Invalid poll answers were provided. 400 POLL_ANSWER_INVALID: One of the poll answers is not acceptable. 400 POLL_OPTION_DUPLICATE: Duplicate poll options provided. 400 POLL_OPTION_INVALID: Invalid poll option provided. 400 POLL_QUESTION_INVALID: One of the poll questions is not acceptable. 403 PREMIUM_ACCOUNT_REQUIRED: A premium account is required to execute this action. 400 QUIZ_CORRECT_ANSWERS_EMPTY: No correct quiz answer was specified. 400 QUIZ_CORRECT_ANSWERS_TOO_MUCH: You specified too many correct answers in a quiz, quizzes can only have one right answer! 400 QUIZ_CORRECT_ANSWER_INVALID: An invalid value was provided to the correct_answers field. 400 QUIZ_MULTIPLE_INVALID: Quizzes can't have the multiple_choice flag set! 500 RANDOM_ID_DUPLICATE: You provided a random ID that was already used. 400 REPLY_MARKUP_BUY_EMPTY: Reply markup for buy button empty. 400 REPLY_MARKUP_INVALID: The provided reply markup is invalid. 400 REPLY_MARKUP_TOO_LONG: The specified reply_markup is too long. 400 SCHEDULE_BOT_NOT_ALLOWED: Bots cannot schedule messages. 400 SCHEDULE_DATE_TOO_LATE: You can't schedule a message this far in the future. 400 SCHEDULE_TOO_MUCH: There are too many scheduled messages. 400 SEND_AS_PEER_INVALID: You can't send messages as the specified peer. 420 SLOWMODE_WAIT_%d: Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat. 406 TOPIC_CLOSED: This topic was closed, you can't send messages to it anymore. 406 TOPIC_DELETED: The specified topic was deleted. 400 TTL_MEDIA_INVALID: Invalid media Time To Live was provided. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. 403 USER_IS_BLOCKED: You were blocked by this user. 400 USER_IS_BOT: Bots can't send messages to other bots. 400 VIDEO_CONTENT_TYPE_INVALID: The video's content type is invalid. 400 VOICE_MESSAGES_FORBIDDEN: This user's privacy settings forbid you from sending voice messages. 400 WEBDOCUMENT_MIME_INVALID: Invalid webdocument mime type provided. 400 WEBPAGE_CURL_FAILED: Failure while fetching the webpage with cURL. 400 WEBPAGE_MEDIA_EMPTY: Webpage media empty. 400 WEBPAGE_NOT_FOUND: A preview for the specified webpage url could not be generated. 400 WEBPAGE_URL_INVALID: The specified webpage url is invalid. 400 YOU_BLOCKED_USER: You blocked this user. See https://core.telegram.org/method/messages.sendMedia for reference. Can be used by bots. MessagesSendMessage invokes method messages.sendMessage#280d096f returning error if any. Sends a message to a chat Possible errors: 400 ADMIN_RIGHTS_EMPTY: 400 BOT_DOMAIN_INVALID: Bot domain invalid. 400 BOT_INVALID: This is not a valid bot. 400 BUTTON_DATA_INVALID: The data of one or more of the buttons you provided is invalid. 400 BUTTON_TYPE_INVALID: The type of one or more of the buttons you provided is invalid. 400 BUTTON_URL_INVALID: Button URL invalid. 400 BUTTON_USER_PRIVACY_RESTRICTED: The privacy setting of the user specified in a inputKeyboardButtonUserProfile button do not allow creating such a button. 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_GUEST_SEND_FORBIDDEN: You join the discussion group before commenting, see here » for more info. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_RESTRICTED: You can't send messages in this chat, you were restricted. 403 CHAT_SEND_PLAIN_FORBIDDEN: You can't send non-media (text) messages in this chat. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 DOCUMENT_INVALID: The specified document is invalid. 400 ENCRYPTION_DECLINED: The secret chat was declined. 400 ENTITIES_TOO_LONG: You provided too many styled message entities. 400 ENTITY_BOUNDS_INVALID: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. 400 ENTITY_MENTION_USER_INVALID: You mentioned an invalid user. 400 FROM_MESSAGE_BOT_DISABLED: Bots can't use fromMessage min constructors. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MESSAGE_EMPTY: The provided message is empty. 400 MESSAGE_TOO_LONG: The provided message is too long. 400 MSG_ID_INVALID: Invalid message ID provided. 500 MSG_WAIT_FAILED: A waiting call returned an error. 406 PAYMENT_UNSUPPORTED: A detailed description of the error will be received separately as described here ». 400 PEER_ID_INVALID: The provided peer id is invalid. 400 PINNED_DIALOGS_TOO_MUCH: Too many pinned dialogs. 400 POLL_OPTION_INVALID: Invalid poll option provided. 500 RANDOM_ID_DUPLICATE: You provided a random ID that was already used. 400 REPLY_MARKUP_INVALID: The provided reply markup is invalid. 400 REPLY_MARKUP_TOO_LONG: The specified reply_markup is too long. 400 REPLY_TO_INVALID: The specified reply_to field is invalid. 400 REPLY_TO_USER_INVALID: The replied-to user is invalid. 400 SCHEDULE_BOT_NOT_ALLOWED: Bots cannot schedule messages. 400 SCHEDULE_DATE_TOO_LATE: You can't schedule a message this far in the future. 400 SCHEDULE_STATUS_PRIVATE: Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings. 400 SCHEDULE_TOO_MUCH: There are too many scheduled messages. 400 SEND_AS_PEER_INVALID: You can't send messages as the specified peer. 420 SLOWMODE_WAIT_%d: Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat. 400 STORY_ID_INVALID: The specified story ID is invalid. 406 TOPIC_CLOSED: This topic was closed, you can't send messages to it anymore. 406 TOPIC_DELETED: The specified topic was deleted. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. 403 USER_IS_BLOCKED: You were blocked by this user. 400 USER_IS_BOT: Bots can't send messages to other bots. 400 WC_CONVERT_URL_INVALID: WC convert URL invalid. 400 YOU_BLOCKED_USER: You blocked this user. See https://core.telegram.org/method/messages.sendMessage for reference. Can be used by bots. MessagesSendMultiMedia invokes method messages.sendMultiMedia#456e8987 returning error if any. Send an album or grouped media¹ Links: 1. https://core.telegram.org/api/files#albums-grouped-media Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_FORWARDS_RESTRICTED: You can't forward messages from a protected chat. 403 CHAT_SEND_MEDIA_FORBIDDEN: You can't send media in this chat. 403 CHAT_SEND_PHOTOS_FORBIDDEN: You can't send photos in this chat. 403 CHAT_SEND_VIDEOS_FORBIDDEN: You can't send videos in this chat. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 ENTITY_BOUNDS_INVALID: A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. 400 MEDIA_CAPTION_TOO_LONG: The caption is too long. 400 MEDIA_EMPTY: The provided media object is invalid. 400 MEDIA_INVALID: Media invalid. 400 MULTI_MEDIA_TOO_LONG: Too many media files for album. 400 PEER_ID_INVALID: The provided peer id is invalid. 500 RANDOM_ID_DUPLICATE: You provided a random ID that was already used. 400 RANDOM_ID_EMPTY: Random ID empty. 400 SCHEDULE_DATE_TOO_LATE: You can't schedule a message this far in the future. 400 SCHEDULE_TOO_MUCH: There are too many scheduled messages. 400 SEND_AS_PEER_INVALID: You can't send messages as the specified peer. 420 SLOWMODE_WAIT_%d: Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat. 400 TOPIC_CLOSED: This topic was closed, you can't send messages to it anymore. 400 TOPIC_DELETED: The specified topic was deleted. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. See https://core.telegram.org/method/messages.sendMultiMedia for reference. Can be used by bots. MessagesSendReaction invokes method messages.sendReaction#d30d78d4 returning error if any. React to message. Starting from layer 159, the reaction will be sent from the peer specified using messages.saveDefaultSendAs¹. Links: 1. https://core.telegram.org/method/messages.saveDefaultSendAs Possible errors: 403 ANONYMOUS_REACTIONS_DISABLED: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 CUSTOM_REACTIONS_TOO_MANY: Too many custom reactions were specified. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 MESSAGE_NOT_MODIFIED: The provided message data is identical to the previous message data, the message wasn't modified. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 403 PREMIUM_ACCOUNT_REQUIRED: A premium account is required to execute this action. 400 REACTIONS_TOO_MANY: The message already has exactly reactions_uniq_max reaction emojis, you can't react with a new emoji, see the docs for more info ». 400 REACTION_EMPTY: Empty reaction provided. 400 REACTION_INVALID: The specified reaction is invalid. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. See https://core.telegram.org/method/messages.sendReaction for reference. MessagesSendScheduledMessages invokes method messages.sendScheduledMessages#bd38850a returning error if any. Send scheduled messages right away Possible errors: 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.sendScheduledMessages for reference. MessagesSendScreenshotNotification invokes method messages.sendScreenshotNotification#a1405817 returning error if any. Notify the other user in a private chat that a screenshot of the chat was taken Possible errors: 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 STORY_ID_INVALID: The specified story ID is invalid. 400 YOU_BLOCKED_USER: You blocked this user. See https://core.telegram.org/method/messages.sendScreenshotNotification for reference. MessagesSendVote invokes method messages.sendVote#10ea6184 returning error if any. Vote in a poll¹ Links: 1. https://core.telegram.org/constructor/poll Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 MESSAGE_POLL_CLOSED: Poll closed. 400 MSG_ID_INVALID: Invalid message ID provided. 400 OPTIONS_TOO_MUCH: Too many options provided. 400 OPTION_INVALID: Invalid option selected. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 REVOTE_NOT_ALLOWED: You cannot change your vote. See https://core.telegram.org/method/messages.sendVote for reference. MessagesSendWebViewData invokes method messages.sendWebViewData#dc0242c8 returning error if any. Used by the user to relay data from an opened reply keyboard bot mini app¹ to the bot that owns it. Links: 1. https://core.telegram.org/api/bots/webapps See https://core.telegram.org/method/messages.sendWebViewData for reference. MessagesSendWebViewResultMessage invokes method messages.sendWebViewResultMessage#a4314f5 returning error if any. Terminate webview interaction started with messages.requestWebView¹, sending the specified message to the chat on behalf of the user. Links: 1. https://core.telegram.org/method/messages.requestWebView Possible errors: 400 QUERY_ID_INVALID: The query ID is invalid. See https://core.telegram.org/method/messages.sendWebViewResultMessage for reference. Can be used by bots. MessagesSetBotCallbackAnswer invokes method messages.setBotCallbackAnswer#d58f130a returning error if any. Set the callback answer to a user button press (bots only) Possible errors: 400 MESSAGE_TOO_LONG: The provided message is too long. 400 QUERY_ID_INVALID: The query ID is invalid. 400 URL_INVALID: Invalid URL provided. 400 USER_BOT_REQUIRED: This method can only be called by a bot. See https://core.telegram.org/method/messages.setBotCallbackAnswer for reference. Can be used by bots. MessagesSetBotPrecheckoutResults invokes method messages.setBotPrecheckoutResults#9c2dd95 returning error if any. Once the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery¹ update. Use this method to respond to such pre-checkout queries. Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent. Links: 1. https://core.telegram.org/constructor/updateBotPrecheckoutQuery Possible errors: 400 ERROR_TEXT_EMPTY: The provided error message is empty. See https://core.telegram.org/method/messages.setBotPrecheckoutResults for reference. Can be used by bots. MessagesSetBotShippingResults invokes method messages.setBotShippingResults#e5f672fa returning error if any. If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an updateBotShippingQuery¹ update. Use this method to reply to shipping queries. Links: 1. https://core.telegram.org/constructor/updateBotShippingQuery Possible errors: 400 QUERY_ID_INVALID: The query ID is invalid. See https://core.telegram.org/method/messages.setBotShippingResults for reference. Can be used by bots. MessagesSetChatAvailableReactions invokes method messages.setChatAvailableReactions#feb16771 returning error if any. Change the set of message reactions »¹ that can be used in a certain group, supergroup or channel Links: 1. https://core.telegram.org/api/reactions Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.setChatAvailableReactions for reference. MessagesSetChatTheme invokes method messages.setChatTheme#e63be13f returning error if any. Change the chat theme of a certain chat Possible errors: 400 EMOJI_INVALID: The specified theme emoji is valid. 400 EMOJI_NOT_MODIFIED: The theme wasn't changed. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.setChatTheme for reference. MessagesSetChatWallPaper invokes method messages.setChatWallPaper#8ffacae1 returning error if any. Set a custom wallpaper »¹ in a specific private chat with another user. Links: 1. https://core.telegram.org/api/wallpapers Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. 400 WALLPAPER_INVALID: The specified wallpaper is invalid. 400 WALLPAPER_NOT_FOUND: The specified wallpaper could not be found. See https://core.telegram.org/method/messages.setChatWallPaper for reference. Can be used by bots. MessagesSetDefaultHistoryTTL invokes method messages.setDefaultHistoryTTL#9eb51445 returning error if any. Changes the default value of the Time-To-Live setting, applied to all new chats. See https://core.telegram.org/method/messages.setDefaultHistoryTTL for reference. Can be used by bots. MessagesSetDefaultReaction invokes method messages.setDefaultReaction#4f47a016 returning error if any. Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using help.getConfig, reactions_default field¹. Links: 1. https://core.telegram.org/method/help.getConfig Possible errors: 400 REACTION_INVALID: The specified reaction is invalid. See https://core.telegram.org/method/messages.setDefaultReaction for reference. MessagesSetEncryptedTyping invokes method messages.setEncryptedTyping#791451ed returning error if any. Send typing event by the current user to a secret chat. Possible errors: 400 CHAT_ID_INVALID: The provided chat id is invalid. See https://core.telegram.org/method/messages.setEncryptedTyping for reference. MessagesSetGameScore invokes method messages.setGameScore#8ef8ecc0 returning error if any. Use this method to set the score of the specified user in a game sent as a normal message (bots only). Possible errors: 400 BOT_SCORE_NOT_MODIFIED: The score wasn't modified. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 SCORE_INVALID: The specified game score is invalid. 400 USER_BOT_REQUIRED: This method can only be called by a bot. See https://core.telegram.org/method/messages.setGameScore for reference. Can be used by bots. MessagesSetHistoryTTL invokes method messages.setHistoryTTL#b80e5fe4 returning error if any. Set maximum Time-To-Live of all messages in the specified chat Possible errors: 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 TTL_PERIOD_INVALID: The specified TTL period is invalid. See https://core.telegram.org/method/messages.setHistoryTTL for reference. MessagesSetInlineBotResults invokes method messages.setInlineBotResults#bb12a419 returning error if any. Answer an inline query, for bots only Possible errors: 400 ARTICLE_TITLE_EMPTY: The title of the article is empty. 400 AUDIO_CONTENT_URL_EMPTY: The remote URL specified in the content field is empty. 400 AUDIO_TITLE_EMPTY: An empty audio title was provided. 400 BUTTON_DATA_INVALID: The data of one or more of the buttons you provided is invalid. 400 BUTTON_TYPE_INVALID: The type of one or more of the buttons you provided is invalid. 400 BUTTON_URL_INVALID: Button URL invalid. 400 DOCUMENT_INVALID: The specified document is invalid. 400 FILE_CONTENT_TYPE_INVALID: File content-type is invalid. 400 FILE_TITLE_EMPTY: An empty file title was specified. 400 GIF_CONTENT_TYPE_INVALID: GIF content-type invalid. 400 MESSAGE_EMPTY: The provided message is empty. 400 MESSAGE_TOO_LONG: The provided message is too long. 400 NEXT_OFFSET_INVALID: The specified offset is longer than 64 bytes. 400 PHOTO_CONTENT_TYPE_INVALID: Photo mime-type invalid. 400 PHOTO_CONTENT_URL_EMPTY: Photo URL invalid. 400 PHOTO_INVALID: Photo invalid. 400 PHOTO_THUMB_URL_EMPTY: Photo thumbnail URL is empty. 400 QUERY_ID_INVALID: The query ID is invalid. 400 REPLY_MARKUP_INVALID: The provided reply markup is invalid. 400 RESULTS_TOO_MUCH: Too many results were provided. 400 RESULT_ID_DUPLICATE: You provided a duplicate result ID. 400 RESULT_ID_INVALID: One of the specified result IDs is invalid. 400 RESULT_TYPE_INVALID: Result type invalid. 400 SEND_MESSAGE_MEDIA_INVALID: Invalid media provided. 400 SEND_MESSAGE_TYPE_INVALID: The message type is invalid. 400 START_PARAM_EMPTY: The start parameter is empty. 400 START_PARAM_INVALID: Start parameter invalid. 400 STICKER_DOCUMENT_INVALID: The specified sticker document is invalid. 400 SWITCH_PM_TEXT_EMPTY: The switch_pm.text field was empty. 400 URL_INVALID: Invalid URL provided. 403 USER_BOT_INVALID: User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts. 400 VIDEO_TITLE_EMPTY: The specified video title is empty. 400 WEBDOCUMENT_INVALID: Invalid webdocument URL provided. 400 WEBDOCUMENT_MIME_INVALID: Invalid webdocument mime type provided. 400 WEBDOCUMENT_SIZE_TOO_BIG: Webdocument is too big! 400 WEBDOCUMENT_URL_INVALID: The specified webdocument URL is invalid. See https://core.telegram.org/method/messages.setInlineBotResults for reference. Can be used by bots. MessagesSetInlineGameScore invokes method messages.setInlineGameScore#15ad9f64 returning error if any. Use this method to set the score of the specified user in a game sent as an inline message (bots only). Possible errors: 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 USER_BOT_REQUIRED: This method can only be called by a bot. See https://core.telegram.org/method/messages.setInlineGameScore for reference. Can be used by bots. MessagesSetTyping invokes method messages.setTyping#58943ee2 returning error if any. Sends a current user typing event (see SendMessageAction¹ for all event types) to a conversation partner or group. Links: 1. https://core.telegram.org/type/SendMessageAction Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 403 GROUPCALL_FORBIDDEN: The group call has already ended. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. 403 USER_IS_BLOCKED: You were blocked by this user. 400 USER_IS_BOT: Bots can't send messages to other bots. See https://core.telegram.org/method/messages.setTyping for reference. Can be used by bots. MessagesStartBot invokes method messages.startBot#e6df7378 returning error if any. Start a conversation with a bot using a deep linking parameter¹ Links: 1. https://core.telegram.org/api/links#bot-links Possible errors: 400 BOT_INVALID: This is not a valid bot. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 500 RANDOM_ID_DUPLICATE: You provided a random ID that was already used. 400 START_PARAM_EMPTY: The start parameter is empty. 400 START_PARAM_INVALID: Start parameter invalid. 400 START_PARAM_TOO_LONG: Start parameter is too long. See https://core.telegram.org/method/messages.startBot for reference. MessagesStartHistoryImport invokes method messages.startHistoryImport#b43df344 returning error if any. Complete the history import process¹, importing all messages into the chat. To be called only after initializing the import with messages.initHistoryImport² and uploading all files using messages.uploadImportedMedia³. Links: 1. https://core.telegram.org/api/import 2. https://core.telegram.org/method/messages.initHistoryImport 3. https://core.telegram.org/method/messages.uploadImportedMedia Possible errors: 400 IMPORT_ID_INVALID: The specified import ID is invalid. See https://core.telegram.org/method/messages.startHistoryImport for reference. MessagesToggleBotInAttachMenu invokes method messages.toggleBotInAttachMenu#69f59d69 returning error if any. Enable or disable web bot attachment menu »¹ Links: 1. https://core.telegram.org/api/bots/attach See https://core.telegram.org/method/messages.toggleBotInAttachMenu for reference. MessagesToggleDialogPin invokes method messages.toggleDialogPin#a731e257 returning error if any. Pin/unpin a dialog Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 PEER_HISTORY_EMPTY: You can't pin an empty chat with a user. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 PINNED_DIALOGS_TOO_MUCH: Too many pinned dialogs. See https://core.telegram.org/method/messages.toggleDialogPin for reference. MessagesToggleNoForwards invokes method messages.toggleNoForwards#b11eafa2 returning error if any. Enable or disable content protection¹ on a channel or chat Links: 1. https://telegram.org/blog/protected-content-delete-by-date-and-more Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/messages.toggleNoForwards for reference. MessagesTogglePeerTranslations invokes method messages.togglePeerTranslations#e47cb579 returning error if any. Show or hide the real-time chat translation popup¹ for a certain chat Links: 1. https://core.telegram.org/api/translation See https://core.telegram.org/method/messages.togglePeerTranslations for reference. Can be used by bots. MessagesToggleStickerSets invokes method messages.toggleStickerSets#b5052fea returning error if any. Apply changes to multiple stickersets See https://core.telegram.org/method/messages.toggleStickerSets for reference. MessagesTranscribeAudio invokes method messages.transcribeAudio#269e9a49 returning error if any. Transcribe voice message¹ Links: 1. https://core.telegram.org/api/transcribe Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. 403 PREMIUM_ACCOUNT_REQUIRED: A premium account is required to execute this action. 400 TRANSCRIPTION_FAILED: Audio transcription failed. See https://core.telegram.org/method/messages.transcribeAudio for reference. MessagesTranslateText invokes method messages.translateText#63183030 returning error if any. Translate a given text. Styled text entities¹ will only be preserved for Telegram Premium² users. Links: 1. https://core.telegram.org/api/entities 2. https://core.telegram.org/api/premium Possible errors: 400 INPUT_TEXT_EMPTY: The specified text is empty. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 TO_LANG_INVALID: The specified destination language is invalid. See https://core.telegram.org/method/messages.translateText for reference. MessagesUninstallStickerSet invokes method messages.uninstallStickerSet#f96e55de returning error if any. Uninstall a stickerset Possible errors: 406 STICKERSET_INVALID: The provided sticker set is invalid. See https://core.telegram.org/method/messages.uninstallStickerSet for reference. MessagesUnpinAllMessages invokes method messages.unpinAllMessages#ee22b9a8 returning error if any. Unpin¹ all pinned messages Links: 1. https://core.telegram.org/api/pin Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. See https://core.telegram.org/method/messages.unpinAllMessages for reference. Can be used by bots. MessagesUpdateDialogFilter invokes method messages.updateDialogFilter#1ad4a04a returning error if any. Update folder¹ Links: 1. https://core.telegram.org/api/folders Possible errors: 400 CHATLIST_EXCLUDE_INVALID: The specified exclude_peers are invalid. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 FILTER_ID_INVALID: The specified filter ID is invalid. 400 FILTER_INCLUDE_EMPTY: The include_peers vector of the filter is empty. 400 FILTER_TITLE_EMPTY: The title field of the filter is empty. See https://core.telegram.org/method/messages.updateDialogFilter for reference. MessagesUpdateDialogFiltersOrder invokes method messages.updateDialogFiltersOrder#c563c1e4 returning error if any. Reorder folders¹ Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/method/messages.updateDialogFiltersOrder for reference. MessagesUpdatePinnedMessage invokes method messages.updatePinnedMessage#d2aaf7ec returning error if any. Pin a message Possible errors: 400 BOT_ONESIDE_NOT_AVAIL: Bots can't pin messages in PM just for themselves. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_NOT_MODIFIED: No changes were made to chat information because the new information you passed is identical to the current information. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 PIN_RESTRICTED: You can't pin messages. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. See https://core.telegram.org/method/messages.updatePinnedMessage for reference. Can be used by bots. MessagesUploadEncryptedFile invokes method messages.uploadEncryptedFile#5057c497 returning error if any. Upload encrypted file and associate it to a secret chat See https://core.telegram.org/method/messages.uploadEncryptedFile for reference. MessagesUploadImportedMedia invokes method messages.uploadImportedMedia#2a862092 returning error if any. Upload a media file associated with an imported chat, click here for more info »¹. Links: 1. https://core.telegram.org/api/import Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. See https://core.telegram.org/method/messages.uploadImportedMedia for reference. MessagesUploadMedia invokes method messages.uploadMedia#519bc2b1 returning error if any. Upload a file and associate it to a chat (without actually sending it to the chat) Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CHAT_ID_INVALID: The provided chat id is invalid. 400 CHAT_RESTRICTED: You can't send messages in this chat, you were restricted. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 FILE_PARTS_INVALID: The number of file parts is invalid. 400 FILE_PART_LENGTH_INVALID: The length of a file part is invalid. 400 IMAGE_PROCESS_FAILED: Failure while processing image. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 MEDIA_INVALID: Media invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 PHOTO_EXT_INVALID: The extension of the photo is invalid. 400 PHOTO_INVALID_DIMENSIONS: The photo dimensions are invalid. 400 PHOTO_SAVE_FILE_INVALID: Internal issues, try again later. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. 400 WEBPAGE_CURL_FAILED: Failure while fetching the webpage with cURL. See https://core.telegram.org/method/messages.uploadMedia for reference. Can be used by bots. PaymentsApplyGiftCode invokes method payments.applyGiftCode#f6e26854 returning error if any. Apply a Telegram Premium giftcode »¹ Links: 1. https://core.telegram.org/api/giveaways Possible errors: 406 GIFTCODE_NOT_ALLOWED: See https://core.telegram.org/method/payments.applyGiftCode for reference. PaymentsAssignAppStoreTransaction invokes method payments.assignAppStoreTransaction#80ed747d returning error if any. Informs server about a purchase made through the App Store: for official applications only. See https://core.telegram.org/method/payments.assignAppStoreTransaction for reference. PaymentsAssignPlayMarketTransaction invokes method payments.assignPlayMarketTransaction#dffd50d3 returning error if any. Informs server about a purchase made through the Play Store: for official applications only. See https://core.telegram.org/method/payments.assignPlayMarketTransaction for reference. PaymentsCanPurchasePremium invokes method payments.canPurchasePremium#9fc19eb6 returning error if any. Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase, official apps only. See https://core.telegram.org/method/payments.canPurchasePremium for reference. PaymentsCheckGiftCode invokes method payments.checkGiftCode#8e51b4c1 returning error if any. Obtain information about a Telegram Premium giftcode »¹ Links: 1. https://core.telegram.org/api/giveaways Possible errors: 400 GIFT_SLUG_INVALID: The specified slug is invalid. See https://core.telegram.org/method/payments.checkGiftCode for reference. PaymentsClearSavedInfo invokes method payments.clearSavedInfo#d83d70c1 returning error if any. Clear saved payment information See https://core.telegram.org/method/payments.clearSavedInfo for reference. PaymentsExportInvoice invokes method payments.exportInvoice#f91b065 returning error if any. Generate an invoice deep link¹ Links: 1. https://core.telegram.org/api/links#invoice-links Possible errors: 400 CURRENCY_TOTAL_AMOUNT_INVALID: The total amount of all prices is invalid. 400 INVOICE_PAYLOAD_INVALID: The specified invoice payload is invalid. 400 MEDIA_INVALID: Media invalid. 400 PAYMENT_PROVIDER_INVALID: The specified payment provider is invalid. See https://core.telegram.org/method/payments.exportInvoice for reference. Can be used by bots. PaymentsGetBankCardData invokes method payments.getBankCardData#2e79d779 returning error if any. Get info about a credit card Possible errors: 400 BANK_CARD_NUMBER_INVALID: The specified card number is invalid. See https://core.telegram.org/method/payments.getBankCardData for reference. PaymentsGetGiveawayInfo invokes method payments.getGiveawayInfo#f4239425 returning error if any. Obtain information about a Telegram Premium giveaway »¹. Links: 1. https://core.telegram.org/api/giveaways Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/payments.getGiveawayInfo for reference. PaymentsGetPaymentForm invokes method payments.getPaymentForm#37148dbb returning error if any. Get a payment form Possible errors: 400 BOOST_PEER_INVALID: The specified boost_peer is invalid. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 SLUG_INVALID: The specified invoice slug is invalid. 400 UNTIL_DATE_INVALID: Invalid until date provided. See https://core.telegram.org/method/payments.getPaymentForm for reference. PaymentsGetPaymentReceipt invokes method payments.getPaymentReceipt#2478d1cc returning error if any. Get payment receipt Possible errors: 400 MESSAGE_ID_INVALID: The provided message id is invalid. See https://core.telegram.org/method/payments.getPaymentReceipt for reference. PaymentsGetPremiumGiftCodeOptions invokes method payments.getPremiumGiftCodeOptions#2757ba54 returning error if any. Obtain a list of Telegram Premium giveaway/gift code »¹ options. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/method/payments.getPremiumGiftCodeOptions for reference. PaymentsGetSavedInfo invokes method payments.getSavedInfo#227d824b returning error if any. Get saved payment information See https://core.telegram.org/method/payments.getSavedInfo for reference. PaymentsLaunchPrepaidGiveaway invokes method payments.launchPrepaidGiveaway#5ff58f20 returning error if any. Launch a prepaid giveaway »¹. Links: 1. https://core.telegram.org/api/giveaways Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/payments.launchPrepaidGiveaway for reference. PaymentsSendPaymentForm invokes method payments.sendPaymentForm#2d03522f returning error if any. Send compiled payment form Possible errors: 400 MESSAGE_ID_INVALID: The provided message id is invalid. See https://core.telegram.org/method/payments.sendPaymentForm for reference. PaymentsValidateRequestedInfo invokes method payments.validateRequestedInfo#b6c8f12b returning error if any. Submit requested order information for validation Possible errors: 400 MESSAGE_ID_INVALID: The provided message id is invalid. See https://core.telegram.org/method/payments.validateRequestedInfo for reference. PhoneAcceptCall invokes method phone.acceptCall#3bd2b4a0 returning error if any. Accept incoming call Possible errors: 400 CALL_ALREADY_ACCEPTED: The call was already accepted. 400 CALL_ALREADY_DECLINED: The call was already declined. 500 CALL_OCCUPY_FAILED: The call failed because the user is already making another call. 400 CALL_PEER_INVALID: The provided call peer object is invalid. 406 CALL_PROTOCOL_COMPAT_LAYER_INVALID: The other side of the call does not support any of the VoIP protocols supported by the local client, as specified by the protocol.layer and protocol.library_versions fields. 400 CALL_PROTOCOL_FLAGS_INVALID: Call protocol flags invalid. See https://core.telegram.org/method/phone.acceptCall for reference. PhoneCheckGroupCall invokes method phone.checkGroupCall#b59cf977 returning error if any. Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs. Returns an intersection of the source IDs specified in sources, and the source IDs currently being forwarded by the SFU. Possible errors: 400 GROUPCALL_JOIN_MISSING: You haven't joined this group call. See https://core.telegram.org/method/phone.checkGroupCall for reference. PhoneConfirmCall invokes method phone.confirmCall#2efe1722 returning error if any. Complete phone call E2E encryption key exchange »¹ Links: 1. https://core.telegram.org/api/end-to-end/voice-calls Possible errors: 400 CALL_ALREADY_DECLINED: The call was already declined. 400 CALL_PEER_INVALID: The provided call peer object is invalid. See https://core.telegram.org/method/phone.confirmCall for reference. PhoneCreateGroupCall invokes method phone.createGroupCall#48cdc6d8 returning error if any. Create a group call or livestream Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 CREATE_CALL_FAILED: An error occurred while creating the call. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 SCHEDULE_DATE_INVALID: Invalid schedule date provided. See https://core.telegram.org/method/phone.createGroupCall for reference. PhoneDiscardCall invokes method phone.discardCall#b2cbc1c0 returning error if any. Refuse or end running call Possible errors: 400 CALL_ALREADY_ACCEPTED: The call was already accepted. 500 CALL_OCCUPY_FAILED: The call failed because the user is already making another call. 400 CALL_PEER_INVALID: The provided call peer object is invalid. See https://core.telegram.org/method/phone.discardCall for reference. PhoneDiscardGroupCall invokes method phone.discardGroupCall#7a777135 returning error if any. Terminate a group call Possible errors: 400 GROUPCALL_ALREADY_DISCARDED: The group call was already discarded. 403 GROUPCALL_FORBIDDEN: The group call has already ended. 400 GROUPCALL_INVALID: The specified group call is invalid. See https://core.telegram.org/method/phone.discardGroupCall for reference. PhoneEditGroupCallParticipant invokes method phone.editGroupCallParticipant#a5273abf returning error if any. Edit information about a given group call participant Note: flags¹.N?Bool² parameters can have three possible values: Links: 1. https://core.telegram.org/mtproto/TL-combinators#conditional-fields 2. https://core.telegram.org/type/Bool Possible errors: 403 GROUPCALL_FORBIDDEN: The group call has already ended. 400 PARTICIPANT_JOIN_MISSING: Trying to enable a presentation, when the user hasn't joined the Video Chat with phone.joinGroupCall. 400 USER_VOLUME_INVALID: The specified user volume is invalid. See https://core.telegram.org/method/phone.editGroupCallParticipant for reference. PhoneEditGroupCallTitle invokes method phone.editGroupCallTitle#1ca6ac0a returning error if any. Edit the title of a group call or livestream Possible errors: 403 GROUPCALL_FORBIDDEN: The group call has already ended. See https://core.telegram.org/method/phone.editGroupCallTitle for reference. PhoneExportGroupCallInvite invokes method phone.exportGroupCallInvite#e6aa647f returning error if any. Get an invite link¹ for a group call or livestream Links: 1. https://core.telegram.org/api/links#video-chat-livestream-links Possible errors: 403 PUBLIC_CHANNEL_MISSING: You can only export group call invite links for public chats or channels. See https://core.telegram.org/method/phone.exportGroupCallInvite for reference. PhoneGetCallConfig invokes method phone.getCallConfig#55451fa9 returning error if any. Get phone call configuration to be passed to libtgvoip's shared config See https://core.telegram.org/method/phone.getCallConfig for reference. PhoneGetGroupCall invokes method phone.getGroupCall#41845db returning error if any. Get info about a group call Possible errors: 403 GROUPCALL_FORBIDDEN: The group call has already ended. 400 GROUPCALL_INVALID: The specified group call is invalid. See https://core.telegram.org/method/phone.getGroupCall for reference. PhoneGetGroupCallJoinAs invokes method phone.getGroupCallJoinAs#ef7c213a returning error if any. Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel. Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/phone.getGroupCallJoinAs for reference. PhoneGetGroupCallStreamChannels invokes method phone.getGroupCallStreamChannels#1ab21940 returning error if any. Get info about RTMP streams in a group call or livestream. This method should be invoked to the same group/channel-related DC used for downloading livestream chunks¹. As usual, the media DC is preferred, if available. Links: 1. https://core.telegram.org/api/files#downloading-files Possible errors: 400 GROUPCALL_INVALID: The specified group call is invalid. 400 GROUPCALL_JOIN_MISSING: You haven't joined this group call. See https://core.telegram.org/method/phone.getGroupCallStreamChannels for reference. PhoneGetGroupCallStreamRtmpURL invokes method phone.getGroupCallStreamRtmpUrl#deb3abbf returning error if any. Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with phone.createGroupCall¹ (the rtmp_stream flag must be set). Links: 1. https://core.telegram.org/method/phone.createGroupCall Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. See https://core.telegram.org/method/phone.getGroupCallStreamRtmpUrl for reference. PhoneGetGroupParticipants invokes method phone.getGroupParticipants#c558d8ab returning error if any. Get group call participants See https://core.telegram.org/method/phone.getGroupParticipants for reference. PhoneInviteToGroupCall invokes method phone.inviteToGroupCall#7b393160 returning error if any. Invite a set of users to a group call. Possible errors: 403 GROUPCALL_FORBIDDEN: The group call has already ended. 400 GROUPCALL_INVALID: The specified group call is invalid. 400 INVITE_FORBIDDEN_WITH_JOINAS: If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID. 400 USER_ALREADY_INVITED: You have already invited this user. See https://core.telegram.org/method/phone.inviteToGroupCall for reference. PhoneJoinGroupCall invokes method phone.joinGroupCall#b132ff7b returning error if any. Join a group call Possible errors: 400 DATA_JSON_INVALID: The provided JSON data is invalid. 500 GROUPCALL_ADD_PARTICIPANTS_FAILED: 403 GROUPCALL_FORBIDDEN: The group call has already ended. 400 GROUPCALL_INVALID: The specified group call is invalid. 400 GROUPCALL_SSRC_DUPLICATE_MUCH: The app needs to retry joining the group call with a new SSRC value. 400 JOIN_AS_PEER_INVALID: The specified peer cannot be used to join a group call. See https://core.telegram.org/method/phone.joinGroupCall for reference. PhoneJoinGroupCallPresentation invokes method phone.joinGroupCallPresentation#cbea6bc4 returning error if any. Start screen sharing in a call Possible errors: 403 PARTICIPANT_JOIN_MISSING: Trying to enable a presentation, when the user hasn't joined the Video Chat with phone.joinGroupCall. See https://core.telegram.org/method/phone.joinGroupCallPresentation for reference. PhoneLeaveGroupCall invokes method phone.leaveGroupCall#500377f9 returning error if any. Leave a group call See https://core.telegram.org/method/phone.leaveGroupCall for reference. PhoneLeaveGroupCallPresentation invokes method phone.leaveGroupCallPresentation#1c50d144 returning error if any. Stop screen sharing in a group call See https://core.telegram.org/method/phone.leaveGroupCallPresentation for reference. PhoneReceivedCall invokes method phone.receivedCall#17d54f61 returning error if any. Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended. Possible errors: 400 CALL_ALREADY_DECLINED: The call was already declined. 400 CALL_PEER_INVALID: The provided call peer object is invalid. See https://core.telegram.org/method/phone.receivedCall for reference. PhoneRequestCall invokes method phone.requestCall#42ff96ed returning error if any. Start a telegram phone call Possible errors: 400 CALL_PROTOCOL_FLAGS_INVALID: Call protocol flags invalid. 400 INPUT_USER_DEACTIVATED: The specified user was deleted. 400 PARTICIPANT_VERSION_OUTDATED: The other participant does not use an up to date telegram client with support for calls. 400 USER_ID_INVALID: The provided user ID is invalid. 403 USER_IS_BLOCKED: You were blocked by this user. 403 USER_PRIVACY_RESTRICTED: The user's privacy settings do not allow you to do this. See https://core.telegram.org/method/phone.requestCall for reference. PhoneSaveCallDebug invokes method phone.saveCallDebug#277add7e returning error if any. Send phone call debug data to server Possible errors: 400 CALL_PEER_INVALID: The provided call peer object is invalid. 400 DATA_JSON_INVALID: The provided JSON data is invalid. See https://core.telegram.org/method/phone.saveCallDebug for reference. PhoneSaveCallLog invokes method phone.saveCallLog#41248786 returning error if any. Save phone call debug information See https://core.telegram.org/method/phone.saveCallLog for reference. PhoneSaveDefaultGroupCallJoinAs invokes method phone.saveDefaultGroupCallJoinAs#575e1f8c returning error if any. Set the default peer that will be used to join a group call in a specific dialog. Possible errors: 400 JOIN_AS_PEER_INVALID: The specified peer cannot be used to join a group call. See https://core.telegram.org/method/phone.saveDefaultGroupCallJoinAs for reference. PhoneSendSignalingData invokes method phone.sendSignalingData#ff7a9383 returning error if any. Send VoIP signaling data See https://core.telegram.org/method/phone.sendSignalingData for reference. PhoneSetCallRating invokes method phone.setCallRating#59ead627 returning error if any. Rate a call, returns info about the rating message sent to the official VoIP bot. Possible errors: 400 CALL_PEER_INVALID: The provided call peer object is invalid. See https://core.telegram.org/method/phone.setCallRating for reference. PhoneStartScheduledGroupCall invokes method phone.startScheduledGroupCall#5680e342 returning error if any. Start a scheduled group call. See https://core.telegram.org/method/phone.startScheduledGroupCall for reference. PhoneToggleGroupCallRecord invokes method phone.toggleGroupCallRecord#f128c708 returning error if any. Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves). Possible errors: 403 GROUPCALL_FORBIDDEN: The group call has already ended. 400 GROUPCALL_NOT_MODIFIED: Group call settings weren't modified. See https://core.telegram.org/method/phone.toggleGroupCallRecord for reference. PhoneToggleGroupCallSettings invokes method phone.toggleGroupCallSettings#74bbb43d returning error if any. Change group call settings Possible errors: 400 GROUPCALL_NOT_MODIFIED: Group call settings weren't modified. See https://core.telegram.org/method/phone.toggleGroupCallSettings for reference. PhoneToggleGroupCallStartSubscription invokes method phone.toggleGroupCallStartSubscription#219c34e6 returning error if any. Subscribe or unsubscribe to a scheduled group call Possible errors: 403 GROUPCALL_ALREADY_STARTED: The groupcall has already started, you can join directly using phone.joinGroupCall. See https://core.telegram.org/method/phone.toggleGroupCallStartSubscription for reference. PhotosDeletePhotos invokes method photos.deletePhotos#87cf7f2f returning error if any. Deletes profile photos. The method returns a list of successfully deleted photo IDs. See https://core.telegram.org/method/photos.deletePhotos for reference. PhotosGetUserPhotos invokes method photos.getUserPhotos#91cd32a8 returning error if any. Returns the list of user photos. Possible errors: 400 MAX_ID_INVALID: The provided max ID is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/photos.getUserPhotos for reference. Can be used by bots. PhotosUpdateProfilePhoto invokes method photos.updateProfilePhoto#9e82039 returning error if any. Installs a previously uploaded photo as a profile photo. Possible errors: 400 ALBUM_PHOTOS_TOO_MANY: You have uploaded too many profile photos, delete some before retrying. 400 FILE_PARTS_INVALID: The number of file parts is invalid. 400 IMAGE_PROCESS_FAILED: Failure while processing image. 400 LOCATION_INVALID: The provided location is invalid. 400 PHOTO_CROP_SIZE_SMALL: Photo is too small. 400 PHOTO_EXT_INVALID: The extension of the photo is invalid. 400 PHOTO_ID_INVALID: Photo ID invalid. See https://core.telegram.org/method/photos.updateProfilePhoto for reference. Can be used by bots. PhotosUploadContactProfilePhoto invokes method photos.uploadContactProfilePhoto#e14c4a71 returning error if any. Upload a custom profile picture for a contact, or suggest a new profile picture to a contact. The file, video and video_emoji_markup flags are mutually exclusive. Possible errors: 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/photos.uploadContactProfilePhoto for reference. Can be used by bots. PhotosUploadProfilePhoto invokes method photos.uploadProfilePhoto#388a3b5 returning error if any. Updates current user profile photo. The file, video and video_emoji_markup flags are mutually exclusive. Possible errors: 400 ALBUM_PHOTOS_TOO_MANY: You have uploaded too many profile photos, delete some before retrying. 400 BOT_INVALID: This is not a valid bot. 400 EMOJI_MARKUP_INVALID: The specified video_emoji_markup was invalid. 400 FILE_PARTS_INVALID: The number of file parts is invalid. 400 IMAGE_PROCESS_FAILED: Failure while processing image. 400 PHOTO_CROP_FILE_MISSING: Photo crop file missing. 400 PHOTO_CROP_SIZE_SMALL: Photo is too small. 400 PHOTO_EXT_INVALID: The extension of the photo is invalid. 400 PHOTO_FILE_MISSING: Profile photo file missing. 400 PHOTO_INVALID: Photo invalid. 400 STICKER_MIME_INVALID: The specified sticker MIME type is invalid. 400 VIDEO_FILE_INVALID: The specified video file is invalid. See https://core.telegram.org/method/photos.uploadProfilePhoto for reference. Can be used by bots. PremiumApplyBoost invokes method premium.applyBoost#6b7da746 returning error if any. Apply one or more boosts »¹ to a peer. Links: 1. https://core.telegram.org/api/boost Possible errors: 400 BOOSTS_EMPTY: No boost slots were specified. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 SLOTS_EMPTY: The specified slot list is empty. See https://core.telegram.org/method/premium.applyBoost for reference. PremiumGetBoostsList invokes method premium.getBoostsList#60f67660 returning error if any. Obtains info about the boosts that were applied to a certain channel (admins only) Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/premium.getBoostsList for reference. PremiumGetBoostsStatus invokes method premium.getBoostsStatus#42f1f61 returning error if any. Gets the current number of boosts¹ of a channel. Links: 1. https://core.telegram.org/api/boost Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/premium.getBoostsStatus for reference. PremiumGetMyBoosts invokes method premium.getMyBoosts#be77b4a returning error if any. Obtain which peers are we currently boosting¹, and how many boost slots² we have left. Links: 1. https://core.telegram.org/api/boost 2. https://core.telegram.org/api/boost See https://core.telegram.org/method/premium.getMyBoosts for reference. PremiumGetUserBoosts invokes method premium.getUserBoosts#39854d1f returning error if any. Returns the lists of boost that were applied to a channel by a specific user (admins only) Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/premium.getUserBoosts for reference. Can be used by bots. StatsGetBroadcastStats invokes method stats.getBroadcastStats#ab42441a returning error if any. Get channel statistics¹ Links: 1. https://core.telegram.org/api/stats Possible errors: 400 BROADCAST_REQUIRED: This method can only be called on a channel, please use stats.getMegagroupStats for supergroups. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. See https://core.telegram.org/method/stats.getBroadcastStats for reference. StatsGetMegagroupStats invokes method stats.getMegagroupStats#dcdf8607 returning error if any. Get supergroup statistics¹ Links: 1. https://core.telegram.org/api/stats Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 403 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 MEGAGROUP_REQUIRED: You can only use this method on a supergroup. See https://core.telegram.org/method/stats.getMegagroupStats for reference. StatsGetMessagePublicForwards invokes method stats.getMessagePublicForwards#5f150144 returning error if any. Obtains a list of messages, indicating to which other public channels was a channel message forwarded. Will return a list of messages¹ with peer_id equal to the public channel to which this message was forwarded. Links: 1. https://core.telegram.org/constructor/message Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stats.getMessagePublicForwards for reference. StatsGetMessageStats invokes method stats.getMessageStats#b6e0a3f5 returning error if any. Get message statistics¹ Links: 1. https://core.telegram.org/api/stats Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 MESSAGE_ID_INVALID: The provided message id is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stats.getMessageStats for reference. StatsGetStoryPublicForwards invokes method stats.getStoryPublicForwards#a6437ef6 returning error if any. Obtain forwards of a story¹ as a message to public chats and reposts by public channels. Links: 1. https://core.telegram.org/api/stories Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stats.getStoryPublicForwards for reference. StatsGetStoryStats invokes method stats.getStoryStats#374fef40 returning error if any. Get statistics¹ for a certain story². Links: 1. https://core.telegram.org/api/stats 2. https://core.telegram.org/api/stories Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stats.getStoryStats for reference. StatsLoadAsyncGraph invokes method stats.loadAsyncGraph#621d5fa0 returning error if any. Load channel statistics graph¹ asynchronously Links: 1. https://core.telegram.org/api/stats Possible errors: 400 GRAPH_EXPIRED_RELOAD: This graph has expired, please obtain a new graph token. 400 GRAPH_INVALID_RELOAD: Invalid graph token provided, please reload the stats and provide the updated token. 400 GRAPH_OUTDATED_RELOAD: The graph is outdated, please get a new async token using stats.getBroadcastStats. See https://core.telegram.org/method/stats.loadAsyncGraph for reference. StickersAddStickerToSet invokes method stickers.addStickerToSet#8653febe returning error if any. Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot. Possible errors: 400 BOT_MISSING: Only bots can call this method, please use @stickers if you're a user. 400 STICKERPACK_STICKERS_TOO_MUCH: There are too many stickers in this stickerpack, you can't add any more. 406 STICKERSET_INVALID: The provided sticker set is invalid. 400 STICKERS_TOO_MUCH: There are too many stickers in this stickerpack, you can't add any more. 400 STICKER_PNG_NOPNG: One of the specified stickers is not a valid PNG file. 400 STICKER_TGS_NOTGS: Invalid TGS sticker provided. See https://core.telegram.org/method/stickers.addStickerToSet for reference. Can be used by bots. StickersChangeSticker invokes method stickers.changeSticker#f5537ebc returning error if any. Update the keywords, emojis or mask coordinates¹ of a sticker, bots only. Links: 1. https://core.telegram.org/api/stickers#mask-stickers Possible errors: 400 BOT_MISSING: Only bots can call this method, please use @stickers if you're a user. 400 STICKER_INVALID: The provided sticker is invalid. See https://core.telegram.org/method/stickers.changeSticker for reference. Can be used by bots. StickersChangeStickerPosition invokes method stickers.changeStickerPosition#ffb6d4ca returning error if any. Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot Possible errors: 400 STICKER_INVALID: The provided sticker is invalid. See https://core.telegram.org/method/stickers.changeStickerPosition for reference. Can be used by bots. StickersCheckShortName invokes method stickers.checkShortName#284b3639 returning error if any. Check whether the given short name is available Possible errors: 400 SHORT_NAME_INVALID: The specified short name is invalid. 400 SHORT_NAME_OCCUPIED: The specified short name is already in use. See https://core.telegram.org/method/stickers.checkShortName for reference. StickersCreateStickerSet invokes method stickers.createStickerSet#9021ab67 returning error if any. Create a stickerset, bots only. Possible errors: 400 PACK_SHORT_NAME_INVALID: Short pack name invalid. 400 PACK_SHORT_NAME_OCCUPIED: A stickerpack with this name already exists. 400 PACK_TITLE_INVALID: The stickerpack title is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 STICKERS_EMPTY: No sticker provided. 400 STICKER_EMOJI_INVALID: Sticker emoji invalid. 400 STICKER_FILE_INVALID: Sticker file invalid. 400 STICKER_GIF_DIMENSIONS: The specified video sticker has invalid dimensions. 400 STICKER_PNG_DIMENSIONS: Sticker png dimensions invalid. 400 STICKER_PNG_NOPNG: One of the specified stickers is not a valid PNG file. 400 STICKER_TGS_NODOC: You must send the animated sticker as a document. 400 STICKER_TGS_NOTGS: Invalid TGS sticker provided. 400 STICKER_THUMB_PNG_NOPNG: Incorrect stickerset thumb file provided, PNG / WEBP expected. 400 STICKER_THUMB_TGS_NOTGS: Incorrect stickerset TGS thumb file provided. 400 STICKER_VIDEO_BIG: The specified video sticker is too big. 400 STICKER_VIDEO_NODOC: You must send the video sticker as a document. 400 STICKER_VIDEO_NOWEBM: The specified video sticker is not in webm format. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/stickers.createStickerSet for reference. Can be used by bots. StickersDeleteStickerSet invokes method stickers.deleteStickerSet#87704394 returning error if any. Deletes a stickerset we created, bots only. Possible errors: 400 BOT_MISSING: Only bots can call this method, please use @stickers if you're a user. 400 STICKERSET_INVALID: The provided sticker set is invalid. See https://core.telegram.org/method/stickers.deleteStickerSet for reference. Can be used by bots. StickersRemoveStickerFromSet invokes method stickers.removeStickerFromSet#f7760f51 returning error if any. Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot. Possible errors: 400 BOT_MISSING: Only bots can call this method, please use @stickers if you're a user. 400 STICKER_INVALID: The provided sticker is invalid. See https://core.telegram.org/method/stickers.removeStickerFromSet for reference. Can be used by bots. StickersRenameStickerSet invokes method stickers.renameStickerSet#124b1c00 returning error if any. Renames a stickerset, bots only. Possible errors: 400 STICKERSET_INVALID: The provided sticker set is invalid. See https://core.telegram.org/method/stickers.renameStickerSet for reference. Can be used by bots. StickersSetStickerSetThumb invokes method stickers.setStickerSetThumb#a76a5392 returning error if any. Set stickerset thumbnail Possible errors: 400 STICKERSET_INVALID: The provided sticker set is invalid. 400 STICKER_THUMB_PNG_NOPNG: Incorrect stickerset thumb file provided, PNG / WEBP expected. 400 STICKER_THUMB_TGS_NOTGS: Incorrect stickerset TGS thumb file provided. See https://core.telegram.org/method/stickers.setStickerSetThumb for reference. Can be used by bots. StickersSuggestShortName invokes method stickers.suggestShortName#4dafc503 returning error if any. Suggests a short name for a given stickerpack name Possible errors: 400 TITLE_INVALID: The specified stickerpack title is invalid. See https://core.telegram.org/method/stickers.suggestShortName for reference. StoriesActivateStealthMode invokes method stories.activateStealthMode#57bbd166 returning error if any. Activates stories stealth mode¹, see here »² for more info. Will return an updateStoriesStealthMode¹. Links: 1. https://core.telegram.org/api/stories#stealth-mode 2. https://core.telegram.org/api/stories#stealth-mode 3. https://core.telegram.org/constructor/updateStoriesStealthMode See https://core.telegram.org/method/stories.activateStealthMode for reference. StoriesCanSendStory invokes method stories.canSendStory#c7dfdfdd returning error if any. Check whether we can post stories as the specified peer. Possible errors: 400 BOOSTS_REQUIRED: The specified channel must first be boosted by its users in order to perform this action. 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 PREMIUM_ACCOUNT_REQUIRED: A premium account is required to execute this action. 400 STORIES_TOO_MUCH: You have hit the maximum active stories limit as specified by the story_expiring_limit_* client configuration parameters: you should buy a Premium subscription, delete an active story, or wait for the oldest story to expire. 400 STORY_SEND_FLOOD_MONTHLY_%d: You've hit the monthly story limit as specified by the stories_sent_monthly_limit_* client configuration parameters: wait for the specified number of seconds before posting a new story. 400 STORY_SEND_FLOOD_WEEKLY_%d: You've hit the weekly story limit as specified by the stories_sent_weekly_limit_* client configuration parameters: wait for the specified number of seconds before posting a new story. See https://core.telegram.org/method/stories.canSendStory for reference. StoriesDeleteStories invokes method stories.deleteStories#ae59db5f returning error if any. Deletes some posted stories¹. Links: 1. https://core.telegram.org/api/stories Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stories.deleteStories for reference. StoriesEditStory invokes method stories.editStory#b583ba46 returning error if any. Edit an uploaded story¹ Links: 1. https://core.telegram.org/api/stories Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. 400 STORY_NOT_MODIFIED: The new story information you passed is equal to the previous story information, thus it wasn't modified. See https://core.telegram.org/method/stories.editStory for reference. StoriesExportStoryLink invokes method stories.exportStoryLink#7b8def20 returning error if any. Generate a story deep link¹ for a specific story Links: 1. https://core.telegram.org/api/links#story-links Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_PUBLIC_MISSING: See https://core.telegram.org/method/stories.exportStoryLink for reference. StoriesGetAllReadPeerStories invokes method stories.getAllReadPeerStories#9b5ae7f9 returning error if any. Obtain the latest read story ID for all peers when first logging in, returned as a list of updateReadStories¹ updates, see here »² for more info. Links: 1. https://core.telegram.org/constructor/updateReadStories 2. https://core.telegram.org/api/stories#watching-stories See https://core.telegram.org/method/stories.getAllReadPeerStories for reference. StoriesGetAllStories invokes method stories.getAllStories#eeb0d625 returning error if any. Fetch the List of active (or active and hidden) stories, see here »¹ for more info on watching stories. Links: 1. https://core.telegram.org/api/stories#watching-stories See https://core.telegram.org/method/stories.getAllStories for reference. StoriesGetChatsToSend invokes method stories.getChatsToSend#a56a8b60 returning error if any. Obtain a list of channels where the user can post stories¹ Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/method/stories.getChatsToSend for reference. StoriesGetPeerMaxIDs invokes method stories.getPeerMaxIDs#535983c3 returning error if any. Get the IDs of the maximum read stories for a set of peers. See https://core.telegram.org/method/stories.getPeerMaxIDs for reference. StoriesGetPeerStories invokes method stories.getPeerStories#2c4ada50 returning error if any. Fetch the full active story list¹ of a specific peer. Links: 1. https://core.telegram.org/api/stories#watching-stories Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stories.getPeerStories for reference. StoriesGetPinnedStories invokes method stories.getPinnedStories#5821a5dc returning error if any. Fetch the stories¹ pinned on a peer's profile. Links: 1. https://core.telegram.org/api/stories#pinned-or-archived-stories Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/stories.getPinnedStories for reference. StoriesGetStoriesArchive invokes method stories.getStoriesArchive#b4352016 returning error if any. Fetch the story archive »¹ of a peer we control. Links: 1. https://core.telegram.org/api/stories#pinned-or-archived-stories Possible errors: 400 CHAT_ADMIN_REQUIRED: You must be an admin in this chat to do this. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stories.getStoriesArchive for reference. StoriesGetStoriesByID invokes method stories.getStoriesByID#5774ca74 returning error if any. Obtain full info about a set of stories¹ by their IDs. Links: 1. https://core.telegram.org/api/stories Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 STORIES_NEVER_CREATED: 400 STORY_ID_EMPTY: You specified no story IDs. See https://core.telegram.org/method/stories.getStoriesByID for reference. StoriesGetStoriesViews invokes method stories.getStoriesViews#28e16cc8 returning error if any. Obtain info about the view count, forward count, reactions and recent viewers of one or more stories¹. Links: 1. https://core.telegram.org/api/stories Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 STORY_ID_EMPTY: You specified no story IDs. See https://core.telegram.org/method/stories.getStoriesViews for reference. StoriesGetStoryReactionsList invokes method stories.getStoryReactionsList#b9b2881f returning error if any. See https://core.telegram.org/method/stories.getStoryReactionsList for reference. StoriesGetStoryViewsList invokes method stories.getStoryViewsList#7ed23c57 returning error if any. Obtain the list of users that have viewed a specific story we posted¹ Links: 1. https://core.telegram.org/api/stories Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. 400 STORY_ID_INVALID: The specified story ID is invalid. See https://core.telegram.org/method/stories.getStoryViewsList for reference. StoriesIncrementStoryViews invokes method stories.incrementStoryViews#b2028afb returning error if any. Increment the view counter of one or more stories. Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. 400 STORY_ID_EMPTY: You specified no story IDs. See https://core.telegram.org/method/stories.incrementStoryViews for reference. StoriesReadStories invokes method stories.readStories#a556dac8 returning error if any. Mark all stories up to a certain ID as read, for a given peer; will emit an updateReadStories¹ update to all logged-in sessions. Links: 1. https://core.telegram.org/constructor/updateReadStories Possible errors: 400 MAX_ID_INVALID: The provided max ID is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. 400 STORIES_NEVER_CREATED: See https://core.telegram.org/method/stories.readStories for reference. StoriesReport invokes method stories.report#1923fa8c returning error if any. Report a story. Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stories.report for reference. StoriesSendReaction invokes method stories.sendReaction#7fd736b2 returning error if any. React to a story. Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. 400 REACTION_INVALID: The specified reaction is invalid. 400 STORY_ID_EMPTY: You specified no story IDs. See https://core.telegram.org/method/stories.sendReaction for reference. StoriesSendStory invokes method stories.sendStory#e4e6694b returning error if any. Uploads a Telegram Story¹. Links: 1. https://core.telegram.org/api/stories Possible errors: 400 IMAGE_PROCESS_FAILED: Failure while processing image. 400 MEDIA_EMPTY: The provided media object is invalid. 400 MEDIA_FILE_INVALID: The specified media file is invalid. 400 MEDIA_TYPE_INVALID: The specified media type cannot be used in stories. 400 MEDIA_VIDEO_STORY_MISSING: 400 PEER_ID_INVALID: The provided peer id is invalid. 400 PREMIUM_ACCOUNT_REQUIRED: A premium account is required to execute this action. 400 STORIES_TOO_MUCH: You have hit the maximum active stories limit as specified by the story_expiring_limit_* client configuration parameters: you should buy a Premium subscription, delete an active story, or wait for the oldest story to expire. 400 STORY_PERIOD_INVALID: The specified story period is invalid for this account. 400 VENUE_ID_INVALID: The specified venue ID is invalid. See https://core.telegram.org/method/stories.sendStory for reference. StoriesToggleAllStoriesHidden invokes method stories.toggleAllStoriesHidden#7c2557c4 returning error if any. Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen. See https://core.telegram.org/method/stories.toggleAllStoriesHidden for reference. StoriesTogglePeerStoriesHidden invokes method stories.togglePeerStoriesHidden#bd0415c4 returning error if any. Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here »¹ for more info. Links: 1. https://core.telegram.org/api/stories#hiding-stories-of-other-users Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stories.togglePeerStoriesHidden for reference. StoriesTogglePinned invokes method stories.togglePinned#9a75a1ef returning error if any. Pin or unpin one or more stories Possible errors: 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/stories.togglePinned for reference. TestUseConfigSimple invokes method test.useConfigSimple#f9b7b23d returning error if any. See https://core.telegram.org/method/test.useConfigSimple for reference. TestUseError invokes method test.useError#ee75af01 returning error if any. See https://core.telegram.org/method/test.useError for reference. UpdatesGetChannelDifference invokes method updates.getChannelDifference#3173d78 returning error if any. Returns the difference between the current state of updates of a certain channel and transmitted. Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 406 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHANNEL_PUBLIC_GROUP_NA: channel/supergroup not available. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 FROM_MESSAGE_BOT_DISABLED: Bots can't use fromMessage min constructors. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PERSISTENT_TIMESTAMP_EMPTY: Persistent timestamp empty. 400 PERSISTENT_TIMESTAMP_INVALID: Persistent timestamp invalid. 500 PERSISTENT_TIMESTAMP_OUTDATED: Channel internal replication issues, try again later (treat this like an RPC_CALL_FAIL). 400 PINNED_DIALOGS_TOO_MUCH: Too many pinned dialogs. 400 RANGES_INVALID: Invalid range provided. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. See https://core.telegram.org/method/updates.getChannelDifference for reference. Can be used by bots. UpdatesGetDifference invokes method updates.getDifference#19c2f763 returning error if any. Get new updates¹. Links: 1. https://core.telegram.org/api/updates Possible errors: 400 CDN_METHOD_INVALID: You can't call this method in a CDN DC. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 403 CHAT_WRITE_FORBIDDEN: You can't write in this chat. 400 DATE_EMPTY: Date empty. 400 MSG_ID_INVALID: Invalid message ID provided. 400 PERSISTENT_TIMESTAMP_EMPTY: Persistent timestamp empty. 400 PERSISTENT_TIMESTAMP_INVALID: Persistent timestamp invalid. 500 RANDOM_ID_DUPLICATE: You provided a random ID that was already used. 400 USERNAME_INVALID: The provided username is not valid. 400 USER_NOT_PARTICIPANT: You're not a member of this supergroup/channel. See https://core.telegram.org/method/updates.getDifference for reference. Can be used by bots. UpdatesGetState invokes method updates.getState#edd4882a returning error if any. Returns a current state of updates. See https://core.telegram.org/method/updates.getState for reference. Can be used by bots. UploadGetCDNFile invokes method upload.getCdnFile#395f69da returning error if any. Download a CDN¹ file. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/method/upload.getCdnFile for reference. UploadGetCDNFileHashes invokes method upload.getCdnFileHashes#91dc3f31 returning error if any. Get SHA256 hashes for verifying downloaded CDN¹ files Links: 1. https://core.telegram.org/cdn Possible errors: 400 CDN_METHOD_INVALID: You can't call this method in a CDN DC. 400 FILE_TOKEN_INVALID: The specified file token is invalid. 400 RSA_DECRYPT_FAILED: Internal RSA decryption failed. See https://core.telegram.org/method/upload.getCdnFileHashes for reference. Can be used by bots. UploadGetFile invokes method upload.getFile#be5335be returning error if any. Returns content of a whole file or its part. Possible errors: 400 CDN_METHOD_INVALID: You can't call this method in a CDN DC. 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 406 FILEREF_UPGRADE_NEEDED: The client has to be updated in order to support file references. 400 FILE_ID_INVALID: The provided file id is invalid. 400 FILE_REFERENCE_*: The file reference expired, it must be refreshed. 400 FILE_REFERENCE_EXPIRED: File reference expired, it must be refetched as described in the documentation. 400 LIMIT_INVALID: The provided limit is invalid. 400 LOCATION_INVALID: The provided location is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. 400 OFFSET_INVALID: The provided offset is invalid. 400 PEER_ID_INVALID: The provided peer id is invalid. See https://core.telegram.org/method/upload.getFile for reference. Can be used by bots. UploadGetFileHashes invokes method upload.getFileHashes#9156982a returning error if any. Get SHA256 hashes for verifying downloaded files Possible errors: 400 LOCATION_INVALID: The provided location is invalid. See https://core.telegram.org/method/upload.getFileHashes for reference. Can be used by bots. UploadGetWebFile invokes method upload.getWebFile#24e6818d returning error if any. See https://core.telegram.org/method/upload.getWebFile for reference. UploadReuploadCDNFile invokes method upload.reuploadCdnFile#9b2754a8 returning error if any. Request a reupload of a certain file to a CDN DC¹. Links: 1. https://core.telegram.org/cdn Possible errors: 400 CDN_METHOD_INVALID: You can't call this method in a CDN DC. 500 CDN_UPLOAD_TIMEOUT: A server-side timeout occurred while reuploading the file to the CDN DC. 400 FILE_TOKEN_INVALID: The specified file token is invalid. 400 RSA_DECRYPT_FAILED: Internal RSA decryption failed. See https://core.telegram.org/method/upload.reuploadCdnFile for reference. Can be used by bots. UploadSaveBigFilePart invokes method upload.saveBigFilePart#de7b673d returning error if any. Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods. Possible errors: 400 FILE_PARTS_INVALID: The number of file parts is invalid. 400 FILE_PART_EMPTY: The provided file part is empty. 400 FILE_PART_INVALID: The file part number is invalid. 400 FILE_PART_SIZE_CHANGED: Provided file part size has changed. 400 FILE_PART_SIZE_INVALID: The provided file part size is invalid. 400 FILE_PART_TOO_BIG: The uploaded file part is too big. See https://core.telegram.org/method/upload.saveBigFilePart for reference. Can be used by bots. UploadSaveFilePart invokes method upload.saveFilePart#b304a621 returning error if any. Saves a part of file for further sending to one of the methods. Possible errors: 400 FILE_PART_EMPTY: The provided file part is empty. 400 FILE_PART_INVALID: The file part number is invalid. 400 MSG_ID_INVALID: Invalid message ID provided. See https://core.telegram.org/method/upload.saveFilePart for reference. Can be used by bots. UsersGetFullUser invokes method users.getFullUser#b60f5918 returning error if any. Returns extended user info by ID. Possible errors: 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 MSG_ID_INVALID: Invalid message ID provided. 400 USERNAME_OCCUPIED: The provided username is already occupied. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/users.getFullUser for reference. Can be used by bots. UsersGetUsers invokes method users.getUsers#d91a548 returning error if any. Returns basic user info according to their identifiers. Possible errors: 400 CHANNEL_INVALID: The provided channel is invalid. 400 CHANNEL_PRIVATE: You haven't joined this channel/supergroup. 400 FROM_MESSAGE_BOT_DISABLED: Bots can't use fromMessage min constructors. 400 MSG_ID_INVALID: Invalid message ID provided. 400 USER_BANNED_IN_CHANNEL: You're banned from sending messages in supergroups/channels. See https://core.telegram.org/method/users.getUsers for reference. Can be used by bots. UsersSetSecureValueErrors invokes method users.setSecureValueErrors#90c894b5 returning error if any. Notify the user that the sent passport¹ data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change). Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues. Links: 1. https://core.telegram.org/passport Possible errors: 403 USER_BOT_INVALID: User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts. 400 USER_BOT_REQUIRED: This method can only be called by a bot. 400 USER_ID_INVALID: The provided user ID is invalid. See https://core.telegram.org/method/users.setSecureValueErrors for reference. Can be used by bots. func NewClient(invoker Invoker) *Client func github.com/gotd/td/telegram.(*Client).API() *Client func github.com/gotd/td/telegram/auth.NewClient(api *Client, rand io.Reader, appID int, appHash string) *auth.Client 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.NewQR(api *Client, appID int, appHash string, opts qrlogin.Options) qrlogin.QR
CodeSettings represents TL type `codeSettings#ad253d78`. Settings used by telegram servers for sending the confirm code. Example implementations: telegram for android¹, tdlib². Links: 1. https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/java/org/telegram/ui/LoginActivity.java 2. https://github.com/tdlib/td/tree/master/td/telegram/SendCodeHelper.cpp See https://core.telegram.org/constructor/codeSettings for reference. If a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the android SMS receiver APIs¹ Links: 1) https://developers.google.com/identity/sms-retriever/overview Whether Firebase auth is supported Whether to allow phone verification via phone calls¹. Links: 1) https://core.telegram.org/api/auth Whether this device supports receiving the code using the auth.codeTypeMissedCall¹ method Links: 1) https://core.telegram.org/constructor/auth.codeTypeMissedCall Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification. Use SetAppSandbox and GetAppSandbox helpers. Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Previously stored future auth tokens, see the documentation for more info »¹ Links: 1) https://core.telegram.org/api/auth#future-auth-tokens Use SetLogoutTokens and GetLogoutTokens helpers. Used only by official iOS apps for Firebase auth: device token for apple push. Use SetToken and GetToken helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills CodeSettings from given interface. GetAllowAppHash returns value of AllowAppHash conditional field. GetAllowFirebase returns value of AllowFirebase conditional field. GetAllowFlashcall returns value of AllowFlashcall conditional field. GetAllowMissedCall returns value of AllowMissedCall conditional field. GetAppSandbox returns value of AppSandbox conditional field and boolean which is true if field was set. GetCurrentNumber returns value of CurrentNumber conditional field. GetLogoutTokens returns value of LogoutTokens conditional field and boolean which is true if field was set. GetToken returns value of Token conditional field and boolean which is true if field was set. SetAllowAppHash sets value of AllowAppHash conditional field. SetAllowFirebase sets value of AllowFirebase conditional field. SetAllowFlashcall sets value of AllowFlashcall conditional field. SetAllowMissedCall sets value of AllowMissedCall conditional field. SetAppSandbox sets value of AppSandbox conditional field. SetCurrentNumber sets value of CurrentNumber conditional field. SetFlags sets flags for non-zero fields. SetLogoutTokens sets value of LogoutTokens conditional field. SetToken sets value of Token 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. (*CodeSettings) Zero() bool *CodeSettings : github.com/gotd/td/bin.BareDecoder *CodeSettings : github.com/gotd/td/bin.BareEncoder *CodeSettings : github.com/gotd/td/bin.Decoder *CodeSettings : github.com/gotd/td/bin.Encoder *CodeSettings : github.com/gotd/td/bin.Object *CodeSettings : github.com/gotd/td/tdp.Object *CodeSettings : fmt.Stringer func (*AccountSendChangePhoneCodeRequest).GetSettings() (value CodeSettings) func (*AccountSendConfirmPhoneCodeRequest).GetSettings() (value CodeSettings) func (*AccountSendVerifyPhoneCodeRequest).GetSettings() (value CodeSettings) func (*AuthSendCodeRequest).GetSettings() (value CodeSettings)
Config represents TL type `config#cc1a241e`. Current configuration See https://core.telegram.org/constructor/config for reference. Autologin token, click here for more info on URL authorization »¹. Links: 1) https://core.telegram.org/api/url-authorization#link-url-authorization Use SetAutologinToken and GetAutologinToken helpers. URL to use to auto-update the current app Use SetAutoupdateURLPrefix and GetAutoupdateURLPrefix helpers. Basic language pack version Use SetBaseLangPackVersion and GetBaseLangPackVersion helpers. Indicates that telegram is probably censored by governments/ISPs in the current region VoIP connection timeout: if the instance of libtgvoip on the other side of the call doesn't connect to our instance of libtgvoip within the specified time (in milliseconds), the call must be aborted If during a VoIP call a packet isn't received for the specified period of time, the call must be aborted Maximum allowed outgoing ring time in VoIP calls: if the user we're calling doesn't reply within the specified time (in milliseconds), we should hang up the call Maximum allowed incoming ring time in VoIP calls: if the current user doesn't reply within the specified time (in milliseconds), the call will be automatically refused Maximum length of caption (length in utf8 codepoints) Indicates that round videos (video notes) and voice messages sent in channels and older than the specified period must be marked as read Maximum member count for normal groups¹ Links: 1) https://core.telegram.org/api/channel DC IP list Domain name for fetching encrypted DC list from DNS TXT record Current date at the server Whether the client should use P2P by default for phone calls with contacts Only messages with age smaller than the one specified can be edited Expiration date of this config: when it expires it'll have to be refetched using help getConfig¹ Links: 1) https://core.telegram.org/method/help.getConfig Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to forcefully connect using IPv6 dcOptions¹, even if the client knows that IPv4 is available. Links: 1) https://core.telegram.org/type/DcOption Maximum number of messages that can be forwarded at once using messages forwardMessages¹. Links: 1) https://core.telegram.org/method/messages.forwardMessages Username of the bot to use to search for GIFs Use SetGifSearchUsername and GetGifSearchUsername helpers. Username of the bot to use for image search Use SetImgSearchUsername and GetImgSearchUsername helpers. Language pack version Use SetLangPackVersion and GetLangPackVersion helpers. The domain to use to parse deep links »¹. Links: 1) https://core.telegram.org/api/links Maximum member count for supergroups¹ Links: 1) https://core.telegram.org/api/channel Maximum length of messages (length in utf8 codepoints) If we are offline, but online from some other client then delay sending the offline notification for notify_cloud_delay_ms milliseconds. If some other client is online, then delay notification for notification_default_delay_ms milliseconds Delay before offline status needs to be sent to the server Time without any user activity after which it should be treated offline If we are offline, but were online from some other client in last online_cloud_timeout_ms milliseconds after we had gone offline, then delay offline notification for notify_cloud_delay_ms milliseconds. The client should update its online status¹ every N milliseconds Links: 1) https://core.telegram.org/method/account.updateStatus Whether the client should preload featured stickers Not for client use Not for client use Exponential decay rate for computing top peer rating¹ Links: 1) https://core.telegram.org/api/top-rating Default message reaction¹ Links: 1) https://core.telegram.org/api/reactions Use SetReactionsDefault and GetReactionsDefault helpers. Whether incoming private messages can be deleted for both participants Only private messages with age smaller than the specified can be deleted Only channel/supergroup messages with age smaller than the specified can be deleted ID of the map provider to use for venues Use SetStaticMapsProvider and GetStaticMapsProvider helpers. Maximum number of recent stickers Suggested language code Use SetSuggestedLangCode and GetSuggestedLangCode helpers. Whether we're connected to the test DCs ID of the DC that returned the reply Temporary passport¹ sessions Links: 1) https://core.telegram.org/passport Use SetTmpSessions and GetTmpSessions helpers. Username of the bot to use to search for venues Use SetVenueSearchUsername and GetVenueSearchUsername helpers. DC ID to use to download webfiles¹ Links: 1) https://core.telegram.org/api/files#downloading-webfiles Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Config from given interface. GetAutologinToken returns value of AutologinToken conditional field and boolean which is true if field was set. GetAutoupdateURLPrefix returns value of AutoupdateURLPrefix conditional field and boolean which is true if field was set. GetBaseLangPackVersion returns value of BaseLangPackVersion conditional field and boolean which is true if field was set. GetBlockedMode returns value of BlockedMode conditional field. GetCallConnectTimeoutMs returns value of CallConnectTimeoutMs field. GetCallPacketTimeoutMs returns value of CallPacketTimeoutMs field. GetCallReceiveTimeoutMs returns value of CallReceiveTimeoutMs field. GetCallRingTimeoutMs returns value of CallRingTimeoutMs field. GetCaptionLengthMax returns value of CaptionLengthMax field. GetChannelsReadMediaPeriod returns value of ChannelsReadMediaPeriod field. GetChatSizeMax returns value of ChatSizeMax field. GetDCOptions returns value of DCOptions field. GetDCTxtDomainName returns value of DCTxtDomainName field. GetDate returns value of Date field. GetDefaultP2PContacts returns value of DefaultP2PContacts conditional field. GetEditTimeLimit returns value of EditTimeLimit field. GetExpires returns value of Expires field. GetForceTryIpv6 returns value of ForceTryIpv6 conditional field. GetForwardedCountMax returns value of ForwardedCountMax field. GetGifSearchUsername returns value of GifSearchUsername conditional field and boolean which is true if field was set. GetImgSearchUsername returns value of ImgSearchUsername conditional field and boolean which is true if field was set. GetLangPackVersion returns value of LangPackVersion conditional field and boolean which is true if field was set. GetMeURLPrefix returns value of MeURLPrefix field. GetMegagroupSizeMax returns value of MegagroupSizeMax field. GetMessageLengthMax returns value of MessageLengthMax field. GetNotifyCloudDelayMs returns value of NotifyCloudDelayMs field. GetNotifyDefaultDelayMs returns value of NotifyDefaultDelayMs field. GetOfflineBlurTimeoutMs returns value of OfflineBlurTimeoutMs field. GetOfflineIdleTimeoutMs returns value of OfflineIdleTimeoutMs field. GetOnlineCloudTimeoutMs returns value of OnlineCloudTimeoutMs field. GetOnlineUpdatePeriodMs returns value of OnlineUpdatePeriodMs field. GetPreloadFeaturedStickers returns value of PreloadFeaturedStickers conditional field. GetPushChatLimit returns value of PushChatLimit field. GetPushChatPeriodMs returns value of PushChatPeriodMs field. GetRatingEDecay returns value of RatingEDecay field. GetReactionsDefault returns value of ReactionsDefault conditional field and boolean which is true if field was set. GetRevokePmInbox returns value of RevokePmInbox conditional field. GetRevokePmTimeLimit returns value of RevokePmTimeLimit field. GetRevokeTimeLimit returns value of RevokeTimeLimit field. GetStaticMapsProvider returns value of StaticMapsProvider conditional field and boolean which is true if field was set. GetStickersRecentLimit returns value of StickersRecentLimit field. GetSuggestedLangCode returns value of SuggestedLangCode conditional field and boolean which is true if field was set. GetTestMode returns value of TestMode field. GetThisDC returns value of ThisDC field. GetTmpSessions returns value of TmpSessions conditional field and boolean which is true if field was set. GetVenueSearchUsername returns value of VenueSearchUsername conditional field and boolean which is true if field was set. GetWebfileDCID returns value of WebfileDCID field. SetAutologinToken sets value of AutologinToken conditional field. SetAutoupdateURLPrefix sets value of AutoupdateURLPrefix conditional field. SetBaseLangPackVersion sets value of BaseLangPackVersion conditional field. SetBlockedMode sets value of BlockedMode conditional field. SetDefaultP2PContacts sets value of DefaultP2PContacts conditional field. SetFlags sets flags for non-zero fields. SetForceTryIpv6 sets value of ForceTryIpv6 conditional field. SetGifSearchUsername sets value of GifSearchUsername conditional field. SetImgSearchUsername sets value of ImgSearchUsername conditional field. SetLangPackVersion sets value of LangPackVersion conditional field. SetPreloadFeaturedStickers sets value of PreloadFeaturedStickers conditional field. SetReactionsDefault sets value of ReactionsDefault conditional field. SetRevokePmInbox sets value of RevokePmInbox conditional field. SetStaticMapsProvider sets value of StaticMapsProvider conditional field. SetSuggestedLangCode sets value of SuggestedLangCode conditional field. SetTmpSessions sets value of TmpSessions conditional field. SetVenueSearchUsername sets value of VenueSearchUsername 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. (*Config) Zero() bool *Config : github.com/gotd/td/bin.BareDecoder *Config : github.com/gotd/td/bin.BareEncoder *Config : github.com/gotd/td/bin.Decoder *Config : github.com/gotd/td/bin.Encoder *Config : github.com/gotd/td/bin.Object *Config : github.com/gotd/td/tdp.Object *Config : fmt.Stringer func (*Client).HelpGetConfig(ctx context.Context) (*Config, error) func github.com/gotd/td/session.Config.TG() Config func github.com/gotd/td/telegram.(*Client).Config() Config func github.com/gotd/td/telegram/internal/manager.(*AtomicConfig).Load() Config func github.com/gotd/td/session.ConfigFromTG(c Config) session.Config func github.com/gotd/td/telegram/internal/manager.NewAtomicConfig(cfg Config) *manager.AtomicConfig func github.com/gotd/td/telegram/internal/manager.(*AtomicConfig).Store(cfg Config) func github.com/gotd/td/telegram/internal/manager.Handler.OnSession(cfg Config, s mtproto.Session) error func github.com/gotd/td/telegram/internal/manager.NoopHandler.OnSession(cfg Config, s mtproto.Session) error
ConfigHandler is a Config event handler. func UpdateDispatcher.OnConfig(handler ConfigHandler)
Contact represents TL type `contact#145ade0b`. A contact of the current user that is registered in the system. See https://core.telegram.org/constructor/contact for reference. Current user is in the user's contact list User identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Contact from given interface. GetMutual returns value of Mutual 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. (*Contact) Zero() bool *Contact : github.com/gotd/td/bin.BareDecoder *Contact : github.com/gotd/td/bin.BareEncoder *Contact : github.com/gotd/td/bin.Decoder *Contact : github.com/gotd/td/bin.Encoder *Contact : github.com/gotd/td/bin.Object *Contact : github.com/gotd/td/tdp.Object *Contact : fmt.Stringer func (*ContactsContacts).GetContacts() (value []Contact)
ContactsAcceptContactRequest represents TL type `contacts.acceptContact#f831a20f`. If the add contact action bar is active¹, add that user as contact Links: 1. https://core.telegram.org/api/action-bar#add-contact See https://core.telegram.org/method/contacts.acceptContact for reference. The user to add as contact Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsAcceptContactRequest 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. (*ContactsAcceptContactRequest) Zero() bool *ContactsAcceptContactRequest : github.com/gotd/td/bin.BareDecoder *ContactsAcceptContactRequest : github.com/gotd/td/bin.BareEncoder *ContactsAcceptContactRequest : github.com/gotd/td/bin.Decoder *ContactsAcceptContactRequest : github.com/gotd/td/bin.Encoder *ContactsAcceptContactRequest : github.com/gotd/td/bin.Object *ContactsAcceptContactRequest : github.com/gotd/td/tdp.Object *ContactsAcceptContactRequest : fmt.Stringer
ContactsAddContactRequest represents TL type `contacts.addContact#e8f463d0`. Add an existing telegram user as contact. Use contacts.importContacts¹ to add contacts by phone number, without knowing their Telegram ID. Links: 1. https://core.telegram.org/method/contacts.importContacts See https://core.telegram.org/method/contacts.addContact for reference. Allow the other user to see our phone number? First name Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Telegram ID of the other user Last name User's phone number, may be omitted to simply add the user to the contact list, without a phone number. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsAddContactRequest from given interface. GetAddPhonePrivacyException returns value of AddPhonePrivacyException conditional field. GetFirstName returns value of FirstName field. GetID returns value of ID field. GetLastName returns value of LastName field. GetPhone returns value of Phone field. SetAddPhonePrivacyException sets value of AddPhonePrivacyException 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. (*ContactsAddContactRequest) Zero() bool *ContactsAddContactRequest : github.com/gotd/td/bin.BareDecoder *ContactsAddContactRequest : github.com/gotd/td/bin.BareEncoder *ContactsAddContactRequest : github.com/gotd/td/bin.Decoder *ContactsAddContactRequest : github.com/gotd/td/bin.Encoder *ContactsAddContactRequest : github.com/gotd/td/bin.Object *ContactsAddContactRequest : github.com/gotd/td/tdp.Object *ContactsAddContactRequest : fmt.Stringer func (*Client).ContactsAddContact(ctx context.Context, request *ContactsAddContactRequest) (UpdatesClass, error)
ContactsBlocked represents TL type `contacts.blocked#ade1591`. Full list of blocked users. See https://core.telegram.org/constructor/contacts.blocked for reference. List of blocked users Blocked chats List of users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsBlocked from given interface. GetBlocked returns value of Blocked field. GetChats returns value of Chats field. GetUsers returns value of Users 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. (*ContactsBlocked) Zero() bool *ContactsBlocked : ContactsBlockedClass *ContactsBlocked : github.com/gotd/td/bin.BareDecoder *ContactsBlocked : github.com/gotd/td/bin.BareEncoder *ContactsBlocked : github.com/gotd/td/bin.Decoder *ContactsBlocked : github.com/gotd/td/bin.Encoder *ContactsBlocked : github.com/gotd/td/bin.Object *ContactsBlocked : github.com/gotd/td/tdp.Object *ContactsBlocked : fmt.Stringer func ContactsBlockedArray.First() (v ContactsBlocked, ok bool) func ContactsBlockedArray.Last() (v ContactsBlocked, ok bool) func (*ContactsBlockedArray).Pop() (v ContactsBlocked, ok bool) func (*ContactsBlockedArray).PopFirst() (v ContactsBlocked, ok bool)
ContactsBlockedArray is adapter for slice of ContactsBlocked. 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 ContactsBlocked. Sort sorts slice of ContactsBlocked. SortStable sorts slice of ContactsBlocked. func ContactsBlockedArray.Retain(keep func(x ContactsBlocked) bool) ContactsBlockedArray func ContactsBlockedArray.Sort(less func(a, b ContactsBlocked) bool) ContactsBlockedArray func ContactsBlockedArray.SortStable(less func(a, b ContactsBlocked) bool) ContactsBlockedArray func ContactsBlockedClassArray.AsContactsBlocked() (to ContactsBlockedArray)
ContactsBlocked boxes the ContactsBlockedClass providing a helper. Blocked ContactsBlockedClass Decode implements bin.Decoder for ContactsBlockedBox. Encode implements bin.Encode for ContactsBlockedBox. *ContactsBlockedBox : github.com/gotd/td/bin.Decoder *ContactsBlockedBox : github.com/gotd/td/bin.Encoder *ContactsBlockedBox : github.com/gotd/td/bin.Object
ContactsBlockedClass represents contacts.Blocked generic type. See https://core.telegram.org/type/contacts.Blocked for reference. Example: g, err := tg.DecodeContactsBlocked(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ContactsBlocked: // contacts.blocked#ade1591 case *tg.ContactsBlockedSlice: // contacts.blockedSlice#e1664194 default: panic(v) } ( ContactsBlockedClass) Decode(b *bin.Buffer) error ( ContactsBlockedClass) DecodeBare(b *bin.Buffer) error ( ContactsBlockedClass) Encode(b *bin.Buffer) error ( ContactsBlockedClass) EncodeBare(b *bin.Buffer) error List of blocked users Blocked chats List of users Blocked chats List of users 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. *ContactsBlocked *ContactsBlockedSlice ContactsBlockedClass : github.com/gotd/td/bin.BareDecoder ContactsBlockedClass : github.com/gotd/td/bin.BareEncoder ContactsBlockedClass : github.com/gotd/td/bin.Decoder ContactsBlockedClass : github.com/gotd/td/bin.Encoder ContactsBlockedClass : github.com/gotd/td/bin.Object ContactsBlockedClass : fmt.Stringer func DecodeContactsBlocked(buf *bin.Buffer) (ContactsBlockedClass, error) func (*Client).ContactsGetBlocked(ctx context.Context, request *ContactsGetBlockedRequest) (ContactsBlockedClass, error) func ContactsBlockedClassArray.First() (v ContactsBlockedClass, ok bool) func ContactsBlockedClassArray.Last() (v ContactsBlockedClass, ok bool) func (*ContactsBlockedClassArray).Pop() (v ContactsBlockedClass, ok bool) func (*ContactsBlockedClassArray).PopFirst() (v ContactsBlockedClass, ok bool)
ContactsBlockedClassArray is adapter for slice of ContactsBlockedClass. AsContactsBlocked returns copy with only ContactsBlocked constructors. AsContactsBlockedSlice returns copy with only ContactsBlockedSlice 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 ContactsBlockedClass. Sort sorts slice of ContactsBlockedClass. SortStable sorts slice of ContactsBlockedClass. func ContactsBlockedClassArray.Retain(keep func(x ContactsBlockedClass) bool) ContactsBlockedClassArray func ContactsBlockedClassArray.Sort(less func(a, b ContactsBlockedClass) bool) ContactsBlockedClassArray func ContactsBlockedClassArray.SortStable(less func(a, b ContactsBlockedClass) bool) ContactsBlockedClassArray
ContactsBlockedSlice represents TL type `contacts.blockedSlice#e1664194`. Incomplete list of blocked users. See https://core.telegram.org/constructor/contacts.blockedSlice for reference. List of blocked users Blocked chats Total number of elements in the list List of users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsBlockedSlice from given interface. GetBlocked returns value of Blocked field. GetChats returns value of Chats field. GetCount returns value of Count field. GetUsers returns value of Users 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. (*ContactsBlockedSlice) Zero() bool *ContactsBlockedSlice : ContactsBlockedClass *ContactsBlockedSlice : github.com/gotd/td/bin.BareDecoder *ContactsBlockedSlice : github.com/gotd/td/bin.BareEncoder *ContactsBlockedSlice : github.com/gotd/td/bin.Decoder *ContactsBlockedSlice : github.com/gotd/td/bin.Encoder *ContactsBlockedSlice : github.com/gotd/td/bin.Object *ContactsBlockedSlice : github.com/gotd/td/tdp.Object *ContactsBlockedSlice : fmt.Stringer func ContactsBlockedSliceArray.First() (v ContactsBlockedSlice, ok bool) func ContactsBlockedSliceArray.Last() (v ContactsBlockedSlice, ok bool) func (*ContactsBlockedSliceArray).Pop() (v ContactsBlockedSlice, ok bool) func (*ContactsBlockedSliceArray).PopFirst() (v ContactsBlockedSlice, ok bool)
ContactsBlockedSliceArray is adapter for slice of ContactsBlockedSlice. 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 ContactsBlockedSlice. Sort sorts slice of ContactsBlockedSlice. SortStable sorts slice of ContactsBlockedSlice. func ContactsBlockedClassArray.AsContactsBlockedSlice() (to ContactsBlockedSliceArray) func ContactsBlockedSliceArray.Retain(keep func(x ContactsBlockedSlice) bool) ContactsBlockedSliceArray func ContactsBlockedSliceArray.Sort(less func(a, b ContactsBlockedSlice) bool) ContactsBlockedSliceArray func ContactsBlockedSliceArray.SortStable(less func(a, b ContactsBlockedSlice) bool) ContactsBlockedSliceArray
ContactsBlockFromRepliesRequest represents TL type `contacts.blockFromReplies#29a8962c`. Stop getting notifications about discussion replies¹ of a certain user in @replies Links: 1. https://core.telegram.org/api/discussion See https://core.telegram.org/method/contacts.blockFromReplies for reference. Whether to delete all @replies messages from this user as well Whether to delete the specified message as well Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of the message in the @replies¹ chat Links: 1) https://core.telegram.org/api/discussion#replies Whether to also report this user for spam Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsBlockFromRepliesRequest from given interface. GetDeleteHistory returns value of DeleteHistory conditional field. GetDeleteMessage returns value of DeleteMessage conditional field. GetMsgID returns value of MsgID field. GetReportSpam returns value of ReportSpam conditional field. SetDeleteHistory sets value of DeleteHistory conditional field. SetDeleteMessage sets value of DeleteMessage conditional field. SetFlags sets flags for non-zero fields. SetReportSpam sets value of ReportSpam 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. (*ContactsBlockFromRepliesRequest) Zero() bool *ContactsBlockFromRepliesRequest : github.com/gotd/td/bin.BareDecoder *ContactsBlockFromRepliesRequest : github.com/gotd/td/bin.BareEncoder *ContactsBlockFromRepliesRequest : github.com/gotd/td/bin.Decoder *ContactsBlockFromRepliesRequest : github.com/gotd/td/bin.Encoder *ContactsBlockFromRepliesRequest : github.com/gotd/td/bin.Object *ContactsBlockFromRepliesRequest : github.com/gotd/td/tdp.Object *ContactsBlockFromRepliesRequest : fmt.Stringer func (*Client).ContactsBlockFromReplies(ctx context.Context, request *ContactsBlockFromRepliesRequest) (UpdatesClass, error)
ContactsBlockRequest represents TL type `contacts.block#2e2e8734`. Adds a peer to a blocklist, see here »¹ for more info. Links: 1. https://core.telegram.org/api/block See https://core.telegram.org/method/contacts.block for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer Whether the peer should be added to the story blocklist; if not set, the peer will be added to the main blocklist, see here »¹ for more info. Links: 1) https://core.telegram.org/api/block Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsBlockRequest from given interface. GetID returns value of ID field. GetMyStoriesFrom returns value of MyStoriesFrom conditional field. SetFlags sets flags for non-zero fields. SetMyStoriesFrom sets value of MyStoriesFrom 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. (*ContactsBlockRequest) Zero() bool *ContactsBlockRequest : github.com/gotd/td/bin.BareDecoder *ContactsBlockRequest : github.com/gotd/td/bin.BareEncoder *ContactsBlockRequest : github.com/gotd/td/bin.Decoder *ContactsBlockRequest : github.com/gotd/td/bin.Encoder *ContactsBlockRequest : github.com/gotd/td/bin.Object *ContactsBlockRequest : github.com/gotd/td/tdp.Object *ContactsBlockRequest : fmt.Stringer func (*Client).ContactsBlock(ctx context.Context, request *ContactsBlockRequest) (bool, error)
ContactsContacts represents TL type `contacts.contacts#eae87e42`. The current user's contact list and info on users. See https://core.telegram.org/constructor/contacts.contacts for reference. Contact list Number of contacts that were saved successfully User list AsModified tries to map ContactsContacts to ContactsContacts. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsContacts from given interface. GetContacts returns value of Contacts field. GetSavedCount returns value of SavedCount 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. (*ContactsContacts) Zero() bool *ContactsContacts : ContactsContactsClass *ContactsContacts : github.com/gotd/td/bin.BareDecoder *ContactsContacts : github.com/gotd/td/bin.BareEncoder *ContactsContacts : github.com/gotd/td/bin.Decoder *ContactsContacts : github.com/gotd/td/bin.Encoder *ContactsContacts : github.com/gotd/td/bin.Object *ContactsContacts : github.com/gotd/td/tdp.Object *ContactsContacts : fmt.Stringer func (*ContactsContacts).AsModified() (*ContactsContacts, bool) func ContactsContactsArray.First() (v ContactsContacts, ok bool) func ContactsContactsArray.Last() (v ContactsContacts, ok bool) func (*ContactsContactsArray).Pop() (v ContactsContacts, ok bool) func (*ContactsContactsArray).PopFirst() (v ContactsContacts, ok bool) func ContactsContactsClass.AsModified() (*ContactsContacts, bool) func ContactsContactsClassArray.AppendOnlyModified(to []*ContactsContacts) []*ContactsContacts func ContactsContactsClassArray.AsModified() (to []*ContactsContacts) func ContactsContactsClassArray.FirstAsModified() (v *ContactsContacts, ok bool) func ContactsContactsClassArray.LastAsModified() (v *ContactsContacts, ok bool) func (*ContactsContactsClassArray).PopAsModified() (v *ContactsContacts, ok bool) func (*ContactsContactsClassArray).PopFirstAsModified() (v *ContactsContacts, ok bool) func (*ContactsContactsNotModified).AsModified() (*ContactsContacts, bool) func ContactsContactsClassArray.AppendOnlyModified(to []*ContactsContacts) []*ContactsContacts
ContactsContactsArray is adapter for slice of ContactsContacts. 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 ContactsContacts. Sort sorts slice of ContactsContacts. SortStable sorts slice of ContactsContacts. func ContactsContactsArray.Retain(keep func(x ContactsContacts) bool) ContactsContactsArray func ContactsContactsArray.Sort(less func(a, b ContactsContacts) bool) ContactsContactsArray func ContactsContactsArray.SortStable(less func(a, b ContactsContacts) bool) ContactsContactsArray func ContactsContactsClassArray.AsContactsContacts() (to ContactsContactsArray)
ContactsContacts boxes the ContactsContactsClass providing a helper. Contacts ContactsContactsClass Decode implements bin.Decoder for ContactsContactsBox. Encode implements bin.Encode for ContactsContactsBox. *ContactsContactsBox : github.com/gotd/td/bin.Decoder *ContactsContactsBox : github.com/gotd/td/bin.Encoder *ContactsContactsBox : github.com/gotd/td/bin.Object
ContactsContactsClass represents contacts.Contacts generic type. See https://core.telegram.org/type/contacts.Contacts for reference. Example: g, err := tg.DecodeContactsContacts(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ContactsContactsNotModified: // contacts.contactsNotModified#b74ba9d2 case *tg.ContactsContacts: // contacts.contacts#eae87e42 default: panic(v) } AsModified tries to map ContactsContactsClass to ContactsContacts. ( ContactsContactsClass) Decode(b *bin.Buffer) error ( ContactsContactsClass) DecodeBare(b *bin.Buffer) error ( ContactsContactsClass) Encode(b *bin.Buffer) error ( ContactsContactsClass) 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. *ContactsContacts *ContactsContactsNotModified ContactsContactsClass : github.com/gotd/td/bin.BareDecoder ContactsContactsClass : github.com/gotd/td/bin.BareEncoder ContactsContactsClass : github.com/gotd/td/bin.Decoder ContactsContactsClass : github.com/gotd/td/bin.Encoder ContactsContactsClass : github.com/gotd/td/bin.Object ContactsContactsClass : fmt.Stringer func DecodeContactsContacts(buf *bin.Buffer) (ContactsContactsClass, error) func (*Client).ContactsGetContacts(ctx context.Context, hash int64) (ContactsContactsClass, error) func ContactsContactsClassArray.First() (v ContactsContactsClass, ok bool) func ContactsContactsClassArray.Last() (v ContactsContactsClass, ok bool) func (*ContactsContactsClassArray).Pop() (v ContactsContactsClass, ok bool) func (*ContactsContactsClassArray).PopFirst() (v ContactsContactsClass, ok bool)
ContactsContactsClassArray is adapter for slice of ContactsContactsClass. AppendOnlyModified appends only Modified constructors to given slice. AsContactsContacts returns copy with only ContactsContacts 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 ContactsContactsClass. Sort sorts slice of ContactsContactsClass. SortStable sorts slice of ContactsContactsClass. func ContactsContactsClassArray.Retain(keep func(x ContactsContactsClass) bool) ContactsContactsClassArray func ContactsContactsClassArray.Sort(less func(a, b ContactsContactsClass) bool) ContactsContactsClassArray func ContactsContactsClassArray.SortStable(less func(a, b ContactsContactsClass) bool) ContactsContactsClassArray
ContactsContactsNotModified represents TL type `contacts.contactsNotModified#b74ba9d2`. Contact list on the server is the same as the list on the client. See https://core.telegram.org/constructor/contacts.contactsNotModified for reference. AsModified tries to map ContactsContactsNotModified to ContactsContacts. 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. (*ContactsContactsNotModified) Zero() bool *ContactsContactsNotModified : ContactsContactsClass *ContactsContactsNotModified : github.com/gotd/td/bin.BareDecoder *ContactsContactsNotModified : github.com/gotd/td/bin.BareEncoder *ContactsContactsNotModified : github.com/gotd/td/bin.Decoder *ContactsContactsNotModified : github.com/gotd/td/bin.Encoder *ContactsContactsNotModified : github.com/gotd/td/bin.Object *ContactsContactsNotModified : github.com/gotd/td/tdp.Object *ContactsContactsNotModified : fmt.Stringer
ContactsDeleteByPhonesRequest represents TL type `contacts.deleteByPhones#1013fd9e`. Delete contacts by phone number See https://core.telegram.org/method/contacts.deleteByPhones for reference. Phone numbers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsDeleteByPhonesRequest from given interface. GetPhones returns value of Phones 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. (*ContactsDeleteByPhonesRequest) Zero() bool *ContactsDeleteByPhonesRequest : github.com/gotd/td/bin.BareDecoder *ContactsDeleteByPhonesRequest : github.com/gotd/td/bin.BareEncoder *ContactsDeleteByPhonesRequest : github.com/gotd/td/bin.Decoder *ContactsDeleteByPhonesRequest : github.com/gotd/td/bin.Encoder *ContactsDeleteByPhonesRequest : github.com/gotd/td/bin.Object *ContactsDeleteByPhonesRequest : github.com/gotd/td/tdp.Object *ContactsDeleteByPhonesRequest : fmt.Stringer
ContactsDeleteContactsRequest represents TL type `contacts.deleteContacts#96a0e00`. Deletes several contacts from the list. See https://core.telegram.org/method/contacts.deleteContacts for reference. User ID list Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsDeleteContactsRequest from given interface. GetID returns value of ID field. MapID returns field ID wrapped in InputUserClassArray 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. (*ContactsDeleteContactsRequest) Zero() bool *ContactsDeleteContactsRequest : github.com/gotd/td/bin.BareDecoder *ContactsDeleteContactsRequest : github.com/gotd/td/bin.BareEncoder *ContactsDeleteContactsRequest : github.com/gotd/td/bin.Decoder *ContactsDeleteContactsRequest : github.com/gotd/td/bin.Encoder *ContactsDeleteContactsRequest : github.com/gotd/td/bin.Object *ContactsDeleteContactsRequest : github.com/gotd/td/tdp.Object *ContactsDeleteContactsRequest : fmt.Stringer
ContactsEditCloseFriendsRequest represents TL type `contacts.editCloseFriends#ba6705f0`. Edit the close friends list, see here »¹ for more info. Links: 1. https://core.telegram.org/api/privacy See https://core.telegram.org/method/contacts.editCloseFriends for reference. Full list of user IDs of close friends, see here¹ for more info. Links: 1) https://core.telegram.org/api/privacy Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsEditCloseFriendsRequest 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. (*ContactsEditCloseFriendsRequest) Zero() bool *ContactsEditCloseFriendsRequest : github.com/gotd/td/bin.BareDecoder *ContactsEditCloseFriendsRequest : github.com/gotd/td/bin.BareEncoder *ContactsEditCloseFriendsRequest : github.com/gotd/td/bin.Decoder *ContactsEditCloseFriendsRequest : github.com/gotd/td/bin.Encoder *ContactsEditCloseFriendsRequest : github.com/gotd/td/bin.Object *ContactsEditCloseFriendsRequest : github.com/gotd/td/tdp.Object *ContactsEditCloseFriendsRequest : fmt.Stringer
ContactsExportContactTokenRequest represents TL type `contacts.exportContactToken#f8654027`. Generates a temporary profile link¹ for the currently logged-in user. Links: 1. https://core.telegram.org/api/links#temporary-profile-links See https://core.telegram.org/method/contacts.exportContactToken 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. (*ContactsExportContactTokenRequest) Zero() bool *ContactsExportContactTokenRequest : github.com/gotd/td/bin.BareDecoder *ContactsExportContactTokenRequest : github.com/gotd/td/bin.BareEncoder *ContactsExportContactTokenRequest : github.com/gotd/td/bin.Decoder *ContactsExportContactTokenRequest : github.com/gotd/td/bin.Encoder *ContactsExportContactTokenRequest : github.com/gotd/td/bin.Object *ContactsExportContactTokenRequest : github.com/gotd/td/tdp.Object *ContactsExportContactTokenRequest : fmt.Stringer
ContactsFound represents TL type `contacts.found#b3134d9d`. Users found by name substring and auxiliary data. See https://core.telegram.org/constructor/contacts.found for reference. Found chats Personalized results List of found user identifiers List of users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsFound from given interface. GetChats returns value of Chats field. GetMyResults returns value of MyResults field. GetResults returns value of Results field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapMyResults returns field MyResults wrapped in PeerClassArray helper. MapResults returns field Results wrapped in PeerClassArray 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. (*ContactsFound) Zero() bool *ContactsFound : github.com/gotd/td/bin.BareDecoder *ContactsFound : github.com/gotd/td/bin.BareEncoder *ContactsFound : github.com/gotd/td/bin.Decoder *ContactsFound : github.com/gotd/td/bin.Encoder *ContactsFound : github.com/gotd/td/bin.Object *ContactsFound : github.com/gotd/td/tdp.Object *ContactsFound : fmt.Stringer func (*Client).ContactsSearch(ctx context.Context, request *ContactsSearchRequest) (*ContactsFound, error)
ContactsGetBlockedRequest represents TL type `contacts.getBlocked#9a868f80`. Returns the list of blocked users. See https://core.telegram.org/method/contacts.getBlocked for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The number of list elements to be returned Whether to fetch the story blocklist; if not set, will fetch the main blocklist. See here »¹ for differences between the two. Links: 1) https://core.telegram.org/api/block The number of list elements to be skipped Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsGetBlockedRequest from given interface. GetLimit returns value of Limit field. GetMyStoriesFrom returns value of MyStoriesFrom conditional field. GetOffset returns value of Offset field. SetFlags sets flags for non-zero fields. SetMyStoriesFrom sets value of MyStoriesFrom 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. (*ContactsGetBlockedRequest) Zero() bool *ContactsGetBlockedRequest : github.com/gotd/td/bin.BareDecoder *ContactsGetBlockedRequest : github.com/gotd/td/bin.BareEncoder *ContactsGetBlockedRequest : github.com/gotd/td/bin.Decoder *ContactsGetBlockedRequest : github.com/gotd/td/bin.Encoder *ContactsGetBlockedRequest : github.com/gotd/td/bin.Object *ContactsGetBlockedRequest : github.com/gotd/td/tdp.Object *ContactsGetBlockedRequest : fmt.Stringer func (*Client).ContactsGetBlocked(ctx context.Context, request *ContactsGetBlockedRequest) (ContactsBlockedClass, error)
ContactsGetContactIDsRequest represents TL type `contacts.getContactIDs#7adc669d`. Get contact by telegram IDs See https://core.telegram.org/method/contacts.getContactIDs for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsGetContactIDsRequest 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. (*ContactsGetContactIDsRequest) Zero() bool *ContactsGetContactIDsRequest : github.com/gotd/td/bin.BareDecoder *ContactsGetContactIDsRequest : github.com/gotd/td/bin.BareEncoder *ContactsGetContactIDsRequest : github.com/gotd/td/bin.Decoder *ContactsGetContactIDsRequest : github.com/gotd/td/bin.Encoder *ContactsGetContactIDsRequest : github.com/gotd/td/bin.Object *ContactsGetContactIDsRequest : github.com/gotd/td/tdp.Object *ContactsGetContactIDsRequest : fmt.Stringer
ContactsGetContactsRequest represents TL type `contacts.getContacts#5dd69e12`. Returns the current user's contact list. See https://core.telegram.org/method/contacts.getContacts for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsGetContactsRequest 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. (*ContactsGetContactsRequest) Zero() bool *ContactsGetContactsRequest : github.com/gotd/td/bin.BareDecoder *ContactsGetContactsRequest : github.com/gotd/td/bin.BareEncoder *ContactsGetContactsRequest : github.com/gotd/td/bin.Decoder *ContactsGetContactsRequest : github.com/gotd/td/bin.Encoder *ContactsGetContactsRequest : github.com/gotd/td/bin.Object *ContactsGetContactsRequest : github.com/gotd/td/tdp.Object *ContactsGetContactsRequest : fmt.Stringer
ContactsGetLocatedRequest represents TL type `contacts.getLocated#d348bc44`. Get users and geochats near you, see here »¹ for more info. Links: 1. https://core.telegram.org/api/nearby See https://core.telegram.org/method/contacts.getLocated for reference. While the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag. Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Geolocation If set, the geolocation of the current user will be public for the specified number of seconds; pass 0x7fffffff to disable expiry, 0 to make the current geolocation private; if the flag isn't set, no changes will be applied. Use SetSelfExpires and GetSelfExpires helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsGetLocatedRequest from given interface. GetBackground returns value of Background conditional field. GetGeoPoint returns value of GeoPoint field. GetGeoPointAsNotEmpty returns mapped value of GeoPoint field. GetSelfExpires returns value of SelfExpires conditional field and boolean which is true if field was set. SetBackground sets value of Background conditional field. SetFlags sets flags for non-zero fields. SetSelfExpires sets value of SelfExpires 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. (*ContactsGetLocatedRequest) Zero() bool *ContactsGetLocatedRequest : github.com/gotd/td/bin.BareDecoder *ContactsGetLocatedRequest : github.com/gotd/td/bin.BareEncoder *ContactsGetLocatedRequest : github.com/gotd/td/bin.Decoder *ContactsGetLocatedRequest : github.com/gotd/td/bin.Encoder *ContactsGetLocatedRequest : github.com/gotd/td/bin.Object *ContactsGetLocatedRequest : github.com/gotd/td/tdp.Object *ContactsGetLocatedRequest : fmt.Stringer func (*Client).ContactsGetLocated(ctx context.Context, request *ContactsGetLocatedRequest) (UpdatesClass, error)
ContactsGetSavedRequest represents TL type `contacts.getSaved#82f1e39f`. Get all contacts, requires a takeout session, see here » for more info¹. Links: 1. https://core.telegram.org/api/takeout See https://core.telegram.org/method/contacts.getSaved 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. (*ContactsGetSavedRequest) Zero() bool *ContactsGetSavedRequest : github.com/gotd/td/bin.BareDecoder *ContactsGetSavedRequest : github.com/gotd/td/bin.BareEncoder *ContactsGetSavedRequest : github.com/gotd/td/bin.Decoder *ContactsGetSavedRequest : github.com/gotd/td/bin.Encoder *ContactsGetSavedRequest : github.com/gotd/td/bin.Object *ContactsGetSavedRequest : github.com/gotd/td/tdp.Object *ContactsGetSavedRequest : fmt.Stringer
ContactsGetStatusesRequest represents TL type `contacts.getStatuses#c4a353ee`. Returns the list of contact statuses. See https://core.telegram.org/method/contacts.getStatuses 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. (*ContactsGetStatusesRequest) Zero() bool *ContactsGetStatusesRequest : github.com/gotd/td/bin.BareDecoder *ContactsGetStatusesRequest : github.com/gotd/td/bin.BareEncoder *ContactsGetStatusesRequest : github.com/gotd/td/bin.Decoder *ContactsGetStatusesRequest : github.com/gotd/td/bin.Encoder *ContactsGetStatusesRequest : github.com/gotd/td/bin.Object *ContactsGetStatusesRequest : github.com/gotd/td/tdp.Object *ContactsGetStatusesRequest : fmt.Stringer
ContactsGetTopPeersRequest represents TL type `contacts.getTopPeers#973478b6`. Get most used peers See https://core.telegram.org/method/contacts.getTopPeers for reference. Most used inline bots Most used bots Most frequently visited channels Users we've chatted most frequently with Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Chats to which the users often forwards messages to Users to which the users often forwards messages to Often-opened groups and supergroups Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offset for pagination¹ Links: 1) https://core.telegram.org/api/offsets Most frequently called users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsGetTopPeersRequest from given interface. GetBotsInline returns value of BotsInline conditional field. GetBotsPm returns value of BotsPm conditional field. GetChannels returns value of Channels conditional field. GetCorrespondents returns value of Correspondents conditional field. GetForwardChats returns value of ForwardChats conditional field. GetForwardUsers returns value of ForwardUsers conditional field. GetGroups returns value of Groups conditional field. GetHash returns value of Hash field. GetLimit returns value of Limit field. GetOffset returns value of Offset field. GetPhoneCalls returns value of PhoneCalls conditional field. SetBotsInline sets value of BotsInline conditional field. SetBotsPm sets value of BotsPm conditional field. SetChannels sets value of Channels conditional field. SetCorrespondents sets value of Correspondents conditional field. SetFlags sets flags for non-zero fields. SetForwardChats sets value of ForwardChats conditional field. SetForwardUsers sets value of ForwardUsers conditional field. SetGroups sets value of Groups conditional field. SetPhoneCalls sets value of PhoneCalls 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. (*ContactsGetTopPeersRequest) Zero() bool *ContactsGetTopPeersRequest : github.com/gotd/td/bin.BareDecoder *ContactsGetTopPeersRequest : github.com/gotd/td/bin.BareEncoder *ContactsGetTopPeersRequest : github.com/gotd/td/bin.Decoder *ContactsGetTopPeersRequest : github.com/gotd/td/bin.Encoder *ContactsGetTopPeersRequest : github.com/gotd/td/bin.Object *ContactsGetTopPeersRequest : github.com/gotd/td/tdp.Object *ContactsGetTopPeersRequest : fmt.Stringer func (*Client).ContactsGetTopPeers(ctx context.Context, request *ContactsGetTopPeersRequest) (ContactsTopPeersClass, error)
ContactsImportContactsRequest represents TL type `contacts.importContacts#2c800be5`. Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info. Use contacts.addContact¹ to add Telegram contacts without actually using their phone number. Links: 1. https://core.telegram.org/method/contacts.addContact See https://core.telegram.org/method/contacts.importContacts for reference. List of contacts to import Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsImportContactsRequest from given interface. GetContacts returns value of Contacts 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. (*ContactsImportContactsRequest) Zero() bool *ContactsImportContactsRequest : github.com/gotd/td/bin.BareDecoder *ContactsImportContactsRequest : github.com/gotd/td/bin.BareEncoder *ContactsImportContactsRequest : github.com/gotd/td/bin.Decoder *ContactsImportContactsRequest : github.com/gotd/td/bin.Encoder *ContactsImportContactsRequest : github.com/gotd/td/bin.Object *ContactsImportContactsRequest : github.com/gotd/td/tdp.Object *ContactsImportContactsRequest : fmt.Stringer
ContactsImportContactTokenRequest represents TL type `contacts.importContactToken#13005788`. Obtain user info from a temporary profile link¹. Links: 1. https://core.telegram.org/api/links#temporary-profile-links See https://core.telegram.org/method/contacts.importContactToken for reference. The token extracted from the temporary profile link¹. Links: 1) https://core.telegram.org/api/links#temporary-profile-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsImportContactTokenRequest 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. (*ContactsImportContactTokenRequest) Zero() bool *ContactsImportContactTokenRequest : github.com/gotd/td/bin.BareDecoder *ContactsImportContactTokenRequest : github.com/gotd/td/bin.BareEncoder *ContactsImportContactTokenRequest : github.com/gotd/td/bin.Decoder *ContactsImportContactTokenRequest : github.com/gotd/td/bin.Encoder *ContactsImportContactTokenRequest : github.com/gotd/td/bin.Object *ContactsImportContactTokenRequest : github.com/gotd/td/tdp.Object *ContactsImportContactTokenRequest : fmt.Stringer
ContactsImportedContacts represents TL type `contacts.importedContacts#77d01c3b`. Info on successfully imported contacts. See https://core.telegram.org/constructor/contacts.importedContacts for reference. List of successfully imported contacts Popular contacts List of contact ids that could not be imported due to system limitation and will need to be imported at a later date. List of users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsImportedContacts from given interface. GetImported returns value of Imported field. GetPopularInvites returns value of PopularInvites field. GetRetryContacts returns value of RetryContacts 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. (*ContactsImportedContacts) Zero() bool *ContactsImportedContacts : github.com/gotd/td/bin.BareDecoder *ContactsImportedContacts : github.com/gotd/td/bin.BareEncoder *ContactsImportedContacts : github.com/gotd/td/bin.Decoder *ContactsImportedContacts : github.com/gotd/td/bin.Encoder *ContactsImportedContacts : github.com/gotd/td/bin.Object *ContactsImportedContacts : github.com/gotd/td/tdp.Object *ContactsImportedContacts : fmt.Stringer func (*Client).ContactsImportContacts(ctx context.Context, contacts []InputPhoneContact) (*ContactsImportedContacts, error)
ContactsResetHandler is a ContactsReset event handler. func UpdateDispatcher.OnContactsReset(handler ContactsResetHandler)
ContactsResetSavedRequest represents TL type `contacts.resetSaved#879537f1`. Delete saved contacts See https://core.telegram.org/method/contacts.resetSaved 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. (*ContactsResetSavedRequest) Zero() bool *ContactsResetSavedRequest : github.com/gotd/td/bin.BareDecoder *ContactsResetSavedRequest : github.com/gotd/td/bin.BareEncoder *ContactsResetSavedRequest : github.com/gotd/td/bin.Decoder *ContactsResetSavedRequest : github.com/gotd/td/bin.Encoder *ContactsResetSavedRequest : github.com/gotd/td/bin.Object *ContactsResetSavedRequest : github.com/gotd/td/tdp.Object *ContactsResetSavedRequest : fmt.Stringer
ContactsResetTopPeerRatingRequest represents TL type `contacts.resetTopPeerRating#1ae373ac`. Reset rating¹ of top peer Links: 1. https://core.telegram.org/api/top-rating See https://core.telegram.org/method/contacts.resetTopPeerRating for reference. Top peer category Peer whose rating should be reset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsResetTopPeerRatingRequest from given interface. GetCategory returns value of Category 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. (*ContactsResetTopPeerRatingRequest) Zero() bool *ContactsResetTopPeerRatingRequest : github.com/gotd/td/bin.BareDecoder *ContactsResetTopPeerRatingRequest : github.com/gotd/td/bin.BareEncoder *ContactsResetTopPeerRatingRequest : github.com/gotd/td/bin.Decoder *ContactsResetTopPeerRatingRequest : github.com/gotd/td/bin.Encoder *ContactsResetTopPeerRatingRequest : github.com/gotd/td/bin.Object *ContactsResetTopPeerRatingRequest : github.com/gotd/td/tdp.Object *ContactsResetTopPeerRatingRequest : fmt.Stringer func (*Client).ContactsResetTopPeerRating(ctx context.Context, request *ContactsResetTopPeerRatingRequest) (bool, error)
ContactsResolvedPeer represents TL type `contacts.resolvedPeer#7f077ad9`. Resolved peer See https://core.telegram.org/constructor/contacts.resolvedPeer for reference. Chats The peer Users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsResolvedPeer from given interface. GetChats returns value of Chats field. GetPeer returns value of Peer field. GetUsers returns value of Users 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. (*ContactsResolvedPeer) Zero() bool *ContactsResolvedPeer : github.com/gotd/td/bin.BareDecoder *ContactsResolvedPeer : github.com/gotd/td/bin.BareEncoder *ContactsResolvedPeer : github.com/gotd/td/bin.Decoder *ContactsResolvedPeer : github.com/gotd/td/bin.Encoder *ContactsResolvedPeer : github.com/gotd/td/bin.Object *ContactsResolvedPeer : github.com/gotd/td/tdp.Object *ContactsResolvedPeer : fmt.Stringer func (*Client).ContactsResolvePhone(ctx context.Context, phone string) (*ContactsResolvedPeer, error) func (*Client).ContactsResolveUsername(ctx context.Context, username string) (*ContactsResolvedPeer, error)
ContactsResolvePhoneRequest represents TL type `contacts.resolvePhone#8af94344`. Resolve a phone number to get user info, if their privacy settings allow it. See https://core.telegram.org/method/contacts.resolvePhone for reference. Phone number in international format, possibly obtained from a phone number deep link¹. Links: 1) https://core.telegram.org/api/links#phone-number-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsResolvePhoneRequest from given interface. GetPhone returns value of Phone 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. (*ContactsResolvePhoneRequest) Zero() bool *ContactsResolvePhoneRequest : github.com/gotd/td/bin.BareDecoder *ContactsResolvePhoneRequest : github.com/gotd/td/bin.BareEncoder *ContactsResolvePhoneRequest : github.com/gotd/td/bin.Decoder *ContactsResolvePhoneRequest : github.com/gotd/td/bin.Encoder *ContactsResolvePhoneRequest : github.com/gotd/td/bin.Object *ContactsResolvePhoneRequest : github.com/gotd/td/tdp.Object *ContactsResolvePhoneRequest : fmt.Stringer
ContactsResolveUsernameRequest represents TL type `contacts.resolveUsername#f93ccba3`. Resolve a @username to get peer info See https://core.telegram.org/method/contacts.resolveUsername 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 ContactsResolveUsernameRequest 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. (*ContactsResolveUsernameRequest) Zero() bool *ContactsResolveUsernameRequest : github.com/gotd/td/bin.BareDecoder *ContactsResolveUsernameRequest : github.com/gotd/td/bin.BareEncoder *ContactsResolveUsernameRequest : github.com/gotd/td/bin.Decoder *ContactsResolveUsernameRequest : github.com/gotd/td/bin.Encoder *ContactsResolveUsernameRequest : github.com/gotd/td/bin.Object *ContactsResolveUsernameRequest : github.com/gotd/td/tdp.Object *ContactsResolveUsernameRequest : fmt.Stringer
ContactsSearchRequest represents TL type `contacts.search#11f812d8`. Returns users found by username substring. See https://core.telegram.org/method/contacts.search for reference. Maximum number of users to be returned Target substring Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsSearchRequest from given interface. GetLimit returns value of Limit field. GetQ returns value of Q 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. (*ContactsSearchRequest) Zero() bool *ContactsSearchRequest : github.com/gotd/td/bin.BareDecoder *ContactsSearchRequest : github.com/gotd/td/bin.BareEncoder *ContactsSearchRequest : github.com/gotd/td/bin.Decoder *ContactsSearchRequest : github.com/gotd/td/bin.Encoder *ContactsSearchRequest : github.com/gotd/td/bin.Object *ContactsSearchRequest : github.com/gotd/td/tdp.Object *ContactsSearchRequest : fmt.Stringer func (*Client).ContactsSearch(ctx context.Context, request *ContactsSearchRequest) (*ContactsFound, error)
ContactsSetBlockedRequest represents TL type `contacts.setBlocked#94c65c76`. Replace the contents of an entire blocklist, see here for more info »¹. Links: 1. https://core.telegram.org/api/block See https://core.telegram.org/method/contacts.setBlocked for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Full content of the blocklist. Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Whether to edit the story blocklist; if not set, will edit the main blocklist. See here »¹ for differences between the two. Links: 1) https://core.telegram.org/api/block Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsSetBlockedRequest from given interface. GetID returns value of ID field. GetLimit returns value of Limit field. GetMyStoriesFrom returns value of MyStoriesFrom conditional field. MapID returns field ID wrapped in InputPeerClassArray helper. SetFlags sets flags for non-zero fields. SetMyStoriesFrom sets value of MyStoriesFrom 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. (*ContactsSetBlockedRequest) Zero() bool *ContactsSetBlockedRequest : github.com/gotd/td/bin.BareDecoder *ContactsSetBlockedRequest : github.com/gotd/td/bin.BareEncoder *ContactsSetBlockedRequest : github.com/gotd/td/bin.Decoder *ContactsSetBlockedRequest : github.com/gotd/td/bin.Encoder *ContactsSetBlockedRequest : github.com/gotd/td/bin.Object *ContactsSetBlockedRequest : github.com/gotd/td/tdp.Object *ContactsSetBlockedRequest : fmt.Stringer func (*Client).ContactsSetBlocked(ctx context.Context, request *ContactsSetBlockedRequest) (bool, error)
ContactStatus represents TL type `contactStatus#16d9703b`. Contact status: online / offline. See https://core.telegram.org/constructor/contactStatus for reference. Online status User identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactStatus from given interface. GetStatus returns value of Status 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. (*ContactStatus) Zero() bool *ContactStatus : github.com/gotd/td/bin.BareDecoder *ContactStatus : github.com/gotd/td/bin.BareEncoder *ContactStatus : github.com/gotd/td/bin.Decoder *ContactStatus : github.com/gotd/td/bin.Encoder *ContactStatus : github.com/gotd/td/bin.Object *ContactStatus : github.com/gotd/td/tdp.Object *ContactStatus : fmt.Stringer func (*Client).ContactsGetStatuses(ctx context.Context) ([]ContactStatus, error) func (*ContactStatusVector).GetElems() (value []ContactStatus)
ContactStatusVector is a box for Vector<ContactStatus> Elements of Vector<ContactStatus> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactStatusVector 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. (*ContactStatusVector) Zero() bool *ContactStatusVector : github.com/gotd/td/bin.BareDecoder *ContactStatusVector : github.com/gotd/td/bin.BareEncoder *ContactStatusVector : github.com/gotd/td/bin.Decoder *ContactStatusVector : github.com/gotd/td/bin.Encoder *ContactStatusVector : github.com/gotd/td/bin.Object *ContactStatusVector : github.com/gotd/td/tdp.Object *ContactStatusVector : fmt.Stringer
ContactsToggleTopPeersRequest represents TL type `contacts.toggleTopPeers#8514bdda`. Enable/disable top peers¹ Links: 1. https://core.telegram.org/api/top-rating See https://core.telegram.org/method/contacts.toggleTopPeers for reference. Enable/disable Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsToggleTopPeersRequest 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. (*ContactsToggleTopPeersRequest) Zero() bool *ContactsToggleTopPeersRequest : github.com/gotd/td/bin.BareDecoder *ContactsToggleTopPeersRequest : github.com/gotd/td/bin.BareEncoder *ContactsToggleTopPeersRequest : github.com/gotd/td/bin.Decoder *ContactsToggleTopPeersRequest : github.com/gotd/td/bin.Encoder *ContactsToggleTopPeersRequest : github.com/gotd/td/bin.Object *ContactsToggleTopPeersRequest : github.com/gotd/td/tdp.Object *ContactsToggleTopPeersRequest : fmt.Stringer
ContactsTopPeers represents TL type `contacts.topPeers#70b772a8`. Top peers See https://core.telegram.org/constructor/contacts.topPeers for reference. Top peers by top peer category Chats Users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsTopPeers from given interface. GetCategories returns value of Categories field. GetChats returns value of Chats field. GetUsers returns value of Users 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. (*ContactsTopPeers) Zero() bool *ContactsTopPeers : ContactsTopPeersClass *ContactsTopPeers : github.com/gotd/td/bin.BareDecoder *ContactsTopPeers : github.com/gotd/td/bin.BareEncoder *ContactsTopPeers : github.com/gotd/td/bin.Decoder *ContactsTopPeers : github.com/gotd/td/bin.Encoder *ContactsTopPeers : github.com/gotd/td/bin.Object *ContactsTopPeers : github.com/gotd/td/tdp.Object *ContactsTopPeers : fmt.Stringer func ContactsTopPeersArray.First() (v ContactsTopPeers, ok bool) func ContactsTopPeersArray.Last() (v ContactsTopPeers, ok bool) func (*ContactsTopPeersArray).Pop() (v ContactsTopPeers, ok bool) func (*ContactsTopPeersArray).PopFirst() (v ContactsTopPeers, ok bool)
ContactsTopPeersArray is adapter for slice of ContactsTopPeers. 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 ContactsTopPeers. Sort sorts slice of ContactsTopPeers. SortStable sorts slice of ContactsTopPeers. func ContactsTopPeersArray.Retain(keep func(x ContactsTopPeers) bool) ContactsTopPeersArray func ContactsTopPeersArray.Sort(less func(a, b ContactsTopPeers) bool) ContactsTopPeersArray func ContactsTopPeersArray.SortStable(less func(a, b ContactsTopPeers) bool) ContactsTopPeersArray func ContactsTopPeersClassArray.AsContactsTopPeers() (to ContactsTopPeersArray)
ContactsTopPeers boxes the ContactsTopPeersClass providing a helper. TopPeers ContactsTopPeersClass Decode implements bin.Decoder for ContactsTopPeersBox. Encode implements bin.Encode for ContactsTopPeersBox. *ContactsTopPeersBox : github.com/gotd/td/bin.Decoder *ContactsTopPeersBox : github.com/gotd/td/bin.Encoder *ContactsTopPeersBox : github.com/gotd/td/bin.Object
ContactsTopPeersClass represents contacts.TopPeers generic type. See https://core.telegram.org/type/contacts.TopPeers for reference. Example: g, err := tg.DecodeContactsTopPeers(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ContactsTopPeersNotModified: // contacts.topPeersNotModified#de266ef5 case *tg.ContactsTopPeers: // contacts.topPeers#70b772a8 case *tg.ContactsTopPeersDisabled: // contacts.topPeersDisabled#b52c939d default: panic(v) } ( ContactsTopPeersClass) Decode(b *bin.Buffer) error ( ContactsTopPeersClass) DecodeBare(b *bin.Buffer) error ( ContactsTopPeersClass) Encode(b *bin.Buffer) error ( ContactsTopPeersClass) 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. *ContactsTopPeers *ContactsTopPeersDisabled *ContactsTopPeersNotModified ContactsTopPeersClass : github.com/gotd/td/bin.BareDecoder ContactsTopPeersClass : github.com/gotd/td/bin.BareEncoder ContactsTopPeersClass : github.com/gotd/td/bin.Decoder ContactsTopPeersClass : github.com/gotd/td/bin.Encoder ContactsTopPeersClass : github.com/gotd/td/bin.Object ContactsTopPeersClass : fmt.Stringer func DecodeContactsTopPeers(buf *bin.Buffer) (ContactsTopPeersClass, error) func (*Client).ContactsGetTopPeers(ctx context.Context, request *ContactsGetTopPeersRequest) (ContactsTopPeersClass, error) func ContactsTopPeersClassArray.First() (v ContactsTopPeersClass, ok bool) func ContactsTopPeersClassArray.Last() (v ContactsTopPeersClass, ok bool) func (*ContactsTopPeersClassArray).Pop() (v ContactsTopPeersClass, ok bool) func (*ContactsTopPeersClassArray).PopFirst() (v ContactsTopPeersClass, ok bool)
ContactsTopPeersClassArray is adapter for slice of ContactsTopPeersClass. AsContactsTopPeers returns copy with only ContactsTopPeers 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 ContactsTopPeersClass. Sort sorts slice of ContactsTopPeersClass. SortStable sorts slice of ContactsTopPeersClass. func ContactsTopPeersClassArray.Retain(keep func(x ContactsTopPeersClass) bool) ContactsTopPeersClassArray func ContactsTopPeersClassArray.Sort(less func(a, b ContactsTopPeersClass) bool) ContactsTopPeersClassArray func ContactsTopPeersClassArray.SortStable(less func(a, b ContactsTopPeersClass) bool) ContactsTopPeersClassArray
ContactsTopPeersDisabled represents TL type `contacts.topPeersDisabled#b52c939d`. Top peers disabled See https://core.telegram.org/constructor/contacts.topPeersDisabled 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. (*ContactsTopPeersDisabled) Zero() bool *ContactsTopPeersDisabled : ContactsTopPeersClass *ContactsTopPeersDisabled : github.com/gotd/td/bin.BareDecoder *ContactsTopPeersDisabled : github.com/gotd/td/bin.BareEncoder *ContactsTopPeersDisabled : github.com/gotd/td/bin.Decoder *ContactsTopPeersDisabled : github.com/gotd/td/bin.Encoder *ContactsTopPeersDisabled : github.com/gotd/td/bin.Object *ContactsTopPeersDisabled : github.com/gotd/td/tdp.Object *ContactsTopPeersDisabled : fmt.Stringer
ContactsTopPeersNotModified represents TL type `contacts.topPeersNotModified#de266ef5`. Top peer info hasn't changed See https://core.telegram.org/constructor/contacts.topPeersNotModified 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. (*ContactsTopPeersNotModified) Zero() bool *ContactsTopPeersNotModified : ContactsTopPeersClass *ContactsTopPeersNotModified : github.com/gotd/td/bin.BareDecoder *ContactsTopPeersNotModified : github.com/gotd/td/bin.BareEncoder *ContactsTopPeersNotModified : github.com/gotd/td/bin.Decoder *ContactsTopPeersNotModified : github.com/gotd/td/bin.Encoder *ContactsTopPeersNotModified : github.com/gotd/td/bin.Object *ContactsTopPeersNotModified : github.com/gotd/td/tdp.Object *ContactsTopPeersNotModified : fmt.Stringer
ContactsUnblockRequest represents TL type `contacts.unblock#b550d328`. Deletes a peer from a blocklist, see here »¹ for more info. Links: 1. https://core.telegram.org/api/block See https://core.telegram.org/method/contacts.unblock for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer Whether the peer should be added to the story blocklist; if not set, the peer will be added to the main blocklist, see here »¹ for more info. Links: 1) https://core.telegram.org/api/block Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ContactsUnblockRequest from given interface. GetID returns value of ID field. GetMyStoriesFrom returns value of MyStoriesFrom conditional field. SetFlags sets flags for non-zero fields. SetMyStoriesFrom sets value of MyStoriesFrom 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. (*ContactsUnblockRequest) Zero() bool *ContactsUnblockRequest : github.com/gotd/td/bin.BareDecoder *ContactsUnblockRequest : github.com/gotd/td/bin.BareEncoder *ContactsUnblockRequest : github.com/gotd/td/bin.Decoder *ContactsUnblockRequest : github.com/gotd/td/bin.Encoder *ContactsUnblockRequest : github.com/gotd/td/bin.Object *ContactsUnblockRequest : github.com/gotd/td/tdp.Object *ContactsUnblockRequest : fmt.Stringer func (*Client).ContactsUnblock(ctx context.Context, request *ContactsUnblockRequest) (bool, error)
DataJSON represents TL type `dataJSON#7d748d04`. Represents a json-encoded object See https://core.telegram.org/constructor/dataJSON for reference. JSON-encoded object Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DataJSON from given interface. GetData returns value of Data 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. (*DataJSON) Zero() bool *DataJSON : github.com/gotd/td/bin.BareDecoder *DataJSON : github.com/gotd/td/bin.BareEncoder *DataJSON : github.com/gotd/td/bin.Decoder *DataJSON : github.com/gotd/td/bin.Encoder *DataJSON : github.com/gotd/td/bin.Object *DataJSON : github.com/gotd/td/tdp.Object *DataJSON : fmt.Stringer func (*BotsAnswerWebhookJSONQueryRequest).GetData() (value DataJSON) func (*BotsInvokeWebViewCustomMethodRequest).GetParams() (value DataJSON) func (*BotsSendCustomRequestRequest).GetParams() (value DataJSON) func (*Client).BotsInvokeWebViewCustomMethod(ctx context.Context, request *BotsInvokeWebViewCustomMethodRequest) (*DataJSON, error) func (*Client).BotsSendCustomRequest(ctx context.Context, request *BotsSendCustomRequestRequest) (*DataJSON, error) func (*Client).PhoneGetCallConfig(ctx context.Context) (*DataJSON, error) func (*HelpAcceptTermsOfServiceRequest).GetID() (value DataJSON) func (*HelpPassportConfig).GetCountriesLangs() (value DataJSON) func (*HelpTermsOfService).GetID() (value DataJSON) func (*InputBotInlineMessageMediaInvoice).GetProviderData() (value DataJSON) func (*InputMediaInvoice).GetProviderData() (value DataJSON) func (*InputPaymentCredentials).GetData() (value DataJSON) func (*InputPaymentCredentialsApplePay).GetPaymentData() (value DataJSON) func (*InputPaymentCredentialsGooglePay).GetPaymentToken() (value DataJSON) func (*MessagesRequestAppWebViewRequest).GetThemeParams() (value DataJSON, ok bool) func (*MessagesRequestSimpleWebViewRequest).GetThemeParams() (value DataJSON, ok bool) func (*MessagesRequestWebViewRequest).GetThemeParams() (value DataJSON, ok bool) func (*PaymentsAssignPlayMarketTransactionRequest).GetReceipt() (value DataJSON) func (*PaymentsGetPaymentFormRequest).GetThemeParams() (value DataJSON, ok bool) func (*PaymentsPaymentForm).GetNativeParams() (value DataJSON, ok bool) func (*PhoneJoinGroupCallPresentationRequest).GetParams() (value DataJSON) func (*PhoneJoinGroupCallRequest).GetParams() (value DataJSON) func (*PhoneSaveCallDebugRequest).GetDebug() (value DataJSON) func (*SendMessageEmojiInteraction).GetInteraction() (value DataJSON) func (*StatsGraph).GetJSON() (value DataJSON) func (*UpdateBotWebhookJSON).GetData() (value DataJSON) func (*UpdateBotWebhookJSONQuery).GetData() (value DataJSON) func (*UpdateGroupCallConnection).GetParams() (value DataJSON) func (*Client).HelpAcceptTermsOfService(ctx context.Context, id DataJSON) (bool, error) func (*MessagesRequestAppWebViewRequest).SetThemeParams(value DataJSON) func (*MessagesRequestSimpleWebViewRequest).SetThemeParams(value DataJSON) func (*MessagesRequestWebViewRequest).SetThemeParams(value DataJSON) func (*PaymentsGetPaymentFormRequest).SetThemeParams(value DataJSON) func (*PaymentsPaymentForm).SetNativeParams(value DataJSON) func github.com/gotd/td/telegram/auth.(*Client).AcceptTOS(ctx context.Context, id DataJSON) error
DCOption represents TL type `dcOption#18b7a10d`. Data center See https://core.telegram.org/constructor/dcOption for reference. Whether this is a CDN DC¹. Links: 1) https://core.telegram.org/cdn Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields DC ID IP address of DC Whether the specified IP is an IPv6 address Whether this DC should only be used to download or upload files¹ Links: 1) https://core.telegram.org/api/files Port If the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation¹ Links: 1) https://core.telegram.org/mtproto/mtproto-transports#transport-obfuscation Use SetSecret and GetSecret helpers. If set, this IP should be used when connecting through a proxy Whether this DC only supports connection with transport obfuscation¹ Links: 1) https://core.telegram.org/mtproto/mtproto-transports#transport-obfuscation If set, clients must connect using only the specified port, without trying any other port. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DCOption from given interface. GetCDN returns value of CDN conditional field. GetID returns value of ID field. GetIPAddress returns value of IPAddress field. GetIpv6 returns value of Ipv6 conditional field. GetMediaOnly returns value of MediaOnly conditional field. GetPort returns value of Port field. GetSecret returns value of Secret conditional field and boolean which is true if field was set. GetStatic returns value of Static conditional field. GetTCPObfuscatedOnly returns value of TCPObfuscatedOnly conditional field. GetThisPortOnly returns value of ThisPortOnly conditional field. SetCDN sets value of CDN conditional field. SetFlags sets flags for non-zero fields. SetIpv6 sets value of Ipv6 conditional field. SetMediaOnly sets value of MediaOnly conditional field. SetSecret sets value of Secret conditional field. SetStatic sets value of Static conditional field. SetTCPObfuscatedOnly sets value of TCPObfuscatedOnly conditional field. SetThisPortOnly sets value of ThisPortOnly 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. (*DCOption) Zero() bool *DCOption : github.com/gotd/td/bin.BareDecoder *DCOption : github.com/gotd/td/bin.BareEncoder *DCOption : github.com/gotd/td/bin.Decoder *DCOption : github.com/gotd/td/bin.Encoder *DCOption : github.com/gotd/td/bin.Object *DCOption : github.com/gotd/td/tdp.Object *DCOption : fmt.Stringer func (*Config).GetDCOptions() (value []DCOption) func (*UpdateDCOptions).GetDCOptions() (value []DCOption) func github.com/gotd/td/telegram/dcs.FindDCs(opts []DCOption, dcID int, preferIPv6 bool) []DCOption func github.com/gotd/td/telegram/dcs.FindPrimaryDCs(opts []DCOption, dcID int, preferIPv6 bool) []DCOption func github.com/gotd/td/telegram/dcs.DNSConfig.Options() (r []DCOption) func github.com/gotd/td/telegram/dcs.FindDCs(opts []DCOption, dcID int, preferIPv6 bool) []DCOption func github.com/gotd/td/telegram/dcs.FindPrimaryDCs(opts []DCOption, dcID int, preferIPv6 bool) []DCOption
DCOptionsHandler is a DCOptions event handler. func UpdateDispatcher.OnDCOptions(handler DCOptionsHandler)
DefaultHistoryTTL represents TL type `defaultHistoryTTL#43b46b20`. Contains info about the default value of the Time-To-Live setting, applied to all new chats. See https://core.telegram.org/constructor/defaultHistoryTTL 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 DefaultHistoryTTL 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. (*DefaultHistoryTTL) Zero() bool *DefaultHistoryTTL : github.com/gotd/td/bin.BareDecoder *DefaultHistoryTTL : github.com/gotd/td/bin.BareEncoder *DefaultHistoryTTL : github.com/gotd/td/bin.Decoder *DefaultHistoryTTL : github.com/gotd/td/bin.Encoder *DefaultHistoryTTL : github.com/gotd/td/bin.Object *DefaultHistoryTTL : github.com/gotd/td/tdp.Object *DefaultHistoryTTL : fmt.Stringer func (*Client).MessagesGetDefaultHistoryTTL(ctx context.Context) (*DefaultHistoryTTL, error)
DeleteChannelMessagesHandler is a DeleteChannelMessages event handler. func UpdateDispatcher.OnDeleteChannelMessages(handler DeleteChannelMessagesHandler)
DeleteMessagesHandler is a DeleteMessages event handler. func UpdateDispatcher.OnDeleteMessages(handler DeleteMessagesHandler)
DeleteScheduledMessagesHandler is a DeleteScheduledMessages event handler. func UpdateDispatcher.OnDeleteScheduledMessages(handler DeleteScheduledMessagesHandler)
Dialog represents TL type `dialog#d58a08c6`. Chat See https://core.telegram.org/constructor/dialog for reference. Message draft¹ Links: 1) https://core.telegram.org/api/drafts Use SetDraft and GetDraft helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. Notification settings The chat Is the dialog pinned PTS¹ Links: 1) https://core.telegram.org/api/updates Use SetPts and GetPts helpers. Position up to which all incoming messages are read. Position up to which all outgoing messages are read. Time-to-live of all messages sent in this dialog Use SetTTLPeriod and GetTTLPeriod helpers. The latest message ID Number of unread messages Whether the chat was manually marked as unread Number of unread mentions¹ Links: 1) https://core.telegram.org/api/mentions Number of unread reactions to messages you sent Users may also choose to display messages from all topics of a forum¹ as if they were sent to a normal group, using a "View as messages" setting in the local client. This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages² method; invoking this method will update the value of this flag. Links: 1) https://core.telegram.org/api/forum 2) https://core.telegram.org/method/channels.toggleViewForumAsMessages AsInputDialogPeerFolder tries to map Dialog to InputDialogPeerFolder. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Dialog from given interface. GetDraft returns value of Draft conditional field and boolean which is true if field was set. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetNotifySettings returns value of NotifySettings field. GetPeer returns value of Peer field. GetPinned returns value of Pinned conditional field. GetPts returns value of Pts conditional field and boolean which is true if field was set. GetReadInboxMaxID returns value of ReadInboxMaxID field. GetReadOutboxMaxID returns value of ReadOutboxMaxID field. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. GetTopMessage returns value of TopMessage field. GetUnreadCount returns value of UnreadCount field. GetUnreadMark returns value of UnreadMark conditional field. GetUnreadMentionsCount returns value of UnreadMentionsCount field. GetUnreadReactionsCount returns value of UnreadReactionsCount field. GetViewForumAsMessages returns value of ViewForumAsMessages conditional field. SetDraft sets value of Draft conditional field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID conditional field. SetPinned sets value of Pinned conditional field. SetPts sets value of Pts conditional field. SetTTLPeriod sets value of TTLPeriod conditional field. SetUnreadMark sets value of UnreadMark conditional field. SetViewForumAsMessages sets value of ViewForumAsMessages 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. (*Dialog) Zero() bool *Dialog : DialogClass *Dialog : github.com/gotd/td/bin.BareDecoder *Dialog : github.com/gotd/td/bin.BareEncoder *Dialog : github.com/gotd/td/bin.Decoder *Dialog : github.com/gotd/td/bin.Encoder *Dialog : github.com/gotd/td/bin.Object *Dialog : github.com/gotd/td/tdp.Object *Dialog : fmt.Stringer func DialogArray.First() (v Dialog, ok bool) func DialogArray.Last() (v Dialog, ok bool) func (*DialogArray).Pop() (v Dialog, ok bool) func (*DialogArray).PopFirst() (v Dialog, ok bool)
DialogArray is adapter for slice of Dialog. 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 Dialog. Sort sorts slice of Dialog. SortStable sorts slice of Dialog. func DialogArray.Retain(keep func(x Dialog) bool) DialogArray func DialogArray.Sort(less func(a, b Dialog) bool) DialogArray func DialogArray.SortStable(less func(a, b Dialog) bool) DialogArray func DialogClassArray.AsDialog() (to DialogArray)
Dialog boxes the DialogClass providing a helper. Dialog DialogClass Decode implements bin.Decoder for DialogBox. Encode implements bin.Encode for DialogBox. *DialogBox : github.com/gotd/td/bin.Decoder *DialogBox : github.com/gotd/td/bin.Encoder *DialogBox : github.com/gotd/td/bin.Object
DialogClass represents Dialog generic type. See https://core.telegram.org/type/Dialog for reference. Example: g, err := tg.DecodeDialog(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.Dialog: // dialog#d58a08c6 case *tg.DialogFolder: // dialogFolder#71bd134c default: panic(v) } ( DialogClass) Decode(b *bin.Buffer) error ( DialogClass) DecodeBare(b *bin.Buffer) error ( DialogClass) Encode(b *bin.Buffer) error ( DialogClass) EncodeBare(b *bin.Buffer) error The chat Is the dialog pinned The latest message ID 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. *Dialog *DialogFolder DialogClass : github.com/gotd/td/bin.BareDecoder DialogClass : github.com/gotd/td/bin.BareEncoder DialogClass : github.com/gotd/td/bin.Decoder DialogClass : github.com/gotd/td/bin.Encoder DialogClass : github.com/gotd/td/bin.Object DialogClass : fmt.Stringer func DecodeDialog(buf *bin.Buffer) (DialogClass, error) func DialogClassArray.First() (v DialogClass, ok bool) func DialogClassArray.Last() (v DialogClass, ok bool) func (*DialogClassArray).Pop() (v DialogClass, ok bool) func (*DialogClassArray).PopFirst() (v DialogClass, ok bool) func (*MessagesDialogs).GetDialogs() (value []DialogClass) func (*MessagesDialogsSlice).GetDialogs() (value []DialogClass) func (*MessagesPeerDialogs).GetDialogs() (value []DialogClass) func ModifiedMessagesDialogs.GetDialogs() (value []DialogClass) func (*UpdatesChannelDifferenceTooLong).GetDialog() (value DialogClass)
DialogClassArray is adapter for slice of DialogClass. AsDialog returns copy with only Dialog constructors. AsDialogFolder returns copy with only DialogFolder 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 DialogClass. Sort sorts slice of DialogClass. SortStable sorts slice of DialogClass. func DialogClassArray.Retain(keep func(x DialogClass) bool) DialogClassArray func DialogClassArray.Sort(less func(a, b DialogClass) bool) DialogClassArray func DialogClassArray.SortStable(less func(a, b DialogClass) bool) DialogClassArray func (*MessagesDialogs).MapDialogs() (value DialogClassArray) func (*MessagesDialogsSlice).MapDialogs() (value DialogClassArray) func (*MessagesPeerDialogs).MapDialogs() (value DialogClassArray)
DialogFilter represents TL type `dialogFilter#7438f7e8`. Dialog filter AKA folder¹ Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/constructor/dialogFilter for reference. Whether to include all bots in this folder¹ Links: 1) https://core.telegram.org/api/folders Whether to include all channels in this folder¹ Links: 1) https://core.telegram.org/api/folders Whether to include all contacts in this folder¹ Links: 1) https://core.telegram.org/api/folders Emoji to use as icon for the folder. Use SetEmoticon and GetEmoticon helpers. Whether to exclude archived chats from this folder¹ Links: 1) https://core.telegram.org/api/folders Whether to exclude muted chats from this folder¹ Links: 1) https://core.telegram.org/api/folders Exclude the following chats from this folder¹ Links: 1) https://core.telegram.org/api/folders Whether to exclude read chats from this folder¹ Links: 1) https://core.telegram.org/api/folders Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to include all groups in this folder¹ Links: 1) https://core.telegram.org/api/folders Folder¹ ID Links: 1) https://core.telegram.org/api/folders Include the following chats in this folder¹ Links: 1) https://core.telegram.org/api/folders Whether to include all non-contacts in this folder¹ Links: 1) https://core.telegram.org/api/folders Pinned chats, folders¹ can have unlimited pinned chats Links: 1) https://core.telegram.org/api/folders Folder¹ name Links: 1) https://core.telegram.org/api/folders AsInputChatlist tries to map DialogFilter to InputChatlistDialogFilter. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DialogFilter from given interface. GetBots returns value of Bots conditional field. GetBroadcasts returns value of Broadcasts conditional field. GetContacts returns value of Contacts conditional field. GetEmoticon returns value of Emoticon conditional field and boolean which is true if field was set. GetExcludeArchived returns value of ExcludeArchived conditional field. GetExcludeMuted returns value of ExcludeMuted conditional field. GetExcludePeers returns value of ExcludePeers field. GetExcludeRead returns value of ExcludeRead conditional field. GetGroups returns value of Groups conditional field. GetID returns value of ID field. GetIncludePeers returns value of IncludePeers field. GetNonContacts returns value of NonContacts conditional field. GetPinnedPeers returns value of PinnedPeers field. GetTitle returns value of Title field. MapExcludePeers returns field ExcludePeers wrapped in InputPeerClassArray helper. MapIncludePeers returns field IncludePeers wrapped in InputPeerClassArray helper. MapPinnedPeers returns field PinnedPeers wrapped in InputPeerClassArray helper. SetBots sets value of Bots conditional field. SetBroadcasts sets value of Broadcasts conditional field. SetContacts sets value of Contacts conditional field. SetEmoticon sets value of Emoticon conditional field. SetExcludeArchived sets value of ExcludeArchived conditional field. SetExcludeMuted sets value of ExcludeMuted conditional field. SetExcludeRead sets value of ExcludeRead conditional field. SetFlags sets flags for non-zero fields. SetGroups sets value of Groups conditional field. SetNonContacts sets value of NonContacts 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. (*DialogFilter) Zero() bool *DialogFilter : DialogFilterClass *DialogFilter : github.com/gotd/td/bin.BareDecoder *DialogFilter : github.com/gotd/td/bin.BareEncoder *DialogFilter : github.com/gotd/td/bin.Decoder *DialogFilter : github.com/gotd/td/bin.Encoder *DialogFilter : github.com/gotd/td/bin.Object *DialogFilter : github.com/gotd/td/tdp.Object *DialogFilter : fmt.Stringer func DialogFilterArray.First() (v DialogFilter, ok bool) func DialogFilterArray.Last() (v DialogFilter, ok bool) func (*DialogFilterArray).Pop() (v DialogFilter, ok bool) func (*DialogFilterArray).PopFirst() (v DialogFilter, ok bool) func DialogFilterArray.ToMap() map[int]DialogFilter func DialogFilterArray.FillMap(to map[int]DialogFilter)
DialogFilterArray is adapter for slice of DialogFilter. 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 DialogFilter. Sort sorts slice of DialogFilter. SortByID sorts slice of DialogFilter by ID. SortStable sorts slice of DialogFilter. SortStableByID sorts slice of DialogFilter by ID. ToMap collects constructors to map. func DialogFilterArray.Retain(keep func(x DialogFilter) bool) DialogFilterArray func DialogFilterArray.Sort(less func(a, b DialogFilter) bool) DialogFilterArray func DialogFilterArray.SortByID() DialogFilterArray func DialogFilterArray.SortStable(less func(a, b DialogFilter) bool) DialogFilterArray func DialogFilterArray.SortStableByID() DialogFilterArray func DialogFilterClassArray.AsDialogFilter() (to DialogFilterArray)
DialogFilter boxes the DialogFilterClass providing a helper. DialogFilter DialogFilterClass Decode implements bin.Decoder for DialogFilterBox. Encode implements bin.Encode for DialogFilterBox. *DialogFilterBox : github.com/gotd/td/bin.Decoder *DialogFilterBox : github.com/gotd/td/bin.Encoder *DialogFilterBox : github.com/gotd/td/bin.Object
DialogFilterChatlist represents TL type `dialogFilterChatlist#d64a04a8`. A folder imported using a chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/constructor/dialogFilterChatlist for reference. Emoji to use as icon for the folder. Use SetEmoticon and GetEmoticon helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the current user has created some chat folder deep links »¹ to share the folder as well. Links: 1) https://core.telegram.org/api/links#chat-folder-links ID of the folder Chats to include in the folder Pinned chats, folders¹ can have unlimited pinned chats Links: 1) https://core.telegram.org/api/folders Name of the folder Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DialogFilterChatlist from given interface. GetEmoticon returns value of Emoticon conditional field and boolean which is true if field was set. GetHasMyInvites returns value of HasMyInvites conditional field. GetID returns value of ID field. GetIncludePeers returns value of IncludePeers field. GetPinnedPeers returns value of PinnedPeers field. GetTitle returns value of Title field. MapIncludePeers returns field IncludePeers wrapped in InputPeerClassArray helper. MapPinnedPeers returns field PinnedPeers wrapped in InputPeerClassArray helper. SetEmoticon sets value of Emoticon conditional field. SetFlags sets flags for non-zero fields. SetHasMyInvites sets value of HasMyInvites 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. (*DialogFilterChatlist) Zero() bool *DialogFilterChatlist : DialogFilterClass *DialogFilterChatlist : github.com/gotd/td/bin.BareDecoder *DialogFilterChatlist : github.com/gotd/td/bin.BareEncoder *DialogFilterChatlist : github.com/gotd/td/bin.Decoder *DialogFilterChatlist : github.com/gotd/td/bin.Encoder *DialogFilterChatlist : github.com/gotd/td/bin.Object *DialogFilterChatlist : github.com/gotd/td/tdp.Object *DialogFilterChatlist : fmt.Stringer func DialogFilterChatlistArray.First() (v DialogFilterChatlist, ok bool) func DialogFilterChatlistArray.Last() (v DialogFilterChatlist, ok bool) func (*DialogFilterChatlistArray).Pop() (v DialogFilterChatlist, ok bool) func (*DialogFilterChatlistArray).PopFirst() (v DialogFilterChatlist, ok bool) func DialogFilterChatlistArray.ToMap() map[int]DialogFilterChatlist func DialogFilterChatlistArray.FillMap(to map[int]DialogFilterChatlist)
DialogFilterChatlistArray is adapter for slice of DialogFilterChatlist. 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 DialogFilterChatlist. Sort sorts slice of DialogFilterChatlist. SortByID sorts slice of DialogFilterChatlist by ID. SortStable sorts slice of DialogFilterChatlist. SortStableByID sorts slice of DialogFilterChatlist by ID. ToMap collects constructors to map. func DialogFilterChatlistArray.Retain(keep func(x DialogFilterChatlist) bool) DialogFilterChatlistArray func DialogFilterChatlistArray.Sort(less func(a, b DialogFilterChatlist) bool) DialogFilterChatlistArray func DialogFilterChatlistArray.SortByID() DialogFilterChatlistArray func DialogFilterChatlistArray.SortStable(less func(a, b DialogFilterChatlist) bool) DialogFilterChatlistArray func DialogFilterChatlistArray.SortStableByID() DialogFilterChatlistArray func DialogFilterClassArray.AsDialogFilterChatlist() (to DialogFilterChatlistArray)
DialogFilterClass represents DialogFilter generic type. See https://core.telegram.org/type/DialogFilter for reference. Example: g, err := tg.DecodeDialogFilter(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.DialogFilter: // dialogFilter#7438f7e8 case *tg.DialogFilterDefault: // dialogFilterDefault#363293ae case *tg.DialogFilterChatlist: // dialogFilterChatlist#d64a04a8 default: panic(v) } ( DialogFilterClass) Decode(b *bin.Buffer) error ( DialogFilterClass) DecodeBare(b *bin.Buffer) error ( DialogFilterClass) Encode(b *bin.Buffer) error ( DialogFilterClass) 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. *DialogFilter *DialogFilterChatlist *DialogFilterDefault DialogFilterClass : github.com/gotd/td/bin.BareDecoder DialogFilterClass : github.com/gotd/td/bin.BareEncoder DialogFilterClass : github.com/gotd/td/bin.Decoder DialogFilterClass : github.com/gotd/td/bin.Encoder DialogFilterClass : github.com/gotd/td/bin.Object DialogFilterClass : fmt.Stringer func DecodeDialogFilter(buf *bin.Buffer) (DialogFilterClass, error) func (*ChatlistsExportedChatlistInvite).GetFilter() (value DialogFilterClass) func (*Client).MessagesGetDialogFilters(ctx context.Context) ([]DialogFilterClass, error) func DialogFilterClassArray.First() (v DialogFilterClass, ok bool) func DialogFilterClassArray.Last() (v DialogFilterClass, ok bool) func (*DialogFilterClassArray).Pop() (v DialogFilterClass, ok bool) func (*DialogFilterClassArray).PopFirst() (v DialogFilterClass, ok bool) func (*DialogFilterClassVector).GetElems() (value []DialogFilterClass) func (*DialogFilterSuggested).GetFilter() (value DialogFilterClass) func (*MessagesUpdateDialogFilterRequest).GetFilter() (value DialogFilterClass, ok bool) func (*UpdateDialogFilter).GetFilter() (value DialogFilterClass, ok bool) func (*MessagesUpdateDialogFilterRequest).SetFilter(value DialogFilterClass) func (*UpdateDialogFilter).SetFilter(value DialogFilterClass)
DialogFilterClassArray is adapter for slice of DialogFilterClass. AsDialogFilter returns copy with only DialogFilter constructors. AsDialogFilterChatlist returns copy with only DialogFilterChatlist 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 DialogFilterClass. Sort sorts slice of DialogFilterClass. SortStable sorts slice of DialogFilterClass. func DialogFilterClassArray.Retain(keep func(x DialogFilterClass) bool) DialogFilterClassArray func DialogFilterClassArray.Sort(less func(a, b DialogFilterClass) bool) DialogFilterClassArray func DialogFilterClassArray.SortStable(less func(a, b DialogFilterClass) bool) DialogFilterClassArray func (*DialogFilterClassVector).MapElems() (value DialogFilterClassArray)
DialogFilterClassVector is a box for Vector<DialogFilter> Elements of Vector<DialogFilter> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DialogFilterClassVector from given interface. GetElems returns value of Elems field. MapElems returns field Elems wrapped in DialogFilterClassArray 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. (*DialogFilterClassVector) Zero() bool *DialogFilterClassVector : github.com/gotd/td/bin.BareDecoder *DialogFilterClassVector : github.com/gotd/td/bin.BareEncoder *DialogFilterClassVector : github.com/gotd/td/bin.Decoder *DialogFilterClassVector : github.com/gotd/td/bin.Encoder *DialogFilterClassVector : github.com/gotd/td/bin.Object *DialogFilterClassVector : github.com/gotd/td/tdp.Object *DialogFilterClassVector : fmt.Stringer
DialogFilterDefault represents TL type `dialogFilterDefault#363293ae`. Used only when reordering folders to indicate the default (all chats) folder. See https://core.telegram.org/constructor/dialogFilterDefault 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. (*DialogFilterDefault) Zero() bool *DialogFilterDefault : DialogFilterClass *DialogFilterDefault : github.com/gotd/td/bin.BareDecoder *DialogFilterDefault : github.com/gotd/td/bin.BareEncoder *DialogFilterDefault : github.com/gotd/td/bin.Decoder *DialogFilterDefault : github.com/gotd/td/bin.Encoder *DialogFilterDefault : github.com/gotd/td/bin.Object *DialogFilterDefault : github.com/gotd/td/tdp.Object *DialogFilterDefault : fmt.Stringer
DialogFilterHandler is a DialogFilter event handler. func UpdateDispatcher.OnDialogFilter(handler DialogFilterHandler)
DialogFilterOrderHandler is a DialogFilterOrder event handler. func UpdateDispatcher.OnDialogFilterOrder(handler DialogFilterOrderHandler)
DialogFiltersHandler is a DialogFilters event handler. func UpdateDispatcher.OnDialogFilters(handler DialogFiltersHandler)
DialogFilterSuggested represents TL type `dialogFilterSuggested#77744d4a`. Suggested folders¹ Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/constructor/dialogFilterSuggested for reference. Folder¹ description Links: 1) https://core.telegram.org/api/folders Folder info¹ Links: 1) https://core.telegram.org/api/folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DialogFilterSuggested from given interface. GetDescription returns value of Description field. GetFilter returns value of Filter 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. (*DialogFilterSuggested) Zero() bool *DialogFilterSuggested : github.com/gotd/td/bin.BareDecoder *DialogFilterSuggested : github.com/gotd/td/bin.BareEncoder *DialogFilterSuggested : github.com/gotd/td/bin.Decoder *DialogFilterSuggested : github.com/gotd/td/bin.Encoder *DialogFilterSuggested : github.com/gotd/td/bin.Object *DialogFilterSuggested : github.com/gotd/td/tdp.Object *DialogFilterSuggested : fmt.Stringer func (*Client).MessagesGetSuggestedDialogFilters(ctx context.Context) ([]DialogFilterSuggested, error) func (*DialogFilterSuggestedVector).GetElems() (value []DialogFilterSuggested)
DialogFilterSuggestedVector is a box for Vector<DialogFilterSuggested> Elements of Vector<DialogFilterSuggested> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DialogFilterSuggestedVector 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. (*DialogFilterSuggestedVector) Zero() bool *DialogFilterSuggestedVector : github.com/gotd/td/bin.BareDecoder *DialogFilterSuggestedVector : github.com/gotd/td/bin.BareEncoder *DialogFilterSuggestedVector : github.com/gotd/td/bin.Decoder *DialogFilterSuggestedVector : github.com/gotd/td/bin.Encoder *DialogFilterSuggestedVector : github.com/gotd/td/bin.Object *DialogFilterSuggestedVector : github.com/gotd/td/tdp.Object *DialogFilterSuggestedVector : fmt.Stringer
DialogFolder represents TL type `dialogFolder#71bd134c`. Dialog in folder See https://core.telegram.org/constructor/dialogFolder for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The folder Peer in folder Is this folder pinned Latest message ID of dialog Number of unread messages from muted peers in folder Number of unread muted peers in folder Number of unread messages from unmuted peers in folder Number of unread unmuted peers in folder Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DialogFolder from given interface. GetFolder returns value of Folder field. GetPeer returns value of Peer field. GetPinned returns value of Pinned conditional field. GetTopMessage returns value of TopMessage field. GetUnreadMutedMessagesCount returns value of UnreadMutedMessagesCount field. GetUnreadMutedPeersCount returns value of UnreadMutedPeersCount field. GetUnreadUnmutedMessagesCount returns value of UnreadUnmutedMessagesCount field. GetUnreadUnmutedPeersCount returns value of UnreadUnmutedPeersCount field. SetFlags sets flags for non-zero fields. SetPinned sets value of Pinned 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. (*DialogFolder) Zero() bool *DialogFolder : DialogClass *DialogFolder : github.com/gotd/td/bin.BareDecoder *DialogFolder : github.com/gotd/td/bin.BareEncoder *DialogFolder : github.com/gotd/td/bin.Decoder *DialogFolder : github.com/gotd/td/bin.Encoder *DialogFolder : github.com/gotd/td/bin.Object *DialogFolder : github.com/gotd/td/tdp.Object *DialogFolder : fmt.Stringer func DialogFolderArray.First() (v DialogFolder, ok bool) func DialogFolderArray.Last() (v DialogFolder, ok bool) func (*DialogFolderArray).Pop() (v DialogFolder, ok bool) func (*DialogFolderArray).PopFirst() (v DialogFolder, ok bool)
DialogFolderArray is adapter for slice of DialogFolder. 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 DialogFolder. Sort sorts slice of DialogFolder. SortStable sorts slice of DialogFolder. func DialogClassArray.AsDialogFolder() (to DialogFolderArray) func DialogFolderArray.Retain(keep func(x DialogFolder) bool) DialogFolderArray func DialogFolderArray.Sort(less func(a, b DialogFolder) bool) DialogFolderArray func DialogFolderArray.SortStable(less func(a, b DialogFolder) bool) DialogFolderArray
DialogPeer represents TL type `dialogPeer#e56dbf05`. Peer See https://core.telegram.org/constructor/dialogPeer for reference. The peer that left Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DialogPeer 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. (*DialogPeer) Zero() bool *DialogPeer : DialogPeerClass *DialogPeer : github.com/gotd/td/bin.BareDecoder *DialogPeer : github.com/gotd/td/bin.BareEncoder *DialogPeer : github.com/gotd/td/bin.Decoder *DialogPeer : github.com/gotd/td/bin.Encoder *DialogPeer : github.com/gotd/td/bin.Object *DialogPeer : github.com/gotd/td/tdp.Object *DialogPeer : fmt.Stringer func DialogPeerArray.First() (v DialogPeer, ok bool) func DialogPeerArray.Last() (v DialogPeer, ok bool) func (*DialogPeerArray).Pop() (v DialogPeer, ok bool) func (*DialogPeerArray).PopFirst() (v DialogPeer, ok bool)
DialogPeerArray is adapter for slice of DialogPeer. 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 DialogPeer. Sort sorts slice of DialogPeer. SortStable sorts slice of DialogPeer. func DialogPeerArray.Retain(keep func(x DialogPeer) bool) DialogPeerArray func DialogPeerArray.Sort(less func(a, b DialogPeer) bool) DialogPeerArray func DialogPeerArray.SortStable(less func(a, b DialogPeer) bool) DialogPeerArray func DialogPeerClassArray.AsDialogPeer() (to DialogPeerArray)
DialogPeer boxes the DialogPeerClass providing a helper. DialogPeer DialogPeerClass Decode implements bin.Decoder for DialogPeerBox. Encode implements bin.Encode for DialogPeerBox. *DialogPeerBox : github.com/gotd/td/bin.Decoder *DialogPeerBox : github.com/gotd/td/bin.Encoder *DialogPeerBox : github.com/gotd/td/bin.Object
DialogPeerClass represents DialogPeer generic type. See https://core.telegram.org/type/DialogPeer for reference. Example: g, err := tg.DecodeDialogPeer(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.DialogPeer: // dialogPeer#e56dbf05 case *tg.DialogPeerFolder: // dialogPeerFolder#514519e2 default: panic(v) } ( DialogPeerClass) Decode(b *bin.Buffer) error ( DialogPeerClass) DecodeBare(b *bin.Buffer) error ( DialogPeerClass) Encode(b *bin.Buffer) error ( DialogPeerClass) 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. *DialogPeer *DialogPeerFolder DialogPeerClass : github.com/gotd/td/bin.BareDecoder DialogPeerClass : github.com/gotd/td/bin.BareEncoder DialogPeerClass : github.com/gotd/td/bin.Decoder DialogPeerClass : github.com/gotd/td/bin.Encoder DialogPeerClass : github.com/gotd/td/bin.Object DialogPeerClass : fmt.Stringer func DecodeDialogPeer(buf *bin.Buffer) (DialogPeerClass, error) func (*Client).MessagesGetDialogUnreadMarks(ctx context.Context) ([]DialogPeerClass, error) func DialogPeerClassArray.First() (v DialogPeerClass, ok bool) func DialogPeerClassArray.Last() (v DialogPeerClass, ok bool) func (*DialogPeerClassArray).Pop() (v DialogPeerClass, ok bool) func (*DialogPeerClassArray).PopFirst() (v DialogPeerClass, ok bool) func (*DialogPeerClassVector).GetElems() (value []DialogPeerClass) func (*UpdateDialogPinned).GetPeer() (value DialogPeerClass) func (*UpdateDialogUnreadMark).GetPeer() (value DialogPeerClass) func (*UpdatePinnedDialogs).GetOrder() (value []DialogPeerClass, ok bool) func (*UpdatePinnedDialogs).SetOrder(value []DialogPeerClass)
DialogPeerClassArray is adapter for slice of DialogPeerClass. AsDialogPeer returns copy with only DialogPeer constructors. AsDialogPeerFolder returns copy with only DialogPeerFolder 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 DialogPeerClass. Sort sorts slice of DialogPeerClass. SortStable sorts slice of DialogPeerClass. func DialogPeerClassArray.Retain(keep func(x DialogPeerClass) bool) DialogPeerClassArray func DialogPeerClassArray.Sort(less func(a, b DialogPeerClass) bool) DialogPeerClassArray func DialogPeerClassArray.SortStable(less func(a, b DialogPeerClass) bool) DialogPeerClassArray func (*DialogPeerClassVector).MapElems() (value DialogPeerClassArray) func (*UpdatePinnedDialogs).MapOrder() (value DialogPeerClassArray, ok bool)
DialogPeerClassVector is a box for Vector<DialogPeer> Elements of Vector<DialogPeer> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DialogPeerClassVector from given interface. GetElems returns value of Elems field. MapElems returns field Elems wrapped in DialogPeerClassArray 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. (*DialogPeerClassVector) Zero() bool *DialogPeerClassVector : github.com/gotd/td/bin.BareDecoder *DialogPeerClassVector : github.com/gotd/td/bin.BareEncoder *DialogPeerClassVector : github.com/gotd/td/bin.Decoder *DialogPeerClassVector : github.com/gotd/td/bin.Encoder *DialogPeerClassVector : github.com/gotd/td/bin.Object *DialogPeerClassVector : github.com/gotd/td/tdp.Object *DialogPeerClassVector : fmt.Stringer
DialogPeerFolder represents TL type `dialogPeerFolder#514519e2`. Peer folder¹ Links: 1. https://core.telegram.org/api/folders#peer-folders See https://core.telegram.org/constructor/dialogPeerFolder for reference. Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders AsInput tries to map DialogPeerFolder to InputDialogPeerFolder. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DialogPeerFolder from given interface. GetFolderID returns value of FolderID 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. (*DialogPeerFolder) Zero() bool *DialogPeerFolder : DialogPeerClass *DialogPeerFolder : github.com/gotd/td/bin.BareDecoder *DialogPeerFolder : github.com/gotd/td/bin.BareEncoder *DialogPeerFolder : github.com/gotd/td/bin.Decoder *DialogPeerFolder : github.com/gotd/td/bin.Encoder *DialogPeerFolder : github.com/gotd/td/bin.Object *DialogPeerFolder : github.com/gotd/td/tdp.Object *DialogPeerFolder : fmt.Stringer func DialogPeerFolderArray.First() (v DialogPeerFolder, ok bool) func DialogPeerFolderArray.Last() (v DialogPeerFolder, ok bool) func (*DialogPeerFolderArray).Pop() (v DialogPeerFolder, ok bool) func (*DialogPeerFolderArray).PopFirst() (v DialogPeerFolder, ok bool)
DialogPeerFolderArray is adapter for slice of DialogPeerFolder. 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 DialogPeerFolder. Sort sorts slice of DialogPeerFolder. SortStable sorts slice of DialogPeerFolder. func DialogPeerClassArray.AsDialogPeerFolder() (to DialogPeerFolderArray) func DialogPeerFolderArray.Retain(keep func(x DialogPeerFolder) bool) DialogPeerFolderArray func DialogPeerFolderArray.Sort(less func(a, b DialogPeerFolder) bool) DialogPeerFolderArray func DialogPeerFolderArray.SortStable(less func(a, b DialogPeerFolder) bool) DialogPeerFolderArray
DialogPinnedHandler is a DialogPinned event handler. func UpdateDispatcher.OnDialogPinned(handler DialogPinnedHandler)
DialogUnreadMarkHandler is a DialogUnreadMark event handler. func UpdateDispatcher.OnDialogUnreadMark(handler DialogUnreadMarkHandler)
Document represents TL type `document#8fd4c4d8`. Document See https://core.telegram.org/constructor/document for reference. Check sum, dependent on document ID Attributes DC ID Creation date File reference¹ Links: 1) https://core.telegram.org/api/file_reference Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Document ID MIME type Size Thumbnails Use SetThumbs and GetThumbs helpers. Video thumbnails Use SetVideoThumbs and GetVideoThumbs helpers. AsInput tries to map Document to InputDocument. AsInputDocumentFileLocation tries to map Document to InputDocumentFileLocation. AsNotEmpty tries to map Document to Document. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Document from given interface. GetAccessHash returns value of AccessHash field. GetAttributes returns value of Attributes field. GetDCID returns value of DCID field. GetDate returns value of Date field. GetFileReference returns value of FileReference field. GetID returns value of ID field. GetMimeType returns value of MimeType field. GetSize returns value of Size field. GetThumbs returns value of Thumbs conditional field and boolean which is true if field was set. GetVideoThumbs returns value of VideoThumbs conditional field and boolean which is true if field was set. MapAttributes returns field Attributes wrapped in DocumentAttributeClassArray helper. MapThumbs returns field Thumbs wrapped in PhotoSizeClassArray helper. MapVideoThumbs returns field VideoThumbs wrapped in VideoSizeClassArray helper. SetFlags sets flags for non-zero fields. SetThumbs sets value of Thumbs conditional field. SetVideoThumbs sets value of VideoThumbs 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. (*Document) Zero() bool *Document : DocumentClass *Document : github.com/gotd/td/bin.BareDecoder *Document : github.com/gotd/td/bin.BareEncoder *Document : github.com/gotd/td/bin.Decoder *Document : github.com/gotd/td/bin.Encoder *Document : github.com/gotd/td/bin.Object *Document : github.com/gotd/td/tdp.Object *Document : fmt.Stringer func (*AttachMenuBotIcon).GetIconAsNotEmpty() (*Document, bool) func (*AvailableReaction).GetActivateAnimationAsNotEmpty() (*Document, bool) func (*AvailableReaction).GetAppearAnimationAsNotEmpty() (*Document, bool) func (*AvailableReaction).GetAroundAnimationAsNotEmpty() (*Document, bool) func (*AvailableReaction).GetCenterIconAsNotEmpty() (*Document, bool) func (*AvailableReaction).GetEffectAnimationAsNotEmpty() (*Document, bool) func (*AvailableReaction).GetSelectAnimationAsNotEmpty() (*Document, bool) func (*AvailableReaction).GetStaticIconAsNotEmpty() (*Document, bool) func (*BotInfo).GetDescriptionDocumentAsNotEmpty() (*Document, bool) func (*Document).AsNotEmpty() (*Document, bool) func DocumentArray.First() (v Document, ok bool) func DocumentArray.Last() (v Document, ok bool) func (*DocumentArray).Pop() (v Document, ok bool) func (*DocumentArray).PopFirst() (v Document, ok bool) func DocumentArray.ToMap() map[int64]Document func DocumentClass.AsNotEmpty() (*Document, bool) func DocumentClassArray.AppendOnlyNotEmpty(to []*Document) []*Document func DocumentClassArray.AsNotEmpty() (to []*Document) func DocumentClassArray.DocumentToMap() map[int64]*Document func DocumentClassArray.FirstAsNotEmpty() (v *Document, ok bool) func DocumentClassArray.LastAsNotEmpty() (v *Document, ok bool) func DocumentClassArray.NotEmptyToMap() map[int64]*Document func (*DocumentClassArray).PopAsNotEmpty() (v *Document, ok bool) func (*DocumentClassArray).PopFirstAsNotEmpty() (v *Document, ok bool) func (*DocumentEmpty).AsNotEmpty() (*Document, bool) func (*Game).GetDocumentAsNotEmpty() (*Document, bool) func (*Theme).GetDocumentAsNotEmpty() (*Document, bool) func DocumentArray.FillMap(to map[int64]Document) func DocumentClassArray.AppendOnlyNotEmpty(to []*Document) []*Document func DocumentClassArray.FillDocumentMap(to map[int64]*Document) func DocumentClassArray.FillNotEmptyMap(to map[int64]*Document)
DocumentArray is adapter for slice of Document. 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 Document. Sort sorts slice of Document. SortByDate sorts slice of Document by Date. SortByID sorts slice of Document by ID. SortStable sorts slice of Document. SortStableByDate sorts slice of Document by Date. SortStableByID sorts slice of Document by ID. ToMap collects constructors to map. func DocumentArray.Retain(keep func(x Document) bool) DocumentArray func DocumentArray.Sort(less func(a, b Document) bool) DocumentArray func DocumentArray.SortByDate() DocumentArray func DocumentArray.SortByID() DocumentArray func DocumentArray.SortStable(less func(a, b Document) bool) DocumentArray func DocumentArray.SortStableByDate() DocumentArray func DocumentArray.SortStableByID() DocumentArray func DocumentClassArray.AsDocument() (to DocumentArray)
DocumentAttributeAnimated represents TL type `documentAttributeAnimated#11b58939`. Defines an animated GIF See https://core.telegram.org/constructor/documentAttributeAnimated 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. (*DocumentAttributeAnimated) Zero() bool *DocumentAttributeAnimated : DocumentAttributeClass *DocumentAttributeAnimated : github.com/gotd/td/bin.BareDecoder *DocumentAttributeAnimated : github.com/gotd/td/bin.BareEncoder *DocumentAttributeAnimated : github.com/gotd/td/bin.Decoder *DocumentAttributeAnimated : github.com/gotd/td/bin.Encoder *DocumentAttributeAnimated : github.com/gotd/td/bin.Object *DocumentAttributeAnimated : github.com/gotd/td/tdp.Object *DocumentAttributeAnimated : fmt.Stringer
DocumentAttributeAudio represents TL type `documentAttributeAudio#9852f9c6`. Represents an audio file See https://core.telegram.org/constructor/documentAttributeAudio for reference. Duration in seconds Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Performer Use SetPerformer and GetPerformer helpers. Name of song Use SetTitle and GetTitle helpers. Whether this is a voice message Waveform: consists in a series of bitpacked 5-bit values. Example implementation: android¹. Links: 1) https://github.com/DrKLO/Telegram/blob/96dce2c9aabc33b87db61d830aa087b6b03fe397/TMessagesProj/jni/audio.c#L546 Use SetWaveform and GetWaveform helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DocumentAttributeAudio from given interface. GetDuration returns value of Duration field. GetPerformer returns value of Performer 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. GetVoice returns value of Voice conditional field. GetWaveform returns value of Waveform conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetPerformer sets value of Performer conditional field. SetTitle sets value of Title conditional field. SetVoice sets value of Voice conditional field. SetWaveform sets value of Waveform 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. (*DocumentAttributeAudio) Zero() bool *DocumentAttributeAudio : DocumentAttributeClass *DocumentAttributeAudio : github.com/gotd/td/bin.BareDecoder *DocumentAttributeAudio : github.com/gotd/td/bin.BareEncoder *DocumentAttributeAudio : github.com/gotd/td/bin.Decoder *DocumentAttributeAudio : github.com/gotd/td/bin.Encoder *DocumentAttributeAudio : github.com/gotd/td/bin.Object *DocumentAttributeAudio : github.com/gotd/td/tdp.Object *DocumentAttributeAudio : fmt.Stringer func DocumentAttributeAudioArray.First() (v DocumentAttributeAudio, ok bool) func DocumentAttributeAudioArray.Last() (v DocumentAttributeAudio, ok bool) func (*DocumentAttributeAudioArray).Pop() (v DocumentAttributeAudio, ok bool) func (*DocumentAttributeAudioArray).PopFirst() (v DocumentAttributeAudio, ok bool)
DocumentAttributeAudioArray is adapter for slice of DocumentAttributeAudio. 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 DocumentAttributeAudio. Sort sorts slice of DocumentAttributeAudio. SortStable sorts slice of DocumentAttributeAudio. func DocumentAttributeAudioArray.Retain(keep func(x DocumentAttributeAudio) bool) DocumentAttributeAudioArray func DocumentAttributeAudioArray.Sort(less func(a, b DocumentAttributeAudio) bool) DocumentAttributeAudioArray func DocumentAttributeAudioArray.SortStable(less func(a, b DocumentAttributeAudio) bool) DocumentAttributeAudioArray func DocumentAttributeClassArray.AsDocumentAttributeAudio() (to DocumentAttributeAudioArray)
DocumentAttribute boxes the DocumentAttributeClass providing a helper. DocumentAttribute DocumentAttributeClass Decode implements bin.Decoder for DocumentAttributeBox. Encode implements bin.Encode for DocumentAttributeBox. *DocumentAttributeBox : github.com/gotd/td/bin.Decoder *DocumentAttributeBox : github.com/gotd/td/bin.Encoder *DocumentAttributeBox : github.com/gotd/td/bin.Object
DocumentAttributeClass represents DocumentAttribute generic type. See https://core.telegram.org/type/DocumentAttribute for reference. Example: g, err := tg.DecodeDocumentAttribute(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.DocumentAttributeImageSize: // documentAttributeImageSize#6c37c15c case *tg.DocumentAttributeAnimated: // documentAttributeAnimated#11b58939 case *tg.DocumentAttributeSticker: // documentAttributeSticker#6319d612 case *tg.DocumentAttributeVideo: // documentAttributeVideo#d38ff1c2 case *tg.DocumentAttributeAudio: // documentAttributeAudio#9852f9c6 case *tg.DocumentAttributeFilename: // documentAttributeFilename#15590068 case *tg.DocumentAttributeHasStickers: // documentAttributeHasStickers#9801d2f7 case *tg.DocumentAttributeCustomEmoji: // documentAttributeCustomEmoji#fd149899 default: panic(v) } ( DocumentAttributeClass) Decode(b *bin.Buffer) error ( DocumentAttributeClass) DecodeBare(b *bin.Buffer) error ( DocumentAttributeClass) Encode(b *bin.Buffer) error ( DocumentAttributeClass) 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. *DocumentAttributeAnimated *DocumentAttributeAudio *DocumentAttributeCustomEmoji *DocumentAttributeFilename *DocumentAttributeHasStickers *DocumentAttributeImageSize *DocumentAttributeSticker *DocumentAttributeVideo DocumentAttributeClass : github.com/gotd/td/bin.BareDecoder DocumentAttributeClass : github.com/gotd/td/bin.BareEncoder DocumentAttributeClass : github.com/gotd/td/bin.Decoder DocumentAttributeClass : github.com/gotd/td/bin.Encoder DocumentAttributeClass : github.com/gotd/td/bin.Object DocumentAttributeClass : fmt.Stringer func DecodeDocumentAttribute(buf *bin.Buffer) (DocumentAttributeClass, error) func (*Document).GetAttributes() (value []DocumentAttributeClass) func DocumentAttributeClassArray.First() (v DocumentAttributeClass, ok bool) func DocumentAttributeClassArray.Last() (v DocumentAttributeClass, ok bool) func (*DocumentAttributeClassArray).Pop() (v DocumentAttributeClass, ok bool) func (*DocumentAttributeClassArray).PopFirst() (v DocumentAttributeClass, ok bool) func (*InputMediaUploadedDocument).GetAttributes() (value []DocumentAttributeClass) func (*InputWebDocument).GetAttributes() (value []DocumentAttributeClass) func (*WebDocument).GetAttributes() (value []DocumentAttributeClass) func WebDocumentClass.GetAttributes() (value []DocumentAttributeClass) func (*WebDocumentNoProxy).GetAttributes() (value []DocumentAttributeClass)
DocumentAttributeClassArray is adapter for slice of DocumentAttributeClass. AsDocumentAttributeAudio returns copy with only DocumentAttributeAudio constructors. AsDocumentAttributeCustomEmoji returns copy with only DocumentAttributeCustomEmoji constructors. AsDocumentAttributeFilename returns copy with only DocumentAttributeFilename constructors. AsDocumentAttributeImageSize returns copy with only DocumentAttributeImageSize constructors. AsDocumentAttributeSticker returns copy with only DocumentAttributeSticker constructors. AsDocumentAttributeVideo returns copy with only DocumentAttributeVideo 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 DocumentAttributeClass. Sort sorts slice of DocumentAttributeClass. SortStable sorts slice of DocumentAttributeClass. func (*Document).MapAttributes() (value DocumentAttributeClassArray) func DocumentAttributeClassArray.Retain(keep func(x DocumentAttributeClass) bool) DocumentAttributeClassArray func DocumentAttributeClassArray.Sort(less func(a, b DocumentAttributeClass) bool) DocumentAttributeClassArray func DocumentAttributeClassArray.SortStable(less func(a, b DocumentAttributeClass) bool) DocumentAttributeClassArray func (*InputMediaUploadedDocument).MapAttributes() (value DocumentAttributeClassArray) func (*InputWebDocument).MapAttributes() (value DocumentAttributeClassArray) func (*WebDocument).MapAttributes() (value DocumentAttributeClassArray) func WebDocumentClass.MapAttributes() (value DocumentAttributeClassArray) func (*WebDocumentNoProxy).MapAttributes() (value DocumentAttributeClassArray)
DocumentAttributeCustomEmoji represents TL type `documentAttributeCustomEmoji#fd149899`. Info about a custom emoji See https://core.telegram.org/constructor/documentAttributeCustomEmoji for reference. The actual emoji Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this custom emoji can be sent by non-Premium users The emoji stickerset to which this emoji belongs. Whether the color of this TGS custom emoji should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DocumentAttributeCustomEmoji from given interface. GetAlt returns value of Alt field. GetFree returns value of Free conditional field. GetStickerset returns value of Stickerset field. GetTextColor returns value of TextColor conditional field. SetFlags sets flags for non-zero fields. SetFree sets value of Free conditional field. SetTextColor sets value of TextColor 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. (*DocumentAttributeCustomEmoji) Zero() bool *DocumentAttributeCustomEmoji : DocumentAttributeClass *DocumentAttributeCustomEmoji : github.com/gotd/td/bin.BareDecoder *DocumentAttributeCustomEmoji : github.com/gotd/td/bin.BareEncoder *DocumentAttributeCustomEmoji : github.com/gotd/td/bin.Decoder *DocumentAttributeCustomEmoji : github.com/gotd/td/bin.Encoder *DocumentAttributeCustomEmoji : github.com/gotd/td/bin.Object *DocumentAttributeCustomEmoji : github.com/gotd/td/tdp.Object *DocumentAttributeCustomEmoji : fmt.Stringer func DocumentAttributeCustomEmojiArray.First() (v DocumentAttributeCustomEmoji, ok bool) func DocumentAttributeCustomEmojiArray.Last() (v DocumentAttributeCustomEmoji, ok bool) func (*DocumentAttributeCustomEmojiArray).Pop() (v DocumentAttributeCustomEmoji, ok bool) func (*DocumentAttributeCustomEmojiArray).PopFirst() (v DocumentAttributeCustomEmoji, ok bool)
DocumentAttributeCustomEmojiArray is adapter for slice of DocumentAttributeCustomEmoji. 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 DocumentAttributeCustomEmoji. Sort sorts slice of DocumentAttributeCustomEmoji. SortStable sorts slice of DocumentAttributeCustomEmoji. func DocumentAttributeClassArray.AsDocumentAttributeCustomEmoji() (to DocumentAttributeCustomEmojiArray) func DocumentAttributeCustomEmojiArray.Retain(keep func(x DocumentAttributeCustomEmoji) bool) DocumentAttributeCustomEmojiArray func DocumentAttributeCustomEmojiArray.Sort(less func(a, b DocumentAttributeCustomEmoji) bool) DocumentAttributeCustomEmojiArray func DocumentAttributeCustomEmojiArray.SortStable(less func(a, b DocumentAttributeCustomEmoji) bool) DocumentAttributeCustomEmojiArray
DocumentAttributeFilename represents TL type `documentAttributeFilename#15590068`. A simple document with a file name See https://core.telegram.org/constructor/documentAttributeFilename for reference. The file name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DocumentAttributeFilename from given interface. GetFileName returns value of FileName 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. (*DocumentAttributeFilename) Zero() bool *DocumentAttributeFilename : DocumentAttributeClass *DocumentAttributeFilename : github.com/gotd/td/bin.BareDecoder *DocumentAttributeFilename : github.com/gotd/td/bin.BareEncoder *DocumentAttributeFilename : github.com/gotd/td/bin.Decoder *DocumentAttributeFilename : github.com/gotd/td/bin.Encoder *DocumentAttributeFilename : github.com/gotd/td/bin.Object *DocumentAttributeFilename : github.com/gotd/td/tdp.Object *DocumentAttributeFilename : fmt.Stringer func DocumentAttributeFilenameArray.First() (v DocumentAttributeFilename, ok bool) func DocumentAttributeFilenameArray.Last() (v DocumentAttributeFilename, ok bool) func (*DocumentAttributeFilenameArray).Pop() (v DocumentAttributeFilename, ok bool) func (*DocumentAttributeFilenameArray).PopFirst() (v DocumentAttributeFilename, ok bool)
DocumentAttributeFilenameArray is adapter for slice of DocumentAttributeFilename. 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 DocumentAttributeFilename. Sort sorts slice of DocumentAttributeFilename. SortStable sorts slice of DocumentAttributeFilename. func DocumentAttributeClassArray.AsDocumentAttributeFilename() (to DocumentAttributeFilenameArray) func DocumentAttributeFilenameArray.Retain(keep func(x DocumentAttributeFilename) bool) DocumentAttributeFilenameArray func DocumentAttributeFilenameArray.Sort(less func(a, b DocumentAttributeFilename) bool) DocumentAttributeFilenameArray func DocumentAttributeFilenameArray.SortStable(less func(a, b DocumentAttributeFilename) bool) DocumentAttributeFilenameArray
DocumentAttributeHasStickers represents TL type `documentAttributeHasStickers#9801d2f7`. Whether the current document has stickers attached See https://core.telegram.org/constructor/documentAttributeHasStickers 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. (*DocumentAttributeHasStickers) Zero() bool *DocumentAttributeHasStickers : DocumentAttributeClass *DocumentAttributeHasStickers : github.com/gotd/td/bin.BareDecoder *DocumentAttributeHasStickers : github.com/gotd/td/bin.BareEncoder *DocumentAttributeHasStickers : github.com/gotd/td/bin.Decoder *DocumentAttributeHasStickers : github.com/gotd/td/bin.Encoder *DocumentAttributeHasStickers : github.com/gotd/td/bin.Object *DocumentAttributeHasStickers : github.com/gotd/td/tdp.Object *DocumentAttributeHasStickers : fmt.Stringer
DocumentAttributeImageSize represents TL type `documentAttributeImageSize#6c37c15c`. Defines the width and height of an image uploaded as document See https://core.telegram.org/constructor/documentAttributeImageSize for reference. Height of image Width of image Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DocumentAttributeImageSize from given interface. GetH returns value of H field. GetW returns value of W 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. (*DocumentAttributeImageSize) Zero() bool *DocumentAttributeImageSize : DocumentAttributeClass *DocumentAttributeImageSize : github.com/gotd/td/bin.BareDecoder *DocumentAttributeImageSize : github.com/gotd/td/bin.BareEncoder *DocumentAttributeImageSize : github.com/gotd/td/bin.Decoder *DocumentAttributeImageSize : github.com/gotd/td/bin.Encoder *DocumentAttributeImageSize : github.com/gotd/td/bin.Object *DocumentAttributeImageSize : github.com/gotd/td/tdp.Object *DocumentAttributeImageSize : fmt.Stringer func DocumentAttributeImageSizeArray.First() (v DocumentAttributeImageSize, ok bool) func DocumentAttributeImageSizeArray.Last() (v DocumentAttributeImageSize, ok bool) func (*DocumentAttributeImageSizeArray).Pop() (v DocumentAttributeImageSize, ok bool) func (*DocumentAttributeImageSizeArray).PopFirst() (v DocumentAttributeImageSize, ok bool)
DocumentAttributeImageSizeArray is adapter for slice of DocumentAttributeImageSize. 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 DocumentAttributeImageSize. Sort sorts slice of DocumentAttributeImageSize. SortStable sorts slice of DocumentAttributeImageSize. func DocumentAttributeClassArray.AsDocumentAttributeImageSize() (to DocumentAttributeImageSizeArray) func DocumentAttributeImageSizeArray.Retain(keep func(x DocumentAttributeImageSize) bool) DocumentAttributeImageSizeArray func DocumentAttributeImageSizeArray.Sort(less func(a, b DocumentAttributeImageSize) bool) DocumentAttributeImageSizeArray func DocumentAttributeImageSizeArray.SortStable(less func(a, b DocumentAttributeImageSize) bool) DocumentAttributeImageSizeArray
DocumentAttributeSticker represents TL type `documentAttributeSticker#6319d612`. Defines a sticker See https://core.telegram.org/constructor/documentAttributeSticker for reference. Alternative emoji representation of sticker Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this is a mask sticker Mask coordinates (if this is a mask sticker, attached to a photo) Use SetMaskCoords and GetMaskCoords helpers. Associated stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DocumentAttributeSticker from given interface. GetAlt returns value of Alt field. GetMask returns value of Mask conditional field. GetMaskCoords returns value of MaskCoords conditional field and boolean which is true if field was set. GetStickerset returns value of Stickerset field. SetFlags sets flags for non-zero fields. SetMask sets value of Mask conditional field. SetMaskCoords sets value of MaskCoords 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. (*DocumentAttributeSticker) Zero() bool *DocumentAttributeSticker : DocumentAttributeClass *DocumentAttributeSticker : github.com/gotd/td/bin.BareDecoder *DocumentAttributeSticker : github.com/gotd/td/bin.BareEncoder *DocumentAttributeSticker : github.com/gotd/td/bin.Decoder *DocumentAttributeSticker : github.com/gotd/td/bin.Encoder *DocumentAttributeSticker : github.com/gotd/td/bin.Object *DocumentAttributeSticker : github.com/gotd/td/tdp.Object *DocumentAttributeSticker : fmt.Stringer func DocumentAttributeStickerArray.First() (v DocumentAttributeSticker, ok bool) func DocumentAttributeStickerArray.Last() (v DocumentAttributeSticker, ok bool) func (*DocumentAttributeStickerArray).Pop() (v DocumentAttributeSticker, ok bool) func (*DocumentAttributeStickerArray).PopFirst() (v DocumentAttributeSticker, ok bool)
DocumentAttributeStickerArray is adapter for slice of DocumentAttributeSticker. 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 DocumentAttributeSticker. Sort sorts slice of DocumentAttributeSticker. SortStable sorts slice of DocumentAttributeSticker. func DocumentAttributeClassArray.AsDocumentAttributeSticker() (to DocumentAttributeStickerArray) func DocumentAttributeStickerArray.Retain(keep func(x DocumentAttributeSticker) bool) DocumentAttributeStickerArray func DocumentAttributeStickerArray.Sort(less func(a, b DocumentAttributeSticker) bool) DocumentAttributeStickerArray func DocumentAttributeStickerArray.SortStable(less func(a, b DocumentAttributeSticker) bool) DocumentAttributeStickerArray
DocumentAttributeVideo represents TL type `documentAttributeVideo#d38ff1c2`. Defines a video See https://core.telegram.org/constructor/documentAttributeVideo for reference. Duration in seconds Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Video height Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example) Number of bytes to preload when preloading videos (particularly video stories¹). Links: 1) https://core.telegram.org/api/stories Use SetPreloadPrefixSize and GetPreloadPrefixSize helpers. Whether this is a round video Whether the video supports streaming Video width Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DocumentAttributeVideo from given interface. GetDuration returns value of Duration field. GetH returns value of H field. GetNosound returns value of Nosound conditional field. GetPreloadPrefixSize returns value of PreloadPrefixSize conditional field and boolean which is true if field was set. GetRoundMessage returns value of RoundMessage conditional field. GetSupportsStreaming returns value of SupportsStreaming conditional field. GetW returns value of W field. SetFlags sets flags for non-zero fields. SetNosound sets value of Nosound conditional field. SetPreloadPrefixSize sets value of PreloadPrefixSize conditional field. SetRoundMessage sets value of RoundMessage conditional field. SetSupportsStreaming sets value of SupportsStreaming 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. (*DocumentAttributeVideo) Zero() bool *DocumentAttributeVideo : DocumentAttributeClass *DocumentAttributeVideo : github.com/gotd/td/bin.BareDecoder *DocumentAttributeVideo : github.com/gotd/td/bin.BareEncoder *DocumentAttributeVideo : github.com/gotd/td/bin.Decoder *DocumentAttributeVideo : github.com/gotd/td/bin.Encoder *DocumentAttributeVideo : github.com/gotd/td/bin.Object *DocumentAttributeVideo : github.com/gotd/td/tdp.Object *DocumentAttributeVideo : fmt.Stringer func DocumentAttributeVideoArray.First() (v DocumentAttributeVideo, ok bool) func DocumentAttributeVideoArray.Last() (v DocumentAttributeVideo, ok bool) func (*DocumentAttributeVideoArray).Pop() (v DocumentAttributeVideo, ok bool) func (*DocumentAttributeVideoArray).PopFirst() (v DocumentAttributeVideo, ok bool)
DocumentAttributeVideoArray is adapter for slice of DocumentAttributeVideo. 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 DocumentAttributeVideo. Sort sorts slice of DocumentAttributeVideo. SortStable sorts slice of DocumentAttributeVideo. func DocumentAttributeClassArray.AsDocumentAttributeVideo() (to DocumentAttributeVideoArray) func DocumentAttributeVideoArray.Retain(keep func(x DocumentAttributeVideo) bool) DocumentAttributeVideoArray func DocumentAttributeVideoArray.Sort(less func(a, b DocumentAttributeVideo) bool) DocumentAttributeVideoArray func DocumentAttributeVideoArray.SortStable(less func(a, b DocumentAttributeVideo) bool) DocumentAttributeVideoArray
Document boxes the DocumentClass providing a helper. The converted notification sound Decode implements bin.Decoder for DocumentBox. Encode implements bin.Encode for DocumentBox. *DocumentBox : github.com/gotd/td/bin.Decoder *DocumentBox : github.com/gotd/td/bin.Encoder *DocumentBox : github.com/gotd/td/bin.Object
DocumentClass represents Document generic type. See https://core.telegram.org/type/Document for reference. Example: g, err := tg.DecodeDocument(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.DocumentEmpty: // documentEmpty#36f8c871 case *tg.Document: // document#8fd4c4d8 default: panic(v) } AsNotEmpty tries to map DocumentClass to Document. ( DocumentClass) Decode(b *bin.Buffer) error ( DocumentClass) DecodeBare(b *bin.Buffer) error ( DocumentClass) Encode(b *bin.Buffer) error ( DocumentClass) EncodeBare(b *bin.Buffer) error Document ID or 0 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. *Document *DocumentEmpty DocumentClass : github.com/gotd/td/bin.BareDecoder DocumentClass : github.com/gotd/td/bin.BareEncoder DocumentClass : github.com/gotd/td/bin.Decoder DocumentClass : github.com/gotd/td/bin.Encoder DocumentClass : github.com/gotd/td/bin.Object DocumentClass : fmt.Stringer func DecodeDocument(buf *bin.Buffer) (DocumentClass, error) func (*AccountSavedRingtoneConverted).GetDocument() (value DocumentClass) func (*AccountSavedRingtones).GetRingtones() (value []DocumentClass) func (*AttachMenuBotIcon).GetIcon() (value DocumentClass) func (*AvailableReaction).GetActivateAnimation() (value DocumentClass) func (*AvailableReaction).GetAppearAnimation() (value DocumentClass) func (*AvailableReaction).GetAroundAnimation() (value DocumentClass, ok bool) func (*AvailableReaction).GetCenterIcon() (value DocumentClass, ok bool) func (*AvailableReaction).GetEffectAnimation() (value DocumentClass) func (*AvailableReaction).GetSelectAnimation() (value DocumentClass) func (*AvailableReaction).GetStaticIcon() (value DocumentClass) func (*BotApp).GetDocument() (value DocumentClass, ok bool) func (*BotInfo).GetDescriptionDocument() (value DocumentClass, ok bool) func (*BotInlineMediaResult).GetDocument() (value DocumentClass, ok bool) func (*Client).AccountUploadRingtone(ctx context.Context, request *AccountUploadRingtoneRequest) (DocumentClass, error) func (*Client).AccountUploadTheme(ctx context.Context, request *AccountUploadThemeRequest) (DocumentClass, error) func (*Client).MessagesGetCustomEmojiDocuments(ctx context.Context, documentid []int64) ([]DocumentClass, error) func (*Client).MessagesGetDocumentByHash(ctx context.Context, request *MessagesGetDocumentByHashRequest) (DocumentClass, error) func DocumentClassArray.First() (v DocumentClass, ok bool) func DocumentClassArray.Last() (v DocumentClass, ok bool) func (*DocumentClassArray).Pop() (v DocumentClass, ok bool) func (*DocumentClassArray).PopFirst() (v DocumentClass, ok bool) func (*DocumentClassVector).GetElems() (value []DocumentClass) func (*Game).GetDocument() (value DocumentClass, ok bool) func (*HelpAppUpdate).GetDocument() (value DocumentClass, ok bool) func (*HelpAppUpdate).GetSticker() (value DocumentClass, ok bool) func (*HelpPremiumPromo).GetVideos() (value []DocumentClass) func (*MessageMediaDocument).GetAltDocument() (value DocumentClass, ok bool) func (*MessageMediaDocument).GetDocument() (value DocumentClass, ok bool) func (*MessagesFavedStickers).GetStickers() (value []DocumentClass) func (*MessagesRecentStickers).GetStickers() (value []DocumentClass) func (*MessagesSavedGifs).GetGifs() (value []DocumentClass) func (*MessagesStickers).GetStickers() (value []DocumentClass) func (*MessagesStickerSet).GetDocuments() (value []DocumentClass) func (*Page).GetDocuments() (value []DocumentClass) func (*StickerSetCovered).GetCover() (value DocumentClass) func (*StickerSetFullCovered).GetDocuments() (value []DocumentClass) func (*StickerSetMultiCovered).GetCovers() (value []DocumentClass) func (*Theme).GetDocument() (value DocumentClass, ok bool) func (*WallPaper).GetDocument() (value DocumentClass) func (*WebPage).GetDocument() (value DocumentClass, ok bool) func (*WebPageAttributeTheme).GetDocuments() (value []DocumentClass, ok bool) func (*AvailableReaction).SetAroundAnimation(value DocumentClass) func (*AvailableReaction).SetCenterIcon(value DocumentClass) func (*BotApp).SetDocument(value DocumentClass) func (*BotInfo).SetDescriptionDocument(value DocumentClass) func (*BotInlineMediaResult).SetDocument(value DocumentClass) func (*Game).SetDocument(value DocumentClass) func (*HelpAppUpdate).SetDocument(value DocumentClass) func (*HelpAppUpdate).SetSticker(value DocumentClass) func (*MessageMediaDocument).SetAltDocument(value DocumentClass) func (*MessageMediaDocument).SetDocument(value DocumentClass) func (*Theme).SetDocument(value DocumentClass) func (*WebPage).SetDocument(value DocumentClass) func (*WebPageAttributeTheme).SetDocuments(value []DocumentClass)
DocumentClassArray is adapter for slice of DocumentClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsDocument returns copy with only Document constructors. AsDocumentEmpty returns copy with only DocumentEmpty constructors. AsNotEmpty returns copy with only NotEmpty constructors. DocumentEmptyToMap collects only DocumentEmpty constructors to map. DocumentToMap collects only Document constructors to map. FillDocumentEmptyMap fills only DocumentEmpty constructors to given map. FillDocumentMap fills only Document constructors to given map. FillNotEmptyMap fills only NotEmpty constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of DocumentClass. Sort sorts slice of DocumentClass. SortByID sorts slice of DocumentClass by ID. SortStable sorts slice of DocumentClass. SortStableByID sorts slice of DocumentClass by ID. func (*AccountSavedRingtones).MapRingtones() (value DocumentClassArray) func DocumentClassArray.Retain(keep func(x DocumentClass) bool) DocumentClassArray func DocumentClassArray.Sort(less func(a, b DocumentClass) bool) DocumentClassArray func DocumentClassArray.SortByID() DocumentClassArray func DocumentClassArray.SortStable(less func(a, b DocumentClass) bool) DocumentClassArray func DocumentClassArray.SortStableByID() DocumentClassArray func (*DocumentClassVector).MapElems() (value DocumentClassArray) func (*HelpPremiumPromo).MapVideos() (value DocumentClassArray) func (*MessagesFavedStickers).MapStickers() (value DocumentClassArray) func (*MessagesRecentStickers).MapStickers() (value DocumentClassArray) func (*MessagesSavedGifs).MapGifs() (value DocumentClassArray) func (*MessagesStickers).MapStickers() (value DocumentClassArray) func (*MessagesStickerSet).MapDocuments() (value DocumentClassArray) func (*Page).MapDocuments() (value DocumentClassArray) func (*StickerSetFullCovered).MapDocuments() (value DocumentClassArray) func (*StickerSetMultiCovered).MapCovers() (value DocumentClassArray) func (*WebPageAttributeTheme).MapDocuments() (value DocumentClassArray, ok bool)
DocumentClassVector is a box for Vector<Document> Elements of Vector<Document> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DocumentClassVector from given interface. GetElems returns value of Elems field. MapElems returns field Elems 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. (*DocumentClassVector) Zero() bool *DocumentClassVector : github.com/gotd/td/bin.BareDecoder *DocumentClassVector : github.com/gotd/td/bin.BareEncoder *DocumentClassVector : github.com/gotd/td/bin.Decoder *DocumentClassVector : github.com/gotd/td/bin.Encoder *DocumentClassVector : github.com/gotd/td/bin.Object *DocumentClassVector : github.com/gotd/td/tdp.Object *DocumentClassVector : fmt.Stringer
DocumentEmpty represents TL type `documentEmpty#36f8c871`. Empty constructor, document doesn't exist. See https://core.telegram.org/constructor/documentEmpty for reference. Takeout ID AsNotEmpty tries to map DocumentEmpty to Document. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DocumentEmpty 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. (*DocumentEmpty) Zero() bool *DocumentEmpty : DocumentClass *DocumentEmpty : github.com/gotd/td/bin.BareDecoder *DocumentEmpty : github.com/gotd/td/bin.BareEncoder *DocumentEmpty : github.com/gotd/td/bin.Decoder *DocumentEmpty : github.com/gotd/td/bin.Encoder *DocumentEmpty : github.com/gotd/td/bin.Object *DocumentEmpty : github.com/gotd/td/tdp.Object *DocumentEmpty : fmt.Stringer func DocumentClassArray.DocumentEmptyToMap() map[int64]*DocumentEmpty func DocumentEmptyArray.First() (v DocumentEmpty, ok bool) func DocumentEmptyArray.Last() (v DocumentEmpty, ok bool) func (*DocumentEmptyArray).Pop() (v DocumentEmpty, ok bool) func (*DocumentEmptyArray).PopFirst() (v DocumentEmpty, ok bool) func DocumentEmptyArray.ToMap() map[int64]DocumentEmpty func DocumentClassArray.FillDocumentEmptyMap(to map[int64]*DocumentEmpty) func DocumentEmptyArray.FillMap(to map[int64]DocumentEmpty)
DocumentEmptyArray is adapter for slice of DocumentEmpty. 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 DocumentEmpty. Sort sorts slice of DocumentEmpty. SortByID sorts slice of DocumentEmpty by ID. SortStable sorts slice of DocumentEmpty. SortStableByID sorts slice of DocumentEmpty by ID. ToMap collects constructors to map. func DocumentClassArray.AsDocumentEmpty() (to DocumentEmptyArray) func DocumentEmptyArray.Retain(keep func(x DocumentEmpty) bool) DocumentEmptyArray func DocumentEmptyArray.Sort(less func(a, b DocumentEmpty) bool) DocumentEmptyArray func DocumentEmptyArray.SortByID() DocumentEmptyArray func DocumentEmptyArray.SortStable(less func(a, b DocumentEmpty) bool) DocumentEmptyArray func DocumentEmptyArray.SortStableByID() DocumentEmptyArray
Double represents TL type `double#2210c154`. See https://core.telegram.org/constructor/double 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. (*Double) Zero() bool *Double : github.com/gotd/td/bin.BareDecoder *Double : github.com/gotd/td/bin.BareEncoder *Double : github.com/gotd/td/bin.Decoder *Double : github.com/gotd/td/bin.Encoder *Double : github.com/gotd/td/bin.Object *Double : github.com/gotd/td/tdp.Object *Double : fmt.Stringer
DraftMessage represents TL type `draftMessage#3fccf7ef`. Represents a message draft¹. Links: 1. https://core.telegram.org/api/drafts See https://core.telegram.org/constructor/draftMessage for reference. Date of last update of the draft. 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. Media. Use SetMedia and GetMedia helpers. The draft Whether no webpage preview will be generated If set, indicates that the message should be sent in reply to the specified message or story. Use SetReplyTo and GetReplyTo helpers. AsNotEmpty tries to map DraftMessage to DraftMessage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DraftMessage from given interface. GetDate returns value of Date field. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetInvertMedia returns value of InvertMedia conditional field. GetMedia returns value of Media conditional field and boolean which is true if field was set. GetMessage returns value of Message field. GetNoWebpage returns value of NoWebpage conditional field. GetReplyTo returns value of ReplyTo 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. SetMedia sets value of Media conditional field. SetNoWebpage sets value of NoWebpage conditional field. SetReplyTo sets value of ReplyTo 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. (*DraftMessage) Zero() bool *DraftMessage : DraftMessageClass *DraftMessage : github.com/gotd/td/bin.BareDecoder *DraftMessage : github.com/gotd/td/bin.BareEncoder *DraftMessage : github.com/gotd/td/bin.Decoder *DraftMessage : github.com/gotd/td/bin.Encoder *DraftMessage : github.com/gotd/td/bin.Object *DraftMessage : github.com/gotd/td/tdp.Object *DraftMessage : fmt.Stringer func (*DraftMessage).AsNotEmpty() (*DraftMessage, bool) func DraftMessageArray.First() (v DraftMessage, ok bool) func DraftMessageArray.Last() (v DraftMessage, ok bool) func (*DraftMessageArray).Pop() (v DraftMessage, ok bool) func (*DraftMessageArray).PopFirst() (v DraftMessage, ok bool) func DraftMessageClass.AsNotEmpty() (*DraftMessage, bool) func DraftMessageClassArray.AppendOnlyNotEmpty(to []*DraftMessage) []*DraftMessage func DraftMessageClassArray.AsNotEmpty() (to []*DraftMessage) func DraftMessageClassArray.FirstAsNotEmpty() (v *DraftMessage, ok bool) func DraftMessageClassArray.LastAsNotEmpty() (v *DraftMessage, ok bool) func (*DraftMessageClassArray).PopAsNotEmpty() (v *DraftMessage, ok bool) func (*DraftMessageClassArray).PopFirstAsNotEmpty() (v *DraftMessage, ok bool) func (*DraftMessageEmpty).AsNotEmpty() (*DraftMessage, bool) func DraftMessageClassArray.AppendOnlyNotEmpty(to []*DraftMessage) []*DraftMessage
DraftMessageArray is adapter for slice of DraftMessage. 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 DraftMessage. Sort sorts slice of DraftMessage. SortByDate sorts slice of DraftMessage by Date. SortStable sorts slice of DraftMessage. SortStableByDate sorts slice of DraftMessage by Date. func DraftMessageArray.Retain(keep func(x DraftMessage) bool) DraftMessageArray func DraftMessageArray.Sort(less func(a, b DraftMessage) bool) DraftMessageArray func DraftMessageArray.SortByDate() DraftMessageArray func DraftMessageArray.SortStable(less func(a, b DraftMessage) bool) DraftMessageArray func DraftMessageArray.SortStableByDate() DraftMessageArray func DraftMessageClassArray.AsDraftMessage() (to DraftMessageArray)
DraftMessage boxes the DraftMessageClass providing a helper. DraftMessage DraftMessageClass Decode implements bin.Decoder for DraftMessageBox. Encode implements bin.Encode for DraftMessageBox. *DraftMessageBox : github.com/gotd/td/bin.Decoder *DraftMessageBox : github.com/gotd/td/bin.Encoder *DraftMessageBox : github.com/gotd/td/bin.Object
DraftMessageClass represents DraftMessage generic type. See https://core.telegram.org/type/DraftMessage for reference. Example: g, err := tg.DecodeDraftMessage(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.DraftMessageEmpty: // draftMessageEmpty#1b0c841a case *tg.DraftMessage: // draftMessage#3fccf7ef default: panic(v) } AsNotEmpty tries to map DraftMessageClass to DraftMessage. ( DraftMessageClass) Decode(b *bin.Buffer) error ( DraftMessageClass) DecodeBare(b *bin.Buffer) error ( DraftMessageClass) Encode(b *bin.Buffer) error ( DraftMessageClass) 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. *DraftMessage *DraftMessageEmpty DraftMessageClass : github.com/gotd/td/bin.BareDecoder DraftMessageClass : github.com/gotd/td/bin.BareEncoder DraftMessageClass : github.com/gotd/td/bin.Decoder DraftMessageClass : github.com/gotd/td/bin.Encoder DraftMessageClass : github.com/gotd/td/bin.Object DraftMessageClass : fmt.Stringer func DecodeDraftMessage(buf *bin.Buffer) (DraftMessageClass, error) func (*Dialog).GetDraft() (value DraftMessageClass, ok bool) func DraftMessageClassArray.First() (v DraftMessageClass, ok bool) func DraftMessageClassArray.Last() (v DraftMessageClass, ok bool) func (*DraftMessageClassArray).Pop() (v DraftMessageClass, ok bool) func (*DraftMessageClassArray).PopFirst() (v DraftMessageClass, ok bool) func (*ForumTopic).GetDraft() (value DraftMessageClass, ok bool) func (*UpdateDraftMessage).GetDraft() (value DraftMessageClass) func (*Dialog).SetDraft(value DraftMessageClass) func (*ForumTopic).SetDraft(value DraftMessageClass)
DraftMessageClassArray is adapter for slice of DraftMessageClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsDraftMessage returns copy with only DraftMessage constructors. AsDraftMessageEmpty returns copy with only DraftMessageEmpty constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of DraftMessageClass. Sort sorts slice of DraftMessageClass. SortStable sorts slice of DraftMessageClass. func DraftMessageClassArray.Retain(keep func(x DraftMessageClass) bool) DraftMessageClassArray func DraftMessageClassArray.Sort(less func(a, b DraftMessageClass) bool) DraftMessageClassArray func DraftMessageClassArray.SortStable(less func(a, b DraftMessageClass) bool) DraftMessageClassArray
DraftMessageEmpty represents TL type `draftMessageEmpty#1b0c841a`. Empty draft See https://core.telegram.org/constructor/draftMessageEmpty for reference. When was the draft last updated Use SetDate and GetDate helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields AsNotEmpty tries to map DraftMessageEmpty to DraftMessage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills DraftMessageEmpty from given interface. GetDate returns value of Date conditional field and boolean which is true if field was set. SetDate sets value of Date 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. (*DraftMessageEmpty) Zero() bool *DraftMessageEmpty : DraftMessageClass *DraftMessageEmpty : github.com/gotd/td/bin.BareDecoder *DraftMessageEmpty : github.com/gotd/td/bin.BareEncoder *DraftMessageEmpty : github.com/gotd/td/bin.Decoder *DraftMessageEmpty : github.com/gotd/td/bin.Encoder *DraftMessageEmpty : github.com/gotd/td/bin.Object *DraftMessageEmpty : github.com/gotd/td/tdp.Object *DraftMessageEmpty : fmt.Stringer func DraftMessageEmptyArray.First() (v DraftMessageEmpty, ok bool) func DraftMessageEmptyArray.Last() (v DraftMessageEmpty, ok bool) func (*DraftMessageEmptyArray).Pop() (v DraftMessageEmpty, ok bool) func (*DraftMessageEmptyArray).PopFirst() (v DraftMessageEmpty, ok bool)
DraftMessageEmptyArray is adapter for slice of DraftMessageEmpty. 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 DraftMessageEmpty. Sort sorts slice of DraftMessageEmpty. SortStable sorts slice of DraftMessageEmpty. func DraftMessageClassArray.AsDraftMessageEmpty() (to DraftMessageEmptyArray) func DraftMessageEmptyArray.Retain(keep func(x DraftMessageEmpty) bool) DraftMessageEmptyArray func DraftMessageEmptyArray.Sort(less func(a, b DraftMessageEmpty) bool) DraftMessageEmptyArray func DraftMessageEmptyArray.SortStable(less func(a, b DraftMessageEmpty) bool) DraftMessageEmptyArray
DraftMessageHandler is a DraftMessage event handler. func UpdateDispatcher.OnDraftMessage(handler DraftMessageHandler)
EditChannelMessageHandler is a EditChannelMessage event handler. func UpdateDispatcher.OnEditChannelMessage(handler EditChannelMessageHandler)
EditMessageHandler is a EditMessage event handler. func UpdateDispatcher.OnEditMessage(handler EditMessageHandler)
EmailVerificationApple represents TL type `emailVerificationApple#96d074fd`. Apple ID email verification token See https://core.telegram.org/constructor/emailVerificationApple for reference. The token extracted from the temporary profile link¹. Links: 1) https://core.telegram.org/api/links#temporary-profile-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmailVerificationApple 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. (*EmailVerificationApple) Zero() bool *EmailVerificationApple : EmailVerificationClass *EmailVerificationApple : github.com/gotd/td/bin.BareDecoder *EmailVerificationApple : github.com/gotd/td/bin.BareEncoder *EmailVerificationApple : github.com/gotd/td/bin.Decoder *EmailVerificationApple : github.com/gotd/td/bin.Encoder *EmailVerificationApple : github.com/gotd/td/bin.Object *EmailVerificationApple : github.com/gotd/td/tdp.Object *EmailVerificationApple : fmt.Stringer func EmailVerificationAppleArray.First() (v EmailVerificationApple, ok bool) func EmailVerificationAppleArray.Last() (v EmailVerificationApple, ok bool) func (*EmailVerificationAppleArray).Pop() (v EmailVerificationApple, ok bool) func (*EmailVerificationAppleArray).PopFirst() (v EmailVerificationApple, ok bool)
EmailVerificationAppleArray is adapter for slice of EmailVerificationApple. 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 EmailVerificationApple. Sort sorts slice of EmailVerificationApple. SortStable sorts slice of EmailVerificationApple. func EmailVerificationAppleArray.Retain(keep func(x EmailVerificationApple) bool) EmailVerificationAppleArray func EmailVerificationAppleArray.Sort(less func(a, b EmailVerificationApple) bool) EmailVerificationAppleArray func EmailVerificationAppleArray.SortStable(less func(a, b EmailVerificationApple) bool) EmailVerificationAppleArray func EmailVerificationClassArray.AsEmailVerificationApple() (to EmailVerificationAppleArray)
EmailVerification boxes the EmailVerificationClass providing a helper. EmailVerification EmailVerificationClass Decode implements bin.Decoder for EmailVerificationBox. Encode implements bin.Encode for EmailVerificationBox. *EmailVerificationBox : github.com/gotd/td/bin.Decoder *EmailVerificationBox : github.com/gotd/td/bin.Encoder *EmailVerificationBox : github.com/gotd/td/bin.Object
EmailVerificationClass represents EmailVerification generic type. See https://core.telegram.org/type/EmailVerification for reference. Example: g, err := tg.DecodeEmailVerification(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.EmailVerificationCode: // emailVerificationCode#922e55a9 case *tg.EmailVerificationGoogle: // emailVerificationGoogle#db909ec2 case *tg.EmailVerificationApple: // emailVerificationApple#96d074fd default: panic(v) } ( EmailVerificationClass) Decode(b *bin.Buffer) error ( EmailVerificationClass) DecodeBare(b *bin.Buffer) error ( EmailVerificationClass) Encode(b *bin.Buffer) error ( EmailVerificationClass) 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. *EmailVerificationApple *EmailVerificationCode *EmailVerificationGoogle EmailVerificationClass : github.com/gotd/td/bin.BareDecoder EmailVerificationClass : github.com/gotd/td/bin.BareEncoder EmailVerificationClass : github.com/gotd/td/bin.Decoder EmailVerificationClass : github.com/gotd/td/bin.Encoder EmailVerificationClass : github.com/gotd/td/bin.Object EmailVerificationClass : fmt.Stringer func DecodeEmailVerification(buf *bin.Buffer) (EmailVerificationClass, error) func (*AccountVerifyEmailRequest).GetVerification() (value EmailVerificationClass) func (*AuthSignInRequest).GetEmailVerification() (value EmailVerificationClass, ok bool) func EmailVerificationClassArray.First() (v EmailVerificationClass, ok bool) func EmailVerificationClassArray.Last() (v EmailVerificationClass, ok bool) func (*EmailVerificationClassArray).Pop() (v EmailVerificationClass, ok bool) func (*EmailVerificationClassArray).PopFirst() (v EmailVerificationClass, ok bool) func (*AuthSignInRequest).SetEmailVerification(value EmailVerificationClass)
EmailVerificationClassArray is adapter for slice of EmailVerificationClass. AsEmailVerificationApple returns copy with only EmailVerificationApple constructors. AsEmailVerificationCode returns copy with only EmailVerificationCode constructors. AsEmailVerificationGoogle returns copy with only EmailVerificationGoogle 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 EmailVerificationClass. Sort sorts slice of EmailVerificationClass. SortStable sorts slice of EmailVerificationClass. func EmailVerificationClassArray.Retain(keep func(x EmailVerificationClass) bool) EmailVerificationClassArray func EmailVerificationClassArray.Sort(less func(a, b EmailVerificationClass) bool) EmailVerificationClassArray func EmailVerificationClassArray.SortStable(less func(a, b EmailVerificationClass) bool) EmailVerificationClassArray
EmailVerificationCode represents TL type `emailVerificationCode#922e55a9`. Email verification code See https://core.telegram.org/constructor/emailVerificationCode 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 EmailVerificationCode 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. (*EmailVerificationCode) Zero() bool *EmailVerificationCode : EmailVerificationClass *EmailVerificationCode : github.com/gotd/td/bin.BareDecoder *EmailVerificationCode : github.com/gotd/td/bin.BareEncoder *EmailVerificationCode : github.com/gotd/td/bin.Decoder *EmailVerificationCode : github.com/gotd/td/bin.Encoder *EmailVerificationCode : github.com/gotd/td/bin.Object *EmailVerificationCode : github.com/gotd/td/tdp.Object *EmailVerificationCode : fmt.Stringer func EmailVerificationCodeArray.First() (v EmailVerificationCode, ok bool) func EmailVerificationCodeArray.Last() (v EmailVerificationCode, ok bool) func (*EmailVerificationCodeArray).Pop() (v EmailVerificationCode, ok bool) func (*EmailVerificationCodeArray).PopFirst() (v EmailVerificationCode, ok bool)
EmailVerificationCodeArray is adapter for slice of EmailVerificationCode. 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 EmailVerificationCode. Sort sorts slice of EmailVerificationCode. SortStable sorts slice of EmailVerificationCode. func EmailVerificationClassArray.AsEmailVerificationCode() (to EmailVerificationCodeArray) func EmailVerificationCodeArray.Retain(keep func(x EmailVerificationCode) bool) EmailVerificationCodeArray func EmailVerificationCodeArray.Sort(less func(a, b EmailVerificationCode) bool) EmailVerificationCodeArray func EmailVerificationCodeArray.SortStable(less func(a, b EmailVerificationCode) bool) EmailVerificationCodeArray
EmailVerificationGoogle represents TL type `emailVerificationGoogle#db909ec2`. Google ID email verification token See https://core.telegram.org/constructor/emailVerificationGoogle for reference. The token extracted from the temporary profile link¹. Links: 1) https://core.telegram.org/api/links#temporary-profile-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmailVerificationGoogle 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. (*EmailVerificationGoogle) Zero() bool *EmailVerificationGoogle : EmailVerificationClass *EmailVerificationGoogle : github.com/gotd/td/bin.BareDecoder *EmailVerificationGoogle : github.com/gotd/td/bin.BareEncoder *EmailVerificationGoogle : github.com/gotd/td/bin.Decoder *EmailVerificationGoogle : github.com/gotd/td/bin.Encoder *EmailVerificationGoogle : github.com/gotd/td/bin.Object *EmailVerificationGoogle : github.com/gotd/td/tdp.Object *EmailVerificationGoogle : fmt.Stringer func EmailVerificationGoogleArray.First() (v EmailVerificationGoogle, ok bool) func EmailVerificationGoogleArray.Last() (v EmailVerificationGoogle, ok bool) func (*EmailVerificationGoogleArray).Pop() (v EmailVerificationGoogle, ok bool) func (*EmailVerificationGoogleArray).PopFirst() (v EmailVerificationGoogle, ok bool)
EmailVerificationGoogleArray is adapter for slice of EmailVerificationGoogle. 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 EmailVerificationGoogle. Sort sorts slice of EmailVerificationGoogle. SortStable sorts slice of EmailVerificationGoogle. func EmailVerificationClassArray.AsEmailVerificationGoogle() (to EmailVerificationGoogleArray) func EmailVerificationGoogleArray.Retain(keep func(x EmailVerificationGoogle) bool) EmailVerificationGoogleArray func EmailVerificationGoogleArray.Sort(less func(a, b EmailVerificationGoogle) bool) EmailVerificationGoogleArray func EmailVerificationGoogleArray.SortStable(less func(a, b EmailVerificationGoogle) bool) EmailVerificationGoogleArray
EmailVerifyPurpose boxes the EmailVerifyPurposeClass providing a helper. EmailVerifyPurpose EmailVerifyPurposeClass Decode implements bin.Decoder for EmailVerifyPurposeBox. Encode implements bin.Encode for EmailVerifyPurposeBox. *EmailVerifyPurposeBox : github.com/gotd/td/bin.Decoder *EmailVerifyPurposeBox : github.com/gotd/td/bin.Encoder *EmailVerifyPurposeBox : github.com/gotd/td/bin.Object
EmailVerifyPurposeClass represents EmailVerifyPurpose generic type. See https://core.telegram.org/type/EmailVerifyPurpose for reference. Example: g, err := tg.DecodeEmailVerifyPurpose(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.EmailVerifyPurposeLoginSetup: // emailVerifyPurposeLoginSetup#4345be73 case *tg.EmailVerifyPurposeLoginChange: // emailVerifyPurposeLoginChange#527d22eb case *tg.EmailVerifyPurposePassport: // emailVerifyPurposePassport#bbf51685 default: panic(v) } ( EmailVerifyPurposeClass) Decode(b *bin.Buffer) error ( EmailVerifyPurposeClass) DecodeBare(b *bin.Buffer) error ( EmailVerifyPurposeClass) Encode(b *bin.Buffer) error ( EmailVerifyPurposeClass) 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. *EmailVerifyPurposeLoginChange *EmailVerifyPurposeLoginSetup *EmailVerifyPurposePassport EmailVerifyPurposeClass : github.com/gotd/td/bin.BareDecoder EmailVerifyPurposeClass : github.com/gotd/td/bin.BareEncoder EmailVerifyPurposeClass : github.com/gotd/td/bin.Decoder EmailVerifyPurposeClass : github.com/gotd/td/bin.Encoder EmailVerifyPurposeClass : github.com/gotd/td/bin.Object EmailVerifyPurposeClass : fmt.Stringer func DecodeEmailVerifyPurpose(buf *bin.Buffer) (EmailVerifyPurposeClass, error) func (*AccountSendVerifyEmailCodeRequest).GetPurpose() (value EmailVerifyPurposeClass) func (*AccountVerifyEmailRequest).GetPurpose() (value EmailVerifyPurposeClass) func EmailVerifyPurposeClassArray.First() (v EmailVerifyPurposeClass, ok bool) func EmailVerifyPurposeClassArray.Last() (v EmailVerifyPurposeClass, ok bool) func (*EmailVerifyPurposeClassArray).Pop() (v EmailVerifyPurposeClass, ok bool) func (*EmailVerifyPurposeClassArray).PopFirst() (v EmailVerifyPurposeClass, ok bool)
EmailVerifyPurposeClassArray is adapter for slice of EmailVerifyPurposeClass. AsEmailVerifyPurposeLoginSetup returns copy with only EmailVerifyPurposeLoginSetup 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 EmailVerifyPurposeClass. Sort sorts slice of EmailVerifyPurposeClass. SortStable sorts slice of EmailVerifyPurposeClass. func EmailVerifyPurposeClassArray.Retain(keep func(x EmailVerifyPurposeClass) bool) EmailVerifyPurposeClassArray func EmailVerifyPurposeClassArray.Sort(less func(a, b EmailVerifyPurposeClass) bool) EmailVerifyPurposeClassArray func EmailVerifyPurposeClassArray.SortStable(less func(a, b EmailVerifyPurposeClass) bool) EmailVerifyPurposeClassArray
EmailVerifyPurposeLoginChange represents TL type `emailVerifyPurposeLoginChange#527d22eb`. Email verification purpose: change login email See https://core.telegram.org/constructor/emailVerifyPurposeLoginChange 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. (*EmailVerifyPurposeLoginChange) Zero() bool *EmailVerifyPurposeLoginChange : EmailVerifyPurposeClass *EmailVerifyPurposeLoginChange : github.com/gotd/td/bin.BareDecoder *EmailVerifyPurposeLoginChange : github.com/gotd/td/bin.BareEncoder *EmailVerifyPurposeLoginChange : github.com/gotd/td/bin.Decoder *EmailVerifyPurposeLoginChange : github.com/gotd/td/bin.Encoder *EmailVerifyPurposeLoginChange : github.com/gotd/td/bin.Object *EmailVerifyPurposeLoginChange : github.com/gotd/td/tdp.Object *EmailVerifyPurposeLoginChange : fmt.Stringer
EmailVerifyPurposeLoginSetup represents TL type `emailVerifyPurposeLoginSetup#4345be73`. Email verification purpose: setup login email See https://core.telegram.org/constructor/emailVerifyPurposeLoginSetup 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 EmailVerifyPurposeLoginSetup 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. (*EmailVerifyPurposeLoginSetup) Zero() bool *EmailVerifyPurposeLoginSetup : EmailVerifyPurposeClass *EmailVerifyPurposeLoginSetup : github.com/gotd/td/bin.BareDecoder *EmailVerifyPurposeLoginSetup : github.com/gotd/td/bin.BareEncoder *EmailVerifyPurposeLoginSetup : github.com/gotd/td/bin.Decoder *EmailVerifyPurposeLoginSetup : github.com/gotd/td/bin.Encoder *EmailVerifyPurposeLoginSetup : github.com/gotd/td/bin.Object *EmailVerifyPurposeLoginSetup : github.com/gotd/td/tdp.Object *EmailVerifyPurposeLoginSetup : fmt.Stringer func EmailVerifyPurposeLoginSetupArray.First() (v EmailVerifyPurposeLoginSetup, ok bool) func EmailVerifyPurposeLoginSetupArray.Last() (v EmailVerifyPurposeLoginSetup, ok bool) func (*EmailVerifyPurposeLoginSetupArray).Pop() (v EmailVerifyPurposeLoginSetup, ok bool) func (*EmailVerifyPurposeLoginSetupArray).PopFirst() (v EmailVerifyPurposeLoginSetup, ok bool)
EmailVerifyPurposeLoginSetupArray is adapter for slice of EmailVerifyPurposeLoginSetup. 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 EmailVerifyPurposeLoginSetup. Sort sorts slice of EmailVerifyPurposeLoginSetup. SortStable sorts slice of EmailVerifyPurposeLoginSetup. func EmailVerifyPurposeClassArray.AsEmailVerifyPurposeLoginSetup() (to EmailVerifyPurposeLoginSetupArray) func EmailVerifyPurposeLoginSetupArray.Retain(keep func(x EmailVerifyPurposeLoginSetup) bool) EmailVerifyPurposeLoginSetupArray func EmailVerifyPurposeLoginSetupArray.Sort(less func(a, b EmailVerifyPurposeLoginSetup) bool) EmailVerifyPurposeLoginSetupArray func EmailVerifyPurposeLoginSetupArray.SortStable(less func(a, b EmailVerifyPurposeLoginSetup) bool) EmailVerifyPurposeLoginSetupArray
EmailVerifyPurposePassport represents TL type `emailVerifyPurposePassport#bbf51685`. Verify an email for use in telegram passport¹ Links: 1. https://core.telegram.org/api/passport See https://core.telegram.org/constructor/emailVerifyPurposePassport 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. (*EmailVerifyPurposePassport) Zero() bool *EmailVerifyPurposePassport : EmailVerifyPurposeClass *EmailVerifyPurposePassport : github.com/gotd/td/bin.BareDecoder *EmailVerifyPurposePassport : github.com/gotd/td/bin.BareEncoder *EmailVerifyPurposePassport : github.com/gotd/td/bin.Decoder *EmailVerifyPurposePassport : github.com/gotd/td/bin.Encoder *EmailVerifyPurposePassport : github.com/gotd/td/bin.Object *EmailVerifyPurposePassport : github.com/gotd/td/tdp.Object *EmailVerifyPurposePassport : fmt.Stringer
EmojiGroup represents TL type `emojiGroup#7a9abda9`. Represents an emoji category¹. Links: 1. https://core.telegram.org/api/custom-emoji#emoji-categories See https://core.telegram.org/constructor/emojiGroup for reference. A list of UTF-8 emojis, matching the category. A single custom emoji used as preview for the category. Category name, i.e. "Animals", "Flags", "Faces" and so on... Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiGroup from given interface. GetEmoticons returns value of Emoticons field. GetIconEmojiID returns value of IconEmojiID field. GetTitle returns value of Title 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. (*EmojiGroup) Zero() bool *EmojiGroup : github.com/gotd/td/bin.BareDecoder *EmojiGroup : github.com/gotd/td/bin.BareEncoder *EmojiGroup : github.com/gotd/td/bin.Decoder *EmojiGroup : github.com/gotd/td/bin.Encoder *EmojiGroup : github.com/gotd/td/bin.Object *EmojiGroup : github.com/gotd/td/tdp.Object *EmojiGroup : fmt.Stringer func (*MessagesEmojiGroups).GetGroups() (value []EmojiGroup)
EmojiKeyword represents TL type `emojiKeyword#d5b3b9f9`. Emoji keyword See https://core.telegram.org/constructor/emojiKeyword for reference. Emojis associated to keyword Keyword Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiKeyword from given interface. GetEmoticons returns value of Emoticons field. GetKeyword returns value of Keyword 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. (*EmojiKeyword) Zero() bool *EmojiKeyword : EmojiKeywordClass *EmojiKeyword : github.com/gotd/td/bin.BareDecoder *EmojiKeyword : github.com/gotd/td/bin.BareEncoder *EmojiKeyword : github.com/gotd/td/bin.Decoder *EmojiKeyword : github.com/gotd/td/bin.Encoder *EmojiKeyword : github.com/gotd/td/bin.Object *EmojiKeyword : github.com/gotd/td/tdp.Object *EmojiKeyword : fmt.Stringer func EmojiKeywordArray.First() (v EmojiKeyword, ok bool) func EmojiKeywordArray.Last() (v EmojiKeyword, ok bool) func (*EmojiKeywordArray).Pop() (v EmojiKeyword, ok bool) func (*EmojiKeywordArray).PopFirst() (v EmojiKeyword, ok bool)
EmojiKeywordArray is adapter for slice of EmojiKeyword. 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 EmojiKeyword. Sort sorts slice of EmojiKeyword. SortStable sorts slice of EmojiKeyword. func EmojiKeywordArray.Retain(keep func(x EmojiKeyword) bool) EmojiKeywordArray func EmojiKeywordArray.Sort(less func(a, b EmojiKeyword) bool) EmojiKeywordArray func EmojiKeywordArray.SortStable(less func(a, b EmojiKeyword) bool) EmojiKeywordArray func EmojiKeywordClassArray.AsEmojiKeyword() (to EmojiKeywordArray)
EmojiKeyword boxes the EmojiKeywordClass providing a helper. EmojiKeyword EmojiKeywordClass Decode implements bin.Decoder for EmojiKeywordBox. Encode implements bin.Encode for EmojiKeywordBox. *EmojiKeywordBox : github.com/gotd/td/bin.Decoder *EmojiKeywordBox : github.com/gotd/td/bin.Encoder *EmojiKeywordBox : github.com/gotd/td/bin.Object
EmojiKeywordClass represents EmojiKeyword generic type. See https://core.telegram.org/type/EmojiKeyword for reference. Example: g, err := tg.DecodeEmojiKeyword(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.EmojiKeyword: // emojiKeyword#d5b3b9f9 case *tg.EmojiKeywordDeleted: // emojiKeywordDeleted#236df622 default: panic(v) } ( EmojiKeywordClass) Decode(b *bin.Buffer) error ( EmojiKeywordClass) DecodeBare(b *bin.Buffer) error ( EmojiKeywordClass) Encode(b *bin.Buffer) error ( EmojiKeywordClass) EncodeBare(b *bin.Buffer) error Emojis associated to keyword Keyword 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. *EmojiKeyword *EmojiKeywordDeleted EmojiKeywordClass : github.com/gotd/td/bin.BareDecoder EmojiKeywordClass : github.com/gotd/td/bin.BareEncoder EmojiKeywordClass : github.com/gotd/td/bin.Decoder EmojiKeywordClass : github.com/gotd/td/bin.Encoder EmojiKeywordClass : github.com/gotd/td/bin.Object EmojiKeywordClass : fmt.Stringer func DecodeEmojiKeyword(buf *bin.Buffer) (EmojiKeywordClass, error) func EmojiKeywordClassArray.First() (v EmojiKeywordClass, ok bool) func EmojiKeywordClassArray.Last() (v EmojiKeywordClass, ok bool) func (*EmojiKeywordClassArray).Pop() (v EmojiKeywordClass, ok bool) func (*EmojiKeywordClassArray).PopFirst() (v EmojiKeywordClass, ok bool) func (*EmojiKeywordsDifference).GetKeywords() (value []EmojiKeywordClass)
EmojiKeywordClassArray is adapter for slice of EmojiKeywordClass. AsEmojiKeyword returns copy with only EmojiKeyword constructors. AsEmojiKeywordDeleted returns copy with only EmojiKeywordDeleted 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 EmojiKeywordClass. Sort sorts slice of EmojiKeywordClass. SortStable sorts slice of EmojiKeywordClass. func EmojiKeywordClassArray.Retain(keep func(x EmojiKeywordClass) bool) EmojiKeywordClassArray func EmojiKeywordClassArray.Sort(less func(a, b EmojiKeywordClass) bool) EmojiKeywordClassArray func EmojiKeywordClassArray.SortStable(less func(a, b EmojiKeywordClass) bool) EmojiKeywordClassArray func (*EmojiKeywordsDifference).MapKeywords() (value EmojiKeywordClassArray)
EmojiKeywordDeleted represents TL type `emojiKeywordDeleted#236df622`. Deleted emoji keyword See https://core.telegram.org/constructor/emojiKeywordDeleted for reference. Emojis associated to keyword Keyword Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiKeywordDeleted from given interface. GetEmoticons returns value of Emoticons field. GetKeyword returns value of Keyword 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. (*EmojiKeywordDeleted) Zero() bool *EmojiKeywordDeleted : EmojiKeywordClass *EmojiKeywordDeleted : github.com/gotd/td/bin.BareDecoder *EmojiKeywordDeleted : github.com/gotd/td/bin.BareEncoder *EmojiKeywordDeleted : github.com/gotd/td/bin.Decoder *EmojiKeywordDeleted : github.com/gotd/td/bin.Encoder *EmojiKeywordDeleted : github.com/gotd/td/bin.Object *EmojiKeywordDeleted : github.com/gotd/td/tdp.Object *EmojiKeywordDeleted : fmt.Stringer func EmojiKeywordDeletedArray.First() (v EmojiKeywordDeleted, ok bool) func EmojiKeywordDeletedArray.Last() (v EmojiKeywordDeleted, ok bool) func (*EmojiKeywordDeletedArray).Pop() (v EmojiKeywordDeleted, ok bool) func (*EmojiKeywordDeletedArray).PopFirst() (v EmojiKeywordDeleted, ok bool)
EmojiKeywordDeletedArray is adapter for slice of EmojiKeywordDeleted. 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 EmojiKeywordDeleted. Sort sorts slice of EmojiKeywordDeleted. SortStable sorts slice of EmojiKeywordDeleted. func EmojiKeywordClassArray.AsEmojiKeywordDeleted() (to EmojiKeywordDeletedArray) func EmojiKeywordDeletedArray.Retain(keep func(x EmojiKeywordDeleted) bool) EmojiKeywordDeletedArray func EmojiKeywordDeletedArray.Sort(less func(a, b EmojiKeywordDeleted) bool) EmojiKeywordDeletedArray func EmojiKeywordDeletedArray.SortStable(less func(a, b EmojiKeywordDeleted) bool) EmojiKeywordDeletedArray
EmojiKeywordsDifference represents TL type `emojiKeywordsDifference#5cc761bd`. Changes to emoji keywords See https://core.telegram.org/constructor/emojiKeywordsDifference for reference. Previous emoji keyword list version Emojis associated to keywords Language code for keywords Current version of emoji keyword list Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiKeywordsDifference from given interface. GetFromVersion returns value of FromVersion field. GetKeywords returns value of Keywords field. GetLangCode returns value of LangCode field. GetVersion returns value of Version field. MapKeywords returns field Keywords wrapped in EmojiKeywordClassArray 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. (*EmojiKeywordsDifference) Zero() bool *EmojiKeywordsDifference : github.com/gotd/td/bin.BareDecoder *EmojiKeywordsDifference : github.com/gotd/td/bin.BareEncoder *EmojiKeywordsDifference : github.com/gotd/td/bin.Decoder *EmojiKeywordsDifference : github.com/gotd/td/bin.Encoder *EmojiKeywordsDifference : github.com/gotd/td/bin.Object *EmojiKeywordsDifference : github.com/gotd/td/tdp.Object *EmojiKeywordsDifference : fmt.Stringer func (*Client).MessagesGetEmojiKeywords(ctx context.Context, langcode string) (*EmojiKeywordsDifference, error) func (*Client).MessagesGetEmojiKeywordsDifference(ctx context.Context, request *MessagesGetEmojiKeywordsDifferenceRequest) (*EmojiKeywordsDifference, error)
EmojiLanguage represents TL type `emojiLanguage#b3fb5361`. Emoji language See https://core.telegram.org/constructor/emojiLanguage for reference. Language code Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiLanguage from given interface. GetLangCode returns value of LangCode 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. (*EmojiLanguage) Zero() bool *EmojiLanguage : github.com/gotd/td/bin.BareDecoder *EmojiLanguage : github.com/gotd/td/bin.BareEncoder *EmojiLanguage : github.com/gotd/td/bin.Decoder *EmojiLanguage : github.com/gotd/td/bin.Encoder *EmojiLanguage : github.com/gotd/td/bin.Object *EmojiLanguage : github.com/gotd/td/tdp.Object *EmojiLanguage : fmt.Stringer func (*Client).MessagesGetEmojiKeywordsLanguages(ctx context.Context, langcodes []string) ([]EmojiLanguage, error) func (*EmojiLanguageVector).GetElems() (value []EmojiLanguage)
EmojiLanguageVector is a box for Vector<EmojiLanguage> Elements of Vector<EmojiLanguage> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiLanguageVector 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. (*EmojiLanguageVector) Zero() bool *EmojiLanguageVector : github.com/gotd/td/bin.BareDecoder *EmojiLanguageVector : github.com/gotd/td/bin.BareEncoder *EmojiLanguageVector : github.com/gotd/td/bin.Decoder *EmojiLanguageVector : github.com/gotd/td/bin.Encoder *EmojiLanguageVector : github.com/gotd/td/bin.Object *EmojiLanguageVector : github.com/gotd/td/tdp.Object *EmojiLanguageVector : fmt.Stringer
EmojiList represents TL type `emojiList#7a1e11d1`. Represents a list of custom emojis¹. Links: 1. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/constructor/emojiList for reference. Custom emoji IDs Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation AsModified tries to map EmojiList to EmojiList. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiList from given interface. GetDocumentID returns value of DocumentID 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. (*EmojiList) Zero() bool *EmojiList : EmojiListClass *EmojiList : github.com/gotd/td/bin.BareDecoder *EmojiList : github.com/gotd/td/bin.BareEncoder *EmojiList : github.com/gotd/td/bin.Decoder *EmojiList : github.com/gotd/td/bin.Encoder *EmojiList : github.com/gotd/td/bin.Object *EmojiList : github.com/gotd/td/tdp.Object *EmojiList : fmt.Stringer func (*EmojiList).AsModified() (*EmojiList, bool) func EmojiListArray.First() (v EmojiList, ok bool) func EmojiListArray.Last() (v EmojiList, ok bool) func (*EmojiListArray).Pop() (v EmojiList, ok bool) func (*EmojiListArray).PopFirst() (v EmojiList, ok bool) func EmojiListClass.AsModified() (*EmojiList, bool) func EmojiListClassArray.AppendOnlyModified(to []*EmojiList) []*EmojiList func EmojiListClassArray.AsModified() (to []*EmojiList) func EmojiListClassArray.FirstAsModified() (v *EmojiList, ok bool) func EmojiListClassArray.LastAsModified() (v *EmojiList, ok bool) func (*EmojiListClassArray).PopAsModified() (v *EmojiList, ok bool) func (*EmojiListClassArray).PopFirstAsModified() (v *EmojiList, ok bool) func (*EmojiListNotModified).AsModified() (*EmojiList, bool) func EmojiListClassArray.AppendOnlyModified(to []*EmojiList) []*EmojiList
EmojiListArray is adapter for slice of EmojiList. 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 EmojiList. Sort sorts slice of EmojiList. SortStable sorts slice of EmojiList. func EmojiListArray.Retain(keep func(x EmojiList) bool) EmojiListArray func EmojiListArray.Sort(less func(a, b EmojiList) bool) EmojiListArray func EmojiListArray.SortStable(less func(a, b EmojiList) bool) EmojiListArray func EmojiListClassArray.AsEmojiList() (to EmojiListArray)
EmojiList boxes the EmojiListClass providing a helper. EmojiList EmojiListClass Decode implements bin.Decoder for EmojiListBox. Encode implements bin.Encode for EmojiListBox. *EmojiListBox : github.com/gotd/td/bin.Decoder *EmojiListBox : github.com/gotd/td/bin.Encoder *EmojiListBox : github.com/gotd/td/bin.Object
EmojiListClass represents EmojiList generic type. See https://core.telegram.org/type/EmojiList for reference. Example: g, err := tg.DecodeEmojiList(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.EmojiListNotModified: // emojiListNotModified#481eadfa case *tg.EmojiList: // emojiList#7a1e11d1 default: panic(v) } AsModified tries to map EmojiListClass to EmojiList. ( EmojiListClass) Decode(b *bin.Buffer) error ( EmojiListClass) DecodeBare(b *bin.Buffer) error ( EmojiListClass) Encode(b *bin.Buffer) error ( EmojiListClass) 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. *EmojiList *EmojiListNotModified EmojiListClass : github.com/gotd/td/bin.BareDecoder EmojiListClass : github.com/gotd/td/bin.BareEncoder EmojiListClass : github.com/gotd/td/bin.Decoder EmojiListClass : github.com/gotd/td/bin.Encoder EmojiListClass : github.com/gotd/td/bin.Object EmojiListClass : fmt.Stringer func DecodeEmojiList(buf *bin.Buffer) (EmojiListClass, error) func (*Client).AccountGetChannelRestrictedStatusEmojis(ctx context.Context, hash int64) (EmojiListClass, error) func (*Client).AccountGetDefaultBackgroundEmojis(ctx context.Context, hash int64) (EmojiListClass, error) func (*Client).AccountGetDefaultGroupPhotoEmojis(ctx context.Context, hash int64) (EmojiListClass, error) func (*Client).AccountGetDefaultProfilePhotoEmojis(ctx context.Context, hash int64) (EmojiListClass, error) func (*Client).MessagesSearchCustomEmoji(ctx context.Context, request *MessagesSearchCustomEmojiRequest) (EmojiListClass, error) func EmojiListClassArray.First() (v EmojiListClass, ok bool) func EmojiListClassArray.Last() (v EmojiListClass, ok bool) func (*EmojiListClassArray).Pop() (v EmojiListClass, ok bool) func (*EmojiListClassArray).PopFirst() (v EmojiListClass, ok bool)
EmojiListClassArray is adapter for slice of EmojiListClass. AppendOnlyModified appends only Modified constructors to given slice. AsEmojiList returns copy with only EmojiList 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 EmojiListClass. Sort sorts slice of EmojiListClass. SortStable sorts slice of EmojiListClass. func EmojiListClassArray.Retain(keep func(x EmojiListClass) bool) EmojiListClassArray func EmojiListClassArray.Sort(less func(a, b EmojiListClass) bool) EmojiListClassArray func EmojiListClassArray.SortStable(less func(a, b EmojiListClass) bool) EmojiListClassArray
EmojiListNotModified represents TL type `emojiListNotModified#481eadfa`. The list of custom emojis¹ hasn't changed. Links: 1. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/constructor/emojiListNotModified for reference. AsModified tries to map EmojiListNotModified to EmojiList. 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. (*EmojiListNotModified) Zero() bool *EmojiListNotModified : EmojiListClass *EmojiListNotModified : github.com/gotd/td/bin.BareDecoder *EmojiListNotModified : github.com/gotd/td/bin.BareEncoder *EmojiListNotModified : github.com/gotd/td/bin.Decoder *EmojiListNotModified : github.com/gotd/td/bin.Encoder *EmojiListNotModified : github.com/gotd/td/bin.Object *EmojiListNotModified : github.com/gotd/td/tdp.Object *EmojiListNotModified : fmt.Stringer
EmojiStatus represents TL type `emojiStatus#929b619d`. An emoji status¹ Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/constructor/emojiStatus for reference. Custom emoji document ID¹ Links: 1) https://core.telegram.org/api/custom-emoji AsNotEmpty tries to map EmojiStatus to NotEmptyEmojiStatus. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiStatus from given interface. GetDocumentID returns value of DocumentID 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. (*EmojiStatus) Zero() bool *EmojiStatus : EmojiStatusClass *EmojiStatus : NotEmptyEmojiStatus *EmojiStatus : github.com/gotd/td/bin.BareDecoder *EmojiStatus : github.com/gotd/td/bin.BareEncoder *EmojiStatus : github.com/gotd/td/bin.Decoder *EmojiStatus : github.com/gotd/td/bin.Encoder *EmojiStatus : github.com/gotd/td/bin.Object *EmojiStatus : github.com/gotd/td/tdp.Object *EmojiStatus : fmt.Stringer func EmojiStatusArray.First() (v EmojiStatus, ok bool) func EmojiStatusArray.Last() (v EmojiStatus, ok bool) func (*EmojiStatusArray).Pop() (v EmojiStatus, ok bool) func (*EmojiStatusArray).PopFirst() (v EmojiStatus, ok bool)
EmojiStatusArray is adapter for slice of EmojiStatus. 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 EmojiStatus. Sort sorts slice of EmojiStatus. SortStable sorts slice of EmojiStatus. func EmojiStatusArray.Retain(keep func(x EmojiStatus) bool) EmojiStatusArray func EmojiStatusArray.Sort(less func(a, b EmojiStatus) bool) EmojiStatusArray func EmojiStatusArray.SortStable(less func(a, b EmojiStatus) bool) EmojiStatusArray func EmojiStatusClassArray.AsEmojiStatus() (to EmojiStatusArray)
EmojiStatus boxes the EmojiStatusClass providing a helper. Emoji status¹ to set Links: 1) https://core.telegram.org/api/emoji-status Decode implements bin.Decoder for EmojiStatusBox. Encode implements bin.Encode for EmojiStatusBox. *EmojiStatusBox : github.com/gotd/td/bin.Decoder *EmojiStatusBox : github.com/gotd/td/bin.Encoder *EmojiStatusBox : github.com/gotd/td/bin.Object
EmojiStatusClass represents EmojiStatus generic type. See https://core.telegram.org/type/EmojiStatus for reference. Example: g, err := tg.DecodeEmojiStatus(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.EmojiStatusEmpty: // emojiStatusEmpty#2de11aae case *tg.EmojiStatus: // emojiStatus#929b619d case *tg.EmojiStatusUntil: // emojiStatusUntil#fa30a8c7 default: panic(v) } AsNotEmpty tries to map EmojiStatusClass to NotEmptyEmojiStatus. ( EmojiStatusClass) Decode(b *bin.Buffer) error ( EmojiStatusClass) DecodeBare(b *bin.Buffer) error ( EmojiStatusClass) Encode(b *bin.Buffer) error ( EmojiStatusClass) 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. *EmojiStatus *EmojiStatusEmpty *EmojiStatusUntil EmojiStatusClass : github.com/gotd/td/bin.BareDecoder EmojiStatusClass : github.com/gotd/td/bin.BareEncoder EmojiStatusClass : github.com/gotd/td/bin.Decoder EmojiStatusClass : github.com/gotd/td/bin.Encoder EmojiStatusClass : github.com/gotd/td/bin.Object EmojiStatusClass : fmt.Stringer func DecodeEmojiStatus(buf *bin.Buffer) (EmojiStatusClass, error) func (*AccountEmojiStatuses).GetStatuses() (value []EmojiStatusClass) func (*AccountUpdateEmojiStatusRequest).GetEmojiStatus() (value EmojiStatusClass) func (*Channel).GetEmojiStatus() (value EmojiStatusClass, ok bool) func (*ChannelAdminLogEventActionChangeEmojiStatus).GetNewValue() (value EmojiStatusClass) func (*ChannelAdminLogEventActionChangeEmojiStatus).GetPrevValue() (value EmojiStatusClass) func (*ChannelsUpdateEmojiStatusRequest).GetEmojiStatus() (value EmojiStatusClass) func EmojiStatusClassArray.First() (v EmojiStatusClass, ok bool) func EmojiStatusClassArray.Last() (v EmojiStatusClass, ok bool) func (*EmojiStatusClassArray).Pop() (v EmojiStatusClass, ok bool) func (*EmojiStatusClassArray).PopFirst() (v EmojiStatusClass, ok bool) func (*UpdateUserEmojiStatus).GetEmojiStatus() (value EmojiStatusClass) func (*User).GetEmojiStatus() (value EmojiStatusClass, ok bool) func (*Channel).SetEmojiStatus(value EmojiStatusClass) func (*Client).AccountUpdateEmojiStatus(ctx context.Context, emojistatus EmojiStatusClass) (bool, error) func (*User).SetEmojiStatus(value EmojiStatusClass)
EmojiStatusClassArray is adapter for slice of EmojiStatusClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsEmojiStatus returns copy with only EmojiStatus constructors. AsEmojiStatusUntil returns copy with only EmojiStatusUntil constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of EmojiStatusClass. Sort sorts slice of EmojiStatusClass. SortStable sorts slice of EmojiStatusClass. func (*AccountEmojiStatuses).MapStatuses() (value EmojiStatusClassArray) func EmojiStatusClassArray.Retain(keep func(x EmojiStatusClass) bool) EmojiStatusClassArray func EmojiStatusClassArray.Sort(less func(a, b EmojiStatusClass) bool) EmojiStatusClassArray func EmojiStatusClassArray.SortStable(less func(a, b EmojiStatusClass) bool) EmojiStatusClassArray
EmojiStatusEmpty represents TL type `emojiStatusEmpty#2de11aae`. No emoji status is set See https://core.telegram.org/constructor/emojiStatusEmpty for reference. AsNotEmpty tries to map EmojiStatusEmpty to NotEmptyEmojiStatus. 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. (*EmojiStatusEmpty) Zero() bool *EmojiStatusEmpty : EmojiStatusClass *EmojiStatusEmpty : github.com/gotd/td/bin.BareDecoder *EmojiStatusEmpty : github.com/gotd/td/bin.BareEncoder *EmojiStatusEmpty : github.com/gotd/td/bin.Decoder *EmojiStatusEmpty : github.com/gotd/td/bin.Encoder *EmojiStatusEmpty : github.com/gotd/td/bin.Object *EmojiStatusEmpty : github.com/gotd/td/tdp.Object *EmojiStatusEmpty : fmt.Stringer
EmojiStatusUntil represents TL type `emojiStatusUntil#fa30a8c7`. An emoji status¹ valid until the specified date Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/constructor/emojiStatusUntil for reference. Custom emoji document ID¹ Links: 1) https://core.telegram.org/api/custom-emoji This status is valid until this date AsNotEmpty tries to map EmojiStatusUntil to NotEmptyEmojiStatus. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiStatusUntil from given interface. GetDocumentID returns value of DocumentID field. GetUntil returns value of Until 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. (*EmojiStatusUntil) Zero() bool *EmojiStatusUntil : EmojiStatusClass *EmojiStatusUntil : NotEmptyEmojiStatus *EmojiStatusUntil : github.com/gotd/td/bin.BareDecoder *EmojiStatusUntil : github.com/gotd/td/bin.BareEncoder *EmojiStatusUntil : github.com/gotd/td/bin.Decoder *EmojiStatusUntil : github.com/gotd/td/bin.Encoder *EmojiStatusUntil : github.com/gotd/td/bin.Object *EmojiStatusUntil : github.com/gotd/td/tdp.Object *EmojiStatusUntil : fmt.Stringer func EmojiStatusUntilArray.First() (v EmojiStatusUntil, ok bool) func EmojiStatusUntilArray.Last() (v EmojiStatusUntil, ok bool) func (*EmojiStatusUntilArray).Pop() (v EmojiStatusUntil, ok bool) func (*EmojiStatusUntilArray).PopFirst() (v EmojiStatusUntil, ok bool)
EmojiStatusUntilArray is adapter for slice of EmojiStatusUntil. 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 EmojiStatusUntil. Sort sorts slice of EmojiStatusUntil. SortStable sorts slice of EmojiStatusUntil. func EmojiStatusClassArray.AsEmojiStatusUntil() (to EmojiStatusUntilArray) func EmojiStatusUntilArray.Retain(keep func(x EmojiStatusUntil) bool) EmojiStatusUntilArray func EmojiStatusUntilArray.Sort(less func(a, b EmojiStatusUntil) bool) EmojiStatusUntilArray func EmojiStatusUntilArray.SortStable(less func(a, b EmojiStatusUntil) bool) EmojiStatusUntilArray
EmojiURL represents TL type `emojiURL#a575739d`. An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation See https://core.telegram.org/constructor/emojiURL for reference. The URL to open Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EmojiURL from given interface. 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. (*EmojiURL) Zero() bool *EmojiURL : github.com/gotd/td/bin.BareDecoder *EmojiURL : github.com/gotd/td/bin.BareEncoder *EmojiURL : github.com/gotd/td/bin.Decoder *EmojiURL : github.com/gotd/td/bin.Encoder *EmojiURL : github.com/gotd/td/bin.Object *EmojiURL : github.com/gotd/td/tdp.Object *EmojiURL : fmt.Stringer func (*Client).MessagesGetEmojiURL(ctx context.Context, langcode string) (*EmojiURL, error)
EncryptedChat represents TL type `encryptedChat#61f0d4c7`. Encrypted chat See https://core.telegram.org/constructor/encryptedChat for reference. Check sum dependent on the user ID Chat creator ID Date chat was created B = g ^ b mod p, if the currently authorized user is the chat's creator,or A = g ^ a mod p otherwiseSee Wikipedia¹ for more info Links: 1) https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange Chat ID 64-bit fingerprint of received key ID of the second chat participant AsInput tries to map EncryptedChat to InputEncryptedChat. AsNotEmpty tries to map EncryptedChat to NotEmptyEncryptedChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EncryptedChat from given interface. GetAccessHash returns value of AccessHash field. GetAdminID returns value of AdminID field. GetDate returns value of Date field. GetGAOrB returns value of GAOrB field. GetID returns value of ID field. GetKeyFingerprint returns value of KeyFingerprint field. GetParticipantID returns value of ParticipantID 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. (*EncryptedChat) Zero() bool *EncryptedChat : EncryptedChatClass *EncryptedChat : NotEmptyEncryptedChat *EncryptedChat : github.com/gotd/td/bin.BareDecoder *EncryptedChat : github.com/gotd/td/bin.BareEncoder *EncryptedChat : github.com/gotd/td/bin.Decoder *EncryptedChat : github.com/gotd/td/bin.Encoder *EncryptedChat : github.com/gotd/td/bin.Object *EncryptedChat : github.com/gotd/td/tdp.Object *EncryptedChat : fmt.Stringer func EncryptedChatArray.First() (v EncryptedChat, ok bool) func EncryptedChatArray.Last() (v EncryptedChat, ok bool) func (*EncryptedChatArray).Pop() (v EncryptedChat, ok bool) func (*EncryptedChatArray).PopFirst() (v EncryptedChat, ok bool) func EncryptedChatArray.ToMap() map[int]EncryptedChat func EncryptedChatClassArray.EncryptedChatToMap() map[int]*EncryptedChat func EncryptedChatArray.FillMap(to map[int]EncryptedChat) func EncryptedChatClassArray.FillEncryptedChatMap(to map[int]*EncryptedChat)
EncryptedChatArray is adapter for slice of EncryptedChat. 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 EncryptedChat. Sort sorts slice of EncryptedChat. SortByDate sorts slice of EncryptedChat by Date. SortByID sorts slice of EncryptedChat by ID. SortStable sorts slice of EncryptedChat. SortStableByDate sorts slice of EncryptedChat by Date. SortStableByID sorts slice of EncryptedChat by ID. ToMap collects constructors to map. func EncryptedChatArray.Retain(keep func(x EncryptedChat) bool) EncryptedChatArray func EncryptedChatArray.Sort(less func(a, b EncryptedChat) bool) EncryptedChatArray func EncryptedChatArray.SortByDate() EncryptedChatArray func EncryptedChatArray.SortByID() EncryptedChatArray func EncryptedChatArray.SortStable(less func(a, b EncryptedChat) bool) EncryptedChatArray func EncryptedChatArray.SortStableByDate() EncryptedChatArray func EncryptedChatArray.SortStableByID() EncryptedChatArray func EncryptedChatClassArray.AsEncryptedChat() (to EncryptedChatArray)
EncryptedChat boxes the EncryptedChatClass providing a helper. EncryptedChat EncryptedChatClass Decode implements bin.Decoder for EncryptedChatBox. Encode implements bin.Encode for EncryptedChatBox. *EncryptedChatBox : github.com/gotd/td/bin.Decoder *EncryptedChatBox : github.com/gotd/td/bin.Encoder *EncryptedChatBox : github.com/gotd/td/bin.Object
EncryptedChatClass represents EncryptedChat generic type. See https://core.telegram.org/type/EncryptedChat for reference. Example: g, err := tg.DecodeEncryptedChat(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.EncryptedChatEmpty: // encryptedChatEmpty#ab7ec0a0 case *tg.EncryptedChatWaiting: // encryptedChatWaiting#66b25953 case *tg.EncryptedChatRequested: // encryptedChatRequested#48f1d94c case *tg.EncryptedChat: // encryptedChat#61f0d4c7 case *tg.EncryptedChatDiscarded: // encryptedChatDiscarded#1e1c7c45 default: panic(v) } AsNotEmpty tries to map EncryptedChatClass to NotEmptyEncryptedChat. ( EncryptedChatClass) Decode(b *bin.Buffer) error ( EncryptedChatClass) DecodeBare(b *bin.Buffer) error ( EncryptedChatClass) Encode(b *bin.Buffer) error ( EncryptedChatClass) EncodeBare(b *bin.Buffer) error Chat ID 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. *EncryptedChat *EncryptedChatDiscarded *EncryptedChatEmpty *EncryptedChatRequested *EncryptedChatWaiting EncryptedChatClass : NotEmptyEncryptedChat EncryptedChatClass : github.com/gotd/td/bin.BareDecoder EncryptedChatClass : github.com/gotd/td/bin.BareEncoder EncryptedChatClass : github.com/gotd/td/bin.Decoder EncryptedChatClass : github.com/gotd/td/bin.Encoder EncryptedChatClass : github.com/gotd/td/bin.Object EncryptedChatClass : fmt.Stringer func DecodeEncryptedChat(buf *bin.Buffer) (EncryptedChatClass, error) func (*Client).MessagesAcceptEncryption(ctx context.Context, request *MessagesAcceptEncryptionRequest) (EncryptedChatClass, error) func (*Client).MessagesRequestEncryption(ctx context.Context, request *MessagesRequestEncryptionRequest) (EncryptedChatClass, error) func EncryptedChatClassArray.First() (v EncryptedChatClass, ok bool) func EncryptedChatClassArray.Last() (v EncryptedChatClass, ok bool) func (*EncryptedChatClassArray).Pop() (v EncryptedChatClass, ok bool) func (*EncryptedChatClassArray).PopFirst() (v EncryptedChatClass, ok bool) func (*UpdateEncryption).GetChat() (value EncryptedChatClass)
EncryptedChatClassArray is adapter for slice of EncryptedChatClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsEncryptedChat returns copy with only EncryptedChat constructors. AsEncryptedChatDiscarded returns copy with only EncryptedChatDiscarded constructors. AsEncryptedChatEmpty returns copy with only EncryptedChatEmpty constructors. AsEncryptedChatRequested returns copy with only EncryptedChatRequested constructors. AsEncryptedChatWaiting returns copy with only EncryptedChatWaiting constructors. AsNotEmpty returns copy with only NotEmpty constructors. EncryptedChatDiscardedToMap collects only EncryptedChatDiscarded constructors to map. EncryptedChatEmptyToMap collects only EncryptedChatEmpty constructors to map. EncryptedChatRequestedToMap collects only EncryptedChatRequested constructors to map. EncryptedChatToMap collects only EncryptedChat constructors to map. EncryptedChatWaitingToMap collects only EncryptedChatWaiting constructors to map. FillEncryptedChatDiscardedMap fills only EncryptedChatDiscarded constructors to given map. FillEncryptedChatEmptyMap fills only EncryptedChatEmpty constructors to given map. FillEncryptedChatMap fills only EncryptedChat constructors to given map. FillEncryptedChatRequestedMap fills only EncryptedChatRequested constructors to given map. FillEncryptedChatWaitingMap fills only EncryptedChatWaiting constructors to given map. FillNotEmptyMap fills only NotEmpty constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of EncryptedChatClass. Sort sorts slice of EncryptedChatClass. SortByID sorts slice of EncryptedChatClass by ID. SortStable sorts slice of EncryptedChatClass. SortStableByID sorts slice of EncryptedChatClass by ID. func EncryptedChatClassArray.Retain(keep func(x EncryptedChatClass) bool) EncryptedChatClassArray func EncryptedChatClassArray.Sort(less func(a, b EncryptedChatClass) bool) EncryptedChatClassArray func EncryptedChatClassArray.SortByID() EncryptedChatClassArray func EncryptedChatClassArray.SortStable(less func(a, b EncryptedChatClass) bool) EncryptedChatClassArray func EncryptedChatClassArray.SortStableByID() EncryptedChatClassArray
EncryptedChatDiscarded represents TL type `encryptedChatDiscarded#1e1c7c45`. Discarded or deleted chat. See https://core.telegram.org/constructor/encryptedChatDiscarded for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether both users of this secret chat should also remove all of its messages Chat ID AsNotEmpty tries to map EncryptedChatDiscarded to NotEmptyEncryptedChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EncryptedChatDiscarded from given interface. GetHistoryDeleted returns value of HistoryDeleted conditional field. GetID returns value of ID field. SetFlags sets flags for non-zero fields. SetHistoryDeleted sets value of HistoryDeleted 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. (*EncryptedChatDiscarded) Zero() bool *EncryptedChatDiscarded : EncryptedChatClass *EncryptedChatDiscarded : NotEmptyEncryptedChat *EncryptedChatDiscarded : github.com/gotd/td/bin.BareDecoder *EncryptedChatDiscarded : github.com/gotd/td/bin.BareEncoder *EncryptedChatDiscarded : github.com/gotd/td/bin.Decoder *EncryptedChatDiscarded : github.com/gotd/td/bin.Encoder *EncryptedChatDiscarded : github.com/gotd/td/bin.Object *EncryptedChatDiscarded : github.com/gotd/td/tdp.Object *EncryptedChatDiscarded : fmt.Stringer func EncryptedChatClassArray.EncryptedChatDiscardedToMap() map[int]*EncryptedChatDiscarded func EncryptedChatDiscardedArray.First() (v EncryptedChatDiscarded, ok bool) func EncryptedChatDiscardedArray.Last() (v EncryptedChatDiscarded, ok bool) func (*EncryptedChatDiscardedArray).Pop() (v EncryptedChatDiscarded, ok bool) func (*EncryptedChatDiscardedArray).PopFirst() (v EncryptedChatDiscarded, ok bool) func EncryptedChatDiscardedArray.ToMap() map[int]EncryptedChatDiscarded func EncryptedChatClassArray.FillEncryptedChatDiscardedMap(to map[int]*EncryptedChatDiscarded) func EncryptedChatDiscardedArray.FillMap(to map[int]EncryptedChatDiscarded)
EncryptedChatDiscardedArray is adapter for slice of EncryptedChatDiscarded. 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 EncryptedChatDiscarded. Sort sorts slice of EncryptedChatDiscarded. SortByID sorts slice of EncryptedChatDiscarded by ID. SortStable sorts slice of EncryptedChatDiscarded. SortStableByID sorts slice of EncryptedChatDiscarded by ID. ToMap collects constructors to map. func EncryptedChatClassArray.AsEncryptedChatDiscarded() (to EncryptedChatDiscardedArray) func EncryptedChatDiscardedArray.Retain(keep func(x EncryptedChatDiscarded) bool) EncryptedChatDiscardedArray func EncryptedChatDiscardedArray.Sort(less func(a, b EncryptedChatDiscarded) bool) EncryptedChatDiscardedArray func EncryptedChatDiscardedArray.SortByID() EncryptedChatDiscardedArray func EncryptedChatDiscardedArray.SortStable(less func(a, b EncryptedChatDiscarded) bool) EncryptedChatDiscardedArray func EncryptedChatDiscardedArray.SortStableByID() EncryptedChatDiscardedArray
EncryptedChatEmpty represents TL type `encryptedChatEmpty#ab7ec0a0`. Empty constructor. See https://core.telegram.org/constructor/encryptedChatEmpty for reference. Chat ID AsNotEmpty tries to map EncryptedChatEmpty to NotEmptyEncryptedChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EncryptedChatEmpty 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. (*EncryptedChatEmpty) Zero() bool *EncryptedChatEmpty : EncryptedChatClass *EncryptedChatEmpty : NotEmptyEncryptedChat *EncryptedChatEmpty : github.com/gotd/td/bin.BareDecoder *EncryptedChatEmpty : github.com/gotd/td/bin.BareEncoder *EncryptedChatEmpty : github.com/gotd/td/bin.Decoder *EncryptedChatEmpty : github.com/gotd/td/bin.Encoder *EncryptedChatEmpty : github.com/gotd/td/bin.Object *EncryptedChatEmpty : github.com/gotd/td/tdp.Object *EncryptedChatEmpty : fmt.Stringer func EncryptedChatClassArray.EncryptedChatEmptyToMap() map[int]*EncryptedChatEmpty func EncryptedChatEmptyArray.First() (v EncryptedChatEmpty, ok bool) func EncryptedChatEmptyArray.Last() (v EncryptedChatEmpty, ok bool) func (*EncryptedChatEmptyArray).Pop() (v EncryptedChatEmpty, ok bool) func (*EncryptedChatEmptyArray).PopFirst() (v EncryptedChatEmpty, ok bool) func EncryptedChatEmptyArray.ToMap() map[int]EncryptedChatEmpty func EncryptedChatClassArray.FillEncryptedChatEmptyMap(to map[int]*EncryptedChatEmpty) func EncryptedChatEmptyArray.FillMap(to map[int]EncryptedChatEmpty)
EncryptedChatEmptyArray is adapter for slice of EncryptedChatEmpty. 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 EncryptedChatEmpty. Sort sorts slice of EncryptedChatEmpty. SortByID sorts slice of EncryptedChatEmpty by ID. SortStable sorts slice of EncryptedChatEmpty. SortStableByID sorts slice of EncryptedChatEmpty by ID. ToMap collects constructors to map. func EncryptedChatClassArray.AsEncryptedChatEmpty() (to EncryptedChatEmptyArray) func EncryptedChatEmptyArray.Retain(keep func(x EncryptedChatEmpty) bool) EncryptedChatEmptyArray func EncryptedChatEmptyArray.Sort(less func(a, b EncryptedChatEmpty) bool) EncryptedChatEmptyArray func EncryptedChatEmptyArray.SortByID() EncryptedChatEmptyArray func EncryptedChatEmptyArray.SortStable(less func(a, b EncryptedChatEmpty) bool) EncryptedChatEmptyArray func EncryptedChatEmptyArray.SortStableByID() EncryptedChatEmptyArray
EncryptedChatRequested represents TL type `encryptedChatRequested#48f1d94c`. Request to create an encrypted chat. See https://core.telegram.org/constructor/encryptedChatRequested for reference. Check sum depending on user ID Chat creator ID Chat creation date Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. A = g ^ a mod p, see Wikipedia¹ Links: 1) https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange Chat ID ID of second chat participant AsNotEmpty tries to map EncryptedChatRequested to NotEmptyEncryptedChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EncryptedChatRequested from given interface. GetAccessHash returns value of AccessHash field. GetAdminID returns value of AdminID field. GetDate returns value of Date field. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetGA returns value of GA field. GetID returns value of ID field. GetParticipantID returns value of ParticipantID field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID 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. (*EncryptedChatRequested) Zero() bool *EncryptedChatRequested : EncryptedChatClass *EncryptedChatRequested : NotEmptyEncryptedChat *EncryptedChatRequested : github.com/gotd/td/bin.BareDecoder *EncryptedChatRequested : github.com/gotd/td/bin.BareEncoder *EncryptedChatRequested : github.com/gotd/td/bin.Decoder *EncryptedChatRequested : github.com/gotd/td/bin.Encoder *EncryptedChatRequested : github.com/gotd/td/bin.Object *EncryptedChatRequested : github.com/gotd/td/tdp.Object *EncryptedChatRequested : fmt.Stringer func EncryptedChatClassArray.EncryptedChatRequestedToMap() map[int]*EncryptedChatRequested func EncryptedChatRequestedArray.First() (v EncryptedChatRequested, ok bool) func EncryptedChatRequestedArray.Last() (v EncryptedChatRequested, ok bool) func (*EncryptedChatRequestedArray).Pop() (v EncryptedChatRequested, ok bool) func (*EncryptedChatRequestedArray).PopFirst() (v EncryptedChatRequested, ok bool) func EncryptedChatRequestedArray.ToMap() map[int]EncryptedChatRequested func EncryptedChatClassArray.FillEncryptedChatRequestedMap(to map[int]*EncryptedChatRequested) func EncryptedChatRequestedArray.FillMap(to map[int]EncryptedChatRequested)
EncryptedChatRequestedArray is adapter for slice of EncryptedChatRequested. 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 EncryptedChatRequested. Sort sorts slice of EncryptedChatRequested. SortByDate sorts slice of EncryptedChatRequested by Date. SortByID sorts slice of EncryptedChatRequested by ID. SortStable sorts slice of EncryptedChatRequested. SortStableByDate sorts slice of EncryptedChatRequested by Date. SortStableByID sorts slice of EncryptedChatRequested by ID. ToMap collects constructors to map. func EncryptedChatClassArray.AsEncryptedChatRequested() (to EncryptedChatRequestedArray) func EncryptedChatRequestedArray.Retain(keep func(x EncryptedChatRequested) bool) EncryptedChatRequestedArray func EncryptedChatRequestedArray.Sort(less func(a, b EncryptedChatRequested) bool) EncryptedChatRequestedArray func EncryptedChatRequestedArray.SortByDate() EncryptedChatRequestedArray func EncryptedChatRequestedArray.SortByID() EncryptedChatRequestedArray func EncryptedChatRequestedArray.SortStable(less func(a, b EncryptedChatRequested) bool) EncryptedChatRequestedArray func EncryptedChatRequestedArray.SortStableByDate() EncryptedChatRequestedArray func EncryptedChatRequestedArray.SortStableByID() EncryptedChatRequestedArray
EncryptedChatTypingHandler is a EncryptedChatTyping event handler. func UpdateDispatcher.OnEncryptedChatTyping(handler EncryptedChatTypingHandler)
EncryptedChatWaiting represents TL type `encryptedChatWaiting#66b25953`. Chat waiting for approval of second participant. See https://core.telegram.org/constructor/encryptedChatWaiting for reference. Checking sum depending on user ID Chat creator ID Date of chat creation Chat ID ID of second chat participant AsNotEmpty tries to map EncryptedChatWaiting to NotEmptyEncryptedChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EncryptedChatWaiting from given interface. GetAccessHash returns value of AccessHash field. GetAdminID returns value of AdminID field. GetDate returns value of Date field. GetID returns value of ID field. GetParticipantID returns value of ParticipantID 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. (*EncryptedChatWaiting) Zero() bool *EncryptedChatWaiting : EncryptedChatClass *EncryptedChatWaiting : NotEmptyEncryptedChat *EncryptedChatWaiting : github.com/gotd/td/bin.BareDecoder *EncryptedChatWaiting : github.com/gotd/td/bin.BareEncoder *EncryptedChatWaiting : github.com/gotd/td/bin.Decoder *EncryptedChatWaiting : github.com/gotd/td/bin.Encoder *EncryptedChatWaiting : github.com/gotd/td/bin.Object *EncryptedChatWaiting : github.com/gotd/td/tdp.Object *EncryptedChatWaiting : fmt.Stringer func EncryptedChatClassArray.EncryptedChatWaitingToMap() map[int]*EncryptedChatWaiting func EncryptedChatWaitingArray.First() (v EncryptedChatWaiting, ok bool) func EncryptedChatWaitingArray.Last() (v EncryptedChatWaiting, ok bool) func (*EncryptedChatWaitingArray).Pop() (v EncryptedChatWaiting, ok bool) func (*EncryptedChatWaitingArray).PopFirst() (v EncryptedChatWaiting, ok bool) func EncryptedChatWaitingArray.ToMap() map[int]EncryptedChatWaiting func EncryptedChatClassArray.FillEncryptedChatWaitingMap(to map[int]*EncryptedChatWaiting) func EncryptedChatWaitingArray.FillMap(to map[int]EncryptedChatWaiting)
EncryptedChatWaitingArray is adapter for slice of EncryptedChatWaiting. 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 EncryptedChatWaiting. Sort sorts slice of EncryptedChatWaiting. SortByDate sorts slice of EncryptedChatWaiting by Date. SortByID sorts slice of EncryptedChatWaiting by ID. SortStable sorts slice of EncryptedChatWaiting. SortStableByDate sorts slice of EncryptedChatWaiting by Date. SortStableByID sorts slice of EncryptedChatWaiting by ID. ToMap collects constructors to map. func EncryptedChatClassArray.AsEncryptedChatWaiting() (to EncryptedChatWaitingArray) func EncryptedChatWaitingArray.Retain(keep func(x EncryptedChatWaiting) bool) EncryptedChatWaitingArray func EncryptedChatWaitingArray.Sort(less func(a, b EncryptedChatWaiting) bool) EncryptedChatWaitingArray func EncryptedChatWaitingArray.SortByDate() EncryptedChatWaitingArray func EncryptedChatWaitingArray.SortByID() EncryptedChatWaitingArray func EncryptedChatWaitingArray.SortStable(less func(a, b EncryptedChatWaiting) bool) EncryptedChatWaitingArray func EncryptedChatWaitingArray.SortStableByDate() EncryptedChatWaitingArray func EncryptedChatWaitingArray.SortStableByID() EncryptedChatWaitingArray
EncryptedFile represents TL type `encryptedFile#a8008cd8`. Encrypted file. See https://core.telegram.org/constructor/encryptedFile for reference. Checking sum depending on user ID Number of data center File ID 32-bit fingerprint of key used for file encryption File size in bytes AsInput tries to map EncryptedFile to InputEncryptedFile. AsInputEncryptedFileLocation tries to map EncryptedFile to InputEncryptedFileLocation. AsNotEmpty tries to map EncryptedFile to EncryptedFile. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EncryptedFile from given interface. GetAccessHash returns value of AccessHash field. GetDCID returns value of DCID field. GetID returns value of ID field. GetKeyFingerprint returns value of KeyFingerprint field. GetSize returns value of Size 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. (*EncryptedFile) Zero() bool *EncryptedFile : EncryptedFileClass *EncryptedFile : github.com/gotd/td/bin.BareDecoder *EncryptedFile : github.com/gotd/td/bin.BareEncoder *EncryptedFile : github.com/gotd/td/bin.Decoder *EncryptedFile : github.com/gotd/td/bin.Encoder *EncryptedFile : github.com/gotd/td/bin.Object *EncryptedFile : github.com/gotd/td/tdp.Object *EncryptedFile : fmt.Stringer func (*EncryptedFile).AsNotEmpty() (*EncryptedFile, bool) func EncryptedFileArray.First() (v EncryptedFile, ok bool) func EncryptedFileArray.Last() (v EncryptedFile, ok bool) func (*EncryptedFileArray).Pop() (v EncryptedFile, ok bool) func (*EncryptedFileArray).PopFirst() (v EncryptedFile, ok bool) func EncryptedFileArray.ToMap() map[int64]EncryptedFile func EncryptedFileClass.AsNotEmpty() (*EncryptedFile, bool) func EncryptedFileClassArray.AppendOnlyNotEmpty(to []*EncryptedFile) []*EncryptedFile func EncryptedFileClassArray.AsNotEmpty() (to []*EncryptedFile) func EncryptedFileClassArray.FirstAsNotEmpty() (v *EncryptedFile, ok bool) func EncryptedFileClassArray.LastAsNotEmpty() (v *EncryptedFile, ok bool) func EncryptedFileClassArray.NotEmptyToMap() map[int64]*EncryptedFile func (*EncryptedFileClassArray).PopAsNotEmpty() (v *EncryptedFile, ok bool) func (*EncryptedFileClassArray).PopFirstAsNotEmpty() (v *EncryptedFile, ok bool) func (*EncryptedFileEmpty).AsNotEmpty() (*EncryptedFile, bool) func EncryptedFileArray.FillMap(to map[int64]EncryptedFile) func EncryptedFileClassArray.AppendOnlyNotEmpty(to []*EncryptedFile) []*EncryptedFile func EncryptedFileClassArray.FillNotEmptyMap(to map[int64]*EncryptedFile)
EncryptedFileArray is adapter for slice of EncryptedFile. 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 EncryptedFile. Sort sorts slice of EncryptedFile. SortByID sorts slice of EncryptedFile by ID. SortStable sorts slice of EncryptedFile. SortStableByID sorts slice of EncryptedFile by ID. ToMap collects constructors to map. func EncryptedFileArray.Retain(keep func(x EncryptedFile) bool) EncryptedFileArray func EncryptedFileArray.Sort(less func(a, b EncryptedFile) bool) EncryptedFileArray func EncryptedFileArray.SortByID() EncryptedFileArray func EncryptedFileArray.SortStable(less func(a, b EncryptedFile) bool) EncryptedFileArray func EncryptedFileArray.SortStableByID() EncryptedFileArray func EncryptedFileClassArray.AsEncryptedFile() (to EncryptedFileArray)
EncryptedFile boxes the EncryptedFileClass providing a helper. EncryptedFile EncryptedFileClass Decode implements bin.Decoder for EncryptedFileBox. Encode implements bin.Encode for EncryptedFileBox. *EncryptedFileBox : github.com/gotd/td/bin.Decoder *EncryptedFileBox : github.com/gotd/td/bin.Encoder *EncryptedFileBox : github.com/gotd/td/bin.Object
EncryptedFileClass represents EncryptedFile generic type. See https://core.telegram.org/type/EncryptedFile for reference. Example: g, err := tg.DecodeEncryptedFile(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.EncryptedFileEmpty: // encryptedFileEmpty#c21f497e case *tg.EncryptedFile: // encryptedFile#a8008cd8 default: panic(v) } AsNotEmpty tries to map EncryptedFileClass to EncryptedFile. ( EncryptedFileClass) Decode(b *bin.Buffer) error ( EncryptedFileClass) DecodeBare(b *bin.Buffer) error ( EncryptedFileClass) Encode(b *bin.Buffer) error ( EncryptedFileClass) 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. *EncryptedFile *EncryptedFileEmpty EncryptedFileClass : github.com/gotd/td/bin.BareDecoder EncryptedFileClass : github.com/gotd/td/bin.BareEncoder EncryptedFileClass : github.com/gotd/td/bin.Decoder EncryptedFileClass : github.com/gotd/td/bin.Encoder EncryptedFileClass : github.com/gotd/td/bin.Object EncryptedFileClass : fmt.Stringer func DecodeEncryptedFile(buf *bin.Buffer) (EncryptedFileClass, error) func (*Client).MessagesUploadEncryptedFile(ctx context.Context, request *MessagesUploadEncryptedFileRequest) (EncryptedFileClass, error) func EncryptedFileClassArray.First() (v EncryptedFileClass, ok bool) func EncryptedFileClassArray.Last() (v EncryptedFileClass, ok bool) func (*EncryptedFileClassArray).Pop() (v EncryptedFileClass, ok bool) func (*EncryptedFileClassArray).PopFirst() (v EncryptedFileClass, ok bool) func (*EncryptedMessage).GetFile() (value EncryptedFileClass) func (*MessagesSentEncryptedFile).GetFile() (value EncryptedFileClass)
EncryptedFileClassArray is adapter for slice of EncryptedFileClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsEncryptedFile returns copy with only EncryptedFile constructors. AsNotEmpty returns copy with only NotEmpty constructors. FillNotEmptyMap fills only NotEmpty constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of EncryptedFileClass. Sort sorts slice of EncryptedFileClass. SortStable sorts slice of EncryptedFileClass. func EncryptedFileClassArray.Retain(keep func(x EncryptedFileClass) bool) EncryptedFileClassArray func EncryptedFileClassArray.Sort(less func(a, b EncryptedFileClass) bool) EncryptedFileClassArray func EncryptedFileClassArray.SortStable(less func(a, b EncryptedFileClass) bool) EncryptedFileClassArray
EncryptedFileEmpty represents TL type `encryptedFileEmpty#c21f497e`. Empty constructor, non-existing file. See https://core.telegram.org/constructor/encryptedFileEmpty for reference. AsNotEmpty tries to map EncryptedFileEmpty to EncryptedFile. 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. (*EncryptedFileEmpty) Zero() bool *EncryptedFileEmpty : EncryptedFileClass *EncryptedFileEmpty : github.com/gotd/td/bin.BareDecoder *EncryptedFileEmpty : github.com/gotd/td/bin.BareEncoder *EncryptedFileEmpty : github.com/gotd/td/bin.Decoder *EncryptedFileEmpty : github.com/gotd/td/bin.Encoder *EncryptedFileEmpty : github.com/gotd/td/bin.Object *EncryptedFileEmpty : github.com/gotd/td/tdp.Object *EncryptedFileEmpty : fmt.Stringer
EncryptedMessage represents TL type `encryptedMessage#ed18c118`. Encrypted message. See https://core.telegram.org/constructor/encryptedMessage for reference. TL-serialization of DecryptedMessage¹ type, encrypted with the key created at chat initialization Links: 1) https://core.telegram.org/type/DecryptedMessage ID of encrypted chat Date of sending Attached encrypted file Random message ID, assigned by the author of message Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EncryptedMessage from given interface. GetBytes returns value of Bytes field. GetChatID returns value of ChatID field. GetDate returns value of Date field. GetFile returns value of File field. GetRandomID returns value of RandomID 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. (*EncryptedMessage) Zero() bool *EncryptedMessage : EncryptedMessageClass *EncryptedMessage : github.com/gotd/td/bin.BareDecoder *EncryptedMessage : github.com/gotd/td/bin.BareEncoder *EncryptedMessage : github.com/gotd/td/bin.Decoder *EncryptedMessage : github.com/gotd/td/bin.Encoder *EncryptedMessage : github.com/gotd/td/bin.Object *EncryptedMessage : github.com/gotd/td/tdp.Object *EncryptedMessage : fmt.Stringer func EncryptedMessageArray.First() (v EncryptedMessage, ok bool) func EncryptedMessageArray.Last() (v EncryptedMessage, ok bool) func (*EncryptedMessageArray).Pop() (v EncryptedMessage, ok bool) func (*EncryptedMessageArray).PopFirst() (v EncryptedMessage, ok bool)
EncryptedMessageArray is adapter for slice of EncryptedMessage. 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 EncryptedMessage. Sort sorts slice of EncryptedMessage. SortByDate sorts slice of EncryptedMessage by Date. SortStable sorts slice of EncryptedMessage. SortStableByDate sorts slice of EncryptedMessage by Date. func EncryptedMessageArray.Retain(keep func(x EncryptedMessage) bool) EncryptedMessageArray func EncryptedMessageArray.Sort(less func(a, b EncryptedMessage) bool) EncryptedMessageArray func EncryptedMessageArray.SortByDate() EncryptedMessageArray func EncryptedMessageArray.SortStable(less func(a, b EncryptedMessage) bool) EncryptedMessageArray func EncryptedMessageArray.SortStableByDate() EncryptedMessageArray func EncryptedMessageClassArray.AsEncryptedMessage() (to EncryptedMessageArray)
EncryptedMessage boxes the EncryptedMessageClass providing a helper. EncryptedMessage EncryptedMessageClass Decode implements bin.Decoder for EncryptedMessageBox. Encode implements bin.Encode for EncryptedMessageBox. *EncryptedMessageBox : github.com/gotd/td/bin.Decoder *EncryptedMessageBox : github.com/gotd/td/bin.Encoder *EncryptedMessageBox : github.com/gotd/td/bin.Object
EncryptedMessageClass represents EncryptedMessage generic type. See https://core.telegram.org/type/EncryptedMessage for reference. Example: g, err := tg.DecodeEncryptedMessage(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.EncryptedMessage: // encryptedMessage#ed18c118 case *tg.EncryptedMessageService: // encryptedMessageService#23734b06 default: panic(v) } ( EncryptedMessageClass) Decode(b *bin.Buffer) error ( EncryptedMessageClass) DecodeBare(b *bin.Buffer) error ( EncryptedMessageClass) Encode(b *bin.Buffer) error ( EncryptedMessageClass) EncodeBare(b *bin.Buffer) error TL-serialization of DecryptedMessage¹ type, encrypted with the key created at chat initialization Links: 1) https://core.telegram.org/type/DecryptedMessage ID of encrypted chat Date of sending Random message ID, assigned by the author of message 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. *EncryptedMessage *EncryptedMessageService EncryptedMessageClass : github.com/gotd/td/bin.BareDecoder EncryptedMessageClass : github.com/gotd/td/bin.BareEncoder EncryptedMessageClass : github.com/gotd/td/bin.Decoder EncryptedMessageClass : github.com/gotd/td/bin.Encoder EncryptedMessageClass : github.com/gotd/td/bin.Object EncryptedMessageClass : fmt.Stringer func DecodeEncryptedMessage(buf *bin.Buffer) (EncryptedMessageClass, error) func EncryptedMessageClassArray.First() (v EncryptedMessageClass, ok bool) func EncryptedMessageClassArray.Last() (v EncryptedMessageClass, ok bool) func (*EncryptedMessageClassArray).Pop() (v EncryptedMessageClass, ok bool) func (*EncryptedMessageClassArray).PopFirst() (v EncryptedMessageClass, ok bool) func (*UpdateNewEncryptedMessage).GetMessage() (value EncryptedMessageClass) func (*UpdatesDifference).GetNewEncryptedMessages() (value []EncryptedMessageClass) func (*UpdatesDifferenceSlice).GetNewEncryptedMessages() (value []EncryptedMessageClass)
EncryptedMessageClassArray is adapter for slice of EncryptedMessageClass. AsEncryptedMessage returns copy with only EncryptedMessage constructors. AsEncryptedMessageService returns copy with only EncryptedMessageService 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 EncryptedMessageClass. Sort sorts slice of EncryptedMessageClass. SortByDate sorts slice of EncryptedMessageClass by Date. SortStable sorts slice of EncryptedMessageClass. SortStableByDate sorts slice of EncryptedMessageClass by Date. func EncryptedMessageClassArray.Retain(keep func(x EncryptedMessageClass) bool) EncryptedMessageClassArray func EncryptedMessageClassArray.Sort(less func(a, b EncryptedMessageClass) bool) EncryptedMessageClassArray func EncryptedMessageClassArray.SortByDate() EncryptedMessageClassArray func EncryptedMessageClassArray.SortStable(less func(a, b EncryptedMessageClass) bool) EncryptedMessageClassArray func EncryptedMessageClassArray.SortStableByDate() EncryptedMessageClassArray func (*UpdatesDifference).MapNewEncryptedMessages() (value EncryptedMessageClassArray) func (*UpdatesDifferenceSlice).MapNewEncryptedMessages() (value EncryptedMessageClassArray)
EncryptedMessageService represents TL type `encryptedMessageService#23734b06`. Encrypted service message See https://core.telegram.org/constructor/encryptedMessageService for reference. TL-serialization of the DecryptedMessage¹ type, encrypted with the key created at chat initialization Links: 1) https://core.telegram.org/type/DecryptedMessage ID of encrypted chat Date of sending Random message ID, assigned by the author of message Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills EncryptedMessageService from given interface. GetBytes returns value of Bytes field. GetChatID returns value of ChatID field. GetDate returns value of Date field. GetRandomID returns value of RandomID 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. (*EncryptedMessageService) Zero() bool *EncryptedMessageService : EncryptedMessageClass *EncryptedMessageService : github.com/gotd/td/bin.BareDecoder *EncryptedMessageService : github.com/gotd/td/bin.BareEncoder *EncryptedMessageService : github.com/gotd/td/bin.Decoder *EncryptedMessageService : github.com/gotd/td/bin.Encoder *EncryptedMessageService : github.com/gotd/td/bin.Object *EncryptedMessageService : github.com/gotd/td/tdp.Object *EncryptedMessageService : fmt.Stringer func EncryptedMessageServiceArray.First() (v EncryptedMessageService, ok bool) func EncryptedMessageServiceArray.Last() (v EncryptedMessageService, ok bool) func (*EncryptedMessageServiceArray).Pop() (v EncryptedMessageService, ok bool) func (*EncryptedMessageServiceArray).PopFirst() (v EncryptedMessageService, ok bool)
EncryptedMessageServiceArray is adapter for slice of EncryptedMessageService. 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 EncryptedMessageService. Sort sorts slice of EncryptedMessageService. SortByDate sorts slice of EncryptedMessageService by Date. SortStable sorts slice of EncryptedMessageService. SortStableByDate sorts slice of EncryptedMessageService by Date. func EncryptedMessageClassArray.AsEncryptedMessageService() (to EncryptedMessageServiceArray) func EncryptedMessageServiceArray.Retain(keep func(x EncryptedMessageService) bool) EncryptedMessageServiceArray func EncryptedMessageServiceArray.Sort(less func(a, b EncryptedMessageService) bool) EncryptedMessageServiceArray func EncryptedMessageServiceArray.SortByDate() EncryptedMessageServiceArray func EncryptedMessageServiceArray.SortStable(less func(a, b EncryptedMessageService) bool) EncryptedMessageServiceArray func EncryptedMessageServiceArray.SortStableByDate() EncryptedMessageServiceArray
EncryptedMessagesReadHandler is a EncryptedMessagesRead event handler. func UpdateDispatcher.OnEncryptedMessagesRead(handler EncryptedMessagesReadHandler)
EncryptionHandler is a Encryption event handler. func UpdateDispatcher.OnEncryption(handler EncryptionHandler)
Channels map[int64]*Channel Chats map[int64]*Chat Short bool Users map[int64]*User
Error represents TL type `error#c4b9f9bb`. Error. See https://core.telegram.org/constructor/error for reference. Error code Message Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Error from given interface. GetCode returns value of Code field. GetText returns value of Text 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. (*Error) Zero() bool *Error : github.com/gotd/td/bin.BareDecoder *Error : github.com/gotd/td/bin.BareEncoder *Error : github.com/gotd/td/bin.Decoder *Error : github.com/gotd/td/bin.Encoder *Error : github.com/gotd/td/bin.Object *Error : github.com/gotd/td/tdp.Object *Error : fmt.Stringer func (*Client).TestUseError(ctx context.Context) (*Error, error)
ExportedChatInvite boxes the ExportedChatInviteClass providing a helper. ExportedChatInvite ExportedChatInviteClass Decode implements bin.Decoder for ExportedChatInviteBox. Encode implements bin.Encode for ExportedChatInviteBox. *ExportedChatInviteBox : github.com/gotd/td/bin.Decoder *ExportedChatInviteBox : github.com/gotd/td/bin.Encoder *ExportedChatInviteBox : github.com/gotd/td/bin.Object
ExportedChatInviteClass represents ExportedChatInvite generic type. See https://core.telegram.org/type/ExportedChatInvite for reference. Example: g, err := tg.DecodeExportedChatInvite(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ChatInviteExported: // chatInviteExported#ab4a819 case *tg.ChatInvitePublicJoinRequests: // chatInvitePublicJoinRequests#ed107ab7 default: panic(v) } ( ExportedChatInviteClass) Decode(b *bin.Buffer) error ( ExportedChatInviteClass) DecodeBare(b *bin.Buffer) error ( ExportedChatInviteClass) Encode(b *bin.Buffer) error ( ExportedChatInviteClass) 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. *ChatInviteExported *ChatInvitePublicJoinRequests ExportedChatInviteClass : github.com/gotd/td/bin.BareDecoder ExportedChatInviteClass : github.com/gotd/td/bin.BareEncoder ExportedChatInviteClass : github.com/gotd/td/bin.Decoder ExportedChatInviteClass : github.com/gotd/td/bin.Encoder ExportedChatInviteClass : github.com/gotd/td/bin.Object ExportedChatInviteClass : fmt.Stringer func DecodeExportedChatInvite(buf *bin.Buffer) (ExportedChatInviteClass, error) func (*ChannelAdminLogEventActionExportedInviteDelete).GetInvite() (value ExportedChatInviteClass) func (*ChannelAdminLogEventActionExportedInviteEdit).GetNewInvite() (value ExportedChatInviteClass) func (*ChannelAdminLogEventActionExportedInviteEdit).GetPrevInvite() (value ExportedChatInviteClass) func (*ChannelAdminLogEventActionExportedInviteRevoke).GetInvite() (value ExportedChatInviteClass) func (*ChannelAdminLogEventActionParticipantJoinByInvite).GetInvite() (value ExportedChatInviteClass) func (*ChannelAdminLogEventActionParticipantJoinByRequest).GetInvite() (value ExportedChatInviteClass) func (*ChannelFull).GetExportedInvite() (value ExportedChatInviteClass, ok bool) func (*ChatFull).GetExportedInvite() (value ExportedChatInviteClass, ok bool) func ChatFullClass.GetExportedInvite() (value ExportedChatInviteClass, ok bool) func (*Client).MessagesExportChatInvite(ctx context.Context, request *MessagesExportChatInviteRequest) (ExportedChatInviteClass, error) func ExportedChatInviteClassArray.First() (v ExportedChatInviteClass, ok bool) func ExportedChatInviteClassArray.Last() (v ExportedChatInviteClass, ok bool) func (*ExportedChatInviteClassArray).Pop() (v ExportedChatInviteClass, ok bool) func (*ExportedChatInviteClassArray).PopFirst() (v ExportedChatInviteClass, ok bool) func (*MessagesExportedChatInvite).GetInvite() (value ExportedChatInviteClass) func MessagesExportedChatInviteClass.GetInvite() (value ExportedChatInviteClass) func (*MessagesExportedChatInviteReplaced).GetInvite() (value ExportedChatInviteClass) func (*MessagesExportedChatInviteReplaced).GetNewInvite() (value ExportedChatInviteClass) func (*MessagesExportedChatInvites).GetInvites() (value []ExportedChatInviteClass) func (*UpdateBotChatInviteRequester).GetInvite() (value ExportedChatInviteClass) func (*UpdateChannelParticipant).GetInvite() (value ExportedChatInviteClass, ok bool) func (*UpdateChatParticipant).GetInvite() (value ExportedChatInviteClass, ok bool) func (*ChannelFull).SetExportedInvite(value ExportedChatInviteClass) func (*ChatFull).SetExportedInvite(value ExportedChatInviteClass) func (*UpdateChannelParticipant).SetInvite(value ExportedChatInviteClass) func (*UpdateChatParticipant).SetInvite(value ExportedChatInviteClass)
ExportedChatInviteClassArray is adapter for slice of ExportedChatInviteClass. AsChatInviteExported returns copy with only ChatInviteExported 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 ExportedChatInviteClass. Sort sorts slice of ExportedChatInviteClass. SortStable sorts slice of ExportedChatInviteClass. func ExportedChatInviteClassArray.Retain(keep func(x ExportedChatInviteClass) bool) ExportedChatInviteClassArray func ExportedChatInviteClassArray.Sort(less func(a, b ExportedChatInviteClass) bool) ExportedChatInviteClassArray func ExportedChatInviteClassArray.SortStable(less func(a, b ExportedChatInviteClass) bool) ExportedChatInviteClassArray func (*MessagesExportedChatInvites).MapInvites() (value ExportedChatInviteClassArray)
ExportedChatlistInvite represents TL type `exportedChatlistInvite#c5181ac`. Exported chat folder deep link »¹. Links: 1. https://core.telegram.org/api/links#chat-folder-links See https://core.telegram.org/constructor/exportedChatlistInvite for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peers to import Name of the link The chat folder deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ExportedChatlistInvite from given interface. GetPeers returns value of Peers field. GetTitle returns value of Title field. GetURL returns value of URL field. MapPeers returns field Peers wrapped in PeerClassArray helper. 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. (*ExportedChatlistInvite) Zero() bool *ExportedChatlistInvite : github.com/gotd/td/bin.BareDecoder *ExportedChatlistInvite : github.com/gotd/td/bin.BareEncoder *ExportedChatlistInvite : github.com/gotd/td/bin.Decoder *ExportedChatlistInvite : github.com/gotd/td/bin.Encoder *ExportedChatlistInvite : github.com/gotd/td/bin.Object *ExportedChatlistInvite : github.com/gotd/td/tdp.Object *ExportedChatlistInvite : fmt.Stringer func (*ChatlistsExportedChatlistInvite).GetInvite() (value ExportedChatlistInvite) func (*ChatlistsExportedInvites).GetInvites() (value []ExportedChatlistInvite) func (*Client).ChatlistsEditExportedInvite(ctx context.Context, request *ChatlistsEditExportedInviteRequest) (*ExportedChatlistInvite, error)
ExportedContactToken represents TL type `exportedContactToken#41bf109b`. Describes a temporary profile link¹. Links: 1. https://core.telegram.org/api/links#temporary-profile-links See https://core.telegram.org/constructor/exportedContactToken for reference. Its expiration date The temporary profile link¹. Links: 1) https://core.telegram.org/api/links#temporary-profile-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ExportedContactToken from given interface. GetExpires returns value of Expires 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. (*ExportedContactToken) Zero() bool *ExportedContactToken : github.com/gotd/td/bin.BareDecoder *ExportedContactToken : github.com/gotd/td/bin.BareEncoder *ExportedContactToken : github.com/gotd/td/bin.Decoder *ExportedContactToken : github.com/gotd/td/bin.Encoder *ExportedContactToken : github.com/gotd/td/bin.Object *ExportedContactToken : github.com/gotd/td/tdp.Object *ExportedContactToken : fmt.Stringer func (*Client).ContactsExportContactToken(ctx context.Context) (*ExportedContactToken, error)
FavedStickersHandler is a FavedStickers event handler. func UpdateDispatcher.OnFavedStickers(handler FavedStickersHandler)
FileHash represents TL type `fileHash#f39b035c`. See https://core.telegram.org/constructor/fileHash for reference. Hash field of FileHash. Limit field of FileHash. Offset field of FileHash. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills FileHash 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. (*FileHash) Zero() bool *FileHash : github.com/gotd/td/bin.BareDecoder *FileHash : github.com/gotd/td/bin.BareEncoder *FileHash : github.com/gotd/td/bin.Decoder *FileHash : github.com/gotd/td/bin.Encoder *FileHash : github.com/gotd/td/bin.Object *FileHash : github.com/gotd/td/tdp.Object *FileHash : fmt.Stringer func (*Client).UploadGetCDNFileHashes(ctx context.Context, request *UploadGetCDNFileHashesRequest) ([]FileHash, error) func (*Client).UploadGetFileHashes(ctx context.Context, request *UploadGetFileHashesRequest) ([]FileHash, error) func (*Client).UploadReuploadCDNFile(ctx context.Context, request *UploadReuploadCDNFileRequest) ([]FileHash, error) func (*FileHashVector).GetElems() (value []FileHash) func (*UploadFileCDNRedirect).GetFileHashes() (value []FileHash)
FileHashVector is a box for Vector<FileHash> Elements of Vector<FileHash> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills FileHashVector 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. (*FileHashVector) Zero() bool *FileHashVector : github.com/gotd/td/bin.BareDecoder *FileHashVector : github.com/gotd/td/bin.BareEncoder *FileHashVector : github.com/gotd/td/bin.Decoder *FileHashVector : github.com/gotd/td/bin.Encoder *FileHashVector : github.com/gotd/td/bin.Object *FileHashVector : github.com/gotd/td/tdp.Object *FileHashVector : fmt.Stringer
Folder represents TL type `folder#ff544e65`. Folder See https://core.telegram.org/constructor/folder for reference. Automatically add new channels to this folder Automatically add new private chats to this folder Automatically add joined new public supergroups to this folder Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Folder ID Folder picture Use SetPhoto and GetPhoto helpers. Folder title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Folder from given interface. GetAutofillNewBroadcasts returns value of AutofillNewBroadcasts conditional field. GetAutofillNewCorrespondents returns value of AutofillNewCorrespondents conditional field. GetAutofillPublicGroups returns value of AutofillPublicGroups conditional field. GetID returns value of ID field. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetPhotoAsNotEmpty returns mapped value of Photo conditional field and boolean which is true if field was set. GetTitle returns value of Title field. SetAutofillNewBroadcasts sets value of AutofillNewBroadcasts conditional field. SetAutofillNewCorrespondents sets value of AutofillNewCorrespondents conditional field. SetAutofillPublicGroups sets value of AutofillPublicGroups conditional field. SetFlags sets flags for non-zero fields. SetPhoto sets value of Photo 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. (*Folder) Zero() bool *Folder : github.com/gotd/td/bin.BareDecoder *Folder : github.com/gotd/td/bin.BareEncoder *Folder : github.com/gotd/td/bin.Decoder *Folder : github.com/gotd/td/bin.Encoder *Folder : github.com/gotd/td/bin.Object *Folder : github.com/gotd/td/tdp.Object *Folder : fmt.Stringer func (*DialogFolder).GetFolder() (value Folder)
FolderPeer represents TL type `folderPeer#e9baa668`. Peer in a folder See https://core.telegram.org/constructor/folderPeer for reference. Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Folder peer info Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills FolderPeer from given interface. GetFolderID returns value of FolderID 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. (*FolderPeer) Zero() bool *FolderPeer : github.com/gotd/td/bin.BareDecoder *FolderPeer : github.com/gotd/td/bin.BareEncoder *FolderPeer : github.com/gotd/td/bin.Decoder *FolderPeer : github.com/gotd/td/bin.Encoder *FolderPeer : github.com/gotd/td/bin.Object *FolderPeer : github.com/gotd/td/tdp.Object *FolderPeer : fmt.Stringer func (*UpdateFolderPeers).GetFolderPeers() (value []FolderPeer)
FolderPeersHandler is a FolderPeers event handler. func UpdateDispatcher.OnFolderPeers(handler FolderPeersHandler)
FoldersEditPeerFoldersRequest represents TL type `folders.editPeerFolders#6847d0ab`. Edit peers in peer folder¹ Links: 1. https://core.telegram.org/api/folders#peer-folders See https://core.telegram.org/method/folders.editPeerFolders for reference. New peer list Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills FoldersEditPeerFoldersRequest from given interface. GetFolderPeers returns value of FolderPeers 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. (*FoldersEditPeerFoldersRequest) Zero() bool *FoldersEditPeerFoldersRequest : github.com/gotd/td/bin.BareDecoder *FoldersEditPeerFoldersRequest : github.com/gotd/td/bin.BareEncoder *FoldersEditPeerFoldersRequest : github.com/gotd/td/bin.Decoder *FoldersEditPeerFoldersRequest : github.com/gotd/td/bin.Encoder *FoldersEditPeerFoldersRequest : github.com/gotd/td/bin.Object *FoldersEditPeerFoldersRequest : github.com/gotd/td/tdp.Object *FoldersEditPeerFoldersRequest : fmt.Stringer
ForumTopic represents TL type `forumTopic#71701da9`. Represents a forum topic¹. Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/forumTopic for reference. Whether the topic is closed (no messages can be sent to it) Topic creation date Message draft¹ Links: 1) https://core.telegram.org/api/drafts Use SetDraft and GetDraft helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of the peer that created the topic Whether the topic is hidden (only valid for the "General" topic, id=1) Topic ID¹ Links: 1) https://core.telegram.org/api/forum#forum-topics If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. ID of the custom emoji¹ used as topic icon. Links: 1) https://core.telegram.org/api/custom-emoji Use SetIconEmojiID and GetIconEmojiID helpers. Whether the topic was created by the current user Notification settings Whether the topic is pinned Position up to which all incoming messages are read. Position up to which all outgoing messages are read. Whether this constructor is a reduced version of the full topic information. If set, only the my, closed, id, date, title, icon_color, icon_emoji_id and from_id parameters will contain valid information. Reduced info is usually only returned in topic-related admin log events »¹ and in the messages.channelMessages² constructor: if needed, full information can be fetched using channels.getForumTopicsByID³. Links: 1) https://core.telegram.org/api/recent-actions 2) https://core.telegram.org/constructor/messages.channelMessages 3) https://core.telegram.org/method/channels.getForumTopicsByID Topic title ID of the last message that was sent to this topic Number of unread messages Number of unread mentions¹ Links: 1) https://core.telegram.org/api/mentions Number of unread reactions to messages you sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ForumTopic from given interface. GetClosed returns value of Closed conditional field. GetDate returns value of Date field. GetDraft returns value of Draft conditional field and boolean which is true if field was set. GetFromID returns value of FromID field. GetHidden returns value of Hidden conditional field. GetID returns value of ID field. GetIconColor returns value of IconColor field. GetIconEmojiID returns value of IconEmojiID conditional field and boolean which is true if field was set. GetMy returns value of My conditional field. GetNotifySettings returns value of NotifySettings field. GetPinned returns value of Pinned conditional field. GetReadInboxMaxID returns value of ReadInboxMaxID field. GetReadOutboxMaxID returns value of ReadOutboxMaxID field. GetShort returns value of Short conditional field. GetTitle returns value of Title field. GetTopMessage returns value of TopMessage field. GetUnreadCount returns value of UnreadCount field. GetUnreadMentionsCount returns value of UnreadMentionsCount field. GetUnreadReactionsCount returns value of UnreadReactionsCount field. SetClosed sets value of Closed conditional field. SetDraft sets value of Draft conditional field. SetFlags sets flags for non-zero fields. SetHidden sets value of Hidden conditional field. SetIconEmojiID sets value of IconEmojiID conditional field. SetMy sets value of My conditional field. SetPinned sets value of Pinned conditional field. SetShort sets value of Short 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. (*ForumTopic) Zero() bool *ForumTopic : ForumTopicClass *ForumTopic : github.com/gotd/td/bin.BareDecoder *ForumTopic : github.com/gotd/td/bin.BareEncoder *ForumTopic : github.com/gotd/td/bin.Decoder *ForumTopic : github.com/gotd/td/bin.Encoder *ForumTopic : github.com/gotd/td/bin.Object *ForumTopic : github.com/gotd/td/tdp.Object *ForumTopic : fmt.Stringer func ForumTopicArray.First() (v ForumTopic, ok bool) func ForumTopicArray.Last() (v ForumTopic, ok bool) func (*ForumTopicArray).Pop() (v ForumTopic, ok bool) func (*ForumTopicArray).PopFirst() (v ForumTopic, ok bool) func ForumTopicArray.ToMap() map[int]ForumTopic func ForumTopicClassArray.ForumTopicToMap() map[int]*ForumTopic func ForumTopicArray.FillMap(to map[int]ForumTopic) func ForumTopicClassArray.FillForumTopicMap(to map[int]*ForumTopic)
ForumTopicArray is adapter for slice of ForumTopic. 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 ForumTopic. Sort sorts slice of ForumTopic. SortByDate sorts slice of ForumTopic by Date. SortByID sorts slice of ForumTopic by ID. SortStable sorts slice of ForumTopic. SortStableByDate sorts slice of ForumTopic by Date. SortStableByID sorts slice of ForumTopic by ID. ToMap collects constructors to map. func ForumTopicArray.Retain(keep func(x ForumTopic) bool) ForumTopicArray func ForumTopicArray.Sort(less func(a, b ForumTopic) bool) ForumTopicArray func ForumTopicArray.SortByDate() ForumTopicArray func ForumTopicArray.SortByID() ForumTopicArray func ForumTopicArray.SortStable(less func(a, b ForumTopic) bool) ForumTopicArray func ForumTopicArray.SortStableByDate() ForumTopicArray func ForumTopicArray.SortStableByID() ForumTopicArray func ForumTopicClassArray.AsForumTopic() (to ForumTopicArray)
ForumTopic boxes the ForumTopicClass providing a helper. ForumTopic ForumTopicClass Decode implements bin.Decoder for ForumTopicBox. Encode implements bin.Encode for ForumTopicBox. *ForumTopicBox : github.com/gotd/td/bin.Decoder *ForumTopicBox : github.com/gotd/td/bin.Encoder *ForumTopicBox : github.com/gotd/td/bin.Object
ForumTopicClass represents ForumTopic generic type. See https://core.telegram.org/type/ForumTopic for reference. Example: g, err := tg.DecodeForumTopic(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ForumTopicDeleted: // forumTopicDeleted#23f109b case *tg.ForumTopic: // forumTopic#71701da9 default: panic(v) } ( ForumTopicClass) Decode(b *bin.Buffer) error ( ForumTopicClass) DecodeBare(b *bin.Buffer) error ( ForumTopicClass) Encode(b *bin.Buffer) error ( ForumTopicClass) EncodeBare(b *bin.Buffer) error The ID of the deleted forum topic. 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. *ForumTopic *ForumTopicDeleted ForumTopicClass : github.com/gotd/td/bin.BareDecoder ForumTopicClass : github.com/gotd/td/bin.BareEncoder ForumTopicClass : github.com/gotd/td/bin.Decoder ForumTopicClass : github.com/gotd/td/bin.Encoder ForumTopicClass : github.com/gotd/td/bin.Object ForumTopicClass : fmt.Stringer func DecodeForumTopic(buf *bin.Buffer) (ForumTopicClass, error) func (*ChannelAdminLogEventActionCreateTopic).GetTopic() (value ForumTopicClass) func (*ChannelAdminLogEventActionDeleteTopic).GetTopic() (value ForumTopicClass) func (*ChannelAdminLogEventActionEditTopic).GetNewTopic() (value ForumTopicClass) func (*ChannelAdminLogEventActionEditTopic).GetPrevTopic() (value ForumTopicClass) func (*ChannelAdminLogEventActionPinTopic).GetNewTopic() (value ForumTopicClass, ok bool) func (*ChannelAdminLogEventActionPinTopic).GetPrevTopic() (value ForumTopicClass, ok bool) func ForumTopicClassArray.First() (v ForumTopicClass, ok bool) func ForumTopicClassArray.Last() (v ForumTopicClass, ok bool) func (*ForumTopicClassArray).Pop() (v ForumTopicClass, ok bool) func (*ForumTopicClassArray).PopFirst() (v ForumTopicClass, ok bool) func (*MessagesChannelMessages).GetTopics() (value []ForumTopicClass) func (*MessagesForumTopics).GetTopics() (value []ForumTopicClass) func (*ChannelAdminLogEventActionPinTopic).SetNewTopic(value ForumTopicClass) func (*ChannelAdminLogEventActionPinTopic).SetPrevTopic(value ForumTopicClass)
ForumTopicClassArray is adapter for slice of ForumTopicClass. AsForumTopic returns copy with only ForumTopic constructors. AsForumTopicDeleted returns copy with only ForumTopicDeleted constructors. FillForumTopicDeletedMap fills only ForumTopicDeleted constructors to given map. FillForumTopicMap fills only ForumTopic constructors to given map. First returns first element of slice (if exists). ForumTopicDeletedToMap collects only ForumTopicDeleted constructors to map. ForumTopicToMap collects only ForumTopic constructors to map. 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 ForumTopicClass. Sort sorts slice of ForumTopicClass. SortByID sorts slice of ForumTopicClass by ID. SortStable sorts slice of ForumTopicClass. SortStableByID sorts slice of ForumTopicClass by ID. func ForumTopicClassArray.Retain(keep func(x ForumTopicClass) bool) ForumTopicClassArray func ForumTopicClassArray.Sort(less func(a, b ForumTopicClass) bool) ForumTopicClassArray func ForumTopicClassArray.SortByID() ForumTopicClassArray func ForumTopicClassArray.SortStable(less func(a, b ForumTopicClass) bool) ForumTopicClassArray func ForumTopicClassArray.SortStableByID() ForumTopicClassArray func (*MessagesChannelMessages).MapTopics() (value ForumTopicClassArray) func (*MessagesForumTopics).MapTopics() (value ForumTopicClassArray)
ForumTopicDeleted represents TL type `forumTopicDeleted#23f109b`. Represents a deleted forum topic. See https://core.telegram.org/constructor/forumTopicDeleted for reference. Chat ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ForumTopicDeleted 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. (*ForumTopicDeleted) Zero() bool *ForumTopicDeleted : ForumTopicClass *ForumTopicDeleted : github.com/gotd/td/bin.BareDecoder *ForumTopicDeleted : github.com/gotd/td/bin.BareEncoder *ForumTopicDeleted : github.com/gotd/td/bin.Decoder *ForumTopicDeleted : github.com/gotd/td/bin.Encoder *ForumTopicDeleted : github.com/gotd/td/bin.Object *ForumTopicDeleted : github.com/gotd/td/tdp.Object *ForumTopicDeleted : fmt.Stringer func ForumTopicClassArray.ForumTopicDeletedToMap() map[int]*ForumTopicDeleted func ForumTopicDeletedArray.First() (v ForumTopicDeleted, ok bool) func ForumTopicDeletedArray.Last() (v ForumTopicDeleted, ok bool) func (*ForumTopicDeletedArray).Pop() (v ForumTopicDeleted, ok bool) func (*ForumTopicDeletedArray).PopFirst() (v ForumTopicDeleted, ok bool) func ForumTopicDeletedArray.ToMap() map[int]ForumTopicDeleted func ForumTopicClassArray.FillForumTopicDeletedMap(to map[int]*ForumTopicDeleted) func ForumTopicDeletedArray.FillMap(to map[int]ForumTopicDeleted)
ForumTopicDeletedArray is adapter for slice of ForumTopicDeleted. 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 ForumTopicDeleted. Sort sorts slice of ForumTopicDeleted. SortByID sorts slice of ForumTopicDeleted by ID. SortStable sorts slice of ForumTopicDeleted. SortStableByID sorts slice of ForumTopicDeleted by ID. ToMap collects constructors to map. func ForumTopicClassArray.AsForumTopicDeleted() (to ForumTopicDeletedArray) func ForumTopicDeletedArray.Retain(keep func(x ForumTopicDeleted) bool) ForumTopicDeletedArray func ForumTopicDeletedArray.Sort(less func(a, b ForumTopicDeleted) bool) ForumTopicDeletedArray func ForumTopicDeletedArray.SortByID() ForumTopicDeletedArray func ForumTopicDeletedArray.SortStable(less func(a, b ForumTopicDeleted) bool) ForumTopicDeletedArray func ForumTopicDeletedArray.SortStableByID() ForumTopicDeletedArray
FullChat represents Full subset of ChatClass. ( FullChat) Decode(b *bin.Buffer) error ( FullChat) DecodeBare(b *bin.Buffer) error ( FullChat) Encode(b *bin.Buffer) error ( FullChat) EncodeBare(b *bin.Buffer) error Admin rights¹ of the user in the group Links: 1) https://core.telegram.org/api/rights Whether a group call is currently active Whether there's anyone in the group call Whether the current user is the creator of the group Date of creation of the group Default banned rights¹ of all users in the group Links: 1) https://core.telegram.org/api/rights ID of the group Whether the current user has left the group Whether this group is protected¹, thus does not allow forwarding messages from it Links: 1) https://telegram.org/blog/protected-content-delete-by-date-and-more Chat photo Title 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. *Channel *Chat FullChat : NotEmptyChat FullChat : NotForbiddenChat FullChat : github.com/gotd/td/bin.BareDecoder FullChat : github.com/gotd/td/bin.BareEncoder FullChat : github.com/gotd/td/bin.Decoder FullChat : github.com/gotd/td/bin.Encoder FullChat : github.com/gotd/td/bin.Object FullChat : fmt.Stringer func (*Channel).AsFull() (FullChat, bool) func (*ChannelForbidden).AsFull() (FullChat, bool) func (*Chat).AsFull() (FullChat, bool) func ChatClass.AsFull() (FullChat, bool) func ChatClassArray.AppendOnlyFull(to []FullChat) []FullChat func ChatClassArray.AsFull() (to []FullChat) func ChatClassArray.FirstAsFull() (v FullChat, ok bool) func ChatClassArray.FullToMap() map[int64]FullChat func ChatClassArray.LastAsFull() (v FullChat, ok bool) func (*ChatClassArray).PopAsFull() (v FullChat, ok bool) func (*ChatClassArray).PopFirstAsFull() (v FullChat, ok bool) func (*ChatEmpty).AsFull() (FullChat, bool) func (*ChatForbidden).AsFull() (FullChat, bool) func ChatClassArray.AppendOnlyFull(to []FullChat) []FullChat func ChatClassArray.FillFullMap(to map[int64]FullChat)
Game represents TL type `game#bdf9653b`. Indicates an already sent game See https://core.telegram.org/constructor/game for reference. Access hash of the game Game description Optional attached document Use SetDocument and GetDocument helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of the game Game preview Short name for the game Title of the game Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Game 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. GetDocumentAsNotEmpty returns mapped 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 field. GetPhotoAsNotEmpty returns mapped 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. (*Game) Zero() bool *Game : github.com/gotd/td/bin.BareDecoder *Game : github.com/gotd/td/bin.BareEncoder *Game : github.com/gotd/td/bin.Decoder *Game : github.com/gotd/td/bin.Encoder *Game : github.com/gotd/td/bin.Object *Game : github.com/gotd/td/tdp.Object *Game : fmt.Stringer func (*MessageMediaGame).GetGame() (value Game)
GeoLiveViewedHandler is a GeoLiveViewed event handler. func UpdateDispatcher.OnGeoLiveViewed(handler GeoLiveViewedHandler)
GeoPoint represents TL type `geoPoint#b2a2f663`. GeoPoint. See https://core.telegram.org/constructor/geoPoint for reference. Access hash The estimated horizontal accuracy of the location, in meters; as defined by the sender. Use SetAccuracyRadius and GetAccuracyRadius helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Latitude Longitude AsNotEmpty tries to map GeoPoint to GeoPoint. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills GeoPoint from given interface. GetAccessHash returns value of AccessHash field. GetAccuracyRadius returns value of AccuracyRadius conditional field and boolean which is true if field was set. GetLat returns value of Lat field. GetLong returns value of Long field. SetAccuracyRadius sets value of AccuracyRadius 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. (*GeoPoint) Zero() bool *GeoPoint : GeoPointClass *GeoPoint : github.com/gotd/td/bin.BareDecoder *GeoPoint : github.com/gotd/td/bin.BareEncoder *GeoPoint : github.com/gotd/td/bin.Decoder *GeoPoint : github.com/gotd/td/bin.Encoder *GeoPoint : github.com/gotd/td/bin.Object *GeoPoint : github.com/gotd/td/tdp.Object *GeoPoint : fmt.Stringer func (*GeoPoint).AsNotEmpty() (*GeoPoint, bool) func GeoPointArray.First() (v GeoPoint, ok bool) func GeoPointArray.Last() (v GeoPoint, ok bool) func (*GeoPointArray).Pop() (v GeoPoint, ok bool) func (*GeoPointArray).PopFirst() (v GeoPoint, ok bool) func GeoPointClass.AsNotEmpty() (*GeoPoint, bool) func GeoPointClassArray.AppendOnlyNotEmpty(to []*GeoPoint) []*GeoPoint func GeoPointClassArray.AsNotEmpty() (to []*GeoPoint) func GeoPointClassArray.FirstAsNotEmpty() (v *GeoPoint, ok bool) func GeoPointClassArray.LastAsNotEmpty() (v *GeoPoint, ok bool) func (*GeoPointClassArray).PopAsNotEmpty() (v *GeoPoint, ok bool) func (*GeoPointClassArray).PopFirstAsNotEmpty() (v *GeoPoint, ok bool) func (*GeoPointEmpty).AsNotEmpty() (*GeoPoint, bool) func GeoPointClassArray.AppendOnlyNotEmpty(to []*GeoPoint) []*GeoPoint
GeoPointArray is adapter for slice of GeoPoint. 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 GeoPoint. Sort sorts slice of GeoPoint. SortStable sorts slice of GeoPoint. func GeoPointArray.Retain(keep func(x GeoPoint) bool) GeoPointArray func GeoPointArray.Sort(less func(a, b GeoPoint) bool) GeoPointArray func GeoPointArray.SortStable(less func(a, b GeoPoint) bool) GeoPointArray func GeoPointClassArray.AsGeoPoint() (to GeoPointArray)
GeoPoint boxes the GeoPointClass providing a helper. GeoPoint GeoPointClass Decode implements bin.Decoder for GeoPointBox. Encode implements bin.Encode for GeoPointBox. *GeoPointBox : github.com/gotd/td/bin.Decoder *GeoPointBox : github.com/gotd/td/bin.Encoder *GeoPointBox : github.com/gotd/td/bin.Object
GeoPointClass represents GeoPoint generic type. See https://core.telegram.org/type/GeoPoint for reference. Example: g, err := tg.DecodeGeoPoint(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.GeoPointEmpty: // geoPointEmpty#1117dd5f case *tg.GeoPoint: // geoPoint#b2a2f663 default: panic(v) } AsNotEmpty tries to map GeoPointClass to GeoPoint. ( GeoPointClass) Decode(b *bin.Buffer) error ( GeoPointClass) DecodeBare(b *bin.Buffer) error ( GeoPointClass) Encode(b *bin.Buffer) error ( GeoPointClass) 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. *GeoPoint *GeoPointEmpty GeoPointClass : github.com/gotd/td/bin.BareDecoder GeoPointClass : github.com/gotd/td/bin.BareEncoder GeoPointClass : github.com/gotd/td/bin.Decoder GeoPointClass : github.com/gotd/td/bin.Encoder GeoPointClass : github.com/gotd/td/bin.Object GeoPointClass : fmt.Stringer func DecodeGeoPoint(buf *bin.Buffer) (GeoPointClass, error) func (*BotInlineMessageMediaGeo).GetGeo() (value GeoPointClass) func (*BotInlineMessageMediaVenue).GetGeo() (value GeoPointClass) func (*ChannelLocation).GetGeoPoint() (value GeoPointClass) func GeoPointClassArray.First() (v GeoPointClass, ok bool) func GeoPointClassArray.Last() (v GeoPointClass, ok bool) func (*GeoPointClassArray).Pop() (v GeoPointClass, ok bool) func (*GeoPointClassArray).PopFirst() (v GeoPointClass, ok bool) func (*MediaAreaGeoPoint).GetGeo() (value GeoPointClass) func (*MediaAreaVenue).GetGeo() (value GeoPointClass) func (*MessageMediaGeo).GetGeo() (value GeoPointClass) func (*MessageMediaGeoLive).GetGeo() (value GeoPointClass) func (*MessageMediaVenue).GetGeo() (value GeoPointClass) func (*PageBlockMap).GetGeo() (value GeoPointClass) func (*UpdateBotInlineQuery).GetGeo() (value GeoPointClass, ok bool) func (*UpdateBotInlineSend).GetGeo() (value GeoPointClass, ok bool) func (*UpdateBotInlineQuery).SetGeo(value GeoPointClass) func (*UpdateBotInlineSend).SetGeo(value GeoPointClass)
GeoPointClassArray is adapter for slice of GeoPointClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsGeoPoint returns copy with only GeoPoint constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of GeoPointClass. Sort sorts slice of GeoPointClass. SortStable sorts slice of GeoPointClass. func GeoPointClassArray.Retain(keep func(x GeoPointClass) bool) GeoPointClassArray func GeoPointClassArray.Sort(less func(a, b GeoPointClass) bool) GeoPointClassArray func GeoPointClassArray.SortStable(less func(a, b GeoPointClass) bool) GeoPointClassArray
GeoPointEmpty represents TL type `geoPointEmpty#1117dd5f`. Empty constructor. See https://core.telegram.org/constructor/geoPointEmpty for reference. AsNotEmpty tries to map GeoPointEmpty to GeoPoint. 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. (*GeoPointEmpty) Zero() bool *GeoPointEmpty : GeoPointClass *GeoPointEmpty : github.com/gotd/td/bin.BareDecoder *GeoPointEmpty : github.com/gotd/td/bin.BareEncoder *GeoPointEmpty : github.com/gotd/td/bin.Decoder *GeoPointEmpty : github.com/gotd/td/bin.Encoder *GeoPointEmpty : github.com/gotd/td/bin.Object *GeoPointEmpty : github.com/gotd/td/tdp.Object *GeoPointEmpty : fmt.Stringer
GlobalPrivacySettings represents TL type `globalPrivacySettings#734c4ccb`. Global privacy settings See https://core.telegram.org/constructor/globalPrivacySettings for reference. Whether to archive and mute new chats from non-contacts Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether unmuted chats that are always included or pinned in a folder¹, will be kept in the Archive chat list when they get a new message. Ignored if keep_archived_unmuted is set. Links: 1) https://core.telegram.org/api/folders Whether unmuted chats will be kept in the Archive chat list when they get a new message. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills GlobalPrivacySettings from given interface. GetArchiveAndMuteNewNoncontactPeers returns value of ArchiveAndMuteNewNoncontactPeers conditional field. GetKeepArchivedFolders returns value of KeepArchivedFolders conditional field. GetKeepArchivedUnmuted returns value of KeepArchivedUnmuted conditional field. SetArchiveAndMuteNewNoncontactPeers sets value of ArchiveAndMuteNewNoncontactPeers conditional field. SetFlags sets flags for non-zero fields. SetKeepArchivedFolders sets value of KeepArchivedFolders conditional field. SetKeepArchivedUnmuted sets value of KeepArchivedUnmuted 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. (*GlobalPrivacySettings) Zero() bool *GlobalPrivacySettings : github.com/gotd/td/bin.BareDecoder *GlobalPrivacySettings : github.com/gotd/td/bin.BareEncoder *GlobalPrivacySettings : github.com/gotd/td/bin.Decoder *GlobalPrivacySettings : github.com/gotd/td/bin.Encoder *GlobalPrivacySettings : github.com/gotd/td/bin.Object *GlobalPrivacySettings : github.com/gotd/td/tdp.Object *GlobalPrivacySettings : fmt.Stringer func (*AccountSetGlobalPrivacySettingsRequest).GetSettings() (value GlobalPrivacySettings) func (*Client).AccountGetGlobalPrivacySettings(ctx context.Context) (*GlobalPrivacySettings, error) func (*Client).AccountSetGlobalPrivacySettings(ctx context.Context, settings GlobalPrivacySettings) (*GlobalPrivacySettings, error) func (*Client).AccountSetGlobalPrivacySettings(ctx context.Context, settings GlobalPrivacySettings) (*GlobalPrivacySettings, error)
GroupCall represents TL type `groupCall#d597650c`. Info about a group call or livestream See https://core.telegram.org/constructor/groupCall for reference. Group call access hash Whether the current user can change the value of the join_muted flag using phone toggleGroupCallSettings¹ Links: 1) https://core.telegram.org/method/phone.toggleGroupCallSettings Whether you can start streaming video into the call Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Group call ID Specifies the ordering to use when locally sorting by date and displaying in the UI group call participants. Whether the user should be muted upon joining the call Whether the listeners list is hidden and cannot be fetched using phone getGroupParticipants¹. The phone.groupParticipants.count and groupCall participants_count counters will still include listeners. Links: 1) https://core.telegram.org/method/phone.getGroupParticipants Participant count When was the recording started Use SetRecordStartDate and GetRecordStartDate helpers. Whether the group call is currently being recorded Whether RTMP streams are allowed When is the call scheduled to start Use SetScheduleDate and GetScheduleDate helpers. Whether we subscribed to the scheduled call DC ID to be used for livestream chunks Use SetStreamDCID and GetStreamDCID helpers. Group call title Use SetTitle and GetTitle helpers. Number of people currently streaming video into the call Use SetUnmutedVideoCount and GetUnmutedVideoCount helpers. Maximum number of people allowed to stream video into the call Version AsInput tries to map GroupCall to InputGroupCall. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills GroupCall from given interface. GetAccessHash returns value of AccessHash field. GetCanChangeJoinMuted returns value of CanChangeJoinMuted conditional field. GetCanStartVideo returns value of CanStartVideo conditional field. GetID returns value of ID field. GetJoinDateAsc returns value of JoinDateAsc conditional field. GetJoinMuted returns value of JoinMuted conditional field. GetListenersHidden returns value of ListenersHidden conditional field. GetParticipantsCount returns value of ParticipantsCount field. GetRecordStartDate returns value of RecordStartDate conditional field and boolean which is true if field was set. GetRecordVideoActive returns value of RecordVideoActive conditional field. GetRtmpStream returns value of RtmpStream conditional field. GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set. GetScheduleStartSubscribed returns value of ScheduleStartSubscribed conditional field. GetStreamDCID returns value of StreamDCID 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. GetUnmutedVideoCount returns value of UnmutedVideoCount conditional field and boolean which is true if field was set. GetUnmutedVideoLimit returns value of UnmutedVideoLimit field. GetVersion returns value of Version field. SetCanChangeJoinMuted sets value of CanChangeJoinMuted conditional field. SetCanStartVideo sets value of CanStartVideo conditional field. SetFlags sets flags for non-zero fields. SetJoinDateAsc sets value of JoinDateAsc conditional field. SetJoinMuted sets value of JoinMuted conditional field. SetListenersHidden sets value of ListenersHidden conditional field. SetRecordStartDate sets value of RecordStartDate conditional field. SetRecordVideoActive sets value of RecordVideoActive conditional field. SetRtmpStream sets value of RtmpStream conditional field. SetScheduleDate sets value of ScheduleDate conditional field. SetScheduleStartSubscribed sets value of ScheduleStartSubscribed conditional field. SetStreamDCID sets value of StreamDCID conditional field. SetTitle sets value of Title conditional field. SetUnmutedVideoCount sets value of UnmutedVideoCount 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. (*GroupCall) Zero() bool *GroupCall : GroupCallClass *GroupCall : github.com/gotd/td/bin.BareDecoder *GroupCall : github.com/gotd/td/bin.BareEncoder *GroupCall : github.com/gotd/td/bin.Decoder *GroupCall : github.com/gotd/td/bin.Encoder *GroupCall : github.com/gotd/td/bin.Object *GroupCall : github.com/gotd/td/tdp.Object *GroupCall : fmt.Stringer func GroupCallArray.First() (v GroupCall, ok bool) func GroupCallArray.Last() (v GroupCall, ok bool) func (*GroupCallArray).Pop() (v GroupCall, ok bool) func (*GroupCallArray).PopFirst() (v GroupCall, ok bool) func GroupCallArray.ToMap() map[int64]GroupCall func GroupCallClassArray.GroupCallToMap() map[int64]*GroupCall func GroupCallArray.FillMap(to map[int64]GroupCall) func GroupCallClassArray.FillGroupCallMap(to map[int64]*GroupCall)
GroupCallArray is adapter for slice of GroupCall. 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 GroupCall. Sort sorts slice of GroupCall. SortByID sorts slice of GroupCall by ID. SortStable sorts slice of GroupCall. SortStableByID sorts slice of GroupCall by ID. ToMap collects constructors to map. func GroupCallArray.Retain(keep func(x GroupCall) bool) GroupCallArray func GroupCallArray.Sort(less func(a, b GroupCall) bool) GroupCallArray func GroupCallArray.SortByID() GroupCallArray func GroupCallArray.SortStable(less func(a, b GroupCall) bool) GroupCallArray func GroupCallArray.SortStableByID() GroupCallArray func GroupCallClassArray.AsGroupCall() (to GroupCallArray)
GroupCall boxes the GroupCallClass providing a helper. GroupCall GroupCallClass Decode implements bin.Decoder for GroupCallBox. Encode implements bin.Encode for GroupCallBox. *GroupCallBox : github.com/gotd/td/bin.Decoder *GroupCallBox : github.com/gotd/td/bin.Encoder *GroupCallBox : github.com/gotd/td/bin.Object
GroupCallClass represents GroupCall generic type. See https://core.telegram.org/type/GroupCall for reference. Example: g, err := tg.DecodeGroupCall(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.GroupCallDiscarded: // groupCallDiscarded#7780bcb4 case *tg.GroupCall: // groupCall#d597650c default: panic(v) } ( GroupCallClass) Decode(b *bin.Buffer) error ( GroupCallClass) DecodeBare(b *bin.Buffer) error ( GroupCallClass) Encode(b *bin.Buffer) error ( GroupCallClass) EncodeBare(b *bin.Buffer) error Group call access hash Group call ID 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. *GroupCall *GroupCallDiscarded GroupCallClass : github.com/gotd/td/bin.BareDecoder GroupCallClass : github.com/gotd/td/bin.BareEncoder GroupCallClass : github.com/gotd/td/bin.Decoder GroupCallClass : github.com/gotd/td/bin.Encoder GroupCallClass : github.com/gotd/td/bin.Object GroupCallClass : fmt.Stringer func DecodeGroupCall(buf *bin.Buffer) (GroupCallClass, error) func GroupCallClassArray.First() (v GroupCallClass, ok bool) func GroupCallClassArray.Last() (v GroupCallClass, ok bool) func (*GroupCallClassArray).Pop() (v GroupCallClass, ok bool) func (*GroupCallClassArray).PopFirst() (v GroupCallClass, ok bool) func (*PhoneGroupCall).GetCall() (value GroupCallClass) func (*UpdateGroupCall).GetCall() (value GroupCallClass)
GroupCallClassArray is adapter for slice of GroupCallClass. AsGroupCall returns copy with only GroupCall constructors. AsGroupCallDiscarded returns copy with only GroupCallDiscarded constructors. FillGroupCallDiscardedMap fills only GroupCallDiscarded constructors to given map. FillGroupCallMap fills only GroupCall constructors to given map. First returns first element of slice (if exists). GroupCallDiscardedToMap collects only GroupCallDiscarded constructors to map. GroupCallToMap collects only GroupCall constructors to map. 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 GroupCallClass. Sort sorts slice of GroupCallClass. SortByID sorts slice of GroupCallClass by ID. SortStable sorts slice of GroupCallClass. SortStableByID sorts slice of GroupCallClass by ID. func GroupCallClassArray.Retain(keep func(x GroupCallClass) bool) GroupCallClassArray func GroupCallClassArray.Sort(less func(a, b GroupCallClass) bool) GroupCallClassArray func GroupCallClassArray.SortByID() GroupCallClassArray func GroupCallClassArray.SortStable(less func(a, b GroupCallClass) bool) GroupCallClassArray func GroupCallClassArray.SortStableByID() GroupCallClassArray
GroupCallConnectionHandler is a GroupCallConnection event handler. func UpdateDispatcher.OnGroupCallConnection(handler GroupCallConnectionHandler)
GroupCallDiscarded represents TL type `groupCallDiscarded#7780bcb4`. An ended group call See https://core.telegram.org/constructor/groupCallDiscarded for reference. Group call access hash Group call duration Group call ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills GroupCallDiscarded from given interface. GetAccessHash returns value of AccessHash field. GetDuration returns value of Duration 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. (*GroupCallDiscarded) Zero() bool *GroupCallDiscarded : GroupCallClass *GroupCallDiscarded : github.com/gotd/td/bin.BareDecoder *GroupCallDiscarded : github.com/gotd/td/bin.BareEncoder *GroupCallDiscarded : github.com/gotd/td/bin.Decoder *GroupCallDiscarded : github.com/gotd/td/bin.Encoder *GroupCallDiscarded : github.com/gotd/td/bin.Object *GroupCallDiscarded : github.com/gotd/td/tdp.Object *GroupCallDiscarded : fmt.Stringer func GroupCallClassArray.GroupCallDiscardedToMap() map[int64]*GroupCallDiscarded func GroupCallDiscardedArray.First() (v GroupCallDiscarded, ok bool) func GroupCallDiscardedArray.Last() (v GroupCallDiscarded, ok bool) func (*GroupCallDiscardedArray).Pop() (v GroupCallDiscarded, ok bool) func (*GroupCallDiscardedArray).PopFirst() (v GroupCallDiscarded, ok bool) func GroupCallDiscardedArray.ToMap() map[int64]GroupCallDiscarded func GroupCallClassArray.FillGroupCallDiscardedMap(to map[int64]*GroupCallDiscarded) func GroupCallDiscardedArray.FillMap(to map[int64]GroupCallDiscarded)
GroupCallDiscardedArray is adapter for slice of GroupCallDiscarded. 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 GroupCallDiscarded. Sort sorts slice of GroupCallDiscarded. SortByID sorts slice of GroupCallDiscarded by ID. SortStable sorts slice of GroupCallDiscarded. SortStableByID sorts slice of GroupCallDiscarded by ID. ToMap collects constructors to map. func GroupCallClassArray.AsGroupCallDiscarded() (to GroupCallDiscardedArray) func GroupCallDiscardedArray.Retain(keep func(x GroupCallDiscarded) bool) GroupCallDiscardedArray func GroupCallDiscardedArray.Sort(less func(a, b GroupCallDiscarded) bool) GroupCallDiscardedArray func GroupCallDiscardedArray.SortByID() GroupCallDiscardedArray func GroupCallDiscardedArray.SortStable(less func(a, b GroupCallDiscarded) bool) GroupCallDiscardedArray func GroupCallDiscardedArray.SortStableByID() GroupCallDiscardedArray
GroupCallHandler is a GroupCall event handler. func UpdateDispatcher.OnGroupCall(handler GroupCallHandler)
GroupCallParticipant represents TL type `groupCallParticipant#eba636fe`. Info about a group call participant See https://core.telegram.org/constructor/groupCallParticipant for reference. Info about this participant Use SetAbout and GetAbout helpers. When was this participant last active in the group call Use SetActiveDate and GetActiveDate helpers. Whether the participant can unmute themselves When did this participant join the group call Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the participant has just joined Whether the participant has left If not set, the volume and muted_by_you fields can be safely used to overwrite locally cached information; otherwise, volume will contain valid information only if volume_by_admin is set both in the cache and in the received constructor. Whether the participant is muted Whether this participant was muted by the current user Peer information Info about the screen sharing stream the participant is currently broadcasting Use SetPresentation and GetPresentation helpers. Specifies the UI visualization order of peers with raised hands: peers with a higher rating should be showed first in the list. Use SetRaiseHandRating and GetRaiseHandRating helpers. Whether this participant is the current user Source ID If set, and updateGroupCallParticipants¹.version < locally stored call.version, info about this participant should be ignored. If (...), and updateGroupCallParticipants² version > call.version+1, the participant list should be refetched using phone getGroupParticipants³. Links: 1) https://core.telegram.org/constructor/updateGroupCallParticipants 2) https://core.telegram.org/constructor/updateGroupCallParticipants 3) https://core.telegram.org/method/phone.getGroupParticipants Info about the video stream the participant is currently broadcasting Use SetVideo and GetVideo helpers. Whether this participant is currently broadcasting video Volume, if not set the volume is set to 100%. Use SetVolume and GetVolume helpers. Whether our volume can only changed by an admin Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills GroupCallParticipant from given interface. GetAbout returns value of About conditional field and boolean which is true if field was set. GetActiveDate returns value of ActiveDate conditional field and boolean which is true if field was set. GetCanSelfUnmute returns value of CanSelfUnmute conditional field. GetDate returns value of Date field. GetJustJoined returns value of JustJoined conditional field. GetLeft returns value of Left conditional field. GetMin returns value of Min conditional field. GetMuted returns value of Muted conditional field. GetMutedByYou returns value of MutedByYou conditional field. GetPeer returns value of Peer field. GetPresentation returns value of Presentation conditional field and boolean which is true if field was set. GetRaiseHandRating returns value of RaiseHandRating conditional field and boolean which is true if field was set. GetSelf returns value of Self conditional field. GetSource returns value of Source field. GetVersioned returns value of Versioned conditional field. GetVideo returns value of Video conditional field and boolean which is true if field was set. GetVideoJoined returns value of VideoJoined conditional field. GetVolume returns value of Volume conditional field and boolean which is true if field was set. GetVolumeByAdmin returns value of VolumeByAdmin conditional field. SetAbout sets value of About conditional field. SetActiveDate sets value of ActiveDate conditional field. SetCanSelfUnmute sets value of CanSelfUnmute conditional field. SetFlags sets flags for non-zero fields. SetJustJoined sets value of JustJoined conditional field. SetLeft sets value of Left conditional field. SetMin sets value of Min conditional field. SetMuted sets value of Muted conditional field. SetMutedByYou sets value of MutedByYou conditional field. SetPresentation sets value of Presentation conditional field. SetRaiseHandRating sets value of RaiseHandRating conditional field. SetSelf sets value of Self conditional field. SetVersioned sets value of Versioned conditional field. SetVideo sets value of Video conditional field. SetVideoJoined sets value of VideoJoined conditional field. SetVolume sets value of Volume conditional field. SetVolumeByAdmin sets value of VolumeByAdmin 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. (*GroupCallParticipant) Zero() bool *GroupCallParticipant : github.com/gotd/td/bin.BareDecoder *GroupCallParticipant : github.com/gotd/td/bin.BareEncoder *GroupCallParticipant : github.com/gotd/td/bin.Decoder *GroupCallParticipant : github.com/gotd/td/bin.Encoder *GroupCallParticipant : github.com/gotd/td/bin.Object *GroupCallParticipant : github.com/gotd/td/tdp.Object *GroupCallParticipant : fmt.Stringer func (*ChannelAdminLogEventActionParticipantMute).GetParticipant() (value GroupCallParticipant) func (*ChannelAdminLogEventActionParticipantUnmute).GetParticipant() (value GroupCallParticipant) func (*ChannelAdminLogEventActionParticipantVolume).GetParticipant() (value GroupCallParticipant) func (*PhoneGroupCall).GetParticipants() (value []GroupCallParticipant) func (*PhoneGroupParticipants).GetParticipants() (value []GroupCallParticipant) func (*UpdateGroupCallParticipants).GetParticipants() (value []GroupCallParticipant)
GroupCallParticipantsHandler is a GroupCallParticipants event handler. func UpdateDispatcher.OnGroupCallParticipants(handler GroupCallParticipantsHandler)
GroupCallParticipantVideo represents TL type `groupCallParticipantVideo#67753ac8`. Info about a video stream See https://core.telegram.org/constructor/groupCallParticipantVideo for reference. Audio source ID Use SetAudioSource and GetAudioSource helpers. Endpoint Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the stream is currently paused Source groups Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills GroupCallParticipantVideo from given interface. GetAudioSource returns value of AudioSource conditional field and boolean which is true if field was set. GetEndpoint returns value of Endpoint field. GetPaused returns value of Paused conditional field. GetSourceGroups returns value of SourceGroups field. SetAudioSource sets value of AudioSource conditional field. SetFlags sets flags for non-zero fields. SetPaused sets value of Paused 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. (*GroupCallParticipantVideo) Zero() bool *GroupCallParticipantVideo : github.com/gotd/td/bin.BareDecoder *GroupCallParticipantVideo : github.com/gotd/td/bin.BareEncoder *GroupCallParticipantVideo : github.com/gotd/td/bin.Decoder *GroupCallParticipantVideo : github.com/gotd/td/bin.Encoder *GroupCallParticipantVideo : github.com/gotd/td/bin.Object *GroupCallParticipantVideo : github.com/gotd/td/tdp.Object *GroupCallParticipantVideo : fmt.Stringer func (*GroupCallParticipant).GetPresentation() (value GroupCallParticipantVideo, ok bool) func (*GroupCallParticipant).GetVideo() (value GroupCallParticipantVideo, ok bool) func (*GroupCallParticipant).SetPresentation(value GroupCallParticipantVideo) func (*GroupCallParticipant).SetVideo(value GroupCallParticipantVideo)
GroupCallParticipantVideoSourceGroup represents TL type `groupCallParticipantVideoSourceGroup#dcb118b7`. Describes a group of video synchronization source identifiers See https://core.telegram.org/constructor/groupCallParticipantVideoSourceGroup for reference. SDP semantics Source IDs Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills GroupCallParticipantVideoSourceGroup from given interface. GetSemantics returns value of Semantics field. GetSources returns value of Sources 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. (*GroupCallParticipantVideoSourceGroup) Zero() bool *GroupCallParticipantVideoSourceGroup : github.com/gotd/td/bin.BareDecoder *GroupCallParticipantVideoSourceGroup : github.com/gotd/td/bin.BareEncoder *GroupCallParticipantVideoSourceGroup : github.com/gotd/td/bin.Decoder *GroupCallParticipantVideoSourceGroup : github.com/gotd/td/bin.Encoder *GroupCallParticipantVideoSourceGroup : github.com/gotd/td/bin.Object *GroupCallParticipantVideoSourceGroup : github.com/gotd/td/tdp.Object *GroupCallParticipantVideoSourceGroup : fmt.Stringer func (*GroupCallParticipantVideo).GetSourceGroups() (value []GroupCallParticipantVideoSourceGroup)
GroupCallStreamChannel represents TL type `groupCallStreamChannel#80eb48af`. Info about an RTMP stream in a group call or livestream See https://core.telegram.org/constructor/groupCallStreamChannel for reference. Channel ID Last seen timestamp to easily start fetching livestream chunks using inputGroupCallStream¹ Links: 1) https://core.telegram.org/constructor/inputGroupCallStream Specifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills GroupCallStreamChannel from given interface. GetChannel returns value of Channel field. GetLastTimestampMs returns value of LastTimestampMs field. GetScale returns value of Scale 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. (*GroupCallStreamChannel) Zero() bool *GroupCallStreamChannel : github.com/gotd/td/bin.BareDecoder *GroupCallStreamChannel : github.com/gotd/td/bin.BareEncoder *GroupCallStreamChannel : github.com/gotd/td/bin.Decoder *GroupCallStreamChannel : github.com/gotd/td/bin.Encoder *GroupCallStreamChannel : github.com/gotd/td/bin.Object *GroupCallStreamChannel : github.com/gotd/td/tdp.Object *GroupCallStreamChannel : fmt.Stringer func (*PhoneGroupCallStreamChannels).GetChannels() (value []GroupCallStreamChannel)
GroupInvitePrivacyForbiddenHandler is a GroupInvitePrivacyForbidden event handler. func UpdateDispatcher.OnGroupInvitePrivacyForbidden(handler GroupInvitePrivacyForbiddenHandler)
HelpAcceptTermsOfServiceRequest represents TL type `help.acceptTermsOfService#ee72f79a`. Accept the new terms of service See https://core.telegram.org/method/help.acceptTermsOfService for reference. ID of terms of service Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpAcceptTermsOfServiceRequest 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. (*HelpAcceptTermsOfServiceRequest) Zero() bool *HelpAcceptTermsOfServiceRequest : github.com/gotd/td/bin.BareDecoder *HelpAcceptTermsOfServiceRequest : github.com/gotd/td/bin.BareEncoder *HelpAcceptTermsOfServiceRequest : github.com/gotd/td/bin.Decoder *HelpAcceptTermsOfServiceRequest : github.com/gotd/td/bin.Encoder *HelpAcceptTermsOfServiceRequest : github.com/gotd/td/bin.Object *HelpAcceptTermsOfServiceRequest : github.com/gotd/td/tdp.Object *HelpAcceptTermsOfServiceRequest : fmt.Stringer
HelpAppConfig represents TL type `help.appConfig#dd18782e`. Contains various client configuration parameters¹ Links: 1. https://core.telegram.org/api/config#client-configuration See https://core.telegram.org/constructor/help.appConfig for reference. Client configuration parameters¹ Links: 1) https://core.telegram.org/api/config#client-configuration Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation AsModified tries to map HelpAppConfig to HelpAppConfig. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpAppConfig from given interface. GetConfig returns value of Config 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. (*HelpAppConfig) Zero() bool *HelpAppConfig : HelpAppConfigClass *HelpAppConfig : github.com/gotd/td/bin.BareDecoder *HelpAppConfig : github.com/gotd/td/bin.BareEncoder *HelpAppConfig : github.com/gotd/td/bin.Decoder *HelpAppConfig : github.com/gotd/td/bin.Encoder *HelpAppConfig : github.com/gotd/td/bin.Object *HelpAppConfig : github.com/gotd/td/tdp.Object *HelpAppConfig : fmt.Stringer func (*HelpAppConfig).AsModified() (*HelpAppConfig, bool) func HelpAppConfigArray.First() (v HelpAppConfig, ok bool) func HelpAppConfigArray.Last() (v HelpAppConfig, ok bool) func (*HelpAppConfigArray).Pop() (v HelpAppConfig, ok bool) func (*HelpAppConfigArray).PopFirst() (v HelpAppConfig, ok bool) func HelpAppConfigClass.AsModified() (*HelpAppConfig, bool) func HelpAppConfigClassArray.AppendOnlyModified(to []*HelpAppConfig) []*HelpAppConfig func HelpAppConfigClassArray.AsModified() (to []*HelpAppConfig) func HelpAppConfigClassArray.FirstAsModified() (v *HelpAppConfig, ok bool) func HelpAppConfigClassArray.LastAsModified() (v *HelpAppConfig, ok bool) func (*HelpAppConfigClassArray).PopAsModified() (v *HelpAppConfig, ok bool) func (*HelpAppConfigClassArray).PopFirstAsModified() (v *HelpAppConfig, ok bool) func (*HelpAppConfigNotModified).AsModified() (*HelpAppConfig, bool) func HelpAppConfigClassArray.AppendOnlyModified(to []*HelpAppConfig) []*HelpAppConfig
HelpAppConfigArray is adapter for slice of HelpAppConfig. 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 HelpAppConfig. Sort sorts slice of HelpAppConfig. SortStable sorts slice of HelpAppConfig. func HelpAppConfigArray.Retain(keep func(x HelpAppConfig) bool) HelpAppConfigArray func HelpAppConfigArray.Sort(less func(a, b HelpAppConfig) bool) HelpAppConfigArray func HelpAppConfigArray.SortStable(less func(a, b HelpAppConfig) bool) HelpAppConfigArray func HelpAppConfigClassArray.AsHelpAppConfig() (to HelpAppConfigArray)
HelpAppConfig boxes the HelpAppConfigClass providing a helper. AppConfig HelpAppConfigClass Decode implements bin.Decoder for HelpAppConfigBox. Encode implements bin.Encode for HelpAppConfigBox. *HelpAppConfigBox : github.com/gotd/td/bin.Decoder *HelpAppConfigBox : github.com/gotd/td/bin.Encoder *HelpAppConfigBox : github.com/gotd/td/bin.Object
HelpAppConfigClass represents help.AppConfig generic type. See https://core.telegram.org/type/help.AppConfig for reference. Example: g, err := tg.DecodeHelpAppConfig(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpAppConfigNotModified: // help.appConfigNotModified#7cde641d case *tg.HelpAppConfig: // help.appConfig#dd18782e default: panic(v) } AsModified tries to map HelpAppConfigClass to HelpAppConfig. ( HelpAppConfigClass) Decode(b *bin.Buffer) error ( HelpAppConfigClass) DecodeBare(b *bin.Buffer) error ( HelpAppConfigClass) Encode(b *bin.Buffer) error ( HelpAppConfigClass) 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. *HelpAppConfig *HelpAppConfigNotModified HelpAppConfigClass : github.com/gotd/td/bin.BareDecoder HelpAppConfigClass : github.com/gotd/td/bin.BareEncoder HelpAppConfigClass : github.com/gotd/td/bin.Decoder HelpAppConfigClass : github.com/gotd/td/bin.Encoder HelpAppConfigClass : github.com/gotd/td/bin.Object HelpAppConfigClass : fmt.Stringer func DecodeHelpAppConfig(buf *bin.Buffer) (HelpAppConfigClass, error) func (*Client).HelpGetAppConfig(ctx context.Context, hash int) (HelpAppConfigClass, error) func HelpAppConfigClassArray.First() (v HelpAppConfigClass, ok bool) func HelpAppConfigClassArray.Last() (v HelpAppConfigClass, ok bool) func (*HelpAppConfigClassArray).Pop() (v HelpAppConfigClass, ok bool) func (*HelpAppConfigClassArray).PopFirst() (v HelpAppConfigClass, ok bool)
HelpAppConfigClassArray is adapter for slice of HelpAppConfigClass. AppendOnlyModified appends only Modified constructors to given slice. AsHelpAppConfig returns copy with only HelpAppConfig 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 HelpAppConfigClass. Sort sorts slice of HelpAppConfigClass. SortStable sorts slice of HelpAppConfigClass. func HelpAppConfigClassArray.Retain(keep func(x HelpAppConfigClass) bool) HelpAppConfigClassArray func HelpAppConfigClassArray.Sort(less func(a, b HelpAppConfigClass) bool) HelpAppConfigClassArray func HelpAppConfigClassArray.SortStable(less func(a, b HelpAppConfigClass) bool) HelpAppConfigClassArray
HelpAppConfigNotModified represents TL type `help.appConfigNotModified#7cde641d`. The client configuration parameters haven't changed See https://core.telegram.org/constructor/help.appConfigNotModified for reference. AsModified tries to map HelpAppConfigNotModified to HelpAppConfig. 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. (*HelpAppConfigNotModified) Zero() bool *HelpAppConfigNotModified : HelpAppConfigClass *HelpAppConfigNotModified : github.com/gotd/td/bin.BareDecoder *HelpAppConfigNotModified : github.com/gotd/td/bin.BareEncoder *HelpAppConfigNotModified : github.com/gotd/td/bin.Decoder *HelpAppConfigNotModified : github.com/gotd/td/bin.Encoder *HelpAppConfigNotModified : github.com/gotd/td/bin.Object *HelpAppConfigNotModified : github.com/gotd/td/tdp.Object *HelpAppConfigNotModified : fmt.Stringer
HelpAppUpdate represents TL type `help.appUpdate#ccbbce30`. An update is available for the application. See https://core.telegram.org/constructor/help.appUpdate for reference. Unskippable, the new info must be shown to the user (with a popup or something else) Application binary Use SetDocument and GetDocument helpers. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Update ID Associated sticker Use SetSticker and GetSticker helpers. Text description of the update Application download URL Use SetURL and GetURL helpers. New version name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpAppUpdate from given interface. GetCanNotSkip returns value of CanNotSkip conditional field. GetDocument returns value of Document conditional field and boolean which is true if field was set. GetEntities returns value of Entities field. GetID returns value of ID field. GetSticker returns value of Sticker conditional field and boolean which is true if field was set. GetText returns value of Text field. GetURL returns value of URL conditional field and boolean which is true if field was set. GetVersion returns value of Version field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetCanNotSkip sets value of CanNotSkip conditional field. SetDocument sets value of Document conditional field. SetFlags sets flags for non-zero fields. SetSticker sets value of Sticker 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. (*HelpAppUpdate) Zero() bool *HelpAppUpdate : HelpAppUpdateClass *HelpAppUpdate : github.com/gotd/td/bin.BareDecoder *HelpAppUpdate : github.com/gotd/td/bin.BareEncoder *HelpAppUpdate : github.com/gotd/td/bin.Decoder *HelpAppUpdate : github.com/gotd/td/bin.Encoder *HelpAppUpdate : github.com/gotd/td/bin.Object *HelpAppUpdate : github.com/gotd/td/tdp.Object *HelpAppUpdate : fmt.Stringer func HelpAppUpdateArray.First() (v HelpAppUpdate, ok bool) func HelpAppUpdateArray.Last() (v HelpAppUpdate, ok bool) func (*HelpAppUpdateArray).Pop() (v HelpAppUpdate, ok bool) func (*HelpAppUpdateArray).PopFirst() (v HelpAppUpdate, ok bool) func HelpAppUpdateArray.ToMap() map[int]HelpAppUpdate func HelpAppUpdateArray.FillMap(to map[int]HelpAppUpdate)
HelpAppUpdateArray is adapter for slice of HelpAppUpdate. 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 HelpAppUpdate. Sort sorts slice of HelpAppUpdate. SortByID sorts slice of HelpAppUpdate by ID. SortStable sorts slice of HelpAppUpdate. SortStableByID sorts slice of HelpAppUpdate by ID. ToMap collects constructors to map. func HelpAppUpdateArray.Retain(keep func(x HelpAppUpdate) bool) HelpAppUpdateArray func HelpAppUpdateArray.Sort(less func(a, b HelpAppUpdate) bool) HelpAppUpdateArray func HelpAppUpdateArray.SortByID() HelpAppUpdateArray func HelpAppUpdateArray.SortStable(less func(a, b HelpAppUpdate) bool) HelpAppUpdateArray func HelpAppUpdateArray.SortStableByID() HelpAppUpdateArray func HelpAppUpdateClassArray.AsHelpAppUpdate() (to HelpAppUpdateArray)
HelpAppUpdate boxes the HelpAppUpdateClass providing a helper. AppUpdate HelpAppUpdateClass Decode implements bin.Decoder for HelpAppUpdateBox. Encode implements bin.Encode for HelpAppUpdateBox. *HelpAppUpdateBox : github.com/gotd/td/bin.Decoder *HelpAppUpdateBox : github.com/gotd/td/bin.Encoder *HelpAppUpdateBox : github.com/gotd/td/bin.Object
HelpAppUpdateClass represents help.AppUpdate generic type. See https://core.telegram.org/type/help.AppUpdate for reference. Example: g, err := tg.DecodeHelpAppUpdate(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpAppUpdate: // help.appUpdate#ccbbce30 case *tg.HelpNoAppUpdate: // help.noAppUpdate#c45a6536 default: panic(v) } ( HelpAppUpdateClass) Decode(b *bin.Buffer) error ( HelpAppUpdateClass) DecodeBare(b *bin.Buffer) error ( HelpAppUpdateClass) Encode(b *bin.Buffer) error ( HelpAppUpdateClass) 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. *HelpAppUpdate *HelpNoAppUpdate HelpAppUpdateClass : github.com/gotd/td/bin.BareDecoder HelpAppUpdateClass : github.com/gotd/td/bin.BareEncoder HelpAppUpdateClass : github.com/gotd/td/bin.Decoder HelpAppUpdateClass : github.com/gotd/td/bin.Encoder HelpAppUpdateClass : github.com/gotd/td/bin.Object HelpAppUpdateClass : fmt.Stringer func DecodeHelpAppUpdate(buf *bin.Buffer) (HelpAppUpdateClass, error) func (*Client).HelpGetAppUpdate(ctx context.Context, source string) (HelpAppUpdateClass, error) func HelpAppUpdateClassArray.First() (v HelpAppUpdateClass, ok bool) func HelpAppUpdateClassArray.Last() (v HelpAppUpdateClass, ok bool) func (*HelpAppUpdateClassArray).Pop() (v HelpAppUpdateClass, ok bool) func (*HelpAppUpdateClassArray).PopFirst() (v HelpAppUpdateClass, ok bool)
HelpAppUpdateClassArray is adapter for slice of HelpAppUpdateClass. AsHelpAppUpdate returns copy with only HelpAppUpdate 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 HelpAppUpdateClass. Sort sorts slice of HelpAppUpdateClass. SortStable sorts slice of HelpAppUpdateClass. func HelpAppUpdateClassArray.Retain(keep func(x HelpAppUpdateClass) bool) HelpAppUpdateClassArray func HelpAppUpdateClassArray.Sort(less func(a, b HelpAppUpdateClass) bool) HelpAppUpdateClassArray func HelpAppUpdateClassArray.SortStable(less func(a, b HelpAppUpdateClass) bool) HelpAppUpdateClassArray
HelpConfigSimple represents TL type `help.configSimple#5a592a6c`. See https://core.telegram.org/constructor/help.configSimple for reference. Date field of HelpConfigSimple. Expires field of HelpConfigSimple. Rules field of HelpConfigSimple. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpConfigSimple from given interface. GetDate returns value of Date field. GetExpires returns value of Expires field. GetRules returns value of Rules 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. (*HelpConfigSimple) Zero() bool *HelpConfigSimple : github.com/gotd/td/bin.BareDecoder *HelpConfigSimple : github.com/gotd/td/bin.BareEncoder *HelpConfigSimple : github.com/gotd/td/bin.Decoder *HelpConfigSimple : github.com/gotd/td/bin.Encoder *HelpConfigSimple : github.com/gotd/td/bin.Object *HelpConfigSimple : github.com/gotd/td/tdp.Object *HelpConfigSimple : fmt.Stringer func (*Client).TestUseConfigSimple(ctx context.Context) (*HelpConfigSimple, error)
HelpCountriesList represents TL type `help.countriesList#87d0759e`. Name, ISO code, localized name and phone codes/patterns of all available countries See https://core.telegram.org/constructor/help.countriesList for reference. Name, ISO code, localized name and phone codes/patterns of all available countries Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation AsModified tries to map HelpCountriesList to HelpCountriesList. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpCountriesList from given interface. GetCountries returns value of Countries 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. (*HelpCountriesList) Zero() bool *HelpCountriesList : HelpCountriesListClass *HelpCountriesList : github.com/gotd/td/bin.BareDecoder *HelpCountriesList : github.com/gotd/td/bin.BareEncoder *HelpCountriesList : github.com/gotd/td/bin.Decoder *HelpCountriesList : github.com/gotd/td/bin.Encoder *HelpCountriesList : github.com/gotd/td/bin.Object *HelpCountriesList : github.com/gotd/td/tdp.Object *HelpCountriesList : fmt.Stringer func (*HelpCountriesList).AsModified() (*HelpCountriesList, bool) func HelpCountriesListArray.First() (v HelpCountriesList, ok bool) func HelpCountriesListArray.Last() (v HelpCountriesList, ok bool) func (*HelpCountriesListArray).Pop() (v HelpCountriesList, ok bool) func (*HelpCountriesListArray).PopFirst() (v HelpCountriesList, ok bool) func HelpCountriesListClass.AsModified() (*HelpCountriesList, bool) func HelpCountriesListClassArray.AppendOnlyModified(to []*HelpCountriesList) []*HelpCountriesList func HelpCountriesListClassArray.AsModified() (to []*HelpCountriesList) func HelpCountriesListClassArray.FirstAsModified() (v *HelpCountriesList, ok bool) func HelpCountriesListClassArray.LastAsModified() (v *HelpCountriesList, ok bool) func (*HelpCountriesListClassArray).PopAsModified() (v *HelpCountriesList, ok bool) func (*HelpCountriesListClassArray).PopFirstAsModified() (v *HelpCountriesList, ok bool) func (*HelpCountriesListNotModified).AsModified() (*HelpCountriesList, bool) func HelpCountriesListClassArray.AppendOnlyModified(to []*HelpCountriesList) []*HelpCountriesList
HelpCountriesListArray is adapter for slice of HelpCountriesList. 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 HelpCountriesList. Sort sorts slice of HelpCountriesList. SortStable sorts slice of HelpCountriesList. func HelpCountriesListArray.Retain(keep func(x HelpCountriesList) bool) HelpCountriesListArray func HelpCountriesListArray.Sort(less func(a, b HelpCountriesList) bool) HelpCountriesListArray func HelpCountriesListArray.SortStable(less func(a, b HelpCountriesList) bool) HelpCountriesListArray func HelpCountriesListClassArray.AsHelpCountriesList() (to HelpCountriesListArray)
HelpCountriesList boxes the HelpCountriesListClass providing a helper. CountriesList HelpCountriesListClass Decode implements bin.Decoder for HelpCountriesListBox. Encode implements bin.Encode for HelpCountriesListBox. *HelpCountriesListBox : github.com/gotd/td/bin.Decoder *HelpCountriesListBox : github.com/gotd/td/bin.Encoder *HelpCountriesListBox : github.com/gotd/td/bin.Object
HelpCountriesListClass represents help.CountriesList generic type. See https://core.telegram.org/type/help.CountriesList for reference. Example: g, err := tg.DecodeHelpCountriesList(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpCountriesListNotModified: // help.countriesListNotModified#93cc1f32 case *tg.HelpCountriesList: // help.countriesList#87d0759e default: panic(v) } AsModified tries to map HelpCountriesListClass to HelpCountriesList. ( HelpCountriesListClass) Decode(b *bin.Buffer) error ( HelpCountriesListClass) DecodeBare(b *bin.Buffer) error ( HelpCountriesListClass) Encode(b *bin.Buffer) error ( HelpCountriesListClass) 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. *HelpCountriesList *HelpCountriesListNotModified HelpCountriesListClass : github.com/gotd/td/bin.BareDecoder HelpCountriesListClass : github.com/gotd/td/bin.BareEncoder HelpCountriesListClass : github.com/gotd/td/bin.Decoder HelpCountriesListClass : github.com/gotd/td/bin.Encoder HelpCountriesListClass : github.com/gotd/td/bin.Object HelpCountriesListClass : fmt.Stringer func DecodeHelpCountriesList(buf *bin.Buffer) (HelpCountriesListClass, error) func (*Client).HelpGetCountriesList(ctx context.Context, request *HelpGetCountriesListRequest) (HelpCountriesListClass, error) func HelpCountriesListClassArray.First() (v HelpCountriesListClass, ok bool) func HelpCountriesListClassArray.Last() (v HelpCountriesListClass, ok bool) func (*HelpCountriesListClassArray).Pop() (v HelpCountriesListClass, ok bool) func (*HelpCountriesListClassArray).PopFirst() (v HelpCountriesListClass, ok bool)
HelpCountriesListClassArray is adapter for slice of HelpCountriesListClass. AppendOnlyModified appends only Modified constructors to given slice. AsHelpCountriesList returns copy with only HelpCountriesList 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 HelpCountriesListClass. Sort sorts slice of HelpCountriesListClass. SortStable sorts slice of HelpCountriesListClass. func HelpCountriesListClassArray.Retain(keep func(x HelpCountriesListClass) bool) HelpCountriesListClassArray func HelpCountriesListClassArray.Sort(less func(a, b HelpCountriesListClass) bool) HelpCountriesListClassArray func HelpCountriesListClassArray.SortStable(less func(a, b HelpCountriesListClass) bool) HelpCountriesListClassArray
HelpCountriesListNotModified represents TL type `help.countriesListNotModified#93cc1f32`. The country list has not changed See https://core.telegram.org/constructor/help.countriesListNotModified for reference. AsModified tries to map HelpCountriesListNotModified to HelpCountriesList. 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. (*HelpCountriesListNotModified) Zero() bool *HelpCountriesListNotModified : HelpCountriesListClass *HelpCountriesListNotModified : github.com/gotd/td/bin.BareDecoder *HelpCountriesListNotModified : github.com/gotd/td/bin.BareEncoder *HelpCountriesListNotModified : github.com/gotd/td/bin.Decoder *HelpCountriesListNotModified : github.com/gotd/td/bin.Encoder *HelpCountriesListNotModified : github.com/gotd/td/bin.Object *HelpCountriesListNotModified : github.com/gotd/td/tdp.Object *HelpCountriesListNotModified : fmt.Stringer
HelpCountry represents TL type `help.country#c3878e23`. Name, ISO code, localized name and phone codes/patterns of a specific country See https://core.telegram.org/constructor/help.country for reference. Phone codes/patterns Name of the country in the country's language Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this country should not be shown in the list ISO code of country Name of the country in the user's language, if different from the original name Use SetName and GetName helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpCountry from given interface. GetCountryCodes returns value of CountryCodes field. GetDefaultName returns value of DefaultName field. GetHidden returns value of Hidden conditional field. GetISO2 returns value of ISO2 field. GetName returns value of Name conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetHidden sets value of Hidden conditional field. SetName sets value of Name 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. (*HelpCountry) Zero() bool *HelpCountry : github.com/gotd/td/bin.BareDecoder *HelpCountry : github.com/gotd/td/bin.BareEncoder *HelpCountry : github.com/gotd/td/bin.Decoder *HelpCountry : github.com/gotd/td/bin.Encoder *HelpCountry : github.com/gotd/td/bin.Object *HelpCountry : github.com/gotd/td/tdp.Object *HelpCountry : fmt.Stringer func (*HelpCountriesList).GetCountries() (value []HelpCountry)
HelpCountryCode represents TL type `help.countryCode#4203c5ef`. Country code and phone number pattern of a specific country See https://core.telegram.org/constructor/help.countryCode for reference. ISO country code Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Phone patterns: for example, XXX XXX XXX Use SetPatterns and GetPatterns helpers. Possible phone prefixes Use SetPrefixes and GetPrefixes helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpCountryCode from given interface. GetCountryCode returns value of CountryCode field. GetPatterns returns value of Patterns conditional field and boolean which is true if field was set. GetPrefixes returns value of Prefixes conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetPatterns sets value of Patterns conditional field. SetPrefixes sets value of Prefixes 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. (*HelpCountryCode) Zero() bool *HelpCountryCode : github.com/gotd/td/bin.BareDecoder *HelpCountryCode : github.com/gotd/td/bin.BareEncoder *HelpCountryCode : github.com/gotd/td/bin.Decoder *HelpCountryCode : github.com/gotd/td/bin.Encoder *HelpCountryCode : github.com/gotd/td/bin.Object *HelpCountryCode : github.com/gotd/td/tdp.Object *HelpCountryCode : fmt.Stringer func (*HelpCountry).GetCountryCodes() (value []HelpCountryCode)
HelpDeepLinkInfo represents TL type `help.deepLinkInfo#6a4ee832`. Deep link info, see the here for more details¹ Links: 1. https://core.telegram.org/api/links#unsupported-links See https://core.telegram.org/constructor/help.deepLinkInfo 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 Message to show to the user An update of the app is required to parse this link AsNotEmpty tries to map HelpDeepLinkInfo to HelpDeepLinkInfo. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpDeepLinkInfo from given interface. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetMessage returns value of Message field. GetUpdateApp returns value of UpdateApp conditional field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetUpdateApp sets value of UpdateApp 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. (*HelpDeepLinkInfo) Zero() bool *HelpDeepLinkInfo : HelpDeepLinkInfoClass *HelpDeepLinkInfo : github.com/gotd/td/bin.BareDecoder *HelpDeepLinkInfo : github.com/gotd/td/bin.BareEncoder *HelpDeepLinkInfo : github.com/gotd/td/bin.Decoder *HelpDeepLinkInfo : github.com/gotd/td/bin.Encoder *HelpDeepLinkInfo : github.com/gotd/td/bin.Object *HelpDeepLinkInfo : github.com/gotd/td/tdp.Object *HelpDeepLinkInfo : fmt.Stringer func (*HelpDeepLinkInfo).AsNotEmpty() (*HelpDeepLinkInfo, bool) func HelpDeepLinkInfoArray.First() (v HelpDeepLinkInfo, ok bool) func HelpDeepLinkInfoArray.Last() (v HelpDeepLinkInfo, ok bool) func (*HelpDeepLinkInfoArray).Pop() (v HelpDeepLinkInfo, ok bool) func (*HelpDeepLinkInfoArray).PopFirst() (v HelpDeepLinkInfo, ok bool) func HelpDeepLinkInfoClass.AsNotEmpty() (*HelpDeepLinkInfo, bool) func HelpDeepLinkInfoClassArray.AppendOnlyNotEmpty(to []*HelpDeepLinkInfo) []*HelpDeepLinkInfo func HelpDeepLinkInfoClassArray.AsNotEmpty() (to []*HelpDeepLinkInfo) func HelpDeepLinkInfoClassArray.FirstAsNotEmpty() (v *HelpDeepLinkInfo, ok bool) func HelpDeepLinkInfoClassArray.LastAsNotEmpty() (v *HelpDeepLinkInfo, ok bool) func (*HelpDeepLinkInfoClassArray).PopAsNotEmpty() (v *HelpDeepLinkInfo, ok bool) func (*HelpDeepLinkInfoClassArray).PopFirstAsNotEmpty() (v *HelpDeepLinkInfo, ok bool) func (*HelpDeepLinkInfoEmpty).AsNotEmpty() (*HelpDeepLinkInfo, bool) func HelpDeepLinkInfoClassArray.AppendOnlyNotEmpty(to []*HelpDeepLinkInfo) []*HelpDeepLinkInfo
HelpDeepLinkInfoArray is adapter for slice of HelpDeepLinkInfo. 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 HelpDeepLinkInfo. Sort sorts slice of HelpDeepLinkInfo. SortStable sorts slice of HelpDeepLinkInfo. func HelpDeepLinkInfoArray.Retain(keep func(x HelpDeepLinkInfo) bool) HelpDeepLinkInfoArray func HelpDeepLinkInfoArray.Sort(less func(a, b HelpDeepLinkInfo) bool) HelpDeepLinkInfoArray func HelpDeepLinkInfoArray.SortStable(less func(a, b HelpDeepLinkInfo) bool) HelpDeepLinkInfoArray func HelpDeepLinkInfoClassArray.AsHelpDeepLinkInfo() (to HelpDeepLinkInfoArray)
HelpDeepLinkInfo boxes the HelpDeepLinkInfoClass providing a helper. DeepLinkInfo HelpDeepLinkInfoClass Decode implements bin.Decoder for HelpDeepLinkInfoBox. Encode implements bin.Encode for HelpDeepLinkInfoBox. *HelpDeepLinkInfoBox : github.com/gotd/td/bin.Decoder *HelpDeepLinkInfoBox : github.com/gotd/td/bin.Encoder *HelpDeepLinkInfoBox : github.com/gotd/td/bin.Object
HelpDeepLinkInfoClass represents help.DeepLinkInfo generic type. See https://core.telegram.org/type/help.DeepLinkInfo for reference. Example: g, err := tg.DecodeHelpDeepLinkInfo(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpDeepLinkInfoEmpty: // help.deepLinkInfoEmpty#66afa166 case *tg.HelpDeepLinkInfo: // help.deepLinkInfo#6a4ee832 default: panic(v) } AsNotEmpty tries to map HelpDeepLinkInfoClass to HelpDeepLinkInfo. ( HelpDeepLinkInfoClass) Decode(b *bin.Buffer) error ( HelpDeepLinkInfoClass) DecodeBare(b *bin.Buffer) error ( HelpDeepLinkInfoClass) Encode(b *bin.Buffer) error ( HelpDeepLinkInfoClass) 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. *HelpDeepLinkInfo *HelpDeepLinkInfoEmpty HelpDeepLinkInfoClass : github.com/gotd/td/bin.BareDecoder HelpDeepLinkInfoClass : github.com/gotd/td/bin.BareEncoder HelpDeepLinkInfoClass : github.com/gotd/td/bin.Decoder HelpDeepLinkInfoClass : github.com/gotd/td/bin.Encoder HelpDeepLinkInfoClass : github.com/gotd/td/bin.Object HelpDeepLinkInfoClass : fmt.Stringer func DecodeHelpDeepLinkInfo(buf *bin.Buffer) (HelpDeepLinkInfoClass, error) func (*Client).HelpGetDeepLinkInfo(ctx context.Context, path string) (HelpDeepLinkInfoClass, error) func HelpDeepLinkInfoClassArray.First() (v HelpDeepLinkInfoClass, ok bool) func HelpDeepLinkInfoClassArray.Last() (v HelpDeepLinkInfoClass, ok bool) func (*HelpDeepLinkInfoClassArray).Pop() (v HelpDeepLinkInfoClass, ok bool) func (*HelpDeepLinkInfoClassArray).PopFirst() (v HelpDeepLinkInfoClass, ok bool)
HelpDeepLinkInfoClassArray is adapter for slice of HelpDeepLinkInfoClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsHelpDeepLinkInfo returns copy with only HelpDeepLinkInfo constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of HelpDeepLinkInfoClass. Sort sorts slice of HelpDeepLinkInfoClass. SortStable sorts slice of HelpDeepLinkInfoClass. func HelpDeepLinkInfoClassArray.Retain(keep func(x HelpDeepLinkInfoClass) bool) HelpDeepLinkInfoClassArray func HelpDeepLinkInfoClassArray.Sort(less func(a, b HelpDeepLinkInfoClass) bool) HelpDeepLinkInfoClassArray func HelpDeepLinkInfoClassArray.SortStable(less func(a, b HelpDeepLinkInfoClass) bool) HelpDeepLinkInfoClassArray
HelpDeepLinkInfoEmpty represents TL type `help.deepLinkInfoEmpty#66afa166`. Deep link info empty See https://core.telegram.org/constructor/help.deepLinkInfoEmpty for reference. AsNotEmpty tries to map HelpDeepLinkInfoEmpty to HelpDeepLinkInfo. 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. (*HelpDeepLinkInfoEmpty) Zero() bool *HelpDeepLinkInfoEmpty : HelpDeepLinkInfoClass *HelpDeepLinkInfoEmpty : github.com/gotd/td/bin.BareDecoder *HelpDeepLinkInfoEmpty : github.com/gotd/td/bin.BareEncoder *HelpDeepLinkInfoEmpty : github.com/gotd/td/bin.Decoder *HelpDeepLinkInfoEmpty : github.com/gotd/td/bin.Encoder *HelpDeepLinkInfoEmpty : github.com/gotd/td/bin.Object *HelpDeepLinkInfoEmpty : github.com/gotd/td/tdp.Object *HelpDeepLinkInfoEmpty : fmt.Stringer
HelpDismissSuggestionRequest represents TL type `help.dismissSuggestion#f50dbaa1`. Dismiss a suggestion, see here for more info »¹. Links: 1. https://core.telegram.org/api/config#suggestions See https://core.telegram.org/method/help.dismissSuggestion for reference. In the case of pending suggestions in channels¹, the channel ID. Links: 1) https://core.telegram.org/constructor/channelFull Suggestion, see here for more info »¹. Links: 1) https://core.telegram.org/api/config#suggestions Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpDismissSuggestionRequest from given interface. GetPeer returns value of Peer field. GetSuggestion returns value of Suggestion 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. (*HelpDismissSuggestionRequest) Zero() bool *HelpDismissSuggestionRequest : github.com/gotd/td/bin.BareDecoder *HelpDismissSuggestionRequest : github.com/gotd/td/bin.BareEncoder *HelpDismissSuggestionRequest : github.com/gotd/td/bin.Decoder *HelpDismissSuggestionRequest : github.com/gotd/td/bin.Encoder *HelpDismissSuggestionRequest : github.com/gotd/td/bin.Object *HelpDismissSuggestionRequest : github.com/gotd/td/tdp.Object *HelpDismissSuggestionRequest : fmt.Stringer func (*Client).HelpDismissSuggestion(ctx context.Context, request *HelpDismissSuggestionRequest) (bool, error)
HelpEditUserInfoRequest represents TL type `help.editUserInfo#66b91b70`. Internal use See https://core.telegram.org/method/help.editUserInfo for reference. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Message User Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpEditUserInfoRequest from given interface. GetEntities returns value of Entities field. GetMessage returns value of Message field. GetUserID returns value of UserID field. MapEntities returns field Entities wrapped in MessageEntityClassArray 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. (*HelpEditUserInfoRequest) Zero() bool *HelpEditUserInfoRequest : github.com/gotd/td/bin.BareDecoder *HelpEditUserInfoRequest : github.com/gotd/td/bin.BareEncoder *HelpEditUserInfoRequest : github.com/gotd/td/bin.Decoder *HelpEditUserInfoRequest : github.com/gotd/td/bin.Encoder *HelpEditUserInfoRequest : github.com/gotd/td/bin.Object *HelpEditUserInfoRequest : github.com/gotd/td/tdp.Object *HelpEditUserInfoRequest : fmt.Stringer func (*Client).HelpEditUserInfo(ctx context.Context, request *HelpEditUserInfoRequest) (HelpUserInfoClass, error)
HelpGetAppConfigRequest represents TL type `help.getAppConfig#61e3f854`. Get app-specific configuration, see client configuration¹ for more info on the result. Links: 1. https://core.telegram.org/api/config#client-configuration See https://core.telegram.org/method/help.getAppConfig for reference. Hash for pagination, 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 HelpGetAppConfigRequest 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. (*HelpGetAppConfigRequest) Zero() bool *HelpGetAppConfigRequest : github.com/gotd/td/bin.BareDecoder *HelpGetAppConfigRequest : github.com/gotd/td/bin.BareEncoder *HelpGetAppConfigRequest : github.com/gotd/td/bin.Decoder *HelpGetAppConfigRequest : github.com/gotd/td/bin.Encoder *HelpGetAppConfigRequest : github.com/gotd/td/bin.Object *HelpGetAppConfigRequest : github.com/gotd/td/tdp.Object *HelpGetAppConfigRequest : fmt.Stringer
HelpGetAppUpdateRequest represents TL type `help.getAppUpdate#522d5a7d`. Returns information on update availability for the current application. See https://core.telegram.org/method/help.getAppUpdate for reference. Source Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpGetAppUpdateRequest from given interface. GetSource returns value of Source 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. (*HelpGetAppUpdateRequest) Zero() bool *HelpGetAppUpdateRequest : github.com/gotd/td/bin.BareDecoder *HelpGetAppUpdateRequest : github.com/gotd/td/bin.BareEncoder *HelpGetAppUpdateRequest : github.com/gotd/td/bin.Decoder *HelpGetAppUpdateRequest : github.com/gotd/td/bin.Encoder *HelpGetAppUpdateRequest : github.com/gotd/td/bin.Object *HelpGetAppUpdateRequest : github.com/gotd/td/tdp.Object *HelpGetAppUpdateRequest : fmt.Stringer
HelpGetCDNConfigRequest represents TL type `help.getCdnConfig#52029342`. Get configuration for CDN¹ file downloads. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/method/help.getCdnConfig 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. (*HelpGetCDNConfigRequest) Zero() bool *HelpGetCDNConfigRequest : github.com/gotd/td/bin.BareDecoder *HelpGetCDNConfigRequest : github.com/gotd/td/bin.BareEncoder *HelpGetCDNConfigRequest : github.com/gotd/td/bin.Decoder *HelpGetCDNConfigRequest : github.com/gotd/td/bin.Encoder *HelpGetCDNConfigRequest : github.com/gotd/td/bin.Object *HelpGetCDNConfigRequest : github.com/gotd/td/tdp.Object *HelpGetCDNConfigRequest : fmt.Stringer
HelpGetConfigRequest represents TL type `help.getConfig#c4f9186b`. Returns current configuration, including data center configuration. See https://core.telegram.org/method/help.getConfig 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. (*HelpGetConfigRequest) Zero() bool *HelpGetConfigRequest : github.com/gotd/td/bin.BareDecoder *HelpGetConfigRequest : github.com/gotd/td/bin.BareEncoder *HelpGetConfigRequest : github.com/gotd/td/bin.Decoder *HelpGetConfigRequest : github.com/gotd/td/bin.Encoder *HelpGetConfigRequest : github.com/gotd/td/bin.Object *HelpGetConfigRequest : github.com/gotd/td/tdp.Object *HelpGetConfigRequest : fmt.Stringer
HelpGetCountriesListRequest represents TL type `help.getCountriesList#735787a8`. Get name, ISO code, localized name and phone codes/patterns of all available countries See https://core.telegram.org/method/help.getCountriesList for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Language code of the current user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpGetCountriesListRequest from given interface. GetHash returns value of Hash field. GetLangCode returns value of LangCode 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. (*HelpGetCountriesListRequest) Zero() bool *HelpGetCountriesListRequest : github.com/gotd/td/bin.BareDecoder *HelpGetCountriesListRequest : github.com/gotd/td/bin.BareEncoder *HelpGetCountriesListRequest : github.com/gotd/td/bin.Decoder *HelpGetCountriesListRequest : github.com/gotd/td/bin.Encoder *HelpGetCountriesListRequest : github.com/gotd/td/bin.Object *HelpGetCountriesListRequest : github.com/gotd/td/tdp.Object *HelpGetCountriesListRequest : fmt.Stringer func (*Client).HelpGetCountriesList(ctx context.Context, request *HelpGetCountriesListRequest) (HelpCountriesListClass, error)
HelpGetDeepLinkInfoRequest represents TL type `help.getDeepLinkInfo#3fedc75f`. Get info about an unsupported deep link, see here for more info »¹. Links: 1. https://core.telegram.org/api/links#unsupported-links See https://core.telegram.org/method/help.getDeepLinkInfo for reference. Path component of a tg: link Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpGetDeepLinkInfoRequest from given interface. GetPath returns value of Path 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. (*HelpGetDeepLinkInfoRequest) Zero() bool *HelpGetDeepLinkInfoRequest : github.com/gotd/td/bin.BareDecoder *HelpGetDeepLinkInfoRequest : github.com/gotd/td/bin.BareEncoder *HelpGetDeepLinkInfoRequest : github.com/gotd/td/bin.Decoder *HelpGetDeepLinkInfoRequest : github.com/gotd/td/bin.Encoder *HelpGetDeepLinkInfoRequest : github.com/gotd/td/bin.Object *HelpGetDeepLinkInfoRequest : github.com/gotd/td/tdp.Object *HelpGetDeepLinkInfoRequest : fmt.Stringer
HelpGetInviteTextRequest represents TL type `help.getInviteText#4d392343`. Returns localized text of a text message with an invitation. See https://core.telegram.org/method/help.getInviteText 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. (*HelpGetInviteTextRequest) Zero() bool *HelpGetInviteTextRequest : github.com/gotd/td/bin.BareDecoder *HelpGetInviteTextRequest : github.com/gotd/td/bin.BareEncoder *HelpGetInviteTextRequest : github.com/gotd/td/bin.Decoder *HelpGetInviteTextRequest : github.com/gotd/td/bin.Encoder *HelpGetInviteTextRequest : github.com/gotd/td/bin.Object *HelpGetInviteTextRequest : github.com/gotd/td/tdp.Object *HelpGetInviteTextRequest : fmt.Stringer
HelpGetNearestDCRequest represents TL type `help.getNearestDc#1fb33026`. Returns info on data center nearest to the user. See https://core.telegram.org/method/help.getNearestDc 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. (*HelpGetNearestDCRequest) Zero() bool *HelpGetNearestDCRequest : github.com/gotd/td/bin.BareDecoder *HelpGetNearestDCRequest : github.com/gotd/td/bin.BareEncoder *HelpGetNearestDCRequest : github.com/gotd/td/bin.Decoder *HelpGetNearestDCRequest : github.com/gotd/td/bin.Encoder *HelpGetNearestDCRequest : github.com/gotd/td/bin.Object *HelpGetNearestDCRequest : github.com/gotd/td/tdp.Object *HelpGetNearestDCRequest : fmt.Stringer
HelpGetPassportConfigRequest represents TL type `help.getPassportConfig#c661ad08`. Get passport¹ configuration Links: 1. https://core.telegram.org/passport See https://core.telegram.org/method/help.getPassportConfig for reference. Hash for pagination, 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 HelpGetPassportConfigRequest 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. (*HelpGetPassportConfigRequest) Zero() bool *HelpGetPassportConfigRequest : github.com/gotd/td/bin.BareDecoder *HelpGetPassportConfigRequest : github.com/gotd/td/bin.BareEncoder *HelpGetPassportConfigRequest : github.com/gotd/td/bin.Decoder *HelpGetPassportConfigRequest : github.com/gotd/td/bin.Encoder *HelpGetPassportConfigRequest : github.com/gotd/td/bin.Object *HelpGetPassportConfigRequest : github.com/gotd/td/tdp.Object *HelpGetPassportConfigRequest : fmt.Stringer
HelpGetPeerColorsRequest represents TL type `help.getPeerColors#da80f42f`. Get the set of accent color palettes »¹ that can be used for message accents. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/method/help.getPeerColors for reference. Hash for pagination, 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 HelpGetPeerColorsRequest 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. (*HelpGetPeerColorsRequest) Zero() bool *HelpGetPeerColorsRequest : github.com/gotd/td/bin.BareDecoder *HelpGetPeerColorsRequest : github.com/gotd/td/bin.BareEncoder *HelpGetPeerColorsRequest : github.com/gotd/td/bin.Decoder *HelpGetPeerColorsRequest : github.com/gotd/td/bin.Encoder *HelpGetPeerColorsRequest : github.com/gotd/td/bin.Object *HelpGetPeerColorsRequest : github.com/gotd/td/tdp.Object *HelpGetPeerColorsRequest : fmt.Stringer
HelpGetPeerProfileColorsRequest represents TL type `help.getPeerProfileColors#abcfa9fd`. Get the set of accent color palettes »¹ that can be used in profile page backgrounds. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/method/help.getPeerProfileColors for reference. Hash for pagination, 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 HelpGetPeerProfileColorsRequest 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. (*HelpGetPeerProfileColorsRequest) Zero() bool *HelpGetPeerProfileColorsRequest : github.com/gotd/td/bin.BareDecoder *HelpGetPeerProfileColorsRequest : github.com/gotd/td/bin.BareEncoder *HelpGetPeerProfileColorsRequest : github.com/gotd/td/bin.Decoder *HelpGetPeerProfileColorsRequest : github.com/gotd/td/bin.Encoder *HelpGetPeerProfileColorsRequest : github.com/gotd/td/bin.Object *HelpGetPeerProfileColorsRequest : github.com/gotd/td/tdp.Object *HelpGetPeerProfileColorsRequest : fmt.Stringer
HelpGetPremiumPromoRequest represents TL type `help.getPremiumPromo#b81b93d4`. Get Telegram Premium promotion information See https://core.telegram.org/method/help.getPremiumPromo 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. (*HelpGetPremiumPromoRequest) Zero() bool *HelpGetPremiumPromoRequest : github.com/gotd/td/bin.BareDecoder *HelpGetPremiumPromoRequest : github.com/gotd/td/bin.BareEncoder *HelpGetPremiumPromoRequest : github.com/gotd/td/bin.Decoder *HelpGetPremiumPromoRequest : github.com/gotd/td/bin.Encoder *HelpGetPremiumPromoRequest : github.com/gotd/td/bin.Object *HelpGetPremiumPromoRequest : github.com/gotd/td/tdp.Object *HelpGetPremiumPromoRequest : fmt.Stringer
HelpGetPromoDataRequest represents TL type `help.getPromoData#c0977421`. Get MTProxy/Public Service Announcement information See https://core.telegram.org/method/help.getPromoData 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. (*HelpGetPromoDataRequest) Zero() bool *HelpGetPromoDataRequest : github.com/gotd/td/bin.BareDecoder *HelpGetPromoDataRequest : github.com/gotd/td/bin.BareEncoder *HelpGetPromoDataRequest : github.com/gotd/td/bin.Decoder *HelpGetPromoDataRequest : github.com/gotd/td/bin.Encoder *HelpGetPromoDataRequest : github.com/gotd/td/bin.Object *HelpGetPromoDataRequest : github.com/gotd/td/tdp.Object *HelpGetPromoDataRequest : fmt.Stringer
HelpGetRecentMeURLsRequest represents TL type `help.getRecentMeUrls#3dc0f114`. Get recently used t.me links. When installing official applications from "Download Telegram" buttons present in t me¹ pages, a referral parameter is passed to applications after installation. If, after downloading the application, the user creates a new account (instead of logging into an existing one), the referral parameter should be imported using this method, which returns the t.me² pages the user recently opened, before installing Telegram. Links: 1. https://t.me 2. https://t.me See https://core.telegram.org/method/help.getRecentMeUrls for reference. Referrer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpGetRecentMeURLsRequest from given interface. GetReferer returns value of Referer 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. (*HelpGetRecentMeURLsRequest) Zero() bool *HelpGetRecentMeURLsRequest : github.com/gotd/td/bin.BareDecoder *HelpGetRecentMeURLsRequest : github.com/gotd/td/bin.BareEncoder *HelpGetRecentMeURLsRequest : github.com/gotd/td/bin.Decoder *HelpGetRecentMeURLsRequest : github.com/gotd/td/bin.Encoder *HelpGetRecentMeURLsRequest : github.com/gotd/td/bin.Object *HelpGetRecentMeURLsRequest : github.com/gotd/td/tdp.Object *HelpGetRecentMeURLsRequest : fmt.Stringer
HelpGetSupportNameRequest represents TL type `help.getSupportName#d360e72c`. Get localized name of the telegram support user See https://core.telegram.org/method/help.getSupportName 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. (*HelpGetSupportNameRequest) Zero() bool *HelpGetSupportNameRequest : github.com/gotd/td/bin.BareDecoder *HelpGetSupportNameRequest : github.com/gotd/td/bin.BareEncoder *HelpGetSupportNameRequest : github.com/gotd/td/bin.Decoder *HelpGetSupportNameRequest : github.com/gotd/td/bin.Encoder *HelpGetSupportNameRequest : github.com/gotd/td/bin.Object *HelpGetSupportNameRequest : github.com/gotd/td/tdp.Object *HelpGetSupportNameRequest : fmt.Stringer
HelpGetSupportRequest represents TL type `help.getSupport#9cdf08cd`. Returns the support user for the "ask a question" feature. See https://core.telegram.org/method/help.getSupport 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. (*HelpGetSupportRequest) Zero() bool *HelpGetSupportRequest : github.com/gotd/td/bin.BareDecoder *HelpGetSupportRequest : github.com/gotd/td/bin.BareEncoder *HelpGetSupportRequest : github.com/gotd/td/bin.Decoder *HelpGetSupportRequest : github.com/gotd/td/bin.Encoder *HelpGetSupportRequest : github.com/gotd/td/bin.Object *HelpGetSupportRequest : github.com/gotd/td/tdp.Object *HelpGetSupportRequest : fmt.Stringer
HelpGetTermsOfServiceUpdateRequest represents TL type `help.getTermsOfServiceUpdate#2ca51fd1`. Look for updates of telegram's terms of service See https://core.telegram.org/method/help.getTermsOfServiceUpdate 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. (*HelpGetTermsOfServiceUpdateRequest) Zero() bool *HelpGetTermsOfServiceUpdateRequest : github.com/gotd/td/bin.BareDecoder *HelpGetTermsOfServiceUpdateRequest : github.com/gotd/td/bin.BareEncoder *HelpGetTermsOfServiceUpdateRequest : github.com/gotd/td/bin.Decoder *HelpGetTermsOfServiceUpdateRequest : github.com/gotd/td/bin.Encoder *HelpGetTermsOfServiceUpdateRequest : github.com/gotd/td/bin.Object *HelpGetTermsOfServiceUpdateRequest : github.com/gotd/td/tdp.Object *HelpGetTermsOfServiceUpdateRequest : fmt.Stringer
HelpGetUserInfoRequest represents TL type `help.getUserInfo#38a08d3`. Can only be used by TSF members to obtain internal information. See https://core.telegram.org/method/help.getUserInfo for reference. User ID or empty for the default menu button. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpGetUserInfoRequest from given interface. 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. (*HelpGetUserInfoRequest) Zero() bool *HelpGetUserInfoRequest : github.com/gotd/td/bin.BareDecoder *HelpGetUserInfoRequest : github.com/gotd/td/bin.BareEncoder *HelpGetUserInfoRequest : github.com/gotd/td/bin.Decoder *HelpGetUserInfoRequest : github.com/gotd/td/bin.Encoder *HelpGetUserInfoRequest : github.com/gotd/td/bin.Object *HelpGetUserInfoRequest : github.com/gotd/td/tdp.Object *HelpGetUserInfoRequest : fmt.Stringer
HelpHidePromoDataRequest represents TL type `help.hidePromoData#1e251c95`. Hide MTProxy/Public Service Announcement information See https://core.telegram.org/method/help.hidePromoData for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpHidePromoDataRequest 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. (*HelpHidePromoDataRequest) Zero() bool *HelpHidePromoDataRequest : github.com/gotd/td/bin.BareDecoder *HelpHidePromoDataRequest : github.com/gotd/td/bin.BareEncoder *HelpHidePromoDataRequest : github.com/gotd/td/bin.Decoder *HelpHidePromoDataRequest : github.com/gotd/td/bin.Encoder *HelpHidePromoDataRequest : github.com/gotd/td/bin.Object *HelpHidePromoDataRequest : github.com/gotd/td/tdp.Object *HelpHidePromoDataRequest : fmt.Stringer
HelpInviteText represents TL type `help.inviteText#18cb9f78`. Text of a text message with an invitation to install Telegram. See https://core.telegram.org/constructor/help.inviteText for reference. Text of the message Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpInviteText from given interface. GetMessage returns value of Message 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. (*HelpInviteText) Zero() bool *HelpInviteText : github.com/gotd/td/bin.BareDecoder *HelpInviteText : github.com/gotd/td/bin.BareEncoder *HelpInviteText : github.com/gotd/td/bin.Decoder *HelpInviteText : github.com/gotd/td/bin.Encoder *HelpInviteText : github.com/gotd/td/bin.Object *HelpInviteText : github.com/gotd/td/tdp.Object *HelpInviteText : fmt.Stringer func (*Client).HelpGetInviteText(ctx context.Context) (*HelpInviteText, error)
HelpNoAppUpdate represents TL type `help.noAppUpdate#c45a6536`. No updates are available for the application. See https://core.telegram.org/constructor/help.noAppUpdate 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. (*HelpNoAppUpdate) Zero() bool *HelpNoAppUpdate : HelpAppUpdateClass *HelpNoAppUpdate : github.com/gotd/td/bin.BareDecoder *HelpNoAppUpdate : github.com/gotd/td/bin.BareEncoder *HelpNoAppUpdate : github.com/gotd/td/bin.Decoder *HelpNoAppUpdate : github.com/gotd/td/bin.Encoder *HelpNoAppUpdate : github.com/gotd/td/bin.Object *HelpNoAppUpdate : github.com/gotd/td/tdp.Object *HelpNoAppUpdate : fmt.Stringer
HelpPassportConfig represents TL type `help.passportConfig#a098d6af`. Telegram passport¹ configuration Links: 1. https://core.telegram.org/passport See https://core.telegram.org/constructor/help.passportConfig for reference. Localization Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation AsModified tries to map HelpPassportConfig to HelpPassportConfig. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpPassportConfig from given interface. GetCountriesLangs returns value of CountriesLangs 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. (*HelpPassportConfig) Zero() bool *HelpPassportConfig : HelpPassportConfigClass *HelpPassportConfig : github.com/gotd/td/bin.BareDecoder *HelpPassportConfig : github.com/gotd/td/bin.BareEncoder *HelpPassportConfig : github.com/gotd/td/bin.Decoder *HelpPassportConfig : github.com/gotd/td/bin.Encoder *HelpPassportConfig : github.com/gotd/td/bin.Object *HelpPassportConfig : github.com/gotd/td/tdp.Object *HelpPassportConfig : fmt.Stringer func (*HelpPassportConfig).AsModified() (*HelpPassportConfig, bool) func HelpPassportConfigArray.First() (v HelpPassportConfig, ok bool) func HelpPassportConfigArray.Last() (v HelpPassportConfig, ok bool) func (*HelpPassportConfigArray).Pop() (v HelpPassportConfig, ok bool) func (*HelpPassportConfigArray).PopFirst() (v HelpPassportConfig, ok bool) func HelpPassportConfigClass.AsModified() (*HelpPassportConfig, bool) func HelpPassportConfigClassArray.AppendOnlyModified(to []*HelpPassportConfig) []*HelpPassportConfig func HelpPassportConfigClassArray.AsModified() (to []*HelpPassportConfig) func HelpPassportConfigClassArray.FirstAsModified() (v *HelpPassportConfig, ok bool) func HelpPassportConfigClassArray.LastAsModified() (v *HelpPassportConfig, ok bool) func (*HelpPassportConfigClassArray).PopAsModified() (v *HelpPassportConfig, ok bool) func (*HelpPassportConfigClassArray).PopFirstAsModified() (v *HelpPassportConfig, ok bool) func (*HelpPassportConfigNotModified).AsModified() (*HelpPassportConfig, bool) func HelpPassportConfigClassArray.AppendOnlyModified(to []*HelpPassportConfig) []*HelpPassportConfig
HelpPassportConfigArray is adapter for slice of HelpPassportConfig. 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 HelpPassportConfig. Sort sorts slice of HelpPassportConfig. SortStable sorts slice of HelpPassportConfig. func HelpPassportConfigArray.Retain(keep func(x HelpPassportConfig) bool) HelpPassportConfigArray func HelpPassportConfigArray.Sort(less func(a, b HelpPassportConfig) bool) HelpPassportConfigArray func HelpPassportConfigArray.SortStable(less func(a, b HelpPassportConfig) bool) HelpPassportConfigArray func HelpPassportConfigClassArray.AsHelpPassportConfig() (to HelpPassportConfigArray)
HelpPassportConfig boxes the HelpPassportConfigClass providing a helper. PassportConfig HelpPassportConfigClass Decode implements bin.Decoder for HelpPassportConfigBox. Encode implements bin.Encode for HelpPassportConfigBox. *HelpPassportConfigBox : github.com/gotd/td/bin.Decoder *HelpPassportConfigBox : github.com/gotd/td/bin.Encoder *HelpPassportConfigBox : github.com/gotd/td/bin.Object
HelpPassportConfigClass represents help.PassportConfig generic type. See https://core.telegram.org/type/help.PassportConfig for reference. Example: g, err := tg.DecodeHelpPassportConfig(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpPassportConfigNotModified: // help.passportConfigNotModified#bfb9f457 case *tg.HelpPassportConfig: // help.passportConfig#a098d6af default: panic(v) } AsModified tries to map HelpPassportConfigClass to HelpPassportConfig. ( HelpPassportConfigClass) Decode(b *bin.Buffer) error ( HelpPassportConfigClass) DecodeBare(b *bin.Buffer) error ( HelpPassportConfigClass) Encode(b *bin.Buffer) error ( HelpPassportConfigClass) 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. *HelpPassportConfig *HelpPassportConfigNotModified HelpPassportConfigClass : github.com/gotd/td/bin.BareDecoder HelpPassportConfigClass : github.com/gotd/td/bin.BareEncoder HelpPassportConfigClass : github.com/gotd/td/bin.Decoder HelpPassportConfigClass : github.com/gotd/td/bin.Encoder HelpPassportConfigClass : github.com/gotd/td/bin.Object HelpPassportConfigClass : fmt.Stringer func DecodeHelpPassportConfig(buf *bin.Buffer) (HelpPassportConfigClass, error) func (*Client).HelpGetPassportConfig(ctx context.Context, hash int) (HelpPassportConfigClass, error) func HelpPassportConfigClassArray.First() (v HelpPassportConfigClass, ok bool) func HelpPassportConfigClassArray.Last() (v HelpPassportConfigClass, ok bool) func (*HelpPassportConfigClassArray).Pop() (v HelpPassportConfigClass, ok bool) func (*HelpPassportConfigClassArray).PopFirst() (v HelpPassportConfigClass, ok bool)
HelpPassportConfigClassArray is adapter for slice of HelpPassportConfigClass. AppendOnlyModified appends only Modified constructors to given slice. AsHelpPassportConfig returns copy with only HelpPassportConfig 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 HelpPassportConfigClass. Sort sorts slice of HelpPassportConfigClass. SortStable sorts slice of HelpPassportConfigClass. func HelpPassportConfigClassArray.Retain(keep func(x HelpPassportConfigClass) bool) HelpPassportConfigClassArray func HelpPassportConfigClassArray.Sort(less func(a, b HelpPassportConfigClass) bool) HelpPassportConfigClassArray func HelpPassportConfigClassArray.SortStable(less func(a, b HelpPassportConfigClass) bool) HelpPassportConfigClassArray
HelpPassportConfigNotModified represents TL type `help.passportConfigNotModified#bfb9f457`. Password configuration not modified See https://core.telegram.org/constructor/help.passportConfigNotModified for reference. AsModified tries to map HelpPassportConfigNotModified to HelpPassportConfig. 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. (*HelpPassportConfigNotModified) Zero() bool *HelpPassportConfigNotModified : HelpPassportConfigClass *HelpPassportConfigNotModified : github.com/gotd/td/bin.BareDecoder *HelpPassportConfigNotModified : github.com/gotd/td/bin.BareEncoder *HelpPassportConfigNotModified : github.com/gotd/td/bin.Decoder *HelpPassportConfigNotModified : github.com/gotd/td/bin.Encoder *HelpPassportConfigNotModified : github.com/gotd/td/bin.Object *HelpPassportConfigNotModified : github.com/gotd/td/tdp.Object *HelpPassportConfigNotModified : fmt.Stringer
HelpPeerColorOption represents TL type `help.peerColorOption#ef8430ab`. Contains info about a color palette »¹. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/constructor/help.peerColorOption for reference. ChannelMinLevel field of HelpPeerColorOption. Use SetChannelMinLevel and GetChannelMinLevel helpers. Palette ID. Light mode palette. Will be empty for IDs 0 to 6 inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6. Use SetColors and GetColors helpers. Dark mode palette. Optional, defaults to the palette in colors (or the autogenerated palette for IDs 0 to 6) if absent. Use SetDarkColors and GetDarkColors helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this palette should not be displayed as an option to the user when choosing a palette to apply to profile pages or message accents. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpPeerColorOption from given interface. GetChannelMinLevel returns value of ChannelMinLevel conditional field and boolean which is true if field was set. GetColorID returns value of ColorID field. GetColors returns value of Colors conditional field and boolean which is true if field was set. GetDarkColors returns value of DarkColors conditional field and boolean which is true if field was set. GetHidden returns value of Hidden conditional field. SetChannelMinLevel sets value of ChannelMinLevel conditional field. SetColors sets value of Colors conditional field. SetDarkColors sets value of DarkColors conditional field. SetFlags sets flags for non-zero fields. SetHidden sets value of Hidden 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. (*HelpPeerColorOption) Zero() bool *HelpPeerColorOption : github.com/gotd/td/bin.BareDecoder *HelpPeerColorOption : github.com/gotd/td/bin.BareEncoder *HelpPeerColorOption : github.com/gotd/td/bin.Decoder *HelpPeerColorOption : github.com/gotd/td/bin.Encoder *HelpPeerColorOption : github.com/gotd/td/bin.Object *HelpPeerColorOption : github.com/gotd/td/tdp.Object *HelpPeerColorOption : fmt.Stringer func (*HelpPeerColors).GetColors() (value []HelpPeerColorOption)
HelpPeerColorProfileSet represents TL type `help.peerColorProfileSet#767d61eb`. Represents a color palette that can be used in profile pages »¹. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/constructor/help.peerColorProfileSet for reference. A list of 1-2 colors in RGB format describing the colors used to generate the actual background used in the profile page. A list of 1-2 colors in RGB format, shown in the color palette settings to describe the current palette. A list of 2 colors in RGB format describing the colors of the gradient used for the unread active story indicator around the profile photo. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpPeerColorProfileSet from given interface. GetBgColors returns value of BgColors field. GetPaletteColors returns value of PaletteColors field. GetStoryColors returns value of StoryColors 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. (*HelpPeerColorProfileSet) Zero() bool *HelpPeerColorProfileSet : HelpPeerColorSetClass *HelpPeerColorProfileSet : github.com/gotd/td/bin.BareDecoder *HelpPeerColorProfileSet : github.com/gotd/td/bin.BareEncoder *HelpPeerColorProfileSet : github.com/gotd/td/bin.Decoder *HelpPeerColorProfileSet : github.com/gotd/td/bin.Encoder *HelpPeerColorProfileSet : github.com/gotd/td/bin.Object *HelpPeerColorProfileSet : github.com/gotd/td/tdp.Object *HelpPeerColorProfileSet : fmt.Stringer func HelpPeerColorProfileSetArray.First() (v HelpPeerColorProfileSet, ok bool) func HelpPeerColorProfileSetArray.Last() (v HelpPeerColorProfileSet, ok bool) func (*HelpPeerColorProfileSetArray).Pop() (v HelpPeerColorProfileSet, ok bool) func (*HelpPeerColorProfileSetArray).PopFirst() (v HelpPeerColorProfileSet, ok bool)
HelpPeerColorProfileSetArray is adapter for slice of HelpPeerColorProfileSet. 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 HelpPeerColorProfileSet. Sort sorts slice of HelpPeerColorProfileSet. SortStable sorts slice of HelpPeerColorProfileSet. func HelpPeerColorProfileSetArray.Retain(keep func(x HelpPeerColorProfileSet) bool) HelpPeerColorProfileSetArray func HelpPeerColorProfileSetArray.Sort(less func(a, b HelpPeerColorProfileSet) bool) HelpPeerColorProfileSetArray func HelpPeerColorProfileSetArray.SortStable(less func(a, b HelpPeerColorProfileSet) bool) HelpPeerColorProfileSetArray func HelpPeerColorSetClassArray.AsHelpPeerColorProfileSet() (to HelpPeerColorProfileSetArray)
HelpPeerColors represents TL type `help.peerColors#f8ed08`. Contains info about multiple color palettes »¹. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/constructor/help.peerColors for reference. Usable color palettes¹. Links: 1) https://core.telegram.org/api/colors Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation AsModified tries to map HelpPeerColors to HelpPeerColors. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpPeerColors from given interface. GetColors returns value of Colors 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. (*HelpPeerColors) Zero() bool *HelpPeerColors : HelpPeerColorsClass *HelpPeerColors : github.com/gotd/td/bin.BareDecoder *HelpPeerColors : github.com/gotd/td/bin.BareEncoder *HelpPeerColors : github.com/gotd/td/bin.Decoder *HelpPeerColors : github.com/gotd/td/bin.Encoder *HelpPeerColors : github.com/gotd/td/bin.Object *HelpPeerColors : github.com/gotd/td/tdp.Object *HelpPeerColors : fmt.Stringer func (*HelpPeerColors).AsModified() (*HelpPeerColors, bool) func HelpPeerColorsArray.First() (v HelpPeerColors, ok bool) func HelpPeerColorsArray.Last() (v HelpPeerColors, ok bool) func (*HelpPeerColorsArray).Pop() (v HelpPeerColors, ok bool) func (*HelpPeerColorsArray).PopFirst() (v HelpPeerColors, ok bool) func HelpPeerColorsClass.AsModified() (*HelpPeerColors, bool) func HelpPeerColorsClassArray.AppendOnlyModified(to []*HelpPeerColors) []*HelpPeerColors func HelpPeerColorsClassArray.AsModified() (to []*HelpPeerColors) func HelpPeerColorsClassArray.FirstAsModified() (v *HelpPeerColors, ok bool) func HelpPeerColorsClassArray.LastAsModified() (v *HelpPeerColors, ok bool) func (*HelpPeerColorsClassArray).PopAsModified() (v *HelpPeerColors, ok bool) func (*HelpPeerColorsClassArray).PopFirstAsModified() (v *HelpPeerColors, ok bool) func (*HelpPeerColorsNotModified).AsModified() (*HelpPeerColors, bool) func HelpPeerColorsClassArray.AppendOnlyModified(to []*HelpPeerColors) []*HelpPeerColors
HelpPeerColorsArray is adapter for slice of HelpPeerColors. 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 HelpPeerColors. Sort sorts slice of HelpPeerColors. SortStable sorts slice of HelpPeerColors. func HelpPeerColorsArray.Retain(keep func(x HelpPeerColors) bool) HelpPeerColorsArray func HelpPeerColorsArray.Sort(less func(a, b HelpPeerColors) bool) HelpPeerColorsArray func HelpPeerColorsArray.SortStable(less func(a, b HelpPeerColors) bool) HelpPeerColorsArray func HelpPeerColorsClassArray.AsHelpPeerColors() (to HelpPeerColorsArray)
HelpPeerColors boxes the HelpPeerColorsClass providing a helper. PeerColors HelpPeerColorsClass Decode implements bin.Decoder for HelpPeerColorsBox. Encode implements bin.Encode for HelpPeerColorsBox. *HelpPeerColorsBox : github.com/gotd/td/bin.Decoder *HelpPeerColorsBox : github.com/gotd/td/bin.Encoder *HelpPeerColorsBox : github.com/gotd/td/bin.Object
HelpPeerColorsClass represents help.PeerColors generic type. See https://core.telegram.org/type/help.PeerColors for reference. Example: g, err := tg.DecodeHelpPeerColors(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpPeerColorsNotModified: // help.peerColorsNotModified#2ba1f5ce case *tg.HelpPeerColors: // help.peerColors#f8ed08 default: panic(v) } AsModified tries to map HelpPeerColorsClass to HelpPeerColors. ( HelpPeerColorsClass) Decode(b *bin.Buffer) error ( HelpPeerColorsClass) DecodeBare(b *bin.Buffer) error ( HelpPeerColorsClass) Encode(b *bin.Buffer) error ( HelpPeerColorsClass) 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. *HelpPeerColors *HelpPeerColorsNotModified HelpPeerColorsClass : github.com/gotd/td/bin.BareDecoder HelpPeerColorsClass : github.com/gotd/td/bin.BareEncoder HelpPeerColorsClass : github.com/gotd/td/bin.Decoder HelpPeerColorsClass : github.com/gotd/td/bin.Encoder HelpPeerColorsClass : github.com/gotd/td/bin.Object HelpPeerColorsClass : fmt.Stringer func DecodeHelpPeerColors(buf *bin.Buffer) (HelpPeerColorsClass, error) func (*Client).HelpGetPeerColors(ctx context.Context, hash int) (HelpPeerColorsClass, error) func (*Client).HelpGetPeerProfileColors(ctx context.Context, hash int) (HelpPeerColorsClass, error) func HelpPeerColorsClassArray.First() (v HelpPeerColorsClass, ok bool) func HelpPeerColorsClassArray.Last() (v HelpPeerColorsClass, ok bool) func (*HelpPeerColorsClassArray).Pop() (v HelpPeerColorsClass, ok bool) func (*HelpPeerColorsClassArray).PopFirst() (v HelpPeerColorsClass, ok bool)
HelpPeerColorsClassArray is adapter for slice of HelpPeerColorsClass. AppendOnlyModified appends only Modified constructors to given slice. AsHelpPeerColors returns copy with only HelpPeerColors 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 HelpPeerColorsClass. Sort sorts slice of HelpPeerColorsClass. SortStable sorts slice of HelpPeerColorsClass. func HelpPeerColorsClassArray.Retain(keep func(x HelpPeerColorsClass) bool) HelpPeerColorsClassArray func HelpPeerColorsClassArray.Sort(less func(a, b HelpPeerColorsClass) bool) HelpPeerColorsClassArray func HelpPeerColorsClassArray.SortStable(less func(a, b HelpPeerColorsClass) bool) HelpPeerColorsClassArray
HelpPeerColorSet represents TL type `help.peerColorSet#26219a58`. Represents a color palette that can be used in message accents »¹. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/constructor/help.peerColorSet for reference. A list of 1-3 colors in RGB format, describing the accent color. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpPeerColorSet from given interface. GetColors returns value of Colors 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. (*HelpPeerColorSet) Zero() bool *HelpPeerColorSet : HelpPeerColorSetClass *HelpPeerColorSet : github.com/gotd/td/bin.BareDecoder *HelpPeerColorSet : github.com/gotd/td/bin.BareEncoder *HelpPeerColorSet : github.com/gotd/td/bin.Decoder *HelpPeerColorSet : github.com/gotd/td/bin.Encoder *HelpPeerColorSet : github.com/gotd/td/bin.Object *HelpPeerColorSet : github.com/gotd/td/tdp.Object *HelpPeerColorSet : fmt.Stringer func HelpPeerColorSetArray.First() (v HelpPeerColorSet, ok bool) func HelpPeerColorSetArray.Last() (v HelpPeerColorSet, ok bool) func (*HelpPeerColorSetArray).Pop() (v HelpPeerColorSet, ok bool) func (*HelpPeerColorSetArray).PopFirst() (v HelpPeerColorSet, ok bool)
HelpPeerColorSetArray is adapter for slice of HelpPeerColorSet. 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 HelpPeerColorSet. Sort sorts slice of HelpPeerColorSet. SortStable sorts slice of HelpPeerColorSet. func HelpPeerColorSetArray.Retain(keep func(x HelpPeerColorSet) bool) HelpPeerColorSetArray func HelpPeerColorSetArray.Sort(less func(a, b HelpPeerColorSet) bool) HelpPeerColorSetArray func HelpPeerColorSetArray.SortStable(less func(a, b HelpPeerColorSet) bool) HelpPeerColorSetArray func HelpPeerColorSetClassArray.AsHelpPeerColorSet() (to HelpPeerColorSetArray)
HelpPeerColorSet boxes the HelpPeerColorSetClass providing a helper. PeerColorSet HelpPeerColorSetClass Decode implements bin.Decoder for HelpPeerColorSetBox. Encode implements bin.Encode for HelpPeerColorSetBox. *HelpPeerColorSetBox : github.com/gotd/td/bin.Decoder *HelpPeerColorSetBox : github.com/gotd/td/bin.Encoder *HelpPeerColorSetBox : github.com/gotd/td/bin.Object
HelpPeerColorSetClass represents help.PeerColorSet generic type. See https://core.telegram.org/type/help.PeerColorSet for reference. Example: g, err := tg.DecodeHelpPeerColorSet(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpPeerColorSet: // help.peerColorSet#26219a58 case *tg.HelpPeerColorProfileSet: // help.peerColorProfileSet#767d61eb default: panic(v) } ( HelpPeerColorSetClass) Decode(b *bin.Buffer) error ( HelpPeerColorSetClass) DecodeBare(b *bin.Buffer) error ( HelpPeerColorSetClass) Encode(b *bin.Buffer) error ( HelpPeerColorSetClass) 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. *HelpPeerColorProfileSet *HelpPeerColorSet HelpPeerColorSetClass : github.com/gotd/td/bin.BareDecoder HelpPeerColorSetClass : github.com/gotd/td/bin.BareEncoder HelpPeerColorSetClass : github.com/gotd/td/bin.Decoder HelpPeerColorSetClass : github.com/gotd/td/bin.Encoder HelpPeerColorSetClass : github.com/gotd/td/bin.Object HelpPeerColorSetClass : fmt.Stringer func DecodeHelpPeerColorSet(buf *bin.Buffer) (HelpPeerColorSetClass, error) func (*HelpPeerColorOption).GetColors() (value HelpPeerColorSetClass, ok bool) func (*HelpPeerColorOption).GetDarkColors() (value HelpPeerColorSetClass, ok bool) func HelpPeerColorSetClassArray.First() (v HelpPeerColorSetClass, ok bool) func HelpPeerColorSetClassArray.Last() (v HelpPeerColorSetClass, ok bool) func (*HelpPeerColorSetClassArray).Pop() (v HelpPeerColorSetClass, ok bool) func (*HelpPeerColorSetClassArray).PopFirst() (v HelpPeerColorSetClass, ok bool) func (*HelpPeerColorOption).SetColors(value HelpPeerColorSetClass) func (*HelpPeerColorOption).SetDarkColors(value HelpPeerColorSetClass)
HelpPeerColorSetClassArray is adapter for slice of HelpPeerColorSetClass. AsHelpPeerColorProfileSet returns copy with only HelpPeerColorProfileSet constructors. AsHelpPeerColorSet returns copy with only HelpPeerColorSet 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 HelpPeerColorSetClass. Sort sorts slice of HelpPeerColorSetClass. SortStable sorts slice of HelpPeerColorSetClass. func HelpPeerColorSetClassArray.Retain(keep func(x HelpPeerColorSetClass) bool) HelpPeerColorSetClassArray func HelpPeerColorSetClassArray.Sort(less func(a, b HelpPeerColorSetClass) bool) HelpPeerColorSetClassArray func HelpPeerColorSetClassArray.SortStable(less func(a, b HelpPeerColorSetClass) bool) HelpPeerColorSetClassArray
HelpPeerColorsNotModified represents TL type `help.peerColorsNotModified#2ba1f5ce`. The list of color palettes has not changed. See https://core.telegram.org/constructor/help.peerColorsNotModified for reference. AsModified tries to map HelpPeerColorsNotModified to HelpPeerColors. 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. (*HelpPeerColorsNotModified) Zero() bool *HelpPeerColorsNotModified : HelpPeerColorsClass *HelpPeerColorsNotModified : github.com/gotd/td/bin.BareDecoder *HelpPeerColorsNotModified : github.com/gotd/td/bin.BareEncoder *HelpPeerColorsNotModified : github.com/gotd/td/bin.Decoder *HelpPeerColorsNotModified : github.com/gotd/td/bin.Encoder *HelpPeerColorsNotModified : github.com/gotd/td/bin.Object *HelpPeerColorsNotModified : github.com/gotd/td/tdp.Object *HelpPeerColorsNotModified : fmt.Stringer
HelpPremiumPromo represents TL type `help.premiumPromo#5334759c`. Telegram Premium promotion information Note that the video_sections+videos fields are a list of videos, and the corresponding premium feature identifiers. They're equivalent to a section => video dictionary, with keys from video_section and values from videos. The keys in video_sections correspond to a specific feature identifier, and the associated promotional video should be shown when the associated feature row is clicked. See https://core.telegram.org/constructor/help.premiumPromo for reference. Telegram Premium subscription options Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Description of the current state of the user's Telegram Premium subscription Related user information A list of premium feature identifiers »¹, associated to each video Links: 1) https://core.telegram.org/api/premium A list of videos Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpPremiumPromo from given interface. GetPeriodOptions returns value of PeriodOptions field. GetStatusEntities returns value of StatusEntities field. GetStatusText returns value of StatusText field. GetUsers returns value of Users field. GetVideoSections returns value of VideoSections field. GetVideos returns value of Videos field. MapStatusEntities returns field StatusEntities wrapped in MessageEntityClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. MapVideos returns field Videos 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. (*HelpPremiumPromo) Zero() bool *HelpPremiumPromo : github.com/gotd/td/bin.BareDecoder *HelpPremiumPromo : github.com/gotd/td/bin.BareEncoder *HelpPremiumPromo : github.com/gotd/td/bin.Decoder *HelpPremiumPromo : github.com/gotd/td/bin.Encoder *HelpPremiumPromo : github.com/gotd/td/bin.Object *HelpPremiumPromo : github.com/gotd/td/tdp.Object *HelpPremiumPromo : fmt.Stringer func (*Client).HelpGetPremiumPromo(ctx context.Context) (*HelpPremiumPromo, error)
HelpPromoData represents TL type `help.promoData#8c39793f`. MTProxy/Public Service Announcement information See https://core.telegram.org/constructor/help.promoData for reference. Chat info Expiry of PSA/MTProxy info Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields MTProxy/PSA peer MTProxy-related channel PSA message Use SetPsaMessage and GetPsaMessage helpers. PSA type Use SetPsaType and GetPsaType helpers. User info AsNotEmpty tries to map HelpPromoData to HelpPromoData. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpPromoData from given interface. GetChats returns value of Chats field. GetExpires returns value of Expires field. GetPeer returns value of Peer field. GetProxy returns value of Proxy conditional field. GetPsaMessage returns value of PsaMessage conditional field and boolean which is true if field was set. GetPsaType returns value of PsaType conditional field and boolean which is true if field was set. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetProxy sets value of Proxy conditional field. SetPsaMessage sets value of PsaMessage conditional field. SetPsaType sets value of PsaType 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. (*HelpPromoData) Zero() bool *HelpPromoData : HelpPromoDataClass *HelpPromoData : github.com/gotd/td/bin.BareDecoder *HelpPromoData : github.com/gotd/td/bin.BareEncoder *HelpPromoData : github.com/gotd/td/bin.Decoder *HelpPromoData : github.com/gotd/td/bin.Encoder *HelpPromoData : github.com/gotd/td/bin.Object *HelpPromoData : github.com/gotd/td/tdp.Object *HelpPromoData : fmt.Stringer func (*HelpPromoData).AsNotEmpty() (*HelpPromoData, bool) func HelpPromoDataArray.First() (v HelpPromoData, ok bool) func HelpPromoDataArray.Last() (v HelpPromoData, ok bool) func (*HelpPromoDataArray).Pop() (v HelpPromoData, ok bool) func (*HelpPromoDataArray).PopFirst() (v HelpPromoData, ok bool) func HelpPromoDataClass.AsNotEmpty() (*HelpPromoData, bool) func HelpPromoDataClassArray.AppendOnlyNotEmpty(to []*HelpPromoData) []*HelpPromoData func HelpPromoDataClassArray.AsNotEmpty() (to []*HelpPromoData) func HelpPromoDataClassArray.FirstAsNotEmpty() (v *HelpPromoData, ok bool) func HelpPromoDataClassArray.LastAsNotEmpty() (v *HelpPromoData, ok bool) func (*HelpPromoDataClassArray).PopAsNotEmpty() (v *HelpPromoData, ok bool) func (*HelpPromoDataClassArray).PopFirstAsNotEmpty() (v *HelpPromoData, ok bool) func (*HelpPromoDataEmpty).AsNotEmpty() (*HelpPromoData, bool) func HelpPromoDataClassArray.AppendOnlyNotEmpty(to []*HelpPromoData) []*HelpPromoData
HelpPromoDataArray is adapter for slice of HelpPromoData. 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 HelpPromoData. Sort sorts slice of HelpPromoData. SortStable sorts slice of HelpPromoData. func HelpPromoDataArray.Retain(keep func(x HelpPromoData) bool) HelpPromoDataArray func HelpPromoDataArray.Sort(less func(a, b HelpPromoData) bool) HelpPromoDataArray func HelpPromoDataArray.SortStable(less func(a, b HelpPromoData) bool) HelpPromoDataArray func HelpPromoDataClassArray.AsHelpPromoData() (to HelpPromoDataArray)
HelpPromoData boxes the HelpPromoDataClass providing a helper. PromoData HelpPromoDataClass Decode implements bin.Decoder for HelpPromoDataBox. Encode implements bin.Encode for HelpPromoDataBox. *HelpPromoDataBox : github.com/gotd/td/bin.Decoder *HelpPromoDataBox : github.com/gotd/td/bin.Encoder *HelpPromoDataBox : github.com/gotd/td/bin.Object
HelpPromoDataClass represents help.PromoData generic type. See https://core.telegram.org/type/help.PromoData for reference. Example: g, err := tg.DecodeHelpPromoData(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpPromoDataEmpty: // help.promoDataEmpty#98f6ac75 case *tg.HelpPromoData: // help.promoData#8c39793f default: panic(v) } AsNotEmpty tries to map HelpPromoDataClass to HelpPromoData. ( HelpPromoDataClass) Decode(b *bin.Buffer) error ( HelpPromoDataClass) DecodeBare(b *bin.Buffer) error ( HelpPromoDataClass) Encode(b *bin.Buffer) error ( HelpPromoDataClass) EncodeBare(b *bin.Buffer) error Re-fetch PSA/MTProxy info after the specified number of seconds 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. *HelpPromoData *HelpPromoDataEmpty HelpPromoDataClass : github.com/gotd/td/bin.BareDecoder HelpPromoDataClass : github.com/gotd/td/bin.BareEncoder HelpPromoDataClass : github.com/gotd/td/bin.Decoder HelpPromoDataClass : github.com/gotd/td/bin.Encoder HelpPromoDataClass : github.com/gotd/td/bin.Object HelpPromoDataClass : fmt.Stringer func DecodeHelpPromoData(buf *bin.Buffer) (HelpPromoDataClass, error) func (*Client).HelpGetPromoData(ctx context.Context) (HelpPromoDataClass, error) func HelpPromoDataClassArray.First() (v HelpPromoDataClass, ok bool) func HelpPromoDataClassArray.Last() (v HelpPromoDataClass, ok bool) func (*HelpPromoDataClassArray).Pop() (v HelpPromoDataClass, ok bool) func (*HelpPromoDataClassArray).PopFirst() (v HelpPromoDataClass, ok bool)
HelpPromoDataClassArray is adapter for slice of HelpPromoDataClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsHelpPromoData returns copy with only HelpPromoData constructors. AsHelpPromoDataEmpty returns copy with only HelpPromoDataEmpty constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of HelpPromoDataClass. Sort sorts slice of HelpPromoDataClass. SortStable sorts slice of HelpPromoDataClass. func HelpPromoDataClassArray.Retain(keep func(x HelpPromoDataClass) bool) HelpPromoDataClassArray func HelpPromoDataClassArray.Sort(less func(a, b HelpPromoDataClass) bool) HelpPromoDataClassArray func HelpPromoDataClassArray.SortStable(less func(a, b HelpPromoDataClass) bool) HelpPromoDataClassArray
HelpPromoDataEmpty represents TL type `help.promoDataEmpty#98f6ac75`. No PSA/MTProxy info is available See https://core.telegram.org/constructor/help.promoDataEmpty for reference. Re-fetch PSA/MTProxy info after the specified number of seconds AsNotEmpty tries to map HelpPromoDataEmpty to HelpPromoData. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpPromoDataEmpty from given interface. GetExpires returns value of Expires 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. (*HelpPromoDataEmpty) Zero() bool *HelpPromoDataEmpty : HelpPromoDataClass *HelpPromoDataEmpty : github.com/gotd/td/bin.BareDecoder *HelpPromoDataEmpty : github.com/gotd/td/bin.BareEncoder *HelpPromoDataEmpty : github.com/gotd/td/bin.Decoder *HelpPromoDataEmpty : github.com/gotd/td/bin.Encoder *HelpPromoDataEmpty : github.com/gotd/td/bin.Object *HelpPromoDataEmpty : github.com/gotd/td/tdp.Object *HelpPromoDataEmpty : fmt.Stringer func HelpPromoDataEmptyArray.First() (v HelpPromoDataEmpty, ok bool) func HelpPromoDataEmptyArray.Last() (v HelpPromoDataEmpty, ok bool) func (*HelpPromoDataEmptyArray).Pop() (v HelpPromoDataEmpty, ok bool) func (*HelpPromoDataEmptyArray).PopFirst() (v HelpPromoDataEmpty, ok bool)
HelpPromoDataEmptyArray is adapter for slice of HelpPromoDataEmpty. 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 HelpPromoDataEmpty. Sort sorts slice of HelpPromoDataEmpty. SortStable sorts slice of HelpPromoDataEmpty. func HelpPromoDataClassArray.AsHelpPromoDataEmpty() (to HelpPromoDataEmptyArray) func HelpPromoDataEmptyArray.Retain(keep func(x HelpPromoDataEmpty) bool) HelpPromoDataEmptyArray func HelpPromoDataEmptyArray.Sort(less func(a, b HelpPromoDataEmpty) bool) HelpPromoDataEmptyArray func HelpPromoDataEmptyArray.SortStable(less func(a, b HelpPromoDataEmpty) bool) HelpPromoDataEmptyArray
HelpRecentMeURLs represents TL type `help.recentMeUrls#e0310d7`. Recent t.me URLs See https://core.telegram.org/constructor/help.recentMeUrls for reference. Chats URLs Users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpRecentMeURLs from given interface. GetChats returns value of Chats field. GetURLs returns value of URLs field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapURLs returns field URLs wrapped in RecentMeURLClassArray 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. (*HelpRecentMeURLs) Zero() bool *HelpRecentMeURLs : github.com/gotd/td/bin.BareDecoder *HelpRecentMeURLs : github.com/gotd/td/bin.BareEncoder *HelpRecentMeURLs : github.com/gotd/td/bin.Decoder *HelpRecentMeURLs : github.com/gotd/td/bin.Encoder *HelpRecentMeURLs : github.com/gotd/td/bin.Object *HelpRecentMeURLs : github.com/gotd/td/tdp.Object *HelpRecentMeURLs : fmt.Stringer func (*Client).HelpGetRecentMeURLs(ctx context.Context, referer string) (*HelpRecentMeURLs, error)
HelpSaveAppLogRequest represents TL type `help.saveAppLog#6f02f748`. Saves logs of application on the server. See https://core.telegram.org/method/help.saveAppLog for reference. List of input events Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpSaveAppLogRequest from given interface. GetEvents returns value of Events 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. (*HelpSaveAppLogRequest) Zero() bool *HelpSaveAppLogRequest : github.com/gotd/td/bin.BareDecoder *HelpSaveAppLogRequest : github.com/gotd/td/bin.BareEncoder *HelpSaveAppLogRequest : github.com/gotd/td/bin.Decoder *HelpSaveAppLogRequest : github.com/gotd/td/bin.Encoder *HelpSaveAppLogRequest : github.com/gotd/td/bin.Object *HelpSaveAppLogRequest : github.com/gotd/td/tdp.Object *HelpSaveAppLogRequest : fmt.Stringer
HelpSetBotUpdatesStatusRequest represents TL type `help.setBotUpdatesStatus#ec22cfcd`. Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only See https://core.telegram.org/method/help.setBotUpdatesStatus for reference. Error message, if present Number of pending updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpSetBotUpdatesStatusRequest from given interface. GetMessage returns value of Message field. GetPendingUpdatesCount returns value of PendingUpdatesCount 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. (*HelpSetBotUpdatesStatusRequest) Zero() bool *HelpSetBotUpdatesStatusRequest : github.com/gotd/td/bin.BareDecoder *HelpSetBotUpdatesStatusRequest : github.com/gotd/td/bin.BareEncoder *HelpSetBotUpdatesStatusRequest : github.com/gotd/td/bin.Decoder *HelpSetBotUpdatesStatusRequest : github.com/gotd/td/bin.Encoder *HelpSetBotUpdatesStatusRequest : github.com/gotd/td/bin.Object *HelpSetBotUpdatesStatusRequest : github.com/gotd/td/tdp.Object *HelpSetBotUpdatesStatusRequest : fmt.Stringer func (*Client).HelpSetBotUpdatesStatus(ctx context.Context, request *HelpSetBotUpdatesStatusRequest) (bool, error)
HelpSupport represents TL type `help.support#17c6b5f6`. Info on support user. See https://core.telegram.org/constructor/help.support for reference. Phone number User Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpSupport from given interface. GetPhoneNumber returns value of PhoneNumber field. GetUser returns value of User field. GetUserAsNotEmpty returns mapped value of User 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. (*HelpSupport) Zero() bool *HelpSupport : github.com/gotd/td/bin.BareDecoder *HelpSupport : github.com/gotd/td/bin.BareEncoder *HelpSupport : github.com/gotd/td/bin.Decoder *HelpSupport : github.com/gotd/td/bin.Encoder *HelpSupport : github.com/gotd/td/bin.Object *HelpSupport : github.com/gotd/td/tdp.Object *HelpSupport : fmt.Stringer func (*Client).HelpGetSupport(ctx context.Context) (*HelpSupport, error)
HelpSupportName represents TL type `help.supportName#8c05f1c9`. Localized name for telegram support See https://core.telegram.org/constructor/help.supportName for reference. Localized name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpSupportName from given interface. 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. (*HelpSupportName) Zero() bool *HelpSupportName : github.com/gotd/td/bin.BareDecoder *HelpSupportName : github.com/gotd/td/bin.BareEncoder *HelpSupportName : github.com/gotd/td/bin.Decoder *HelpSupportName : github.com/gotd/td/bin.Encoder *HelpSupportName : github.com/gotd/td/bin.Object *HelpSupportName : github.com/gotd/td/tdp.Object *HelpSupportName : fmt.Stringer func (*Client).HelpGetSupportName(ctx context.Context) (*HelpSupportName, error)
HelpTermsOfService represents TL type `help.termsOfService#780a0310`. Info about the latest telegram Terms Of Service See https://core.telegram.org/constructor/help.termsOfService for reference. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of the new terms Minimum age required to sign up to telegram, the user must confirm that they is older than the minimum age. Use SetMinAgeConfirm and GetMinAgeConfirm helpers. Whether a prompt must be showed to the user, in order to accept the new terms. Text of the new terms Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpTermsOfService from given interface. GetEntities returns value of Entities field. GetID returns value of ID field. GetMinAgeConfirm returns value of MinAgeConfirm conditional field and boolean which is true if field was set. GetPopup returns value of Popup conditional field. GetText returns value of Text field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetFlags sets flags for non-zero fields. SetMinAgeConfirm sets value of MinAgeConfirm conditional field. SetPopup sets value of Popup 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. (*HelpTermsOfService) Zero() bool *HelpTermsOfService : github.com/gotd/td/bin.BareDecoder *HelpTermsOfService : github.com/gotd/td/bin.BareEncoder *HelpTermsOfService : github.com/gotd/td/bin.Decoder *HelpTermsOfService : github.com/gotd/td/bin.Encoder *HelpTermsOfService : github.com/gotd/td/bin.Object *HelpTermsOfService : github.com/gotd/td/tdp.Object *HelpTermsOfService : fmt.Stringer func (*AuthAuthorizationSignUpRequired).GetTermsOfService() (value HelpTermsOfService, ok bool) func (*HelpTermsOfServiceUpdate).GetTermsOfService() (value HelpTermsOfService) func (*AuthAuthorizationSignUpRequired).SetTermsOfService(value HelpTermsOfService) func github.com/gotd/td/telegram/auth.UserAuthenticator.AcceptTermsOfService(ctx context.Context, tos HelpTermsOfService) error
HelpTermsOfServiceUpdate represents TL type `help.termsOfServiceUpdate#28ecf961`. Info about an update of telegram's terms of service. If the terms of service are declined, then the account.deleteAccount¹ method should be called with the reason "Decline ToS update" Links: 1. https://core.telegram.org/method/account.deleteAccount See https://core.telegram.org/constructor/help.termsOfServiceUpdate for reference. New TOS updates will have to be queried using help.getTermsOfServiceUpdate¹ in expires seconds Links: 1) https://core.telegram.org/method/help.getTermsOfServiceUpdate New terms of service AsNotEmpty tries to map HelpTermsOfServiceUpdate to HelpTermsOfServiceUpdate. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpTermsOfServiceUpdate from given interface. GetExpires returns value of Expires field. GetTermsOfService returns value of TermsOfService 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. (*HelpTermsOfServiceUpdate) Zero() bool *HelpTermsOfServiceUpdate : HelpTermsOfServiceUpdateClass *HelpTermsOfServiceUpdate : github.com/gotd/td/bin.BareDecoder *HelpTermsOfServiceUpdate : github.com/gotd/td/bin.BareEncoder *HelpTermsOfServiceUpdate : github.com/gotd/td/bin.Decoder *HelpTermsOfServiceUpdate : github.com/gotd/td/bin.Encoder *HelpTermsOfServiceUpdate : github.com/gotd/td/bin.Object *HelpTermsOfServiceUpdate : github.com/gotd/td/tdp.Object *HelpTermsOfServiceUpdate : fmt.Stringer func (*HelpTermsOfServiceUpdate).AsNotEmpty() (*HelpTermsOfServiceUpdate, bool) func HelpTermsOfServiceUpdateArray.First() (v HelpTermsOfServiceUpdate, ok bool) func HelpTermsOfServiceUpdateArray.Last() (v HelpTermsOfServiceUpdate, ok bool) func (*HelpTermsOfServiceUpdateArray).Pop() (v HelpTermsOfServiceUpdate, ok bool) func (*HelpTermsOfServiceUpdateArray).PopFirst() (v HelpTermsOfServiceUpdate, ok bool) func HelpTermsOfServiceUpdateClass.AsNotEmpty() (*HelpTermsOfServiceUpdate, bool) func HelpTermsOfServiceUpdateClassArray.AppendOnlyNotEmpty(to []*HelpTermsOfServiceUpdate) []*HelpTermsOfServiceUpdate func HelpTermsOfServiceUpdateClassArray.AsNotEmpty() (to []*HelpTermsOfServiceUpdate) func HelpTermsOfServiceUpdateClassArray.FirstAsNotEmpty() (v *HelpTermsOfServiceUpdate, ok bool) func HelpTermsOfServiceUpdateClassArray.LastAsNotEmpty() (v *HelpTermsOfServiceUpdate, ok bool) func (*HelpTermsOfServiceUpdateClassArray).PopAsNotEmpty() (v *HelpTermsOfServiceUpdate, ok bool) func (*HelpTermsOfServiceUpdateClassArray).PopFirstAsNotEmpty() (v *HelpTermsOfServiceUpdate, ok bool) func (*HelpTermsOfServiceUpdateEmpty).AsNotEmpty() (*HelpTermsOfServiceUpdate, bool) func HelpTermsOfServiceUpdateClassArray.AppendOnlyNotEmpty(to []*HelpTermsOfServiceUpdate) []*HelpTermsOfServiceUpdate
HelpTermsOfServiceUpdateArray is adapter for slice of HelpTermsOfServiceUpdate. 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 HelpTermsOfServiceUpdate. Sort sorts slice of HelpTermsOfServiceUpdate. SortStable sorts slice of HelpTermsOfServiceUpdate. func HelpTermsOfServiceUpdateArray.Retain(keep func(x HelpTermsOfServiceUpdate) bool) HelpTermsOfServiceUpdateArray func HelpTermsOfServiceUpdateArray.Sort(less func(a, b HelpTermsOfServiceUpdate) bool) HelpTermsOfServiceUpdateArray func HelpTermsOfServiceUpdateArray.SortStable(less func(a, b HelpTermsOfServiceUpdate) bool) HelpTermsOfServiceUpdateArray func HelpTermsOfServiceUpdateClassArray.AsHelpTermsOfServiceUpdate() (to HelpTermsOfServiceUpdateArray)
HelpTermsOfServiceUpdate boxes the HelpTermsOfServiceUpdateClass providing a helper. TermsOfServiceUpdate HelpTermsOfServiceUpdateClass Decode implements bin.Decoder for HelpTermsOfServiceUpdateBox. Encode implements bin.Encode for HelpTermsOfServiceUpdateBox. *HelpTermsOfServiceUpdateBox : github.com/gotd/td/bin.Decoder *HelpTermsOfServiceUpdateBox : github.com/gotd/td/bin.Encoder *HelpTermsOfServiceUpdateBox : github.com/gotd/td/bin.Object
HelpTermsOfServiceUpdateClass represents help.TermsOfServiceUpdate generic type. See https://core.telegram.org/type/help.TermsOfServiceUpdate for reference. Example: g, err := tg.DecodeHelpTermsOfServiceUpdate(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpTermsOfServiceUpdateEmpty: // help.termsOfServiceUpdateEmpty#e3309f7f case *tg.HelpTermsOfServiceUpdate: // help.termsOfServiceUpdate#28ecf961 default: panic(v) } AsNotEmpty tries to map HelpTermsOfServiceUpdateClass to HelpTermsOfServiceUpdate. ( HelpTermsOfServiceUpdateClass) Decode(b *bin.Buffer) error ( HelpTermsOfServiceUpdateClass) DecodeBare(b *bin.Buffer) error ( HelpTermsOfServiceUpdateClass) Encode(b *bin.Buffer) error ( HelpTermsOfServiceUpdateClass) EncodeBare(b *bin.Buffer) error New TOS updates will have to be queried using help.getTermsOfServiceUpdate¹ in expires seconds Links: 1) https://core.telegram.org/method/help.getTermsOfServiceUpdate 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. *HelpTermsOfServiceUpdate *HelpTermsOfServiceUpdateEmpty HelpTermsOfServiceUpdateClass : github.com/gotd/td/bin.BareDecoder HelpTermsOfServiceUpdateClass : github.com/gotd/td/bin.BareEncoder HelpTermsOfServiceUpdateClass : github.com/gotd/td/bin.Decoder HelpTermsOfServiceUpdateClass : github.com/gotd/td/bin.Encoder HelpTermsOfServiceUpdateClass : github.com/gotd/td/bin.Object HelpTermsOfServiceUpdateClass : fmt.Stringer func DecodeHelpTermsOfServiceUpdate(buf *bin.Buffer) (HelpTermsOfServiceUpdateClass, error) func (*Client).HelpGetTermsOfServiceUpdate(ctx context.Context) (HelpTermsOfServiceUpdateClass, error) func HelpTermsOfServiceUpdateClassArray.First() (v HelpTermsOfServiceUpdateClass, ok bool) func HelpTermsOfServiceUpdateClassArray.Last() (v HelpTermsOfServiceUpdateClass, ok bool) func (*HelpTermsOfServiceUpdateClassArray).Pop() (v HelpTermsOfServiceUpdateClass, ok bool) func (*HelpTermsOfServiceUpdateClassArray).PopFirst() (v HelpTermsOfServiceUpdateClass, ok bool)
HelpTermsOfServiceUpdateClassArray is adapter for slice of HelpTermsOfServiceUpdateClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsHelpTermsOfServiceUpdate returns copy with only HelpTermsOfServiceUpdate constructors. AsHelpTermsOfServiceUpdateEmpty returns copy with only HelpTermsOfServiceUpdateEmpty constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of HelpTermsOfServiceUpdateClass. Sort sorts slice of HelpTermsOfServiceUpdateClass. SortStable sorts slice of HelpTermsOfServiceUpdateClass. func HelpTermsOfServiceUpdateClassArray.Retain(keep func(x HelpTermsOfServiceUpdateClass) bool) HelpTermsOfServiceUpdateClassArray func HelpTermsOfServiceUpdateClassArray.Sort(less func(a, b HelpTermsOfServiceUpdateClass) bool) HelpTermsOfServiceUpdateClassArray func HelpTermsOfServiceUpdateClassArray.SortStable(less func(a, b HelpTermsOfServiceUpdateClass) bool) HelpTermsOfServiceUpdateClassArray
HelpTermsOfServiceUpdateEmpty represents TL type `help.termsOfServiceUpdateEmpty#e3309f7f`. No changes were made to telegram's terms of service See https://core.telegram.org/constructor/help.termsOfServiceUpdateEmpty for reference. Re-fetch PSA/MTProxy info after the specified number of seconds AsNotEmpty tries to map HelpTermsOfServiceUpdateEmpty to HelpTermsOfServiceUpdate. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpTermsOfServiceUpdateEmpty from given interface. GetExpires returns value of Expires 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. (*HelpTermsOfServiceUpdateEmpty) Zero() bool *HelpTermsOfServiceUpdateEmpty : HelpTermsOfServiceUpdateClass *HelpTermsOfServiceUpdateEmpty : github.com/gotd/td/bin.BareDecoder *HelpTermsOfServiceUpdateEmpty : github.com/gotd/td/bin.BareEncoder *HelpTermsOfServiceUpdateEmpty : github.com/gotd/td/bin.Decoder *HelpTermsOfServiceUpdateEmpty : github.com/gotd/td/bin.Encoder *HelpTermsOfServiceUpdateEmpty : github.com/gotd/td/bin.Object *HelpTermsOfServiceUpdateEmpty : github.com/gotd/td/tdp.Object *HelpTermsOfServiceUpdateEmpty : fmt.Stringer func HelpTermsOfServiceUpdateEmptyArray.First() (v HelpTermsOfServiceUpdateEmpty, ok bool) func HelpTermsOfServiceUpdateEmptyArray.Last() (v HelpTermsOfServiceUpdateEmpty, ok bool) func (*HelpTermsOfServiceUpdateEmptyArray).Pop() (v HelpTermsOfServiceUpdateEmpty, ok bool) func (*HelpTermsOfServiceUpdateEmptyArray).PopFirst() (v HelpTermsOfServiceUpdateEmpty, ok bool)
HelpTermsOfServiceUpdateEmptyArray is adapter for slice of HelpTermsOfServiceUpdateEmpty. 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 HelpTermsOfServiceUpdateEmpty. Sort sorts slice of HelpTermsOfServiceUpdateEmpty. SortStable sorts slice of HelpTermsOfServiceUpdateEmpty. func HelpTermsOfServiceUpdateClassArray.AsHelpTermsOfServiceUpdateEmpty() (to HelpTermsOfServiceUpdateEmptyArray) func HelpTermsOfServiceUpdateEmptyArray.Retain(keep func(x HelpTermsOfServiceUpdateEmpty) bool) HelpTermsOfServiceUpdateEmptyArray func HelpTermsOfServiceUpdateEmptyArray.Sort(less func(a, b HelpTermsOfServiceUpdateEmpty) bool) HelpTermsOfServiceUpdateEmptyArray func HelpTermsOfServiceUpdateEmptyArray.SortStable(less func(a, b HelpTermsOfServiceUpdateEmpty) bool) HelpTermsOfServiceUpdateEmptyArray
HelpUserInfo represents TL type `help.userInfo#1eb3758`. Internal use See https://core.telegram.org/constructor/help.userInfo for reference. Author Date Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Info AsNotEmpty tries to map HelpUserInfo to HelpUserInfo. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HelpUserInfo from given interface. GetAuthor returns value of Author field. GetDate returns value of Date field. GetEntities returns value of Entities field. GetMessage returns value of Message field. MapEntities returns field Entities wrapped in MessageEntityClassArray 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. (*HelpUserInfo) Zero() bool *HelpUserInfo : HelpUserInfoClass *HelpUserInfo : github.com/gotd/td/bin.BareDecoder *HelpUserInfo : github.com/gotd/td/bin.BareEncoder *HelpUserInfo : github.com/gotd/td/bin.Decoder *HelpUserInfo : github.com/gotd/td/bin.Encoder *HelpUserInfo : github.com/gotd/td/bin.Object *HelpUserInfo : github.com/gotd/td/tdp.Object *HelpUserInfo : fmt.Stringer func (*HelpUserInfo).AsNotEmpty() (*HelpUserInfo, bool) func HelpUserInfoArray.First() (v HelpUserInfo, ok bool) func HelpUserInfoArray.Last() (v HelpUserInfo, ok bool) func (*HelpUserInfoArray).Pop() (v HelpUserInfo, ok bool) func (*HelpUserInfoArray).PopFirst() (v HelpUserInfo, ok bool) func HelpUserInfoClass.AsNotEmpty() (*HelpUserInfo, bool) func HelpUserInfoClassArray.AppendOnlyNotEmpty(to []*HelpUserInfo) []*HelpUserInfo func HelpUserInfoClassArray.AsNotEmpty() (to []*HelpUserInfo) func HelpUserInfoClassArray.FirstAsNotEmpty() (v *HelpUserInfo, ok bool) func HelpUserInfoClassArray.LastAsNotEmpty() (v *HelpUserInfo, ok bool) func (*HelpUserInfoClassArray).PopAsNotEmpty() (v *HelpUserInfo, ok bool) func (*HelpUserInfoClassArray).PopFirstAsNotEmpty() (v *HelpUserInfo, ok bool) func (*HelpUserInfoEmpty).AsNotEmpty() (*HelpUserInfo, bool) func HelpUserInfoClassArray.AppendOnlyNotEmpty(to []*HelpUserInfo) []*HelpUserInfo
HelpUserInfoArray is adapter for slice of HelpUserInfo. 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 HelpUserInfo. Sort sorts slice of HelpUserInfo. SortByDate sorts slice of HelpUserInfo by Date. SortStable sorts slice of HelpUserInfo. SortStableByDate sorts slice of HelpUserInfo by Date. func HelpUserInfoArray.Retain(keep func(x HelpUserInfo) bool) HelpUserInfoArray func HelpUserInfoArray.Sort(less func(a, b HelpUserInfo) bool) HelpUserInfoArray func HelpUserInfoArray.SortByDate() HelpUserInfoArray func HelpUserInfoArray.SortStable(less func(a, b HelpUserInfo) bool) HelpUserInfoArray func HelpUserInfoArray.SortStableByDate() HelpUserInfoArray func HelpUserInfoClassArray.AsHelpUserInfo() (to HelpUserInfoArray)
HelpUserInfo boxes the HelpUserInfoClass providing a helper. UserInfo HelpUserInfoClass Decode implements bin.Decoder for HelpUserInfoBox. Encode implements bin.Encode for HelpUserInfoBox. *HelpUserInfoBox : github.com/gotd/td/bin.Decoder *HelpUserInfoBox : github.com/gotd/td/bin.Encoder *HelpUserInfoBox : github.com/gotd/td/bin.Object
HelpUserInfoClass represents help.UserInfo generic type. See https://core.telegram.org/type/help.UserInfo for reference. Example: g, err := tg.DecodeHelpUserInfo(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.HelpUserInfoEmpty: // help.userInfoEmpty#f3ae2eed case *tg.HelpUserInfo: // help.userInfo#1eb3758 default: panic(v) } AsNotEmpty tries to map HelpUserInfoClass to HelpUserInfo. ( HelpUserInfoClass) Decode(b *bin.Buffer) error ( HelpUserInfoClass) DecodeBare(b *bin.Buffer) error ( HelpUserInfoClass) Encode(b *bin.Buffer) error ( HelpUserInfoClass) 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. *HelpUserInfo *HelpUserInfoEmpty HelpUserInfoClass : github.com/gotd/td/bin.BareDecoder HelpUserInfoClass : github.com/gotd/td/bin.BareEncoder HelpUserInfoClass : github.com/gotd/td/bin.Decoder HelpUserInfoClass : github.com/gotd/td/bin.Encoder HelpUserInfoClass : github.com/gotd/td/bin.Object HelpUserInfoClass : fmt.Stringer func DecodeHelpUserInfo(buf *bin.Buffer) (HelpUserInfoClass, error) func (*Client).HelpEditUserInfo(ctx context.Context, request *HelpEditUserInfoRequest) (HelpUserInfoClass, error) func (*Client).HelpGetUserInfo(ctx context.Context, userid InputUserClass) (HelpUserInfoClass, error) func HelpUserInfoClassArray.First() (v HelpUserInfoClass, ok bool) func HelpUserInfoClassArray.Last() (v HelpUserInfoClass, ok bool) func (*HelpUserInfoClassArray).Pop() (v HelpUserInfoClass, ok bool) func (*HelpUserInfoClassArray).PopFirst() (v HelpUserInfoClass, ok bool)
HelpUserInfoClassArray is adapter for slice of HelpUserInfoClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsHelpUserInfo returns copy with only HelpUserInfo constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of HelpUserInfoClass. Sort sorts slice of HelpUserInfoClass. SortStable sorts slice of HelpUserInfoClass. func HelpUserInfoClassArray.Retain(keep func(x HelpUserInfoClass) bool) HelpUserInfoClassArray func HelpUserInfoClassArray.Sort(less func(a, b HelpUserInfoClass) bool) HelpUserInfoClassArray func HelpUserInfoClassArray.SortStable(less func(a, b HelpUserInfoClass) bool) HelpUserInfoClassArray
HelpUserInfoEmpty represents TL type `help.userInfoEmpty#f3ae2eed`. Internal use See https://core.telegram.org/constructor/help.userInfoEmpty for reference. AsNotEmpty tries to map HelpUserInfoEmpty to HelpUserInfo. 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. (*HelpUserInfoEmpty) Zero() bool *HelpUserInfoEmpty : HelpUserInfoClass *HelpUserInfoEmpty : github.com/gotd/td/bin.BareDecoder *HelpUserInfoEmpty : github.com/gotd/td/bin.BareEncoder *HelpUserInfoEmpty : github.com/gotd/td/bin.Decoder *HelpUserInfoEmpty : github.com/gotd/td/bin.Encoder *HelpUserInfoEmpty : github.com/gotd/td/bin.Object *HelpUserInfoEmpty : github.com/gotd/td/tdp.Object *HelpUserInfoEmpty : fmt.Stringer
HighScore represents TL type `highScore#73a379eb`. Game highscore See https://core.telegram.org/constructor/highScore for reference. Position in highscore list Score User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills HighScore from given interface. GetPos returns value of Pos field. GetScore returns value of Score 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. (*HighScore) Zero() bool *HighScore : github.com/gotd/td/bin.BareDecoder *HighScore : github.com/gotd/td/bin.BareEncoder *HighScore : github.com/gotd/td/bin.Decoder *HighScore : github.com/gotd/td/bin.Encoder *HighScore : github.com/gotd/td/bin.Object *HighScore : github.com/gotd/td/tdp.Object *HighScore : fmt.Stringer func (*MessagesHighScores).GetScores() (value []HighScore)
ImportedContact represents TL type `importedContact#c13e3c50`. Successfully imported contact. See https://core.telegram.org/constructor/importedContact for reference. The contact's client identifier (passed to one of the InputContact¹ constructors) Links: 1) https://core.telegram.org/type/InputContact User identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ImportedContact from given interface. GetClientID returns value of ClientID 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. (*ImportedContact) Zero() bool *ImportedContact : github.com/gotd/td/bin.BareDecoder *ImportedContact : github.com/gotd/td/bin.BareEncoder *ImportedContact : github.com/gotd/td/bin.Decoder *ImportedContact : github.com/gotd/td/bin.Encoder *ImportedContact : github.com/gotd/td/bin.Object *ImportedContact : github.com/gotd/td/tdp.Object *ImportedContact : fmt.Stringer func (*ContactsImportedContacts).GetImported() (value []ImportedContact)
InitConnectionRequest represents TL type `initConnection#c1cd5ea9`. Initialize connection See https://core.telegram.org/constructor/initConnection for reference. Application identifier (see. App configuration¹) Links: 1) https://core.telegram.org/myapp Application version Device model Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Code for the language used on the client, ISO 639-1 standard Language pack to use Additional initConnection parameters. For now, only the tz_offset field is supported, for specifying timezone offset in seconds. Use SetParams and GetParams helpers. Info about an MTProto proxy Use SetProxy and GetProxy helpers. The query itself Code for the language used on the device's OS, ISO 639-1 standard Operation system version Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InitConnectionRequest from given interface. GetAPIID returns value of APIID field. GetAppVersion returns value of AppVersion field. GetDeviceModel returns value of DeviceModel field. GetLangCode returns value of LangCode field. GetLangPack returns value of LangPack field. GetParams returns value of Params conditional field and boolean which is true if field was set. GetProxy returns value of Proxy conditional field and boolean which is true if field was set. GetQuery returns value of Query field. GetSystemLangCode returns value of SystemLangCode field. GetSystemVersion returns value of SystemVersion field. SetFlags sets flags for non-zero fields. SetParams sets value of Params conditional field. SetProxy sets value of Proxy 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. (*InitConnectionRequest) Zero() bool *InitConnectionRequest : github.com/gotd/td/bin.BareDecoder *InitConnectionRequest : github.com/gotd/td/bin.BareEncoder *InitConnectionRequest : github.com/gotd/td/bin.Decoder *InitConnectionRequest : github.com/gotd/td/bin.Encoder *InitConnectionRequest : github.com/gotd/td/bin.Object *InitConnectionRequest : github.com/gotd/td/tdp.Object *InitConnectionRequest : fmt.Stringer
InlineBotCallbackQueryHandler is a InlineBotCallbackQuery event handler. func UpdateDispatcher.OnInlineBotCallbackQuery(handler InlineBotCallbackQueryHandler)
InlineBotSwitchPM represents TL type `inlineBotSwitchPM#3c20629f`. The bot requested the user to message them in private See https://core.telegram.org/constructor/inlineBotSwitchPM for reference. The parameter for the /start parameter Text for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter start_parameter (can be empty) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InlineBotSwitchPM from given interface. GetStartParam returns value of StartParam field. GetText returns value of Text 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. (*InlineBotSwitchPM) Zero() bool *InlineBotSwitchPM : github.com/gotd/td/bin.BareDecoder *InlineBotSwitchPM : github.com/gotd/td/bin.BareEncoder *InlineBotSwitchPM : github.com/gotd/td/bin.Decoder *InlineBotSwitchPM : github.com/gotd/td/bin.Encoder *InlineBotSwitchPM : github.com/gotd/td/bin.Object *InlineBotSwitchPM : github.com/gotd/td/tdp.Object *InlineBotSwitchPM : fmt.Stringer func (*MessagesBotResults).GetSwitchPm() (value InlineBotSwitchPM, ok bool) func (*MessagesSetInlineBotResultsRequest).GetSwitchPm() (value InlineBotSwitchPM, ok bool) func (*MessagesBotResults).SetSwitchPm(value InlineBotSwitchPM) func (*MessagesSetInlineBotResultsRequest).SetSwitchPm(value InlineBotSwitchPM)
InlineBotWebView represents TL type `inlineBotWebView#b57295d5`. Specifies an inline mode mini app¹ button, shown on top of the inline query results list. Links: 1. https://core.telegram.org/api/bots/webapps#inline-mode-mini-apps See https://core.telegram.org/constructor/inlineBotWebView 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 InlineBotWebView 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. (*InlineBotWebView) Zero() bool *InlineBotWebView : github.com/gotd/td/bin.BareDecoder *InlineBotWebView : github.com/gotd/td/bin.BareEncoder *InlineBotWebView : github.com/gotd/td/bin.Decoder *InlineBotWebView : github.com/gotd/td/bin.Encoder *InlineBotWebView : github.com/gotd/td/bin.Object *InlineBotWebView : github.com/gotd/td/tdp.Object *InlineBotWebView : fmt.Stringer func (*MessagesBotResults).GetSwitchWebview() (value InlineBotWebView, ok bool) func (*MessagesSetInlineBotResultsRequest).GetSwitchWebview() (value InlineBotWebView, ok bool) func (*MessagesBotResults).SetSwitchWebview(value InlineBotWebView) func (*MessagesSetInlineBotResultsRequest).SetSwitchWebview(value InlineBotWebView)
InlineQueryPeerTypeBotPM represents TL type `inlineQueryPeerTypeBotPM#e3b2d0c`. Peer type: private chat with a bot. See https://core.telegram.org/constructor/inlineQueryPeerTypeBotPM 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. (*InlineQueryPeerTypeBotPM) Zero() bool *InlineQueryPeerTypeBotPM : InlineQueryPeerTypeClass *InlineQueryPeerTypeBotPM : github.com/gotd/td/bin.BareDecoder *InlineQueryPeerTypeBotPM : github.com/gotd/td/bin.BareEncoder *InlineQueryPeerTypeBotPM : github.com/gotd/td/bin.Decoder *InlineQueryPeerTypeBotPM : github.com/gotd/td/bin.Encoder *InlineQueryPeerTypeBotPM : github.com/gotd/td/bin.Object *InlineQueryPeerTypeBotPM : github.com/gotd/td/tdp.Object *InlineQueryPeerTypeBotPM : fmt.Stringer
InlineQueryPeerType boxes the InlineQueryPeerTypeClass providing a helper. InlineQueryPeerType InlineQueryPeerTypeClass Decode implements bin.Decoder for InlineQueryPeerTypeBox. Encode implements bin.Encode for InlineQueryPeerTypeBox. *InlineQueryPeerTypeBox : github.com/gotd/td/bin.Decoder *InlineQueryPeerTypeBox : github.com/gotd/td/bin.Encoder *InlineQueryPeerTypeBox : github.com/gotd/td/bin.Object
InlineQueryPeerTypeBroadcast represents TL type `inlineQueryPeerTypeBroadcast#6334ee9a`. Peer type: channel¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/inlineQueryPeerTypeBroadcast 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. (*InlineQueryPeerTypeBroadcast) Zero() bool *InlineQueryPeerTypeBroadcast : InlineQueryPeerTypeClass *InlineQueryPeerTypeBroadcast : github.com/gotd/td/bin.BareDecoder *InlineQueryPeerTypeBroadcast : github.com/gotd/td/bin.BareEncoder *InlineQueryPeerTypeBroadcast : github.com/gotd/td/bin.Decoder *InlineQueryPeerTypeBroadcast : github.com/gotd/td/bin.Encoder *InlineQueryPeerTypeBroadcast : github.com/gotd/td/bin.Object *InlineQueryPeerTypeBroadcast : github.com/gotd/td/tdp.Object *InlineQueryPeerTypeBroadcast : fmt.Stringer
InlineQueryPeerTypeChat represents TL type `inlineQueryPeerTypeChat#d766c50a`. Peer type: chat¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/inlineQueryPeerTypeChat 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. (*InlineQueryPeerTypeChat) Zero() bool *InlineQueryPeerTypeChat : InlineQueryPeerTypeClass *InlineQueryPeerTypeChat : github.com/gotd/td/bin.BareDecoder *InlineQueryPeerTypeChat : github.com/gotd/td/bin.BareEncoder *InlineQueryPeerTypeChat : github.com/gotd/td/bin.Decoder *InlineQueryPeerTypeChat : github.com/gotd/td/bin.Encoder *InlineQueryPeerTypeChat : github.com/gotd/td/bin.Object *InlineQueryPeerTypeChat : github.com/gotd/td/tdp.Object *InlineQueryPeerTypeChat : fmt.Stringer
InlineQueryPeerTypeClass represents InlineQueryPeerType generic type. See https://core.telegram.org/type/InlineQueryPeerType for reference. Example: g, err := tg.DecodeInlineQueryPeerType(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InlineQueryPeerTypeSameBotPM: // inlineQueryPeerTypeSameBotPM#3081ed9d case *tg.InlineQueryPeerTypePM: // inlineQueryPeerTypePM#833c0fac case *tg.InlineQueryPeerTypeChat: // inlineQueryPeerTypeChat#d766c50a case *tg.InlineQueryPeerTypeMegagroup: // inlineQueryPeerTypeMegagroup#5ec4be43 case *tg.InlineQueryPeerTypeBroadcast: // inlineQueryPeerTypeBroadcast#6334ee9a case *tg.InlineQueryPeerTypeBotPM: // inlineQueryPeerTypeBotPM#e3b2d0c default: panic(v) } ( InlineQueryPeerTypeClass) Decode(b *bin.Buffer) error ( InlineQueryPeerTypeClass) DecodeBare(b *bin.Buffer) error ( InlineQueryPeerTypeClass) Encode(b *bin.Buffer) error ( InlineQueryPeerTypeClass) 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. *InlineQueryPeerTypeBotPM *InlineQueryPeerTypeBroadcast *InlineQueryPeerTypeChat *InlineQueryPeerTypeMegagroup *InlineQueryPeerTypePM *InlineQueryPeerTypeSameBotPM InlineQueryPeerTypeClass : github.com/gotd/td/bin.BareDecoder InlineQueryPeerTypeClass : github.com/gotd/td/bin.BareEncoder InlineQueryPeerTypeClass : github.com/gotd/td/bin.Decoder InlineQueryPeerTypeClass : github.com/gotd/td/bin.Encoder InlineQueryPeerTypeClass : github.com/gotd/td/bin.Object InlineQueryPeerTypeClass : fmt.Stringer func DecodeInlineQueryPeerType(buf *bin.Buffer) (InlineQueryPeerTypeClass, error) func InlineQueryPeerTypeClassArray.First() (v InlineQueryPeerTypeClass, ok bool) func InlineQueryPeerTypeClassArray.Last() (v InlineQueryPeerTypeClass, ok bool) func (*InlineQueryPeerTypeClassArray).Pop() (v InlineQueryPeerTypeClass, ok bool) func (*InlineQueryPeerTypeClassArray).PopFirst() (v InlineQueryPeerTypeClass, ok bool) func (*KeyboardButtonSwitchInline).GetPeerTypes() (value []InlineQueryPeerTypeClass, ok bool) func (*UpdateBotInlineQuery).GetPeerType() (value InlineQueryPeerTypeClass, ok bool) func (*KeyboardButtonSwitchInline).SetPeerTypes(value []InlineQueryPeerTypeClass) func (*UpdateBotInlineQuery).SetPeerType(value InlineQueryPeerTypeClass)
InlineQueryPeerTypeClassArray is adapter for slice of InlineQueryPeerTypeClass. 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 InlineQueryPeerTypeClass. Sort sorts slice of InlineQueryPeerTypeClass. SortStable sorts slice of InlineQueryPeerTypeClass. func InlineQueryPeerTypeClassArray.Retain(keep func(x InlineQueryPeerTypeClass) bool) InlineQueryPeerTypeClassArray func InlineQueryPeerTypeClassArray.Sort(less func(a, b InlineQueryPeerTypeClass) bool) InlineQueryPeerTypeClassArray func InlineQueryPeerTypeClassArray.SortStable(less func(a, b InlineQueryPeerTypeClass) bool) InlineQueryPeerTypeClassArray func (*KeyboardButtonSwitchInline).MapPeerTypes() (value InlineQueryPeerTypeClassArray, ok bool)
InlineQueryPeerTypeMegagroup represents TL type `inlineQueryPeerTypeMegagroup#5ec4be43`. Peer type: supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/inlineQueryPeerTypeMegagroup 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. (*InlineQueryPeerTypeMegagroup) Zero() bool *InlineQueryPeerTypeMegagroup : InlineQueryPeerTypeClass *InlineQueryPeerTypeMegagroup : github.com/gotd/td/bin.BareDecoder *InlineQueryPeerTypeMegagroup : github.com/gotd/td/bin.BareEncoder *InlineQueryPeerTypeMegagroup : github.com/gotd/td/bin.Decoder *InlineQueryPeerTypeMegagroup : github.com/gotd/td/bin.Encoder *InlineQueryPeerTypeMegagroup : github.com/gotd/td/bin.Object *InlineQueryPeerTypeMegagroup : github.com/gotd/td/tdp.Object *InlineQueryPeerTypeMegagroup : fmt.Stringer
InlineQueryPeerTypePM represents TL type `inlineQueryPeerTypePM#833c0fac`. Peer type: private chat See https://core.telegram.org/constructor/inlineQueryPeerTypePM 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. (*InlineQueryPeerTypePM) Zero() bool *InlineQueryPeerTypePM : InlineQueryPeerTypeClass *InlineQueryPeerTypePM : github.com/gotd/td/bin.BareDecoder *InlineQueryPeerTypePM : github.com/gotd/td/bin.BareEncoder *InlineQueryPeerTypePM : github.com/gotd/td/bin.Decoder *InlineQueryPeerTypePM : github.com/gotd/td/bin.Encoder *InlineQueryPeerTypePM : github.com/gotd/td/bin.Object *InlineQueryPeerTypePM : github.com/gotd/td/tdp.Object *InlineQueryPeerTypePM : fmt.Stringer
InlineQueryPeerTypeSameBotPM represents TL type `inlineQueryPeerTypeSameBotPM#3081ed9d`. Peer type: private chat with the bot itself See https://core.telegram.org/constructor/inlineQueryPeerTypeSameBotPM 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. (*InlineQueryPeerTypeSameBotPM) Zero() bool *InlineQueryPeerTypeSameBotPM : InlineQueryPeerTypeClass *InlineQueryPeerTypeSameBotPM : github.com/gotd/td/bin.BareDecoder *InlineQueryPeerTypeSameBotPM : github.com/gotd/td/bin.BareEncoder *InlineQueryPeerTypeSameBotPM : github.com/gotd/td/bin.Decoder *InlineQueryPeerTypeSameBotPM : github.com/gotd/td/bin.Encoder *InlineQueryPeerTypeSameBotPM : github.com/gotd/td/bin.Object *InlineQueryPeerTypeSameBotPM : github.com/gotd/td/tdp.Object *InlineQueryPeerTypeSameBotPM : fmt.Stringer
InputAppEvent represents TL type `inputAppEvent#1d1b1245`. Event that occurred in the application. See https://core.telegram.org/constructor/inputAppEvent for reference. Details of the event Arbitrary numeric value for more convenient selection of certain event types, or events referring to a certain object Client's exact timestamp for the event Type of event Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputAppEvent from given interface. GetData returns value of Data field. GetPeer returns value of Peer field. GetTime returns value of Time field. GetType returns value of Type 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. (*InputAppEvent) Zero() bool *InputAppEvent : github.com/gotd/td/bin.BareDecoder *InputAppEvent : github.com/gotd/td/bin.BareEncoder *InputAppEvent : github.com/gotd/td/bin.Decoder *InputAppEvent : github.com/gotd/td/bin.Encoder *InputAppEvent : github.com/gotd/td/bin.Object *InputAppEvent : github.com/gotd/td/tdp.Object *InputAppEvent : fmt.Stringer func (*HelpSaveAppLogRequest).GetEvents() (value []InputAppEvent) func (*Client).HelpSaveAppLog(ctx context.Context, events []InputAppEvent) (bool, error)
InputBotApp boxes the InputBotAppClass providing a helper. InputBotApp InputBotAppClass Decode implements bin.Decoder for InputBotAppBox. Encode implements bin.Encode for InputBotAppBox. *InputBotAppBox : github.com/gotd/td/bin.Decoder *InputBotAppBox : github.com/gotd/td/bin.Encoder *InputBotAppBox : github.com/gotd/td/bin.Object
InputBotAppClass represents InputBotApp generic type. See https://core.telegram.org/type/InputBotApp for reference. Example: g, err := tg.DecodeInputBotApp(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputBotAppID: // inputBotAppID#a920bd7a case *tg.InputBotAppShortName: // inputBotAppShortName#908c0407 default: panic(v) } ( InputBotAppClass) Decode(b *bin.Buffer) error ( InputBotAppClass) DecodeBare(b *bin.Buffer) error ( InputBotAppClass) Encode(b *bin.Buffer) error ( InputBotAppClass) 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. *InputBotAppID *InputBotAppShortName InputBotAppClass : github.com/gotd/td/bin.BareDecoder InputBotAppClass : github.com/gotd/td/bin.BareEncoder InputBotAppClass : github.com/gotd/td/bin.Decoder InputBotAppClass : github.com/gotd/td/bin.Encoder InputBotAppClass : github.com/gotd/td/bin.Object InputBotAppClass : fmt.Stringer func DecodeInputBotApp(buf *bin.Buffer) (InputBotAppClass, error) func InputBotAppClassArray.First() (v InputBotAppClass, ok bool) func InputBotAppClassArray.Last() (v InputBotAppClass, ok bool) func (*InputBotAppClassArray).Pop() (v InputBotAppClass, ok bool) func (*InputBotAppClassArray).PopFirst() (v InputBotAppClass, ok bool) func (*MessagesGetBotAppRequest).GetApp() (value InputBotAppClass) func (*MessagesRequestAppWebViewRequest).GetApp() (value InputBotAppClass)
InputBotAppClassArray is adapter for slice of InputBotAppClass. AsInputBotAppID returns copy with only InputBotAppID constructors. AsInputBotAppShortName returns copy with only InputBotAppShortName 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 InputBotAppClass. Sort sorts slice of InputBotAppClass. SortStable sorts slice of InputBotAppClass. func InputBotAppClassArray.Retain(keep func(x InputBotAppClass) bool) InputBotAppClassArray func InputBotAppClassArray.Sort(less func(a, b InputBotAppClass) bool) InputBotAppClassArray func InputBotAppClassArray.SortStable(less func(a, b InputBotAppClass) bool) InputBotAppClassArray
InputBotAppID represents TL type `inputBotAppID#a920bd7a`. Used to fetch information about a named Mini App¹ by its ID Links: 1. https://core.telegram.org/api/bots/webapps#named-mini-apps See https://core.telegram.org/constructor/inputBotAppID for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputBotAppID from given interface. GetAccessHash returns value of AccessHash 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. (*InputBotAppID) Zero() bool *InputBotAppID : InputBotAppClass *InputBotAppID : github.com/gotd/td/bin.BareDecoder *InputBotAppID : github.com/gotd/td/bin.BareEncoder *InputBotAppID : github.com/gotd/td/bin.Decoder *InputBotAppID : github.com/gotd/td/bin.Encoder *InputBotAppID : github.com/gotd/td/bin.Object *InputBotAppID : github.com/gotd/td/tdp.Object *InputBotAppID : fmt.Stringer func (*BotApp).AsInputBotAppID() *InputBotAppID func InputBotAppIDArray.First() (v InputBotAppID, ok bool) func InputBotAppIDArray.Last() (v InputBotAppID, ok bool) func (*InputBotAppIDArray).Pop() (v InputBotAppID, ok bool) func (*InputBotAppIDArray).PopFirst() (v InputBotAppID, ok bool) func InputBotAppIDArray.ToMap() map[int64]InputBotAppID func InputBotAppIDArray.FillMap(to map[int64]InputBotAppID)
InputBotAppIDArray is adapter for slice of InputBotAppID. 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 InputBotAppID. Sort sorts slice of InputBotAppID. SortByID sorts slice of InputBotAppID by ID. SortStable sorts slice of InputBotAppID. SortStableByID sorts slice of InputBotAppID by ID. ToMap collects constructors to map. func InputBotAppClassArray.AsInputBotAppID() (to InputBotAppIDArray) func InputBotAppIDArray.Retain(keep func(x InputBotAppID) bool) InputBotAppIDArray func InputBotAppIDArray.Sort(less func(a, b InputBotAppID) bool) InputBotAppIDArray func InputBotAppIDArray.SortByID() InputBotAppIDArray func InputBotAppIDArray.SortStable(less func(a, b InputBotAppID) bool) InputBotAppIDArray func InputBotAppIDArray.SortStableByID() InputBotAppIDArray
InputBotAppShortName represents TL type `inputBotAppShortName#908c0407`. Used to fetch information about a named Mini App¹ by its short name Links: 1. https://core.telegram.org/api/bots/webapps#named-mini-apps See https://core.telegram.org/constructor/inputBotAppShortName for reference. ID of the bot that owns the bot mini app Short name, obtained from a named Mini App deep link¹ Links: 1) https://core.telegram.org/api/links#named-mini-app-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputBotAppShortName from given interface. GetBotID returns value of BotID field. GetShortName returns value of ShortName 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. (*InputBotAppShortName) Zero() bool *InputBotAppShortName : InputBotAppClass *InputBotAppShortName : github.com/gotd/td/bin.BareDecoder *InputBotAppShortName : github.com/gotd/td/bin.BareEncoder *InputBotAppShortName : github.com/gotd/td/bin.Decoder *InputBotAppShortName : github.com/gotd/td/bin.Encoder *InputBotAppShortName : github.com/gotd/td/bin.Object *InputBotAppShortName : github.com/gotd/td/tdp.Object *InputBotAppShortName : fmt.Stringer func InputBotAppShortNameArray.First() (v InputBotAppShortName, ok bool) func InputBotAppShortNameArray.Last() (v InputBotAppShortName, ok bool) func (*InputBotAppShortNameArray).Pop() (v InputBotAppShortName, ok bool) func (*InputBotAppShortNameArray).PopFirst() (v InputBotAppShortName, ok bool)
InputBotAppShortNameArray is adapter for slice of InputBotAppShortName. 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 InputBotAppShortName. Sort sorts slice of InputBotAppShortName. SortStable sorts slice of InputBotAppShortName. func InputBotAppClassArray.AsInputBotAppShortName() (to InputBotAppShortNameArray) func InputBotAppShortNameArray.Retain(keep func(x InputBotAppShortName) bool) InputBotAppShortNameArray func InputBotAppShortNameArray.Sort(less func(a, b InputBotAppShortName) bool) InputBotAppShortNameArray func InputBotAppShortNameArray.SortStable(less func(a, b InputBotAppShortName) bool) InputBotAppShortNameArray
InputBotInlineMessage boxes the InputBotInlineMessageClass providing a helper. InputBotInlineMessage InputBotInlineMessageClass Decode implements bin.Decoder for InputBotInlineMessageBox. Encode implements bin.Encode for InputBotInlineMessageBox. *InputBotInlineMessageBox : github.com/gotd/td/bin.Decoder *InputBotInlineMessageBox : github.com/gotd/td/bin.Encoder *InputBotInlineMessageBox : github.com/gotd/td/bin.Object
InputBotInlineMessageClass represents InputBotInlineMessage generic type. See https://core.telegram.org/type/InputBotInlineMessage for reference. Example: g, err := tg.DecodeInputBotInlineMessage(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputBotInlineMessageMediaAuto: // inputBotInlineMessageMediaAuto#3380c786 case *tg.InputBotInlineMessageText: // inputBotInlineMessageText#3dcd7a87 case *tg.InputBotInlineMessageMediaGeo: // inputBotInlineMessageMediaGeo#96929a85 case *tg.InputBotInlineMessageMediaVenue: // inputBotInlineMessageMediaVenue#417bbf11 case *tg.InputBotInlineMessageMediaContact: // inputBotInlineMessageMediaContact#a6edbffd case *tg.InputBotInlineMessageGame: // inputBotInlineMessageGame#4b425864 case *tg.InputBotInlineMessageMediaInvoice: // inputBotInlineMessageMediaInvoice#d7e78225 case *tg.InputBotInlineMessageMediaWebPage: // inputBotInlineMessageMediaWebPage#bddcc510 default: panic(v) } ( InputBotInlineMessageClass) Decode(b *bin.Buffer) error ( InputBotInlineMessageClass) DecodeBare(b *bin.Buffer) error ( InputBotInlineMessageClass) Encode(b *bin.Buffer) error ( InputBotInlineMessageClass) 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. *InputBotInlineMessageGame *InputBotInlineMessageMediaAuto *InputBotInlineMessageMediaContact *InputBotInlineMessageMediaGeo *InputBotInlineMessageMediaInvoice *InputBotInlineMessageMediaVenue *InputBotInlineMessageMediaWebPage *InputBotInlineMessageText InputBotInlineMessageClass : github.com/gotd/td/bin.BareDecoder InputBotInlineMessageClass : github.com/gotd/td/bin.BareEncoder InputBotInlineMessageClass : github.com/gotd/td/bin.Decoder InputBotInlineMessageClass : github.com/gotd/td/bin.Encoder InputBotInlineMessageClass : github.com/gotd/td/bin.Object InputBotInlineMessageClass : fmt.Stringer func DecodeInputBotInlineMessage(buf *bin.Buffer) (InputBotInlineMessageClass, error) func InputBotInlineMessageClassArray.First() (v InputBotInlineMessageClass, ok bool) func InputBotInlineMessageClassArray.Last() (v InputBotInlineMessageClass, ok bool) func (*InputBotInlineMessageClassArray).Pop() (v InputBotInlineMessageClass, ok bool) func (*InputBotInlineMessageClassArray).PopFirst() (v InputBotInlineMessageClass, ok bool) func (*InputBotInlineResult).GetSendMessage() (value InputBotInlineMessageClass) func InputBotInlineResultClass.GetSendMessage() (value InputBotInlineMessageClass) func (*InputBotInlineResultDocument).GetSendMessage() (value InputBotInlineMessageClass) func (*InputBotInlineResultGame).GetSendMessage() (value InputBotInlineMessageClass) func (*InputBotInlineResultPhoto).GetSendMessage() (value InputBotInlineMessageClass)
InputBotInlineMessageClassArray is adapter for slice of InputBotInlineMessageClass. AsInputBotInlineMessageGame returns copy with only InputBotInlineMessageGame constructors. AsInputBotInlineMessageMediaAuto returns copy with only InputBotInlineMessageMediaAuto constructors. AsInputBotInlineMessageMediaContact returns copy with only InputBotInlineMessageMediaContact constructors. AsInputBotInlineMessageMediaGeo returns copy with only InputBotInlineMessageMediaGeo constructors. AsInputBotInlineMessageMediaInvoice returns copy with only InputBotInlineMessageMediaInvoice constructors. AsInputBotInlineMessageMediaVenue returns copy with only InputBotInlineMessageMediaVenue constructors. AsInputBotInlineMessageMediaWebPage returns copy with only InputBotInlineMessageMediaWebPage constructors. AsInputBotInlineMessageText returns copy with only InputBotInlineMessageText 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 InputBotInlineMessageClass. Sort sorts slice of InputBotInlineMessageClass. SortStable sorts slice of InputBotInlineMessageClass. func InputBotInlineMessageClassArray.Retain(keep func(x InputBotInlineMessageClass) bool) InputBotInlineMessageClassArray func InputBotInlineMessageClassArray.Sort(less func(a, b InputBotInlineMessageClass) bool) InputBotInlineMessageClassArray func InputBotInlineMessageClassArray.SortStable(less func(a, b InputBotInlineMessageClass) bool) InputBotInlineMessageClassArray
InputBotInlineMessageGame represents TL type `inputBotInlineMessageGame#4b425864`. A game See https://core.telegram.org/constructor/inputBotInlineMessageGame for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields 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 InputBotInlineMessageGame from given interface. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. 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. (*InputBotInlineMessageGame) Zero() bool *InputBotInlineMessageGame : InputBotInlineMessageClass *InputBotInlineMessageGame : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageGame : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageGame : github.com/gotd/td/bin.Decoder *InputBotInlineMessageGame : github.com/gotd/td/bin.Encoder *InputBotInlineMessageGame : github.com/gotd/td/bin.Object *InputBotInlineMessageGame : github.com/gotd/td/tdp.Object *InputBotInlineMessageGame : fmt.Stringer func InputBotInlineMessageGameArray.First() (v InputBotInlineMessageGame, ok bool) func InputBotInlineMessageGameArray.Last() (v InputBotInlineMessageGame, ok bool) func (*InputBotInlineMessageGameArray).Pop() (v InputBotInlineMessageGame, ok bool) func (*InputBotInlineMessageGameArray).PopFirst() (v InputBotInlineMessageGame, ok bool)
InputBotInlineMessageGameArray is adapter for slice of InputBotInlineMessageGame. 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 InputBotInlineMessageGame. Sort sorts slice of InputBotInlineMessageGame. SortStable sorts slice of InputBotInlineMessageGame. func InputBotInlineMessageClassArray.AsInputBotInlineMessageGame() (to InputBotInlineMessageGameArray) func InputBotInlineMessageGameArray.Retain(keep func(x InputBotInlineMessageGame) bool) InputBotInlineMessageGameArray func InputBotInlineMessageGameArray.Sort(less func(a, b InputBotInlineMessageGame) bool) InputBotInlineMessageGameArray func InputBotInlineMessageGameArray.SortStable(less func(a, b InputBotInlineMessageGame) bool) InputBotInlineMessageGameArray
InputBotInlineMessageID represents TL type `inputBotInlineMessageID#890c3d89`. Represents a sent inline message from the perspective of a bot (legacy constructor) See https://core.telegram.org/constructor/inputBotInlineMessageID for reference. Access hash of message DC ID to use when working with this inline message ID of message, contains both the (32-bit, legacy) owner ID and the message ID, used only for Bot API backwards compatibility with 32-bit user ID. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputBotInlineMessageID from given interface. GetAccessHash returns value of AccessHash field. GetDCID returns value of DCID 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. (*InputBotInlineMessageID) Zero() bool *InputBotInlineMessageID : InputBotInlineMessageIDClass *InputBotInlineMessageID : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageID : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageID : github.com/gotd/td/bin.Decoder *InputBotInlineMessageID : github.com/gotd/td/bin.Encoder *InputBotInlineMessageID : github.com/gotd/td/bin.Object *InputBotInlineMessageID : github.com/gotd/td/tdp.Object *InputBotInlineMessageID : fmt.Stringer func InputBotInlineMessageIDArray.First() (v InputBotInlineMessageID, ok bool) func InputBotInlineMessageIDArray.Last() (v InputBotInlineMessageID, ok bool) func (*InputBotInlineMessageIDArray).Pop() (v InputBotInlineMessageID, ok bool) func (*InputBotInlineMessageIDArray).PopFirst() (v InputBotInlineMessageID, ok bool) func InputBotInlineMessageIDArray.ToMap() map[int64]InputBotInlineMessageID func InputBotInlineMessageIDArray.FillMap(to map[int64]InputBotInlineMessageID)
InputBotInlineMessageID64 represents TL type `inputBotInlineMessageID64#b6d915d7`. Represents a sent inline message from the perspective of a bot See https://core.telegram.org/constructor/inputBotInlineMessageID64 for reference. Access hash of message DC ID to use when working with this inline message ID of message ID of the owner of this message Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputBotInlineMessageID64 from given interface. GetAccessHash returns value of AccessHash field. GetDCID returns value of DCID field. GetID returns value of ID field. GetOwnerID returns value of OwnerID 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. (*InputBotInlineMessageID64) Zero() bool *InputBotInlineMessageID64 : InputBotInlineMessageIDClass *InputBotInlineMessageID64 : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageID64 : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageID64 : github.com/gotd/td/bin.Decoder *InputBotInlineMessageID64 : github.com/gotd/td/bin.Encoder *InputBotInlineMessageID64 : github.com/gotd/td/bin.Object *InputBotInlineMessageID64 : github.com/gotd/td/tdp.Object *InputBotInlineMessageID64 : fmt.Stringer func InputBotInlineMessageID64Array.First() (v InputBotInlineMessageID64, ok bool) func InputBotInlineMessageID64Array.Last() (v InputBotInlineMessageID64, ok bool) func (*InputBotInlineMessageID64Array).Pop() (v InputBotInlineMessageID64, ok bool) func (*InputBotInlineMessageID64Array).PopFirst() (v InputBotInlineMessageID64, ok bool) func InputBotInlineMessageID64Array.ToMap() map[int]InputBotInlineMessageID64 func InputBotInlineMessageID64Array.FillMap(to map[int]InputBotInlineMessageID64)
InputBotInlineMessageID64Array is adapter for slice of InputBotInlineMessageID64. 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 InputBotInlineMessageID64. Sort sorts slice of InputBotInlineMessageID64. SortByID sorts slice of InputBotInlineMessageID64 by ID. SortStable sorts slice of InputBotInlineMessageID64. SortStableByID sorts slice of InputBotInlineMessageID64 by ID. ToMap collects constructors to map. func InputBotInlineMessageID64Array.Retain(keep func(x InputBotInlineMessageID64) bool) InputBotInlineMessageID64Array func InputBotInlineMessageID64Array.Sort(less func(a, b InputBotInlineMessageID64) bool) InputBotInlineMessageID64Array func InputBotInlineMessageID64Array.SortByID() InputBotInlineMessageID64Array func InputBotInlineMessageID64Array.SortStable(less func(a, b InputBotInlineMessageID64) bool) InputBotInlineMessageID64Array func InputBotInlineMessageID64Array.SortStableByID() InputBotInlineMessageID64Array func InputBotInlineMessageIDClassArray.AsInputBotInlineMessageID64() (to InputBotInlineMessageID64Array)
InputBotInlineMessageIDArray is adapter for slice of InputBotInlineMessageID. 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 InputBotInlineMessageID. Sort sorts slice of InputBotInlineMessageID. SortByID sorts slice of InputBotInlineMessageID by ID. SortStable sorts slice of InputBotInlineMessageID. SortStableByID sorts slice of InputBotInlineMessageID by ID. ToMap collects constructors to map. func InputBotInlineMessageIDArray.Retain(keep func(x InputBotInlineMessageID) bool) InputBotInlineMessageIDArray func InputBotInlineMessageIDArray.Sort(less func(a, b InputBotInlineMessageID) bool) InputBotInlineMessageIDArray func InputBotInlineMessageIDArray.SortByID() InputBotInlineMessageIDArray func InputBotInlineMessageIDArray.SortStable(less func(a, b InputBotInlineMessageID) bool) InputBotInlineMessageIDArray func InputBotInlineMessageIDArray.SortStableByID() InputBotInlineMessageIDArray func InputBotInlineMessageIDClassArray.AsInputBotInlineMessageID() (to InputBotInlineMessageIDArray)
InputBotInlineMessageID boxes the InputBotInlineMessageIDClass providing a helper. InputBotInlineMessageID InputBotInlineMessageIDClass Decode implements bin.Decoder for InputBotInlineMessageIDBox. Encode implements bin.Encode for InputBotInlineMessageIDBox. *InputBotInlineMessageIDBox : github.com/gotd/td/bin.Decoder *InputBotInlineMessageIDBox : github.com/gotd/td/bin.Encoder *InputBotInlineMessageIDBox : github.com/gotd/td/bin.Object
InputBotInlineMessageIDClass represents InputBotInlineMessageID generic type. See https://core.telegram.org/type/InputBotInlineMessageID for reference. Example: g, err := tg.DecodeInputBotInlineMessageID(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputBotInlineMessageID: // inputBotInlineMessageID#890c3d89 case *tg.InputBotInlineMessageID64: // inputBotInlineMessageID64#b6d915d7 default: panic(v) } ( InputBotInlineMessageIDClass) Decode(b *bin.Buffer) error ( InputBotInlineMessageIDClass) DecodeBare(b *bin.Buffer) error ( InputBotInlineMessageIDClass) Encode(b *bin.Buffer) error ( InputBotInlineMessageIDClass) EncodeBare(b *bin.Buffer) error Access hash of message DC ID to use when working with this inline message 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. *InputBotInlineMessageID *InputBotInlineMessageID64 InputBotInlineMessageIDClass : github.com/gotd/td/bin.BareDecoder InputBotInlineMessageIDClass : github.com/gotd/td/bin.BareEncoder InputBotInlineMessageIDClass : github.com/gotd/td/bin.Decoder InputBotInlineMessageIDClass : github.com/gotd/td/bin.Encoder InputBotInlineMessageIDClass : github.com/gotd/td/bin.Object InputBotInlineMessageIDClass : fmt.Stringer func DecodeInputBotInlineMessageID(buf *bin.Buffer) (InputBotInlineMessageIDClass, error) func InputBotInlineMessageIDClassArray.First() (v InputBotInlineMessageIDClass, ok bool) func InputBotInlineMessageIDClassArray.Last() (v InputBotInlineMessageIDClass, ok bool) func (*InputBotInlineMessageIDClassArray).Pop() (v InputBotInlineMessageIDClass, ok bool) func (*InputBotInlineMessageIDClassArray).PopFirst() (v InputBotInlineMessageIDClass, ok bool) func (*MessagesEditInlineBotMessageRequest).GetID() (value InputBotInlineMessageIDClass) func (*MessagesGetInlineGameHighScoresRequest).GetID() (value InputBotInlineMessageIDClass) func (*MessagesSetInlineGameScoreRequest).GetID() (value InputBotInlineMessageIDClass) func (*UpdateBotInlineSend).GetMsgID() (value InputBotInlineMessageIDClass, ok bool) func (*UpdateInlineBotCallbackQuery).GetMsgID() (value InputBotInlineMessageIDClass) func (*WebViewMessageSent).GetMsgID() (value InputBotInlineMessageIDClass, ok bool) func (*UpdateBotInlineSend).SetMsgID(value InputBotInlineMessageIDClass) func (*WebViewMessageSent).SetMsgID(value InputBotInlineMessageIDClass)
InputBotInlineMessageIDClassArray is adapter for slice of InputBotInlineMessageIDClass. AsInputBotInlineMessageID returns copy with only InputBotInlineMessageID constructors. AsInputBotInlineMessageID64 returns copy with only InputBotInlineMessageID64 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 InputBotInlineMessageIDClass. Sort sorts slice of InputBotInlineMessageIDClass. SortStable sorts slice of InputBotInlineMessageIDClass. func InputBotInlineMessageIDClassArray.Retain(keep func(x InputBotInlineMessageIDClass) bool) InputBotInlineMessageIDClassArray func InputBotInlineMessageIDClassArray.Sort(less func(a, b InputBotInlineMessageIDClass) bool) InputBotInlineMessageIDClassArray func InputBotInlineMessageIDClassArray.SortStable(less func(a, b InputBotInlineMessageIDClass) bool) InputBotInlineMessageIDClassArray
InputBotInlineMessageMediaAuto represents TL type `inputBotInlineMessageMediaAuto#3380c786`. A media See https://core.telegram.org/constructor/inputBotInlineMessageMediaAuto 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 InputBotInlineMessageMediaAuto 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. (*InputBotInlineMessageMediaAuto) Zero() bool *InputBotInlineMessageMediaAuto : InputBotInlineMessageClass *InputBotInlineMessageMediaAuto : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageMediaAuto : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageMediaAuto : github.com/gotd/td/bin.Decoder *InputBotInlineMessageMediaAuto : github.com/gotd/td/bin.Encoder *InputBotInlineMessageMediaAuto : github.com/gotd/td/bin.Object *InputBotInlineMessageMediaAuto : github.com/gotd/td/tdp.Object *InputBotInlineMessageMediaAuto : fmt.Stringer func InputBotInlineMessageMediaAutoArray.First() (v InputBotInlineMessageMediaAuto, ok bool) func InputBotInlineMessageMediaAutoArray.Last() (v InputBotInlineMessageMediaAuto, ok bool) func (*InputBotInlineMessageMediaAutoArray).Pop() (v InputBotInlineMessageMediaAuto, ok bool) func (*InputBotInlineMessageMediaAutoArray).PopFirst() (v InputBotInlineMessageMediaAuto, ok bool)
InputBotInlineMessageMediaAutoArray is adapter for slice of InputBotInlineMessageMediaAuto. 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 InputBotInlineMessageMediaAuto. Sort sorts slice of InputBotInlineMessageMediaAuto. SortStable sorts slice of InputBotInlineMessageMediaAuto. func InputBotInlineMessageClassArray.AsInputBotInlineMessageMediaAuto() (to InputBotInlineMessageMediaAutoArray) func InputBotInlineMessageMediaAutoArray.Retain(keep func(x InputBotInlineMessageMediaAuto) bool) InputBotInlineMessageMediaAutoArray func InputBotInlineMessageMediaAutoArray.Sort(less func(a, b InputBotInlineMessageMediaAuto) bool) InputBotInlineMessageMediaAutoArray func InputBotInlineMessageMediaAutoArray.SortStable(less func(a, b InputBotInlineMessageMediaAuto) bool) InputBotInlineMessageMediaAutoArray
InputBotInlineMessageMediaContact represents TL type `inputBotInlineMessageMediaContact#a6edbffd`. A contact See https://core.telegram.org/constructor/inputBotInlineMessageMediaContact 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 InputBotInlineMessageMediaContact 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. (*InputBotInlineMessageMediaContact) Zero() bool *InputBotInlineMessageMediaContact : InputBotInlineMessageClass *InputBotInlineMessageMediaContact : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageMediaContact : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageMediaContact : github.com/gotd/td/bin.Decoder *InputBotInlineMessageMediaContact : github.com/gotd/td/bin.Encoder *InputBotInlineMessageMediaContact : github.com/gotd/td/bin.Object *InputBotInlineMessageMediaContact : github.com/gotd/td/tdp.Object *InputBotInlineMessageMediaContact : fmt.Stringer func InputBotInlineMessageMediaContactArray.First() (v InputBotInlineMessageMediaContact, ok bool) func InputBotInlineMessageMediaContactArray.Last() (v InputBotInlineMessageMediaContact, ok bool) func (*InputBotInlineMessageMediaContactArray).Pop() (v InputBotInlineMessageMediaContact, ok bool) func (*InputBotInlineMessageMediaContactArray).PopFirst() (v InputBotInlineMessageMediaContact, ok bool)
InputBotInlineMessageMediaContactArray is adapter for slice of InputBotInlineMessageMediaContact. 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 InputBotInlineMessageMediaContact. Sort sorts slice of InputBotInlineMessageMediaContact. SortStable sorts slice of InputBotInlineMessageMediaContact. func InputBotInlineMessageClassArray.AsInputBotInlineMessageMediaContact() (to InputBotInlineMessageMediaContactArray) func InputBotInlineMessageMediaContactArray.Retain(keep func(x InputBotInlineMessageMediaContact) bool) InputBotInlineMessageMediaContactArray func InputBotInlineMessageMediaContactArray.Sort(less func(a, b InputBotInlineMessageMediaContact) bool) InputBotInlineMessageMediaContactArray func InputBotInlineMessageMediaContactArray.SortStable(less func(a, b InputBotInlineMessageMediaContact) bool) InputBotInlineMessageMediaContactArray
InputBotInlineMessageMediaGeo represents TL type `inputBotInlineMessageMediaGeo#96929a85`. Geolocation See https://core.telegram.org/constructor/inputBotInlineMessageMediaGeo 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. Reply markup for bot/inline keyboards Use SetReplyMarkup and GetReplyMarkup helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputBotInlineMessageMediaGeo from given interface. GetGeoPoint returns value of GeoPoint 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. (*InputBotInlineMessageMediaGeo) Zero() bool *InputBotInlineMessageMediaGeo : InputBotInlineMessageClass *InputBotInlineMessageMediaGeo : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageMediaGeo : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageMediaGeo : github.com/gotd/td/bin.Decoder *InputBotInlineMessageMediaGeo : github.com/gotd/td/bin.Encoder *InputBotInlineMessageMediaGeo : github.com/gotd/td/bin.Object *InputBotInlineMessageMediaGeo : github.com/gotd/td/tdp.Object *InputBotInlineMessageMediaGeo : fmt.Stringer func InputBotInlineMessageMediaGeoArray.First() (v InputBotInlineMessageMediaGeo, ok bool) func InputBotInlineMessageMediaGeoArray.Last() (v InputBotInlineMessageMediaGeo, ok bool) func (*InputBotInlineMessageMediaGeoArray).Pop() (v InputBotInlineMessageMediaGeo, ok bool) func (*InputBotInlineMessageMediaGeoArray).PopFirst() (v InputBotInlineMessageMediaGeo, ok bool)
InputBotInlineMessageMediaGeoArray is adapter for slice of InputBotInlineMessageMediaGeo. 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 InputBotInlineMessageMediaGeo. Sort sorts slice of InputBotInlineMessageMediaGeo. SortStable sorts slice of InputBotInlineMessageMediaGeo. func InputBotInlineMessageClassArray.AsInputBotInlineMessageMediaGeo() (to InputBotInlineMessageMediaGeoArray) func InputBotInlineMessageMediaGeoArray.Retain(keep func(x InputBotInlineMessageMediaGeo) bool) InputBotInlineMessageMediaGeoArray func InputBotInlineMessageMediaGeoArray.Sort(less func(a, b InputBotInlineMessageMediaGeo) bool) InputBotInlineMessageMediaGeoArray func InputBotInlineMessageMediaGeoArray.SortStable(less func(a, b InputBotInlineMessageMediaGeo) bool) InputBotInlineMessageMediaGeoArray
InputBotInlineMessageMediaInvoice represents TL type `inputBotInlineMessageMediaInvoice#d7e78225`. An invoice See https://core.telegram.org/constructor/inputBotInlineMessageMediaInvoice for reference. Product description, 1-255 characters Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The invoice Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. Invoice photo Use SetPhoto and GetPhoto helpers. Payments provider token, obtained via Botfather¹ Links: 1) https://t.me/botfather A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider. Inline keyboard Use SetReplyMarkup and GetReplyMarkup helpers. Product name, 1-32 characters Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputBotInlineMessageMediaInvoice from given interface. GetDescription returns value of Description field. GetInvoice returns value of Invoice field. GetPayload returns value of Payload field. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetProvider returns value of Provider field. GetProviderData returns value of ProviderData field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. GetTitle returns value of Title field. SetFlags sets flags for non-zero fields. SetPhoto sets value of Photo 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. (*InputBotInlineMessageMediaInvoice) Zero() bool *InputBotInlineMessageMediaInvoice : InputBotInlineMessageClass *InputBotInlineMessageMediaInvoice : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageMediaInvoice : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageMediaInvoice : github.com/gotd/td/bin.Decoder *InputBotInlineMessageMediaInvoice : github.com/gotd/td/bin.Encoder *InputBotInlineMessageMediaInvoice : github.com/gotd/td/bin.Object *InputBotInlineMessageMediaInvoice : github.com/gotd/td/tdp.Object *InputBotInlineMessageMediaInvoice : fmt.Stringer func InputBotInlineMessageMediaInvoiceArray.First() (v InputBotInlineMessageMediaInvoice, ok bool) func InputBotInlineMessageMediaInvoiceArray.Last() (v InputBotInlineMessageMediaInvoice, ok bool) func (*InputBotInlineMessageMediaInvoiceArray).Pop() (v InputBotInlineMessageMediaInvoice, ok bool) func (*InputBotInlineMessageMediaInvoiceArray).PopFirst() (v InputBotInlineMessageMediaInvoice, ok bool)
InputBotInlineMessageMediaInvoiceArray is adapter for slice of InputBotInlineMessageMediaInvoice. 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 InputBotInlineMessageMediaInvoice. Sort sorts slice of InputBotInlineMessageMediaInvoice. SortStable sorts slice of InputBotInlineMessageMediaInvoice. func InputBotInlineMessageClassArray.AsInputBotInlineMessageMediaInvoice() (to InputBotInlineMessageMediaInvoiceArray) func InputBotInlineMessageMediaInvoiceArray.Retain(keep func(x InputBotInlineMessageMediaInvoice) bool) InputBotInlineMessageMediaInvoiceArray func InputBotInlineMessageMediaInvoiceArray.Sort(less func(a, b InputBotInlineMessageMediaInvoice) bool) InputBotInlineMessageMediaInvoiceArray func InputBotInlineMessageMediaInvoiceArray.SortStable(less func(a, b InputBotInlineMessageMediaInvoice) bool) InputBotInlineMessageMediaInvoiceArray
InputBotInlineMessageMediaVenue represents TL type `inputBotInlineMessageMediaVenue#417bbf11`. Venue See https://core.telegram.org/constructor/inputBotInlineMessageMediaVenue for reference. Address Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Geolocation 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 InputBotInlineMessageMediaVenue from given interface. GetAddress returns value of Address field. GetGeoPoint returns value of GeoPoint 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. (*InputBotInlineMessageMediaVenue) Zero() bool *InputBotInlineMessageMediaVenue : InputBotInlineMessageClass *InputBotInlineMessageMediaVenue : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageMediaVenue : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageMediaVenue : github.com/gotd/td/bin.Decoder *InputBotInlineMessageMediaVenue : github.com/gotd/td/bin.Encoder *InputBotInlineMessageMediaVenue : github.com/gotd/td/bin.Object *InputBotInlineMessageMediaVenue : github.com/gotd/td/tdp.Object *InputBotInlineMessageMediaVenue : fmt.Stringer func InputBotInlineMessageMediaVenueArray.First() (v InputBotInlineMessageMediaVenue, ok bool) func InputBotInlineMessageMediaVenueArray.Last() (v InputBotInlineMessageMediaVenue, ok bool) func (*InputBotInlineMessageMediaVenueArray).Pop() (v InputBotInlineMessageMediaVenue, ok bool) func (*InputBotInlineMessageMediaVenueArray).PopFirst() (v InputBotInlineMessageMediaVenue, ok bool)
InputBotInlineMessageMediaVenueArray is adapter for slice of InputBotInlineMessageMediaVenue. 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 InputBotInlineMessageMediaVenue. Sort sorts slice of InputBotInlineMessageMediaVenue. SortStable sorts slice of InputBotInlineMessageMediaVenue. func InputBotInlineMessageClassArray.AsInputBotInlineMessageMediaVenue() (to InputBotInlineMessageMediaVenueArray) func InputBotInlineMessageMediaVenueArray.Retain(keep func(x InputBotInlineMessageMediaVenue) bool) InputBotInlineMessageMediaVenueArray func InputBotInlineMessageMediaVenueArray.Sort(less func(a, b InputBotInlineMessageMediaVenue) bool) InputBotInlineMessageMediaVenueArray func InputBotInlineMessageMediaVenueArray.SortStable(less func(a, b InputBotInlineMessageMediaVenue) bool) InputBotInlineMessageMediaVenueArray
InputBotInlineMessageMediaWebPage represents TL type `inputBotInlineMessageMediaWebPage#bddcc510`. Specifies options that will 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/inputBotInlineMessageMediaWebPage 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. The message, can be empty. If not set, a WEBPAGE_NOT_FOUND RPC error will be emitted if a webpage preview cannot be generated for the specified url; otherwise, no error will be emitted (unless the provided message is also empty, in which case a MESSAGE_EMPTY will be emitted, instead). Inline keyboard Use SetReplyMarkup and GetReplyMarkup helpers. 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 InputBotInlineMessageMediaWebPage 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. GetMessage returns value of Message field. GetOptional returns value of Optional conditional field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. 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. SetOptional sets value of Optional 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. (*InputBotInlineMessageMediaWebPage) Zero() bool *InputBotInlineMessageMediaWebPage : InputBotInlineMessageClass *InputBotInlineMessageMediaWebPage : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageMediaWebPage : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageMediaWebPage : github.com/gotd/td/bin.Decoder *InputBotInlineMessageMediaWebPage : github.com/gotd/td/bin.Encoder *InputBotInlineMessageMediaWebPage : github.com/gotd/td/bin.Object *InputBotInlineMessageMediaWebPage : github.com/gotd/td/tdp.Object *InputBotInlineMessageMediaWebPage : fmt.Stringer func InputBotInlineMessageMediaWebPageArray.First() (v InputBotInlineMessageMediaWebPage, ok bool) func InputBotInlineMessageMediaWebPageArray.Last() (v InputBotInlineMessageMediaWebPage, ok bool) func (*InputBotInlineMessageMediaWebPageArray).Pop() (v InputBotInlineMessageMediaWebPage, ok bool) func (*InputBotInlineMessageMediaWebPageArray).PopFirst() (v InputBotInlineMessageMediaWebPage, ok bool)
InputBotInlineMessageMediaWebPageArray is adapter for slice of InputBotInlineMessageMediaWebPage. 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 InputBotInlineMessageMediaWebPage. Sort sorts slice of InputBotInlineMessageMediaWebPage. SortStable sorts slice of InputBotInlineMessageMediaWebPage. func InputBotInlineMessageClassArray.AsInputBotInlineMessageMediaWebPage() (to InputBotInlineMessageMediaWebPageArray) func InputBotInlineMessageMediaWebPageArray.Retain(keep func(x InputBotInlineMessageMediaWebPage) bool) InputBotInlineMessageMediaWebPageArray func InputBotInlineMessageMediaWebPageArray.Sort(less func(a, b InputBotInlineMessageMediaWebPage) bool) InputBotInlineMessageMediaWebPageArray func InputBotInlineMessageMediaWebPageArray.SortStable(less func(a, b InputBotInlineMessageMediaWebPage) bool) InputBotInlineMessageMediaWebPageArray
InputBotInlineMessageText represents TL type `inputBotInlineMessageText#3dcd7a87`. Simple text message See https://core.telegram.org/constructor/inputBotInlineMessageText 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 InputBotInlineMessageText 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. (*InputBotInlineMessageText) Zero() bool *InputBotInlineMessageText : InputBotInlineMessageClass *InputBotInlineMessageText : github.com/gotd/td/bin.BareDecoder *InputBotInlineMessageText : github.com/gotd/td/bin.BareEncoder *InputBotInlineMessageText : github.com/gotd/td/bin.Decoder *InputBotInlineMessageText : github.com/gotd/td/bin.Encoder *InputBotInlineMessageText : github.com/gotd/td/bin.Object *InputBotInlineMessageText : github.com/gotd/td/tdp.Object *InputBotInlineMessageText : fmt.Stringer func InputBotInlineMessageTextArray.First() (v InputBotInlineMessageText, ok bool) func InputBotInlineMessageTextArray.Last() (v InputBotInlineMessageText, ok bool) func (*InputBotInlineMessageTextArray).Pop() (v InputBotInlineMessageText, ok bool) func (*InputBotInlineMessageTextArray).PopFirst() (v InputBotInlineMessageText, ok bool)
InputBotInlineMessageTextArray is adapter for slice of InputBotInlineMessageText. 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 InputBotInlineMessageText. Sort sorts slice of InputBotInlineMessageText. SortStable sorts slice of InputBotInlineMessageText. func InputBotInlineMessageClassArray.AsInputBotInlineMessageText() (to InputBotInlineMessageTextArray) func InputBotInlineMessageTextArray.Retain(keep func(x InputBotInlineMessageText) bool) InputBotInlineMessageTextArray func InputBotInlineMessageTextArray.Sort(less func(a, b InputBotInlineMessageText) bool) InputBotInlineMessageTextArray func InputBotInlineMessageTextArray.SortStable(less func(a, b InputBotInlineMessageText) bool) InputBotInlineMessageTextArray
InputBotInlineResult represents TL type `inputBotInlineResult#88bf9319`. An inline bot result See https://core.telegram.org/constructor/inputBotInlineResult for reference. Result contents 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 ID of result Message to send when the result is selected Thumbnail for 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 result Use SetURL and GetURL helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputBotInlineResult 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. (*InputBotInlineResult) Zero() bool *InputBotInlineResult : InputBotInlineResultClass *InputBotInlineResult : github.com/gotd/td/bin.BareDecoder *InputBotInlineResult : github.com/gotd/td/bin.BareEncoder *InputBotInlineResult : github.com/gotd/td/bin.Decoder *InputBotInlineResult : github.com/gotd/td/bin.Encoder *InputBotInlineResult : github.com/gotd/td/bin.Object *InputBotInlineResult : github.com/gotd/td/tdp.Object *InputBotInlineResult : fmt.Stringer func InputBotInlineResultArray.First() (v InputBotInlineResult, ok bool) func InputBotInlineResultArray.Last() (v InputBotInlineResult, ok bool) func (*InputBotInlineResultArray).Pop() (v InputBotInlineResult, ok bool) func (*InputBotInlineResultArray).PopFirst() (v InputBotInlineResult, ok bool)
InputBotInlineResultArray is adapter for slice of InputBotInlineResult. 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 InputBotInlineResult. Sort sorts slice of InputBotInlineResult. SortStable sorts slice of InputBotInlineResult. func InputBotInlineResultArray.Retain(keep func(x InputBotInlineResult) bool) InputBotInlineResultArray func InputBotInlineResultArray.Sort(less func(a, b InputBotInlineResult) bool) InputBotInlineResultArray func InputBotInlineResultArray.SortStable(less func(a, b InputBotInlineResult) bool) InputBotInlineResultArray func InputBotInlineResultClassArray.AsInputBotInlineResult() (to InputBotInlineResultArray)
InputBotInlineResult boxes the InputBotInlineResultClass providing a helper. InputBotInlineResult InputBotInlineResultClass Decode implements bin.Decoder for InputBotInlineResultBox. Encode implements bin.Encode for InputBotInlineResultBox. *InputBotInlineResultBox : github.com/gotd/td/bin.Decoder *InputBotInlineResultBox : github.com/gotd/td/bin.Encoder *InputBotInlineResultBox : github.com/gotd/td/bin.Object
InputBotInlineResultClass represents InputBotInlineResult generic type. See https://core.telegram.org/type/InputBotInlineResult for reference. Example: g, err := tg.DecodeInputBotInlineResult(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputBotInlineResult: // inputBotInlineResult#88bf9319 case *tg.InputBotInlineResultPhoto: // inputBotInlineResultPhoto#a8d864a7 case *tg.InputBotInlineResultDocument: // inputBotInlineResultDocument#fff8fdc4 case *tg.InputBotInlineResultGame: // inputBotInlineResultGame#4fa417f2 default: panic(v) } ( InputBotInlineResultClass) Decode(b *bin.Buffer) error ( InputBotInlineResultClass) DecodeBare(b *bin.Buffer) error ( InputBotInlineResultClass) Encode(b *bin.Buffer) error ( InputBotInlineResultClass) EncodeBare(b *bin.Buffer) error ID of result Message to send when the result is selected 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. *InputBotInlineResult *InputBotInlineResultDocument *InputBotInlineResultGame *InputBotInlineResultPhoto InputBotInlineResultClass : github.com/gotd/td/bin.BareDecoder InputBotInlineResultClass : github.com/gotd/td/bin.BareEncoder InputBotInlineResultClass : github.com/gotd/td/bin.Decoder InputBotInlineResultClass : github.com/gotd/td/bin.Encoder InputBotInlineResultClass : github.com/gotd/td/bin.Object InputBotInlineResultClass : fmt.Stringer func DecodeInputBotInlineResult(buf *bin.Buffer) (InputBotInlineResultClass, error) func InputBotInlineResultClassArray.First() (v InputBotInlineResultClass, ok bool) func InputBotInlineResultClassArray.Last() (v InputBotInlineResultClass, ok bool) func (*InputBotInlineResultClassArray).Pop() (v InputBotInlineResultClass, ok bool) func (*InputBotInlineResultClassArray).PopFirst() (v InputBotInlineResultClass, ok bool) func (*MessagesSendWebViewResultMessageRequest).GetResult() (value InputBotInlineResultClass) func (*MessagesSetInlineBotResultsRequest).GetResults() (value []InputBotInlineResultClass)
InputBotInlineResultClassArray is adapter for slice of InputBotInlineResultClass. AsInputBotInlineResult returns copy with only InputBotInlineResult constructors. AsInputBotInlineResultDocument returns copy with only InputBotInlineResultDocument constructors. AsInputBotInlineResultGame returns copy with only InputBotInlineResultGame constructors. AsInputBotInlineResultPhoto returns copy with only InputBotInlineResultPhoto 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 InputBotInlineResultClass. Sort sorts slice of InputBotInlineResultClass. SortStable sorts slice of InputBotInlineResultClass. func InputBotInlineResultClassArray.Retain(keep func(x InputBotInlineResultClass) bool) InputBotInlineResultClassArray func InputBotInlineResultClassArray.Sort(less func(a, b InputBotInlineResultClass) bool) InputBotInlineResultClassArray func InputBotInlineResultClassArray.SortStable(less func(a, b InputBotInlineResultClass) bool) InputBotInlineResultClassArray func (*MessagesSetInlineBotResultsRequest).MapResults() (value InputBotInlineResultClassArray)
InputBotInlineResultDocument represents TL type `inputBotInlineResultDocument#fff8fdc4`. Document (media of any type except for photos) See https://core.telegram.org/constructor/inputBotInlineResultDocument for reference. Result description Use SetDescription and GetDescription helpers. Document to send Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Result ID Message to send when the result is selected 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 InputBotInlineResultDocument from given interface. GetDescription returns value of Description conditional field and boolean which is true if field was set. GetDocument returns value of Document field. GetID returns value of ID field. 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. SetFlags sets flags for non-zero fields. 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. (*InputBotInlineResultDocument) Zero() bool *InputBotInlineResultDocument : InputBotInlineResultClass *InputBotInlineResultDocument : github.com/gotd/td/bin.BareDecoder *InputBotInlineResultDocument : github.com/gotd/td/bin.BareEncoder *InputBotInlineResultDocument : github.com/gotd/td/bin.Decoder *InputBotInlineResultDocument : github.com/gotd/td/bin.Encoder *InputBotInlineResultDocument : github.com/gotd/td/bin.Object *InputBotInlineResultDocument : github.com/gotd/td/tdp.Object *InputBotInlineResultDocument : fmt.Stringer func InputBotInlineResultDocumentArray.First() (v InputBotInlineResultDocument, ok bool) func InputBotInlineResultDocumentArray.Last() (v InputBotInlineResultDocument, ok bool) func (*InputBotInlineResultDocumentArray).Pop() (v InputBotInlineResultDocument, ok bool) func (*InputBotInlineResultDocumentArray).PopFirst() (v InputBotInlineResultDocument, ok bool)
InputBotInlineResultDocumentArray is adapter for slice of InputBotInlineResultDocument. 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 InputBotInlineResultDocument. Sort sorts slice of InputBotInlineResultDocument. SortStable sorts slice of InputBotInlineResultDocument. func InputBotInlineResultClassArray.AsInputBotInlineResultDocument() (to InputBotInlineResultDocumentArray) func InputBotInlineResultDocumentArray.Retain(keep func(x InputBotInlineResultDocument) bool) InputBotInlineResultDocumentArray func InputBotInlineResultDocumentArray.Sort(less func(a, b InputBotInlineResultDocument) bool) InputBotInlineResultDocumentArray func InputBotInlineResultDocumentArray.SortStable(less func(a, b InputBotInlineResultDocument) bool) InputBotInlineResultDocumentArray
InputBotInlineResultGame represents TL type `inputBotInlineResultGame#4fa417f2`. Game See https://core.telegram.org/constructor/inputBotInlineResultGame for reference. Result ID Message to send when the result is selected Game short name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputBotInlineResultGame from given interface. GetID returns value of ID field. GetSendMessage returns value of SendMessage field. GetShortName returns value of ShortName 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. (*InputBotInlineResultGame) Zero() bool *InputBotInlineResultGame : InputBotInlineResultClass *InputBotInlineResultGame : github.com/gotd/td/bin.BareDecoder *InputBotInlineResultGame : github.com/gotd/td/bin.BareEncoder *InputBotInlineResultGame : github.com/gotd/td/bin.Decoder *InputBotInlineResultGame : github.com/gotd/td/bin.Encoder *InputBotInlineResultGame : github.com/gotd/td/bin.Object *InputBotInlineResultGame : github.com/gotd/td/tdp.Object *InputBotInlineResultGame : fmt.Stringer func InputBotInlineResultGameArray.First() (v InputBotInlineResultGame, ok bool) func InputBotInlineResultGameArray.Last() (v InputBotInlineResultGame, ok bool) func (*InputBotInlineResultGameArray).Pop() (v InputBotInlineResultGame, ok bool) func (*InputBotInlineResultGameArray).PopFirst() (v InputBotInlineResultGame, ok bool)
InputBotInlineResultGameArray is adapter for slice of InputBotInlineResultGame. 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 InputBotInlineResultGame. Sort sorts slice of InputBotInlineResultGame. SortStable sorts slice of InputBotInlineResultGame. func InputBotInlineResultClassArray.AsInputBotInlineResultGame() (to InputBotInlineResultGameArray) func InputBotInlineResultGameArray.Retain(keep func(x InputBotInlineResultGame) bool) InputBotInlineResultGameArray func InputBotInlineResultGameArray.Sort(less func(a, b InputBotInlineResultGame) bool) InputBotInlineResultGameArray func InputBotInlineResultGameArray.SortStable(less func(a, b InputBotInlineResultGame) bool) InputBotInlineResultGameArray
InputBotInlineResultPhoto represents TL type `inputBotInlineResultPhoto#a8d864a7`. Photo See https://core.telegram.org/constructor/inputBotInlineResultPhoto for reference. Result ID Photo to send Message to send when the result is selected 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 InputBotInlineResultPhoto from given interface. GetID returns value of ID field. GetPhoto returns value of Photo field. GetSendMessage returns value of SendMessage field. GetType returns value of Type 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. (*InputBotInlineResultPhoto) Zero() bool *InputBotInlineResultPhoto : InputBotInlineResultClass *InputBotInlineResultPhoto : github.com/gotd/td/bin.BareDecoder *InputBotInlineResultPhoto : github.com/gotd/td/bin.BareEncoder *InputBotInlineResultPhoto : github.com/gotd/td/bin.Decoder *InputBotInlineResultPhoto : github.com/gotd/td/bin.Encoder *InputBotInlineResultPhoto : github.com/gotd/td/bin.Object *InputBotInlineResultPhoto : github.com/gotd/td/tdp.Object *InputBotInlineResultPhoto : fmt.Stringer func InputBotInlineResultPhotoArray.First() (v InputBotInlineResultPhoto, ok bool) func InputBotInlineResultPhotoArray.Last() (v InputBotInlineResultPhoto, ok bool) func (*InputBotInlineResultPhotoArray).Pop() (v InputBotInlineResultPhoto, ok bool) func (*InputBotInlineResultPhotoArray).PopFirst() (v InputBotInlineResultPhoto, ok bool)
InputBotInlineResultPhotoArray is adapter for slice of InputBotInlineResultPhoto. 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 InputBotInlineResultPhoto. Sort sorts slice of InputBotInlineResultPhoto. SortStable sorts slice of InputBotInlineResultPhoto. func InputBotInlineResultClassArray.AsInputBotInlineResultPhoto() (to InputBotInlineResultPhotoArray) func InputBotInlineResultPhotoArray.Retain(keep func(x InputBotInlineResultPhoto) bool) InputBotInlineResultPhotoArray func InputBotInlineResultPhotoArray.Sort(less func(a, b InputBotInlineResultPhoto) bool) InputBotInlineResultPhotoArray func InputBotInlineResultPhotoArray.SortStable(less func(a, b InputBotInlineResultPhoto) bool) InputBotInlineResultPhotoArray
InputChannel represents TL type `inputChannel#f35aec28`. Represents a channel See https://core.telegram.org/constructor/inputChannel for reference. Access hash taken from the channel¹ constructor Links: 1) https://core.telegram.org/constructor/channel Channel ID AsNotEmpty tries to map InputChannel to NotEmptyInputChannel. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputChannel from given interface. GetAccessHash returns value of AccessHash field. GetChannelID returns value of ChannelID 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. (*InputChannel) Zero() bool *InputChannel : InputChannelClass *InputChannel : NotEmptyInputChannel *InputChannel : github.com/gotd/td/bin.BareDecoder *InputChannel : github.com/gotd/td/bin.BareEncoder *InputChannel : github.com/gotd/td/bin.Decoder *InputChannel : github.com/gotd/td/bin.Encoder *InputChannel : github.com/gotd/td/bin.Object *InputChannel : github.com/gotd/td/tdp.Object *InputChannel : fmt.Stringer func (*Channel).AsInput() *InputChannel func InputChannelArray.First() (v InputChannel, ok bool) func InputChannelArray.Last() (v InputChannel, ok bool) func (*InputChannelArray).Pop() (v InputChannel, ok bool) func (*InputChannelArray).PopFirst() (v InputChannel, ok bool)
InputChannelArray is adapter for slice of InputChannel. 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 InputChannel. Sort sorts slice of InputChannel. SortStable sorts slice of InputChannel. func InputChannelArray.Retain(keep func(x InputChannel) bool) InputChannelArray func InputChannelArray.Sort(less func(a, b InputChannel) bool) InputChannelArray func InputChannelArray.SortStable(less func(a, b InputChannel) bool) InputChannelArray func InputChannelClassArray.AsInputChannel() (to InputChannelArray)
InputChannel boxes the InputChannelClass providing a helper. InputChannel InputChannelClass Decode implements bin.Decoder for InputChannelBox. Encode implements bin.Encode for InputChannelBox. *InputChannelBox : github.com/gotd/td/bin.Decoder *InputChannelBox : github.com/gotd/td/bin.Encoder *InputChannelBox : github.com/gotd/td/bin.Object
InputChannelClass represents InputChannel generic type. See https://core.telegram.org/type/InputChannel for reference. Example: g, err := tg.DecodeInputChannel(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputChannelEmpty: // inputChannelEmpty#ee8c1e86 case *tg.InputChannel: // inputChannel#f35aec28 case *tg.InputChannelFromMessage: // inputChannelFromMessage#5b934f9d default: panic(v) } AsNotEmpty tries to map InputChannelClass to NotEmptyInputChannel. ( InputChannelClass) Decode(b *bin.Buffer) error ( InputChannelClass) DecodeBare(b *bin.Buffer) error ( InputChannelClass) Encode(b *bin.Buffer) error ( InputChannelClass) 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. *InputChannel *InputChannelEmpty *InputChannelFromMessage InputChannelClass : github.com/gotd/td/bin.BareDecoder InputChannelClass : github.com/gotd/td/bin.BareEncoder InputChannelClass : github.com/gotd/td/bin.Decoder InputChannelClass : github.com/gotd/td/bin.Encoder InputChannelClass : github.com/gotd/td/bin.Object InputChannelClass : fmt.Stringer func DecodeInputChannel(buf *bin.Buffer) (InputChannelClass, error) func (*ChannelsCheckUsernameRequest).GetChannel() (value InputChannelClass) func (*ChannelsClickSponsoredMessageRequest).GetChannel() (value InputChannelClass) func (*ChannelsConvertToGigagroupRequest).GetChannel() (value InputChannelClass) func (*ChannelsCreateForumTopicRequest).GetChannel() (value InputChannelClass) func (*ChannelsDeactivateAllUsernamesRequest).GetChannel() (value InputChannelClass) func (*ChannelsDeleteChannelRequest).GetChannel() (value InputChannelClass) func (*ChannelsDeleteHistoryRequest).GetChannel() (value InputChannelClass) func (*ChannelsDeleteMessagesRequest).GetChannel() (value InputChannelClass) func (*ChannelsDeleteParticipantHistoryRequest).GetChannel() (value InputChannelClass) func (*ChannelsDeleteTopicHistoryRequest).GetChannel() (value InputChannelClass) func (*ChannelsEditAdminRequest).GetChannel() (value InputChannelClass) func (*ChannelsEditBannedRequest).GetChannel() (value InputChannelClass) func (*ChannelsEditCreatorRequest).GetChannel() (value InputChannelClass) func (*ChannelsEditForumTopicRequest).GetChannel() (value InputChannelClass) func (*ChannelsEditLocationRequest).GetChannel() (value InputChannelClass) func (*ChannelsEditPhotoRequest).GetChannel() (value InputChannelClass) func (*ChannelsEditTitleRequest).GetChannel() (value InputChannelClass) func (*ChannelsExportMessageLinkRequest).GetChannel() (value InputChannelClass) func (*ChannelsGetAdminLogRequest).GetChannel() (value InputChannelClass) func (*ChannelsGetChannelRecommendationsRequest).GetChannel() (value InputChannelClass) func (*ChannelsGetChannelsRequest).GetID() (value []InputChannelClass) func (*ChannelsGetForumTopicsByIDRequest).GetChannel() (value InputChannelClass) func (*ChannelsGetForumTopicsRequest).GetChannel() (value InputChannelClass) func (*ChannelsGetFullChannelRequest).GetChannel() (value InputChannelClass) func (*ChannelsGetMessagesRequest).GetChannel() (value InputChannelClass) func (*ChannelsGetParticipantRequest).GetChannel() (value InputChannelClass) func (*ChannelsGetParticipantsRequest).GetChannel() (value InputChannelClass) func (*ChannelsGetSponsoredMessagesRequest).GetChannel() (value InputChannelClass) func (*ChannelsInviteToChannelRequest).GetChannel() (value InputChannelClass) func (*ChannelsJoinChannelRequest).GetChannel() (value InputChannelClass) func (*ChannelsLeaveChannelRequest).GetChannel() (value InputChannelClass) func (*ChannelsReadHistoryRequest).GetChannel() (value InputChannelClass) func (*ChannelsReadMessageContentsRequest).GetChannel() (value InputChannelClass) func (*ChannelsReorderPinnedForumTopicsRequest).GetChannel() (value InputChannelClass) func (*ChannelsReorderUsernamesRequest).GetChannel() (value InputChannelClass) func (*ChannelsReportAntiSpamFalsePositiveRequest).GetChannel() (value InputChannelClass) func (*ChannelsReportSpamRequest).GetChannel() (value InputChannelClass) func (*ChannelsSetDiscussionGroupRequest).GetBroadcast() (value InputChannelClass) func (*ChannelsSetDiscussionGroupRequest).GetGroup() (value InputChannelClass) func (*ChannelsSetStickersRequest).GetChannel() (value InputChannelClass) func (*ChannelsToggleAntiSpamRequest).GetChannel() (value InputChannelClass) func (*ChannelsToggleForumRequest).GetChannel() (value InputChannelClass) func (*ChannelsToggleJoinRequestRequest).GetChannel() (value InputChannelClass) func (*ChannelsToggleJoinToSendRequest).GetChannel() (value InputChannelClass) func (*ChannelsToggleParticipantsHiddenRequest).GetChannel() (value InputChannelClass) func (*ChannelsTogglePreHistoryHiddenRequest).GetChannel() (value InputChannelClass) func (*ChannelsToggleSignaturesRequest).GetChannel() (value InputChannelClass) func (*ChannelsToggleSlowModeRequest).GetChannel() (value InputChannelClass) func (*ChannelsToggleUsernameRequest).GetChannel() (value InputChannelClass) func (*ChannelsToggleViewForumAsMessagesRequest).GetChannel() (value InputChannelClass) func (*ChannelsUpdateColorRequest).GetChannel() (value InputChannelClass) func (*ChannelsUpdateEmojiStatusRequest).GetChannel() (value InputChannelClass) func (*ChannelsUpdatePinnedForumTopicRequest).GetChannel() (value InputChannelClass) func (*ChannelsUpdateUsernameRequest).GetChannel() (value InputChannelClass) func (*ChannelsViewSponsoredMessageRequest).GetChannel() (value InputChannelClass) func (*Chat).GetMigratedTo() (value InputChannelClass, ok bool) func InputChannelClassArray.First() (v InputChannelClass, ok bool) func InputChannelClassArray.Last() (v InputChannelClass, ok bool) func (*InputChannelClassArray).Pop() (v InputChannelClass, ok bool) func (*InputChannelClassArray).PopFirst() (v InputChannelClass, ok bool) func (*InputMediaAreaChannelPost).GetChannel() (value InputChannelClass) func (*StatsGetBroadcastStatsRequest).GetChannel() (value InputChannelClass) func (*StatsGetMegagroupStatsRequest).GetChannel() (value InputChannelClass) func (*StatsGetMessagePublicForwardsRequest).GetChannel() (value InputChannelClass) func (*StatsGetMessageStatsRequest).GetChannel() (value InputChannelClass) func (*UpdatesGetChannelDifferenceRequest).GetChannel() (value InputChannelClass) func (*Chat).SetMigratedTo(value InputChannelClass) func (*Client).ChannelsConvertToGigagroup(ctx context.Context, channel InputChannelClass) (UpdatesClass, error) func (*Client).ChannelsDeactivateAllUsernames(ctx context.Context, channel InputChannelClass) (bool, error) func (*Client).ChannelsDeleteChannel(ctx context.Context, channel InputChannelClass) (UpdatesClass, error) func (*Client).ChannelsGetChannelRecommendations(ctx context.Context, channel InputChannelClass) (MessagesChatsClass, error) func (*Client).ChannelsGetChannels(ctx context.Context, id []InputChannelClass) (MessagesChatsClass, error) func (*Client).ChannelsGetFullChannel(ctx context.Context, channel InputChannelClass) (*MessagesChatFull, error) func (*Client).ChannelsGetSponsoredMessages(ctx context.Context, channel InputChannelClass) (MessagesSponsoredMessagesClass, error) func (*Client).ChannelsJoinChannel(ctx context.Context, channel InputChannelClass) (UpdatesClass, error) func (*Client).ChannelsLeaveChannel(ctx context.Context, channel InputChannelClass) (UpdatesClass, error)
InputChannelClassArray is adapter for slice of InputChannelClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsInputChannel returns copy with only InputChannel constructors. AsInputChannelFromMessage returns copy with only InputChannelFromMessage constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of InputChannelClass. Sort sorts slice of InputChannelClass. SortStable sorts slice of InputChannelClass. func (*ChannelsGetChannelsRequest).MapID() (value InputChannelClassArray) func InputChannelClassArray.Retain(keep func(x InputChannelClass) bool) InputChannelClassArray func InputChannelClassArray.Sort(less func(a, b InputChannelClass) bool) InputChannelClassArray func InputChannelClassArray.SortStable(less func(a, b InputChannelClass) bool) InputChannelClassArray
InputChannelEmpty represents TL type `inputChannelEmpty#ee8c1e86`. Represents the absence of a channel See https://core.telegram.org/constructor/inputChannelEmpty for reference. AsNotEmpty tries to map InputChannelEmpty to NotEmptyInputChannel. 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. (*InputChannelEmpty) Zero() bool *InputChannelEmpty : InputChannelClass *InputChannelEmpty : github.com/gotd/td/bin.BareDecoder *InputChannelEmpty : github.com/gotd/td/bin.BareEncoder *InputChannelEmpty : github.com/gotd/td/bin.Decoder *InputChannelEmpty : github.com/gotd/td/bin.Encoder *InputChannelEmpty : github.com/gotd/td/bin.Object *InputChannelEmpty : github.com/gotd/td/tdp.Object *InputChannelEmpty : fmt.Stringer
InputChannelFromMessage represents TL type `inputChannelFromMessage#5b934f9d`. Defines a min¹ channel that was seen in a certain message of a certain chat. Links: 1. https://core.telegram.org/api/min See https://core.telegram.org/constructor/inputChannelFromMessage for reference. The channel ID The message ID in the chat where the channel was seen The chat where the channel was seen AsNotEmpty tries to map InputChannelFromMessage to NotEmptyInputChannel. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputChannelFromMessage from given interface. GetChannelID returns value of ChannelID field. GetMsgID returns value of MsgID 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. (*InputChannelFromMessage) Zero() bool *InputChannelFromMessage : InputChannelClass *InputChannelFromMessage : NotEmptyInputChannel *InputChannelFromMessage : github.com/gotd/td/bin.BareDecoder *InputChannelFromMessage : github.com/gotd/td/bin.BareEncoder *InputChannelFromMessage : github.com/gotd/td/bin.Decoder *InputChannelFromMessage : github.com/gotd/td/bin.Encoder *InputChannelFromMessage : github.com/gotd/td/bin.Object *InputChannelFromMessage : github.com/gotd/td/tdp.Object *InputChannelFromMessage : fmt.Stringer func InputChannelFromMessageArray.First() (v InputChannelFromMessage, ok bool) func InputChannelFromMessageArray.Last() (v InputChannelFromMessage, ok bool) func (*InputChannelFromMessageArray).Pop() (v InputChannelFromMessage, ok bool) func (*InputChannelFromMessageArray).PopFirst() (v InputChannelFromMessage, ok bool)
InputChannelFromMessageArray is adapter for slice of InputChannelFromMessage. 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 InputChannelFromMessage. Sort sorts slice of InputChannelFromMessage. SortStable sorts slice of InputChannelFromMessage. func InputChannelClassArray.AsInputChannelFromMessage() (to InputChannelFromMessageArray) func InputChannelFromMessageArray.Retain(keep func(x InputChannelFromMessage) bool) InputChannelFromMessageArray func InputChannelFromMessageArray.Sort(less func(a, b InputChannelFromMessage) bool) InputChannelFromMessageArray func InputChannelFromMessageArray.SortStable(less func(a, b InputChannelFromMessage) bool) InputChannelFromMessageArray
InputChatlistDialogFilter represents TL type `inputChatlistDialogFilter#f3e0da33`. Folder ID See https://core.telegram.org/constructor/inputChatlistDialogFilter for reference. Folder¹ ID Links: 1) https://core.telegram.org/api/folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputChatlistDialogFilter from given interface. GetFilterID returns value of FilterID 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. (*InputChatlistDialogFilter) Zero() bool *InputChatlistDialogFilter : github.com/gotd/td/bin.BareDecoder *InputChatlistDialogFilter : github.com/gotd/td/bin.BareEncoder *InputChatlistDialogFilter : github.com/gotd/td/bin.Decoder *InputChatlistDialogFilter : github.com/gotd/td/bin.Encoder *InputChatlistDialogFilter : github.com/gotd/td/bin.Object *InputChatlistDialogFilter : github.com/gotd/td/tdp.Object *InputChatlistDialogFilter : fmt.Stringer func (*ChatlistsDeleteExportedInviteRequest).GetChatlist() (value InputChatlistDialogFilter) func (*ChatlistsEditExportedInviteRequest).GetChatlist() (value InputChatlistDialogFilter) func (*ChatlistsExportChatlistInviteRequest).GetChatlist() (value InputChatlistDialogFilter) func (*ChatlistsGetChatlistUpdatesRequest).GetChatlist() (value InputChatlistDialogFilter) func (*ChatlistsGetExportedInvitesRequest).GetChatlist() (value InputChatlistDialogFilter) func (*ChatlistsGetLeaveChatlistSuggestionsRequest).GetChatlist() (value InputChatlistDialogFilter) func (*ChatlistsHideChatlistUpdatesRequest).GetChatlist() (value InputChatlistDialogFilter) func (*ChatlistsJoinChatlistUpdatesRequest).GetChatlist() (value InputChatlistDialogFilter) func (*ChatlistsLeaveChatlistRequest).GetChatlist() (value InputChatlistDialogFilter) func (*DialogFilter).AsInputChatlist() *InputChatlistDialogFilter func (*Client).ChatlistsGetChatlistUpdates(ctx context.Context, chatlist InputChatlistDialogFilter) (*ChatlistsChatlistUpdates, error) func (*Client).ChatlistsGetExportedInvites(ctx context.Context, chatlist InputChatlistDialogFilter) (*ChatlistsExportedInvites, error) func (*Client).ChatlistsGetLeaveChatlistSuggestions(ctx context.Context, chatlist InputChatlistDialogFilter) ([]PeerClass, error) func (*Client).ChatlistsHideChatlistUpdates(ctx context.Context, chatlist InputChatlistDialogFilter) (bool, error)
InputChatPhoto represents TL type `inputChatPhoto#8953ad37`. Existing photo to be set as a chat profile photo. See https://core.telegram.org/constructor/inputChatPhoto for reference. Existing photo Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputChatPhoto 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. (*InputChatPhoto) Zero() bool *InputChatPhoto : InputChatPhotoClass *InputChatPhoto : github.com/gotd/td/bin.BareDecoder *InputChatPhoto : github.com/gotd/td/bin.BareEncoder *InputChatPhoto : github.com/gotd/td/bin.Decoder *InputChatPhoto : github.com/gotd/td/bin.Encoder *InputChatPhoto : github.com/gotd/td/bin.Object *InputChatPhoto : github.com/gotd/td/tdp.Object *InputChatPhoto : fmt.Stringer func InputChatPhotoArray.First() (v InputChatPhoto, ok bool) func InputChatPhotoArray.Last() (v InputChatPhoto, ok bool) func (*InputChatPhotoArray).Pop() (v InputChatPhoto, ok bool) func (*InputChatPhotoArray).PopFirst() (v InputChatPhoto, ok bool)
InputChatPhotoArray is adapter for slice of InputChatPhoto. 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 InputChatPhoto. Sort sorts slice of InputChatPhoto. SortStable sorts slice of InputChatPhoto. func InputChatPhotoArray.Retain(keep func(x InputChatPhoto) bool) InputChatPhotoArray func InputChatPhotoArray.Sort(less func(a, b InputChatPhoto) bool) InputChatPhotoArray func InputChatPhotoArray.SortStable(less func(a, b InputChatPhoto) bool) InputChatPhotoArray func InputChatPhotoClassArray.AsInputChatPhoto() (to InputChatPhotoArray)
InputChatPhoto boxes the InputChatPhotoClass providing a helper. InputChatPhoto InputChatPhotoClass Decode implements bin.Decoder for InputChatPhotoBox. Encode implements bin.Encode for InputChatPhotoBox. *InputChatPhotoBox : github.com/gotd/td/bin.Decoder *InputChatPhotoBox : github.com/gotd/td/bin.Encoder *InputChatPhotoBox : github.com/gotd/td/bin.Object
InputChatPhotoClass represents InputChatPhoto generic type. See https://core.telegram.org/type/InputChatPhoto for reference. Example: g, err := tg.DecodeInputChatPhoto(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputChatPhotoEmpty: // inputChatPhotoEmpty#1ca48f57 case *tg.InputChatUploadedPhoto: // inputChatUploadedPhoto#bdcdaec0 case *tg.InputChatPhoto: // inputChatPhoto#8953ad37 default: panic(v) } ( InputChatPhotoClass) Decode(b *bin.Buffer) error ( InputChatPhotoClass) DecodeBare(b *bin.Buffer) error ( InputChatPhotoClass) Encode(b *bin.Buffer) error ( InputChatPhotoClass) 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. *InputChatPhoto *InputChatPhotoEmpty *InputChatUploadedPhoto InputChatPhotoClass : github.com/gotd/td/bin.BareDecoder InputChatPhotoClass : github.com/gotd/td/bin.BareEncoder InputChatPhotoClass : github.com/gotd/td/bin.Decoder InputChatPhotoClass : github.com/gotd/td/bin.Encoder InputChatPhotoClass : github.com/gotd/td/bin.Object InputChatPhotoClass : fmt.Stringer func DecodeInputChatPhoto(buf *bin.Buffer) (InputChatPhotoClass, error) func (*ChannelsEditPhotoRequest).GetPhoto() (value InputChatPhotoClass) func InputChatPhotoClassArray.First() (v InputChatPhotoClass, ok bool) func InputChatPhotoClassArray.Last() (v InputChatPhotoClass, ok bool) func (*InputChatPhotoClassArray).Pop() (v InputChatPhotoClass, ok bool) func (*InputChatPhotoClassArray).PopFirst() (v InputChatPhotoClass, ok bool) func (*MessagesEditChatPhotoRequest).GetPhoto() (value InputChatPhotoClass)
InputChatPhotoClassArray is adapter for slice of InputChatPhotoClass. AsInputChatPhoto returns copy with only InputChatPhoto constructors. AsInputChatUploadedPhoto returns copy with only InputChatUploadedPhoto 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 InputChatPhotoClass. Sort sorts slice of InputChatPhotoClass. SortStable sorts slice of InputChatPhotoClass. func InputChatPhotoClassArray.Retain(keep func(x InputChatPhotoClass) bool) InputChatPhotoClassArray func InputChatPhotoClassArray.Sort(less func(a, b InputChatPhotoClass) bool) InputChatPhotoClassArray func InputChatPhotoClassArray.SortStable(less func(a, b InputChatPhotoClass) bool) InputChatPhotoClassArray
InputChatPhotoEmpty represents TL type `inputChatPhotoEmpty#1ca48f57`. Empty constructor, remove group photo. See https://core.telegram.org/constructor/inputChatPhotoEmpty 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. (*InputChatPhotoEmpty) Zero() bool *InputChatPhotoEmpty : InputChatPhotoClass *InputChatPhotoEmpty : github.com/gotd/td/bin.BareDecoder *InputChatPhotoEmpty : github.com/gotd/td/bin.BareEncoder *InputChatPhotoEmpty : github.com/gotd/td/bin.Decoder *InputChatPhotoEmpty : github.com/gotd/td/bin.Encoder *InputChatPhotoEmpty : github.com/gotd/td/bin.Object *InputChatPhotoEmpty : github.com/gotd/td/tdp.Object *InputChatPhotoEmpty : fmt.Stringer
InputChatUploadedPhoto represents TL type `inputChatUploadedPhoto#bdcdaec0`. New photo to be set as group profile photo. The file, video and video_emoji_markup flags are mutually exclusive. See https://core.telegram.org/constructor/inputChatUploadedPhoto for reference. File saved in parts using the method upload.saveFilePart¹ Links: 1) https://core.telegram.org/method/upload.saveFilePart Use SetFile and GetFile helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Square video for animated profile picture Use SetVideo and GetVideo helpers. Animated sticker profile picture, must contain either a videoSizeEmojiMarkup¹ or a videoSizeStickerMarkup² constructor. Links: 1) https://core.telegram.org/constructor/videoSizeEmojiMarkup 2) https://core.telegram.org/constructor/videoSizeStickerMarkup Use SetVideoEmojiMarkup and GetVideoEmojiMarkup helpers. Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set. Use SetVideoStartTs and GetVideoStartTs helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputChatUploadedPhoto from given interface. GetFile returns value of File conditional field and boolean which is true if field was set. GetVideo returns value of Video conditional field and boolean which is true if field was set. GetVideoEmojiMarkup returns value of VideoEmojiMarkup conditional field and boolean which is true if field was set. GetVideoStartTs returns value of VideoStartTs conditional field and boolean which is true if field was set. SetFile sets value of File conditional field. SetFlags sets flags for non-zero fields. SetVideo sets value of Video conditional field. SetVideoEmojiMarkup sets value of VideoEmojiMarkup conditional field. SetVideoStartTs sets value of VideoStartTs 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. (*InputChatUploadedPhoto) Zero() bool *InputChatUploadedPhoto : InputChatPhotoClass *InputChatUploadedPhoto : github.com/gotd/td/bin.BareDecoder *InputChatUploadedPhoto : github.com/gotd/td/bin.BareEncoder *InputChatUploadedPhoto : github.com/gotd/td/bin.Decoder *InputChatUploadedPhoto : github.com/gotd/td/bin.Encoder *InputChatUploadedPhoto : github.com/gotd/td/bin.Object *InputChatUploadedPhoto : github.com/gotd/td/tdp.Object *InputChatUploadedPhoto : fmt.Stringer func InputChatUploadedPhotoArray.First() (v InputChatUploadedPhoto, ok bool) func InputChatUploadedPhotoArray.Last() (v InputChatUploadedPhoto, ok bool) func (*InputChatUploadedPhotoArray).Pop() (v InputChatUploadedPhoto, ok bool) func (*InputChatUploadedPhotoArray).PopFirst() (v InputChatUploadedPhoto, ok bool)
InputChatUploadedPhotoArray is adapter for slice of InputChatUploadedPhoto. 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 InputChatUploadedPhoto. Sort sorts slice of InputChatUploadedPhoto. SortStable sorts slice of InputChatUploadedPhoto. func InputChatPhotoClassArray.AsInputChatUploadedPhoto() (to InputChatUploadedPhotoArray) func InputChatUploadedPhotoArray.Retain(keep func(x InputChatUploadedPhoto) bool) InputChatUploadedPhotoArray func InputChatUploadedPhotoArray.Sort(less func(a, b InputChatUploadedPhoto) bool) InputChatUploadedPhotoArray func InputChatUploadedPhotoArray.SortStable(less func(a, b InputChatUploadedPhoto) bool) InputChatUploadedPhotoArray
InputCheckPasswordEmpty represents TL type `inputCheckPasswordEmpty#9880f658`. There is no password See https://core.telegram.org/constructor/inputCheckPasswordEmpty for reference. AsNotEmpty tries to map InputCheckPasswordEmpty to InputCheckPasswordSRP. 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. (*InputCheckPasswordEmpty) Zero() bool *InputCheckPasswordEmpty : InputCheckPasswordSRPClass *InputCheckPasswordEmpty : github.com/gotd/td/bin.BareDecoder *InputCheckPasswordEmpty : github.com/gotd/td/bin.BareEncoder *InputCheckPasswordEmpty : github.com/gotd/td/bin.Decoder *InputCheckPasswordEmpty : github.com/gotd/td/bin.Encoder *InputCheckPasswordEmpty : github.com/gotd/td/bin.Object *InputCheckPasswordEmpty : github.com/gotd/td/tdp.Object *InputCheckPasswordEmpty : fmt.Stringer
InputCheckPasswordSRP represents TL type `inputCheckPasswordSRP#d27ff082`. Constructor for checking the validity of a 2FA SRP password (see SRP¹) Links: 1. https://core.telegram.org/api/srp See https://core.telegram.org/constructor/inputCheckPasswordSRP for reference. A parameter (see SRP¹) Links: 1) https://core.telegram.org/api/srp M1 parameter (see SRP¹) Links: 1) https://core.telegram.org/api/srp SRP ID¹ Links: 1) https://core.telegram.org/api/srp AsNotEmpty tries to map InputCheckPasswordSRP to InputCheckPasswordSRP. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputCheckPasswordSRP from given interface. GetA returns value of A field. GetM1 returns value of M1 field. GetSRPID returns value of SRPID 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. (*InputCheckPasswordSRP) Zero() bool *InputCheckPasswordSRP : InputCheckPasswordSRPClass *InputCheckPasswordSRP : github.com/gotd/td/bin.BareDecoder *InputCheckPasswordSRP : github.com/gotd/td/bin.BareEncoder *InputCheckPasswordSRP : github.com/gotd/td/bin.Decoder *InputCheckPasswordSRP : github.com/gotd/td/bin.Encoder *InputCheckPasswordSRP : github.com/gotd/td/bin.Object *InputCheckPasswordSRP : github.com/gotd/td/tdp.Object *InputCheckPasswordSRP : fmt.Stringer func (*AccountDeleteAccountRequest).GetPasswordAsNotEmpty() (*InputCheckPasswordSRP, bool) func (*AccountGetPasswordSettingsRequest).GetPasswordAsNotEmpty() (*InputCheckPasswordSRP, bool) func (*AccountGetTmpPasswordRequest).GetPasswordAsNotEmpty() (*InputCheckPasswordSRP, bool) func (*AccountUpdatePasswordSettingsRequest).GetPasswordAsNotEmpty() (*InputCheckPasswordSRP, bool) func (*AuthCheckPasswordRequest).GetPasswordAsNotEmpty() (*InputCheckPasswordSRP, bool) func (*ChannelsEditCreatorRequest).GetPasswordAsNotEmpty() (*InputCheckPasswordSRP, bool) func (*InputCheckPasswordEmpty).AsNotEmpty() (*InputCheckPasswordSRP, bool) func (*InputCheckPasswordSRP).AsNotEmpty() (*InputCheckPasswordSRP, bool) func InputCheckPasswordSRPArray.First() (v InputCheckPasswordSRP, ok bool) func InputCheckPasswordSRPArray.Last() (v InputCheckPasswordSRP, ok bool) func (*InputCheckPasswordSRPArray).Pop() (v InputCheckPasswordSRP, ok bool) func (*InputCheckPasswordSRPArray).PopFirst() (v InputCheckPasswordSRP, ok bool) func InputCheckPasswordSRPClass.AsNotEmpty() (*InputCheckPasswordSRP, bool) func InputCheckPasswordSRPClassArray.AppendOnlyNotEmpty(to []*InputCheckPasswordSRP) []*InputCheckPasswordSRP func InputCheckPasswordSRPClassArray.AsNotEmpty() (to []*InputCheckPasswordSRP) func InputCheckPasswordSRPClassArray.FirstAsNotEmpty() (v *InputCheckPasswordSRP, ok bool) func InputCheckPasswordSRPClassArray.LastAsNotEmpty() (v *InputCheckPasswordSRP, ok bool) func (*InputCheckPasswordSRPClassArray).PopAsNotEmpty() (v *InputCheckPasswordSRP, ok bool) func (*InputCheckPasswordSRPClassArray).PopFirstAsNotEmpty() (v *InputCheckPasswordSRP, ok bool) func (*MessagesGetBotCallbackAnswerRequest).GetPasswordAsNotEmpty() (*InputCheckPasswordSRP, bool) func github.com/gotd/td/telegram/auth.PasswordHash(password []byte, srpID int64, srpB, secureRandom []byte, alg PasswordKdfAlgoClass) (*InputCheckPasswordSRP, error) func InputCheckPasswordSRPClassArray.AppendOnlyNotEmpty(to []*InputCheckPasswordSRP) []*InputCheckPasswordSRP
InputCheckPasswordSRPArray is adapter for slice of InputCheckPasswordSRP. 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 InputCheckPasswordSRP. Sort sorts slice of InputCheckPasswordSRP. SortStable sorts slice of InputCheckPasswordSRP. func InputCheckPasswordSRPArray.Retain(keep func(x InputCheckPasswordSRP) bool) InputCheckPasswordSRPArray func InputCheckPasswordSRPArray.Sort(less func(a, b InputCheckPasswordSRP) bool) InputCheckPasswordSRPArray func InputCheckPasswordSRPArray.SortStable(less func(a, b InputCheckPasswordSRP) bool) InputCheckPasswordSRPArray func InputCheckPasswordSRPClassArray.AsInputCheckPasswordSRP() (to InputCheckPasswordSRPArray)
InputCheckPasswordSRP boxes the InputCheckPasswordSRPClass providing a helper. InputCheckPasswordSRP InputCheckPasswordSRPClass Decode implements bin.Decoder for InputCheckPasswordSRPBox. Encode implements bin.Encode for InputCheckPasswordSRPBox. *InputCheckPasswordSRPBox : github.com/gotd/td/bin.Decoder *InputCheckPasswordSRPBox : github.com/gotd/td/bin.Encoder *InputCheckPasswordSRPBox : github.com/gotd/td/bin.Object
InputCheckPasswordSRPClass represents InputCheckPasswordSRP generic type. See https://core.telegram.org/type/InputCheckPasswordSRP for reference. Example: g, err := tg.DecodeInputCheckPasswordSRP(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputCheckPasswordEmpty: // inputCheckPasswordEmpty#9880f658 case *tg.InputCheckPasswordSRP: // inputCheckPasswordSRP#d27ff082 default: panic(v) } AsNotEmpty tries to map InputCheckPasswordSRPClass to InputCheckPasswordSRP. ( InputCheckPasswordSRPClass) Decode(b *bin.Buffer) error ( InputCheckPasswordSRPClass) DecodeBare(b *bin.Buffer) error ( InputCheckPasswordSRPClass) Encode(b *bin.Buffer) error ( InputCheckPasswordSRPClass) 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. *InputCheckPasswordEmpty *InputCheckPasswordSRP InputCheckPasswordSRPClass : github.com/gotd/td/bin.BareDecoder InputCheckPasswordSRPClass : github.com/gotd/td/bin.BareEncoder InputCheckPasswordSRPClass : github.com/gotd/td/bin.Decoder InputCheckPasswordSRPClass : github.com/gotd/td/bin.Encoder InputCheckPasswordSRPClass : github.com/gotd/td/bin.Object InputCheckPasswordSRPClass : fmt.Stringer func DecodeInputCheckPasswordSRP(buf *bin.Buffer) (InputCheckPasswordSRPClass, error) func (*AccountDeleteAccountRequest).GetPassword() (value InputCheckPasswordSRPClass, ok bool) func (*AccountGetPasswordSettingsRequest).GetPassword() (value InputCheckPasswordSRPClass) func (*AccountGetTmpPasswordRequest).GetPassword() (value InputCheckPasswordSRPClass) func (*AccountUpdatePasswordSettingsRequest).GetPassword() (value InputCheckPasswordSRPClass) func (*AuthCheckPasswordRequest).GetPassword() (value InputCheckPasswordSRPClass) func (*ChannelsEditCreatorRequest).GetPassword() (value InputCheckPasswordSRPClass) func InputCheckPasswordSRPClassArray.First() (v InputCheckPasswordSRPClass, ok bool) func InputCheckPasswordSRPClassArray.Last() (v InputCheckPasswordSRPClass, ok bool) func (*InputCheckPasswordSRPClassArray).Pop() (v InputCheckPasswordSRPClass, ok bool) func (*InputCheckPasswordSRPClassArray).PopFirst() (v InputCheckPasswordSRPClass, ok bool) func (*MessagesGetBotCallbackAnswerRequest).GetPassword() (value InputCheckPasswordSRPClass, ok bool) func (*AccountDeleteAccountRequest).SetPassword(value InputCheckPasswordSRPClass) func (*Client).AccountGetPasswordSettings(ctx context.Context, password InputCheckPasswordSRPClass) (*AccountPasswordSettings, error) func (*Client).AuthCheckPassword(ctx context.Context, password InputCheckPasswordSRPClass) (AuthAuthorizationClass, error) func (*MessagesGetBotCallbackAnswerRequest).SetPassword(value InputCheckPasswordSRPClass)
InputCheckPasswordSRPClassArray is adapter for slice of InputCheckPasswordSRPClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsInputCheckPasswordSRP returns copy with only InputCheckPasswordSRP constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of InputCheckPasswordSRPClass. Sort sorts slice of InputCheckPasswordSRPClass. SortStable sorts slice of InputCheckPasswordSRPClass. func InputCheckPasswordSRPClassArray.Retain(keep func(x InputCheckPasswordSRPClass) bool) InputCheckPasswordSRPClassArray func InputCheckPasswordSRPClassArray.Sort(less func(a, b InputCheckPasswordSRPClass) bool) InputCheckPasswordSRPClassArray func InputCheckPasswordSRPClassArray.SortStable(less func(a, b InputCheckPasswordSRPClass) bool) InputCheckPasswordSRPClassArray
InputClientProxy represents TL type `inputClientProxy#75588b3f`. Info about an MTProxy¹ used to connect. Links: 1. https://core.telegram.org/mtproto/mtproto-transports#transport-obfuscation See https://core.telegram.org/constructor/inputClientProxy for reference. Proxy address Proxy port Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputClientProxy from given interface. GetAddress returns value of Address field. GetPort returns value of Port 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. (*InputClientProxy) Zero() bool *InputClientProxy : github.com/gotd/td/bin.BareDecoder *InputClientProxy : github.com/gotd/td/bin.BareEncoder *InputClientProxy : github.com/gotd/td/bin.Decoder *InputClientProxy : github.com/gotd/td/bin.Encoder *InputClientProxy : github.com/gotd/td/bin.Object *InputClientProxy : github.com/gotd/td/tdp.Object *InputClientProxy : fmt.Stringer func (*InitConnectionRequest).GetProxy() (value InputClientProxy, ok bool) func (*InitConnectionRequest).SetProxy(value InputClientProxy)
InputDialogPeer represents TL type `inputDialogPeer#fcaafeb7`. A peer See https://core.telegram.org/constructor/inputDialogPeer for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputDialogPeer 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. (*InputDialogPeer) Zero() bool *InputDialogPeer : InputDialogPeerClass *InputDialogPeer : github.com/gotd/td/bin.BareDecoder *InputDialogPeer : github.com/gotd/td/bin.BareEncoder *InputDialogPeer : github.com/gotd/td/bin.Decoder *InputDialogPeer : github.com/gotd/td/bin.Encoder *InputDialogPeer : github.com/gotd/td/bin.Object *InputDialogPeer : github.com/gotd/td/tdp.Object *InputDialogPeer : fmt.Stringer func InputDialogPeerArray.First() (v InputDialogPeer, ok bool) func InputDialogPeerArray.Last() (v InputDialogPeer, ok bool) func (*InputDialogPeerArray).Pop() (v InputDialogPeer, ok bool) func (*InputDialogPeerArray).PopFirst() (v InputDialogPeer, ok bool)
InputDialogPeerArray is adapter for slice of InputDialogPeer. 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 InputDialogPeer. Sort sorts slice of InputDialogPeer. SortStable sorts slice of InputDialogPeer. func InputDialogPeerArray.Retain(keep func(x InputDialogPeer) bool) InputDialogPeerArray func InputDialogPeerArray.Sort(less func(a, b InputDialogPeer) bool) InputDialogPeerArray func InputDialogPeerArray.SortStable(less func(a, b InputDialogPeer) bool) InputDialogPeerArray func InputDialogPeerClassArray.AsInputDialogPeer() (to InputDialogPeerArray)
InputDialogPeer boxes the InputDialogPeerClass providing a helper. InputDialogPeer InputDialogPeerClass Decode implements bin.Decoder for InputDialogPeerBox. Encode implements bin.Encode for InputDialogPeerBox. *InputDialogPeerBox : github.com/gotd/td/bin.Decoder *InputDialogPeerBox : github.com/gotd/td/bin.Encoder *InputDialogPeerBox : github.com/gotd/td/bin.Object
InputDialogPeerClass represents InputDialogPeer generic type. See https://core.telegram.org/type/InputDialogPeer for reference. Example: g, err := tg.DecodeInputDialogPeer(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputDialogPeer: // inputDialogPeer#fcaafeb7 case *tg.InputDialogPeerFolder: // inputDialogPeerFolder#64600527 default: panic(v) } ( InputDialogPeerClass) Decode(b *bin.Buffer) error ( InputDialogPeerClass) DecodeBare(b *bin.Buffer) error ( InputDialogPeerClass) Encode(b *bin.Buffer) error ( InputDialogPeerClass) 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. *InputDialogPeer *InputDialogPeerFolder InputDialogPeerClass : github.com/gotd/td/bin.BareDecoder InputDialogPeerClass : github.com/gotd/td/bin.BareEncoder InputDialogPeerClass : github.com/gotd/td/bin.Decoder InputDialogPeerClass : github.com/gotd/td/bin.Encoder InputDialogPeerClass : github.com/gotd/td/bin.Object InputDialogPeerClass : fmt.Stringer func DecodeInputDialogPeer(buf *bin.Buffer) (InputDialogPeerClass, error) func InputDialogPeerClassArray.First() (v InputDialogPeerClass, ok bool) func InputDialogPeerClassArray.Last() (v InputDialogPeerClass, ok bool) func (*InputDialogPeerClassArray).Pop() (v InputDialogPeerClass, ok bool) func (*InputDialogPeerClassArray).PopFirst() (v InputDialogPeerClass, ok bool) func (*MessagesGetPeerDialogsRequest).GetPeers() (value []InputDialogPeerClass) func (*MessagesMarkDialogUnreadRequest).GetPeer() (value InputDialogPeerClass) func (*MessagesReorderPinnedDialogsRequest).GetOrder() (value []InputDialogPeerClass) func (*MessagesToggleDialogPinRequest).GetPeer() (value InputDialogPeerClass) func (*Client).MessagesGetPeerDialogs(ctx context.Context, peers []InputDialogPeerClass) (*MessagesPeerDialogs, error)
InputDialogPeerClassArray is adapter for slice of InputDialogPeerClass. AsInputDialogPeer returns copy with only InputDialogPeer constructors. AsInputDialogPeerFolder returns copy with only InputDialogPeerFolder 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 InputDialogPeerClass. Sort sorts slice of InputDialogPeerClass. SortStable sorts slice of InputDialogPeerClass. func InputDialogPeerClassArray.Retain(keep func(x InputDialogPeerClass) bool) InputDialogPeerClassArray func InputDialogPeerClassArray.Sort(less func(a, b InputDialogPeerClass) bool) InputDialogPeerClassArray func InputDialogPeerClassArray.SortStable(less func(a, b InputDialogPeerClass) bool) InputDialogPeerClassArray func (*MessagesGetPeerDialogsRequest).MapPeers() (value InputDialogPeerClassArray) func (*MessagesReorderPinnedDialogsRequest).MapOrder() (value InputDialogPeerClassArray)
InputDialogPeerFolder represents TL type `inputDialogPeerFolder#64600527`. All peers in a peer folder¹ Links: 1. https://core.telegram.org/api/folders#peer-folders See https://core.telegram.org/constructor/inputDialogPeerFolder for reference. Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputDialogPeerFolder from given interface. GetFolderID returns value of FolderID 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. (*InputDialogPeerFolder) Zero() bool *InputDialogPeerFolder : InputDialogPeerClass *InputDialogPeerFolder : github.com/gotd/td/bin.BareDecoder *InputDialogPeerFolder : github.com/gotd/td/bin.BareEncoder *InputDialogPeerFolder : github.com/gotd/td/bin.Decoder *InputDialogPeerFolder : github.com/gotd/td/bin.Encoder *InputDialogPeerFolder : github.com/gotd/td/bin.Object *InputDialogPeerFolder : github.com/gotd/td/tdp.Object *InputDialogPeerFolder : fmt.Stringer func (*Dialog).AsInputDialogPeerFolder() *InputDialogPeerFolder func (*DialogPeerFolder).AsInput() *InputDialogPeerFolder func InputDialogPeerFolderArray.First() (v InputDialogPeerFolder, ok bool) func InputDialogPeerFolderArray.Last() (v InputDialogPeerFolder, ok bool) func (*InputDialogPeerFolderArray).Pop() (v InputDialogPeerFolder, ok bool) func (*InputDialogPeerFolderArray).PopFirst() (v InputDialogPeerFolder, ok bool)
InputDialogPeerFolderArray is adapter for slice of InputDialogPeerFolder. 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 InputDialogPeerFolder. Sort sorts slice of InputDialogPeerFolder. SortStable sorts slice of InputDialogPeerFolder. func InputDialogPeerClassArray.AsInputDialogPeerFolder() (to InputDialogPeerFolderArray) func InputDialogPeerFolderArray.Retain(keep func(x InputDialogPeerFolder) bool) InputDialogPeerFolderArray func InputDialogPeerFolderArray.Sort(less func(a, b InputDialogPeerFolder) bool) InputDialogPeerFolderArray func InputDialogPeerFolderArray.SortStable(less func(a, b InputDialogPeerFolder) bool) InputDialogPeerFolderArray
InputDocument represents TL type `inputDocument#1abfb575`. Defines a document for subsequent interaction. See https://core.telegram.org/constructor/inputDocument for reference. access_hash parameter from the document¹ constructor Links: 1) https://core.telegram.org/constructor/document File reference¹ Links: 1) https://core.telegram.org/api/file_reference Document ID AsInputDocumentFileLocation tries to map InputDocument to InputDocumentFileLocation. AsNotEmpty tries to map InputDocument to InputDocument. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputDocument from given interface. GetAccessHash returns value of AccessHash field. GetFileReference returns value of FileReference 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. (*InputDocument) Zero() bool *InputDocument : InputDocumentClass *InputDocument : github.com/gotd/td/bin.BareDecoder *InputDocument : github.com/gotd/td/bin.BareEncoder *InputDocument : github.com/gotd/td/bin.Decoder *InputDocument : github.com/gotd/td/bin.Encoder *InputDocument : github.com/gotd/td/bin.Object *InputDocument : github.com/gotd/td/tdp.Object *InputDocument : fmt.Stringer func (*AccountCreateThemeRequest).GetDocumentAsNotEmpty() (*InputDocument, bool) func (*AccountSaveRingtoneRequest).GetIDAsNotEmpty() (*InputDocument, bool) func (*AccountUpdateThemeRequest).GetDocumentAsNotEmpty() (*InputDocument, bool) func (*Document).AsInput() *InputDocument func (*InputDocument).AsNotEmpty() (*InputDocument, bool) func InputDocumentArray.First() (v InputDocument, ok bool) func InputDocumentArray.Last() (v InputDocument, ok bool) func (*InputDocumentArray).Pop() (v InputDocument, ok bool) func (*InputDocumentArray).PopFirst() (v InputDocument, ok bool) func InputDocumentArray.ToMap() map[int64]InputDocument func InputDocumentClass.AsNotEmpty() (*InputDocument, bool) func InputDocumentClassArray.AppendOnlyNotEmpty(to []*InputDocument) []*InputDocument func InputDocumentClassArray.AsNotEmpty() (to []*InputDocument) func InputDocumentClassArray.FirstAsNotEmpty() (v *InputDocument, ok bool) func InputDocumentClassArray.LastAsNotEmpty() (v *InputDocument, ok bool) func InputDocumentClassArray.NotEmptyToMap() map[int64]*InputDocument func (*InputDocumentClassArray).PopAsNotEmpty() (v *InputDocument, ok bool) func (*InputDocumentClassArray).PopFirstAsNotEmpty() (v *InputDocument, ok bool) func (*InputDocumentEmpty).AsNotEmpty() (*InputDocument, bool) func (*InputStickerSetItem).GetDocumentAsNotEmpty() (*InputDocument, bool) func (*MessagesFaveStickerRequest).GetIDAsNotEmpty() (*InputDocument, bool) func (*MessagesSaveGifRequest).GetIDAsNotEmpty() (*InputDocument, bool) func (*MessagesSaveRecentStickerRequest).GetIDAsNotEmpty() (*InputDocument, bool) func (*StickersChangeStickerPositionRequest).GetStickerAsNotEmpty() (*InputDocument, bool) func (*StickersChangeStickerRequest).GetStickerAsNotEmpty() (*InputDocument, bool) func (*StickersCreateStickerSetRequest).GetThumbAsNotEmpty() (*InputDocument, bool) func (*StickersRemoveStickerFromSetRequest).GetStickerAsNotEmpty() (*InputDocument, bool) func (*StickersSetStickerSetThumbRequest).GetThumbAsNotEmpty() (*InputDocument, bool) func InputDocumentArray.FillMap(to map[int64]InputDocument) func InputDocumentClassArray.AppendOnlyNotEmpty(to []*InputDocument) []*InputDocument func InputDocumentClassArray.FillNotEmptyMap(to map[int64]*InputDocument)
InputDocumentArray is adapter for slice of InputDocument. 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 InputDocument. Sort sorts slice of InputDocument. SortByID sorts slice of InputDocument by ID. SortStable sorts slice of InputDocument. SortStableByID sorts slice of InputDocument by ID. ToMap collects constructors to map. func InputDocumentArray.Retain(keep func(x InputDocument) bool) InputDocumentArray func InputDocumentArray.Sort(less func(a, b InputDocument) bool) InputDocumentArray func InputDocumentArray.SortByID() InputDocumentArray func InputDocumentArray.SortStable(less func(a, b InputDocument) bool) InputDocumentArray func InputDocumentArray.SortStableByID() InputDocumentArray func InputDocumentClassArray.AsInputDocument() (to InputDocumentArray)
InputDocument boxes the InputDocumentClass providing a helper. InputDocument InputDocumentClass Decode implements bin.Decoder for InputDocumentBox. Encode implements bin.Encode for InputDocumentBox. *InputDocumentBox : github.com/gotd/td/bin.Decoder *InputDocumentBox : github.com/gotd/td/bin.Encoder *InputDocumentBox : github.com/gotd/td/bin.Object
InputDocumentClass represents InputDocument generic type. See https://core.telegram.org/type/InputDocument for reference. Example: g, err := tg.DecodeInputDocument(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputDocumentEmpty: // inputDocumentEmpty#72f0eaae case *tg.InputDocument: // inputDocument#1abfb575 default: panic(v) } AsNotEmpty tries to map InputDocumentClass to InputDocument. ( InputDocumentClass) Decode(b *bin.Buffer) error ( InputDocumentClass) DecodeBare(b *bin.Buffer) error ( InputDocumentClass) Encode(b *bin.Buffer) error ( InputDocumentClass) 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. *InputDocument *InputDocumentEmpty InputDocumentClass : github.com/gotd/td/bin.BareDecoder InputDocumentClass : github.com/gotd/td/bin.BareEncoder InputDocumentClass : github.com/gotd/td/bin.Decoder InputDocumentClass : github.com/gotd/td/bin.Encoder InputDocumentClass : github.com/gotd/td/bin.Object InputDocumentClass : fmt.Stringer func DecodeInputDocument(buf *bin.Buffer) (InputDocumentClass, error) func (*AccountCreateThemeRequest).GetDocument() (value InputDocumentClass, ok bool) func (*AccountSaveRingtoneRequest).GetID() (value InputDocumentClass) func (*AccountUpdateThemeRequest).GetDocument() (value InputDocumentClass, ok bool) func (*InputBotInlineResultDocument).GetDocument() (value InputDocumentClass) func InputDocumentClassArray.First() (v InputDocumentClass, ok bool) func InputDocumentClassArray.Last() (v InputDocumentClass, ok bool) func (*InputDocumentClassArray).Pop() (v InputDocumentClass, ok bool) func (*InputDocumentClassArray).PopFirst() (v InputDocumentClass, ok bool) func (*InputMediaDocument).GetID() (value InputDocumentClass) func (*InputMediaUploadedDocument).GetStickers() (value []InputDocumentClass, ok bool) func (*InputMediaUploadedPhoto).GetStickers() (value []InputDocumentClass, ok bool) func (*InputStickeredMediaDocument).GetID() (value InputDocumentClass) func (*InputStickerSetItem).GetDocument() (value InputDocumentClass) func (*InputWebFileAudioAlbumThumbLocation).GetDocument() (value InputDocumentClass, ok bool) func (*MessagesFaveStickerRequest).GetID() (value InputDocumentClass) func (*MessagesSaveGifRequest).GetID() (value InputDocumentClass) func (*MessagesSaveRecentStickerRequest).GetID() (value InputDocumentClass) func (*StickersChangeStickerPositionRequest).GetSticker() (value InputDocumentClass) func (*StickersChangeStickerRequest).GetSticker() (value InputDocumentClass) func (*StickersCreateStickerSetRequest).GetThumb() (value InputDocumentClass, ok bool) func (*StickersRemoveStickerFromSetRequest).GetSticker() (value InputDocumentClass) func (*StickersSetStickerSetThumbRequest).GetThumb() (value InputDocumentClass, ok bool) func (*AccountCreateThemeRequest).SetDocument(value InputDocumentClass) func (*AccountUpdateThemeRequest).SetDocument(value InputDocumentClass) func (*Client).StickersRemoveStickerFromSet(ctx context.Context, sticker InputDocumentClass) (MessagesStickerSetClass, error) func (*InputMediaUploadedDocument).SetStickers(value []InputDocumentClass) func (*InputMediaUploadedPhoto).SetStickers(value []InputDocumentClass) func (*InputWebFileAudioAlbumThumbLocation).SetDocument(value InputDocumentClass) func (*StickersCreateStickerSetRequest).SetThumb(value InputDocumentClass) func (*StickersSetStickerSetThumbRequest).SetThumb(value InputDocumentClass)
InputDocumentClassArray is adapter for slice of InputDocumentClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsInputDocument returns copy with only InputDocument constructors. AsNotEmpty returns copy with only NotEmpty constructors. FillNotEmptyMap fills only NotEmpty constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of InputDocumentClass. Sort sorts slice of InputDocumentClass. SortStable sorts slice of InputDocumentClass. func InputDocumentClassArray.Retain(keep func(x InputDocumentClass) bool) InputDocumentClassArray func InputDocumentClassArray.Sort(less func(a, b InputDocumentClass) bool) InputDocumentClassArray func InputDocumentClassArray.SortStable(less func(a, b InputDocumentClass) bool) InputDocumentClassArray func (*InputMediaUploadedDocument).MapStickers() (value InputDocumentClassArray, ok bool) func (*InputMediaUploadedPhoto).MapStickers() (value InputDocumentClassArray, ok bool)
InputDocumentEmpty represents TL type `inputDocumentEmpty#72f0eaae`. Empty constructor. See https://core.telegram.org/constructor/inputDocumentEmpty for reference. AsNotEmpty tries to map InputDocumentEmpty to InputDocument. 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. (*InputDocumentEmpty) Zero() bool *InputDocumentEmpty : InputDocumentClass *InputDocumentEmpty : github.com/gotd/td/bin.BareDecoder *InputDocumentEmpty : github.com/gotd/td/bin.BareEncoder *InputDocumentEmpty : github.com/gotd/td/bin.Decoder *InputDocumentEmpty : github.com/gotd/td/bin.Encoder *InputDocumentEmpty : github.com/gotd/td/bin.Object *InputDocumentEmpty : github.com/gotd/td/tdp.Object *InputDocumentEmpty : fmt.Stringer
InputDocumentFileLocation represents TL type `inputDocumentFileLocation#bad07584`. Document location (video, voice, audio, basically every type except photo) See https://core.telegram.org/constructor/inputDocumentFileLocation for reference. access_hash parameter from the document¹ constructor Links: 1) https://core.telegram.org/constructor/document File reference¹ Links: 1) https://core.telegram.org/api/file_reference Document ID Thumbnail size to download the thumbnail Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputDocumentFileLocation from given interface. GetAccessHash returns value of AccessHash field. GetFileReference returns value of FileReference field. GetID returns value of ID field. GetThumbSize returns value of ThumbSize 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. (*InputDocumentFileLocation) Zero() bool *InputDocumentFileLocation : InputFileLocationClass *InputDocumentFileLocation : github.com/gotd/td/bin.BareDecoder *InputDocumentFileLocation : github.com/gotd/td/bin.BareEncoder *InputDocumentFileLocation : github.com/gotd/td/bin.Decoder *InputDocumentFileLocation : github.com/gotd/td/bin.Encoder *InputDocumentFileLocation : github.com/gotd/td/bin.Object *InputDocumentFileLocation : github.com/gotd/td/tdp.Object *InputDocumentFileLocation : fmt.Stringer func (*Document).AsInputDocumentFileLocation() *InputDocumentFileLocation func (*InputDocument).AsInputDocumentFileLocation() *InputDocumentFileLocation func InputDocumentFileLocationArray.First() (v InputDocumentFileLocation, ok bool) func InputDocumentFileLocationArray.Last() (v InputDocumentFileLocation, ok bool) func (*InputDocumentFileLocationArray).Pop() (v InputDocumentFileLocation, ok bool) func (*InputDocumentFileLocationArray).PopFirst() (v InputDocumentFileLocation, ok bool) func InputDocumentFileLocationArray.ToMap() map[int64]InputDocumentFileLocation func InputDocumentFileLocationArray.FillMap(to map[int64]InputDocumentFileLocation)
InputDocumentFileLocationArray is adapter for slice of InputDocumentFileLocation. 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 InputDocumentFileLocation. Sort sorts slice of InputDocumentFileLocation. SortByID sorts slice of InputDocumentFileLocation by ID. SortStable sorts slice of InputDocumentFileLocation. SortStableByID sorts slice of InputDocumentFileLocation by ID. ToMap collects constructors to map. func InputDocumentFileLocationArray.Retain(keep func(x InputDocumentFileLocation) bool) InputDocumentFileLocationArray func InputDocumentFileLocationArray.Sort(less func(a, b InputDocumentFileLocation) bool) InputDocumentFileLocationArray func InputDocumentFileLocationArray.SortByID() InputDocumentFileLocationArray func InputDocumentFileLocationArray.SortStable(less func(a, b InputDocumentFileLocation) bool) InputDocumentFileLocationArray func InputDocumentFileLocationArray.SortStableByID() InputDocumentFileLocationArray func InputFileLocationClassArray.AsInputDocumentFileLocation() (to InputDocumentFileLocationArray)
InputEncryptedChat represents TL type `inputEncryptedChat#f141b5e1`. Creates an encrypted chat. See https://core.telegram.org/constructor/inputEncryptedChat for reference. Checking sum from constructor encryptedChat¹, encryptedChatWaiting² or encryptedChatRequested³ Links: 1) https://core.telegram.org/constructor/encryptedChat 2) https://core.telegram.org/constructor/encryptedChatWaiting 3) https://core.telegram.org/constructor/encryptedChatRequested Chat ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputEncryptedChat from given interface. GetAccessHash returns value of AccessHash field. GetChatID returns value of ChatID 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. (*InputEncryptedChat) Zero() bool *InputEncryptedChat : github.com/gotd/td/bin.BareDecoder *InputEncryptedChat : github.com/gotd/td/bin.BareEncoder *InputEncryptedChat : github.com/gotd/td/bin.Decoder *InputEncryptedChat : github.com/gotd/td/bin.Encoder *InputEncryptedChat : github.com/gotd/td/bin.Object *InputEncryptedChat : github.com/gotd/td/tdp.Object *InputEncryptedChat : fmt.Stringer func (*EncryptedChat).AsInput() *InputEncryptedChat func (*MessagesAcceptEncryptionRequest).GetPeer() (value InputEncryptedChat) func (*MessagesReadEncryptedHistoryRequest).GetPeer() (value InputEncryptedChat) func (*MessagesReportEncryptedSpamRequest).GetPeer() (value InputEncryptedChat) func (*MessagesSendEncryptedFileRequest).GetPeer() (value InputEncryptedChat) func (*MessagesSendEncryptedRequest).GetPeer() (value InputEncryptedChat) func (*MessagesSendEncryptedServiceRequest).GetPeer() (value InputEncryptedChat) func (*MessagesSetEncryptedTypingRequest).GetPeer() (value InputEncryptedChat) func (*MessagesUploadEncryptedFileRequest).GetPeer() (value InputEncryptedChat) func (*Client).MessagesReportEncryptedSpam(ctx context.Context, peer InputEncryptedChat) (bool, error)
InputEncryptedFile represents TL type `inputEncryptedFile#5a17b5e5`. Sets forwarded encrypted file for attachment. See https://core.telegram.org/constructor/inputEncryptedFile for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps AsInputEncryptedFileLocation tries to map InputEncryptedFile to InputEncryptedFileLocation. AsNotEmpty tries to map InputEncryptedFile to NotEmptyInputEncryptedFile. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputEncryptedFile from given interface. GetAccessHash returns value of AccessHash 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. (*InputEncryptedFile) Zero() bool *InputEncryptedFile : InputEncryptedFileClass *InputEncryptedFile : NotEmptyInputEncryptedFile *InputEncryptedFile : github.com/gotd/td/bin.BareDecoder *InputEncryptedFile : github.com/gotd/td/bin.BareEncoder *InputEncryptedFile : github.com/gotd/td/bin.Decoder *InputEncryptedFile : github.com/gotd/td/bin.Encoder *InputEncryptedFile : github.com/gotd/td/bin.Object *InputEncryptedFile : github.com/gotd/td/tdp.Object *InputEncryptedFile : fmt.Stringer func (*EncryptedFile).AsInput() *InputEncryptedFile func InputEncryptedFileArray.First() (v InputEncryptedFile, ok bool) func InputEncryptedFileArray.Last() (v InputEncryptedFile, ok bool) func (*InputEncryptedFileArray).Pop() (v InputEncryptedFile, ok bool) func (*InputEncryptedFileArray).PopFirst() (v InputEncryptedFile, ok bool) func InputEncryptedFileArray.ToMap() map[int64]InputEncryptedFile func InputEncryptedFileArray.FillMap(to map[int64]InputEncryptedFile)
InputEncryptedFileArray is adapter for slice of InputEncryptedFile. 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 InputEncryptedFile. Sort sorts slice of InputEncryptedFile. SortByID sorts slice of InputEncryptedFile by ID. SortStable sorts slice of InputEncryptedFile. SortStableByID sorts slice of InputEncryptedFile by ID. ToMap collects constructors to map. func InputEncryptedFileArray.Retain(keep func(x InputEncryptedFile) bool) InputEncryptedFileArray func InputEncryptedFileArray.Sort(less func(a, b InputEncryptedFile) bool) InputEncryptedFileArray func InputEncryptedFileArray.SortByID() InputEncryptedFileArray func InputEncryptedFileArray.SortStable(less func(a, b InputEncryptedFile) bool) InputEncryptedFileArray func InputEncryptedFileArray.SortStableByID() InputEncryptedFileArray func InputEncryptedFileClassArray.AsInputEncryptedFile() (to InputEncryptedFileArray)
InputEncryptedFileBigUploaded represents TL type `inputEncryptedFileBigUploaded#2dc173c8`. Assigns a new big encrypted file (over 10 MB in size), saved in parts using the method upload.saveBigFilePart¹. Links: 1. https://core.telegram.org/method/upload.saveBigFilePart See https://core.telegram.org/constructor/inputEncryptedFileBigUploaded for reference. Random file id, created by the client 32-bit imprint of the key used to encrypt the file Number of saved parts AsNotEmpty tries to map InputEncryptedFileBigUploaded to NotEmptyInputEncryptedFile. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputEncryptedFileBigUploaded from given interface. GetID returns value of ID field. GetKeyFingerprint returns value of KeyFingerprint field. GetParts returns value of Parts 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. (*InputEncryptedFileBigUploaded) Zero() bool *InputEncryptedFileBigUploaded : InputEncryptedFileClass *InputEncryptedFileBigUploaded : NotEmptyInputEncryptedFile *InputEncryptedFileBigUploaded : github.com/gotd/td/bin.BareDecoder *InputEncryptedFileBigUploaded : github.com/gotd/td/bin.BareEncoder *InputEncryptedFileBigUploaded : github.com/gotd/td/bin.Decoder *InputEncryptedFileBigUploaded : github.com/gotd/td/bin.Encoder *InputEncryptedFileBigUploaded : github.com/gotd/td/bin.Object *InputEncryptedFileBigUploaded : github.com/gotd/td/tdp.Object *InputEncryptedFileBigUploaded : fmt.Stringer func InputEncryptedFileBigUploadedArray.First() (v InputEncryptedFileBigUploaded, ok bool) func InputEncryptedFileBigUploadedArray.Last() (v InputEncryptedFileBigUploaded, ok bool) func (*InputEncryptedFileBigUploadedArray).Pop() (v InputEncryptedFileBigUploaded, ok bool) func (*InputEncryptedFileBigUploadedArray).PopFirst() (v InputEncryptedFileBigUploaded, ok bool) func InputEncryptedFileBigUploadedArray.ToMap() map[int64]InputEncryptedFileBigUploaded func InputEncryptedFileBigUploadedArray.FillMap(to map[int64]InputEncryptedFileBigUploaded)
InputEncryptedFileBigUploadedArray is adapter for slice of InputEncryptedFileBigUploaded. 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 InputEncryptedFileBigUploaded. Sort sorts slice of InputEncryptedFileBigUploaded. SortByID sorts slice of InputEncryptedFileBigUploaded by ID. SortStable sorts slice of InputEncryptedFileBigUploaded. SortStableByID sorts slice of InputEncryptedFileBigUploaded by ID. ToMap collects constructors to map. func InputEncryptedFileBigUploadedArray.Retain(keep func(x InputEncryptedFileBigUploaded) bool) InputEncryptedFileBigUploadedArray func InputEncryptedFileBigUploadedArray.Sort(less func(a, b InputEncryptedFileBigUploaded) bool) InputEncryptedFileBigUploadedArray func InputEncryptedFileBigUploadedArray.SortByID() InputEncryptedFileBigUploadedArray func InputEncryptedFileBigUploadedArray.SortStable(less func(a, b InputEncryptedFileBigUploaded) bool) InputEncryptedFileBigUploadedArray func InputEncryptedFileBigUploadedArray.SortStableByID() InputEncryptedFileBigUploadedArray func InputEncryptedFileClassArray.AsInputEncryptedFileBigUploaded() (to InputEncryptedFileBigUploadedArray)
InputEncryptedFile boxes the InputEncryptedFileClass providing a helper. InputEncryptedFile InputEncryptedFileClass Decode implements bin.Decoder for InputEncryptedFileBox. Encode implements bin.Encode for InputEncryptedFileBox. *InputEncryptedFileBox : github.com/gotd/td/bin.Decoder *InputEncryptedFileBox : github.com/gotd/td/bin.Encoder *InputEncryptedFileBox : github.com/gotd/td/bin.Object
InputEncryptedFileClass represents InputEncryptedFile generic type. See https://core.telegram.org/type/InputEncryptedFile for reference. Example: g, err := tg.DecodeInputEncryptedFile(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputEncryptedFileEmpty: // inputEncryptedFileEmpty#1837c364 case *tg.InputEncryptedFileUploaded: // inputEncryptedFileUploaded#64bd0306 case *tg.InputEncryptedFile: // inputEncryptedFile#5a17b5e5 case *tg.InputEncryptedFileBigUploaded: // inputEncryptedFileBigUploaded#2dc173c8 default: panic(v) } AsNotEmpty tries to map InputEncryptedFileClass to NotEmptyInputEncryptedFile. ( InputEncryptedFileClass) Decode(b *bin.Buffer) error ( InputEncryptedFileClass) DecodeBare(b *bin.Buffer) error ( InputEncryptedFileClass) Encode(b *bin.Buffer) error ( InputEncryptedFileClass) 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. *InputEncryptedFile *InputEncryptedFileBigUploaded *InputEncryptedFileEmpty *InputEncryptedFileUploaded InputEncryptedFileClass : github.com/gotd/td/bin.BareDecoder InputEncryptedFileClass : github.com/gotd/td/bin.BareEncoder InputEncryptedFileClass : github.com/gotd/td/bin.Decoder InputEncryptedFileClass : github.com/gotd/td/bin.Encoder InputEncryptedFileClass : github.com/gotd/td/bin.Object InputEncryptedFileClass : fmt.Stringer func DecodeInputEncryptedFile(buf *bin.Buffer) (InputEncryptedFileClass, error) func InputEncryptedFileClassArray.First() (v InputEncryptedFileClass, ok bool) func InputEncryptedFileClassArray.Last() (v InputEncryptedFileClass, ok bool) func (*InputEncryptedFileClassArray).Pop() (v InputEncryptedFileClass, ok bool) func (*InputEncryptedFileClassArray).PopFirst() (v InputEncryptedFileClass, ok bool) func (*MessagesSendEncryptedFileRequest).GetFile() (value InputEncryptedFileClass) func (*MessagesUploadEncryptedFileRequest).GetFile() (value InputEncryptedFileClass)
InputEncryptedFileClassArray is adapter for slice of InputEncryptedFileClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsInputEncryptedFile returns copy with only InputEncryptedFile constructors. AsInputEncryptedFileBigUploaded returns copy with only InputEncryptedFileBigUploaded constructors. AsInputEncryptedFileUploaded returns copy with only InputEncryptedFileUploaded constructors. AsNotEmpty returns copy with only NotEmpty constructors. FillNotEmptyMap fills only NotEmpty constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of InputEncryptedFileClass. Sort sorts slice of InputEncryptedFileClass. SortStable sorts slice of InputEncryptedFileClass. func InputEncryptedFileClassArray.Retain(keep func(x InputEncryptedFileClass) bool) InputEncryptedFileClassArray func InputEncryptedFileClassArray.Sort(less func(a, b InputEncryptedFileClass) bool) InputEncryptedFileClassArray func InputEncryptedFileClassArray.SortStable(less func(a, b InputEncryptedFileClass) bool) InputEncryptedFileClassArray
InputEncryptedFileEmpty represents TL type `inputEncryptedFileEmpty#1837c364`. Empty constructor. See https://core.telegram.org/constructor/inputEncryptedFileEmpty for reference. AsNotEmpty tries to map InputEncryptedFileEmpty to NotEmptyInputEncryptedFile. 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. (*InputEncryptedFileEmpty) Zero() bool *InputEncryptedFileEmpty : InputEncryptedFileClass *InputEncryptedFileEmpty : github.com/gotd/td/bin.BareDecoder *InputEncryptedFileEmpty : github.com/gotd/td/bin.BareEncoder *InputEncryptedFileEmpty : github.com/gotd/td/bin.Decoder *InputEncryptedFileEmpty : github.com/gotd/td/bin.Encoder *InputEncryptedFileEmpty : github.com/gotd/td/bin.Object *InputEncryptedFileEmpty : github.com/gotd/td/tdp.Object *InputEncryptedFileEmpty : fmt.Stringer
InputEncryptedFileLocation represents TL type `inputEncryptedFileLocation#f5235d55`. Location of encrypted secret chat file. See https://core.telegram.org/constructor/inputEncryptedFileLocation for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputEncryptedFileLocation from given interface. GetAccessHash returns value of AccessHash 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. (*InputEncryptedFileLocation) Zero() bool *InputEncryptedFileLocation : InputFileLocationClass *InputEncryptedFileLocation : github.com/gotd/td/bin.BareDecoder *InputEncryptedFileLocation : github.com/gotd/td/bin.BareEncoder *InputEncryptedFileLocation : github.com/gotd/td/bin.Decoder *InputEncryptedFileLocation : github.com/gotd/td/bin.Encoder *InputEncryptedFileLocation : github.com/gotd/td/bin.Object *InputEncryptedFileLocation : github.com/gotd/td/tdp.Object *InputEncryptedFileLocation : fmt.Stringer func (*EncryptedFile).AsInputEncryptedFileLocation() *InputEncryptedFileLocation func (*InputEncryptedFile).AsInputEncryptedFileLocation() *InputEncryptedFileLocation func InputEncryptedFileLocationArray.First() (v InputEncryptedFileLocation, ok bool) func InputEncryptedFileLocationArray.Last() (v InputEncryptedFileLocation, ok bool) func (*InputEncryptedFileLocationArray).Pop() (v InputEncryptedFileLocation, ok bool) func (*InputEncryptedFileLocationArray).PopFirst() (v InputEncryptedFileLocation, ok bool) func InputEncryptedFileLocationArray.ToMap() map[int64]InputEncryptedFileLocation func InputEncryptedFileLocationArray.FillMap(to map[int64]InputEncryptedFileLocation)
InputEncryptedFileLocationArray is adapter for slice of InputEncryptedFileLocation. 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 InputEncryptedFileLocation. Sort sorts slice of InputEncryptedFileLocation. SortByID sorts slice of InputEncryptedFileLocation by ID. SortStable sorts slice of InputEncryptedFileLocation. SortStableByID sorts slice of InputEncryptedFileLocation by ID. ToMap collects constructors to map. func InputEncryptedFileLocationArray.Retain(keep func(x InputEncryptedFileLocation) bool) InputEncryptedFileLocationArray func InputEncryptedFileLocationArray.Sort(less func(a, b InputEncryptedFileLocation) bool) InputEncryptedFileLocationArray func InputEncryptedFileLocationArray.SortByID() InputEncryptedFileLocationArray func InputEncryptedFileLocationArray.SortStable(less func(a, b InputEncryptedFileLocation) bool) InputEncryptedFileLocationArray func InputEncryptedFileLocationArray.SortStableByID() InputEncryptedFileLocationArray func InputFileLocationClassArray.AsInputEncryptedFileLocation() (to InputEncryptedFileLocationArray)
InputEncryptedFileUploaded represents TL type `inputEncryptedFileUploaded#64bd0306`. Sets new encrypted file saved by parts using upload.saveFilePart method. See https://core.telegram.org/constructor/inputEncryptedFileUploaded for reference. Random file ID created by client 32-bit fingerprint of the key used to encrypt a file In case md5-HASH¹ of the (already encrypted) file was transmitted, file content will be checked prior to use Links: 1) https://en.wikipedia.org/wiki/MD5 Number of saved parts AsNotEmpty tries to map InputEncryptedFileUploaded to NotEmptyInputEncryptedFile. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputEncryptedFileUploaded from given interface. GetID returns value of ID field. GetKeyFingerprint returns value of KeyFingerprint field. GetMD5Checksum returns value of MD5Checksum field. GetParts returns value of Parts 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. (*InputEncryptedFileUploaded) Zero() bool *InputEncryptedFileUploaded : InputEncryptedFileClass *InputEncryptedFileUploaded : NotEmptyInputEncryptedFile *InputEncryptedFileUploaded : github.com/gotd/td/bin.BareDecoder *InputEncryptedFileUploaded : github.com/gotd/td/bin.BareEncoder *InputEncryptedFileUploaded : github.com/gotd/td/bin.Decoder *InputEncryptedFileUploaded : github.com/gotd/td/bin.Encoder *InputEncryptedFileUploaded : github.com/gotd/td/bin.Object *InputEncryptedFileUploaded : github.com/gotd/td/tdp.Object *InputEncryptedFileUploaded : fmt.Stringer func InputEncryptedFileUploadedArray.First() (v InputEncryptedFileUploaded, ok bool) func InputEncryptedFileUploadedArray.Last() (v InputEncryptedFileUploaded, ok bool) func (*InputEncryptedFileUploadedArray).Pop() (v InputEncryptedFileUploaded, ok bool) func (*InputEncryptedFileUploadedArray).PopFirst() (v InputEncryptedFileUploaded, ok bool) func InputEncryptedFileUploadedArray.ToMap() map[int64]InputEncryptedFileUploaded func InputEncryptedFileUploadedArray.FillMap(to map[int64]InputEncryptedFileUploaded)
InputEncryptedFileUploadedArray is adapter for slice of InputEncryptedFileUploaded. 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 InputEncryptedFileUploaded. Sort sorts slice of InputEncryptedFileUploaded. SortByID sorts slice of InputEncryptedFileUploaded by ID. SortStable sorts slice of InputEncryptedFileUploaded. SortStableByID sorts slice of InputEncryptedFileUploaded by ID. ToMap collects constructors to map. func InputEncryptedFileClassArray.AsInputEncryptedFileUploaded() (to InputEncryptedFileUploadedArray) func InputEncryptedFileUploadedArray.Retain(keep func(x InputEncryptedFileUploaded) bool) InputEncryptedFileUploadedArray func InputEncryptedFileUploadedArray.Sort(less func(a, b InputEncryptedFileUploaded) bool) InputEncryptedFileUploadedArray func InputEncryptedFileUploadedArray.SortByID() InputEncryptedFileUploadedArray func InputEncryptedFileUploadedArray.SortStable(less func(a, b InputEncryptedFileUploaded) bool) InputEncryptedFileUploadedArray func InputEncryptedFileUploadedArray.SortStableByID() InputEncryptedFileUploadedArray
InputFile represents TL type `inputFile#f52ff27f`. Defines a file saved in parts using the method upload.saveFilePart¹. Links: 1. https://core.telegram.org/method/upload.saveFilePart See https://core.telegram.org/constructor/inputFile for reference. Random file identifier created by the client In case the file's md5-hash¹ was passed, contents of the file will be checked prior to use Links: 1) https://en.wikipedia.org/wiki/MD5#MD5_hashes Full name of the file Number of parts saved Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputFile from given interface. GetID returns value of ID field. GetMD5Checksum returns value of MD5Checksum field. GetName returns value of Name field. GetParts returns value of Parts 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. (*InputFile) Zero() bool *InputFile : InputFileClass *InputFile : github.com/gotd/td/bin.BareDecoder *InputFile : github.com/gotd/td/bin.BareEncoder *InputFile : github.com/gotd/td/bin.Decoder *InputFile : github.com/gotd/td/bin.Encoder *InputFile : github.com/gotd/td/bin.Object *InputFile : github.com/gotd/td/tdp.Object *InputFile : fmt.Stringer func InputFileArray.First() (v InputFile, ok bool) func InputFileArray.Last() (v InputFile, ok bool) func (*InputFileArray).Pop() (v InputFile, ok bool) func (*InputFileArray).PopFirst() (v InputFile, ok bool) func InputFileArray.ToMap() map[int64]InputFile func InputFileClassArray.InputFileToMap() map[int64]*InputFile func InputFileArray.FillMap(to map[int64]InputFile) func InputFileClassArray.FillInputFileMap(to map[int64]*InputFile)
InputFileArray is adapter for slice of InputFile. 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 InputFile. Sort sorts slice of InputFile. SortByID sorts slice of InputFile by ID. SortStable sorts slice of InputFile. SortStableByID sorts slice of InputFile by ID. ToMap collects constructors to map. func InputFileArray.Retain(keep func(x InputFile) bool) InputFileArray func InputFileArray.Sort(less func(a, b InputFile) bool) InputFileArray func InputFileArray.SortByID() InputFileArray func InputFileArray.SortStable(less func(a, b InputFile) bool) InputFileArray func InputFileArray.SortStableByID() InputFileArray func InputFileClassArray.AsInputFile() (to InputFileArray)
InputFileBig represents TL type `inputFileBig#fa4f0bb5`. Assigns a big file (over 10 MB in size), saved in part using the method upload saveBigFilePart¹. Links: 1. https://core.telegram.org/method/upload.saveBigFilePart See https://core.telegram.org/constructor/inputFileBig for reference. Random file id, created by the client Full file name Number of parts saved Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputFileBig from given interface. GetID returns value of ID field. GetName returns value of Name field. GetParts returns value of Parts 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. (*InputFileBig) Zero() bool *InputFileBig : InputFileClass *InputFileBig : github.com/gotd/td/bin.BareDecoder *InputFileBig : github.com/gotd/td/bin.BareEncoder *InputFileBig : github.com/gotd/td/bin.Decoder *InputFileBig : github.com/gotd/td/bin.Encoder *InputFileBig : github.com/gotd/td/bin.Object *InputFileBig : github.com/gotd/td/tdp.Object *InputFileBig : fmt.Stringer func InputFileBigArray.First() (v InputFileBig, ok bool) func InputFileBigArray.Last() (v InputFileBig, ok bool) func (*InputFileBigArray).Pop() (v InputFileBig, ok bool) func (*InputFileBigArray).PopFirst() (v InputFileBig, ok bool) func InputFileBigArray.ToMap() map[int64]InputFileBig func InputFileClassArray.InputFileBigToMap() map[int64]*InputFileBig func InputFileBigArray.FillMap(to map[int64]InputFileBig) func InputFileClassArray.FillInputFileBigMap(to map[int64]*InputFileBig)
InputFileBigArray is adapter for slice of InputFileBig. 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 InputFileBig. Sort sorts slice of InputFileBig. SortByID sorts slice of InputFileBig by ID. SortStable sorts slice of InputFileBig. SortStableByID sorts slice of InputFileBig by ID. ToMap collects constructors to map. func InputFileBigArray.Retain(keep func(x InputFileBig) bool) InputFileBigArray func InputFileBigArray.Sort(less func(a, b InputFileBig) bool) InputFileBigArray func InputFileBigArray.SortByID() InputFileBigArray func InputFileBigArray.SortStable(less func(a, b InputFileBig) bool) InputFileBigArray func InputFileBigArray.SortStableByID() InputFileBigArray func InputFileClassArray.AsInputFileBig() (to InputFileBigArray)
InputFile boxes the InputFileClass providing a helper. InputFile InputFileClass Decode implements bin.Decoder for InputFileBox. Encode implements bin.Encode for InputFileBox. *InputFileBox : github.com/gotd/td/bin.Decoder *InputFileBox : github.com/gotd/td/bin.Encoder *InputFileBox : github.com/gotd/td/bin.Object
InputFileClass represents InputFile generic type. See https://core.telegram.org/type/InputFile for reference. Example: g, err := tg.DecodeInputFile(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputFile: // inputFile#f52ff27f case *tg.InputFileBig: // inputFileBig#fa4f0bb5 default: panic(v) } ( InputFileClass) Decode(b *bin.Buffer) error ( InputFileClass) DecodeBare(b *bin.Buffer) error ( InputFileClass) Encode(b *bin.Buffer) error ( InputFileClass) EncodeBare(b *bin.Buffer) error Random file identifier created by the client Full name of the file Number of parts saved 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. *InputFile *InputFileBig InputFileClass : github.com/gotd/td/bin.BareDecoder InputFileClass : github.com/gotd/td/bin.BareEncoder InputFileClass : github.com/gotd/td/bin.Decoder InputFileClass : github.com/gotd/td/bin.Encoder InputFileClass : github.com/gotd/td/bin.Object InputFileClass : fmt.Stringer func DecodeInputFile(buf *bin.Buffer) (InputFileClass, error) func (*AccountUploadRingtoneRequest).GetFile() (value InputFileClass) func (*AccountUploadThemeRequest).GetFile() (value InputFileClass) func (*AccountUploadThemeRequest).GetThumb() (value InputFileClass, ok bool) func (*AccountUploadWallPaperRequest).GetFile() (value InputFileClass) func (*InputChatUploadedPhoto).GetFile() (value InputFileClass, ok bool) func (*InputChatUploadedPhoto).GetVideo() (value InputFileClass, ok bool) func InputFileClassArray.First() (v InputFileClass, ok bool) func InputFileClassArray.Last() (v InputFileClass, ok bool) func (*InputFileClassArray).Pop() (v InputFileClass, ok bool) func (*InputFileClassArray).PopFirst() (v InputFileClass, ok bool) func (*InputMediaUploadedDocument).GetFile() (value InputFileClass) func (*InputMediaUploadedDocument).GetThumb() (value InputFileClass, ok bool) func (*InputMediaUploadedPhoto).GetFile() (value InputFileClass) func (*MessagesInitHistoryImportRequest).GetFile() (value InputFileClass) func (*PhoneSaveCallLogRequest).GetFile() (value InputFileClass) func (*PhotosUploadContactProfilePhotoRequest).GetFile() (value InputFileClass, ok bool) func (*PhotosUploadContactProfilePhotoRequest).GetVideo() (value InputFileClass, ok bool) func (*PhotosUploadProfilePhotoRequest).GetFile() (value InputFileClass, ok bool) func (*PhotosUploadProfilePhotoRequest).GetVideo() (value InputFileClass, ok bool) func (*AccountUploadThemeRequest).SetThumb(value InputFileClass) func (*InputChatUploadedPhoto).SetFile(value InputFileClass) func (*InputChatUploadedPhoto).SetVideo(value InputFileClass) func (*InputMediaUploadedDocument).SetThumb(value InputFileClass) func (*PhotosUploadContactProfilePhotoRequest).SetFile(value InputFileClass) func (*PhotosUploadContactProfilePhotoRequest).SetVideo(value InputFileClass) func (*PhotosUploadProfilePhotoRequest).SetFile(value InputFileClass) func (*PhotosUploadProfilePhotoRequest).SetVideo(value InputFileClass)
InputFileClassArray is adapter for slice of InputFileClass. AsInputFile returns copy with only InputFile constructors. AsInputFileBig returns copy with only InputFileBig constructors. FillInputFileBigMap fills only InputFileBig constructors to given map. FillInputFileMap fills only InputFile constructors to given map. First returns first element of slice (if exists). InputFileBigToMap collects only InputFileBig constructors to map. InputFileToMap collects only InputFile constructors to map. 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 InputFileClass. Sort sorts slice of InputFileClass. SortByID sorts slice of InputFileClass by ID. SortStable sorts slice of InputFileClass. SortStableByID sorts slice of InputFileClass by ID. func InputFileClassArray.Retain(keep func(x InputFileClass) bool) InputFileClassArray func InputFileClassArray.Sort(less func(a, b InputFileClass) bool) InputFileClassArray func InputFileClassArray.SortByID() InputFileClassArray func InputFileClassArray.SortStable(less func(a, b InputFileClass) bool) InputFileClassArray func InputFileClassArray.SortStableByID() InputFileClassArray
InputFileLocation represents TL type `inputFileLocation#dfdaabe1`. DEPRECATED location of a photo See https://core.telegram.org/constructor/inputFileLocation for reference. File reference¹ Links: 1) https://core.telegram.org/api/file_reference File identifier Check sum to access the file Server volume Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputFileLocation from given interface. GetFileReference returns value of FileReference field. GetLocalID returns value of LocalID field. GetSecret returns value of Secret field. GetVolumeID returns value of VolumeID 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. (*InputFileLocation) Zero() bool *InputFileLocation : InputFileLocationClass *InputFileLocation : github.com/gotd/td/bin.BareDecoder *InputFileLocation : github.com/gotd/td/bin.BareEncoder *InputFileLocation : github.com/gotd/td/bin.Decoder *InputFileLocation : github.com/gotd/td/bin.Encoder *InputFileLocation : github.com/gotd/td/bin.Object *InputFileLocation : github.com/gotd/td/tdp.Object *InputFileLocation : fmt.Stringer func InputFileLocationArray.First() (v InputFileLocation, ok bool) func InputFileLocationArray.Last() (v InputFileLocation, ok bool) func (*InputFileLocationArray).Pop() (v InputFileLocation, ok bool) func (*InputFileLocationArray).PopFirst() (v InputFileLocation, ok bool)
InputFileLocationArray is adapter for slice of InputFileLocation. 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 InputFileLocation. Sort sorts slice of InputFileLocation. SortStable sorts slice of InputFileLocation. func InputFileLocationArray.Retain(keep func(x InputFileLocation) bool) InputFileLocationArray func InputFileLocationArray.Sort(less func(a, b InputFileLocation) bool) InputFileLocationArray func InputFileLocationArray.SortStable(less func(a, b InputFileLocation) bool) InputFileLocationArray func InputFileLocationClassArray.AsInputFileLocation() (to InputFileLocationArray)
InputFileLocation boxes the InputFileLocationClass providing a helper. InputFileLocation InputFileLocationClass Decode implements bin.Decoder for InputFileLocationBox. Encode implements bin.Encode for InputFileLocationBox. *InputFileLocationBox : github.com/gotd/td/bin.Decoder *InputFileLocationBox : github.com/gotd/td/bin.Encoder *InputFileLocationBox : github.com/gotd/td/bin.Object
InputFileLocationClass represents InputFileLocation generic type. See https://core.telegram.org/type/InputFileLocation for reference. Example: g, err := tg.DecodeInputFileLocation(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputFileLocation: // inputFileLocation#dfdaabe1 case *tg.InputEncryptedFileLocation: // inputEncryptedFileLocation#f5235d55 case *tg.InputDocumentFileLocation: // inputDocumentFileLocation#bad07584 case *tg.InputSecureFileLocation: // inputSecureFileLocation#cbc7ee28 case *tg.InputTakeoutFileLocation: // inputTakeoutFileLocation#29be5899 case *tg.InputPhotoFileLocation: // inputPhotoFileLocation#40181ffe case *tg.InputPhotoLegacyFileLocation: // inputPhotoLegacyFileLocation#d83466f3 case *tg.InputPeerPhotoFileLocation: // inputPeerPhotoFileLocation#37257e99 case *tg.InputStickerSetThumb: // inputStickerSetThumb#9d84f3db case *tg.InputGroupCallStream: // inputGroupCallStream#598a92a case *tg.InputPeerPhotoFileLocationLegacy: // inputPeerPhotoFileLocationLegacy#27d69997 case *tg.InputStickerSetThumbLegacy: // inputStickerSetThumbLegacy#dbaeae9 default: panic(v) } ( InputFileLocationClass) Decode(b *bin.Buffer) error ( InputFileLocationClass) DecodeBare(b *bin.Buffer) error ( InputFileLocationClass) Encode(b *bin.Buffer) error ( InputFileLocationClass) 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. *InputDocumentFileLocation *InputEncryptedFileLocation *InputFileLocation *InputGroupCallStream *InputPeerPhotoFileLocation *InputPeerPhotoFileLocationLegacy *InputPhotoFileLocation *InputPhotoLegacyFileLocation *InputSecureFileLocation *InputStickerSetThumb *InputStickerSetThumbLegacy *InputTakeoutFileLocation InputFileLocationClass : github.com/gotd/td/bin.BareDecoder InputFileLocationClass : github.com/gotd/td/bin.BareEncoder InputFileLocationClass : github.com/gotd/td/bin.Decoder InputFileLocationClass : github.com/gotd/td/bin.Encoder InputFileLocationClass : github.com/gotd/td/bin.Object InputFileLocationClass : fmt.Stringer func DecodeInputFileLocation(buf *bin.Buffer) (InputFileLocationClass, error) func InputFileLocationClassArray.First() (v InputFileLocationClass, ok bool) func InputFileLocationClassArray.Last() (v InputFileLocationClass, ok bool) func (*InputFileLocationClassArray).Pop() (v InputFileLocationClass, ok bool) func (*InputFileLocationClassArray).PopFirst() (v InputFileLocationClass, ok bool) func (*UploadGetFileHashesRequest).GetLocation() (value InputFileLocationClass) func (*UploadGetFileRequest).GetLocation() (value InputFileLocationClass)
InputFileLocationClassArray is adapter for slice of InputFileLocationClass. AsInputDocumentFileLocation returns copy with only InputDocumentFileLocation constructors. AsInputEncryptedFileLocation returns copy with only InputEncryptedFileLocation constructors. AsInputFileLocation returns copy with only InputFileLocation constructors. AsInputGroupCallStream returns copy with only InputGroupCallStream constructors. AsInputPeerPhotoFileLocation returns copy with only InputPeerPhotoFileLocation constructors. AsInputPeerPhotoFileLocationLegacy returns copy with only InputPeerPhotoFileLocationLegacy constructors. AsInputPhotoFileLocation returns copy with only InputPhotoFileLocation constructors. AsInputPhotoLegacyFileLocation returns copy with only InputPhotoLegacyFileLocation constructors. AsInputSecureFileLocation returns copy with only InputSecureFileLocation constructors. AsInputStickerSetThumb returns copy with only InputStickerSetThumb constructors. AsInputStickerSetThumbLegacy returns copy with only InputStickerSetThumbLegacy 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 InputFileLocationClass. Sort sorts slice of InputFileLocationClass. SortStable sorts slice of InputFileLocationClass. func InputFileLocationClassArray.Retain(keep func(x InputFileLocationClass) bool) InputFileLocationClassArray func InputFileLocationClassArray.Sort(less func(a, b InputFileLocationClass) bool) InputFileLocationClassArray func InputFileLocationClassArray.SortStable(less func(a, b InputFileLocationClass) bool) InputFileLocationClassArray
InputFolderPeer represents TL type `inputFolderPeer#fbd2c296`. Peer in a folder See https://core.telegram.org/constructor/inputFolderPeer for reference. Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputFolderPeer from given interface. GetFolderID returns value of FolderID 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. (*InputFolderPeer) Zero() bool *InputFolderPeer : github.com/gotd/td/bin.BareDecoder *InputFolderPeer : github.com/gotd/td/bin.BareEncoder *InputFolderPeer : github.com/gotd/td/bin.Decoder *InputFolderPeer : github.com/gotd/td/bin.Encoder *InputFolderPeer : github.com/gotd/td/bin.Object *InputFolderPeer : github.com/gotd/td/tdp.Object *InputFolderPeer : fmt.Stringer func (*FoldersEditPeerFoldersRequest).GetFolderPeers() (value []InputFolderPeer) func (*Client).FoldersEditPeerFolders(ctx context.Context, folderpeers []InputFolderPeer) (UpdatesClass, error)
InputGame boxes the InputGameClass providing a helper. InputGame InputGameClass Decode implements bin.Decoder for InputGameBox. Encode implements bin.Encode for InputGameBox. *InputGameBox : github.com/gotd/td/bin.Decoder *InputGameBox : github.com/gotd/td/bin.Encoder *InputGameBox : github.com/gotd/td/bin.Object
InputGameClass represents InputGame generic type. See https://core.telegram.org/type/InputGame for reference. Example: g, err := tg.DecodeInputGame(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputGameID: // inputGameID#32c3e77 case *tg.InputGameShortName: // inputGameShortName#c331e80a default: panic(v) } ( InputGameClass) Decode(b *bin.Buffer) error ( InputGameClass) DecodeBare(b *bin.Buffer) error ( InputGameClass) Encode(b *bin.Buffer) error ( InputGameClass) 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. *InputGameID *InputGameShortName InputGameClass : github.com/gotd/td/bin.BareDecoder InputGameClass : github.com/gotd/td/bin.BareEncoder InputGameClass : github.com/gotd/td/bin.Decoder InputGameClass : github.com/gotd/td/bin.Encoder InputGameClass : github.com/gotd/td/bin.Object InputGameClass : fmt.Stringer func DecodeInputGame(buf *bin.Buffer) (InputGameClass, error) func InputGameClassArray.First() (v InputGameClass, ok bool) func InputGameClassArray.Last() (v InputGameClass, ok bool) func (*InputGameClassArray).Pop() (v InputGameClass, ok bool) func (*InputGameClassArray).PopFirst() (v InputGameClass, ok bool) func (*InputMediaGame).GetID() (value InputGameClass)
InputGameClassArray is adapter for slice of InputGameClass. AsInputGameID returns copy with only InputGameID constructors. AsInputGameShortName returns copy with only InputGameShortName 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 InputGameClass. Sort sorts slice of InputGameClass. SortStable sorts slice of InputGameClass. func InputGameClassArray.Retain(keep func(x InputGameClass) bool) InputGameClassArray func InputGameClassArray.Sort(less func(a, b InputGameClass) bool) InputGameClassArray func InputGameClassArray.SortStable(less func(a, b InputGameClass) bool) InputGameClassArray
InputGameID represents TL type `inputGameID#32c3e77`. Indicates an already sent game See https://core.telegram.org/constructor/inputGameID for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputGameID from given interface. GetAccessHash returns value of AccessHash 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. (*InputGameID) Zero() bool *InputGameID : InputGameClass *InputGameID : github.com/gotd/td/bin.BareDecoder *InputGameID : github.com/gotd/td/bin.BareEncoder *InputGameID : github.com/gotd/td/bin.Decoder *InputGameID : github.com/gotd/td/bin.Encoder *InputGameID : github.com/gotd/td/bin.Object *InputGameID : github.com/gotd/td/tdp.Object *InputGameID : fmt.Stringer func InputGameIDArray.First() (v InputGameID, ok bool) func InputGameIDArray.Last() (v InputGameID, ok bool) func (*InputGameIDArray).Pop() (v InputGameID, ok bool) func (*InputGameIDArray).PopFirst() (v InputGameID, ok bool) func InputGameIDArray.ToMap() map[int64]InputGameID func InputGameIDArray.FillMap(to map[int64]InputGameID)
InputGameIDArray is adapter for slice of InputGameID. 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 InputGameID. Sort sorts slice of InputGameID. SortByID sorts slice of InputGameID by ID. SortStable sorts slice of InputGameID. SortStableByID sorts slice of InputGameID by ID. ToMap collects constructors to map. func InputGameClassArray.AsInputGameID() (to InputGameIDArray) func InputGameIDArray.Retain(keep func(x InputGameID) bool) InputGameIDArray func InputGameIDArray.Sort(less func(a, b InputGameID) bool) InputGameIDArray func InputGameIDArray.SortByID() InputGameIDArray func InputGameIDArray.SortStable(less func(a, b InputGameID) bool) InputGameIDArray func InputGameIDArray.SortStableByID() InputGameIDArray
InputGameShortName represents TL type `inputGameShortName#c331e80a`. Game by short name See https://core.telegram.org/constructor/inputGameShortName for reference. ID of the bot that owns the bot mini app Short name, obtained from a named Mini App deep link¹ Links: 1) https://core.telegram.org/api/links#named-mini-app-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputGameShortName from given interface. GetBotID returns value of BotID field. GetShortName returns value of ShortName 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. (*InputGameShortName) Zero() bool *InputGameShortName : InputGameClass *InputGameShortName : github.com/gotd/td/bin.BareDecoder *InputGameShortName : github.com/gotd/td/bin.BareEncoder *InputGameShortName : github.com/gotd/td/bin.Decoder *InputGameShortName : github.com/gotd/td/bin.Encoder *InputGameShortName : github.com/gotd/td/bin.Object *InputGameShortName : github.com/gotd/td/tdp.Object *InputGameShortName : fmt.Stringer func InputGameShortNameArray.First() (v InputGameShortName, ok bool) func InputGameShortNameArray.Last() (v InputGameShortName, ok bool) func (*InputGameShortNameArray).Pop() (v InputGameShortName, ok bool) func (*InputGameShortNameArray).PopFirst() (v InputGameShortName, ok bool)
InputGameShortNameArray is adapter for slice of InputGameShortName. 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 InputGameShortName. Sort sorts slice of InputGameShortName. SortStable sorts slice of InputGameShortName. func InputGameClassArray.AsInputGameShortName() (to InputGameShortNameArray) func InputGameShortNameArray.Retain(keep func(x InputGameShortName) bool) InputGameShortNameArray func InputGameShortNameArray.Sort(less func(a, b InputGameShortName) bool) InputGameShortNameArray func InputGameShortNameArray.SortStable(less func(a, b InputGameShortName) bool) InputGameShortNameArray
InputGeoPoint represents TL type `inputGeoPoint#48222faf`. Defines a GeoPoint by its coordinates. See https://core.telegram.org/constructor/inputGeoPoint for reference. The estimated horizontal accuracy of the location, in meters; as defined by the sender. Use SetAccuracyRadius and GetAccuracyRadius helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Latitude Longitude AsNotEmpty tries to map InputGeoPoint to InputGeoPoint. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputGeoPoint from given interface. GetAccuracyRadius returns value of AccuracyRadius conditional field and boolean which is true if field was set. GetLat returns value of Lat field. GetLong returns value of Long field. SetAccuracyRadius sets value of AccuracyRadius 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. (*InputGeoPoint) Zero() bool *InputGeoPoint : InputGeoPointClass *InputGeoPoint : github.com/gotd/td/bin.BareDecoder *InputGeoPoint : github.com/gotd/td/bin.BareEncoder *InputGeoPoint : github.com/gotd/td/bin.Decoder *InputGeoPoint : github.com/gotd/td/bin.Encoder *InputGeoPoint : github.com/gotd/td/bin.Object *InputGeoPoint : github.com/gotd/td/tdp.Object *InputGeoPoint : fmt.Stringer func (*ChannelsCreateChannelRequest).GetGeoPointAsNotEmpty() (*InputGeoPoint, bool) func (*ChannelsEditLocationRequest).GetGeoPointAsNotEmpty() (*InputGeoPoint, bool) func (*ContactsGetLocatedRequest).GetGeoPointAsNotEmpty() (*InputGeoPoint, bool) func (*InputGeoPoint).AsNotEmpty() (*InputGeoPoint, bool) func InputGeoPointArray.First() (v InputGeoPoint, ok bool) func InputGeoPointArray.Last() (v InputGeoPoint, ok bool) func (*InputGeoPointArray).Pop() (v InputGeoPoint, ok bool) func (*InputGeoPointArray).PopFirst() (v InputGeoPoint, ok bool) func InputGeoPointClass.AsNotEmpty() (*InputGeoPoint, bool) func InputGeoPointClassArray.AppendOnlyNotEmpty(to []*InputGeoPoint) []*InputGeoPoint func InputGeoPointClassArray.AsNotEmpty() (to []*InputGeoPoint) func InputGeoPointClassArray.FirstAsNotEmpty() (v *InputGeoPoint, ok bool) func InputGeoPointClassArray.LastAsNotEmpty() (v *InputGeoPoint, ok bool) func (*InputGeoPointClassArray).PopAsNotEmpty() (v *InputGeoPoint, ok bool) func (*InputGeoPointClassArray).PopFirstAsNotEmpty() (v *InputGeoPoint, ok bool) func (*InputGeoPointEmpty).AsNotEmpty() (*InputGeoPoint, bool) func (*MessagesGetInlineBotResultsRequest).GetGeoPointAsNotEmpty() (*InputGeoPoint, bool) func InputGeoPointClassArray.AppendOnlyNotEmpty(to []*InputGeoPoint) []*InputGeoPoint
InputGeoPointArray is adapter for slice of InputGeoPoint. 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 InputGeoPoint. Sort sorts slice of InputGeoPoint. SortStable sorts slice of InputGeoPoint. func InputGeoPointArray.Retain(keep func(x InputGeoPoint) bool) InputGeoPointArray func InputGeoPointArray.Sort(less func(a, b InputGeoPoint) bool) InputGeoPointArray func InputGeoPointArray.SortStable(less func(a, b InputGeoPoint) bool) InputGeoPointArray func InputGeoPointClassArray.AsInputGeoPoint() (to InputGeoPointArray)
InputGeoPoint boxes the InputGeoPointClass providing a helper. InputGeoPoint InputGeoPointClass Decode implements bin.Decoder for InputGeoPointBox. Encode implements bin.Encode for InputGeoPointBox. *InputGeoPointBox : github.com/gotd/td/bin.Decoder *InputGeoPointBox : github.com/gotd/td/bin.Encoder *InputGeoPointBox : github.com/gotd/td/bin.Object
InputGeoPointClass represents InputGeoPoint generic type. See https://core.telegram.org/type/InputGeoPoint for reference. Example: g, err := tg.DecodeInputGeoPoint(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputGeoPointEmpty: // inputGeoPointEmpty#e4c123d6 case *tg.InputGeoPoint: // inputGeoPoint#48222faf default: panic(v) } AsNotEmpty tries to map InputGeoPointClass to InputGeoPoint. ( InputGeoPointClass) Decode(b *bin.Buffer) error ( InputGeoPointClass) DecodeBare(b *bin.Buffer) error ( InputGeoPointClass) Encode(b *bin.Buffer) error ( InputGeoPointClass) 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. *InputGeoPoint *InputGeoPointEmpty InputGeoPointClass : github.com/gotd/td/bin.BareDecoder InputGeoPointClass : github.com/gotd/td/bin.BareEncoder InputGeoPointClass : github.com/gotd/td/bin.Decoder InputGeoPointClass : github.com/gotd/td/bin.Encoder InputGeoPointClass : github.com/gotd/td/bin.Object InputGeoPointClass : fmt.Stringer func DecodeInputGeoPoint(buf *bin.Buffer) (InputGeoPointClass, error) func (*ChannelsCreateChannelRequest).GetGeoPoint() (value InputGeoPointClass, ok bool) func (*ChannelsEditLocationRequest).GetGeoPoint() (value InputGeoPointClass) func (*ContactsGetLocatedRequest).GetGeoPoint() (value InputGeoPointClass) func (*InputBotInlineMessageMediaGeo).GetGeoPoint() (value InputGeoPointClass) func (*InputBotInlineMessageMediaVenue).GetGeoPoint() (value InputGeoPointClass) func InputGeoPointClassArray.First() (v InputGeoPointClass, ok bool) func InputGeoPointClassArray.Last() (v InputGeoPointClass, ok bool) func (*InputGeoPointClassArray).Pop() (v InputGeoPointClass, ok bool) func (*InputGeoPointClassArray).PopFirst() (v InputGeoPointClass, ok bool) func (*InputMediaGeoLive).GetGeoPoint() (value InputGeoPointClass) func (*InputMediaGeoPoint).GetGeoPoint() (value InputGeoPointClass) func (*InputMediaVenue).GetGeoPoint() (value InputGeoPointClass) func (*InputWebFileGeoPointLocation).GetGeoPoint() (value InputGeoPointClass) func (*MessagesGetInlineBotResultsRequest).GetGeoPoint() (value InputGeoPointClass, ok bool) func (*ChannelsCreateChannelRequest).SetGeoPoint(value InputGeoPointClass) func (*MessagesGetInlineBotResultsRequest).SetGeoPoint(value InputGeoPointClass)
InputGeoPointClassArray is adapter for slice of InputGeoPointClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsInputGeoPoint returns copy with only InputGeoPoint constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of InputGeoPointClass. Sort sorts slice of InputGeoPointClass. SortStable sorts slice of InputGeoPointClass. func InputGeoPointClassArray.Retain(keep func(x InputGeoPointClass) bool) InputGeoPointClassArray func InputGeoPointClassArray.Sort(less func(a, b InputGeoPointClass) bool) InputGeoPointClassArray func InputGeoPointClassArray.SortStable(less func(a, b InputGeoPointClass) bool) InputGeoPointClassArray
InputGeoPointEmpty represents TL type `inputGeoPointEmpty#e4c123d6`. Empty GeoPoint constructor. See https://core.telegram.org/constructor/inputGeoPointEmpty for reference. AsNotEmpty tries to map InputGeoPointEmpty to InputGeoPoint. 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. (*InputGeoPointEmpty) Zero() bool *InputGeoPointEmpty : InputGeoPointClass *InputGeoPointEmpty : github.com/gotd/td/bin.BareDecoder *InputGeoPointEmpty : github.com/gotd/td/bin.BareEncoder *InputGeoPointEmpty : github.com/gotd/td/bin.Decoder *InputGeoPointEmpty : github.com/gotd/td/bin.Encoder *InputGeoPointEmpty : github.com/gotd/td/bin.Object *InputGeoPointEmpty : github.com/gotd/td/tdp.Object *InputGeoPointEmpty : fmt.Stringer
InputGroupCall represents TL type `inputGroupCall#d8aa840f`. Points to a specific group call See https://core.telegram.org/constructor/inputGroupCall for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputGroupCall from given interface. GetAccessHash returns value of AccessHash 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. (*InputGroupCall) Zero() bool *InputGroupCall : github.com/gotd/td/bin.BareDecoder *InputGroupCall : github.com/gotd/td/bin.BareEncoder *InputGroupCall : github.com/gotd/td/bin.Decoder *InputGroupCall : github.com/gotd/td/bin.Encoder *InputGroupCall : github.com/gotd/td/bin.Object *InputGroupCall : github.com/gotd/td/tdp.Object *InputGroupCall : fmt.Stringer func (*ChannelAdminLogEventActionDiscardGroupCall).GetCall() (value InputGroupCall) func (*ChannelAdminLogEventActionStartGroupCall).GetCall() (value InputGroupCall) func (*ChannelFull).GetCall() (value InputGroupCall, ok bool) func (*ChatFull).GetCall() (value InputGroupCall, ok bool) func ChatFullClass.GetCall() (value InputGroupCall, ok bool) func (*GroupCall).AsInput() *InputGroupCall func (*InputGroupCallStream).GetCall() (value InputGroupCall) func (*MessageActionGroupCall).GetCall() (value InputGroupCall) func (*MessageActionGroupCallScheduled).GetCall() (value InputGroupCall) func (*MessageActionInviteToGroupCall).GetCall() (value InputGroupCall) func (*PhoneCheckGroupCallRequest).GetCall() (value InputGroupCall) func (*PhoneDiscardGroupCallRequest).GetCall() (value InputGroupCall) func (*PhoneEditGroupCallParticipantRequest).GetCall() (value InputGroupCall) func (*PhoneEditGroupCallTitleRequest).GetCall() (value InputGroupCall) func (*PhoneExportGroupCallInviteRequest).GetCall() (value InputGroupCall) func (*PhoneGetGroupCallRequest).GetCall() (value InputGroupCall) func (*PhoneGetGroupCallStreamChannelsRequest).GetCall() (value InputGroupCall) func (*PhoneGetGroupParticipantsRequest).GetCall() (value InputGroupCall) func (*PhoneInviteToGroupCallRequest).GetCall() (value InputGroupCall) func (*PhoneJoinGroupCallPresentationRequest).GetCall() (value InputGroupCall) func (*PhoneJoinGroupCallRequest).GetCall() (value InputGroupCall) func (*PhoneLeaveGroupCallPresentationRequest).GetCall() (value InputGroupCall) func (*PhoneLeaveGroupCallRequest).GetCall() (value InputGroupCall) func (*PhoneStartScheduledGroupCallRequest).GetCall() (value InputGroupCall) func (*PhoneToggleGroupCallRecordRequest).GetCall() (value InputGroupCall) func (*PhoneToggleGroupCallSettingsRequest).GetCall() (value InputGroupCall) func (*PhoneToggleGroupCallStartSubscriptionRequest).GetCall() (value InputGroupCall) func (*UpdateGroupCallParticipants).GetCall() (value InputGroupCall) func (*ChannelFull).SetCall(value InputGroupCall) func (*ChatFull).SetCall(value InputGroupCall) func (*Client).PhoneDiscardGroupCall(ctx context.Context, call InputGroupCall) (UpdatesClass, error) func (*Client).PhoneGetGroupCallStreamChannels(ctx context.Context, call InputGroupCall) (*PhoneGroupCallStreamChannels, error) func (*Client).PhoneLeaveGroupCallPresentation(ctx context.Context, call InputGroupCall) (UpdatesClass, error) func (*Client).PhoneStartScheduledGroupCall(ctx context.Context, call InputGroupCall) (UpdatesClass, error)
InputGroupCallStream represents TL type `inputGroupCallStream#598a92a`. Chunk of a livestream See https://core.telegram.org/constructor/inputGroupCallStream for reference. Livestream info Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Specifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale Timestamp in milliseconds Selected video channel Use SetVideoChannel and GetVideoChannel helpers. Selected video quality (0 = lowest, 1 = medium, 2 = best) Use SetVideoQuality and GetVideoQuality helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputGroupCallStream from given interface. GetCall returns value of Call field. GetScale returns value of Scale field. GetTimeMs returns value of TimeMs field. GetVideoChannel returns value of VideoChannel conditional field and boolean which is true if field was set. GetVideoQuality returns value of VideoQuality conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetVideoChannel sets value of VideoChannel conditional field. SetVideoQuality sets value of VideoQuality 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. (*InputGroupCallStream) Zero() bool *InputGroupCallStream : InputFileLocationClass *InputGroupCallStream : github.com/gotd/td/bin.BareDecoder *InputGroupCallStream : github.com/gotd/td/bin.BareEncoder *InputGroupCallStream : github.com/gotd/td/bin.Decoder *InputGroupCallStream : github.com/gotd/td/bin.Encoder *InputGroupCallStream : github.com/gotd/td/bin.Object *InputGroupCallStream : github.com/gotd/td/tdp.Object *InputGroupCallStream : fmt.Stringer func InputGroupCallStreamArray.First() (v InputGroupCallStream, ok bool) func InputGroupCallStreamArray.Last() (v InputGroupCallStream, ok bool) func (*InputGroupCallStreamArray).Pop() (v InputGroupCallStream, ok bool) func (*InputGroupCallStreamArray).PopFirst() (v InputGroupCallStream, ok bool)
InputGroupCallStreamArray is adapter for slice of InputGroupCallStream. 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 InputGroupCallStream. Sort sorts slice of InputGroupCallStream. SortStable sorts slice of InputGroupCallStream. func InputFileLocationClassArray.AsInputGroupCallStream() (to InputGroupCallStreamArray) func InputGroupCallStreamArray.Retain(keep func(x InputGroupCallStream) bool) InputGroupCallStreamArray func InputGroupCallStreamArray.Sort(less func(a, b InputGroupCallStream) bool) InputGroupCallStreamArray func InputGroupCallStreamArray.SortStable(less func(a, b InputGroupCallStream) bool) InputGroupCallStreamArray
InputInvoice boxes the InputInvoiceClass providing a helper. InputInvoice InputInvoiceClass Decode implements bin.Decoder for InputInvoiceBox. Encode implements bin.Encode for InputInvoiceBox. *InputInvoiceBox : github.com/gotd/td/bin.Decoder *InputInvoiceBox : github.com/gotd/td/bin.Encoder *InputInvoiceBox : github.com/gotd/td/bin.Object
InputInvoiceClass represents InputInvoice generic type. See https://core.telegram.org/type/InputInvoice for reference. Example: g, err := tg.DecodeInputInvoice(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputInvoiceMessage: // inputInvoiceMessage#c5b56859 case *tg.InputInvoiceSlug: // inputInvoiceSlug#c326caef case *tg.InputInvoicePremiumGiftCode: // inputInvoicePremiumGiftCode#98986c0d default: panic(v) } ( InputInvoiceClass) Decode(b *bin.Buffer) error ( InputInvoiceClass) DecodeBare(b *bin.Buffer) error ( InputInvoiceClass) Encode(b *bin.Buffer) error ( InputInvoiceClass) 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. *InputInvoiceMessage *InputInvoicePremiumGiftCode *InputInvoiceSlug InputInvoiceClass : github.com/gotd/td/bin.BareDecoder InputInvoiceClass : github.com/gotd/td/bin.BareEncoder InputInvoiceClass : github.com/gotd/td/bin.Decoder InputInvoiceClass : github.com/gotd/td/bin.Encoder InputInvoiceClass : github.com/gotd/td/bin.Object InputInvoiceClass : fmt.Stringer func DecodeInputInvoice(buf *bin.Buffer) (InputInvoiceClass, error) func InputInvoiceClassArray.First() (v InputInvoiceClass, ok bool) func InputInvoiceClassArray.Last() (v InputInvoiceClass, ok bool) func (*InputInvoiceClassArray).Pop() (v InputInvoiceClass, ok bool) func (*InputInvoiceClassArray).PopFirst() (v InputInvoiceClass, ok bool) func (*PaymentsGetPaymentFormRequest).GetInvoice() (value InputInvoiceClass) func (*PaymentsSendPaymentFormRequest).GetInvoice() (value InputInvoiceClass) func (*PaymentsValidateRequestedInfoRequest).GetInvoice() (value InputInvoiceClass)
InputInvoiceClassArray is adapter for slice of InputInvoiceClass. AsInputInvoiceMessage returns copy with only InputInvoiceMessage constructors. AsInputInvoicePremiumGiftCode returns copy with only InputInvoicePremiumGiftCode constructors. AsInputInvoiceSlug returns copy with only InputInvoiceSlug 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 InputInvoiceClass. Sort sorts slice of InputInvoiceClass. SortStable sorts slice of InputInvoiceClass. func InputInvoiceClassArray.Retain(keep func(x InputInvoiceClass) bool) InputInvoiceClassArray func InputInvoiceClassArray.Sort(less func(a, b InputInvoiceClass) bool) InputInvoiceClassArray func InputInvoiceClassArray.SortStable(less func(a, b InputInvoiceClass) bool) InputInvoiceClassArray
InputInvoiceMessage represents TL type `inputInvoiceMessage#c5b56859`. An invoice contained in a messageMediaInvoice¹ message. Links: 1. https://core.telegram.org/constructor/messageMediaInvoice See https://core.telegram.org/constructor/inputInvoiceMessage for reference. Message ID Chat where the invoice was sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputInvoiceMessage from given interface. GetMsgID returns value of MsgID 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. (*InputInvoiceMessage) Zero() bool *InputInvoiceMessage : InputInvoiceClass *InputInvoiceMessage : github.com/gotd/td/bin.BareDecoder *InputInvoiceMessage : github.com/gotd/td/bin.BareEncoder *InputInvoiceMessage : github.com/gotd/td/bin.Decoder *InputInvoiceMessage : github.com/gotd/td/bin.Encoder *InputInvoiceMessage : github.com/gotd/td/bin.Object *InputInvoiceMessage : github.com/gotd/td/tdp.Object *InputInvoiceMessage : fmt.Stringer func InputInvoiceMessageArray.First() (v InputInvoiceMessage, ok bool) func InputInvoiceMessageArray.Last() (v InputInvoiceMessage, ok bool) func (*InputInvoiceMessageArray).Pop() (v InputInvoiceMessage, ok bool) func (*InputInvoiceMessageArray).PopFirst() (v InputInvoiceMessage, ok bool)
InputInvoiceMessageArray is adapter for slice of InputInvoiceMessage. 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 InputInvoiceMessage. Sort sorts slice of InputInvoiceMessage. SortStable sorts slice of InputInvoiceMessage. func InputInvoiceClassArray.AsInputInvoiceMessage() (to InputInvoiceMessageArray) func InputInvoiceMessageArray.Retain(keep func(x InputInvoiceMessage) bool) InputInvoiceMessageArray func InputInvoiceMessageArray.Sort(less func(a, b InputInvoiceMessage) bool) InputInvoiceMessageArray func InputInvoiceMessageArray.SortStable(less func(a, b InputInvoiceMessage) bool) InputInvoiceMessageArray
InputInvoicePremiumGiftCode represents TL type `inputInvoicePremiumGiftCode#98986c0d`. Used if the user wishes to start a channel giveaway¹ or send some giftcodes² to members of a channel, in exchange for boosts³. Links: 1. https://core.telegram.org/api/giveaways 2. https://core.telegram.org/api/giveaways 3. https://core.telegram.org/api/boost See https://core.telegram.org/constructor/inputInvoicePremiumGiftCode for reference. Should be populated with one of the giveaway options returned by payments getPremiumGiftCodeOptions¹, see the giveaways »² documentation for more info. Links: 1) https://core.telegram.org/method/payments.getPremiumGiftCodeOptions 2) https://core.telegram.org/api/giveaways Should be populated with inputStorePaymentPremiumGiveaway¹ for giveaways² and inputStorePaymentPremiumGiftCode³ for gifts⁴. Links: 1) https://core.telegram.org/constructor/inputStorePaymentPremiumGiveaway 2) https://core.telegram.org/api/giveaways 3) https://core.telegram.org/constructor/inputStorePaymentPremiumGiftCode 4) https://core.telegram.org/api/giveaways Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputInvoicePremiumGiftCode from given interface. GetOption returns value of Option 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. (*InputInvoicePremiumGiftCode) Zero() bool *InputInvoicePremiumGiftCode : InputInvoiceClass *InputInvoicePremiumGiftCode : github.com/gotd/td/bin.BareDecoder *InputInvoicePremiumGiftCode : github.com/gotd/td/bin.BareEncoder *InputInvoicePremiumGiftCode : github.com/gotd/td/bin.Decoder *InputInvoicePremiumGiftCode : github.com/gotd/td/bin.Encoder *InputInvoicePremiumGiftCode : github.com/gotd/td/bin.Object *InputInvoicePremiumGiftCode : github.com/gotd/td/tdp.Object *InputInvoicePremiumGiftCode : fmt.Stringer func InputInvoicePremiumGiftCodeArray.First() (v InputInvoicePremiumGiftCode, ok bool) func InputInvoicePremiumGiftCodeArray.Last() (v InputInvoicePremiumGiftCode, ok bool) func (*InputInvoicePremiumGiftCodeArray).Pop() (v InputInvoicePremiumGiftCode, ok bool) func (*InputInvoicePremiumGiftCodeArray).PopFirst() (v InputInvoicePremiumGiftCode, ok bool)
InputInvoicePremiumGiftCodeArray is adapter for slice of InputInvoicePremiumGiftCode. 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 InputInvoicePremiumGiftCode. Sort sorts slice of InputInvoicePremiumGiftCode. SortStable sorts slice of InputInvoicePremiumGiftCode. func InputInvoiceClassArray.AsInputInvoicePremiumGiftCode() (to InputInvoicePremiumGiftCodeArray) func InputInvoicePremiumGiftCodeArray.Retain(keep func(x InputInvoicePremiumGiftCode) bool) InputInvoicePremiumGiftCodeArray func InputInvoicePremiumGiftCodeArray.Sort(less func(a, b InputInvoicePremiumGiftCode) bool) InputInvoicePremiumGiftCodeArray func InputInvoicePremiumGiftCodeArray.SortStable(less func(a, b InputInvoicePremiumGiftCode) bool) InputInvoicePremiumGiftCodeArray
InputInvoiceSlug represents TL type `inputInvoiceSlug#c326caef`. An invoice slug taken from an invoice deep link¹ or from the premium_invoice_slug app config parameter »² Links: 1. https://core.telegram.org/api/links#invoice-links 2. https://core.telegram.org/api/config#premium-invoice-slug See https://core.telegram.org/constructor/inputInvoiceSlug for reference. slug obtained from the chat folder deep link »¹ Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputInvoiceSlug 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. (*InputInvoiceSlug) Zero() bool *InputInvoiceSlug : InputInvoiceClass *InputInvoiceSlug : github.com/gotd/td/bin.BareDecoder *InputInvoiceSlug : github.com/gotd/td/bin.BareEncoder *InputInvoiceSlug : github.com/gotd/td/bin.Decoder *InputInvoiceSlug : github.com/gotd/td/bin.Encoder *InputInvoiceSlug : github.com/gotd/td/bin.Object *InputInvoiceSlug : github.com/gotd/td/tdp.Object *InputInvoiceSlug : fmt.Stringer func InputInvoiceSlugArray.First() (v InputInvoiceSlug, ok bool) func InputInvoiceSlugArray.Last() (v InputInvoiceSlug, ok bool) func (*InputInvoiceSlugArray).Pop() (v InputInvoiceSlug, ok bool) func (*InputInvoiceSlugArray).PopFirst() (v InputInvoiceSlug, ok bool)
InputInvoiceSlugArray is adapter for slice of InputInvoiceSlug. 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 InputInvoiceSlug. Sort sorts slice of InputInvoiceSlug. SortStable sorts slice of InputInvoiceSlug. func InputInvoiceClassArray.AsInputInvoiceSlug() (to InputInvoiceSlugArray) func InputInvoiceSlugArray.Retain(keep func(x InputInvoiceSlug) bool) InputInvoiceSlugArray func InputInvoiceSlugArray.Sort(less func(a, b InputInvoiceSlug) bool) InputInvoiceSlugArray func InputInvoiceSlugArray.SortStable(less func(a, b InputInvoiceSlug) bool) InputInvoiceSlugArray
InputKeyboardButtonURLAuth represents TL type `inputKeyboardButtonUrlAuth#d02e7fd4`. Button to request a user to authorize¹ via URL using Seamless Telegram Login². Links: 1. https://core.telegram.org/method/messages.acceptUrlAuth 2. https://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots See https://core.telegram.org/constructor/inputKeyboardButtonUrlAuth for reference. Username of a bot, which will be used for user authorization. See Setting up a bot¹ for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot² for more details. Links: 1) https://core.telegram.org/widgets/login#setting-up-a-bot 2) https://core.telegram.org/widgets/login#linking-your-domain-to-the-bot Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields New text of the button in forwarded messages. Use SetFwdText and GetFwdText helpers. Set this flag to request the permission for your bot to send messages to the user. Button text An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data¹.NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization². Links: 1) https://core.telegram.org/widgets/login#receiving-authorization-data 2) https://core.telegram.org/widgets/login#checking-authorization Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputKeyboardButtonURLAuth from given interface. GetBot returns value of Bot field. GetFwdText returns value of FwdText conditional field and boolean which is true if field was set. GetRequestWriteAccess returns value of RequestWriteAccess conditional field. GetText returns value of Text field. GetURL returns value of URL field. SetFlags sets flags for non-zero fields. SetFwdText sets value of FwdText conditional field. SetRequestWriteAccess sets value of RequestWriteAccess 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. (*InputKeyboardButtonURLAuth) Zero() bool *InputKeyboardButtonURLAuth : KeyboardButtonClass *InputKeyboardButtonURLAuth : github.com/gotd/td/bin.BareDecoder *InputKeyboardButtonURLAuth : github.com/gotd/td/bin.BareEncoder *InputKeyboardButtonURLAuth : github.com/gotd/td/bin.Decoder *InputKeyboardButtonURLAuth : github.com/gotd/td/bin.Encoder *InputKeyboardButtonURLAuth : github.com/gotd/td/bin.Object *InputKeyboardButtonURLAuth : github.com/gotd/td/tdp.Object *InputKeyboardButtonURLAuth : fmt.Stringer func InputKeyboardButtonURLAuthArray.First() (v InputKeyboardButtonURLAuth, ok bool) func InputKeyboardButtonURLAuthArray.Last() (v InputKeyboardButtonURLAuth, ok bool) func (*InputKeyboardButtonURLAuthArray).Pop() (v InputKeyboardButtonURLAuth, ok bool) func (*InputKeyboardButtonURLAuthArray).PopFirst() (v InputKeyboardButtonURLAuth, ok bool)
InputKeyboardButtonURLAuthArray is adapter for slice of InputKeyboardButtonURLAuth. 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 InputKeyboardButtonURLAuth. Sort sorts slice of InputKeyboardButtonURLAuth. SortStable sorts slice of InputKeyboardButtonURLAuth. func InputKeyboardButtonURLAuthArray.Retain(keep func(x InputKeyboardButtonURLAuth) bool) InputKeyboardButtonURLAuthArray func InputKeyboardButtonURLAuthArray.Sort(less func(a, b InputKeyboardButtonURLAuth) bool) InputKeyboardButtonURLAuthArray func InputKeyboardButtonURLAuthArray.SortStable(less func(a, b InputKeyboardButtonURLAuth) bool) InputKeyboardButtonURLAuthArray func KeyboardButtonClassArray.AsInputKeyboardButtonURLAuth() (to InputKeyboardButtonURLAuthArray)
InputKeyboardButtonUserProfile represents TL type `inputKeyboardButtonUserProfile#e988037b`. Button that links directly to a user profile See https://core.telegram.org/constructor/inputKeyboardButtonUserProfile for reference. Button text User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputKeyboardButtonUserProfile from given interface. GetText returns value of Text 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. (*InputKeyboardButtonUserProfile) Zero() bool *InputKeyboardButtonUserProfile : KeyboardButtonClass *InputKeyboardButtonUserProfile : github.com/gotd/td/bin.BareDecoder *InputKeyboardButtonUserProfile : github.com/gotd/td/bin.BareEncoder *InputKeyboardButtonUserProfile : github.com/gotd/td/bin.Decoder *InputKeyboardButtonUserProfile : github.com/gotd/td/bin.Encoder *InputKeyboardButtonUserProfile : github.com/gotd/td/bin.Object *InputKeyboardButtonUserProfile : github.com/gotd/td/tdp.Object *InputKeyboardButtonUserProfile : fmt.Stringer func InputKeyboardButtonUserProfileArray.First() (v InputKeyboardButtonUserProfile, ok bool) func InputKeyboardButtonUserProfileArray.Last() (v InputKeyboardButtonUserProfile, ok bool) func (*InputKeyboardButtonUserProfileArray).Pop() (v InputKeyboardButtonUserProfile, ok bool) func (*InputKeyboardButtonUserProfileArray).PopFirst() (v InputKeyboardButtonUserProfile, ok bool)
InputKeyboardButtonUserProfileArray is adapter for slice of InputKeyboardButtonUserProfile. 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 InputKeyboardButtonUserProfile. Sort sorts slice of InputKeyboardButtonUserProfile. SortStable sorts slice of InputKeyboardButtonUserProfile. func InputKeyboardButtonUserProfileArray.Retain(keep func(x InputKeyboardButtonUserProfile) bool) InputKeyboardButtonUserProfileArray func InputKeyboardButtonUserProfileArray.Sort(less func(a, b InputKeyboardButtonUserProfile) bool) InputKeyboardButtonUserProfileArray func InputKeyboardButtonUserProfileArray.SortStable(less func(a, b InputKeyboardButtonUserProfile) bool) InputKeyboardButtonUserProfileArray func KeyboardButtonClassArray.AsInputKeyboardButtonUserProfile() (to InputKeyboardButtonUserProfileArray)
InputMediaAreaChannelPost represents TL type `inputMediaAreaChannelPost#2271f2bf`. See https://core.telegram.org/constructor/inputMediaAreaChannelPost for reference. Channel field of InputMediaAreaChannelPost. Coordinates field of InputMediaAreaChannelPost. MsgID field of InputMediaAreaChannelPost. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaAreaChannelPost from given interface. GetChannel returns value of Channel field. GetCoordinates returns value of Coordinates field. GetMsgID returns value of MsgID 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. (*InputMediaAreaChannelPost) Zero() bool *InputMediaAreaChannelPost : MediaAreaClass *InputMediaAreaChannelPost : github.com/gotd/td/bin.BareDecoder *InputMediaAreaChannelPost : github.com/gotd/td/bin.BareEncoder *InputMediaAreaChannelPost : github.com/gotd/td/bin.Decoder *InputMediaAreaChannelPost : github.com/gotd/td/bin.Encoder *InputMediaAreaChannelPost : github.com/gotd/td/bin.Object *InputMediaAreaChannelPost : github.com/gotd/td/tdp.Object *InputMediaAreaChannelPost : fmt.Stringer func InputMediaAreaChannelPostArray.First() (v InputMediaAreaChannelPost, ok bool) func InputMediaAreaChannelPostArray.Last() (v InputMediaAreaChannelPost, ok bool) func (*InputMediaAreaChannelPostArray).Pop() (v InputMediaAreaChannelPost, ok bool) func (*InputMediaAreaChannelPostArray).PopFirst() (v InputMediaAreaChannelPost, ok bool)
InputMediaAreaChannelPostArray is adapter for slice of InputMediaAreaChannelPost. 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 InputMediaAreaChannelPost. Sort sorts slice of InputMediaAreaChannelPost. SortStable sorts slice of InputMediaAreaChannelPost. func InputMediaAreaChannelPostArray.Retain(keep func(x InputMediaAreaChannelPost) bool) InputMediaAreaChannelPostArray func InputMediaAreaChannelPostArray.Sort(less func(a, b InputMediaAreaChannelPost) bool) InputMediaAreaChannelPostArray func InputMediaAreaChannelPostArray.SortStable(less func(a, b InputMediaAreaChannelPost) bool) InputMediaAreaChannelPostArray func MediaAreaClassArray.AsInputMediaAreaChannelPost() (to InputMediaAreaChannelPostArray)
InputMediaAreaVenue represents TL type `inputMediaAreaVenue#b282217f`. Represents a location tag¹ attached to a story², with additional venue information. Links: 1. https://core.telegram.org/api/stories#media-areas 2. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/inputMediaAreaVenue for reference. The size and location of the media area corresponding to the location sticker on top of the story media. The query_id from messages.botResults¹, see here »² for more info. Links: 1) https://core.telegram.org/constructor/messages.botResults 2) https://core.telegram.org/api/stories#media-areas The id of the chosen result, see here »¹ for more info. Links: 1) https://core.telegram.org/api/stories#media-areas Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaAreaVenue from given interface. GetCoordinates returns value of Coordinates field. GetQueryID returns value of QueryID field. GetResultID returns value of ResultID 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. (*InputMediaAreaVenue) Zero() bool *InputMediaAreaVenue : MediaAreaClass *InputMediaAreaVenue : github.com/gotd/td/bin.BareDecoder *InputMediaAreaVenue : github.com/gotd/td/bin.BareEncoder *InputMediaAreaVenue : github.com/gotd/td/bin.Decoder *InputMediaAreaVenue : github.com/gotd/td/bin.Encoder *InputMediaAreaVenue : github.com/gotd/td/bin.Object *InputMediaAreaVenue : github.com/gotd/td/tdp.Object *InputMediaAreaVenue : fmt.Stringer func InputMediaAreaVenueArray.First() (v InputMediaAreaVenue, ok bool) func InputMediaAreaVenueArray.Last() (v InputMediaAreaVenue, ok bool) func (*InputMediaAreaVenueArray).Pop() (v InputMediaAreaVenue, ok bool) func (*InputMediaAreaVenueArray).PopFirst() (v InputMediaAreaVenue, ok bool)
InputMediaAreaVenueArray is adapter for slice of InputMediaAreaVenue. 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 InputMediaAreaVenue. Sort sorts slice of InputMediaAreaVenue. SortStable sorts slice of InputMediaAreaVenue. func InputMediaAreaVenueArray.Retain(keep func(x InputMediaAreaVenue) bool) InputMediaAreaVenueArray func InputMediaAreaVenueArray.Sort(less func(a, b InputMediaAreaVenue) bool) InputMediaAreaVenueArray func InputMediaAreaVenueArray.SortStable(less func(a, b InputMediaAreaVenue) bool) InputMediaAreaVenueArray func MediaAreaClassArray.AsInputMediaAreaVenue() (to InputMediaAreaVenueArray)
InputMedia boxes the InputMediaClass providing a helper. InputMedia InputMediaClass Decode implements bin.Decoder for InputMediaBox. Encode implements bin.Encode for InputMediaBox. *InputMediaBox : github.com/gotd/td/bin.Decoder *InputMediaBox : github.com/gotd/td/bin.Encoder *InputMediaBox : github.com/gotd/td/bin.Object
InputMediaClass represents InputMedia generic type. See https://core.telegram.org/type/InputMedia for reference. Example: g, err := tg.DecodeInputMedia(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputMediaEmpty: // inputMediaEmpty#9664f57f case *tg.InputMediaUploadedPhoto: // inputMediaUploadedPhoto#1e287d04 case *tg.InputMediaPhoto: // inputMediaPhoto#b3ba0635 case *tg.InputMediaGeoPoint: // inputMediaGeoPoint#f9c44144 case *tg.InputMediaContact: // inputMediaContact#f8ab7dfb case *tg.InputMediaUploadedDocument: // inputMediaUploadedDocument#5b38c6c1 case *tg.InputMediaDocument: // inputMediaDocument#33473058 case *tg.InputMediaVenue: // inputMediaVenue#c13d1c11 case *tg.InputMediaPhotoExternal: // inputMediaPhotoExternal#e5bbfe1a case *tg.InputMediaDocumentExternal: // inputMediaDocumentExternal#fb52dc99 case *tg.InputMediaGame: // inputMediaGame#d33f43f3 case *tg.InputMediaInvoice: // inputMediaInvoice#8eb5a6d5 case *tg.InputMediaGeoLive: // inputMediaGeoLive#971fa843 case *tg.InputMediaPoll: // inputMediaPoll#f94e5f1 case *tg.InputMediaDice: // inputMediaDice#e66fbf7b case *tg.InputMediaStory: // inputMediaStory#89fdd778 case *tg.InputMediaWebPage: // inputMediaWebPage#c21b8849 default: panic(v) } ( InputMediaClass) Decode(b *bin.Buffer) error ( InputMediaClass) DecodeBare(b *bin.Buffer) error ( InputMediaClass) Encode(b *bin.Buffer) error ( InputMediaClass) 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. *InputMediaContact *InputMediaDice *InputMediaDocument *InputMediaDocumentExternal *InputMediaEmpty *InputMediaGame *InputMediaGeoLive *InputMediaGeoPoint *InputMediaInvoice *InputMediaPhoto *InputMediaPhotoExternal *InputMediaPoll *InputMediaStory *InputMediaUploadedDocument *InputMediaUploadedPhoto *InputMediaVenue *InputMediaWebPage InputMediaClass : github.com/gotd/td/bin.BareDecoder InputMediaClass : github.com/gotd/td/bin.BareEncoder InputMediaClass : github.com/gotd/td/bin.Decoder InputMediaClass : github.com/gotd/td/bin.Encoder InputMediaClass : github.com/gotd/td/bin.Object InputMediaClass : fmt.Stringer func DecodeInputMedia(buf *bin.Buffer) (InputMediaClass, error) func (*DraftMessage).GetMedia() (value InputMediaClass, ok bool) func InputMediaClassArray.First() (v InputMediaClass, ok bool) func InputMediaClassArray.Last() (v InputMediaClass, ok bool) func (*InputMediaClassArray).Pop() (v InputMediaClass, ok bool) func (*InputMediaClassArray).PopFirst() (v InputMediaClass, ok bool) func (*InputMediaInvoice).GetExtendedMedia() (value InputMediaClass, ok bool) func (*InputSingleMedia).GetMedia() (value InputMediaClass) func (*MessagesEditInlineBotMessageRequest).GetMedia() (value InputMediaClass, ok bool) func (*MessagesEditMessageRequest).GetMedia() (value InputMediaClass, ok bool) func (*MessagesSaveDraftRequest).GetMedia() (value InputMediaClass, ok bool) func (*MessagesSendMediaRequest).GetMedia() (value InputMediaClass) func (*MessagesUploadImportedMediaRequest).GetMedia() (value InputMediaClass) func (*MessagesUploadMediaRequest).GetMedia() (value InputMediaClass) func (*PaymentsExportInvoiceRequest).GetInvoiceMedia() (value InputMediaClass) func (*StoriesEditStoryRequest).GetMedia() (value InputMediaClass, ok bool) func (*StoriesSendStoryRequest).GetMedia() (value InputMediaClass) func (*Client).PaymentsExportInvoice(ctx context.Context, invoicemedia InputMediaClass) (*PaymentsExportedInvoice, error) func (*DraftMessage).SetMedia(value InputMediaClass) func (*InputMediaInvoice).SetExtendedMedia(value InputMediaClass) func (*MessagesEditInlineBotMessageRequest).SetMedia(value InputMediaClass) func (*MessagesEditMessageRequest).SetMedia(value InputMediaClass) func (*MessagesSaveDraftRequest).SetMedia(value InputMediaClass) func (*StoriesEditStoryRequest).SetMedia(value InputMediaClass)
InputMediaClassArray is adapter for slice of InputMediaClass. AsInputMediaContact returns copy with only InputMediaContact constructors. AsInputMediaDice returns copy with only InputMediaDice constructors. AsInputMediaDocument returns copy with only InputMediaDocument constructors. AsInputMediaDocumentExternal returns copy with only InputMediaDocumentExternal constructors. AsInputMediaGame returns copy with only InputMediaGame constructors. AsInputMediaGeoLive returns copy with only InputMediaGeoLive constructors. AsInputMediaGeoPoint returns copy with only InputMediaGeoPoint constructors. AsInputMediaInvoice returns copy with only InputMediaInvoice constructors. AsInputMediaPhoto returns copy with only InputMediaPhoto constructors. AsInputMediaPhotoExternal returns copy with only InputMediaPhotoExternal constructors. AsInputMediaPoll returns copy with only InputMediaPoll constructors. AsInputMediaStory returns copy with only InputMediaStory constructors. AsInputMediaUploadedDocument returns copy with only InputMediaUploadedDocument constructors. AsInputMediaUploadedPhoto returns copy with only InputMediaUploadedPhoto constructors. AsInputMediaVenue returns copy with only InputMediaVenue constructors. AsInputMediaWebPage returns copy with only InputMediaWebPage 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 InputMediaClass. Sort sorts slice of InputMediaClass. SortStable sorts slice of InputMediaClass. func InputMediaClassArray.Retain(keep func(x InputMediaClass) bool) InputMediaClassArray func InputMediaClassArray.Sort(less func(a, b InputMediaClass) bool) InputMediaClassArray func InputMediaClassArray.SortStable(less func(a, b InputMediaClass) bool) InputMediaClassArray
InputMediaContact represents TL type `inputMediaContact#f8ab7dfb`. Phone book contact See https://core.telegram.org/constructor/inputMediaContact for reference. Contact's first name Contact's last name Phone number Contact vcard Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaContact from given interface. GetFirstName returns value of FirstName field. GetLastName returns value of LastName field. GetPhoneNumber returns value of PhoneNumber field. GetVcard returns value of Vcard 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. (*InputMediaContact) Zero() bool *InputMediaContact : InputMediaClass *InputMediaContact : github.com/gotd/td/bin.BareDecoder *InputMediaContact : github.com/gotd/td/bin.BareEncoder *InputMediaContact : github.com/gotd/td/bin.Decoder *InputMediaContact : github.com/gotd/td/bin.Encoder *InputMediaContact : github.com/gotd/td/bin.Object *InputMediaContact : github.com/gotd/td/tdp.Object *InputMediaContact : fmt.Stringer func InputMediaContactArray.First() (v InputMediaContact, ok bool) func InputMediaContactArray.Last() (v InputMediaContact, ok bool) func (*InputMediaContactArray).Pop() (v InputMediaContact, ok bool) func (*InputMediaContactArray).PopFirst() (v InputMediaContact, ok bool)
InputMediaContactArray is adapter for slice of InputMediaContact. 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 InputMediaContact. Sort sorts slice of InputMediaContact. SortStable sorts slice of InputMediaContact. func InputMediaClassArray.AsInputMediaContact() (to InputMediaContactArray) func InputMediaContactArray.Retain(keep func(x InputMediaContact) bool) InputMediaContactArray func InputMediaContactArray.Sort(less func(a, b InputMediaContact) bool) InputMediaContactArray func InputMediaContactArray.SortStable(less func(a, b InputMediaContact) bool) InputMediaContactArray
InputMediaDice represents TL type `inputMediaDice#e66fbf7b`. Send a dice-based animated sticker¹ Links: 1. https://core.telegram.org/api/dice See https://core.telegram.org/constructor/inputMediaDice for reference. The emoji, for now , and are supported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaDice from given interface. GetEmoticon returns value of Emoticon 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. (*InputMediaDice) Zero() bool *InputMediaDice : InputMediaClass *InputMediaDice : github.com/gotd/td/bin.BareDecoder *InputMediaDice : github.com/gotd/td/bin.BareEncoder *InputMediaDice : github.com/gotd/td/bin.Decoder *InputMediaDice : github.com/gotd/td/bin.Encoder *InputMediaDice : github.com/gotd/td/bin.Object *InputMediaDice : github.com/gotd/td/tdp.Object *InputMediaDice : fmt.Stringer func InputMediaDiceArray.First() (v InputMediaDice, ok bool) func InputMediaDiceArray.Last() (v InputMediaDice, ok bool) func (*InputMediaDiceArray).Pop() (v InputMediaDice, ok bool) func (*InputMediaDiceArray).PopFirst() (v InputMediaDice, ok bool)
InputMediaDiceArray is adapter for slice of InputMediaDice. 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 InputMediaDice. Sort sorts slice of InputMediaDice. SortStable sorts slice of InputMediaDice. func InputMediaClassArray.AsInputMediaDice() (to InputMediaDiceArray) func InputMediaDiceArray.Retain(keep func(x InputMediaDice) bool) InputMediaDiceArray func InputMediaDiceArray.Sort(less func(a, b InputMediaDice) bool) InputMediaDiceArray func InputMediaDiceArray.SortStable(less func(a, b InputMediaDice) bool) InputMediaDiceArray
InputMediaDocument represents TL type `inputMediaDocument#33473058`. Forwarded document See https://core.telegram.org/constructor/inputMediaDocument for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The document to be forwarded. Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance. Use SetQuery and GetQuery helpers. Whether this media should be hidden behind a spoiler warning Time to live of self-destructing document Use SetTTLSeconds and GetTTLSeconds helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaDocument from given interface. GetID returns value of ID field. GetQuery returns value of Query conditional field and boolean which is true if field was set. GetSpoiler returns value of Spoiler conditional field. GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetQuery sets value of Query conditional field. SetSpoiler sets value of Spoiler conditional field. SetTTLSeconds sets value of TTLSeconds 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. (*InputMediaDocument) Zero() bool *InputMediaDocument : InputMediaClass *InputMediaDocument : github.com/gotd/td/bin.BareDecoder *InputMediaDocument : github.com/gotd/td/bin.BareEncoder *InputMediaDocument : github.com/gotd/td/bin.Decoder *InputMediaDocument : github.com/gotd/td/bin.Encoder *InputMediaDocument : github.com/gotd/td/bin.Object *InputMediaDocument : github.com/gotd/td/tdp.Object *InputMediaDocument : fmt.Stringer func InputMediaDocumentArray.First() (v InputMediaDocument, ok bool) func InputMediaDocumentArray.Last() (v InputMediaDocument, ok bool) func (*InputMediaDocumentArray).Pop() (v InputMediaDocument, ok bool) func (*InputMediaDocumentArray).PopFirst() (v InputMediaDocument, ok bool)
InputMediaDocumentArray is adapter for slice of InputMediaDocument. 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 InputMediaDocument. Sort sorts slice of InputMediaDocument. SortStable sorts slice of InputMediaDocument. func InputMediaClassArray.AsInputMediaDocument() (to InputMediaDocumentArray) func InputMediaDocumentArray.Retain(keep func(x InputMediaDocument) bool) InputMediaDocumentArray func InputMediaDocumentArray.Sort(less func(a, b InputMediaDocument) bool) InputMediaDocumentArray func InputMediaDocumentArray.SortStable(less func(a, b InputMediaDocument) bool) InputMediaDocumentArray
InputMediaDocumentExternal represents TL type `inputMediaDocumentExternal#fb52dc99`. Document that will be downloaded by the telegram servers See https://core.telegram.org/constructor/inputMediaDocumentExternal for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this media should be hidden behind a spoiler warning Self-destruct time to live of photo Use SetTTLSeconds and GetTTLSeconds helpers. URL of the photo Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaDocumentExternal from given interface. GetSpoiler returns value of Spoiler conditional field. GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set. GetURL returns value of URL field. SetFlags sets flags for non-zero fields. SetSpoiler sets value of Spoiler conditional field. SetTTLSeconds sets value of TTLSeconds 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. (*InputMediaDocumentExternal) Zero() bool *InputMediaDocumentExternal : InputMediaClass *InputMediaDocumentExternal : github.com/gotd/td/bin.BareDecoder *InputMediaDocumentExternal : github.com/gotd/td/bin.BareEncoder *InputMediaDocumentExternal : github.com/gotd/td/bin.Decoder *InputMediaDocumentExternal : github.com/gotd/td/bin.Encoder *InputMediaDocumentExternal : github.com/gotd/td/bin.Object *InputMediaDocumentExternal : github.com/gotd/td/tdp.Object *InputMediaDocumentExternal : fmt.Stringer func InputMediaDocumentExternalArray.First() (v InputMediaDocumentExternal, ok bool) func InputMediaDocumentExternalArray.Last() (v InputMediaDocumentExternal, ok bool) func (*InputMediaDocumentExternalArray).Pop() (v InputMediaDocumentExternal, ok bool) func (*InputMediaDocumentExternalArray).PopFirst() (v InputMediaDocumentExternal, ok bool)
InputMediaDocumentExternalArray is adapter for slice of InputMediaDocumentExternal. 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 InputMediaDocumentExternal. Sort sorts slice of InputMediaDocumentExternal. SortStable sorts slice of InputMediaDocumentExternal. func InputMediaClassArray.AsInputMediaDocumentExternal() (to InputMediaDocumentExternalArray) func InputMediaDocumentExternalArray.Retain(keep func(x InputMediaDocumentExternal) bool) InputMediaDocumentExternalArray func InputMediaDocumentExternalArray.Sort(less func(a, b InputMediaDocumentExternal) bool) InputMediaDocumentExternalArray func InputMediaDocumentExternalArray.SortStable(less func(a, b InputMediaDocumentExternal) bool) InputMediaDocumentExternalArray
InputMediaEmpty represents TL type `inputMediaEmpty#9664f57f`. Empty media content of a message. See https://core.telegram.org/constructor/inputMediaEmpty 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. (*InputMediaEmpty) Zero() bool *InputMediaEmpty : InputMediaClass *InputMediaEmpty : github.com/gotd/td/bin.BareDecoder *InputMediaEmpty : github.com/gotd/td/bin.BareEncoder *InputMediaEmpty : github.com/gotd/td/bin.Decoder *InputMediaEmpty : github.com/gotd/td/bin.Encoder *InputMediaEmpty : github.com/gotd/td/bin.Object *InputMediaEmpty : github.com/gotd/td/tdp.Object *InputMediaEmpty : fmt.Stringer
InputMediaGame represents TL type `inputMediaGame#d33f43f3`. A game See https://core.telegram.org/constructor/inputMediaGame for reference. The game to forward Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaGame 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. (*InputMediaGame) Zero() bool *InputMediaGame : InputMediaClass *InputMediaGame : github.com/gotd/td/bin.BareDecoder *InputMediaGame : github.com/gotd/td/bin.BareEncoder *InputMediaGame : github.com/gotd/td/bin.Decoder *InputMediaGame : github.com/gotd/td/bin.Encoder *InputMediaGame : github.com/gotd/td/bin.Object *InputMediaGame : github.com/gotd/td/tdp.Object *InputMediaGame : fmt.Stringer func InputMediaGameArray.First() (v InputMediaGame, ok bool) func InputMediaGameArray.Last() (v InputMediaGame, ok bool) func (*InputMediaGameArray).Pop() (v InputMediaGame, ok bool) func (*InputMediaGameArray).PopFirst() (v InputMediaGame, ok bool)
InputMediaGameArray is adapter for slice of InputMediaGame. 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 InputMediaGame. Sort sorts slice of InputMediaGame. SortStable sorts slice of InputMediaGame. func InputMediaClassArray.AsInputMediaGame() (to InputMediaGameArray) func InputMediaGameArray.Retain(keep func(x InputMediaGame) bool) InputMediaGameArray func InputMediaGameArray.Sort(less func(a, b InputMediaGame) bool) InputMediaGameArray func InputMediaGameArray.SortStable(less func(a, b InputMediaGame) bool) InputMediaGameArray
InputMediaGeoLive represents TL type `inputMediaGeoLive#971fa843`. Live geolocation¹ Links: 1. https://core.telegram.org/api/live-location See https://core.telegram.org/constructor/inputMediaGeoLive for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Current 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 of the current location 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. Whether sending of the geolocation was stopped Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaGeoLive from given interface. GetGeoPoint returns value of GeoPoint 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. GetStopped returns value of Stopped conditional field. 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. SetStopped sets value of Stopped 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. (*InputMediaGeoLive) Zero() bool *InputMediaGeoLive : InputMediaClass *InputMediaGeoLive : github.com/gotd/td/bin.BareDecoder *InputMediaGeoLive : github.com/gotd/td/bin.BareEncoder *InputMediaGeoLive : github.com/gotd/td/bin.Decoder *InputMediaGeoLive : github.com/gotd/td/bin.Encoder *InputMediaGeoLive : github.com/gotd/td/bin.Object *InputMediaGeoLive : github.com/gotd/td/tdp.Object *InputMediaGeoLive : fmt.Stringer func InputMediaGeoLiveArray.First() (v InputMediaGeoLive, ok bool) func InputMediaGeoLiveArray.Last() (v InputMediaGeoLive, ok bool) func (*InputMediaGeoLiveArray).Pop() (v InputMediaGeoLive, ok bool) func (*InputMediaGeoLiveArray).PopFirst() (v InputMediaGeoLive, ok bool)
InputMediaGeoLiveArray is adapter for slice of InputMediaGeoLive. 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 InputMediaGeoLive. Sort sorts slice of InputMediaGeoLive. SortStable sorts slice of InputMediaGeoLive. func InputMediaClassArray.AsInputMediaGeoLive() (to InputMediaGeoLiveArray) func InputMediaGeoLiveArray.Retain(keep func(x InputMediaGeoLive) bool) InputMediaGeoLiveArray func InputMediaGeoLiveArray.Sort(less func(a, b InputMediaGeoLive) bool) InputMediaGeoLiveArray func InputMediaGeoLiveArray.SortStable(less func(a, b InputMediaGeoLive) bool) InputMediaGeoLiveArray
InputMediaGeoPoint represents TL type `inputMediaGeoPoint#f9c44144`. Map. See https://core.telegram.org/constructor/inputMediaGeoPoint for reference. GeoPoint Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaGeoPoint from given interface. GetGeoPoint returns value of GeoPoint 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. (*InputMediaGeoPoint) Zero() bool *InputMediaGeoPoint : InputMediaClass *InputMediaGeoPoint : github.com/gotd/td/bin.BareDecoder *InputMediaGeoPoint : github.com/gotd/td/bin.BareEncoder *InputMediaGeoPoint : github.com/gotd/td/bin.Decoder *InputMediaGeoPoint : github.com/gotd/td/bin.Encoder *InputMediaGeoPoint : github.com/gotd/td/bin.Object *InputMediaGeoPoint : github.com/gotd/td/tdp.Object *InputMediaGeoPoint : fmt.Stringer func InputMediaGeoPointArray.First() (v InputMediaGeoPoint, ok bool) func InputMediaGeoPointArray.Last() (v InputMediaGeoPoint, ok bool) func (*InputMediaGeoPointArray).Pop() (v InputMediaGeoPoint, ok bool) func (*InputMediaGeoPointArray).PopFirst() (v InputMediaGeoPoint, ok bool)
InputMediaGeoPointArray is adapter for slice of InputMediaGeoPoint. 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 InputMediaGeoPoint. Sort sorts slice of InputMediaGeoPoint. SortStable sorts slice of InputMediaGeoPoint. func InputMediaClassArray.AsInputMediaGeoPoint() (to InputMediaGeoPointArray) func InputMediaGeoPointArray.Retain(keep func(x InputMediaGeoPoint) bool) InputMediaGeoPointArray func InputMediaGeoPointArray.Sort(less func(a, b InputMediaGeoPoint) bool) InputMediaGeoPointArray func InputMediaGeoPointArray.SortStable(less func(a, b InputMediaGeoPoint) bool) InputMediaGeoPointArray
InputMediaInvoice represents TL type `inputMediaInvoice#8eb5a6d5`. Generated invoice of a bot payment¹ Links: 1. https://core.telegram.org/bots/payments See https://core.telegram.org/constructor/inputMediaInvoice for reference. Product description, 1-255 characters Extended media Use SetExtendedMedia and GetExtendedMedia helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The actual invoice Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for. Use SetPhoto and GetPhoto helpers. Payments provider token, obtained via Botfather¹ Links: 1) https://t.me/botfather JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider. Unique bot deep links start parameter¹. If present, forwarded copies of the sent message will have a URL button with a deep link² to the bot (instead of a Pay button) with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. Links: 1) https://core.telegram.org/api/links#bot-links 2) https://core.telegram.org/api/links#bot-links Use SetStartParam and GetStartParam helpers. Product name, 1-32 characters Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaInvoice from given interface. GetDescription returns value of Description field. GetExtendedMedia returns value of ExtendedMedia conditional field and boolean which is true if field was set. GetInvoice returns value of Invoice field. GetPayload returns value of Payload field. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetProvider returns value of Provider field. GetProviderData returns value of ProviderData field. GetStartParam returns value of StartParam conditional field and boolean which is true if field was set. GetTitle returns value of Title field. SetExtendedMedia sets value of ExtendedMedia conditional field. SetFlags sets flags for non-zero fields. SetPhoto sets value of Photo conditional field. SetStartParam sets value of StartParam 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. (*InputMediaInvoice) Zero() bool *InputMediaInvoice : InputMediaClass *InputMediaInvoice : github.com/gotd/td/bin.BareDecoder *InputMediaInvoice : github.com/gotd/td/bin.BareEncoder *InputMediaInvoice : github.com/gotd/td/bin.Decoder *InputMediaInvoice : github.com/gotd/td/bin.Encoder *InputMediaInvoice : github.com/gotd/td/bin.Object *InputMediaInvoice : github.com/gotd/td/tdp.Object *InputMediaInvoice : fmt.Stringer func InputMediaInvoiceArray.First() (v InputMediaInvoice, ok bool) func InputMediaInvoiceArray.Last() (v InputMediaInvoice, ok bool) func (*InputMediaInvoiceArray).Pop() (v InputMediaInvoice, ok bool) func (*InputMediaInvoiceArray).PopFirst() (v InputMediaInvoice, ok bool)
InputMediaInvoiceArray is adapter for slice of InputMediaInvoice. 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 InputMediaInvoice. Sort sorts slice of InputMediaInvoice. SortStable sorts slice of InputMediaInvoice. func InputMediaClassArray.AsInputMediaInvoice() (to InputMediaInvoiceArray) func InputMediaInvoiceArray.Retain(keep func(x InputMediaInvoice) bool) InputMediaInvoiceArray func InputMediaInvoiceArray.Sort(less func(a, b InputMediaInvoice) bool) InputMediaInvoiceArray func InputMediaInvoiceArray.SortStable(less func(a, b InputMediaInvoice) bool) InputMediaInvoiceArray
InputMediaPhoto represents TL type `inputMediaPhoto#b3ba0635`. Forwarded photo See https://core.telegram.org/constructor/inputMediaPhoto for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Photo to be forwarded Whether this media should be hidden behind a spoiler warning Time to live in seconds of self-destructing photo Use SetTTLSeconds and GetTTLSeconds helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaPhoto from given interface. GetID returns value of ID field. GetSpoiler returns value of Spoiler conditional field. GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetSpoiler sets value of Spoiler conditional field. SetTTLSeconds sets value of TTLSeconds 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. (*InputMediaPhoto) Zero() bool *InputMediaPhoto : InputMediaClass *InputMediaPhoto : github.com/gotd/td/bin.BareDecoder *InputMediaPhoto : github.com/gotd/td/bin.BareEncoder *InputMediaPhoto : github.com/gotd/td/bin.Decoder *InputMediaPhoto : github.com/gotd/td/bin.Encoder *InputMediaPhoto : github.com/gotd/td/bin.Object *InputMediaPhoto : github.com/gotd/td/tdp.Object *InputMediaPhoto : fmt.Stringer func InputMediaPhotoArray.First() (v InputMediaPhoto, ok bool) func InputMediaPhotoArray.Last() (v InputMediaPhoto, ok bool) func (*InputMediaPhotoArray).Pop() (v InputMediaPhoto, ok bool) func (*InputMediaPhotoArray).PopFirst() (v InputMediaPhoto, ok bool)
InputMediaPhotoArray is adapter for slice of InputMediaPhoto. 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 InputMediaPhoto. Sort sorts slice of InputMediaPhoto. SortStable sorts slice of InputMediaPhoto. func InputMediaClassArray.AsInputMediaPhoto() (to InputMediaPhotoArray) func InputMediaPhotoArray.Retain(keep func(x InputMediaPhoto) bool) InputMediaPhotoArray func InputMediaPhotoArray.Sort(less func(a, b InputMediaPhoto) bool) InputMediaPhotoArray func InputMediaPhotoArray.SortStable(less func(a, b InputMediaPhoto) bool) InputMediaPhotoArray
InputMediaPhotoExternal represents TL type `inputMediaPhotoExternal#e5bbfe1a`. New photo that will be uploaded by the server using the specified URL See https://core.telegram.org/constructor/inputMediaPhotoExternal for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this media should be hidden behind a spoiler warning Self-destruct time to live of photo Use SetTTLSeconds and GetTTLSeconds helpers. URL of the photo Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaPhotoExternal from given interface. GetSpoiler returns value of Spoiler conditional field. GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set. GetURL returns value of URL field. SetFlags sets flags for non-zero fields. SetSpoiler sets value of Spoiler conditional field. SetTTLSeconds sets value of TTLSeconds 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. (*InputMediaPhotoExternal) Zero() bool *InputMediaPhotoExternal : InputMediaClass *InputMediaPhotoExternal : github.com/gotd/td/bin.BareDecoder *InputMediaPhotoExternal : github.com/gotd/td/bin.BareEncoder *InputMediaPhotoExternal : github.com/gotd/td/bin.Decoder *InputMediaPhotoExternal : github.com/gotd/td/bin.Encoder *InputMediaPhotoExternal : github.com/gotd/td/bin.Object *InputMediaPhotoExternal : github.com/gotd/td/tdp.Object *InputMediaPhotoExternal : fmt.Stringer func InputMediaPhotoExternalArray.First() (v InputMediaPhotoExternal, ok bool) func InputMediaPhotoExternalArray.Last() (v InputMediaPhotoExternal, ok bool) func (*InputMediaPhotoExternalArray).Pop() (v InputMediaPhotoExternal, ok bool) func (*InputMediaPhotoExternalArray).PopFirst() (v InputMediaPhotoExternal, ok bool)
InputMediaPhotoExternalArray is adapter for slice of InputMediaPhotoExternal. 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 InputMediaPhotoExternal. Sort sorts slice of InputMediaPhotoExternal. SortStable sorts slice of InputMediaPhotoExternal. func InputMediaClassArray.AsInputMediaPhotoExternal() (to InputMediaPhotoExternalArray) func InputMediaPhotoExternalArray.Retain(keep func(x InputMediaPhotoExternal) bool) InputMediaPhotoExternalArray func InputMediaPhotoExternalArray.Sort(less func(a, b InputMediaPhotoExternal) bool) InputMediaPhotoExternalArray func InputMediaPhotoExternalArray.SortStable(less func(a, b InputMediaPhotoExternal) bool) InputMediaPhotoExternalArray
InputMediaPoll represents TL type `inputMediaPoll#f94e5f1`. A poll See https://core.telegram.org/constructor/inputMediaPoll for reference. Correct answer IDs (for quiz polls) Use SetCorrectAnswers and GetCorrectAnswers helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The poll to send Explanation of quiz solution Use SetSolution and GetSolution helpers. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Use SetSolutionEntities and GetSolutionEntities helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaPoll from given interface. GetCorrectAnswers returns value of CorrectAnswers conditional field and boolean which is true if field was set. GetPoll returns value of Poll field. GetSolution returns value of Solution conditional field and boolean which is true if field was set. GetSolutionEntities returns value of SolutionEntities conditional field and boolean which is true if field was set. MapSolutionEntities returns field SolutionEntities wrapped in MessageEntityClassArray helper. SetCorrectAnswers sets value of CorrectAnswers conditional field. SetFlags sets flags for non-zero fields. SetSolution sets value of Solution conditional field. SetSolutionEntities sets value of SolutionEntities 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. (*InputMediaPoll) Zero() bool *InputMediaPoll : InputMediaClass *InputMediaPoll : github.com/gotd/td/bin.BareDecoder *InputMediaPoll : github.com/gotd/td/bin.BareEncoder *InputMediaPoll : github.com/gotd/td/bin.Decoder *InputMediaPoll : github.com/gotd/td/bin.Encoder *InputMediaPoll : github.com/gotd/td/bin.Object *InputMediaPoll : github.com/gotd/td/tdp.Object *InputMediaPoll : fmt.Stringer func InputMediaPollArray.First() (v InputMediaPoll, ok bool) func InputMediaPollArray.Last() (v InputMediaPoll, ok bool) func (*InputMediaPollArray).Pop() (v InputMediaPoll, ok bool) func (*InputMediaPollArray).PopFirst() (v InputMediaPoll, ok bool)
InputMediaPollArray is adapter for slice of InputMediaPoll. 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 InputMediaPoll. Sort sorts slice of InputMediaPoll. SortStable sorts slice of InputMediaPoll. func InputMediaClassArray.AsInputMediaPoll() (to InputMediaPollArray) func InputMediaPollArray.Retain(keep func(x InputMediaPoll) bool) InputMediaPollArray func InputMediaPollArray.Sort(less func(a, b InputMediaPoll) bool) InputMediaPollArray func InputMediaPollArray.SortStable(less func(a, b InputMediaPoll) bool) InputMediaPollArray
InputMediaStory represents TL type `inputMediaStory#89fdd778`. Forwarded story See https://core.telegram.org/constructor/inputMediaStory for reference. Story ID Peer where the story was posted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaStory from given interface. GetID returns value of ID 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. (*InputMediaStory) Zero() bool *InputMediaStory : InputMediaClass *InputMediaStory : github.com/gotd/td/bin.BareDecoder *InputMediaStory : github.com/gotd/td/bin.BareEncoder *InputMediaStory : github.com/gotd/td/bin.Decoder *InputMediaStory : github.com/gotd/td/bin.Encoder *InputMediaStory : github.com/gotd/td/bin.Object *InputMediaStory : github.com/gotd/td/tdp.Object *InputMediaStory : fmt.Stringer func InputMediaStoryArray.First() (v InputMediaStory, ok bool) func InputMediaStoryArray.Last() (v InputMediaStory, ok bool) func (*InputMediaStoryArray).Pop() (v InputMediaStory, ok bool) func (*InputMediaStoryArray).PopFirst() (v InputMediaStory, ok bool) func InputMediaStoryArray.ToMap() map[int]InputMediaStory func InputMediaStoryArray.FillMap(to map[int]InputMediaStory)
InputMediaStoryArray is adapter for slice of InputMediaStory. 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 InputMediaStory. Sort sorts slice of InputMediaStory. SortByID sorts slice of InputMediaStory by ID. SortStable sorts slice of InputMediaStory. SortStableByID sorts slice of InputMediaStory by ID. ToMap collects constructors to map. func InputMediaClassArray.AsInputMediaStory() (to InputMediaStoryArray) func InputMediaStoryArray.Retain(keep func(x InputMediaStory) bool) InputMediaStoryArray func InputMediaStoryArray.Sort(less func(a, b InputMediaStory) bool) InputMediaStoryArray func InputMediaStoryArray.SortByID() InputMediaStoryArray func InputMediaStoryArray.SortStable(less func(a, b InputMediaStory) bool) InputMediaStoryArray func InputMediaStoryArray.SortStableByID() InputMediaStoryArray
InputMediaUploadedDocument represents TL type `inputMediaUploadedDocument#5b38c6c1`. New document See https://core.telegram.org/constructor/inputMediaUploadedDocument for reference. Attributes that specify the type of the document (video, audio, voice, sticker, etc.) The uploaded file¹ Links: 1) https://core.telegram.org/api/files Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Force the media file to be uploaded as document MIME type of document Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example) Whether this media should be hidden behind a spoiler warning Attached stickers Use SetStickers and GetStickers helpers. Time to live in seconds of self-destructing document Use SetTTLSeconds and GetTTLSeconds helpers. Thumbnail of the document, uploaded as for the file Use SetThumb and GetThumb helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaUploadedDocument from given interface. GetAttributes returns value of Attributes field. GetFile returns value of File field. GetForceFile returns value of ForceFile conditional field. GetMimeType returns value of MimeType field. GetNosoundVideo returns value of NosoundVideo conditional field. GetSpoiler returns value of Spoiler conditional field. GetStickers returns value of Stickers conditional field and boolean which is true if field was set. GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set. GetThumb returns value of Thumb conditional field and boolean which is true if field was set. MapAttributes returns field Attributes wrapped in DocumentAttributeClassArray helper. MapStickers returns field Stickers wrapped in InputDocumentClassArray helper. SetFlags sets flags for non-zero fields. SetForceFile sets value of ForceFile conditional field. SetNosoundVideo sets value of NosoundVideo conditional field. SetSpoiler sets value of Spoiler conditional field. SetStickers sets value of Stickers conditional field. SetTTLSeconds sets value of TTLSeconds conditional field. 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. (*InputMediaUploadedDocument) Zero() bool *InputMediaUploadedDocument : InputMediaClass *InputMediaUploadedDocument : github.com/gotd/td/bin.BareDecoder *InputMediaUploadedDocument : github.com/gotd/td/bin.BareEncoder *InputMediaUploadedDocument : github.com/gotd/td/bin.Decoder *InputMediaUploadedDocument : github.com/gotd/td/bin.Encoder *InputMediaUploadedDocument : github.com/gotd/td/bin.Object *InputMediaUploadedDocument : github.com/gotd/td/tdp.Object *InputMediaUploadedDocument : fmt.Stringer func InputMediaUploadedDocumentArray.First() (v InputMediaUploadedDocument, ok bool) func InputMediaUploadedDocumentArray.Last() (v InputMediaUploadedDocument, ok bool) func (*InputMediaUploadedDocumentArray).Pop() (v InputMediaUploadedDocument, ok bool) func (*InputMediaUploadedDocumentArray).PopFirst() (v InputMediaUploadedDocument, ok bool)
InputMediaUploadedDocumentArray is adapter for slice of InputMediaUploadedDocument. 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 InputMediaUploadedDocument. Sort sorts slice of InputMediaUploadedDocument. SortStable sorts slice of InputMediaUploadedDocument. func InputMediaClassArray.AsInputMediaUploadedDocument() (to InputMediaUploadedDocumentArray) func InputMediaUploadedDocumentArray.Retain(keep func(x InputMediaUploadedDocument) bool) InputMediaUploadedDocumentArray func InputMediaUploadedDocumentArray.Sort(less func(a, b InputMediaUploadedDocument) bool) InputMediaUploadedDocumentArray func InputMediaUploadedDocumentArray.SortStable(less func(a, b InputMediaUploadedDocument) bool) InputMediaUploadedDocumentArray
InputMediaUploadedPhoto represents TL type `inputMediaUploadedPhoto#1e287d04`. Photo See https://core.telegram.org/constructor/inputMediaUploadedPhoto for reference. The uploaded file¹ Links: 1) https://core.telegram.org/api/files Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this media should be hidden behind a spoiler warning Attached mask stickers Use SetStickers and GetStickers helpers. Time to live in seconds of self-destructing photo Use SetTTLSeconds and GetTTLSeconds helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMediaUploadedPhoto from given interface. GetFile returns value of File field. GetSpoiler returns value of Spoiler conditional field. GetStickers returns value of Stickers conditional field and boolean which is true if field was set. GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set. MapStickers returns field Stickers wrapped in InputDocumentClassArray helper. SetFlags sets flags for non-zero fields. SetSpoiler sets value of Spoiler conditional field. SetStickers sets value of Stickers conditional field. SetTTLSeconds sets value of TTLSeconds 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. (*InputMediaUploadedPhoto) Zero() bool *InputMediaUploadedPhoto : InputMediaClass *InputMediaUploadedPhoto : github.com/gotd/td/bin.BareDecoder *InputMediaUploadedPhoto : github.com/gotd/td/bin.BareEncoder *InputMediaUploadedPhoto : github.com/gotd/td/bin.Decoder *InputMediaUploadedPhoto : github.com/gotd/td/bin.Encoder *InputMediaUploadedPhoto : github.com/gotd/td/bin.Object *InputMediaUploadedPhoto : github.com/gotd/td/tdp.Object *InputMediaUploadedPhoto : fmt.Stringer func InputMediaUploadedPhotoArray.First() (v InputMediaUploadedPhoto, ok bool) func InputMediaUploadedPhotoArray.Last() (v InputMediaUploadedPhoto, ok bool) func (*InputMediaUploadedPhotoArray).Pop() (v InputMediaUploadedPhoto, ok bool) func (*InputMediaUploadedPhotoArray).PopFirst() (v InputMediaUploadedPhoto, ok bool)
InputMediaUploadedPhotoArray is adapter for slice of InputMediaUploadedPhoto. 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 InputMediaUploadedPhoto. Sort sorts slice of InputMediaUploadedPhoto. SortStable sorts slice of InputMediaUploadedPhoto. func InputMediaClassArray.AsInputMediaUploadedPhoto() (to InputMediaUploadedPhotoArray) func InputMediaUploadedPhotoArray.Retain(keep func(x InputMediaUploadedPhoto) bool) InputMediaUploadedPhotoArray func InputMediaUploadedPhotoArray.Sort(less func(a, b InputMediaUploadedPhoto) bool) InputMediaUploadedPhotoArray func InputMediaUploadedPhotoArray.SortStable(less func(a, b InputMediaUploadedPhoto) bool) InputMediaUploadedPhotoArray
InputMediaVenue represents TL type `inputMediaVenue#c13d1c11`. Can be used to send a venue geolocation. See https://core.telegram.org/constructor/inputMediaVenue for reference. Physical address of the venue Geolocation Venue provider: currently only "foursquare" and "gplaces" (Google Places) need to be supported 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 InputMediaVenue from given interface. GetAddress returns value of Address field. GetGeoPoint returns value of GeoPoint field. GetProvider returns value of Provider field. GetTitle returns value of Title field. GetVenueID returns value of VenueID field. GetVenueType returns value of VenueType 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. (*InputMediaVenue) Zero() bool *InputMediaVenue : InputMediaClass *InputMediaVenue : github.com/gotd/td/bin.BareDecoder *InputMediaVenue : github.com/gotd/td/bin.BareEncoder *InputMediaVenue : github.com/gotd/td/bin.Decoder *InputMediaVenue : github.com/gotd/td/bin.Encoder *InputMediaVenue : github.com/gotd/td/bin.Object *InputMediaVenue : github.com/gotd/td/tdp.Object *InputMediaVenue : fmt.Stringer func InputMediaVenueArray.First() (v InputMediaVenue, ok bool) func InputMediaVenueArray.Last() (v InputMediaVenue, ok bool) func (*InputMediaVenueArray).Pop() (v InputMediaVenue, ok bool) func (*InputMediaVenueArray).PopFirst() (v InputMediaVenue, ok bool)
InputMediaVenueArray is adapter for slice of InputMediaVenue. 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 InputMediaVenue. Sort sorts slice of InputMediaVenue. SortStable sorts slice of InputMediaVenue. func InputMediaClassArray.AsInputMediaVenue() (to InputMediaVenueArray) func InputMediaVenueArray.Retain(keep func(x InputMediaVenue) bool) InputMediaVenueArray func InputMediaVenueArray.Sort(less func(a, b InputMediaVenue) bool) InputMediaVenueArray func InputMediaVenueArray.SortStable(less func(a, b InputMediaVenue) bool) InputMediaVenueArray
InputMediaWebPage represents TL type `inputMediaWebPage#c21b8849`. Specifies options that will be used to generate the link preview for the caption, or even a standalone link preview without an attached message. See https://core.telegram.org/constructor/inputMediaWebPage for reference. 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 not set, a WEBPAGE_NOT_FOUND RPC error will be emitted if a webpage preview cannot be generated for the specified url; otherwise, no error will be emitted (unless the provided message is also empty, in which case a MESSAGE_EMPTY will be emitted, instead). 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 InputMediaWebPage from given interface. GetForceLargeMedia returns value of ForceLargeMedia conditional field. GetForceSmallMedia returns value of ForceSmallMedia conditional field. GetOptional returns value of Optional conditional field. GetURL returns value of URL field. SetFlags sets flags for non-zero fields. SetForceLargeMedia sets value of ForceLargeMedia conditional field. SetForceSmallMedia sets value of ForceSmallMedia conditional field. SetOptional sets value of Optional 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. (*InputMediaWebPage) Zero() bool *InputMediaWebPage : InputMediaClass *InputMediaWebPage : github.com/gotd/td/bin.BareDecoder *InputMediaWebPage : github.com/gotd/td/bin.BareEncoder *InputMediaWebPage : github.com/gotd/td/bin.Decoder *InputMediaWebPage : github.com/gotd/td/bin.Encoder *InputMediaWebPage : github.com/gotd/td/bin.Object *InputMediaWebPage : github.com/gotd/td/tdp.Object *InputMediaWebPage : fmt.Stringer func InputMediaWebPageArray.First() (v InputMediaWebPage, ok bool) func InputMediaWebPageArray.Last() (v InputMediaWebPage, ok bool) func (*InputMediaWebPageArray).Pop() (v InputMediaWebPage, ok bool) func (*InputMediaWebPageArray).PopFirst() (v InputMediaWebPage, ok bool)
InputMediaWebPageArray is adapter for slice of InputMediaWebPage. 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 InputMediaWebPage. Sort sorts slice of InputMediaWebPage. SortStable sorts slice of InputMediaWebPage. func InputMediaClassArray.AsInputMediaWebPage() (to InputMediaWebPageArray) func InputMediaWebPageArray.Retain(keep func(x InputMediaWebPage) bool) InputMediaWebPageArray func InputMediaWebPageArray.Sort(less func(a, b InputMediaWebPage) bool) InputMediaWebPageArray func InputMediaWebPageArray.SortStable(less func(a, b InputMediaWebPage) bool) InputMediaWebPageArray
InputMessage boxes the InputMessageClass providing a helper. InputMessage InputMessageClass Decode implements bin.Decoder for InputMessageBox. Encode implements bin.Encode for InputMessageBox. *InputMessageBox : github.com/gotd/td/bin.Decoder *InputMessageBox : github.com/gotd/td/bin.Encoder *InputMessageBox : github.com/gotd/td/bin.Object
InputMessageCallbackQuery represents TL type `inputMessageCallbackQuery#acfa1a7e`. Used by bots for fetching information about the message that originated a callback query See https://core.telegram.org/constructor/inputMessageCallbackQuery for reference. Message ID Callback query ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMessageCallbackQuery from given interface. GetID returns value of ID 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. (*InputMessageCallbackQuery) Zero() bool *InputMessageCallbackQuery : InputMessageClass *InputMessageCallbackQuery : github.com/gotd/td/bin.BareDecoder *InputMessageCallbackQuery : github.com/gotd/td/bin.BareEncoder *InputMessageCallbackQuery : github.com/gotd/td/bin.Decoder *InputMessageCallbackQuery : github.com/gotd/td/bin.Encoder *InputMessageCallbackQuery : github.com/gotd/td/bin.Object *InputMessageCallbackQuery : github.com/gotd/td/tdp.Object *InputMessageCallbackQuery : fmt.Stringer func InputMessageCallbackQueryArray.First() (v InputMessageCallbackQuery, ok bool) func InputMessageCallbackQueryArray.Last() (v InputMessageCallbackQuery, ok bool) func (*InputMessageCallbackQueryArray).Pop() (v InputMessageCallbackQuery, ok bool) func (*InputMessageCallbackQueryArray).PopFirst() (v InputMessageCallbackQuery, ok bool) func InputMessageCallbackQueryArray.ToMap() map[int]InputMessageCallbackQuery func InputMessageCallbackQueryArray.FillMap(to map[int]InputMessageCallbackQuery)
InputMessageCallbackQueryArray is adapter for slice of InputMessageCallbackQuery. 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 InputMessageCallbackQuery. Sort sorts slice of InputMessageCallbackQuery. SortByID sorts slice of InputMessageCallbackQuery by ID. SortStable sorts slice of InputMessageCallbackQuery. SortStableByID sorts slice of InputMessageCallbackQuery by ID. ToMap collects constructors to map. func InputMessageCallbackQueryArray.Retain(keep func(x InputMessageCallbackQuery) bool) InputMessageCallbackQueryArray func InputMessageCallbackQueryArray.Sort(less func(a, b InputMessageCallbackQuery) bool) InputMessageCallbackQueryArray func InputMessageCallbackQueryArray.SortByID() InputMessageCallbackQueryArray func InputMessageCallbackQueryArray.SortStable(less func(a, b InputMessageCallbackQuery) bool) InputMessageCallbackQueryArray func InputMessageCallbackQueryArray.SortStableByID() InputMessageCallbackQueryArray func InputMessageClassArray.AsInputMessageCallbackQuery() (to InputMessageCallbackQueryArray)
InputMessageClass represents InputMessage generic type. See https://core.telegram.org/type/InputMessage for reference. Example: g, err := tg.DecodeInputMessage(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputMessageID: // inputMessageID#a676a322 case *tg.InputMessageReplyTo: // inputMessageReplyTo#bad88395 case *tg.InputMessagePinned: // inputMessagePinned#86872538 case *tg.InputMessageCallbackQuery: // inputMessageCallbackQuery#acfa1a7e default: panic(v) } ( InputMessageClass) Decode(b *bin.Buffer) error ( InputMessageClass) DecodeBare(b *bin.Buffer) error ( InputMessageClass) Encode(b *bin.Buffer) error ( InputMessageClass) 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. *InputMessageCallbackQuery *InputMessageID *InputMessagePinned *InputMessageReplyTo InputMessageClass : github.com/gotd/td/bin.BareDecoder InputMessageClass : github.com/gotd/td/bin.BareEncoder InputMessageClass : github.com/gotd/td/bin.Decoder InputMessageClass : github.com/gotd/td/bin.Encoder InputMessageClass : github.com/gotd/td/bin.Object InputMessageClass : fmt.Stringer func DecodeInputMessage(buf *bin.Buffer) (InputMessageClass, error) func (*ChannelsGetMessagesRequest).GetID() (value []InputMessageClass) func InputMessageClassArray.First() (v InputMessageClass, ok bool) func InputMessageClassArray.Last() (v InputMessageClass, ok bool) func (*InputMessageClassArray).Pop() (v InputMessageClass, ok bool) func (*InputMessageClassArray).PopFirst() (v InputMessageClass, ok bool) func (*MessagesGetMessagesRequest).GetID() (value []InputMessageClass) func (*Client).MessagesGetMessages(ctx context.Context, id []InputMessageClass) (MessagesMessagesClass, error)
InputMessageClassArray is adapter for slice of InputMessageClass. AsInputMessageCallbackQuery returns copy with only InputMessageCallbackQuery constructors. AsInputMessageID returns copy with only InputMessageID constructors. AsInputMessageReplyTo returns copy with only InputMessageReplyTo 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 InputMessageClass. Sort sorts slice of InputMessageClass. SortStable sorts slice of InputMessageClass. func (*ChannelsGetMessagesRequest).MapID() (value InputMessageClassArray) func InputMessageClassArray.Retain(keep func(x InputMessageClass) bool) InputMessageClassArray func InputMessageClassArray.Sort(less func(a, b InputMessageClass) bool) InputMessageClassArray func InputMessageClassArray.SortStable(less func(a, b InputMessageClass) bool) InputMessageClassArray func (*MessagesGetMessagesRequest).MapID() (value InputMessageClassArray)
InputMessageEntityMentionName represents TL type `inputMessageEntityMentionName#208e68c9`. Message entity that can be used to create a user user mention¹: received mentions use the messageEntityMentionName² constructor, instead. Links: 1. https://core.telegram.org/api/mentions 2. https://core.telegram.org/constructor/messageEntityMentionName See https://core.telegram.org/constructor/inputMessageEntityMentionName for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Identifier of the user that was mentioned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMessageEntityMentionName from given interface. GetLength returns value of Length field. GetOffset returns value of Offset 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. (*InputMessageEntityMentionName) Zero() bool *InputMessageEntityMentionName : MessageEntityClass *InputMessageEntityMentionName : github.com/gotd/td/bin.BareDecoder *InputMessageEntityMentionName : github.com/gotd/td/bin.BareEncoder *InputMessageEntityMentionName : github.com/gotd/td/bin.Decoder *InputMessageEntityMentionName : github.com/gotd/td/bin.Encoder *InputMessageEntityMentionName : github.com/gotd/td/bin.Object *InputMessageEntityMentionName : github.com/gotd/td/tdp.Object *InputMessageEntityMentionName : fmt.Stringer func InputMessageEntityMentionNameArray.First() (v InputMessageEntityMentionName, ok bool) func InputMessageEntityMentionNameArray.Last() (v InputMessageEntityMentionName, ok bool) func (*InputMessageEntityMentionNameArray).Pop() (v InputMessageEntityMentionName, ok bool) func (*InputMessageEntityMentionNameArray).PopFirst() (v InputMessageEntityMentionName, ok bool)
InputMessageEntityMentionNameArray is adapter for slice of InputMessageEntityMentionName. 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 InputMessageEntityMentionName. Sort sorts slice of InputMessageEntityMentionName. SortStable sorts slice of InputMessageEntityMentionName. func InputMessageEntityMentionNameArray.Retain(keep func(x InputMessageEntityMentionName) bool) InputMessageEntityMentionNameArray func InputMessageEntityMentionNameArray.Sort(less func(a, b InputMessageEntityMentionName) bool) InputMessageEntityMentionNameArray func InputMessageEntityMentionNameArray.SortStable(less func(a, b InputMessageEntityMentionName) bool) InputMessageEntityMentionNameArray func MessageEntityClassArray.AsInputMessageEntityMentionName() (to InputMessageEntityMentionNameArray)
InputMessageID represents TL type `inputMessageID#a676a322`. Message by ID See https://core.telegram.org/constructor/inputMessageID for reference. Chat ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMessageID 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. (*InputMessageID) Zero() bool *InputMessageID : InputMessageClass *InputMessageID : github.com/gotd/td/bin.BareDecoder *InputMessageID : github.com/gotd/td/bin.BareEncoder *InputMessageID : github.com/gotd/td/bin.Decoder *InputMessageID : github.com/gotd/td/bin.Encoder *InputMessageID : github.com/gotd/td/bin.Object *InputMessageID : github.com/gotd/td/tdp.Object *InputMessageID : fmt.Stringer func InputMessageIDArray.First() (v InputMessageID, ok bool) func InputMessageIDArray.Last() (v InputMessageID, ok bool) func (*InputMessageIDArray).Pop() (v InputMessageID, ok bool) func (*InputMessageIDArray).PopFirst() (v InputMessageID, ok bool) func InputMessageIDArray.ToMap() map[int]InputMessageID func (*Message).AsInputMessageID() *InputMessageID func InputMessageIDArray.FillMap(to map[int]InputMessageID)
InputMessageIDArray is adapter for slice of InputMessageID. 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 InputMessageID. Sort sorts slice of InputMessageID. SortByID sorts slice of InputMessageID by ID. SortStable sorts slice of InputMessageID. SortStableByID sorts slice of InputMessageID by ID. ToMap collects constructors to map. func InputMessageClassArray.AsInputMessageID() (to InputMessageIDArray) func InputMessageIDArray.Retain(keep func(x InputMessageID) bool) InputMessageIDArray func InputMessageIDArray.Sort(less func(a, b InputMessageID) bool) InputMessageIDArray func InputMessageIDArray.SortByID() InputMessageIDArray func InputMessageIDArray.SortStable(less func(a, b InputMessageID) bool) InputMessageIDArray func InputMessageIDArray.SortStableByID() InputMessageIDArray
InputMessagePinned represents TL type `inputMessagePinned#86872538`. Pinned message See https://core.telegram.org/constructor/inputMessagePinned 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. (*InputMessagePinned) Zero() bool *InputMessagePinned : InputMessageClass *InputMessagePinned : github.com/gotd/td/bin.BareDecoder *InputMessagePinned : github.com/gotd/td/bin.BareEncoder *InputMessagePinned : github.com/gotd/td/bin.Decoder *InputMessagePinned : github.com/gotd/td/bin.Encoder *InputMessagePinned : github.com/gotd/td/bin.Object *InputMessagePinned : github.com/gotd/td/tdp.Object *InputMessagePinned : fmt.Stringer
InputMessageReplyTo represents TL type `inputMessageReplyTo#bad88395`. Message to which the specified message replies to See https://core.telegram.org/constructor/inputMessageReplyTo for reference. Chat ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMessageReplyTo 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. (*InputMessageReplyTo) Zero() bool *InputMessageReplyTo : InputMessageClass *InputMessageReplyTo : github.com/gotd/td/bin.BareDecoder *InputMessageReplyTo : github.com/gotd/td/bin.BareEncoder *InputMessageReplyTo : github.com/gotd/td/bin.Decoder *InputMessageReplyTo : github.com/gotd/td/bin.Encoder *InputMessageReplyTo : github.com/gotd/td/bin.Object *InputMessageReplyTo : github.com/gotd/td/tdp.Object *InputMessageReplyTo : fmt.Stringer func InputMessageReplyToArray.First() (v InputMessageReplyTo, ok bool) func InputMessageReplyToArray.Last() (v InputMessageReplyTo, ok bool) func (*InputMessageReplyToArray).Pop() (v InputMessageReplyTo, ok bool) func (*InputMessageReplyToArray).PopFirst() (v InputMessageReplyTo, ok bool) func InputMessageReplyToArray.ToMap() map[int]InputMessageReplyTo func (*Message).AsInputMessageReplyTo() *InputMessageReplyTo func InputMessageReplyToArray.FillMap(to map[int]InputMessageReplyTo)
InputMessageReplyToArray is adapter for slice of InputMessageReplyTo. 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 InputMessageReplyTo. Sort sorts slice of InputMessageReplyTo. SortByID sorts slice of InputMessageReplyTo by ID. SortStable sorts slice of InputMessageReplyTo. SortStableByID sorts slice of InputMessageReplyTo by ID. ToMap collects constructors to map. func InputMessageClassArray.AsInputMessageReplyTo() (to InputMessageReplyToArray) func InputMessageReplyToArray.Retain(keep func(x InputMessageReplyTo) bool) InputMessageReplyToArray func InputMessageReplyToArray.Sort(less func(a, b InputMessageReplyTo) bool) InputMessageReplyToArray func InputMessageReplyToArray.SortByID() InputMessageReplyToArray func InputMessageReplyToArray.SortStable(less func(a, b InputMessageReplyTo) bool) InputMessageReplyToArray func InputMessageReplyToArray.SortStableByID() InputMessageReplyToArray
InputMessagesFilterChatPhotos represents TL type `inputMessagesFilterChatPhotos#3a20ecb8`. Return only chat photo changes See https://core.telegram.org/constructor/inputMessagesFilterChatPhotos 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. (*InputMessagesFilterChatPhotos) Zero() bool *InputMessagesFilterChatPhotos : MessagesFilterClass *InputMessagesFilterChatPhotos : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterChatPhotos : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterChatPhotos : github.com/gotd/td/bin.Decoder *InputMessagesFilterChatPhotos : github.com/gotd/td/bin.Encoder *InputMessagesFilterChatPhotos : github.com/gotd/td/bin.Object *InputMessagesFilterChatPhotos : github.com/gotd/td/tdp.Object *InputMessagesFilterChatPhotos : fmt.Stringer
InputMessagesFilterContacts represents TL type `inputMessagesFilterContacts#e062db83`. Return only messages containing contacts See https://core.telegram.org/constructor/inputMessagesFilterContacts 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. (*InputMessagesFilterContacts) Zero() bool *InputMessagesFilterContacts : MessagesFilterClass *InputMessagesFilterContacts : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterContacts : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterContacts : github.com/gotd/td/bin.Decoder *InputMessagesFilterContacts : github.com/gotd/td/bin.Encoder *InputMessagesFilterContacts : github.com/gotd/td/bin.Object *InputMessagesFilterContacts : github.com/gotd/td/tdp.Object *InputMessagesFilterContacts : fmt.Stringer
InputMessagesFilterDocument represents TL type `inputMessagesFilterDocument#9eddf188`. Filter for messages containing documents. See https://core.telegram.org/constructor/inputMessagesFilterDocument 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. (*InputMessagesFilterDocument) Zero() bool *InputMessagesFilterDocument : MessagesFilterClass *InputMessagesFilterDocument : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterDocument : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterDocument : github.com/gotd/td/bin.Decoder *InputMessagesFilterDocument : github.com/gotd/td/bin.Encoder *InputMessagesFilterDocument : github.com/gotd/td/bin.Object *InputMessagesFilterDocument : github.com/gotd/td/tdp.Object *InputMessagesFilterDocument : fmt.Stringer
InputMessagesFilterEmpty represents TL type `inputMessagesFilterEmpty#57e2f66c`. Filter is absent. See https://core.telegram.org/constructor/inputMessagesFilterEmpty 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. (*InputMessagesFilterEmpty) Zero() bool *InputMessagesFilterEmpty : MessagesFilterClass *InputMessagesFilterEmpty : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterEmpty : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterEmpty : github.com/gotd/td/bin.Decoder *InputMessagesFilterEmpty : github.com/gotd/td/bin.Encoder *InputMessagesFilterEmpty : github.com/gotd/td/bin.Object *InputMessagesFilterEmpty : github.com/gotd/td/tdp.Object *InputMessagesFilterEmpty : fmt.Stringer
InputMessagesFilterGeo represents TL type `inputMessagesFilterGeo#e7026d0d`. Return only messages containing geolocations See https://core.telegram.org/constructor/inputMessagesFilterGeo 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. (*InputMessagesFilterGeo) Zero() bool *InputMessagesFilterGeo : MessagesFilterClass *InputMessagesFilterGeo : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterGeo : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterGeo : github.com/gotd/td/bin.Decoder *InputMessagesFilterGeo : github.com/gotd/td/bin.Encoder *InputMessagesFilterGeo : github.com/gotd/td/bin.Object *InputMessagesFilterGeo : github.com/gotd/td/tdp.Object *InputMessagesFilterGeo : fmt.Stringer
InputMessagesFilterGif represents TL type `inputMessagesFilterGif#ffc86587`. Return only messages containing gifs See https://core.telegram.org/constructor/inputMessagesFilterGif 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. (*InputMessagesFilterGif) Zero() bool *InputMessagesFilterGif : MessagesFilterClass *InputMessagesFilterGif : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterGif : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterGif : github.com/gotd/td/bin.Decoder *InputMessagesFilterGif : github.com/gotd/td/bin.Encoder *InputMessagesFilterGif : github.com/gotd/td/bin.Object *InputMessagesFilterGif : github.com/gotd/td/tdp.Object *InputMessagesFilterGif : fmt.Stringer
InputMessagesFilterMusic represents TL type `inputMessagesFilterMusic#3751b49e`. Return only messages containing audio files See https://core.telegram.org/constructor/inputMessagesFilterMusic 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. (*InputMessagesFilterMusic) Zero() bool *InputMessagesFilterMusic : MessagesFilterClass *InputMessagesFilterMusic : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterMusic : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterMusic : github.com/gotd/td/bin.Decoder *InputMessagesFilterMusic : github.com/gotd/td/bin.Encoder *InputMessagesFilterMusic : github.com/gotd/td/bin.Object *InputMessagesFilterMusic : github.com/gotd/td/tdp.Object *InputMessagesFilterMusic : fmt.Stringer
InputMessagesFilterMyMentions represents TL type `inputMessagesFilterMyMentions#c1f8e69a`. Return only messages where the current user was mentioned¹. Links: 1. https://core.telegram.org/api/mentions See https://core.telegram.org/constructor/inputMessagesFilterMyMentions 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. (*InputMessagesFilterMyMentions) Zero() bool *InputMessagesFilterMyMentions : MessagesFilterClass *InputMessagesFilterMyMentions : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterMyMentions : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterMyMentions : github.com/gotd/td/bin.Decoder *InputMessagesFilterMyMentions : github.com/gotd/td/bin.Encoder *InputMessagesFilterMyMentions : github.com/gotd/td/bin.Object *InputMessagesFilterMyMentions : github.com/gotd/td/tdp.Object *InputMessagesFilterMyMentions : fmt.Stringer
InputMessagesFilterPhoneCalls represents TL type `inputMessagesFilterPhoneCalls#80c99768`. Return only phone calls See https://core.telegram.org/constructor/inputMessagesFilterPhoneCalls for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Return only missed phone calls Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputMessagesFilterPhoneCalls from given interface. GetMissed returns value of Missed conditional field. SetFlags sets flags for non-zero fields. SetMissed sets value of Missed 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. (*InputMessagesFilterPhoneCalls) Zero() bool *InputMessagesFilterPhoneCalls : MessagesFilterClass *InputMessagesFilterPhoneCalls : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterPhoneCalls : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterPhoneCalls : github.com/gotd/td/bin.Decoder *InputMessagesFilterPhoneCalls : github.com/gotd/td/bin.Encoder *InputMessagesFilterPhoneCalls : github.com/gotd/td/bin.Object *InputMessagesFilterPhoneCalls : github.com/gotd/td/tdp.Object *InputMessagesFilterPhoneCalls : fmt.Stringer func InputMessagesFilterPhoneCallsArray.First() (v InputMessagesFilterPhoneCalls, ok bool) func InputMessagesFilterPhoneCallsArray.Last() (v InputMessagesFilterPhoneCalls, ok bool) func (*InputMessagesFilterPhoneCallsArray).Pop() (v InputMessagesFilterPhoneCalls, ok bool) func (*InputMessagesFilterPhoneCallsArray).PopFirst() (v InputMessagesFilterPhoneCalls, ok bool)
InputMessagesFilterPhoneCallsArray is adapter for slice of InputMessagesFilterPhoneCalls. 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 InputMessagesFilterPhoneCalls. Sort sorts slice of InputMessagesFilterPhoneCalls. SortStable sorts slice of InputMessagesFilterPhoneCalls. func InputMessagesFilterPhoneCallsArray.Retain(keep func(x InputMessagesFilterPhoneCalls) bool) InputMessagesFilterPhoneCallsArray func InputMessagesFilterPhoneCallsArray.Sort(less func(a, b InputMessagesFilterPhoneCalls) bool) InputMessagesFilterPhoneCallsArray func InputMessagesFilterPhoneCallsArray.SortStable(less func(a, b InputMessagesFilterPhoneCalls) bool) InputMessagesFilterPhoneCallsArray func MessagesFilterClassArray.AsInputMessagesFilterPhoneCalls() (to InputMessagesFilterPhoneCallsArray)
InputMessagesFilterPhotos represents TL type `inputMessagesFilterPhotos#9609a51c`. Filter for messages containing photos. See https://core.telegram.org/constructor/inputMessagesFilterPhotos 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. (*InputMessagesFilterPhotos) Zero() bool *InputMessagesFilterPhotos : MessagesFilterClass *InputMessagesFilterPhotos : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterPhotos : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterPhotos : github.com/gotd/td/bin.Decoder *InputMessagesFilterPhotos : github.com/gotd/td/bin.Encoder *InputMessagesFilterPhotos : github.com/gotd/td/bin.Object *InputMessagesFilterPhotos : github.com/gotd/td/tdp.Object *InputMessagesFilterPhotos : fmt.Stringer
InputMessagesFilterPhotoVideo represents TL type `inputMessagesFilterPhotoVideo#56e9f0e4`. Filter for messages containing photos or videos. See https://core.telegram.org/constructor/inputMessagesFilterPhotoVideo 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. (*InputMessagesFilterPhotoVideo) Zero() bool *InputMessagesFilterPhotoVideo : MessagesFilterClass *InputMessagesFilterPhotoVideo : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterPhotoVideo : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterPhotoVideo : github.com/gotd/td/bin.Decoder *InputMessagesFilterPhotoVideo : github.com/gotd/td/bin.Encoder *InputMessagesFilterPhotoVideo : github.com/gotd/td/bin.Object *InputMessagesFilterPhotoVideo : github.com/gotd/td/tdp.Object *InputMessagesFilterPhotoVideo : fmt.Stringer
InputMessagesFilterPinned represents TL type `inputMessagesFilterPinned#1bb00451`. Fetch only pinned messages See https://core.telegram.org/constructor/inputMessagesFilterPinned 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. (*InputMessagesFilterPinned) Zero() bool *InputMessagesFilterPinned : MessagesFilterClass *InputMessagesFilterPinned : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterPinned : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterPinned : github.com/gotd/td/bin.Decoder *InputMessagesFilterPinned : github.com/gotd/td/bin.Encoder *InputMessagesFilterPinned : github.com/gotd/td/bin.Object *InputMessagesFilterPinned : github.com/gotd/td/tdp.Object *InputMessagesFilterPinned : fmt.Stringer
InputMessagesFilterRoundVideo represents TL type `inputMessagesFilterRoundVideo#b549da53`. Return only round videos See https://core.telegram.org/constructor/inputMessagesFilterRoundVideo 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. (*InputMessagesFilterRoundVideo) Zero() bool *InputMessagesFilterRoundVideo : MessagesFilterClass *InputMessagesFilterRoundVideo : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterRoundVideo : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterRoundVideo : github.com/gotd/td/bin.Decoder *InputMessagesFilterRoundVideo : github.com/gotd/td/bin.Encoder *InputMessagesFilterRoundVideo : github.com/gotd/td/bin.Object *InputMessagesFilterRoundVideo : github.com/gotd/td/tdp.Object *InputMessagesFilterRoundVideo : fmt.Stringer
InputMessagesFilterRoundVoice represents TL type `inputMessagesFilterRoundVoice#7a7c17a4`. Return only round videos and voice notes See https://core.telegram.org/constructor/inputMessagesFilterRoundVoice 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. (*InputMessagesFilterRoundVoice) Zero() bool *InputMessagesFilterRoundVoice : MessagesFilterClass *InputMessagesFilterRoundVoice : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterRoundVoice : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterRoundVoice : github.com/gotd/td/bin.Decoder *InputMessagesFilterRoundVoice : github.com/gotd/td/bin.Encoder *InputMessagesFilterRoundVoice : github.com/gotd/td/bin.Object *InputMessagesFilterRoundVoice : github.com/gotd/td/tdp.Object *InputMessagesFilterRoundVoice : fmt.Stringer
InputMessagesFilterURL represents TL type `inputMessagesFilterUrl#7ef0dd87`. Return only messages containing URLs See https://core.telegram.org/constructor/inputMessagesFilterUrl 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. (*InputMessagesFilterURL) Zero() bool *InputMessagesFilterURL : MessagesFilterClass *InputMessagesFilterURL : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterURL : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterURL : github.com/gotd/td/bin.Decoder *InputMessagesFilterURL : github.com/gotd/td/bin.Encoder *InputMessagesFilterURL : github.com/gotd/td/bin.Object *InputMessagesFilterURL : github.com/gotd/td/tdp.Object *InputMessagesFilterURL : fmt.Stringer
InputMessagesFilterVideo represents TL type `inputMessagesFilterVideo#9fc00e65`. Filter for messages containing videos. See https://core.telegram.org/constructor/inputMessagesFilterVideo 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. (*InputMessagesFilterVideo) Zero() bool *InputMessagesFilterVideo : MessagesFilterClass *InputMessagesFilterVideo : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterVideo : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterVideo : github.com/gotd/td/bin.Decoder *InputMessagesFilterVideo : github.com/gotd/td/bin.Encoder *InputMessagesFilterVideo : github.com/gotd/td/bin.Object *InputMessagesFilterVideo : github.com/gotd/td/tdp.Object *InputMessagesFilterVideo : fmt.Stringer
InputMessagesFilterVoice represents TL type `inputMessagesFilterVoice#50f5c392`. Return only messages containing voice notes See https://core.telegram.org/constructor/inputMessagesFilterVoice 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. (*InputMessagesFilterVoice) Zero() bool *InputMessagesFilterVoice : MessagesFilterClass *InputMessagesFilterVoice : github.com/gotd/td/bin.BareDecoder *InputMessagesFilterVoice : github.com/gotd/td/bin.BareEncoder *InputMessagesFilterVoice : github.com/gotd/td/bin.Decoder *InputMessagesFilterVoice : github.com/gotd/td/bin.Encoder *InputMessagesFilterVoice : github.com/gotd/td/bin.Object *InputMessagesFilterVoice : github.com/gotd/td/tdp.Object *InputMessagesFilterVoice : fmt.Stringer
InputNotifyBroadcasts represents TL type `inputNotifyBroadcasts#b1db7c7e`. All channels¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/inputNotifyBroadcasts 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. (*InputNotifyBroadcasts) Zero() bool *InputNotifyBroadcasts : InputNotifyPeerClass *InputNotifyBroadcasts : github.com/gotd/td/bin.BareDecoder *InputNotifyBroadcasts : github.com/gotd/td/bin.BareEncoder *InputNotifyBroadcasts : github.com/gotd/td/bin.Decoder *InputNotifyBroadcasts : github.com/gotd/td/bin.Encoder *InputNotifyBroadcasts : github.com/gotd/td/bin.Object *InputNotifyBroadcasts : github.com/gotd/td/tdp.Object *InputNotifyBroadcasts : fmt.Stringer
InputNotifyChats represents TL type `inputNotifyChats#4a95e84e`. Notifications generated by all groups. See https://core.telegram.org/constructor/inputNotifyChats 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. (*InputNotifyChats) Zero() bool *InputNotifyChats : InputNotifyPeerClass *InputNotifyChats : github.com/gotd/td/bin.BareDecoder *InputNotifyChats : github.com/gotd/td/bin.BareEncoder *InputNotifyChats : github.com/gotd/td/bin.Decoder *InputNotifyChats : github.com/gotd/td/bin.Encoder *InputNotifyChats : github.com/gotd/td/bin.Object *InputNotifyChats : github.com/gotd/td/tdp.Object *InputNotifyChats : fmt.Stringer
InputNotifyForumTopic represents TL type `inputNotifyForumTopic#5c467992`. Notifications generated by a topic¹ in a forum². Links: 1. https://core.telegram.org/api/forum#forum-topics 2. https://core.telegram.org/api/forum See https://core.telegram.org/constructor/inputNotifyForumTopic for reference. Forum ID Topic ID¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputNotifyForumTopic from given interface. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID 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. (*InputNotifyForumTopic) Zero() bool *InputNotifyForumTopic : InputNotifyPeerClass *InputNotifyForumTopic : github.com/gotd/td/bin.BareDecoder *InputNotifyForumTopic : github.com/gotd/td/bin.BareEncoder *InputNotifyForumTopic : github.com/gotd/td/bin.Decoder *InputNotifyForumTopic : github.com/gotd/td/bin.Encoder *InputNotifyForumTopic : github.com/gotd/td/bin.Object *InputNotifyForumTopic : github.com/gotd/td/tdp.Object *InputNotifyForumTopic : fmt.Stringer func InputNotifyForumTopicArray.First() (v InputNotifyForumTopic, ok bool) func InputNotifyForumTopicArray.Last() (v InputNotifyForumTopic, ok bool) func (*InputNotifyForumTopicArray).Pop() (v InputNotifyForumTopic, ok bool) func (*InputNotifyForumTopicArray).PopFirst() (v InputNotifyForumTopic, ok bool)
InputNotifyForumTopicArray is adapter for slice of InputNotifyForumTopic. 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 InputNotifyForumTopic. Sort sorts slice of InputNotifyForumTopic. SortStable sorts slice of InputNotifyForumTopic. func InputNotifyForumTopicArray.Retain(keep func(x InputNotifyForumTopic) bool) InputNotifyForumTopicArray func InputNotifyForumTopicArray.Sort(less func(a, b InputNotifyForumTopic) bool) InputNotifyForumTopicArray func InputNotifyForumTopicArray.SortStable(less func(a, b InputNotifyForumTopic) bool) InputNotifyForumTopicArray func InputNotifyPeerClassArray.AsInputNotifyForumTopic() (to InputNotifyForumTopicArray)
InputNotifyPeer represents TL type `inputNotifyPeer#b8bc5b0c`. Notifications generated by a certain user or group. See https://core.telegram.org/constructor/inputNotifyPeer for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputNotifyPeer 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. (*InputNotifyPeer) Zero() bool *InputNotifyPeer : InputNotifyPeerClass *InputNotifyPeer : github.com/gotd/td/bin.BareDecoder *InputNotifyPeer : github.com/gotd/td/bin.BareEncoder *InputNotifyPeer : github.com/gotd/td/bin.Decoder *InputNotifyPeer : github.com/gotd/td/bin.Encoder *InputNotifyPeer : github.com/gotd/td/bin.Object *InputNotifyPeer : github.com/gotd/td/tdp.Object *InputNotifyPeer : fmt.Stringer func InputNotifyPeerArray.First() (v InputNotifyPeer, ok bool) func InputNotifyPeerArray.Last() (v InputNotifyPeer, ok bool) func (*InputNotifyPeerArray).Pop() (v InputNotifyPeer, ok bool) func (*InputNotifyPeerArray).PopFirst() (v InputNotifyPeer, ok bool)
InputNotifyPeerArray is adapter for slice of InputNotifyPeer. 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 InputNotifyPeer. Sort sorts slice of InputNotifyPeer. SortStable sorts slice of InputNotifyPeer. func InputNotifyPeerArray.Retain(keep func(x InputNotifyPeer) bool) InputNotifyPeerArray func InputNotifyPeerArray.Sort(less func(a, b InputNotifyPeer) bool) InputNotifyPeerArray func InputNotifyPeerArray.SortStable(less func(a, b InputNotifyPeer) bool) InputNotifyPeerArray func InputNotifyPeerClassArray.AsInputNotifyPeer() (to InputNotifyPeerArray)
InputNotifyPeer boxes the InputNotifyPeerClass providing a helper. InputNotifyPeer InputNotifyPeerClass Decode implements bin.Decoder for InputNotifyPeerBox. Encode implements bin.Encode for InputNotifyPeerBox. *InputNotifyPeerBox : github.com/gotd/td/bin.Decoder *InputNotifyPeerBox : github.com/gotd/td/bin.Encoder *InputNotifyPeerBox : github.com/gotd/td/bin.Object
InputNotifyPeerClass represents InputNotifyPeer generic type. See https://core.telegram.org/type/InputNotifyPeer for reference. Example: g, err := tg.DecodeInputNotifyPeer(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputNotifyPeer: // inputNotifyPeer#b8bc5b0c case *tg.InputNotifyUsers: // inputNotifyUsers#193b4417 case *tg.InputNotifyChats: // inputNotifyChats#4a95e84e case *tg.InputNotifyBroadcasts: // inputNotifyBroadcasts#b1db7c7e case *tg.InputNotifyForumTopic: // inputNotifyForumTopic#5c467992 default: panic(v) } ( InputNotifyPeerClass) Decode(b *bin.Buffer) error ( InputNotifyPeerClass) DecodeBare(b *bin.Buffer) error ( InputNotifyPeerClass) Encode(b *bin.Buffer) error ( InputNotifyPeerClass) 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. *InputNotifyBroadcasts *InputNotifyChats *InputNotifyForumTopic *InputNotifyPeer *InputNotifyUsers InputNotifyPeerClass : github.com/gotd/td/bin.BareDecoder InputNotifyPeerClass : github.com/gotd/td/bin.BareEncoder InputNotifyPeerClass : github.com/gotd/td/bin.Decoder InputNotifyPeerClass : github.com/gotd/td/bin.Encoder InputNotifyPeerClass : github.com/gotd/td/bin.Object InputNotifyPeerClass : fmt.Stringer func DecodeInputNotifyPeer(buf *bin.Buffer) (InputNotifyPeerClass, error) func (*AccountGetNotifyExceptionsRequest).GetPeer() (value InputNotifyPeerClass, ok bool) func (*AccountGetNotifySettingsRequest).GetPeer() (value InputNotifyPeerClass) func (*AccountUpdateNotifySettingsRequest).GetPeer() (value InputNotifyPeerClass) func InputNotifyPeerClassArray.First() (v InputNotifyPeerClass, ok bool) func InputNotifyPeerClassArray.Last() (v InputNotifyPeerClass, ok bool) func (*InputNotifyPeerClassArray).Pop() (v InputNotifyPeerClass, ok bool) func (*InputNotifyPeerClassArray).PopFirst() (v InputNotifyPeerClass, ok bool) func (*AccountGetNotifyExceptionsRequest).SetPeer(value InputNotifyPeerClass) func (*Client).AccountGetNotifySettings(ctx context.Context, peer InputNotifyPeerClass) (*PeerNotifySettings, error)
InputNotifyPeerClassArray is adapter for slice of InputNotifyPeerClass. AsInputNotifyForumTopic returns copy with only InputNotifyForumTopic constructors. AsInputNotifyPeer returns copy with only InputNotifyPeer 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 InputNotifyPeerClass. Sort sorts slice of InputNotifyPeerClass. SortStable sorts slice of InputNotifyPeerClass. func InputNotifyPeerClassArray.Retain(keep func(x InputNotifyPeerClass) bool) InputNotifyPeerClassArray func InputNotifyPeerClassArray.Sort(less func(a, b InputNotifyPeerClass) bool) InputNotifyPeerClassArray func InputNotifyPeerClassArray.SortStable(less func(a, b InputNotifyPeerClass) bool) InputNotifyPeerClassArray
InputNotifyUsers represents TL type `inputNotifyUsers#193b4417`. Notifications generated by all users. See https://core.telegram.org/constructor/inputNotifyUsers 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. (*InputNotifyUsers) Zero() bool *InputNotifyUsers : InputNotifyPeerClass *InputNotifyUsers : github.com/gotd/td/bin.BareDecoder *InputNotifyUsers : github.com/gotd/td/bin.BareEncoder *InputNotifyUsers : github.com/gotd/td/bin.Decoder *InputNotifyUsers : github.com/gotd/td/bin.Encoder *InputNotifyUsers : github.com/gotd/td/bin.Object *InputNotifyUsers : github.com/gotd/td/tdp.Object *InputNotifyUsers : fmt.Stringer
InputPaymentCredentials represents TL type `inputPaymentCredentials#3417d728`. Payment credentials See https://core.telegram.org/constructor/inputPaymentCredentials for reference. Payment credentials Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Save payment credential for future use Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPaymentCredentials from given interface. GetData returns value of Data field. GetSave returns value of Save conditional field. SetFlags sets flags for non-zero fields. SetSave sets value of Save 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. (*InputPaymentCredentials) Zero() bool *InputPaymentCredentials : InputPaymentCredentialsClass *InputPaymentCredentials : github.com/gotd/td/bin.BareDecoder *InputPaymentCredentials : github.com/gotd/td/bin.BareEncoder *InputPaymentCredentials : github.com/gotd/td/bin.Decoder *InputPaymentCredentials : github.com/gotd/td/bin.Encoder *InputPaymentCredentials : github.com/gotd/td/bin.Object *InputPaymentCredentials : github.com/gotd/td/tdp.Object *InputPaymentCredentials : fmt.Stringer func InputPaymentCredentialsArray.First() (v InputPaymentCredentials, ok bool) func InputPaymentCredentialsArray.Last() (v InputPaymentCredentials, ok bool) func (*InputPaymentCredentialsArray).Pop() (v InputPaymentCredentials, ok bool) func (*InputPaymentCredentialsArray).PopFirst() (v InputPaymentCredentials, ok bool)
InputPaymentCredentialsApplePay represents TL type `inputPaymentCredentialsApplePay#aa1c39f`. Apple pay payment credentials See https://core.telegram.org/constructor/inputPaymentCredentialsApplePay for reference. Payment data Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPaymentCredentialsApplePay from given interface. GetPaymentData returns value of PaymentData 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. (*InputPaymentCredentialsApplePay) Zero() bool *InputPaymentCredentialsApplePay : InputPaymentCredentialsClass *InputPaymentCredentialsApplePay : github.com/gotd/td/bin.BareDecoder *InputPaymentCredentialsApplePay : github.com/gotd/td/bin.BareEncoder *InputPaymentCredentialsApplePay : github.com/gotd/td/bin.Decoder *InputPaymentCredentialsApplePay : github.com/gotd/td/bin.Encoder *InputPaymentCredentialsApplePay : github.com/gotd/td/bin.Object *InputPaymentCredentialsApplePay : github.com/gotd/td/tdp.Object *InputPaymentCredentialsApplePay : fmt.Stringer func InputPaymentCredentialsApplePayArray.First() (v InputPaymentCredentialsApplePay, ok bool) func InputPaymentCredentialsApplePayArray.Last() (v InputPaymentCredentialsApplePay, ok bool) func (*InputPaymentCredentialsApplePayArray).Pop() (v InputPaymentCredentialsApplePay, ok bool) func (*InputPaymentCredentialsApplePayArray).PopFirst() (v InputPaymentCredentialsApplePay, ok bool)
InputPaymentCredentialsApplePayArray is adapter for slice of InputPaymentCredentialsApplePay. 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 InputPaymentCredentialsApplePay. Sort sorts slice of InputPaymentCredentialsApplePay. SortStable sorts slice of InputPaymentCredentialsApplePay. func InputPaymentCredentialsApplePayArray.Retain(keep func(x InputPaymentCredentialsApplePay) bool) InputPaymentCredentialsApplePayArray func InputPaymentCredentialsApplePayArray.Sort(less func(a, b InputPaymentCredentialsApplePay) bool) InputPaymentCredentialsApplePayArray func InputPaymentCredentialsApplePayArray.SortStable(less func(a, b InputPaymentCredentialsApplePay) bool) InputPaymentCredentialsApplePayArray func InputPaymentCredentialsClassArray.AsInputPaymentCredentialsApplePay() (to InputPaymentCredentialsApplePayArray)
InputPaymentCredentialsArray is adapter for slice of InputPaymentCredentials. 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 InputPaymentCredentials. Sort sorts slice of InputPaymentCredentials. SortStable sorts slice of InputPaymentCredentials. func InputPaymentCredentialsArray.Retain(keep func(x InputPaymentCredentials) bool) InputPaymentCredentialsArray func InputPaymentCredentialsArray.Sort(less func(a, b InputPaymentCredentials) bool) InputPaymentCredentialsArray func InputPaymentCredentialsArray.SortStable(less func(a, b InputPaymentCredentials) bool) InputPaymentCredentialsArray func InputPaymentCredentialsClassArray.AsInputPaymentCredentials() (to InputPaymentCredentialsArray)
InputPaymentCredentials boxes the InputPaymentCredentialsClass providing a helper. InputPaymentCredentials InputPaymentCredentialsClass Decode implements bin.Decoder for InputPaymentCredentialsBox. Encode implements bin.Encode for InputPaymentCredentialsBox. *InputPaymentCredentialsBox : github.com/gotd/td/bin.Decoder *InputPaymentCredentialsBox : github.com/gotd/td/bin.Encoder *InputPaymentCredentialsBox : github.com/gotd/td/bin.Object
InputPaymentCredentialsClass represents InputPaymentCredentials generic type. See https://core.telegram.org/type/InputPaymentCredentials for reference. Example: g, err := tg.DecodeInputPaymentCredentials(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputPaymentCredentialsSaved: // inputPaymentCredentialsSaved#c10eb2cf case *tg.InputPaymentCredentials: // inputPaymentCredentials#3417d728 case *tg.InputPaymentCredentialsApplePay: // inputPaymentCredentialsApplePay#aa1c39f case *tg.InputPaymentCredentialsGooglePay: // inputPaymentCredentialsGooglePay#8ac32801 default: panic(v) } ( InputPaymentCredentialsClass) Decode(b *bin.Buffer) error ( InputPaymentCredentialsClass) DecodeBare(b *bin.Buffer) error ( InputPaymentCredentialsClass) Encode(b *bin.Buffer) error ( InputPaymentCredentialsClass) 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. *InputPaymentCredentials *InputPaymentCredentialsApplePay *InputPaymentCredentialsGooglePay *InputPaymentCredentialsSaved InputPaymentCredentialsClass : github.com/gotd/td/bin.BareDecoder InputPaymentCredentialsClass : github.com/gotd/td/bin.BareEncoder InputPaymentCredentialsClass : github.com/gotd/td/bin.Decoder InputPaymentCredentialsClass : github.com/gotd/td/bin.Encoder InputPaymentCredentialsClass : github.com/gotd/td/bin.Object InputPaymentCredentialsClass : fmt.Stringer func DecodeInputPaymentCredentials(buf *bin.Buffer) (InputPaymentCredentialsClass, error) func InputPaymentCredentialsClassArray.First() (v InputPaymentCredentialsClass, ok bool) func InputPaymentCredentialsClassArray.Last() (v InputPaymentCredentialsClass, ok bool) func (*InputPaymentCredentialsClassArray).Pop() (v InputPaymentCredentialsClass, ok bool) func (*InputPaymentCredentialsClassArray).PopFirst() (v InputPaymentCredentialsClass, ok bool) func (*PaymentsSendPaymentFormRequest).GetCredentials() (value InputPaymentCredentialsClass)
InputPaymentCredentialsClassArray is adapter for slice of InputPaymentCredentialsClass. AsInputPaymentCredentials returns copy with only InputPaymentCredentials constructors. AsInputPaymentCredentialsApplePay returns copy with only InputPaymentCredentialsApplePay constructors. AsInputPaymentCredentialsGooglePay returns copy with only InputPaymentCredentialsGooglePay constructors. AsInputPaymentCredentialsSaved returns copy with only InputPaymentCredentialsSaved 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 InputPaymentCredentialsClass. Sort sorts slice of InputPaymentCredentialsClass. SortStable sorts slice of InputPaymentCredentialsClass. func InputPaymentCredentialsClassArray.Retain(keep func(x InputPaymentCredentialsClass) bool) InputPaymentCredentialsClassArray func InputPaymentCredentialsClassArray.Sort(less func(a, b InputPaymentCredentialsClass) bool) InputPaymentCredentialsClassArray func InputPaymentCredentialsClassArray.SortStable(less func(a, b InputPaymentCredentialsClass) bool) InputPaymentCredentialsClassArray
InputPaymentCredentialsGooglePay represents TL type `inputPaymentCredentialsGooglePay#8ac32801`. Google Pay payment credentials See https://core.telegram.org/constructor/inputPaymentCredentialsGooglePay for reference. Payment token Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPaymentCredentialsGooglePay from given interface. GetPaymentToken returns value of PaymentToken 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. (*InputPaymentCredentialsGooglePay) Zero() bool *InputPaymentCredentialsGooglePay : InputPaymentCredentialsClass *InputPaymentCredentialsGooglePay : github.com/gotd/td/bin.BareDecoder *InputPaymentCredentialsGooglePay : github.com/gotd/td/bin.BareEncoder *InputPaymentCredentialsGooglePay : github.com/gotd/td/bin.Decoder *InputPaymentCredentialsGooglePay : github.com/gotd/td/bin.Encoder *InputPaymentCredentialsGooglePay : github.com/gotd/td/bin.Object *InputPaymentCredentialsGooglePay : github.com/gotd/td/tdp.Object *InputPaymentCredentialsGooglePay : fmt.Stringer func InputPaymentCredentialsGooglePayArray.First() (v InputPaymentCredentialsGooglePay, ok bool) func InputPaymentCredentialsGooglePayArray.Last() (v InputPaymentCredentialsGooglePay, ok bool) func (*InputPaymentCredentialsGooglePayArray).Pop() (v InputPaymentCredentialsGooglePay, ok bool) func (*InputPaymentCredentialsGooglePayArray).PopFirst() (v InputPaymentCredentialsGooglePay, ok bool)
InputPaymentCredentialsGooglePayArray is adapter for slice of InputPaymentCredentialsGooglePay. 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 InputPaymentCredentialsGooglePay. Sort sorts slice of InputPaymentCredentialsGooglePay. SortStable sorts slice of InputPaymentCredentialsGooglePay. func InputPaymentCredentialsClassArray.AsInputPaymentCredentialsGooglePay() (to InputPaymentCredentialsGooglePayArray) func InputPaymentCredentialsGooglePayArray.Retain(keep func(x InputPaymentCredentialsGooglePay) bool) InputPaymentCredentialsGooglePayArray func InputPaymentCredentialsGooglePayArray.Sort(less func(a, b InputPaymentCredentialsGooglePay) bool) InputPaymentCredentialsGooglePayArray func InputPaymentCredentialsGooglePayArray.SortStable(less func(a, b InputPaymentCredentialsGooglePay) bool) InputPaymentCredentialsGooglePayArray
InputPaymentCredentialsSaved represents TL type `inputPaymentCredentialsSaved#c10eb2cf`. Saved payment credentials See https://core.telegram.org/constructor/inputPaymentCredentialsSaved for reference. Credential ID Temporary password Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPaymentCredentialsSaved from given interface. GetID returns value of ID field. GetTmpPassword returns value of TmpPassword 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. (*InputPaymentCredentialsSaved) Zero() bool *InputPaymentCredentialsSaved : InputPaymentCredentialsClass *InputPaymentCredentialsSaved : github.com/gotd/td/bin.BareDecoder *InputPaymentCredentialsSaved : github.com/gotd/td/bin.BareEncoder *InputPaymentCredentialsSaved : github.com/gotd/td/bin.Decoder *InputPaymentCredentialsSaved : github.com/gotd/td/bin.Encoder *InputPaymentCredentialsSaved : github.com/gotd/td/bin.Object *InputPaymentCredentialsSaved : github.com/gotd/td/tdp.Object *InputPaymentCredentialsSaved : fmt.Stringer func InputPaymentCredentialsSavedArray.First() (v InputPaymentCredentialsSaved, ok bool) func InputPaymentCredentialsSavedArray.Last() (v InputPaymentCredentialsSaved, ok bool) func (*InputPaymentCredentialsSavedArray).Pop() (v InputPaymentCredentialsSaved, ok bool) func (*InputPaymentCredentialsSavedArray).PopFirst() (v InputPaymentCredentialsSaved, ok bool)
InputPaymentCredentialsSavedArray is adapter for slice of InputPaymentCredentialsSaved. 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 InputPaymentCredentialsSaved. Sort sorts slice of InputPaymentCredentialsSaved. SortStable sorts slice of InputPaymentCredentialsSaved. func InputPaymentCredentialsClassArray.AsInputPaymentCredentialsSaved() (to InputPaymentCredentialsSavedArray) func InputPaymentCredentialsSavedArray.Retain(keep func(x InputPaymentCredentialsSaved) bool) InputPaymentCredentialsSavedArray func InputPaymentCredentialsSavedArray.Sort(less func(a, b InputPaymentCredentialsSaved) bool) InputPaymentCredentialsSavedArray func InputPaymentCredentialsSavedArray.SortStable(less func(a, b InputPaymentCredentialsSaved) bool) InputPaymentCredentialsSavedArray
InputPeer boxes the InputPeerClass providing a helper. InputPeer InputPeerClass Decode implements bin.Decoder for InputPeerBox. Encode implements bin.Encode for InputPeerBox. *InputPeerBox : github.com/gotd/td/bin.Decoder *InputPeerBox : github.com/gotd/td/bin.Encoder *InputPeerBox : github.com/gotd/td/bin.Object
InputPeerChannel represents TL type `inputPeerChannel#27bcbbfc`. Defines a channel for further interaction. See https://core.telegram.org/constructor/inputPeerChannel for reference. Access hash taken from the channel¹ constructor Links: 1) https://core.telegram.org/constructor/channel Channel ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPeerChannel from given interface. GetAccessHash returns value of AccessHash field. GetChannelID returns value of ChannelID 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. (*InputPeerChannel) Zero() bool *InputPeerChannel : InputPeerClass *InputPeerChannel : github.com/gotd/td/bin.BareDecoder *InputPeerChannel : github.com/gotd/td/bin.BareEncoder *InputPeerChannel : github.com/gotd/td/bin.Decoder *InputPeerChannel : github.com/gotd/td/bin.Encoder *InputPeerChannel : github.com/gotd/td/bin.Object *InputPeerChannel : github.com/gotd/td/tdp.Object *InputPeerChannel : fmt.Stringer func (*Channel).AsInputPeer() *InputPeerChannel func InputPeerChannelArray.First() (v InputPeerChannel, ok bool) func InputPeerChannelArray.Last() (v InputPeerChannel, ok bool) func (*InputPeerChannelArray).Pop() (v InputPeerChannel, ok bool) func (*InputPeerChannelArray).PopFirst() (v InputPeerChannel, ok bool)
InputPeerChannelArray is adapter for slice of InputPeerChannel. 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 InputPeerChannel. Sort sorts slice of InputPeerChannel. SortStable sorts slice of InputPeerChannel. func InputPeerChannelArray.Retain(keep func(x InputPeerChannel) bool) InputPeerChannelArray func InputPeerChannelArray.Sort(less func(a, b InputPeerChannel) bool) InputPeerChannelArray func InputPeerChannelArray.SortStable(less func(a, b InputPeerChannel) bool) InputPeerChannelArray func InputPeerClassArray.AsInputPeerChannel() (to InputPeerChannelArray)
InputPeerChannelFromMessage represents TL type `inputPeerChannelFromMessage#bd2a0840`. Defines a min¹ channel that was seen in a certain message of a certain chat. Links: 1. https://core.telegram.org/api/min See https://core.telegram.org/constructor/inputPeerChannelFromMessage for reference. The channel ID The message ID in the chat where the channel was seen The chat where the channel was seen Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPeerChannelFromMessage from given interface. GetChannelID returns value of ChannelID field. GetMsgID returns value of MsgID 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. (*InputPeerChannelFromMessage) Zero() bool *InputPeerChannelFromMessage : InputPeerClass *InputPeerChannelFromMessage : github.com/gotd/td/bin.BareDecoder *InputPeerChannelFromMessage : github.com/gotd/td/bin.BareEncoder *InputPeerChannelFromMessage : github.com/gotd/td/bin.Decoder *InputPeerChannelFromMessage : github.com/gotd/td/bin.Encoder *InputPeerChannelFromMessage : github.com/gotd/td/bin.Object *InputPeerChannelFromMessage : github.com/gotd/td/tdp.Object *InputPeerChannelFromMessage : fmt.Stringer func InputPeerChannelFromMessageArray.First() (v InputPeerChannelFromMessage, ok bool) func InputPeerChannelFromMessageArray.Last() (v InputPeerChannelFromMessage, ok bool) func (*InputPeerChannelFromMessageArray).Pop() (v InputPeerChannelFromMessage, ok bool) func (*InputPeerChannelFromMessageArray).PopFirst() (v InputPeerChannelFromMessage, ok bool)
InputPeerChannelFromMessageArray is adapter for slice of InputPeerChannelFromMessage. 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 InputPeerChannelFromMessage. Sort sorts slice of InputPeerChannelFromMessage. SortStable sorts slice of InputPeerChannelFromMessage. func InputPeerChannelFromMessageArray.Retain(keep func(x InputPeerChannelFromMessage) bool) InputPeerChannelFromMessageArray func InputPeerChannelFromMessageArray.Sort(less func(a, b InputPeerChannelFromMessage) bool) InputPeerChannelFromMessageArray func InputPeerChannelFromMessageArray.SortStable(less func(a, b InputPeerChannelFromMessage) bool) InputPeerChannelFromMessageArray func InputPeerClassArray.AsInputPeerChannelFromMessage() (to InputPeerChannelFromMessageArray)
InputPeerChat represents TL type `inputPeerChat#35a95cb9`. Defines a chat for further interaction. See https://core.telegram.org/constructor/inputPeerChat for reference. Chat identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPeerChat from given interface. GetChatID returns value of ChatID 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. (*InputPeerChat) Zero() bool *InputPeerChat : InputPeerClass *InputPeerChat : github.com/gotd/td/bin.BareDecoder *InputPeerChat : github.com/gotd/td/bin.BareEncoder *InputPeerChat : github.com/gotd/td/bin.Decoder *InputPeerChat : github.com/gotd/td/bin.Encoder *InputPeerChat : github.com/gotd/td/bin.Object *InputPeerChat : github.com/gotd/td/tdp.Object *InputPeerChat : fmt.Stringer func (*Chat).AsInputPeer() *InputPeerChat func InputPeerChatArray.First() (v InputPeerChat, ok bool) func InputPeerChatArray.Last() (v InputPeerChat, ok bool) func (*InputPeerChatArray).Pop() (v InputPeerChat, ok bool) func (*InputPeerChatArray).PopFirst() (v InputPeerChat, ok bool) func (*PeerChat).AsInput() *InputPeerChat
InputPeerChatArray is adapter for slice of InputPeerChat. 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 InputPeerChat. Sort sorts slice of InputPeerChat. SortStable sorts slice of InputPeerChat. func InputPeerChatArray.Retain(keep func(x InputPeerChat) bool) InputPeerChatArray func InputPeerChatArray.Sort(less func(a, b InputPeerChat) bool) InputPeerChatArray func InputPeerChatArray.SortStable(less func(a, b InputPeerChat) bool) InputPeerChatArray func InputPeerClassArray.AsInputPeerChat() (to InputPeerChatArray)
InputPeerClass represents InputPeer generic type. See https://core.telegram.org/type/InputPeer for reference. Example: g, err := tg.DecodeInputPeer(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputPeerEmpty: // inputPeerEmpty#7f3b18ea case *tg.InputPeerSelf: // inputPeerSelf#7da07ec9 case *tg.InputPeerChat: // inputPeerChat#35a95cb9 case *tg.InputPeerUser: // inputPeerUser#dde8a54c case *tg.InputPeerChannel: // inputPeerChannel#27bcbbfc case *tg.InputPeerUserFromMessage: // inputPeerUserFromMessage#a87b0a1c case *tg.InputPeerChannelFromMessage: // inputPeerChannelFromMessage#bd2a0840 default: panic(v) } ( InputPeerClass) Decode(b *bin.Buffer) error ( InputPeerClass) DecodeBare(b *bin.Buffer) error ( InputPeerClass) Encode(b *bin.Buffer) error ( InputPeerClass) 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. *InputPeerChannel *InputPeerChannelFromMessage *InputPeerChat *InputPeerEmpty *InputPeerSelf *InputPeerUser *InputPeerUserFromMessage InputPeerClass : github.com/gotd/td/bin.BareDecoder InputPeerClass : github.com/gotd/td/bin.BareEncoder InputPeerClass : github.com/gotd/td/bin.Decoder InputPeerClass : github.com/gotd/td/bin.Encoder InputPeerClass : github.com/gotd/td/bin.Object InputPeerClass : fmt.Stringer func DecodeInputPeer(buf *bin.Buffer) (InputPeerClass, error) func (*AccountReportPeerRequest).GetPeer() (value InputPeerClass) func (*AccountReportProfilePhotoRequest).GetPeer() (value InputPeerClass) func (*AccountSaveAutoSaveSettingsRequest).GetPeer() (value InputPeerClass, ok bool) func (*BotCommandScopePeer).GetPeer() (value InputPeerClass) func (*BotCommandScopePeerAdmins).GetPeer() (value InputPeerClass) func (*BotCommandScopePeerUser).GetPeer() (value InputPeerClass) func (*ChannelsCreateForumTopicRequest).GetSendAs() (value InputPeerClass, ok bool) func (*ChannelsDeleteParticipantHistoryRequest).GetParticipant() (value InputPeerClass) func (*ChannelsEditBannedRequest).GetParticipant() (value InputPeerClass) func (*ChannelsGetParticipantRequest).GetParticipant() (value InputPeerClass) func (*ChannelsGetSendAsRequest).GetPeer() (value InputPeerClass) func (*ChannelsReportSpamRequest).GetParticipant() (value InputPeerClass) func (*ChatlistsEditExportedInviteRequest).GetPeers() (value []InputPeerClass, ok bool) func (*ChatlistsExportChatlistInviteRequest).GetPeers() (value []InputPeerClass) func (*ChatlistsJoinChatlistInviteRequest).GetPeers() (value []InputPeerClass) func (*ChatlistsJoinChatlistUpdatesRequest).GetPeers() (value []InputPeerClass) func (*ChatlistsLeaveChatlistRequest).GetPeers() (value []InputPeerClass) func (*ContactsBlockRequest).GetID() (value InputPeerClass) func (*ContactsResetTopPeerRatingRequest).GetPeer() (value InputPeerClass) func (*ContactsSetBlockedRequest).GetID() (value []InputPeerClass) func (*ContactsUnblockRequest).GetID() (value InputPeerClass) func (*DialogFilter).GetExcludePeers() (value []InputPeerClass) func (*DialogFilter).GetIncludePeers() (value []InputPeerClass) func (*DialogFilter).GetPinnedPeers() (value []InputPeerClass) func (*DialogFilterChatlist).GetIncludePeers() (value []InputPeerClass) func (*DialogFilterChatlist).GetPinnedPeers() (value []InputPeerClass) func (*HelpDismissSuggestionRequest).GetPeer() (value InputPeerClass) func (*HelpHidePromoDataRequest).GetPeer() (value InputPeerClass) func (*InputChannelFromMessage).GetPeer() (value InputPeerClass) func (*InputDialogPeer).GetPeer() (value InputPeerClass) func (*InputFolderPeer).GetPeer() (value InputPeerClass) func (*InputInvoiceMessage).GetPeer() (value InputPeerClass) func (*InputMediaStory).GetPeer() (value InputPeerClass) func (*InputNotifyForumTopic).GetPeer() (value InputPeerClass) func (*InputNotifyPeer).GetPeer() (value InputPeerClass) func (*InputPeerChannelFromMessage).GetPeer() (value InputPeerClass) func InputPeerClassArray.First() (v InputPeerClass, ok bool) func InputPeerClassArray.Last() (v InputPeerClass, ok bool) func (*InputPeerClassArray).Pop() (v InputPeerClass, ok bool) func (*InputPeerClassArray).PopFirst() (v InputPeerClass, ok bool) func (*InputPeerPhotoFileLocation).GetPeer() (value InputPeerClass) func (*InputPeerPhotoFileLocationLegacy).GetPeer() (value InputPeerClass) func (*InputPeerUserFromMessage).GetPeer() (value InputPeerClass) func (*InputReplyToMessage).GetReplyToPeerID() (value InputPeerClass, ok bool) func (*InputStorePaymentPremiumGiftCode).GetBoostPeer() (value InputPeerClass, ok bool) func (*InputStorePaymentPremiumGiveaway).GetAdditionalPeers() (value []InputPeerClass, ok bool) func (*InputStorePaymentPremiumGiveaway).GetBoostPeer() (value InputPeerClass) func (*InputUserFromMessage).GetPeer() (value InputPeerClass) func (*MessagesAcceptURLAuthRequest).GetPeer() (value InputPeerClass, ok bool) func (*MessagesCheckHistoryImportPeerRequest).GetPeer() (value InputPeerClass) func (*MessagesDeleteExportedChatInviteRequest).GetPeer() (value InputPeerClass) func (*MessagesDeleteHistoryRequest).GetPeer() (value InputPeerClass) func (*MessagesDeleteRevokedExportedChatInvitesRequest).GetPeer() (value InputPeerClass) func (*MessagesDeleteScheduledMessagesRequest).GetPeer() (value InputPeerClass) func (*MessagesEditChatAboutRequest).GetPeer() (value InputPeerClass) func (*MessagesEditChatDefaultBannedRightsRequest).GetPeer() (value InputPeerClass) func (*MessagesEditExportedChatInviteRequest).GetPeer() (value InputPeerClass) func (*MessagesEditMessageRequest).GetPeer() (value InputPeerClass) func (*MessagesExportChatInviteRequest).GetPeer() (value InputPeerClass) func (*MessagesForwardMessagesRequest).GetFromPeer() (value InputPeerClass) func (*MessagesForwardMessagesRequest).GetSendAs() (value InputPeerClass, ok bool) func (*MessagesForwardMessagesRequest).GetToPeer() (value InputPeerClass) func (*MessagesGetAdminsWithInvitesRequest).GetPeer() (value InputPeerClass) func (*MessagesGetBotCallbackAnswerRequest).GetPeer() (value InputPeerClass) func (*MessagesGetChatInviteImportersRequest).GetPeer() (value InputPeerClass) func (*MessagesGetDialogsRequest).GetOffsetPeer() (value InputPeerClass) func (*MessagesGetDiscussionMessageRequest).GetPeer() (value InputPeerClass) func (*MessagesGetExportedChatInviteRequest).GetPeer() (value InputPeerClass) func (*MessagesGetExportedChatInvitesRequest).GetPeer() (value InputPeerClass) func (*MessagesGetExtendedMediaRequest).GetPeer() (value InputPeerClass) func (*MessagesGetGameHighScoresRequest).GetPeer() (value InputPeerClass) func (*MessagesGetHistoryRequest).GetPeer() (value InputPeerClass) func (*MessagesGetInlineBotResultsRequest).GetPeer() (value InputPeerClass) func (*MessagesGetMessageEditDataRequest).GetPeer() (value InputPeerClass) func (*MessagesGetMessageReactionsListRequest).GetPeer() (value InputPeerClass) func (*MessagesGetMessageReadParticipantsRequest).GetPeer() (value InputPeerClass) func (*MessagesGetMessagesReactionsRequest).GetPeer() (value InputPeerClass) func (*MessagesGetMessagesViewsRequest).GetPeer() (value InputPeerClass) func (*MessagesGetOnlinesRequest).GetPeer() (value InputPeerClass) func (*MessagesGetPeerSettingsRequest).GetPeer() (value InputPeerClass) func (*MessagesGetPollResultsRequest).GetPeer() (value InputPeerClass) func (*MessagesGetPollVotesRequest).GetPeer() (value InputPeerClass) func (*MessagesGetRecentLocationsRequest).GetPeer() (value InputPeerClass) func (*MessagesGetRepliesRequest).GetPeer() (value InputPeerClass) func (*MessagesGetScheduledHistoryRequest).GetPeer() (value InputPeerClass) func (*MessagesGetScheduledMessagesRequest).GetPeer() (value InputPeerClass) func (*MessagesGetSearchCountersRequest).GetPeer() (value InputPeerClass) func (*MessagesGetSearchResultsCalendarRequest).GetPeer() (value InputPeerClass) func (*MessagesGetSearchResultsPositionsRequest).GetPeer() (value InputPeerClass) func (*MessagesGetUnreadMentionsRequest).GetPeer() (value InputPeerClass) func (*MessagesGetUnreadReactionsRequest).GetPeer() (value InputPeerClass) func (*MessagesHideAllChatJoinRequestsRequest).GetPeer() (value InputPeerClass) func (*MessagesHideChatJoinRequestRequest).GetPeer() (value InputPeerClass) func (*MessagesHidePeerSettingsBarRequest).GetPeer() (value InputPeerClass) func (*MessagesInitHistoryImportRequest).GetPeer() (value InputPeerClass) func (*MessagesProlongWebViewRequest).GetPeer() (value InputPeerClass) func (*MessagesProlongWebViewRequest).GetSendAs() (value InputPeerClass, ok bool) func (*MessagesRateTranscribedAudioRequest).GetPeer() (value InputPeerClass) func (*MessagesReadDiscussionRequest).GetPeer() (value InputPeerClass) func (*MessagesReadHistoryRequest).GetPeer() (value InputPeerClass) func (*MessagesReadMentionsRequest).GetPeer() (value InputPeerClass) func (*MessagesReadReactionsRequest).GetPeer() (value InputPeerClass) func (*MessagesReportReactionRequest).GetPeer() (value InputPeerClass) func (*MessagesReportReactionRequest).GetReactionPeer() (value InputPeerClass) func (*MessagesReportRequest).GetPeer() (value InputPeerClass) func (*MessagesReportSpamRequest).GetPeer() (value InputPeerClass) func (*MessagesRequestAppWebViewRequest).GetPeer() (value InputPeerClass) func (*MessagesRequestURLAuthRequest).GetPeer() (value InputPeerClass, ok bool) func (*MessagesRequestWebViewRequest).GetPeer() (value InputPeerClass) func (*MessagesRequestWebViewRequest).GetSendAs() (value InputPeerClass, ok bool) func (*MessagesSaveDefaultSendAsRequest).GetPeer() (value InputPeerClass) func (*MessagesSaveDefaultSendAsRequest).GetSendAs() (value InputPeerClass) func (*MessagesSaveDraftRequest).GetPeer() (value InputPeerClass) func (*MessagesSearchGlobalRequest).GetOffsetPeer() (value InputPeerClass) func (*MessagesSearchRequest).GetFromID() (value InputPeerClass, ok bool) func (*MessagesSearchRequest).GetPeer() (value InputPeerClass) func (*MessagesSendBotRequestedPeerRequest).GetPeer() (value InputPeerClass) func (*MessagesSendBotRequestedPeerRequest).GetRequestedPeers() (value []InputPeerClass) func (*MessagesSendInlineBotResultRequest).GetPeer() (value InputPeerClass) func (*MessagesSendInlineBotResultRequest).GetSendAs() (value InputPeerClass, ok bool) func (*MessagesSendMediaRequest).GetPeer() (value InputPeerClass) func (*MessagesSendMediaRequest).GetSendAs() (value InputPeerClass, ok bool) func (*MessagesSendMessageRequest).GetPeer() (value InputPeerClass) func (*MessagesSendMessageRequest).GetSendAs() (value InputPeerClass, ok bool) func (*MessagesSendMultiMediaRequest).GetPeer() (value InputPeerClass) func (*MessagesSendMultiMediaRequest).GetSendAs() (value InputPeerClass, ok bool) func (*MessagesSendReactionRequest).GetPeer() (value InputPeerClass) func (*MessagesSendScheduledMessagesRequest).GetPeer() (value InputPeerClass) func (*MessagesSendScreenshotNotificationRequest).GetPeer() (value InputPeerClass) func (*MessagesSendVoteRequest).GetPeer() (value InputPeerClass) func (*MessagesSetChatAvailableReactionsRequest).GetPeer() (value InputPeerClass) func (*MessagesSetChatThemeRequest).GetPeer() (value InputPeerClass) func (*MessagesSetChatWallPaperRequest).GetPeer() (value InputPeerClass) func (*MessagesSetGameScoreRequest).GetPeer() (value InputPeerClass) func (*MessagesSetHistoryTTLRequest).GetPeer() (value InputPeerClass) func (*MessagesSetTypingRequest).GetPeer() (value InputPeerClass) func (*MessagesStartBotRequest).GetPeer() (value InputPeerClass) func (*MessagesStartHistoryImportRequest).GetPeer() (value InputPeerClass) func (*MessagesToggleNoForwardsRequest).GetPeer() (value InputPeerClass) func (*MessagesTogglePeerTranslationsRequest).GetPeer() (value InputPeerClass) func (*MessagesTranscribeAudioRequest).GetPeer() (value InputPeerClass) func (*MessagesTranslateTextRequest).GetPeer() (value InputPeerClass, ok bool) func (*MessagesUnpinAllMessagesRequest).GetPeer() (value InputPeerClass) func (*MessagesUpdatePinnedMessageRequest).GetPeer() (value InputPeerClass) func (*MessagesUploadImportedMediaRequest).GetPeer() (value InputPeerClass) func (*MessagesUploadMediaRequest).GetPeer() (value InputPeerClass) func (*PaymentsGetGiveawayInfoRequest).GetPeer() (value InputPeerClass) func (*PaymentsGetPaymentReceiptRequest).GetPeer() (value InputPeerClass) func (*PaymentsGetPremiumGiftCodeOptionsRequest).GetBoostPeer() (value InputPeerClass, ok bool) func (*PaymentsLaunchPrepaidGiveawayRequest).GetPeer() (value InputPeerClass) func (*PhoneCreateGroupCallRequest).GetPeer() (value InputPeerClass) func (*PhoneEditGroupCallParticipantRequest).GetParticipant() (value InputPeerClass) func (*PhoneGetGroupCallJoinAsRequest).GetPeer() (value InputPeerClass) func (*PhoneGetGroupCallStreamRtmpURLRequest).GetPeer() (value InputPeerClass) func (*PhoneGetGroupParticipantsRequest).GetIDs() (value []InputPeerClass) func (*PhoneJoinGroupCallRequest).GetJoinAs() (value InputPeerClass) func (*PhoneSaveDefaultGroupCallJoinAsRequest).GetJoinAs() (value InputPeerClass) func (*PhoneSaveDefaultGroupCallJoinAsRequest).GetPeer() (value InputPeerClass) func (*PremiumApplyBoostRequest).GetPeer() (value InputPeerClass) func (*PremiumGetBoostsListRequest).GetPeer() (value InputPeerClass) func (*PremiumGetBoostsStatusRequest).GetPeer() (value InputPeerClass) func (*PremiumGetUserBoostsRequest).GetPeer() (value InputPeerClass) func (*StatsGetStoryPublicForwardsRequest).GetPeer() (value InputPeerClass) func (*StatsGetStoryStatsRequest).GetPeer() (value InputPeerClass) func (*StoriesCanSendStoryRequest).GetPeer() (value InputPeerClass) func (*StoriesDeleteStoriesRequest).GetPeer() (value InputPeerClass) func (*StoriesEditStoryRequest).GetPeer() (value InputPeerClass) func (*StoriesExportStoryLinkRequest).GetPeer() (value InputPeerClass) func (*StoriesGetPeerMaxIDsRequest).GetID() (value []InputPeerClass) func (*StoriesGetPeerStoriesRequest).GetPeer() (value InputPeerClass) func (*StoriesGetPinnedStoriesRequest).GetPeer() (value InputPeerClass) func (*StoriesGetStoriesArchiveRequest).GetPeer() (value InputPeerClass) func (*StoriesGetStoriesByIDRequest).GetPeer() (value InputPeerClass) func (*StoriesGetStoriesViewsRequest).GetPeer() (value InputPeerClass) func (*StoriesGetStoryReactionsListRequest).GetPeer() (value InputPeerClass) func (*StoriesGetStoryViewsListRequest).GetPeer() (value InputPeerClass) func (*StoriesIncrementStoryViewsRequest).GetPeer() (value InputPeerClass) func (*StoriesReadStoriesRequest).GetPeer() (value InputPeerClass) func (*StoriesReportRequest).GetPeer() (value InputPeerClass) func (*StoriesSendReactionRequest).GetPeer() (value InputPeerClass) func (*StoriesSendStoryRequest).GetFwdFromID() (value InputPeerClass, ok bool) func (*StoriesSendStoryRequest).GetPeer() (value InputPeerClass) func (*StoriesTogglePeerStoriesHiddenRequest).GetPeer() (value InputPeerClass) func (*StoriesTogglePinnedRequest).GetPeer() (value InputPeerClass) func (*AccountSaveAutoSaveSettingsRequest).SetPeer(value InputPeerClass) func (*ChannelsCreateForumTopicRequest).SetSendAs(value InputPeerClass) func (*ChatlistsEditExportedInviteRequest).SetPeers(value []InputPeerClass) func (*Client).ChannelsGetSendAs(ctx context.Context, peer InputPeerClass) (*ChannelsSendAsPeers, error) func (*Client).HelpHidePromoData(ctx context.Context, peer InputPeerClass) (bool, error) func (*Client).MessagesCheckHistoryImportPeer(ctx context.Context, peer InputPeerClass) (*MessagesCheckedHistoryImportPeer, error) func (*Client).MessagesGetAdminsWithInvites(ctx context.Context, peer InputPeerClass) (*MessagesChatAdminsWithInvites, error) func (*Client).MessagesGetOnlines(ctx context.Context, peer InputPeerClass) (*ChatOnlines, error) func (*Client).MessagesGetPeerSettings(ctx context.Context, peer InputPeerClass) (*MessagesPeerSettings, error) func (*Client).MessagesHidePeerSettingsBar(ctx context.Context, peer InputPeerClass) (bool, error) func (*Client).MessagesReportSpam(ctx context.Context, peer InputPeerClass) (bool, error) func (*Client).PhoneGetGroupCallJoinAs(ctx context.Context, peer InputPeerClass) (*PhoneJoinAsPeers, error) func (*Client).PremiumGetBoostsStatus(ctx context.Context, peer InputPeerClass) (*PremiumBoostsStatus, error) func (*Client).StoriesCanSendStory(ctx context.Context, peer InputPeerClass) (bool, error) func (*Client).StoriesGetPeerMaxIDs(ctx context.Context, id []InputPeerClass) ([]int, error) func (*Client).StoriesGetPeerStories(ctx context.Context, peer InputPeerClass) (*StoriesPeerStories, error) func (*InputReplyToMessage).SetReplyToPeerID(value InputPeerClass) func (*InputStorePaymentPremiumGiftCode).SetBoostPeer(value InputPeerClass) func (*InputStorePaymentPremiumGiveaway).SetAdditionalPeers(value []InputPeerClass) func (*MessagesAcceptURLAuthRequest).SetPeer(value InputPeerClass) func (*MessagesForwardMessagesRequest).SetSendAs(value InputPeerClass) func (*MessagesProlongWebViewRequest).SetSendAs(value InputPeerClass) func (*MessagesRequestURLAuthRequest).SetPeer(value InputPeerClass) func (*MessagesRequestWebViewRequest).SetSendAs(value InputPeerClass) func (*MessagesSearchRequest).SetFromID(value InputPeerClass) func (*MessagesSendInlineBotResultRequest).SetSendAs(value InputPeerClass) func (*MessagesSendMediaRequest).SetSendAs(value InputPeerClass) func (*MessagesSendMessageRequest).SetSendAs(value InputPeerClass) func (*MessagesSendMultiMediaRequest).SetSendAs(value InputPeerClass) func (*MessagesTranslateTextRequest).SetPeer(value InputPeerClass) func (*PaymentsGetPremiumGiftCodeOptionsRequest).SetBoostPeer(value InputPeerClass) func (*StoriesSendStoryRequest).SetFwdFromID(value InputPeerClass)
InputPeerClassArray is adapter for slice of InputPeerClass. AsInputPeerChannel returns copy with only InputPeerChannel constructors. AsInputPeerChannelFromMessage returns copy with only InputPeerChannelFromMessage constructors. AsInputPeerChat returns copy with only InputPeerChat constructors. AsInputPeerUser returns copy with only InputPeerUser constructors. AsInputPeerUserFromMessage returns copy with only InputPeerUserFromMessage 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 InputPeerClass. Sort sorts slice of InputPeerClass. SortStable sorts slice of InputPeerClass. func (*ChatlistsEditExportedInviteRequest).MapPeers() (value InputPeerClassArray, ok bool) func (*ChatlistsExportChatlistInviteRequest).MapPeers() (value InputPeerClassArray) func (*ChatlistsJoinChatlistInviteRequest).MapPeers() (value InputPeerClassArray) func (*ChatlistsJoinChatlistUpdatesRequest).MapPeers() (value InputPeerClassArray) func (*ChatlistsLeaveChatlistRequest).MapPeers() (value InputPeerClassArray) func (*ContactsSetBlockedRequest).MapID() (value InputPeerClassArray) func (*DialogFilter).MapExcludePeers() (value InputPeerClassArray) func (*DialogFilter).MapIncludePeers() (value InputPeerClassArray) func (*DialogFilter).MapPinnedPeers() (value InputPeerClassArray) func (*DialogFilterChatlist).MapIncludePeers() (value InputPeerClassArray) func (*DialogFilterChatlist).MapPinnedPeers() (value InputPeerClassArray) func InputPeerClassArray.Retain(keep func(x InputPeerClass) bool) InputPeerClassArray func InputPeerClassArray.Sort(less func(a, b InputPeerClass) bool) InputPeerClassArray func InputPeerClassArray.SortStable(less func(a, b InputPeerClass) bool) InputPeerClassArray func (*InputStorePaymentPremiumGiveaway).MapAdditionalPeers() (value InputPeerClassArray, ok bool) func (*MessagesSendBotRequestedPeerRequest).MapRequestedPeers() (value InputPeerClassArray) func (*PhoneGetGroupParticipantsRequest).MapIDs() (value InputPeerClassArray) func (*StoriesGetPeerMaxIDsRequest).MapID() (value InputPeerClassArray)
InputPeerEmpty represents TL type `inputPeerEmpty#7f3b18ea`. An empty constructor, no user or chat is defined. See https://core.telegram.org/constructor/inputPeerEmpty 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. (*InputPeerEmpty) Zero() bool *InputPeerEmpty : InputPeerClass *InputPeerEmpty : github.com/gotd/td/bin.BareDecoder *InputPeerEmpty : github.com/gotd/td/bin.BareEncoder *InputPeerEmpty : github.com/gotd/td/bin.Decoder *InputPeerEmpty : github.com/gotd/td/bin.Encoder *InputPeerEmpty : github.com/gotd/td/bin.Object *InputPeerEmpty : github.com/gotd/td/tdp.Object *InputPeerEmpty : fmt.Stringer
InputPeerNotifySettings represents TL type `inputPeerNotifySettings#cacb6ae2`. Notification settings. See https://core.telegram.org/constructor/inputPeerNotifySettings for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Date until which all notifications shall be switched off Use SetMuteUntil and GetMuteUntil helpers. If the text of the message shall be displayed in notification Use SetShowPreviews and GetShowPreviews helpers. Peer was muted? Use SetSilent and GetSilent helpers. Identifier of an audio file to play for notifications. Use SetSound and GetSound helpers. Whether the sender name should be displayed in story notifications. Use SetStoriesHideSender and GetStoriesHideSender helpers. Whether story notifications should be disabled. Use SetStoriesMuted and GetStoriesMuted helpers. Identifier of an audio file to play for story notifications. Use SetStoriesSound and GetStoriesSound helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPeerNotifySettings from given interface. GetMuteUntil returns value of MuteUntil conditional field and boolean which is true if field was set. GetShowPreviews returns value of ShowPreviews conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field and boolean which is true if field was set. GetSound returns value of Sound conditional field and boolean which is true if field was set. GetStoriesHideSender returns value of StoriesHideSender conditional field and boolean which is true if field was set. GetStoriesMuted returns value of StoriesMuted conditional field and boolean which is true if field was set. GetStoriesSound returns value of StoriesSound conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetMuteUntil sets value of MuteUntil conditional field. SetShowPreviews sets value of ShowPreviews conditional field. SetSilent sets value of Silent conditional field. SetSound sets value of Sound conditional field. SetStoriesHideSender sets value of StoriesHideSender conditional field. SetStoriesMuted sets value of StoriesMuted conditional field. SetStoriesSound sets value of StoriesSound 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. (*InputPeerNotifySettings) Zero() bool *InputPeerNotifySettings : github.com/gotd/td/bin.BareDecoder *InputPeerNotifySettings : github.com/gotd/td/bin.BareEncoder *InputPeerNotifySettings : github.com/gotd/td/bin.Decoder *InputPeerNotifySettings : github.com/gotd/td/bin.Encoder *InputPeerNotifySettings : github.com/gotd/td/bin.Object *InputPeerNotifySettings : github.com/gotd/td/tdp.Object *InputPeerNotifySettings : fmt.Stringer func (*AccountUpdateNotifySettingsRequest).GetSettings() (value InputPeerNotifySettings)
InputPeerPhotoFileLocation represents TL type `inputPeerPhotoFileLocation#37257e99`. Location of profile photo of channel/group/supergroup/user See https://core.telegram.org/constructor/inputPeerPhotoFileLocation for reference. Whether to download the high-quality version of the picture Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The peer whose profile picture should be downloaded Photo ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPeerPhotoFileLocation from given interface. GetBig returns value of Big conditional field. GetPeer returns value of Peer field. GetPhotoID returns value of PhotoID field. SetBig sets value of Big 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. (*InputPeerPhotoFileLocation) Zero() bool *InputPeerPhotoFileLocation : InputFileLocationClass *InputPeerPhotoFileLocation : github.com/gotd/td/bin.BareDecoder *InputPeerPhotoFileLocation : github.com/gotd/td/bin.BareEncoder *InputPeerPhotoFileLocation : github.com/gotd/td/bin.Decoder *InputPeerPhotoFileLocation : github.com/gotd/td/bin.Encoder *InputPeerPhotoFileLocation : github.com/gotd/td/bin.Object *InputPeerPhotoFileLocation : github.com/gotd/td/tdp.Object *InputPeerPhotoFileLocation : fmt.Stringer func InputPeerPhotoFileLocationArray.First() (v InputPeerPhotoFileLocation, ok bool) func InputPeerPhotoFileLocationArray.Last() (v InputPeerPhotoFileLocation, ok bool) func (*InputPeerPhotoFileLocationArray).Pop() (v InputPeerPhotoFileLocation, ok bool) func (*InputPeerPhotoFileLocationArray).PopFirst() (v InputPeerPhotoFileLocation, ok bool)
InputPeerPhotoFileLocationArray is adapter for slice of InputPeerPhotoFileLocation. 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 InputPeerPhotoFileLocation. Sort sorts slice of InputPeerPhotoFileLocation. SortStable sorts slice of InputPeerPhotoFileLocation. func InputFileLocationClassArray.AsInputPeerPhotoFileLocation() (to InputPeerPhotoFileLocationArray) func InputPeerPhotoFileLocationArray.Retain(keep func(x InputPeerPhotoFileLocation) bool) InputPeerPhotoFileLocationArray func InputPeerPhotoFileLocationArray.Sort(less func(a, b InputPeerPhotoFileLocation) bool) InputPeerPhotoFileLocationArray func InputPeerPhotoFileLocationArray.SortStable(less func(a, b InputPeerPhotoFileLocation) bool) InputPeerPhotoFileLocationArray
InputPeerPhotoFileLocationLegacy represents TL type `inputPeerPhotoFileLocationLegacy#27d69997`. See https://core.telegram.org/constructor/inputPeerPhotoFileLocationLegacy for reference. Big field of InputPeerPhotoFileLocationLegacy. Flags field of InputPeerPhotoFileLocationLegacy. LocalID field of InputPeerPhotoFileLocationLegacy. Peer field of InputPeerPhotoFileLocationLegacy. VolumeID field of InputPeerPhotoFileLocationLegacy. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPeerPhotoFileLocationLegacy from given interface. GetBig returns value of Big conditional field. GetLocalID returns value of LocalID field. GetPeer returns value of Peer field. GetVolumeID returns value of VolumeID field. SetBig sets value of Big 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. (*InputPeerPhotoFileLocationLegacy) Zero() bool *InputPeerPhotoFileLocationLegacy : InputFileLocationClass *InputPeerPhotoFileLocationLegacy : github.com/gotd/td/bin.BareDecoder *InputPeerPhotoFileLocationLegacy : github.com/gotd/td/bin.BareEncoder *InputPeerPhotoFileLocationLegacy : github.com/gotd/td/bin.Decoder *InputPeerPhotoFileLocationLegacy : github.com/gotd/td/bin.Encoder *InputPeerPhotoFileLocationLegacy : github.com/gotd/td/bin.Object *InputPeerPhotoFileLocationLegacy : github.com/gotd/td/tdp.Object *InputPeerPhotoFileLocationLegacy : fmt.Stringer func InputPeerPhotoFileLocationLegacyArray.First() (v InputPeerPhotoFileLocationLegacy, ok bool) func InputPeerPhotoFileLocationLegacyArray.Last() (v InputPeerPhotoFileLocationLegacy, ok bool) func (*InputPeerPhotoFileLocationLegacyArray).Pop() (v InputPeerPhotoFileLocationLegacy, ok bool) func (*InputPeerPhotoFileLocationLegacyArray).PopFirst() (v InputPeerPhotoFileLocationLegacy, ok bool)
InputPeerPhotoFileLocationLegacyArray is adapter for slice of InputPeerPhotoFileLocationLegacy. 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 InputPeerPhotoFileLocationLegacy. Sort sorts slice of InputPeerPhotoFileLocationLegacy. SortStable sorts slice of InputPeerPhotoFileLocationLegacy. func InputFileLocationClassArray.AsInputPeerPhotoFileLocationLegacy() (to InputPeerPhotoFileLocationLegacyArray) func InputPeerPhotoFileLocationLegacyArray.Retain(keep func(x InputPeerPhotoFileLocationLegacy) bool) InputPeerPhotoFileLocationLegacyArray func InputPeerPhotoFileLocationLegacyArray.Sort(less func(a, b InputPeerPhotoFileLocationLegacy) bool) InputPeerPhotoFileLocationLegacyArray func InputPeerPhotoFileLocationLegacyArray.SortStable(less func(a, b InputPeerPhotoFileLocationLegacy) bool) InputPeerPhotoFileLocationLegacyArray
InputPeerSelf represents TL type `inputPeerSelf#7da07ec9`. Defines the current user. See https://core.telegram.org/constructor/inputPeerSelf 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. (*InputPeerSelf) Zero() bool *InputPeerSelf : InputPeerClass *InputPeerSelf : github.com/gotd/td/bin.BareDecoder *InputPeerSelf : github.com/gotd/td/bin.BareEncoder *InputPeerSelf : github.com/gotd/td/bin.Decoder *InputPeerSelf : github.com/gotd/td/bin.Encoder *InputPeerSelf : github.com/gotd/td/bin.Object *InputPeerSelf : github.com/gotd/td/tdp.Object *InputPeerSelf : fmt.Stringer
InputPeerUser represents TL type `inputPeerUser#dde8a54c`. Defines a user for further interaction. See https://core.telegram.org/constructor/inputPeerUser for reference. access_hash value from the user¹ constructor Links: 1) https://core.telegram.org/constructor/user User identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPeerUser from given interface. GetAccessHash returns value of AccessHash 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. (*InputPeerUser) Zero() bool *InputPeerUser : InputPeerClass *InputPeerUser : github.com/gotd/td/bin.BareDecoder *InputPeerUser : github.com/gotd/td/bin.BareEncoder *InputPeerUser : github.com/gotd/td/bin.Decoder *InputPeerUser : github.com/gotd/td/bin.Encoder *InputPeerUser : github.com/gotd/td/bin.Object *InputPeerUser : github.com/gotd/td/tdp.Object *InputPeerUser : fmt.Stringer func InputPeerUserArray.First() (v InputPeerUser, ok bool) func InputPeerUserArray.Last() (v InputPeerUser, ok bool) func (*InputPeerUserArray).Pop() (v InputPeerUser, ok bool) func (*InputPeerUserArray).PopFirst() (v InputPeerUser, ok bool) func (*User).AsInputPeer() *InputPeerUser
InputPeerUserArray is adapter for slice of InputPeerUser. 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 InputPeerUser. Sort sorts slice of InputPeerUser. SortStable sorts slice of InputPeerUser. func InputPeerClassArray.AsInputPeerUser() (to InputPeerUserArray) func InputPeerUserArray.Retain(keep func(x InputPeerUser) bool) InputPeerUserArray func InputPeerUserArray.Sort(less func(a, b InputPeerUser) bool) InputPeerUserArray func InputPeerUserArray.SortStable(less func(a, b InputPeerUser) bool) InputPeerUserArray
InputPeerUserFromMessage represents TL type `inputPeerUserFromMessage#a87b0a1c`. Defines a min¹ user that was seen in a certain message of a certain chat. Links: 1. https://core.telegram.org/api/min See https://core.telegram.org/constructor/inputPeerUserFromMessage for reference. The message ID The chat where the user was seen The identifier of the user that was seen Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPeerUserFromMessage from given interface. GetMsgID returns value of MsgID field. 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. (*InputPeerUserFromMessage) Zero() bool *InputPeerUserFromMessage : InputPeerClass *InputPeerUserFromMessage : github.com/gotd/td/bin.BareDecoder *InputPeerUserFromMessage : github.com/gotd/td/bin.BareEncoder *InputPeerUserFromMessage : github.com/gotd/td/bin.Decoder *InputPeerUserFromMessage : github.com/gotd/td/bin.Encoder *InputPeerUserFromMessage : github.com/gotd/td/bin.Object *InputPeerUserFromMessage : github.com/gotd/td/tdp.Object *InputPeerUserFromMessage : fmt.Stringer func InputPeerUserFromMessageArray.First() (v InputPeerUserFromMessage, ok bool) func InputPeerUserFromMessageArray.Last() (v InputPeerUserFromMessage, ok bool) func (*InputPeerUserFromMessageArray).Pop() (v InputPeerUserFromMessage, ok bool) func (*InputPeerUserFromMessageArray).PopFirst() (v InputPeerUserFromMessage, ok bool)
InputPeerUserFromMessageArray is adapter for slice of InputPeerUserFromMessage. 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 InputPeerUserFromMessage. Sort sorts slice of InputPeerUserFromMessage. SortStable sorts slice of InputPeerUserFromMessage. func InputPeerClassArray.AsInputPeerUserFromMessage() (to InputPeerUserFromMessageArray) func InputPeerUserFromMessageArray.Retain(keep func(x InputPeerUserFromMessage) bool) InputPeerUserFromMessageArray func InputPeerUserFromMessageArray.Sort(less func(a, b InputPeerUserFromMessage) bool) InputPeerUserFromMessageArray func InputPeerUserFromMessageArray.SortStable(less func(a, b InputPeerUserFromMessage) bool) InputPeerUserFromMessageArray
InputPhoneCall represents TL type `inputPhoneCall#1e36fded`. Phone call See https://core.telegram.org/constructor/inputPhoneCall for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPhoneCall from given interface. GetAccessHash returns value of AccessHash 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. (*InputPhoneCall) Zero() bool *InputPhoneCall : github.com/gotd/td/bin.BareDecoder *InputPhoneCall : github.com/gotd/td/bin.BareEncoder *InputPhoneCall : github.com/gotd/td/bin.Decoder *InputPhoneCall : github.com/gotd/td/bin.Encoder *InputPhoneCall : github.com/gotd/td/bin.Object *InputPhoneCall : github.com/gotd/td/tdp.Object *InputPhoneCall : fmt.Stringer func (*PhoneAcceptCallRequest).GetPeer() (value InputPhoneCall) func (*PhoneCall).AsInput() *InputPhoneCall func (*PhoneConfirmCallRequest).GetPeer() (value InputPhoneCall) func (*PhoneDiscardCallRequest).GetPeer() (value InputPhoneCall) func (*PhoneReceivedCallRequest).GetPeer() (value InputPhoneCall) func (*PhoneSaveCallDebugRequest).GetPeer() (value InputPhoneCall) func (*PhoneSaveCallLogRequest).GetPeer() (value InputPhoneCall) func (*PhoneSendSignalingDataRequest).GetPeer() (value InputPhoneCall) func (*PhoneSetCallRatingRequest).GetPeer() (value InputPhoneCall) func (*Client).PhoneReceivedCall(ctx context.Context, peer InputPhoneCall) (bool, error)
InputPhoneContact represents TL type `inputPhoneContact#f392b7f4`. Phone contact. See https://core.telegram.org/constructor/inputPhoneContact for reference. An arbitrary 64-bit integer: it should be set, for example, to an incremental number when using contacts.importContacts¹, in order to retry importing only the contacts that weren't imported successfully, according to the client_ids returned in contacts importedContacts².retry_contacts. Links: 1) https://core.telegram.org/method/contacts.importContacts 2) https://core.telegram.org/constructor/contacts.importedContacts Contact's first name Contact's last name Phone number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPhoneContact from given interface. GetClientID returns value of ClientID field. GetFirstName returns value of FirstName field. GetLastName returns value of LastName field. GetPhone returns value of Phone 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. (*InputPhoneContact) Zero() bool *InputPhoneContact : github.com/gotd/td/bin.BareDecoder *InputPhoneContact : github.com/gotd/td/bin.BareEncoder *InputPhoneContact : github.com/gotd/td/bin.Decoder *InputPhoneContact : github.com/gotd/td/bin.Encoder *InputPhoneContact : github.com/gotd/td/bin.Object *InputPhoneContact : github.com/gotd/td/tdp.Object *InputPhoneContact : fmt.Stringer func (*ContactsImportContactsRequest).GetContacts() (value []InputPhoneContact) func (*Client).ContactsImportContacts(ctx context.Context, contacts []InputPhoneContact) (*ContactsImportedContacts, error)
InputPhoto represents TL type `inputPhoto#3bb3b94a`. Defines a photo for further interaction. See https://core.telegram.org/constructor/inputPhoto for reference. access_hash parameter from the document¹ constructor Links: 1) https://core.telegram.org/constructor/document File reference¹ Links: 1) https://core.telegram.org/api/file_reference Document ID AsNotEmpty tries to map InputPhoto to InputPhoto. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPhoto from given interface. GetAccessHash returns value of AccessHash field. GetFileReference returns value of FileReference 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. (*InputPhoto) Zero() bool *InputPhoto : InputPhotoClass *InputPhoto : github.com/gotd/td/bin.BareDecoder *InputPhoto : github.com/gotd/td/bin.BareEncoder *InputPhoto : github.com/gotd/td/bin.Decoder *InputPhoto : github.com/gotd/td/bin.Encoder *InputPhoto : github.com/gotd/td/bin.Object *InputPhoto : github.com/gotd/td/tdp.Object *InputPhoto : fmt.Stringer func (*AccountReportProfilePhotoRequest).GetPhotoIDAsNotEmpty() (*InputPhoto, bool) func (*InputPhoto).AsNotEmpty() (*InputPhoto, bool) func InputPhotoArray.First() (v InputPhoto, ok bool) func InputPhotoArray.Last() (v InputPhoto, ok bool) func (*InputPhotoArray).Pop() (v InputPhoto, ok bool) func (*InputPhotoArray).PopFirst() (v InputPhoto, ok bool) func InputPhotoArray.ToMap() map[int64]InputPhoto func InputPhotoClass.AsNotEmpty() (*InputPhoto, bool) func InputPhotoClassArray.AppendOnlyNotEmpty(to []*InputPhoto) []*InputPhoto func InputPhotoClassArray.AsNotEmpty() (to []*InputPhoto) func InputPhotoClassArray.FirstAsNotEmpty() (v *InputPhoto, ok bool) func InputPhotoClassArray.LastAsNotEmpty() (v *InputPhoto, ok bool) func InputPhotoClassArray.NotEmptyToMap() map[int64]*InputPhoto func (*InputPhotoClassArray).PopAsNotEmpty() (v *InputPhoto, ok bool) func (*InputPhotoClassArray).PopFirstAsNotEmpty() (v *InputPhoto, ok bool) func (*InputPhotoEmpty).AsNotEmpty() (*InputPhoto, bool) func (*Photo).AsInput() *InputPhoto func (*PhotosUpdateProfilePhotoRequest).GetIDAsNotEmpty() (*InputPhoto, bool) func InputPhotoArray.FillMap(to map[int64]InputPhoto) func InputPhotoClassArray.AppendOnlyNotEmpty(to []*InputPhoto) []*InputPhoto func InputPhotoClassArray.FillNotEmptyMap(to map[int64]*InputPhoto)
InputPhotoArray is adapter for slice of InputPhoto. 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 InputPhoto. Sort sorts slice of InputPhoto. SortByID sorts slice of InputPhoto by ID. SortStable sorts slice of InputPhoto. SortStableByID sorts slice of InputPhoto by ID. ToMap collects constructors to map. func InputPhotoArray.Retain(keep func(x InputPhoto) bool) InputPhotoArray func InputPhotoArray.Sort(less func(a, b InputPhoto) bool) InputPhotoArray func InputPhotoArray.SortByID() InputPhotoArray func InputPhotoArray.SortStable(less func(a, b InputPhoto) bool) InputPhotoArray func InputPhotoArray.SortStableByID() InputPhotoArray func InputPhotoClassArray.AsInputPhoto() (to InputPhotoArray)
InputPhoto boxes the InputPhotoClass providing a helper. InputPhoto InputPhotoClass Decode implements bin.Decoder for InputPhotoBox. Encode implements bin.Encode for InputPhotoBox. *InputPhotoBox : github.com/gotd/td/bin.Decoder *InputPhotoBox : github.com/gotd/td/bin.Encoder *InputPhotoBox : github.com/gotd/td/bin.Object
InputPhotoClass represents InputPhoto generic type. See https://core.telegram.org/type/InputPhoto for reference. Example: g, err := tg.DecodeInputPhoto(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputPhotoEmpty: // inputPhotoEmpty#1cd7bf0d case *tg.InputPhoto: // inputPhoto#3bb3b94a default: panic(v) } AsNotEmpty tries to map InputPhotoClass to InputPhoto. ( InputPhotoClass) Decode(b *bin.Buffer) error ( InputPhotoClass) DecodeBare(b *bin.Buffer) error ( InputPhotoClass) Encode(b *bin.Buffer) error ( InputPhotoClass) 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. *InputPhoto *InputPhotoEmpty InputPhotoClass : github.com/gotd/td/bin.BareDecoder InputPhotoClass : github.com/gotd/td/bin.BareEncoder InputPhotoClass : github.com/gotd/td/bin.Decoder InputPhotoClass : github.com/gotd/td/bin.Encoder InputPhotoClass : github.com/gotd/td/bin.Object InputPhotoClass : fmt.Stringer func DecodeInputPhoto(buf *bin.Buffer) (InputPhotoClass, error) func (*AccountReportProfilePhotoRequest).GetPhotoID() (value InputPhotoClass) func (*InputBotInlineResultPhoto).GetPhoto() (value InputPhotoClass) func (*InputChatPhoto).GetID() (value InputPhotoClass) func (*InputMediaPhoto).GetID() (value InputPhotoClass) func InputPhotoClassArray.First() (v InputPhotoClass, ok bool) func InputPhotoClassArray.Last() (v InputPhotoClass, ok bool) func (*InputPhotoClassArray).Pop() (v InputPhotoClass, ok bool) func (*InputPhotoClassArray).PopFirst() (v InputPhotoClass, ok bool) func (*InputStickeredMediaPhoto).GetID() (value InputPhotoClass) func (*PhotosDeletePhotosRequest).GetID() (value []InputPhotoClass) func (*PhotosUpdateProfilePhotoRequest).GetID() (value InputPhotoClass) func (*Client).PhotosDeletePhotos(ctx context.Context, id []InputPhotoClass) ([]int64, error)
InputPhotoClassArray is adapter for slice of InputPhotoClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsInputPhoto returns copy with only InputPhoto constructors. AsNotEmpty returns copy with only NotEmpty constructors. FillNotEmptyMap fills only NotEmpty constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of InputPhotoClass. Sort sorts slice of InputPhotoClass. SortStable sorts slice of InputPhotoClass. func InputPhotoClassArray.Retain(keep func(x InputPhotoClass) bool) InputPhotoClassArray func InputPhotoClassArray.Sort(less func(a, b InputPhotoClass) bool) InputPhotoClassArray func InputPhotoClassArray.SortStable(less func(a, b InputPhotoClass) bool) InputPhotoClassArray func (*PhotosDeletePhotosRequest).MapID() (value InputPhotoClassArray)
InputPhotoEmpty represents TL type `inputPhotoEmpty#1cd7bf0d`. Empty constructor. See https://core.telegram.org/constructor/inputPhotoEmpty for reference. AsNotEmpty tries to map InputPhotoEmpty to InputPhoto. 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. (*InputPhotoEmpty) Zero() bool *InputPhotoEmpty : InputPhotoClass *InputPhotoEmpty : github.com/gotd/td/bin.BareDecoder *InputPhotoEmpty : github.com/gotd/td/bin.BareEncoder *InputPhotoEmpty : github.com/gotd/td/bin.Decoder *InputPhotoEmpty : github.com/gotd/td/bin.Encoder *InputPhotoEmpty : github.com/gotd/td/bin.Object *InputPhotoEmpty : github.com/gotd/td/tdp.Object *InputPhotoEmpty : fmt.Stringer
InputPhotoFileLocation represents TL type `inputPhotoFileLocation#40181ffe`. Use this object to download a photo with upload.getFile¹ method Links: 1. https://core.telegram.org/method/upload.getFile See https://core.telegram.org/constructor/inputPhotoFileLocation for reference. access_hash parameter from the document¹ constructor Links: 1) https://core.telegram.org/constructor/document File reference¹ Links: 1) https://core.telegram.org/api/file_reference Document ID Thumbnail size to download the thumbnail Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPhotoFileLocation from given interface. GetAccessHash returns value of AccessHash field. GetFileReference returns value of FileReference field. GetID returns value of ID field. GetThumbSize returns value of ThumbSize 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. (*InputPhotoFileLocation) Zero() bool *InputPhotoFileLocation : InputFileLocationClass *InputPhotoFileLocation : github.com/gotd/td/bin.BareDecoder *InputPhotoFileLocation : github.com/gotd/td/bin.BareEncoder *InputPhotoFileLocation : github.com/gotd/td/bin.Decoder *InputPhotoFileLocation : github.com/gotd/td/bin.Encoder *InputPhotoFileLocation : github.com/gotd/td/bin.Object *InputPhotoFileLocation : github.com/gotd/td/tdp.Object *InputPhotoFileLocation : fmt.Stringer func InputPhotoFileLocationArray.First() (v InputPhotoFileLocation, ok bool) func InputPhotoFileLocationArray.Last() (v InputPhotoFileLocation, ok bool) func (*InputPhotoFileLocationArray).Pop() (v InputPhotoFileLocation, ok bool) func (*InputPhotoFileLocationArray).PopFirst() (v InputPhotoFileLocation, ok bool) func InputPhotoFileLocationArray.ToMap() map[int64]InputPhotoFileLocation func InputPhotoFileLocationArray.FillMap(to map[int64]InputPhotoFileLocation)
InputPhotoFileLocationArray is adapter for slice of InputPhotoFileLocation. 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 InputPhotoFileLocation. Sort sorts slice of InputPhotoFileLocation. SortByID sorts slice of InputPhotoFileLocation by ID. SortStable sorts slice of InputPhotoFileLocation. SortStableByID sorts slice of InputPhotoFileLocation by ID. ToMap collects constructors to map. func InputFileLocationClassArray.AsInputPhotoFileLocation() (to InputPhotoFileLocationArray) func InputPhotoFileLocationArray.Retain(keep func(x InputPhotoFileLocation) bool) InputPhotoFileLocationArray func InputPhotoFileLocationArray.Sort(less func(a, b InputPhotoFileLocation) bool) InputPhotoFileLocationArray func InputPhotoFileLocationArray.SortByID() InputPhotoFileLocationArray func InputPhotoFileLocationArray.SortStable(less func(a, b InputPhotoFileLocation) bool) InputPhotoFileLocationArray func InputPhotoFileLocationArray.SortStableByID() InputPhotoFileLocationArray
InputPhotoLegacyFileLocation represents TL type `inputPhotoLegacyFileLocation#d83466f3`. DEPRECATED legacy photo file location See https://core.telegram.org/constructor/inputPhotoLegacyFileLocation for reference. Access hash File reference Photo ID Local ID Secret Volume ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPhotoLegacyFileLocation from given interface. GetAccessHash returns value of AccessHash field. GetFileReference returns value of FileReference field. GetID returns value of ID field. GetLocalID returns value of LocalID field. GetSecret returns value of Secret field. GetVolumeID returns value of VolumeID 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. (*InputPhotoLegacyFileLocation) Zero() bool *InputPhotoLegacyFileLocation : InputFileLocationClass *InputPhotoLegacyFileLocation : github.com/gotd/td/bin.BareDecoder *InputPhotoLegacyFileLocation : github.com/gotd/td/bin.BareEncoder *InputPhotoLegacyFileLocation : github.com/gotd/td/bin.Decoder *InputPhotoLegacyFileLocation : github.com/gotd/td/bin.Encoder *InputPhotoLegacyFileLocation : github.com/gotd/td/bin.Object *InputPhotoLegacyFileLocation : github.com/gotd/td/tdp.Object *InputPhotoLegacyFileLocation : fmt.Stringer func InputPhotoLegacyFileLocationArray.First() (v InputPhotoLegacyFileLocation, ok bool) func InputPhotoLegacyFileLocationArray.Last() (v InputPhotoLegacyFileLocation, ok bool) func (*InputPhotoLegacyFileLocationArray).Pop() (v InputPhotoLegacyFileLocation, ok bool) func (*InputPhotoLegacyFileLocationArray).PopFirst() (v InputPhotoLegacyFileLocation, ok bool) func InputPhotoLegacyFileLocationArray.ToMap() map[int64]InputPhotoLegacyFileLocation func InputPhotoLegacyFileLocationArray.FillMap(to map[int64]InputPhotoLegacyFileLocation)
InputPhotoLegacyFileLocationArray is adapter for slice of InputPhotoLegacyFileLocation. 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 InputPhotoLegacyFileLocation. Sort sorts slice of InputPhotoLegacyFileLocation. SortByID sorts slice of InputPhotoLegacyFileLocation by ID. SortStable sorts slice of InputPhotoLegacyFileLocation. SortStableByID sorts slice of InputPhotoLegacyFileLocation by ID. ToMap collects constructors to map. func InputFileLocationClassArray.AsInputPhotoLegacyFileLocation() (to InputPhotoLegacyFileLocationArray) func InputPhotoLegacyFileLocationArray.Retain(keep func(x InputPhotoLegacyFileLocation) bool) InputPhotoLegacyFileLocationArray func InputPhotoLegacyFileLocationArray.Sort(less func(a, b InputPhotoLegacyFileLocation) bool) InputPhotoLegacyFileLocationArray func InputPhotoLegacyFileLocationArray.SortByID() InputPhotoLegacyFileLocationArray func InputPhotoLegacyFileLocationArray.SortStable(less func(a, b InputPhotoLegacyFileLocation) bool) InputPhotoLegacyFileLocationArray func InputPhotoLegacyFileLocationArray.SortStableByID() InputPhotoLegacyFileLocationArray
InputPrivacyKeyAbout represents TL type `inputPrivacyKeyAbout#3823cc40`. Whether people can see your bio See https://core.telegram.org/constructor/inputPrivacyKeyAbout 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. (*InputPrivacyKeyAbout) Zero() bool *InputPrivacyKeyAbout : InputPrivacyKeyClass *InputPrivacyKeyAbout : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyAbout : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyAbout : github.com/gotd/td/bin.Decoder *InputPrivacyKeyAbout : github.com/gotd/td/bin.Encoder *InputPrivacyKeyAbout : github.com/gotd/td/bin.Object *InputPrivacyKeyAbout : github.com/gotd/td/tdp.Object *InputPrivacyKeyAbout : fmt.Stringer
InputPrivacyKeyAddedByPhone represents TL type `inputPrivacyKeyAddedByPhone#d1219bdd`. Whether people can add you to their contact list by your phone number See https://core.telegram.org/constructor/inputPrivacyKeyAddedByPhone 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. (*InputPrivacyKeyAddedByPhone) Zero() bool *InputPrivacyKeyAddedByPhone : InputPrivacyKeyClass *InputPrivacyKeyAddedByPhone : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyAddedByPhone : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyAddedByPhone : github.com/gotd/td/bin.Decoder *InputPrivacyKeyAddedByPhone : github.com/gotd/td/bin.Encoder *InputPrivacyKeyAddedByPhone : github.com/gotd/td/bin.Object *InputPrivacyKeyAddedByPhone : github.com/gotd/td/tdp.Object *InputPrivacyKeyAddedByPhone : fmt.Stringer
InputPrivacyKey boxes the InputPrivacyKeyClass providing a helper. InputPrivacyKey InputPrivacyKeyClass Decode implements bin.Decoder for InputPrivacyKeyBox. Encode implements bin.Encode for InputPrivacyKeyBox. *InputPrivacyKeyBox : github.com/gotd/td/bin.Decoder *InputPrivacyKeyBox : github.com/gotd/td/bin.Encoder *InputPrivacyKeyBox : github.com/gotd/td/bin.Object
InputPrivacyKeyChatInvite represents TL type `inputPrivacyKeyChatInvite#bdfb0426`. Whether people will be able to invite you to chats See https://core.telegram.org/constructor/inputPrivacyKeyChatInvite 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. (*InputPrivacyKeyChatInvite) Zero() bool *InputPrivacyKeyChatInvite : InputPrivacyKeyClass *InputPrivacyKeyChatInvite : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyChatInvite : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyChatInvite : github.com/gotd/td/bin.Decoder *InputPrivacyKeyChatInvite : github.com/gotd/td/bin.Encoder *InputPrivacyKeyChatInvite : github.com/gotd/td/bin.Object *InputPrivacyKeyChatInvite : github.com/gotd/td/tdp.Object *InputPrivacyKeyChatInvite : fmt.Stringer
InputPrivacyKeyClass represents InputPrivacyKey generic type. See https://core.telegram.org/type/InputPrivacyKey for reference. Example: g, err := tg.DecodeInputPrivacyKey(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputPrivacyKeyStatusTimestamp: // inputPrivacyKeyStatusTimestamp#4f96cb18 case *tg.InputPrivacyKeyChatInvite: // inputPrivacyKeyChatInvite#bdfb0426 case *tg.InputPrivacyKeyPhoneCall: // inputPrivacyKeyPhoneCall#fabadc5f case *tg.InputPrivacyKeyPhoneP2P: // inputPrivacyKeyPhoneP2P#db9e70d2 case *tg.InputPrivacyKeyForwards: // inputPrivacyKeyForwards#a4dd4c08 case *tg.InputPrivacyKeyProfilePhoto: // inputPrivacyKeyProfilePhoto#5719bacc case *tg.InputPrivacyKeyPhoneNumber: // inputPrivacyKeyPhoneNumber#352dafa case *tg.InputPrivacyKeyAddedByPhone: // inputPrivacyKeyAddedByPhone#d1219bdd case *tg.InputPrivacyKeyVoiceMessages: // inputPrivacyKeyVoiceMessages#aee69d68 case *tg.InputPrivacyKeyAbout: // inputPrivacyKeyAbout#3823cc40 default: panic(v) } ( InputPrivacyKeyClass) Decode(b *bin.Buffer) error ( InputPrivacyKeyClass) DecodeBare(b *bin.Buffer) error ( InputPrivacyKeyClass) Encode(b *bin.Buffer) error ( InputPrivacyKeyClass) 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. *InputPrivacyKeyAbout *InputPrivacyKeyAddedByPhone *InputPrivacyKeyChatInvite *InputPrivacyKeyForwards *InputPrivacyKeyPhoneCall *InputPrivacyKeyPhoneNumber *InputPrivacyKeyPhoneP2P *InputPrivacyKeyProfilePhoto *InputPrivacyKeyStatusTimestamp *InputPrivacyKeyVoiceMessages InputPrivacyKeyClass : github.com/gotd/td/bin.BareDecoder InputPrivacyKeyClass : github.com/gotd/td/bin.BareEncoder InputPrivacyKeyClass : github.com/gotd/td/bin.Decoder InputPrivacyKeyClass : github.com/gotd/td/bin.Encoder InputPrivacyKeyClass : github.com/gotd/td/bin.Object InputPrivacyKeyClass : fmt.Stringer func DecodeInputPrivacyKey(buf *bin.Buffer) (InputPrivacyKeyClass, error) func (*AccountGetPrivacyRequest).GetKey() (value InputPrivacyKeyClass) func (*AccountSetPrivacyRequest).GetKey() (value InputPrivacyKeyClass) func InputPrivacyKeyClassArray.First() (v InputPrivacyKeyClass, ok bool) func InputPrivacyKeyClassArray.Last() (v InputPrivacyKeyClass, ok bool) func (*InputPrivacyKeyClassArray).Pop() (v InputPrivacyKeyClass, ok bool) func (*InputPrivacyKeyClassArray).PopFirst() (v InputPrivacyKeyClass, ok bool) func (*Client).AccountGetPrivacy(ctx context.Context, key InputPrivacyKeyClass) (*AccountPrivacyRules, error)
InputPrivacyKeyClassArray is adapter for slice of InputPrivacyKeyClass. 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 InputPrivacyKeyClass. Sort sorts slice of InputPrivacyKeyClass. SortStable sorts slice of InputPrivacyKeyClass. func InputPrivacyKeyClassArray.Retain(keep func(x InputPrivacyKeyClass) bool) InputPrivacyKeyClassArray func InputPrivacyKeyClassArray.Sort(less func(a, b InputPrivacyKeyClass) bool) InputPrivacyKeyClassArray func InputPrivacyKeyClassArray.SortStable(less func(a, b InputPrivacyKeyClass) bool) InputPrivacyKeyClassArray
InputPrivacyKeyForwards represents TL type `inputPrivacyKeyForwards#a4dd4c08`. Whether messages forwarded from you will be anonymous¹ Links: 1. https://telegram.org/blog/unsend-privacy-emoji#anonymous-forwarding See https://core.telegram.org/constructor/inputPrivacyKeyForwards 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. (*InputPrivacyKeyForwards) Zero() bool *InputPrivacyKeyForwards : InputPrivacyKeyClass *InputPrivacyKeyForwards : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyForwards : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyForwards : github.com/gotd/td/bin.Decoder *InputPrivacyKeyForwards : github.com/gotd/td/bin.Encoder *InputPrivacyKeyForwards : github.com/gotd/td/bin.Object *InputPrivacyKeyForwards : github.com/gotd/td/tdp.Object *InputPrivacyKeyForwards : fmt.Stringer
InputPrivacyKeyPhoneCall represents TL type `inputPrivacyKeyPhoneCall#fabadc5f`. Whether you will accept phone calls See https://core.telegram.org/constructor/inputPrivacyKeyPhoneCall 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. (*InputPrivacyKeyPhoneCall) Zero() bool *InputPrivacyKeyPhoneCall : InputPrivacyKeyClass *InputPrivacyKeyPhoneCall : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyPhoneCall : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyPhoneCall : github.com/gotd/td/bin.Decoder *InputPrivacyKeyPhoneCall : github.com/gotd/td/bin.Encoder *InputPrivacyKeyPhoneCall : github.com/gotd/td/bin.Object *InputPrivacyKeyPhoneCall : github.com/gotd/td/tdp.Object *InputPrivacyKeyPhoneCall : fmt.Stringer
InputPrivacyKeyPhoneNumber represents TL type `inputPrivacyKeyPhoneNumber#352dafa`. Whether people will be able to see your phone number See https://core.telegram.org/constructor/inputPrivacyKeyPhoneNumber 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. (*InputPrivacyKeyPhoneNumber) Zero() bool *InputPrivacyKeyPhoneNumber : InputPrivacyKeyClass *InputPrivacyKeyPhoneNumber : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyPhoneNumber : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyPhoneNumber : github.com/gotd/td/bin.Decoder *InputPrivacyKeyPhoneNumber : github.com/gotd/td/bin.Encoder *InputPrivacyKeyPhoneNumber : github.com/gotd/td/bin.Object *InputPrivacyKeyPhoneNumber : github.com/gotd/td/tdp.Object *InputPrivacyKeyPhoneNumber : fmt.Stringer
InputPrivacyKeyPhoneP2P represents TL type `inputPrivacyKeyPhoneP2P#db9e70d2`. Whether to allow P2P communication during VoIP calls See https://core.telegram.org/constructor/inputPrivacyKeyPhoneP2P 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. (*InputPrivacyKeyPhoneP2P) Zero() bool *InputPrivacyKeyPhoneP2P : InputPrivacyKeyClass *InputPrivacyKeyPhoneP2P : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyPhoneP2P : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyPhoneP2P : github.com/gotd/td/bin.Decoder *InputPrivacyKeyPhoneP2P : github.com/gotd/td/bin.Encoder *InputPrivacyKeyPhoneP2P : github.com/gotd/td/bin.Object *InputPrivacyKeyPhoneP2P : github.com/gotd/td/tdp.Object *InputPrivacyKeyPhoneP2P : fmt.Stringer
InputPrivacyKeyProfilePhoto represents TL type `inputPrivacyKeyProfilePhoto#5719bacc`. Whether people will be able to see your profile picture See https://core.telegram.org/constructor/inputPrivacyKeyProfilePhoto 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. (*InputPrivacyKeyProfilePhoto) Zero() bool *InputPrivacyKeyProfilePhoto : InputPrivacyKeyClass *InputPrivacyKeyProfilePhoto : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyProfilePhoto : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyProfilePhoto : github.com/gotd/td/bin.Decoder *InputPrivacyKeyProfilePhoto : github.com/gotd/td/bin.Encoder *InputPrivacyKeyProfilePhoto : github.com/gotd/td/bin.Object *InputPrivacyKeyProfilePhoto : github.com/gotd/td/tdp.Object *InputPrivacyKeyProfilePhoto : fmt.Stringer
InputPrivacyKeyStatusTimestamp represents TL type `inputPrivacyKeyStatusTimestamp#4f96cb18`. Whether people will be able to see your exact last online timestamp See https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp 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. (*InputPrivacyKeyStatusTimestamp) Zero() bool *InputPrivacyKeyStatusTimestamp : InputPrivacyKeyClass *InputPrivacyKeyStatusTimestamp : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyStatusTimestamp : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyStatusTimestamp : github.com/gotd/td/bin.Decoder *InputPrivacyKeyStatusTimestamp : github.com/gotd/td/bin.Encoder *InputPrivacyKeyStatusTimestamp : github.com/gotd/td/bin.Object *InputPrivacyKeyStatusTimestamp : github.com/gotd/td/tdp.Object *InputPrivacyKeyStatusTimestamp : fmt.Stringer
InputPrivacyKeyVoiceMessages represents TL type `inputPrivacyKeyVoiceMessages#aee69d68`. Whether people can send you voice messages See https://core.telegram.org/constructor/inputPrivacyKeyVoiceMessages 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. (*InputPrivacyKeyVoiceMessages) Zero() bool *InputPrivacyKeyVoiceMessages : InputPrivacyKeyClass *InputPrivacyKeyVoiceMessages : github.com/gotd/td/bin.BareDecoder *InputPrivacyKeyVoiceMessages : github.com/gotd/td/bin.BareEncoder *InputPrivacyKeyVoiceMessages : github.com/gotd/td/bin.Decoder *InputPrivacyKeyVoiceMessages : github.com/gotd/td/bin.Encoder *InputPrivacyKeyVoiceMessages : github.com/gotd/td/bin.Object *InputPrivacyKeyVoiceMessages : github.com/gotd/td/tdp.Object *InputPrivacyKeyVoiceMessages : fmt.Stringer
InputPrivacyRule boxes the InputPrivacyRuleClass providing a helper. InputPrivacyRule InputPrivacyRuleClass Decode implements bin.Decoder for InputPrivacyRuleBox. Encode implements bin.Encode for InputPrivacyRuleBox. *InputPrivacyRuleBox : github.com/gotd/td/bin.Decoder *InputPrivacyRuleBox : github.com/gotd/td/bin.Encoder *InputPrivacyRuleBox : github.com/gotd/td/bin.Object
InputPrivacyRuleClass represents InputPrivacyRule generic type. See https://core.telegram.org/type/InputPrivacyRule for reference. Example: g, err := tg.DecodeInputPrivacyRule(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputPrivacyValueAllowContacts: // inputPrivacyValueAllowContacts#d09e07b case *tg.InputPrivacyValueAllowAll: // inputPrivacyValueAllowAll#184b35ce case *tg.InputPrivacyValueAllowUsers: // inputPrivacyValueAllowUsers#131cc67f case *tg.InputPrivacyValueDisallowContacts: // inputPrivacyValueDisallowContacts#ba52007 case *tg.InputPrivacyValueDisallowAll: // inputPrivacyValueDisallowAll#d66b66c9 case *tg.InputPrivacyValueDisallowUsers: // inputPrivacyValueDisallowUsers#90110467 case *tg.InputPrivacyValueAllowChatParticipants: // inputPrivacyValueAllowChatParticipants#840649cf case *tg.InputPrivacyValueDisallowChatParticipants: // inputPrivacyValueDisallowChatParticipants#e94f0f86 case *tg.InputPrivacyValueAllowCloseFriends: // inputPrivacyValueAllowCloseFriends#2f453e49 default: panic(v) } ( InputPrivacyRuleClass) Decode(b *bin.Buffer) error ( InputPrivacyRuleClass) DecodeBare(b *bin.Buffer) error ( InputPrivacyRuleClass) Encode(b *bin.Buffer) error ( InputPrivacyRuleClass) 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. *InputPrivacyValueAllowAll *InputPrivacyValueAllowChatParticipants *InputPrivacyValueAllowCloseFriends *InputPrivacyValueAllowContacts *InputPrivacyValueAllowUsers *InputPrivacyValueDisallowAll *InputPrivacyValueDisallowChatParticipants *InputPrivacyValueDisallowContacts *InputPrivacyValueDisallowUsers InputPrivacyRuleClass : github.com/gotd/td/bin.BareDecoder InputPrivacyRuleClass : github.com/gotd/td/bin.BareEncoder InputPrivacyRuleClass : github.com/gotd/td/bin.Decoder InputPrivacyRuleClass : github.com/gotd/td/bin.Encoder InputPrivacyRuleClass : github.com/gotd/td/bin.Object InputPrivacyRuleClass : fmt.Stringer func DecodeInputPrivacyRule(buf *bin.Buffer) (InputPrivacyRuleClass, error) func (*AccountSetPrivacyRequest).GetRules() (value []InputPrivacyRuleClass) func InputPrivacyRuleClassArray.First() (v InputPrivacyRuleClass, ok bool) func InputPrivacyRuleClassArray.Last() (v InputPrivacyRuleClass, ok bool) func (*InputPrivacyRuleClassArray).Pop() (v InputPrivacyRuleClass, ok bool) func (*InputPrivacyRuleClassArray).PopFirst() (v InputPrivacyRuleClass, ok bool) func (*StoriesEditStoryRequest).GetPrivacyRules() (value []InputPrivacyRuleClass, ok bool) func (*StoriesSendStoryRequest).GetPrivacyRules() (value []InputPrivacyRuleClass) func (*StoriesEditStoryRequest).SetPrivacyRules(value []InputPrivacyRuleClass)
InputPrivacyRuleClassArray is adapter for slice of InputPrivacyRuleClass. AsInputPrivacyValueAllowChatParticipants returns copy with only InputPrivacyValueAllowChatParticipants constructors. AsInputPrivacyValueAllowUsers returns copy with only InputPrivacyValueAllowUsers constructors. AsInputPrivacyValueDisallowChatParticipants returns copy with only InputPrivacyValueDisallowChatParticipants constructors. AsInputPrivacyValueDisallowUsers returns copy with only InputPrivacyValueDisallowUsers 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 InputPrivacyRuleClass. Sort sorts slice of InputPrivacyRuleClass. SortStable sorts slice of InputPrivacyRuleClass. func (*AccountSetPrivacyRequest).MapRules() (value InputPrivacyRuleClassArray) func InputPrivacyRuleClassArray.Retain(keep func(x InputPrivacyRuleClass) bool) InputPrivacyRuleClassArray func InputPrivacyRuleClassArray.Sort(less func(a, b InputPrivacyRuleClass) bool) InputPrivacyRuleClassArray func InputPrivacyRuleClassArray.SortStable(less func(a, b InputPrivacyRuleClass) bool) InputPrivacyRuleClassArray func (*StoriesEditStoryRequest).MapPrivacyRules() (value InputPrivacyRuleClassArray, ok bool) func (*StoriesSendStoryRequest).MapPrivacyRules() (value InputPrivacyRuleClassArray)
InputPrivacyValueAllowAll represents TL type `inputPrivacyValueAllowAll#184b35ce`. Allow all users See https://core.telegram.org/constructor/inputPrivacyValueAllowAll 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. (*InputPrivacyValueAllowAll) Zero() bool *InputPrivacyValueAllowAll : InputPrivacyRuleClass *InputPrivacyValueAllowAll : github.com/gotd/td/bin.BareDecoder *InputPrivacyValueAllowAll : github.com/gotd/td/bin.BareEncoder *InputPrivacyValueAllowAll : github.com/gotd/td/bin.Decoder *InputPrivacyValueAllowAll : github.com/gotd/td/bin.Encoder *InputPrivacyValueAllowAll : github.com/gotd/td/bin.Object *InputPrivacyValueAllowAll : github.com/gotd/td/tdp.Object *InputPrivacyValueAllowAll : fmt.Stringer
InputPrivacyValueAllowChatParticipants represents TL type `inputPrivacyValueAllowChatParticipants#840649cf`. Allow only participants of certain chats See https://core.telegram.org/constructor/inputPrivacyValueAllowChatParticipants for reference. Allowed chat IDs Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPrivacyValueAllowChatParticipants from given interface. GetChats returns value of Chats 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. (*InputPrivacyValueAllowChatParticipants) Zero() bool *InputPrivacyValueAllowChatParticipants : InputPrivacyRuleClass *InputPrivacyValueAllowChatParticipants : github.com/gotd/td/bin.BareDecoder *InputPrivacyValueAllowChatParticipants : github.com/gotd/td/bin.BareEncoder *InputPrivacyValueAllowChatParticipants : github.com/gotd/td/bin.Decoder *InputPrivacyValueAllowChatParticipants : github.com/gotd/td/bin.Encoder *InputPrivacyValueAllowChatParticipants : github.com/gotd/td/bin.Object *InputPrivacyValueAllowChatParticipants : github.com/gotd/td/tdp.Object *InputPrivacyValueAllowChatParticipants : fmt.Stringer func InputPrivacyValueAllowChatParticipantsArray.First() (v InputPrivacyValueAllowChatParticipants, ok bool) func InputPrivacyValueAllowChatParticipantsArray.Last() (v InputPrivacyValueAllowChatParticipants, ok bool) func (*InputPrivacyValueAllowChatParticipantsArray).Pop() (v InputPrivacyValueAllowChatParticipants, ok bool) func (*InputPrivacyValueAllowChatParticipantsArray).PopFirst() (v InputPrivacyValueAllowChatParticipants, ok bool) func (*PrivacyValueAllowChatParticipants).AsInput() *InputPrivacyValueAllowChatParticipants
InputPrivacyValueAllowChatParticipantsArray is adapter for slice of InputPrivacyValueAllowChatParticipants. 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 InputPrivacyValueAllowChatParticipants. Sort sorts slice of InputPrivacyValueAllowChatParticipants. SortStable sorts slice of InputPrivacyValueAllowChatParticipants. func InputPrivacyRuleClassArray.AsInputPrivacyValueAllowChatParticipants() (to InputPrivacyValueAllowChatParticipantsArray) func InputPrivacyValueAllowChatParticipantsArray.Retain(keep func(x InputPrivacyValueAllowChatParticipants) bool) InputPrivacyValueAllowChatParticipantsArray func InputPrivacyValueAllowChatParticipantsArray.Sort(less func(a, b InputPrivacyValueAllowChatParticipants) bool) InputPrivacyValueAllowChatParticipantsArray func InputPrivacyValueAllowChatParticipantsArray.SortStable(less func(a, b InputPrivacyValueAllowChatParticipants) bool) InputPrivacyValueAllowChatParticipantsArray
InputPrivacyValueAllowCloseFriends represents TL type `inputPrivacyValueAllowCloseFriends#2f453e49`. Allow only close friends »¹ Links: 1. https://core.telegram.org/api/privacy See https://core.telegram.org/constructor/inputPrivacyValueAllowCloseFriends 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. (*InputPrivacyValueAllowCloseFriends) Zero() bool *InputPrivacyValueAllowCloseFriends : InputPrivacyRuleClass *InputPrivacyValueAllowCloseFriends : github.com/gotd/td/bin.BareDecoder *InputPrivacyValueAllowCloseFriends : github.com/gotd/td/bin.BareEncoder *InputPrivacyValueAllowCloseFriends : github.com/gotd/td/bin.Decoder *InputPrivacyValueAllowCloseFriends : github.com/gotd/td/bin.Encoder *InputPrivacyValueAllowCloseFriends : github.com/gotd/td/bin.Object *InputPrivacyValueAllowCloseFriends : github.com/gotd/td/tdp.Object *InputPrivacyValueAllowCloseFriends : fmt.Stringer
InputPrivacyValueAllowContacts represents TL type `inputPrivacyValueAllowContacts#d09e07b`. Allow only contacts See https://core.telegram.org/constructor/inputPrivacyValueAllowContacts 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. (*InputPrivacyValueAllowContacts) Zero() bool *InputPrivacyValueAllowContacts : InputPrivacyRuleClass *InputPrivacyValueAllowContacts : github.com/gotd/td/bin.BareDecoder *InputPrivacyValueAllowContacts : github.com/gotd/td/bin.BareEncoder *InputPrivacyValueAllowContacts : github.com/gotd/td/bin.Decoder *InputPrivacyValueAllowContacts : github.com/gotd/td/bin.Encoder *InputPrivacyValueAllowContacts : github.com/gotd/td/bin.Object *InputPrivacyValueAllowContacts : github.com/gotd/td/tdp.Object *InputPrivacyValueAllowContacts : fmt.Stringer
InputPrivacyValueAllowUsers represents TL type `inputPrivacyValueAllowUsers#131cc67f`. Allow only certain users See https://core.telegram.org/constructor/inputPrivacyValueAllowUsers for reference. Allowed users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPrivacyValueAllowUsers from given interface. GetUsers returns value of Users field. MapUsers returns field Users wrapped in InputUserClassArray 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. (*InputPrivacyValueAllowUsers) Zero() bool *InputPrivacyValueAllowUsers : InputPrivacyRuleClass *InputPrivacyValueAllowUsers : github.com/gotd/td/bin.BareDecoder *InputPrivacyValueAllowUsers : github.com/gotd/td/bin.BareEncoder *InputPrivacyValueAllowUsers : github.com/gotd/td/bin.Decoder *InputPrivacyValueAllowUsers : github.com/gotd/td/bin.Encoder *InputPrivacyValueAllowUsers : github.com/gotd/td/bin.Object *InputPrivacyValueAllowUsers : github.com/gotd/td/tdp.Object *InputPrivacyValueAllowUsers : fmt.Stringer func InputPrivacyValueAllowUsersArray.First() (v InputPrivacyValueAllowUsers, ok bool) func InputPrivacyValueAllowUsersArray.Last() (v InputPrivacyValueAllowUsers, ok bool) func (*InputPrivacyValueAllowUsersArray).Pop() (v InputPrivacyValueAllowUsers, ok bool) func (*InputPrivacyValueAllowUsersArray).PopFirst() (v InputPrivacyValueAllowUsers, ok bool)
InputPrivacyValueAllowUsersArray is adapter for slice of InputPrivacyValueAllowUsers. 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 InputPrivacyValueAllowUsers. Sort sorts slice of InputPrivacyValueAllowUsers. SortStable sorts slice of InputPrivacyValueAllowUsers. func InputPrivacyRuleClassArray.AsInputPrivacyValueAllowUsers() (to InputPrivacyValueAllowUsersArray) func InputPrivacyValueAllowUsersArray.Retain(keep func(x InputPrivacyValueAllowUsers) bool) InputPrivacyValueAllowUsersArray func InputPrivacyValueAllowUsersArray.Sort(less func(a, b InputPrivacyValueAllowUsers) bool) InputPrivacyValueAllowUsersArray func InputPrivacyValueAllowUsersArray.SortStable(less func(a, b InputPrivacyValueAllowUsers) bool) InputPrivacyValueAllowUsersArray
InputPrivacyValueDisallowAll represents TL type `inputPrivacyValueDisallowAll#d66b66c9`. Disallow all See https://core.telegram.org/constructor/inputPrivacyValueDisallowAll 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. (*InputPrivacyValueDisallowAll) Zero() bool *InputPrivacyValueDisallowAll : InputPrivacyRuleClass *InputPrivacyValueDisallowAll : github.com/gotd/td/bin.BareDecoder *InputPrivacyValueDisallowAll : github.com/gotd/td/bin.BareEncoder *InputPrivacyValueDisallowAll : github.com/gotd/td/bin.Decoder *InputPrivacyValueDisallowAll : github.com/gotd/td/bin.Encoder *InputPrivacyValueDisallowAll : github.com/gotd/td/bin.Object *InputPrivacyValueDisallowAll : github.com/gotd/td/tdp.Object *InputPrivacyValueDisallowAll : fmt.Stringer
InputPrivacyValueDisallowChatParticipants represents TL type `inputPrivacyValueDisallowChatParticipants#e94f0f86`. Disallow only participants of certain chats See https://core.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants for reference. Allowed chat IDs Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPrivacyValueDisallowChatParticipants from given interface. GetChats returns value of Chats 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. (*InputPrivacyValueDisallowChatParticipants) Zero() bool *InputPrivacyValueDisallowChatParticipants : InputPrivacyRuleClass *InputPrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.BareDecoder *InputPrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.BareEncoder *InputPrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.Decoder *InputPrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.Encoder *InputPrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.Object *InputPrivacyValueDisallowChatParticipants : github.com/gotd/td/tdp.Object *InputPrivacyValueDisallowChatParticipants : fmt.Stringer func InputPrivacyValueDisallowChatParticipantsArray.First() (v InputPrivacyValueDisallowChatParticipants, ok bool) func InputPrivacyValueDisallowChatParticipantsArray.Last() (v InputPrivacyValueDisallowChatParticipants, ok bool) func (*InputPrivacyValueDisallowChatParticipantsArray).Pop() (v InputPrivacyValueDisallowChatParticipants, ok bool) func (*InputPrivacyValueDisallowChatParticipantsArray).PopFirst() (v InputPrivacyValueDisallowChatParticipants, ok bool) func (*PrivacyValueDisallowChatParticipants).AsInput() *InputPrivacyValueDisallowChatParticipants
InputPrivacyValueDisallowChatParticipantsArray is adapter for slice of InputPrivacyValueDisallowChatParticipants. 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 InputPrivacyValueDisallowChatParticipants. Sort sorts slice of InputPrivacyValueDisallowChatParticipants. SortStable sorts slice of InputPrivacyValueDisallowChatParticipants. func InputPrivacyRuleClassArray.AsInputPrivacyValueDisallowChatParticipants() (to InputPrivacyValueDisallowChatParticipantsArray) func InputPrivacyValueDisallowChatParticipantsArray.Retain(keep func(x InputPrivacyValueDisallowChatParticipants) bool) InputPrivacyValueDisallowChatParticipantsArray func InputPrivacyValueDisallowChatParticipantsArray.Sort(less func(a, b InputPrivacyValueDisallowChatParticipants) bool) InputPrivacyValueDisallowChatParticipantsArray func InputPrivacyValueDisallowChatParticipantsArray.SortStable(less func(a, b InputPrivacyValueDisallowChatParticipants) bool) InputPrivacyValueDisallowChatParticipantsArray
InputPrivacyValueDisallowContacts represents TL type `inputPrivacyValueDisallowContacts#ba52007`. Disallow only contacts See https://core.telegram.org/constructor/inputPrivacyValueDisallowContacts 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. (*InputPrivacyValueDisallowContacts) Zero() bool *InputPrivacyValueDisallowContacts : InputPrivacyRuleClass *InputPrivacyValueDisallowContacts : github.com/gotd/td/bin.BareDecoder *InputPrivacyValueDisallowContacts : github.com/gotd/td/bin.BareEncoder *InputPrivacyValueDisallowContacts : github.com/gotd/td/bin.Decoder *InputPrivacyValueDisallowContacts : github.com/gotd/td/bin.Encoder *InputPrivacyValueDisallowContacts : github.com/gotd/td/bin.Object *InputPrivacyValueDisallowContacts : github.com/gotd/td/tdp.Object *InputPrivacyValueDisallowContacts : fmt.Stringer
InputPrivacyValueDisallowUsers represents TL type `inputPrivacyValueDisallowUsers#90110467`. Disallow only certain users See https://core.telegram.org/constructor/inputPrivacyValueDisallowUsers for reference. Allowed users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputPrivacyValueDisallowUsers from given interface. GetUsers returns value of Users field. MapUsers returns field Users wrapped in InputUserClassArray 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. (*InputPrivacyValueDisallowUsers) Zero() bool *InputPrivacyValueDisallowUsers : InputPrivacyRuleClass *InputPrivacyValueDisallowUsers : github.com/gotd/td/bin.BareDecoder *InputPrivacyValueDisallowUsers : github.com/gotd/td/bin.BareEncoder *InputPrivacyValueDisallowUsers : github.com/gotd/td/bin.Decoder *InputPrivacyValueDisallowUsers : github.com/gotd/td/bin.Encoder *InputPrivacyValueDisallowUsers : github.com/gotd/td/bin.Object *InputPrivacyValueDisallowUsers : github.com/gotd/td/tdp.Object *InputPrivacyValueDisallowUsers : fmt.Stringer func InputPrivacyValueDisallowUsersArray.First() (v InputPrivacyValueDisallowUsers, ok bool) func InputPrivacyValueDisallowUsersArray.Last() (v InputPrivacyValueDisallowUsers, ok bool) func (*InputPrivacyValueDisallowUsersArray).Pop() (v InputPrivacyValueDisallowUsers, ok bool) func (*InputPrivacyValueDisallowUsersArray).PopFirst() (v InputPrivacyValueDisallowUsers, ok bool)
InputPrivacyValueDisallowUsersArray is adapter for slice of InputPrivacyValueDisallowUsers. 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 InputPrivacyValueDisallowUsers. Sort sorts slice of InputPrivacyValueDisallowUsers. SortStable sorts slice of InputPrivacyValueDisallowUsers. func InputPrivacyRuleClassArray.AsInputPrivacyValueDisallowUsers() (to InputPrivacyValueDisallowUsersArray) func InputPrivacyValueDisallowUsersArray.Retain(keep func(x InputPrivacyValueDisallowUsers) bool) InputPrivacyValueDisallowUsersArray func InputPrivacyValueDisallowUsersArray.Sort(less func(a, b InputPrivacyValueDisallowUsers) bool) InputPrivacyValueDisallowUsersArray func InputPrivacyValueDisallowUsersArray.SortStable(less func(a, b InputPrivacyValueDisallowUsers) bool) InputPrivacyValueDisallowUsersArray
InputReplyTo boxes the InputReplyToClass providing a helper. InputReplyTo InputReplyToClass Decode implements bin.Decoder for InputReplyToBox. Encode implements bin.Encode for InputReplyToBox. *InputReplyToBox : github.com/gotd/td/bin.Decoder *InputReplyToBox : github.com/gotd/td/bin.Encoder *InputReplyToBox : github.com/gotd/td/bin.Object
InputReplyToClass represents InputReplyTo generic type. See https://core.telegram.org/type/InputReplyTo for reference. Example: g, err := tg.DecodeInputReplyTo(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputReplyToMessage: // inputReplyToMessage#22c0f6d5 case *tg.InputReplyToStory: // inputReplyToStory#15b0f283 default: panic(v) } ( InputReplyToClass) Decode(b *bin.Buffer) error ( InputReplyToClass) DecodeBare(b *bin.Buffer) error ( InputReplyToClass) Encode(b *bin.Buffer) error ( InputReplyToClass) 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. *InputReplyToMessage *InputReplyToStory InputReplyToClass : github.com/gotd/td/bin.BareDecoder InputReplyToClass : github.com/gotd/td/bin.BareEncoder InputReplyToClass : github.com/gotd/td/bin.Decoder InputReplyToClass : github.com/gotd/td/bin.Encoder InputReplyToClass : github.com/gotd/td/bin.Object InputReplyToClass : fmt.Stringer func DecodeInputReplyTo(buf *bin.Buffer) (InputReplyToClass, error) func (*DraftMessage).GetReplyTo() (value InputReplyToClass, ok bool) func InputReplyToClassArray.First() (v InputReplyToClass, ok bool) func InputReplyToClassArray.Last() (v InputReplyToClass, ok bool) func (*InputReplyToClassArray).Pop() (v InputReplyToClass, ok bool) func (*InputReplyToClassArray).PopFirst() (v InputReplyToClass, ok bool) func (*MessagesProlongWebViewRequest).GetReplyTo() (value InputReplyToClass, ok bool) func (*MessagesRequestWebViewRequest).GetReplyTo() (value InputReplyToClass, ok bool) func (*MessagesSaveDraftRequest).GetReplyTo() (value InputReplyToClass, ok bool) func (*MessagesSendInlineBotResultRequest).GetReplyTo() (value InputReplyToClass, ok bool) func (*MessagesSendMediaRequest).GetReplyTo() (value InputReplyToClass, ok bool) func (*MessagesSendMessageRequest).GetReplyTo() (value InputReplyToClass, ok bool) func (*MessagesSendMultiMediaRequest).GetReplyTo() (value InputReplyToClass, ok bool) func (*MessagesSendScreenshotNotificationRequest).GetReplyTo() (value InputReplyToClass) func (*DraftMessage).SetReplyTo(value InputReplyToClass) func (*MessagesProlongWebViewRequest).SetReplyTo(value InputReplyToClass) func (*MessagesRequestWebViewRequest).SetReplyTo(value InputReplyToClass) func (*MessagesSaveDraftRequest).SetReplyTo(value InputReplyToClass) func (*MessagesSendInlineBotResultRequest).SetReplyTo(value InputReplyToClass) func (*MessagesSendMediaRequest).SetReplyTo(value InputReplyToClass) func (*MessagesSendMessageRequest).SetReplyTo(value InputReplyToClass) func (*MessagesSendMultiMediaRequest).SetReplyTo(value InputReplyToClass)
InputReplyToClassArray is adapter for slice of InputReplyToClass. AsInputReplyToMessage returns copy with only InputReplyToMessage constructors. AsInputReplyToStory returns copy with only InputReplyToStory 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 InputReplyToClass. Sort sorts slice of InputReplyToClass. SortStable sorts slice of InputReplyToClass. func InputReplyToClassArray.Retain(keep func(x InputReplyToClass) bool) InputReplyToClassArray func InputReplyToClassArray.Sort(less func(a, b InputReplyToClass) bool) InputReplyToClassArray func InputReplyToClassArray.SortStable(less func(a, b InputReplyToClass) bool) InputReplyToClassArray
InputReplyToMessage represents TL type `inputReplyToMessage#22c0f6d5`. Reply to a message. See https://core.telegram.org/constructor/inputReplyToMessage for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message entities for styled text¹ from the quote_text field. Links: 1) https://core.telegram.org/api/entities Use SetQuoteEntities and GetQuoteEntities helpers. Offset of the message quote_text within the original message (in UTF-16 code units¹). Links: 1) https://core.telegram.org/api/entities#entity-length Use SetQuoteOffset and GetQuoteOffset helpers. Used to quote-reply to only a certain section (specified here) of the original message. Use SetQuoteText and GetQuoteText helpers. The message ID to reply to. Used to reply to messages sent to another chat (specified here), can only be used for non-protected chats and messages. Use SetReplyToPeerID and GetReplyToPeerID helpers. This field must contain the topic ID only when replying to messages in forum topics different from the "General" topic (i.e. reply_to_msg_id is set and reply_to_msg_id != topicID and topicID != 1). If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the "General" topic. Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputReplyToMessage from given interface. GetQuoteEntities returns value of QuoteEntities conditional field and boolean which is true if field was set. GetQuoteOffset returns value of QuoteOffset conditional field and boolean which is true if field was set. GetQuoteText returns value of QuoteText conditional field and boolean which is true if field was set. GetReplyToMsgID returns value of ReplyToMsgID field. GetReplyToPeerID returns value of ReplyToPeerID conditional field and boolean which is true if field was set. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. MapQuoteEntities returns field QuoteEntities wrapped in MessageEntityClassArray helper. SetFlags sets flags for non-zero fields. SetQuoteEntities sets value of QuoteEntities conditional field. SetQuoteOffset sets value of QuoteOffset conditional field. SetQuoteText sets value of QuoteText conditional field. SetReplyToPeerID sets value of ReplyToPeerID conditional field. SetTopMsgID sets value of TopMsgID 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. (*InputReplyToMessage) Zero() bool *InputReplyToMessage : InputReplyToClass *InputReplyToMessage : github.com/gotd/td/bin.BareDecoder *InputReplyToMessage : github.com/gotd/td/bin.BareEncoder *InputReplyToMessage : github.com/gotd/td/bin.Decoder *InputReplyToMessage : github.com/gotd/td/bin.Encoder *InputReplyToMessage : github.com/gotd/td/bin.Object *InputReplyToMessage : github.com/gotd/td/tdp.Object *InputReplyToMessage : fmt.Stringer func InputReplyToMessageArray.First() (v InputReplyToMessage, ok bool) func InputReplyToMessageArray.Last() (v InputReplyToMessage, ok bool) func (*InputReplyToMessageArray).Pop() (v InputReplyToMessage, ok bool) func (*InputReplyToMessageArray).PopFirst() (v InputReplyToMessage, ok bool)
InputReplyToMessageArray is adapter for slice of InputReplyToMessage. 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 InputReplyToMessage. Sort sorts slice of InputReplyToMessage. SortStable sorts slice of InputReplyToMessage. func InputReplyToClassArray.AsInputReplyToMessage() (to InputReplyToMessageArray) func InputReplyToMessageArray.Retain(keep func(x InputReplyToMessage) bool) InputReplyToMessageArray func InputReplyToMessageArray.Sort(less func(a, b InputReplyToMessage) bool) InputReplyToMessageArray func InputReplyToMessageArray.SortStable(less func(a, b InputReplyToMessage) bool) InputReplyToMessageArray
InputReplyToStory represents TL type `inputReplyToStory#15b0f283`. Reply to a story. See https://core.telegram.org/constructor/inputReplyToStory for reference. ID of the story to reply to. ID of the user that posted the story. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputReplyToStory from given interface. GetStoryID returns value of StoryID 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. (*InputReplyToStory) Zero() bool *InputReplyToStory : InputReplyToClass *InputReplyToStory : github.com/gotd/td/bin.BareDecoder *InputReplyToStory : github.com/gotd/td/bin.BareEncoder *InputReplyToStory : github.com/gotd/td/bin.Decoder *InputReplyToStory : github.com/gotd/td/bin.Encoder *InputReplyToStory : github.com/gotd/td/bin.Object *InputReplyToStory : github.com/gotd/td/tdp.Object *InputReplyToStory : fmt.Stringer func InputReplyToStoryArray.First() (v InputReplyToStory, ok bool) func InputReplyToStoryArray.Last() (v InputReplyToStory, ok bool) func (*InputReplyToStoryArray).Pop() (v InputReplyToStory, ok bool) func (*InputReplyToStoryArray).PopFirst() (v InputReplyToStory, ok bool)
InputReplyToStoryArray is adapter for slice of InputReplyToStory. 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 InputReplyToStory. Sort sorts slice of InputReplyToStory. SortStable sorts slice of InputReplyToStory. func InputReplyToClassArray.AsInputReplyToStory() (to InputReplyToStoryArray) func InputReplyToStoryArray.Retain(keep func(x InputReplyToStory) bool) InputReplyToStoryArray func InputReplyToStoryArray.Sort(less func(a, b InputReplyToStory) bool) InputReplyToStoryArray func InputReplyToStoryArray.SortStable(less func(a, b InputReplyToStory) bool) InputReplyToStoryArray
InputReportReasonChildAbuse represents TL type `inputReportReasonChildAbuse#adf44ee3`. Report for child abuse See https://core.telegram.org/constructor/inputReportReasonChildAbuse 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. (*InputReportReasonChildAbuse) Zero() bool *InputReportReasonChildAbuse : ReportReasonClass *InputReportReasonChildAbuse : github.com/gotd/td/bin.BareDecoder *InputReportReasonChildAbuse : github.com/gotd/td/bin.BareEncoder *InputReportReasonChildAbuse : github.com/gotd/td/bin.Decoder *InputReportReasonChildAbuse : github.com/gotd/td/bin.Encoder *InputReportReasonChildAbuse : github.com/gotd/td/bin.Object *InputReportReasonChildAbuse : github.com/gotd/td/tdp.Object *InputReportReasonChildAbuse : fmt.Stringer
InputReportReasonCopyright represents TL type `inputReportReasonCopyright#9b89f93a`. Report for copyrighted content See https://core.telegram.org/constructor/inputReportReasonCopyright 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. (*InputReportReasonCopyright) Zero() bool *InputReportReasonCopyright : ReportReasonClass *InputReportReasonCopyright : github.com/gotd/td/bin.BareDecoder *InputReportReasonCopyright : github.com/gotd/td/bin.BareEncoder *InputReportReasonCopyright : github.com/gotd/td/bin.Decoder *InputReportReasonCopyright : github.com/gotd/td/bin.Encoder *InputReportReasonCopyright : github.com/gotd/td/bin.Object *InputReportReasonCopyright : github.com/gotd/td/tdp.Object *InputReportReasonCopyright : fmt.Stringer
InputReportReasonFake represents TL type `inputReportReasonFake#f5ddd6e7`. Report for impersonation See https://core.telegram.org/constructor/inputReportReasonFake 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. (*InputReportReasonFake) Zero() bool *InputReportReasonFake : ReportReasonClass *InputReportReasonFake : github.com/gotd/td/bin.BareDecoder *InputReportReasonFake : github.com/gotd/td/bin.BareEncoder *InputReportReasonFake : github.com/gotd/td/bin.Decoder *InputReportReasonFake : github.com/gotd/td/bin.Encoder *InputReportReasonFake : github.com/gotd/td/bin.Object *InputReportReasonFake : github.com/gotd/td/tdp.Object *InputReportReasonFake : fmt.Stringer
InputReportReasonGeoIrrelevant represents TL type `inputReportReasonGeoIrrelevant#dbd4feed`. Report an irrelevant geogroup See https://core.telegram.org/constructor/inputReportReasonGeoIrrelevant 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. (*InputReportReasonGeoIrrelevant) Zero() bool *InputReportReasonGeoIrrelevant : ReportReasonClass *InputReportReasonGeoIrrelevant : github.com/gotd/td/bin.BareDecoder *InputReportReasonGeoIrrelevant : github.com/gotd/td/bin.BareEncoder *InputReportReasonGeoIrrelevant : github.com/gotd/td/bin.Decoder *InputReportReasonGeoIrrelevant : github.com/gotd/td/bin.Encoder *InputReportReasonGeoIrrelevant : github.com/gotd/td/bin.Object *InputReportReasonGeoIrrelevant : github.com/gotd/td/tdp.Object *InputReportReasonGeoIrrelevant : fmt.Stringer
InputReportReasonIllegalDrugs represents TL type `inputReportReasonIllegalDrugs#a8eb2be`. Report for illegal drugs See https://core.telegram.org/constructor/inputReportReasonIllegalDrugs 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. (*InputReportReasonIllegalDrugs) Zero() bool *InputReportReasonIllegalDrugs : ReportReasonClass *InputReportReasonIllegalDrugs : github.com/gotd/td/bin.BareDecoder *InputReportReasonIllegalDrugs : github.com/gotd/td/bin.BareEncoder *InputReportReasonIllegalDrugs : github.com/gotd/td/bin.Decoder *InputReportReasonIllegalDrugs : github.com/gotd/td/bin.Encoder *InputReportReasonIllegalDrugs : github.com/gotd/td/bin.Object *InputReportReasonIllegalDrugs : github.com/gotd/td/tdp.Object *InputReportReasonIllegalDrugs : fmt.Stringer
InputReportReasonOther represents TL type `inputReportReasonOther#c1e4a2b1`. Other See https://core.telegram.org/constructor/inputReportReasonOther 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. (*InputReportReasonOther) Zero() bool *InputReportReasonOther : ReportReasonClass *InputReportReasonOther : github.com/gotd/td/bin.BareDecoder *InputReportReasonOther : github.com/gotd/td/bin.BareEncoder *InputReportReasonOther : github.com/gotd/td/bin.Decoder *InputReportReasonOther : github.com/gotd/td/bin.Encoder *InputReportReasonOther : github.com/gotd/td/bin.Object *InputReportReasonOther : github.com/gotd/td/tdp.Object *InputReportReasonOther : fmt.Stringer
InputReportReasonPersonalDetails represents TL type `inputReportReasonPersonalDetails#9ec7863d`. Report for divulgation of personal details See https://core.telegram.org/constructor/inputReportReasonPersonalDetails 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. (*InputReportReasonPersonalDetails) Zero() bool *InputReportReasonPersonalDetails : ReportReasonClass *InputReportReasonPersonalDetails : github.com/gotd/td/bin.BareDecoder *InputReportReasonPersonalDetails : github.com/gotd/td/bin.BareEncoder *InputReportReasonPersonalDetails : github.com/gotd/td/bin.Decoder *InputReportReasonPersonalDetails : github.com/gotd/td/bin.Encoder *InputReportReasonPersonalDetails : github.com/gotd/td/bin.Object *InputReportReasonPersonalDetails : github.com/gotd/td/tdp.Object *InputReportReasonPersonalDetails : fmt.Stringer
InputReportReasonPornography represents TL type `inputReportReasonPornography#2e59d922`. Report for pornography See https://core.telegram.org/constructor/inputReportReasonPornography 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. (*InputReportReasonPornography) Zero() bool *InputReportReasonPornography : ReportReasonClass *InputReportReasonPornography : github.com/gotd/td/bin.BareDecoder *InputReportReasonPornography : github.com/gotd/td/bin.BareEncoder *InputReportReasonPornography : github.com/gotd/td/bin.Decoder *InputReportReasonPornography : github.com/gotd/td/bin.Encoder *InputReportReasonPornography : github.com/gotd/td/bin.Object *InputReportReasonPornography : github.com/gotd/td/tdp.Object *InputReportReasonPornography : fmt.Stringer
InputReportReasonSpam represents TL type `inputReportReasonSpam#58dbcab8`. Report for spam See https://core.telegram.org/constructor/inputReportReasonSpam 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. (*InputReportReasonSpam) Zero() bool *InputReportReasonSpam : ReportReasonClass *InputReportReasonSpam : github.com/gotd/td/bin.BareDecoder *InputReportReasonSpam : github.com/gotd/td/bin.BareEncoder *InputReportReasonSpam : github.com/gotd/td/bin.Decoder *InputReportReasonSpam : github.com/gotd/td/bin.Encoder *InputReportReasonSpam : github.com/gotd/td/bin.Object *InputReportReasonSpam : github.com/gotd/td/tdp.Object *InputReportReasonSpam : fmt.Stringer
InputReportReasonViolence represents TL type `inputReportReasonViolence#1e22c78d`. Report for violence See https://core.telegram.org/constructor/inputReportReasonViolence 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. (*InputReportReasonViolence) Zero() bool *InputReportReasonViolence : ReportReasonClass *InputReportReasonViolence : github.com/gotd/td/bin.BareDecoder *InputReportReasonViolence : github.com/gotd/td/bin.BareEncoder *InputReportReasonViolence : github.com/gotd/td/bin.Decoder *InputReportReasonViolence : github.com/gotd/td/bin.Encoder *InputReportReasonViolence : github.com/gotd/td/bin.Object *InputReportReasonViolence : github.com/gotd/td/tdp.Object *InputReportReasonViolence : fmt.Stringer
InputSecureFile represents TL type `inputSecureFile#5367e5be`. Pre-uploaded passport¹ file, for more info see the passport docs »² Links: 1. https://core.telegram.org/passport 2. https://core.telegram.org/passport/encryption#inputsecurefile See https://core.telegram.org/constructor/inputSecureFile for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps AsInputSecureFileLocation tries to map InputSecureFile to InputSecureFileLocation. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputSecureFile from given interface. GetAccessHash returns value of AccessHash 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. (*InputSecureFile) Zero() bool *InputSecureFile : InputSecureFileClass *InputSecureFile : github.com/gotd/td/bin.BareDecoder *InputSecureFile : github.com/gotd/td/bin.BareEncoder *InputSecureFile : github.com/gotd/td/bin.Decoder *InputSecureFile : github.com/gotd/td/bin.Encoder *InputSecureFile : github.com/gotd/td/bin.Object *InputSecureFile : github.com/gotd/td/tdp.Object *InputSecureFile : fmt.Stringer func InputSecureFileArray.First() (v InputSecureFile, ok bool) func InputSecureFileArray.Last() (v InputSecureFile, ok bool) func (*InputSecureFileArray).Pop() (v InputSecureFile, ok bool) func (*InputSecureFileArray).PopFirst() (v InputSecureFile, ok bool) func InputSecureFileArray.ToMap() map[int64]InputSecureFile func InputSecureFileClassArray.InputSecureFileToMap() map[int64]*InputSecureFile func (*SecureFile).AsInput() *InputSecureFile func InputSecureFileArray.FillMap(to map[int64]InputSecureFile) func InputSecureFileClassArray.FillInputSecureFileMap(to map[int64]*InputSecureFile)
InputSecureFileArray is adapter for slice of InputSecureFile. 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 InputSecureFile. Sort sorts slice of InputSecureFile. SortByID sorts slice of InputSecureFile by ID. SortStable sorts slice of InputSecureFile. SortStableByID sorts slice of InputSecureFile by ID. ToMap collects constructors to map. func InputSecureFileArray.Retain(keep func(x InputSecureFile) bool) InputSecureFileArray func InputSecureFileArray.Sort(less func(a, b InputSecureFile) bool) InputSecureFileArray func InputSecureFileArray.SortByID() InputSecureFileArray func InputSecureFileArray.SortStable(less func(a, b InputSecureFile) bool) InputSecureFileArray func InputSecureFileArray.SortStableByID() InputSecureFileArray func InputSecureFileClassArray.AsInputSecureFile() (to InputSecureFileArray)
InputSecureFile boxes the InputSecureFileClass providing a helper. InputSecureFile InputSecureFileClass Decode implements bin.Decoder for InputSecureFileBox. Encode implements bin.Encode for InputSecureFileBox. *InputSecureFileBox : github.com/gotd/td/bin.Decoder *InputSecureFileBox : github.com/gotd/td/bin.Encoder *InputSecureFileBox : github.com/gotd/td/bin.Object
InputSecureFileClass represents InputSecureFile generic type. See https://core.telegram.org/type/InputSecureFile for reference. Example: g, err := tg.DecodeInputSecureFile(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputSecureFileUploaded: // inputSecureFileUploaded#3334b0f0 case *tg.InputSecureFile: // inputSecureFile#5367e5be default: panic(v) } ( InputSecureFileClass) Decode(b *bin.Buffer) error ( InputSecureFileClass) DecodeBare(b *bin.Buffer) error ( InputSecureFileClass) Encode(b *bin.Buffer) error ( InputSecureFileClass) EncodeBare(b *bin.Buffer) error Secure file ID 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. *InputSecureFile *InputSecureFileUploaded InputSecureFileClass : github.com/gotd/td/bin.BareDecoder InputSecureFileClass : github.com/gotd/td/bin.BareEncoder InputSecureFileClass : github.com/gotd/td/bin.Decoder InputSecureFileClass : github.com/gotd/td/bin.Encoder InputSecureFileClass : github.com/gotd/td/bin.Object InputSecureFileClass : fmt.Stringer func DecodeInputSecureFile(buf *bin.Buffer) (InputSecureFileClass, error) func InputSecureFileClassArray.First() (v InputSecureFileClass, ok bool) func InputSecureFileClassArray.Last() (v InputSecureFileClass, ok bool) func (*InputSecureFileClassArray).Pop() (v InputSecureFileClass, ok bool) func (*InputSecureFileClassArray).PopFirst() (v InputSecureFileClass, ok bool) func (*InputSecureValue).GetFiles() (value []InputSecureFileClass, ok bool) func (*InputSecureValue).GetFrontSide() (value InputSecureFileClass, ok bool) func (*InputSecureValue).GetReverseSide() (value InputSecureFileClass, ok bool) func (*InputSecureValue).GetSelfie() (value InputSecureFileClass, ok bool) func (*InputSecureValue).GetTranslation() (value []InputSecureFileClass, ok bool) func (*InputSecureValue).SetFiles(value []InputSecureFileClass) func (*InputSecureValue).SetFrontSide(value InputSecureFileClass) func (*InputSecureValue).SetReverseSide(value InputSecureFileClass) func (*InputSecureValue).SetSelfie(value InputSecureFileClass) func (*InputSecureValue).SetTranslation(value []InputSecureFileClass)
InputSecureFileClassArray is adapter for slice of InputSecureFileClass. AsInputSecureFile returns copy with only InputSecureFile constructors. AsInputSecureFileUploaded returns copy with only InputSecureFileUploaded constructors. FillInputSecureFileMap fills only InputSecureFile constructors to given map. FillInputSecureFileUploadedMap fills only InputSecureFileUploaded constructors to given map. First returns first element of slice (if exists). InputSecureFileToMap collects only InputSecureFile constructors to map. InputSecureFileUploadedToMap collects only InputSecureFileUploaded constructors to map. 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 InputSecureFileClass. Sort sorts slice of InputSecureFileClass. SortByID sorts slice of InputSecureFileClass by ID. SortStable sorts slice of InputSecureFileClass. SortStableByID sorts slice of InputSecureFileClass by ID. func InputSecureFileClassArray.Retain(keep func(x InputSecureFileClass) bool) InputSecureFileClassArray func InputSecureFileClassArray.Sort(less func(a, b InputSecureFileClass) bool) InputSecureFileClassArray func InputSecureFileClassArray.SortByID() InputSecureFileClassArray func InputSecureFileClassArray.SortStable(less func(a, b InputSecureFileClass) bool) InputSecureFileClassArray func InputSecureFileClassArray.SortStableByID() InputSecureFileClassArray func (*InputSecureValue).MapFiles() (value InputSecureFileClassArray, ok bool) func (*InputSecureValue).MapTranslation() (value InputSecureFileClassArray, ok bool)
InputSecureFileLocation represents TL type `inputSecureFileLocation#cbc7ee28`. Location of encrypted telegram passport¹ file. Links: 1. https://core.telegram.org/passport See https://core.telegram.org/constructor/inputSecureFileLocation for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputSecureFileLocation from given interface. GetAccessHash returns value of AccessHash 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. (*InputSecureFileLocation) Zero() bool *InputSecureFileLocation : InputFileLocationClass *InputSecureFileLocation : github.com/gotd/td/bin.BareDecoder *InputSecureFileLocation : github.com/gotd/td/bin.BareEncoder *InputSecureFileLocation : github.com/gotd/td/bin.Decoder *InputSecureFileLocation : github.com/gotd/td/bin.Encoder *InputSecureFileLocation : github.com/gotd/td/bin.Object *InputSecureFileLocation : github.com/gotd/td/tdp.Object *InputSecureFileLocation : fmt.Stringer func (*InputSecureFile).AsInputSecureFileLocation() *InputSecureFileLocation func InputSecureFileLocationArray.First() (v InputSecureFileLocation, ok bool) func InputSecureFileLocationArray.Last() (v InputSecureFileLocation, ok bool) func (*InputSecureFileLocationArray).Pop() (v InputSecureFileLocation, ok bool) func (*InputSecureFileLocationArray).PopFirst() (v InputSecureFileLocation, ok bool) func InputSecureFileLocationArray.ToMap() map[int64]InputSecureFileLocation func (*SecureFile).AsInputSecureFileLocation() *InputSecureFileLocation func InputSecureFileLocationArray.FillMap(to map[int64]InputSecureFileLocation)
InputSecureFileLocationArray is adapter for slice of InputSecureFileLocation. 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 InputSecureFileLocation. Sort sorts slice of InputSecureFileLocation. SortByID sorts slice of InputSecureFileLocation by ID. SortStable sorts slice of InputSecureFileLocation. SortStableByID sorts slice of InputSecureFileLocation by ID. ToMap collects constructors to map. func InputFileLocationClassArray.AsInputSecureFileLocation() (to InputSecureFileLocationArray) func InputSecureFileLocationArray.Retain(keep func(x InputSecureFileLocation) bool) InputSecureFileLocationArray func InputSecureFileLocationArray.Sort(less func(a, b InputSecureFileLocation) bool) InputSecureFileLocationArray func InputSecureFileLocationArray.SortByID() InputSecureFileLocationArray func InputSecureFileLocationArray.SortStable(less func(a, b InputSecureFileLocation) bool) InputSecureFileLocationArray func InputSecureFileLocationArray.SortStableByID() InputSecureFileLocationArray
InputSecureFileUploaded represents TL type `inputSecureFileUploaded#3334b0f0`. Uploaded secure file, for more info see the passport docs »¹ Links: 1. https://core.telegram.org/passport/encryption#inputsecurefile See https://core.telegram.org/constructor/inputSecureFileUploaded for reference. File hash Secure file ID MD5 hash of encrypted uploaded file, to be checked server-side Secure file part count Secret Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputSecureFileUploaded from given interface. GetFileHash returns value of FileHash field. GetID returns value of ID field. GetMD5Checksum returns value of MD5Checksum field. GetParts returns value of Parts field. GetSecret returns value of Secret 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. (*InputSecureFileUploaded) Zero() bool *InputSecureFileUploaded : InputSecureFileClass *InputSecureFileUploaded : github.com/gotd/td/bin.BareDecoder *InputSecureFileUploaded : github.com/gotd/td/bin.BareEncoder *InputSecureFileUploaded : github.com/gotd/td/bin.Decoder *InputSecureFileUploaded : github.com/gotd/td/bin.Encoder *InputSecureFileUploaded : github.com/gotd/td/bin.Object *InputSecureFileUploaded : github.com/gotd/td/tdp.Object *InputSecureFileUploaded : fmt.Stringer func InputSecureFileClassArray.InputSecureFileUploadedToMap() map[int64]*InputSecureFileUploaded func InputSecureFileUploadedArray.First() (v InputSecureFileUploaded, ok bool) func InputSecureFileUploadedArray.Last() (v InputSecureFileUploaded, ok bool) func (*InputSecureFileUploadedArray).Pop() (v InputSecureFileUploaded, ok bool) func (*InputSecureFileUploadedArray).PopFirst() (v InputSecureFileUploaded, ok bool) func InputSecureFileUploadedArray.ToMap() map[int64]InputSecureFileUploaded func InputSecureFileClassArray.FillInputSecureFileUploadedMap(to map[int64]*InputSecureFileUploaded) func InputSecureFileUploadedArray.FillMap(to map[int64]InputSecureFileUploaded)
InputSecureFileUploadedArray is adapter for slice of InputSecureFileUploaded. 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 InputSecureFileUploaded. Sort sorts slice of InputSecureFileUploaded. SortByID sorts slice of InputSecureFileUploaded by ID. SortStable sorts slice of InputSecureFileUploaded. SortStableByID sorts slice of InputSecureFileUploaded by ID. ToMap collects constructors to map. func InputSecureFileClassArray.AsInputSecureFileUploaded() (to InputSecureFileUploadedArray) func InputSecureFileUploadedArray.Retain(keep func(x InputSecureFileUploaded) bool) InputSecureFileUploadedArray func InputSecureFileUploadedArray.Sort(less func(a, b InputSecureFileUploaded) bool) InputSecureFileUploadedArray func InputSecureFileUploadedArray.SortByID() InputSecureFileUploadedArray func InputSecureFileUploadedArray.SortStable(less func(a, b InputSecureFileUploaded) bool) InputSecureFileUploadedArray func InputSecureFileUploadedArray.SortStableByID() InputSecureFileUploadedArray
InputSecureValue represents TL type `inputSecureValue#db21d0a7`. Secure value, for more info see the passport docs »¹ Links: 1. https://core.telegram.org/passport/encryption#encryption See https://core.telegram.org/constructor/inputSecureValue for reference. Encrypted Telegram Passport¹ element data Links: 1) https://core.telegram.org/passport Use SetData and GetData helpers. Array of encrypted passport¹ files with photos the of the documents Links: 1) https://core.telegram.org/passport Use SetFiles and GetFiles helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Encrypted passport¹ file with the front side of the document Links: 1) https://core.telegram.org/passport Use SetFrontSide and GetFrontSide helpers. Plaintext verified passport¹ data Links: 1) https://core.telegram.org/passport Use SetPlainData and GetPlainData helpers. Encrypted passport¹ file with the reverse side of the document Links: 1) https://core.telegram.org/passport Use SetReverseSide and GetReverseSide helpers. Encrypted passport¹ file with a selfie of the user holding the document Links: 1) https://core.telegram.org/passport Use SetSelfie and GetSelfie helpers. Array of encrypted passport¹ files with translated versions of the provided documents Links: 1) https://core.telegram.org/passport Use SetTranslation and GetTranslation helpers. Secure passport¹ value type 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 InputSecureValue from given interface. GetData returns value of Data conditional field and boolean which is true if field was set. GetFiles returns value of Files conditional field and boolean which is true if field was set. GetFrontSide returns value of FrontSide conditional field and boolean which is true if field was set. GetPlainData returns value of PlainData conditional field and boolean which is true if field was set. GetReverseSide returns value of ReverseSide conditional field and boolean which is true if field was set. GetSelfie returns value of Selfie conditional field and boolean which is true if field was set. GetTranslation returns value of Translation conditional field and boolean which is true if field was set. GetType returns value of Type field. MapFiles returns field Files wrapped in InputSecureFileClassArray helper. MapTranslation returns field Translation wrapped in InputSecureFileClassArray helper. SetData sets value of Data conditional field. SetFiles sets value of Files conditional field. SetFlags sets flags for non-zero fields. SetFrontSide sets value of FrontSide conditional field. SetPlainData sets value of PlainData conditional field. SetReverseSide sets value of ReverseSide conditional field. SetSelfie sets value of Selfie conditional field. SetTranslation sets value of Translation 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. (*InputSecureValue) Zero() bool *InputSecureValue : github.com/gotd/td/bin.BareDecoder *InputSecureValue : github.com/gotd/td/bin.BareEncoder *InputSecureValue : github.com/gotd/td/bin.Decoder *InputSecureValue : github.com/gotd/td/bin.Encoder *InputSecureValue : github.com/gotd/td/bin.Object *InputSecureValue : github.com/gotd/td/tdp.Object *InputSecureValue : fmt.Stringer func (*AccountSaveSecureValueRequest).GetValue() (value InputSecureValue)
InputSingleMedia represents TL type `inputSingleMedia#1cc6e91f`. A single media in an album or grouped media¹ sent with messages.sendMultiMedia². Links: 1. https://core.telegram.org/api/files#albums-grouped-media 2. https://core.telegram.org/method/messages.sendMultiMedia See https://core.telegram.org/constructor/inputSingleMedia 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 The media A caption for the media Unique client media ID required to prevent message resending Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputSingleMedia from given interface. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetMedia returns value of Media field. GetMessage returns value of Message field. GetRandomID returns value of RandomID field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetEntities sets value of Entities 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. (*InputSingleMedia) Zero() bool *InputSingleMedia : github.com/gotd/td/bin.BareDecoder *InputSingleMedia : github.com/gotd/td/bin.BareEncoder *InputSingleMedia : github.com/gotd/td/bin.Decoder *InputSingleMedia : github.com/gotd/td/bin.Encoder *InputSingleMedia : github.com/gotd/td/bin.Object *InputSingleMedia : github.com/gotd/td/tdp.Object *InputSingleMedia : fmt.Stringer func (*MessagesSendMultiMediaRequest).GetMultiMedia() (value []InputSingleMedia)
InputStickeredMedia boxes the InputStickeredMediaClass providing a helper. InputStickeredMedia InputStickeredMediaClass Decode implements bin.Decoder for InputStickeredMediaBox. Encode implements bin.Encode for InputStickeredMediaBox. *InputStickeredMediaBox : github.com/gotd/td/bin.Decoder *InputStickeredMediaBox : github.com/gotd/td/bin.Encoder *InputStickeredMediaBox : github.com/gotd/td/bin.Object
InputStickeredMediaClass represents InputStickeredMedia generic type. See https://core.telegram.org/type/InputStickeredMedia for reference. Example: g, err := tg.DecodeInputStickeredMedia(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputStickeredMediaPhoto: // inputStickeredMediaPhoto#4a992157 case *tg.InputStickeredMediaDocument: // inputStickeredMediaDocument#438865b default: panic(v) } ( InputStickeredMediaClass) Decode(b *bin.Buffer) error ( InputStickeredMediaClass) DecodeBare(b *bin.Buffer) error ( InputStickeredMediaClass) Encode(b *bin.Buffer) error ( InputStickeredMediaClass) 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. *InputStickeredMediaDocument *InputStickeredMediaPhoto InputStickeredMediaClass : github.com/gotd/td/bin.BareDecoder InputStickeredMediaClass : github.com/gotd/td/bin.BareEncoder InputStickeredMediaClass : github.com/gotd/td/bin.Decoder InputStickeredMediaClass : github.com/gotd/td/bin.Encoder InputStickeredMediaClass : github.com/gotd/td/bin.Object InputStickeredMediaClass : fmt.Stringer func DecodeInputStickeredMedia(buf *bin.Buffer) (InputStickeredMediaClass, error) func InputStickeredMediaClassArray.First() (v InputStickeredMediaClass, ok bool) func InputStickeredMediaClassArray.Last() (v InputStickeredMediaClass, ok bool) func (*InputStickeredMediaClassArray).Pop() (v InputStickeredMediaClass, ok bool) func (*InputStickeredMediaClassArray).PopFirst() (v InputStickeredMediaClass, ok bool) func (*MessagesGetAttachedStickersRequest).GetMedia() (value InputStickeredMediaClass) func (*Client).MessagesGetAttachedStickers(ctx context.Context, media InputStickeredMediaClass) ([]StickerSetCoveredClass, error)
InputStickeredMediaClassArray is adapter for slice of InputStickeredMediaClass. AsInputStickeredMediaDocument returns copy with only InputStickeredMediaDocument constructors. AsInputStickeredMediaPhoto returns copy with only InputStickeredMediaPhoto 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 InputStickeredMediaClass. Sort sorts slice of InputStickeredMediaClass. SortStable sorts slice of InputStickeredMediaClass. func InputStickeredMediaClassArray.Retain(keep func(x InputStickeredMediaClass) bool) InputStickeredMediaClassArray func InputStickeredMediaClassArray.Sort(less func(a, b InputStickeredMediaClass) bool) InputStickeredMediaClassArray func InputStickeredMediaClassArray.SortStable(less func(a, b InputStickeredMediaClass) bool) InputStickeredMediaClassArray
InputStickeredMediaDocument represents TL type `inputStickeredMediaDocument#438865b`. A document with stickers attached See https://core.telegram.org/constructor/inputStickeredMediaDocument for reference. The document Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStickeredMediaDocument 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. (*InputStickeredMediaDocument) Zero() bool *InputStickeredMediaDocument : InputStickeredMediaClass *InputStickeredMediaDocument : github.com/gotd/td/bin.BareDecoder *InputStickeredMediaDocument : github.com/gotd/td/bin.BareEncoder *InputStickeredMediaDocument : github.com/gotd/td/bin.Decoder *InputStickeredMediaDocument : github.com/gotd/td/bin.Encoder *InputStickeredMediaDocument : github.com/gotd/td/bin.Object *InputStickeredMediaDocument : github.com/gotd/td/tdp.Object *InputStickeredMediaDocument : fmt.Stringer func InputStickeredMediaDocumentArray.First() (v InputStickeredMediaDocument, ok bool) func InputStickeredMediaDocumentArray.Last() (v InputStickeredMediaDocument, ok bool) func (*InputStickeredMediaDocumentArray).Pop() (v InputStickeredMediaDocument, ok bool) func (*InputStickeredMediaDocumentArray).PopFirst() (v InputStickeredMediaDocument, ok bool)
InputStickeredMediaDocumentArray is adapter for slice of InputStickeredMediaDocument. 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 InputStickeredMediaDocument. Sort sorts slice of InputStickeredMediaDocument. SortStable sorts slice of InputStickeredMediaDocument. func InputStickeredMediaClassArray.AsInputStickeredMediaDocument() (to InputStickeredMediaDocumentArray) func InputStickeredMediaDocumentArray.Retain(keep func(x InputStickeredMediaDocument) bool) InputStickeredMediaDocumentArray func InputStickeredMediaDocumentArray.Sort(less func(a, b InputStickeredMediaDocument) bool) InputStickeredMediaDocumentArray func InputStickeredMediaDocumentArray.SortStable(less func(a, b InputStickeredMediaDocument) bool) InputStickeredMediaDocumentArray
InputStickeredMediaPhoto represents TL type `inputStickeredMediaPhoto#4a992157`. A photo with stickers attached See https://core.telegram.org/constructor/inputStickeredMediaPhoto for reference. Existing photo Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStickeredMediaPhoto 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. (*InputStickeredMediaPhoto) Zero() bool *InputStickeredMediaPhoto : InputStickeredMediaClass *InputStickeredMediaPhoto : github.com/gotd/td/bin.BareDecoder *InputStickeredMediaPhoto : github.com/gotd/td/bin.BareEncoder *InputStickeredMediaPhoto : github.com/gotd/td/bin.Decoder *InputStickeredMediaPhoto : github.com/gotd/td/bin.Encoder *InputStickeredMediaPhoto : github.com/gotd/td/bin.Object *InputStickeredMediaPhoto : github.com/gotd/td/tdp.Object *InputStickeredMediaPhoto : fmt.Stringer func InputStickeredMediaPhotoArray.First() (v InputStickeredMediaPhoto, ok bool) func InputStickeredMediaPhotoArray.Last() (v InputStickeredMediaPhoto, ok bool) func (*InputStickeredMediaPhotoArray).Pop() (v InputStickeredMediaPhoto, ok bool) func (*InputStickeredMediaPhotoArray).PopFirst() (v InputStickeredMediaPhoto, ok bool)
InputStickeredMediaPhotoArray is adapter for slice of InputStickeredMediaPhoto. 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 InputStickeredMediaPhoto. Sort sorts slice of InputStickeredMediaPhoto. SortStable sorts slice of InputStickeredMediaPhoto. func InputStickeredMediaClassArray.AsInputStickeredMediaPhoto() (to InputStickeredMediaPhotoArray) func InputStickeredMediaPhotoArray.Retain(keep func(x InputStickeredMediaPhoto) bool) InputStickeredMediaPhotoArray func InputStickeredMediaPhotoArray.Sort(less func(a, b InputStickeredMediaPhoto) bool) InputStickeredMediaPhotoArray func InputStickeredMediaPhotoArray.SortStable(less func(a, b InputStickeredMediaPhoto) bool) InputStickeredMediaPhotoArray
InputStickerSetAnimatedEmoji represents TL type `inputStickerSetAnimatedEmoji#28703c8`. Animated emojis stickerset See https://core.telegram.org/constructor/inputStickerSetAnimatedEmoji 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. (*InputStickerSetAnimatedEmoji) Zero() bool *InputStickerSetAnimatedEmoji : InputStickerSetClass *InputStickerSetAnimatedEmoji : github.com/gotd/td/bin.BareDecoder *InputStickerSetAnimatedEmoji : github.com/gotd/td/bin.BareEncoder *InputStickerSetAnimatedEmoji : github.com/gotd/td/bin.Decoder *InputStickerSetAnimatedEmoji : github.com/gotd/td/bin.Encoder *InputStickerSetAnimatedEmoji : github.com/gotd/td/bin.Object *InputStickerSetAnimatedEmoji : github.com/gotd/td/tdp.Object *InputStickerSetAnimatedEmoji : fmt.Stringer
InputStickerSetAnimatedEmojiAnimations represents TL type `inputStickerSetAnimatedEmojiAnimations#cde3739`. Animated emoji reaction stickerset (contains animations to play when a user clicks on a given animated emoji) See https://core.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations 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. (*InputStickerSetAnimatedEmojiAnimations) Zero() bool *InputStickerSetAnimatedEmojiAnimations : InputStickerSetClass *InputStickerSetAnimatedEmojiAnimations : github.com/gotd/td/bin.BareDecoder *InputStickerSetAnimatedEmojiAnimations : github.com/gotd/td/bin.BareEncoder *InputStickerSetAnimatedEmojiAnimations : github.com/gotd/td/bin.Decoder *InputStickerSetAnimatedEmojiAnimations : github.com/gotd/td/bin.Encoder *InputStickerSetAnimatedEmojiAnimations : github.com/gotd/td/bin.Object *InputStickerSetAnimatedEmojiAnimations : github.com/gotd/td/tdp.Object *InputStickerSetAnimatedEmojiAnimations : fmt.Stringer
InputStickerSet boxes the InputStickerSetClass providing a helper. InputStickerSet InputStickerSetClass Decode implements bin.Decoder for InputStickerSetBox. Encode implements bin.Encode for InputStickerSetBox. *InputStickerSetBox : github.com/gotd/td/bin.Decoder *InputStickerSetBox : github.com/gotd/td/bin.Encoder *InputStickerSetBox : github.com/gotd/td/bin.Object
InputStickerSetClass represents InputStickerSet generic type. See https://core.telegram.org/type/InputStickerSet for reference. Example: g, err := tg.DecodeInputStickerSet(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputStickerSetEmpty: // inputStickerSetEmpty#ffb62b95 case *tg.InputStickerSetID: // inputStickerSetID#9de7a269 case *tg.InputStickerSetShortName: // inputStickerSetShortName#861cc8a0 case *tg.InputStickerSetAnimatedEmoji: // inputStickerSetAnimatedEmoji#28703c8 case *tg.InputStickerSetDice: // inputStickerSetDice#e67f520e case *tg.InputStickerSetAnimatedEmojiAnimations: // inputStickerSetAnimatedEmojiAnimations#cde3739 case *tg.InputStickerSetPremiumGifts: // inputStickerSetPremiumGifts#c88b3b02 case *tg.InputStickerSetEmojiGenericAnimations: // inputStickerSetEmojiGenericAnimations#4c4d4ce case *tg.InputStickerSetEmojiDefaultStatuses: // inputStickerSetEmojiDefaultStatuses#29d0f5ee case *tg.InputStickerSetEmojiDefaultTopicIcons: // inputStickerSetEmojiDefaultTopicIcons#44c1f8e9 case *tg.InputStickerSetEmojiChannelDefaultStatuses: // inputStickerSetEmojiChannelDefaultStatuses#49748553 default: panic(v) } ( InputStickerSetClass) Decode(b *bin.Buffer) error ( InputStickerSetClass) DecodeBare(b *bin.Buffer) error ( InputStickerSetClass) Encode(b *bin.Buffer) error ( InputStickerSetClass) 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. *InputStickerSetAnimatedEmoji *InputStickerSetAnimatedEmojiAnimations *InputStickerSetDice *InputStickerSetEmojiChannelDefaultStatuses *InputStickerSetEmojiDefaultStatuses *InputStickerSetEmojiDefaultTopicIcons *InputStickerSetEmojiGenericAnimations *InputStickerSetEmpty *InputStickerSetID *InputStickerSetPremiumGifts *InputStickerSetShortName InputStickerSetClass : github.com/gotd/td/bin.BareDecoder InputStickerSetClass : github.com/gotd/td/bin.BareEncoder InputStickerSetClass : github.com/gotd/td/bin.Decoder InputStickerSetClass : github.com/gotd/td/bin.Encoder InputStickerSetClass : github.com/gotd/td/bin.Object InputStickerSetClass : fmt.Stringer func DecodeInputStickerSet(buf *bin.Buffer) (InputStickerSetClass, error) func (*ChannelAdminLogEventActionChangeStickerSet).GetNewStickerset() (value InputStickerSetClass) func (*ChannelAdminLogEventActionChangeStickerSet).GetPrevStickerset() (value InputStickerSetClass) func (*ChannelsSetStickersRequest).GetStickerset() (value InputStickerSetClass) func (*DocumentAttributeCustomEmoji).GetStickerset() (value InputStickerSetClass) func (*DocumentAttributeSticker).GetStickerset() (value InputStickerSetClass) func InputStickerSetClassArray.First() (v InputStickerSetClass, ok bool) func InputStickerSetClassArray.Last() (v InputStickerSetClass, ok bool) func (*InputStickerSetClassArray).Pop() (v InputStickerSetClass, ok bool) func (*InputStickerSetClassArray).PopFirst() (v InputStickerSetClass, ok bool) func (*InputStickerSetThumb).GetStickerset() (value InputStickerSetClass) func (*InputStickerSetThumbLegacy).GetStickerset() (value InputStickerSetClass) func (*MessagesGetStickerSetRequest).GetStickerset() (value InputStickerSetClass) func (*MessagesInstallStickerSetRequest).GetStickerset() (value InputStickerSetClass) func (*MessagesToggleStickerSetsRequest).GetStickersets() (value []InputStickerSetClass) func (*MessagesUninstallStickerSetRequest).GetStickerset() (value InputStickerSetClass) func (*StickersAddStickerToSetRequest).GetStickerset() (value InputStickerSetClass) func (*StickersDeleteStickerSetRequest).GetStickerset() (value InputStickerSetClass) func (*StickersRenameStickerSetRequest).GetStickerset() (value InputStickerSetClass) func (*StickersSetStickerSetThumbRequest).GetStickerset() (value InputStickerSetClass) func (*VideoSizeStickerMarkup).GetStickerset() (value InputStickerSetClass) func (*Client).MessagesUninstallStickerSet(ctx context.Context, stickerset InputStickerSetClass) (bool, error) func (*Client).StickersDeleteStickerSet(ctx context.Context, stickerset InputStickerSetClass) (bool, error)
InputStickerSetClassArray is adapter for slice of InputStickerSetClass. AsInputStickerSetDice returns copy with only InputStickerSetDice constructors. AsInputStickerSetID returns copy with only InputStickerSetID constructors. AsInputStickerSetShortName returns copy with only InputStickerSetShortName 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 InputStickerSetClass. Sort sorts slice of InputStickerSetClass. SortStable sorts slice of InputStickerSetClass. func InputStickerSetClassArray.Retain(keep func(x InputStickerSetClass) bool) InputStickerSetClassArray func InputStickerSetClassArray.Sort(less func(a, b InputStickerSetClass) bool) InputStickerSetClassArray func InputStickerSetClassArray.SortStable(less func(a, b InputStickerSetClass) bool) InputStickerSetClassArray func (*MessagesToggleStickerSetsRequest).MapStickersets() (value InputStickerSetClassArray)
InputStickerSetDice represents TL type `inputStickerSetDice#e67f520e`. Used for fetching animated dice stickers¹ Links: 1. https://core.telegram.org/api/dice See https://core.telegram.org/constructor/inputStickerSetDice for reference. The emoji, for now , and are supported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStickerSetDice from given interface. GetEmoticon returns value of Emoticon 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. (*InputStickerSetDice) Zero() bool *InputStickerSetDice : InputStickerSetClass *InputStickerSetDice : github.com/gotd/td/bin.BareDecoder *InputStickerSetDice : github.com/gotd/td/bin.BareEncoder *InputStickerSetDice : github.com/gotd/td/bin.Decoder *InputStickerSetDice : github.com/gotd/td/bin.Encoder *InputStickerSetDice : github.com/gotd/td/bin.Object *InputStickerSetDice : github.com/gotd/td/tdp.Object *InputStickerSetDice : fmt.Stringer func InputStickerSetDiceArray.First() (v InputStickerSetDice, ok bool) func InputStickerSetDiceArray.Last() (v InputStickerSetDice, ok bool) func (*InputStickerSetDiceArray).Pop() (v InputStickerSetDice, ok bool) func (*InputStickerSetDiceArray).PopFirst() (v InputStickerSetDice, ok bool)
InputStickerSetDiceArray is adapter for slice of InputStickerSetDice. 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 InputStickerSetDice. Sort sorts slice of InputStickerSetDice. SortStable sorts slice of InputStickerSetDice. func InputStickerSetClassArray.AsInputStickerSetDice() (to InputStickerSetDiceArray) func InputStickerSetDiceArray.Retain(keep func(x InputStickerSetDice) bool) InputStickerSetDiceArray func InputStickerSetDiceArray.Sort(less func(a, b InputStickerSetDice) bool) InputStickerSetDiceArray func InputStickerSetDiceArray.SortStable(less func(a, b InputStickerSetDice) bool) InputStickerSetDiceArray
InputStickerSetEmojiChannelDefaultStatuses represents TL type `inputStickerSetEmojiChannelDefaultStatuses#49748553`. See https://core.telegram.org/constructor/inputStickerSetEmojiChannelDefaultStatuses 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. (*InputStickerSetEmojiChannelDefaultStatuses) Zero() bool *InputStickerSetEmojiChannelDefaultStatuses : InputStickerSetClass *InputStickerSetEmojiChannelDefaultStatuses : github.com/gotd/td/bin.BareDecoder *InputStickerSetEmojiChannelDefaultStatuses : github.com/gotd/td/bin.BareEncoder *InputStickerSetEmojiChannelDefaultStatuses : github.com/gotd/td/bin.Decoder *InputStickerSetEmojiChannelDefaultStatuses : github.com/gotd/td/bin.Encoder *InputStickerSetEmojiChannelDefaultStatuses : github.com/gotd/td/bin.Object *InputStickerSetEmojiChannelDefaultStatuses : github.com/gotd/td/tdp.Object *InputStickerSetEmojiChannelDefaultStatuses : fmt.Stringer
InputStickerSetEmojiDefaultStatuses represents TL type `inputStickerSetEmojiDefaultStatuses#29d0f5ee`. Default custom emoji status¹ stickerset Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/constructor/inputStickerSetEmojiDefaultStatuses 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. (*InputStickerSetEmojiDefaultStatuses) Zero() bool *InputStickerSetEmojiDefaultStatuses : InputStickerSetClass *InputStickerSetEmojiDefaultStatuses : github.com/gotd/td/bin.BareDecoder *InputStickerSetEmojiDefaultStatuses : github.com/gotd/td/bin.BareEncoder *InputStickerSetEmojiDefaultStatuses : github.com/gotd/td/bin.Decoder *InputStickerSetEmojiDefaultStatuses : github.com/gotd/td/bin.Encoder *InputStickerSetEmojiDefaultStatuses : github.com/gotd/td/bin.Object *InputStickerSetEmojiDefaultStatuses : github.com/gotd/td/tdp.Object *InputStickerSetEmojiDefaultStatuses : fmt.Stringer
InputStickerSetEmojiDefaultTopicIcons represents TL type `inputStickerSetEmojiDefaultTopicIcons#44c1f8e9`. Default custom emoji¹ stickerset for forum topic icons² Links: 1. https://core.telegram.org/api/custom-emoji 2. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons 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. (*InputStickerSetEmojiDefaultTopicIcons) Zero() bool *InputStickerSetEmojiDefaultTopicIcons : InputStickerSetClass *InputStickerSetEmojiDefaultTopicIcons : github.com/gotd/td/bin.BareDecoder *InputStickerSetEmojiDefaultTopicIcons : github.com/gotd/td/bin.BareEncoder *InputStickerSetEmojiDefaultTopicIcons : github.com/gotd/td/bin.Decoder *InputStickerSetEmojiDefaultTopicIcons : github.com/gotd/td/bin.Encoder *InputStickerSetEmojiDefaultTopicIcons : github.com/gotd/td/bin.Object *InputStickerSetEmojiDefaultTopicIcons : github.com/gotd/td/tdp.Object *InputStickerSetEmojiDefaultTopicIcons : fmt.Stringer
InputStickerSetEmojiGenericAnimations represents TL type `inputStickerSetEmojiGenericAnimations#4c4d4ce`. Generic animation stickerset containing animations to play when reacting to messages using a normal emoji without a custom animation¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/constructor/inputStickerSetEmojiGenericAnimations 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. (*InputStickerSetEmojiGenericAnimations) Zero() bool *InputStickerSetEmojiGenericAnimations : InputStickerSetClass *InputStickerSetEmojiGenericAnimations : github.com/gotd/td/bin.BareDecoder *InputStickerSetEmojiGenericAnimations : github.com/gotd/td/bin.BareEncoder *InputStickerSetEmojiGenericAnimations : github.com/gotd/td/bin.Decoder *InputStickerSetEmojiGenericAnimations : github.com/gotd/td/bin.Encoder *InputStickerSetEmojiGenericAnimations : github.com/gotd/td/bin.Object *InputStickerSetEmojiGenericAnimations : github.com/gotd/td/tdp.Object *InputStickerSetEmojiGenericAnimations : fmt.Stringer
InputStickerSetEmpty represents TL type `inputStickerSetEmpty#ffb62b95`. Empty constructor See https://core.telegram.org/constructor/inputStickerSetEmpty 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. (*InputStickerSetEmpty) Zero() bool *InputStickerSetEmpty : InputStickerSetClass *InputStickerSetEmpty : github.com/gotd/td/bin.BareDecoder *InputStickerSetEmpty : github.com/gotd/td/bin.BareEncoder *InputStickerSetEmpty : github.com/gotd/td/bin.Decoder *InputStickerSetEmpty : github.com/gotd/td/bin.Encoder *InputStickerSetEmpty : github.com/gotd/td/bin.Object *InputStickerSetEmpty : github.com/gotd/td/tdp.Object *InputStickerSetEmpty : fmt.Stringer
InputStickerSetID represents TL type `inputStickerSetID#9de7a269`. Stickerset by ID See https://core.telegram.org/constructor/inputStickerSetID for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStickerSetID from given interface. GetAccessHash returns value of AccessHash 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. (*InputStickerSetID) Zero() bool *InputStickerSetID : InputStickerSetClass *InputStickerSetID : github.com/gotd/td/bin.BareDecoder *InputStickerSetID : github.com/gotd/td/bin.BareEncoder *InputStickerSetID : github.com/gotd/td/bin.Decoder *InputStickerSetID : github.com/gotd/td/bin.Encoder *InputStickerSetID : github.com/gotd/td/bin.Object *InputStickerSetID : github.com/gotd/td/tdp.Object *InputStickerSetID : fmt.Stringer func InputStickerSetIDArray.First() (v InputStickerSetID, ok bool) func InputStickerSetIDArray.Last() (v InputStickerSetID, ok bool) func (*InputStickerSetIDArray).Pop() (v InputStickerSetID, ok bool) func (*InputStickerSetIDArray).PopFirst() (v InputStickerSetID, ok bool) func InputStickerSetIDArray.ToMap() map[int64]InputStickerSetID func InputStickerSetIDArray.FillMap(to map[int64]InputStickerSetID)
InputStickerSetIDArray is adapter for slice of InputStickerSetID. 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 InputStickerSetID. Sort sorts slice of InputStickerSetID. SortByID sorts slice of InputStickerSetID by ID. SortStable sorts slice of InputStickerSetID. SortStableByID sorts slice of InputStickerSetID by ID. ToMap collects constructors to map. func InputStickerSetClassArray.AsInputStickerSetID() (to InputStickerSetIDArray) func InputStickerSetIDArray.Retain(keep func(x InputStickerSetID) bool) InputStickerSetIDArray func InputStickerSetIDArray.Sort(less func(a, b InputStickerSetID) bool) InputStickerSetIDArray func InputStickerSetIDArray.SortByID() InputStickerSetIDArray func InputStickerSetIDArray.SortStable(less func(a, b InputStickerSetID) bool) InputStickerSetIDArray func InputStickerSetIDArray.SortStableByID() InputStickerSetIDArray
InputStickerSetItem represents TL type `inputStickerSetItem#32da9e9c`. Sticker in a stickerset See https://core.telegram.org/constructor/inputStickerSetItem for reference. The sticker Associated emoji Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Set of keywords, separated by commas (can't be provided for mask stickers) Use SetKeywords and GetKeywords helpers. Coordinates for mask sticker Use SetMaskCoords and GetMaskCoords helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStickerSetItem from given interface. GetDocument returns value of Document field. GetDocumentAsNotEmpty returns mapped value of Document field. GetEmoji returns value of Emoji field. GetKeywords returns value of Keywords conditional field and boolean which is true if field was set. GetMaskCoords returns value of MaskCoords conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetKeywords sets value of Keywords conditional field. SetMaskCoords sets value of MaskCoords 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. (*InputStickerSetItem) Zero() bool *InputStickerSetItem : github.com/gotd/td/bin.BareDecoder *InputStickerSetItem : github.com/gotd/td/bin.BareEncoder *InputStickerSetItem : github.com/gotd/td/bin.Decoder *InputStickerSetItem : github.com/gotd/td/bin.Encoder *InputStickerSetItem : github.com/gotd/td/bin.Object *InputStickerSetItem : github.com/gotd/td/tdp.Object *InputStickerSetItem : fmt.Stringer func (*StickersAddStickerToSetRequest).GetSticker() (value InputStickerSetItem) func (*StickersCreateStickerSetRequest).GetStickers() (value []InputStickerSetItem)
InputStickerSetPremiumGifts represents TL type `inputStickerSetPremiumGifts#c88b3b02`. Stickers to show when receiving a gifted Telegram Premium subscription See https://core.telegram.org/constructor/inputStickerSetPremiumGifts 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. (*InputStickerSetPremiumGifts) Zero() bool *InputStickerSetPremiumGifts : InputStickerSetClass *InputStickerSetPremiumGifts : github.com/gotd/td/bin.BareDecoder *InputStickerSetPremiumGifts : github.com/gotd/td/bin.BareEncoder *InputStickerSetPremiumGifts : github.com/gotd/td/bin.Decoder *InputStickerSetPremiumGifts : github.com/gotd/td/bin.Encoder *InputStickerSetPremiumGifts : github.com/gotd/td/bin.Object *InputStickerSetPremiumGifts : github.com/gotd/td/tdp.Object *InputStickerSetPremiumGifts : fmt.Stringer
InputStickerSetShortName represents TL type `inputStickerSetShortName#861cc8a0`. Stickerset by short name, from a stickerset deep link »¹ Links: 1. https://core.telegram.org/api/links#stickerset-links See https://core.telegram.org/constructor/inputStickerSetShortName for reference. Short name from a stickerset deep link »¹ Links: 1) https://core.telegram.org/api/links#stickerset-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStickerSetShortName from given interface. GetShortName returns value of ShortName 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. (*InputStickerSetShortName) Zero() bool *InputStickerSetShortName : InputStickerSetClass *InputStickerSetShortName : github.com/gotd/td/bin.BareDecoder *InputStickerSetShortName : github.com/gotd/td/bin.BareEncoder *InputStickerSetShortName : github.com/gotd/td/bin.Decoder *InputStickerSetShortName : github.com/gotd/td/bin.Encoder *InputStickerSetShortName : github.com/gotd/td/bin.Object *InputStickerSetShortName : github.com/gotd/td/tdp.Object *InputStickerSetShortName : fmt.Stringer func InputStickerSetShortNameArray.First() (v InputStickerSetShortName, ok bool) func InputStickerSetShortNameArray.Last() (v InputStickerSetShortName, ok bool) func (*InputStickerSetShortNameArray).Pop() (v InputStickerSetShortName, ok bool) func (*InputStickerSetShortNameArray).PopFirst() (v InputStickerSetShortName, ok bool)
InputStickerSetShortNameArray is adapter for slice of InputStickerSetShortName. 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 InputStickerSetShortName. Sort sorts slice of InputStickerSetShortName. SortStable sorts slice of InputStickerSetShortName. func InputStickerSetClassArray.AsInputStickerSetShortName() (to InputStickerSetShortNameArray) func InputStickerSetShortNameArray.Retain(keep func(x InputStickerSetShortName) bool) InputStickerSetShortNameArray func InputStickerSetShortNameArray.Sort(less func(a, b InputStickerSetShortName) bool) InputStickerSetShortNameArray func InputStickerSetShortNameArray.SortStable(less func(a, b InputStickerSetShortName) bool) InputStickerSetShortNameArray
InputStickerSetThumb represents TL type `inputStickerSetThumb#9d84f3db`. Location of stickerset thumbnail (see files¹) Links: 1. https://core.telegram.org/api/files See https://core.telegram.org/constructor/inputStickerSetThumb for reference. Sticker set Thumbnail version Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStickerSetThumb from given interface. GetStickerset returns value of Stickerset field. GetThumbVersion returns value of ThumbVersion 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. (*InputStickerSetThumb) Zero() bool *InputStickerSetThumb : InputFileLocationClass *InputStickerSetThumb : github.com/gotd/td/bin.BareDecoder *InputStickerSetThumb : github.com/gotd/td/bin.BareEncoder *InputStickerSetThumb : github.com/gotd/td/bin.Decoder *InputStickerSetThumb : github.com/gotd/td/bin.Encoder *InputStickerSetThumb : github.com/gotd/td/bin.Object *InputStickerSetThumb : github.com/gotd/td/tdp.Object *InputStickerSetThumb : fmt.Stringer func InputStickerSetThumbArray.First() (v InputStickerSetThumb, ok bool) func InputStickerSetThumbArray.Last() (v InputStickerSetThumb, ok bool) func (*InputStickerSetThumbArray).Pop() (v InputStickerSetThumb, ok bool) func (*InputStickerSetThumbArray).PopFirst() (v InputStickerSetThumb, ok bool)
InputStickerSetThumbArray is adapter for slice of InputStickerSetThumb. 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 InputStickerSetThumb. Sort sorts slice of InputStickerSetThumb. SortStable sorts slice of InputStickerSetThumb. func InputFileLocationClassArray.AsInputStickerSetThumb() (to InputStickerSetThumbArray) func InputStickerSetThumbArray.Retain(keep func(x InputStickerSetThumb) bool) InputStickerSetThumbArray func InputStickerSetThumbArray.Sort(less func(a, b InputStickerSetThumb) bool) InputStickerSetThumbArray func InputStickerSetThumbArray.SortStable(less func(a, b InputStickerSetThumb) bool) InputStickerSetThumbArray
InputStickerSetThumbLegacy represents TL type `inputStickerSetThumbLegacy#dbaeae9`. See https://core.telegram.org/constructor/inputStickerSetThumbLegacy for reference. LocalID field of InputStickerSetThumbLegacy. Stickerset field of InputStickerSetThumbLegacy. VolumeID field of InputStickerSetThumbLegacy. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStickerSetThumbLegacy from given interface. GetLocalID returns value of LocalID field. GetStickerset returns value of Stickerset field. GetVolumeID returns value of VolumeID 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. (*InputStickerSetThumbLegacy) Zero() bool *InputStickerSetThumbLegacy : InputFileLocationClass *InputStickerSetThumbLegacy : github.com/gotd/td/bin.BareDecoder *InputStickerSetThumbLegacy : github.com/gotd/td/bin.BareEncoder *InputStickerSetThumbLegacy : github.com/gotd/td/bin.Decoder *InputStickerSetThumbLegacy : github.com/gotd/td/bin.Encoder *InputStickerSetThumbLegacy : github.com/gotd/td/bin.Object *InputStickerSetThumbLegacy : github.com/gotd/td/tdp.Object *InputStickerSetThumbLegacy : fmt.Stringer func InputStickerSetThumbLegacyArray.First() (v InputStickerSetThumbLegacy, ok bool) func InputStickerSetThumbLegacyArray.Last() (v InputStickerSetThumbLegacy, ok bool) func (*InputStickerSetThumbLegacyArray).Pop() (v InputStickerSetThumbLegacy, ok bool) func (*InputStickerSetThumbLegacyArray).PopFirst() (v InputStickerSetThumbLegacy, ok bool)
InputStickerSetThumbLegacyArray is adapter for slice of InputStickerSetThumbLegacy. 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 InputStickerSetThumbLegacy. Sort sorts slice of InputStickerSetThumbLegacy. SortStable sorts slice of InputStickerSetThumbLegacy. func InputFileLocationClassArray.AsInputStickerSetThumbLegacy() (to InputStickerSetThumbLegacyArray) func InputStickerSetThumbLegacyArray.Retain(keep func(x InputStickerSetThumbLegacy) bool) InputStickerSetThumbLegacyArray func InputStickerSetThumbLegacyArray.Sort(less func(a, b InputStickerSetThumbLegacy) bool) InputStickerSetThumbLegacyArray func InputStickerSetThumbLegacyArray.SortStable(less func(a, b InputStickerSetThumbLegacy) bool) InputStickerSetThumbLegacyArray
InputStorePaymentGiftPremium represents TL type `inputStorePaymentGiftPremium#616f7fe8`. Info about a gifted Telegram Premium purchase See https://core.telegram.org/constructor/inputStorePaymentGiftPremium for reference. Price of the product 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 The user to which the Telegram Premium subscription was gifted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStorePaymentGiftPremium from given interface. GetAmount returns value of Amount field. GetCurrency returns value of Currency 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. (*InputStorePaymentGiftPremium) Zero() bool *InputStorePaymentGiftPremium : InputStorePaymentPurposeClass *InputStorePaymentGiftPremium : github.com/gotd/td/bin.BareDecoder *InputStorePaymentGiftPremium : github.com/gotd/td/bin.BareEncoder *InputStorePaymentGiftPremium : github.com/gotd/td/bin.Decoder *InputStorePaymentGiftPremium : github.com/gotd/td/bin.Encoder *InputStorePaymentGiftPremium : github.com/gotd/td/bin.Object *InputStorePaymentGiftPremium : github.com/gotd/td/tdp.Object *InputStorePaymentGiftPremium : fmt.Stringer func InputStorePaymentGiftPremiumArray.First() (v InputStorePaymentGiftPremium, ok bool) func InputStorePaymentGiftPremiumArray.Last() (v InputStorePaymentGiftPremium, ok bool) func (*InputStorePaymentGiftPremiumArray).Pop() (v InputStorePaymentGiftPremium, ok bool) func (*InputStorePaymentGiftPremiumArray).PopFirst() (v InputStorePaymentGiftPremium, ok bool)
InputStorePaymentGiftPremiumArray is adapter for slice of InputStorePaymentGiftPremium. 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 InputStorePaymentGiftPremium. Sort sorts slice of InputStorePaymentGiftPremium. SortStable sorts slice of InputStorePaymentGiftPremium. func InputStorePaymentGiftPremiumArray.Retain(keep func(x InputStorePaymentGiftPremium) bool) InputStorePaymentGiftPremiumArray func InputStorePaymentGiftPremiumArray.Sort(less func(a, b InputStorePaymentGiftPremium) bool) InputStorePaymentGiftPremiumArray func InputStorePaymentGiftPremiumArray.SortStable(less func(a, b InputStorePaymentGiftPremium) bool) InputStorePaymentGiftPremiumArray func InputStorePaymentPurposeClassArray.AsInputStorePaymentGiftPremium() (to InputStorePaymentGiftPremiumArray)
InputStorePaymentPremiumGiftCode represents TL type `inputStorePaymentPremiumGiftCode#a3805f3f`. Used to gift Telegram Premium¹ subscriptions only to some specific subscribers of a channel or to some of our contacts, see here »² for more info on giveaways and gifts. Links: 1. https://core.telegram.org/api/premium 2. https://core.telegram.org/api/giveaways See https://core.telegram.org/constructor/inputStorePaymentPremiumGiftCode 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 If set, the gifts will be sent on behalf of a channel we are an admin of, which will also assign some boosts¹ to it. Otherwise, the gift will be sent directly from the currently logged in users, and we will gain some extra boost slots². See here »³ for more info on giveaways and gifts. Links: 1) https://core.telegram.org/api/boost 2) https://core.telegram.org/api/boost 3) https://core.telegram.org/api/giveaways Use SetBoostPeer and GetBoostPeer helpers. Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The users that will receive the Telegram Premium¹ subscriptions. Links: 1) https://core.telegram.org/api/premium Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStorePaymentPremiumGiftCode from given interface. GetAmount returns value of Amount field. GetBoostPeer returns value of BoostPeer conditional field and boolean which is true if field was set. GetCurrency returns value of Currency field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in InputUserClassArray helper. SetBoostPeer sets value of BoostPeer 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. (*InputStorePaymentPremiumGiftCode) Zero() bool *InputStorePaymentPremiumGiftCode : InputStorePaymentPurposeClass *InputStorePaymentPremiumGiftCode : github.com/gotd/td/bin.BareDecoder *InputStorePaymentPremiumGiftCode : github.com/gotd/td/bin.BareEncoder *InputStorePaymentPremiumGiftCode : github.com/gotd/td/bin.Decoder *InputStorePaymentPremiumGiftCode : github.com/gotd/td/bin.Encoder *InputStorePaymentPremiumGiftCode : github.com/gotd/td/bin.Object *InputStorePaymentPremiumGiftCode : github.com/gotd/td/tdp.Object *InputStorePaymentPremiumGiftCode : fmt.Stringer func InputStorePaymentPremiumGiftCodeArray.First() (v InputStorePaymentPremiumGiftCode, ok bool) func InputStorePaymentPremiumGiftCodeArray.Last() (v InputStorePaymentPremiumGiftCode, ok bool) func (*InputStorePaymentPremiumGiftCodeArray).Pop() (v InputStorePaymentPremiumGiftCode, ok bool) func (*InputStorePaymentPremiumGiftCodeArray).PopFirst() (v InputStorePaymentPremiumGiftCode, ok bool)
InputStorePaymentPremiumGiftCodeArray is adapter for slice of InputStorePaymentPremiumGiftCode. 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 InputStorePaymentPremiumGiftCode. Sort sorts slice of InputStorePaymentPremiumGiftCode. SortStable sorts slice of InputStorePaymentPremiumGiftCode. func InputStorePaymentPremiumGiftCodeArray.Retain(keep func(x InputStorePaymentPremiumGiftCode) bool) InputStorePaymentPremiumGiftCodeArray func InputStorePaymentPremiumGiftCodeArray.Sort(less func(a, b InputStorePaymentPremiumGiftCode) bool) InputStorePaymentPremiumGiftCodeArray func InputStorePaymentPremiumGiftCodeArray.SortStable(less func(a, b InputStorePaymentPremiumGiftCode) bool) InputStorePaymentPremiumGiftCodeArray func InputStorePaymentPurposeClassArray.AsInputStorePaymentPremiumGiftCode() (to InputStorePaymentPremiumGiftCodeArray)
InputStorePaymentPremiumGiveaway represents TL type `inputStorePaymentPremiumGiveaway#160544ca`. Used to pay for a giveaway, see here »¹ for more info. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/constructor/inputStorePaymentPremiumGiveaway for reference. Additional channels that the user must join to participate to the giveaway can be specified here. Use SetAdditionalPeers and GetAdditionalPeers helpers. 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 The channel starting the giveaway, that the user must join to participate, that will receive the giveaway boosts¹; see here »² for more info on giveaways. Links: 1) https://core.telegram.org/api/boost 2) https://core.telegram.org/api/giveaways The set of users that can participate to the giveaway can be restricted by passing here an explicit whitelist of up to giveaway_countries_max¹ countries, specified as two-letter ISO 3166-1 alpha-2 country codes. Links: 1) https://core.telegram.org/api/config#giveaway-countries-max Use SetCountriesISO2 and GetCountriesISO2 helpers. Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway. PrizeDescription field of InputStorePaymentPremiumGiveaway. Use SetPrizeDescription and GetPrizeDescription helpers. Random ID to avoid resending the giveaway The end date of the giveaway, must be at most giveaway_period_max¹ seconds in the future; see here »² for more info on giveaways. Links: 1) https://core.telegram.org/api/config#giveaway-period-max 2) https://core.telegram.org/api/giveaways WinnersAreVisible field of InputStorePaymentPremiumGiveaway. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStorePaymentPremiumGiveaway from given interface. GetAdditionalPeers returns value of AdditionalPeers conditional field and boolean which is true if field was set. GetAmount returns value of Amount field. GetBoostPeer returns value of BoostPeer field. GetCountriesISO2 returns value of CountriesISO2 conditional field and boolean which is true if field was set. GetCurrency returns value of Currency field. GetOnlyNewSubscribers returns value of OnlyNewSubscribers conditional field. GetPrizeDescription returns value of PrizeDescription conditional field and boolean which is true if field was set. GetRandomID returns value of RandomID field. GetUntilDate returns value of UntilDate field. GetWinnersAreVisible returns value of WinnersAreVisible conditional field. MapAdditionalPeers returns field AdditionalPeers wrapped in InputPeerClassArray helper. SetAdditionalPeers sets value of AdditionalPeers conditional field. SetCountriesISO2 sets value of CountriesISO2 conditional field. SetFlags sets flags for non-zero fields. SetOnlyNewSubscribers sets value of OnlyNewSubscribers conditional field. SetPrizeDescription sets value of PrizeDescription conditional field. SetWinnersAreVisible sets value of WinnersAreVisible 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. (*InputStorePaymentPremiumGiveaway) Zero() bool *InputStorePaymentPremiumGiveaway : InputStorePaymentPurposeClass *InputStorePaymentPremiumGiveaway : github.com/gotd/td/bin.BareDecoder *InputStorePaymentPremiumGiveaway : github.com/gotd/td/bin.BareEncoder *InputStorePaymentPremiumGiveaway : github.com/gotd/td/bin.Decoder *InputStorePaymentPremiumGiveaway : github.com/gotd/td/bin.Encoder *InputStorePaymentPremiumGiveaway : github.com/gotd/td/bin.Object *InputStorePaymentPremiumGiveaway : github.com/gotd/td/tdp.Object *InputStorePaymentPremiumGiveaway : fmt.Stringer func InputStorePaymentPremiumGiveawayArray.First() (v InputStorePaymentPremiumGiveaway, ok bool) func InputStorePaymentPremiumGiveawayArray.Last() (v InputStorePaymentPremiumGiveaway, ok bool) func (*InputStorePaymentPremiumGiveawayArray).Pop() (v InputStorePaymentPremiumGiveaway, ok bool) func (*InputStorePaymentPremiumGiveawayArray).PopFirst() (v InputStorePaymentPremiumGiveaway, ok bool)
InputStorePaymentPremiumGiveawayArray is adapter for slice of InputStorePaymentPremiumGiveaway. 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 InputStorePaymentPremiumGiveaway. Sort sorts slice of InputStorePaymentPremiumGiveaway. SortStable sorts slice of InputStorePaymentPremiumGiveaway. func InputStorePaymentPremiumGiveawayArray.Retain(keep func(x InputStorePaymentPremiumGiveaway) bool) InputStorePaymentPremiumGiveawayArray func InputStorePaymentPremiumGiveawayArray.Sort(less func(a, b InputStorePaymentPremiumGiveaway) bool) InputStorePaymentPremiumGiveawayArray func InputStorePaymentPremiumGiveawayArray.SortStable(less func(a, b InputStorePaymentPremiumGiveaway) bool) InputStorePaymentPremiumGiveawayArray func InputStorePaymentPurposeClassArray.AsInputStorePaymentPremiumGiveaway() (to InputStorePaymentPremiumGiveawayArray)
InputStorePaymentPremiumSubscription represents TL type `inputStorePaymentPremiumSubscription#a6751e66`. Info about a Telegram Premium purchase See https://core.telegram.org/constructor/inputStorePaymentPremiumSubscription for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Pass true if this is a restore of a Telegram Premium purchase; only for the App Store Pass true if this is an upgrade from a monthly subscription to a yearly subscription; only for App Store Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputStorePaymentPremiumSubscription from given interface. GetRestore returns value of Restore conditional field. GetUpgrade returns value of Upgrade conditional field. SetFlags sets flags for non-zero fields. SetRestore sets value of Restore conditional field. SetUpgrade sets value of Upgrade 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. (*InputStorePaymentPremiumSubscription) Zero() bool *InputStorePaymentPremiumSubscription : InputStorePaymentPurposeClass *InputStorePaymentPremiumSubscription : github.com/gotd/td/bin.BareDecoder *InputStorePaymentPremiumSubscription : github.com/gotd/td/bin.BareEncoder *InputStorePaymentPremiumSubscription : github.com/gotd/td/bin.Decoder *InputStorePaymentPremiumSubscription : github.com/gotd/td/bin.Encoder *InputStorePaymentPremiumSubscription : github.com/gotd/td/bin.Object *InputStorePaymentPremiumSubscription : github.com/gotd/td/tdp.Object *InputStorePaymentPremiumSubscription : fmt.Stringer func InputStorePaymentPremiumSubscriptionArray.First() (v InputStorePaymentPremiumSubscription, ok bool) func InputStorePaymentPremiumSubscriptionArray.Last() (v InputStorePaymentPremiumSubscription, ok bool) func (*InputStorePaymentPremiumSubscriptionArray).Pop() (v InputStorePaymentPremiumSubscription, ok bool) func (*InputStorePaymentPremiumSubscriptionArray).PopFirst() (v InputStorePaymentPremiumSubscription, ok bool)
InputStorePaymentPremiumSubscriptionArray is adapter for slice of InputStorePaymentPremiumSubscription. 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 InputStorePaymentPremiumSubscription. Sort sorts slice of InputStorePaymentPremiumSubscription. SortStable sorts slice of InputStorePaymentPremiumSubscription. func InputStorePaymentPremiumSubscriptionArray.Retain(keep func(x InputStorePaymentPremiumSubscription) bool) InputStorePaymentPremiumSubscriptionArray func InputStorePaymentPremiumSubscriptionArray.Sort(less func(a, b InputStorePaymentPremiumSubscription) bool) InputStorePaymentPremiumSubscriptionArray func InputStorePaymentPremiumSubscriptionArray.SortStable(less func(a, b InputStorePaymentPremiumSubscription) bool) InputStorePaymentPremiumSubscriptionArray func InputStorePaymentPurposeClassArray.AsInputStorePaymentPremiumSubscription() (to InputStorePaymentPremiumSubscriptionArray)
InputStorePaymentPurpose boxes the InputStorePaymentPurposeClass providing a helper. InputStorePaymentPurpose InputStorePaymentPurposeClass Decode implements bin.Decoder for InputStorePaymentPurposeBox. Encode implements bin.Encode for InputStorePaymentPurposeBox. *InputStorePaymentPurposeBox : github.com/gotd/td/bin.Decoder *InputStorePaymentPurposeBox : github.com/gotd/td/bin.Encoder *InputStorePaymentPurposeBox : github.com/gotd/td/bin.Object
InputStorePaymentPurposeClass represents InputStorePaymentPurpose generic type. See https://core.telegram.org/type/InputStorePaymentPurpose for reference. Example: g, err := tg.DecodeInputStorePaymentPurpose(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputStorePaymentPremiumSubscription: // inputStorePaymentPremiumSubscription#a6751e66 case *tg.InputStorePaymentGiftPremium: // inputStorePaymentGiftPremium#616f7fe8 case *tg.InputStorePaymentPremiumGiftCode: // inputStorePaymentPremiumGiftCode#a3805f3f case *tg.InputStorePaymentPremiumGiveaway: // inputStorePaymentPremiumGiveaway#160544ca default: panic(v) } ( InputStorePaymentPurposeClass) Decode(b *bin.Buffer) error ( InputStorePaymentPurposeClass) DecodeBare(b *bin.Buffer) error ( InputStorePaymentPurposeClass) Encode(b *bin.Buffer) error ( InputStorePaymentPurposeClass) 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. *InputStorePaymentGiftPremium *InputStorePaymentPremiumGiftCode *InputStorePaymentPremiumGiveaway *InputStorePaymentPremiumSubscription InputStorePaymentPurposeClass : github.com/gotd/td/bin.BareDecoder InputStorePaymentPurposeClass : github.com/gotd/td/bin.BareEncoder InputStorePaymentPurposeClass : github.com/gotd/td/bin.Decoder InputStorePaymentPurposeClass : github.com/gotd/td/bin.Encoder InputStorePaymentPurposeClass : github.com/gotd/td/bin.Object InputStorePaymentPurposeClass : fmt.Stringer func DecodeInputStorePaymentPurpose(buf *bin.Buffer) (InputStorePaymentPurposeClass, error) func (*InputInvoicePremiumGiftCode).GetPurpose() (value InputStorePaymentPurposeClass) func InputStorePaymentPurposeClassArray.First() (v InputStorePaymentPurposeClass, ok bool) func InputStorePaymentPurposeClassArray.Last() (v InputStorePaymentPurposeClass, ok bool) func (*InputStorePaymentPurposeClassArray).Pop() (v InputStorePaymentPurposeClass, ok bool) func (*InputStorePaymentPurposeClassArray).PopFirst() (v InputStorePaymentPurposeClass, ok bool) func (*PaymentsAssignAppStoreTransactionRequest).GetPurpose() (value InputStorePaymentPurposeClass) func (*PaymentsAssignPlayMarketTransactionRequest).GetPurpose() (value InputStorePaymentPurposeClass) func (*PaymentsCanPurchasePremiumRequest).GetPurpose() (value InputStorePaymentPurposeClass) func (*PaymentsLaunchPrepaidGiveawayRequest).GetPurpose() (value InputStorePaymentPurposeClass) func (*Client).PaymentsCanPurchasePremium(ctx context.Context, purpose InputStorePaymentPurposeClass) (bool, error)
InputStorePaymentPurposeClassArray is adapter for slice of InputStorePaymentPurposeClass. AsInputStorePaymentGiftPremium returns copy with only InputStorePaymentGiftPremium constructors. AsInputStorePaymentPremiumGiftCode returns copy with only InputStorePaymentPremiumGiftCode constructors. AsInputStorePaymentPremiumGiveaway returns copy with only InputStorePaymentPremiumGiveaway constructors. AsInputStorePaymentPremiumSubscription returns copy with only InputStorePaymentPremiumSubscription 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 InputStorePaymentPurposeClass. Sort sorts slice of InputStorePaymentPurposeClass. SortStable sorts slice of InputStorePaymentPurposeClass. func InputStorePaymentPurposeClassArray.Retain(keep func(x InputStorePaymentPurposeClass) bool) InputStorePaymentPurposeClassArray func InputStorePaymentPurposeClassArray.Sort(less func(a, b InputStorePaymentPurposeClass) bool) InputStorePaymentPurposeClassArray func InputStorePaymentPurposeClassArray.SortStable(less func(a, b InputStorePaymentPurposeClass) bool) InputStorePaymentPurposeClassArray
InputTakeoutFileLocation represents TL type `inputTakeoutFileLocation#29be5899`. Used to download a JSON file that will contain all personal data related to features that do not have a specialized takeout method¹ yet, see here »² for more info on the takeout API. Links: 1. https://core.telegram.org/api/takeout 2. https://core.telegram.org/api/takeout See https://core.telegram.org/constructor/inputTakeoutFileLocation 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. (*InputTakeoutFileLocation) Zero() bool *InputTakeoutFileLocation : InputFileLocationClass *InputTakeoutFileLocation : github.com/gotd/td/bin.BareDecoder *InputTakeoutFileLocation : github.com/gotd/td/bin.BareEncoder *InputTakeoutFileLocation : github.com/gotd/td/bin.Decoder *InputTakeoutFileLocation : github.com/gotd/td/bin.Encoder *InputTakeoutFileLocation : github.com/gotd/td/bin.Object *InputTakeoutFileLocation : github.com/gotd/td/tdp.Object *InputTakeoutFileLocation : fmt.Stringer
InputTheme represents TL type `inputTheme#3c5693e9`. Theme See https://core.telegram.org/constructor/inputTheme for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputTheme from given interface. GetAccessHash returns value of AccessHash 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. (*InputTheme) Zero() bool *InputTheme : InputThemeClass *InputTheme : github.com/gotd/td/bin.BareDecoder *InputTheme : github.com/gotd/td/bin.BareEncoder *InputTheme : github.com/gotd/td/bin.Decoder *InputTheme : github.com/gotd/td/bin.Encoder *InputTheme : github.com/gotd/td/bin.Object *InputTheme : github.com/gotd/td/tdp.Object *InputTheme : fmt.Stringer func InputThemeArray.First() (v InputTheme, ok bool) func InputThemeArray.Last() (v InputTheme, ok bool) func (*InputThemeArray).Pop() (v InputTheme, ok bool) func (*InputThemeArray).PopFirst() (v InputTheme, ok bool) func InputThemeArray.ToMap() map[int64]InputTheme func InputThemeArray.FillMap(to map[int64]InputTheme)
InputThemeArray is adapter for slice of InputTheme. 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 InputTheme. Sort sorts slice of InputTheme. SortByID sorts slice of InputTheme by ID. SortStable sorts slice of InputTheme. SortStableByID sorts slice of InputTheme by ID. ToMap collects constructors to map. func InputThemeArray.Retain(keep func(x InputTheme) bool) InputThemeArray func InputThemeArray.Sort(less func(a, b InputTheme) bool) InputThemeArray func InputThemeArray.SortByID() InputThemeArray func InputThemeArray.SortStable(less func(a, b InputTheme) bool) InputThemeArray func InputThemeArray.SortStableByID() InputThemeArray func InputThemeClassArray.AsInputTheme() (to InputThemeArray)
InputTheme boxes the InputThemeClass providing a helper. InputTheme InputThemeClass Decode implements bin.Decoder for InputThemeBox. Encode implements bin.Encode for InputThemeBox. *InputThemeBox : github.com/gotd/td/bin.Decoder *InputThemeBox : github.com/gotd/td/bin.Encoder *InputThemeBox : github.com/gotd/td/bin.Object
InputThemeClass represents InputTheme generic type. See https://core.telegram.org/type/InputTheme for reference. Example: g, err := tg.DecodeInputTheme(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputTheme: // inputTheme#3c5693e9 case *tg.InputThemeSlug: // inputThemeSlug#f5890df1 default: panic(v) } ( InputThemeClass) Decode(b *bin.Buffer) error ( InputThemeClass) DecodeBare(b *bin.Buffer) error ( InputThemeClass) Encode(b *bin.Buffer) error ( InputThemeClass) 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. *InputTheme *InputThemeSlug InputThemeClass : github.com/gotd/td/bin.BareDecoder InputThemeClass : github.com/gotd/td/bin.BareEncoder InputThemeClass : github.com/gotd/td/bin.Decoder InputThemeClass : github.com/gotd/td/bin.Encoder InputThemeClass : github.com/gotd/td/bin.Object InputThemeClass : fmt.Stringer func DecodeInputTheme(buf *bin.Buffer) (InputThemeClass, error) func (*AccountGetThemeRequest).GetTheme() (value InputThemeClass) func (*AccountInstallThemeRequest).GetTheme() (value InputThemeClass, ok bool) func (*AccountSaveThemeRequest).GetTheme() (value InputThemeClass) func (*AccountUpdateThemeRequest).GetTheme() (value InputThemeClass) func InputThemeClassArray.First() (v InputThemeClass, ok bool) func InputThemeClassArray.Last() (v InputThemeClass, ok bool) func (*InputThemeClassArray).Pop() (v InputThemeClass, ok bool) func (*InputThemeClassArray).PopFirst() (v InputThemeClass, ok bool) func (*AccountInstallThemeRequest).SetTheme(value InputThemeClass)
InputThemeClassArray is adapter for slice of InputThemeClass. AsInputTheme returns copy with only InputTheme constructors. AsInputThemeSlug returns copy with only InputThemeSlug 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 InputThemeClass. Sort sorts slice of InputThemeClass. SortStable sorts slice of InputThemeClass. func InputThemeClassArray.Retain(keep func(x InputThemeClass) bool) InputThemeClassArray func InputThemeClassArray.Sort(less func(a, b InputThemeClass) bool) InputThemeClassArray func InputThemeClassArray.SortStable(less func(a, b InputThemeClass) bool) InputThemeClassArray
InputThemeSettings represents TL type `inputThemeSettings#8fde504f`. Theme settings See https://core.telegram.org/constructor/inputThemeSettings for reference. Accent color, ARGB format Default theme on which this theme is based Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The fill to be used as a background for outgoing messages, in RGB24 format. If just one or two equal colors are provided, describes a solid fill of a background. If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.If three or four colors are provided, describes a freeform gradient fill of a background. Use SetMessageColors and GetMessageColors helpers. If set, the freeform gradient fill needs to be animated on every sent message Accent color of outgoing messages in ARGB format Use SetOutboxAccentColor and GetOutboxAccentColor helpers. inputWallPaper¹ or inputWallPaperSlug² when passing wallpaper files for image³ or pattern⁴ wallpapers, inputWallPaperNoFile⁵ with id=0 otherwise. Links: 1) https://core.telegram.org/constructor/inputWallPaper 2) https://core.telegram.org/constructor/inputWallPaper 3) https://core.telegram.org/api/wallpapers#image-wallpapers 4) https://core.telegram.org/api/wallpapers#pattern-wallpapers 5) https://core.telegram.org/constructor/inputWallPaperNoFile Use SetWallpaper and GetWallpaper helpers. Wallpaper¹ settings. Links: 1) https://core.telegram.org/api/wallpapers Use SetWallpaperSettings and GetWallpaperSettings helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputThemeSettings from given interface. GetAccentColor returns value of AccentColor field. GetBaseTheme returns value of BaseTheme field. GetMessageColors returns value of MessageColors conditional field and boolean which is true if field was set. GetMessageColorsAnimated returns value of MessageColorsAnimated conditional field. GetOutboxAccentColor returns value of OutboxAccentColor conditional field and boolean which is true if field was set. GetWallpaper returns value of Wallpaper conditional field and boolean which is true if field was set. GetWallpaperSettings returns value of WallpaperSettings conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetMessageColors sets value of MessageColors conditional field. SetMessageColorsAnimated sets value of MessageColorsAnimated conditional field. SetOutboxAccentColor sets value of OutboxAccentColor conditional field. SetWallpaper sets value of Wallpaper conditional field. SetWallpaperSettings sets value of WallpaperSettings 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. (*InputThemeSettings) Zero() bool *InputThemeSettings : github.com/gotd/td/bin.BareDecoder *InputThemeSettings : github.com/gotd/td/bin.BareEncoder *InputThemeSettings : github.com/gotd/td/bin.Decoder *InputThemeSettings : github.com/gotd/td/bin.Encoder *InputThemeSettings : github.com/gotd/td/bin.Object *InputThemeSettings : github.com/gotd/td/tdp.Object *InputThemeSettings : fmt.Stringer func (*AccountCreateThemeRequest).GetSettings() (value []InputThemeSettings, ok bool) func (*AccountUpdateThemeRequest).GetSettings() (value []InputThemeSettings, ok bool) func (*AccountCreateThemeRequest).SetSettings(value []InputThemeSettings) func (*AccountUpdateThemeRequest).SetSettings(value []InputThemeSettings)
InputThemeSlug represents TL type `inputThemeSlug#f5890df1`. Theme by theme ID See https://core.telegram.org/constructor/inputThemeSlug for reference. slug obtained from the chat folder deep link »¹ Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputThemeSlug 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. (*InputThemeSlug) Zero() bool *InputThemeSlug : InputThemeClass *InputThemeSlug : github.com/gotd/td/bin.BareDecoder *InputThemeSlug : github.com/gotd/td/bin.BareEncoder *InputThemeSlug : github.com/gotd/td/bin.Decoder *InputThemeSlug : github.com/gotd/td/bin.Encoder *InputThemeSlug : github.com/gotd/td/bin.Object *InputThemeSlug : github.com/gotd/td/tdp.Object *InputThemeSlug : fmt.Stringer func InputThemeSlugArray.First() (v InputThemeSlug, ok bool) func InputThemeSlugArray.Last() (v InputThemeSlug, ok bool) func (*InputThemeSlugArray).Pop() (v InputThemeSlug, ok bool) func (*InputThemeSlugArray).PopFirst() (v InputThemeSlug, ok bool)
InputThemeSlugArray is adapter for slice of InputThemeSlug. 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 InputThemeSlug. Sort sorts slice of InputThemeSlug. SortStable sorts slice of InputThemeSlug. func InputThemeClassArray.AsInputThemeSlug() (to InputThemeSlugArray) func InputThemeSlugArray.Retain(keep func(x InputThemeSlug) bool) InputThemeSlugArray func InputThemeSlugArray.Sort(less func(a, b InputThemeSlug) bool) InputThemeSlugArray func InputThemeSlugArray.SortStable(less func(a, b InputThemeSlug) bool) InputThemeSlugArray
InputUser represents TL type `inputUser#f21158c6`. Defines a user for further interaction. See https://core.telegram.org/constructor/inputUser for reference. access_hash value from the user¹ constructor Links: 1) https://core.telegram.org/constructor/user User identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputUser from given interface. GetAccessHash returns value of AccessHash 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. (*InputUser) Zero() bool *InputUser : InputUserClass *InputUser : github.com/gotd/td/bin.BareDecoder *InputUser : github.com/gotd/td/bin.BareEncoder *InputUser : github.com/gotd/td/bin.Decoder *InputUser : github.com/gotd/td/bin.Encoder *InputUser : github.com/gotd/td/bin.Object *InputUser : github.com/gotd/td/tdp.Object *InputUser : fmt.Stringer func InputUserArray.First() (v InputUser, ok bool) func InputUserArray.Last() (v InputUser, ok bool) func (*InputUserArray).Pop() (v InputUser, ok bool) func (*InputUserArray).PopFirst() (v InputUser, ok bool) func (*User).AsInput() *InputUser
InputUserArray is adapter for slice of InputUser. 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 InputUser. Sort sorts slice of InputUser. SortStable sorts slice of InputUser. func InputUserArray.Retain(keep func(x InputUser) bool) InputUserArray func InputUserArray.Sort(less func(a, b InputUser) bool) InputUserArray func InputUserArray.SortStable(less func(a, b InputUser) bool) InputUserArray func InputUserClassArray.AsInputUser() (to InputUserArray)
InputUser boxes the InputUserClass providing a helper. InputUser InputUserClass Decode implements bin.Decoder for InputUserBox. Encode implements bin.Encode for InputUserBox. *InputUserBox : github.com/gotd/td/bin.Decoder *InputUserBox : github.com/gotd/td/bin.Encoder *InputUserBox : github.com/gotd/td/bin.Object
InputUserClass represents InputUser generic type. See https://core.telegram.org/type/InputUser for reference. Example: g, err := tg.DecodeInputUser(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputUserEmpty: // inputUserEmpty#b98886cf case *tg.InputUserSelf: // inputUserSelf#f7c1b13f case *tg.InputUser: // inputUser#f21158c6 case *tg.InputUserFromMessage: // inputUserFromMessage#1da448e2 default: panic(v) } ( InputUserClass) Decode(b *bin.Buffer) error ( InputUserClass) DecodeBare(b *bin.Buffer) error ( InputUserClass) Encode(b *bin.Buffer) error ( InputUserClass) 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. *InputUser *InputUserEmpty *InputUserFromMessage *InputUserSelf InputUserClass : github.com/gotd/td/bin.BareDecoder InputUserClass : github.com/gotd/td/bin.BareEncoder InputUserClass : github.com/gotd/td/bin.Decoder InputUserClass : github.com/gotd/td/bin.Encoder InputUserClass : github.com/gotd/td/bin.Object InputUserClass : fmt.Stringer func DecodeInputUser(buf *bin.Buffer) (InputUserClass, error) func (*BotCommandScopePeerUser).GetUserID() (value InputUserClass) func (*BotsAllowSendMessageRequest).GetBot() (value InputUserClass) func (*BotsCanSendMessageRequest).GetBot() (value InputUserClass) func (*BotsGetBotInfoRequest).GetBot() (value InputUserClass, ok bool) func (*BotsGetBotMenuButtonRequest).GetUserID() (value InputUserClass) func (*BotsInvokeWebViewCustomMethodRequest).GetBot() (value InputUserClass) func (*BotsReorderUsernamesRequest).GetBot() (value InputUserClass) func (*BotsSetBotInfoRequest).GetBot() (value InputUserClass, ok bool) func (*BotsSetBotMenuButtonRequest).GetUserID() (value InputUserClass) func (*BotsToggleUsernameRequest).GetBot() (value InputUserClass) func (*ChannelsEditAdminRequest).GetUserID() (value InputUserClass) func (*ChannelsEditCreatorRequest).GetUserID() (value InputUserClass) func (*ChannelsGetAdminLogRequest).GetAdmins() (value []InputUserClass, ok bool) func (*ChannelsInviteToChannelRequest).GetUsers() (value []InputUserClass) func (*ContactsAcceptContactRequest).GetID() (value InputUserClass) func (*ContactsAddContactRequest).GetID() (value InputUserClass) func (*ContactsDeleteContactsRequest).GetID() (value []InputUserClass) func (*HelpEditUserInfoRequest).GetUserID() (value InputUserClass) func (*HelpGetUserInfoRequest).GetUserID() (value InputUserClass) func (*InputBotAppShortName).GetBotID() (value InputUserClass) func (*InputGameShortName).GetBotID() (value InputUserClass) func (*InputKeyboardButtonURLAuth).GetBot() (value InputUserClass) func (*InputKeyboardButtonUserProfile).GetUserID() (value InputUserClass) func (*InputMessageEntityMentionName).GetUserID() (value InputUserClass) func (*InputPrivacyValueAllowUsers).GetUsers() (value []InputUserClass) func (*InputPrivacyValueDisallowUsers).GetUsers() (value []InputUserClass) func (*InputReplyToStory).GetUserID() (value InputUserClass) func (*InputStorePaymentGiftPremium).GetUserID() (value InputUserClass) func (*InputStorePaymentPremiumGiftCode).GetUsers() (value []InputUserClass) func InputUserClassArray.First() (v InputUserClass, ok bool) func InputUserClassArray.Last() (v InputUserClass, ok bool) func (*InputUserClassArray).Pop() (v InputUserClass, ok bool) func (*InputUserClassArray).PopFirst() (v InputUserClass, ok bool) func (*MessagesAddChatUserRequest).GetUserID() (value InputUserClass) func (*MessagesCreateChatRequest).GetUsers() (value []InputUserClass) func (*MessagesDeleteChatUserRequest).GetUserID() (value InputUserClass) func (*MessagesDeleteRevokedExportedChatInvitesRequest).GetAdminID() (value InputUserClass) func (*MessagesEditChatAdminRequest).GetUserID() (value InputUserClass) func (*MessagesGetAttachMenuBotRequest).GetBot() (value InputUserClass) func (*MessagesGetChatInviteImportersRequest).GetOffsetUser() (value InputUserClass) func (*MessagesGetCommonChatsRequest).GetUserID() (value InputUserClass) func (*MessagesGetExportedChatInvitesRequest).GetAdminID() (value InputUserClass) func (*MessagesGetGameHighScoresRequest).GetUserID() (value InputUserClass) func (*MessagesGetInlineBotResultsRequest).GetBot() (value InputUserClass) func (*MessagesGetInlineGameHighScoresRequest).GetUserID() (value InputUserClass) func (*MessagesHideChatJoinRequestRequest).GetUserID() (value InputUserClass) func (*MessagesProlongWebViewRequest).GetBot() (value InputUserClass) func (*MessagesRequestEncryptionRequest).GetUserID() (value InputUserClass) func (*MessagesRequestSimpleWebViewRequest).GetBot() (value InputUserClass) func (*MessagesRequestWebViewRequest).GetBot() (value InputUserClass) func (*MessagesSendWebViewDataRequest).GetBot() (value InputUserClass) func (*MessagesSetGameScoreRequest).GetUserID() (value InputUserClass) func (*MessagesSetInlineGameScoreRequest).GetUserID() (value InputUserClass) func (*MessagesStartBotRequest).GetBot() (value InputUserClass) func (*MessagesToggleBotInAttachMenuRequest).GetBot() (value InputUserClass) func (*PhoneInviteToGroupCallRequest).GetUsers() (value []InputUserClass) func (*PhoneRequestCallRequest).GetUserID() (value InputUserClass) func (*PhotosGetUserPhotosRequest).GetUserID() (value InputUserClass) func (*PhotosUpdateProfilePhotoRequest).GetBot() (value InputUserClass, ok bool) func (*PhotosUploadContactProfilePhotoRequest).GetUserID() (value InputUserClass) func (*PhotosUploadProfilePhotoRequest).GetBot() (value InputUserClass, ok bool) func (*PremiumGetUserBoostsRequest).GetUserID() (value InputUserClass) func (*StickersCreateStickerSetRequest).GetUserID() (value InputUserClass) func (*UsersGetFullUserRequest).GetID() (value InputUserClass) func (*UsersGetUsersRequest).GetID() (value []InputUserClass) func (*UsersSetSecureValueErrorsRequest).GetID() (value InputUserClass) func (*BotsGetBotInfoRequest).SetBot(value InputUserClass) func (*BotsSetBotInfoRequest).SetBot(value InputUserClass) func (*ChannelsGetAdminLogRequest).SetAdmins(value []InputUserClass) func (*Client).BotsAllowSendMessage(ctx context.Context, bot InputUserClass) (UpdatesClass, error) func (*Client).BotsCanSendMessage(ctx context.Context, bot InputUserClass) (bool, error) func (*Client).BotsGetBotMenuButton(ctx context.Context, userid InputUserClass) (BotMenuButtonClass, error) func (*Client).ContactsAcceptContact(ctx context.Context, id InputUserClass) (UpdatesClass, error) func (*Client).ContactsDeleteContacts(ctx context.Context, id []InputUserClass) (UpdatesClass, error) func (*Client).HelpGetUserInfo(ctx context.Context, userid InputUserClass) (HelpUserInfoClass, error) func (*Client).MessagesGetAttachMenuBot(ctx context.Context, bot InputUserClass) (*AttachMenuBotsBot, error) func (*Client).UsersGetFullUser(ctx context.Context, id InputUserClass) (*UsersUserFull, error) func (*Client).UsersGetUsers(ctx context.Context, id []InputUserClass) ([]UserClass, error) func (*PhotosUpdateProfilePhotoRequest).SetBot(value InputUserClass) func (*PhotosUploadProfilePhotoRequest).SetBot(value InputUserClass)
InputUserClassArray is adapter for slice of InputUserClass. AsInputUser returns copy with only InputUser constructors. AsInputUserFromMessage returns copy with only InputUserFromMessage 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 InputUserClass. Sort sorts slice of InputUserClass. SortStable sorts slice of InputUserClass. func (*ChannelsGetAdminLogRequest).MapAdmins() (value InputUserClassArray, ok bool) func (*ChannelsInviteToChannelRequest).MapUsers() (value InputUserClassArray) func (*ContactsDeleteContactsRequest).MapID() (value InputUserClassArray) func (*InputPrivacyValueAllowUsers).MapUsers() (value InputUserClassArray) func (*InputPrivacyValueDisallowUsers).MapUsers() (value InputUserClassArray) func (*InputStorePaymentPremiumGiftCode).MapUsers() (value InputUserClassArray) func InputUserClassArray.Retain(keep func(x InputUserClass) bool) InputUserClassArray func InputUserClassArray.Sort(less func(a, b InputUserClass) bool) InputUserClassArray func InputUserClassArray.SortStable(less func(a, b InputUserClass) bool) InputUserClassArray func (*MessagesCreateChatRequest).MapUsers() (value InputUserClassArray) func (*PhoneInviteToGroupCallRequest).MapUsers() (value InputUserClassArray) func (*UsersGetUsersRequest).MapID() (value InputUserClassArray)
InputUserEmpty represents TL type `inputUserEmpty#b98886cf`. Empty constructor, does not define a user. See https://core.telegram.org/constructor/inputUserEmpty 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. (*InputUserEmpty) Zero() bool *InputUserEmpty : InputUserClass *InputUserEmpty : github.com/gotd/td/bin.BareDecoder *InputUserEmpty : github.com/gotd/td/bin.BareEncoder *InputUserEmpty : github.com/gotd/td/bin.Decoder *InputUserEmpty : github.com/gotd/td/bin.Encoder *InputUserEmpty : github.com/gotd/td/bin.Object *InputUserEmpty : github.com/gotd/td/tdp.Object *InputUserEmpty : fmt.Stringer
InputUserFromMessage represents TL type `inputUserFromMessage#1da448e2`. Defines a min¹ user that was seen in a certain message of a certain chat. Links: 1. https://core.telegram.org/api/min See https://core.telegram.org/constructor/inputUserFromMessage for reference. The message ID The chat where the user was seen The identifier of the user that was seen Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputUserFromMessage from given interface. GetMsgID returns value of MsgID field. 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. (*InputUserFromMessage) Zero() bool *InputUserFromMessage : InputUserClass *InputUserFromMessage : github.com/gotd/td/bin.BareDecoder *InputUserFromMessage : github.com/gotd/td/bin.BareEncoder *InputUserFromMessage : github.com/gotd/td/bin.Decoder *InputUserFromMessage : github.com/gotd/td/bin.Encoder *InputUserFromMessage : github.com/gotd/td/bin.Object *InputUserFromMessage : github.com/gotd/td/tdp.Object *InputUserFromMessage : fmt.Stringer func InputUserFromMessageArray.First() (v InputUserFromMessage, ok bool) func InputUserFromMessageArray.Last() (v InputUserFromMessage, ok bool) func (*InputUserFromMessageArray).Pop() (v InputUserFromMessage, ok bool) func (*InputUserFromMessageArray).PopFirst() (v InputUserFromMessage, ok bool)
InputUserFromMessageArray is adapter for slice of InputUserFromMessage. 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 InputUserFromMessage. Sort sorts slice of InputUserFromMessage. SortStable sorts slice of InputUserFromMessage. func InputUserClassArray.AsInputUserFromMessage() (to InputUserFromMessageArray) func InputUserFromMessageArray.Retain(keep func(x InputUserFromMessage) bool) InputUserFromMessageArray func InputUserFromMessageArray.Sort(less func(a, b InputUserFromMessage) bool) InputUserFromMessageArray func InputUserFromMessageArray.SortStable(less func(a, b InputUserFromMessage) bool) InputUserFromMessageArray
InputUserSelf represents TL type `inputUserSelf#f7c1b13f`. Defines the current user. See https://core.telegram.org/constructor/inputUserSelf 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. (*InputUserSelf) Zero() bool *InputUserSelf : InputUserClass *InputUserSelf : github.com/gotd/td/bin.BareDecoder *InputUserSelf : github.com/gotd/td/bin.BareEncoder *InputUserSelf : github.com/gotd/td/bin.Decoder *InputUserSelf : github.com/gotd/td/bin.Encoder *InputUserSelf : github.com/gotd/td/bin.Object *InputUserSelf : github.com/gotd/td/tdp.Object *InputUserSelf : fmt.Stringer
InputWallPaper represents TL type `inputWallPaper#e630b979`. Wallpaper¹ Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/constructor/inputWallPaper for reference. Access hash, obtained from the botApp¹ constructor. Links: 1) https://core.telegram.org/constructor/botApp named Mini App¹ ID. Links: 1) https://core.telegram.org/api/bots/webapps#named-mini-apps Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputWallPaper from given interface. GetAccessHash returns value of AccessHash 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. (*InputWallPaper) Zero() bool *InputWallPaper : InputWallPaperClass *InputWallPaper : github.com/gotd/td/bin.BareDecoder *InputWallPaper : github.com/gotd/td/bin.BareEncoder *InputWallPaper : github.com/gotd/td/bin.Decoder *InputWallPaper : github.com/gotd/td/bin.Encoder *InputWallPaper : github.com/gotd/td/bin.Object *InputWallPaper : github.com/gotd/td/tdp.Object *InputWallPaper : fmt.Stringer func InputWallPaperArray.First() (v InputWallPaper, ok bool) func InputWallPaperArray.Last() (v InputWallPaper, ok bool) func (*InputWallPaperArray).Pop() (v InputWallPaper, ok bool) func (*InputWallPaperArray).PopFirst() (v InputWallPaper, ok bool) func InputWallPaperArray.ToMap() map[int64]InputWallPaper func (*WallPaper).AsInput() *InputWallPaper func InputWallPaperArray.FillMap(to map[int64]InputWallPaper)
InputWallPaperArray is adapter for slice of InputWallPaper. 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 InputWallPaper. Sort sorts slice of InputWallPaper. SortByID sorts slice of InputWallPaper by ID. SortStable sorts slice of InputWallPaper. SortStableByID sorts slice of InputWallPaper by ID. ToMap collects constructors to map. func InputWallPaperArray.Retain(keep func(x InputWallPaper) bool) InputWallPaperArray func InputWallPaperArray.Sort(less func(a, b InputWallPaper) bool) InputWallPaperArray func InputWallPaperArray.SortByID() InputWallPaperArray func InputWallPaperArray.SortStable(less func(a, b InputWallPaper) bool) InputWallPaperArray func InputWallPaperArray.SortStableByID() InputWallPaperArray func InputWallPaperClassArray.AsInputWallPaper() (to InputWallPaperArray)
InputWallPaper boxes the InputWallPaperClass providing a helper. InputWallPaper InputWallPaperClass Decode implements bin.Decoder for InputWallPaperBox. Encode implements bin.Encode for InputWallPaperBox. *InputWallPaperBox : github.com/gotd/td/bin.Decoder *InputWallPaperBox : github.com/gotd/td/bin.Encoder *InputWallPaperBox : github.com/gotd/td/bin.Object
InputWallPaperClass represents InputWallPaper generic type. See https://core.telegram.org/type/InputWallPaper for reference. Example: g, err := tg.DecodeInputWallPaper(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputWallPaper: // inputWallPaper#e630b979 case *tg.InputWallPaperSlug: // inputWallPaperSlug#72091c80 case *tg.InputWallPaperNoFile: // inputWallPaperNoFile#967a462e default: panic(v) } ( InputWallPaperClass) Decode(b *bin.Buffer) error ( InputWallPaperClass) DecodeBare(b *bin.Buffer) error ( InputWallPaperClass) Encode(b *bin.Buffer) error ( InputWallPaperClass) 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. *InputWallPaper *InputWallPaperNoFile *InputWallPaperSlug InputWallPaperClass : github.com/gotd/td/bin.BareDecoder InputWallPaperClass : github.com/gotd/td/bin.BareEncoder InputWallPaperClass : github.com/gotd/td/bin.Decoder InputWallPaperClass : github.com/gotd/td/bin.Encoder InputWallPaperClass : github.com/gotd/td/bin.Object InputWallPaperClass : fmt.Stringer func DecodeInputWallPaper(buf *bin.Buffer) (InputWallPaperClass, error) func (*AccountGetMultiWallPapersRequest).GetWallpapers() (value []InputWallPaperClass) func (*AccountGetWallPaperRequest).GetWallpaper() (value InputWallPaperClass) func (*AccountInstallWallPaperRequest).GetWallpaper() (value InputWallPaperClass) func (*AccountSaveWallPaperRequest).GetWallpaper() (value InputWallPaperClass) func (*InputThemeSettings).GetWallpaper() (value InputWallPaperClass, ok bool) func InputWallPaperClassArray.First() (v InputWallPaperClass, ok bool) func InputWallPaperClassArray.Last() (v InputWallPaperClass, ok bool) func (*InputWallPaperClassArray).Pop() (v InputWallPaperClass, ok bool) func (*InputWallPaperClassArray).PopFirst() (v InputWallPaperClass, ok bool) func (*MessagesSetChatWallPaperRequest).GetWallpaper() (value InputWallPaperClass, ok bool) func (*Client).AccountGetMultiWallPapers(ctx context.Context, wallpapers []InputWallPaperClass) ([]WallPaperClass, error) func (*Client).AccountGetWallPaper(ctx context.Context, wallpaper InputWallPaperClass) (WallPaperClass, error) func (*InputThemeSettings).SetWallpaper(value InputWallPaperClass) func (*MessagesSetChatWallPaperRequest).SetWallpaper(value InputWallPaperClass)
InputWallPaperClassArray is adapter for slice of InputWallPaperClass. AsInputWallPaper returns copy with only InputWallPaper constructors. AsInputWallPaperNoFile returns copy with only InputWallPaperNoFile constructors. AsInputWallPaperSlug returns copy with only InputWallPaperSlug 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 InputWallPaperClass. Sort sorts slice of InputWallPaperClass. SortStable sorts slice of InputWallPaperClass. func (*AccountGetMultiWallPapersRequest).MapWallpapers() (value InputWallPaperClassArray) func InputWallPaperClassArray.Retain(keep func(x InputWallPaperClass) bool) InputWallPaperClassArray func InputWallPaperClassArray.Sort(less func(a, b InputWallPaperClass) bool) InputWallPaperClassArray func InputWallPaperClassArray.SortStable(less func(a, b InputWallPaperClass) bool) InputWallPaperClassArray
InputWallPaperNoFile represents TL type `inputWallPaperNoFile#967a462e`. Wallpaper¹ with no file access hash, used for example when deleting (unsave=true) wallpapers using account.saveWallPaper², specifying just the wallpaper ID. Links: 1. https://core.telegram.org/api/wallpapers 2. https://core.telegram.org/method/account.saveWallPaper See https://core.telegram.org/constructor/inputWallPaperNoFile for reference. Takeout ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputWallPaperNoFile 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. (*InputWallPaperNoFile) Zero() bool *InputWallPaperNoFile : InputWallPaperClass *InputWallPaperNoFile : github.com/gotd/td/bin.BareDecoder *InputWallPaperNoFile : github.com/gotd/td/bin.BareEncoder *InputWallPaperNoFile : github.com/gotd/td/bin.Decoder *InputWallPaperNoFile : github.com/gotd/td/bin.Encoder *InputWallPaperNoFile : github.com/gotd/td/bin.Object *InputWallPaperNoFile : github.com/gotd/td/tdp.Object *InputWallPaperNoFile : fmt.Stringer func InputWallPaperNoFileArray.First() (v InputWallPaperNoFile, ok bool) func InputWallPaperNoFileArray.Last() (v InputWallPaperNoFile, ok bool) func (*InputWallPaperNoFileArray).Pop() (v InputWallPaperNoFile, ok bool) func (*InputWallPaperNoFileArray).PopFirst() (v InputWallPaperNoFile, ok bool) func InputWallPaperNoFileArray.ToMap() map[int64]InputWallPaperNoFile func (*WallPaper).AsInputWallPaperNoFile() *InputWallPaperNoFile func (*WallPaperNoFile).AsInput() *InputWallPaperNoFile func InputWallPaperNoFileArray.FillMap(to map[int64]InputWallPaperNoFile)
InputWallPaperNoFileArray is adapter for slice of InputWallPaperNoFile. 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 InputWallPaperNoFile. Sort sorts slice of InputWallPaperNoFile. SortByID sorts slice of InputWallPaperNoFile by ID. SortStable sorts slice of InputWallPaperNoFile. SortStableByID sorts slice of InputWallPaperNoFile by ID. ToMap collects constructors to map. func InputWallPaperClassArray.AsInputWallPaperNoFile() (to InputWallPaperNoFileArray) func InputWallPaperNoFileArray.Retain(keep func(x InputWallPaperNoFile) bool) InputWallPaperNoFileArray func InputWallPaperNoFileArray.Sort(less func(a, b InputWallPaperNoFile) bool) InputWallPaperNoFileArray func InputWallPaperNoFileArray.SortByID() InputWallPaperNoFileArray func InputWallPaperNoFileArray.SortStable(less func(a, b InputWallPaperNoFile) bool) InputWallPaperNoFileArray func InputWallPaperNoFileArray.SortStableByID() InputWallPaperNoFileArray
InputWallPaperSlug represents TL type `inputWallPaperSlug#72091c80`. Wallpaper¹ by slug (a unique ID, obtained from a wallpaper link »²) Links: 1. https://core.telegram.org/api/wallpapers 2. https://core.telegram.org/api/links#wallpaper-links See https://core.telegram.org/constructor/inputWallPaperSlug for reference. slug obtained from the chat folder deep link »¹ Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputWallPaperSlug 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. (*InputWallPaperSlug) Zero() bool *InputWallPaperSlug : InputWallPaperClass *InputWallPaperSlug : github.com/gotd/td/bin.BareDecoder *InputWallPaperSlug : github.com/gotd/td/bin.BareEncoder *InputWallPaperSlug : github.com/gotd/td/bin.Decoder *InputWallPaperSlug : github.com/gotd/td/bin.Encoder *InputWallPaperSlug : github.com/gotd/td/bin.Object *InputWallPaperSlug : github.com/gotd/td/tdp.Object *InputWallPaperSlug : fmt.Stringer func InputWallPaperSlugArray.First() (v InputWallPaperSlug, ok bool) func InputWallPaperSlugArray.Last() (v InputWallPaperSlug, ok bool) func (*InputWallPaperSlugArray).Pop() (v InputWallPaperSlug, ok bool) func (*InputWallPaperSlugArray).PopFirst() (v InputWallPaperSlug, ok bool) func (*WallPaper).AsInputWallPaperSlug() *InputWallPaperSlug
InputWallPaperSlugArray is adapter for slice of InputWallPaperSlug. 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 InputWallPaperSlug. Sort sorts slice of InputWallPaperSlug. SortStable sorts slice of InputWallPaperSlug. func InputWallPaperClassArray.AsInputWallPaperSlug() (to InputWallPaperSlugArray) func InputWallPaperSlugArray.Retain(keep func(x InputWallPaperSlug) bool) InputWallPaperSlugArray func InputWallPaperSlugArray.Sort(less func(a, b InputWallPaperSlug) bool) InputWallPaperSlugArray func InputWallPaperSlugArray.SortStable(less func(a, b InputWallPaperSlug) bool) InputWallPaperSlugArray
InputWebDocument represents TL type `inputWebDocument#9bed434d`. The document See https://core.telegram.org/constructor/inputWebDocument for reference. Attributes for media types Mime type Remote file size Remote document URL to be downloaded using the appropriate method¹ Links: 1) https://core.telegram.org/api/files Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputWebDocument from given interface. GetAttributes returns value of Attributes field. GetMimeType returns value of MimeType field. GetSize returns value of Size field. GetURL returns value of URL field. MapAttributes returns field Attributes wrapped in DocumentAttributeClassArray 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. (*InputWebDocument) Zero() bool *InputWebDocument : github.com/gotd/td/bin.BareDecoder *InputWebDocument : github.com/gotd/td/bin.BareEncoder *InputWebDocument : github.com/gotd/td/bin.Decoder *InputWebDocument : github.com/gotd/td/bin.Encoder *InputWebDocument : github.com/gotd/td/bin.Object *InputWebDocument : github.com/gotd/td/tdp.Object *InputWebDocument : fmt.Stringer func (*InputBotInlineMessageMediaInvoice).GetPhoto() (value InputWebDocument, ok bool) func (*InputBotInlineResult).GetContent() (value InputWebDocument, ok bool) func (*InputBotInlineResult).GetThumb() (value InputWebDocument, ok bool) func (*InputMediaInvoice).GetPhoto() (value InputWebDocument, ok bool) func (*WebDocument).AsInput() *InputWebDocument func (*InputBotInlineMessageMediaInvoice).SetPhoto(value InputWebDocument) func (*InputBotInlineResult).SetContent(value InputWebDocument) func (*InputBotInlineResult).SetThumb(value InputWebDocument) func (*InputMediaInvoice).SetPhoto(value InputWebDocument)
InputWebFileAudioAlbumThumbLocation represents TL type `inputWebFileAudioAlbumThumbLocation#f46fe924`. Used to download an album cover for any music file using upload.getWebFile¹, see the webfile docs for more info »². Links: 1. https://core.telegram.org/method/upload.getWebFile 2. https://core.telegram.org/api/files#downloading-webfiles See https://core.telegram.org/constructor/inputWebFileAudioAlbumThumbLocation for reference. The audio file in question: must NOT be provided in secret chats, provide the title and performer fields instead. Use SetDocument and GetDocument helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Song performer: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits. Use SetPerformer and GetPerformer helpers. Used to return a thumbnail with 100x100 resolution (instead of the default 600x600) Song title: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits. Use SetTitle and GetTitle helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputWebFileAudioAlbumThumbLocation from given interface. GetDocument returns value of Document conditional field and boolean which is true if field was set. GetPerformer returns value of Performer conditional field and boolean which is true if field was set. GetSmall returns value of Small conditional 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. SetPerformer sets value of Performer conditional field. SetSmall sets value of Small 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. (*InputWebFileAudioAlbumThumbLocation) Zero() bool *InputWebFileAudioAlbumThumbLocation : InputWebFileLocationClass *InputWebFileAudioAlbumThumbLocation : github.com/gotd/td/bin.BareDecoder *InputWebFileAudioAlbumThumbLocation : github.com/gotd/td/bin.BareEncoder *InputWebFileAudioAlbumThumbLocation : github.com/gotd/td/bin.Decoder *InputWebFileAudioAlbumThumbLocation : github.com/gotd/td/bin.Encoder *InputWebFileAudioAlbumThumbLocation : github.com/gotd/td/bin.Object *InputWebFileAudioAlbumThumbLocation : github.com/gotd/td/tdp.Object *InputWebFileAudioAlbumThumbLocation : fmt.Stringer func InputWebFileAudioAlbumThumbLocationArray.First() (v InputWebFileAudioAlbumThumbLocation, ok bool) func InputWebFileAudioAlbumThumbLocationArray.Last() (v InputWebFileAudioAlbumThumbLocation, ok bool) func (*InputWebFileAudioAlbumThumbLocationArray).Pop() (v InputWebFileAudioAlbumThumbLocation, ok bool) func (*InputWebFileAudioAlbumThumbLocationArray).PopFirst() (v InputWebFileAudioAlbumThumbLocation, ok bool)
InputWebFileAudioAlbumThumbLocationArray is adapter for slice of InputWebFileAudioAlbumThumbLocation. 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 InputWebFileAudioAlbumThumbLocation. Sort sorts slice of InputWebFileAudioAlbumThumbLocation. SortStable sorts slice of InputWebFileAudioAlbumThumbLocation. func InputWebFileAudioAlbumThumbLocationArray.Retain(keep func(x InputWebFileAudioAlbumThumbLocation) bool) InputWebFileAudioAlbumThumbLocationArray func InputWebFileAudioAlbumThumbLocationArray.Sort(less func(a, b InputWebFileAudioAlbumThumbLocation) bool) InputWebFileAudioAlbumThumbLocationArray func InputWebFileAudioAlbumThumbLocationArray.SortStable(less func(a, b InputWebFileAudioAlbumThumbLocation) bool) InputWebFileAudioAlbumThumbLocationArray func InputWebFileLocationClassArray.AsInputWebFileAudioAlbumThumbLocation() (to InputWebFileAudioAlbumThumbLocationArray)
InputWebFileGeoPointLocation represents TL type `inputWebFileGeoPointLocation#9f2221c9`. Used to download a server-generated image with the map preview from a geoPoint¹, see the webfile docs for more info »². Links: 1. https://core.telegram.org/constructor/geoPoint 2. https://core.telegram.org/api/files#downloading-webfiles See https://core.telegram.org/constructor/inputWebFileGeoPointLocation for reference. Access hash of the geoPoint¹ Links: 1) https://core.telegram.org/constructor/geoPoint Generated from the lat, long and accuracy_radius parameters of the geoPoint¹ Links: 1) https://core.telegram.org/constructor/geoPoint Map height in pixels before applying scale; 16-1024 Map scale; 1-3 Map width in pixels before applying scale; 16-1024 Map zoom level; 13-20 Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputWebFileGeoPointLocation from given interface. GetAccessHash returns value of AccessHash field. GetGeoPoint returns value of GeoPoint field. GetH returns value of H field. GetScale returns value of Scale field. GetW returns value of W field. GetZoom returns value of Zoom 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. (*InputWebFileGeoPointLocation) Zero() bool *InputWebFileGeoPointLocation : InputWebFileLocationClass *InputWebFileGeoPointLocation : github.com/gotd/td/bin.BareDecoder *InputWebFileGeoPointLocation : github.com/gotd/td/bin.BareEncoder *InputWebFileGeoPointLocation : github.com/gotd/td/bin.Decoder *InputWebFileGeoPointLocation : github.com/gotd/td/bin.Encoder *InputWebFileGeoPointLocation : github.com/gotd/td/bin.Object *InputWebFileGeoPointLocation : github.com/gotd/td/tdp.Object *InputWebFileGeoPointLocation : fmt.Stringer func InputWebFileGeoPointLocationArray.First() (v InputWebFileGeoPointLocation, ok bool) func InputWebFileGeoPointLocationArray.Last() (v InputWebFileGeoPointLocation, ok bool) func (*InputWebFileGeoPointLocationArray).Pop() (v InputWebFileGeoPointLocation, ok bool) func (*InputWebFileGeoPointLocationArray).PopFirst() (v InputWebFileGeoPointLocation, ok bool)
InputWebFileGeoPointLocationArray is adapter for slice of InputWebFileGeoPointLocation. 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 InputWebFileGeoPointLocation. Sort sorts slice of InputWebFileGeoPointLocation. SortStable sorts slice of InputWebFileGeoPointLocation. func InputWebFileGeoPointLocationArray.Retain(keep func(x InputWebFileGeoPointLocation) bool) InputWebFileGeoPointLocationArray func InputWebFileGeoPointLocationArray.Sort(less func(a, b InputWebFileGeoPointLocation) bool) InputWebFileGeoPointLocationArray func InputWebFileGeoPointLocationArray.SortStable(less func(a, b InputWebFileGeoPointLocation) bool) InputWebFileGeoPointLocationArray func InputWebFileLocationClassArray.AsInputWebFileGeoPointLocation() (to InputWebFileGeoPointLocationArray)
InputWebFileLocation represents TL type `inputWebFileLocation#c239d686`. Location of a remote HTTP(s) file See https://core.telegram.org/constructor/inputWebFileLocation for reference. Access hash HTTP URL of file Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InputWebFileLocation from given interface. GetAccessHash returns value of AccessHash 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. (*InputWebFileLocation) Zero() bool *InputWebFileLocation : InputWebFileLocationClass *InputWebFileLocation : github.com/gotd/td/bin.BareDecoder *InputWebFileLocation : github.com/gotd/td/bin.BareEncoder *InputWebFileLocation : github.com/gotd/td/bin.Decoder *InputWebFileLocation : github.com/gotd/td/bin.Encoder *InputWebFileLocation : github.com/gotd/td/bin.Object *InputWebFileLocation : github.com/gotd/td/tdp.Object *InputWebFileLocation : fmt.Stringer func InputWebFileLocationArray.First() (v InputWebFileLocation, ok bool) func InputWebFileLocationArray.Last() (v InputWebFileLocation, ok bool) func (*InputWebFileLocationArray).Pop() (v InputWebFileLocation, ok bool) func (*InputWebFileLocationArray).PopFirst() (v InputWebFileLocation, ok bool)
InputWebFileLocationArray is adapter for slice of InputWebFileLocation. 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 InputWebFileLocation. Sort sorts slice of InputWebFileLocation. SortStable sorts slice of InputWebFileLocation. func InputWebFileLocationArray.Retain(keep func(x InputWebFileLocation) bool) InputWebFileLocationArray func InputWebFileLocationArray.Sort(less func(a, b InputWebFileLocation) bool) InputWebFileLocationArray func InputWebFileLocationArray.SortStable(less func(a, b InputWebFileLocation) bool) InputWebFileLocationArray func InputWebFileLocationClassArray.AsInputWebFileLocation() (to InputWebFileLocationArray)
InputWebFileLocation boxes the InputWebFileLocationClass providing a helper. InputWebFileLocation InputWebFileLocationClass Decode implements bin.Decoder for InputWebFileLocationBox. Encode implements bin.Encode for InputWebFileLocationBox. *InputWebFileLocationBox : github.com/gotd/td/bin.Decoder *InputWebFileLocationBox : github.com/gotd/td/bin.Encoder *InputWebFileLocationBox : github.com/gotd/td/bin.Object
InputWebFileLocationClass represents InputWebFileLocation generic type. See https://core.telegram.org/type/InputWebFileLocation for reference. Example: g, err := tg.DecodeInputWebFileLocation(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputWebFileLocation: // inputWebFileLocation#c239d686 case *tg.InputWebFileGeoPointLocation: // inputWebFileGeoPointLocation#9f2221c9 case *tg.InputWebFileAudioAlbumThumbLocation: // inputWebFileAudioAlbumThumbLocation#f46fe924 default: panic(v) } ( InputWebFileLocationClass) Decode(b *bin.Buffer) error ( InputWebFileLocationClass) DecodeBare(b *bin.Buffer) error ( InputWebFileLocationClass) Encode(b *bin.Buffer) error ( InputWebFileLocationClass) 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. *InputWebFileAudioAlbumThumbLocation *InputWebFileGeoPointLocation *InputWebFileLocation InputWebFileLocationClass : github.com/gotd/td/bin.BareDecoder InputWebFileLocationClass : github.com/gotd/td/bin.BareEncoder InputWebFileLocationClass : github.com/gotd/td/bin.Decoder InputWebFileLocationClass : github.com/gotd/td/bin.Encoder InputWebFileLocationClass : github.com/gotd/td/bin.Object InputWebFileLocationClass : fmt.Stringer func DecodeInputWebFileLocation(buf *bin.Buffer) (InputWebFileLocationClass, error) func InputWebFileLocationClassArray.First() (v InputWebFileLocationClass, ok bool) func InputWebFileLocationClassArray.Last() (v InputWebFileLocationClass, ok bool) func (*InputWebFileLocationClassArray).Pop() (v InputWebFileLocationClass, ok bool) func (*InputWebFileLocationClassArray).PopFirst() (v InputWebFileLocationClass, ok bool) func (*UploadGetWebFileRequest).GetLocation() (value InputWebFileLocationClass)
InputWebFileLocationClassArray is adapter for slice of InputWebFileLocationClass. AsInputWebFileAudioAlbumThumbLocation returns copy with only InputWebFileAudioAlbumThumbLocation constructors. AsInputWebFileGeoPointLocation returns copy with only InputWebFileGeoPointLocation constructors. AsInputWebFileLocation returns copy with only InputWebFileLocation 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 InputWebFileLocationClass. Sort sorts slice of InputWebFileLocationClass. SortStable sorts slice of InputWebFileLocationClass. func InputWebFileLocationClassArray.Retain(keep func(x InputWebFileLocationClass) bool) InputWebFileLocationClassArray func InputWebFileLocationClassArray.Sort(less func(a, b InputWebFileLocationClass) bool) InputWebFileLocationClassArray func InputWebFileLocationClassArray.SortStable(less func(a, b InputWebFileLocationClass) bool) InputWebFileLocationClassArray
Int represents TL type `int#a8509bda`. See https://core.telegram.org/constructor/int 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. (*Int) Zero() bool *Int : github.com/gotd/td/bin.BareDecoder *Int : github.com/gotd/td/bin.BareEncoder *Int : github.com/gotd/td/bin.Decoder *Int : github.com/gotd/td/bin.Encoder *Int : github.com/gotd/td/bin.Object *Int : github.com/gotd/td/tdp.Object *Int : fmt.Stringer
IntVector is a box for Vector<int> Elements of Vector<int> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills IntVector 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. (*IntVector) Zero() bool *IntVector : github.com/gotd/td/bin.BareDecoder *IntVector : github.com/gotd/td/bin.BareEncoder *IntVector : github.com/gotd/td/bin.Decoder *IntVector : github.com/gotd/td/bin.Encoder *IntVector : github.com/gotd/td/bin.Object *IntVector : github.com/gotd/td/tdp.Object *IntVector : fmt.Stringer
Invoice represents TL type `invoice#5db95a15`. Invoice See https://core.telegram.org/constructor/invoice for reference. Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Set this flag if you require the user's email address to complete the order Set this flag if user's email address should be sent to provider Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Set this flag if the final price depends on the shipping method The maximum accepted amount for tips 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 Use SetMaxTipAmount and GetMaxTipAmount helpers. Set this flag if you require the user's full name to complete the order Set this flag if you require the user's phone number to complete the order Set this flag if user's phone number should be sent to provider Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.) Whether this is a recurring payment Set this flag if you require the user's shipping address to complete the order A vector of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount. Use SetSuggestedTipAmounts and GetSuggestedTipAmounts helpers. Terms of service URL Use SetTermsURL and GetTermsURL helpers. Test invoice Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Invoice from given interface. GetCurrency returns value of Currency field. GetEmailRequested returns value of EmailRequested conditional field. GetEmailToProvider returns value of EmailToProvider conditional field. GetFlexible returns value of Flexible conditional field. GetMaxTipAmount returns value of MaxTipAmount conditional field and boolean which is true if field was set. GetNameRequested returns value of NameRequested conditional field. GetPhoneRequested returns value of PhoneRequested conditional field. GetPhoneToProvider returns value of PhoneToProvider conditional field. GetPrices returns value of Prices field. GetRecurring returns value of Recurring conditional field. GetShippingAddressRequested returns value of ShippingAddressRequested conditional field. GetSuggestedTipAmounts returns value of SuggestedTipAmounts conditional field and boolean which is true if field was set. GetTermsURL returns value of TermsURL conditional field and boolean which is true if field was set. GetTest returns value of Test conditional field. SetEmailRequested sets value of EmailRequested conditional field. SetEmailToProvider sets value of EmailToProvider conditional field. SetFlags sets flags for non-zero fields. SetFlexible sets value of Flexible conditional field. SetMaxTipAmount sets value of MaxTipAmount conditional field. SetNameRequested sets value of NameRequested conditional field. SetPhoneRequested sets value of PhoneRequested conditional field. SetPhoneToProvider sets value of PhoneToProvider conditional field. SetRecurring sets value of Recurring conditional field. SetShippingAddressRequested sets value of ShippingAddressRequested conditional field. SetSuggestedTipAmounts sets value of SuggestedTipAmounts conditional field. SetTermsURL sets value of TermsURL 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. (*Invoice) Zero() bool *Invoice : github.com/gotd/td/bin.BareDecoder *Invoice : github.com/gotd/td/bin.BareEncoder *Invoice : github.com/gotd/td/bin.Decoder *Invoice : github.com/gotd/td/bin.Encoder *Invoice : github.com/gotd/td/bin.Object *Invoice : github.com/gotd/td/tdp.Object *Invoice : fmt.Stringer func (*InputBotInlineMessageMediaInvoice).GetInvoice() (value Invoice) func (*InputMediaInvoice).GetInvoice() (value Invoice) func (*PaymentsPaymentForm).GetInvoice() (value Invoice) func (*PaymentsPaymentReceipt).GetInvoice() (value Invoice)
InvokeAfterMsgRequest represents TL type `invokeAfterMsg#cb9f372d`. Invokes a query after successful completion of one of the previous queries. See https://core.telegram.org/constructor/invokeAfterMsg for reference. Message identifier on which a current query depends The query itself Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InvokeAfterMsgRequest from given interface. GetMsgID returns value of MsgID field. GetQuery returns value of Query 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. (*InvokeAfterMsgRequest) Zero() bool *InvokeAfterMsgRequest : github.com/gotd/td/bin.BareDecoder *InvokeAfterMsgRequest : github.com/gotd/td/bin.BareEncoder *InvokeAfterMsgRequest : github.com/gotd/td/bin.Decoder *InvokeAfterMsgRequest : github.com/gotd/td/bin.Encoder *InvokeAfterMsgRequest : github.com/gotd/td/bin.Object *InvokeAfterMsgRequest : github.com/gotd/td/tdp.Object *InvokeAfterMsgRequest : fmt.Stringer
InvokeAfterMsgsRequest represents TL type `invokeAfterMsgs#3dc4b4f0`. Invokes a query after a successful completion of previous queries See https://core.telegram.org/constructor/invokeAfterMsgs for reference. List of messages on which a current query depends The query itself Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InvokeAfterMsgsRequest from given interface. GetMsgIDs returns value of MsgIDs field. GetQuery returns value of Query 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. (*InvokeAfterMsgsRequest) Zero() bool *InvokeAfterMsgsRequest : github.com/gotd/td/bin.BareDecoder *InvokeAfterMsgsRequest : github.com/gotd/td/bin.BareEncoder *InvokeAfterMsgsRequest : github.com/gotd/td/bin.Decoder *InvokeAfterMsgsRequest : github.com/gotd/td/bin.Encoder *InvokeAfterMsgsRequest : github.com/gotd/td/bin.Object *InvokeAfterMsgsRequest : github.com/gotd/td/tdp.Object *InvokeAfterMsgsRequest : fmt.Stringer
Invoker can invoke raw MTProto rpc calls. ( Invoker) Invoke(ctx context.Context, input bin.Encoder, output bin.Decoder) error *github.com/gotd/td/internal/mtproto.Conn github.com/gotd/td/internal/pool.Conn (interface) *github.com/gotd/td/internal/pool.DC *github.com/gotd/td/telegram.Client github.com/gotd/td/telegram.CloseInvoker (interface) github.com/gotd/td/telegram.InvokeFunc *github.com/gotd/td/telegram/internal/manager.Conn func (*Client).Invoker() Invoker func NewClient(invoker Invoker) *Client func github.com/gotd/td/telegram.Middleware.Handle(next Invoker) telegram.InvokeFunc func github.com/gotd/td/telegram.MiddlewareFunc.Handle(next Invoker) telegram.InvokeFunc
InvokeWithLayerRequest represents TL type `invokeWithLayer#da9b0d0d`. Invoke the specified query using the specified API layer¹ Links: 1. https://core.telegram.org/api/invoking#layers See https://core.telegram.org/constructor/invokeWithLayer for reference. The layer to use The query Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InvokeWithLayerRequest from given interface. GetLayer returns value of Layer field. GetQuery returns value of Query 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. (*InvokeWithLayerRequest) Zero() bool *InvokeWithLayerRequest : github.com/gotd/td/bin.BareDecoder *InvokeWithLayerRequest : github.com/gotd/td/bin.BareEncoder *InvokeWithLayerRequest : github.com/gotd/td/bin.Decoder *InvokeWithLayerRequest : github.com/gotd/td/bin.Encoder *InvokeWithLayerRequest : github.com/gotd/td/bin.Object *InvokeWithLayerRequest : github.com/gotd/td/tdp.Object *InvokeWithLayerRequest : fmt.Stringer
InvokeWithMessagesRangeRequest represents TL type `invokeWithMessagesRange#365275f2`. Invoke with the given message range See https://core.telegram.org/constructor/invokeWithMessagesRange for reference. Query Message range Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InvokeWithMessagesRangeRequest from given interface. GetQuery returns value of Query field. GetRange returns value of Range 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. (*InvokeWithMessagesRangeRequest) Zero() bool *InvokeWithMessagesRangeRequest : github.com/gotd/td/bin.BareDecoder *InvokeWithMessagesRangeRequest : github.com/gotd/td/bin.BareEncoder *InvokeWithMessagesRangeRequest : github.com/gotd/td/bin.Decoder *InvokeWithMessagesRangeRequest : github.com/gotd/td/bin.Encoder *InvokeWithMessagesRangeRequest : github.com/gotd/td/bin.Object *InvokeWithMessagesRangeRequest : github.com/gotd/td/tdp.Object *InvokeWithMessagesRangeRequest : fmt.Stringer
InvokeWithoutUpdatesRequest represents TL type `invokeWithoutUpdates#bf9459b7`. Invoke a request without subscribing the used connection for updates¹ (this is enabled by default for file queries²). Links: 1. https://core.telegram.org/api/updates 2. https://core.telegram.org/api/files See https://core.telegram.org/constructor/invokeWithoutUpdates for reference. The query Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InvokeWithoutUpdatesRequest from given interface. GetQuery returns value of Query 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. (*InvokeWithoutUpdatesRequest) Zero() bool *InvokeWithoutUpdatesRequest : github.com/gotd/td/bin.BareDecoder *InvokeWithoutUpdatesRequest : github.com/gotd/td/bin.BareEncoder *InvokeWithoutUpdatesRequest : github.com/gotd/td/bin.Decoder *InvokeWithoutUpdatesRequest : github.com/gotd/td/bin.Encoder *InvokeWithoutUpdatesRequest : github.com/gotd/td/bin.Object *InvokeWithoutUpdatesRequest : github.com/gotd/td/tdp.Object *InvokeWithoutUpdatesRequest : fmt.Stringer
InvokeWithTakeoutRequest represents TL type `invokeWithTakeout#aca9fd2e`. Invoke a method within a takeout session, see here » for more info¹. Links: 1. https://core.telegram.org/api/takeout See https://core.telegram.org/constructor/invokeWithTakeout for reference. Query Takeout session ID »¹ Links: 1) https://core.telegram.org/api/takeout Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills InvokeWithTakeoutRequest from given interface. GetQuery returns value of Query field. GetTakeoutID returns value of TakeoutID 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. (*InvokeWithTakeoutRequest) Zero() bool *InvokeWithTakeoutRequest : github.com/gotd/td/bin.BareDecoder *InvokeWithTakeoutRequest : github.com/gotd/td/bin.BareEncoder *InvokeWithTakeoutRequest : github.com/gotd/td/bin.Decoder *InvokeWithTakeoutRequest : github.com/gotd/td/bin.Encoder *InvokeWithTakeoutRequest : github.com/gotd/td/bin.Object *InvokeWithTakeoutRequest : github.com/gotd/td/tdp.Object *InvokeWithTakeoutRequest : fmt.Stringer
IPPort represents TL type `ipPort#d433ad73`. See https://core.telegram.org/constructor/ipPort for reference. Ipv4 field of IPPort. Port field of IPPort. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills IPPort from given interface. GetIpv4 returns value of Ipv4 field. GetPort returns value of Port 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. (*IPPort) Zero() bool *IPPort : IPPortClass *IPPort : github.com/gotd/td/bin.BareDecoder *IPPort : github.com/gotd/td/bin.BareEncoder *IPPort : github.com/gotd/td/bin.Decoder *IPPort : github.com/gotd/td/bin.Encoder *IPPort : github.com/gotd/td/bin.Object *IPPort : github.com/gotd/td/tdp.Object *IPPort : fmt.Stringer func IPPortArray.First() (v IPPort, ok bool) func IPPortArray.Last() (v IPPort, ok bool) func (*IPPortArray).Pop() (v IPPort, ok bool) func (*IPPortArray).PopFirst() (v IPPort, ok bool)
IPPortArray is adapter for slice of IPPort. 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 IPPort. Sort sorts slice of IPPort. SortStable sorts slice of IPPort. func IPPortArray.Retain(keep func(x IPPort) bool) IPPortArray func IPPortArray.Sort(less func(a, b IPPort) bool) IPPortArray func IPPortArray.SortStable(less func(a, b IPPort) bool) IPPortArray func IPPortClassArray.AsIPPort() (to IPPortArray)
IPPort boxes the IPPortClass providing a helper. IpPort IPPortClass Decode implements bin.Decoder for IPPortBox. Encode implements bin.Encode for IPPortBox. *IPPortBox : github.com/gotd/td/bin.Decoder *IPPortBox : github.com/gotd/td/bin.Encoder *IPPortBox : github.com/gotd/td/bin.Object
IPPortClass represents IpPort generic type. See https://core.telegram.org/type/IpPort for reference. Example: g, err := tg.DecodeIPPort(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.IPPort: // ipPort#d433ad73 case *tg.IPPortSecret: // ipPortSecret#37982646 default: panic(v) } ( IPPortClass) Decode(b *bin.Buffer) error ( IPPortClass) DecodeBare(b *bin.Buffer) error ( IPPortClass) Encode(b *bin.Buffer) error ( IPPortClass) EncodeBare(b *bin.Buffer) error Ipv4 field of IPPort. Port field of IPPort. 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. *IPPort *IPPortSecret IPPortClass : github.com/gotd/td/bin.BareDecoder IPPortClass : github.com/gotd/td/bin.BareEncoder IPPortClass : github.com/gotd/td/bin.Decoder IPPortClass : github.com/gotd/td/bin.Encoder IPPortClass : github.com/gotd/td/bin.Object IPPortClass : fmt.Stringer func DecodeIPPort(buf *bin.Buffer) (IPPortClass, error) func (*AccessPointRule).GetIPs() (value []IPPortClass) func IPPortClassArray.First() (v IPPortClass, ok bool) func IPPortClassArray.Last() (v IPPortClass, ok bool) func (*IPPortClassArray).Pop() (v IPPortClass, ok bool) func (*IPPortClassArray).PopFirst() (v IPPortClass, ok bool)
IPPortClassArray is adapter for slice of IPPortClass. AsIPPort returns copy with only IPPort constructors. AsIPPortSecret returns copy with only IPPortSecret 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 IPPortClass. Sort sorts slice of IPPortClass. SortStable sorts slice of IPPortClass. func (*AccessPointRule).MapIPs() (value IPPortClassArray) func IPPortClassArray.Retain(keep func(x IPPortClass) bool) IPPortClassArray func IPPortClassArray.Sort(less func(a, b IPPortClass) bool) IPPortClassArray func IPPortClassArray.SortStable(less func(a, b IPPortClass) bool) IPPortClassArray
IPPortSecret represents TL type `ipPortSecret#37982646`. See https://core.telegram.org/constructor/ipPortSecret for reference. Ipv4 field of IPPortSecret. Port field of IPPortSecret. Secret field of IPPortSecret. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills IPPortSecret from given interface. GetIpv4 returns value of Ipv4 field. GetPort returns value of Port field. GetSecret returns value of Secret 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. (*IPPortSecret) Zero() bool *IPPortSecret : IPPortClass *IPPortSecret : github.com/gotd/td/bin.BareDecoder *IPPortSecret : github.com/gotd/td/bin.BareEncoder *IPPortSecret : github.com/gotd/td/bin.Decoder *IPPortSecret : github.com/gotd/td/bin.Encoder *IPPortSecret : github.com/gotd/td/bin.Object *IPPortSecret : github.com/gotd/td/tdp.Object *IPPortSecret : fmt.Stringer func IPPortSecretArray.First() (v IPPortSecret, ok bool) func IPPortSecretArray.Last() (v IPPortSecret, ok bool) func (*IPPortSecretArray).Pop() (v IPPortSecret, ok bool) func (*IPPortSecretArray).PopFirst() (v IPPortSecret, ok bool)
IPPortSecretArray is adapter for slice of IPPortSecret. 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 IPPortSecret. Sort sorts slice of IPPortSecret. SortStable sorts slice of IPPortSecret. func IPPortClassArray.AsIPPortSecret() (to IPPortSecretArray) func IPPortSecretArray.Retain(keep func(x IPPortSecret) bool) IPPortSecretArray func IPPortSecretArray.Sort(less func(a, b IPPortSecret) bool) IPPortSecretArray func IPPortSecretArray.SortStable(less func(a, b IPPortSecret) bool) IPPortSecretArray
JSONArray represents TL type `jsonArray#f7444763`. JSON array See https://core.telegram.org/constructor/jsonArray for reference. JSON values Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills JSONArray from given interface. GetValue returns value of Value field. MapValue returns field Value wrapped in JSONValueClassArray 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. (*JSONArray) Zero() bool *JSONArray : JSONValueClass *JSONArray : github.com/gotd/td/bin.BareDecoder *JSONArray : github.com/gotd/td/bin.BareEncoder *JSONArray : github.com/gotd/td/bin.Decoder *JSONArray : github.com/gotd/td/bin.Encoder *JSONArray : github.com/gotd/td/bin.Object *JSONArray : github.com/gotd/td/tdp.Object *JSONArray : fmt.Stringer func JSONArrayArray.First() (v JSONArray, ok bool) func JSONArrayArray.Last() (v JSONArray, ok bool) func (*JSONArrayArray).Pop() (v JSONArray, ok bool) func (*JSONArrayArray).PopFirst() (v JSONArray, ok bool)
JSONArrayArray is adapter for slice of JSONArray. 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 JSONArray. Sort sorts slice of JSONArray. SortStable sorts slice of JSONArray. func JSONArrayArray.Retain(keep func(x JSONArray) bool) JSONArrayArray func JSONArrayArray.Sort(less func(a, b JSONArray) bool) JSONArrayArray func JSONArrayArray.SortStable(less func(a, b JSONArray) bool) JSONArrayArray func JSONValueClassArray.AsJSONArray() (to JSONArrayArray)
JSONBool represents TL type `jsonBool#c7345e6a`. JSON boolean value See https://core.telegram.org/constructor/jsonBool for reference. Value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills JSONBool from given interface. 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. (*JSONBool) Zero() bool *JSONBool : JSONValueClass *JSONBool : github.com/gotd/td/bin.BareDecoder *JSONBool : github.com/gotd/td/bin.BareEncoder *JSONBool : github.com/gotd/td/bin.Decoder *JSONBool : github.com/gotd/td/bin.Encoder *JSONBool : github.com/gotd/td/bin.Object *JSONBool : github.com/gotd/td/tdp.Object *JSONBool : fmt.Stringer func JSONBoolArray.First() (v JSONBool, ok bool) func JSONBoolArray.Last() (v JSONBool, ok bool) func (*JSONBoolArray).Pop() (v JSONBool, ok bool) func (*JSONBoolArray).PopFirst() (v JSONBool, ok bool)
JSONBoolArray is adapter for slice of JSONBool. 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 JSONBool. Sort sorts slice of JSONBool. SortStable sorts slice of JSONBool. func JSONBoolArray.Retain(keep func(x JSONBool) bool) JSONBoolArray func JSONBoolArray.Sort(less func(a, b JSONBool) bool) JSONBoolArray func JSONBoolArray.SortStable(less func(a, b JSONBool) bool) JSONBoolArray func JSONValueClassArray.AsJSONBool() (to JSONBoolArray)
JSONNull represents TL type `jsonNull#3f6d7b68`. null JSON value See https://core.telegram.org/constructor/jsonNull 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. (*JSONNull) Zero() bool *JSONNull : JSONValueClass *JSONNull : github.com/gotd/td/bin.BareDecoder *JSONNull : github.com/gotd/td/bin.BareEncoder *JSONNull : github.com/gotd/td/bin.Decoder *JSONNull : github.com/gotd/td/bin.Encoder *JSONNull : github.com/gotd/td/bin.Object *JSONNull : github.com/gotd/td/tdp.Object *JSONNull : fmt.Stringer
JSONNumber represents TL type `jsonNumber#2be0dfa4`. JSON numeric value See https://core.telegram.org/constructor/jsonNumber for reference. Value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills JSONNumber from given interface. 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. (*JSONNumber) Zero() bool *JSONNumber : JSONValueClass *JSONNumber : github.com/gotd/td/bin.BareDecoder *JSONNumber : github.com/gotd/td/bin.BareEncoder *JSONNumber : github.com/gotd/td/bin.Decoder *JSONNumber : github.com/gotd/td/bin.Encoder *JSONNumber : github.com/gotd/td/bin.Object *JSONNumber : github.com/gotd/td/tdp.Object *JSONNumber : fmt.Stringer func JSONNumberArray.First() (v JSONNumber, ok bool) func JSONNumberArray.Last() (v JSONNumber, ok bool) func (*JSONNumberArray).Pop() (v JSONNumber, ok bool) func (*JSONNumberArray).PopFirst() (v JSONNumber, ok bool)
JSONNumberArray is adapter for slice of JSONNumber. 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 JSONNumber. Sort sorts slice of JSONNumber. SortStable sorts slice of JSONNumber. func JSONNumberArray.Retain(keep func(x JSONNumber) bool) JSONNumberArray func JSONNumberArray.Sort(less func(a, b JSONNumber) bool) JSONNumberArray func JSONNumberArray.SortStable(less func(a, b JSONNumber) bool) JSONNumberArray func JSONValueClassArray.AsJSONNumber() (to JSONNumberArray)
JSONObject represents TL type `jsonObject#99c1d49d`. JSON object value See https://core.telegram.org/constructor/jsonObject for reference. Values Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills JSONObject from given interface. 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. (*JSONObject) Zero() bool *JSONObject : JSONValueClass *JSONObject : github.com/gotd/td/bin.BareDecoder *JSONObject : github.com/gotd/td/bin.BareEncoder *JSONObject : github.com/gotd/td/bin.Decoder *JSONObject : github.com/gotd/td/bin.Encoder *JSONObject : github.com/gotd/td/bin.Object *JSONObject : github.com/gotd/td/tdp.Object *JSONObject : fmt.Stringer func JSONObjectArray.First() (v JSONObject, ok bool) func JSONObjectArray.Last() (v JSONObject, ok bool) func (*JSONObjectArray).Pop() (v JSONObject, ok bool) func (*JSONObjectArray).PopFirst() (v JSONObject, ok bool)
JSONObjectArray is adapter for slice of JSONObject. 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 JSONObject. Sort sorts slice of JSONObject. SortStable sorts slice of JSONObject. func JSONObjectArray.Retain(keep func(x JSONObject) bool) JSONObjectArray func JSONObjectArray.Sort(less func(a, b JSONObject) bool) JSONObjectArray func JSONObjectArray.SortStable(less func(a, b JSONObject) bool) JSONObjectArray func JSONValueClassArray.AsJSONObject() (to JSONObjectArray)
JSONObjectValue represents TL type `jsonObjectValue#c0de1bd9`. JSON key: value pair See https://core.telegram.org/constructor/jsonObjectValue for reference. Key Value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills JSONObjectValue from given interface. GetKey returns value of Key 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. (*JSONObjectValue) Zero() bool *JSONObjectValue : github.com/gotd/td/bin.BareDecoder *JSONObjectValue : github.com/gotd/td/bin.BareEncoder *JSONObjectValue : github.com/gotd/td/bin.Decoder *JSONObjectValue : github.com/gotd/td/bin.Encoder *JSONObjectValue : github.com/gotd/td/bin.Object *JSONObjectValue : github.com/gotd/td/tdp.Object *JSONObjectValue : fmt.Stringer func (*JSONObject).GetValue() (value []JSONObjectValue)
JSONString represents TL type `jsonString#b71e767a`. JSON string See https://core.telegram.org/constructor/jsonString for reference. Value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills JSONString from given interface. 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. (*JSONString) Zero() bool *JSONString : JSONValueClass *JSONString : github.com/gotd/td/bin.BareDecoder *JSONString : github.com/gotd/td/bin.BareEncoder *JSONString : github.com/gotd/td/bin.Decoder *JSONString : github.com/gotd/td/bin.Encoder *JSONString : github.com/gotd/td/bin.Object *JSONString : github.com/gotd/td/tdp.Object *JSONString : fmt.Stringer func JSONStringArray.First() (v JSONString, ok bool) func JSONStringArray.Last() (v JSONString, ok bool) func (*JSONStringArray).Pop() (v JSONString, ok bool) func (*JSONStringArray).PopFirst() (v JSONString, ok bool)
JSONStringArray is adapter for slice of JSONString. 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 JSONString. Sort sorts slice of JSONString. SortStable sorts slice of JSONString. func JSONStringArray.Retain(keep func(x JSONString) bool) JSONStringArray func JSONStringArray.Sort(less func(a, b JSONString) bool) JSONStringArray func JSONStringArray.SortStable(less func(a, b JSONString) bool) JSONStringArray func JSONValueClassArray.AsJSONString() (to JSONStringArray)
JSONValue boxes the JSONValueClass providing a helper. JSONValue JSONValueClass Decode implements bin.Decoder for JSONValueBox. Encode implements bin.Encode for JSONValueBox. *JSONValueBox : github.com/gotd/td/bin.Decoder *JSONValueBox : github.com/gotd/td/bin.Encoder *JSONValueBox : github.com/gotd/td/bin.Object
JSONValueClass represents JSONValue generic type. See https://core.telegram.org/type/JSONValue for reference. Example: g, err := tg.DecodeJSONValue(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.JSONNull: // jsonNull#3f6d7b68 case *tg.JSONBool: // jsonBool#c7345e6a case *tg.JSONNumber: // jsonNumber#2be0dfa4 case *tg.JSONString: // jsonString#b71e767a case *tg.JSONArray: // jsonArray#f7444763 case *tg.JSONObject: // jsonObject#99c1d49d default: panic(v) } ( JSONValueClass) Decode(b *bin.Buffer) error ( JSONValueClass) DecodeBare(b *bin.Buffer) error ( JSONValueClass) Encode(b *bin.Buffer) error ( JSONValueClass) 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. *JSONArray *JSONBool *JSONNull *JSONNumber *JSONObject *JSONString JSONValueClass : github.com/gotd/td/bin.BareDecoder JSONValueClass : github.com/gotd/td/bin.BareEncoder JSONValueClass : github.com/gotd/td/bin.Decoder JSONValueClass : github.com/gotd/td/bin.Encoder JSONValueClass : github.com/gotd/td/bin.Object JSONValueClass : fmt.Stringer func DecodeJSONValue(buf *bin.Buffer) (JSONValueClass, error) func (*HelpAppConfig).GetConfig() (value JSONValueClass) func (*InitConnectionRequest).GetParams() (value JSONValueClass, ok bool) func (*InputAppEvent).GetData() (value JSONValueClass) func (*JSONArray).GetValue() (value []JSONValueClass) func (*JSONObjectValue).GetValue() (value JSONValueClass) func JSONValueClassArray.First() (v JSONValueClass, ok bool) func JSONValueClassArray.Last() (v JSONValueClass, ok bool) func (*JSONValueClassArray).Pop() (v JSONValueClass, ok bool) func (*JSONValueClassArray).PopFirst() (v JSONValueClass, ok bool) func (*InitConnectionRequest).SetParams(value JSONValueClass)
JSONValueClassArray is adapter for slice of JSONValueClass. AsJSONArray returns copy with only JSONArray constructors. AsJSONBool returns copy with only JSONBool constructors. AsJSONNumber returns copy with only JSONNumber constructors. AsJSONObject returns copy with only JSONObject constructors. AsJSONString returns copy with only JSONString 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 JSONValueClass. Sort sorts slice of JSONValueClass. SortStable sorts slice of JSONValueClass. func (*JSONArray).MapValue() (value JSONValueClassArray) func JSONValueClassArray.Retain(keep func(x JSONValueClass) bool) JSONValueClassArray func JSONValueClassArray.Sort(less func(a, b JSONValueClass) bool) JSONValueClassArray func JSONValueClassArray.SortStable(less func(a, b JSONValueClass) bool) JSONValueClassArray
KeyboardButton represents TL type `keyboardButton#a2fa4880`. Bot keyboard button See https://core.telegram.org/constructor/keyboardButton for reference. Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButton from given interface. GetText returns value of Text 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. (*KeyboardButton) Zero() bool *KeyboardButton : KeyboardButtonClass *KeyboardButton : github.com/gotd/td/bin.BareDecoder *KeyboardButton : github.com/gotd/td/bin.BareEncoder *KeyboardButton : github.com/gotd/td/bin.Decoder *KeyboardButton : github.com/gotd/td/bin.Encoder *KeyboardButton : github.com/gotd/td/bin.Object *KeyboardButton : github.com/gotd/td/tdp.Object *KeyboardButton : fmt.Stringer func KeyboardButtonArray.First() (v KeyboardButton, ok bool) func KeyboardButtonArray.Last() (v KeyboardButton, ok bool) func (*KeyboardButtonArray).Pop() (v KeyboardButton, ok bool) func (*KeyboardButtonArray).PopFirst() (v KeyboardButton, ok bool)
KeyboardButtonArray is adapter for slice of KeyboardButton. 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 KeyboardButton. Sort sorts slice of KeyboardButton. SortStable sorts slice of KeyboardButton. func KeyboardButtonArray.Retain(keep func(x KeyboardButton) bool) KeyboardButtonArray func KeyboardButtonArray.Sort(less func(a, b KeyboardButton) bool) KeyboardButtonArray func KeyboardButtonArray.SortStable(less func(a, b KeyboardButton) bool) KeyboardButtonArray func KeyboardButtonClassArray.AsKeyboardButton() (to KeyboardButtonArray)
KeyboardButton boxes the KeyboardButtonClass providing a helper. KeyboardButton KeyboardButtonClass Decode implements bin.Decoder for KeyboardButtonBox. Encode implements bin.Encode for KeyboardButtonBox. *KeyboardButtonBox : github.com/gotd/td/bin.Decoder *KeyboardButtonBox : github.com/gotd/td/bin.Encoder *KeyboardButtonBox : github.com/gotd/td/bin.Object
KeyboardButtonBuy represents TL type `keyboardButtonBuy#afd93fbb`. Button to buy a product See https://core.telegram.org/constructor/keyboardButtonBuy for reference. Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonBuy from given interface. GetText returns value of Text 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. (*KeyboardButtonBuy) Zero() bool *KeyboardButtonBuy : KeyboardButtonClass *KeyboardButtonBuy : github.com/gotd/td/bin.BareDecoder *KeyboardButtonBuy : github.com/gotd/td/bin.BareEncoder *KeyboardButtonBuy : github.com/gotd/td/bin.Decoder *KeyboardButtonBuy : github.com/gotd/td/bin.Encoder *KeyboardButtonBuy : github.com/gotd/td/bin.Object *KeyboardButtonBuy : github.com/gotd/td/tdp.Object *KeyboardButtonBuy : fmt.Stringer func KeyboardButtonBuyArray.First() (v KeyboardButtonBuy, ok bool) func KeyboardButtonBuyArray.Last() (v KeyboardButtonBuy, ok bool) func (*KeyboardButtonBuyArray).Pop() (v KeyboardButtonBuy, ok bool) func (*KeyboardButtonBuyArray).PopFirst() (v KeyboardButtonBuy, ok bool)
KeyboardButtonBuyArray is adapter for slice of KeyboardButtonBuy. 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 KeyboardButtonBuy. Sort sorts slice of KeyboardButtonBuy. SortStable sorts slice of KeyboardButtonBuy. func KeyboardButtonBuyArray.Retain(keep func(x KeyboardButtonBuy) bool) KeyboardButtonBuyArray func KeyboardButtonBuyArray.Sort(less func(a, b KeyboardButtonBuy) bool) KeyboardButtonBuyArray func KeyboardButtonBuyArray.SortStable(less func(a, b KeyboardButtonBuy) bool) KeyboardButtonBuyArray func KeyboardButtonClassArray.AsKeyboardButtonBuy() (to KeyboardButtonBuyArray)
KeyboardButtonCallback represents TL type `keyboardButtonCallback#35bbdb6b`. Callback button See https://core.telegram.org/constructor/keyboardButtonCallback for reference. Callback data Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the user should verify his identity by entering his 2FA SRP parameters¹ to the messages.getBotCallbackAnswer² method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP³. This button is mainly used by the official @botfather⁴ bot, for verifying the user's identity before transferring ownership of a bot to another user. Links: 1) https://core.telegram.org/api/srp 2) https://core.telegram.org/method/messages.getBotCallbackAnswer 3) https://core.telegram.org/api/srp 4) https://t.me/botfather Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonCallback from given interface. GetData returns value of Data field. GetRequiresPassword returns value of RequiresPassword conditional field. GetText returns value of Text field. SetFlags sets flags for non-zero fields. SetRequiresPassword sets value of RequiresPassword 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. (*KeyboardButtonCallback) Zero() bool *KeyboardButtonCallback : KeyboardButtonClass *KeyboardButtonCallback : github.com/gotd/td/bin.BareDecoder *KeyboardButtonCallback : github.com/gotd/td/bin.BareEncoder *KeyboardButtonCallback : github.com/gotd/td/bin.Decoder *KeyboardButtonCallback : github.com/gotd/td/bin.Encoder *KeyboardButtonCallback : github.com/gotd/td/bin.Object *KeyboardButtonCallback : github.com/gotd/td/tdp.Object *KeyboardButtonCallback : fmt.Stringer func KeyboardButtonCallbackArray.First() (v KeyboardButtonCallback, ok bool) func KeyboardButtonCallbackArray.Last() (v KeyboardButtonCallback, ok bool) func (*KeyboardButtonCallbackArray).Pop() (v KeyboardButtonCallback, ok bool) func (*KeyboardButtonCallbackArray).PopFirst() (v KeyboardButtonCallback, ok bool)
KeyboardButtonCallbackArray is adapter for slice of KeyboardButtonCallback. 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 KeyboardButtonCallback. Sort sorts slice of KeyboardButtonCallback. SortStable sorts slice of KeyboardButtonCallback. func KeyboardButtonCallbackArray.Retain(keep func(x KeyboardButtonCallback) bool) KeyboardButtonCallbackArray func KeyboardButtonCallbackArray.Sort(less func(a, b KeyboardButtonCallback) bool) KeyboardButtonCallbackArray func KeyboardButtonCallbackArray.SortStable(less func(a, b KeyboardButtonCallback) bool) KeyboardButtonCallbackArray func KeyboardButtonClassArray.AsKeyboardButtonCallback() (to KeyboardButtonCallbackArray)
KeyboardButtonClass represents KeyboardButton generic type. See https://core.telegram.org/type/KeyboardButton for reference. Example: g, err := tg.DecodeKeyboardButton(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.KeyboardButton: // keyboardButton#a2fa4880 case *tg.KeyboardButtonURL: // keyboardButtonUrl#258aff05 case *tg.KeyboardButtonCallback: // keyboardButtonCallback#35bbdb6b case *tg.KeyboardButtonRequestPhone: // keyboardButtonRequestPhone#b16a6c29 case *tg.KeyboardButtonRequestGeoLocation: // keyboardButtonRequestGeoLocation#fc796b3f case *tg.KeyboardButtonSwitchInline: // keyboardButtonSwitchInline#93b9fbb5 case *tg.KeyboardButtonGame: // keyboardButtonGame#50f41ccf case *tg.KeyboardButtonBuy: // keyboardButtonBuy#afd93fbb case *tg.KeyboardButtonURLAuth: // keyboardButtonUrlAuth#10b78d29 case *tg.InputKeyboardButtonURLAuth: // inputKeyboardButtonUrlAuth#d02e7fd4 case *tg.KeyboardButtonRequestPoll: // keyboardButtonRequestPoll#bbc7515d case *tg.InputKeyboardButtonUserProfile: // inputKeyboardButtonUserProfile#e988037b case *tg.KeyboardButtonUserProfile: // keyboardButtonUserProfile#308660c1 case *tg.KeyboardButtonWebView: // keyboardButtonWebView#13767230 case *tg.KeyboardButtonSimpleWebView: // keyboardButtonSimpleWebView#a0c0505c case *tg.KeyboardButtonRequestPeer: // keyboardButtonRequestPeer#53d7bfd8 default: panic(v) } ( KeyboardButtonClass) Decode(b *bin.Buffer) error ( KeyboardButtonClass) DecodeBare(b *bin.Buffer) error ( KeyboardButtonClass) Encode(b *bin.Buffer) error ( KeyboardButtonClass) EncodeBare(b *bin.Buffer) error Button text 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. *InputKeyboardButtonURLAuth *InputKeyboardButtonUserProfile *KeyboardButton *KeyboardButtonBuy *KeyboardButtonCallback *KeyboardButtonGame *KeyboardButtonRequestGeoLocation *KeyboardButtonRequestPeer *KeyboardButtonRequestPhone *KeyboardButtonRequestPoll *KeyboardButtonSimpleWebView *KeyboardButtonSwitchInline *KeyboardButtonURL *KeyboardButtonURLAuth *KeyboardButtonUserProfile *KeyboardButtonWebView KeyboardButtonClass : github.com/gotd/td/bin.BareDecoder KeyboardButtonClass : github.com/gotd/td/bin.BareEncoder KeyboardButtonClass : github.com/gotd/td/bin.Decoder KeyboardButtonClass : github.com/gotd/td/bin.Encoder KeyboardButtonClass : github.com/gotd/td/bin.Object KeyboardButtonClass : fmt.Stringer func DecodeKeyboardButton(buf *bin.Buffer) (KeyboardButtonClass, error) func KeyboardButtonClassArray.First() (v KeyboardButtonClass, ok bool) func KeyboardButtonClassArray.Last() (v KeyboardButtonClass, ok bool) func (*KeyboardButtonClassArray).Pop() (v KeyboardButtonClass, ok bool) func (*KeyboardButtonClassArray).PopFirst() (v KeyboardButtonClass, ok bool) func (*KeyboardButtonRow).GetButtons() (value []KeyboardButtonClass)
KeyboardButtonClassArray is adapter for slice of KeyboardButtonClass. AsInputKeyboardButtonURLAuth returns copy with only InputKeyboardButtonURLAuth constructors. AsInputKeyboardButtonUserProfile returns copy with only InputKeyboardButtonUserProfile constructors. AsKeyboardButton returns copy with only KeyboardButton constructors. AsKeyboardButtonBuy returns copy with only KeyboardButtonBuy constructors. AsKeyboardButtonCallback returns copy with only KeyboardButtonCallback constructors. AsKeyboardButtonGame returns copy with only KeyboardButtonGame constructors. AsKeyboardButtonRequestGeoLocation returns copy with only KeyboardButtonRequestGeoLocation constructors. AsKeyboardButtonRequestPeer returns copy with only KeyboardButtonRequestPeer constructors. AsKeyboardButtonRequestPhone returns copy with only KeyboardButtonRequestPhone constructors. AsKeyboardButtonRequestPoll returns copy with only KeyboardButtonRequestPoll constructors. AsKeyboardButtonSimpleWebView returns copy with only KeyboardButtonSimpleWebView constructors. AsKeyboardButtonSwitchInline returns copy with only KeyboardButtonSwitchInline constructors. AsKeyboardButtonURL returns copy with only KeyboardButtonURL constructors. AsKeyboardButtonURLAuth returns copy with only KeyboardButtonURLAuth constructors. AsKeyboardButtonUserProfile returns copy with only KeyboardButtonUserProfile constructors. AsKeyboardButtonWebView returns copy with only KeyboardButtonWebView 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 KeyboardButtonClass. Sort sorts slice of KeyboardButtonClass. SortStable sorts slice of KeyboardButtonClass. func KeyboardButtonClassArray.Retain(keep func(x KeyboardButtonClass) bool) KeyboardButtonClassArray func KeyboardButtonClassArray.Sort(less func(a, b KeyboardButtonClass) bool) KeyboardButtonClassArray func KeyboardButtonClassArray.SortStable(less func(a, b KeyboardButtonClass) bool) KeyboardButtonClassArray func (*KeyboardButtonRow).MapButtons() (value KeyboardButtonClassArray)
KeyboardButtonGame represents TL type `keyboardButtonGame#50f41ccf`. Button to start a game See https://core.telegram.org/constructor/keyboardButtonGame for reference. Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonGame from given interface. GetText returns value of Text 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. (*KeyboardButtonGame) Zero() bool *KeyboardButtonGame : KeyboardButtonClass *KeyboardButtonGame : github.com/gotd/td/bin.BareDecoder *KeyboardButtonGame : github.com/gotd/td/bin.BareEncoder *KeyboardButtonGame : github.com/gotd/td/bin.Decoder *KeyboardButtonGame : github.com/gotd/td/bin.Encoder *KeyboardButtonGame : github.com/gotd/td/bin.Object *KeyboardButtonGame : github.com/gotd/td/tdp.Object *KeyboardButtonGame : fmt.Stringer func KeyboardButtonGameArray.First() (v KeyboardButtonGame, ok bool) func KeyboardButtonGameArray.Last() (v KeyboardButtonGame, ok bool) func (*KeyboardButtonGameArray).Pop() (v KeyboardButtonGame, ok bool) func (*KeyboardButtonGameArray).PopFirst() (v KeyboardButtonGame, ok bool)
KeyboardButtonGameArray is adapter for slice of KeyboardButtonGame. 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 KeyboardButtonGame. Sort sorts slice of KeyboardButtonGame. SortStable sorts slice of KeyboardButtonGame. func KeyboardButtonClassArray.AsKeyboardButtonGame() (to KeyboardButtonGameArray) func KeyboardButtonGameArray.Retain(keep func(x KeyboardButtonGame) bool) KeyboardButtonGameArray func KeyboardButtonGameArray.Sort(less func(a, b KeyboardButtonGame) bool) KeyboardButtonGameArray func KeyboardButtonGameArray.SortStable(less func(a, b KeyboardButtonGame) bool) KeyboardButtonGameArray
KeyboardButtonRequestGeoLocation represents TL type `keyboardButtonRequestGeoLocation#fc796b3f`. Button to request a user's geolocation See https://core.telegram.org/constructor/keyboardButtonRequestGeoLocation for reference. Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonRequestGeoLocation from given interface. GetText returns value of Text 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. (*KeyboardButtonRequestGeoLocation) Zero() bool *KeyboardButtonRequestGeoLocation : KeyboardButtonClass *KeyboardButtonRequestGeoLocation : github.com/gotd/td/bin.BareDecoder *KeyboardButtonRequestGeoLocation : github.com/gotd/td/bin.BareEncoder *KeyboardButtonRequestGeoLocation : github.com/gotd/td/bin.Decoder *KeyboardButtonRequestGeoLocation : github.com/gotd/td/bin.Encoder *KeyboardButtonRequestGeoLocation : github.com/gotd/td/bin.Object *KeyboardButtonRequestGeoLocation : github.com/gotd/td/tdp.Object *KeyboardButtonRequestGeoLocation : fmt.Stringer func KeyboardButtonRequestGeoLocationArray.First() (v KeyboardButtonRequestGeoLocation, ok bool) func KeyboardButtonRequestGeoLocationArray.Last() (v KeyboardButtonRequestGeoLocation, ok bool) func (*KeyboardButtonRequestGeoLocationArray).Pop() (v KeyboardButtonRequestGeoLocation, ok bool) func (*KeyboardButtonRequestGeoLocationArray).PopFirst() (v KeyboardButtonRequestGeoLocation, ok bool)
KeyboardButtonRequestGeoLocationArray is adapter for slice of KeyboardButtonRequestGeoLocation. 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 KeyboardButtonRequestGeoLocation. Sort sorts slice of KeyboardButtonRequestGeoLocation. SortStable sorts slice of KeyboardButtonRequestGeoLocation. func KeyboardButtonClassArray.AsKeyboardButtonRequestGeoLocation() (to KeyboardButtonRequestGeoLocationArray) func KeyboardButtonRequestGeoLocationArray.Retain(keep func(x KeyboardButtonRequestGeoLocation) bool) KeyboardButtonRequestGeoLocationArray func KeyboardButtonRequestGeoLocationArray.Sort(less func(a, b KeyboardButtonRequestGeoLocation) bool) KeyboardButtonRequestGeoLocationArray func KeyboardButtonRequestGeoLocationArray.SortStable(less func(a, b KeyboardButtonRequestGeoLocation) bool) KeyboardButtonRequestGeoLocationArray
KeyboardButtonRequestPeer represents TL type `keyboardButtonRequestPeer#53d7bfd8`. Prompts the user to select and share a peer with the bot using messages sendBotRequestedPeer¹ Links: 1. https://core.telegram.org/method/messages.sendBotRequestedPeer See https://core.telegram.org/constructor/keyboardButtonRequestPeer for reference. Button ID, to be passed to messages.sendBotRequestedPeer¹. Links: 1) https://core.telegram.org/method/messages.sendBotRequestedPeer MaxQuantity field of KeyboardButtonRequestPeer. Filtering criteria to use for the peer selection list shown to the user. The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use a peer of the specified type, if needed. Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonRequestPeer from given interface. GetButtonID returns value of ButtonID field. GetMaxQuantity returns value of MaxQuantity field. GetPeerType returns value of PeerType field. GetText returns value of Text 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. (*KeyboardButtonRequestPeer) Zero() bool *KeyboardButtonRequestPeer : KeyboardButtonClass *KeyboardButtonRequestPeer : github.com/gotd/td/bin.BareDecoder *KeyboardButtonRequestPeer : github.com/gotd/td/bin.BareEncoder *KeyboardButtonRequestPeer : github.com/gotd/td/bin.Decoder *KeyboardButtonRequestPeer : github.com/gotd/td/bin.Encoder *KeyboardButtonRequestPeer : github.com/gotd/td/bin.Object *KeyboardButtonRequestPeer : github.com/gotd/td/tdp.Object *KeyboardButtonRequestPeer : fmt.Stringer func KeyboardButtonRequestPeerArray.First() (v KeyboardButtonRequestPeer, ok bool) func KeyboardButtonRequestPeerArray.Last() (v KeyboardButtonRequestPeer, ok bool) func (*KeyboardButtonRequestPeerArray).Pop() (v KeyboardButtonRequestPeer, ok bool) func (*KeyboardButtonRequestPeerArray).PopFirst() (v KeyboardButtonRequestPeer, ok bool)
KeyboardButtonRequestPeerArray is adapter for slice of KeyboardButtonRequestPeer. 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 KeyboardButtonRequestPeer. Sort sorts slice of KeyboardButtonRequestPeer. SortStable sorts slice of KeyboardButtonRequestPeer. func KeyboardButtonClassArray.AsKeyboardButtonRequestPeer() (to KeyboardButtonRequestPeerArray) func KeyboardButtonRequestPeerArray.Retain(keep func(x KeyboardButtonRequestPeer) bool) KeyboardButtonRequestPeerArray func KeyboardButtonRequestPeerArray.Sort(less func(a, b KeyboardButtonRequestPeer) bool) KeyboardButtonRequestPeerArray func KeyboardButtonRequestPeerArray.SortStable(less func(a, b KeyboardButtonRequestPeer) bool) KeyboardButtonRequestPeerArray
KeyboardButtonRequestPhone represents TL type `keyboardButtonRequestPhone#b16a6c29`. Button to request a user's phone number See https://core.telegram.org/constructor/keyboardButtonRequestPhone for reference. Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonRequestPhone from given interface. GetText returns value of Text 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. (*KeyboardButtonRequestPhone) Zero() bool *KeyboardButtonRequestPhone : KeyboardButtonClass *KeyboardButtonRequestPhone : github.com/gotd/td/bin.BareDecoder *KeyboardButtonRequestPhone : github.com/gotd/td/bin.BareEncoder *KeyboardButtonRequestPhone : github.com/gotd/td/bin.Decoder *KeyboardButtonRequestPhone : github.com/gotd/td/bin.Encoder *KeyboardButtonRequestPhone : github.com/gotd/td/bin.Object *KeyboardButtonRequestPhone : github.com/gotd/td/tdp.Object *KeyboardButtonRequestPhone : fmt.Stringer func KeyboardButtonRequestPhoneArray.First() (v KeyboardButtonRequestPhone, ok bool) func KeyboardButtonRequestPhoneArray.Last() (v KeyboardButtonRequestPhone, ok bool) func (*KeyboardButtonRequestPhoneArray).Pop() (v KeyboardButtonRequestPhone, ok bool) func (*KeyboardButtonRequestPhoneArray).PopFirst() (v KeyboardButtonRequestPhone, ok bool)
KeyboardButtonRequestPhoneArray is adapter for slice of KeyboardButtonRequestPhone. 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 KeyboardButtonRequestPhone. Sort sorts slice of KeyboardButtonRequestPhone. SortStable sorts slice of KeyboardButtonRequestPhone. func KeyboardButtonClassArray.AsKeyboardButtonRequestPhone() (to KeyboardButtonRequestPhoneArray) func KeyboardButtonRequestPhoneArray.Retain(keep func(x KeyboardButtonRequestPhone) bool) KeyboardButtonRequestPhoneArray func KeyboardButtonRequestPhoneArray.Sort(less func(a, b KeyboardButtonRequestPhone) bool) KeyboardButtonRequestPhoneArray func KeyboardButtonRequestPhoneArray.SortStable(less func(a, b KeyboardButtonRequestPhone) bool) KeyboardButtonRequestPhoneArray
KeyboardButtonRequestPoll represents TL type `keyboardButtonRequestPoll#bbc7515d`. A button that allows the user to create and send a poll when pressed; available only in private See https://core.telegram.org/constructor/keyboardButtonRequestPoll for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, only quiz polls can be sent Use SetQuiz and GetQuiz helpers. Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonRequestPoll from given interface. GetQuiz returns value of Quiz conditional field and boolean which is true if field was set. GetText returns value of Text field. SetFlags sets flags for non-zero fields. SetQuiz sets value of Quiz 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. (*KeyboardButtonRequestPoll) Zero() bool *KeyboardButtonRequestPoll : KeyboardButtonClass *KeyboardButtonRequestPoll : github.com/gotd/td/bin.BareDecoder *KeyboardButtonRequestPoll : github.com/gotd/td/bin.BareEncoder *KeyboardButtonRequestPoll : github.com/gotd/td/bin.Decoder *KeyboardButtonRequestPoll : github.com/gotd/td/bin.Encoder *KeyboardButtonRequestPoll : github.com/gotd/td/bin.Object *KeyboardButtonRequestPoll : github.com/gotd/td/tdp.Object *KeyboardButtonRequestPoll : fmt.Stringer func KeyboardButtonRequestPollArray.First() (v KeyboardButtonRequestPoll, ok bool) func KeyboardButtonRequestPollArray.Last() (v KeyboardButtonRequestPoll, ok bool) func (*KeyboardButtonRequestPollArray).Pop() (v KeyboardButtonRequestPoll, ok bool) func (*KeyboardButtonRequestPollArray).PopFirst() (v KeyboardButtonRequestPoll, ok bool)
KeyboardButtonRequestPollArray is adapter for slice of KeyboardButtonRequestPoll. 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 KeyboardButtonRequestPoll. Sort sorts slice of KeyboardButtonRequestPoll. SortStable sorts slice of KeyboardButtonRequestPoll. func KeyboardButtonClassArray.AsKeyboardButtonRequestPoll() (to KeyboardButtonRequestPollArray) func KeyboardButtonRequestPollArray.Retain(keep func(x KeyboardButtonRequestPoll) bool) KeyboardButtonRequestPollArray func KeyboardButtonRequestPollArray.Sort(less func(a, b KeyboardButtonRequestPoll) bool) KeyboardButtonRequestPollArray func KeyboardButtonRequestPollArray.SortStable(less func(a, b KeyboardButtonRequestPoll) bool) KeyboardButtonRequestPollArray
KeyboardButtonRow represents TL type `keyboardButtonRow#77608b83`. Inline keyboard row See https://core.telegram.org/constructor/keyboardButtonRow for reference. Bot or inline keyboard buttons Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonRow from given interface. GetButtons returns value of Buttons field. MapButtons returns field Buttons wrapped in KeyboardButtonClassArray 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. (*KeyboardButtonRow) Zero() bool *KeyboardButtonRow : github.com/gotd/td/bin.BareDecoder *KeyboardButtonRow : github.com/gotd/td/bin.BareEncoder *KeyboardButtonRow : github.com/gotd/td/bin.Decoder *KeyboardButtonRow : github.com/gotd/td/bin.Encoder *KeyboardButtonRow : github.com/gotd/td/bin.Object *KeyboardButtonRow : github.com/gotd/td/tdp.Object *KeyboardButtonRow : fmt.Stringer func (*ReplyInlineMarkup).GetRows() (value []KeyboardButtonRow) func (*ReplyKeyboardMarkup).GetRows() (value []KeyboardButtonRow)
KeyboardButtonSimpleWebView represents TL type `keyboardButtonSimpleWebView#a0c0505c`. Button to open a bot mini app¹ using messages.requestSimpleWebView², without sending user information to the web app. Can only be sent or received as part of a reply keyboard, use keyboardButtonWebView¹ for inline keyboards. Links: 1. https://core.telegram.org/api/bots/webapps 2. https://core.telegram.org/method/messages.requestSimpleWebView 3. https://core.telegram.org/constructor/keyboardButtonWebView See https://core.telegram.org/constructor/keyboardButtonSimpleWebView 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 KeyboardButtonSimpleWebView 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. (*KeyboardButtonSimpleWebView) Zero() bool *KeyboardButtonSimpleWebView : KeyboardButtonClass *KeyboardButtonSimpleWebView : github.com/gotd/td/bin.BareDecoder *KeyboardButtonSimpleWebView : github.com/gotd/td/bin.BareEncoder *KeyboardButtonSimpleWebView : github.com/gotd/td/bin.Decoder *KeyboardButtonSimpleWebView : github.com/gotd/td/bin.Encoder *KeyboardButtonSimpleWebView : github.com/gotd/td/bin.Object *KeyboardButtonSimpleWebView : github.com/gotd/td/tdp.Object *KeyboardButtonSimpleWebView : fmt.Stringer func KeyboardButtonSimpleWebViewArray.First() (v KeyboardButtonSimpleWebView, ok bool) func KeyboardButtonSimpleWebViewArray.Last() (v KeyboardButtonSimpleWebView, ok bool) func (*KeyboardButtonSimpleWebViewArray).Pop() (v KeyboardButtonSimpleWebView, ok bool) func (*KeyboardButtonSimpleWebViewArray).PopFirst() (v KeyboardButtonSimpleWebView, ok bool)
KeyboardButtonSimpleWebViewArray is adapter for slice of KeyboardButtonSimpleWebView. 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 KeyboardButtonSimpleWebView. Sort sorts slice of KeyboardButtonSimpleWebView. SortStable sorts slice of KeyboardButtonSimpleWebView. func KeyboardButtonClassArray.AsKeyboardButtonSimpleWebView() (to KeyboardButtonSimpleWebViewArray) func KeyboardButtonSimpleWebViewArray.Retain(keep func(x KeyboardButtonSimpleWebView) bool) KeyboardButtonSimpleWebViewArray func KeyboardButtonSimpleWebViewArray.Sort(less func(a, b KeyboardButtonSimpleWebView) bool) KeyboardButtonSimpleWebViewArray func KeyboardButtonSimpleWebViewArray.SortStable(less func(a, b KeyboardButtonSimpleWebView) bool) KeyboardButtonSimpleWebViewArray
KeyboardButtonSwitchInline represents TL type `keyboardButtonSwitchInline#93b9fbb5`. Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. See https://core.telegram.org/constructor/keyboardButtonSwitchInline for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Filter to use when selecting chats. Use SetPeerTypes and GetPeerTypes helpers. The inline query to use If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. Button label Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonSwitchInline from given interface. GetPeerTypes returns value of PeerTypes conditional field and boolean which is true if field was set. GetQuery returns value of Query field. GetSamePeer returns value of SamePeer conditional field. GetText returns value of Text field. MapPeerTypes returns field PeerTypes wrapped in InlineQueryPeerTypeClassArray helper. SetFlags sets flags for non-zero fields. SetPeerTypes sets value of PeerTypes conditional field. SetSamePeer sets value of SamePeer 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. (*KeyboardButtonSwitchInline) Zero() bool *KeyboardButtonSwitchInline : KeyboardButtonClass *KeyboardButtonSwitchInline : github.com/gotd/td/bin.BareDecoder *KeyboardButtonSwitchInline : github.com/gotd/td/bin.BareEncoder *KeyboardButtonSwitchInline : github.com/gotd/td/bin.Decoder *KeyboardButtonSwitchInline : github.com/gotd/td/bin.Encoder *KeyboardButtonSwitchInline : github.com/gotd/td/bin.Object *KeyboardButtonSwitchInline : github.com/gotd/td/tdp.Object *KeyboardButtonSwitchInline : fmt.Stringer func KeyboardButtonSwitchInlineArray.First() (v KeyboardButtonSwitchInline, ok bool) func KeyboardButtonSwitchInlineArray.Last() (v KeyboardButtonSwitchInline, ok bool) func (*KeyboardButtonSwitchInlineArray).Pop() (v KeyboardButtonSwitchInline, ok bool) func (*KeyboardButtonSwitchInlineArray).PopFirst() (v KeyboardButtonSwitchInline, ok bool)
KeyboardButtonSwitchInlineArray is adapter for slice of KeyboardButtonSwitchInline. 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 KeyboardButtonSwitchInline. Sort sorts slice of KeyboardButtonSwitchInline. SortStable sorts slice of KeyboardButtonSwitchInline. func KeyboardButtonClassArray.AsKeyboardButtonSwitchInline() (to KeyboardButtonSwitchInlineArray) func KeyboardButtonSwitchInlineArray.Retain(keep func(x KeyboardButtonSwitchInline) bool) KeyboardButtonSwitchInlineArray func KeyboardButtonSwitchInlineArray.Sort(less func(a, b KeyboardButtonSwitchInline) bool) KeyboardButtonSwitchInlineArray func KeyboardButtonSwitchInlineArray.SortStable(less func(a, b KeyboardButtonSwitchInline) bool) KeyboardButtonSwitchInlineArray
KeyboardButtonURL represents TL type `keyboardButtonUrl#258aff05`. URL button See https://core.telegram.org/constructor/keyboardButtonUrl 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 KeyboardButtonURL 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. (*KeyboardButtonURL) Zero() bool *KeyboardButtonURL : KeyboardButtonClass *KeyboardButtonURL : github.com/gotd/td/bin.BareDecoder *KeyboardButtonURL : github.com/gotd/td/bin.BareEncoder *KeyboardButtonURL : github.com/gotd/td/bin.Decoder *KeyboardButtonURL : github.com/gotd/td/bin.Encoder *KeyboardButtonURL : github.com/gotd/td/bin.Object *KeyboardButtonURL : github.com/gotd/td/tdp.Object *KeyboardButtonURL : fmt.Stringer func KeyboardButtonURLArray.First() (v KeyboardButtonURL, ok bool) func KeyboardButtonURLArray.Last() (v KeyboardButtonURL, ok bool) func (*KeyboardButtonURLArray).Pop() (v KeyboardButtonURL, ok bool) func (*KeyboardButtonURLArray).PopFirst() (v KeyboardButtonURL, ok bool)
KeyboardButtonURLArray is adapter for slice of KeyboardButtonURL. 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 KeyboardButtonURL. Sort sorts slice of KeyboardButtonURL. SortStable sorts slice of KeyboardButtonURL. func KeyboardButtonClassArray.AsKeyboardButtonURL() (to KeyboardButtonURLArray) func KeyboardButtonURLArray.Retain(keep func(x KeyboardButtonURL) bool) KeyboardButtonURLArray func KeyboardButtonURLArray.Sort(less func(a, b KeyboardButtonURL) bool) KeyboardButtonURLArray func KeyboardButtonURLArray.SortStable(less func(a, b KeyboardButtonURL) bool) KeyboardButtonURLArray
KeyboardButtonURLAuth represents TL type `keyboardButtonUrlAuth#10b78d29`. Button to request a user to authorize via URL using Seamless Telegram Login¹. When the user clicks on such a button, messages.requestUrlAuth² should be called, providing the button_id and the ID of the container message. The returned urlAuthResultRequest³ object will contain more details about the authorization request (request_write_access if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call messages.acceptUrlAuth⁴ to get a urlAuthResultAccepted⁵ with the URL to open instead of the url of this constructor, or a urlAuthResultDefault⁶, in which case the url of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the url of this constructor must be used. Links: 1. https://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots 2. https://core.telegram.org/method/messages.requestUrlAuth 3. https://core.telegram.org/constructor/urlAuthResultRequest 4. https://core.telegram.org/method/messages.acceptUrlAuth 5. https://core.telegram.org/constructor/urlAuthResultAccepted 6. https://core.telegram.org/constructor/urlAuthResultDefault See https://core.telegram.org/constructor/keyboardButtonUrlAuth for reference. ID of the button to pass to messages.requestUrlAuth¹ Links: 1) https://core.telegram.org/method/messages.requestUrlAuth Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields New text of the button in forwarded messages. Use SetFwdText and GetFwdText helpers. Button label An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data¹.NOTE: Services must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization². Links: 1) https://core.telegram.org/widgets/login#receiving-authorization-data 2) https://core.telegram.org/widgets/login#checking-authorization Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonURLAuth from given interface. GetButtonID returns value of ButtonID field. GetFwdText returns value of FwdText conditional field and boolean which is true if field was set. GetText returns value of Text field. GetURL returns value of URL field. SetFlags sets flags for non-zero fields. SetFwdText sets value of FwdText 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. (*KeyboardButtonURLAuth) Zero() bool *KeyboardButtonURLAuth : KeyboardButtonClass *KeyboardButtonURLAuth : github.com/gotd/td/bin.BareDecoder *KeyboardButtonURLAuth : github.com/gotd/td/bin.BareEncoder *KeyboardButtonURLAuth : github.com/gotd/td/bin.Decoder *KeyboardButtonURLAuth : github.com/gotd/td/bin.Encoder *KeyboardButtonURLAuth : github.com/gotd/td/bin.Object *KeyboardButtonURLAuth : github.com/gotd/td/tdp.Object *KeyboardButtonURLAuth : fmt.Stringer func KeyboardButtonURLAuthArray.First() (v KeyboardButtonURLAuth, ok bool) func KeyboardButtonURLAuthArray.Last() (v KeyboardButtonURLAuth, ok bool) func (*KeyboardButtonURLAuthArray).Pop() (v KeyboardButtonURLAuth, ok bool) func (*KeyboardButtonURLAuthArray).PopFirst() (v KeyboardButtonURLAuth, ok bool)
KeyboardButtonURLAuthArray is adapter for slice of KeyboardButtonURLAuth. 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 KeyboardButtonURLAuth. Sort sorts slice of KeyboardButtonURLAuth. SortStable sorts slice of KeyboardButtonURLAuth. func KeyboardButtonClassArray.AsKeyboardButtonURLAuth() (to KeyboardButtonURLAuthArray) func KeyboardButtonURLAuthArray.Retain(keep func(x KeyboardButtonURLAuth) bool) KeyboardButtonURLAuthArray func KeyboardButtonURLAuthArray.Sort(less func(a, b KeyboardButtonURLAuth) bool) KeyboardButtonURLAuthArray func KeyboardButtonURLAuthArray.SortStable(less func(a, b KeyboardButtonURLAuth) bool) KeyboardButtonURLAuthArray
KeyboardButtonUserProfile represents TL type `keyboardButtonUserProfile#308660c1`. Button that links directly to a user profile See https://core.telegram.org/constructor/keyboardButtonUserProfile for reference. Button text User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills KeyboardButtonUserProfile from given interface. GetText returns value of Text 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. (*KeyboardButtonUserProfile) Zero() bool *KeyboardButtonUserProfile : KeyboardButtonClass *KeyboardButtonUserProfile : github.com/gotd/td/bin.BareDecoder *KeyboardButtonUserProfile : github.com/gotd/td/bin.BareEncoder *KeyboardButtonUserProfile : github.com/gotd/td/bin.Decoder *KeyboardButtonUserProfile : github.com/gotd/td/bin.Encoder *KeyboardButtonUserProfile : github.com/gotd/td/bin.Object *KeyboardButtonUserProfile : github.com/gotd/td/tdp.Object *KeyboardButtonUserProfile : fmt.Stringer func KeyboardButtonUserProfileArray.First() (v KeyboardButtonUserProfile, ok bool) func KeyboardButtonUserProfileArray.Last() (v KeyboardButtonUserProfile, ok bool) func (*KeyboardButtonUserProfileArray).Pop() (v KeyboardButtonUserProfile, ok bool) func (*KeyboardButtonUserProfileArray).PopFirst() (v KeyboardButtonUserProfile, ok bool)
KeyboardButtonUserProfileArray is adapter for slice of KeyboardButtonUserProfile. 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 KeyboardButtonUserProfile. Sort sorts slice of KeyboardButtonUserProfile. SortStable sorts slice of KeyboardButtonUserProfile. func KeyboardButtonClassArray.AsKeyboardButtonUserProfile() (to KeyboardButtonUserProfileArray) func KeyboardButtonUserProfileArray.Retain(keep func(x KeyboardButtonUserProfile) bool) KeyboardButtonUserProfileArray func KeyboardButtonUserProfileArray.Sort(less func(a, b KeyboardButtonUserProfile) bool) KeyboardButtonUserProfileArray func KeyboardButtonUserProfileArray.SortStable(less func(a, b KeyboardButtonUserProfile) bool) KeyboardButtonUserProfileArray
KeyboardButtonWebView represents TL type `keyboardButtonWebView#13767230`. Button to open a bot mini app¹ using messages.requestWebView², sending over user information after user confirmation. Can only be sent or received as part of an inline keyboard, use keyboardButtonSimpleWebView¹ for reply keyboards. Links: 1. https://core.telegram.org/api/bots/webapps 2. https://core.telegram.org/method/messages.requestWebView 3. https://core.telegram.org/constructor/keyboardButtonSimpleWebView See https://core.telegram.org/constructor/keyboardButtonWebView 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 KeyboardButtonWebView 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. (*KeyboardButtonWebView) Zero() bool *KeyboardButtonWebView : KeyboardButtonClass *KeyboardButtonWebView : github.com/gotd/td/bin.BareDecoder *KeyboardButtonWebView : github.com/gotd/td/bin.BareEncoder *KeyboardButtonWebView : github.com/gotd/td/bin.Decoder *KeyboardButtonWebView : github.com/gotd/td/bin.Encoder *KeyboardButtonWebView : github.com/gotd/td/bin.Object *KeyboardButtonWebView : github.com/gotd/td/tdp.Object *KeyboardButtonWebView : fmt.Stringer func KeyboardButtonWebViewArray.First() (v KeyboardButtonWebView, ok bool) func KeyboardButtonWebViewArray.Last() (v KeyboardButtonWebView, ok bool) func (*KeyboardButtonWebViewArray).Pop() (v KeyboardButtonWebView, ok bool) func (*KeyboardButtonWebViewArray).PopFirst() (v KeyboardButtonWebView, ok bool)
KeyboardButtonWebViewArray is adapter for slice of KeyboardButtonWebView. 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 KeyboardButtonWebView. Sort sorts slice of KeyboardButtonWebView. SortStable sorts slice of KeyboardButtonWebView. func KeyboardButtonClassArray.AsKeyboardButtonWebView() (to KeyboardButtonWebViewArray) func KeyboardButtonWebViewArray.Retain(keep func(x KeyboardButtonWebView) bool) KeyboardButtonWebViewArray func KeyboardButtonWebViewArray.Sort(less func(a, b KeyboardButtonWebView) bool) KeyboardButtonWebViewArray func KeyboardButtonWebViewArray.SortStable(less func(a, b KeyboardButtonWebView) bool) KeyboardButtonWebViewArray
LabeledPrice represents TL type `labeledPrice#cb296bf8`. This object represents a portion of the price for goods or services. See https://core.telegram.org/constructor/labeledPrice for reference. Price of the product 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 Portion label Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LabeledPrice from given interface. GetAmount returns value of Amount field. GetLabel returns value of Label 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. (*LabeledPrice) Zero() bool *LabeledPrice : github.com/gotd/td/bin.BareDecoder *LabeledPrice : github.com/gotd/td/bin.BareEncoder *LabeledPrice : github.com/gotd/td/bin.Decoder *LabeledPrice : github.com/gotd/td/bin.Encoder *LabeledPrice : github.com/gotd/td/bin.Object *LabeledPrice : github.com/gotd/td/tdp.Object *LabeledPrice : fmt.Stringer func (*Invoice).GetPrices() (value []LabeledPrice) func (*ShippingOption).GetPrices() (value []LabeledPrice)
LangPackDifference represents TL type `langPackDifference#f385c1f6`. Changes to the app's localization pack See https://core.telegram.org/constructor/langPackDifference for reference. Previous version number Language code Localized strings New version number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangPackDifference from given interface. GetFromVersion returns value of FromVersion field. GetLangCode returns value of LangCode field. GetStrings returns value of Strings field. GetVersion returns value of Version field. MapStrings returns field Strings wrapped in LangPackStringClassArray 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. (*LangPackDifference) Zero() bool *LangPackDifference : github.com/gotd/td/bin.BareDecoder *LangPackDifference : github.com/gotd/td/bin.BareEncoder *LangPackDifference : github.com/gotd/td/bin.Decoder *LangPackDifference : github.com/gotd/td/bin.Encoder *LangPackDifference : github.com/gotd/td/bin.Object *LangPackDifference : github.com/gotd/td/tdp.Object *LangPackDifference : fmt.Stringer func (*Client).LangpackGetDifference(ctx context.Context, request *LangpackGetDifferenceRequest) (*LangPackDifference, error) func (*Client).LangpackGetLangPack(ctx context.Context, request *LangpackGetLangPackRequest) (*LangPackDifference, error) func (*UpdateLangPack).GetDifference() (value LangPackDifference)
LangpackGetDifferenceRequest represents TL type `langpack.getDifference#cd984aa5`. Get new strings in language pack See https://core.telegram.org/method/langpack.getDifference for reference. Previous localization pack version Language code Language pack Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangpackGetDifferenceRequest from given interface. GetFromVersion returns value of FromVersion field. GetLangCode returns value of LangCode field. GetLangPack returns value of LangPack 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. (*LangpackGetDifferenceRequest) Zero() bool *LangpackGetDifferenceRequest : github.com/gotd/td/bin.BareDecoder *LangpackGetDifferenceRequest : github.com/gotd/td/bin.BareEncoder *LangpackGetDifferenceRequest : github.com/gotd/td/bin.Decoder *LangpackGetDifferenceRequest : github.com/gotd/td/bin.Encoder *LangpackGetDifferenceRequest : github.com/gotd/td/bin.Object *LangpackGetDifferenceRequest : github.com/gotd/td/tdp.Object *LangpackGetDifferenceRequest : fmt.Stringer func (*Client).LangpackGetDifference(ctx context.Context, request *LangpackGetDifferenceRequest) (*LangPackDifference, error)
LangpackGetLangPackRequest represents TL type `langpack.getLangPack#f2f2330a`. Get localization pack strings See https://core.telegram.org/method/langpack.getLangPack for reference. Language code Language pack name, usually obtained from a language pack link¹ Links: 1) https://core.telegram.org/api/links#language-pack-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangpackGetLangPackRequest from given interface. GetLangCode returns value of LangCode field. GetLangPack returns value of LangPack 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. (*LangpackGetLangPackRequest) Zero() bool *LangpackGetLangPackRequest : github.com/gotd/td/bin.BareDecoder *LangpackGetLangPackRequest : github.com/gotd/td/bin.BareEncoder *LangpackGetLangPackRequest : github.com/gotd/td/bin.Decoder *LangpackGetLangPackRequest : github.com/gotd/td/bin.Encoder *LangpackGetLangPackRequest : github.com/gotd/td/bin.Object *LangpackGetLangPackRequest : github.com/gotd/td/tdp.Object *LangpackGetLangPackRequest : fmt.Stringer func (*Client).LangpackGetLangPack(ctx context.Context, request *LangpackGetLangPackRequest) (*LangPackDifference, error)
LangpackGetLanguageRequest represents TL type `langpack.getLanguage#6a596502`. Get information about a language in a localization pack See https://core.telegram.org/method/langpack.getLanguage for reference. Language code Language pack name, usually obtained from a language pack link¹ Links: 1) https://core.telegram.org/api/links#language-pack-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangpackGetLanguageRequest from given interface. GetLangCode returns value of LangCode field. GetLangPack returns value of LangPack 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. (*LangpackGetLanguageRequest) Zero() bool *LangpackGetLanguageRequest : github.com/gotd/td/bin.BareDecoder *LangpackGetLanguageRequest : github.com/gotd/td/bin.BareEncoder *LangpackGetLanguageRequest : github.com/gotd/td/bin.Decoder *LangpackGetLanguageRequest : github.com/gotd/td/bin.Encoder *LangpackGetLanguageRequest : github.com/gotd/td/bin.Object *LangpackGetLanguageRequest : github.com/gotd/td/tdp.Object *LangpackGetLanguageRequest : fmt.Stringer func (*Client).LangpackGetLanguage(ctx context.Context, request *LangpackGetLanguageRequest) (*LangPackLanguage, error)
LangpackGetLanguagesRequest represents TL type `langpack.getLanguages#42c6978f`. Get information about all languages in a localization pack See https://core.telegram.org/method/langpack.getLanguages for reference. Language pack Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangpackGetLanguagesRequest from given interface. GetLangPack returns value of LangPack 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. (*LangpackGetLanguagesRequest) Zero() bool *LangpackGetLanguagesRequest : github.com/gotd/td/bin.BareDecoder *LangpackGetLanguagesRequest : github.com/gotd/td/bin.BareEncoder *LangpackGetLanguagesRequest : github.com/gotd/td/bin.Decoder *LangpackGetLanguagesRequest : github.com/gotd/td/bin.Encoder *LangpackGetLanguagesRequest : github.com/gotd/td/bin.Object *LangpackGetLanguagesRequest : github.com/gotd/td/tdp.Object *LangpackGetLanguagesRequest : fmt.Stringer
LangpackGetStringsRequest represents TL type `langpack.getStrings#efea3803`. Get strings from a language pack See https://core.telegram.org/method/langpack.getStrings for reference. Strings to get Language code Language pack name, usually obtained from a language pack link¹ Links: 1) https://core.telegram.org/api/links#language-pack-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangpackGetStringsRequest from given interface. GetKeys returns value of Keys field. GetLangCode returns value of LangCode field. GetLangPack returns value of LangPack 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. (*LangpackGetStringsRequest) Zero() bool *LangpackGetStringsRequest : github.com/gotd/td/bin.BareDecoder *LangpackGetStringsRequest : github.com/gotd/td/bin.BareEncoder *LangpackGetStringsRequest : github.com/gotd/td/bin.Decoder *LangpackGetStringsRequest : github.com/gotd/td/bin.Encoder *LangpackGetStringsRequest : github.com/gotd/td/bin.Object *LangpackGetStringsRequest : github.com/gotd/td/tdp.Object *LangpackGetStringsRequest : fmt.Stringer func (*Client).LangpackGetStrings(ctx context.Context, request *LangpackGetStringsRequest) ([]LangPackStringClass, error)
LangPackHandler is a LangPack event handler. func UpdateDispatcher.OnLangPack(handler LangPackHandler)
LangPackLanguage represents TL type `langPackLanguage#eeca5ce3`. Identifies a localization pack See https://core.telegram.org/constructor/langPackLanguage for reference. Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs Use SetBaseLangCode and GetBaseLangCode helpers. Is this a beta localization pack? Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Language code (pack identifier) Language name Language name in the language itself Whether the language pack is official A language code to be used to apply plural forms. See https://www.unicode org/cldr/charts/latest/supplemental/language_plural_rules.html¹ for more info Links: 1) https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html Is this a localization pack for an RTL language Total number of non-deleted strings from the language pack Total number of translated strings from the language pack Link to language translation interface; empty for custom local language packs Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangPackLanguage from given interface. GetBaseLangCode returns value of BaseLangCode conditional field and boolean which is true if field was set. GetBeta returns value of Beta conditional field. GetLangCode returns value of LangCode field. GetName returns value of Name field. GetNativeName returns value of NativeName field. GetOfficial returns value of Official conditional field. GetPluralCode returns value of PluralCode field. GetRtl returns value of Rtl conditional field. GetStringsCount returns value of StringsCount field. GetTranslatedCount returns value of TranslatedCount field. GetTranslationsURL returns value of TranslationsURL field. SetBaseLangCode sets value of BaseLangCode conditional field. SetBeta sets value of Beta conditional field. SetFlags sets flags for non-zero fields. SetOfficial sets value of Official conditional field. SetRtl sets value of Rtl 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. (*LangPackLanguage) Zero() bool *LangPackLanguage : github.com/gotd/td/bin.BareDecoder *LangPackLanguage : github.com/gotd/td/bin.BareEncoder *LangPackLanguage : github.com/gotd/td/bin.Decoder *LangPackLanguage : github.com/gotd/td/bin.Encoder *LangPackLanguage : github.com/gotd/td/bin.Object *LangPackLanguage : github.com/gotd/td/tdp.Object *LangPackLanguage : fmt.Stringer func (*Client).LangpackGetLanguage(ctx context.Context, request *LangpackGetLanguageRequest) (*LangPackLanguage, error) func (*Client).LangpackGetLanguages(ctx context.Context, langpack string) ([]LangPackLanguage, error) func (*LangPackLanguageVector).GetElems() (value []LangPackLanguage)
LangPackLanguageVector is a box for Vector<LangPackLanguage> Elements of Vector<LangPackLanguage> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangPackLanguageVector 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. (*LangPackLanguageVector) Zero() bool *LangPackLanguageVector : github.com/gotd/td/bin.BareDecoder *LangPackLanguageVector : github.com/gotd/td/bin.BareEncoder *LangPackLanguageVector : github.com/gotd/td/bin.Decoder *LangPackLanguageVector : github.com/gotd/td/bin.Encoder *LangPackLanguageVector : github.com/gotd/td/bin.Object *LangPackLanguageVector : github.com/gotd/td/tdp.Object *LangPackLanguageVector : fmt.Stringer
LangPackString represents TL type `langPackString#cad181f6`. Translated localization string See https://core.telegram.org/constructor/langPackString for reference. Key and Value describe the build setting. Key must not contain an equals sign, space, tab, or newline. Value must not contain newlines ('\n'). Key and Value describe the build setting. Key must not contain an equals sign, space, tab, or newline. Value must not contain newlines ('\n'). Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangPackString from given interface. GetKey returns value of Key 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. (*LangPackString) Zero() bool *LangPackString : LangPackStringClass *LangPackString : github.com/gotd/td/bin.BareDecoder *LangPackString : github.com/gotd/td/bin.BareEncoder *LangPackString : github.com/gotd/td/bin.Decoder *LangPackString : github.com/gotd/td/bin.Encoder *LangPackString : github.com/gotd/td/bin.Object *LangPackString : github.com/gotd/td/tdp.Object *LangPackString : fmt.Stringer func LangPackStringArray.First() (v LangPackString, ok bool) func LangPackStringArray.Last() (v LangPackString, ok bool) func (*LangPackStringArray).Pop() (v LangPackString, ok bool) func (*LangPackStringArray).PopFirst() (v LangPackString, ok bool)
LangPackStringArray is adapter for slice of LangPackString. 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 LangPackString. Sort sorts slice of LangPackString. SortStable sorts slice of LangPackString. func LangPackStringArray.Retain(keep func(x LangPackString) bool) LangPackStringArray func LangPackStringArray.Sort(less func(a, b LangPackString) bool) LangPackStringArray func LangPackStringArray.SortStable(less func(a, b LangPackString) bool) LangPackStringArray func LangPackStringClassArray.AsLangPackString() (to LangPackStringArray)
LangPackString boxes the LangPackStringClass providing a helper. LangPackString LangPackStringClass Decode implements bin.Decoder for LangPackStringBox. Encode implements bin.Encode for LangPackStringBox. *LangPackStringBox : github.com/gotd/td/bin.Decoder *LangPackStringBox : github.com/gotd/td/bin.Encoder *LangPackStringBox : github.com/gotd/td/bin.Object
LangPackStringClass represents LangPackString generic type. See https://core.telegram.org/type/LangPackString for reference. Example: g, err := tg.DecodeLangPackString(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.LangPackString: // langPackString#cad181f6 case *tg.LangPackStringPluralized: // langPackStringPluralized#6c47ac9f case *tg.LangPackStringDeleted: // langPackStringDeleted#2979eeb2 default: panic(v) } ( LangPackStringClass) Decode(b *bin.Buffer) error ( LangPackStringClass) DecodeBare(b *bin.Buffer) error ( LangPackStringClass) Encode(b *bin.Buffer) error ( LangPackStringClass) EncodeBare(b *bin.Buffer) error Language key 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. *LangPackString *LangPackStringDeleted *LangPackStringPluralized LangPackStringClass : github.com/gotd/td/bin.BareDecoder LangPackStringClass : github.com/gotd/td/bin.BareEncoder LangPackStringClass : github.com/gotd/td/bin.Decoder LangPackStringClass : github.com/gotd/td/bin.Encoder LangPackStringClass : github.com/gotd/td/bin.Object LangPackStringClass : fmt.Stringer func DecodeLangPackString(buf *bin.Buffer) (LangPackStringClass, error) func (*Client).LangpackGetStrings(ctx context.Context, request *LangpackGetStringsRequest) ([]LangPackStringClass, error) func (*LangPackDifference).GetStrings() (value []LangPackStringClass) func LangPackStringClassArray.First() (v LangPackStringClass, ok bool) func LangPackStringClassArray.Last() (v LangPackStringClass, ok bool) func (*LangPackStringClassArray).Pop() (v LangPackStringClass, ok bool) func (*LangPackStringClassArray).PopFirst() (v LangPackStringClass, ok bool) func (*LangPackStringClassVector).GetElems() (value []LangPackStringClass)
LangPackStringClassArray is adapter for slice of LangPackStringClass. AsLangPackString returns copy with only LangPackString constructors. AsLangPackStringDeleted returns copy with only LangPackStringDeleted constructors. AsLangPackStringPluralized returns copy with only LangPackStringPluralized 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 LangPackStringClass. Sort sorts slice of LangPackStringClass. SortStable sorts slice of LangPackStringClass. func (*LangPackDifference).MapStrings() (value LangPackStringClassArray) func LangPackStringClassArray.Retain(keep func(x LangPackStringClass) bool) LangPackStringClassArray func LangPackStringClassArray.Sort(less func(a, b LangPackStringClass) bool) LangPackStringClassArray func LangPackStringClassArray.SortStable(less func(a, b LangPackStringClass) bool) LangPackStringClassArray func (*LangPackStringClassVector).MapElems() (value LangPackStringClassArray)
LangPackStringClassVector is a box for Vector<LangPackString> Elements of Vector<LangPackString> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangPackStringClassVector from given interface. GetElems returns value of Elems field. MapElems returns field Elems wrapped in LangPackStringClassArray 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. (*LangPackStringClassVector) Zero() bool *LangPackStringClassVector : github.com/gotd/td/bin.BareDecoder *LangPackStringClassVector : github.com/gotd/td/bin.BareEncoder *LangPackStringClassVector : github.com/gotd/td/bin.Decoder *LangPackStringClassVector : github.com/gotd/td/bin.Encoder *LangPackStringClassVector : github.com/gotd/td/bin.Object *LangPackStringClassVector : github.com/gotd/td/tdp.Object *LangPackStringClassVector : fmt.Stringer
LangPackStringDeleted represents TL type `langPackStringDeleted#2979eeb2`. Deleted localization string See https://core.telegram.org/constructor/langPackStringDeleted for reference. Localization key Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangPackStringDeleted 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. (*LangPackStringDeleted) Zero() bool *LangPackStringDeleted : LangPackStringClass *LangPackStringDeleted : github.com/gotd/td/bin.BareDecoder *LangPackStringDeleted : github.com/gotd/td/bin.BareEncoder *LangPackStringDeleted : github.com/gotd/td/bin.Decoder *LangPackStringDeleted : github.com/gotd/td/bin.Encoder *LangPackStringDeleted : github.com/gotd/td/bin.Object *LangPackStringDeleted : github.com/gotd/td/tdp.Object *LangPackStringDeleted : fmt.Stringer func LangPackStringDeletedArray.First() (v LangPackStringDeleted, ok bool) func LangPackStringDeletedArray.Last() (v LangPackStringDeleted, ok bool) func (*LangPackStringDeletedArray).Pop() (v LangPackStringDeleted, ok bool) func (*LangPackStringDeletedArray).PopFirst() (v LangPackStringDeleted, ok bool)
LangPackStringDeletedArray is adapter for slice of LangPackStringDeleted. 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 LangPackStringDeleted. Sort sorts slice of LangPackStringDeleted. SortStable sorts slice of LangPackStringDeleted. func LangPackStringClassArray.AsLangPackStringDeleted() (to LangPackStringDeletedArray) func LangPackStringDeletedArray.Retain(keep func(x LangPackStringDeleted) bool) LangPackStringDeletedArray func LangPackStringDeletedArray.Sort(less func(a, b LangPackStringDeleted) bool) LangPackStringDeletedArray func LangPackStringDeletedArray.SortStable(less func(a, b LangPackStringDeleted) bool) LangPackStringDeletedArray
LangPackStringPluralized represents TL type `langPackStringPluralized#6c47ac9f`. A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode org/cldr/charts/latest/supplemental/language_plural_rules.html¹ for more info Links: 1. https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html See https://core.telegram.org/constructor/langPackStringPluralized for reference. Value for a few objects Use SetFewValue and GetFewValue helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Localization key Value for many objects Use SetManyValue and GetManyValue helpers. Value for one object Use SetOneValue and GetOneValue helpers. Default value Value for two objects Use SetTwoValue and GetTwoValue helpers. Value for zero objects Use SetZeroValue and GetZeroValue helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LangPackStringPluralized from given interface. GetFewValue returns value of FewValue conditional field and boolean which is true if field was set. GetKey returns value of Key field. GetManyValue returns value of ManyValue conditional field and boolean which is true if field was set. GetOneValue returns value of OneValue conditional field and boolean which is true if field was set. GetOtherValue returns value of OtherValue field. GetTwoValue returns value of TwoValue conditional field and boolean which is true if field was set. GetZeroValue returns value of ZeroValue conditional field and boolean which is true if field was set. SetFewValue sets value of FewValue conditional field. SetFlags sets flags for non-zero fields. SetManyValue sets value of ManyValue conditional field. SetOneValue sets value of OneValue conditional field. SetTwoValue sets value of TwoValue conditional field. SetZeroValue sets value of ZeroValue 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. (*LangPackStringPluralized) Zero() bool *LangPackStringPluralized : LangPackStringClass *LangPackStringPluralized : github.com/gotd/td/bin.BareDecoder *LangPackStringPluralized : github.com/gotd/td/bin.BareEncoder *LangPackStringPluralized : github.com/gotd/td/bin.Decoder *LangPackStringPluralized : github.com/gotd/td/bin.Encoder *LangPackStringPluralized : github.com/gotd/td/bin.Object *LangPackStringPluralized : github.com/gotd/td/tdp.Object *LangPackStringPluralized : fmt.Stringer func LangPackStringPluralizedArray.First() (v LangPackStringPluralized, ok bool) func LangPackStringPluralizedArray.Last() (v LangPackStringPluralized, ok bool) func (*LangPackStringPluralizedArray).Pop() (v LangPackStringPluralized, ok bool) func (*LangPackStringPluralizedArray).PopFirst() (v LangPackStringPluralized, ok bool)
LangPackStringPluralizedArray is adapter for slice of LangPackStringPluralized. 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 LangPackStringPluralized. Sort sorts slice of LangPackStringPluralized. SortStable sorts slice of LangPackStringPluralized. func LangPackStringClassArray.AsLangPackStringPluralized() (to LangPackStringPluralizedArray) func LangPackStringPluralizedArray.Retain(keep func(x LangPackStringPluralized) bool) LangPackStringPluralizedArray func LangPackStringPluralizedArray.Sort(less func(a, b LangPackStringPluralized) bool) LangPackStringPluralizedArray func LangPackStringPluralizedArray.SortStable(less func(a, b LangPackStringPluralized) bool) LangPackStringPluralizedArray
LangPackTooLongHandler is a LangPackTooLong event handler. func UpdateDispatcher.OnLangPackTooLong(handler LangPackTooLongHandler)
LoginTokenHandler is a LoginToken event handler. func UpdateDispatcher.OnLoginToken(handler LoginTokenHandler)
Long represents TL type `long#22076cba`. See https://core.telegram.org/constructor/long 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. (*Long) Zero() bool *Long : github.com/gotd/td/bin.BareDecoder *Long : github.com/gotd/td/bin.BareEncoder *Long : github.com/gotd/td/bin.Decoder *Long : github.com/gotd/td/bin.Encoder *Long : github.com/gotd/td/bin.Object *Long : github.com/gotd/td/tdp.Object *Long : fmt.Stringer
LongVector is a box for Vector<long> Elements of Vector<long> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills LongVector 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. (*LongVector) Zero() bool *LongVector : github.com/gotd/td/bin.BareDecoder *LongVector : github.com/gotd/td/bin.BareEncoder *LongVector : github.com/gotd/td/bin.Decoder *LongVector : github.com/gotd/td/bin.Encoder *LongVector : github.com/gotd/td/bin.Object *LongVector : github.com/gotd/td/tdp.Object *LongVector : fmt.Stringer
MaskCoords represents TL type `maskCoords#aed6dbb2`. Position on a photo where a mask should be placed when attaching stickers to media »¹ The n position indicates where the mask should be placed: Links: 1. https://core.telegram.org/api/stickers#attached-stickers See https://core.telegram.org/constructor/maskCoords for reference. Part of the face, relative to which the mask should be placed Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position) Shift by Y-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just below the default mask position) Mask scaling coefficient. (For example, 2.0 means a doubled size) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MaskCoords from given interface. GetN returns value of N field. GetX returns value of X field. GetY returns value of Y field. GetZoom returns value of Zoom 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. (*MaskCoords) Zero() bool *MaskCoords : github.com/gotd/td/bin.BareDecoder *MaskCoords : github.com/gotd/td/bin.BareEncoder *MaskCoords : github.com/gotd/td/bin.Decoder *MaskCoords : github.com/gotd/td/bin.Encoder *MaskCoords : github.com/gotd/td/bin.Object *MaskCoords : github.com/gotd/td/tdp.Object *MaskCoords : fmt.Stringer func (*DocumentAttributeSticker).GetMaskCoords() (value MaskCoords, ok bool) func (*InputStickerSetItem).GetMaskCoords() (value MaskCoords, ok bool) func (*StickersChangeStickerRequest).GetMaskCoords() (value MaskCoords, ok bool) func (*DocumentAttributeSticker).SetMaskCoords(value MaskCoords) func (*InputStickerSetItem).SetMaskCoords(value MaskCoords) func (*StickersChangeStickerRequest).SetMaskCoords(value MaskCoords)
MediaArea boxes the MediaAreaClass providing a helper. MediaArea MediaAreaClass Decode implements bin.Decoder for MediaAreaBox. Encode implements bin.Encode for MediaAreaBox. *MediaAreaBox : github.com/gotd/td/bin.Decoder *MediaAreaBox : github.com/gotd/td/bin.Encoder *MediaAreaBox : github.com/gotd/td/bin.Object
MediaAreaChannelPost represents TL type `mediaAreaChannelPost#770416af`. See https://core.telegram.org/constructor/mediaAreaChannelPost for reference. ChannelID field of MediaAreaChannelPost. Coordinates field of MediaAreaChannelPost. MsgID field of MediaAreaChannelPost. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MediaAreaChannelPost from given interface. GetChannelID returns value of ChannelID field. GetCoordinates returns value of Coordinates field. GetMsgID returns value of MsgID 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. (*MediaAreaChannelPost) Zero() bool *MediaAreaChannelPost : MediaAreaClass *MediaAreaChannelPost : github.com/gotd/td/bin.BareDecoder *MediaAreaChannelPost : github.com/gotd/td/bin.BareEncoder *MediaAreaChannelPost : github.com/gotd/td/bin.Decoder *MediaAreaChannelPost : github.com/gotd/td/bin.Encoder *MediaAreaChannelPost : github.com/gotd/td/bin.Object *MediaAreaChannelPost : github.com/gotd/td/tdp.Object *MediaAreaChannelPost : fmt.Stringer func MediaAreaChannelPostArray.First() (v MediaAreaChannelPost, ok bool) func MediaAreaChannelPostArray.Last() (v MediaAreaChannelPost, ok bool) func (*MediaAreaChannelPostArray).Pop() (v MediaAreaChannelPost, ok bool) func (*MediaAreaChannelPostArray).PopFirst() (v MediaAreaChannelPost, ok bool)
MediaAreaChannelPostArray is adapter for slice of MediaAreaChannelPost. 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 MediaAreaChannelPost. Sort sorts slice of MediaAreaChannelPost. SortStable sorts slice of MediaAreaChannelPost. func MediaAreaChannelPostArray.Retain(keep func(x MediaAreaChannelPost) bool) MediaAreaChannelPostArray func MediaAreaChannelPostArray.Sort(less func(a, b MediaAreaChannelPost) bool) MediaAreaChannelPostArray func MediaAreaChannelPostArray.SortStable(less func(a, b MediaAreaChannelPost) bool) MediaAreaChannelPostArray func MediaAreaClassArray.AsMediaAreaChannelPost() (to MediaAreaChannelPostArray)
MediaAreaClass represents MediaArea generic type. See https://core.telegram.org/type/MediaArea for reference. Example: g, err := tg.DecodeMediaArea(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MediaAreaVenue: // mediaAreaVenue#be82db9c case *tg.InputMediaAreaVenue: // inputMediaAreaVenue#b282217f case *tg.MediaAreaGeoPoint: // mediaAreaGeoPoint#df8b3b22 case *tg.MediaAreaSuggestedReaction: // mediaAreaSuggestedReaction#14455871 case *tg.MediaAreaChannelPost: // mediaAreaChannelPost#770416af case *tg.InputMediaAreaChannelPost: // inputMediaAreaChannelPost#2271f2bf default: panic(v) } ( MediaAreaClass) Decode(b *bin.Buffer) error ( MediaAreaClass) DecodeBare(b *bin.Buffer) error ( MediaAreaClass) Encode(b *bin.Buffer) error ( MediaAreaClass) EncodeBare(b *bin.Buffer) error The size and location of the media area corresponding to the location sticker on top of the story media. 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. *InputMediaAreaChannelPost *InputMediaAreaVenue *MediaAreaChannelPost *MediaAreaGeoPoint *MediaAreaSuggestedReaction *MediaAreaVenue MediaAreaClass : github.com/gotd/td/bin.BareDecoder MediaAreaClass : github.com/gotd/td/bin.BareEncoder MediaAreaClass : github.com/gotd/td/bin.Decoder MediaAreaClass : github.com/gotd/td/bin.Encoder MediaAreaClass : github.com/gotd/td/bin.Object MediaAreaClass : fmt.Stringer func DecodeMediaArea(buf *bin.Buffer) (MediaAreaClass, error) func MediaAreaClassArray.First() (v MediaAreaClass, ok bool) func MediaAreaClassArray.Last() (v MediaAreaClass, ok bool) func (*MediaAreaClassArray).Pop() (v MediaAreaClass, ok bool) func (*MediaAreaClassArray).PopFirst() (v MediaAreaClass, ok bool) func (*StoriesEditStoryRequest).GetMediaAreas() (value []MediaAreaClass, ok bool) func (*StoriesSendStoryRequest).GetMediaAreas() (value []MediaAreaClass, ok bool) func (*StoryItem).GetMediaAreas() (value []MediaAreaClass, ok bool) func (*StoriesEditStoryRequest).SetMediaAreas(value []MediaAreaClass) func (*StoriesSendStoryRequest).SetMediaAreas(value []MediaAreaClass) func (*StoryItem).SetMediaAreas(value []MediaAreaClass)
MediaAreaClassArray is adapter for slice of MediaAreaClass. AsInputMediaAreaChannelPost returns copy with only InputMediaAreaChannelPost constructors. AsInputMediaAreaVenue returns copy with only InputMediaAreaVenue constructors. AsMediaAreaChannelPost returns copy with only MediaAreaChannelPost constructors. AsMediaAreaGeoPoint returns copy with only MediaAreaGeoPoint constructors. AsMediaAreaSuggestedReaction returns copy with only MediaAreaSuggestedReaction constructors. AsMediaAreaVenue returns copy with only MediaAreaVenue 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 MediaAreaClass. Sort sorts slice of MediaAreaClass. SortStable sorts slice of MediaAreaClass. func MediaAreaClassArray.Retain(keep func(x MediaAreaClass) bool) MediaAreaClassArray func MediaAreaClassArray.Sort(less func(a, b MediaAreaClass) bool) MediaAreaClassArray func MediaAreaClassArray.SortStable(less func(a, b MediaAreaClass) bool) MediaAreaClassArray func (*StoriesEditStoryRequest).MapMediaAreas() (value MediaAreaClassArray, ok bool) func (*StoriesSendStoryRequest).MapMediaAreas() (value MediaAreaClassArray, ok bool) func (*StoryItem).MapMediaAreas() (value MediaAreaClassArray, ok bool)
MediaAreaCoordinates represents TL type `mediaAreaCoordinates#3d1ea4e`. Coordinates and size of a clicable rectangular area on top of a story. See https://core.telegram.org/constructor/mediaAreaCoordinates for reference. The height of the rectangle, as a percentage of the media height (0-100). Clockwise rotation angle of the rectangle, in degrees (0-360). The width of the rectangle, as a percentage of the media width (0-100). The abscissa of the rectangle's center, as a percentage of the media width (0-100). The ordinate of the rectangle's center, as a percentage of the media height (0-100). Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MediaAreaCoordinates from given interface. GetH returns value of H field. GetRotation returns value of Rotation field. GetW returns value of W field. GetX returns value of X field. GetY returns value of Y 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. (*MediaAreaCoordinates) Zero() bool *MediaAreaCoordinates : github.com/gotd/td/bin.BareDecoder *MediaAreaCoordinates : github.com/gotd/td/bin.BareEncoder *MediaAreaCoordinates : github.com/gotd/td/bin.Decoder *MediaAreaCoordinates : github.com/gotd/td/bin.Encoder *MediaAreaCoordinates : github.com/gotd/td/bin.Object *MediaAreaCoordinates : github.com/gotd/td/tdp.Object *MediaAreaCoordinates : fmt.Stringer func (*InputMediaAreaChannelPost).GetCoordinates() (value MediaAreaCoordinates) func (*InputMediaAreaVenue).GetCoordinates() (value MediaAreaCoordinates) func (*MediaAreaChannelPost).GetCoordinates() (value MediaAreaCoordinates) func MediaAreaClass.GetCoordinates() (value MediaAreaCoordinates) func (*MediaAreaGeoPoint).GetCoordinates() (value MediaAreaCoordinates) func (*MediaAreaSuggestedReaction).GetCoordinates() (value MediaAreaCoordinates) func (*MediaAreaVenue).GetCoordinates() (value MediaAreaCoordinates)
MediaAreaGeoPoint represents TL type `mediaAreaGeoPoint#df8b3b22`. Represents a geolocation tag attached to a story¹. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/mediaAreaGeoPoint for reference. The size and position of the media area corresponding to the location sticker on top of the story media. Coordinates of the geolocation tag. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MediaAreaGeoPoint from given interface. GetCoordinates returns value of Coordinates field. GetGeo returns value of Geo 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. (*MediaAreaGeoPoint) Zero() bool *MediaAreaGeoPoint : MediaAreaClass *MediaAreaGeoPoint : github.com/gotd/td/bin.BareDecoder *MediaAreaGeoPoint : github.com/gotd/td/bin.BareEncoder *MediaAreaGeoPoint : github.com/gotd/td/bin.Decoder *MediaAreaGeoPoint : github.com/gotd/td/bin.Encoder *MediaAreaGeoPoint : github.com/gotd/td/bin.Object *MediaAreaGeoPoint : github.com/gotd/td/tdp.Object *MediaAreaGeoPoint : fmt.Stringer func MediaAreaGeoPointArray.First() (v MediaAreaGeoPoint, ok bool) func MediaAreaGeoPointArray.Last() (v MediaAreaGeoPoint, ok bool) func (*MediaAreaGeoPointArray).Pop() (v MediaAreaGeoPoint, ok bool) func (*MediaAreaGeoPointArray).PopFirst() (v MediaAreaGeoPoint, ok bool)
MediaAreaGeoPointArray is adapter for slice of MediaAreaGeoPoint. 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 MediaAreaGeoPoint. Sort sorts slice of MediaAreaGeoPoint. SortStable sorts slice of MediaAreaGeoPoint. func MediaAreaClassArray.AsMediaAreaGeoPoint() (to MediaAreaGeoPointArray) func MediaAreaGeoPointArray.Retain(keep func(x MediaAreaGeoPoint) bool) MediaAreaGeoPointArray func MediaAreaGeoPointArray.Sort(less func(a, b MediaAreaGeoPoint) bool) MediaAreaGeoPointArray func MediaAreaGeoPointArray.SortStable(less func(a, b MediaAreaGeoPoint) bool) MediaAreaGeoPointArray
MediaAreaSuggestedReaction represents TL type `mediaAreaSuggestedReaction#14455871`. Represents a reaction bubble. See https://core.telegram.org/constructor/mediaAreaSuggestedReaction for reference. The coordinates of the media area corresponding to the reaction button. Whether the reaction bubble has a dark background. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the reaction bubble is mirrored (see here »¹ for more info). Links: 1) https://core.telegram.org/api/stories#reactions The reaction that should be sent when this area is clicked. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MediaAreaSuggestedReaction from given interface. GetCoordinates returns value of Coordinates field. GetDark returns value of Dark conditional field. GetFlipped returns value of Flipped conditional field. GetReaction returns value of Reaction field. SetDark sets value of Dark conditional field. SetFlags sets flags for non-zero fields. SetFlipped sets value of Flipped 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. (*MediaAreaSuggestedReaction) Zero() bool *MediaAreaSuggestedReaction : MediaAreaClass *MediaAreaSuggestedReaction : github.com/gotd/td/bin.BareDecoder *MediaAreaSuggestedReaction : github.com/gotd/td/bin.BareEncoder *MediaAreaSuggestedReaction : github.com/gotd/td/bin.Decoder *MediaAreaSuggestedReaction : github.com/gotd/td/bin.Encoder *MediaAreaSuggestedReaction : github.com/gotd/td/bin.Object *MediaAreaSuggestedReaction : github.com/gotd/td/tdp.Object *MediaAreaSuggestedReaction : fmt.Stringer func MediaAreaSuggestedReactionArray.First() (v MediaAreaSuggestedReaction, ok bool) func MediaAreaSuggestedReactionArray.Last() (v MediaAreaSuggestedReaction, ok bool) func (*MediaAreaSuggestedReactionArray).Pop() (v MediaAreaSuggestedReaction, ok bool) func (*MediaAreaSuggestedReactionArray).PopFirst() (v MediaAreaSuggestedReaction, ok bool)
MediaAreaSuggestedReactionArray is adapter for slice of MediaAreaSuggestedReaction. 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 MediaAreaSuggestedReaction. Sort sorts slice of MediaAreaSuggestedReaction. SortStable sorts slice of MediaAreaSuggestedReaction. func MediaAreaClassArray.AsMediaAreaSuggestedReaction() (to MediaAreaSuggestedReactionArray) func MediaAreaSuggestedReactionArray.Retain(keep func(x MediaAreaSuggestedReaction) bool) MediaAreaSuggestedReactionArray func MediaAreaSuggestedReactionArray.Sort(less func(a, b MediaAreaSuggestedReaction) bool) MediaAreaSuggestedReactionArray func MediaAreaSuggestedReactionArray.SortStable(less func(a, b MediaAreaSuggestedReaction) bool) MediaAreaSuggestedReactionArray
MediaAreaVenue represents TL type `mediaAreaVenue#be82db9c`. Represents a location tag attached to a story¹, with additional venue information. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/mediaAreaVenue for reference. Address The size and location of the media area corresponding to the location sticker on top of the story media. Coordinates of the venue Venue provider: currently only "foursquare" needs to be supported. 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 MediaAreaVenue from given interface. GetAddress returns value of Address field. GetCoordinates returns value of Coordinates field. GetGeo returns value of Geo field. GetProvider returns value of Provider field. GetTitle returns value of Title field. GetVenueID returns value of VenueID field. GetVenueType returns value of VenueType 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. (*MediaAreaVenue) Zero() bool *MediaAreaVenue : MediaAreaClass *MediaAreaVenue : github.com/gotd/td/bin.BareDecoder *MediaAreaVenue : github.com/gotd/td/bin.BareEncoder *MediaAreaVenue : github.com/gotd/td/bin.Decoder *MediaAreaVenue : github.com/gotd/td/bin.Encoder *MediaAreaVenue : github.com/gotd/td/bin.Object *MediaAreaVenue : github.com/gotd/td/tdp.Object *MediaAreaVenue : fmt.Stringer func MediaAreaVenueArray.First() (v MediaAreaVenue, ok bool) func MediaAreaVenueArray.Last() (v MediaAreaVenue, ok bool) func (*MediaAreaVenueArray).Pop() (v MediaAreaVenue, ok bool) func (*MediaAreaVenueArray).PopFirst() (v MediaAreaVenue, ok bool)
MediaAreaVenueArray is adapter for slice of MediaAreaVenue. 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 MediaAreaVenue. Sort sorts slice of MediaAreaVenue. SortStable sorts slice of MediaAreaVenue. func MediaAreaClassArray.AsMediaAreaVenue() (to MediaAreaVenueArray) func MediaAreaVenueArray.Retain(keep func(x MediaAreaVenue) bool) MediaAreaVenueArray func MediaAreaVenueArray.Sort(less func(a, b MediaAreaVenue) bool) MediaAreaVenueArray func MediaAreaVenueArray.SortStable(less func(a, b MediaAreaVenue) bool) MediaAreaVenueArray
Message represents TL type `message#38116ee0`. A message See https://core.telegram.org/constructor/message for reference. Date of the message Last edit date of this message Use SetEditDate and GetEditDate helpers. Whether the message should be shown as not modified to the user, even if an edit date is present 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 Forward counter Use SetForwards and GetForwards helpers. ID of the sender of the message Use SetFromID and GetFromID helpers. Whether this is a scheduled message¹ Links: 1) https://core.telegram.org/api/scheduled-messages Info about forwarded messages Use SetFwdFrom and GetFwdFrom helpers. Multiple media messages sent using messages.sendMultiMedia¹ with the same grouped ID indicate an album or media group² Links: 1) https://core.telegram.org/method/messages.sendMultiMedia 2) https://core.telegram.org/api/files#albums-grouped-media Use SetGroupedID and GetGroupedID helpers. ID of the message If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. This is a legacy message: it has to be refetched with the new layer Media attachment Use SetMedia and GetMedia helpers. Whether there are unread media attachments in this message Whether we were mentioned¹ in this message Links: 1) https://core.telegram.org/api/mentions The message Whether this message is protected¹ and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera). Links: 1) https://telegram.org/blog/protected-content-delete-by-date-and-more Is this an outgoing message Peer ID, the chat where this message was sent Whether this message is pinned¹ Links: 1) https://core.telegram.org/api/pin Whether this is a channel post Name of the author of this message for channel posts (with signatures enabled) Use SetPostAuthor and GetPostAuthor helpers. Reactions to this message Use SetReactions and GetReactions helpers. Info about post comments (for channels) or message replies (for groups)¹ Links: 1) https://core.telegram.org/api/threads Use SetReplies and GetReplies helpers. Reply markup (bot/inline keyboards) Use SetReplyMarkup and GetReplyMarkup helpers. Reply information Use SetReplyTo and GetReplyTo helpers. Contains the reason why access to this message must be restricted. Use SetRestrictionReason and GetRestrictionReason helpers. Whether this is a silent message (no notification triggered) Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. Use SetTTLPeriod and GetTTLPeriod helpers. ID of the inline bot that generated the message Use SetViaBotID and GetViaBotID helpers. View count for channel posts Use SetViews and GetViews helpers. AsInputMessageID tries to map Message to InputMessageID. AsInputMessageReplyTo tries to map Message to InputMessageReplyTo. AsNotEmpty tries to map Message to NotEmptyMessage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Message from given interface. GetDate returns value of Date field. GetEditDate returns value of EditDate conditional field and boolean which is true if field was set. GetEditHide returns value of EditHide conditional field. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetForwards returns value of Forwards conditional field and boolean which is true if field was set. GetFromID returns value of FromID conditional field and boolean which is true if field was set. GetFromScheduled returns value of FromScheduled conditional field. GetFwdFrom returns value of FwdFrom conditional field and boolean which is true if field was set. GetGroupedID returns value of GroupedID conditional field and boolean which is true if field was set. GetID returns value of ID field. GetInvertMedia returns value of InvertMedia conditional field. GetLegacy returns value of Legacy conditional field. GetMedia returns value of Media conditional field and boolean which is true if field was set. GetMediaUnread returns value of MediaUnread conditional field. GetMentioned returns value of Mentioned conditional field. GetMessage returns value of Message field. GetNoforwards returns value of Noforwards conditional field. GetOut returns value of Out conditional field. GetPeerID returns value of PeerID field. GetPinned returns value of Pinned conditional field. GetPost returns value of Post conditional field. GetPostAuthor returns value of PostAuthor conditional field and boolean which is true if field was set. GetReactions returns value of Reactions conditional field and boolean which is true if field was set. GetReplies returns value of Replies 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. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetRestrictionReason returns value of RestrictionReason conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. GetViaBotID returns value of ViaBotID conditional field and boolean which is true if field was set. GetViews returns value of Views conditional field and boolean which is true if field was set. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetEditDate sets value of EditDate conditional field. SetEditHide sets value of EditHide conditional field. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetForwards sets value of Forwards conditional field. SetFromID sets value of FromID conditional field. SetFromScheduled sets value of FromScheduled conditional field. SetFwdFrom sets value of FwdFrom conditional field. SetGroupedID sets value of GroupedID conditional field. SetInvertMedia sets value of InvertMedia conditional field. SetLegacy sets value of Legacy conditional field. SetMedia sets value of Media conditional field. SetMediaUnread sets value of MediaUnread conditional field. SetMentioned sets value of Mentioned conditional field. SetNoforwards sets value of Noforwards conditional field. SetOut sets value of Out conditional field. SetPinned sets value of Pinned conditional field. SetPost sets value of Post conditional field. SetPostAuthor sets value of PostAuthor conditional field. SetReactions sets value of Reactions conditional field. SetReplies sets value of Replies conditional field. SetReplyMarkup sets value of ReplyMarkup conditional field. SetReplyTo sets value of ReplyTo conditional field. SetRestrictionReason sets value of RestrictionReason conditional field. SetSilent sets value of Silent conditional field. SetTTLPeriod sets value of TTLPeriod conditional field. SetViaBotID sets value of ViaBotID conditional field. SetViews sets value of Views 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. (*Message) Zero() bool *Message : MessageClass *Message : NotEmptyMessage *Message : github.com/gotd/td/bin.BareDecoder *Message : github.com/gotd/td/bin.BareEncoder *Message : github.com/gotd/td/bin.Decoder *Message : github.com/gotd/td/bin.Encoder *Message : github.com/gotd/td/bin.Object *Message : github.com/gotd/td/tdp.Object *Message : fmt.Stringer func MessageArray.First() (v Message, ok bool) func MessageArray.Last() (v Message, ok bool) func (*MessageArray).Pop() (v Message, ok bool) func (*MessageArray).PopFirst() (v Message, ok bool) func MessageArray.ToMap() map[int]Message func MessageClassArray.MessageToMap() map[int]*Message func MessageArray.FillMap(to map[int]Message) func MessageClassArray.FillMessageMap(to map[int]*Message)
MessageActionBotAllowed represents TL type `messageActionBotAllowed#c516d679`. We have given the bot permission to send us direct messages. The optional fields specify how did we authorize the bot to send us messages. See https://core.telegram.org/constructor/messageActionBotAllowed for reference. We have authorized the bot to send us messages by opening the specified bot mini app¹. Links: 1) https://core.telegram.org/api/bots/webapps Use SetApp and GetApp helpers. We have authorized the bot to send us messages by installing the bot's attachment menu¹. Links: 1) https://core.telegram.org/api/bots/attach We have authorized the bot to send us messages by logging into a website via Telegram Login »¹; this field contains the domain name of the website on which the user has logged in. Links: 1) https://core.telegram.org/widgets/login Use SetDomain and GetDomain helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields We have allowed the bot to send us messages using bots.allowSendMessage »¹. Links: 1) https://core.telegram.org/method/bots.allowSendMessage Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionBotAllowed from given interface. GetApp returns value of App conditional field and boolean which is true if field was set. GetAttachMenu returns value of AttachMenu conditional field. GetDomain returns value of Domain conditional field and boolean which is true if field was set. GetFromRequest returns value of FromRequest conditional field. SetApp sets value of App conditional field. SetAttachMenu sets value of AttachMenu conditional field. SetDomain sets value of Domain conditional field. SetFlags sets flags for non-zero fields. SetFromRequest sets value of FromRequest 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. (*MessageActionBotAllowed) Zero() bool *MessageActionBotAllowed : MessageActionClass *MessageActionBotAllowed : github.com/gotd/td/bin.BareDecoder *MessageActionBotAllowed : github.com/gotd/td/bin.BareEncoder *MessageActionBotAllowed : github.com/gotd/td/bin.Decoder *MessageActionBotAllowed : github.com/gotd/td/bin.Encoder *MessageActionBotAllowed : github.com/gotd/td/bin.Object *MessageActionBotAllowed : github.com/gotd/td/tdp.Object *MessageActionBotAllowed : fmt.Stringer func MessageActionBotAllowedArray.First() (v MessageActionBotAllowed, ok bool) func MessageActionBotAllowedArray.Last() (v MessageActionBotAllowed, ok bool) func (*MessageActionBotAllowedArray).Pop() (v MessageActionBotAllowed, ok bool) func (*MessageActionBotAllowedArray).PopFirst() (v MessageActionBotAllowed, ok bool)
MessageActionBotAllowedArray is adapter for slice of MessageActionBotAllowed. 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 MessageActionBotAllowed. Sort sorts slice of MessageActionBotAllowed. SortStable sorts slice of MessageActionBotAllowed. func MessageActionBotAllowedArray.Retain(keep func(x MessageActionBotAllowed) bool) MessageActionBotAllowedArray func MessageActionBotAllowedArray.Sort(less func(a, b MessageActionBotAllowed) bool) MessageActionBotAllowedArray func MessageActionBotAllowedArray.SortStable(less func(a, b MessageActionBotAllowed) bool) MessageActionBotAllowedArray func MessageActionClassArray.AsMessageActionBotAllowed() (to MessageActionBotAllowedArray)
MessageAction boxes the MessageActionClass providing a helper. MessageAction MessageActionClass Decode implements bin.Decoder for MessageActionBox. Encode implements bin.Encode for MessageActionBox. *MessageActionBox : github.com/gotd/td/bin.Decoder *MessageActionBox : github.com/gotd/td/bin.Encoder *MessageActionBox : github.com/gotd/td/bin.Object
MessageActionChannelCreate represents TL type `messageActionChannelCreate#95d2ac92`. The channel was created See https://core.telegram.org/constructor/messageActionChannelCreate for reference. New group name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionChannelCreate from given interface. GetTitle returns value of Title 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. (*MessageActionChannelCreate) Zero() bool *MessageActionChannelCreate : MessageActionClass *MessageActionChannelCreate : github.com/gotd/td/bin.BareDecoder *MessageActionChannelCreate : github.com/gotd/td/bin.BareEncoder *MessageActionChannelCreate : github.com/gotd/td/bin.Decoder *MessageActionChannelCreate : github.com/gotd/td/bin.Encoder *MessageActionChannelCreate : github.com/gotd/td/bin.Object *MessageActionChannelCreate : github.com/gotd/td/tdp.Object *MessageActionChannelCreate : fmt.Stringer func MessageActionChannelCreateArray.First() (v MessageActionChannelCreate, ok bool) func MessageActionChannelCreateArray.Last() (v MessageActionChannelCreate, ok bool) func (*MessageActionChannelCreateArray).Pop() (v MessageActionChannelCreate, ok bool) func (*MessageActionChannelCreateArray).PopFirst() (v MessageActionChannelCreate, ok bool)
MessageActionChannelCreateArray is adapter for slice of MessageActionChannelCreate. 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 MessageActionChannelCreate. Sort sorts slice of MessageActionChannelCreate. SortStable sorts slice of MessageActionChannelCreate. func MessageActionChannelCreateArray.Retain(keep func(x MessageActionChannelCreate) bool) MessageActionChannelCreateArray func MessageActionChannelCreateArray.Sort(less func(a, b MessageActionChannelCreate) bool) MessageActionChannelCreateArray func MessageActionChannelCreateArray.SortStable(less func(a, b MessageActionChannelCreate) bool) MessageActionChannelCreateArray func MessageActionClassArray.AsMessageActionChannelCreate() (to MessageActionChannelCreateArray)
MessageActionChannelMigrateFrom represents TL type `messageActionChannelMigrateFrom#ea3948e9`. Indicates the channel was migrated¹ from the specified chat Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/messageActionChannelMigrateFrom for reference. The old chat ID The old chat title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionChannelMigrateFrom from given interface. GetChatID returns value of ChatID field. GetTitle returns value of Title 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. (*MessageActionChannelMigrateFrom) Zero() bool *MessageActionChannelMigrateFrom : MessageActionClass *MessageActionChannelMigrateFrom : github.com/gotd/td/bin.BareDecoder *MessageActionChannelMigrateFrom : github.com/gotd/td/bin.BareEncoder *MessageActionChannelMigrateFrom : github.com/gotd/td/bin.Decoder *MessageActionChannelMigrateFrom : github.com/gotd/td/bin.Encoder *MessageActionChannelMigrateFrom : github.com/gotd/td/bin.Object *MessageActionChannelMigrateFrom : github.com/gotd/td/tdp.Object *MessageActionChannelMigrateFrom : fmt.Stringer func MessageActionChannelMigrateFromArray.First() (v MessageActionChannelMigrateFrom, ok bool) func MessageActionChannelMigrateFromArray.Last() (v MessageActionChannelMigrateFrom, ok bool) func (*MessageActionChannelMigrateFromArray).Pop() (v MessageActionChannelMigrateFrom, ok bool) func (*MessageActionChannelMigrateFromArray).PopFirst() (v MessageActionChannelMigrateFrom, ok bool)
MessageActionChannelMigrateFromArray is adapter for slice of MessageActionChannelMigrateFrom. 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 MessageActionChannelMigrateFrom. Sort sorts slice of MessageActionChannelMigrateFrom. SortStable sorts slice of MessageActionChannelMigrateFrom. func MessageActionChannelMigrateFromArray.Retain(keep func(x MessageActionChannelMigrateFrom) bool) MessageActionChannelMigrateFromArray func MessageActionChannelMigrateFromArray.Sort(less func(a, b MessageActionChannelMigrateFrom) bool) MessageActionChannelMigrateFromArray func MessageActionChannelMigrateFromArray.SortStable(less func(a, b MessageActionChannelMigrateFrom) bool) MessageActionChannelMigrateFromArray func MessageActionClassArray.AsMessageActionChannelMigrateFrom() (to MessageActionChannelMigrateFromArray)
MessageActionChatAddUser represents TL type `messageActionChatAddUser#15cefd00`. New member in the group See https://core.telegram.org/constructor/messageActionChatAddUser for reference. Users that were invited to the chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionChatAddUser from given interface. GetUsers returns value of Users 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. (*MessageActionChatAddUser) Zero() bool *MessageActionChatAddUser : MessageActionClass *MessageActionChatAddUser : github.com/gotd/td/bin.BareDecoder *MessageActionChatAddUser : github.com/gotd/td/bin.BareEncoder *MessageActionChatAddUser : github.com/gotd/td/bin.Decoder *MessageActionChatAddUser : github.com/gotd/td/bin.Encoder *MessageActionChatAddUser : github.com/gotd/td/bin.Object *MessageActionChatAddUser : github.com/gotd/td/tdp.Object *MessageActionChatAddUser : fmt.Stringer func MessageActionChatAddUserArray.First() (v MessageActionChatAddUser, ok bool) func MessageActionChatAddUserArray.Last() (v MessageActionChatAddUser, ok bool) func (*MessageActionChatAddUserArray).Pop() (v MessageActionChatAddUser, ok bool) func (*MessageActionChatAddUserArray).PopFirst() (v MessageActionChatAddUser, ok bool)
MessageActionChatAddUserArray is adapter for slice of MessageActionChatAddUser. 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 MessageActionChatAddUser. Sort sorts slice of MessageActionChatAddUser. SortStable sorts slice of MessageActionChatAddUser. func MessageActionChatAddUserArray.Retain(keep func(x MessageActionChatAddUser) bool) MessageActionChatAddUserArray func MessageActionChatAddUserArray.Sort(less func(a, b MessageActionChatAddUser) bool) MessageActionChatAddUserArray func MessageActionChatAddUserArray.SortStable(less func(a, b MessageActionChatAddUser) bool) MessageActionChatAddUserArray func MessageActionClassArray.AsMessageActionChatAddUser() (to MessageActionChatAddUserArray)
MessageActionChatCreate represents TL type `messageActionChatCreate#bd47cbad`. Group created See https://core.telegram.org/constructor/messageActionChatCreate for reference. Group name List of group members Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionChatCreate from given interface. GetTitle returns value of Title field. GetUsers returns value of Users 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. (*MessageActionChatCreate) Zero() bool *MessageActionChatCreate : MessageActionClass *MessageActionChatCreate : github.com/gotd/td/bin.BareDecoder *MessageActionChatCreate : github.com/gotd/td/bin.BareEncoder *MessageActionChatCreate : github.com/gotd/td/bin.Decoder *MessageActionChatCreate : github.com/gotd/td/bin.Encoder *MessageActionChatCreate : github.com/gotd/td/bin.Object *MessageActionChatCreate : github.com/gotd/td/tdp.Object *MessageActionChatCreate : fmt.Stringer func MessageActionChatCreateArray.First() (v MessageActionChatCreate, ok bool) func MessageActionChatCreateArray.Last() (v MessageActionChatCreate, ok bool) func (*MessageActionChatCreateArray).Pop() (v MessageActionChatCreate, ok bool) func (*MessageActionChatCreateArray).PopFirst() (v MessageActionChatCreate, ok bool)
MessageActionChatCreateArray is adapter for slice of MessageActionChatCreate. 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 MessageActionChatCreate. Sort sorts slice of MessageActionChatCreate. SortStable sorts slice of MessageActionChatCreate. func MessageActionChatCreateArray.Retain(keep func(x MessageActionChatCreate) bool) MessageActionChatCreateArray func MessageActionChatCreateArray.Sort(less func(a, b MessageActionChatCreate) bool) MessageActionChatCreateArray func MessageActionChatCreateArray.SortStable(less func(a, b MessageActionChatCreate) bool) MessageActionChatCreateArray func MessageActionClassArray.AsMessageActionChatCreate() (to MessageActionChatCreateArray)
MessageActionChatDeletePhoto represents TL type `messageActionChatDeletePhoto#95e3fbef`. Group profile photo removed. See https://core.telegram.org/constructor/messageActionChatDeletePhoto 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. (*MessageActionChatDeletePhoto) Zero() bool *MessageActionChatDeletePhoto : MessageActionClass *MessageActionChatDeletePhoto : github.com/gotd/td/bin.BareDecoder *MessageActionChatDeletePhoto : github.com/gotd/td/bin.BareEncoder *MessageActionChatDeletePhoto : github.com/gotd/td/bin.Decoder *MessageActionChatDeletePhoto : github.com/gotd/td/bin.Encoder *MessageActionChatDeletePhoto : github.com/gotd/td/bin.Object *MessageActionChatDeletePhoto : github.com/gotd/td/tdp.Object *MessageActionChatDeletePhoto : fmt.Stringer
MessageActionChatDeleteUser represents TL type `messageActionChatDeleteUser#a43f30cc`. User left the group. See https://core.telegram.org/constructor/messageActionChatDeleteUser for reference. ID of the user that created the group Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionChatDeleteUser from given interface. 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. (*MessageActionChatDeleteUser) Zero() bool *MessageActionChatDeleteUser : MessageActionClass *MessageActionChatDeleteUser : github.com/gotd/td/bin.BareDecoder *MessageActionChatDeleteUser : github.com/gotd/td/bin.BareEncoder *MessageActionChatDeleteUser : github.com/gotd/td/bin.Decoder *MessageActionChatDeleteUser : github.com/gotd/td/bin.Encoder *MessageActionChatDeleteUser : github.com/gotd/td/bin.Object *MessageActionChatDeleteUser : github.com/gotd/td/tdp.Object *MessageActionChatDeleteUser : fmt.Stringer func MessageActionChatDeleteUserArray.First() (v MessageActionChatDeleteUser, ok bool) func MessageActionChatDeleteUserArray.Last() (v MessageActionChatDeleteUser, ok bool) func (*MessageActionChatDeleteUserArray).Pop() (v MessageActionChatDeleteUser, ok bool) func (*MessageActionChatDeleteUserArray).PopFirst() (v MessageActionChatDeleteUser, ok bool)
MessageActionChatDeleteUserArray is adapter for slice of MessageActionChatDeleteUser. 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 MessageActionChatDeleteUser. Sort sorts slice of MessageActionChatDeleteUser. SortStable sorts slice of MessageActionChatDeleteUser. func MessageActionChatDeleteUserArray.Retain(keep func(x MessageActionChatDeleteUser) bool) MessageActionChatDeleteUserArray func MessageActionChatDeleteUserArray.Sort(less func(a, b MessageActionChatDeleteUser) bool) MessageActionChatDeleteUserArray func MessageActionChatDeleteUserArray.SortStable(less func(a, b MessageActionChatDeleteUser) bool) MessageActionChatDeleteUserArray func MessageActionClassArray.AsMessageActionChatDeleteUser() (to MessageActionChatDeleteUserArray)
MessageActionChatEditPhoto represents TL type `messageActionChatEditPhoto#7fcb13a8`. Group profile changed See https://core.telegram.org/constructor/messageActionChatEditPhoto for reference. New group profile photo Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionChatEditPhoto from given interface. GetPhoto returns value of Photo 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. (*MessageActionChatEditPhoto) Zero() bool *MessageActionChatEditPhoto : MessageActionClass *MessageActionChatEditPhoto : github.com/gotd/td/bin.BareDecoder *MessageActionChatEditPhoto : github.com/gotd/td/bin.BareEncoder *MessageActionChatEditPhoto : github.com/gotd/td/bin.Decoder *MessageActionChatEditPhoto : github.com/gotd/td/bin.Encoder *MessageActionChatEditPhoto : github.com/gotd/td/bin.Object *MessageActionChatEditPhoto : github.com/gotd/td/tdp.Object *MessageActionChatEditPhoto : fmt.Stringer func MessageActionChatEditPhotoArray.First() (v MessageActionChatEditPhoto, ok bool) func MessageActionChatEditPhotoArray.Last() (v MessageActionChatEditPhoto, ok bool) func (*MessageActionChatEditPhotoArray).Pop() (v MessageActionChatEditPhoto, ok bool) func (*MessageActionChatEditPhotoArray).PopFirst() (v MessageActionChatEditPhoto, ok bool)
MessageActionChatEditPhotoArray is adapter for slice of MessageActionChatEditPhoto. 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 MessageActionChatEditPhoto. Sort sorts slice of MessageActionChatEditPhoto. SortStable sorts slice of MessageActionChatEditPhoto. func MessageActionChatEditPhotoArray.Retain(keep func(x MessageActionChatEditPhoto) bool) MessageActionChatEditPhotoArray func MessageActionChatEditPhotoArray.Sort(less func(a, b MessageActionChatEditPhoto) bool) MessageActionChatEditPhotoArray func MessageActionChatEditPhotoArray.SortStable(less func(a, b MessageActionChatEditPhoto) bool) MessageActionChatEditPhotoArray func MessageActionClassArray.AsMessageActionChatEditPhoto() (to MessageActionChatEditPhotoArray)
MessageActionChatEditTitle represents TL type `messageActionChatEditTitle#b5a1ce5a`. Group name changed. See https://core.telegram.org/constructor/messageActionChatEditTitle for reference. New group name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionChatEditTitle from given interface. GetTitle returns value of Title 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. (*MessageActionChatEditTitle) Zero() bool *MessageActionChatEditTitle : MessageActionClass *MessageActionChatEditTitle : github.com/gotd/td/bin.BareDecoder *MessageActionChatEditTitle : github.com/gotd/td/bin.BareEncoder *MessageActionChatEditTitle : github.com/gotd/td/bin.Decoder *MessageActionChatEditTitle : github.com/gotd/td/bin.Encoder *MessageActionChatEditTitle : github.com/gotd/td/bin.Object *MessageActionChatEditTitle : github.com/gotd/td/tdp.Object *MessageActionChatEditTitle : fmt.Stringer func MessageActionChatEditTitleArray.First() (v MessageActionChatEditTitle, ok bool) func MessageActionChatEditTitleArray.Last() (v MessageActionChatEditTitle, ok bool) func (*MessageActionChatEditTitleArray).Pop() (v MessageActionChatEditTitle, ok bool) func (*MessageActionChatEditTitleArray).PopFirst() (v MessageActionChatEditTitle, ok bool)
MessageActionChatEditTitleArray is adapter for slice of MessageActionChatEditTitle. 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 MessageActionChatEditTitle. Sort sorts slice of MessageActionChatEditTitle. SortStable sorts slice of MessageActionChatEditTitle. func MessageActionChatEditTitleArray.Retain(keep func(x MessageActionChatEditTitle) bool) MessageActionChatEditTitleArray func MessageActionChatEditTitleArray.Sort(less func(a, b MessageActionChatEditTitle) bool) MessageActionChatEditTitleArray func MessageActionChatEditTitleArray.SortStable(less func(a, b MessageActionChatEditTitle) bool) MessageActionChatEditTitleArray func MessageActionClassArray.AsMessageActionChatEditTitle() (to MessageActionChatEditTitleArray)
MessageActionChatJoinedByLinkArray is adapter for slice of MessageActionChatJoinedByLink. 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 MessageActionChatJoinedByLink. Sort sorts slice of MessageActionChatJoinedByLink. SortStable sorts slice of MessageActionChatJoinedByLink. func MessageActionChatJoinedByLinkArray.Retain(keep func(x MessageActionChatJoinedByLink) bool) MessageActionChatJoinedByLinkArray func MessageActionChatJoinedByLinkArray.Sort(less func(a, b MessageActionChatJoinedByLink) bool) MessageActionChatJoinedByLinkArray func MessageActionChatJoinedByLinkArray.SortStable(less func(a, b MessageActionChatJoinedByLink) bool) MessageActionChatJoinedByLinkArray func MessageActionClassArray.AsMessageActionChatJoinedByLink() (to MessageActionChatJoinedByLinkArray)
MessageActionChatJoinedByRequest represents TL type `messageActionChatJoinedByRequest#ebbca3cb`. A user was accepted into the group by an admin See https://core.telegram.org/constructor/messageActionChatJoinedByRequest 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. (*MessageActionChatJoinedByRequest) Zero() bool *MessageActionChatJoinedByRequest : MessageActionClass *MessageActionChatJoinedByRequest : github.com/gotd/td/bin.BareDecoder *MessageActionChatJoinedByRequest : github.com/gotd/td/bin.BareEncoder *MessageActionChatJoinedByRequest : github.com/gotd/td/bin.Decoder *MessageActionChatJoinedByRequest : github.com/gotd/td/bin.Encoder *MessageActionChatJoinedByRequest : github.com/gotd/td/bin.Object *MessageActionChatJoinedByRequest : github.com/gotd/td/tdp.Object *MessageActionChatJoinedByRequest : fmt.Stringer
MessageActionChatMigrateTo represents TL type `messageActionChatMigrateTo#e1037f92`. Indicates the chat was migrated¹ to the specified supergroup Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/messageActionChatMigrateTo for reference. The supergroup it was migrated to Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionChatMigrateTo from given interface. GetChannelID returns value of ChannelID 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. (*MessageActionChatMigrateTo) Zero() bool *MessageActionChatMigrateTo : MessageActionClass *MessageActionChatMigrateTo : github.com/gotd/td/bin.BareDecoder *MessageActionChatMigrateTo : github.com/gotd/td/bin.BareEncoder *MessageActionChatMigrateTo : github.com/gotd/td/bin.Decoder *MessageActionChatMigrateTo : github.com/gotd/td/bin.Encoder *MessageActionChatMigrateTo : github.com/gotd/td/bin.Object *MessageActionChatMigrateTo : github.com/gotd/td/tdp.Object *MessageActionChatMigrateTo : fmt.Stringer func MessageActionChatMigrateToArray.First() (v MessageActionChatMigrateTo, ok bool) func MessageActionChatMigrateToArray.Last() (v MessageActionChatMigrateTo, ok bool) func (*MessageActionChatMigrateToArray).Pop() (v MessageActionChatMigrateTo, ok bool) func (*MessageActionChatMigrateToArray).PopFirst() (v MessageActionChatMigrateTo, ok bool)
MessageActionChatMigrateToArray is adapter for slice of MessageActionChatMigrateTo. 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 MessageActionChatMigrateTo. Sort sorts slice of MessageActionChatMigrateTo. SortStable sorts slice of MessageActionChatMigrateTo. func MessageActionChatMigrateToArray.Retain(keep func(x MessageActionChatMigrateTo) bool) MessageActionChatMigrateToArray func MessageActionChatMigrateToArray.Sort(less func(a, b MessageActionChatMigrateTo) bool) MessageActionChatMigrateToArray func MessageActionChatMigrateToArray.SortStable(less func(a, b MessageActionChatMigrateTo) bool) MessageActionChatMigrateToArray func MessageActionClassArray.AsMessageActionChatMigrateTo() (to MessageActionChatMigrateToArray)
MessageActionClass represents MessageAction generic type. See https://core.telegram.org/type/MessageAction for reference. Example: g, err := tg.DecodeMessageAction(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessageActionEmpty: // messageActionEmpty#b6aef7b0 case *tg.MessageActionChatCreate: // messageActionChatCreate#bd47cbad case *tg.MessageActionChatEditTitle: // messageActionChatEditTitle#b5a1ce5a case *tg.MessageActionChatEditPhoto: // messageActionChatEditPhoto#7fcb13a8 case *tg.MessageActionChatDeletePhoto: // messageActionChatDeletePhoto#95e3fbef case *tg.MessageActionChatAddUser: // messageActionChatAddUser#15cefd00 case *tg.MessageActionChatDeleteUser: // messageActionChatDeleteUser#a43f30cc case *tg.MessageActionChatJoinedByLink: // messageActionChatJoinedByLink#31224c3 case *tg.MessageActionChannelCreate: // messageActionChannelCreate#95d2ac92 case *tg.MessageActionChatMigrateTo: // messageActionChatMigrateTo#e1037f92 case *tg.MessageActionChannelMigrateFrom: // messageActionChannelMigrateFrom#ea3948e9 case *tg.MessageActionPinMessage: // messageActionPinMessage#94bd38ed case *tg.MessageActionHistoryClear: // messageActionHistoryClear#9fbab604 case *tg.MessageActionGameScore: // messageActionGameScore#92a72876 case *tg.MessageActionPaymentSentMe: // messageActionPaymentSentMe#8f31b327 case *tg.MessageActionPaymentSent: // messageActionPaymentSent#96163f56 case *tg.MessageActionPhoneCall: // messageActionPhoneCall#80e11a7f case *tg.MessageActionScreenshotTaken: // messageActionScreenshotTaken#4792929b case *tg.MessageActionCustomAction: // messageActionCustomAction#fae69f56 case *tg.MessageActionBotAllowed: // messageActionBotAllowed#c516d679 case *tg.MessageActionSecureValuesSentMe: // messageActionSecureValuesSentMe#1b287353 case *tg.MessageActionSecureValuesSent: // messageActionSecureValuesSent#d95c6154 case *tg.MessageActionContactSignUp: // messageActionContactSignUp#f3f25f76 case *tg.MessageActionGeoProximityReached: // messageActionGeoProximityReached#98e0d697 case *tg.MessageActionGroupCall: // messageActionGroupCall#7a0d7f42 case *tg.MessageActionInviteToGroupCall: // messageActionInviteToGroupCall#502f92f7 case *tg.MessageActionSetMessagesTTL: // messageActionSetMessagesTTL#3c134d7b case *tg.MessageActionGroupCallScheduled: // messageActionGroupCallScheduled#b3a07661 case *tg.MessageActionSetChatTheme: // messageActionSetChatTheme#aa786345 case *tg.MessageActionChatJoinedByRequest: // messageActionChatJoinedByRequest#ebbca3cb case *tg.MessageActionWebViewDataSentMe: // messageActionWebViewDataSentMe#47dd8079 case *tg.MessageActionWebViewDataSent: // messageActionWebViewDataSent#b4c38cb5 case *tg.MessageActionGiftPremium: // messageActionGiftPremium#c83d6aec case *tg.MessageActionTopicCreate: // messageActionTopicCreate#d999256 case *tg.MessageActionTopicEdit: // messageActionTopicEdit#c0944820 case *tg.MessageActionSuggestProfilePhoto: // messageActionSuggestProfilePhoto#57de635e case *tg.MessageActionRequestedPeer: // messageActionRequestedPeer#31518e9b case *tg.MessageActionSetChatWallPaper: // messageActionSetChatWallPaper#5060a3f4 case *tg.MessageActionGiftCode: // messageActionGiftCode#678c2e09 case *tg.MessageActionGiveawayLaunch: // messageActionGiveawayLaunch#332ba9ed case *tg.MessageActionGiveawayResults: // messageActionGiveawayResults#2a9fadc5 default: panic(v) } ( MessageActionClass) Decode(b *bin.Buffer) error ( MessageActionClass) DecodeBare(b *bin.Buffer) error ( MessageActionClass) Encode(b *bin.Buffer) error ( MessageActionClass) 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. *MessageActionBotAllowed *MessageActionChannelCreate *MessageActionChannelMigrateFrom *MessageActionChatAddUser *MessageActionChatCreate *MessageActionChatDeletePhoto *MessageActionChatDeleteUser *MessageActionChatEditPhoto *MessageActionChatEditTitle *MessageActionChatJoinedByLink *MessageActionChatJoinedByRequest *MessageActionChatMigrateTo *MessageActionContactSignUp *MessageActionCustomAction *MessageActionEmpty *MessageActionGameScore *MessageActionGeoProximityReached *MessageActionGiftCode *MessageActionGiftPremium *MessageActionGiveawayLaunch *MessageActionGiveawayResults *MessageActionGroupCall *MessageActionGroupCallScheduled *MessageActionHistoryClear *MessageActionInviteToGroupCall *MessageActionPaymentSent *MessageActionPaymentSentMe *MessageActionPhoneCall *MessageActionPinMessage *MessageActionRequestedPeer *MessageActionScreenshotTaken *MessageActionSecureValuesSent *MessageActionSecureValuesSentMe *MessageActionSetChatTheme *MessageActionSetChatWallPaper *MessageActionSetMessagesTTL *MessageActionSuggestProfilePhoto *MessageActionTopicCreate *MessageActionTopicEdit *MessageActionWebViewDataSent *MessageActionWebViewDataSentMe MessageActionClass : github.com/gotd/td/bin.BareDecoder MessageActionClass : github.com/gotd/td/bin.BareEncoder MessageActionClass : github.com/gotd/td/bin.Decoder MessageActionClass : github.com/gotd/td/bin.Encoder MessageActionClass : github.com/gotd/td/bin.Object MessageActionClass : fmt.Stringer func DecodeMessageAction(buf *bin.Buffer) (MessageActionClass, error) func MessageActionClassArray.First() (v MessageActionClass, ok bool) func MessageActionClassArray.Last() (v MessageActionClass, ok bool) func (*MessageActionClassArray).Pop() (v MessageActionClass, ok bool) func (*MessageActionClassArray).PopFirst() (v MessageActionClass, ok bool) func (*MessageService).GetAction() (value MessageActionClass)
MessageActionClassArray is adapter for slice of MessageActionClass. AsMessageActionBotAllowed returns copy with only MessageActionBotAllowed constructors. AsMessageActionChannelCreate returns copy with only MessageActionChannelCreate constructors. AsMessageActionChannelMigrateFrom returns copy with only MessageActionChannelMigrateFrom constructors. AsMessageActionChatAddUser returns copy with only MessageActionChatAddUser constructors. AsMessageActionChatCreate returns copy with only MessageActionChatCreate constructors. AsMessageActionChatDeleteUser returns copy with only MessageActionChatDeleteUser constructors. AsMessageActionChatEditPhoto returns copy with only MessageActionChatEditPhoto constructors. AsMessageActionChatEditTitle returns copy with only MessageActionChatEditTitle constructors. AsMessageActionChatJoinedByLink returns copy with only MessageActionChatJoinedByLink constructors. AsMessageActionChatMigrateTo returns copy with only MessageActionChatMigrateTo constructors. AsMessageActionCustomAction returns copy with only MessageActionCustomAction constructors. AsMessageActionGameScore returns copy with only MessageActionGameScore constructors. AsMessageActionGeoProximityReached returns copy with only MessageActionGeoProximityReached constructors. AsMessageActionGiftCode returns copy with only MessageActionGiftCode constructors. AsMessageActionGiftPremium returns copy with only MessageActionGiftPremium constructors. AsMessageActionGiveawayResults returns copy with only MessageActionGiveawayResults constructors. AsMessageActionGroupCall returns copy with only MessageActionGroupCall constructors. AsMessageActionGroupCallScheduled returns copy with only MessageActionGroupCallScheduled constructors. AsMessageActionInviteToGroupCall returns copy with only MessageActionInviteToGroupCall constructors. AsMessageActionPaymentSent returns copy with only MessageActionPaymentSent constructors. AsMessageActionPaymentSentMe returns copy with only MessageActionPaymentSentMe constructors. AsMessageActionPhoneCall returns copy with only MessageActionPhoneCall constructors. AsMessageActionRequestedPeer returns copy with only MessageActionRequestedPeer constructors. AsMessageActionSecureValuesSent returns copy with only MessageActionSecureValuesSent constructors. AsMessageActionSecureValuesSentMe returns copy with only MessageActionSecureValuesSentMe constructors. AsMessageActionSetChatTheme returns copy with only MessageActionSetChatTheme constructors. AsMessageActionSetChatWallPaper returns copy with only MessageActionSetChatWallPaper constructors. AsMessageActionSetMessagesTTL returns copy with only MessageActionSetMessagesTTL constructors. AsMessageActionSuggestProfilePhoto returns copy with only MessageActionSuggestProfilePhoto constructors. AsMessageActionTopicCreate returns copy with only MessageActionTopicCreate constructors. AsMessageActionTopicEdit returns copy with only MessageActionTopicEdit constructors. AsMessageActionWebViewDataSent returns copy with only MessageActionWebViewDataSent constructors. AsMessageActionWebViewDataSentMe returns copy with only MessageActionWebViewDataSentMe 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 MessageActionClass. Sort sorts slice of MessageActionClass. SortStable sorts slice of MessageActionClass. func MessageActionClassArray.Retain(keep func(x MessageActionClass) bool) MessageActionClassArray func MessageActionClassArray.Sort(less func(a, b MessageActionClass) bool) MessageActionClassArray func MessageActionClassArray.SortStable(less func(a, b MessageActionClass) bool) MessageActionClassArray
MessageActionContactSignUp represents TL type `messageActionContactSignUp#f3f25f76`. A contact just signed up to telegram See https://core.telegram.org/constructor/messageActionContactSignUp 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. (*MessageActionContactSignUp) Zero() bool *MessageActionContactSignUp : MessageActionClass *MessageActionContactSignUp : github.com/gotd/td/bin.BareDecoder *MessageActionContactSignUp : github.com/gotd/td/bin.BareEncoder *MessageActionContactSignUp : github.com/gotd/td/bin.Decoder *MessageActionContactSignUp : github.com/gotd/td/bin.Encoder *MessageActionContactSignUp : github.com/gotd/td/bin.Object *MessageActionContactSignUp : github.com/gotd/td/tdp.Object *MessageActionContactSignUp : fmt.Stringer
MessageActionCustomAction represents TL type `messageActionCustomAction#fae69f56`. Custom action (most likely not supported by the current layer, an upgrade might be needed) See https://core.telegram.org/constructor/messageActionCustomAction for reference. Text of the message Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionCustomAction from given interface. GetMessage returns value of Message 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. (*MessageActionCustomAction) Zero() bool *MessageActionCustomAction : MessageActionClass *MessageActionCustomAction : github.com/gotd/td/bin.BareDecoder *MessageActionCustomAction : github.com/gotd/td/bin.BareEncoder *MessageActionCustomAction : github.com/gotd/td/bin.Decoder *MessageActionCustomAction : github.com/gotd/td/bin.Encoder *MessageActionCustomAction : github.com/gotd/td/bin.Object *MessageActionCustomAction : github.com/gotd/td/tdp.Object *MessageActionCustomAction : fmt.Stringer func MessageActionCustomActionArray.First() (v MessageActionCustomAction, ok bool) func MessageActionCustomActionArray.Last() (v MessageActionCustomAction, ok bool) func (*MessageActionCustomActionArray).Pop() (v MessageActionCustomAction, ok bool) func (*MessageActionCustomActionArray).PopFirst() (v MessageActionCustomAction, ok bool)
MessageActionCustomActionArray is adapter for slice of MessageActionCustomAction. 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 MessageActionCustomAction. Sort sorts slice of MessageActionCustomAction. SortStable sorts slice of MessageActionCustomAction. func MessageActionClassArray.AsMessageActionCustomAction() (to MessageActionCustomActionArray) func MessageActionCustomActionArray.Retain(keep func(x MessageActionCustomAction) bool) MessageActionCustomActionArray func MessageActionCustomActionArray.Sort(less func(a, b MessageActionCustomAction) bool) MessageActionCustomActionArray func MessageActionCustomActionArray.SortStable(less func(a, b MessageActionCustomAction) bool) MessageActionCustomActionArray
MessageActionEmpty represents TL type `messageActionEmpty#b6aef7b0`. Empty constructor. See https://core.telegram.org/constructor/messageActionEmpty 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. (*MessageActionEmpty) Zero() bool *MessageActionEmpty : MessageActionClass *MessageActionEmpty : github.com/gotd/td/bin.BareDecoder *MessageActionEmpty : github.com/gotd/td/bin.BareEncoder *MessageActionEmpty : github.com/gotd/td/bin.Decoder *MessageActionEmpty : github.com/gotd/td/bin.Encoder *MessageActionEmpty : github.com/gotd/td/bin.Object *MessageActionEmpty : github.com/gotd/td/tdp.Object *MessageActionEmpty : fmt.Stringer
MessageActionGameScore represents TL type `messageActionGameScore#92a72876`. Someone scored in a game See https://core.telegram.org/constructor/messageActionGameScore for reference. Game ID Score Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionGameScore from given interface. GetGameID returns value of GameID field. GetScore returns value of Score 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. (*MessageActionGameScore) Zero() bool *MessageActionGameScore : MessageActionClass *MessageActionGameScore : github.com/gotd/td/bin.BareDecoder *MessageActionGameScore : github.com/gotd/td/bin.BareEncoder *MessageActionGameScore : github.com/gotd/td/bin.Decoder *MessageActionGameScore : github.com/gotd/td/bin.Encoder *MessageActionGameScore : github.com/gotd/td/bin.Object *MessageActionGameScore : github.com/gotd/td/tdp.Object *MessageActionGameScore : fmt.Stringer func MessageActionGameScoreArray.First() (v MessageActionGameScore, ok bool) func MessageActionGameScoreArray.Last() (v MessageActionGameScore, ok bool) func (*MessageActionGameScoreArray).Pop() (v MessageActionGameScore, ok bool) func (*MessageActionGameScoreArray).PopFirst() (v MessageActionGameScore, ok bool)
MessageActionGameScoreArray is adapter for slice of MessageActionGameScore. 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 MessageActionGameScore. Sort sorts slice of MessageActionGameScore. SortStable sorts slice of MessageActionGameScore. func MessageActionClassArray.AsMessageActionGameScore() (to MessageActionGameScoreArray) func MessageActionGameScoreArray.Retain(keep func(x MessageActionGameScore) bool) MessageActionGameScoreArray func MessageActionGameScoreArray.Sort(less func(a, b MessageActionGameScore) bool) MessageActionGameScoreArray func MessageActionGameScoreArray.SortStable(less func(a, b MessageActionGameScore) bool) MessageActionGameScoreArray
MessageActionGeoProximityReached represents TL type `messageActionGeoProximityReached#98e0d697`. A user of the chat is now in proximity of another user See https://core.telegram.org/constructor/messageActionGeoProximityReached for reference. Distance, in meters (0-100000) The user or chat that is now in proximity of to_id The user or chat that subscribed to live geolocation proximity alerts¹ Links: 1) https://core.telegram.org/api/live-location#proximity-alert Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionGeoProximityReached from given interface. GetDistance returns value of Distance field. GetFromID returns value of FromID field. GetToID returns value of ToID 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. (*MessageActionGeoProximityReached) Zero() bool *MessageActionGeoProximityReached : MessageActionClass *MessageActionGeoProximityReached : github.com/gotd/td/bin.BareDecoder *MessageActionGeoProximityReached : github.com/gotd/td/bin.BareEncoder *MessageActionGeoProximityReached : github.com/gotd/td/bin.Decoder *MessageActionGeoProximityReached : github.com/gotd/td/bin.Encoder *MessageActionGeoProximityReached : github.com/gotd/td/bin.Object *MessageActionGeoProximityReached : github.com/gotd/td/tdp.Object *MessageActionGeoProximityReached : fmt.Stringer func MessageActionGeoProximityReachedArray.First() (v MessageActionGeoProximityReached, ok bool) func MessageActionGeoProximityReachedArray.Last() (v MessageActionGeoProximityReached, ok bool) func (*MessageActionGeoProximityReachedArray).Pop() (v MessageActionGeoProximityReached, ok bool) func (*MessageActionGeoProximityReachedArray).PopFirst() (v MessageActionGeoProximityReached, ok bool)
MessageActionGeoProximityReachedArray is adapter for slice of MessageActionGeoProximityReached. 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 MessageActionGeoProximityReached. Sort sorts slice of MessageActionGeoProximityReached. SortStable sorts slice of MessageActionGeoProximityReached. func MessageActionClassArray.AsMessageActionGeoProximityReached() (to MessageActionGeoProximityReachedArray) func MessageActionGeoProximityReachedArray.Retain(keep func(x MessageActionGeoProximityReached) bool) MessageActionGeoProximityReachedArray func MessageActionGeoProximityReachedArray.Sort(less func(a, b MessageActionGeoProximityReached) bool) MessageActionGeoProximityReachedArray func MessageActionGeoProximityReachedArray.SortStable(less func(a, b MessageActionGeoProximityReached) bool) MessageActionGeoProximityReachedArray
MessageActionGiftCode represents TL type `messageActionGiftCode#678c2e09`. Contains a Telegram Premium giftcode link¹. Links: 1. https://core.telegram.org/api/links#premium-giftcode-links See https://core.telegram.org/constructor/messageActionGiftCode for reference. Amount field of MessageActionGiftCode. Use SetAmount and GetAmount helpers. Identifier of the channel that created the gift code either directly or through a giveaway¹: if we import this giftcode link, we will also automatically boost² this channel. Links: 1) https://core.telegram.org/api/giveaways 2) https://core.telegram.org/api/boost Use SetBoostPeer and GetBoostPeer helpers. CryptoAmount field of MessageActionGiftCode. Use SetCryptoAmount and GetCryptoAmount helpers. CryptoCurrency field of MessageActionGiftCode. Use SetCryptoCurrency and GetCryptoCurrency helpers. Currency field of MessageActionGiftCode. Use SetCurrency and GetCurrency helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Duration in months of the gifted Telegram Premium subscription¹. Links: 1) https://core.telegram.org/api/premium Slug of the Telegram Premium giftcode link¹ Links: 1) https://core.telegram.org/api/links#premium-giftcode-links If set, the link was not redeemed¹ yet. Links: 1) https://core.telegram.org/api/links#premium-giftcode-links If set, this gift code was received from a giveaway »¹ started by a channel we're subscribed to. Links: 1) https://core.telegram.org/api/giveaways Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionGiftCode from given interface. GetAmount returns value of Amount conditional field and boolean which is true if field was set. GetBoostPeer returns value of BoostPeer conditional field and boolean which is true if field was set. GetCryptoAmount returns value of CryptoAmount conditional field and boolean which is true if field was set. GetCryptoCurrency returns value of CryptoCurrency conditional field and boolean which is true if field was set. GetCurrency returns value of Currency conditional field and boolean which is true if field was set. GetMonths returns value of Months field. GetSlug returns value of Slug field. GetUnclaimed returns value of Unclaimed conditional field. GetViaGiveaway returns value of ViaGiveaway conditional field. SetAmount sets value of Amount conditional field. SetBoostPeer sets value of BoostPeer conditional field. SetCryptoAmount sets value of CryptoAmount conditional field. SetCryptoCurrency sets value of CryptoCurrency conditional field. SetCurrency sets value of Currency conditional field. SetFlags sets flags for non-zero fields. SetUnclaimed sets value of Unclaimed conditional field. SetViaGiveaway sets value of ViaGiveaway 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. (*MessageActionGiftCode) Zero() bool *MessageActionGiftCode : MessageActionClass *MessageActionGiftCode : github.com/gotd/td/bin.BareDecoder *MessageActionGiftCode : github.com/gotd/td/bin.BareEncoder *MessageActionGiftCode : github.com/gotd/td/bin.Decoder *MessageActionGiftCode : github.com/gotd/td/bin.Encoder *MessageActionGiftCode : github.com/gotd/td/bin.Object *MessageActionGiftCode : github.com/gotd/td/tdp.Object *MessageActionGiftCode : fmt.Stringer func MessageActionGiftCodeArray.First() (v MessageActionGiftCode, ok bool) func MessageActionGiftCodeArray.Last() (v MessageActionGiftCode, ok bool) func (*MessageActionGiftCodeArray).Pop() (v MessageActionGiftCode, ok bool) func (*MessageActionGiftCodeArray).PopFirst() (v MessageActionGiftCode, ok bool)
MessageActionGiftCodeArray is adapter for slice of MessageActionGiftCode. 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 MessageActionGiftCode. Sort sorts slice of MessageActionGiftCode. SortStable sorts slice of MessageActionGiftCode. func MessageActionClassArray.AsMessageActionGiftCode() (to MessageActionGiftCodeArray) func MessageActionGiftCodeArray.Retain(keep func(x MessageActionGiftCode) bool) MessageActionGiftCodeArray func MessageActionGiftCodeArray.Sort(less func(a, b MessageActionGiftCode) bool) MessageActionGiftCodeArray func MessageActionGiftCodeArray.SortStable(less func(a, b MessageActionGiftCode) bool) MessageActionGiftCodeArray
MessageActionGiftPremium represents TL type `messageActionGiftPremium#c83d6aec`. Info about a gifted Telegram Premium subscription See https://core.telegram.org/constructor/messageActionGiftPremium for reference. Price of the gift 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 If the gift was bought using a cryptocurrency, price of the gift in the smallest units of a cryptocurrency. Use SetCryptoAmount and GetCryptoAmount helpers. If the gift was bought using a cryptocurrency, the cryptocurrency name. Use SetCryptoCurrency and GetCryptoCurrency helpers. Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Duration of the gifted Telegram Premium subscription Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionGiftPremium from given interface. GetAmount returns value of Amount field. GetCryptoAmount returns value of CryptoAmount conditional field and boolean which is true if field was set. GetCryptoCurrency returns value of CryptoCurrency conditional field and boolean which is true if field was set. GetCurrency returns value of Currency field. GetMonths returns value of Months field. SetCryptoAmount sets value of CryptoAmount conditional field. SetCryptoCurrency sets value of CryptoCurrency 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. (*MessageActionGiftPremium) Zero() bool *MessageActionGiftPremium : MessageActionClass *MessageActionGiftPremium : github.com/gotd/td/bin.BareDecoder *MessageActionGiftPremium : github.com/gotd/td/bin.BareEncoder *MessageActionGiftPremium : github.com/gotd/td/bin.Decoder *MessageActionGiftPremium : github.com/gotd/td/bin.Encoder *MessageActionGiftPremium : github.com/gotd/td/bin.Object *MessageActionGiftPremium : github.com/gotd/td/tdp.Object *MessageActionGiftPremium : fmt.Stringer func MessageActionGiftPremiumArray.First() (v MessageActionGiftPremium, ok bool) func MessageActionGiftPremiumArray.Last() (v MessageActionGiftPremium, ok bool) func (*MessageActionGiftPremiumArray).Pop() (v MessageActionGiftPremium, ok bool) func (*MessageActionGiftPremiumArray).PopFirst() (v MessageActionGiftPremium, ok bool)
MessageActionGiftPremiumArray is adapter for slice of MessageActionGiftPremium. 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 MessageActionGiftPremium. Sort sorts slice of MessageActionGiftPremium. SortStable sorts slice of MessageActionGiftPremium. func MessageActionClassArray.AsMessageActionGiftPremium() (to MessageActionGiftPremiumArray) func MessageActionGiftPremiumArray.Retain(keep func(x MessageActionGiftPremium) bool) MessageActionGiftPremiumArray func MessageActionGiftPremiumArray.Sort(less func(a, b MessageActionGiftPremium) bool) MessageActionGiftPremiumArray func MessageActionGiftPremiumArray.SortStable(less func(a, b MessageActionGiftPremium) bool) MessageActionGiftPremiumArray
MessageActionGiveawayLaunch represents TL type `messageActionGiveawayLaunch#332ba9ed`. A giveaway¹ was started. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/constructor/messageActionGiveawayLaunch 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. (*MessageActionGiveawayLaunch) Zero() bool *MessageActionGiveawayLaunch : MessageActionClass *MessageActionGiveawayLaunch : github.com/gotd/td/bin.BareDecoder *MessageActionGiveawayLaunch : github.com/gotd/td/bin.BareEncoder *MessageActionGiveawayLaunch : github.com/gotd/td/bin.Decoder *MessageActionGiveawayLaunch : github.com/gotd/td/bin.Encoder *MessageActionGiveawayLaunch : github.com/gotd/td/bin.Object *MessageActionGiveawayLaunch : github.com/gotd/td/tdp.Object *MessageActionGiveawayLaunch : fmt.Stringer
MessageActionGiveawayResults represents TL type `messageActionGiveawayResults#2a9fadc5`. A giveaway¹ has ended. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/constructor/messageActionGiveawayResults for reference. Number of undistributed prizes Number of winners in the giveaway Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionGiveawayResults from given interface. GetUnclaimedCount returns value of UnclaimedCount field. GetWinnersCount returns value of WinnersCount 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. (*MessageActionGiveawayResults) Zero() bool *MessageActionGiveawayResults : MessageActionClass *MessageActionGiveawayResults : github.com/gotd/td/bin.BareDecoder *MessageActionGiveawayResults : github.com/gotd/td/bin.BareEncoder *MessageActionGiveawayResults : github.com/gotd/td/bin.Decoder *MessageActionGiveawayResults : github.com/gotd/td/bin.Encoder *MessageActionGiveawayResults : github.com/gotd/td/bin.Object *MessageActionGiveawayResults : github.com/gotd/td/tdp.Object *MessageActionGiveawayResults : fmt.Stringer func MessageActionGiveawayResultsArray.First() (v MessageActionGiveawayResults, ok bool) func MessageActionGiveawayResultsArray.Last() (v MessageActionGiveawayResults, ok bool) func (*MessageActionGiveawayResultsArray).Pop() (v MessageActionGiveawayResults, ok bool) func (*MessageActionGiveawayResultsArray).PopFirst() (v MessageActionGiveawayResults, ok bool)
MessageActionGiveawayResultsArray is adapter for slice of MessageActionGiveawayResults. 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 MessageActionGiveawayResults. Sort sorts slice of MessageActionGiveawayResults. SortStable sorts slice of MessageActionGiveawayResults. func MessageActionClassArray.AsMessageActionGiveawayResults() (to MessageActionGiveawayResultsArray) func MessageActionGiveawayResultsArray.Retain(keep func(x MessageActionGiveawayResults) bool) MessageActionGiveawayResultsArray func MessageActionGiveawayResultsArray.Sort(less func(a, b MessageActionGiveawayResults) bool) MessageActionGiveawayResultsArray func MessageActionGiveawayResultsArray.SortStable(less func(a, b MessageActionGiveawayResults) bool) MessageActionGiveawayResultsArray
MessageActionGroupCall represents TL type `messageActionGroupCall#7a0d7f42`. The group call has ended See https://core.telegram.org/constructor/messageActionGroupCall for reference. Group call Group call duration Use SetDuration and GetDuration 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 MessageActionGroupCall from given interface. GetCall returns value of Call field. GetDuration returns value of Duration conditional field and boolean which is true if field was set. SetDuration sets value of Duration 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. (*MessageActionGroupCall) Zero() bool *MessageActionGroupCall : MessageActionClass *MessageActionGroupCall : github.com/gotd/td/bin.BareDecoder *MessageActionGroupCall : github.com/gotd/td/bin.BareEncoder *MessageActionGroupCall : github.com/gotd/td/bin.Decoder *MessageActionGroupCall : github.com/gotd/td/bin.Encoder *MessageActionGroupCall : github.com/gotd/td/bin.Object *MessageActionGroupCall : github.com/gotd/td/tdp.Object *MessageActionGroupCall : fmt.Stringer func MessageActionGroupCallArray.First() (v MessageActionGroupCall, ok bool) func MessageActionGroupCallArray.Last() (v MessageActionGroupCall, ok bool) func (*MessageActionGroupCallArray).Pop() (v MessageActionGroupCall, ok bool) func (*MessageActionGroupCallArray).PopFirst() (v MessageActionGroupCall, ok bool)
MessageActionGroupCallArray is adapter for slice of MessageActionGroupCall. 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 MessageActionGroupCall. Sort sorts slice of MessageActionGroupCall. SortStable sorts slice of MessageActionGroupCall. func MessageActionClassArray.AsMessageActionGroupCall() (to MessageActionGroupCallArray) func MessageActionGroupCallArray.Retain(keep func(x MessageActionGroupCall) bool) MessageActionGroupCallArray func MessageActionGroupCallArray.Sort(less func(a, b MessageActionGroupCall) bool) MessageActionGroupCallArray func MessageActionGroupCallArray.SortStable(less func(a, b MessageActionGroupCall) bool) MessageActionGroupCallArray
MessageActionGroupCallScheduled represents TL type `messageActionGroupCallScheduled#b3a07661`. A group call was scheduled See https://core.telegram.org/constructor/messageActionGroupCallScheduled for reference. The group call When is this group call scheduled to start Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionGroupCallScheduled from given interface. GetCall returns value of Call field. GetScheduleDate returns value of ScheduleDate 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. (*MessageActionGroupCallScheduled) Zero() bool *MessageActionGroupCallScheduled : MessageActionClass *MessageActionGroupCallScheduled : github.com/gotd/td/bin.BareDecoder *MessageActionGroupCallScheduled : github.com/gotd/td/bin.BareEncoder *MessageActionGroupCallScheduled : github.com/gotd/td/bin.Decoder *MessageActionGroupCallScheduled : github.com/gotd/td/bin.Encoder *MessageActionGroupCallScheduled : github.com/gotd/td/bin.Object *MessageActionGroupCallScheduled : github.com/gotd/td/tdp.Object *MessageActionGroupCallScheduled : fmt.Stringer func MessageActionGroupCallScheduledArray.First() (v MessageActionGroupCallScheduled, ok bool) func MessageActionGroupCallScheduledArray.Last() (v MessageActionGroupCallScheduled, ok bool) func (*MessageActionGroupCallScheduledArray).Pop() (v MessageActionGroupCallScheduled, ok bool) func (*MessageActionGroupCallScheduledArray).PopFirst() (v MessageActionGroupCallScheduled, ok bool)
MessageActionGroupCallScheduledArray is adapter for slice of MessageActionGroupCallScheduled. 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 MessageActionGroupCallScheduled. Sort sorts slice of MessageActionGroupCallScheduled. SortStable sorts slice of MessageActionGroupCallScheduled. func MessageActionClassArray.AsMessageActionGroupCallScheduled() (to MessageActionGroupCallScheduledArray) func MessageActionGroupCallScheduledArray.Retain(keep func(x MessageActionGroupCallScheduled) bool) MessageActionGroupCallScheduledArray func MessageActionGroupCallScheduledArray.Sort(less func(a, b MessageActionGroupCallScheduled) bool) MessageActionGroupCallScheduledArray func MessageActionGroupCallScheduledArray.SortStable(less func(a, b MessageActionGroupCallScheduled) bool) MessageActionGroupCallScheduledArray
MessageActionHistoryClear represents TL type `messageActionHistoryClear#9fbab604`. Chat history was cleared See https://core.telegram.org/constructor/messageActionHistoryClear 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. (*MessageActionHistoryClear) Zero() bool *MessageActionHistoryClear : MessageActionClass *MessageActionHistoryClear : github.com/gotd/td/bin.BareDecoder *MessageActionHistoryClear : github.com/gotd/td/bin.BareEncoder *MessageActionHistoryClear : github.com/gotd/td/bin.Decoder *MessageActionHistoryClear : github.com/gotd/td/bin.Encoder *MessageActionHistoryClear : github.com/gotd/td/bin.Object *MessageActionHistoryClear : github.com/gotd/td/tdp.Object *MessageActionHistoryClear : fmt.Stringer
MessageActionInviteToGroupCall represents TL type `messageActionInviteToGroupCall#502f92f7`. A set of users was invited to the group call See https://core.telegram.org/constructor/messageActionInviteToGroupCall for reference. The group call The invited users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionInviteToGroupCall from given interface. GetCall returns value of Call field. GetUsers returns value of Users 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. (*MessageActionInviteToGroupCall) Zero() bool *MessageActionInviteToGroupCall : MessageActionClass *MessageActionInviteToGroupCall : github.com/gotd/td/bin.BareDecoder *MessageActionInviteToGroupCall : github.com/gotd/td/bin.BareEncoder *MessageActionInviteToGroupCall : github.com/gotd/td/bin.Decoder *MessageActionInviteToGroupCall : github.com/gotd/td/bin.Encoder *MessageActionInviteToGroupCall : github.com/gotd/td/bin.Object *MessageActionInviteToGroupCall : github.com/gotd/td/tdp.Object *MessageActionInviteToGroupCall : fmt.Stringer func MessageActionInviteToGroupCallArray.First() (v MessageActionInviteToGroupCall, ok bool) func MessageActionInviteToGroupCallArray.Last() (v MessageActionInviteToGroupCall, ok bool) func (*MessageActionInviteToGroupCallArray).Pop() (v MessageActionInviteToGroupCall, ok bool) func (*MessageActionInviteToGroupCallArray).PopFirst() (v MessageActionInviteToGroupCall, ok bool)
MessageActionInviteToGroupCallArray is adapter for slice of MessageActionInviteToGroupCall. 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 MessageActionInviteToGroupCall. Sort sorts slice of MessageActionInviteToGroupCall. SortStable sorts slice of MessageActionInviteToGroupCall. func MessageActionClassArray.AsMessageActionInviteToGroupCall() (to MessageActionInviteToGroupCallArray) func MessageActionInviteToGroupCallArray.Retain(keep func(x MessageActionInviteToGroupCall) bool) MessageActionInviteToGroupCallArray func MessageActionInviteToGroupCallArray.Sort(less func(a, b MessageActionInviteToGroupCall) bool) MessageActionInviteToGroupCallArray func MessageActionInviteToGroupCallArray.SortStable(less func(a, b MessageActionInviteToGroupCall) bool) MessageActionInviteToGroupCallArray
MessageActionPaymentSent represents TL type `messageActionPaymentSent#96163f56`. A payment was sent See https://core.telegram.org/constructor/messageActionPaymentSent for reference. Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields An invoice slug taken from an invoice deep link¹ or from the premium_invoice_slug app config parameter »² Links: 1) https://core.telegram.org/api/links#invoice-links 2) https://core.telegram.org/api/config#premium-invoice-slug Use SetInvoiceSlug and GetInvoiceSlug helpers. Whether this is the first payment of a recurring payment we just subscribed to Whether this payment is part of a recurring payment Price of the product 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 MessageActionPaymentSent from given interface. GetCurrency returns value of Currency field. GetInvoiceSlug returns value of InvoiceSlug conditional field and boolean which is true if field was set. GetRecurringInit returns value of RecurringInit conditional field. GetRecurringUsed returns value of RecurringUsed conditional field. GetTotalAmount returns value of TotalAmount field. SetFlags sets flags for non-zero fields. SetInvoiceSlug sets value of InvoiceSlug conditional field. SetRecurringInit sets value of RecurringInit conditional field. SetRecurringUsed sets value of RecurringUsed 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. (*MessageActionPaymentSent) Zero() bool *MessageActionPaymentSent : MessageActionClass *MessageActionPaymentSent : github.com/gotd/td/bin.BareDecoder *MessageActionPaymentSent : github.com/gotd/td/bin.BareEncoder *MessageActionPaymentSent : github.com/gotd/td/bin.Decoder *MessageActionPaymentSent : github.com/gotd/td/bin.Encoder *MessageActionPaymentSent : github.com/gotd/td/bin.Object *MessageActionPaymentSent : github.com/gotd/td/tdp.Object *MessageActionPaymentSent : fmt.Stringer func MessageActionPaymentSentArray.First() (v MessageActionPaymentSent, ok bool) func MessageActionPaymentSentArray.Last() (v MessageActionPaymentSent, ok bool) func (*MessageActionPaymentSentArray).Pop() (v MessageActionPaymentSent, ok bool) func (*MessageActionPaymentSentArray).PopFirst() (v MessageActionPaymentSent, ok bool)
MessageActionPaymentSentArray is adapter for slice of MessageActionPaymentSent. 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 MessageActionPaymentSent. Sort sorts slice of MessageActionPaymentSent. SortStable sorts slice of MessageActionPaymentSent. func MessageActionClassArray.AsMessageActionPaymentSent() (to MessageActionPaymentSentArray) func MessageActionPaymentSentArray.Retain(keep func(x MessageActionPaymentSent) bool) MessageActionPaymentSentArray func MessageActionPaymentSentArray.Sort(less func(a, b MessageActionPaymentSent) bool) MessageActionPaymentSentArray func MessageActionPaymentSentArray.SortStable(less func(a, b MessageActionPaymentSent) bool) MessageActionPaymentSentArray
MessageActionPaymentSentMe represents TL type `messageActionPaymentSentMe#8f31b327`. A user just sent a payment to me (a bot) See https://core.telegram.org/constructor/messageActionPaymentSentMe for reference. Provider payment identifier Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Order info provided by the user Use SetInfo and GetInfo helpers. Bot specified invoice payload Whether this is the first payment of a recurring payment we just subscribed to Whether this payment is part of a recurring payment Identifier of the shipping option chosen by the user Use SetShippingOptionID and GetShippingOptionID helpers. Price of the product 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 MessageActionPaymentSentMe from given interface. GetCharge returns value of Charge field. GetCurrency returns value of Currency field. GetInfo returns value of Info conditional field and boolean which is true if field was set. GetPayload returns value of Payload field. GetRecurringInit returns value of RecurringInit conditional field. GetRecurringUsed returns value of RecurringUsed conditional field. GetShippingOptionID returns value of ShippingOptionID conditional field and boolean which is true if field was set. GetTotalAmount returns value of TotalAmount field. SetFlags sets flags for non-zero fields. SetInfo sets value of Info conditional field. SetRecurringInit sets value of RecurringInit conditional field. SetRecurringUsed sets value of RecurringUsed conditional field. SetShippingOptionID sets value of ShippingOptionID 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. (*MessageActionPaymentSentMe) Zero() bool *MessageActionPaymentSentMe : MessageActionClass *MessageActionPaymentSentMe : github.com/gotd/td/bin.BareDecoder *MessageActionPaymentSentMe : github.com/gotd/td/bin.BareEncoder *MessageActionPaymentSentMe : github.com/gotd/td/bin.Decoder *MessageActionPaymentSentMe : github.com/gotd/td/bin.Encoder *MessageActionPaymentSentMe : github.com/gotd/td/bin.Object *MessageActionPaymentSentMe : github.com/gotd/td/tdp.Object *MessageActionPaymentSentMe : fmt.Stringer func MessageActionPaymentSentMeArray.First() (v MessageActionPaymentSentMe, ok bool) func MessageActionPaymentSentMeArray.Last() (v MessageActionPaymentSentMe, ok bool) func (*MessageActionPaymentSentMeArray).Pop() (v MessageActionPaymentSentMe, ok bool) func (*MessageActionPaymentSentMeArray).PopFirst() (v MessageActionPaymentSentMe, ok bool)
MessageActionPaymentSentMeArray is adapter for slice of MessageActionPaymentSentMe. 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 MessageActionPaymentSentMe. Sort sorts slice of MessageActionPaymentSentMe. SortStable sorts slice of MessageActionPaymentSentMe. func MessageActionClassArray.AsMessageActionPaymentSentMe() (to MessageActionPaymentSentMeArray) func MessageActionPaymentSentMeArray.Retain(keep func(x MessageActionPaymentSentMe) bool) MessageActionPaymentSentMeArray func MessageActionPaymentSentMeArray.Sort(less func(a, b MessageActionPaymentSentMe) bool) MessageActionPaymentSentMeArray func MessageActionPaymentSentMeArray.SortStable(less func(a, b MessageActionPaymentSentMe) bool) MessageActionPaymentSentMeArray
MessageActionPhoneCall represents TL type `messageActionPhoneCall#80e11a7f`. A phone call See https://core.telegram.org/constructor/messageActionPhoneCall for reference. Call ID Duration of the call in seconds Use SetDuration and GetDuration helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If the call has ended, the reason why it ended Use SetReason and GetReason helpers. Is this a video call? Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionPhoneCall from given interface. GetCallID returns value of CallID field. GetDuration returns value of Duration conditional field and boolean which is true if field was set. GetReason returns value of Reason conditional field and boolean which is true if field was set. GetVideo returns value of Video conditional field. SetDuration sets value of Duration conditional field. SetFlags sets flags for non-zero fields. SetReason sets value of Reason conditional field. SetVideo sets value of Video 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. (*MessageActionPhoneCall) Zero() bool *MessageActionPhoneCall : MessageActionClass *MessageActionPhoneCall : github.com/gotd/td/bin.BareDecoder *MessageActionPhoneCall : github.com/gotd/td/bin.BareEncoder *MessageActionPhoneCall : github.com/gotd/td/bin.Decoder *MessageActionPhoneCall : github.com/gotd/td/bin.Encoder *MessageActionPhoneCall : github.com/gotd/td/bin.Object *MessageActionPhoneCall : github.com/gotd/td/tdp.Object *MessageActionPhoneCall : fmt.Stringer func MessageActionPhoneCallArray.First() (v MessageActionPhoneCall, ok bool) func MessageActionPhoneCallArray.Last() (v MessageActionPhoneCall, ok bool) func (*MessageActionPhoneCallArray).Pop() (v MessageActionPhoneCall, ok bool) func (*MessageActionPhoneCallArray).PopFirst() (v MessageActionPhoneCall, ok bool)
MessageActionPhoneCallArray is adapter for slice of MessageActionPhoneCall. 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 MessageActionPhoneCall. Sort sorts slice of MessageActionPhoneCall. SortStable sorts slice of MessageActionPhoneCall. func MessageActionClassArray.AsMessageActionPhoneCall() (to MessageActionPhoneCallArray) func MessageActionPhoneCallArray.Retain(keep func(x MessageActionPhoneCall) bool) MessageActionPhoneCallArray func MessageActionPhoneCallArray.Sort(less func(a, b MessageActionPhoneCall) bool) MessageActionPhoneCallArray func MessageActionPhoneCallArray.SortStable(less func(a, b MessageActionPhoneCall) bool) MessageActionPhoneCallArray
MessageActionPinMessage represents TL type `messageActionPinMessage#94bd38ed`. A message was pinned See https://core.telegram.org/constructor/messageActionPinMessage 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. (*MessageActionPinMessage) Zero() bool *MessageActionPinMessage : MessageActionClass *MessageActionPinMessage : github.com/gotd/td/bin.BareDecoder *MessageActionPinMessage : github.com/gotd/td/bin.BareEncoder *MessageActionPinMessage : github.com/gotd/td/bin.Decoder *MessageActionPinMessage : github.com/gotd/td/bin.Encoder *MessageActionPinMessage : github.com/gotd/td/bin.Object *MessageActionPinMessage : github.com/gotd/td/tdp.Object *MessageActionPinMessage : fmt.Stringer
MessageActionRequestedPeer represents TL type `messageActionRequestedPeer#31518e9b`. Contains info about a peer that the user shared with the bot after clicking on a keyboardButtonRequestPeer¹ button. Links: 1. https://core.telegram.org/constructor/keyboardButtonRequestPeer See https://core.telegram.org/constructor/messageActionRequestedPeer for reference. button_id contained in the keyboardButtonRequestPeer¹ Links: 1) https://core.telegram.org/constructor/keyboardButtonRequestPeer Peers field of MessageActionRequestedPeer. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionRequestedPeer from given interface. GetButtonID returns value of ButtonID field. GetPeers returns value of Peers field. MapPeers returns field Peers wrapped in PeerClassArray 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. (*MessageActionRequestedPeer) Zero() bool *MessageActionRequestedPeer : MessageActionClass *MessageActionRequestedPeer : github.com/gotd/td/bin.BareDecoder *MessageActionRequestedPeer : github.com/gotd/td/bin.BareEncoder *MessageActionRequestedPeer : github.com/gotd/td/bin.Decoder *MessageActionRequestedPeer : github.com/gotd/td/bin.Encoder *MessageActionRequestedPeer : github.com/gotd/td/bin.Object *MessageActionRequestedPeer : github.com/gotd/td/tdp.Object *MessageActionRequestedPeer : fmt.Stringer func MessageActionRequestedPeerArray.First() (v MessageActionRequestedPeer, ok bool) func MessageActionRequestedPeerArray.Last() (v MessageActionRequestedPeer, ok bool) func (*MessageActionRequestedPeerArray).Pop() (v MessageActionRequestedPeer, ok bool) func (*MessageActionRequestedPeerArray).PopFirst() (v MessageActionRequestedPeer, ok bool)
MessageActionRequestedPeerArray is adapter for slice of MessageActionRequestedPeer. 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 MessageActionRequestedPeer. Sort sorts slice of MessageActionRequestedPeer. SortStable sorts slice of MessageActionRequestedPeer. func MessageActionClassArray.AsMessageActionRequestedPeer() (to MessageActionRequestedPeerArray) func MessageActionRequestedPeerArray.Retain(keep func(x MessageActionRequestedPeer) bool) MessageActionRequestedPeerArray func MessageActionRequestedPeerArray.Sort(less func(a, b MessageActionRequestedPeer) bool) MessageActionRequestedPeerArray func MessageActionRequestedPeerArray.SortStable(less func(a, b MessageActionRequestedPeer) bool) MessageActionRequestedPeerArray
MessageActionScreenshotTaken represents TL type `messageActionScreenshotTaken#4792929b`. A screenshot of the chat was taken See https://core.telegram.org/constructor/messageActionScreenshotTaken 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. (*MessageActionScreenshotTaken) Zero() bool *MessageActionScreenshotTaken : MessageActionClass *MessageActionScreenshotTaken : github.com/gotd/td/bin.BareDecoder *MessageActionScreenshotTaken : github.com/gotd/td/bin.BareEncoder *MessageActionScreenshotTaken : github.com/gotd/td/bin.Decoder *MessageActionScreenshotTaken : github.com/gotd/td/bin.Encoder *MessageActionScreenshotTaken : github.com/gotd/td/bin.Object *MessageActionScreenshotTaken : github.com/gotd/td/tdp.Object *MessageActionScreenshotTaken : fmt.Stringer
MessageActionSecureValuesSent represents TL type `messageActionSecureValuesSent#d95c6154`. Request for secure telegram passport¹ values was sent Links: 1. https://core.telegram.org/passport See https://core.telegram.org/constructor/messageActionSecureValuesSent for reference. Document types to delete Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionSecureValuesSent 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. (*MessageActionSecureValuesSent) Zero() bool *MessageActionSecureValuesSent : MessageActionClass *MessageActionSecureValuesSent : github.com/gotd/td/bin.BareDecoder *MessageActionSecureValuesSent : github.com/gotd/td/bin.BareEncoder *MessageActionSecureValuesSent : github.com/gotd/td/bin.Decoder *MessageActionSecureValuesSent : github.com/gotd/td/bin.Encoder *MessageActionSecureValuesSent : github.com/gotd/td/bin.Object *MessageActionSecureValuesSent : github.com/gotd/td/tdp.Object *MessageActionSecureValuesSent : fmt.Stringer func MessageActionSecureValuesSentArray.First() (v MessageActionSecureValuesSent, ok bool) func MessageActionSecureValuesSentArray.Last() (v MessageActionSecureValuesSent, ok bool) func (*MessageActionSecureValuesSentArray).Pop() (v MessageActionSecureValuesSent, ok bool) func (*MessageActionSecureValuesSentArray).PopFirst() (v MessageActionSecureValuesSent, ok bool)
MessageActionSecureValuesSentArray is adapter for slice of MessageActionSecureValuesSent. 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 MessageActionSecureValuesSent. Sort sorts slice of MessageActionSecureValuesSent. SortStable sorts slice of MessageActionSecureValuesSent. func MessageActionClassArray.AsMessageActionSecureValuesSent() (to MessageActionSecureValuesSentArray) func MessageActionSecureValuesSentArray.Retain(keep func(x MessageActionSecureValuesSent) bool) MessageActionSecureValuesSentArray func MessageActionSecureValuesSentArray.Sort(less func(a, b MessageActionSecureValuesSent) bool) MessageActionSecureValuesSentArray func MessageActionSecureValuesSentArray.SortStable(less func(a, b MessageActionSecureValuesSent) bool) MessageActionSecureValuesSentArray
MessageActionSecureValuesSentMe represents TL type `messageActionSecureValuesSentMe#1b287353`. Secure telegram passport¹ values were received Links: 1. https://core.telegram.org/passport See https://core.telegram.org/constructor/messageActionSecureValuesSentMe for reference. Encrypted credentials required to decrypt the data Vector with information about documents and other Telegram Passport elements that were shared with the bot Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionSecureValuesSentMe from given interface. GetCredentials returns value of Credentials field. GetValues returns value of Values 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. (*MessageActionSecureValuesSentMe) Zero() bool *MessageActionSecureValuesSentMe : MessageActionClass *MessageActionSecureValuesSentMe : github.com/gotd/td/bin.BareDecoder *MessageActionSecureValuesSentMe : github.com/gotd/td/bin.BareEncoder *MessageActionSecureValuesSentMe : github.com/gotd/td/bin.Decoder *MessageActionSecureValuesSentMe : github.com/gotd/td/bin.Encoder *MessageActionSecureValuesSentMe : github.com/gotd/td/bin.Object *MessageActionSecureValuesSentMe : github.com/gotd/td/tdp.Object *MessageActionSecureValuesSentMe : fmt.Stringer func MessageActionSecureValuesSentMeArray.First() (v MessageActionSecureValuesSentMe, ok bool) func MessageActionSecureValuesSentMeArray.Last() (v MessageActionSecureValuesSentMe, ok bool) func (*MessageActionSecureValuesSentMeArray).Pop() (v MessageActionSecureValuesSentMe, ok bool) func (*MessageActionSecureValuesSentMeArray).PopFirst() (v MessageActionSecureValuesSentMe, ok bool)
MessageActionSecureValuesSentMeArray is adapter for slice of MessageActionSecureValuesSentMe. 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 MessageActionSecureValuesSentMe. Sort sorts slice of MessageActionSecureValuesSentMe. SortStable sorts slice of MessageActionSecureValuesSentMe. func MessageActionClassArray.AsMessageActionSecureValuesSentMe() (to MessageActionSecureValuesSentMeArray) func MessageActionSecureValuesSentMeArray.Retain(keep func(x MessageActionSecureValuesSentMe) bool) MessageActionSecureValuesSentMeArray func MessageActionSecureValuesSentMeArray.Sort(less func(a, b MessageActionSecureValuesSentMe) bool) MessageActionSecureValuesSentMeArray func MessageActionSecureValuesSentMeArray.SortStable(less func(a, b MessageActionSecureValuesSentMe) bool) MessageActionSecureValuesSentMeArray
MessageActionSetChatTheme represents TL type `messageActionSetChatTheme#aa786345`. The chat theme was changed See https://core.telegram.org/constructor/messageActionSetChatTheme for reference. The emoji, for now , and are supported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionSetChatTheme from given interface. GetEmoticon returns value of Emoticon 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. (*MessageActionSetChatTheme) Zero() bool *MessageActionSetChatTheme : MessageActionClass *MessageActionSetChatTheme : github.com/gotd/td/bin.BareDecoder *MessageActionSetChatTheme : github.com/gotd/td/bin.BareEncoder *MessageActionSetChatTheme : github.com/gotd/td/bin.Decoder *MessageActionSetChatTheme : github.com/gotd/td/bin.Encoder *MessageActionSetChatTheme : github.com/gotd/td/bin.Object *MessageActionSetChatTheme : github.com/gotd/td/tdp.Object *MessageActionSetChatTheme : fmt.Stringer func MessageActionSetChatThemeArray.First() (v MessageActionSetChatTheme, ok bool) func MessageActionSetChatThemeArray.Last() (v MessageActionSetChatTheme, ok bool) func (*MessageActionSetChatThemeArray).Pop() (v MessageActionSetChatTheme, ok bool) func (*MessageActionSetChatThemeArray).PopFirst() (v MessageActionSetChatTheme, ok bool)
MessageActionSetChatThemeArray is adapter for slice of MessageActionSetChatTheme. 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 MessageActionSetChatTheme. Sort sorts slice of MessageActionSetChatTheme. SortStable sorts slice of MessageActionSetChatTheme. func MessageActionClassArray.AsMessageActionSetChatTheme() (to MessageActionSetChatThemeArray) func MessageActionSetChatThemeArray.Retain(keep func(x MessageActionSetChatTheme) bool) MessageActionSetChatThemeArray func MessageActionSetChatThemeArray.Sort(less func(a, b MessageActionSetChatTheme) bool) MessageActionSetChatThemeArray func MessageActionSetChatThemeArray.SortStable(less func(a, b MessageActionSetChatTheme) bool) MessageActionSetChatThemeArray
MessageActionSetChatWallPaper represents TL type `messageActionSetChatWallPaper#5060a3f4`. The wallpaper »¹ of the current chat was changed. Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/constructor/messageActionSetChatWallPaper for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, indicates the wallpaper was forcefully applied for both sides, without explicit confirmation from the other side. If the message is incoming, and we did not like the new wallpaper the other user has chosen for us, we can re-set our previous wallpaper just on our side, by invoking messages.setChatWallPaper¹, providing only the revert flag (and obviously the peer parameter). Links: 1) https://core.telegram.org/method/messages.setChatWallPaper If set, indicates the user applied a wallpaper »¹ previously sent by the other user in a messageActionSetChatWallPaper² message. Links: 1) https://core.telegram.org/api/wallpapers 2) https://core.telegram.org/constructor/messageActionSetChatWallPaper New wallpaper¹ 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 MessageActionSetChatWallPaper from given interface. GetForBoth returns value of ForBoth conditional field. GetSame returns value of Same conditional field. GetWallpaper returns value of Wallpaper field. SetFlags sets flags for non-zero fields. SetForBoth sets value of ForBoth conditional field. SetSame sets value of Same 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. (*MessageActionSetChatWallPaper) Zero() bool *MessageActionSetChatWallPaper : MessageActionClass *MessageActionSetChatWallPaper : github.com/gotd/td/bin.BareDecoder *MessageActionSetChatWallPaper : github.com/gotd/td/bin.BareEncoder *MessageActionSetChatWallPaper : github.com/gotd/td/bin.Decoder *MessageActionSetChatWallPaper : github.com/gotd/td/bin.Encoder *MessageActionSetChatWallPaper : github.com/gotd/td/bin.Object *MessageActionSetChatWallPaper : github.com/gotd/td/tdp.Object *MessageActionSetChatWallPaper : fmt.Stringer func MessageActionSetChatWallPaperArray.First() (v MessageActionSetChatWallPaper, ok bool) func MessageActionSetChatWallPaperArray.Last() (v MessageActionSetChatWallPaper, ok bool) func (*MessageActionSetChatWallPaperArray).Pop() (v MessageActionSetChatWallPaper, ok bool) func (*MessageActionSetChatWallPaperArray).PopFirst() (v MessageActionSetChatWallPaper, ok bool)
MessageActionSetChatWallPaperArray is adapter for slice of MessageActionSetChatWallPaper. 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 MessageActionSetChatWallPaper. Sort sorts slice of MessageActionSetChatWallPaper. SortStable sorts slice of MessageActionSetChatWallPaper. func MessageActionClassArray.AsMessageActionSetChatWallPaper() (to MessageActionSetChatWallPaperArray) func MessageActionSetChatWallPaperArray.Retain(keep func(x MessageActionSetChatWallPaper) bool) MessageActionSetChatWallPaperArray func MessageActionSetChatWallPaperArray.Sort(less func(a, b MessageActionSetChatWallPaper) bool) MessageActionSetChatWallPaperArray func MessageActionSetChatWallPaperArray.SortStable(less func(a, b MessageActionSetChatWallPaper) bool) MessageActionSetChatWallPaperArray
MessageActionSetMessagesTTL represents TL type `messageActionSetMessagesTTL#3c134d7b`. The Time-To-Live of messages in this chat was changed. See https://core.telegram.org/constructor/messageActionSetMessagesTTL for reference. If set, the chat TTL setting was set not due to a manual change by one of participants but automatically because one of the participants has the default TTL settings enabled »¹. For example, when a user writes to us for the first time and we have set a default messages TTL of 1 week, this service message (with auto_setting_from=our_userid) will be emitted before our first message. Links: 1) https://core.telegram.org/method/messages.setDefaultHistoryTTL Use SetAutoSettingFrom and GetAutoSettingFrom helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields New Time-To-Live of all messages sent in this chat; if 0, autodeletion was disabled. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionSetMessagesTTL from given interface. GetAutoSettingFrom returns value of AutoSettingFrom conditional field and boolean which is true if field was set. GetPeriod returns value of Period field. SetAutoSettingFrom sets value of AutoSettingFrom 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. (*MessageActionSetMessagesTTL) Zero() bool *MessageActionSetMessagesTTL : MessageActionClass *MessageActionSetMessagesTTL : github.com/gotd/td/bin.BareDecoder *MessageActionSetMessagesTTL : github.com/gotd/td/bin.BareEncoder *MessageActionSetMessagesTTL : github.com/gotd/td/bin.Decoder *MessageActionSetMessagesTTL : github.com/gotd/td/bin.Encoder *MessageActionSetMessagesTTL : github.com/gotd/td/bin.Object *MessageActionSetMessagesTTL : github.com/gotd/td/tdp.Object *MessageActionSetMessagesTTL : fmt.Stringer func MessageActionSetMessagesTTLArray.First() (v MessageActionSetMessagesTTL, ok bool) func MessageActionSetMessagesTTLArray.Last() (v MessageActionSetMessagesTTL, ok bool) func (*MessageActionSetMessagesTTLArray).Pop() (v MessageActionSetMessagesTTL, ok bool) func (*MessageActionSetMessagesTTLArray).PopFirst() (v MessageActionSetMessagesTTL, ok bool)
MessageActionSetMessagesTTLArray is adapter for slice of MessageActionSetMessagesTTL. 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 MessageActionSetMessagesTTL. Sort sorts slice of MessageActionSetMessagesTTL. SortStable sorts slice of MessageActionSetMessagesTTL. func MessageActionClassArray.AsMessageActionSetMessagesTTL() (to MessageActionSetMessagesTTLArray) func MessageActionSetMessagesTTLArray.Retain(keep func(x MessageActionSetMessagesTTL) bool) MessageActionSetMessagesTTLArray func MessageActionSetMessagesTTLArray.Sort(less func(a, b MessageActionSetMessagesTTL) bool) MessageActionSetMessagesTTLArray func MessageActionSetMessagesTTLArray.SortStable(less func(a, b MessageActionSetMessagesTTL) bool) MessageActionSetMessagesTTLArray
MessageActionSuggestProfilePhoto represents TL type `messageActionSuggestProfilePhoto#57de635e`. A new profile picture was suggested using photos.uploadContactProfilePhoto¹. Links: 1. https://core.telegram.org/method/photos.uploadContactProfilePhoto See https://core.telegram.org/constructor/messageActionSuggestProfilePhoto for reference. New group profile photo Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionSuggestProfilePhoto from given interface. GetPhoto returns value of Photo 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. (*MessageActionSuggestProfilePhoto) Zero() bool *MessageActionSuggestProfilePhoto : MessageActionClass *MessageActionSuggestProfilePhoto : github.com/gotd/td/bin.BareDecoder *MessageActionSuggestProfilePhoto : github.com/gotd/td/bin.BareEncoder *MessageActionSuggestProfilePhoto : github.com/gotd/td/bin.Decoder *MessageActionSuggestProfilePhoto : github.com/gotd/td/bin.Encoder *MessageActionSuggestProfilePhoto : github.com/gotd/td/bin.Object *MessageActionSuggestProfilePhoto : github.com/gotd/td/tdp.Object *MessageActionSuggestProfilePhoto : fmt.Stringer func MessageActionSuggestProfilePhotoArray.First() (v MessageActionSuggestProfilePhoto, ok bool) func MessageActionSuggestProfilePhotoArray.Last() (v MessageActionSuggestProfilePhoto, ok bool) func (*MessageActionSuggestProfilePhotoArray).Pop() (v MessageActionSuggestProfilePhoto, ok bool) func (*MessageActionSuggestProfilePhotoArray).PopFirst() (v MessageActionSuggestProfilePhoto, ok bool)
MessageActionSuggestProfilePhotoArray is adapter for slice of MessageActionSuggestProfilePhoto. 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 MessageActionSuggestProfilePhoto. Sort sorts slice of MessageActionSuggestProfilePhoto. SortStable sorts slice of MessageActionSuggestProfilePhoto. func MessageActionClassArray.AsMessageActionSuggestProfilePhoto() (to MessageActionSuggestProfilePhotoArray) func MessageActionSuggestProfilePhotoArray.Retain(keep func(x MessageActionSuggestProfilePhoto) bool) MessageActionSuggestProfilePhotoArray func MessageActionSuggestProfilePhotoArray.Sort(less func(a, b MessageActionSuggestProfilePhoto) bool) MessageActionSuggestProfilePhotoArray func MessageActionSuggestProfilePhotoArray.SortStable(less func(a, b MessageActionSuggestProfilePhoto) bool) MessageActionSuggestProfilePhotoArray
MessageActionTopicCreate represents TL type `messageActionTopicCreate#d999256`. A forum topic¹ was created. Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/messageActionTopicCreate for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. ID of the custom emoji¹ used as topic icon. Links: 1) https://core.telegram.org/api/custom-emoji Use SetIconEmojiID and GetIconEmojiID helpers. Topic name. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionTopicCreate from given interface. GetIconColor returns value of IconColor field. GetIconEmojiID returns value of IconEmojiID conditional field and boolean which is true if field was set. GetTitle returns value of Title field. SetFlags sets flags for non-zero fields. SetIconEmojiID sets value of IconEmojiID 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. (*MessageActionTopicCreate) Zero() bool *MessageActionTopicCreate : MessageActionClass *MessageActionTopicCreate : github.com/gotd/td/bin.BareDecoder *MessageActionTopicCreate : github.com/gotd/td/bin.BareEncoder *MessageActionTopicCreate : github.com/gotd/td/bin.Decoder *MessageActionTopicCreate : github.com/gotd/td/bin.Encoder *MessageActionTopicCreate : github.com/gotd/td/bin.Object *MessageActionTopicCreate : github.com/gotd/td/tdp.Object *MessageActionTopicCreate : fmt.Stringer func MessageActionTopicCreateArray.First() (v MessageActionTopicCreate, ok bool) func MessageActionTopicCreateArray.Last() (v MessageActionTopicCreate, ok bool) func (*MessageActionTopicCreateArray).Pop() (v MessageActionTopicCreate, ok bool) func (*MessageActionTopicCreateArray).PopFirst() (v MessageActionTopicCreate, ok bool)
MessageActionTopicCreateArray is adapter for slice of MessageActionTopicCreate. 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 MessageActionTopicCreate. Sort sorts slice of MessageActionTopicCreate. SortStable sorts slice of MessageActionTopicCreate. func MessageActionClassArray.AsMessageActionTopicCreate() (to MessageActionTopicCreateArray) func MessageActionTopicCreateArray.Retain(keep func(x MessageActionTopicCreate) bool) MessageActionTopicCreateArray func MessageActionTopicCreateArray.Sort(less func(a, b MessageActionTopicCreate) bool) MessageActionTopicCreateArray func MessageActionTopicCreateArray.SortStable(less func(a, b MessageActionTopicCreate) bool) MessageActionTopicCreateArray
MessageActionTopicEdit represents TL type `messageActionTopicEdit#c0944820`. Forum topic¹ information was edited. Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/messageActionTopicEdit for reference. Whether the topic was opened or closed. Use SetClosed and GetClosed helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the topic was hidden or unhidden (only valid for the "General" topic, id=1). Use SetHidden and GetHidden helpers. ID of the new custom emoji¹ used as topic icon, or if it was removed. Links: 1) https://core.telegram.org/api/custom-emoji Use SetIconEmojiID and GetIconEmojiID helpers. New topic title. Use SetTitle and GetTitle helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionTopicEdit from given interface. GetClosed returns value of Closed conditional field and boolean which is true if field was set. GetHidden returns value of Hidden conditional field and boolean which is true if field was set. GetIconEmojiID returns value of IconEmojiID 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. SetClosed sets value of Closed conditional field. SetFlags sets flags for non-zero fields. SetHidden sets value of Hidden conditional field. SetIconEmojiID sets value of IconEmojiID 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. (*MessageActionTopicEdit) Zero() bool *MessageActionTopicEdit : MessageActionClass *MessageActionTopicEdit : github.com/gotd/td/bin.BareDecoder *MessageActionTopicEdit : github.com/gotd/td/bin.BareEncoder *MessageActionTopicEdit : github.com/gotd/td/bin.Decoder *MessageActionTopicEdit : github.com/gotd/td/bin.Encoder *MessageActionTopicEdit : github.com/gotd/td/bin.Object *MessageActionTopicEdit : github.com/gotd/td/tdp.Object *MessageActionTopicEdit : fmt.Stringer func MessageActionTopicEditArray.First() (v MessageActionTopicEdit, ok bool) func MessageActionTopicEditArray.Last() (v MessageActionTopicEdit, ok bool) func (*MessageActionTopicEditArray).Pop() (v MessageActionTopicEdit, ok bool) func (*MessageActionTopicEditArray).PopFirst() (v MessageActionTopicEdit, ok bool)
MessageActionTopicEditArray is adapter for slice of MessageActionTopicEdit. 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 MessageActionTopicEdit. Sort sorts slice of MessageActionTopicEdit. SortStable sorts slice of MessageActionTopicEdit. func MessageActionClassArray.AsMessageActionTopicEdit() (to MessageActionTopicEditArray) func MessageActionTopicEditArray.Retain(keep func(x MessageActionTopicEdit) bool) MessageActionTopicEditArray func MessageActionTopicEditArray.Sort(less func(a, b MessageActionTopicEdit) bool) MessageActionTopicEditArray func MessageActionTopicEditArray.SortStable(less func(a, b MessageActionTopicEdit) bool) MessageActionTopicEditArray
MessageActionWebViewDataSent represents TL type `messageActionWebViewDataSent#b4c38cb5`. Data from an opened reply keyboard bot mini app¹ was relayed to the bot that owns it (user side service message). Clients should display a service message with the text Data from the «$text» button was transferred to the bot. Links: 1. https://core.telegram.org/api/bots/webapps See https://core.telegram.org/constructor/messageActionWebViewDataSent for reference. Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionWebViewDataSent from given interface. GetText returns value of Text 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. (*MessageActionWebViewDataSent) Zero() bool *MessageActionWebViewDataSent : MessageActionClass *MessageActionWebViewDataSent : github.com/gotd/td/bin.BareDecoder *MessageActionWebViewDataSent : github.com/gotd/td/bin.BareEncoder *MessageActionWebViewDataSent : github.com/gotd/td/bin.Decoder *MessageActionWebViewDataSent : github.com/gotd/td/bin.Encoder *MessageActionWebViewDataSent : github.com/gotd/td/bin.Object *MessageActionWebViewDataSent : github.com/gotd/td/tdp.Object *MessageActionWebViewDataSent : fmt.Stringer func MessageActionWebViewDataSentArray.First() (v MessageActionWebViewDataSent, ok bool) func MessageActionWebViewDataSentArray.Last() (v MessageActionWebViewDataSent, ok bool) func (*MessageActionWebViewDataSentArray).Pop() (v MessageActionWebViewDataSent, ok bool) func (*MessageActionWebViewDataSentArray).PopFirst() (v MessageActionWebViewDataSent, ok bool)
MessageActionWebViewDataSentArray is adapter for slice of MessageActionWebViewDataSent. 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 MessageActionWebViewDataSent. Sort sorts slice of MessageActionWebViewDataSent. SortStable sorts slice of MessageActionWebViewDataSent. func MessageActionClassArray.AsMessageActionWebViewDataSent() (to MessageActionWebViewDataSentArray) func MessageActionWebViewDataSentArray.Retain(keep func(x MessageActionWebViewDataSent) bool) MessageActionWebViewDataSentArray func MessageActionWebViewDataSentArray.Sort(less func(a, b MessageActionWebViewDataSent) bool) MessageActionWebViewDataSentArray func MessageActionWebViewDataSentArray.SortStable(less func(a, b MessageActionWebViewDataSent) bool) MessageActionWebViewDataSentArray
MessageActionWebViewDataSentMe represents TL type `messageActionWebViewDataSentMe#47dd8079`. Data from an opened reply keyboard bot mini app¹ was relayed to the bot that owns it (bot side service message). Links: 1. https://core.telegram.org/api/bots/webapps See https://core.telegram.org/constructor/messageActionWebViewDataSentMe for reference. Relayed data. Text of the keyboardButtonSimpleWebView¹ that was pressed to open the web app. Links: 1) https://core.telegram.org/constructor/keyboardButtonSimpleWebView Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageActionWebViewDataSentMe from given interface. GetData returns value of Data field. GetText returns value of Text 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. (*MessageActionWebViewDataSentMe) Zero() bool *MessageActionWebViewDataSentMe : MessageActionClass *MessageActionWebViewDataSentMe : github.com/gotd/td/bin.BareDecoder *MessageActionWebViewDataSentMe : github.com/gotd/td/bin.BareEncoder *MessageActionWebViewDataSentMe : github.com/gotd/td/bin.Decoder *MessageActionWebViewDataSentMe : github.com/gotd/td/bin.Encoder *MessageActionWebViewDataSentMe : github.com/gotd/td/bin.Object *MessageActionWebViewDataSentMe : github.com/gotd/td/tdp.Object *MessageActionWebViewDataSentMe : fmt.Stringer func MessageActionWebViewDataSentMeArray.First() (v MessageActionWebViewDataSentMe, ok bool) func MessageActionWebViewDataSentMeArray.Last() (v MessageActionWebViewDataSentMe, ok bool) func (*MessageActionWebViewDataSentMeArray).Pop() (v MessageActionWebViewDataSentMe, ok bool) func (*MessageActionWebViewDataSentMeArray).PopFirst() (v MessageActionWebViewDataSentMe, ok bool)
MessageActionWebViewDataSentMeArray is adapter for slice of MessageActionWebViewDataSentMe. 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 MessageActionWebViewDataSentMe. Sort sorts slice of MessageActionWebViewDataSentMe. SortStable sorts slice of MessageActionWebViewDataSentMe. func MessageActionClassArray.AsMessageActionWebViewDataSentMe() (to MessageActionWebViewDataSentMeArray) func MessageActionWebViewDataSentMeArray.Retain(keep func(x MessageActionWebViewDataSentMe) bool) MessageActionWebViewDataSentMeArray func MessageActionWebViewDataSentMeArray.Sort(less func(a, b MessageActionWebViewDataSentMe) bool) MessageActionWebViewDataSentMeArray func MessageActionWebViewDataSentMeArray.SortStable(less func(a, b MessageActionWebViewDataSentMe) bool) MessageActionWebViewDataSentMeArray
MessageArray is adapter for slice of Message. 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 Message. Sort sorts slice of Message. SortByDate sorts slice of Message by Date. SortByID sorts slice of Message by ID. SortStable sorts slice of Message. SortStableByDate sorts slice of Message by Date. SortStableByID sorts slice of Message by ID. ToMap collects constructors to map. func MessageArray.Retain(keep func(x Message) bool) MessageArray func MessageArray.Sort(less func(a, b Message) bool) MessageArray func MessageArray.SortByDate() MessageArray func MessageArray.SortByID() MessageArray func MessageArray.SortStable(less func(a, b Message) bool) MessageArray func MessageArray.SortStableByDate() MessageArray func MessageArray.SortStableByID() MessageArray func MessageClassArray.AsMessage() (to MessageArray)
Message boxes the MessageClass providing a helper. The message that was pinned Decode implements bin.Decoder for MessageBox. Encode implements bin.Encode for MessageBox. *MessageBox : github.com/gotd/td/bin.Decoder *MessageBox : github.com/gotd/td/bin.Encoder *MessageBox : github.com/gotd/td/bin.Object
MessageClass represents Message generic type. See https://core.telegram.org/type/Message for reference. Example: g, err := tg.DecodeMessage(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessageEmpty: // messageEmpty#90a6ca84 case *tg.Message: // message#38116ee0 case *tg.MessageService: // messageService#2b085862 default: panic(v) } AsNotEmpty tries to map MessageClass to NotEmptyMessage. ( MessageClass) Decode(b *bin.Buffer) error ( MessageClass) DecodeBare(b *bin.Buffer) error ( MessageClass) Encode(b *bin.Buffer) error ( MessageClass) EncodeBare(b *bin.Buffer) error Message identifier 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. *Message *MessageEmpty *MessageService MessageClass : github.com/gotd/td/bin.BareDecoder MessageClass : github.com/gotd/td/bin.BareEncoder MessageClass : github.com/gotd/td/bin.Decoder MessageClass : github.com/gotd/td/bin.Encoder MessageClass : github.com/gotd/td/bin.Object MessageClass : fmt.Stringer func DecodeMessage(buf *bin.Buffer) (MessageClass, error) func (*ChannelAdminLogEventActionDeleteMessage).GetMessage() (value MessageClass) func (*ChannelAdminLogEventActionEditMessage).GetNewMessage() (value MessageClass) func (*ChannelAdminLogEventActionEditMessage).GetPrevMessage() (value MessageClass) func (*ChannelAdminLogEventActionSendMessage).GetMessage() (value MessageClass) func (*ChannelAdminLogEventActionStopPoll).GetMessage() (value MessageClass) func (*ChannelAdminLogEventActionUpdatePinned).GetMessage() (value MessageClass) func MessageClassArray.First() (v MessageClass, ok bool) func MessageClassArray.Last() (v MessageClass, ok bool) func (*MessageClassArray).Pop() (v MessageClass, ok bool) func (*MessageClassArray).PopFirst() (v MessageClass, ok bool) func (*MessagesChannelMessages).GetMessages() (value []MessageClass) func (*MessagesDialogs).GetMessages() (value []MessageClass) func (*MessagesDialogsSlice).GetMessages() (value []MessageClass) func (*MessagesDiscussionMessage).GetMessages() (value []MessageClass) func (*MessagesForumTopics).GetMessages() (value []MessageClass) func (*MessagesMessages).GetMessages() (value []MessageClass) func (*MessagesMessagesSlice).GetMessages() (value []MessageClass) func (*MessagesPeerDialogs).GetMessages() (value []MessageClass) func (*MessagesSearchResultsCalendar).GetMessages() (value []MessageClass) func ModifiedMessagesDialogs.GetMessages() (value []MessageClass) func ModifiedMessagesMessages.GetMessages() (value []MessageClass) func (*PublicForwardMessage).GetMessage() (value MessageClass) func (*StoryReactionPublicForward).GetMessage() (value MessageClass) func (*StoryViewPublicForward).GetMessage() (value MessageClass) func (*UpdateEditChannelMessage).GetMessage() (value MessageClass) func (*UpdateEditMessage).GetMessage() (value MessageClass) func (*UpdateNewChannelMessage).GetMessage() (value MessageClass) func (*UpdateNewMessage).GetMessage() (value MessageClass) func (*UpdateNewScheduledMessage).GetMessage() (value MessageClass) func (*UpdatesChannelDifference).GetNewMessages() (value []MessageClass) func (*UpdatesChannelDifferenceTooLong).GetMessages() (value []MessageClass) func (*UpdatesDifference).GetNewMessages() (value []MessageClass) func (*UpdatesDifferenceSlice).GetNewMessages() (value []MessageClass)
MessageClassArray is adapter for slice of MessageClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsMessage returns copy with only Message constructors. AsMessageEmpty returns copy with only MessageEmpty constructors. AsMessageService returns copy with only MessageService constructors. AsNotEmpty returns copy with only NotEmpty constructors. FillMessageEmptyMap fills only MessageEmpty constructors to given map. FillMessageMap fills only Message constructors to given map. FillMessageServiceMap fills only MessageService constructors to given map. FillNotEmptyMap fills only NotEmpty constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). MessageEmptyToMap collects only MessageEmpty constructors to map. MessageServiceToMap collects only MessageService constructors to map. MessageToMap collects only Message constructors to map. NotEmptyToMap collects only NotEmpty constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of MessageClass. Sort sorts slice of MessageClass. SortByID sorts slice of MessageClass by ID. SortStable sorts slice of MessageClass. SortStableByID sorts slice of MessageClass by ID. func MessageClassArray.Retain(keep func(x MessageClass) bool) MessageClassArray func MessageClassArray.Sort(less func(a, b MessageClass) bool) MessageClassArray func MessageClassArray.SortByID() MessageClassArray func MessageClassArray.SortStable(less func(a, b MessageClass) bool) MessageClassArray func MessageClassArray.SortStableByID() MessageClassArray func (*MessagesChannelMessages).MapMessages() (value MessageClassArray) func (*MessagesDialogs).MapMessages() (value MessageClassArray) func (*MessagesDialogsSlice).MapMessages() (value MessageClassArray) func (*MessagesDiscussionMessage).MapMessages() (value MessageClassArray) func (*MessagesForumTopics).MapMessages() (value MessageClassArray) func (*MessagesMessages).MapMessages() (value MessageClassArray) func (*MessagesMessagesSlice).MapMessages() (value MessageClassArray) func (*MessagesPeerDialogs).MapMessages() (value MessageClassArray) func (*MessagesSearchResultsCalendar).MapMessages() (value MessageClassArray) func (*UpdatesChannelDifference).MapNewMessages() (value MessageClassArray) func (*UpdatesChannelDifferenceTooLong).MapMessages() (value MessageClassArray) func (*UpdatesDifference).MapNewMessages() (value MessageClassArray) func (*UpdatesDifferenceSlice).MapNewMessages() (value MessageClassArray)
MessageEmpty represents TL type `messageEmpty#90a6ca84`. Empty constructor, non-existent message. See https://core.telegram.org/constructor/messageEmpty for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message identifier Peer ID, the chat where this message was sent Use SetPeerID and GetPeerID helpers. AsNotEmpty tries to map MessageEmpty to NotEmptyMessage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEmpty from given interface. GetID returns value of ID field. GetPeerID returns value of PeerID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetPeerID sets value of PeerID 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. (*MessageEmpty) Zero() bool *MessageEmpty : MessageClass *MessageEmpty : github.com/gotd/td/bin.BareDecoder *MessageEmpty : github.com/gotd/td/bin.BareEncoder *MessageEmpty : github.com/gotd/td/bin.Decoder *MessageEmpty : github.com/gotd/td/bin.Encoder *MessageEmpty : github.com/gotd/td/bin.Object *MessageEmpty : github.com/gotd/td/tdp.Object *MessageEmpty : fmt.Stringer func MessageClassArray.MessageEmptyToMap() map[int]*MessageEmpty func MessageEmptyArray.First() (v MessageEmpty, ok bool) func MessageEmptyArray.Last() (v MessageEmpty, ok bool) func (*MessageEmptyArray).Pop() (v MessageEmpty, ok bool) func (*MessageEmptyArray).PopFirst() (v MessageEmpty, ok bool) func MessageEmptyArray.ToMap() map[int]MessageEmpty func MessageClassArray.FillMessageEmptyMap(to map[int]*MessageEmpty) func MessageEmptyArray.FillMap(to map[int]MessageEmpty)
MessageEmptyArray is adapter for slice of MessageEmpty. 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 MessageEmpty. Sort sorts slice of MessageEmpty. SortByID sorts slice of MessageEmpty by ID. SortStable sorts slice of MessageEmpty. SortStableByID sorts slice of MessageEmpty by ID. ToMap collects constructors to map. func MessageClassArray.AsMessageEmpty() (to MessageEmptyArray) func MessageEmptyArray.Retain(keep func(x MessageEmpty) bool) MessageEmptyArray func MessageEmptyArray.Sort(less func(a, b MessageEmpty) bool) MessageEmptyArray func MessageEmptyArray.SortByID() MessageEmptyArray func MessageEmptyArray.SortStable(less func(a, b MessageEmpty) bool) MessageEmptyArray func MessageEmptyArray.SortStableByID() MessageEmptyArray
MessageEntityBankCard represents TL type `messageEntityBankCard#761e6af4`. Indicates a credit card number See https://core.telegram.org/constructor/messageEntityBankCard for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityBankCard from given interface. GetLength returns value of Length 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. (*MessageEntityBankCard) Zero() bool *MessageEntityBankCard : MessageEntityClass *MessageEntityBankCard : github.com/gotd/td/bin.BareDecoder *MessageEntityBankCard : github.com/gotd/td/bin.BareEncoder *MessageEntityBankCard : github.com/gotd/td/bin.Decoder *MessageEntityBankCard : github.com/gotd/td/bin.Encoder *MessageEntityBankCard : github.com/gotd/td/bin.Object *MessageEntityBankCard : github.com/gotd/td/tdp.Object *MessageEntityBankCard : fmt.Stringer func MessageEntityBankCardArray.First() (v MessageEntityBankCard, ok bool) func MessageEntityBankCardArray.Last() (v MessageEntityBankCard, ok bool) func (*MessageEntityBankCardArray).Pop() (v MessageEntityBankCard, ok bool) func (*MessageEntityBankCardArray).PopFirst() (v MessageEntityBankCard, ok bool)
MessageEntityBankCardArray is adapter for slice of MessageEntityBankCard. 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 MessageEntityBankCard. Sort sorts slice of MessageEntityBankCard. SortStable sorts slice of MessageEntityBankCard. func MessageEntityBankCardArray.Retain(keep func(x MessageEntityBankCard) bool) MessageEntityBankCardArray func MessageEntityBankCardArray.Sort(less func(a, b MessageEntityBankCard) bool) MessageEntityBankCardArray func MessageEntityBankCardArray.SortStable(less func(a, b MessageEntityBankCard) bool) MessageEntityBankCardArray func MessageEntityClassArray.AsMessageEntityBankCard() (to MessageEntityBankCardArray)
MessageEntityBlockquote represents TL type `messageEntityBlockquote#20df5d0`. Message entity representing a block quote. See https://core.telegram.org/constructor/messageEntityBlockquote for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityBlockquote from given interface. GetLength returns value of Length 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. (*MessageEntityBlockquote) Zero() bool *MessageEntityBlockquote : MessageEntityClass *MessageEntityBlockquote : github.com/gotd/td/bin.BareDecoder *MessageEntityBlockquote : github.com/gotd/td/bin.BareEncoder *MessageEntityBlockquote : github.com/gotd/td/bin.Decoder *MessageEntityBlockquote : github.com/gotd/td/bin.Encoder *MessageEntityBlockquote : github.com/gotd/td/bin.Object *MessageEntityBlockquote : github.com/gotd/td/tdp.Object *MessageEntityBlockquote : fmt.Stringer func MessageEntityBlockquoteArray.First() (v MessageEntityBlockquote, ok bool) func MessageEntityBlockquoteArray.Last() (v MessageEntityBlockquote, ok bool) func (*MessageEntityBlockquoteArray).Pop() (v MessageEntityBlockquote, ok bool) func (*MessageEntityBlockquoteArray).PopFirst() (v MessageEntityBlockquote, ok bool)
MessageEntityBlockquoteArray is adapter for slice of MessageEntityBlockquote. 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 MessageEntityBlockquote. Sort sorts slice of MessageEntityBlockquote. SortStable sorts slice of MessageEntityBlockquote. func MessageEntityBlockquoteArray.Retain(keep func(x MessageEntityBlockquote) bool) MessageEntityBlockquoteArray func MessageEntityBlockquoteArray.Sort(less func(a, b MessageEntityBlockquote) bool) MessageEntityBlockquoteArray func MessageEntityBlockquoteArray.SortStable(less func(a, b MessageEntityBlockquote) bool) MessageEntityBlockquoteArray func MessageEntityClassArray.AsMessageEntityBlockquote() (to MessageEntityBlockquoteArray)
MessageEntityBold represents TL type `messageEntityBold#bd610bc9`. Message entity representing bold text. See https://core.telegram.org/constructor/messageEntityBold for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityBold from given interface. GetLength returns value of Length 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. (*MessageEntityBold) Zero() bool *MessageEntityBold : MessageEntityClass *MessageEntityBold : github.com/gotd/td/bin.BareDecoder *MessageEntityBold : github.com/gotd/td/bin.BareEncoder *MessageEntityBold : github.com/gotd/td/bin.Decoder *MessageEntityBold : github.com/gotd/td/bin.Encoder *MessageEntityBold : github.com/gotd/td/bin.Object *MessageEntityBold : github.com/gotd/td/tdp.Object *MessageEntityBold : fmt.Stringer func MessageEntityBoldArray.First() (v MessageEntityBold, ok bool) func MessageEntityBoldArray.Last() (v MessageEntityBold, ok bool) func (*MessageEntityBoldArray).Pop() (v MessageEntityBold, ok bool) func (*MessageEntityBoldArray).PopFirst() (v MessageEntityBold, ok bool)
MessageEntityBoldArray is adapter for slice of MessageEntityBold. 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 MessageEntityBold. Sort sorts slice of MessageEntityBold. SortStable sorts slice of MessageEntityBold. func MessageEntityBoldArray.Retain(keep func(x MessageEntityBold) bool) MessageEntityBoldArray func MessageEntityBoldArray.Sort(less func(a, b MessageEntityBold) bool) MessageEntityBoldArray func MessageEntityBoldArray.SortStable(less func(a, b MessageEntityBold) bool) MessageEntityBoldArray func MessageEntityClassArray.AsMessageEntityBold() (to MessageEntityBoldArray)
MessageEntityBotCommand represents TL type `messageEntityBotCommand#6cef8ac7`. Message entity representing a bot /command See https://core.telegram.org/constructor/messageEntityBotCommand for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityBotCommand from given interface. GetLength returns value of Length 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. (*MessageEntityBotCommand) Zero() bool *MessageEntityBotCommand : MessageEntityClass *MessageEntityBotCommand : github.com/gotd/td/bin.BareDecoder *MessageEntityBotCommand : github.com/gotd/td/bin.BareEncoder *MessageEntityBotCommand : github.com/gotd/td/bin.Decoder *MessageEntityBotCommand : github.com/gotd/td/bin.Encoder *MessageEntityBotCommand : github.com/gotd/td/bin.Object *MessageEntityBotCommand : github.com/gotd/td/tdp.Object *MessageEntityBotCommand : fmt.Stringer func MessageEntityBotCommandArray.First() (v MessageEntityBotCommand, ok bool) func MessageEntityBotCommandArray.Last() (v MessageEntityBotCommand, ok bool) func (*MessageEntityBotCommandArray).Pop() (v MessageEntityBotCommand, ok bool) func (*MessageEntityBotCommandArray).PopFirst() (v MessageEntityBotCommand, ok bool)
MessageEntityBotCommandArray is adapter for slice of MessageEntityBotCommand. 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 MessageEntityBotCommand. Sort sorts slice of MessageEntityBotCommand. SortStable sorts slice of MessageEntityBotCommand. func MessageEntityBotCommandArray.Retain(keep func(x MessageEntityBotCommand) bool) MessageEntityBotCommandArray func MessageEntityBotCommandArray.Sort(less func(a, b MessageEntityBotCommand) bool) MessageEntityBotCommandArray func MessageEntityBotCommandArray.SortStable(less func(a, b MessageEntityBotCommand) bool) MessageEntityBotCommandArray func MessageEntityClassArray.AsMessageEntityBotCommand() (to MessageEntityBotCommandArray)
MessageEntity boxes the MessageEntityClass providing a helper. MessageEntity MessageEntityClass Decode implements bin.Decoder for MessageEntityBox. Encode implements bin.Encode for MessageEntityBox. *MessageEntityBox : github.com/gotd/td/bin.Decoder *MessageEntityBox : github.com/gotd/td/bin.Encoder *MessageEntityBox : github.com/gotd/td/bin.Object
MessageEntityCashtag represents TL type `messageEntityCashtag#4c4e743f`. Message entity representing a $cashtag. See https://core.telegram.org/constructor/messageEntityCashtag for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityCashtag from given interface. GetLength returns value of Length 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. (*MessageEntityCashtag) Zero() bool *MessageEntityCashtag : MessageEntityClass *MessageEntityCashtag : github.com/gotd/td/bin.BareDecoder *MessageEntityCashtag : github.com/gotd/td/bin.BareEncoder *MessageEntityCashtag : github.com/gotd/td/bin.Decoder *MessageEntityCashtag : github.com/gotd/td/bin.Encoder *MessageEntityCashtag : github.com/gotd/td/bin.Object *MessageEntityCashtag : github.com/gotd/td/tdp.Object *MessageEntityCashtag : fmt.Stringer func MessageEntityCashtagArray.First() (v MessageEntityCashtag, ok bool) func MessageEntityCashtagArray.Last() (v MessageEntityCashtag, ok bool) func (*MessageEntityCashtagArray).Pop() (v MessageEntityCashtag, ok bool) func (*MessageEntityCashtagArray).PopFirst() (v MessageEntityCashtag, ok bool)
MessageEntityCashtagArray is adapter for slice of MessageEntityCashtag. 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 MessageEntityCashtag. Sort sorts slice of MessageEntityCashtag. SortStable sorts slice of MessageEntityCashtag. func MessageEntityCashtagArray.Retain(keep func(x MessageEntityCashtag) bool) MessageEntityCashtagArray func MessageEntityCashtagArray.Sort(less func(a, b MessageEntityCashtag) bool) MessageEntityCashtagArray func MessageEntityCashtagArray.SortStable(less func(a, b MessageEntityCashtag) bool) MessageEntityCashtagArray func MessageEntityClassArray.AsMessageEntityCashtag() (to MessageEntityCashtagArray)
MessageEntityClass represents MessageEntity generic type. See https://core.telegram.org/type/MessageEntity for reference. Example: g, err := tg.DecodeMessageEntity(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessageEntityUnknown: // messageEntityUnknown#bb92ba95 case *tg.MessageEntityMention: // messageEntityMention#fa04579d case *tg.MessageEntityHashtag: // messageEntityHashtag#6f635b0d case *tg.MessageEntityBotCommand: // messageEntityBotCommand#6cef8ac7 case *tg.MessageEntityURL: // messageEntityUrl#6ed02538 case *tg.MessageEntityEmail: // messageEntityEmail#64e475c2 case *tg.MessageEntityBold: // messageEntityBold#bd610bc9 case *tg.MessageEntityItalic: // messageEntityItalic#826f8b60 case *tg.MessageEntityCode: // messageEntityCode#28a20571 case *tg.MessageEntityPre: // messageEntityPre#73924be0 case *tg.MessageEntityTextURL: // messageEntityTextUrl#76a6d327 case *tg.MessageEntityMentionName: // messageEntityMentionName#dc7b1140 case *tg.InputMessageEntityMentionName: // inputMessageEntityMentionName#208e68c9 case *tg.MessageEntityPhone: // messageEntityPhone#9b69e34b case *tg.MessageEntityCashtag: // messageEntityCashtag#4c4e743f case *tg.MessageEntityUnderline: // messageEntityUnderline#9c4e7e8b case *tg.MessageEntityStrike: // messageEntityStrike#bf0693d4 case *tg.MessageEntityBankCard: // messageEntityBankCard#761e6af4 case *tg.MessageEntitySpoiler: // messageEntitySpoiler#32ca960f case *tg.MessageEntityCustomEmoji: // messageEntityCustomEmoji#c8cf05f8 case *tg.MessageEntityBlockquote: // messageEntityBlockquote#20df5d0 default: panic(v) } ( MessageEntityClass) Decode(b *bin.Buffer) error ( MessageEntityClass) DecodeBare(b *bin.Buffer) error ( MessageEntityClass) Encode(b *bin.Buffer) error ( MessageEntityClass) EncodeBare(b *bin.Buffer) error Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length 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. *InputMessageEntityMentionName *MessageEntityBankCard *MessageEntityBlockquote *MessageEntityBold *MessageEntityBotCommand *MessageEntityCashtag *MessageEntityCode *MessageEntityCustomEmoji *MessageEntityEmail *MessageEntityHashtag *MessageEntityItalic *MessageEntityMention *MessageEntityMentionName *MessageEntityPhone *MessageEntityPre *MessageEntitySpoiler *MessageEntityStrike *MessageEntityTextURL *MessageEntityUnderline *MessageEntityUnknown *MessageEntityURL MessageEntityClass : github.com/gotd/td/bin.BareDecoder MessageEntityClass : github.com/gotd/td/bin.BareEncoder MessageEntityClass : github.com/gotd/td/bin.Decoder MessageEntityClass : github.com/gotd/td/bin.Encoder MessageEntityClass : github.com/gotd/td/bin.Object MessageEntityClass : fmt.Stringer func DecodeMessageEntity(buf *bin.Buffer) (MessageEntityClass, error) func (*BotInlineMessageMediaAuto).GetEntities() (value []MessageEntityClass, ok bool) func (*BotInlineMessageMediaWebPage).GetEntities() (value []MessageEntityClass, ok bool) func (*BotInlineMessageText).GetEntities() (value []MessageEntityClass, ok bool) func (*DraftMessage).GetEntities() (value []MessageEntityClass, ok bool) func (*HelpAppUpdate).GetEntities() (value []MessageEntityClass) func (*HelpDeepLinkInfo).GetEntities() (value []MessageEntityClass, ok bool) func (*HelpEditUserInfoRequest).GetEntities() (value []MessageEntityClass) func (*HelpPremiumPromo).GetStatusEntities() (value []MessageEntityClass) func (*HelpTermsOfService).GetEntities() (value []MessageEntityClass) func (*HelpUserInfo).GetEntities() (value []MessageEntityClass) func (*InputBotInlineMessageMediaAuto).GetEntities() (value []MessageEntityClass, ok bool) func (*InputBotInlineMessageMediaWebPage).GetEntities() (value []MessageEntityClass, ok bool) func (*InputBotInlineMessageText).GetEntities() (value []MessageEntityClass, ok bool) func (*InputMediaPoll).GetSolutionEntities() (value []MessageEntityClass, ok bool) func (*InputReplyToMessage).GetQuoteEntities() (value []MessageEntityClass, ok bool) func (*InputSingleMedia).GetEntities() (value []MessageEntityClass, ok bool) func (*Message).GetEntities() (value []MessageEntityClass, ok bool) func MessageEntityClassArray.First() (v MessageEntityClass, ok bool) func MessageEntityClassArray.Last() (v MessageEntityClass, ok bool) func (*MessageEntityClassArray).Pop() (v MessageEntityClass, ok bool) func (*MessageEntityClassArray).PopFirst() (v MessageEntityClass, ok bool) func (*MessageReplyHeader).GetQuoteEntities() (value []MessageEntityClass, ok bool) func (*MessagesEditInlineBotMessageRequest).GetEntities() (value []MessageEntityClass, ok bool) func (*MessagesEditMessageRequest).GetEntities() (value []MessageEntityClass, ok bool) func (*MessagesGetWebPagePreviewRequest).GetEntities() (value []MessageEntityClass, ok bool) func (*MessagesSaveDraftRequest).GetEntities() (value []MessageEntityClass, ok bool) func (*MessagesSendMediaRequest).GetEntities() (value []MessageEntityClass, ok bool) func (*MessagesSendMessageRequest).GetEntities() (value []MessageEntityClass, ok bool) func (*PollResults).GetSolutionEntities() (value []MessageEntityClass, ok bool) func (*SponsoredMessage).GetEntities() (value []MessageEntityClass, ok bool) func (*StoriesEditStoryRequest).GetEntities() (value []MessageEntityClass, ok bool) func (*StoriesSendStoryRequest).GetEntities() (value []MessageEntityClass, ok bool) func (*StoryItem).GetEntities() (value []MessageEntityClass, ok bool) func (*TextWithEntities).GetEntities() (value []MessageEntityClass) func (*UpdateServiceNotification).GetEntities() (value []MessageEntityClass) func (*UpdateShortChatMessage).GetEntities() (value []MessageEntityClass, ok bool) func (*UpdateShortMessage).GetEntities() (value []MessageEntityClass, ok bool) func (*UpdateShortSentMessage).GetEntities() (value []MessageEntityClass, ok bool) func (*BotInlineMessageMediaAuto).SetEntities(value []MessageEntityClass) func (*BotInlineMessageMediaWebPage).SetEntities(value []MessageEntityClass) func (*BotInlineMessageText).SetEntities(value []MessageEntityClass) func (*DraftMessage).SetEntities(value []MessageEntityClass) func (*HelpDeepLinkInfo).SetEntities(value []MessageEntityClass) func (*InputBotInlineMessageMediaAuto).SetEntities(value []MessageEntityClass) func (*InputBotInlineMessageMediaWebPage).SetEntities(value []MessageEntityClass) func (*InputBotInlineMessageText).SetEntities(value []MessageEntityClass) func (*InputMediaPoll).SetSolutionEntities(value []MessageEntityClass) func (*InputReplyToMessage).SetQuoteEntities(value []MessageEntityClass) func (*InputSingleMedia).SetEntities(value []MessageEntityClass) func (*Message).SetEntities(value []MessageEntityClass) func (*MessageReplyHeader).SetQuoteEntities(value []MessageEntityClass) func (*MessagesEditInlineBotMessageRequest).SetEntities(value []MessageEntityClass) func (*MessagesEditMessageRequest).SetEntities(value []MessageEntityClass) func (*MessagesGetWebPagePreviewRequest).SetEntities(value []MessageEntityClass) func (*MessagesSaveDraftRequest).SetEntities(value []MessageEntityClass) func (*MessagesSendMediaRequest).SetEntities(value []MessageEntityClass) func (*MessagesSendMessageRequest).SetEntities(value []MessageEntityClass) func (*PollResults).SetSolutionEntities(value []MessageEntityClass) func (*SponsoredMessage).SetEntities(value []MessageEntityClass) func (*StoriesEditStoryRequest).SetEntities(value []MessageEntityClass) func (*StoriesSendStoryRequest).SetEntities(value []MessageEntityClass) func (*StoryItem).SetEntities(value []MessageEntityClass) func (*UpdateShortChatMessage).SetEntities(value []MessageEntityClass) func (*UpdateShortMessage).SetEntities(value []MessageEntityClass) func (*UpdateShortSentMessage).SetEntities(value []MessageEntityClass)
MessageEntityClassArray is adapter for slice of MessageEntityClass. AsInputMessageEntityMentionName returns copy with only InputMessageEntityMentionName constructors. AsMessageEntityBankCard returns copy with only MessageEntityBankCard constructors. AsMessageEntityBlockquote returns copy with only MessageEntityBlockquote constructors. AsMessageEntityBold returns copy with only MessageEntityBold constructors. AsMessageEntityBotCommand returns copy with only MessageEntityBotCommand constructors. AsMessageEntityCashtag returns copy with only MessageEntityCashtag constructors. AsMessageEntityCode returns copy with only MessageEntityCode constructors. AsMessageEntityCustomEmoji returns copy with only MessageEntityCustomEmoji constructors. AsMessageEntityEmail returns copy with only MessageEntityEmail constructors. AsMessageEntityHashtag returns copy with only MessageEntityHashtag constructors. AsMessageEntityItalic returns copy with only MessageEntityItalic constructors. AsMessageEntityMention returns copy with only MessageEntityMention constructors. AsMessageEntityMentionName returns copy with only MessageEntityMentionName constructors. AsMessageEntityPhone returns copy with only MessageEntityPhone constructors. AsMessageEntityPre returns copy with only MessageEntityPre constructors. AsMessageEntitySpoiler returns copy with only MessageEntitySpoiler constructors. AsMessageEntityStrike returns copy with only MessageEntityStrike constructors. AsMessageEntityTextURL returns copy with only MessageEntityTextURL constructors. AsMessageEntityURL returns copy with only MessageEntityURL constructors. AsMessageEntityUnderline returns copy with only MessageEntityUnderline constructors. AsMessageEntityUnknown returns copy with only MessageEntityUnknown 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 MessageEntityClass. Sort sorts slice of MessageEntityClass. SortStable sorts slice of MessageEntityClass. func (*BotInlineMessageMediaAuto).MapEntities() (value MessageEntityClassArray, ok bool) func (*BotInlineMessageMediaWebPage).MapEntities() (value MessageEntityClassArray, ok bool) func (*BotInlineMessageText).MapEntities() (value MessageEntityClassArray, ok bool) func (*DraftMessage).MapEntities() (value MessageEntityClassArray, ok bool) func (*HelpAppUpdate).MapEntities() (value MessageEntityClassArray) func (*HelpDeepLinkInfo).MapEntities() (value MessageEntityClassArray, ok bool) func (*HelpEditUserInfoRequest).MapEntities() (value MessageEntityClassArray) func (*HelpPremiumPromo).MapStatusEntities() (value MessageEntityClassArray) func (*HelpTermsOfService).MapEntities() (value MessageEntityClassArray) func (*HelpUserInfo).MapEntities() (value MessageEntityClassArray) func (*InputBotInlineMessageMediaAuto).MapEntities() (value MessageEntityClassArray, ok bool) func (*InputBotInlineMessageMediaWebPage).MapEntities() (value MessageEntityClassArray, ok bool) func (*InputBotInlineMessageText).MapEntities() (value MessageEntityClassArray, ok bool) func (*InputMediaPoll).MapSolutionEntities() (value MessageEntityClassArray, ok bool) func (*InputReplyToMessage).MapQuoteEntities() (value MessageEntityClassArray, ok bool) func (*InputSingleMedia).MapEntities() (value MessageEntityClassArray, ok bool) func (*Message).MapEntities() (value MessageEntityClassArray, ok bool) func MessageEntityClassArray.Retain(keep func(x MessageEntityClass) bool) MessageEntityClassArray func MessageEntityClassArray.Sort(less func(a, b MessageEntityClass) bool) MessageEntityClassArray func MessageEntityClassArray.SortStable(less func(a, b MessageEntityClass) bool) MessageEntityClassArray func (*MessageReplyHeader).MapQuoteEntities() (value MessageEntityClassArray, ok bool) func (*MessagesEditInlineBotMessageRequest).MapEntities() (value MessageEntityClassArray, ok bool) func (*MessagesEditMessageRequest).MapEntities() (value MessageEntityClassArray, ok bool) func (*MessagesGetWebPagePreviewRequest).MapEntities() (value MessageEntityClassArray, ok bool) func (*MessagesSaveDraftRequest).MapEntities() (value MessageEntityClassArray, ok bool) func (*MessagesSendMediaRequest).MapEntities() (value MessageEntityClassArray, ok bool) func (*MessagesSendMessageRequest).MapEntities() (value MessageEntityClassArray, ok bool) func (*PollResults).MapSolutionEntities() (value MessageEntityClassArray, ok bool) func (*SponsoredMessage).MapEntities() (value MessageEntityClassArray, ok bool) func (*StoriesEditStoryRequest).MapEntities() (value MessageEntityClassArray, ok bool) func (*StoriesSendStoryRequest).MapEntities() (value MessageEntityClassArray, ok bool) func (*StoryItem).MapEntities() (value MessageEntityClassArray, ok bool) func (*TextWithEntities).MapEntities() (value MessageEntityClassArray) func (*UpdateServiceNotification).MapEntities() (value MessageEntityClassArray) func (*UpdateShortChatMessage).MapEntities() (value MessageEntityClassArray, ok bool) func (*UpdateShortMessage).MapEntities() (value MessageEntityClassArray, ok bool) func (*UpdateShortSentMessage).MapEntities() (value MessageEntityClassArray, ok bool)
MessageEntityCode represents TL type `messageEntityCode#28a20571`. Message entity representing a codeblock. See https://core.telegram.org/constructor/messageEntityCode for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityCode from given interface. GetLength returns value of Length 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. (*MessageEntityCode) Zero() bool *MessageEntityCode : MessageEntityClass *MessageEntityCode : github.com/gotd/td/bin.BareDecoder *MessageEntityCode : github.com/gotd/td/bin.BareEncoder *MessageEntityCode : github.com/gotd/td/bin.Decoder *MessageEntityCode : github.com/gotd/td/bin.Encoder *MessageEntityCode : github.com/gotd/td/bin.Object *MessageEntityCode : github.com/gotd/td/tdp.Object *MessageEntityCode : fmt.Stringer func MessageEntityCodeArray.First() (v MessageEntityCode, ok bool) func MessageEntityCodeArray.Last() (v MessageEntityCode, ok bool) func (*MessageEntityCodeArray).Pop() (v MessageEntityCode, ok bool) func (*MessageEntityCodeArray).PopFirst() (v MessageEntityCode, ok bool)
MessageEntityCodeArray is adapter for slice of MessageEntityCode. 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 MessageEntityCode. Sort sorts slice of MessageEntityCode. SortStable sorts slice of MessageEntityCode. func MessageEntityClassArray.AsMessageEntityCode() (to MessageEntityCodeArray) func MessageEntityCodeArray.Retain(keep func(x MessageEntityCode) bool) MessageEntityCodeArray func MessageEntityCodeArray.Sort(less func(a, b MessageEntityCode) bool) MessageEntityCodeArray func MessageEntityCodeArray.SortStable(less func(a, b MessageEntityCode) bool) MessageEntityCodeArray
MessageEntityCustomEmoji represents TL type `messageEntityCustomEmoji#c8cf05f8`. Represents a custom emoji. Note that this entity must wrap exactly one regular emoji (the one contained in documentAttributeCustomEmoji¹.alt) in the related text, otherwise the server will ignore it. Links: 1. https://core.telegram.org/constructor/documentAttributeCustomEmoji See https://core.telegram.org/constructor/messageEntityCustomEmoji for reference. Document ID of the custom emoji¹, use messages.getCustomEmojiDocuments² to fetch the emoji animation and the actual emoji it represents. Links: 1) https://core.telegram.org/api/custom-emoji 2) https://core.telegram.org/method/messages.getCustomEmojiDocuments Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityCustomEmoji from given interface. GetDocumentID returns value of DocumentID field. GetLength returns value of Length 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. (*MessageEntityCustomEmoji) Zero() bool *MessageEntityCustomEmoji : MessageEntityClass *MessageEntityCustomEmoji : github.com/gotd/td/bin.BareDecoder *MessageEntityCustomEmoji : github.com/gotd/td/bin.BareEncoder *MessageEntityCustomEmoji : github.com/gotd/td/bin.Decoder *MessageEntityCustomEmoji : github.com/gotd/td/bin.Encoder *MessageEntityCustomEmoji : github.com/gotd/td/bin.Object *MessageEntityCustomEmoji : github.com/gotd/td/tdp.Object *MessageEntityCustomEmoji : fmt.Stringer func MessageEntityCustomEmojiArray.First() (v MessageEntityCustomEmoji, ok bool) func MessageEntityCustomEmojiArray.Last() (v MessageEntityCustomEmoji, ok bool) func (*MessageEntityCustomEmojiArray).Pop() (v MessageEntityCustomEmoji, ok bool) func (*MessageEntityCustomEmojiArray).PopFirst() (v MessageEntityCustomEmoji, ok bool)
MessageEntityCustomEmojiArray is adapter for slice of MessageEntityCustomEmoji. 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 MessageEntityCustomEmoji. Sort sorts slice of MessageEntityCustomEmoji. SortStable sorts slice of MessageEntityCustomEmoji. func MessageEntityClassArray.AsMessageEntityCustomEmoji() (to MessageEntityCustomEmojiArray) func MessageEntityCustomEmojiArray.Retain(keep func(x MessageEntityCustomEmoji) bool) MessageEntityCustomEmojiArray func MessageEntityCustomEmojiArray.Sort(less func(a, b MessageEntityCustomEmoji) bool) MessageEntityCustomEmojiArray func MessageEntityCustomEmojiArray.SortStable(less func(a, b MessageEntityCustomEmoji) bool) MessageEntityCustomEmojiArray
MessageEntityEmail represents TL type `messageEntityEmail#64e475c2`. Message entity representing an email@example.com¹. Links: 1. https://core.telegram.orgmailto:email@example.com See https://core.telegram.org/constructor/messageEntityEmail for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityEmail from given interface. GetLength returns value of Length 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. (*MessageEntityEmail) Zero() bool *MessageEntityEmail : MessageEntityClass *MessageEntityEmail : github.com/gotd/td/bin.BareDecoder *MessageEntityEmail : github.com/gotd/td/bin.BareEncoder *MessageEntityEmail : github.com/gotd/td/bin.Decoder *MessageEntityEmail : github.com/gotd/td/bin.Encoder *MessageEntityEmail : github.com/gotd/td/bin.Object *MessageEntityEmail : github.com/gotd/td/tdp.Object *MessageEntityEmail : fmt.Stringer func MessageEntityEmailArray.First() (v MessageEntityEmail, ok bool) func MessageEntityEmailArray.Last() (v MessageEntityEmail, ok bool) func (*MessageEntityEmailArray).Pop() (v MessageEntityEmail, ok bool) func (*MessageEntityEmailArray).PopFirst() (v MessageEntityEmail, ok bool)
MessageEntityEmailArray is adapter for slice of MessageEntityEmail. 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 MessageEntityEmail. Sort sorts slice of MessageEntityEmail. SortStable sorts slice of MessageEntityEmail. func MessageEntityClassArray.AsMessageEntityEmail() (to MessageEntityEmailArray) func MessageEntityEmailArray.Retain(keep func(x MessageEntityEmail) bool) MessageEntityEmailArray func MessageEntityEmailArray.Sort(less func(a, b MessageEntityEmail) bool) MessageEntityEmailArray func MessageEntityEmailArray.SortStable(less func(a, b MessageEntityEmail) bool) MessageEntityEmailArray
MessageEntityHashtag represents TL type `messageEntityHashtag#6f635b0d`. #hashtag message entity See https://core.telegram.org/constructor/messageEntityHashtag for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityHashtag from given interface. GetLength returns value of Length 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. (*MessageEntityHashtag) Zero() bool *MessageEntityHashtag : MessageEntityClass *MessageEntityHashtag : github.com/gotd/td/bin.BareDecoder *MessageEntityHashtag : github.com/gotd/td/bin.BareEncoder *MessageEntityHashtag : github.com/gotd/td/bin.Decoder *MessageEntityHashtag : github.com/gotd/td/bin.Encoder *MessageEntityHashtag : github.com/gotd/td/bin.Object *MessageEntityHashtag : github.com/gotd/td/tdp.Object *MessageEntityHashtag : fmt.Stringer func MessageEntityHashtagArray.First() (v MessageEntityHashtag, ok bool) func MessageEntityHashtagArray.Last() (v MessageEntityHashtag, ok bool) func (*MessageEntityHashtagArray).Pop() (v MessageEntityHashtag, ok bool) func (*MessageEntityHashtagArray).PopFirst() (v MessageEntityHashtag, ok bool)
MessageEntityHashtagArray is adapter for slice of MessageEntityHashtag. 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 MessageEntityHashtag. Sort sorts slice of MessageEntityHashtag. SortStable sorts slice of MessageEntityHashtag. func MessageEntityClassArray.AsMessageEntityHashtag() (to MessageEntityHashtagArray) func MessageEntityHashtagArray.Retain(keep func(x MessageEntityHashtag) bool) MessageEntityHashtagArray func MessageEntityHashtagArray.Sort(less func(a, b MessageEntityHashtag) bool) MessageEntityHashtagArray func MessageEntityHashtagArray.SortStable(less func(a, b MessageEntityHashtag) bool) MessageEntityHashtagArray
MessageEntityItalic represents TL type `messageEntityItalic#826f8b60`. Message entity representing italic text. See https://core.telegram.org/constructor/messageEntityItalic for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityItalic from given interface. GetLength returns value of Length 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. (*MessageEntityItalic) Zero() bool *MessageEntityItalic : MessageEntityClass *MessageEntityItalic : github.com/gotd/td/bin.BareDecoder *MessageEntityItalic : github.com/gotd/td/bin.BareEncoder *MessageEntityItalic : github.com/gotd/td/bin.Decoder *MessageEntityItalic : github.com/gotd/td/bin.Encoder *MessageEntityItalic : github.com/gotd/td/bin.Object *MessageEntityItalic : github.com/gotd/td/tdp.Object *MessageEntityItalic : fmt.Stringer func MessageEntityItalicArray.First() (v MessageEntityItalic, ok bool) func MessageEntityItalicArray.Last() (v MessageEntityItalic, ok bool) func (*MessageEntityItalicArray).Pop() (v MessageEntityItalic, ok bool) func (*MessageEntityItalicArray).PopFirst() (v MessageEntityItalic, ok bool)
MessageEntityItalicArray is adapter for slice of MessageEntityItalic. 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 MessageEntityItalic. Sort sorts slice of MessageEntityItalic. SortStable sorts slice of MessageEntityItalic. func MessageEntityClassArray.AsMessageEntityItalic() (to MessageEntityItalicArray) func MessageEntityItalicArray.Retain(keep func(x MessageEntityItalic) bool) MessageEntityItalicArray func MessageEntityItalicArray.Sort(less func(a, b MessageEntityItalic) bool) MessageEntityItalicArray func MessageEntityItalicArray.SortStable(less func(a, b MessageEntityItalic) bool) MessageEntityItalicArray
MessageEntityMention represents TL type `messageEntityMention#fa04579d`. Message entity mentioning¹ a user by @username; messageEntityMentionName² can also be used to mention users by their ID. Links: 1. https://core.telegram.org/api/mentions 2. https://core.telegram.org/constructor/messageEntityMentionName See https://core.telegram.org/constructor/messageEntityMention for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityMention from given interface. GetLength returns value of Length 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. (*MessageEntityMention) Zero() bool *MessageEntityMention : MessageEntityClass *MessageEntityMention : github.com/gotd/td/bin.BareDecoder *MessageEntityMention : github.com/gotd/td/bin.BareEncoder *MessageEntityMention : github.com/gotd/td/bin.Decoder *MessageEntityMention : github.com/gotd/td/bin.Encoder *MessageEntityMention : github.com/gotd/td/bin.Object *MessageEntityMention : github.com/gotd/td/tdp.Object *MessageEntityMention : fmt.Stringer func MessageEntityMentionArray.First() (v MessageEntityMention, ok bool) func MessageEntityMentionArray.Last() (v MessageEntityMention, ok bool) func (*MessageEntityMentionArray).Pop() (v MessageEntityMention, ok bool) func (*MessageEntityMentionArray).PopFirst() (v MessageEntityMention, ok bool)
MessageEntityMentionArray is adapter for slice of MessageEntityMention. 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 MessageEntityMention. Sort sorts slice of MessageEntityMention. SortStable sorts slice of MessageEntityMention. func MessageEntityClassArray.AsMessageEntityMention() (to MessageEntityMentionArray) func MessageEntityMentionArray.Retain(keep func(x MessageEntityMention) bool) MessageEntityMentionArray func MessageEntityMentionArray.Sort(less func(a, b MessageEntityMention) bool) MessageEntityMentionArray func MessageEntityMentionArray.SortStable(less func(a, b MessageEntityMention) bool) MessageEntityMentionArray
MessageEntityMentionName represents TL type `messageEntityMentionName#dc7b1140`. Message entity representing a user mention¹: for creating a mention use inputMessageEntityMentionName². Links: 1. https://core.telegram.org/api/mentions 2. https://core.telegram.org/constructor/inputMessageEntityMentionName See https://core.telegram.org/constructor/messageEntityMentionName for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Identifier of the user that was mentioned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityMentionName from given interface. GetLength returns value of Length field. GetOffset returns value of Offset 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. (*MessageEntityMentionName) Zero() bool *MessageEntityMentionName : MessageEntityClass *MessageEntityMentionName : github.com/gotd/td/bin.BareDecoder *MessageEntityMentionName : github.com/gotd/td/bin.BareEncoder *MessageEntityMentionName : github.com/gotd/td/bin.Decoder *MessageEntityMentionName : github.com/gotd/td/bin.Encoder *MessageEntityMentionName : github.com/gotd/td/bin.Object *MessageEntityMentionName : github.com/gotd/td/tdp.Object *MessageEntityMentionName : fmt.Stringer func MessageEntityMentionNameArray.First() (v MessageEntityMentionName, ok bool) func MessageEntityMentionNameArray.Last() (v MessageEntityMentionName, ok bool) func (*MessageEntityMentionNameArray).Pop() (v MessageEntityMentionName, ok bool) func (*MessageEntityMentionNameArray).PopFirst() (v MessageEntityMentionName, ok bool)
MessageEntityMentionNameArray is adapter for slice of MessageEntityMentionName. 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 MessageEntityMentionName. Sort sorts slice of MessageEntityMentionName. SortStable sorts slice of MessageEntityMentionName. func MessageEntityClassArray.AsMessageEntityMentionName() (to MessageEntityMentionNameArray) func MessageEntityMentionNameArray.Retain(keep func(x MessageEntityMentionName) bool) MessageEntityMentionNameArray func MessageEntityMentionNameArray.Sort(less func(a, b MessageEntityMentionName) bool) MessageEntityMentionNameArray func MessageEntityMentionNameArray.SortStable(less func(a, b MessageEntityMentionName) bool) MessageEntityMentionNameArray
MessageEntityPhone represents TL type `messageEntityPhone#9b69e34b`. Message entity representing a phone number. See https://core.telegram.org/constructor/messageEntityPhone for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityPhone from given interface. GetLength returns value of Length 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. (*MessageEntityPhone) Zero() bool *MessageEntityPhone : MessageEntityClass *MessageEntityPhone : github.com/gotd/td/bin.BareDecoder *MessageEntityPhone : github.com/gotd/td/bin.BareEncoder *MessageEntityPhone : github.com/gotd/td/bin.Decoder *MessageEntityPhone : github.com/gotd/td/bin.Encoder *MessageEntityPhone : github.com/gotd/td/bin.Object *MessageEntityPhone : github.com/gotd/td/tdp.Object *MessageEntityPhone : fmt.Stringer func MessageEntityPhoneArray.First() (v MessageEntityPhone, ok bool) func MessageEntityPhoneArray.Last() (v MessageEntityPhone, ok bool) func (*MessageEntityPhoneArray).Pop() (v MessageEntityPhone, ok bool) func (*MessageEntityPhoneArray).PopFirst() (v MessageEntityPhone, ok bool)
MessageEntityPhoneArray is adapter for slice of MessageEntityPhone. 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 MessageEntityPhone. Sort sorts slice of MessageEntityPhone. SortStable sorts slice of MessageEntityPhone. func MessageEntityClassArray.AsMessageEntityPhone() (to MessageEntityPhoneArray) func MessageEntityPhoneArray.Retain(keep func(x MessageEntityPhone) bool) MessageEntityPhoneArray func MessageEntityPhoneArray.Sort(less func(a, b MessageEntityPhone) bool) MessageEntityPhoneArray func MessageEntityPhoneArray.SortStable(less func(a, b MessageEntityPhone) bool) MessageEntityPhoneArray
MessageEntityPre represents TL type `messageEntityPre#73924be0`. Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock. See https://core.telegram.org/constructor/messageEntityPre for reference. Programming language of the code Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityPre from given interface. GetLanguage returns value of Language field. GetLength returns value of Length 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. (*MessageEntityPre) Zero() bool *MessageEntityPre : MessageEntityClass *MessageEntityPre : github.com/gotd/td/bin.BareDecoder *MessageEntityPre : github.com/gotd/td/bin.BareEncoder *MessageEntityPre : github.com/gotd/td/bin.Decoder *MessageEntityPre : github.com/gotd/td/bin.Encoder *MessageEntityPre : github.com/gotd/td/bin.Object *MessageEntityPre : github.com/gotd/td/tdp.Object *MessageEntityPre : fmt.Stringer func MessageEntityPreArray.First() (v MessageEntityPre, ok bool) func MessageEntityPreArray.Last() (v MessageEntityPre, ok bool) func (*MessageEntityPreArray).Pop() (v MessageEntityPre, ok bool) func (*MessageEntityPreArray).PopFirst() (v MessageEntityPre, ok bool)
MessageEntityPreArray is adapter for slice of MessageEntityPre. 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 MessageEntityPre. Sort sorts slice of MessageEntityPre. SortStable sorts slice of MessageEntityPre. func MessageEntityClassArray.AsMessageEntityPre() (to MessageEntityPreArray) func MessageEntityPreArray.Retain(keep func(x MessageEntityPre) bool) MessageEntityPreArray func MessageEntityPreArray.Sort(less func(a, b MessageEntityPre) bool) MessageEntityPreArray func MessageEntityPreArray.SortStable(less func(a, b MessageEntityPre) bool) MessageEntityPreArray
MessageEntitySpoiler represents TL type `messageEntitySpoiler#32ca960f`. Message entity representing a spoiler See https://core.telegram.org/constructor/messageEntitySpoiler for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntitySpoiler from given interface. GetLength returns value of Length 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. (*MessageEntitySpoiler) Zero() bool *MessageEntitySpoiler : MessageEntityClass *MessageEntitySpoiler : github.com/gotd/td/bin.BareDecoder *MessageEntitySpoiler : github.com/gotd/td/bin.BareEncoder *MessageEntitySpoiler : github.com/gotd/td/bin.Decoder *MessageEntitySpoiler : github.com/gotd/td/bin.Encoder *MessageEntitySpoiler : github.com/gotd/td/bin.Object *MessageEntitySpoiler : github.com/gotd/td/tdp.Object *MessageEntitySpoiler : fmt.Stringer func MessageEntitySpoilerArray.First() (v MessageEntitySpoiler, ok bool) func MessageEntitySpoilerArray.Last() (v MessageEntitySpoiler, ok bool) func (*MessageEntitySpoilerArray).Pop() (v MessageEntitySpoiler, ok bool) func (*MessageEntitySpoilerArray).PopFirst() (v MessageEntitySpoiler, ok bool)
MessageEntitySpoilerArray is adapter for slice of MessageEntitySpoiler. 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 MessageEntitySpoiler. Sort sorts slice of MessageEntitySpoiler. SortStable sorts slice of MessageEntitySpoiler. func MessageEntityClassArray.AsMessageEntitySpoiler() (to MessageEntitySpoilerArray) func MessageEntitySpoilerArray.Retain(keep func(x MessageEntitySpoiler) bool) MessageEntitySpoilerArray func MessageEntitySpoilerArray.Sort(less func(a, b MessageEntitySpoiler) bool) MessageEntitySpoilerArray func MessageEntitySpoilerArray.SortStable(less func(a, b MessageEntitySpoiler) bool) MessageEntitySpoilerArray
MessageEntityStrike represents TL type `messageEntityStrike#bf0693d4`. Message entity representing strikethrough text. See https://core.telegram.org/constructor/messageEntityStrike for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityStrike from given interface. GetLength returns value of Length 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. (*MessageEntityStrike) Zero() bool *MessageEntityStrike : MessageEntityClass *MessageEntityStrike : github.com/gotd/td/bin.BareDecoder *MessageEntityStrike : github.com/gotd/td/bin.BareEncoder *MessageEntityStrike : github.com/gotd/td/bin.Decoder *MessageEntityStrike : github.com/gotd/td/bin.Encoder *MessageEntityStrike : github.com/gotd/td/bin.Object *MessageEntityStrike : github.com/gotd/td/tdp.Object *MessageEntityStrike : fmt.Stringer func MessageEntityStrikeArray.First() (v MessageEntityStrike, ok bool) func MessageEntityStrikeArray.Last() (v MessageEntityStrike, ok bool) func (*MessageEntityStrikeArray).Pop() (v MessageEntityStrike, ok bool) func (*MessageEntityStrikeArray).PopFirst() (v MessageEntityStrike, ok bool)
MessageEntityStrikeArray is adapter for slice of MessageEntityStrike. 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 MessageEntityStrike. Sort sorts slice of MessageEntityStrike. SortStable sorts slice of MessageEntityStrike. func MessageEntityClassArray.AsMessageEntityStrike() (to MessageEntityStrikeArray) func MessageEntityStrikeArray.Retain(keep func(x MessageEntityStrike) bool) MessageEntityStrikeArray func MessageEntityStrikeArray.Sort(less func(a, b MessageEntityStrike) bool) MessageEntityStrikeArray func MessageEntityStrikeArray.SortStable(less func(a, b MessageEntityStrike) bool) MessageEntityStrikeArray
MessageEntityTextURL represents TL type `messageEntityTextUrl#76a6d327`. Message entity representing a text url¹: for in-text urls like https://google.com² use messageEntityUrl³. Note that an additional confirmation popup with the full URL must be displayed to the user before opening this link, unless the domain satisfies the conditions specified in the domain whitelist documentation »¹. Links: 1. https://google.com 2. https://google.com 3. https://core.telegram.org/constructor/messageEntityUrl 4. https://core.telegram.org/api/config#whitelisted-domains See https://core.telegram.org/constructor/messageEntityTextUrl for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length The actual URL Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityTextURL from given interface. GetLength returns value of Length field. GetOffset returns value of Offset 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. (*MessageEntityTextURL) Zero() bool *MessageEntityTextURL : MessageEntityClass *MessageEntityTextURL : github.com/gotd/td/bin.BareDecoder *MessageEntityTextURL : github.com/gotd/td/bin.BareEncoder *MessageEntityTextURL : github.com/gotd/td/bin.Decoder *MessageEntityTextURL : github.com/gotd/td/bin.Encoder *MessageEntityTextURL : github.com/gotd/td/bin.Object *MessageEntityTextURL : github.com/gotd/td/tdp.Object *MessageEntityTextURL : fmt.Stringer func MessageEntityTextURLArray.First() (v MessageEntityTextURL, ok bool) func MessageEntityTextURLArray.Last() (v MessageEntityTextURL, ok bool) func (*MessageEntityTextURLArray).Pop() (v MessageEntityTextURL, ok bool) func (*MessageEntityTextURLArray).PopFirst() (v MessageEntityTextURL, ok bool)
MessageEntityTextURLArray is adapter for slice of MessageEntityTextURL. 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 MessageEntityTextURL. Sort sorts slice of MessageEntityTextURL. SortStable sorts slice of MessageEntityTextURL. func MessageEntityClassArray.AsMessageEntityTextURL() (to MessageEntityTextURLArray) func MessageEntityTextURLArray.Retain(keep func(x MessageEntityTextURL) bool) MessageEntityTextURLArray func MessageEntityTextURLArray.Sort(less func(a, b MessageEntityTextURL) bool) MessageEntityTextURLArray func MessageEntityTextURLArray.SortStable(less func(a, b MessageEntityTextURL) bool) MessageEntityTextURLArray
MessageEntityUnderline represents TL type `messageEntityUnderline#9c4e7e8b`. Message entity representing underlined text. See https://core.telegram.org/constructor/messageEntityUnderline for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityUnderline from given interface. GetLength returns value of Length 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. (*MessageEntityUnderline) Zero() bool *MessageEntityUnderline : MessageEntityClass *MessageEntityUnderline : github.com/gotd/td/bin.BareDecoder *MessageEntityUnderline : github.com/gotd/td/bin.BareEncoder *MessageEntityUnderline : github.com/gotd/td/bin.Decoder *MessageEntityUnderline : github.com/gotd/td/bin.Encoder *MessageEntityUnderline : github.com/gotd/td/bin.Object *MessageEntityUnderline : github.com/gotd/td/tdp.Object *MessageEntityUnderline : fmt.Stringer func MessageEntityUnderlineArray.First() (v MessageEntityUnderline, ok bool) func MessageEntityUnderlineArray.Last() (v MessageEntityUnderline, ok bool) func (*MessageEntityUnderlineArray).Pop() (v MessageEntityUnderline, ok bool) func (*MessageEntityUnderlineArray).PopFirst() (v MessageEntityUnderline, ok bool)
MessageEntityUnderlineArray is adapter for slice of MessageEntityUnderline. 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 MessageEntityUnderline. Sort sorts slice of MessageEntityUnderline. SortStable sorts slice of MessageEntityUnderline. func MessageEntityClassArray.AsMessageEntityUnderline() (to MessageEntityUnderlineArray) func MessageEntityUnderlineArray.Retain(keep func(x MessageEntityUnderline) bool) MessageEntityUnderlineArray func MessageEntityUnderlineArray.Sort(less func(a, b MessageEntityUnderline) bool) MessageEntityUnderlineArray func MessageEntityUnderlineArray.SortStable(less func(a, b MessageEntityUnderline) bool) MessageEntityUnderlineArray
MessageEntityUnknown represents TL type `messageEntityUnknown#bb92ba95`. Unknown message entity See https://core.telegram.org/constructor/messageEntityUnknown for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityUnknown from given interface. GetLength returns value of Length 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. (*MessageEntityUnknown) Zero() bool *MessageEntityUnknown : MessageEntityClass *MessageEntityUnknown : github.com/gotd/td/bin.BareDecoder *MessageEntityUnknown : github.com/gotd/td/bin.BareEncoder *MessageEntityUnknown : github.com/gotd/td/bin.Decoder *MessageEntityUnknown : github.com/gotd/td/bin.Encoder *MessageEntityUnknown : github.com/gotd/td/bin.Object *MessageEntityUnknown : github.com/gotd/td/tdp.Object *MessageEntityUnknown : fmt.Stringer func MessageEntityUnknownArray.First() (v MessageEntityUnknown, ok bool) func MessageEntityUnknownArray.Last() (v MessageEntityUnknown, ok bool) func (*MessageEntityUnknownArray).Pop() (v MessageEntityUnknown, ok bool) func (*MessageEntityUnknownArray).PopFirst() (v MessageEntityUnknown, ok bool)
MessageEntityUnknownArray is adapter for slice of MessageEntityUnknown. 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 MessageEntityUnknown. Sort sorts slice of MessageEntityUnknown. SortStable sorts slice of MessageEntityUnknown. func MessageEntityClassArray.AsMessageEntityUnknown() (to MessageEntityUnknownArray) func MessageEntityUnknownArray.Retain(keep func(x MessageEntityUnknown) bool) MessageEntityUnknownArray func MessageEntityUnknownArray.Sort(less func(a, b MessageEntityUnknown) bool) MessageEntityUnknownArray func MessageEntityUnknownArray.SortStable(less func(a, b MessageEntityUnknown) bool) MessageEntityUnknownArray
MessageEntityURL represents TL type `messageEntityUrl#6ed02538`. Message entity representing an in-text url: https://google.com¹; for text urls², use messageEntityTextUrl³. Links: 1. https://google.com 2. https://google.com 3. https://core.telegram.org/constructor/messageEntityTextUrl See https://core.telegram.org/constructor/messageEntityUrl for reference. Length of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Offset of message entity within message (in UTF-16 code units¹) Links: 1) https://core.telegram.org/api/entities#entity-length Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageEntityURL from given interface. GetLength returns value of Length 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. (*MessageEntityURL) Zero() bool *MessageEntityURL : MessageEntityClass *MessageEntityURL : github.com/gotd/td/bin.BareDecoder *MessageEntityURL : github.com/gotd/td/bin.BareEncoder *MessageEntityURL : github.com/gotd/td/bin.Decoder *MessageEntityURL : github.com/gotd/td/bin.Encoder *MessageEntityURL : github.com/gotd/td/bin.Object *MessageEntityURL : github.com/gotd/td/tdp.Object *MessageEntityURL : fmt.Stringer func MessageEntityURLArray.First() (v MessageEntityURL, ok bool) func MessageEntityURLArray.Last() (v MessageEntityURL, ok bool) func (*MessageEntityURLArray).Pop() (v MessageEntityURL, ok bool) func (*MessageEntityURLArray).PopFirst() (v MessageEntityURL, ok bool)
MessageEntityURLArray is adapter for slice of MessageEntityURL. 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 MessageEntityURL. Sort sorts slice of MessageEntityURL. SortStable sorts slice of MessageEntityURL. func MessageEntityClassArray.AsMessageEntityURL() (to MessageEntityURLArray) func MessageEntityURLArray.Retain(keep func(x MessageEntityURL) bool) MessageEntityURLArray func MessageEntityURLArray.Sort(less func(a, b MessageEntityURL) bool) MessageEntityURLArray func MessageEntityURLArray.SortStable(less func(a, b MessageEntityURL) bool) MessageEntityURLArray
MessageExtendedMedia represents TL type `messageExtendedMedia#ee479c64`. Extended media See https://core.telegram.org/constructor/messageExtendedMedia for reference. Media Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageExtendedMedia from given interface. 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. (*MessageExtendedMedia) Zero() bool *MessageExtendedMedia : MessageExtendedMediaClass *MessageExtendedMedia : github.com/gotd/td/bin.BareDecoder *MessageExtendedMedia : github.com/gotd/td/bin.BareEncoder *MessageExtendedMedia : github.com/gotd/td/bin.Decoder *MessageExtendedMedia : github.com/gotd/td/bin.Encoder *MessageExtendedMedia : github.com/gotd/td/bin.Object *MessageExtendedMedia : github.com/gotd/td/tdp.Object *MessageExtendedMedia : fmt.Stringer func MessageExtendedMediaArray.First() (v MessageExtendedMedia, ok bool) func MessageExtendedMediaArray.Last() (v MessageExtendedMedia, ok bool) func (*MessageExtendedMediaArray).Pop() (v MessageExtendedMedia, ok bool) func (*MessageExtendedMediaArray).PopFirst() (v MessageExtendedMedia, ok bool)
MessageExtendedMediaArray is adapter for slice of MessageExtendedMedia. 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 MessageExtendedMedia. Sort sorts slice of MessageExtendedMedia. SortStable sorts slice of MessageExtendedMedia. func MessageExtendedMediaArray.Retain(keep func(x MessageExtendedMedia) bool) MessageExtendedMediaArray func MessageExtendedMediaArray.Sort(less func(a, b MessageExtendedMedia) bool) MessageExtendedMediaArray func MessageExtendedMediaArray.SortStable(less func(a, b MessageExtendedMedia) bool) MessageExtendedMediaArray func MessageExtendedMediaClassArray.AsMessageExtendedMedia() (to MessageExtendedMediaArray)
MessageExtendedMedia boxes the MessageExtendedMediaClass providing a helper. MessageExtendedMedia MessageExtendedMediaClass Decode implements bin.Decoder for MessageExtendedMediaBox. Encode implements bin.Encode for MessageExtendedMediaBox. *MessageExtendedMediaBox : github.com/gotd/td/bin.Decoder *MessageExtendedMediaBox : github.com/gotd/td/bin.Encoder *MessageExtendedMediaBox : github.com/gotd/td/bin.Object
MessageExtendedMediaClass represents MessageExtendedMedia generic type. See https://core.telegram.org/type/MessageExtendedMedia for reference. Example: g, err := tg.DecodeMessageExtendedMedia(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessageExtendedMediaPreview: // messageExtendedMediaPreview#ad628cc8 case *tg.MessageExtendedMedia: // messageExtendedMedia#ee479c64 default: panic(v) } ( MessageExtendedMediaClass) Decode(b *bin.Buffer) error ( MessageExtendedMediaClass) DecodeBare(b *bin.Buffer) error ( MessageExtendedMediaClass) Encode(b *bin.Buffer) error ( MessageExtendedMediaClass) 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. *MessageExtendedMedia *MessageExtendedMediaPreview MessageExtendedMediaClass : github.com/gotd/td/bin.BareDecoder MessageExtendedMediaClass : github.com/gotd/td/bin.BareEncoder MessageExtendedMediaClass : github.com/gotd/td/bin.Decoder MessageExtendedMediaClass : github.com/gotd/td/bin.Encoder MessageExtendedMediaClass : github.com/gotd/td/bin.Object MessageExtendedMediaClass : fmt.Stringer func DecodeMessageExtendedMedia(buf *bin.Buffer) (MessageExtendedMediaClass, error) func MessageExtendedMediaClassArray.First() (v MessageExtendedMediaClass, ok bool) func MessageExtendedMediaClassArray.Last() (v MessageExtendedMediaClass, ok bool) func (*MessageExtendedMediaClassArray).Pop() (v MessageExtendedMediaClass, ok bool) func (*MessageExtendedMediaClassArray).PopFirst() (v MessageExtendedMediaClass, ok bool) func (*MessageMediaInvoice).GetExtendedMedia() (value MessageExtendedMediaClass, ok bool) func (*UpdateMessageExtendedMedia).GetExtendedMedia() (value MessageExtendedMediaClass) func (*MessageMediaInvoice).SetExtendedMedia(value MessageExtendedMediaClass)
MessageExtendedMediaClassArray is adapter for slice of MessageExtendedMediaClass. AsMessageExtendedMedia returns copy with only MessageExtendedMedia constructors. AsMessageExtendedMediaPreview returns copy with only MessageExtendedMediaPreview 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 MessageExtendedMediaClass. Sort sorts slice of MessageExtendedMediaClass. SortStable sorts slice of MessageExtendedMediaClass. func MessageExtendedMediaClassArray.Retain(keep func(x MessageExtendedMediaClass) bool) MessageExtendedMediaClassArray func MessageExtendedMediaClassArray.Sort(less func(a, b MessageExtendedMediaClass) bool) MessageExtendedMediaClassArray func MessageExtendedMediaClassArray.SortStable(less func(a, b MessageExtendedMediaClass) bool) MessageExtendedMediaClassArray
MessageExtendedMediaHandler is a MessageExtendedMedia event handler. func UpdateDispatcher.OnMessageExtendedMedia(handler MessageExtendedMediaHandler)
MessageExtendedMediaPreview represents TL type `messageExtendedMediaPreview#ad628cc8`. Extended media preview See https://core.telegram.org/constructor/messageExtendedMediaPreview for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Height Use SetH and GetH helpers. Thumbnail Use SetThumb and GetThumb helpers. Video duration Use SetVideoDuration and GetVideoDuration helpers. Width Use SetW and GetW helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageExtendedMediaPreview from given interface. GetH returns value of H conditional field and boolean which is true if field was set. GetThumb returns value of Thumb conditional field and boolean which is true if field was set. GetVideoDuration returns value of VideoDuration conditional field and boolean which is true if field was set. GetW returns value of W conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetH sets value of H conditional field. SetThumb sets value of Thumb conditional field. SetVideoDuration sets value of VideoDuration conditional field. SetW sets value of W 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. (*MessageExtendedMediaPreview) Zero() bool *MessageExtendedMediaPreview : MessageExtendedMediaClass *MessageExtendedMediaPreview : github.com/gotd/td/bin.BareDecoder *MessageExtendedMediaPreview : github.com/gotd/td/bin.BareEncoder *MessageExtendedMediaPreview : github.com/gotd/td/bin.Decoder *MessageExtendedMediaPreview : github.com/gotd/td/bin.Encoder *MessageExtendedMediaPreview : github.com/gotd/td/bin.Object *MessageExtendedMediaPreview : github.com/gotd/td/tdp.Object *MessageExtendedMediaPreview : fmt.Stringer func MessageExtendedMediaPreviewArray.First() (v MessageExtendedMediaPreview, ok bool) func MessageExtendedMediaPreviewArray.Last() (v MessageExtendedMediaPreview, ok bool) func (*MessageExtendedMediaPreviewArray).Pop() (v MessageExtendedMediaPreview, ok bool) func (*MessageExtendedMediaPreviewArray).PopFirst() (v MessageExtendedMediaPreview, ok bool)
MessageExtendedMediaPreviewArray is adapter for slice of MessageExtendedMediaPreview. 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 MessageExtendedMediaPreview. Sort sorts slice of MessageExtendedMediaPreview. SortStable sorts slice of MessageExtendedMediaPreview. func MessageExtendedMediaClassArray.AsMessageExtendedMediaPreview() (to MessageExtendedMediaPreviewArray) func MessageExtendedMediaPreviewArray.Retain(keep func(x MessageExtendedMediaPreview) bool) MessageExtendedMediaPreviewArray func MessageExtendedMediaPreviewArray.Sort(less func(a, b MessageExtendedMediaPreview) bool) MessageExtendedMediaPreviewArray func MessageExtendedMediaPreviewArray.SortStable(less func(a, b MessageExtendedMediaPreview) bool) MessageExtendedMediaPreviewArray
MessageFwdHeader represents TL type `messageFwdHeader#5f777dce`. Info about a forwarded message See https://core.telegram.org/constructor/messageFwdHeader for reference. ID of the channel message that was forwarded Use SetChannelPost and GetChannelPost helpers. When was the message originally sent Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The ID of the user that originally sent the message Use SetFromID and GetFromID helpers. The name of the user that originally sent the message Use SetFromName and GetFromName helpers. Whether this message was imported from a foreign chat service, click here for more info »¹ Links: 1) https://core.telegram.org/api/import For channels and if signatures are enabled, author of the channel message Use SetPostAuthor and GetPostAuthor helpers. PSA type Use SetPsaType and GetPsaType helpers. Only for messages forwarded to the current user (inputPeerSelf), ID of the message that was forwarded from the original user/channel Use SetSavedFromMsgID and GetSavedFromMsgID helpers. Only for messages forwarded to the current user (inputPeerSelf), full info about the user/channel that originally sent the message Use SetSavedFromPeer and GetSavedFromPeer helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageFwdHeader from given interface. GetChannelPost returns value of ChannelPost conditional field and boolean which is true if field was set. GetDate returns value of Date field. GetFromID returns value of FromID conditional field and boolean which is true if field was set. GetFromName returns value of FromName conditional field and boolean which is true if field was set. GetImported returns value of Imported conditional field. GetPostAuthor returns value of PostAuthor conditional field and boolean which is true if field was set. GetPsaType returns value of PsaType conditional field and boolean which is true if field was set. GetSavedFromMsgID returns value of SavedFromMsgID conditional field and boolean which is true if field was set. GetSavedFromPeer returns value of SavedFromPeer conditional field and boolean which is true if field was set. SetChannelPost sets value of ChannelPost conditional field. SetFlags sets flags for non-zero fields. SetFromID sets value of FromID conditional field. SetFromName sets value of FromName conditional field. SetImported sets value of Imported conditional field. SetPostAuthor sets value of PostAuthor conditional field. SetPsaType sets value of PsaType conditional field. SetSavedFromMsgID sets value of SavedFromMsgID conditional field. SetSavedFromPeer sets value of SavedFromPeer 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. (*MessageFwdHeader) Zero() bool *MessageFwdHeader : github.com/gotd/td/bin.BareDecoder *MessageFwdHeader : github.com/gotd/td/bin.BareEncoder *MessageFwdHeader : github.com/gotd/td/bin.Decoder *MessageFwdHeader : github.com/gotd/td/bin.Encoder *MessageFwdHeader : github.com/gotd/td/bin.Object *MessageFwdHeader : github.com/gotd/td/tdp.Object *MessageFwdHeader : fmt.Stringer func (*Message).GetFwdFrom() (value MessageFwdHeader, ok bool) func (*MessageReplyHeader).GetReplyFrom() (value MessageFwdHeader, ok bool) func (*UpdateShortChatMessage).GetFwdFrom() (value MessageFwdHeader, ok bool) func (*UpdateShortMessage).GetFwdFrom() (value MessageFwdHeader, ok bool) func (*Message).SetFwdFrom(value MessageFwdHeader) func (*MessageReplyHeader).SetReplyFrom(value MessageFwdHeader) func (*UpdateShortChatMessage).SetFwdFrom(value MessageFwdHeader) func (*UpdateShortMessage).SetFwdFrom(value MessageFwdHeader)
MessageIDHandler is a MessageID event handler. func UpdateDispatcher.OnMessageID(handler MessageIDHandler)
MessageMedia boxes the MessageMediaClass providing a helper. MessageMedia MessageMediaClass Decode implements bin.Decoder for MessageMediaBox. Encode implements bin.Encode for MessageMediaBox. *MessageMediaBox : github.com/gotd/td/bin.Decoder *MessageMediaBox : github.com/gotd/td/bin.Encoder *MessageMediaBox : github.com/gotd/td/bin.Object
MessageMediaClass represents MessageMedia generic type. See https://core.telegram.org/type/MessageMedia for reference. Example: g, err := tg.DecodeMessageMedia(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessageMediaEmpty: // messageMediaEmpty#3ded6320 case *tg.MessageMediaPhoto: // messageMediaPhoto#695150d7 case *tg.MessageMediaGeo: // messageMediaGeo#56e0d474 case *tg.MessageMediaContact: // messageMediaContact#70322949 case *tg.MessageMediaUnsupported: // messageMediaUnsupported#9f84f49e case *tg.MessageMediaDocument: // messageMediaDocument#4cf4d72d case *tg.MessageMediaWebPage: // messageMediaWebPage#ddf10c3b case *tg.MessageMediaVenue: // messageMediaVenue#2ec0533f case *tg.MessageMediaGame: // messageMediaGame#fdb19008 case *tg.MessageMediaInvoice: // messageMediaInvoice#f6a548d3 case *tg.MessageMediaGeoLive: // messageMediaGeoLive#b940c666 case *tg.MessageMediaPoll: // messageMediaPoll#4bd6e798 case *tg.MessageMediaDice: // messageMediaDice#3f7ee58b case *tg.MessageMediaStory: // messageMediaStory#68cb6283 case *tg.MessageMediaGiveaway: // messageMediaGiveaway#daad85b0 case *tg.MessageMediaGiveawayResults: // messageMediaGiveawayResults#c6991068 default: panic(v) } ( MessageMediaClass) Decode(b *bin.Buffer) error ( MessageMediaClass) DecodeBare(b *bin.Buffer) error ( MessageMediaClass) Encode(b *bin.Buffer) error ( MessageMediaClass) 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. *MessageMediaContact *MessageMediaDice *MessageMediaDocument *MessageMediaEmpty *MessageMediaGame *MessageMediaGeo *MessageMediaGeoLive *MessageMediaGiveaway *MessageMediaGiveawayResults *MessageMediaInvoice *MessageMediaPhoto *MessageMediaPoll *MessageMediaStory *MessageMediaUnsupported *MessageMediaVenue *MessageMediaWebPage MessageMediaClass : github.com/gotd/td/bin.BareDecoder MessageMediaClass : github.com/gotd/td/bin.BareEncoder MessageMediaClass : github.com/gotd/td/bin.Decoder MessageMediaClass : github.com/gotd/td/bin.Encoder MessageMediaClass : github.com/gotd/td/bin.Object MessageMediaClass : fmt.Stringer func DecodeMessageMedia(buf *bin.Buffer) (MessageMediaClass, error) func (*Client).MessagesGetWebPagePreview(ctx context.Context, request *MessagesGetWebPagePreviewRequest) (MessageMediaClass, error) func (*Client).MessagesUploadImportedMedia(ctx context.Context, request *MessagesUploadImportedMediaRequest) (MessageMediaClass, error) func (*Client).MessagesUploadMedia(ctx context.Context, request *MessagesUploadMediaRequest) (MessageMediaClass, error) func (*Message).GetMedia() (value MessageMediaClass, ok bool) func (*MessageExtendedMedia).GetMedia() (value MessageMediaClass) func MessageMediaClassArray.First() (v MessageMediaClass, ok bool) func MessageMediaClassArray.Last() (v MessageMediaClass, ok bool) func (*MessageMediaClassArray).Pop() (v MessageMediaClass, ok bool) func (*MessageMediaClassArray).PopFirst() (v MessageMediaClass, ok bool) func (*MessageReplyHeader).GetReplyMedia() (value MessageMediaClass, ok bool) func (*StoryItem).GetMedia() (value MessageMediaClass) func (*UpdateServiceNotification).GetMedia() (value MessageMediaClass) func (*UpdateShortSentMessage).GetMedia() (value MessageMediaClass, ok bool) func (*Message).SetMedia(value MessageMediaClass) func (*MessageReplyHeader).SetReplyMedia(value MessageMediaClass) func (*UpdateShortSentMessage).SetMedia(value MessageMediaClass)
MessageMediaClassArray is adapter for slice of MessageMediaClass. AsMessageMediaContact returns copy with only MessageMediaContact constructors. AsMessageMediaDice returns copy with only MessageMediaDice constructors. AsMessageMediaDocument returns copy with only MessageMediaDocument constructors. AsMessageMediaGame returns copy with only MessageMediaGame constructors. AsMessageMediaGeo returns copy with only MessageMediaGeo constructors. AsMessageMediaGeoLive returns copy with only MessageMediaGeoLive constructors. AsMessageMediaGiveaway returns copy with only MessageMediaGiveaway constructors. AsMessageMediaGiveawayResults returns copy with only MessageMediaGiveawayResults constructors. AsMessageMediaInvoice returns copy with only MessageMediaInvoice constructors. AsMessageMediaPhoto returns copy with only MessageMediaPhoto constructors. AsMessageMediaPoll returns copy with only MessageMediaPoll constructors. AsMessageMediaStory returns copy with only MessageMediaStory constructors. AsMessageMediaVenue returns copy with only MessageMediaVenue constructors. AsMessageMediaWebPage returns copy with only MessageMediaWebPage 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 MessageMediaClass. Sort sorts slice of MessageMediaClass. SortStable sorts slice of MessageMediaClass. func MessageMediaClassArray.Retain(keep func(x MessageMediaClass) bool) MessageMediaClassArray func MessageMediaClassArray.Sort(less func(a, b MessageMediaClass) bool) MessageMediaClassArray func MessageMediaClassArray.SortStable(less func(a, b MessageMediaClass) bool) MessageMediaClassArray
MessageMediaContact represents TL type `messageMediaContact#70322949`. Attached contact. See https://core.telegram.org/constructor/messageMediaContact for reference. Contact's first name Contact's last name Phone number User identifier or 0, if the user with the given phone number is not registered VCARD of contact Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaContact from given interface. GetFirstName returns value of FirstName field. GetLastName returns value of LastName field. GetPhoneNumber returns value of PhoneNumber field. GetUserID returns value of UserID field. GetVcard returns value of Vcard 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. (*MessageMediaContact) Zero() bool *MessageMediaContact : MessageMediaClass *MessageMediaContact : github.com/gotd/td/bin.BareDecoder *MessageMediaContact : github.com/gotd/td/bin.BareEncoder *MessageMediaContact : github.com/gotd/td/bin.Decoder *MessageMediaContact : github.com/gotd/td/bin.Encoder *MessageMediaContact : github.com/gotd/td/bin.Object *MessageMediaContact : github.com/gotd/td/tdp.Object *MessageMediaContact : fmt.Stringer func MessageMediaContactArray.First() (v MessageMediaContact, ok bool) func MessageMediaContactArray.Last() (v MessageMediaContact, ok bool) func (*MessageMediaContactArray).Pop() (v MessageMediaContact, ok bool) func (*MessageMediaContactArray).PopFirst() (v MessageMediaContact, ok bool)
MessageMediaContactArray is adapter for slice of MessageMediaContact. 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 MessageMediaContact. Sort sorts slice of MessageMediaContact. SortStable sorts slice of MessageMediaContact. func MessageMediaClassArray.AsMessageMediaContact() (to MessageMediaContactArray) func MessageMediaContactArray.Retain(keep func(x MessageMediaContact) bool) MessageMediaContactArray func MessageMediaContactArray.Sort(less func(a, b MessageMediaContact) bool) MessageMediaContactArray func MessageMediaContactArray.SortStable(less func(a, b MessageMediaContact) bool) MessageMediaContactArray
MessageMediaDice represents TL type `messageMediaDice#3f7ee58b`. Dice-based animated sticker¹ Links: 1. https://core.telegram.org/api/dice See https://core.telegram.org/constructor/messageMediaDice for reference. The emoji, for now , and are supported Dice value¹ Links: 1) https://core.telegram.org/api/dice Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaDice from given interface. GetEmoticon returns value of Emoticon 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. (*MessageMediaDice) Zero() bool *MessageMediaDice : MessageMediaClass *MessageMediaDice : github.com/gotd/td/bin.BareDecoder *MessageMediaDice : github.com/gotd/td/bin.BareEncoder *MessageMediaDice : github.com/gotd/td/bin.Decoder *MessageMediaDice : github.com/gotd/td/bin.Encoder *MessageMediaDice : github.com/gotd/td/bin.Object *MessageMediaDice : github.com/gotd/td/tdp.Object *MessageMediaDice : fmt.Stringer func MessageMediaDiceArray.First() (v MessageMediaDice, ok bool) func MessageMediaDiceArray.Last() (v MessageMediaDice, ok bool) func (*MessageMediaDiceArray).Pop() (v MessageMediaDice, ok bool) func (*MessageMediaDiceArray).PopFirst() (v MessageMediaDice, ok bool)
MessageMediaDiceArray is adapter for slice of MessageMediaDice. 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 MessageMediaDice. Sort sorts slice of MessageMediaDice. SortStable sorts slice of MessageMediaDice. func MessageMediaClassArray.AsMessageMediaDice() (to MessageMediaDiceArray) func MessageMediaDiceArray.Retain(keep func(x MessageMediaDice) bool) MessageMediaDiceArray func MessageMediaDiceArray.Sort(less func(a, b MessageMediaDice) bool) MessageMediaDiceArray func MessageMediaDiceArray.SortStable(less func(a, b MessageMediaDice) bool) MessageMediaDiceArray
MessageMediaDocument represents TL type `messageMediaDocument#4cf4d72d`. Document (video, audio, voice, sticker, any media type except photo) See https://core.telegram.org/constructor/messageMediaDocument for reference. Currently only used for story videos, may contain an alternative version of the story video, explicitly encoded using H.264 (in MPEG4 transport) at a lower resolution than document. Use SetAltDocument and GetAltDocument helpers. Attached document Use SetDocument and GetDocument helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played. Whether this media should be hidden behind a spoiler warning Time to live of self-destructing document Use SetTTLSeconds and GetTTLSeconds helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaDocument from given interface. GetAltDocument returns value of AltDocument 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. GetNopremium returns value of Nopremium conditional field. GetSpoiler returns value of Spoiler conditional field. GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set. SetAltDocument sets value of AltDocument conditional field. SetDocument sets value of Document conditional field. SetFlags sets flags for non-zero fields. SetNopremium sets value of Nopremium conditional field. SetSpoiler sets value of Spoiler conditional field. SetTTLSeconds sets value of TTLSeconds 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. (*MessageMediaDocument) Zero() bool *MessageMediaDocument : MessageMediaClass *MessageMediaDocument : github.com/gotd/td/bin.BareDecoder *MessageMediaDocument : github.com/gotd/td/bin.BareEncoder *MessageMediaDocument : github.com/gotd/td/bin.Decoder *MessageMediaDocument : github.com/gotd/td/bin.Encoder *MessageMediaDocument : github.com/gotd/td/bin.Object *MessageMediaDocument : github.com/gotd/td/tdp.Object *MessageMediaDocument : fmt.Stringer func MessageMediaDocumentArray.First() (v MessageMediaDocument, ok bool) func MessageMediaDocumentArray.Last() (v MessageMediaDocument, ok bool) func (*MessageMediaDocumentArray).Pop() (v MessageMediaDocument, ok bool) func (*MessageMediaDocumentArray).PopFirst() (v MessageMediaDocument, ok bool)
MessageMediaDocumentArray is adapter for slice of MessageMediaDocument. 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 MessageMediaDocument. Sort sorts slice of MessageMediaDocument. SortStable sorts slice of MessageMediaDocument. func MessageMediaClassArray.AsMessageMediaDocument() (to MessageMediaDocumentArray) func MessageMediaDocumentArray.Retain(keep func(x MessageMediaDocument) bool) MessageMediaDocumentArray func MessageMediaDocumentArray.Sort(less func(a, b MessageMediaDocument) bool) MessageMediaDocumentArray func MessageMediaDocumentArray.SortStable(less func(a, b MessageMediaDocument) bool) MessageMediaDocumentArray
MessageMediaEmpty represents TL type `messageMediaEmpty#3ded6320`. Empty constructor. See https://core.telegram.org/constructor/messageMediaEmpty 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. (*MessageMediaEmpty) Zero() bool *MessageMediaEmpty : MessageMediaClass *MessageMediaEmpty : github.com/gotd/td/bin.BareDecoder *MessageMediaEmpty : github.com/gotd/td/bin.BareEncoder *MessageMediaEmpty : github.com/gotd/td/bin.Decoder *MessageMediaEmpty : github.com/gotd/td/bin.Encoder *MessageMediaEmpty : github.com/gotd/td/bin.Object *MessageMediaEmpty : github.com/gotd/td/tdp.Object *MessageMediaEmpty : fmt.Stringer
MessageMediaGame represents TL type `messageMediaGame#fdb19008`. Telegram game See https://core.telegram.org/constructor/messageMediaGame for reference. Game Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaGame from given interface. GetGame returns value of Game 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. (*MessageMediaGame) Zero() bool *MessageMediaGame : MessageMediaClass *MessageMediaGame : github.com/gotd/td/bin.BareDecoder *MessageMediaGame : github.com/gotd/td/bin.BareEncoder *MessageMediaGame : github.com/gotd/td/bin.Decoder *MessageMediaGame : github.com/gotd/td/bin.Encoder *MessageMediaGame : github.com/gotd/td/bin.Object *MessageMediaGame : github.com/gotd/td/tdp.Object *MessageMediaGame : fmt.Stringer func MessageMediaGameArray.First() (v MessageMediaGame, ok bool) func MessageMediaGameArray.Last() (v MessageMediaGame, ok bool) func (*MessageMediaGameArray).Pop() (v MessageMediaGame, ok bool) func (*MessageMediaGameArray).PopFirst() (v MessageMediaGame, ok bool)
MessageMediaGameArray is adapter for slice of MessageMediaGame. 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 MessageMediaGame. Sort sorts slice of MessageMediaGame. SortStable sorts slice of MessageMediaGame. func MessageMediaClassArray.AsMessageMediaGame() (to MessageMediaGameArray) func MessageMediaGameArray.Retain(keep func(x MessageMediaGame) bool) MessageMediaGameArray func MessageMediaGameArray.Sort(less func(a, b MessageMediaGame) bool) MessageMediaGameArray func MessageMediaGameArray.SortStable(less func(a, b MessageMediaGame) bool) MessageMediaGameArray
MessageMediaGeo represents TL type `messageMediaGeo#56e0d474`. Attached map. See https://core.telegram.org/constructor/messageMediaGeo for reference. GeoPoint Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaGeo from given interface. GetGeo returns value of Geo 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. (*MessageMediaGeo) Zero() bool *MessageMediaGeo : MessageMediaClass *MessageMediaGeo : github.com/gotd/td/bin.BareDecoder *MessageMediaGeo : github.com/gotd/td/bin.BareEncoder *MessageMediaGeo : github.com/gotd/td/bin.Decoder *MessageMediaGeo : github.com/gotd/td/bin.Encoder *MessageMediaGeo : github.com/gotd/td/bin.Object *MessageMediaGeo : github.com/gotd/td/tdp.Object *MessageMediaGeo : fmt.Stringer func MessageMediaGeoArray.First() (v MessageMediaGeo, ok bool) func MessageMediaGeoArray.Last() (v MessageMediaGeo, ok bool) func (*MessageMediaGeoArray).Pop() (v MessageMediaGeo, ok bool) func (*MessageMediaGeoArray).PopFirst() (v MessageMediaGeo, ok bool)
MessageMediaGeoArray is adapter for slice of MessageMediaGeo. 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 MessageMediaGeo. Sort sorts slice of MessageMediaGeo. SortStable sorts slice of MessageMediaGeo. func MessageMediaClassArray.AsMessageMediaGeo() (to MessageMediaGeoArray) func MessageMediaGeoArray.Retain(keep func(x MessageMediaGeo) bool) MessageMediaGeoArray func MessageMediaGeoArray.Sort(less func(a, b MessageMediaGeo) bool) MessageMediaGeoArray func MessageMediaGeoArray.SortStable(less func(a, b MessageMediaGeo) bool) MessageMediaGeoArray
MessageMediaGeoLive represents TL type `messageMediaGeoLive#b940c666`. Indicates a live geolocation¹ Links: 1. https://core.telegram.org/api/live-location See https://core.telegram.org/constructor/messageMediaGeoLive 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 of provided geolocation 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. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaGeoLive 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 field. GetProximityNotificationRadius returns value of ProximityNotificationRadius 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. SetProximityNotificationRadius sets value of ProximityNotificationRadius 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. (*MessageMediaGeoLive) Zero() bool *MessageMediaGeoLive : MessageMediaClass *MessageMediaGeoLive : github.com/gotd/td/bin.BareDecoder *MessageMediaGeoLive : github.com/gotd/td/bin.BareEncoder *MessageMediaGeoLive : github.com/gotd/td/bin.Decoder *MessageMediaGeoLive : github.com/gotd/td/bin.Encoder *MessageMediaGeoLive : github.com/gotd/td/bin.Object *MessageMediaGeoLive : github.com/gotd/td/tdp.Object *MessageMediaGeoLive : fmt.Stringer func MessageMediaGeoLiveArray.First() (v MessageMediaGeoLive, ok bool) func MessageMediaGeoLiveArray.Last() (v MessageMediaGeoLive, ok bool) func (*MessageMediaGeoLiveArray).Pop() (v MessageMediaGeoLive, ok bool) func (*MessageMediaGeoLiveArray).PopFirst() (v MessageMediaGeoLive, ok bool)
MessageMediaGeoLiveArray is adapter for slice of MessageMediaGeoLive. 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 MessageMediaGeoLive. Sort sorts slice of MessageMediaGeoLive. SortStable sorts slice of MessageMediaGeoLive. func MessageMediaClassArray.AsMessageMediaGeoLive() (to MessageMediaGeoLiveArray) func MessageMediaGeoLiveArray.Retain(keep func(x MessageMediaGeoLive) bool) MessageMediaGeoLiveArray func MessageMediaGeoLiveArray.Sort(less func(a, b MessageMediaGeoLive) bool) MessageMediaGeoLiveArray func MessageMediaGeoLiveArray.SortStable(less func(a, b MessageMediaGeoLive) bool) MessageMediaGeoLiveArray
MessageMediaGiveaway represents TL type `messageMediaGiveaway#daad85b0`. Contains info about a giveaway, see here »¹ for more info. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/constructor/messageMediaGiveaway for reference. The channels that the user must join to participate in the giveaway. If set, only users residing in these countries can participate in the giveaway, (specified as a list of two-letter ISO 3166-1 alpha-2 country codes); otherwise there are no country-based limitations. Use SetCountriesISO2 and GetCountriesISO2 helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Duration in months of each Telegram Premium¹ subscription in the giveaway. Links: 1) https://core.telegram.org/api/premium If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway. PrizeDescription field of MessageMediaGiveaway. Use SetPrizeDescription and GetPrizeDescription helpers. Number of Telegram Premium¹ subscriptions given away. Links: 1) https://core.telegram.org/api/premium The end date of the giveaway. WinnersAreVisible field of MessageMediaGiveaway. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaGiveaway from given interface. GetChannels returns value of Channels field. GetCountriesISO2 returns value of CountriesISO2 conditional field and boolean which is true if field was set. GetMonths returns value of Months field. GetOnlyNewSubscribers returns value of OnlyNewSubscribers conditional field. GetPrizeDescription returns value of PrizeDescription conditional field and boolean which is true if field was set. GetQuantity returns value of Quantity field. GetUntilDate returns value of UntilDate field. GetWinnersAreVisible returns value of WinnersAreVisible conditional field. SetCountriesISO2 sets value of CountriesISO2 conditional field. SetFlags sets flags for non-zero fields. SetOnlyNewSubscribers sets value of OnlyNewSubscribers conditional field. SetPrizeDescription sets value of PrizeDescription conditional field. SetWinnersAreVisible sets value of WinnersAreVisible 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. (*MessageMediaGiveaway) Zero() bool *MessageMediaGiveaway : MessageMediaClass *MessageMediaGiveaway : github.com/gotd/td/bin.BareDecoder *MessageMediaGiveaway : github.com/gotd/td/bin.BareEncoder *MessageMediaGiveaway : github.com/gotd/td/bin.Decoder *MessageMediaGiveaway : github.com/gotd/td/bin.Encoder *MessageMediaGiveaway : github.com/gotd/td/bin.Object *MessageMediaGiveaway : github.com/gotd/td/tdp.Object *MessageMediaGiveaway : fmt.Stringer func MessageMediaGiveawayArray.First() (v MessageMediaGiveaway, ok bool) func MessageMediaGiveawayArray.Last() (v MessageMediaGiveaway, ok bool) func (*MessageMediaGiveawayArray).Pop() (v MessageMediaGiveaway, ok bool) func (*MessageMediaGiveawayArray).PopFirst() (v MessageMediaGiveaway, ok bool)
MessageMediaGiveawayArray is adapter for slice of MessageMediaGiveaway. 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 MessageMediaGiveaway. Sort sorts slice of MessageMediaGiveaway. SortStable sorts slice of MessageMediaGiveaway. func MessageMediaClassArray.AsMessageMediaGiveaway() (to MessageMediaGiveawayArray) func MessageMediaGiveawayArray.Retain(keep func(x MessageMediaGiveaway) bool) MessageMediaGiveawayArray func MessageMediaGiveawayArray.Sort(less func(a, b MessageMediaGiveaway) bool) MessageMediaGiveawayArray func MessageMediaGiveawayArray.SortStable(less func(a, b MessageMediaGiveaway) bool) MessageMediaGiveawayArray
MessageMediaGiveawayResults represents TL type `messageMediaGiveawayResults#c6991068`. See https://core.telegram.org/constructor/messageMediaGiveawayResults for reference. AdditionalPeersCount field of MessageMediaGiveawayResults. Use SetAdditionalPeersCount and GetAdditionalPeersCount helpers. ChannelID field of MessageMediaGiveawayResults. Flags field of MessageMediaGiveawayResults. LaunchMsgID field of MessageMediaGiveawayResults. Months field of MessageMediaGiveawayResults. OnlyNewSubscribers field of MessageMediaGiveawayResults. PrizeDescription field of MessageMediaGiveawayResults. Use SetPrizeDescription and GetPrizeDescription helpers. Refunded field of MessageMediaGiveawayResults. UnclaimedCount field of MessageMediaGiveawayResults. UntilDate field of MessageMediaGiveawayResults. Winners field of MessageMediaGiveawayResults. WinnersCount field of MessageMediaGiveawayResults. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaGiveawayResults from given interface. GetAdditionalPeersCount returns value of AdditionalPeersCount conditional field and boolean which is true if field was set. GetChannelID returns value of ChannelID field. GetLaunchMsgID returns value of LaunchMsgID field. GetMonths returns value of Months field. GetOnlyNewSubscribers returns value of OnlyNewSubscribers conditional field. GetPrizeDescription returns value of PrizeDescription conditional field and boolean which is true if field was set. GetRefunded returns value of Refunded conditional field. GetUnclaimedCount returns value of UnclaimedCount field. GetUntilDate returns value of UntilDate field. GetWinners returns value of Winners field. GetWinnersCount returns value of WinnersCount field. SetAdditionalPeersCount sets value of AdditionalPeersCount conditional field. SetFlags sets flags for non-zero fields. SetOnlyNewSubscribers sets value of OnlyNewSubscribers conditional field. SetPrizeDescription sets value of PrizeDescription conditional field. SetRefunded sets value of Refunded 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. (*MessageMediaGiveawayResults) Zero() bool *MessageMediaGiveawayResults : MessageMediaClass *MessageMediaGiveawayResults : github.com/gotd/td/bin.BareDecoder *MessageMediaGiveawayResults : github.com/gotd/td/bin.BareEncoder *MessageMediaGiveawayResults : github.com/gotd/td/bin.Decoder *MessageMediaGiveawayResults : github.com/gotd/td/bin.Encoder *MessageMediaGiveawayResults : github.com/gotd/td/bin.Object *MessageMediaGiveawayResults : github.com/gotd/td/tdp.Object *MessageMediaGiveawayResults : fmt.Stringer func MessageMediaGiveawayResultsArray.First() (v MessageMediaGiveawayResults, ok bool) func MessageMediaGiveawayResultsArray.Last() (v MessageMediaGiveawayResults, ok bool) func (*MessageMediaGiveawayResultsArray).Pop() (v MessageMediaGiveawayResults, ok bool) func (*MessageMediaGiveawayResultsArray).PopFirst() (v MessageMediaGiveawayResults, ok bool)
MessageMediaGiveawayResultsArray is adapter for slice of MessageMediaGiveawayResults. 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 MessageMediaGiveawayResults. Sort sorts slice of MessageMediaGiveawayResults. SortStable sorts slice of MessageMediaGiveawayResults. func MessageMediaClassArray.AsMessageMediaGiveawayResults() (to MessageMediaGiveawayResultsArray) func MessageMediaGiveawayResultsArray.Retain(keep func(x MessageMediaGiveawayResults) bool) MessageMediaGiveawayResultsArray func MessageMediaGiveawayResultsArray.Sort(less func(a, b MessageMediaGiveawayResults) bool) MessageMediaGiveawayResultsArray func MessageMediaGiveawayResultsArray.SortStable(less func(a, b MessageMediaGiveawayResults) bool) MessageMediaGiveawayResultsArray
MessageMediaInvoice represents TL type `messageMediaInvoice#f6a548d3`. Invoice See https://core.telegram.org/constructor/messageMediaInvoice for reference. Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Product description, 1-255 characters Extended media Use SetExtendedMedia and GetExtendedMedia helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for. Use SetPhoto and GetPhoto helpers. Message ID of receipt: if set, clients should change the text of the first keyboardButtonBuy¹ button always attached to the message² to a localized version of the word Receipt Links: 1) https://core.telegram.org/constructor/keyboardButtonBuy 2) https://core.telegram.org/constructor/message Use SetReceiptMsgID and GetReceiptMsgID helpers. Whether the shipping address was requested Unique bot deep-linking parameter that can be used to generate this invoice Whether this is an example 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 MessageMediaInvoice from given interface. GetCurrency returns value of Currency field. GetDescription returns value of Description field. GetExtendedMedia returns value of ExtendedMedia conditional field and boolean which is true if field was set. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetReceiptMsgID returns value of ReceiptMsgID conditional field and boolean which is true if field was set. GetShippingAddressRequested returns value of ShippingAddressRequested conditional field. GetStartParam returns value of StartParam field. GetTest returns value of Test conditional field. GetTitle returns value of Title field. GetTotalAmount returns value of TotalAmount field. SetExtendedMedia sets value of ExtendedMedia conditional field. SetFlags sets flags for non-zero fields. SetPhoto sets value of Photo conditional field. SetReceiptMsgID sets value of ReceiptMsgID 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. (*MessageMediaInvoice) Zero() bool *MessageMediaInvoice : MessageMediaClass *MessageMediaInvoice : github.com/gotd/td/bin.BareDecoder *MessageMediaInvoice : github.com/gotd/td/bin.BareEncoder *MessageMediaInvoice : github.com/gotd/td/bin.Decoder *MessageMediaInvoice : github.com/gotd/td/bin.Encoder *MessageMediaInvoice : github.com/gotd/td/bin.Object *MessageMediaInvoice : github.com/gotd/td/tdp.Object *MessageMediaInvoice : fmt.Stringer func MessageMediaInvoiceArray.First() (v MessageMediaInvoice, ok bool) func MessageMediaInvoiceArray.Last() (v MessageMediaInvoice, ok bool) func (*MessageMediaInvoiceArray).Pop() (v MessageMediaInvoice, ok bool) func (*MessageMediaInvoiceArray).PopFirst() (v MessageMediaInvoice, ok bool)
MessageMediaInvoiceArray is adapter for slice of MessageMediaInvoice. 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 MessageMediaInvoice. Sort sorts slice of MessageMediaInvoice. SortStable sorts slice of MessageMediaInvoice. func MessageMediaClassArray.AsMessageMediaInvoice() (to MessageMediaInvoiceArray) func MessageMediaInvoiceArray.Retain(keep func(x MessageMediaInvoice) bool) MessageMediaInvoiceArray func MessageMediaInvoiceArray.Sort(less func(a, b MessageMediaInvoice) bool) MessageMediaInvoiceArray func MessageMediaInvoiceArray.SortStable(less func(a, b MessageMediaInvoice) bool) MessageMediaInvoiceArray
MessageMediaPhoto represents TL type `messageMediaPhoto#695150d7`. Attached photo. See https://core.telegram.org/constructor/messageMediaPhoto for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Photo Use SetPhoto and GetPhoto helpers. Whether this media should be hidden behind a spoiler warning Time to live in seconds of self-destructing photo Use SetTTLSeconds and GetTTLSeconds helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaPhoto from given interface. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetSpoiler returns value of Spoiler conditional field. GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetPhoto sets value of Photo conditional field. SetSpoiler sets value of Spoiler conditional field. SetTTLSeconds sets value of TTLSeconds 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. (*MessageMediaPhoto) Zero() bool *MessageMediaPhoto : MessageMediaClass *MessageMediaPhoto : github.com/gotd/td/bin.BareDecoder *MessageMediaPhoto : github.com/gotd/td/bin.BareEncoder *MessageMediaPhoto : github.com/gotd/td/bin.Decoder *MessageMediaPhoto : github.com/gotd/td/bin.Encoder *MessageMediaPhoto : github.com/gotd/td/bin.Object *MessageMediaPhoto : github.com/gotd/td/tdp.Object *MessageMediaPhoto : fmt.Stringer func MessageMediaPhotoArray.First() (v MessageMediaPhoto, ok bool) func MessageMediaPhotoArray.Last() (v MessageMediaPhoto, ok bool) func (*MessageMediaPhotoArray).Pop() (v MessageMediaPhoto, ok bool) func (*MessageMediaPhotoArray).PopFirst() (v MessageMediaPhoto, ok bool)
MessageMediaPhotoArray is adapter for slice of MessageMediaPhoto. 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 MessageMediaPhoto. Sort sorts slice of MessageMediaPhoto. SortStable sorts slice of MessageMediaPhoto. func MessageMediaClassArray.AsMessageMediaPhoto() (to MessageMediaPhotoArray) func MessageMediaPhotoArray.Retain(keep func(x MessageMediaPhoto) bool) MessageMediaPhotoArray func MessageMediaPhotoArray.Sort(less func(a, b MessageMediaPhoto) bool) MessageMediaPhotoArray func MessageMediaPhotoArray.SortStable(less func(a, b MessageMediaPhoto) bool) MessageMediaPhotoArray
MessageMediaPoll represents TL type `messageMediaPoll#4bd6e798`. Poll See https://core.telegram.org/constructor/messageMediaPoll for reference. The poll The results of the poll Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaPoll from given interface. GetPoll returns value of Poll field. GetResults returns value of Results 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. (*MessageMediaPoll) Zero() bool *MessageMediaPoll : MessageMediaClass *MessageMediaPoll : github.com/gotd/td/bin.BareDecoder *MessageMediaPoll : github.com/gotd/td/bin.BareEncoder *MessageMediaPoll : github.com/gotd/td/bin.Decoder *MessageMediaPoll : github.com/gotd/td/bin.Encoder *MessageMediaPoll : github.com/gotd/td/bin.Object *MessageMediaPoll : github.com/gotd/td/tdp.Object *MessageMediaPoll : fmt.Stringer func MessageMediaPollArray.First() (v MessageMediaPoll, ok bool) func MessageMediaPollArray.Last() (v MessageMediaPoll, ok bool) func (*MessageMediaPollArray).Pop() (v MessageMediaPoll, ok bool) func (*MessageMediaPollArray).PopFirst() (v MessageMediaPoll, ok bool)
MessageMediaPollArray is adapter for slice of MessageMediaPoll. 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 MessageMediaPoll. Sort sorts slice of MessageMediaPoll. SortStable sorts slice of MessageMediaPoll. func MessageMediaClassArray.AsMessageMediaPoll() (to MessageMediaPollArray) func MessageMediaPollArray.Retain(keep func(x MessageMediaPoll) bool) MessageMediaPollArray func MessageMediaPollArray.Sort(less func(a, b MessageMediaPoll) bool) MessageMediaPollArray func MessageMediaPollArray.SortStable(less func(a, b MessageMediaPoll) bool) MessageMediaPollArray
MessageMediaStory represents TL type `messageMediaStory#68cb6283`. Represents a forwarded story¹ or a story mention. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/messageMediaStory for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Story ID Peer that posted the story. The story itself, if absent fetch it using stories.getStoriesByID¹ and the peer/id parameters specified above. Links: 1) https://core.telegram.org/method/stories.getStoriesByID Use SetStory and GetStory helpers. If set, indicates that this someone has mentioned us in this story (i.e. by tagging us in the description) or vice versa, we have mentioned the other peer (if the message is outgoing). Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaStory from given interface. GetID returns value of ID field. GetPeer returns value of Peer field. GetStory returns value of Story conditional field and boolean which is true if field was set. GetViaMention returns value of ViaMention conditional field. SetFlags sets flags for non-zero fields. SetStory sets value of Story conditional field. SetViaMention sets value of ViaMention 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. (*MessageMediaStory) Zero() bool *MessageMediaStory : MessageMediaClass *MessageMediaStory : github.com/gotd/td/bin.BareDecoder *MessageMediaStory : github.com/gotd/td/bin.BareEncoder *MessageMediaStory : github.com/gotd/td/bin.Decoder *MessageMediaStory : github.com/gotd/td/bin.Encoder *MessageMediaStory : github.com/gotd/td/bin.Object *MessageMediaStory : github.com/gotd/td/tdp.Object *MessageMediaStory : fmt.Stringer func MessageMediaStoryArray.First() (v MessageMediaStory, ok bool) func MessageMediaStoryArray.Last() (v MessageMediaStory, ok bool) func (*MessageMediaStoryArray).Pop() (v MessageMediaStory, ok bool) func (*MessageMediaStoryArray).PopFirst() (v MessageMediaStory, ok bool) func MessageMediaStoryArray.ToMap() map[int]MessageMediaStory func MessageMediaStoryArray.FillMap(to map[int]MessageMediaStory)
MessageMediaStoryArray is adapter for slice of MessageMediaStory. 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 MessageMediaStory. Sort sorts slice of MessageMediaStory. SortByID sorts slice of MessageMediaStory by ID. SortStable sorts slice of MessageMediaStory. SortStableByID sorts slice of MessageMediaStory by ID. ToMap collects constructors to map. func MessageMediaClassArray.AsMessageMediaStory() (to MessageMediaStoryArray) func MessageMediaStoryArray.Retain(keep func(x MessageMediaStory) bool) MessageMediaStoryArray func MessageMediaStoryArray.Sort(less func(a, b MessageMediaStory) bool) MessageMediaStoryArray func MessageMediaStoryArray.SortByID() MessageMediaStoryArray func MessageMediaStoryArray.SortStable(less func(a, b MessageMediaStory) bool) MessageMediaStoryArray func MessageMediaStoryArray.SortStableByID() MessageMediaStoryArray
MessageMediaUnsupported represents TL type `messageMediaUnsupported#9f84f49e`. Current version of the client does not support this media type. See https://core.telegram.org/constructor/messageMediaUnsupported 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. (*MessageMediaUnsupported) Zero() bool *MessageMediaUnsupported : MessageMediaClass *MessageMediaUnsupported : github.com/gotd/td/bin.BareDecoder *MessageMediaUnsupported : github.com/gotd/td/bin.BareEncoder *MessageMediaUnsupported : github.com/gotd/td/bin.Decoder *MessageMediaUnsupported : github.com/gotd/td/bin.Encoder *MessageMediaUnsupported : github.com/gotd/td/bin.Object *MessageMediaUnsupported : github.com/gotd/td/tdp.Object *MessageMediaUnsupported : fmt.Stringer
MessageMediaVenue represents TL type `messageMediaVenue#2ec0533f`. Venue See https://core.telegram.org/constructor/messageMediaVenue for reference. Address Geolocation of venue Venue provider: currently only "foursquare" and "gplaces" (Google Places) need to be supported 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 MessageMediaVenue from given interface. GetAddress returns value of Address field. GetGeo returns value of Geo field. GetProvider returns value of Provider field. GetTitle returns value of Title field. GetVenueID returns value of VenueID field. GetVenueType returns value of VenueType 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. (*MessageMediaVenue) Zero() bool *MessageMediaVenue : MessageMediaClass *MessageMediaVenue : github.com/gotd/td/bin.BareDecoder *MessageMediaVenue : github.com/gotd/td/bin.BareEncoder *MessageMediaVenue : github.com/gotd/td/bin.Decoder *MessageMediaVenue : github.com/gotd/td/bin.Encoder *MessageMediaVenue : github.com/gotd/td/bin.Object *MessageMediaVenue : github.com/gotd/td/tdp.Object *MessageMediaVenue : fmt.Stringer func MessageMediaVenueArray.First() (v MessageMediaVenue, ok bool) func MessageMediaVenueArray.Last() (v MessageMediaVenue, ok bool) func (*MessageMediaVenueArray).Pop() (v MessageMediaVenue, ok bool) func (*MessageMediaVenueArray).PopFirst() (v MessageMediaVenue, ok bool)
MessageMediaVenueArray is adapter for slice of MessageMediaVenue. 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 MessageMediaVenue. Sort sorts slice of MessageMediaVenue. SortStable sorts slice of MessageMediaVenue. func MessageMediaClassArray.AsMessageMediaVenue() (to MessageMediaVenueArray) func MessageMediaVenueArray.Retain(keep func(x MessageMediaVenue) bool) MessageMediaVenueArray func MessageMediaVenueArray.Sort(less func(a, b MessageMediaVenue) bool) MessageMediaVenueArray func MessageMediaVenueArray.SortStable(less func(a, b MessageMediaVenue) bool) MessageMediaVenueArray
MessageMediaWebPage represents TL type `messageMediaWebPage#ddf10c3b`. Preview of webpage See https://core.telegram.org/constructor/messageMediaWebPage for reference. 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, 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 If set, the webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened. Webpage preview Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageMediaWebPage from given interface. GetForceLargeMedia returns value of ForceLargeMedia conditional field. GetForceSmallMedia returns value of ForceSmallMedia conditional field. GetManual returns value of Manual conditional field. GetSafe returns value of Safe conditional field. GetWebpage returns value of Webpage field. SetFlags sets flags for non-zero fields. SetForceLargeMedia sets value of ForceLargeMedia conditional field. SetForceSmallMedia sets value of ForceSmallMedia conditional field. SetManual sets value of Manual 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. (*MessageMediaWebPage) Zero() bool *MessageMediaWebPage : MessageMediaClass *MessageMediaWebPage : github.com/gotd/td/bin.BareDecoder *MessageMediaWebPage : github.com/gotd/td/bin.BareEncoder *MessageMediaWebPage : github.com/gotd/td/bin.Decoder *MessageMediaWebPage : github.com/gotd/td/bin.Encoder *MessageMediaWebPage : github.com/gotd/td/bin.Object *MessageMediaWebPage : github.com/gotd/td/tdp.Object *MessageMediaWebPage : fmt.Stringer func MessageMediaWebPageArray.First() (v MessageMediaWebPage, ok bool) func MessageMediaWebPageArray.Last() (v MessageMediaWebPage, ok bool) func (*MessageMediaWebPageArray).Pop() (v MessageMediaWebPage, ok bool) func (*MessageMediaWebPageArray).PopFirst() (v MessageMediaWebPage, ok bool)
MessageMediaWebPageArray is adapter for slice of MessageMediaWebPage. 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 MessageMediaWebPage. Sort sorts slice of MessageMediaWebPage. SortStable sorts slice of MessageMediaWebPage. func MessageMediaClassArray.AsMessageMediaWebPage() (to MessageMediaWebPageArray) func MessageMediaWebPageArray.Retain(keep func(x MessageMediaWebPage) bool) MessageMediaWebPageArray func MessageMediaWebPageArray.Sort(less func(a, b MessageMediaWebPage) bool) MessageMediaWebPageArray func MessageMediaWebPageArray.SortStable(less func(a, b MessageMediaWebPage) bool) MessageMediaWebPageArray
MessagePeerReaction represents TL type `messagePeerReaction#8c79b63c`. How a certain peer reacted to the message See https://core.telegram.org/constructor/messagePeerReaction for reference. Whether the specified message reaction »¹ should elicit a bigger and longer reaction Links: 1) https://core.telegram.org/api/reactions When was this reaction added Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Starting from layer 159, messages.sendReaction¹ will send reactions from the peer (user or channel) specified using messages.saveDefaultSendAs². If set, this flag indicates that this reaction was sent by us, even if the peer doesn't point to the current account. Links: 1) https://core.telegram.org/method/messages.sendReaction 2) https://core.telegram.org/method/messages.saveDefaultSendAs Peer that reacted to the message Reaction emoji Whether the reaction wasn't yet marked as read by the current user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagePeerReaction from given interface. GetBig returns value of Big conditional field. GetDate returns value of Date field. GetMy returns value of My conditional field. GetPeerID returns value of PeerID field. GetReaction returns value of Reaction field. GetUnread returns value of Unread conditional field. SetBig sets value of Big conditional field. SetFlags sets flags for non-zero fields. SetMy sets value of My conditional field. SetUnread sets value of Unread 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. (*MessagePeerReaction) Zero() bool *MessagePeerReaction : github.com/gotd/td/bin.BareDecoder *MessagePeerReaction : github.com/gotd/td/bin.BareEncoder *MessagePeerReaction : github.com/gotd/td/bin.Decoder *MessagePeerReaction : github.com/gotd/td/bin.Encoder *MessagePeerReaction : github.com/gotd/td/bin.Object *MessagePeerReaction : github.com/gotd/td/tdp.Object *MessagePeerReaction : fmt.Stringer func (*MessageReactions).GetRecentReactions() (value []MessagePeerReaction, ok bool) func (*MessagesMessageReactionsList).GetReactions() (value []MessagePeerReaction) func (*MessageReactions).SetRecentReactions(value []MessagePeerReaction)
MessagePeerVote represents TL type `messagePeerVote#b6cc2d5c`. How a peer voted in a poll See https://core.telegram.org/constructor/messagePeerVote for reference. When did the peer cast the vote The option chosen by the peer Peer ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagePeerVote from given interface. GetDate returns value of Date field. GetOption returns value of Option 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. (*MessagePeerVote) Zero() bool *MessagePeerVote : MessagePeerVoteClass *MessagePeerVote : github.com/gotd/td/bin.BareDecoder *MessagePeerVote : github.com/gotd/td/bin.BareEncoder *MessagePeerVote : github.com/gotd/td/bin.Decoder *MessagePeerVote : github.com/gotd/td/bin.Encoder *MessagePeerVote : github.com/gotd/td/bin.Object *MessagePeerVote : github.com/gotd/td/tdp.Object *MessagePeerVote : fmt.Stringer func MessagePeerVoteArray.First() (v MessagePeerVote, ok bool) func MessagePeerVoteArray.Last() (v MessagePeerVote, ok bool) func (*MessagePeerVoteArray).Pop() (v MessagePeerVote, ok bool) func (*MessagePeerVoteArray).PopFirst() (v MessagePeerVote, ok bool)
MessagePeerVoteArray is adapter for slice of MessagePeerVote. 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 MessagePeerVote. Sort sorts slice of MessagePeerVote. SortByDate sorts slice of MessagePeerVote by Date. SortStable sorts slice of MessagePeerVote. SortStableByDate sorts slice of MessagePeerVote by Date. func MessagePeerVoteArray.Retain(keep func(x MessagePeerVote) bool) MessagePeerVoteArray func MessagePeerVoteArray.Sort(less func(a, b MessagePeerVote) bool) MessagePeerVoteArray func MessagePeerVoteArray.SortByDate() MessagePeerVoteArray func MessagePeerVoteArray.SortStable(less func(a, b MessagePeerVote) bool) MessagePeerVoteArray func MessagePeerVoteArray.SortStableByDate() MessagePeerVoteArray func MessagePeerVoteClassArray.AsMessagePeerVote() (to MessagePeerVoteArray)
MessagePeerVote boxes the MessagePeerVoteClass providing a helper. MessagePeerVote MessagePeerVoteClass Decode implements bin.Decoder for MessagePeerVoteBox. Encode implements bin.Encode for MessagePeerVoteBox. *MessagePeerVoteBox : github.com/gotd/td/bin.Decoder *MessagePeerVoteBox : github.com/gotd/td/bin.Encoder *MessagePeerVoteBox : github.com/gotd/td/bin.Object
MessagePeerVoteClass represents MessagePeerVote generic type. See https://core.telegram.org/type/MessagePeerVote for reference. Example: g, err := tg.DecodeMessagePeerVote(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagePeerVote: // messagePeerVote#b6cc2d5c case *tg.MessagePeerVoteInputOption: // messagePeerVoteInputOption#74cda504 case *tg.MessagePeerVoteMultiple: // messagePeerVoteMultiple#4628f6e6 default: panic(v) } ( MessagePeerVoteClass) Decode(b *bin.Buffer) error ( MessagePeerVoteClass) DecodeBare(b *bin.Buffer) error ( MessagePeerVoteClass) Encode(b *bin.Buffer) error ( MessagePeerVoteClass) EncodeBare(b *bin.Buffer) error When did the peer cast the vote Peer ID 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. *MessagePeerVote *MessagePeerVoteInputOption *MessagePeerVoteMultiple MessagePeerVoteClass : github.com/gotd/td/bin.BareDecoder MessagePeerVoteClass : github.com/gotd/td/bin.BareEncoder MessagePeerVoteClass : github.com/gotd/td/bin.Decoder MessagePeerVoteClass : github.com/gotd/td/bin.Encoder MessagePeerVoteClass : github.com/gotd/td/bin.Object MessagePeerVoteClass : fmt.Stringer func DecodeMessagePeerVote(buf *bin.Buffer) (MessagePeerVoteClass, error) func MessagePeerVoteClassArray.First() (v MessagePeerVoteClass, ok bool) func MessagePeerVoteClassArray.Last() (v MessagePeerVoteClass, ok bool) func (*MessagePeerVoteClassArray).Pop() (v MessagePeerVoteClass, ok bool) func (*MessagePeerVoteClassArray).PopFirst() (v MessagePeerVoteClass, ok bool) func (*MessagesVotesList).GetVotes() (value []MessagePeerVoteClass)
MessagePeerVoteClassArray is adapter for slice of MessagePeerVoteClass. AsMessagePeerVote returns copy with only MessagePeerVote constructors. AsMessagePeerVoteInputOption returns copy with only MessagePeerVoteInputOption constructors. AsMessagePeerVoteMultiple returns copy with only MessagePeerVoteMultiple 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 MessagePeerVoteClass. Sort sorts slice of MessagePeerVoteClass. SortByDate sorts slice of MessagePeerVoteClass by Date. SortStable sorts slice of MessagePeerVoteClass. SortStableByDate sorts slice of MessagePeerVoteClass by Date. func MessagePeerVoteClassArray.Retain(keep func(x MessagePeerVoteClass) bool) MessagePeerVoteClassArray func MessagePeerVoteClassArray.Sort(less func(a, b MessagePeerVoteClass) bool) MessagePeerVoteClassArray func MessagePeerVoteClassArray.SortByDate() MessagePeerVoteClassArray func MessagePeerVoteClassArray.SortStable(less func(a, b MessagePeerVoteClass) bool) MessagePeerVoteClassArray func MessagePeerVoteClassArray.SortStableByDate() MessagePeerVoteClassArray func (*MessagesVotesList).MapVotes() (value MessagePeerVoteClassArray)
MessagePeerVoteInputOption represents TL type `messagePeerVoteInputOption#74cda504`. How a peer voted in a poll (reduced constructor, returned if an option was provided to messages.getPollVotes¹) Links: 1. https://core.telegram.org/method/messages.getPollVotes See https://core.telegram.org/constructor/messagePeerVoteInputOption for reference. When did the peer cast the vote The peer that voted for the queried option Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagePeerVoteInputOption from given interface. GetDate returns value of Date 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. (*MessagePeerVoteInputOption) Zero() bool *MessagePeerVoteInputOption : MessagePeerVoteClass *MessagePeerVoteInputOption : github.com/gotd/td/bin.BareDecoder *MessagePeerVoteInputOption : github.com/gotd/td/bin.BareEncoder *MessagePeerVoteInputOption : github.com/gotd/td/bin.Decoder *MessagePeerVoteInputOption : github.com/gotd/td/bin.Encoder *MessagePeerVoteInputOption : github.com/gotd/td/bin.Object *MessagePeerVoteInputOption : github.com/gotd/td/tdp.Object *MessagePeerVoteInputOption : fmt.Stringer func MessagePeerVoteInputOptionArray.First() (v MessagePeerVoteInputOption, ok bool) func MessagePeerVoteInputOptionArray.Last() (v MessagePeerVoteInputOption, ok bool) func (*MessagePeerVoteInputOptionArray).Pop() (v MessagePeerVoteInputOption, ok bool) func (*MessagePeerVoteInputOptionArray).PopFirst() (v MessagePeerVoteInputOption, ok bool)
MessagePeerVoteInputOptionArray is adapter for slice of MessagePeerVoteInputOption. 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 MessagePeerVoteInputOption. Sort sorts slice of MessagePeerVoteInputOption. SortByDate sorts slice of MessagePeerVoteInputOption by Date. SortStable sorts slice of MessagePeerVoteInputOption. SortStableByDate sorts slice of MessagePeerVoteInputOption by Date. func MessagePeerVoteClassArray.AsMessagePeerVoteInputOption() (to MessagePeerVoteInputOptionArray) func MessagePeerVoteInputOptionArray.Retain(keep func(x MessagePeerVoteInputOption) bool) MessagePeerVoteInputOptionArray func MessagePeerVoteInputOptionArray.Sort(less func(a, b MessagePeerVoteInputOption) bool) MessagePeerVoteInputOptionArray func MessagePeerVoteInputOptionArray.SortByDate() MessagePeerVoteInputOptionArray func MessagePeerVoteInputOptionArray.SortStable(less func(a, b MessagePeerVoteInputOption) bool) MessagePeerVoteInputOptionArray func MessagePeerVoteInputOptionArray.SortStableByDate() MessagePeerVoteInputOptionArray
MessagePeerVoteMultiple represents TL type `messagePeerVoteMultiple#4628f6e6`. How a peer voted in a multiple-choice poll See https://core.telegram.org/constructor/messagePeerVoteMultiple for reference. When did the peer cast their votes Options chosen by the peer Peer ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagePeerVoteMultiple from given interface. GetDate returns value of Date field. GetOptions returns value of Options 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. (*MessagePeerVoteMultiple) Zero() bool *MessagePeerVoteMultiple : MessagePeerVoteClass *MessagePeerVoteMultiple : github.com/gotd/td/bin.BareDecoder *MessagePeerVoteMultiple : github.com/gotd/td/bin.BareEncoder *MessagePeerVoteMultiple : github.com/gotd/td/bin.Decoder *MessagePeerVoteMultiple : github.com/gotd/td/bin.Encoder *MessagePeerVoteMultiple : github.com/gotd/td/bin.Object *MessagePeerVoteMultiple : github.com/gotd/td/tdp.Object *MessagePeerVoteMultiple : fmt.Stringer func MessagePeerVoteMultipleArray.First() (v MessagePeerVoteMultiple, ok bool) func MessagePeerVoteMultipleArray.Last() (v MessagePeerVoteMultiple, ok bool) func (*MessagePeerVoteMultipleArray).Pop() (v MessagePeerVoteMultiple, ok bool) func (*MessagePeerVoteMultipleArray).PopFirst() (v MessagePeerVoteMultiple, ok bool)
MessagePeerVoteMultipleArray is adapter for slice of MessagePeerVoteMultiple. 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 MessagePeerVoteMultiple. Sort sorts slice of MessagePeerVoteMultiple. SortByDate sorts slice of MessagePeerVoteMultiple by Date. SortStable sorts slice of MessagePeerVoteMultiple. SortStableByDate sorts slice of MessagePeerVoteMultiple by Date. func MessagePeerVoteClassArray.AsMessagePeerVoteMultiple() (to MessagePeerVoteMultipleArray) func MessagePeerVoteMultipleArray.Retain(keep func(x MessagePeerVoteMultiple) bool) MessagePeerVoteMultipleArray func MessagePeerVoteMultipleArray.Sort(less func(a, b MessagePeerVoteMultiple) bool) MessagePeerVoteMultipleArray func MessagePeerVoteMultipleArray.SortByDate() MessagePeerVoteMultipleArray func MessagePeerVoteMultipleArray.SortStable(less func(a, b MessagePeerVoteMultiple) bool) MessagePeerVoteMultipleArray func MessagePeerVoteMultipleArray.SortStableByDate() MessagePeerVoteMultipleArray
MessagePollHandler is a MessagePoll event handler. func UpdateDispatcher.OnMessagePoll(handler MessagePollHandler)
MessagePollVoteHandler is a MessagePollVote event handler. func UpdateDispatcher.OnMessagePollVote(handler MessagePollVoteHandler)
MessageRange represents TL type `messageRange#ae30253`. Indicates a range of chat messages See https://core.telegram.org/constructor/messageRange for reference. End of range (message ID) Start of range (message ID) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageRange from given interface. GetMaxID returns value of MaxID field. GetMinID returns value of MinID 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. (*MessageRange) Zero() bool *MessageRange : github.com/gotd/td/bin.BareDecoder *MessageRange : github.com/gotd/td/bin.BareEncoder *MessageRange : github.com/gotd/td/bin.Decoder *MessageRange : github.com/gotd/td/bin.Encoder *MessageRange : github.com/gotd/td/bin.Object *MessageRange : github.com/gotd/td/tdp.Object *MessageRange : fmt.Stringer func (*ChannelMessagesFilter).GetRanges() (value []MessageRange) func (*Client).MessagesGetSplitRanges(ctx context.Context) ([]MessageRange, error) func (*InvokeWithMessagesRangeRequest).GetRange() (value MessageRange) func (*MessageRangeVector).GetElems() (value []MessageRange)
MessageRangeVector is a box for Vector<MessageRange> Elements of Vector<MessageRange> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageRangeVector 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. (*MessageRangeVector) Zero() bool *MessageRangeVector : github.com/gotd/td/bin.BareDecoder *MessageRangeVector : github.com/gotd/td/bin.BareEncoder *MessageRangeVector : github.com/gotd/td/bin.Decoder *MessageRangeVector : github.com/gotd/td/bin.Encoder *MessageRangeVector : github.com/gotd/td/bin.Object *MessageRangeVector : github.com/gotd/td/tdp.Object *MessageRangeVector : fmt.Stringer
MessageReactions represents TL type `messageReactions#4f2b9479`. Message reactions »¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/constructor/messageReactions for reference. Whether messages.getMessageReactionsList¹ can be used to see how each specific peer reacted to the message Links: 1) https://core.telegram.org/method/messages.getMessageReactionsList Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Similar to min¹ objects, used for message reaction »² constructors that are the same for all users so they don't have the reactions sent by the current user (you can use messages.getMessagesReactions³ to get the full reaction info). Links: 1) https://core.telegram.org/api/min 2) https://core.telegram.org/api/reactions 3) https://core.telegram.org/method/messages.getMessagesReactions List of recent peers and their reactions Use SetRecentReactions and GetRecentReactions helpers. Reactions Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageReactions from given interface. GetCanSeeList returns value of CanSeeList conditional field. GetMin returns value of Min conditional field. GetRecentReactions returns value of RecentReactions conditional field and boolean which is true if field was set. GetResults returns value of Results field. SetCanSeeList sets value of CanSeeList conditional field. SetFlags sets flags for non-zero fields. SetMin sets value of Min conditional field. SetRecentReactions sets value of RecentReactions 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. (*MessageReactions) Zero() bool *MessageReactions : github.com/gotd/td/bin.BareDecoder *MessageReactions : github.com/gotd/td/bin.BareEncoder *MessageReactions : github.com/gotd/td/bin.Decoder *MessageReactions : github.com/gotd/td/bin.Encoder *MessageReactions : github.com/gotd/td/bin.Object *MessageReactions : github.com/gotd/td/tdp.Object *MessageReactions : fmt.Stringer func (*Message).GetReactions() (value MessageReactions, ok bool) func (*UpdateMessageReactions).GetReactions() (value MessageReactions) func (*Message).SetReactions(value MessageReactions)
MessageReactionsHandler is a MessageReactions event handler. func UpdateDispatcher.OnMessageReactions(handler MessageReactionsHandler)
MessageReplies represents TL type `messageReplies#83d60fc2`. Info about the comment section of a channel post, or a simple message thread¹ Links: 1. https://core.telegram.org/api/threads See https://core.telegram.org/constructor/messageReplies for reference. For channel post comments, contains the ID of the associated discussion supergroup¹ Links: 1) https://core.telegram.org/api/discussion Use SetChannelID and GetChannelID helpers. Whether this constructor contains information about the comment section of a channel post, or a simple message thread¹ Links: 1) https://core.telegram.org/api/threads Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of the latest message in this thread or comment section. Use SetMaxID and GetMaxID helpers. Contains the ID of the latest read message in this thread or comment section. Use SetReadMaxID and GetReadMaxID helpers. For channel post comments, contains information about the last few comment posters for a specific thread, to show a small list of commenter profile pictures in client previews. Use SetRecentRepliers and GetRecentRepliers helpers. Contains the total number of replies in this thread or comment section. PTS¹ of the message that started this thread. Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageReplies from given interface. GetChannelID returns value of ChannelID conditional field and boolean which is true if field was set. GetComments returns value of Comments conditional field. GetMaxID returns value of MaxID conditional field and boolean which is true if field was set. GetReadMaxID returns value of ReadMaxID conditional field and boolean which is true if field was set. GetRecentRepliers returns value of RecentRepliers conditional field and boolean which is true if field was set. GetReplies returns value of Replies field. GetRepliesPts returns value of RepliesPts field. MapRecentRepliers returns field RecentRepliers wrapped in PeerClassArray helper. SetChannelID sets value of ChannelID conditional field. SetComments sets value of Comments conditional field. SetFlags sets flags for non-zero fields. SetMaxID sets value of MaxID conditional field. SetReadMaxID sets value of ReadMaxID conditional field. SetRecentRepliers sets value of RecentRepliers 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. (*MessageReplies) Zero() bool *MessageReplies : github.com/gotd/td/bin.BareDecoder *MessageReplies : github.com/gotd/td/bin.BareEncoder *MessageReplies : github.com/gotd/td/bin.Decoder *MessageReplies : github.com/gotd/td/bin.Encoder *MessageReplies : github.com/gotd/td/bin.Object *MessageReplies : github.com/gotd/td/tdp.Object *MessageReplies : fmt.Stringer func (*Message).GetReplies() (value MessageReplies, ok bool) func (*MessageViews).GetReplies() (value MessageReplies, ok bool) func (*Message).SetReplies(value MessageReplies) func (*MessageViews).SetReplies(value MessageReplies)
MessageReplyHeader represents TL type `messageReplyHeader#afbc09db`. Message replies and thread¹ information Links: 1. https://core.telegram.org/api/threads See https://core.telegram.org/constructor/messageReplyHeader for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this message was sent in a forum topic¹ (except for the General topic). Links: 1) https://core.telegram.org/api/forum#forum-topics Whether this message is quoting a part of another message. Message entities for styled text¹ from the quote_text field. Links: 1) https://core.telegram.org/api/entities Use SetQuoteEntities and GetQuoteEntities helpers. Offset of the message quote_text within the original message (in UTF-16 code units¹). Links: 1) https://core.telegram.org/api/entities#entity-length Use SetQuoteOffset and GetQuoteOffset helpers. Used to quote-reply to only a certain section (specified here) of the original message. Use SetQuoteText and GetQuoteText helpers. When replying to a message sent by a certain peer to another chat, contains info about the peer that originally sent the message to that other chat. Use SetReplyFrom and GetReplyFrom helpers. When replying to a media sent by a certain peer to another chat, contains the media of the replied-to message. Use SetReplyMedia and GetReplyMedia helpers. ID of message to which this message is replying Use SetReplyToMsgID and GetReplyToMsgID helpers. For replies sent in channel discussion threads¹ of which the current user is not a member, the discussion group ID Links: 1) https://core.telegram.org/api/threads Use SetReplyToPeerID and GetReplyToPeerID helpers. This is a reply to a scheduled message. ID of the message that started this message thread¹ Links: 1) https://core.telegram.org/api/threads Use SetReplyToTopID and GetReplyToTopID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageReplyHeader from given interface. GetForumTopic returns value of ForumTopic conditional field. GetQuote returns value of Quote conditional field. GetQuoteEntities returns value of QuoteEntities conditional field and boolean which is true if field was set. GetQuoteOffset returns value of QuoteOffset conditional field and boolean which is true if field was set. GetQuoteText returns value of QuoteText conditional field and boolean which is true if field was set. GetReplyFrom returns value of ReplyFrom conditional field and boolean which is true if field was set. GetReplyMedia returns value of ReplyMedia conditional field and boolean which is true if field was set. GetReplyToMsgID returns value of ReplyToMsgID conditional field and boolean which is true if field was set. GetReplyToPeerID returns value of ReplyToPeerID conditional field and boolean which is true if field was set. GetReplyToScheduled returns value of ReplyToScheduled conditional field. GetReplyToTopID returns value of ReplyToTopID conditional field and boolean which is true if field was set. MapQuoteEntities returns field QuoteEntities wrapped in MessageEntityClassArray helper. SetFlags sets flags for non-zero fields. SetForumTopic sets value of ForumTopic conditional field. SetQuote sets value of Quote conditional field. SetQuoteEntities sets value of QuoteEntities conditional field. SetQuoteOffset sets value of QuoteOffset conditional field. SetQuoteText sets value of QuoteText conditional field. SetReplyFrom sets value of ReplyFrom conditional field. SetReplyMedia sets value of ReplyMedia conditional field. SetReplyToMsgID sets value of ReplyToMsgID conditional field. SetReplyToPeerID sets value of ReplyToPeerID conditional field. SetReplyToScheduled sets value of ReplyToScheduled conditional field. SetReplyToTopID sets value of ReplyToTopID 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. (*MessageReplyHeader) Zero() bool *MessageReplyHeader : MessageReplyHeaderClass *MessageReplyHeader : github.com/gotd/td/bin.BareDecoder *MessageReplyHeader : github.com/gotd/td/bin.BareEncoder *MessageReplyHeader : github.com/gotd/td/bin.Decoder *MessageReplyHeader : github.com/gotd/td/bin.Encoder *MessageReplyHeader : github.com/gotd/td/bin.Object *MessageReplyHeader : github.com/gotd/td/tdp.Object *MessageReplyHeader : fmt.Stringer func MessageReplyHeaderArray.First() (v MessageReplyHeader, ok bool) func MessageReplyHeaderArray.Last() (v MessageReplyHeader, ok bool) func (*MessageReplyHeaderArray).Pop() (v MessageReplyHeader, ok bool) func (*MessageReplyHeaderArray).PopFirst() (v MessageReplyHeader, ok bool)
MessageReplyHeaderArray is adapter for slice of MessageReplyHeader. 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 MessageReplyHeader. Sort sorts slice of MessageReplyHeader. SortStable sorts slice of MessageReplyHeader. func MessageReplyHeaderArray.Retain(keep func(x MessageReplyHeader) bool) MessageReplyHeaderArray func MessageReplyHeaderArray.Sort(less func(a, b MessageReplyHeader) bool) MessageReplyHeaderArray func MessageReplyHeaderArray.SortStable(less func(a, b MessageReplyHeader) bool) MessageReplyHeaderArray func MessageReplyHeaderClassArray.AsMessageReplyHeader() (to MessageReplyHeaderArray)
MessageReplyHeader boxes the MessageReplyHeaderClass providing a helper. MessageReplyHeader MessageReplyHeaderClass Decode implements bin.Decoder for MessageReplyHeaderBox. Encode implements bin.Encode for MessageReplyHeaderBox. *MessageReplyHeaderBox : github.com/gotd/td/bin.Decoder *MessageReplyHeaderBox : github.com/gotd/td/bin.Encoder *MessageReplyHeaderBox : github.com/gotd/td/bin.Object
MessageReplyHeaderClass represents MessageReplyHeader generic type. See https://core.telegram.org/type/MessageReplyHeader for reference. Example: g, err := tg.DecodeMessageReplyHeader(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessageReplyHeader: // messageReplyHeader#afbc09db case *tg.MessageReplyStoryHeader: // messageReplyStoryHeader#9c98bfc1 default: panic(v) } ( MessageReplyHeaderClass) Decode(b *bin.Buffer) error ( MessageReplyHeaderClass) DecodeBare(b *bin.Buffer) error ( MessageReplyHeaderClass) Encode(b *bin.Buffer) error ( MessageReplyHeaderClass) 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. *MessageReplyHeader *MessageReplyStoryHeader MessageReplyHeaderClass : github.com/gotd/td/bin.BareDecoder MessageReplyHeaderClass : github.com/gotd/td/bin.BareEncoder MessageReplyHeaderClass : github.com/gotd/td/bin.Decoder MessageReplyHeaderClass : github.com/gotd/td/bin.Encoder MessageReplyHeaderClass : github.com/gotd/td/bin.Object MessageReplyHeaderClass : fmt.Stringer func DecodeMessageReplyHeader(buf *bin.Buffer) (MessageReplyHeaderClass, error) func (*Message).GetReplyTo() (value MessageReplyHeaderClass, ok bool) func MessageReplyHeaderClassArray.First() (v MessageReplyHeaderClass, ok bool) func MessageReplyHeaderClassArray.Last() (v MessageReplyHeaderClass, ok bool) func (*MessageReplyHeaderClassArray).Pop() (v MessageReplyHeaderClass, ok bool) func (*MessageReplyHeaderClassArray).PopFirst() (v MessageReplyHeaderClass, ok bool) func (*MessageService).GetReplyTo() (value MessageReplyHeaderClass, ok bool) func NotEmptyMessage.GetReplyTo() (value MessageReplyHeaderClass, ok bool) func (*UpdateShortChatMessage).GetReplyTo() (value MessageReplyHeaderClass, ok bool) func (*UpdateShortMessage).GetReplyTo() (value MessageReplyHeaderClass, ok bool) func (*Message).SetReplyTo(value MessageReplyHeaderClass) func (*MessageService).SetReplyTo(value MessageReplyHeaderClass) func (*UpdateShortChatMessage).SetReplyTo(value MessageReplyHeaderClass) func (*UpdateShortMessage).SetReplyTo(value MessageReplyHeaderClass)
MessageReplyHeaderClassArray is adapter for slice of MessageReplyHeaderClass. AsMessageReplyHeader returns copy with only MessageReplyHeader constructors. AsMessageReplyStoryHeader returns copy with only MessageReplyStoryHeader 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 MessageReplyHeaderClass. Sort sorts slice of MessageReplyHeaderClass. SortStable sorts slice of MessageReplyHeaderClass. func MessageReplyHeaderClassArray.Retain(keep func(x MessageReplyHeaderClass) bool) MessageReplyHeaderClassArray func MessageReplyHeaderClassArray.Sort(less func(a, b MessageReplyHeaderClass) bool) MessageReplyHeaderClassArray func MessageReplyHeaderClassArray.SortStable(less func(a, b MessageReplyHeaderClass) bool) MessageReplyHeaderClassArray
MessageReplyStoryHeader represents TL type `messageReplyStoryHeader#9c98bfc1`. Represents a reply to a story¹ Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/messageReplyStoryHeader for reference. Story ID ID of the user that posted a story Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageReplyStoryHeader from given interface. GetStoryID returns value of StoryID 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. (*MessageReplyStoryHeader) Zero() bool *MessageReplyStoryHeader : MessageReplyHeaderClass *MessageReplyStoryHeader : github.com/gotd/td/bin.BareDecoder *MessageReplyStoryHeader : github.com/gotd/td/bin.BareEncoder *MessageReplyStoryHeader : github.com/gotd/td/bin.Decoder *MessageReplyStoryHeader : github.com/gotd/td/bin.Encoder *MessageReplyStoryHeader : github.com/gotd/td/bin.Object *MessageReplyStoryHeader : github.com/gotd/td/tdp.Object *MessageReplyStoryHeader : fmt.Stringer func MessageReplyStoryHeaderArray.First() (v MessageReplyStoryHeader, ok bool) func MessageReplyStoryHeaderArray.Last() (v MessageReplyStoryHeader, ok bool) func (*MessageReplyStoryHeaderArray).Pop() (v MessageReplyStoryHeader, ok bool) func (*MessageReplyStoryHeaderArray).PopFirst() (v MessageReplyStoryHeader, ok bool)
MessageReplyStoryHeaderArray is adapter for slice of MessageReplyStoryHeader. 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 MessageReplyStoryHeader. Sort sorts slice of MessageReplyStoryHeader. SortStable sorts slice of MessageReplyStoryHeader. func MessageReplyHeaderClassArray.AsMessageReplyStoryHeader() (to MessageReplyStoryHeaderArray) func MessageReplyStoryHeaderArray.Retain(keep func(x MessageReplyStoryHeader) bool) MessageReplyStoryHeaderArray func MessageReplyStoryHeaderArray.Sort(less func(a, b MessageReplyStoryHeader) bool) MessageReplyStoryHeaderArray func MessageReplyStoryHeaderArray.SortStable(less func(a, b MessageReplyStoryHeader) bool) MessageReplyStoryHeaderArray
MessagesAcceptEncryptionRequest represents TL type `messages.acceptEncryption#3dbc0415`. Confirms creation of a secret chat See https://core.telegram.org/method/messages.acceptEncryption for reference. B = g ^ b mod p, see Wikipedia¹ Links: 1) https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange 64-bit fingerprint of the received key Secret chat ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesAcceptEncryptionRequest from given interface. GetGB returns value of GB field. GetKeyFingerprint returns value of KeyFingerprint 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. (*MessagesAcceptEncryptionRequest) Zero() bool *MessagesAcceptEncryptionRequest : github.com/gotd/td/bin.BareDecoder *MessagesAcceptEncryptionRequest : github.com/gotd/td/bin.BareEncoder *MessagesAcceptEncryptionRequest : github.com/gotd/td/bin.Decoder *MessagesAcceptEncryptionRequest : github.com/gotd/td/bin.Encoder *MessagesAcceptEncryptionRequest : github.com/gotd/td/bin.Object *MessagesAcceptEncryptionRequest : github.com/gotd/td/tdp.Object *MessagesAcceptEncryptionRequest : fmt.Stringer func (*Client).MessagesAcceptEncryption(ctx context.Context, request *MessagesAcceptEncryptionRequest) (EncryptedChatClass, error)
MessagesAcceptURLAuthRequest represents TL type `messages.acceptUrlAuth#b12c7125`. Use this to accept a Seamless Telegram Login authorization request, for more info click here »¹ Links: 1. https://core.telegram.org/api/url-authorization See https://core.telegram.org/method/messages.acceptUrlAuth for reference. ID of the login button Use SetButtonID and GetButtonID helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID of the message with the login button Use SetMsgID and GetMsgID helpers. The location of the message Use SetPeer and GetPeer helpers. URL used for link URL authorization, click here for more info »¹ Links: 1) https://core.telegram.org/api/url-authorization#link-url-authorization Use SetURL and GetURL helpers. Set this flag to allow the bot to send messages to you (if requested) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesAcceptURLAuthRequest from given interface. GetButtonID returns value of ButtonID conditional field and boolean which is true if field was set. GetMsgID returns value of MsgID conditional field and boolean which is true if field was set. GetPeer returns value of Peer conditional field and boolean which is true if field was set. GetURL returns value of URL conditional field and boolean which is true if field was set. GetWriteAllowed returns value of WriteAllowed conditional field. SetButtonID sets value of ButtonID conditional field. SetFlags sets flags for non-zero fields. SetMsgID sets value of MsgID conditional field. SetPeer sets value of Peer conditional field. SetURL sets value of URL conditional field. SetWriteAllowed sets value of WriteAllowed 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. (*MessagesAcceptURLAuthRequest) Zero() bool *MessagesAcceptURLAuthRequest : github.com/gotd/td/bin.BareDecoder *MessagesAcceptURLAuthRequest : github.com/gotd/td/bin.BareEncoder *MessagesAcceptURLAuthRequest : github.com/gotd/td/bin.Decoder *MessagesAcceptURLAuthRequest : github.com/gotd/td/bin.Encoder *MessagesAcceptURLAuthRequest : github.com/gotd/td/bin.Object *MessagesAcceptURLAuthRequest : github.com/gotd/td/tdp.Object *MessagesAcceptURLAuthRequest : fmt.Stringer func (*Client).MessagesAcceptURLAuth(ctx context.Context, request *MessagesAcceptURLAuthRequest) (URLAuthResultClass, error)
MessagesAddChatUserRequest represents TL type `messages.addChatUser#f24753e3`. Adds a user to a chat and sends a service message on it. May also return 0-N updates of type updateGroupInvitePrivacyForbidden¹: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link² can be shared with the user, instead. Links: 1. https://core.telegram.org/constructor/updateGroupInvitePrivacyForbidden 2. https://core.telegram.org/api/invites See https://core.telegram.org/method/messages.addChatUser for reference. Chat ID Number of last messages to be forwarded User ID to be added Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesAddChatUserRequest from given interface. GetChatID returns value of ChatID field. GetFwdLimit returns value of FwdLimit 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. (*MessagesAddChatUserRequest) Zero() bool *MessagesAddChatUserRequest : github.com/gotd/td/bin.BareDecoder *MessagesAddChatUserRequest : github.com/gotd/td/bin.BareEncoder *MessagesAddChatUserRequest : github.com/gotd/td/bin.Decoder *MessagesAddChatUserRequest : github.com/gotd/td/bin.Encoder *MessagesAddChatUserRequest : github.com/gotd/td/bin.Object *MessagesAddChatUserRequest : github.com/gotd/td/tdp.Object *MessagesAddChatUserRequest : fmt.Stringer func (*Client).MessagesAddChatUser(ctx context.Context, request *MessagesAddChatUserRequest) (UpdatesClass, error)
MessagesAffectedFoundMessages represents TL type `messages.affectedFoundMessages#ef8d3e6c`. Messages found and affected by changes See https://core.telegram.org/constructor/messages.affectedFoundMessages for reference. Affected message IDs If bigger than zero, the request must be repeated to remove more messages Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesAffectedFoundMessages from given interface. GetMessages returns value of Messages field. GetOffset returns value of Offset field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*MessagesAffectedFoundMessages) Zero() bool *MessagesAffectedFoundMessages : github.com/gotd/td/bin.BareDecoder *MessagesAffectedFoundMessages : github.com/gotd/td/bin.BareEncoder *MessagesAffectedFoundMessages : github.com/gotd/td/bin.Decoder *MessagesAffectedFoundMessages : github.com/gotd/td/bin.Encoder *MessagesAffectedFoundMessages : github.com/gotd/td/bin.Object *MessagesAffectedFoundMessages : github.com/gotd/td/tdp.Object *MessagesAffectedFoundMessages : fmt.Stringer func (*Client).MessagesDeletePhoneCallHistory(ctx context.Context, request *MessagesDeletePhoneCallHistoryRequest) (*MessagesAffectedFoundMessages, error)
MessagesAffectedHistory represents TL type `messages.affectedHistory#b45c69d1`. Affected part of communication history with the user or in a chat. See https://core.telegram.org/constructor/messages.affectedHistory for reference. If a parameter contains positive value, it is necessary to repeat the method call using the given value; during the proceeding of all the history the value itself shall gradually decrease Number of events occurred in a text box Number of affected events Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesAffectedHistory from given interface. GetOffset returns value of Offset field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*MessagesAffectedHistory) Zero() bool *MessagesAffectedHistory : github.com/gotd/td/bin.BareDecoder *MessagesAffectedHistory : github.com/gotd/td/bin.BareEncoder *MessagesAffectedHistory : github.com/gotd/td/bin.Decoder *MessagesAffectedHistory : github.com/gotd/td/bin.Encoder *MessagesAffectedHistory : github.com/gotd/td/bin.Object *MessagesAffectedHistory : github.com/gotd/td/tdp.Object *MessagesAffectedHistory : fmt.Stringer func (*Client).ChannelsDeleteParticipantHistory(ctx context.Context, request *ChannelsDeleteParticipantHistoryRequest) (*MessagesAffectedHistory, error) func (*Client).ChannelsDeleteTopicHistory(ctx context.Context, request *ChannelsDeleteTopicHistoryRequest) (*MessagesAffectedHistory, error) func (*Client).MessagesDeleteHistory(ctx context.Context, request *MessagesDeleteHistoryRequest) (*MessagesAffectedHistory, error) func (*Client).MessagesReadMentions(ctx context.Context, request *MessagesReadMentionsRequest) (*MessagesAffectedHistory, error) func (*Client).MessagesReadReactions(ctx context.Context, request *MessagesReadReactionsRequest) (*MessagesAffectedHistory, error) func (*Client).MessagesUnpinAllMessages(ctx context.Context, request *MessagesUnpinAllMessagesRequest) (*MessagesAffectedHistory, error)
MessagesAffectedMessages represents TL type `messages.affectedMessages#84d19185`. Events affected by operation See https://core.telegram.org/constructor/messages.affectedMessages for reference. Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesAffectedMessages from given interface. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*MessagesAffectedMessages) Zero() bool *MessagesAffectedMessages : github.com/gotd/td/bin.BareDecoder *MessagesAffectedMessages : github.com/gotd/td/bin.BareEncoder *MessagesAffectedMessages : github.com/gotd/td/bin.Decoder *MessagesAffectedMessages : github.com/gotd/td/bin.Encoder *MessagesAffectedMessages : github.com/gotd/td/bin.Object *MessagesAffectedMessages : github.com/gotd/td/tdp.Object *MessagesAffectedMessages : fmt.Stringer func (*Client).ChannelsDeleteMessages(ctx context.Context, request *ChannelsDeleteMessagesRequest) (*MessagesAffectedMessages, error) func (*Client).MessagesDeleteMessages(ctx context.Context, request *MessagesDeleteMessagesRequest) (*MessagesAffectedMessages, error) func (*Client).MessagesReadHistory(ctx context.Context, request *MessagesReadHistoryRequest) (*MessagesAffectedMessages, error) func (*Client).MessagesReadMessageContents(ctx context.Context, id []int) (*MessagesAffectedMessages, error)
MessagesAllStickers represents TL type `messages.allStickers#cdbbcebb`. Info about all installed stickers See https://core.telegram.org/constructor/messages.allStickers for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation All stickersets AsModified tries to map MessagesAllStickers to MessagesAllStickers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesAllStickers from given interface. GetHash returns value of Hash field. GetSets returns value of Sets 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. (*MessagesAllStickers) Zero() bool *MessagesAllStickers : MessagesAllStickersClass *MessagesAllStickers : github.com/gotd/td/bin.BareDecoder *MessagesAllStickers : github.com/gotd/td/bin.BareEncoder *MessagesAllStickers : github.com/gotd/td/bin.Decoder *MessagesAllStickers : github.com/gotd/td/bin.Encoder *MessagesAllStickers : github.com/gotd/td/bin.Object *MessagesAllStickers : github.com/gotd/td/tdp.Object *MessagesAllStickers : fmt.Stringer func (*MessagesAllStickers).AsModified() (*MessagesAllStickers, bool) func MessagesAllStickersArray.First() (v MessagesAllStickers, ok bool) func MessagesAllStickersArray.Last() (v MessagesAllStickers, ok bool) func (*MessagesAllStickersArray).Pop() (v MessagesAllStickers, ok bool) func (*MessagesAllStickersArray).PopFirst() (v MessagesAllStickers, ok bool) func MessagesAllStickersClass.AsModified() (*MessagesAllStickers, bool) func MessagesAllStickersClassArray.AppendOnlyModified(to []*MessagesAllStickers) []*MessagesAllStickers func MessagesAllStickersClassArray.AsModified() (to []*MessagesAllStickers) func MessagesAllStickersClassArray.FirstAsModified() (v *MessagesAllStickers, ok bool) func MessagesAllStickersClassArray.LastAsModified() (v *MessagesAllStickers, ok bool) func (*MessagesAllStickersClassArray).PopAsModified() (v *MessagesAllStickers, ok bool) func (*MessagesAllStickersClassArray).PopFirstAsModified() (v *MessagesAllStickers, ok bool) func (*MessagesAllStickersNotModified).AsModified() (*MessagesAllStickers, bool) func MessagesAllStickersClassArray.AppendOnlyModified(to []*MessagesAllStickers) []*MessagesAllStickers
MessagesAllStickersArray is adapter for slice of MessagesAllStickers. 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 MessagesAllStickers. Sort sorts slice of MessagesAllStickers. SortStable sorts slice of MessagesAllStickers. func MessagesAllStickersArray.Retain(keep func(x MessagesAllStickers) bool) MessagesAllStickersArray func MessagesAllStickersArray.Sort(less func(a, b MessagesAllStickers) bool) MessagesAllStickersArray func MessagesAllStickersArray.SortStable(less func(a, b MessagesAllStickers) bool) MessagesAllStickersArray func MessagesAllStickersClassArray.AsMessagesAllStickers() (to MessagesAllStickersArray)
MessagesAllStickers boxes the MessagesAllStickersClass providing a helper. AllStickers MessagesAllStickersClass Decode implements bin.Decoder for MessagesAllStickersBox. Encode implements bin.Encode for MessagesAllStickersBox. *MessagesAllStickersBox : github.com/gotd/td/bin.Decoder *MessagesAllStickersBox : github.com/gotd/td/bin.Encoder *MessagesAllStickersBox : github.com/gotd/td/bin.Object
MessagesAllStickersClass represents messages.AllStickers generic type. See https://core.telegram.org/type/messages.AllStickers for reference. Example: g, err := tg.DecodeMessagesAllStickers(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesAllStickersNotModified: // messages.allStickersNotModified#e86602c3 case *tg.MessagesAllStickers: // messages.allStickers#cdbbcebb default: panic(v) } AsModified tries to map MessagesAllStickersClass to MessagesAllStickers. ( MessagesAllStickersClass) Decode(b *bin.Buffer) error ( MessagesAllStickersClass) DecodeBare(b *bin.Buffer) error ( MessagesAllStickersClass) Encode(b *bin.Buffer) error ( MessagesAllStickersClass) 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. *MessagesAllStickers *MessagesAllStickersNotModified MessagesAllStickersClass : github.com/gotd/td/bin.BareDecoder MessagesAllStickersClass : github.com/gotd/td/bin.BareEncoder MessagesAllStickersClass : github.com/gotd/td/bin.Decoder MessagesAllStickersClass : github.com/gotd/td/bin.Encoder MessagesAllStickersClass : github.com/gotd/td/bin.Object MessagesAllStickersClass : fmt.Stringer func DecodeMessagesAllStickers(buf *bin.Buffer) (MessagesAllStickersClass, error) func (*Client).MessagesGetAllStickers(ctx context.Context, hash int64) (MessagesAllStickersClass, error) func (*Client).MessagesGetEmojiStickers(ctx context.Context, hash int64) (MessagesAllStickersClass, error) func (*Client).MessagesGetMaskStickers(ctx context.Context, hash int64) (MessagesAllStickersClass, error) func MessagesAllStickersClassArray.First() (v MessagesAllStickersClass, ok bool) func MessagesAllStickersClassArray.Last() (v MessagesAllStickersClass, ok bool) func (*MessagesAllStickersClassArray).Pop() (v MessagesAllStickersClass, ok bool) func (*MessagesAllStickersClassArray).PopFirst() (v MessagesAllStickersClass, ok bool)
MessagesAllStickersClassArray is adapter for slice of MessagesAllStickersClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesAllStickers returns copy with only MessagesAllStickers 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 MessagesAllStickersClass. Sort sorts slice of MessagesAllStickersClass. SortStable sorts slice of MessagesAllStickersClass. func MessagesAllStickersClassArray.Retain(keep func(x MessagesAllStickersClass) bool) MessagesAllStickersClassArray func MessagesAllStickersClassArray.Sort(less func(a, b MessagesAllStickersClass) bool) MessagesAllStickersClassArray func MessagesAllStickersClassArray.SortStable(less func(a, b MessagesAllStickersClass) bool) MessagesAllStickersClassArray
MessagesAllStickersNotModified represents TL type `messages.allStickersNotModified#e86602c3`. Info about all installed stickers hasn't changed See https://core.telegram.org/constructor/messages.allStickersNotModified for reference. AsModified tries to map MessagesAllStickersNotModified to MessagesAllStickers. 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. (*MessagesAllStickersNotModified) Zero() bool *MessagesAllStickersNotModified : MessagesAllStickersClass *MessagesAllStickersNotModified : github.com/gotd/td/bin.BareDecoder *MessagesAllStickersNotModified : github.com/gotd/td/bin.BareEncoder *MessagesAllStickersNotModified : github.com/gotd/td/bin.Decoder *MessagesAllStickersNotModified : github.com/gotd/td/bin.Encoder *MessagesAllStickersNotModified : github.com/gotd/td/bin.Object *MessagesAllStickersNotModified : github.com/gotd/td/tdp.Object *MessagesAllStickersNotModified : fmt.Stringer
MessagesArchivedStickers represents TL type `messages.archivedStickers#4fcba9c8`. Archived stickersets See https://core.telegram.org/constructor/messages.archivedStickers for reference. Number of archived stickers Archived stickersets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesArchivedStickers from given interface. GetCount returns value of Count field. GetSets returns value of Sets field. MapSets returns field Sets wrapped in StickerSetCoveredClassArray 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. (*MessagesArchivedStickers) Zero() bool *MessagesArchivedStickers : github.com/gotd/td/bin.BareDecoder *MessagesArchivedStickers : github.com/gotd/td/bin.BareEncoder *MessagesArchivedStickers : github.com/gotd/td/bin.Decoder *MessagesArchivedStickers : github.com/gotd/td/bin.Encoder *MessagesArchivedStickers : github.com/gotd/td/bin.Object *MessagesArchivedStickers : github.com/gotd/td/tdp.Object *MessagesArchivedStickers : fmt.Stringer func (*Client).MessagesGetArchivedStickers(ctx context.Context, request *MessagesGetArchivedStickersRequest) (*MessagesArchivedStickers, error)
MessagesAvailableReactions represents TL type `messages.availableReactions#768e3aad`. Animations and metadata associated with message reactions »¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/constructor/messages.availableReactions for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Animations and metadata associated with message reactions »¹ Links: 1) https://core.telegram.org/api/reactions AsModified tries to map MessagesAvailableReactions to MessagesAvailableReactions. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesAvailableReactions from given interface. GetHash returns value of Hash field. GetReactions returns value of Reactions 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. (*MessagesAvailableReactions) Zero() bool *MessagesAvailableReactions : MessagesAvailableReactionsClass *MessagesAvailableReactions : github.com/gotd/td/bin.BareDecoder *MessagesAvailableReactions : github.com/gotd/td/bin.BareEncoder *MessagesAvailableReactions : github.com/gotd/td/bin.Decoder *MessagesAvailableReactions : github.com/gotd/td/bin.Encoder *MessagesAvailableReactions : github.com/gotd/td/bin.Object *MessagesAvailableReactions : github.com/gotd/td/tdp.Object *MessagesAvailableReactions : fmt.Stringer func (*MessagesAvailableReactions).AsModified() (*MessagesAvailableReactions, bool) func MessagesAvailableReactionsArray.First() (v MessagesAvailableReactions, ok bool) func MessagesAvailableReactionsArray.Last() (v MessagesAvailableReactions, ok bool) func (*MessagesAvailableReactionsArray).Pop() (v MessagesAvailableReactions, ok bool) func (*MessagesAvailableReactionsArray).PopFirst() (v MessagesAvailableReactions, ok bool) func MessagesAvailableReactionsClass.AsModified() (*MessagesAvailableReactions, bool) func MessagesAvailableReactionsClassArray.AppendOnlyModified(to []*MessagesAvailableReactions) []*MessagesAvailableReactions func MessagesAvailableReactionsClassArray.AsModified() (to []*MessagesAvailableReactions) func MessagesAvailableReactionsClassArray.FirstAsModified() (v *MessagesAvailableReactions, ok bool) func MessagesAvailableReactionsClassArray.LastAsModified() (v *MessagesAvailableReactions, ok bool) func (*MessagesAvailableReactionsClassArray).PopAsModified() (v *MessagesAvailableReactions, ok bool) func (*MessagesAvailableReactionsClassArray).PopFirstAsModified() (v *MessagesAvailableReactions, ok bool) func (*MessagesAvailableReactionsNotModified).AsModified() (*MessagesAvailableReactions, bool) func MessagesAvailableReactionsClassArray.AppendOnlyModified(to []*MessagesAvailableReactions) []*MessagesAvailableReactions
MessagesAvailableReactionsArray is adapter for slice of MessagesAvailableReactions. 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 MessagesAvailableReactions. Sort sorts slice of MessagesAvailableReactions. SortStable sorts slice of MessagesAvailableReactions. func MessagesAvailableReactionsArray.Retain(keep func(x MessagesAvailableReactions) bool) MessagesAvailableReactionsArray func MessagesAvailableReactionsArray.Sort(less func(a, b MessagesAvailableReactions) bool) MessagesAvailableReactionsArray func MessagesAvailableReactionsArray.SortStable(less func(a, b MessagesAvailableReactions) bool) MessagesAvailableReactionsArray func MessagesAvailableReactionsClassArray.AsMessagesAvailableReactions() (to MessagesAvailableReactionsArray)
MessagesAvailableReactions boxes the MessagesAvailableReactionsClass providing a helper. AvailableReactions MessagesAvailableReactionsClass Decode implements bin.Decoder for MessagesAvailableReactionsBox. Encode implements bin.Encode for MessagesAvailableReactionsBox. *MessagesAvailableReactionsBox : github.com/gotd/td/bin.Decoder *MessagesAvailableReactionsBox : github.com/gotd/td/bin.Encoder *MessagesAvailableReactionsBox : github.com/gotd/td/bin.Object
MessagesAvailableReactionsClass represents messages.AvailableReactions generic type. See https://core.telegram.org/type/messages.AvailableReactions for reference. Example: g, err := tg.DecodeMessagesAvailableReactions(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesAvailableReactionsNotModified: // messages.availableReactionsNotModified#9f071957 case *tg.MessagesAvailableReactions: // messages.availableReactions#768e3aad default: panic(v) } AsModified tries to map MessagesAvailableReactionsClass to MessagesAvailableReactions. ( MessagesAvailableReactionsClass) Decode(b *bin.Buffer) error ( MessagesAvailableReactionsClass) DecodeBare(b *bin.Buffer) error ( MessagesAvailableReactionsClass) Encode(b *bin.Buffer) error ( MessagesAvailableReactionsClass) 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. *MessagesAvailableReactions *MessagesAvailableReactionsNotModified MessagesAvailableReactionsClass : github.com/gotd/td/bin.BareDecoder MessagesAvailableReactionsClass : github.com/gotd/td/bin.BareEncoder MessagesAvailableReactionsClass : github.com/gotd/td/bin.Decoder MessagesAvailableReactionsClass : github.com/gotd/td/bin.Encoder MessagesAvailableReactionsClass : github.com/gotd/td/bin.Object MessagesAvailableReactionsClass : fmt.Stringer func DecodeMessagesAvailableReactions(buf *bin.Buffer) (MessagesAvailableReactionsClass, error) func (*Client).MessagesGetAvailableReactions(ctx context.Context, hash int) (MessagesAvailableReactionsClass, error) func MessagesAvailableReactionsClassArray.First() (v MessagesAvailableReactionsClass, ok bool) func MessagesAvailableReactionsClassArray.Last() (v MessagesAvailableReactionsClass, ok bool) func (*MessagesAvailableReactionsClassArray).Pop() (v MessagesAvailableReactionsClass, ok bool) func (*MessagesAvailableReactionsClassArray).PopFirst() (v MessagesAvailableReactionsClass, ok bool)
MessagesAvailableReactionsClassArray is adapter for slice of MessagesAvailableReactionsClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesAvailableReactions returns copy with only MessagesAvailableReactions 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 MessagesAvailableReactionsClass. Sort sorts slice of MessagesAvailableReactionsClass. SortStable sorts slice of MessagesAvailableReactionsClass. func MessagesAvailableReactionsClassArray.Retain(keep func(x MessagesAvailableReactionsClass) bool) MessagesAvailableReactionsClassArray func MessagesAvailableReactionsClassArray.Sort(less func(a, b MessagesAvailableReactionsClass) bool) MessagesAvailableReactionsClassArray func MessagesAvailableReactionsClassArray.SortStable(less func(a, b MessagesAvailableReactionsClass) bool) MessagesAvailableReactionsClassArray
MessagesAvailableReactionsNotModified represents TL type `messages.availableReactionsNotModified#9f071957`. No new reactions are available See https://core.telegram.org/constructor/messages.availableReactionsNotModified for reference. AsModified tries to map MessagesAvailableReactionsNotModified to MessagesAvailableReactions. 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. (*MessagesAvailableReactionsNotModified) Zero() bool *MessagesAvailableReactionsNotModified : MessagesAvailableReactionsClass *MessagesAvailableReactionsNotModified : github.com/gotd/td/bin.BareDecoder *MessagesAvailableReactionsNotModified : github.com/gotd/td/bin.BareEncoder *MessagesAvailableReactionsNotModified : github.com/gotd/td/bin.Decoder *MessagesAvailableReactionsNotModified : github.com/gotd/td/bin.Encoder *MessagesAvailableReactionsNotModified : github.com/gotd/td/bin.Object *MessagesAvailableReactionsNotModified : github.com/gotd/td/tdp.Object *MessagesAvailableReactionsNotModified : fmt.Stringer
MessagesBotApp represents TL type `messages.botApp#eb50adf5`. Contains information about a named Mini App¹ Links: 1. https://core.telegram.org/api/bots/webapps#named-mini-apps See https://core.telegram.org/constructor/messages.botApp for reference. Bot app information Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Deprecated flag, can be ignored. Whether the web app was never used by the user, and confirmation must be asked from the user before opening it. The bot is asking permission to send messages to the user: if the user agrees, set the write_allowed flag when invoking messages.requestAppWebView¹. Links: 1) https://core.telegram.org/method/messages.requestAppWebView Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesBotApp from given interface. GetApp returns value of App field. GetAppAsModified returns mapped value of App field. GetHasSettings returns value of HasSettings conditional field. GetInactive returns value of Inactive conditional field. GetRequestWriteAccess returns value of RequestWriteAccess conditional field. SetFlags sets flags for non-zero fields. SetHasSettings sets value of HasSettings conditional field. SetInactive sets value of Inactive conditional field. SetRequestWriteAccess sets value of RequestWriteAccess 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. (*MessagesBotApp) Zero() bool *MessagesBotApp : github.com/gotd/td/bin.BareDecoder *MessagesBotApp : github.com/gotd/td/bin.BareEncoder *MessagesBotApp : github.com/gotd/td/bin.Decoder *MessagesBotApp : github.com/gotd/td/bin.Encoder *MessagesBotApp : github.com/gotd/td/bin.Object *MessagesBotApp : github.com/gotd/td/tdp.Object *MessagesBotApp : fmt.Stringer func (*Client).MessagesGetBotApp(ctx context.Context, request *MessagesGetBotAppRequest) (*MessagesBotApp, error)
MessagesBotCallbackAnswer represents TL type `messages.botCallbackAnswer#36585ea4`. Callback answer sent by the bot in response to a button press See https://core.telegram.org/constructor/messages.botCallbackAnswer for reference. Whether an alert should be shown to the user instead of a toast notification For how long should this answer be cached Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether an URL is present Alert to show Use SetMessage and GetMessage helpers. Whether to show games in WebView or in native UI. URL to open Use SetURL and GetURL helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesBotCallbackAnswer from given interface. GetAlert returns value of Alert conditional field. GetCacheTime returns value of CacheTime field. GetHasURL returns value of HasURL conditional field. GetMessage returns value of Message conditional field and boolean which is true if field was set. GetNativeUI returns value of NativeUI conditional field. GetURL returns value of URL conditional field and boolean which is true if field was set. SetAlert sets value of Alert conditional field. SetFlags sets flags for non-zero fields. SetHasURL sets value of HasURL conditional field. SetMessage sets value of Message conditional field. SetNativeUI sets value of NativeUI 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. (*MessagesBotCallbackAnswer) Zero() bool *MessagesBotCallbackAnswer : github.com/gotd/td/bin.BareDecoder *MessagesBotCallbackAnswer : github.com/gotd/td/bin.BareEncoder *MessagesBotCallbackAnswer : github.com/gotd/td/bin.Decoder *MessagesBotCallbackAnswer : github.com/gotd/td/bin.Encoder *MessagesBotCallbackAnswer : github.com/gotd/td/bin.Object *MessagesBotCallbackAnswer : github.com/gotd/td/tdp.Object *MessagesBotCallbackAnswer : fmt.Stringer func (*Client).MessagesGetBotCallbackAnswer(ctx context.Context, request *MessagesGetBotCallbackAnswerRequest) (*MessagesBotCallbackAnswer, error)
MessagesBotResults represents TL type `messages.botResults#e021f2f6`. Result of a query to an inline bot See https://core.telegram.org/constructor/messages.botResults for reference. Caching validity of the results Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the result is a picture gallery The next offset to use when navigating through results Use SetNextOffset and GetNextOffset helpers. Query ID The results Shown as a button on top of the remaining inline result list; if clicked, redirects the user to a private chat with the bot with the specified start parameter. Use SetSwitchPm and GetSwitchPm helpers. Shown as a button on top of the remaining inline result list; if clicked, opens the specified inline mode mini app¹. Links: 1) https://core.telegram.org/api/bots/webapps#inline-mode-mini-apps Use SetSwitchWebview and GetSwitchWebview helpers. Users mentioned in the results Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesBotResults from given interface. GetCacheTime returns value of CacheTime field. GetGallery returns value of Gallery conditional field. GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set. GetQueryID returns value of QueryID field. GetResults returns value of Results field. GetSwitchPm returns value of SwitchPm conditional field and boolean which is true if field was set. GetSwitchWebview returns value of SwitchWebview conditional field and boolean which is true if field was set. GetUsers returns value of Users field. MapResults returns field Results wrapped in BotInlineResultClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetGallery sets value of Gallery conditional field. SetNextOffset sets value of NextOffset conditional field. SetSwitchPm sets value of SwitchPm conditional field. SetSwitchWebview sets value of SwitchWebview 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. (*MessagesBotResults) Zero() bool *MessagesBotResults : github.com/gotd/td/bin.BareDecoder *MessagesBotResults : github.com/gotd/td/bin.BareEncoder *MessagesBotResults : github.com/gotd/td/bin.Decoder *MessagesBotResults : github.com/gotd/td/bin.Encoder *MessagesBotResults : github.com/gotd/td/bin.Object *MessagesBotResults : github.com/gotd/td/tdp.Object *MessagesBotResults : fmt.Stringer func (*Client).MessagesGetInlineBotResults(ctx context.Context, request *MessagesGetInlineBotResultsRequest) (*MessagesBotResults, error)
MessagesChannelMessages represents TL type `messages.channelMessages#c776ba4e`. Channel messages See https://core.telegram.org/constructor/messages.channelMessages for reference. Chats Total number of results were found server-side (may not be all included here) Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, returned results may be inexact Found messages Indicates the absolute position of messages[0] within the total result set with count count. This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}. Use SetOffsetIDOffset and GetOffsetIDOffset helpers. Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Forum topic¹ information Links: 1) https://core.telegram.org/api/forum#forum-topics Users AsModified tries to map MessagesChannelMessages to ModifiedMessagesMessages. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesChannelMessages from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetInexact returns value of Inexact conditional field. GetMessages returns value of Messages field. GetOffsetIDOffset returns value of OffsetIDOffset conditional field and boolean which is true if field was set. GetPts returns value of Pts field. GetTopics returns value of Topics field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray helper. MapTopics returns field Topics wrapped in ForumTopicClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetInexact sets value of Inexact conditional field. SetOffsetIDOffset sets value of OffsetIDOffset 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. (*MessagesChannelMessages) Zero() bool *MessagesChannelMessages : MessagesMessagesClass *MessagesChannelMessages : ModifiedMessagesMessages *MessagesChannelMessages : github.com/gotd/td/bin.BareDecoder *MessagesChannelMessages : github.com/gotd/td/bin.BareEncoder *MessagesChannelMessages : github.com/gotd/td/bin.Decoder *MessagesChannelMessages : github.com/gotd/td/bin.Encoder *MessagesChannelMessages : github.com/gotd/td/bin.Object *MessagesChannelMessages : github.com/gotd/td/tdp.Object *MessagesChannelMessages : fmt.Stringer func MessagesChannelMessagesArray.First() (v MessagesChannelMessages, ok bool) func MessagesChannelMessagesArray.Last() (v MessagesChannelMessages, ok bool) func (*MessagesChannelMessagesArray).Pop() (v MessagesChannelMessages, ok bool) func (*MessagesChannelMessagesArray).PopFirst() (v MessagesChannelMessages, ok bool)
MessagesChannelMessagesArray is adapter for slice of MessagesChannelMessages. 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 MessagesChannelMessages. Sort sorts slice of MessagesChannelMessages. SortStable sorts slice of MessagesChannelMessages. func MessagesChannelMessagesArray.Retain(keep func(x MessagesChannelMessages) bool) MessagesChannelMessagesArray func MessagesChannelMessagesArray.Sort(less func(a, b MessagesChannelMessages) bool) MessagesChannelMessagesArray func MessagesChannelMessagesArray.SortStable(less func(a, b MessagesChannelMessages) bool) MessagesChannelMessagesArray func MessagesMessagesClassArray.AsMessagesChannelMessages() (to MessagesChannelMessagesArray)
MessagesChatAdminsWithInvites represents TL type `messages.chatAdminsWithInvites#b69b72d7`. Info about chat invites generated by admins. See https://core.telegram.org/constructor/messages.chatAdminsWithInvites for reference. Info about chat invites generated by admins. Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesChatAdminsWithInvites from given interface. GetAdmins returns value of Admins 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. (*MessagesChatAdminsWithInvites) Zero() bool *MessagesChatAdminsWithInvites : github.com/gotd/td/bin.BareDecoder *MessagesChatAdminsWithInvites : github.com/gotd/td/bin.BareEncoder *MessagesChatAdminsWithInvites : github.com/gotd/td/bin.Decoder *MessagesChatAdminsWithInvites : github.com/gotd/td/bin.Encoder *MessagesChatAdminsWithInvites : github.com/gotd/td/bin.Object *MessagesChatAdminsWithInvites : github.com/gotd/td/tdp.Object *MessagesChatAdminsWithInvites : fmt.Stringer func (*Client).MessagesGetAdminsWithInvites(ctx context.Context, peer InputPeerClass) (*MessagesChatAdminsWithInvites, error)
MessagesChatFull represents TL type `messages.chatFull#e5d7d19c`. Full info about a channel¹, supergroup², gigagroup³ or basic group⁴. Links: 1. https://core.telegram.org/api/channel#channels 2. https://core.telegram.org/api/channel#supergroups 3. https://core.telegram.org/api/channel#gigagroups 4. https://core.telegram.org/api/channel#basic-groups See https://core.telegram.org/constructor/messages.chatFull for reference. Mentioned chats Full info Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesChatFull from given interface. GetChats returns value of Chats field. GetFullChat returns value of FullChat field. GetUsers returns value of Users 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. (*MessagesChatFull) Zero() bool *MessagesChatFull : github.com/gotd/td/bin.BareDecoder *MessagesChatFull : github.com/gotd/td/bin.BareEncoder *MessagesChatFull : github.com/gotd/td/bin.Decoder *MessagesChatFull : github.com/gotd/td/bin.Encoder *MessagesChatFull : github.com/gotd/td/bin.Object *MessagesChatFull : github.com/gotd/td/tdp.Object *MessagesChatFull : fmt.Stringer func (*Client).ChannelsGetFullChannel(ctx context.Context, channel InputChannelClass) (*MessagesChatFull, error) func (*Client).MessagesGetFullChat(ctx context.Context, chatid int64) (*MessagesChatFull, error)
MessagesChatInviteImporters represents TL type `messages.chatInviteImporters#81b6b00a`. Info about the users that joined the chat using a specific chat invite See https://core.telegram.org/constructor/messages.chatInviteImporters for reference. Number of users that joined The users that joined The users that joined Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesChatInviteImporters from given interface. GetCount returns value of Count field. GetImporters returns value of Importers 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. (*MessagesChatInviteImporters) Zero() bool *MessagesChatInviteImporters : github.com/gotd/td/bin.BareDecoder *MessagesChatInviteImporters : github.com/gotd/td/bin.BareEncoder *MessagesChatInviteImporters : github.com/gotd/td/bin.Decoder *MessagesChatInviteImporters : github.com/gotd/td/bin.Encoder *MessagesChatInviteImporters : github.com/gotd/td/bin.Object *MessagesChatInviteImporters : github.com/gotd/td/tdp.Object *MessagesChatInviteImporters : fmt.Stringer func (*Client).MessagesGetChatInviteImporters(ctx context.Context, request *MessagesGetChatInviteImportersRequest) (*MessagesChatInviteImporters, error)
MessagesChats represents TL type `messages.chats#64ff9fd5`. List of chats with auxiliary data. See https://core.telegram.org/constructor/messages.chats for reference. List of chats Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesChats from given interface. GetChats returns value of Chats field. MapChats returns field Chats wrapped in ChatClassArray 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. (*MessagesChats) Zero() bool *MessagesChats : MessagesChatsClass *MessagesChats : github.com/gotd/td/bin.BareDecoder *MessagesChats : github.com/gotd/td/bin.BareEncoder *MessagesChats : github.com/gotd/td/bin.Decoder *MessagesChats : github.com/gotd/td/bin.Encoder *MessagesChats : github.com/gotd/td/bin.Object *MessagesChats : github.com/gotd/td/tdp.Object *MessagesChats : fmt.Stringer func MessagesChatsArray.First() (v MessagesChats, ok bool) func MessagesChatsArray.Last() (v MessagesChats, ok bool) func (*MessagesChatsArray).Pop() (v MessagesChats, ok bool) func (*MessagesChatsArray).PopFirst() (v MessagesChats, ok bool)
MessagesChatsArray is adapter for slice of MessagesChats. 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 MessagesChats. Sort sorts slice of MessagesChats. SortStable sorts slice of MessagesChats. func MessagesChatsArray.Retain(keep func(x MessagesChats) bool) MessagesChatsArray func MessagesChatsArray.Sort(less func(a, b MessagesChats) bool) MessagesChatsArray func MessagesChatsArray.SortStable(less func(a, b MessagesChats) bool) MessagesChatsArray func MessagesChatsClassArray.AsMessagesChats() (to MessagesChatsArray)
MessagesChats boxes the MessagesChatsClass providing a helper. Chats MessagesChatsClass Decode implements bin.Decoder for MessagesChatsBox. Encode implements bin.Encode for MessagesChatsBox. *MessagesChatsBox : github.com/gotd/td/bin.Decoder *MessagesChatsBox : github.com/gotd/td/bin.Encoder *MessagesChatsBox : github.com/gotd/td/bin.Object
MessagesChatsClass represents messages.Chats generic type. See https://core.telegram.org/type/messages.Chats for reference. Example: g, err := tg.DecodeMessagesChats(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesChats: // messages.chats#64ff9fd5 case *tg.MessagesChatsSlice: // messages.chatsSlice#9cd81144 default: panic(v) } ( MessagesChatsClass) Decode(b *bin.Buffer) error ( MessagesChatsClass) DecodeBare(b *bin.Buffer) error ( MessagesChatsClass) Encode(b *bin.Buffer) error ( MessagesChatsClass) EncodeBare(b *bin.Buffer) error List of chats List of chats 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. *MessagesChats *MessagesChatsSlice MessagesChatsClass : github.com/gotd/td/bin.BareDecoder MessagesChatsClass : github.com/gotd/td/bin.BareEncoder MessagesChatsClass : github.com/gotd/td/bin.Decoder MessagesChatsClass : github.com/gotd/td/bin.Encoder MessagesChatsClass : github.com/gotd/td/bin.Object MessagesChatsClass : fmt.Stringer func DecodeMessagesChats(buf *bin.Buffer) (MessagesChatsClass, error) func (*Client).ChannelsGetAdminedPublicChannels(ctx context.Context, request *ChannelsGetAdminedPublicChannelsRequest) (MessagesChatsClass, error) func (*Client).ChannelsGetChannelRecommendations(ctx context.Context, channel InputChannelClass) (MessagesChatsClass, error) func (*Client).ChannelsGetChannels(ctx context.Context, id []InputChannelClass) (MessagesChatsClass, error) func (*Client).ChannelsGetGroupsForDiscussion(ctx context.Context) (MessagesChatsClass, error) func (*Client).ChannelsGetLeftChannels(ctx context.Context, offset int) (MessagesChatsClass, error) func (*Client).MessagesGetChats(ctx context.Context, id []int64) (MessagesChatsClass, error) func (*Client).MessagesGetCommonChats(ctx context.Context, request *MessagesGetCommonChatsRequest) (MessagesChatsClass, error) func (*Client).StoriesGetChatsToSend(ctx context.Context) (MessagesChatsClass, error) func MessagesChatsClassArray.First() (v MessagesChatsClass, ok bool) func MessagesChatsClassArray.Last() (v MessagesChatsClass, ok bool) func (*MessagesChatsClassArray).Pop() (v MessagesChatsClass, ok bool) func (*MessagesChatsClassArray).PopFirst() (v MessagesChatsClass, ok bool)
MessagesChatsClassArray is adapter for slice of MessagesChatsClass. AsMessagesChats returns copy with only MessagesChats constructors. AsMessagesChatsSlice returns copy with only MessagesChatsSlice 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 MessagesChatsClass. Sort sorts slice of MessagesChatsClass. SortStable sorts slice of MessagesChatsClass. func MessagesChatsClassArray.Retain(keep func(x MessagesChatsClass) bool) MessagesChatsClassArray func MessagesChatsClassArray.Sort(less func(a, b MessagesChatsClass) bool) MessagesChatsClassArray func MessagesChatsClassArray.SortStable(less func(a, b MessagesChatsClass) bool) MessagesChatsClassArray
MessagesChatsSlice represents TL type `messages.chatsSlice#9cd81144`. Partial list of chats, more would have to be fetched with pagination¹ Links: 1. https://core.telegram.org/api/offsets See https://core.telegram.org/constructor/messages.chatsSlice for reference. Chats Total number of results that were found server-side (not all are included in chats) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesChatsSlice from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. MapChats returns field Chats wrapped in ChatClassArray 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. (*MessagesChatsSlice) Zero() bool *MessagesChatsSlice : MessagesChatsClass *MessagesChatsSlice : github.com/gotd/td/bin.BareDecoder *MessagesChatsSlice : github.com/gotd/td/bin.BareEncoder *MessagesChatsSlice : github.com/gotd/td/bin.Decoder *MessagesChatsSlice : github.com/gotd/td/bin.Encoder *MessagesChatsSlice : github.com/gotd/td/bin.Object *MessagesChatsSlice : github.com/gotd/td/tdp.Object *MessagesChatsSlice : fmt.Stringer func MessagesChatsSliceArray.First() (v MessagesChatsSlice, ok bool) func MessagesChatsSliceArray.Last() (v MessagesChatsSlice, ok bool) func (*MessagesChatsSliceArray).Pop() (v MessagesChatsSlice, ok bool) func (*MessagesChatsSliceArray).PopFirst() (v MessagesChatsSlice, ok bool)
MessagesChatsSliceArray is adapter for slice of MessagesChatsSlice. 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 MessagesChatsSlice. Sort sorts slice of MessagesChatsSlice. SortStable sorts slice of MessagesChatsSlice. func MessagesChatsClassArray.AsMessagesChatsSlice() (to MessagesChatsSliceArray) func MessagesChatsSliceArray.Retain(keep func(x MessagesChatsSlice) bool) MessagesChatsSliceArray func MessagesChatsSliceArray.Sort(less func(a, b MessagesChatsSlice) bool) MessagesChatsSliceArray func MessagesChatsSliceArray.SortStable(less func(a, b MessagesChatsSlice) bool) MessagesChatsSliceArray
MessagesCheckChatInviteRequest represents TL type `messages.checkChatInvite#3eadb1bb`. Check the validity of a chat invite link and get basic info about it See https://core.telegram.org/method/messages.checkChatInvite for reference. Invite hash from chat invite deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-invite-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesCheckChatInviteRequest 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. (*MessagesCheckChatInviteRequest) Zero() bool *MessagesCheckChatInviteRequest : github.com/gotd/td/bin.BareDecoder *MessagesCheckChatInviteRequest : github.com/gotd/td/bin.BareEncoder *MessagesCheckChatInviteRequest : github.com/gotd/td/bin.Decoder *MessagesCheckChatInviteRequest : github.com/gotd/td/bin.Encoder *MessagesCheckChatInviteRequest : github.com/gotd/td/bin.Object *MessagesCheckChatInviteRequest : github.com/gotd/td/tdp.Object *MessagesCheckChatInviteRequest : fmt.Stringer
MessagesCheckedHistoryImportPeer represents TL type `messages.checkedHistoryImportPeer#a24de717`. Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info »¹. Links: 1. https://core.telegram.org/api/import See https://core.telegram.org/constructor/messages.checkedHistoryImportPeer for reference. A confirmation text to be shown to the user, upon importing chat history »¹. Links: 1) https://core.telegram.org/api/import Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesCheckedHistoryImportPeer from given interface. GetConfirmText returns value of ConfirmText 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. (*MessagesCheckedHistoryImportPeer) Zero() bool *MessagesCheckedHistoryImportPeer : github.com/gotd/td/bin.BareDecoder *MessagesCheckedHistoryImportPeer : github.com/gotd/td/bin.BareEncoder *MessagesCheckedHistoryImportPeer : github.com/gotd/td/bin.Decoder *MessagesCheckedHistoryImportPeer : github.com/gotd/td/bin.Encoder *MessagesCheckedHistoryImportPeer : github.com/gotd/td/bin.Object *MessagesCheckedHistoryImportPeer : github.com/gotd/td/tdp.Object *MessagesCheckedHistoryImportPeer : fmt.Stringer func (*Client).MessagesCheckHistoryImportPeer(ctx context.Context, peer InputPeerClass) (*MessagesCheckedHistoryImportPeer, error)
MessagesCheckHistoryImportPeerRequest represents TL type `messages.checkHistoryImportPeer#5dc60f03`. Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info »¹. If the check succeeds, and no RPC errors are returned, a messages CheckedHistoryImportPeer¹ constructor will be returned, with a confirmation text to be shown to the user, before actually initializing the import. Links: 1. https://core.telegram.org/api/import 2. https://core.telegram.org/type/messages.CheckedHistoryImportPeer See https://core.telegram.org/method/messages.checkHistoryImportPeer for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesCheckHistoryImportPeerRequest 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. (*MessagesCheckHistoryImportPeerRequest) Zero() bool *MessagesCheckHistoryImportPeerRequest : github.com/gotd/td/bin.BareDecoder *MessagesCheckHistoryImportPeerRequest : github.com/gotd/td/bin.BareEncoder *MessagesCheckHistoryImportPeerRequest : github.com/gotd/td/bin.Decoder *MessagesCheckHistoryImportPeerRequest : github.com/gotd/td/bin.Encoder *MessagesCheckHistoryImportPeerRequest : github.com/gotd/td/bin.Object *MessagesCheckHistoryImportPeerRequest : github.com/gotd/td/tdp.Object *MessagesCheckHistoryImportPeerRequest : fmt.Stringer
MessagesCheckHistoryImportRequest represents TL type `messages.checkHistoryImport#43fe19f3`. Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats »¹. Links: 1. https://core.telegram.org/api/import See https://core.telegram.org/method/messages.checkHistoryImport for reference. Beginning of the message file; up to 100 lines. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesCheckHistoryImportRequest from given interface. GetImportHead returns value of ImportHead 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. (*MessagesCheckHistoryImportRequest) Zero() bool *MessagesCheckHistoryImportRequest : github.com/gotd/td/bin.BareDecoder *MessagesCheckHistoryImportRequest : github.com/gotd/td/bin.BareEncoder *MessagesCheckHistoryImportRequest : github.com/gotd/td/bin.Decoder *MessagesCheckHistoryImportRequest : github.com/gotd/td/bin.Encoder *MessagesCheckHistoryImportRequest : github.com/gotd/td/bin.Object *MessagesCheckHistoryImportRequest : github.com/gotd/td/tdp.Object *MessagesCheckHistoryImportRequest : fmt.Stringer
MessagesClearAllDraftsRequest represents TL type `messages.clearAllDrafts#7e58ee9c`. Clear all drafts¹. Links: 1. https://core.telegram.org/api/drafts See https://core.telegram.org/method/messages.clearAllDrafts 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. (*MessagesClearAllDraftsRequest) Zero() bool *MessagesClearAllDraftsRequest : github.com/gotd/td/bin.BareDecoder *MessagesClearAllDraftsRequest : github.com/gotd/td/bin.BareEncoder *MessagesClearAllDraftsRequest : github.com/gotd/td/bin.Decoder *MessagesClearAllDraftsRequest : github.com/gotd/td/bin.Encoder *MessagesClearAllDraftsRequest : github.com/gotd/td/bin.Object *MessagesClearAllDraftsRequest : github.com/gotd/td/tdp.Object *MessagesClearAllDraftsRequest : fmt.Stringer
MessagesClearRecentReactionsRequest represents TL type `messages.clearRecentReactions#9dfeefb4`. Clear recently used message reactions¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.clearRecentReactions 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. (*MessagesClearRecentReactionsRequest) Zero() bool *MessagesClearRecentReactionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesClearRecentReactionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesClearRecentReactionsRequest : github.com/gotd/td/bin.Decoder *MessagesClearRecentReactionsRequest : github.com/gotd/td/bin.Encoder *MessagesClearRecentReactionsRequest : github.com/gotd/td/bin.Object *MessagesClearRecentReactionsRequest : github.com/gotd/td/tdp.Object *MessagesClearRecentReactionsRequest : fmt.Stringer
MessagesClearRecentStickersRequest represents TL type `messages.clearRecentStickers#8999602d`. Clear recent stickers See https://core.telegram.org/method/messages.clearRecentStickers for reference. Set this flag to clear the list of stickers recently attached to photo or video files 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 MessagesClearRecentStickersRequest from given interface. GetAttached returns value of Attached conditional field. SetAttached sets value of Attached 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. (*MessagesClearRecentStickersRequest) Zero() bool *MessagesClearRecentStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesClearRecentStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesClearRecentStickersRequest : github.com/gotd/td/bin.Decoder *MessagesClearRecentStickersRequest : github.com/gotd/td/bin.Encoder *MessagesClearRecentStickersRequest : github.com/gotd/td/bin.Object *MessagesClearRecentStickersRequest : github.com/gotd/td/tdp.Object *MessagesClearRecentStickersRequest : fmt.Stringer func (*Client).MessagesClearRecentStickers(ctx context.Context, request *MessagesClearRecentStickersRequest) (bool, error)
MessagesCreateChatRequest represents TL type `messages.createChat#34a818`. Creates a new chat. May also return 0-N updates of type updateGroupInvitePrivacyForbidden¹: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link² can be shared with the user, instead. Links: 1. https://core.telegram.org/constructor/updateGroupInvitePrivacyForbidden 2. https://core.telegram.org/api/invites See https://core.telegram.org/method/messages.createChat for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Time-to-live of all messages that will be sent in the chat: once message.date+message ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use messages.setDefaultHistoryTTL¹ to edit this value later. Links: 1) https://core.telegram.org/method/messages.setDefaultHistoryTTL Use SetTTLPeriod and GetTTLPeriod helpers. Chat name List of user IDs to be invited Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesCreateChatRequest from given interface. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. GetTitle returns value of Title field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in InputUserClassArray helper. SetFlags sets flags for non-zero fields. SetTTLPeriod sets value of TTLPeriod 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. (*MessagesCreateChatRequest) Zero() bool *MessagesCreateChatRequest : github.com/gotd/td/bin.BareDecoder *MessagesCreateChatRequest : github.com/gotd/td/bin.BareEncoder *MessagesCreateChatRequest : github.com/gotd/td/bin.Decoder *MessagesCreateChatRequest : github.com/gotd/td/bin.Encoder *MessagesCreateChatRequest : github.com/gotd/td/bin.Object *MessagesCreateChatRequest : github.com/gotd/td/tdp.Object *MessagesCreateChatRequest : fmt.Stringer func (*Client).MessagesCreateChat(ctx context.Context, request *MessagesCreateChatRequest) (UpdatesClass, error)
MessagesDeleteChatRequest represents TL type `messages.deleteChat#5bd0ee50`. Delete a chat¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/messages.deleteChat for reference. Chat identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDeleteChatRequest from given interface. GetChatID returns value of ChatID 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. (*MessagesDeleteChatRequest) Zero() bool *MessagesDeleteChatRequest : github.com/gotd/td/bin.BareDecoder *MessagesDeleteChatRequest : github.com/gotd/td/bin.BareEncoder *MessagesDeleteChatRequest : github.com/gotd/td/bin.Decoder *MessagesDeleteChatRequest : github.com/gotd/td/bin.Encoder *MessagesDeleteChatRequest : github.com/gotd/td/bin.Object *MessagesDeleteChatRequest : github.com/gotd/td/tdp.Object *MessagesDeleteChatRequest : fmt.Stringer
MessagesDeleteChatUserRequest represents TL type `messages.deleteChatUser#a2185cab`. Deletes a user from a chat and sends a service message on it. See https://core.telegram.org/method/messages.deleteChatUser for reference. Chat ID Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Remove the entire chat history of the specified user in this chat. User ID to be deleted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDeleteChatUserRequest from given interface. GetChatID returns value of ChatID field. GetRevokeHistory returns value of RevokeHistory conditional field. GetUserID returns value of UserID field. SetFlags sets flags for non-zero fields. SetRevokeHistory sets value of RevokeHistory 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. (*MessagesDeleteChatUserRequest) Zero() bool *MessagesDeleteChatUserRequest : github.com/gotd/td/bin.BareDecoder *MessagesDeleteChatUserRequest : github.com/gotd/td/bin.BareEncoder *MessagesDeleteChatUserRequest : github.com/gotd/td/bin.Decoder *MessagesDeleteChatUserRequest : github.com/gotd/td/bin.Encoder *MessagesDeleteChatUserRequest : github.com/gotd/td/bin.Object *MessagesDeleteChatUserRequest : github.com/gotd/td/tdp.Object *MessagesDeleteChatUserRequest : fmt.Stringer func (*Client).MessagesDeleteChatUser(ctx context.Context, request *MessagesDeleteChatUserRequest) (UpdatesClass, error)
MessagesDeleteExportedChatInviteRequest represents TL type `messages.deleteExportedChatInvite#d464a42b`. Delete a chat invite See https://core.telegram.org/method/messages.deleteExportedChatInvite for reference. Invite link Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDeleteExportedChatInviteRequest from given interface. GetLink returns value of Link 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. (*MessagesDeleteExportedChatInviteRequest) Zero() bool *MessagesDeleteExportedChatInviteRequest : github.com/gotd/td/bin.BareDecoder *MessagesDeleteExportedChatInviteRequest : github.com/gotd/td/bin.BareEncoder *MessagesDeleteExportedChatInviteRequest : github.com/gotd/td/bin.Decoder *MessagesDeleteExportedChatInviteRequest : github.com/gotd/td/bin.Encoder *MessagesDeleteExportedChatInviteRequest : github.com/gotd/td/bin.Object *MessagesDeleteExportedChatInviteRequest : github.com/gotd/td/tdp.Object *MessagesDeleteExportedChatInviteRequest : fmt.Stringer func (*Client).MessagesDeleteExportedChatInvite(ctx context.Context, request *MessagesDeleteExportedChatInviteRequest) (bool, error)
MessagesDeleteHistoryRequest represents TL type `messages.deleteHistory#b08f922a`. Deletes communication history. See https://core.telegram.org/method/messages.deleteHistory for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Just clear history for the current user, without actually removing messages for every chat user Delete all messages older than this UNIX timestamp Use SetMaxDate and GetMaxDate helpers. Maximum ID of message to delete Delete all messages newer than this UNIX timestamp Use SetMinDate and GetMinDate helpers. User or chat, communication history of which will be deleted Whether to delete the message history for all chat participants Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDeleteHistoryRequest from given interface. GetJustClear returns value of JustClear conditional field. GetMaxDate returns value of MaxDate conditional field and boolean which is true if field was set. GetMaxID returns value of MaxID field. GetMinDate returns value of MinDate conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. GetRevoke returns value of Revoke conditional field. SetFlags sets flags for non-zero fields. SetJustClear sets value of JustClear conditional field. SetMaxDate sets value of MaxDate conditional field. SetMinDate sets value of MinDate conditional field. SetRevoke sets value of Revoke 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. (*MessagesDeleteHistoryRequest) Zero() bool *MessagesDeleteHistoryRequest : github.com/gotd/td/bin.BareDecoder *MessagesDeleteHistoryRequest : github.com/gotd/td/bin.BareEncoder *MessagesDeleteHistoryRequest : github.com/gotd/td/bin.Decoder *MessagesDeleteHistoryRequest : github.com/gotd/td/bin.Encoder *MessagesDeleteHistoryRequest : github.com/gotd/td/bin.Object *MessagesDeleteHistoryRequest : github.com/gotd/td/tdp.Object *MessagesDeleteHistoryRequest : fmt.Stringer func (*Client).MessagesDeleteHistory(ctx context.Context, request *MessagesDeleteHistoryRequest) (*MessagesAffectedHistory, error)
MessagesDeleteMessagesRequest represents TL type `messages.deleteMessages#e58e95d2`. Deletes messages by their identifiers. See https://core.telegram.org/method/messages.deleteMessages for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID list Whether to delete messages for all participants of the chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDeleteMessagesRequest from given interface. GetID returns value of ID field. GetRevoke returns value of Revoke conditional field. SetFlags sets flags for non-zero fields. SetRevoke sets value of Revoke 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. (*MessagesDeleteMessagesRequest) Zero() bool *MessagesDeleteMessagesRequest : github.com/gotd/td/bin.BareDecoder *MessagesDeleteMessagesRequest : github.com/gotd/td/bin.BareEncoder *MessagesDeleteMessagesRequest : github.com/gotd/td/bin.Decoder *MessagesDeleteMessagesRequest : github.com/gotd/td/bin.Encoder *MessagesDeleteMessagesRequest : github.com/gotd/td/bin.Object *MessagesDeleteMessagesRequest : github.com/gotd/td/tdp.Object *MessagesDeleteMessagesRequest : fmt.Stringer func (*Client).MessagesDeleteMessages(ctx context.Context, request *MessagesDeleteMessagesRequest) (*MessagesAffectedMessages, error)
MessagesDeletePhoneCallHistoryRequest represents TL type `messages.deletePhoneCallHistory#f9cbe409`. Delete the entire phone call history. See https://core.telegram.org/method/messages.deletePhoneCallHistory for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to remove phone call history for participants as well Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDeletePhoneCallHistoryRequest from given interface. GetRevoke returns value of Revoke conditional field. SetFlags sets flags for non-zero fields. SetRevoke sets value of Revoke 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. (*MessagesDeletePhoneCallHistoryRequest) Zero() bool *MessagesDeletePhoneCallHistoryRequest : github.com/gotd/td/bin.BareDecoder *MessagesDeletePhoneCallHistoryRequest : github.com/gotd/td/bin.BareEncoder *MessagesDeletePhoneCallHistoryRequest : github.com/gotd/td/bin.Decoder *MessagesDeletePhoneCallHistoryRequest : github.com/gotd/td/bin.Encoder *MessagesDeletePhoneCallHistoryRequest : github.com/gotd/td/bin.Object *MessagesDeletePhoneCallHistoryRequest : github.com/gotd/td/tdp.Object *MessagesDeletePhoneCallHistoryRequest : fmt.Stringer func (*Client).MessagesDeletePhoneCallHistory(ctx context.Context, request *MessagesDeletePhoneCallHistoryRequest) (*MessagesAffectedFoundMessages, error)
MessagesDeleteRevokedExportedChatInvitesRequest represents TL type `messages.deleteRevokedExportedChatInvites#56987bd5`. Delete all revoked chat invites See https://core.telegram.org/method/messages.deleteRevokedExportedChatInvites for reference. ID of the admin that originally generated the revoked chat invites Chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDeleteRevokedExportedChatInvitesRequest from given interface. GetAdminID returns value of AdminID 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. (*MessagesDeleteRevokedExportedChatInvitesRequest) Zero() bool *MessagesDeleteRevokedExportedChatInvitesRequest : github.com/gotd/td/bin.BareDecoder *MessagesDeleteRevokedExportedChatInvitesRequest : github.com/gotd/td/bin.BareEncoder *MessagesDeleteRevokedExportedChatInvitesRequest : github.com/gotd/td/bin.Decoder *MessagesDeleteRevokedExportedChatInvitesRequest : github.com/gotd/td/bin.Encoder *MessagesDeleteRevokedExportedChatInvitesRequest : github.com/gotd/td/bin.Object *MessagesDeleteRevokedExportedChatInvitesRequest : github.com/gotd/td/tdp.Object *MessagesDeleteRevokedExportedChatInvitesRequest : fmt.Stringer func (*Client).MessagesDeleteRevokedExportedChatInvites(ctx context.Context, request *MessagesDeleteRevokedExportedChatInvitesRequest) (bool, error)
MessagesDeleteScheduledMessagesRequest represents TL type `messages.deleteScheduledMessages#59ae2b16`. Delete scheduled messages See https://core.telegram.org/method/messages.deleteScheduledMessages for reference. Scheduled message IDs Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDeleteScheduledMessagesRequest from given interface. GetID returns value of ID 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. (*MessagesDeleteScheduledMessagesRequest) Zero() bool *MessagesDeleteScheduledMessagesRequest : github.com/gotd/td/bin.BareDecoder *MessagesDeleteScheduledMessagesRequest : github.com/gotd/td/bin.BareEncoder *MessagesDeleteScheduledMessagesRequest : github.com/gotd/td/bin.Decoder *MessagesDeleteScheduledMessagesRequest : github.com/gotd/td/bin.Encoder *MessagesDeleteScheduledMessagesRequest : github.com/gotd/td/bin.Object *MessagesDeleteScheduledMessagesRequest : github.com/gotd/td/tdp.Object *MessagesDeleteScheduledMessagesRequest : fmt.Stringer func (*Client).MessagesDeleteScheduledMessages(ctx context.Context, request *MessagesDeleteScheduledMessagesRequest) (UpdatesClass, error)
MessagesDhConfig represents TL type `messages.dhConfig#2c221edd`. New set of configuring parameters. See https://core.telegram.org/constructor/messages.dhConfig for reference. New value prime, see Wikipedia¹ Links: 1) https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange New value primitive root, see Wikipedia¹ Links: 1) https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange Random sequence of bytes of assigned length Version of set of parameters AsModified tries to map MessagesDhConfig to MessagesDhConfig. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDhConfig from given interface. GetG returns value of G field. GetP returns value of P field. GetRandom returns value of Random field. GetVersion returns value of Version 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. (*MessagesDhConfig) Zero() bool *MessagesDhConfig : MessagesDhConfigClass *MessagesDhConfig : github.com/gotd/td/bin.BareDecoder *MessagesDhConfig : github.com/gotd/td/bin.BareEncoder *MessagesDhConfig : github.com/gotd/td/bin.Decoder *MessagesDhConfig : github.com/gotd/td/bin.Encoder *MessagesDhConfig : github.com/gotd/td/bin.Object *MessagesDhConfig : github.com/gotd/td/tdp.Object *MessagesDhConfig : fmt.Stringer func (*MessagesDhConfig).AsModified() (*MessagesDhConfig, bool) func MessagesDhConfigArray.First() (v MessagesDhConfig, ok bool) func MessagesDhConfigArray.Last() (v MessagesDhConfig, ok bool) func (*MessagesDhConfigArray).Pop() (v MessagesDhConfig, ok bool) func (*MessagesDhConfigArray).PopFirst() (v MessagesDhConfig, ok bool) func MessagesDhConfigClass.AsModified() (*MessagesDhConfig, bool) func MessagesDhConfigClassArray.AppendOnlyModified(to []*MessagesDhConfig) []*MessagesDhConfig func MessagesDhConfigClassArray.AsModified() (to []*MessagesDhConfig) func MessagesDhConfigClassArray.FirstAsModified() (v *MessagesDhConfig, ok bool) func MessagesDhConfigClassArray.LastAsModified() (v *MessagesDhConfig, ok bool) func (*MessagesDhConfigClassArray).PopAsModified() (v *MessagesDhConfig, ok bool) func (*MessagesDhConfigClassArray).PopFirstAsModified() (v *MessagesDhConfig, ok bool) func (*MessagesDhConfigNotModified).AsModified() (*MessagesDhConfig, bool) func MessagesDhConfigClassArray.AppendOnlyModified(to []*MessagesDhConfig) []*MessagesDhConfig
MessagesDhConfigArray is adapter for slice of MessagesDhConfig. 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 MessagesDhConfig. Sort sorts slice of MessagesDhConfig. SortStable sorts slice of MessagesDhConfig. func MessagesDhConfigArray.Retain(keep func(x MessagesDhConfig) bool) MessagesDhConfigArray func MessagesDhConfigArray.Sort(less func(a, b MessagesDhConfig) bool) MessagesDhConfigArray func MessagesDhConfigArray.SortStable(less func(a, b MessagesDhConfig) bool) MessagesDhConfigArray func MessagesDhConfigClassArray.AsMessagesDhConfig() (to MessagesDhConfigArray)
MessagesDhConfig boxes the MessagesDhConfigClass providing a helper. DhConfig MessagesDhConfigClass Decode implements bin.Decoder for MessagesDhConfigBox. Encode implements bin.Encode for MessagesDhConfigBox. *MessagesDhConfigBox : github.com/gotd/td/bin.Decoder *MessagesDhConfigBox : github.com/gotd/td/bin.Encoder *MessagesDhConfigBox : github.com/gotd/td/bin.Object
MessagesDhConfigClass represents messages.DhConfig generic type. See https://core.telegram.org/type/messages.DhConfig for reference. Example: g, err := tg.DecodeMessagesDhConfig(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesDhConfigNotModified: // messages.dhConfigNotModified#c0e24635 case *tg.MessagesDhConfig: // messages.dhConfig#2c221edd default: panic(v) } AsModified tries to map MessagesDhConfigClass to MessagesDhConfig. ( MessagesDhConfigClass) Decode(b *bin.Buffer) error ( MessagesDhConfigClass) DecodeBare(b *bin.Buffer) error ( MessagesDhConfigClass) Encode(b *bin.Buffer) error ( MessagesDhConfigClass) EncodeBare(b *bin.Buffer) error Random sequence of bytes of assigned length 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. *MessagesDhConfig *MessagesDhConfigNotModified MessagesDhConfigClass : github.com/gotd/td/bin.BareDecoder MessagesDhConfigClass : github.com/gotd/td/bin.BareEncoder MessagesDhConfigClass : github.com/gotd/td/bin.Decoder MessagesDhConfigClass : github.com/gotd/td/bin.Encoder MessagesDhConfigClass : github.com/gotd/td/bin.Object MessagesDhConfigClass : fmt.Stringer func DecodeMessagesDhConfig(buf *bin.Buffer) (MessagesDhConfigClass, error) func (*Client).MessagesGetDhConfig(ctx context.Context, request *MessagesGetDhConfigRequest) (MessagesDhConfigClass, error) func MessagesDhConfigClassArray.First() (v MessagesDhConfigClass, ok bool) func MessagesDhConfigClassArray.Last() (v MessagesDhConfigClass, ok bool) func (*MessagesDhConfigClassArray).Pop() (v MessagesDhConfigClass, ok bool) func (*MessagesDhConfigClassArray).PopFirst() (v MessagesDhConfigClass, ok bool)
MessagesDhConfigClassArray is adapter for slice of MessagesDhConfigClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesDhConfig returns copy with only MessagesDhConfig constructors. AsMessagesDhConfigNotModified returns copy with only MessagesDhConfigNotModified 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 MessagesDhConfigClass. Sort sorts slice of MessagesDhConfigClass. SortStable sorts slice of MessagesDhConfigClass. func MessagesDhConfigClassArray.Retain(keep func(x MessagesDhConfigClass) bool) MessagesDhConfigClassArray func MessagesDhConfigClassArray.Sort(less func(a, b MessagesDhConfigClass) bool) MessagesDhConfigClassArray func MessagesDhConfigClassArray.SortStable(less func(a, b MessagesDhConfigClass) bool) MessagesDhConfigClassArray
MessagesDhConfigNotModified represents TL type `messages.dhConfigNotModified#c0e24635`. Configuring parameters did not change. See https://core.telegram.org/constructor/messages.dhConfigNotModified for reference. Random sequence of bytes of assigned length AsModified tries to map MessagesDhConfigNotModified to MessagesDhConfig. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDhConfigNotModified from given interface. GetRandom returns value of Random 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. (*MessagesDhConfigNotModified) Zero() bool *MessagesDhConfigNotModified : MessagesDhConfigClass *MessagesDhConfigNotModified : github.com/gotd/td/bin.BareDecoder *MessagesDhConfigNotModified : github.com/gotd/td/bin.BareEncoder *MessagesDhConfigNotModified : github.com/gotd/td/bin.Decoder *MessagesDhConfigNotModified : github.com/gotd/td/bin.Encoder *MessagesDhConfigNotModified : github.com/gotd/td/bin.Object *MessagesDhConfigNotModified : github.com/gotd/td/tdp.Object *MessagesDhConfigNotModified : fmt.Stringer func MessagesDhConfigNotModifiedArray.First() (v MessagesDhConfigNotModified, ok bool) func MessagesDhConfigNotModifiedArray.Last() (v MessagesDhConfigNotModified, ok bool) func (*MessagesDhConfigNotModifiedArray).Pop() (v MessagesDhConfigNotModified, ok bool) func (*MessagesDhConfigNotModifiedArray).PopFirst() (v MessagesDhConfigNotModified, ok bool)
MessagesDhConfigNotModifiedArray is adapter for slice of MessagesDhConfigNotModified. 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 MessagesDhConfigNotModified. Sort sorts slice of MessagesDhConfigNotModified. SortStable sorts slice of MessagesDhConfigNotModified. func MessagesDhConfigClassArray.AsMessagesDhConfigNotModified() (to MessagesDhConfigNotModifiedArray) func MessagesDhConfigNotModifiedArray.Retain(keep func(x MessagesDhConfigNotModified) bool) MessagesDhConfigNotModifiedArray func MessagesDhConfigNotModifiedArray.Sort(less func(a, b MessagesDhConfigNotModified) bool) MessagesDhConfigNotModifiedArray func MessagesDhConfigNotModifiedArray.SortStable(less func(a, b MessagesDhConfigNotModified) bool) MessagesDhConfigNotModifiedArray
MessagesDialogs represents TL type `messages.dialogs#15ba6c40`. Full list of chats with messages and auxiliary data. See https://core.telegram.org/constructor/messages.dialogs for reference. List of groups mentioned in the chats List of chats List of last messages from each chat List of users mentioned in messages and groups AsModified tries to map MessagesDialogs to ModifiedMessagesDialogs. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDialogs from given interface. GetChats returns value of Chats field. GetDialogs returns value of Dialogs field. GetMessages returns value of Messages field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapDialogs returns field Dialogs wrapped in DialogClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray 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. (*MessagesDialogs) Zero() bool *MessagesDialogs : MessagesDialogsClass *MessagesDialogs : ModifiedMessagesDialogs *MessagesDialogs : github.com/gotd/td/bin.BareDecoder *MessagesDialogs : github.com/gotd/td/bin.BareEncoder *MessagesDialogs : github.com/gotd/td/bin.Decoder *MessagesDialogs : github.com/gotd/td/bin.Encoder *MessagesDialogs : github.com/gotd/td/bin.Object *MessagesDialogs : github.com/gotd/td/tdp.Object *MessagesDialogs : fmt.Stringer func MessagesDialogsArray.First() (v MessagesDialogs, ok bool) func MessagesDialogsArray.Last() (v MessagesDialogs, ok bool) func (*MessagesDialogsArray).Pop() (v MessagesDialogs, ok bool) func (*MessagesDialogsArray).PopFirst() (v MessagesDialogs, ok bool)
MessagesDialogsArray is adapter for slice of MessagesDialogs. 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 MessagesDialogs. Sort sorts slice of MessagesDialogs. SortStable sorts slice of MessagesDialogs. func MessagesDialogsArray.Retain(keep func(x MessagesDialogs) bool) MessagesDialogsArray func MessagesDialogsArray.Sort(less func(a, b MessagesDialogs) bool) MessagesDialogsArray func MessagesDialogsArray.SortStable(less func(a, b MessagesDialogs) bool) MessagesDialogsArray func MessagesDialogsClassArray.AsMessagesDialogs() (to MessagesDialogsArray)
MessagesDialogs boxes the MessagesDialogsClass providing a helper. Dialogs MessagesDialogsClass Decode implements bin.Decoder for MessagesDialogsBox. Encode implements bin.Encode for MessagesDialogsBox. *MessagesDialogsBox : github.com/gotd/td/bin.Decoder *MessagesDialogsBox : github.com/gotd/td/bin.Encoder *MessagesDialogsBox : github.com/gotd/td/bin.Object
MessagesDialogsClass represents messages.Dialogs generic type. See https://core.telegram.org/type/messages.Dialogs for reference. Example: g, err := tg.DecodeMessagesDialogs(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesDialogs: // messages.dialogs#15ba6c40 case *tg.MessagesDialogsSlice: // messages.dialogsSlice#71e094f3 case *tg.MessagesDialogsNotModified: // messages.dialogsNotModified#f0e3e596 default: panic(v) } AsModified tries to map MessagesDialogsClass to ModifiedMessagesDialogs. ( MessagesDialogsClass) Decode(b *bin.Buffer) error ( MessagesDialogsClass) DecodeBare(b *bin.Buffer) error ( MessagesDialogsClass) Encode(b *bin.Buffer) error ( MessagesDialogsClass) 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. *MessagesDialogs *MessagesDialogsNotModified *MessagesDialogsSlice MessagesDialogsClass : github.com/gotd/td/bin.BareDecoder MessagesDialogsClass : github.com/gotd/td/bin.BareEncoder MessagesDialogsClass : github.com/gotd/td/bin.Decoder MessagesDialogsClass : github.com/gotd/td/bin.Encoder MessagesDialogsClass : github.com/gotd/td/bin.Object MessagesDialogsClass : fmt.Stringer func DecodeMessagesDialogs(buf *bin.Buffer) (MessagesDialogsClass, error) func (*Client).MessagesGetDialogs(ctx context.Context, request *MessagesGetDialogsRequest) (MessagesDialogsClass, error) func MessagesDialogsClassArray.First() (v MessagesDialogsClass, ok bool) func MessagesDialogsClassArray.Last() (v MessagesDialogsClass, ok bool) func (*MessagesDialogsClassArray).Pop() (v MessagesDialogsClass, ok bool) func (*MessagesDialogsClassArray).PopFirst() (v MessagesDialogsClass, ok bool)
MessagesDialogsClassArray is adapter for slice of MessagesDialogsClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesDialogs returns copy with only MessagesDialogs constructors. AsMessagesDialogsNotModified returns copy with only MessagesDialogsNotModified constructors. AsMessagesDialogsSlice returns copy with only MessagesDialogsSlice 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 MessagesDialogsClass. Sort sorts slice of MessagesDialogsClass. SortStable sorts slice of MessagesDialogsClass. func MessagesDialogsClassArray.Retain(keep func(x MessagesDialogsClass) bool) MessagesDialogsClassArray func MessagesDialogsClassArray.Sort(less func(a, b MessagesDialogsClass) bool) MessagesDialogsClassArray func MessagesDialogsClassArray.SortStable(less func(a, b MessagesDialogsClass) bool) MessagesDialogsClassArray
MessagesDialogsNotModified represents TL type `messages.dialogsNotModified#f0e3e596`. Dialogs haven't changed See https://core.telegram.org/constructor/messages.dialogsNotModified for reference. Number of dialogs found server-side by the query AsModified tries to map MessagesDialogsNotModified to ModifiedMessagesDialogs. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDialogsNotModified from given interface. GetCount returns value of Count 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. (*MessagesDialogsNotModified) Zero() bool *MessagesDialogsNotModified : MessagesDialogsClass *MessagesDialogsNotModified : github.com/gotd/td/bin.BareDecoder *MessagesDialogsNotModified : github.com/gotd/td/bin.BareEncoder *MessagesDialogsNotModified : github.com/gotd/td/bin.Decoder *MessagesDialogsNotModified : github.com/gotd/td/bin.Encoder *MessagesDialogsNotModified : github.com/gotd/td/bin.Object *MessagesDialogsNotModified : github.com/gotd/td/tdp.Object *MessagesDialogsNotModified : fmt.Stringer func MessagesDialogsNotModifiedArray.First() (v MessagesDialogsNotModified, ok bool) func MessagesDialogsNotModifiedArray.Last() (v MessagesDialogsNotModified, ok bool) func (*MessagesDialogsNotModifiedArray).Pop() (v MessagesDialogsNotModified, ok bool) func (*MessagesDialogsNotModifiedArray).PopFirst() (v MessagesDialogsNotModified, ok bool)
MessagesDialogsNotModifiedArray is adapter for slice of MessagesDialogsNotModified. 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 MessagesDialogsNotModified. Sort sorts slice of MessagesDialogsNotModified. SortStable sorts slice of MessagesDialogsNotModified. func MessagesDialogsClassArray.AsMessagesDialogsNotModified() (to MessagesDialogsNotModifiedArray) func MessagesDialogsNotModifiedArray.Retain(keep func(x MessagesDialogsNotModified) bool) MessagesDialogsNotModifiedArray func MessagesDialogsNotModifiedArray.Sort(less func(a, b MessagesDialogsNotModified) bool) MessagesDialogsNotModifiedArray func MessagesDialogsNotModifiedArray.SortStable(less func(a, b MessagesDialogsNotModified) bool) MessagesDialogsNotModifiedArray
MessagesDialogsSlice represents TL type `messages.dialogsSlice#71e094f3`. Incomplete list of dialogs with messages and auxiliary data. See https://core.telegram.org/constructor/messages.dialogsSlice for reference. List of chats mentioned in dialogs Total number of dialogs List of dialogs List of last messages from dialogs List of users mentioned in messages and chats AsModified tries to map MessagesDialogsSlice to ModifiedMessagesDialogs. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDialogsSlice from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetDialogs returns value of Dialogs field. GetMessages returns value of Messages field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapDialogs returns field Dialogs wrapped in DialogClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray 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. (*MessagesDialogsSlice) Zero() bool *MessagesDialogsSlice : MessagesDialogsClass *MessagesDialogsSlice : ModifiedMessagesDialogs *MessagesDialogsSlice : github.com/gotd/td/bin.BareDecoder *MessagesDialogsSlice : github.com/gotd/td/bin.BareEncoder *MessagesDialogsSlice : github.com/gotd/td/bin.Decoder *MessagesDialogsSlice : github.com/gotd/td/bin.Encoder *MessagesDialogsSlice : github.com/gotd/td/bin.Object *MessagesDialogsSlice : github.com/gotd/td/tdp.Object *MessagesDialogsSlice : fmt.Stringer func MessagesDialogsSliceArray.First() (v MessagesDialogsSlice, ok bool) func MessagesDialogsSliceArray.Last() (v MessagesDialogsSlice, ok bool) func (*MessagesDialogsSliceArray).Pop() (v MessagesDialogsSlice, ok bool) func (*MessagesDialogsSliceArray).PopFirst() (v MessagesDialogsSlice, ok bool)
MessagesDialogsSliceArray is adapter for slice of MessagesDialogsSlice. 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 MessagesDialogsSlice. Sort sorts slice of MessagesDialogsSlice. SortStable sorts slice of MessagesDialogsSlice. func MessagesDialogsClassArray.AsMessagesDialogsSlice() (to MessagesDialogsSliceArray) func MessagesDialogsSliceArray.Retain(keep func(x MessagesDialogsSlice) bool) MessagesDialogsSliceArray func MessagesDialogsSliceArray.Sort(less func(a, b MessagesDialogsSlice) bool) MessagesDialogsSliceArray func MessagesDialogsSliceArray.SortStable(less func(a, b MessagesDialogsSlice) bool) MessagesDialogsSliceArray
MessagesDiscardEncryptionRequest represents TL type `messages.discardEncryption#f393aea0`. Cancels a request for creation and/or delete info on secret chat. See https://core.telegram.org/method/messages.discardEncryption for reference. Secret chat ID Whether to delete the entire chat history for the other user as well 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 MessagesDiscardEncryptionRequest from given interface. GetChatID returns value of ChatID field. GetDeleteHistory returns value of DeleteHistory conditional field. SetDeleteHistory sets value of DeleteHistory 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. (*MessagesDiscardEncryptionRequest) Zero() bool *MessagesDiscardEncryptionRequest : github.com/gotd/td/bin.BareDecoder *MessagesDiscardEncryptionRequest : github.com/gotd/td/bin.BareEncoder *MessagesDiscardEncryptionRequest : github.com/gotd/td/bin.Decoder *MessagesDiscardEncryptionRequest : github.com/gotd/td/bin.Encoder *MessagesDiscardEncryptionRequest : github.com/gotd/td/bin.Object *MessagesDiscardEncryptionRequest : github.com/gotd/td/tdp.Object *MessagesDiscardEncryptionRequest : fmt.Stringer func (*Client).MessagesDiscardEncryption(ctx context.Context, request *MessagesDiscardEncryptionRequest) (bool, error)
MessagesDiscussionMessage represents TL type `messages.discussionMessage#a6341782`. Information about a message thread¹ Links: 1. https://core.telegram.org/api/threads See https://core.telegram.org/constructor/messages.discussionMessage for reference. Chats mentioned in constructor Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID of latest reply in this thread¹ Links: 1) https://core.telegram.org/api/threads Use SetMaxID and GetMaxID helpers. The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message ID). Message ID of latest read incoming message in this thread¹ Links: 1) https://core.telegram.org/api/threads Use SetReadInboxMaxID and GetReadInboxMaxID helpers. Message ID of latest read outgoing message in this thread¹ Links: 1) https://core.telegram.org/api/threads Use SetReadOutboxMaxID and GetReadOutboxMaxID helpers. Number of unread messages Users mentioned in constructor Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesDiscussionMessage from given interface. GetChats returns value of Chats field. GetMaxID returns value of MaxID conditional field and boolean which is true if field was set. GetMessages returns value of Messages field. GetReadInboxMaxID returns value of ReadInboxMaxID conditional field and boolean which is true if field was set. GetReadOutboxMaxID returns value of ReadOutboxMaxID conditional field and boolean which is true if field was set. GetUnreadCount returns value of UnreadCount field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetMaxID sets value of MaxID conditional field. SetReadInboxMaxID sets value of ReadInboxMaxID conditional field. SetReadOutboxMaxID sets value of ReadOutboxMaxID 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. (*MessagesDiscussionMessage) Zero() bool *MessagesDiscussionMessage : github.com/gotd/td/bin.BareDecoder *MessagesDiscussionMessage : github.com/gotd/td/bin.BareEncoder *MessagesDiscussionMessage : github.com/gotd/td/bin.Decoder *MessagesDiscussionMessage : github.com/gotd/td/bin.Encoder *MessagesDiscussionMessage : github.com/gotd/td/bin.Object *MessagesDiscussionMessage : github.com/gotd/td/tdp.Object *MessagesDiscussionMessage : fmt.Stringer func (*Client).MessagesGetDiscussionMessage(ctx context.Context, request *MessagesGetDiscussionMessageRequest) (*MessagesDiscussionMessage, error)
MessagesEditChatAboutRequest represents TL type `messages.editChatAbout#def60797`. Edit the description of a group/supergroup/channel¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/messages.editChatAbout for reference. The new description The group/supergroup/channel¹. Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesEditChatAboutRequest from given interface. GetAbout returns value of About 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. (*MessagesEditChatAboutRequest) Zero() bool *MessagesEditChatAboutRequest : github.com/gotd/td/bin.BareDecoder *MessagesEditChatAboutRequest : github.com/gotd/td/bin.BareEncoder *MessagesEditChatAboutRequest : github.com/gotd/td/bin.Decoder *MessagesEditChatAboutRequest : github.com/gotd/td/bin.Encoder *MessagesEditChatAboutRequest : github.com/gotd/td/bin.Object *MessagesEditChatAboutRequest : github.com/gotd/td/tdp.Object *MessagesEditChatAboutRequest : fmt.Stringer func (*Client).MessagesEditChatAbout(ctx context.Context, request *MessagesEditChatAboutRequest) (bool, error)
MessagesEditChatAdminRequest represents TL type `messages.editChatAdmin#a85bd1c2`. Make a user admin in a basic group¹. Links: 1. https://core.telegram.org/api/channel#basic-groups See https://core.telegram.org/method/messages.editChatAdmin for reference. The ID of the group Whether to make them admin The user to make admin Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesEditChatAdminRequest from given interface. GetChatID returns value of ChatID field. GetIsAdmin returns value of IsAdmin 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. (*MessagesEditChatAdminRequest) Zero() bool *MessagesEditChatAdminRequest : github.com/gotd/td/bin.BareDecoder *MessagesEditChatAdminRequest : github.com/gotd/td/bin.BareEncoder *MessagesEditChatAdminRequest : github.com/gotd/td/bin.Decoder *MessagesEditChatAdminRequest : github.com/gotd/td/bin.Encoder *MessagesEditChatAdminRequest : github.com/gotd/td/bin.Object *MessagesEditChatAdminRequest : github.com/gotd/td/tdp.Object *MessagesEditChatAdminRequest : fmt.Stringer func (*Client).MessagesEditChatAdmin(ctx context.Context, request *MessagesEditChatAdminRequest) (bool, error)
MessagesEditChatDefaultBannedRightsRequest represents TL type `messages.editChatDefaultBannedRights#a5866b41`. Edit the default banned rights of a channel/supergroup/group¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/messages.editChatDefaultBannedRights for reference. The new global rights The peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesEditChatDefaultBannedRightsRequest from given interface. GetBannedRights returns value of BannedRights 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. (*MessagesEditChatDefaultBannedRightsRequest) Zero() bool *MessagesEditChatDefaultBannedRightsRequest : github.com/gotd/td/bin.BareDecoder *MessagesEditChatDefaultBannedRightsRequest : github.com/gotd/td/bin.BareEncoder *MessagesEditChatDefaultBannedRightsRequest : github.com/gotd/td/bin.Decoder *MessagesEditChatDefaultBannedRightsRequest : github.com/gotd/td/bin.Encoder *MessagesEditChatDefaultBannedRightsRequest : github.com/gotd/td/bin.Object *MessagesEditChatDefaultBannedRightsRequest : github.com/gotd/td/tdp.Object *MessagesEditChatDefaultBannedRightsRequest : fmt.Stringer func (*Client).MessagesEditChatDefaultBannedRights(ctx context.Context, request *MessagesEditChatDefaultBannedRightsRequest) (UpdatesClass, error)
MessagesEditChatPhotoRequest represents TL type `messages.editChatPhoto#35ddd674`. Changes chat photo and sends a service message on it See https://core.telegram.org/method/messages.editChatPhoto for reference. Chat ID Photo to be set Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesEditChatPhotoRequest from given interface. GetChatID returns value of ChatID field. GetPhoto returns value of Photo 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. (*MessagesEditChatPhotoRequest) Zero() bool *MessagesEditChatPhotoRequest : github.com/gotd/td/bin.BareDecoder *MessagesEditChatPhotoRequest : github.com/gotd/td/bin.BareEncoder *MessagesEditChatPhotoRequest : github.com/gotd/td/bin.Decoder *MessagesEditChatPhotoRequest : github.com/gotd/td/bin.Encoder *MessagesEditChatPhotoRequest : github.com/gotd/td/bin.Object *MessagesEditChatPhotoRequest : github.com/gotd/td/tdp.Object *MessagesEditChatPhotoRequest : fmt.Stringer func (*Client).MessagesEditChatPhoto(ctx context.Context, request *MessagesEditChatPhotoRequest) (UpdatesClass, error)
MessagesEditChatTitleRequest represents TL type `messages.editChatTitle#73783ffd`. Changes chat name and sends a service message on it. See https://core.telegram.org/method/messages.editChatTitle for reference. Chat ID New chat name, different from the old one Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesEditChatTitleRequest from given interface. GetChatID returns value of ChatID field. GetTitle returns value of Title 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. (*MessagesEditChatTitleRequest) Zero() bool *MessagesEditChatTitleRequest : github.com/gotd/td/bin.BareDecoder *MessagesEditChatTitleRequest : github.com/gotd/td/bin.BareEncoder *MessagesEditChatTitleRequest : github.com/gotd/td/bin.Decoder *MessagesEditChatTitleRequest : github.com/gotd/td/bin.Encoder *MessagesEditChatTitleRequest : github.com/gotd/td/bin.Object *MessagesEditChatTitleRequest : github.com/gotd/td/tdp.Object *MessagesEditChatTitleRequest : fmt.Stringer func (*Client).MessagesEditChatTitle(ctx context.Context, request *MessagesEditChatTitleRequest) (UpdatesClass, error)
MessagesEditExportedChatInviteRequest represents TL type `messages.editExportedChatInvite#bdca2f75`. Edit an exported chat invite See https://core.telegram.org/method/messages.editExportedChatInvite for reference. New expiration date Use SetExpireDate and GetExpireDate helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Invite link Chat Whether admin confirmation is required before admitting each separate user into the chat Use SetRequestNeeded and GetRequestNeeded helpers. Whether to revoke the chat invite Description of the invite link, visible only to administrators Use SetTitle and GetTitle helpers. Maximum number of users that can join using this link Use SetUsageLimit and GetUsageLimit helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesEditExportedChatInviteRequest from given interface. GetExpireDate returns value of ExpireDate conditional field and boolean which is true if field was set. GetLink returns value of Link field. GetPeer returns value of Peer field. GetRequestNeeded returns value of RequestNeeded conditional field and boolean which is true if field was set. GetRevoked returns value of Revoked conditional field. GetTitle returns value of Title conditional field and boolean which is true if field was set. GetUsageLimit returns value of UsageLimit conditional field and boolean which is true if field was set. SetExpireDate sets value of ExpireDate conditional field. SetFlags sets flags for non-zero fields. SetRequestNeeded sets value of RequestNeeded conditional field. SetRevoked sets value of Revoked conditional field. SetTitle sets value of Title conditional field. SetUsageLimit sets value of UsageLimit 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. (*MessagesEditExportedChatInviteRequest) Zero() bool *MessagesEditExportedChatInviteRequest : github.com/gotd/td/bin.BareDecoder *MessagesEditExportedChatInviteRequest : github.com/gotd/td/bin.BareEncoder *MessagesEditExportedChatInviteRequest : github.com/gotd/td/bin.Decoder *MessagesEditExportedChatInviteRequest : github.com/gotd/td/bin.Encoder *MessagesEditExportedChatInviteRequest : github.com/gotd/td/bin.Object *MessagesEditExportedChatInviteRequest : github.com/gotd/td/tdp.Object *MessagesEditExportedChatInviteRequest : fmt.Stringer func (*Client).MessagesEditExportedChatInvite(ctx context.Context, request *MessagesEditExportedChatInviteRequest) (MessagesExportedChatInviteClass, error)
MessagesEditInlineBotMessageRequest represents TL type `messages.editInlineBotMessage#83557dba`. Edit an inline bot message See https://core.telegram.org/method/messages.editInlineBotMessage 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 Sent inline message ID If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. Media Use SetMedia and GetMedia helpers. Message Use SetMessage and GetMessage helpers. Disable webpage preview Reply markup for inline keyboards Use SetReplyMarkup and GetReplyMarkup helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesEditInlineBotMessageRequest from given interface. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetID returns value of ID field. GetInvertMedia returns value of InvertMedia conditional field. GetMedia returns value of Media conditional field and boolean which is true if field was set. GetMessage returns value of Message conditional field and boolean which is true if field was set. 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. SetMedia sets value of Media conditional field. SetMessage sets value of Message 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. (*MessagesEditInlineBotMessageRequest) Zero() bool *MessagesEditInlineBotMessageRequest : github.com/gotd/td/bin.BareDecoder *MessagesEditInlineBotMessageRequest : github.com/gotd/td/bin.BareEncoder *MessagesEditInlineBotMessageRequest : github.com/gotd/td/bin.Decoder *MessagesEditInlineBotMessageRequest : github.com/gotd/td/bin.Encoder *MessagesEditInlineBotMessageRequest : github.com/gotd/td/bin.Object *MessagesEditInlineBotMessageRequest : github.com/gotd/td/tdp.Object *MessagesEditInlineBotMessageRequest : fmt.Stringer func (*Client).MessagesEditInlineBotMessage(ctx context.Context, request *MessagesEditInlineBotMessageRequest) (bool, error)
MessagesEditMessageRequest represents TL type `messages.editMessage#48f71778`. Edit message See https://core.telegram.org/method/messages.editMessage 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 ID of the message to edit If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. New attached media Use SetMedia and GetMedia helpers. New message Use SetMessage and GetMessage helpers. Disable webpage preview Where was the message sent Reply markup for inline keyboards Use SetReplyMarkup and GetReplyMarkup helpers. Scheduled message date for scheduled messages¹ Links: 1) https://core.telegram.org/api/scheduled-messages Use SetScheduleDate and GetScheduleDate helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesEditMessageRequest from given interface. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetID returns value of ID field. GetInvertMedia returns value of InvertMedia conditional field. GetMedia returns value of Media conditional field and boolean which is true if field was set. GetMessage returns value of Message conditional field and boolean which is true if field was set. GetNoWebpage returns value of NoWebpage conditional field. GetPeer returns value of Peer field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. GetScheduleDate returns value of ScheduleDate 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. SetMedia sets value of Media conditional field. SetMessage sets value of Message conditional field. SetNoWebpage sets value of NoWebpage conditional field. SetReplyMarkup sets value of ReplyMarkup conditional field. SetScheduleDate sets value of ScheduleDate 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. (*MessagesEditMessageRequest) Zero() bool *MessagesEditMessageRequest : github.com/gotd/td/bin.BareDecoder *MessagesEditMessageRequest : github.com/gotd/td/bin.BareEncoder *MessagesEditMessageRequest : github.com/gotd/td/bin.Decoder *MessagesEditMessageRequest : github.com/gotd/td/bin.Encoder *MessagesEditMessageRequest : github.com/gotd/td/bin.Object *MessagesEditMessageRequest : github.com/gotd/td/tdp.Object *MessagesEditMessageRequest : fmt.Stringer func (*Client).MessagesEditMessage(ctx context.Context, request *MessagesEditMessageRequest) (UpdatesClass, error)
MessagesEmojiGroups represents TL type `messages.emojiGroups#881fb94b`. Represents a list of emoji categories¹. Links: 1. https://core.telegram.org/api/custom-emoji#emoji-categories See https://core.telegram.org/constructor/messages.emojiGroups for reference. A list of emoji categories¹. Links: 1) https://core.telegram.org/api/custom-emoji#emoji-categories Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation AsModified tries to map MessagesEmojiGroups to MessagesEmojiGroups. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesEmojiGroups from given interface. GetGroups returns value of Groups 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. (*MessagesEmojiGroups) Zero() bool *MessagesEmojiGroups : MessagesEmojiGroupsClass *MessagesEmojiGroups : github.com/gotd/td/bin.BareDecoder *MessagesEmojiGroups : github.com/gotd/td/bin.BareEncoder *MessagesEmojiGroups : github.com/gotd/td/bin.Decoder *MessagesEmojiGroups : github.com/gotd/td/bin.Encoder *MessagesEmojiGroups : github.com/gotd/td/bin.Object *MessagesEmojiGroups : github.com/gotd/td/tdp.Object *MessagesEmojiGroups : fmt.Stringer func (*MessagesEmojiGroups).AsModified() (*MessagesEmojiGroups, bool) func MessagesEmojiGroupsArray.First() (v MessagesEmojiGroups, ok bool) func MessagesEmojiGroupsArray.Last() (v MessagesEmojiGroups, ok bool) func (*MessagesEmojiGroupsArray).Pop() (v MessagesEmojiGroups, ok bool) func (*MessagesEmojiGroupsArray).PopFirst() (v MessagesEmojiGroups, ok bool) func MessagesEmojiGroupsClass.AsModified() (*MessagesEmojiGroups, bool) func MessagesEmojiGroupsClassArray.AppendOnlyModified(to []*MessagesEmojiGroups) []*MessagesEmojiGroups func MessagesEmojiGroupsClassArray.AsModified() (to []*MessagesEmojiGroups) func MessagesEmojiGroupsClassArray.FirstAsModified() (v *MessagesEmojiGroups, ok bool) func MessagesEmojiGroupsClassArray.LastAsModified() (v *MessagesEmojiGroups, ok bool) func (*MessagesEmojiGroupsClassArray).PopAsModified() (v *MessagesEmojiGroups, ok bool) func (*MessagesEmojiGroupsClassArray).PopFirstAsModified() (v *MessagesEmojiGroups, ok bool) func (*MessagesEmojiGroupsNotModified).AsModified() (*MessagesEmojiGroups, bool) func MessagesEmojiGroupsClassArray.AppendOnlyModified(to []*MessagesEmojiGroups) []*MessagesEmojiGroups
MessagesEmojiGroupsArray is adapter for slice of MessagesEmojiGroups. 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 MessagesEmojiGroups. Sort sorts slice of MessagesEmojiGroups. SortStable sorts slice of MessagesEmojiGroups. func MessagesEmojiGroupsArray.Retain(keep func(x MessagesEmojiGroups) bool) MessagesEmojiGroupsArray func MessagesEmojiGroupsArray.Sort(less func(a, b MessagesEmojiGroups) bool) MessagesEmojiGroupsArray func MessagesEmojiGroupsArray.SortStable(less func(a, b MessagesEmojiGroups) bool) MessagesEmojiGroupsArray func MessagesEmojiGroupsClassArray.AsMessagesEmojiGroups() (to MessagesEmojiGroupsArray)
MessagesEmojiGroups boxes the MessagesEmojiGroupsClass providing a helper. EmojiGroups MessagesEmojiGroupsClass Decode implements bin.Decoder for MessagesEmojiGroupsBox. Encode implements bin.Encode for MessagesEmojiGroupsBox. *MessagesEmojiGroupsBox : github.com/gotd/td/bin.Decoder *MessagesEmojiGroupsBox : github.com/gotd/td/bin.Encoder *MessagesEmojiGroupsBox : github.com/gotd/td/bin.Object
MessagesEmojiGroupsClass represents messages.EmojiGroups generic type. See https://core.telegram.org/type/messages.EmojiGroups for reference. Example: g, err := tg.DecodeMessagesEmojiGroups(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesEmojiGroupsNotModified: // messages.emojiGroupsNotModified#6fb4ad87 case *tg.MessagesEmojiGroups: // messages.emojiGroups#881fb94b default: panic(v) } AsModified tries to map MessagesEmojiGroupsClass to MessagesEmojiGroups. ( MessagesEmojiGroupsClass) Decode(b *bin.Buffer) error ( MessagesEmojiGroupsClass) DecodeBare(b *bin.Buffer) error ( MessagesEmojiGroupsClass) Encode(b *bin.Buffer) error ( MessagesEmojiGroupsClass) 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. *MessagesEmojiGroups *MessagesEmojiGroupsNotModified MessagesEmojiGroupsClass : github.com/gotd/td/bin.BareDecoder MessagesEmojiGroupsClass : github.com/gotd/td/bin.BareEncoder MessagesEmojiGroupsClass : github.com/gotd/td/bin.Decoder MessagesEmojiGroupsClass : github.com/gotd/td/bin.Encoder MessagesEmojiGroupsClass : github.com/gotd/td/bin.Object MessagesEmojiGroupsClass : fmt.Stringer func DecodeMessagesEmojiGroups(buf *bin.Buffer) (MessagesEmojiGroupsClass, error) func (*Client).MessagesGetEmojiGroups(ctx context.Context, hash int) (MessagesEmojiGroupsClass, error) func (*Client).MessagesGetEmojiProfilePhotoGroups(ctx context.Context, hash int) (MessagesEmojiGroupsClass, error) func (*Client).MessagesGetEmojiStatusGroups(ctx context.Context, hash int) (MessagesEmojiGroupsClass, error) func MessagesEmojiGroupsClassArray.First() (v MessagesEmojiGroupsClass, ok bool) func MessagesEmojiGroupsClassArray.Last() (v MessagesEmojiGroupsClass, ok bool) func (*MessagesEmojiGroupsClassArray).Pop() (v MessagesEmojiGroupsClass, ok bool) func (*MessagesEmojiGroupsClassArray).PopFirst() (v MessagesEmojiGroupsClass, ok bool)
MessagesEmojiGroupsClassArray is adapter for slice of MessagesEmojiGroupsClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesEmojiGroups returns copy with only MessagesEmojiGroups 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 MessagesEmojiGroupsClass. Sort sorts slice of MessagesEmojiGroupsClass. SortStable sorts slice of MessagesEmojiGroupsClass. func MessagesEmojiGroupsClassArray.Retain(keep func(x MessagesEmojiGroupsClass) bool) MessagesEmojiGroupsClassArray func MessagesEmojiGroupsClassArray.Sort(less func(a, b MessagesEmojiGroupsClass) bool) MessagesEmojiGroupsClassArray func MessagesEmojiGroupsClassArray.SortStable(less func(a, b MessagesEmojiGroupsClass) bool) MessagesEmojiGroupsClassArray
MessagesEmojiGroupsNotModified represents TL type `messages.emojiGroupsNotModified#6fb4ad87`. The list of emoji categories¹ hasn't changed. Links: 1. https://core.telegram.org/api/custom-emoji#emoji-categories See https://core.telegram.org/constructor/messages.emojiGroupsNotModified for reference. AsModified tries to map MessagesEmojiGroupsNotModified to MessagesEmojiGroups. 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. (*MessagesEmojiGroupsNotModified) Zero() bool *MessagesEmojiGroupsNotModified : MessagesEmojiGroupsClass *MessagesEmojiGroupsNotModified : github.com/gotd/td/bin.BareDecoder *MessagesEmojiGroupsNotModified : github.com/gotd/td/bin.BareEncoder *MessagesEmojiGroupsNotModified : github.com/gotd/td/bin.Decoder *MessagesEmojiGroupsNotModified : github.com/gotd/td/bin.Encoder *MessagesEmojiGroupsNotModified : github.com/gotd/td/bin.Object *MessagesEmojiGroupsNotModified : github.com/gotd/td/tdp.Object *MessagesEmojiGroupsNotModified : fmt.Stringer
MessageService represents TL type `messageService#2b085862`. Indicates a service message See https://core.telegram.org/constructor/messageService for reference. Event connected with the service message Message date Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of the sender of this message Use SetFromID and GetFromID helpers. Message ID This is a legacy message: it has to be refetched with the new layer Whether the message contains unread media Whether we were mentioned in the message Whether the message is outgoing Sender of service message Whether it's a channel post Reply (thread) information Use SetReplyTo and GetReplyTo helpers. Whether the message is silent Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. Use SetTTLPeriod and GetTTLPeriod helpers. AsNotEmpty tries to map MessageService to NotEmptyMessage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageService from given interface. GetAction returns value of Action field. GetDate returns value of Date field. GetFromID returns value of FromID conditional field and boolean which is true if field was set. GetID returns value of ID field. GetLegacy returns value of Legacy conditional field. GetMediaUnread returns value of MediaUnread conditional field. GetMentioned returns value of Mentioned conditional field. GetOut returns value of Out conditional field. GetPeerID returns value of PeerID field. GetPost returns value of Post conditional field. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetFromID sets value of FromID conditional field. SetLegacy sets value of Legacy conditional field. SetMediaUnread sets value of MediaUnread conditional field. SetMentioned sets value of Mentioned conditional field. SetOut sets value of Out conditional field. SetPost sets value of Post conditional field. SetReplyTo sets value of ReplyTo conditional field. SetSilent sets value of Silent conditional field. SetTTLPeriod sets value of TTLPeriod 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. (*MessageService) Zero() bool *MessageService : MessageClass *MessageService : NotEmptyMessage *MessageService : github.com/gotd/td/bin.BareDecoder *MessageService : github.com/gotd/td/bin.BareEncoder *MessageService : github.com/gotd/td/bin.Decoder *MessageService : github.com/gotd/td/bin.Encoder *MessageService : github.com/gotd/td/bin.Object *MessageService : github.com/gotd/td/tdp.Object *MessageService : fmt.Stringer func MessageClassArray.MessageServiceToMap() map[int]*MessageService func MessageServiceArray.First() (v MessageService, ok bool) func MessageServiceArray.Last() (v MessageService, ok bool) func (*MessageServiceArray).Pop() (v MessageService, ok bool) func (*MessageServiceArray).PopFirst() (v MessageService, ok bool) func MessageServiceArray.ToMap() map[int]MessageService func MessageClassArray.FillMessageServiceMap(to map[int]*MessageService) func MessageServiceArray.FillMap(to map[int]MessageService)
MessageServiceArray is adapter for slice of MessageService. 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 MessageService. Sort sorts slice of MessageService. SortByDate sorts slice of MessageService by Date. SortByID sorts slice of MessageService by ID. SortStable sorts slice of MessageService. SortStableByDate sorts slice of MessageService by Date. SortStableByID sorts slice of MessageService by ID. ToMap collects constructors to map. func MessageClassArray.AsMessageService() (to MessageServiceArray) func MessageServiceArray.Retain(keep func(x MessageService) bool) MessageServiceArray func MessageServiceArray.Sort(less func(a, b MessageService) bool) MessageServiceArray func MessageServiceArray.SortByDate() MessageServiceArray func MessageServiceArray.SortByID() MessageServiceArray func MessageServiceArray.SortStable(less func(a, b MessageService) bool) MessageServiceArray func MessageServiceArray.SortStableByDate() MessageServiceArray func MessageServiceArray.SortStableByID() MessageServiceArray
MessagesExportChatInviteRequest represents TL type `messages.exportChatInvite#a02ce5d5`. Export an invite link for a chat See https://core.telegram.org/method/messages.exportChatInvite for reference. Expiration date Use SetExpireDate and GetExpireDate helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients. Chat Whether admin confirmation is required before admitting each separate user into the chat Description of the invite link, visible only to administrators Use SetTitle and GetTitle helpers. Maximum number of users that can join using this link Use SetUsageLimit and GetUsageLimit helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesExportChatInviteRequest from given interface. GetExpireDate returns value of ExpireDate conditional field and boolean which is true if field was set. GetLegacyRevokePermanent returns value of LegacyRevokePermanent conditional field. GetPeer returns value of Peer field. GetRequestNeeded returns value of RequestNeeded conditional field. GetTitle returns value of Title conditional field and boolean which is true if field was set. GetUsageLimit returns value of UsageLimit conditional field and boolean which is true if field was set. SetExpireDate sets value of ExpireDate conditional field. SetFlags sets flags for non-zero fields. SetLegacyRevokePermanent sets value of LegacyRevokePermanent conditional field. SetRequestNeeded sets value of RequestNeeded conditional field. SetTitle sets value of Title conditional field. SetUsageLimit sets value of UsageLimit 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. (*MessagesExportChatInviteRequest) Zero() bool *MessagesExportChatInviteRequest : github.com/gotd/td/bin.BareDecoder *MessagesExportChatInviteRequest : github.com/gotd/td/bin.BareEncoder *MessagesExportChatInviteRequest : github.com/gotd/td/bin.Decoder *MessagesExportChatInviteRequest : github.com/gotd/td/bin.Encoder *MessagesExportChatInviteRequest : github.com/gotd/td/bin.Object *MessagesExportChatInviteRequest : github.com/gotd/td/tdp.Object *MessagesExportChatInviteRequest : fmt.Stringer func (*Client).MessagesExportChatInvite(ctx context.Context, request *MessagesExportChatInviteRequest) (ExportedChatInviteClass, error)
MessagesExportedChatInvite represents TL type `messages.exportedChatInvite#1871be50`. Info about a chat invite See https://core.telegram.org/constructor/messages.exportedChatInvite for reference. Info about the chat invite Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesExportedChatInvite from given interface. GetInvite returns value of Invite 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. (*MessagesExportedChatInvite) Zero() bool *MessagesExportedChatInvite : MessagesExportedChatInviteClass *MessagesExportedChatInvite : github.com/gotd/td/bin.BareDecoder *MessagesExportedChatInvite : github.com/gotd/td/bin.BareEncoder *MessagesExportedChatInvite : github.com/gotd/td/bin.Decoder *MessagesExportedChatInvite : github.com/gotd/td/bin.Encoder *MessagesExportedChatInvite : github.com/gotd/td/bin.Object *MessagesExportedChatInvite : github.com/gotd/td/tdp.Object *MessagesExportedChatInvite : fmt.Stringer func MessagesExportedChatInviteArray.First() (v MessagesExportedChatInvite, ok bool) func MessagesExportedChatInviteArray.Last() (v MessagesExportedChatInvite, ok bool) func (*MessagesExportedChatInviteArray).Pop() (v MessagesExportedChatInvite, ok bool) func (*MessagesExportedChatInviteArray).PopFirst() (v MessagesExportedChatInvite, ok bool)
MessagesExportedChatInviteArray is adapter for slice of MessagesExportedChatInvite. 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 MessagesExportedChatInvite. Sort sorts slice of MessagesExportedChatInvite. SortStable sorts slice of MessagesExportedChatInvite. func MessagesExportedChatInviteArray.Retain(keep func(x MessagesExportedChatInvite) bool) MessagesExportedChatInviteArray func MessagesExportedChatInviteArray.Sort(less func(a, b MessagesExportedChatInvite) bool) MessagesExportedChatInviteArray func MessagesExportedChatInviteArray.SortStable(less func(a, b MessagesExportedChatInvite) bool) MessagesExportedChatInviteArray func MessagesExportedChatInviteClassArray.AsMessagesExportedChatInvite() (to MessagesExportedChatInviteArray)
MessagesExportedChatInvite boxes the MessagesExportedChatInviteClass providing a helper. ExportedChatInvite MessagesExportedChatInviteClass Decode implements bin.Decoder for MessagesExportedChatInviteBox. Encode implements bin.Encode for MessagesExportedChatInviteBox. *MessagesExportedChatInviteBox : github.com/gotd/td/bin.Decoder *MessagesExportedChatInviteBox : github.com/gotd/td/bin.Encoder *MessagesExportedChatInviteBox : github.com/gotd/td/bin.Object
MessagesExportedChatInviteClass represents messages.ExportedChatInvite generic type. See https://core.telegram.org/type/messages.ExportedChatInvite for reference. Example: g, err := tg.DecodeMessagesExportedChatInvite(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesExportedChatInvite: // messages.exportedChatInvite#1871be50 case *tg.MessagesExportedChatInviteReplaced: // messages.exportedChatInviteReplaced#222600ef default: panic(v) } ( MessagesExportedChatInviteClass) Decode(b *bin.Buffer) error ( MessagesExportedChatInviteClass) DecodeBare(b *bin.Buffer) error ( MessagesExportedChatInviteClass) Encode(b *bin.Buffer) error ( MessagesExportedChatInviteClass) EncodeBare(b *bin.Buffer) error Info about the chat invite Mentioned users Mentioned users 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. *MessagesExportedChatInvite *MessagesExportedChatInviteReplaced MessagesExportedChatInviteClass : github.com/gotd/td/bin.BareDecoder MessagesExportedChatInviteClass : github.com/gotd/td/bin.BareEncoder MessagesExportedChatInviteClass : github.com/gotd/td/bin.Decoder MessagesExportedChatInviteClass : github.com/gotd/td/bin.Encoder MessagesExportedChatInviteClass : github.com/gotd/td/bin.Object MessagesExportedChatInviteClass : fmt.Stringer func DecodeMessagesExportedChatInvite(buf *bin.Buffer) (MessagesExportedChatInviteClass, error) func (*Client).MessagesEditExportedChatInvite(ctx context.Context, request *MessagesEditExportedChatInviteRequest) (MessagesExportedChatInviteClass, error) func (*Client).MessagesGetExportedChatInvite(ctx context.Context, request *MessagesGetExportedChatInviteRequest) (MessagesExportedChatInviteClass, error) func MessagesExportedChatInviteClassArray.First() (v MessagesExportedChatInviteClass, ok bool) func MessagesExportedChatInviteClassArray.Last() (v MessagesExportedChatInviteClass, ok bool) func (*MessagesExportedChatInviteClassArray).Pop() (v MessagesExportedChatInviteClass, ok bool) func (*MessagesExportedChatInviteClassArray).PopFirst() (v MessagesExportedChatInviteClass, ok bool)
MessagesExportedChatInviteClassArray is adapter for slice of MessagesExportedChatInviteClass. AsMessagesExportedChatInvite returns copy with only MessagesExportedChatInvite constructors. AsMessagesExportedChatInviteReplaced returns copy with only MessagesExportedChatInviteReplaced 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 MessagesExportedChatInviteClass. Sort sorts slice of MessagesExportedChatInviteClass. SortStable sorts slice of MessagesExportedChatInviteClass. func MessagesExportedChatInviteClassArray.Retain(keep func(x MessagesExportedChatInviteClass) bool) MessagesExportedChatInviteClassArray func MessagesExportedChatInviteClassArray.Sort(less func(a, b MessagesExportedChatInviteClass) bool) MessagesExportedChatInviteClassArray func MessagesExportedChatInviteClassArray.SortStable(less func(a, b MessagesExportedChatInviteClass) bool) MessagesExportedChatInviteClassArray
MessagesExportedChatInviteReplaced represents TL type `messages.exportedChatInviteReplaced#222600ef`. The specified chat invite was replaced with another one See https://core.telegram.org/constructor/messages.exportedChatInviteReplaced for reference. The replaced chat invite The invite that replaces the previous invite Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesExportedChatInviteReplaced from given interface. GetInvite returns value of Invite field. GetNewInvite returns value of NewInvite 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. (*MessagesExportedChatInviteReplaced) Zero() bool *MessagesExportedChatInviteReplaced : MessagesExportedChatInviteClass *MessagesExportedChatInviteReplaced : github.com/gotd/td/bin.BareDecoder *MessagesExportedChatInviteReplaced : github.com/gotd/td/bin.BareEncoder *MessagesExportedChatInviteReplaced : github.com/gotd/td/bin.Decoder *MessagesExportedChatInviteReplaced : github.com/gotd/td/bin.Encoder *MessagesExportedChatInviteReplaced : github.com/gotd/td/bin.Object *MessagesExportedChatInviteReplaced : github.com/gotd/td/tdp.Object *MessagesExportedChatInviteReplaced : fmt.Stringer func MessagesExportedChatInviteReplacedArray.First() (v MessagesExportedChatInviteReplaced, ok bool) func MessagesExportedChatInviteReplacedArray.Last() (v MessagesExportedChatInviteReplaced, ok bool) func (*MessagesExportedChatInviteReplacedArray).Pop() (v MessagesExportedChatInviteReplaced, ok bool) func (*MessagesExportedChatInviteReplacedArray).PopFirst() (v MessagesExportedChatInviteReplaced, ok bool)
MessagesExportedChatInviteReplacedArray is adapter for slice of MessagesExportedChatInviteReplaced. 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 MessagesExportedChatInviteReplaced. Sort sorts slice of MessagesExportedChatInviteReplaced. SortStable sorts slice of MessagesExportedChatInviteReplaced. func MessagesExportedChatInviteClassArray.AsMessagesExportedChatInviteReplaced() (to MessagesExportedChatInviteReplacedArray) func MessagesExportedChatInviteReplacedArray.Retain(keep func(x MessagesExportedChatInviteReplaced) bool) MessagesExportedChatInviteReplacedArray func MessagesExportedChatInviteReplacedArray.Sort(less func(a, b MessagesExportedChatInviteReplaced) bool) MessagesExportedChatInviteReplacedArray func MessagesExportedChatInviteReplacedArray.SortStable(less func(a, b MessagesExportedChatInviteReplaced) bool) MessagesExportedChatInviteReplacedArray
MessagesExportedChatInvites represents TL type `messages.exportedChatInvites#bdc62dcc`. Info about chat invites exported by a certain admin. See https://core.telegram.org/constructor/messages.exportedChatInvites for reference. Number of invites exported by the admin Exported invites Info about the admin Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesExportedChatInvites from given interface. GetCount returns value of Count field. GetInvites returns value of Invites field. GetUsers returns value of Users field. MapInvites returns field Invites wrapped in ExportedChatInviteClassArray 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. (*MessagesExportedChatInvites) Zero() bool *MessagesExportedChatInvites : github.com/gotd/td/bin.BareDecoder *MessagesExportedChatInvites : github.com/gotd/td/bin.BareEncoder *MessagesExportedChatInvites : github.com/gotd/td/bin.Decoder *MessagesExportedChatInvites : github.com/gotd/td/bin.Encoder *MessagesExportedChatInvites : github.com/gotd/td/bin.Object *MessagesExportedChatInvites : github.com/gotd/td/tdp.Object *MessagesExportedChatInvites : fmt.Stringer func (*Client).MessagesGetExportedChatInvites(ctx context.Context, request *MessagesGetExportedChatInvitesRequest) (*MessagesExportedChatInvites, error)
MessagesFavedStickers represents TL type `messages.favedStickers#2cb51097`. Favorited stickers See https://core.telegram.org/constructor/messages.favedStickers for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Emojis associated to stickers Favorited stickers AsModified tries to map MessagesFavedStickers to MessagesFavedStickers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesFavedStickers from given interface. GetHash returns value of Hash field. GetPacks returns value of Packs field. GetStickers returns value of Stickers field. MapStickers returns field Stickers 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. (*MessagesFavedStickers) Zero() bool *MessagesFavedStickers : MessagesFavedStickersClass *MessagesFavedStickers : github.com/gotd/td/bin.BareDecoder *MessagesFavedStickers : github.com/gotd/td/bin.BareEncoder *MessagesFavedStickers : github.com/gotd/td/bin.Decoder *MessagesFavedStickers : github.com/gotd/td/bin.Encoder *MessagesFavedStickers : github.com/gotd/td/bin.Object *MessagesFavedStickers : github.com/gotd/td/tdp.Object *MessagesFavedStickers : fmt.Stringer func (*MessagesFavedStickers).AsModified() (*MessagesFavedStickers, bool) func MessagesFavedStickersArray.First() (v MessagesFavedStickers, ok bool) func MessagesFavedStickersArray.Last() (v MessagesFavedStickers, ok bool) func (*MessagesFavedStickersArray).Pop() (v MessagesFavedStickers, ok bool) func (*MessagesFavedStickersArray).PopFirst() (v MessagesFavedStickers, ok bool) func MessagesFavedStickersClass.AsModified() (*MessagesFavedStickers, bool) func MessagesFavedStickersClassArray.AppendOnlyModified(to []*MessagesFavedStickers) []*MessagesFavedStickers func MessagesFavedStickersClassArray.AsModified() (to []*MessagesFavedStickers) func MessagesFavedStickersClassArray.FirstAsModified() (v *MessagesFavedStickers, ok bool) func MessagesFavedStickersClassArray.LastAsModified() (v *MessagesFavedStickers, ok bool) func (*MessagesFavedStickersClassArray).PopAsModified() (v *MessagesFavedStickers, ok bool) func (*MessagesFavedStickersClassArray).PopFirstAsModified() (v *MessagesFavedStickers, ok bool) func (*MessagesFavedStickersNotModified).AsModified() (*MessagesFavedStickers, bool) func MessagesFavedStickersClassArray.AppendOnlyModified(to []*MessagesFavedStickers) []*MessagesFavedStickers
MessagesFavedStickersArray is adapter for slice of MessagesFavedStickers. 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 MessagesFavedStickers. Sort sorts slice of MessagesFavedStickers. SortStable sorts slice of MessagesFavedStickers. func MessagesFavedStickersArray.Retain(keep func(x MessagesFavedStickers) bool) MessagesFavedStickersArray func MessagesFavedStickersArray.Sort(less func(a, b MessagesFavedStickers) bool) MessagesFavedStickersArray func MessagesFavedStickersArray.SortStable(less func(a, b MessagesFavedStickers) bool) MessagesFavedStickersArray func MessagesFavedStickersClassArray.AsMessagesFavedStickers() (to MessagesFavedStickersArray)
MessagesFavedStickers boxes the MessagesFavedStickersClass providing a helper. FavedStickers MessagesFavedStickersClass Decode implements bin.Decoder for MessagesFavedStickersBox. Encode implements bin.Encode for MessagesFavedStickersBox. *MessagesFavedStickersBox : github.com/gotd/td/bin.Decoder *MessagesFavedStickersBox : github.com/gotd/td/bin.Encoder *MessagesFavedStickersBox : github.com/gotd/td/bin.Object
MessagesFavedStickersClass represents messages.FavedStickers generic type. See https://core.telegram.org/type/messages.FavedStickers for reference. Example: g, err := tg.DecodeMessagesFavedStickers(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesFavedStickersNotModified: // messages.favedStickersNotModified#9e8fa6d3 case *tg.MessagesFavedStickers: // messages.favedStickers#2cb51097 default: panic(v) } AsModified tries to map MessagesFavedStickersClass to MessagesFavedStickers. ( MessagesFavedStickersClass) Decode(b *bin.Buffer) error ( MessagesFavedStickersClass) DecodeBare(b *bin.Buffer) error ( MessagesFavedStickersClass) Encode(b *bin.Buffer) error ( MessagesFavedStickersClass) 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. *MessagesFavedStickers *MessagesFavedStickersNotModified MessagesFavedStickersClass : github.com/gotd/td/bin.BareDecoder MessagesFavedStickersClass : github.com/gotd/td/bin.BareEncoder MessagesFavedStickersClass : github.com/gotd/td/bin.Decoder MessagesFavedStickersClass : github.com/gotd/td/bin.Encoder MessagesFavedStickersClass : github.com/gotd/td/bin.Object MessagesFavedStickersClass : fmt.Stringer func DecodeMessagesFavedStickers(buf *bin.Buffer) (MessagesFavedStickersClass, error) func (*Client).MessagesGetFavedStickers(ctx context.Context, hash int64) (MessagesFavedStickersClass, error) func MessagesFavedStickersClassArray.First() (v MessagesFavedStickersClass, ok bool) func MessagesFavedStickersClassArray.Last() (v MessagesFavedStickersClass, ok bool) func (*MessagesFavedStickersClassArray).Pop() (v MessagesFavedStickersClass, ok bool) func (*MessagesFavedStickersClassArray).PopFirst() (v MessagesFavedStickersClass, ok bool)
MessagesFavedStickersClassArray is adapter for slice of MessagesFavedStickersClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesFavedStickers returns copy with only MessagesFavedStickers 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 MessagesFavedStickersClass. Sort sorts slice of MessagesFavedStickersClass. SortStable sorts slice of MessagesFavedStickersClass. func MessagesFavedStickersClassArray.Retain(keep func(x MessagesFavedStickersClass) bool) MessagesFavedStickersClassArray func MessagesFavedStickersClassArray.Sort(less func(a, b MessagesFavedStickersClass) bool) MessagesFavedStickersClassArray func MessagesFavedStickersClassArray.SortStable(less func(a, b MessagesFavedStickersClass) bool) MessagesFavedStickersClassArray
MessagesFavedStickersNotModified represents TL type `messages.favedStickersNotModified#9e8fa6d3`. No new favorited stickers were found See https://core.telegram.org/constructor/messages.favedStickersNotModified for reference. AsModified tries to map MessagesFavedStickersNotModified to MessagesFavedStickers. 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. (*MessagesFavedStickersNotModified) Zero() bool *MessagesFavedStickersNotModified : MessagesFavedStickersClass *MessagesFavedStickersNotModified : github.com/gotd/td/bin.BareDecoder *MessagesFavedStickersNotModified : github.com/gotd/td/bin.BareEncoder *MessagesFavedStickersNotModified : github.com/gotd/td/bin.Decoder *MessagesFavedStickersNotModified : github.com/gotd/td/bin.Encoder *MessagesFavedStickersNotModified : github.com/gotd/td/bin.Object *MessagesFavedStickersNotModified : github.com/gotd/td/tdp.Object *MessagesFavedStickersNotModified : fmt.Stringer
MessagesFaveStickerRequest represents TL type `messages.faveSticker#b9ffc55b`. Mark or unmark a sticker as favorite See https://core.telegram.org/method/messages.faveSticker for reference. Sticker in question Whether to add or remove a sticker from favorites Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesFaveStickerRequest from given interface. GetID returns value of ID field. GetIDAsNotEmpty returns mapped value of ID field. GetUnfave returns value of Unfave 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. (*MessagesFaveStickerRequest) Zero() bool *MessagesFaveStickerRequest : github.com/gotd/td/bin.BareDecoder *MessagesFaveStickerRequest : github.com/gotd/td/bin.BareEncoder *MessagesFaveStickerRequest : github.com/gotd/td/bin.Decoder *MessagesFaveStickerRequest : github.com/gotd/td/bin.Encoder *MessagesFaveStickerRequest : github.com/gotd/td/bin.Object *MessagesFaveStickerRequest : github.com/gotd/td/tdp.Object *MessagesFaveStickerRequest : fmt.Stringer func (*Client).MessagesFaveSticker(ctx context.Context, request *MessagesFaveStickerRequest) (bool, error)
MessagesFeaturedStickers represents TL type `messages.featuredStickers#be382906`. Featured stickersets See https://core.telegram.org/constructor/messages.featuredStickers for reference. Total number of featured stickers Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Whether this is a premium stickerset Featured stickersets IDs of new featured stickersets AsModified tries to map MessagesFeaturedStickers to MessagesFeaturedStickers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesFeaturedStickers from given interface. GetCount returns value of Count field. GetHash returns value of Hash field. GetPremium returns value of Premium conditional field. GetSets returns value of Sets field. GetUnread returns value of Unread field. MapSets returns field Sets wrapped in StickerSetCoveredClassArray helper. SetFlags sets flags for non-zero fields. 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. (*MessagesFeaturedStickers) Zero() bool *MessagesFeaturedStickers : MessagesFeaturedStickersClass *MessagesFeaturedStickers : github.com/gotd/td/bin.BareDecoder *MessagesFeaturedStickers : github.com/gotd/td/bin.BareEncoder *MessagesFeaturedStickers : github.com/gotd/td/bin.Decoder *MessagesFeaturedStickers : github.com/gotd/td/bin.Encoder *MessagesFeaturedStickers : github.com/gotd/td/bin.Object *MessagesFeaturedStickers : github.com/gotd/td/tdp.Object *MessagesFeaturedStickers : fmt.Stringer func (*MessagesFeaturedStickers).AsModified() (*MessagesFeaturedStickers, bool) func MessagesFeaturedStickersArray.First() (v MessagesFeaturedStickers, ok bool) func MessagesFeaturedStickersArray.Last() (v MessagesFeaturedStickers, ok bool) func (*MessagesFeaturedStickersArray).Pop() (v MessagesFeaturedStickers, ok bool) func (*MessagesFeaturedStickersArray).PopFirst() (v MessagesFeaturedStickers, ok bool) func MessagesFeaturedStickersClass.AsModified() (*MessagesFeaturedStickers, bool) func MessagesFeaturedStickersClassArray.AppendOnlyModified(to []*MessagesFeaturedStickers) []*MessagesFeaturedStickers func MessagesFeaturedStickersClassArray.AsModified() (to []*MessagesFeaturedStickers) func MessagesFeaturedStickersClassArray.FirstAsModified() (v *MessagesFeaturedStickers, ok bool) func MessagesFeaturedStickersClassArray.LastAsModified() (v *MessagesFeaturedStickers, ok bool) func (*MessagesFeaturedStickersClassArray).PopAsModified() (v *MessagesFeaturedStickers, ok bool) func (*MessagesFeaturedStickersClassArray).PopFirstAsModified() (v *MessagesFeaturedStickers, ok bool) func (*MessagesFeaturedStickersNotModified).AsModified() (*MessagesFeaturedStickers, bool) func MessagesFeaturedStickersClassArray.AppendOnlyModified(to []*MessagesFeaturedStickers) []*MessagesFeaturedStickers
MessagesFeaturedStickersArray is adapter for slice of MessagesFeaturedStickers. 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 MessagesFeaturedStickers. Sort sorts slice of MessagesFeaturedStickers. SortStable sorts slice of MessagesFeaturedStickers. func MessagesFeaturedStickersArray.Retain(keep func(x MessagesFeaturedStickers) bool) MessagesFeaturedStickersArray func MessagesFeaturedStickersArray.Sort(less func(a, b MessagesFeaturedStickers) bool) MessagesFeaturedStickersArray func MessagesFeaturedStickersArray.SortStable(less func(a, b MessagesFeaturedStickers) bool) MessagesFeaturedStickersArray func MessagesFeaturedStickersClassArray.AsMessagesFeaturedStickers() (to MessagesFeaturedStickersArray)
MessagesFeaturedStickers boxes the MessagesFeaturedStickersClass providing a helper. FeaturedStickers MessagesFeaturedStickersClass Decode implements bin.Decoder for MessagesFeaturedStickersBox. Encode implements bin.Encode for MessagesFeaturedStickersBox. *MessagesFeaturedStickersBox : github.com/gotd/td/bin.Decoder *MessagesFeaturedStickersBox : github.com/gotd/td/bin.Encoder *MessagesFeaturedStickersBox : github.com/gotd/td/bin.Object
MessagesFeaturedStickersClass represents messages.FeaturedStickers generic type. See https://core.telegram.org/type/messages.FeaturedStickers for reference. Example: g, err := tg.DecodeMessagesFeaturedStickers(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesFeaturedStickersNotModified: // messages.featuredStickersNotModified#c6dc0c66 case *tg.MessagesFeaturedStickers: // messages.featuredStickers#be382906 default: panic(v) } AsModified tries to map MessagesFeaturedStickersClass to MessagesFeaturedStickers. ( MessagesFeaturedStickersClass) Decode(b *bin.Buffer) error ( MessagesFeaturedStickersClass) DecodeBare(b *bin.Buffer) error ( MessagesFeaturedStickersClass) Encode(b *bin.Buffer) error ( MessagesFeaturedStickersClass) EncodeBare(b *bin.Buffer) error Total number of featured stickers 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. *MessagesFeaturedStickers *MessagesFeaturedStickersNotModified MessagesFeaturedStickersClass : github.com/gotd/td/bin.BareDecoder MessagesFeaturedStickersClass : github.com/gotd/td/bin.BareEncoder MessagesFeaturedStickersClass : github.com/gotd/td/bin.Decoder MessagesFeaturedStickersClass : github.com/gotd/td/bin.Encoder MessagesFeaturedStickersClass : github.com/gotd/td/bin.Object MessagesFeaturedStickersClass : fmt.Stringer func DecodeMessagesFeaturedStickers(buf *bin.Buffer) (MessagesFeaturedStickersClass, error) func (*Client).MessagesGetFeaturedEmojiStickers(ctx context.Context, hash int64) (MessagesFeaturedStickersClass, error) func (*Client).MessagesGetFeaturedStickers(ctx context.Context, hash int64) (MessagesFeaturedStickersClass, error) func (*Client).MessagesGetOldFeaturedStickers(ctx context.Context, request *MessagesGetOldFeaturedStickersRequest) (MessagesFeaturedStickersClass, error) func MessagesFeaturedStickersClassArray.First() (v MessagesFeaturedStickersClass, ok bool) func MessagesFeaturedStickersClassArray.Last() (v MessagesFeaturedStickersClass, ok bool) func (*MessagesFeaturedStickersClassArray).Pop() (v MessagesFeaturedStickersClass, ok bool) func (*MessagesFeaturedStickersClassArray).PopFirst() (v MessagesFeaturedStickersClass, ok bool)
MessagesFeaturedStickersClassArray is adapter for slice of MessagesFeaturedStickersClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesFeaturedStickers returns copy with only MessagesFeaturedStickers constructors. AsMessagesFeaturedStickersNotModified returns copy with only MessagesFeaturedStickersNotModified 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 MessagesFeaturedStickersClass. Sort sorts slice of MessagesFeaturedStickersClass. SortStable sorts slice of MessagesFeaturedStickersClass. func MessagesFeaturedStickersClassArray.Retain(keep func(x MessagesFeaturedStickersClass) bool) MessagesFeaturedStickersClassArray func MessagesFeaturedStickersClassArray.Sort(less func(a, b MessagesFeaturedStickersClass) bool) MessagesFeaturedStickersClassArray func MessagesFeaturedStickersClassArray.SortStable(less func(a, b MessagesFeaturedStickersClass) bool) MessagesFeaturedStickersClassArray
MessagesFeaturedStickersNotModified represents TL type `messages.featuredStickersNotModified#c6dc0c66`. Featured stickers haven't changed See https://core.telegram.org/constructor/messages.featuredStickersNotModified for reference. Number of dialogs found server-side by the query AsModified tries to map MessagesFeaturedStickersNotModified to MessagesFeaturedStickers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesFeaturedStickersNotModified from given interface. GetCount returns value of Count 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. (*MessagesFeaturedStickersNotModified) Zero() bool *MessagesFeaturedStickersNotModified : MessagesFeaturedStickersClass *MessagesFeaturedStickersNotModified : github.com/gotd/td/bin.BareDecoder *MessagesFeaturedStickersNotModified : github.com/gotd/td/bin.BareEncoder *MessagesFeaturedStickersNotModified : github.com/gotd/td/bin.Decoder *MessagesFeaturedStickersNotModified : github.com/gotd/td/bin.Encoder *MessagesFeaturedStickersNotModified : github.com/gotd/td/bin.Object *MessagesFeaturedStickersNotModified : github.com/gotd/td/tdp.Object *MessagesFeaturedStickersNotModified : fmt.Stringer func MessagesFeaturedStickersNotModifiedArray.First() (v MessagesFeaturedStickersNotModified, ok bool) func MessagesFeaturedStickersNotModifiedArray.Last() (v MessagesFeaturedStickersNotModified, ok bool) func (*MessagesFeaturedStickersNotModifiedArray).Pop() (v MessagesFeaturedStickersNotModified, ok bool) func (*MessagesFeaturedStickersNotModifiedArray).PopFirst() (v MessagesFeaturedStickersNotModified, ok bool)
MessagesFeaturedStickersNotModifiedArray is adapter for slice of MessagesFeaturedStickersNotModified. 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 MessagesFeaturedStickersNotModified. Sort sorts slice of MessagesFeaturedStickersNotModified. SortStable sorts slice of MessagesFeaturedStickersNotModified. func MessagesFeaturedStickersClassArray.AsMessagesFeaturedStickersNotModified() (to MessagesFeaturedStickersNotModifiedArray) func MessagesFeaturedStickersNotModifiedArray.Retain(keep func(x MessagesFeaturedStickersNotModified) bool) MessagesFeaturedStickersNotModifiedArray func MessagesFeaturedStickersNotModifiedArray.Sort(less func(a, b MessagesFeaturedStickersNotModified) bool) MessagesFeaturedStickersNotModifiedArray func MessagesFeaturedStickersNotModifiedArray.SortStable(less func(a, b MessagesFeaturedStickersNotModified) bool) MessagesFeaturedStickersNotModifiedArray
MessagesFilter boxes the MessagesFilterClass providing a helper. MessagesFilter MessagesFilterClass Decode implements bin.Decoder for MessagesFilterBox. Encode implements bin.Encode for MessagesFilterBox. *MessagesFilterBox : github.com/gotd/td/bin.Decoder *MessagesFilterBox : github.com/gotd/td/bin.Encoder *MessagesFilterBox : github.com/gotd/td/bin.Object
MessagesFilterClass represents MessagesFilter generic type. See https://core.telegram.org/type/MessagesFilter for reference. Example: g, err := tg.DecodeMessagesFilter(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputMessagesFilterEmpty: // inputMessagesFilterEmpty#57e2f66c case *tg.InputMessagesFilterPhotos: // inputMessagesFilterPhotos#9609a51c case *tg.InputMessagesFilterVideo: // inputMessagesFilterVideo#9fc00e65 case *tg.InputMessagesFilterPhotoVideo: // inputMessagesFilterPhotoVideo#56e9f0e4 case *tg.InputMessagesFilterDocument: // inputMessagesFilterDocument#9eddf188 case *tg.InputMessagesFilterURL: // inputMessagesFilterUrl#7ef0dd87 case *tg.InputMessagesFilterGif: // inputMessagesFilterGif#ffc86587 case *tg.InputMessagesFilterVoice: // inputMessagesFilterVoice#50f5c392 case *tg.InputMessagesFilterMusic: // inputMessagesFilterMusic#3751b49e case *tg.InputMessagesFilterChatPhotos: // inputMessagesFilterChatPhotos#3a20ecb8 case *tg.InputMessagesFilterPhoneCalls: // inputMessagesFilterPhoneCalls#80c99768 case *tg.InputMessagesFilterRoundVoice: // inputMessagesFilterRoundVoice#7a7c17a4 case *tg.InputMessagesFilterRoundVideo: // inputMessagesFilterRoundVideo#b549da53 case *tg.InputMessagesFilterMyMentions: // inputMessagesFilterMyMentions#c1f8e69a case *tg.InputMessagesFilterGeo: // inputMessagesFilterGeo#e7026d0d case *tg.InputMessagesFilterContacts: // inputMessagesFilterContacts#e062db83 case *tg.InputMessagesFilterPinned: // inputMessagesFilterPinned#1bb00451 default: panic(v) } ( MessagesFilterClass) Decode(b *bin.Buffer) error ( MessagesFilterClass) DecodeBare(b *bin.Buffer) error ( MessagesFilterClass) Encode(b *bin.Buffer) error ( MessagesFilterClass) 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. *InputMessagesFilterChatPhotos *InputMessagesFilterContacts *InputMessagesFilterDocument *InputMessagesFilterEmpty *InputMessagesFilterGeo *InputMessagesFilterGif *InputMessagesFilterMusic *InputMessagesFilterMyMentions *InputMessagesFilterPhoneCalls *InputMessagesFilterPhotos *InputMessagesFilterPhotoVideo *InputMessagesFilterPinned *InputMessagesFilterRoundVideo *InputMessagesFilterRoundVoice *InputMessagesFilterURL *InputMessagesFilterVideo *InputMessagesFilterVoice MessagesFilterClass : github.com/gotd/td/bin.BareDecoder MessagesFilterClass : github.com/gotd/td/bin.BareEncoder MessagesFilterClass : github.com/gotd/td/bin.Decoder MessagesFilterClass : github.com/gotd/td/bin.Encoder MessagesFilterClass : github.com/gotd/td/bin.Object MessagesFilterClass : fmt.Stringer func DecodeMessagesFilter(buf *bin.Buffer) (MessagesFilterClass, error) func MessagesFilterClassArray.First() (v MessagesFilterClass, ok bool) func MessagesFilterClassArray.Last() (v MessagesFilterClass, ok bool) func (*MessagesFilterClassArray).Pop() (v MessagesFilterClass, ok bool) func (*MessagesFilterClassArray).PopFirst() (v MessagesFilterClass, ok bool) func (*MessagesGetSearchCountersRequest).GetFilters() (value []MessagesFilterClass) func (*MessagesGetSearchResultsCalendarRequest).GetFilter() (value MessagesFilterClass) func (*MessagesGetSearchResultsPositionsRequest).GetFilter() (value MessagesFilterClass) func (*MessagesSearchCounter).GetFilter() (value MessagesFilterClass) func (*MessagesSearchGlobalRequest).GetFilter() (value MessagesFilterClass) func (*MessagesSearchRequest).GetFilter() (value MessagesFilterClass) func (*MessagesSearchSentMediaRequest).GetFilter() (value MessagesFilterClass)
MessagesFilterClassArray is adapter for slice of MessagesFilterClass. AsInputMessagesFilterPhoneCalls returns copy with only InputMessagesFilterPhoneCalls 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 MessagesFilterClass. Sort sorts slice of MessagesFilterClass. SortStable sorts slice of MessagesFilterClass. func MessagesFilterClassArray.Retain(keep func(x MessagesFilterClass) bool) MessagesFilterClassArray func MessagesFilterClassArray.Sort(less func(a, b MessagesFilterClass) bool) MessagesFilterClassArray func MessagesFilterClassArray.SortStable(less func(a, b MessagesFilterClass) bool) MessagesFilterClassArray func (*MessagesGetSearchCountersRequest).MapFilters() (value MessagesFilterClassArray)
MessagesForumTopics represents TL type `messages.forumTopics#367617d3`. Contains information about multiple forum topics¹ Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/messages.forumTopics for reference. Related chats Total number of topics matching query; may be more than the topics contained in topics in which case pagination¹ is required. Links: 1) https://core.telegram.org/api/offsets Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Related messages (contains the messages mentioned by forumTopic¹.top_message). Links: 1) https://core.telegram.org/constructor/forumTopic Whether the returned topics are ordered by creation date; if set, pagination by offset_date should use forumTopic¹.date; otherwise topics are ordered by the last message date, so paginate by the date of the message² referenced by forumTopic³ top_message. Links: 1) https://core.telegram.org/constructor/forumTopic 2) https://core.telegram.org/type/Message 3) https://core.telegram.org/constructor/forumTopic Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Forum topics Related users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesForumTopics from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetMessages returns value of Messages field. GetOrderByCreateDate returns value of OrderByCreateDate conditional field. GetPts returns value of Pts field. GetTopics returns value of Topics field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray helper. MapTopics returns field Topics wrapped in ForumTopicClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetOrderByCreateDate sets value of OrderByCreateDate 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. (*MessagesForumTopics) Zero() bool *MessagesForumTopics : github.com/gotd/td/bin.BareDecoder *MessagesForumTopics : github.com/gotd/td/bin.BareEncoder *MessagesForumTopics : github.com/gotd/td/bin.Decoder *MessagesForumTopics : github.com/gotd/td/bin.Encoder *MessagesForumTopics : github.com/gotd/td/bin.Object *MessagesForumTopics : github.com/gotd/td/tdp.Object *MessagesForumTopics : fmt.Stringer func (*Client).ChannelsGetForumTopics(ctx context.Context, request *ChannelsGetForumTopicsRequest) (*MessagesForumTopics, error) func (*Client).ChannelsGetForumTopicsByID(ctx context.Context, request *ChannelsGetForumTopicsByIDRequest) (*MessagesForumTopics, error)
MessagesForwardMessagesRequest represents TL type `messages.forwardMessages#c661bbc4`. Forwards messages by their IDs. See https://core.telegram.org/method/messages.forwardMessages for reference. Whether to send the message in background Whether to forward messages without quoting the original author Whether to strip captions from media Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Source of messages IDs of messages Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn't have content protection¹ enabled Links: 1) https://telegram.org/blog/protected-content-delete-by-date-and-more Random ID to prevent resending of messages Scheduled message date for scheduled messages Use SetScheduleDate and GetScheduleDate helpers. Forward the messages as the specified peer Use SetSendAs and GetSendAs helpers. Whether to send messages silently (no notification will be triggered on the destination clients) Destination peer Destination forum topic¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. When forwarding games, whether to include your score in the game Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesForwardMessagesRequest from given interface. GetBackground returns value of Background conditional field. GetDropAuthor returns value of DropAuthor conditional field. GetDropMediaCaptions returns value of DropMediaCaptions conditional field. GetFromPeer returns value of FromPeer field. GetID returns value of ID field. GetNoforwards returns value of Noforwards conditional field. GetRandomID returns value of RandomID field. GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set. GetSendAs returns value of SendAs conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. GetToPeer returns value of ToPeer field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. GetWithMyScore returns value of WithMyScore conditional field. SetBackground sets value of Background conditional field. SetDropAuthor sets value of DropAuthor conditional field. SetDropMediaCaptions sets value of DropMediaCaptions conditional field. SetFlags sets flags for non-zero fields. SetNoforwards sets value of Noforwards conditional field. SetScheduleDate sets value of ScheduleDate conditional field. SetSendAs sets value of SendAs conditional field. SetSilent sets value of Silent conditional field. SetTopMsgID sets value of TopMsgID conditional field. SetWithMyScore sets value of WithMyScore 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. (*MessagesForwardMessagesRequest) Zero() bool *MessagesForwardMessagesRequest : github.com/gotd/td/bin.BareDecoder *MessagesForwardMessagesRequest : github.com/gotd/td/bin.BareEncoder *MessagesForwardMessagesRequest : github.com/gotd/td/bin.Decoder *MessagesForwardMessagesRequest : github.com/gotd/td/bin.Encoder *MessagesForwardMessagesRequest : github.com/gotd/td/bin.Object *MessagesForwardMessagesRequest : github.com/gotd/td/tdp.Object *MessagesForwardMessagesRequest : fmt.Stringer func (*Client).MessagesForwardMessages(ctx context.Context, request *MessagesForwardMessagesRequest) (UpdatesClass, error)
MessagesFoundStickerSets represents TL type `messages.foundStickerSets#8af09dd2`. Found stickersets See https://core.telegram.org/constructor/messages.foundStickerSets for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Found stickersets AsModified tries to map MessagesFoundStickerSets to MessagesFoundStickerSets. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesFoundStickerSets from given interface. GetHash returns value of Hash field. GetSets returns value of Sets field. MapSets returns field Sets wrapped in StickerSetCoveredClassArray 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. (*MessagesFoundStickerSets) Zero() bool *MessagesFoundStickerSets : MessagesFoundStickerSetsClass *MessagesFoundStickerSets : github.com/gotd/td/bin.BareDecoder *MessagesFoundStickerSets : github.com/gotd/td/bin.BareEncoder *MessagesFoundStickerSets : github.com/gotd/td/bin.Decoder *MessagesFoundStickerSets : github.com/gotd/td/bin.Encoder *MessagesFoundStickerSets : github.com/gotd/td/bin.Object *MessagesFoundStickerSets : github.com/gotd/td/tdp.Object *MessagesFoundStickerSets : fmt.Stringer func (*MessagesFoundStickerSets).AsModified() (*MessagesFoundStickerSets, bool) func MessagesFoundStickerSetsArray.First() (v MessagesFoundStickerSets, ok bool) func MessagesFoundStickerSetsArray.Last() (v MessagesFoundStickerSets, ok bool) func (*MessagesFoundStickerSetsArray).Pop() (v MessagesFoundStickerSets, ok bool) func (*MessagesFoundStickerSetsArray).PopFirst() (v MessagesFoundStickerSets, ok bool) func MessagesFoundStickerSetsClass.AsModified() (*MessagesFoundStickerSets, bool) func MessagesFoundStickerSetsClassArray.AppendOnlyModified(to []*MessagesFoundStickerSets) []*MessagesFoundStickerSets func MessagesFoundStickerSetsClassArray.AsModified() (to []*MessagesFoundStickerSets) func MessagesFoundStickerSetsClassArray.FirstAsModified() (v *MessagesFoundStickerSets, ok bool) func MessagesFoundStickerSetsClassArray.LastAsModified() (v *MessagesFoundStickerSets, ok bool) func (*MessagesFoundStickerSetsClassArray).PopAsModified() (v *MessagesFoundStickerSets, ok bool) func (*MessagesFoundStickerSetsClassArray).PopFirstAsModified() (v *MessagesFoundStickerSets, ok bool) func (*MessagesFoundStickerSetsNotModified).AsModified() (*MessagesFoundStickerSets, bool) func MessagesFoundStickerSetsClassArray.AppendOnlyModified(to []*MessagesFoundStickerSets) []*MessagesFoundStickerSets
MessagesFoundStickerSetsArray is adapter for slice of MessagesFoundStickerSets. 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 MessagesFoundStickerSets. Sort sorts slice of MessagesFoundStickerSets. SortStable sorts slice of MessagesFoundStickerSets. func MessagesFoundStickerSetsArray.Retain(keep func(x MessagesFoundStickerSets) bool) MessagesFoundStickerSetsArray func MessagesFoundStickerSetsArray.Sort(less func(a, b MessagesFoundStickerSets) bool) MessagesFoundStickerSetsArray func MessagesFoundStickerSetsArray.SortStable(less func(a, b MessagesFoundStickerSets) bool) MessagesFoundStickerSetsArray func MessagesFoundStickerSetsClassArray.AsMessagesFoundStickerSets() (to MessagesFoundStickerSetsArray)
MessagesFoundStickerSets boxes the MessagesFoundStickerSetsClass providing a helper. FoundStickerSets MessagesFoundStickerSetsClass Decode implements bin.Decoder for MessagesFoundStickerSetsBox. Encode implements bin.Encode for MessagesFoundStickerSetsBox. *MessagesFoundStickerSetsBox : github.com/gotd/td/bin.Decoder *MessagesFoundStickerSetsBox : github.com/gotd/td/bin.Encoder *MessagesFoundStickerSetsBox : github.com/gotd/td/bin.Object
MessagesFoundStickerSetsClass represents messages.FoundStickerSets generic type. See https://core.telegram.org/type/messages.FoundStickerSets for reference. Example: g, err := tg.DecodeMessagesFoundStickerSets(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesFoundStickerSetsNotModified: // messages.foundStickerSetsNotModified#d54b65d case *tg.MessagesFoundStickerSets: // messages.foundStickerSets#8af09dd2 default: panic(v) } AsModified tries to map MessagesFoundStickerSetsClass to MessagesFoundStickerSets. ( MessagesFoundStickerSetsClass) Decode(b *bin.Buffer) error ( MessagesFoundStickerSetsClass) DecodeBare(b *bin.Buffer) error ( MessagesFoundStickerSetsClass) Encode(b *bin.Buffer) error ( MessagesFoundStickerSetsClass) 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. *MessagesFoundStickerSets *MessagesFoundStickerSetsNotModified MessagesFoundStickerSetsClass : github.com/gotd/td/bin.BareDecoder MessagesFoundStickerSetsClass : github.com/gotd/td/bin.BareEncoder MessagesFoundStickerSetsClass : github.com/gotd/td/bin.Decoder MessagesFoundStickerSetsClass : github.com/gotd/td/bin.Encoder MessagesFoundStickerSetsClass : github.com/gotd/td/bin.Object MessagesFoundStickerSetsClass : fmt.Stringer func DecodeMessagesFoundStickerSets(buf *bin.Buffer) (MessagesFoundStickerSetsClass, error) func (*Client).MessagesSearchEmojiStickerSets(ctx context.Context, request *MessagesSearchEmojiStickerSetsRequest) (MessagesFoundStickerSetsClass, error) func (*Client).MessagesSearchStickerSets(ctx context.Context, request *MessagesSearchStickerSetsRequest) (MessagesFoundStickerSetsClass, error) func MessagesFoundStickerSetsClassArray.First() (v MessagesFoundStickerSetsClass, ok bool) func MessagesFoundStickerSetsClassArray.Last() (v MessagesFoundStickerSetsClass, ok bool) func (*MessagesFoundStickerSetsClassArray).Pop() (v MessagesFoundStickerSetsClass, ok bool) func (*MessagesFoundStickerSetsClassArray).PopFirst() (v MessagesFoundStickerSetsClass, ok bool)
MessagesFoundStickerSetsClassArray is adapter for slice of MessagesFoundStickerSetsClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesFoundStickerSets returns copy with only MessagesFoundStickerSets 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 MessagesFoundStickerSetsClass. Sort sorts slice of MessagesFoundStickerSetsClass. SortStable sorts slice of MessagesFoundStickerSetsClass. func MessagesFoundStickerSetsClassArray.Retain(keep func(x MessagesFoundStickerSetsClass) bool) MessagesFoundStickerSetsClassArray func MessagesFoundStickerSetsClassArray.Sort(less func(a, b MessagesFoundStickerSetsClass) bool) MessagesFoundStickerSetsClassArray func MessagesFoundStickerSetsClassArray.SortStable(less func(a, b MessagesFoundStickerSetsClass) bool) MessagesFoundStickerSetsClassArray
MessagesFoundStickerSetsNotModified represents TL type `messages.foundStickerSetsNotModified#d54b65d`. No further results were found See https://core.telegram.org/constructor/messages.foundStickerSetsNotModified for reference. AsModified tries to map MessagesFoundStickerSetsNotModified to MessagesFoundStickerSets. 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. (*MessagesFoundStickerSetsNotModified) Zero() bool *MessagesFoundStickerSetsNotModified : MessagesFoundStickerSetsClass *MessagesFoundStickerSetsNotModified : github.com/gotd/td/bin.BareDecoder *MessagesFoundStickerSetsNotModified : github.com/gotd/td/bin.BareEncoder *MessagesFoundStickerSetsNotModified : github.com/gotd/td/bin.Decoder *MessagesFoundStickerSetsNotModified : github.com/gotd/td/bin.Encoder *MessagesFoundStickerSetsNotModified : github.com/gotd/td/bin.Object *MessagesFoundStickerSetsNotModified : github.com/gotd/td/tdp.Object *MessagesFoundStickerSetsNotModified : fmt.Stringer
MessagesGetAdminsWithInvitesRequest represents TL type `messages.getAdminsWithInvites#3920e6ef`. Get info about chat invites generated by admins. See https://core.telegram.org/method/messages.getAdminsWithInvites for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetAdminsWithInvitesRequest 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. (*MessagesGetAdminsWithInvitesRequest) Zero() bool *MessagesGetAdminsWithInvitesRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetAdminsWithInvitesRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetAdminsWithInvitesRequest : github.com/gotd/td/bin.Decoder *MessagesGetAdminsWithInvitesRequest : github.com/gotd/td/bin.Encoder *MessagesGetAdminsWithInvitesRequest : github.com/gotd/td/bin.Object *MessagesGetAdminsWithInvitesRequest : github.com/gotd/td/tdp.Object *MessagesGetAdminsWithInvitesRequest : fmt.Stringer
MessagesGetAllDraftsRequest represents TL type `messages.getAllDrafts#6a3f8d65`. Return all message drafts¹. Returns all the latest updateDraftMessage² updates related to all chats with drafts. Links: 1. https://core.telegram.org/api/drafts 2. https://core.telegram.org/constructor/updateDraftMessage See https://core.telegram.org/method/messages.getAllDrafts 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. (*MessagesGetAllDraftsRequest) Zero() bool *MessagesGetAllDraftsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetAllDraftsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetAllDraftsRequest : github.com/gotd/td/bin.Decoder *MessagesGetAllDraftsRequest : github.com/gotd/td/bin.Encoder *MessagesGetAllDraftsRequest : github.com/gotd/td/bin.Object *MessagesGetAllDraftsRequest : github.com/gotd/td/tdp.Object *MessagesGetAllDraftsRequest : fmt.Stringer
MessagesGetAllStickersRequest represents TL type `messages.getAllStickers#b8a0a1a8`. Get all installed stickers See https://core.telegram.org/method/messages.getAllStickers for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetAllStickersRequest 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. (*MessagesGetAllStickersRequest) Zero() bool *MessagesGetAllStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetAllStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetAllStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetAllStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetAllStickersRequest : github.com/gotd/td/bin.Object *MessagesGetAllStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetAllStickersRequest : fmt.Stringer
MessagesGetArchivedStickersRequest represents TL type `messages.getArchivedStickers#57f17692`. Get all archived stickers See https://core.telegram.org/method/messages.getArchivedStickers for reference. Get custom emoji stickers¹ Links: 1) https://core.telegram.org/api/custom-emoji Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Get mask stickers¹ Links: 1) https://core.telegram.org/api/stickers#mask-stickers Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetArchivedStickersRequest from given interface. GetEmojis returns value of Emojis conditional field. GetLimit returns value of Limit field. GetMasks returns value of Masks conditional field. GetOffsetID returns value of OffsetID field. SetEmojis sets value of Emojis conditional field. SetFlags sets flags for non-zero fields. SetMasks sets value of Masks 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. (*MessagesGetArchivedStickersRequest) Zero() bool *MessagesGetArchivedStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetArchivedStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetArchivedStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetArchivedStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetArchivedStickersRequest : github.com/gotd/td/bin.Object *MessagesGetArchivedStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetArchivedStickersRequest : fmt.Stringer func (*Client).MessagesGetArchivedStickers(ctx context.Context, request *MessagesGetArchivedStickersRequest) (*MessagesArchivedStickers, error)
MessagesGetAttachedStickersRequest represents TL type `messages.getAttachedStickers#cc5b67cc`. Get stickers attached to a photo or video See https://core.telegram.org/method/messages.getAttachedStickers for reference. Stickered media Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetAttachedStickersRequest from given interface. 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. (*MessagesGetAttachedStickersRequest) Zero() bool *MessagesGetAttachedStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetAttachedStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetAttachedStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetAttachedStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetAttachedStickersRequest : github.com/gotd/td/bin.Object *MessagesGetAttachedStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetAttachedStickersRequest : fmt.Stringer
MessagesGetAttachMenuBotRequest represents TL type `messages.getAttachMenuBot#77216192`. Returns attachment menu entry for 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/method/messages.getAttachMenuBot for reference. The bot Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetAttachMenuBotRequest 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. (*MessagesGetAttachMenuBotRequest) Zero() bool *MessagesGetAttachMenuBotRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetAttachMenuBotRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetAttachMenuBotRequest : github.com/gotd/td/bin.Decoder *MessagesGetAttachMenuBotRequest : github.com/gotd/td/bin.Encoder *MessagesGetAttachMenuBotRequest : github.com/gotd/td/bin.Object *MessagesGetAttachMenuBotRequest : github.com/gotd/td/tdp.Object *MessagesGetAttachMenuBotRequest : fmt.Stringer
MessagesGetAttachMenuBotsRequest represents TL type `messages.getAttachMenuBots#16fcc2cb`. Returns installed attachment menu bot mini apps »¹ Links: 1. https://core.telegram.org/api/bots/attach See https://core.telegram.org/method/messages.getAttachMenuBots for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetAttachMenuBotsRequest 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. (*MessagesGetAttachMenuBotsRequest) Zero() bool *MessagesGetAttachMenuBotsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetAttachMenuBotsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetAttachMenuBotsRequest : github.com/gotd/td/bin.Decoder *MessagesGetAttachMenuBotsRequest : github.com/gotd/td/bin.Encoder *MessagesGetAttachMenuBotsRequest : github.com/gotd/td/bin.Object *MessagesGetAttachMenuBotsRequest : github.com/gotd/td/tdp.Object *MessagesGetAttachMenuBotsRequest : fmt.Stringer
MessagesGetAvailableReactionsRequest represents TL type `messages.getAvailableReactions#18dea0ac`. Obtain available message reactions »¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.getAvailableReactions for reference. Hash for pagination, 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 MessagesGetAvailableReactionsRequest 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. (*MessagesGetAvailableReactionsRequest) Zero() bool *MessagesGetAvailableReactionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetAvailableReactionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetAvailableReactionsRequest : github.com/gotd/td/bin.Decoder *MessagesGetAvailableReactionsRequest : github.com/gotd/td/bin.Encoder *MessagesGetAvailableReactionsRequest : github.com/gotd/td/bin.Object *MessagesGetAvailableReactionsRequest : github.com/gotd/td/tdp.Object *MessagesGetAvailableReactionsRequest : fmt.Stringer
MessagesGetBotAppRequest represents TL type `messages.getBotApp#34fdc5c3`. Obtain information about a named Mini App¹ Links: 1. https://core.telegram.org/api/bots/webapps#named-mini-apps See https://core.telegram.org/method/messages.getBotApp for reference. Bot app information obtained from a named Mini App deep link »¹. Links: 1) https://core.telegram.org/api/links#named-mini-app-links Hash for pagination, 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 MessagesGetBotAppRequest from given interface. GetApp returns value of App 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. (*MessagesGetBotAppRequest) Zero() bool *MessagesGetBotAppRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetBotAppRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetBotAppRequest : github.com/gotd/td/bin.Decoder *MessagesGetBotAppRequest : github.com/gotd/td/bin.Encoder *MessagesGetBotAppRequest : github.com/gotd/td/bin.Object *MessagesGetBotAppRequest : github.com/gotd/td/tdp.Object *MessagesGetBotAppRequest : fmt.Stringer func (*Client).MessagesGetBotApp(ctx context.Context, request *MessagesGetBotAppRequest) (*MessagesBotApp, error)
MessagesGetBotCallbackAnswerRequest represents TL type `messages.getBotCallbackAnswer#9342ca07`. Press an inline callback button and get a callback answer from the bot See https://core.telegram.org/method/messages.getBotCallbackAnswer for reference. Callback data Use SetData and GetData helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this is a "play game" button ID of the Message with the inline keyboard For buttons requiring you to verify your identity with your 2FA password¹, the SRP payload generated using SRP². Links: 1) https://core.telegram.org/constructor/keyboardButtonCallback 2) https://core.telegram.org/api/srp Use SetPassword and GetPassword helpers. Where was the inline keyboard sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetBotCallbackAnswerRequest from given interface. GetData returns value of Data conditional field and boolean which is true if field was set. GetGame returns value of Game conditional field. GetMsgID returns value of MsgID field. 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. GetPeer returns value of Peer field. SetData sets value of Data conditional field. SetFlags sets flags for non-zero fields. SetGame sets value of Game conditional field. 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. (*MessagesGetBotCallbackAnswerRequest) Zero() bool *MessagesGetBotCallbackAnswerRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetBotCallbackAnswerRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetBotCallbackAnswerRequest : github.com/gotd/td/bin.Decoder *MessagesGetBotCallbackAnswerRequest : github.com/gotd/td/bin.Encoder *MessagesGetBotCallbackAnswerRequest : github.com/gotd/td/bin.Object *MessagesGetBotCallbackAnswerRequest : github.com/gotd/td/tdp.Object *MessagesGetBotCallbackAnswerRequest : fmt.Stringer func (*Client).MessagesGetBotCallbackAnswer(ctx context.Context, request *MessagesGetBotCallbackAnswerRequest) (*MessagesBotCallbackAnswer, error)
MessagesGetChatInviteImportersRequest represents TL type `messages.getChatInviteImporters#df04dd4e`. Get info about the users that joined the chat using a specific chat invite See https://core.telegram.org/method/messages.getChatInviteImporters for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Invite link Use SetLink and GetLink helpers. Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets User ID for pagination¹: if set, offset_date must also be set. Links: 1) https://core.telegram.org/api/offsets Chat Search for a user in the pending join requests »¹ list: only available when the requested flag is set, cannot be used together with a specific link. Links: 1) https://core.telegram.org/api/invites#join-requests Use SetQ and GetQ helpers. If set, only returns info about users with pending join requests »¹ Links: 1) https://core.telegram.org/api/invites#join-requests Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetChatInviteImportersRequest from given interface. GetLimit returns value of Limit field. GetLink returns value of Link conditional field and boolean which is true if field was set. GetOffsetDate returns value of OffsetDate field. GetOffsetUser returns value of OffsetUser field. GetPeer returns value of Peer field. GetQ returns value of Q conditional field and boolean which is true if field was set. GetRequested returns value of Requested conditional field. SetFlags sets flags for non-zero fields. SetLink sets value of Link conditional field. SetQ sets value of Q conditional field. SetRequested sets value of Requested 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. (*MessagesGetChatInviteImportersRequest) Zero() bool *MessagesGetChatInviteImportersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetChatInviteImportersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetChatInviteImportersRequest : github.com/gotd/td/bin.Decoder *MessagesGetChatInviteImportersRequest : github.com/gotd/td/bin.Encoder *MessagesGetChatInviteImportersRequest : github.com/gotd/td/bin.Object *MessagesGetChatInviteImportersRequest : github.com/gotd/td/tdp.Object *MessagesGetChatInviteImportersRequest : fmt.Stringer func (*Client).MessagesGetChatInviteImporters(ctx context.Context, request *MessagesGetChatInviteImportersRequest) (*MessagesChatInviteImporters, error)
MessagesGetChatsRequest represents TL type `messages.getChats#49e9528f`. Returns chat basic info on their IDs. See https://core.telegram.org/method/messages.getChats for reference. Full list of user IDs of close friends, see here¹ for more info. Links: 1) https://core.telegram.org/api/privacy Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetChatsRequest 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. (*MessagesGetChatsRequest) Zero() bool *MessagesGetChatsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetChatsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetChatsRequest : github.com/gotd/td/bin.Decoder *MessagesGetChatsRequest : github.com/gotd/td/bin.Encoder *MessagesGetChatsRequest : github.com/gotd/td/bin.Object *MessagesGetChatsRequest : github.com/gotd/td/tdp.Object *MessagesGetChatsRequest : fmt.Stringer
MessagesGetCommonChatsRequest represents TL type `messages.getCommonChats#e40ca104`. Get chats in common with a user See https://core.telegram.org/method/messages.getCommonChats for reference. Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Maximum ID of chat to return (see pagination¹) Links: 1) https://core.telegram.org/api/offsets User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetCommonChatsRequest from given interface. GetLimit returns value of Limit field. GetMaxID returns value of MaxID 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. (*MessagesGetCommonChatsRequest) Zero() bool *MessagesGetCommonChatsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetCommonChatsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetCommonChatsRequest : github.com/gotd/td/bin.Decoder *MessagesGetCommonChatsRequest : github.com/gotd/td/bin.Encoder *MessagesGetCommonChatsRequest : github.com/gotd/td/bin.Object *MessagesGetCommonChatsRequest : github.com/gotd/td/tdp.Object *MessagesGetCommonChatsRequest : fmt.Stringer func (*Client).MessagesGetCommonChats(ctx context.Context, request *MessagesGetCommonChatsRequest) (MessagesChatsClass, error)
MessagesGetCustomEmojiDocumentsRequest represents TL type `messages.getCustomEmojiDocuments#d9ab0f54`. Fetch custom emoji stickers »¹. Returns a list of documents¹ with the animated custom emoji in TGS format, and a documentAttributeCustomEmoji² attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to. Links: 1. https://core.telegram.org/api/custom-emoji 2. https://core.telegram.org/constructor/document 3. https://core.telegram.org/constructor/documentAttributeCustomEmoji See https://core.telegram.org/method/messages.getCustomEmojiDocuments for reference. Custom emoji¹ IDs from a messageEntityCustomEmoji². Links: 1) https://core.telegram.org/api/custom-emoji 2) https://core.telegram.org/constructor/messageEntityCustomEmoji Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetCustomEmojiDocumentsRequest from given interface. GetDocumentID returns value of DocumentID 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. (*MessagesGetCustomEmojiDocumentsRequest) Zero() bool *MessagesGetCustomEmojiDocumentsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetCustomEmojiDocumentsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetCustomEmojiDocumentsRequest : github.com/gotd/td/bin.Decoder *MessagesGetCustomEmojiDocumentsRequest : github.com/gotd/td/bin.Encoder *MessagesGetCustomEmojiDocumentsRequest : github.com/gotd/td/bin.Object *MessagesGetCustomEmojiDocumentsRequest : github.com/gotd/td/tdp.Object *MessagesGetCustomEmojiDocumentsRequest : fmt.Stringer
MessagesGetDefaultHistoryTTLRequest represents TL type `messages.getDefaultHistoryTTL#658b7188`. Gets the default value of the Time-To-Live setting, applied to all new chats. See https://core.telegram.org/method/messages.getDefaultHistoryTTL 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. (*MessagesGetDefaultHistoryTTLRequest) Zero() bool *MessagesGetDefaultHistoryTTLRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetDefaultHistoryTTLRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetDefaultHistoryTTLRequest : github.com/gotd/td/bin.Decoder *MessagesGetDefaultHistoryTTLRequest : github.com/gotd/td/bin.Encoder *MessagesGetDefaultHistoryTTLRequest : github.com/gotd/td/bin.Object *MessagesGetDefaultHistoryTTLRequest : github.com/gotd/td/tdp.Object *MessagesGetDefaultHistoryTTLRequest : fmt.Stringer
MessagesGetDhConfigRequest represents TL type `messages.getDhConfig#26cf8950`. Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. See https://core.telegram.org/method/messages.getDhConfig for reference. Length of the required random sequence Value of the version parameter from messages.dhConfig¹, available at the client Links: 1) https://core.telegram.org/constructor/messages.dhConfig Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetDhConfigRequest from given interface. GetRandomLength returns value of RandomLength field. GetVersion returns value of Version 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. (*MessagesGetDhConfigRequest) Zero() bool *MessagesGetDhConfigRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetDhConfigRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetDhConfigRequest : github.com/gotd/td/bin.Decoder *MessagesGetDhConfigRequest : github.com/gotd/td/bin.Encoder *MessagesGetDhConfigRequest : github.com/gotd/td/bin.Object *MessagesGetDhConfigRequest : github.com/gotd/td/tdp.Object *MessagesGetDhConfigRequest : fmt.Stringer func (*Client).MessagesGetDhConfig(ctx context.Context, request *MessagesGetDhConfigRequest) (MessagesDhConfigClass, error)
MessagesGetDialogFiltersRequest represents TL type `messages.getDialogFilters#f19ed96d`. Get folders¹ Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/method/messages.getDialogFilters 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. (*MessagesGetDialogFiltersRequest) Zero() bool *MessagesGetDialogFiltersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetDialogFiltersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetDialogFiltersRequest : github.com/gotd/td/bin.Decoder *MessagesGetDialogFiltersRequest : github.com/gotd/td/bin.Encoder *MessagesGetDialogFiltersRequest : github.com/gotd/td/bin.Object *MessagesGetDialogFiltersRequest : github.com/gotd/td/tdp.Object *MessagesGetDialogFiltersRequest : fmt.Stringer
MessagesGetDialogsRequest represents TL type `messages.getDialogs#a0f4cb4f`. Returns the current user dialog list. See https://core.telegram.org/method/messages.getDialogs for reference. Exclude pinned dialogs Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Number of list elements to be returned Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ (top_message ID used for pagination) Links: 1) https://core.telegram.org/api/offsets Offset peer for pagination¹ Links: 1) https://core.telegram.org/api/offsets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetDialogsRequest from given interface. GetExcludePinned returns value of ExcludePinned conditional field. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetHash returns value of Hash field. GetLimit returns value of Limit field. GetOffsetDate returns value of OffsetDate field. GetOffsetID returns value of OffsetID field. GetOffsetPeer returns value of OffsetPeer field. SetExcludePinned sets value of ExcludePinned conditional field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID 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. (*MessagesGetDialogsRequest) Zero() bool *MessagesGetDialogsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetDialogsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetDialogsRequest : github.com/gotd/td/bin.Decoder *MessagesGetDialogsRequest : github.com/gotd/td/bin.Encoder *MessagesGetDialogsRequest : github.com/gotd/td/bin.Object *MessagesGetDialogsRequest : github.com/gotd/td/tdp.Object *MessagesGetDialogsRequest : fmt.Stringer func (*Client).MessagesGetDialogs(ctx context.Context, request *MessagesGetDialogsRequest) (MessagesDialogsClass, error)
MessagesGetDialogUnreadMarksRequest represents TL type `messages.getDialogUnreadMarks#22e24e22`. Get dialogs manually marked as unread See https://core.telegram.org/method/messages.getDialogUnreadMarks 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. (*MessagesGetDialogUnreadMarksRequest) Zero() bool *MessagesGetDialogUnreadMarksRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetDialogUnreadMarksRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetDialogUnreadMarksRequest : github.com/gotd/td/bin.Decoder *MessagesGetDialogUnreadMarksRequest : github.com/gotd/td/bin.Encoder *MessagesGetDialogUnreadMarksRequest : github.com/gotd/td/bin.Object *MessagesGetDialogUnreadMarksRequest : github.com/gotd/td/tdp.Object *MessagesGetDialogUnreadMarksRequest : fmt.Stringer
MessagesGetDiscussionMessageRequest represents TL type `messages.getDiscussionMessage#446972fd`. Get discussion message¹ from the associated discussion group² of a channel to show it on top of the comment section, without actually joining the group Links: 1. https://core.telegram.org/api/threads 2. https://core.telegram.org/api/discussion See https://core.telegram.org/method/messages.getDiscussionMessage for reference. Message ID Chat where the invoice was sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetDiscussionMessageRequest from given interface. GetMsgID returns value of MsgID 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. (*MessagesGetDiscussionMessageRequest) Zero() bool *MessagesGetDiscussionMessageRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetDiscussionMessageRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetDiscussionMessageRequest : github.com/gotd/td/bin.Decoder *MessagesGetDiscussionMessageRequest : github.com/gotd/td/bin.Encoder *MessagesGetDiscussionMessageRequest : github.com/gotd/td/bin.Object *MessagesGetDiscussionMessageRequest : github.com/gotd/td/tdp.Object *MessagesGetDiscussionMessageRequest : fmt.Stringer func (*Client).MessagesGetDiscussionMessage(ctx context.Context, request *MessagesGetDiscussionMessageRequest) (*MessagesDiscussionMessage, error)
MessagesGetDocumentByHashRequest represents TL type `messages.getDocumentByHash#b1f2061f`. Get a document by its SHA256 hash, mainly used for gifs See https://core.telegram.org/method/messages.getDocumentByHash for reference. Mime type SHA256 of file Size of the file in bytes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetDocumentByHashRequest from given interface. GetMimeType returns value of MimeType field. GetSHA256 returns value of SHA256 field. GetSize returns value of Size 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. (*MessagesGetDocumentByHashRequest) Zero() bool *MessagesGetDocumentByHashRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetDocumentByHashRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetDocumentByHashRequest : github.com/gotd/td/bin.Decoder *MessagesGetDocumentByHashRequest : github.com/gotd/td/bin.Encoder *MessagesGetDocumentByHashRequest : github.com/gotd/td/bin.Object *MessagesGetDocumentByHashRequest : github.com/gotd/td/tdp.Object *MessagesGetDocumentByHashRequest : fmt.Stringer func (*Client).MessagesGetDocumentByHash(ctx context.Context, request *MessagesGetDocumentByHashRequest) (DocumentClass, error)
MessagesGetEmojiGroupsRequest represents TL type `messages.getEmojiGroups#7488ce5b`. Represents a list of emoji categories¹, to be used when selecting custom emojis². Links: 1. https://core.telegram.org/api/custom-emoji#emoji-categories 2. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/method/messages.getEmojiGroups for reference. Hash for pagination, 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 MessagesGetEmojiGroupsRequest 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. (*MessagesGetEmojiGroupsRequest) Zero() bool *MessagesGetEmojiGroupsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetEmojiGroupsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetEmojiGroupsRequest : github.com/gotd/td/bin.Decoder *MessagesGetEmojiGroupsRequest : github.com/gotd/td/bin.Encoder *MessagesGetEmojiGroupsRequest : github.com/gotd/td/bin.Object *MessagesGetEmojiGroupsRequest : github.com/gotd/td/tdp.Object *MessagesGetEmojiGroupsRequest : fmt.Stringer
MessagesGetEmojiKeywordsDifferenceRequest represents TL type `messages.getEmojiKeywordsDifference#1508b6af`. Get changed emoji keywords »¹. Links: 1. https://core.telegram.org/api/custom-emoji#emoji-keywords See https://core.telegram.org/method/messages.getEmojiKeywordsDifference for reference. Previous stored emoji keyword list version Language code Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetEmojiKeywordsDifferenceRequest from given interface. GetFromVersion returns value of FromVersion field. GetLangCode returns value of LangCode 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. (*MessagesGetEmojiKeywordsDifferenceRequest) Zero() bool *MessagesGetEmojiKeywordsDifferenceRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetEmojiKeywordsDifferenceRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetEmojiKeywordsDifferenceRequest : github.com/gotd/td/bin.Decoder *MessagesGetEmojiKeywordsDifferenceRequest : github.com/gotd/td/bin.Encoder *MessagesGetEmojiKeywordsDifferenceRequest : github.com/gotd/td/bin.Object *MessagesGetEmojiKeywordsDifferenceRequest : github.com/gotd/td/tdp.Object *MessagesGetEmojiKeywordsDifferenceRequest : fmt.Stringer func (*Client).MessagesGetEmojiKeywordsDifference(ctx context.Context, request *MessagesGetEmojiKeywordsDifferenceRequest) (*EmojiKeywordsDifference, error)
MessagesGetEmojiKeywordsLanguagesRequest represents TL type `messages.getEmojiKeywordsLanguages#4e9963b2`. Obtain a list of related languages that must be used when fetching emoji keyword lists »¹. Usually the method will return the passed language codes (if localized) + en + some language codes for similar languages (if applicable). Links: 1. https://core.telegram.org/api/custom-emoji#emoji-keywords See https://core.telegram.org/method/messages.getEmojiKeywordsLanguages for reference. The user's language codes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetEmojiKeywordsLanguagesRequest from given interface. GetLangCodes returns value of LangCodes 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. (*MessagesGetEmojiKeywordsLanguagesRequest) Zero() bool *MessagesGetEmojiKeywordsLanguagesRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetEmojiKeywordsLanguagesRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetEmojiKeywordsLanguagesRequest : github.com/gotd/td/bin.Decoder *MessagesGetEmojiKeywordsLanguagesRequest : github.com/gotd/td/bin.Encoder *MessagesGetEmojiKeywordsLanguagesRequest : github.com/gotd/td/bin.Object *MessagesGetEmojiKeywordsLanguagesRequest : github.com/gotd/td/tdp.Object *MessagesGetEmojiKeywordsLanguagesRequest : fmt.Stringer
MessagesGetEmojiKeywordsRequest represents TL type `messages.getEmojiKeywords#35a0e062`. Get localized emoji keywords »¹. Links: 1. https://core.telegram.org/api/custom-emoji#emoji-keywords See https://core.telegram.org/method/messages.getEmojiKeywords for reference. Language code Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetEmojiKeywordsRequest from given interface. GetLangCode returns value of LangCode 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. (*MessagesGetEmojiKeywordsRequest) Zero() bool *MessagesGetEmojiKeywordsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetEmojiKeywordsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetEmojiKeywordsRequest : github.com/gotd/td/bin.Decoder *MessagesGetEmojiKeywordsRequest : github.com/gotd/td/bin.Encoder *MessagesGetEmojiKeywordsRequest : github.com/gotd/td/bin.Object *MessagesGetEmojiKeywordsRequest : github.com/gotd/td/tdp.Object *MessagesGetEmojiKeywordsRequest : fmt.Stringer
MessagesGetEmojiProfilePhotoGroupsRequest represents TL type `messages.getEmojiProfilePhotoGroups#21a548f3`. Represents a list of emoji categories¹, to be used when selecting custom emojis to set as profile picture². Links: 1. https://core.telegram.org/api/custom-emoji#emoji-categories 2. https://core.telegram.org/api/files#sticker-profile-pictures See https://core.telegram.org/method/messages.getEmojiProfilePhotoGroups for reference. Hash for pagination, 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 MessagesGetEmojiProfilePhotoGroupsRequest 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. (*MessagesGetEmojiProfilePhotoGroupsRequest) Zero() bool *MessagesGetEmojiProfilePhotoGroupsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetEmojiProfilePhotoGroupsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetEmojiProfilePhotoGroupsRequest : github.com/gotd/td/bin.Decoder *MessagesGetEmojiProfilePhotoGroupsRequest : github.com/gotd/td/bin.Encoder *MessagesGetEmojiProfilePhotoGroupsRequest : github.com/gotd/td/bin.Object *MessagesGetEmojiProfilePhotoGroupsRequest : github.com/gotd/td/tdp.Object *MessagesGetEmojiProfilePhotoGroupsRequest : fmt.Stringer
MessagesGetEmojiStatusGroupsRequest represents TL type `messages.getEmojiStatusGroups#2ecd56cd`. Represents a list of emoji categories¹, to be used when selecting custom emojis to set as custom emoji status². Links: 1. https://core.telegram.org/api/custom-emoji#emoji-categories 2. https://core.telegram.org/api See https://core.telegram.org/method/messages.getEmojiStatusGroups for reference. Hash for pagination, 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 MessagesGetEmojiStatusGroupsRequest 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. (*MessagesGetEmojiStatusGroupsRequest) Zero() bool *MessagesGetEmojiStatusGroupsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetEmojiStatusGroupsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetEmojiStatusGroupsRequest : github.com/gotd/td/bin.Decoder *MessagesGetEmojiStatusGroupsRequest : github.com/gotd/td/bin.Encoder *MessagesGetEmojiStatusGroupsRequest : github.com/gotd/td/bin.Object *MessagesGetEmojiStatusGroupsRequest : github.com/gotd/td/tdp.Object *MessagesGetEmojiStatusGroupsRequest : fmt.Stringer
MessagesGetEmojiStickersRequest represents TL type `messages.getEmojiStickers#fbfca18f`. Gets the list of currently installed custom emoji stickersets¹. Links: 1. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/method/messages.getEmojiStickers for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetEmojiStickersRequest 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. (*MessagesGetEmojiStickersRequest) Zero() bool *MessagesGetEmojiStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetEmojiStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetEmojiStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetEmojiStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetEmojiStickersRequest : github.com/gotd/td/bin.Object *MessagesGetEmojiStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetEmojiStickersRequest : fmt.Stringer
MessagesGetEmojiURLRequest represents TL type `messages.getEmojiURL#d5b10c26`. Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji keywords »¹. The URL will be valid for 30 seconds after generation. Links: 1. https://core.telegram.org/api/custom-emoji#emoji-keywords See https://core.telegram.org/method/messages.getEmojiURL for reference. Language code Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetEmojiURLRequest from given interface. GetLangCode returns value of LangCode 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. (*MessagesGetEmojiURLRequest) Zero() bool *MessagesGetEmojiURLRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetEmojiURLRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetEmojiURLRequest : github.com/gotd/td/bin.Decoder *MessagesGetEmojiURLRequest : github.com/gotd/td/bin.Encoder *MessagesGetEmojiURLRequest : github.com/gotd/td/bin.Object *MessagesGetEmojiURLRequest : github.com/gotd/td/tdp.Object *MessagesGetEmojiURLRequest : fmt.Stringer
MessagesGetExportedChatInviteRequest represents TL type `messages.getExportedChatInvite#73746f5c`. Get info about a chat invite See https://core.telegram.org/method/messages.getExportedChatInvite for reference. Invite link Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetExportedChatInviteRequest from given interface. GetLink returns value of Link 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. (*MessagesGetExportedChatInviteRequest) Zero() bool *MessagesGetExportedChatInviteRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetExportedChatInviteRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetExportedChatInviteRequest : github.com/gotd/td/bin.Decoder *MessagesGetExportedChatInviteRequest : github.com/gotd/td/bin.Encoder *MessagesGetExportedChatInviteRequest : github.com/gotd/td/bin.Object *MessagesGetExportedChatInviteRequest : github.com/gotd/td/tdp.Object *MessagesGetExportedChatInviteRequest : fmt.Stringer func (*Client).MessagesGetExportedChatInvite(ctx context.Context, request *MessagesGetExportedChatInviteRequest) (MessagesExportedChatInviteClass, error)
MessagesGetExportedChatInvitesRequest represents TL type `messages.getExportedChatInvites#a2b5a3f6`. Get info about the chat invites of a specific chat See https://core.telegram.org/method/messages.getExportedChatInvites for reference. Whether to only fetch chat invites from this admin Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Use SetOffsetDate and GetOffsetDate helpers. Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Use SetOffsetLink and GetOffsetLink helpers. Chat Whether to fetch revoked chat invites Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetExportedChatInvitesRequest from given interface. GetAdminID returns value of AdminID field. GetLimit returns value of Limit field. GetOffsetDate returns value of OffsetDate conditional field and boolean which is true if field was set. GetOffsetLink returns value of OffsetLink conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. GetRevoked returns value of Revoked conditional field. SetFlags sets flags for non-zero fields. SetOffsetDate sets value of OffsetDate conditional field. SetOffsetLink sets value of OffsetLink conditional field. SetRevoked sets value of Revoked 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. (*MessagesGetExportedChatInvitesRequest) Zero() bool *MessagesGetExportedChatInvitesRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetExportedChatInvitesRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetExportedChatInvitesRequest : github.com/gotd/td/bin.Decoder *MessagesGetExportedChatInvitesRequest : github.com/gotd/td/bin.Encoder *MessagesGetExportedChatInvitesRequest : github.com/gotd/td/bin.Object *MessagesGetExportedChatInvitesRequest : github.com/gotd/td/tdp.Object *MessagesGetExportedChatInvitesRequest : fmt.Stringer func (*Client).MessagesGetExportedChatInvites(ctx context.Context, request *MessagesGetExportedChatInvitesRequest) (*MessagesExportedChatInvites, error)
MessagesGetExtendedMediaRequest represents TL type `messages.getExtendedMedia#84f80814`. Get information about extended media See https://core.telegram.org/method/messages.getExtendedMedia for reference. Scheduled message IDs Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetExtendedMediaRequest from given interface. GetID returns value of ID 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. (*MessagesGetExtendedMediaRequest) Zero() bool *MessagesGetExtendedMediaRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetExtendedMediaRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetExtendedMediaRequest : github.com/gotd/td/bin.Decoder *MessagesGetExtendedMediaRequest : github.com/gotd/td/bin.Encoder *MessagesGetExtendedMediaRequest : github.com/gotd/td/bin.Object *MessagesGetExtendedMediaRequest : github.com/gotd/td/tdp.Object *MessagesGetExtendedMediaRequest : fmt.Stringer func (*Client).MessagesGetExtendedMedia(ctx context.Context, request *MessagesGetExtendedMediaRequest) (UpdatesClass, error)
MessagesGetFavedStickersRequest represents TL type `messages.getFavedStickers#4f1aaa9`. Get faved stickers See https://core.telegram.org/method/messages.getFavedStickers for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetFavedStickersRequest 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. (*MessagesGetFavedStickersRequest) Zero() bool *MessagesGetFavedStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetFavedStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetFavedStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetFavedStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetFavedStickersRequest : github.com/gotd/td/bin.Object *MessagesGetFavedStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetFavedStickersRequest : fmt.Stringer
MessagesGetFeaturedEmojiStickersRequest represents TL type `messages.getFeaturedEmojiStickers#ecf6736`. Gets featured custom emoji stickersets. See https://core.telegram.org/method/messages.getFeaturedEmojiStickers for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetFeaturedEmojiStickersRequest 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. (*MessagesGetFeaturedEmojiStickersRequest) Zero() bool *MessagesGetFeaturedEmojiStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetFeaturedEmojiStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetFeaturedEmojiStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetFeaturedEmojiStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetFeaturedEmojiStickersRequest : github.com/gotd/td/bin.Object *MessagesGetFeaturedEmojiStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetFeaturedEmojiStickersRequest : fmt.Stringer
MessagesGetFeaturedStickersRequest represents TL type `messages.getFeaturedStickers#64780b14`. Get featured stickers See https://core.telegram.org/method/messages.getFeaturedStickers for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetFeaturedStickersRequest 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. (*MessagesGetFeaturedStickersRequest) Zero() bool *MessagesGetFeaturedStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetFeaturedStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetFeaturedStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetFeaturedStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetFeaturedStickersRequest : github.com/gotd/td/bin.Object *MessagesGetFeaturedStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetFeaturedStickersRequest : fmt.Stringer
MessagesGetFullChatRequest represents TL type `messages.getFullChat#aeb00b34`. Get full info about a basic group¹. Links: 1. https://core.telegram.org/api/channel#basic-groups See https://core.telegram.org/method/messages.getFullChat for reference. Chat identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetFullChatRequest from given interface. GetChatID returns value of ChatID 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. (*MessagesGetFullChatRequest) Zero() bool *MessagesGetFullChatRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetFullChatRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetFullChatRequest : github.com/gotd/td/bin.Decoder *MessagesGetFullChatRequest : github.com/gotd/td/bin.Encoder *MessagesGetFullChatRequest : github.com/gotd/td/bin.Object *MessagesGetFullChatRequest : github.com/gotd/td/tdp.Object *MessagesGetFullChatRequest : fmt.Stringer
MessagesGetGameHighScoresRequest represents TL type `messages.getGameHighScores#e822649d`. Get highscores of a game See https://core.telegram.org/method/messages.getGameHighScores for reference. ID of message with game media attachment Where was the game sent Get high scores made by a certain user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetGameHighScoresRequest from given interface. GetID returns value of ID field. 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. (*MessagesGetGameHighScoresRequest) Zero() bool *MessagesGetGameHighScoresRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetGameHighScoresRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetGameHighScoresRequest : github.com/gotd/td/bin.Decoder *MessagesGetGameHighScoresRequest : github.com/gotd/td/bin.Encoder *MessagesGetGameHighScoresRequest : github.com/gotd/td/bin.Object *MessagesGetGameHighScoresRequest : github.com/gotd/td/tdp.Object *MessagesGetGameHighScoresRequest : fmt.Stringer func (*Client).MessagesGetGameHighScores(ctx context.Context, request *MessagesGetGameHighScoresRequest) (*MessagesHighScores, error)
MessagesGetHistoryRequest represents TL type `messages.getHistory#4423e6c5`. Returns the conversation history with one interlocutor / within a chat See https://core.telegram.org/method/messages.getHistory for reference. Number of list elements to be skipped, negative values are also accepted. Result hash¹ Links: 1) https://core.telegram.org/api/offsets Number of results to return If a positive value was transferred, the method will return only messages with IDs less than max_id If a positive value was transferred, the method will return only messages with IDs more than min_id Only return messages sent before the specified date Only return messages starting from the specified message ID Target peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetHistoryRequest from given interface. GetAddOffset returns value of AddOffset field. GetHash returns value of Hash field. GetLimit returns value of Limit field. GetMaxID returns value of MaxID field. GetMinID returns value of MinID field. GetOffsetDate returns value of OffsetDate field. GetOffsetID returns value of OffsetID 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. (*MessagesGetHistoryRequest) Zero() bool *MessagesGetHistoryRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetHistoryRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetHistoryRequest : github.com/gotd/td/bin.Decoder *MessagesGetHistoryRequest : github.com/gotd/td/bin.Encoder *MessagesGetHistoryRequest : github.com/gotd/td/bin.Object *MessagesGetHistoryRequest : github.com/gotd/td/tdp.Object *MessagesGetHistoryRequest : fmt.Stringer func (*Client).MessagesGetHistory(ctx context.Context, request *MessagesGetHistoryRequest) (MessagesMessagesClass, error)
MessagesGetInlineBotResultsRequest represents TL type `messages.getInlineBotResults#514e999d`. Query an inline bot See https://core.telegram.org/method/messages.getInlineBotResults for reference. The bot to query Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The geolocation, if requested Use SetGeoPoint and GetGeoPoint helpers. The offset within the results, will be passed directly as-is to the bot. The currently opened chat The query Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetInlineBotResultsRequest from given interface. GetBot returns value of Bot field. 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. GetOffset returns value of Offset field. GetPeer returns value of Peer field. GetQuery returns value of Query 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. (*MessagesGetInlineBotResultsRequest) Zero() bool *MessagesGetInlineBotResultsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetInlineBotResultsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetInlineBotResultsRequest : github.com/gotd/td/bin.Decoder *MessagesGetInlineBotResultsRequest : github.com/gotd/td/bin.Encoder *MessagesGetInlineBotResultsRequest : github.com/gotd/td/bin.Object *MessagesGetInlineBotResultsRequest : github.com/gotd/td/tdp.Object *MessagesGetInlineBotResultsRequest : fmt.Stringer func (*Client).MessagesGetInlineBotResults(ctx context.Context, request *MessagesGetInlineBotResultsRequest) (*MessagesBotResults, error)
MessagesGetInlineGameHighScoresRequest represents TL type `messages.getInlineGameHighScores#f635e1b`. Get highscores of a game sent using an inline bot See https://core.telegram.org/method/messages.getInlineGameHighScores for reference. ID of inline message Get high scores of a certain user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetInlineGameHighScoresRequest from given interface. GetID returns value of ID 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. (*MessagesGetInlineGameHighScoresRequest) Zero() bool *MessagesGetInlineGameHighScoresRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetInlineGameHighScoresRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetInlineGameHighScoresRequest : github.com/gotd/td/bin.Decoder *MessagesGetInlineGameHighScoresRequest : github.com/gotd/td/bin.Encoder *MessagesGetInlineGameHighScoresRequest : github.com/gotd/td/bin.Object *MessagesGetInlineGameHighScoresRequest : github.com/gotd/td/tdp.Object *MessagesGetInlineGameHighScoresRequest : fmt.Stringer func (*Client).MessagesGetInlineGameHighScores(ctx context.Context, request *MessagesGetInlineGameHighScoresRequest) (*MessagesHighScores, error)
MessagesGetMaskStickersRequest represents TL type `messages.getMaskStickers#640f82b8`. Get installed mask stickers See https://core.telegram.org/method/messages.getMaskStickers for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetMaskStickersRequest 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. (*MessagesGetMaskStickersRequest) Zero() bool *MessagesGetMaskStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetMaskStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetMaskStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetMaskStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetMaskStickersRequest : github.com/gotd/td/bin.Object *MessagesGetMaskStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetMaskStickersRequest : fmt.Stringer
MessagesGetMessageEditDataRequest represents TL type `messages.getMessageEditData#fda68d36`. Find out if a media message's caption can be edited See https://core.telegram.org/method/messages.getMessageEditData for reference. Story ID Peer where the story was posted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetMessageEditDataRequest from given interface. GetID returns value of ID 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. (*MessagesGetMessageEditDataRequest) Zero() bool *MessagesGetMessageEditDataRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetMessageEditDataRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetMessageEditDataRequest : github.com/gotd/td/bin.Decoder *MessagesGetMessageEditDataRequest : github.com/gotd/td/bin.Encoder *MessagesGetMessageEditDataRequest : github.com/gotd/td/bin.Object *MessagesGetMessageEditDataRequest : github.com/gotd/td/tdp.Object *MessagesGetMessageEditDataRequest : fmt.Stringer func (*Client).MessagesGetMessageEditData(ctx context.Context, request *MessagesGetMessageEditDataRequest) (*MessagesMessageEditData, error)
MessagesGetMessageReactionsListRequest represents TL type `messages.getMessageReactionsList#461b3f48`. Get message reaction¹ list, along with the sender of each reaction. Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.getMessageReactionsList for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offset (typically taken from the next_offset field of the returned messages MessageReactionsList¹) Links: 1) https://core.telegram.org/type/messages.MessageReactionsList Use SetOffset and GetOffset helpers. Peer Get only reactions of this type (UTF8 emoji) Use SetReaction and GetReaction helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetMessageReactionsListRequest from given interface. GetID returns value of ID field. GetLimit returns value of Limit field. GetOffset returns value of Offset conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. GetReaction returns value of Reaction conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetOffset sets value of Offset conditional field. SetReaction sets value of Reaction 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. (*MessagesGetMessageReactionsListRequest) Zero() bool *MessagesGetMessageReactionsListRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetMessageReactionsListRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetMessageReactionsListRequest : github.com/gotd/td/bin.Decoder *MessagesGetMessageReactionsListRequest : github.com/gotd/td/bin.Encoder *MessagesGetMessageReactionsListRequest : github.com/gotd/td/bin.Object *MessagesGetMessageReactionsListRequest : github.com/gotd/td/tdp.Object *MessagesGetMessageReactionsListRequest : fmt.Stringer func (*Client).MessagesGetMessageReactionsList(ctx context.Context, request *MessagesGetMessageReactionsListRequest) (*MessagesMessageReactionsList, error)
MessagesGetMessageReadParticipantsRequest represents TL type `messages.getMessageReadParticipants#31c1c44f`. Get which users read a specific message: only available for groups and supergroups with less than chat_read_mark_size_threshold members¹, read receipts will be stored for chat_read_mark_expire_period seconds after the message was sent², see client configuration for more info »³. Links: 1. https://core.telegram.org/api/config#chat-read-mark-size-threshold 2. https://core.telegram.org/api/config#chat-read-mark-expire-period 3. https://core.telegram.org/api/config#client-configuration See https://core.telegram.org/method/messages.getMessageReadParticipants for reference. Message ID Chat where the invoice was sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetMessageReadParticipantsRequest from given interface. GetMsgID returns value of MsgID 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. (*MessagesGetMessageReadParticipantsRequest) Zero() bool *MessagesGetMessageReadParticipantsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetMessageReadParticipantsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetMessageReadParticipantsRequest : github.com/gotd/td/bin.Decoder *MessagesGetMessageReadParticipantsRequest : github.com/gotd/td/bin.Encoder *MessagesGetMessageReadParticipantsRequest : github.com/gotd/td/bin.Object *MessagesGetMessageReadParticipantsRequest : github.com/gotd/td/tdp.Object *MessagesGetMessageReadParticipantsRequest : fmt.Stringer func (*Client).MessagesGetMessageReadParticipants(ctx context.Context, request *MessagesGetMessageReadParticipantsRequest) ([]ReadParticipantDate, error)
MessagesGetMessagesReactionsRequest represents TL type `messages.getMessagesReactions#8bba90e6`. Get message reactions »¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.getMessagesReactions for reference. Scheduled message IDs Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetMessagesReactionsRequest from given interface. GetID returns value of ID 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. (*MessagesGetMessagesReactionsRequest) Zero() bool *MessagesGetMessagesReactionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetMessagesReactionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetMessagesReactionsRequest : github.com/gotd/td/bin.Decoder *MessagesGetMessagesReactionsRequest : github.com/gotd/td/bin.Encoder *MessagesGetMessagesReactionsRequest : github.com/gotd/td/bin.Object *MessagesGetMessagesReactionsRequest : github.com/gotd/td/tdp.Object *MessagesGetMessagesReactionsRequest : fmt.Stringer func (*Client).MessagesGetMessagesReactions(ctx context.Context, request *MessagesGetMessagesReactionsRequest) (UpdatesClass, error)
MessagesGetMessagesRequest represents TL type `messages.getMessages#63c66506`. Returns the list of messages by their IDs. See https://core.telegram.org/method/messages.getMessages for reference. Message ID list Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetMessagesRequest from given interface. GetID returns value of ID field. MapID returns field ID wrapped in InputMessageClassArray 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. (*MessagesGetMessagesRequest) Zero() bool *MessagesGetMessagesRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetMessagesRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetMessagesRequest : github.com/gotd/td/bin.Decoder *MessagesGetMessagesRequest : github.com/gotd/td/bin.Encoder *MessagesGetMessagesRequest : github.com/gotd/td/bin.Object *MessagesGetMessagesRequest : github.com/gotd/td/tdp.Object *MessagesGetMessagesRequest : fmt.Stringer
MessagesGetMessagesViewsRequest represents TL type `messages.getMessagesViews#5784d3e1`. Get and increase the view counter of a message sent or forwarded from a channel¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/method/messages.getMessagesViews for reference. ID of message Whether to mark the message as viewed and increment the view counter Peer where the message was found Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetMessagesViewsRequest from given interface. GetID returns value of ID field. GetIncrement returns value of Increment 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. (*MessagesGetMessagesViewsRequest) Zero() bool *MessagesGetMessagesViewsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetMessagesViewsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetMessagesViewsRequest : github.com/gotd/td/bin.Decoder *MessagesGetMessagesViewsRequest : github.com/gotd/td/bin.Encoder *MessagesGetMessagesViewsRequest : github.com/gotd/td/bin.Object *MessagesGetMessagesViewsRequest : github.com/gotd/td/tdp.Object *MessagesGetMessagesViewsRequest : fmt.Stringer func (*Client).MessagesGetMessagesViews(ctx context.Context, request *MessagesGetMessagesViewsRequest) (*MessagesMessageViews, error)
MessagesGetOldFeaturedStickersRequest represents TL type `messages.getOldFeaturedStickers#7ed094a1`. Method for fetching previously featured stickers See https://core.telegram.org/method/messages.getOldFeaturedStickers for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetOldFeaturedStickersRequest 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. (*MessagesGetOldFeaturedStickersRequest) Zero() bool *MessagesGetOldFeaturedStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetOldFeaturedStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetOldFeaturedStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetOldFeaturedStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetOldFeaturedStickersRequest : github.com/gotd/td/bin.Object *MessagesGetOldFeaturedStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetOldFeaturedStickersRequest : fmt.Stringer func (*Client).MessagesGetOldFeaturedStickers(ctx context.Context, request *MessagesGetOldFeaturedStickersRequest) (MessagesFeaturedStickersClass, error)
MessagesGetOnlinesRequest represents TL type `messages.getOnlines#6e2be050`. Get count of online users in a chat See https://core.telegram.org/method/messages.getOnlines for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetOnlinesRequest 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. (*MessagesGetOnlinesRequest) Zero() bool *MessagesGetOnlinesRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetOnlinesRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetOnlinesRequest : github.com/gotd/td/bin.Decoder *MessagesGetOnlinesRequest : github.com/gotd/td/bin.Encoder *MessagesGetOnlinesRequest : github.com/gotd/td/bin.Object *MessagesGetOnlinesRequest : github.com/gotd/td/tdp.Object *MessagesGetOnlinesRequest : fmt.Stringer
MessagesGetPeerDialogsRequest represents TL type `messages.getPeerDialogs#e470bcfd`. Get dialog info of specified peers See https://core.telegram.org/method/messages.getPeerDialogs for reference. Peers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetPeerDialogsRequest from given interface. GetPeers returns value of Peers field. MapPeers returns field Peers wrapped in InputDialogPeerClassArray 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. (*MessagesGetPeerDialogsRequest) Zero() bool *MessagesGetPeerDialogsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetPeerDialogsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetPeerDialogsRequest : github.com/gotd/td/bin.Decoder *MessagesGetPeerDialogsRequest : github.com/gotd/td/bin.Encoder *MessagesGetPeerDialogsRequest : github.com/gotd/td/bin.Object *MessagesGetPeerDialogsRequest : github.com/gotd/td/tdp.Object *MessagesGetPeerDialogsRequest : fmt.Stringer
MessagesGetPeerSettingsRequest represents TL type `messages.getPeerSettings#efd9a6a2`. Get peer settings See https://core.telegram.org/method/messages.getPeerSettings for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetPeerSettingsRequest 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. (*MessagesGetPeerSettingsRequest) Zero() bool *MessagesGetPeerSettingsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetPeerSettingsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetPeerSettingsRequest : github.com/gotd/td/bin.Decoder *MessagesGetPeerSettingsRequest : github.com/gotd/td/bin.Encoder *MessagesGetPeerSettingsRequest : github.com/gotd/td/bin.Object *MessagesGetPeerSettingsRequest : github.com/gotd/td/tdp.Object *MessagesGetPeerSettingsRequest : fmt.Stringer
MessagesGetPinnedDialogsRequest represents TL type `messages.getPinnedDialogs#d6b94df2`. Get pinned dialogs See https://core.telegram.org/method/messages.getPinnedDialogs for reference. Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetPinnedDialogsRequest from given interface. GetFolderID returns value of FolderID 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. (*MessagesGetPinnedDialogsRequest) Zero() bool *MessagesGetPinnedDialogsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetPinnedDialogsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetPinnedDialogsRequest : github.com/gotd/td/bin.Decoder *MessagesGetPinnedDialogsRequest : github.com/gotd/td/bin.Encoder *MessagesGetPinnedDialogsRequest : github.com/gotd/td/bin.Object *MessagesGetPinnedDialogsRequest : github.com/gotd/td/tdp.Object *MessagesGetPinnedDialogsRequest : fmt.Stringer
MessagesGetPollResultsRequest represents TL type `messages.getPollResults#73bb643b`. Get poll results See https://core.telegram.org/method/messages.getPollResults for reference. Message ID Chat where the invoice was sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetPollResultsRequest from given interface. GetMsgID returns value of MsgID 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. (*MessagesGetPollResultsRequest) Zero() bool *MessagesGetPollResultsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetPollResultsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetPollResultsRequest : github.com/gotd/td/bin.Decoder *MessagesGetPollResultsRequest : github.com/gotd/td/bin.Encoder *MessagesGetPollResultsRequest : github.com/gotd/td/bin.Object *MessagesGetPollResultsRequest : github.com/gotd/td/tdp.Object *MessagesGetPollResultsRequest : fmt.Stringer func (*Client).MessagesGetPollResults(ctx context.Context, request *MessagesGetPollResultsRequest) (UpdatesClass, error)
MessagesGetPollVotesRequest represents TL type `messages.getPollVotes#b86e380e`. Get poll results for non-anonymous polls See https://core.telegram.org/method/messages.getPollVotes for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID Number of results to return Offset for results, taken from the next_offset field of messages.votesList¹, initially an empty string. Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in messages.votesList² if it is empty, to avoid an infinite loop. Links: 1) https://core.telegram.org/constructor/messages.votesList 2) https://core.telegram.org/constructor/messages.votesList Use SetOffset and GetOffset helpers. Get only results for the specified poll option Use SetOption and GetOption helpers. Chat where the poll was sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetPollVotesRequest from given interface. GetID returns value of ID field. GetLimit returns value of Limit field. GetOffset returns value of Offset conditional field and boolean which is true if field was set. GetOption returns value of Option conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. SetFlags sets flags for non-zero fields. SetOffset sets value of Offset conditional field. SetOption sets value of Option 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. (*MessagesGetPollVotesRequest) Zero() bool *MessagesGetPollVotesRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetPollVotesRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetPollVotesRequest : github.com/gotd/td/bin.Decoder *MessagesGetPollVotesRequest : github.com/gotd/td/bin.Encoder *MessagesGetPollVotesRequest : github.com/gotd/td/bin.Object *MessagesGetPollVotesRequest : github.com/gotd/td/tdp.Object *MessagesGetPollVotesRequest : fmt.Stringer func (*Client).MessagesGetPollVotes(ctx context.Context, request *MessagesGetPollVotesRequest) (*MessagesVotesList, error)
MessagesGetRecentLocationsRequest represents TL type `messages.getRecentLocations#702a40e0`. Get live location history of a certain user See https://core.telegram.org/method/messages.getRecentLocations for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets User Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetRecentLocationsRequest from given interface. GetHash returns value of Hash field. GetLimit returns value of Limit 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. (*MessagesGetRecentLocationsRequest) Zero() bool *MessagesGetRecentLocationsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetRecentLocationsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetRecentLocationsRequest : github.com/gotd/td/bin.Decoder *MessagesGetRecentLocationsRequest : github.com/gotd/td/bin.Encoder *MessagesGetRecentLocationsRequest : github.com/gotd/td/bin.Object *MessagesGetRecentLocationsRequest : github.com/gotd/td/tdp.Object *MessagesGetRecentLocationsRequest : fmt.Stringer func (*Client).MessagesGetRecentLocations(ctx context.Context, request *MessagesGetRecentLocationsRequest) (MessagesMessagesClass, error)
MessagesGetRecentReactionsRequest represents TL type `messages.getRecentReactions#39461db2`. Get recently used message reactions¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.getRecentReactions for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetRecentReactionsRequest from given interface. GetHash returns value of Hash field. GetLimit returns value of Limit 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. (*MessagesGetRecentReactionsRequest) Zero() bool *MessagesGetRecentReactionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetRecentReactionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetRecentReactionsRequest : github.com/gotd/td/bin.Decoder *MessagesGetRecentReactionsRequest : github.com/gotd/td/bin.Encoder *MessagesGetRecentReactionsRequest : github.com/gotd/td/bin.Object *MessagesGetRecentReactionsRequest : github.com/gotd/td/tdp.Object *MessagesGetRecentReactionsRequest : fmt.Stringer func (*Client).MessagesGetRecentReactions(ctx context.Context, request *MessagesGetRecentReactionsRequest) (MessagesReactionsClass, error)
MessagesGetRecentStickersRequest represents TL type `messages.getRecentStickers#9da9403b`. Get recent stickers See https://core.telegram.org/method/messages.getRecentStickers for reference. Get stickers recently attached to photo or video files Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Hash for pagination, 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 MessagesGetRecentStickersRequest from given interface. GetAttached returns value of Attached conditional field. GetHash returns value of Hash field. SetAttached sets value of Attached 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. (*MessagesGetRecentStickersRequest) Zero() bool *MessagesGetRecentStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetRecentStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetRecentStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetRecentStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetRecentStickersRequest : github.com/gotd/td/bin.Object *MessagesGetRecentStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetRecentStickersRequest : fmt.Stringer func (*Client).MessagesGetRecentStickers(ctx context.Context, request *MessagesGetRecentStickersRequest) (MessagesRecentStickersClass, error)
MessagesGetRepliesRequest represents TL type `messages.getReplies#22ddd30c`. Get messages in a reply thread See https://core.telegram.org/method/messages.getReplies for reference. Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets If a positive value was transferred, the method will return only messages with ID smaller than max_id If a positive value was transferred, the method will return only messages with ID bigger than min_id Message ID Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetRepliesRequest from given interface. GetAddOffset returns value of AddOffset field. GetHash returns value of Hash field. GetLimit returns value of Limit field. GetMaxID returns value of MaxID field. GetMinID returns value of MinID field. GetMsgID returns value of MsgID field. GetOffsetDate returns value of OffsetDate field. GetOffsetID returns value of OffsetID 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. (*MessagesGetRepliesRequest) Zero() bool *MessagesGetRepliesRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetRepliesRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetRepliesRequest : github.com/gotd/td/bin.Decoder *MessagesGetRepliesRequest : github.com/gotd/td/bin.Encoder *MessagesGetRepliesRequest : github.com/gotd/td/bin.Object *MessagesGetRepliesRequest : github.com/gotd/td/tdp.Object *MessagesGetRepliesRequest : fmt.Stringer func (*Client).MessagesGetReplies(ctx context.Context, request *MessagesGetRepliesRequest) (MessagesMessagesClass, error)
MessagesGetSavedGifsRequest represents TL type `messages.getSavedGifs#5cf09635`. Get saved GIFs See https://core.telegram.org/method/messages.getSavedGifs for reference. Hash field of AccountGetChannelDefaultEmojiStatusesRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetSavedGifsRequest 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. (*MessagesGetSavedGifsRequest) Zero() bool *MessagesGetSavedGifsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetSavedGifsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetSavedGifsRequest : github.com/gotd/td/bin.Decoder *MessagesGetSavedGifsRequest : github.com/gotd/td/bin.Encoder *MessagesGetSavedGifsRequest : github.com/gotd/td/bin.Object *MessagesGetSavedGifsRequest : github.com/gotd/td/tdp.Object *MessagesGetSavedGifsRequest : fmt.Stringer
MessagesGetScheduledHistoryRequest represents TL type `messages.getScheduledHistory#f516760b`. Get scheduled messages See https://core.telegram.org/method/messages.getScheduledHistory for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetScheduledHistoryRequest from given interface. GetHash returns value of Hash 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. (*MessagesGetScheduledHistoryRequest) Zero() bool *MessagesGetScheduledHistoryRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetScheduledHistoryRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetScheduledHistoryRequest : github.com/gotd/td/bin.Decoder *MessagesGetScheduledHistoryRequest : github.com/gotd/td/bin.Encoder *MessagesGetScheduledHistoryRequest : github.com/gotd/td/bin.Object *MessagesGetScheduledHistoryRequest : github.com/gotd/td/tdp.Object *MessagesGetScheduledHistoryRequest : fmt.Stringer func (*Client).MessagesGetScheduledHistory(ctx context.Context, request *MessagesGetScheduledHistoryRequest) (MessagesMessagesClass, error)
MessagesGetScheduledMessagesRequest represents TL type `messages.getScheduledMessages#bdbb0464`. Get scheduled messages See https://core.telegram.org/method/messages.getScheduledMessages for reference. Scheduled message IDs Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetScheduledMessagesRequest from given interface. GetID returns value of ID 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. (*MessagesGetScheduledMessagesRequest) Zero() bool *MessagesGetScheduledMessagesRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetScheduledMessagesRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetScheduledMessagesRequest : github.com/gotd/td/bin.Decoder *MessagesGetScheduledMessagesRequest : github.com/gotd/td/bin.Encoder *MessagesGetScheduledMessagesRequest : github.com/gotd/td/bin.Object *MessagesGetScheduledMessagesRequest : github.com/gotd/td/tdp.Object *MessagesGetScheduledMessagesRequest : fmt.Stringer func (*Client).MessagesGetScheduledMessages(ctx context.Context, request *MessagesGetScheduledMessagesRequest) (MessagesMessagesClass, error)
MessagesGetSearchCountersRequest represents TL type `messages.getSearchCounters#ae7cc1`. Get the number of results that would be found by a messages.search¹ call with the same parameters Links: 1. https://core.telegram.org/method/messages.search See https://core.telegram.org/method/messages.getSearchCounters for reference. Search filters Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer where to search If set, consider only messages within the specified forum topic¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetSearchCountersRequest from given interface. GetFilters returns value of Filters field. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. MapFilters returns field Filters wrapped in MessagesFilterClassArray helper. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*MessagesGetSearchCountersRequest) Zero() bool *MessagesGetSearchCountersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetSearchCountersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetSearchCountersRequest : github.com/gotd/td/bin.Decoder *MessagesGetSearchCountersRequest : github.com/gotd/td/bin.Encoder *MessagesGetSearchCountersRequest : github.com/gotd/td/bin.Object *MessagesGetSearchCountersRequest : github.com/gotd/td/tdp.Object *MessagesGetSearchCountersRequest : fmt.Stringer func (*Client).MessagesGetSearchCounters(ctx context.Context, request *MessagesGetSearchCountersRequest) ([]MessagesSearchCounter, error)
MessagesGetSearchResultsCalendarRequest represents TL type `messages.getSearchResultsCalendar#49f0bde9`. Returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial results for the last returned day. See https://core.telegram.org/method/messages.getSearchResultsCalendar for reference. Message filter, inputMessagesFilterEmpty¹, inputMessagesFilterMyMentions² filters are not supported by this method. Links: 1) https://core.telegram.org/constructor/inputMessagesFilterEmpty 2) https://core.telegram.org/constructor/inputMessagesFilterMyMentions Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Peer where to search Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetSearchResultsCalendarRequest from given interface. GetFilter returns value of Filter field. GetOffsetDate returns value of OffsetDate field. GetOffsetID returns value of OffsetID 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. (*MessagesGetSearchResultsCalendarRequest) Zero() bool *MessagesGetSearchResultsCalendarRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetSearchResultsCalendarRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetSearchResultsCalendarRequest : github.com/gotd/td/bin.Decoder *MessagesGetSearchResultsCalendarRequest : github.com/gotd/td/bin.Encoder *MessagesGetSearchResultsCalendarRequest : github.com/gotd/td/bin.Object *MessagesGetSearchResultsCalendarRequest : github.com/gotd/td/tdp.Object *MessagesGetSearchResultsCalendarRequest : fmt.Stringer func (*Client).MessagesGetSearchResultsCalendar(ctx context.Context, request *MessagesGetSearchResultsCalendarRequest) (*MessagesSearchResultsCalendar, error)
MessagesGetSearchResultsPositionsRequest represents TL type `messages.getSearchResultsPositions#6e9583a3`. Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). See https://core.telegram.org/method/messages.getSearchResultsPositions for reference. Message filter, inputMessagesFilterEmpty¹, inputMessagesFilterMyMentions² filters are not supported by this method. Links: 1) https://core.telegram.org/constructor/inputMessagesFilterEmpty 2) https://core.telegram.org/constructor/inputMessagesFilterMyMentions Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Peer where to search Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetSearchResultsPositionsRequest from given interface. GetFilter returns value of Filter field. GetLimit returns value of Limit field. GetOffsetID returns value of OffsetID 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. (*MessagesGetSearchResultsPositionsRequest) Zero() bool *MessagesGetSearchResultsPositionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetSearchResultsPositionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetSearchResultsPositionsRequest : github.com/gotd/td/bin.Decoder *MessagesGetSearchResultsPositionsRequest : github.com/gotd/td/bin.Encoder *MessagesGetSearchResultsPositionsRequest : github.com/gotd/td/bin.Object *MessagesGetSearchResultsPositionsRequest : github.com/gotd/td/tdp.Object *MessagesGetSearchResultsPositionsRequest : fmt.Stringer func (*Client).MessagesGetSearchResultsPositions(ctx context.Context, request *MessagesGetSearchResultsPositionsRequest) (*MessagesSearchResultsPositions, error)
MessagesGetSplitRangesRequest represents TL type `messages.getSplitRanges#1cff7e08`. Get message ranges for saving the user's chat history See https://core.telegram.org/method/messages.getSplitRanges 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. (*MessagesGetSplitRangesRequest) Zero() bool *MessagesGetSplitRangesRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetSplitRangesRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetSplitRangesRequest : github.com/gotd/td/bin.Decoder *MessagesGetSplitRangesRequest : github.com/gotd/td/bin.Encoder *MessagesGetSplitRangesRequest : github.com/gotd/td/bin.Object *MessagesGetSplitRangesRequest : github.com/gotd/td/tdp.Object *MessagesGetSplitRangesRequest : fmt.Stringer
MessagesGetStickerSetRequest represents TL type `messages.getStickerSet#c8a0ec74`. Get info about a stickerset See https://core.telegram.org/method/messages.getStickerSet for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetStickerSetRequest from given interface. GetHash returns value of Hash field. GetStickerset returns value of Stickerset 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. (*MessagesGetStickerSetRequest) Zero() bool *MessagesGetStickerSetRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetStickerSetRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetStickerSetRequest : github.com/gotd/td/bin.Decoder *MessagesGetStickerSetRequest : github.com/gotd/td/bin.Encoder *MessagesGetStickerSetRequest : github.com/gotd/td/bin.Object *MessagesGetStickerSetRequest : github.com/gotd/td/tdp.Object *MessagesGetStickerSetRequest : fmt.Stringer func (*Client).MessagesGetStickerSet(ctx context.Context, request *MessagesGetStickerSetRequest) (MessagesStickerSetClass, error)
MessagesGetStickersRequest represents TL type `messages.getStickers#d5a5d3a1`. Get stickers by emoji See https://core.telegram.org/method/messages.getStickers for reference. The emoji Hash for pagination, 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 MessagesGetStickersRequest from given interface. GetEmoticon returns value of Emoticon 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. (*MessagesGetStickersRequest) Zero() bool *MessagesGetStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetStickersRequest : github.com/gotd/td/bin.Decoder *MessagesGetStickersRequest : github.com/gotd/td/bin.Encoder *MessagesGetStickersRequest : github.com/gotd/td/bin.Object *MessagesGetStickersRequest : github.com/gotd/td/tdp.Object *MessagesGetStickersRequest : fmt.Stringer func (*Client).MessagesGetStickers(ctx context.Context, request *MessagesGetStickersRequest) (MessagesStickersClass, error)
MessagesGetSuggestedDialogFiltersRequest represents TL type `messages.getSuggestedDialogFilters#a29cd42c`. Get suggested folders¹ Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/method/messages.getSuggestedDialogFilters 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. (*MessagesGetSuggestedDialogFiltersRequest) Zero() bool *MessagesGetSuggestedDialogFiltersRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetSuggestedDialogFiltersRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetSuggestedDialogFiltersRequest : github.com/gotd/td/bin.Decoder *MessagesGetSuggestedDialogFiltersRequest : github.com/gotd/td/bin.Encoder *MessagesGetSuggestedDialogFiltersRequest : github.com/gotd/td/bin.Object *MessagesGetSuggestedDialogFiltersRequest : github.com/gotd/td/tdp.Object *MessagesGetSuggestedDialogFiltersRequest : fmt.Stringer
MessagesGetTopReactionsRequest represents TL type `messages.getTopReactions#bb8125ba`. Got popular message reactions¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.getTopReactions for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetTopReactionsRequest from given interface. GetHash returns value of Hash field. GetLimit returns value of Limit 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. (*MessagesGetTopReactionsRequest) Zero() bool *MessagesGetTopReactionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetTopReactionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetTopReactionsRequest : github.com/gotd/td/bin.Decoder *MessagesGetTopReactionsRequest : github.com/gotd/td/bin.Encoder *MessagesGetTopReactionsRequest : github.com/gotd/td/bin.Object *MessagesGetTopReactionsRequest : github.com/gotd/td/tdp.Object *MessagesGetTopReactionsRequest : fmt.Stringer func (*Client).MessagesGetTopReactions(ctx context.Context, request *MessagesGetTopReactionsRequest) (MessagesReactionsClass, error)
MessagesGetUnreadMentionsRequest represents TL type `messages.getUnreadMentions#f107e790`. Get unread messages where we were mentioned See https://core.telegram.org/method/messages.getUnreadMentions for reference. Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Maximum message ID to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Minimum message ID to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Peer where to look for mentions If set, considers only messages within the specified forum topic¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetUnreadMentionsRequest from given interface. GetAddOffset returns value of AddOffset field. GetLimit returns value of Limit field. GetMaxID returns value of MaxID field. GetMinID returns value of MinID field. GetOffsetID returns value of OffsetID field. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*MessagesGetUnreadMentionsRequest) Zero() bool *MessagesGetUnreadMentionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetUnreadMentionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetUnreadMentionsRequest : github.com/gotd/td/bin.Decoder *MessagesGetUnreadMentionsRequest : github.com/gotd/td/bin.Encoder *MessagesGetUnreadMentionsRequest : github.com/gotd/td/bin.Object *MessagesGetUnreadMentionsRequest : github.com/gotd/td/tdp.Object *MessagesGetUnreadMentionsRequest : fmt.Stringer func (*Client).MessagesGetUnreadMentions(ctx context.Context, request *MessagesGetUnreadMentionsRequest) (MessagesMessagesClass, error)
MessagesGetUnreadReactionsRequest represents TL type `messages.getUnreadReactions#3223495b`. Get unread reactions to messages you sent See https://core.telegram.org/method/messages.getUnreadReactions for reference. Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Maximum message ID to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Minimum message ID to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Peer where to look for mentions If set, considers only messages within the specified forum topic¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetUnreadReactionsRequest from given interface. GetAddOffset returns value of AddOffset field. GetLimit returns value of Limit field. GetMaxID returns value of MaxID field. GetMinID returns value of MinID field. GetOffsetID returns value of OffsetID field. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*MessagesGetUnreadReactionsRequest) Zero() bool *MessagesGetUnreadReactionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetUnreadReactionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetUnreadReactionsRequest : github.com/gotd/td/bin.Decoder *MessagesGetUnreadReactionsRequest : github.com/gotd/td/bin.Encoder *MessagesGetUnreadReactionsRequest : github.com/gotd/td/bin.Object *MessagesGetUnreadReactionsRequest : github.com/gotd/td/tdp.Object *MessagesGetUnreadReactionsRequest : fmt.Stringer func (*Client).MessagesGetUnreadReactions(ctx context.Context, request *MessagesGetUnreadReactionsRequest) (MessagesMessagesClass, error)
MessagesGetWebPagePreviewRequest represents TL type `messages.getWebPagePreview#8b68b0cc`. Get preview of webpage See https://core.telegram.org/method/messages.getWebPagePreview 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 Message from which to extract the preview Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetWebPagePreviewRequest from given interface. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetMessage returns value of Message field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetEntities sets value of Entities 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. (*MessagesGetWebPagePreviewRequest) Zero() bool *MessagesGetWebPagePreviewRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetWebPagePreviewRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetWebPagePreviewRequest : github.com/gotd/td/bin.Decoder *MessagesGetWebPagePreviewRequest : github.com/gotd/td/bin.Encoder *MessagesGetWebPagePreviewRequest : github.com/gotd/td/bin.Object *MessagesGetWebPagePreviewRequest : github.com/gotd/td/tdp.Object *MessagesGetWebPagePreviewRequest : fmt.Stringer func (*Client).MessagesGetWebPagePreview(ctx context.Context, request *MessagesGetWebPagePreviewRequest) (MessageMediaClass, error)
MessagesGetWebPageRequest represents TL type `messages.getWebPage#8d9692a3`. Get instant view¹ page Links: 1. https://instantview.telegram.org See https://core.telegram.org/method/messages.getWebPage for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation URL of IV page to fetch Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesGetWebPageRequest from given interface. GetHash returns value of Hash 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. (*MessagesGetWebPageRequest) Zero() bool *MessagesGetWebPageRequest : github.com/gotd/td/bin.BareDecoder *MessagesGetWebPageRequest : github.com/gotd/td/bin.BareEncoder *MessagesGetWebPageRequest : github.com/gotd/td/bin.Decoder *MessagesGetWebPageRequest : github.com/gotd/td/bin.Encoder *MessagesGetWebPageRequest : github.com/gotd/td/bin.Object *MessagesGetWebPageRequest : github.com/gotd/td/tdp.Object *MessagesGetWebPageRequest : fmt.Stringer func (*Client).MessagesGetWebPage(ctx context.Context, request *MessagesGetWebPageRequest) (*MessagesWebPage, error)
MessagesHideAllChatJoinRequestsRequest represents TL type `messages.hideAllChatJoinRequests#e085f4ea`. Dismiss or approve all join requests¹ related to a specific chat or channel. Links: 1. https://core.telegram.org/api/invites#join-requests See https://core.telegram.org/method/messages.hideAllChatJoinRequests for reference. Whether to dismiss or approve all chat join requests »¹ Links: 1) https://core.telegram.org/api/invites#join-requests Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Only dismiss or approve join requests »¹ initiated using this invite link Links: 1) https://core.telegram.org/api/invites#join-requests Use SetLink and GetLink helpers. The chat or channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesHideAllChatJoinRequestsRequest from given interface. GetApproved returns value of Approved conditional field. GetLink returns value of Link conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. SetApproved sets value of Approved conditional field. SetFlags sets flags for non-zero fields. SetLink sets value of Link 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. (*MessagesHideAllChatJoinRequestsRequest) Zero() bool *MessagesHideAllChatJoinRequestsRequest : github.com/gotd/td/bin.BareDecoder *MessagesHideAllChatJoinRequestsRequest : github.com/gotd/td/bin.BareEncoder *MessagesHideAllChatJoinRequestsRequest : github.com/gotd/td/bin.Decoder *MessagesHideAllChatJoinRequestsRequest : github.com/gotd/td/bin.Encoder *MessagesHideAllChatJoinRequestsRequest : github.com/gotd/td/bin.Object *MessagesHideAllChatJoinRequestsRequest : github.com/gotd/td/tdp.Object *MessagesHideAllChatJoinRequestsRequest : fmt.Stringer func (*Client).MessagesHideAllChatJoinRequests(ctx context.Context, request *MessagesHideAllChatJoinRequestsRequest) (UpdatesClass, error)
MessagesHideChatJoinRequestRequest represents TL type `messages.hideChatJoinRequest#7fe7e815`. Dismiss or approve a chat join request¹ related to a specific chat or channel. Links: 1. https://core.telegram.org/api/invites#join-requests See https://core.telegram.org/method/messages.hideChatJoinRequest for reference. Whether to dismiss or approve the chat join request »¹ Links: 1) https://core.telegram.org/api/invites#join-requests Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The chat or channel The user whose join request »¹ should be dismissed or approved Links: 1) https://core.telegram.org/api/invites#join-requests Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesHideChatJoinRequestRequest from given interface. GetApproved returns value of Approved conditional field. GetPeer returns value of Peer field. GetUserID returns value of UserID field. SetApproved sets value of Approved 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. (*MessagesHideChatJoinRequestRequest) Zero() bool *MessagesHideChatJoinRequestRequest : github.com/gotd/td/bin.BareDecoder *MessagesHideChatJoinRequestRequest : github.com/gotd/td/bin.BareEncoder *MessagesHideChatJoinRequestRequest : github.com/gotd/td/bin.Decoder *MessagesHideChatJoinRequestRequest : github.com/gotd/td/bin.Encoder *MessagesHideChatJoinRequestRequest : github.com/gotd/td/bin.Object *MessagesHideChatJoinRequestRequest : github.com/gotd/td/tdp.Object *MessagesHideChatJoinRequestRequest : fmt.Stringer func (*Client).MessagesHideChatJoinRequest(ctx context.Context, request *MessagesHideChatJoinRequestRequest) (UpdatesClass, error)
MessagesHidePeerSettingsBarRequest represents TL type `messages.hidePeerSettingsBar#4facb138`. Should be called after the user hides the report spam/add as contact bar¹ of a new chat, effectively prevents the user from executing the actions specified in the action bar »². Links: 1. https://core.telegram.org/api/action-bar 2. https://core.telegram.org/api/action-bar See https://core.telegram.org/method/messages.hidePeerSettingsBar for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesHidePeerSettingsBarRequest 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. (*MessagesHidePeerSettingsBarRequest) Zero() bool *MessagesHidePeerSettingsBarRequest : github.com/gotd/td/bin.BareDecoder *MessagesHidePeerSettingsBarRequest : github.com/gotd/td/bin.BareEncoder *MessagesHidePeerSettingsBarRequest : github.com/gotd/td/bin.Decoder *MessagesHidePeerSettingsBarRequest : github.com/gotd/td/bin.Encoder *MessagesHidePeerSettingsBarRequest : github.com/gotd/td/bin.Object *MessagesHidePeerSettingsBarRequest : github.com/gotd/td/tdp.Object *MessagesHidePeerSettingsBarRequest : fmt.Stringer
MessagesHighScores represents TL type `messages.highScores#9a3bfd99`. Highscores in a game See https://core.telegram.org/constructor/messages.highScores for reference. Highscores Users, associated to the highscores Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesHighScores from given interface. GetScores returns value of Scores 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. (*MessagesHighScores) Zero() bool *MessagesHighScores : github.com/gotd/td/bin.BareDecoder *MessagesHighScores : github.com/gotd/td/bin.BareEncoder *MessagesHighScores : github.com/gotd/td/bin.Decoder *MessagesHighScores : github.com/gotd/td/bin.Encoder *MessagesHighScores : github.com/gotd/td/bin.Object *MessagesHighScores : github.com/gotd/td/tdp.Object *MessagesHighScores : fmt.Stringer func (*Client).MessagesGetGameHighScores(ctx context.Context, request *MessagesGetGameHighScoresRequest) (*MessagesHighScores, error) func (*Client).MessagesGetInlineGameHighScores(ctx context.Context, request *MessagesGetInlineGameHighScoresRequest) (*MessagesHighScores, error)
MessagesHistoryImport represents TL type `messages.historyImport#1662af0b`. ID of a specific chat import session, click here for more info »¹. Links: 1. https://core.telegram.org/api/import See https://core.telegram.org/constructor/messages.historyImport for reference. Takeout ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesHistoryImport 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. (*MessagesHistoryImport) Zero() bool *MessagesHistoryImport : github.com/gotd/td/bin.BareDecoder *MessagesHistoryImport : github.com/gotd/td/bin.BareEncoder *MessagesHistoryImport : github.com/gotd/td/bin.Decoder *MessagesHistoryImport : github.com/gotd/td/bin.Encoder *MessagesHistoryImport : github.com/gotd/td/bin.Object *MessagesHistoryImport : github.com/gotd/td/tdp.Object *MessagesHistoryImport : fmt.Stringer func (*Client).MessagesInitHistoryImport(ctx context.Context, request *MessagesInitHistoryImportRequest) (*MessagesHistoryImport, error)
MessagesHistoryImportParsed represents TL type `messages.historyImportParsed#5e0fb7b9`. Contains information about a chat export file generated by a foreign chat app, click here for more info¹. If neither the pm or group flags are set, the specified chat export was generated from a chat of unknown type. Links: 1. https://core.telegram.org/api/import See https://core.telegram.org/constructor/messages.historyImportParsed for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The chat export file was generated from a group chat. The chat export file was generated from a private chat. Title of the chat. Use SetTitle and GetTitle helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesHistoryImportParsed from given interface. GetGroup returns value of Group conditional field. GetPm returns value of Pm conditional field. GetTitle returns value of Title conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetGroup sets value of Group conditional field. SetPm sets value of Pm 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. (*MessagesHistoryImportParsed) Zero() bool *MessagesHistoryImportParsed : github.com/gotd/td/bin.BareDecoder *MessagesHistoryImportParsed : github.com/gotd/td/bin.BareEncoder *MessagesHistoryImportParsed : github.com/gotd/td/bin.Decoder *MessagesHistoryImportParsed : github.com/gotd/td/bin.Encoder *MessagesHistoryImportParsed : github.com/gotd/td/bin.Object *MessagesHistoryImportParsed : github.com/gotd/td/tdp.Object *MessagesHistoryImportParsed : fmt.Stringer func (*Client).MessagesCheckHistoryImport(ctx context.Context, importhead string) (*MessagesHistoryImportParsed, error)
MessagesImportChatInviteRequest represents TL type `messages.importChatInvite#6c50051c`. Import a chat invite and join a private chat/supergroup/channel See https://core.telegram.org/method/messages.importChatInvite for reference. Invite hash from chat invite deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-invite-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesImportChatInviteRequest 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. (*MessagesImportChatInviteRequest) Zero() bool *MessagesImportChatInviteRequest : github.com/gotd/td/bin.BareDecoder *MessagesImportChatInviteRequest : github.com/gotd/td/bin.BareEncoder *MessagesImportChatInviteRequest : github.com/gotd/td/bin.Decoder *MessagesImportChatInviteRequest : github.com/gotd/td/bin.Encoder *MessagesImportChatInviteRequest : github.com/gotd/td/bin.Object *MessagesImportChatInviteRequest : github.com/gotd/td/tdp.Object *MessagesImportChatInviteRequest : fmt.Stringer
MessagesInactiveChats represents TL type `messages.inactiveChats#a927fec5`. Inactive chat list See https://core.telegram.org/constructor/messages.inactiveChats for reference. Chat list When was the chat last active Users mentioned in the chat list Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesInactiveChats from given interface. GetChats returns value of Chats field. GetDates returns value of Dates field. GetUsers returns value of Users 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. (*MessagesInactiveChats) Zero() bool *MessagesInactiveChats : github.com/gotd/td/bin.BareDecoder *MessagesInactiveChats : github.com/gotd/td/bin.BareEncoder *MessagesInactiveChats : github.com/gotd/td/bin.Decoder *MessagesInactiveChats : github.com/gotd/td/bin.Encoder *MessagesInactiveChats : github.com/gotd/td/bin.Object *MessagesInactiveChats : github.com/gotd/td/tdp.Object *MessagesInactiveChats : fmt.Stringer func (*Client).ChannelsGetInactiveChannels(ctx context.Context) (*MessagesInactiveChats, error)
MessagesInitHistoryImportRequest represents TL type `messages.initHistoryImport#34090c3b`. Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats »¹. Links: 1. https://core.telegram.org/api/import See https://core.telegram.org/method/messages.initHistoryImport for reference. File with messages to import. Number of media files associated with the chat that will be uploaded using messages uploadImportedMedia¹. Links: 1) https://core.telegram.org/method/messages.uploadImportedMedia The Telegram chat where the history should be imported¹. Links: 1) https://core.telegram.org/api/import Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesInitHistoryImportRequest from given interface. GetFile returns value of File field. GetMediaCount returns value of MediaCount 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. (*MessagesInitHistoryImportRequest) Zero() bool *MessagesInitHistoryImportRequest : github.com/gotd/td/bin.BareDecoder *MessagesInitHistoryImportRequest : github.com/gotd/td/bin.BareEncoder *MessagesInitHistoryImportRequest : github.com/gotd/td/bin.Decoder *MessagesInitHistoryImportRequest : github.com/gotd/td/bin.Encoder *MessagesInitHistoryImportRequest : github.com/gotd/td/bin.Object *MessagesInitHistoryImportRequest : github.com/gotd/td/tdp.Object *MessagesInitHistoryImportRequest : fmt.Stringer func (*Client).MessagesInitHistoryImport(ctx context.Context, request *MessagesInitHistoryImportRequest) (*MessagesHistoryImport, error)
MessagesInstallStickerSetRequest represents TL type `messages.installStickerSet#c78fe460`. Install a stickerset See https://core.telegram.org/method/messages.installStickerSet for reference. Whether to archive stickerset Stickerset to install Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesInstallStickerSetRequest from given interface. GetArchived returns value of Archived field. GetStickerset returns value of Stickerset 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. (*MessagesInstallStickerSetRequest) Zero() bool *MessagesInstallStickerSetRequest : github.com/gotd/td/bin.BareDecoder *MessagesInstallStickerSetRequest : github.com/gotd/td/bin.BareEncoder *MessagesInstallStickerSetRequest : github.com/gotd/td/bin.Decoder *MessagesInstallStickerSetRequest : github.com/gotd/td/bin.Encoder *MessagesInstallStickerSetRequest : github.com/gotd/td/bin.Object *MessagesInstallStickerSetRequest : github.com/gotd/td/tdp.Object *MessagesInstallStickerSetRequest : fmt.Stringer func (*Client).MessagesInstallStickerSet(ctx context.Context, request *MessagesInstallStickerSetRequest) (MessagesStickerSetInstallResultClass, error)
MessagesMarkDialogUnreadRequest represents TL type `messages.markDialogUnread#c286d98f`. Manually mark dialog as unread See https://core.telegram.org/method/messages.markDialogUnread for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Dialog Mark as unread/read Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesMarkDialogUnreadRequest from given interface. GetPeer returns value of Peer field. GetUnread returns value of Unread conditional field. SetFlags sets flags for non-zero fields. SetUnread sets value of Unread 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. (*MessagesMarkDialogUnreadRequest) Zero() bool *MessagesMarkDialogUnreadRequest : github.com/gotd/td/bin.BareDecoder *MessagesMarkDialogUnreadRequest : github.com/gotd/td/bin.BareEncoder *MessagesMarkDialogUnreadRequest : github.com/gotd/td/bin.Decoder *MessagesMarkDialogUnreadRequest : github.com/gotd/td/bin.Encoder *MessagesMarkDialogUnreadRequest : github.com/gotd/td/bin.Object *MessagesMarkDialogUnreadRequest : github.com/gotd/td/tdp.Object *MessagesMarkDialogUnreadRequest : fmt.Stringer func (*Client).MessagesMarkDialogUnread(ctx context.Context, request *MessagesMarkDialogUnreadRequest) (bool, error)
MessagesMessageEditData represents TL type `messages.messageEditData#26b5dde6`. Message edit data for media See https://core.telegram.org/constructor/messages.messageEditData for reference. Media caption, if the specified media's caption can be edited 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 MessagesMessageEditData from given interface. GetCaption returns value of Caption conditional field. SetCaption sets value of Caption 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. (*MessagesMessageEditData) Zero() bool *MessagesMessageEditData : github.com/gotd/td/bin.BareDecoder *MessagesMessageEditData : github.com/gotd/td/bin.BareEncoder *MessagesMessageEditData : github.com/gotd/td/bin.Decoder *MessagesMessageEditData : github.com/gotd/td/bin.Encoder *MessagesMessageEditData : github.com/gotd/td/bin.Object *MessagesMessageEditData : github.com/gotd/td/tdp.Object *MessagesMessageEditData : fmt.Stringer func (*Client).MessagesGetMessageEditData(ctx context.Context, request *MessagesGetMessageEditDataRequest) (*MessagesMessageEditData, error)
MessagesMessageReactionsList represents TL type `messages.messageReactionsList#31bd492d`. List of peers that reacted to a specific message See https://core.telegram.org/constructor/messages.messageReactionsList for reference. Mentioned chats Total number of reactions matching query Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, indicates the next offset to use to load more results by invoking messages getMessageReactionsList¹. Links: 1) https://core.telegram.org/method/messages.getMessageReactionsList Use SetNextOffset and GetNextOffset helpers. List of peers that reacted to a specific message Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesMessageReactionsList from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set. GetReactions returns value of Reactions field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray 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. (*MessagesMessageReactionsList) Zero() bool *MessagesMessageReactionsList : github.com/gotd/td/bin.BareDecoder *MessagesMessageReactionsList : github.com/gotd/td/bin.BareEncoder *MessagesMessageReactionsList : github.com/gotd/td/bin.Decoder *MessagesMessageReactionsList : github.com/gotd/td/bin.Encoder *MessagesMessageReactionsList : github.com/gotd/td/bin.Object *MessagesMessageReactionsList : github.com/gotd/td/tdp.Object *MessagesMessageReactionsList : fmt.Stringer func (*Client).MessagesGetMessageReactionsList(ctx context.Context, request *MessagesGetMessageReactionsListRequest) (*MessagesMessageReactionsList, error)
MessagesMessages represents TL type `messages.messages#8c718e87`. Full list of messages with auxiliary data. See https://core.telegram.org/constructor/messages.messages for reference. List of chats mentioned in dialogs List of messages List of users mentioned in messages and chats AsModified tries to map MessagesMessages to ModifiedMessagesMessages. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesMessages from given interface. GetChats returns value of Chats field. GetMessages returns value of Messages field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray 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. (*MessagesMessages) Zero() bool *MessagesMessages : MessagesMessagesClass *MessagesMessages : ModifiedMessagesMessages *MessagesMessages : github.com/gotd/td/bin.BareDecoder *MessagesMessages : github.com/gotd/td/bin.BareEncoder *MessagesMessages : github.com/gotd/td/bin.Decoder *MessagesMessages : github.com/gotd/td/bin.Encoder *MessagesMessages : github.com/gotd/td/bin.Object *MessagesMessages : github.com/gotd/td/tdp.Object *MessagesMessages : fmt.Stringer func MessagesMessagesArray.First() (v MessagesMessages, ok bool) func MessagesMessagesArray.Last() (v MessagesMessages, ok bool) func (*MessagesMessagesArray).Pop() (v MessagesMessages, ok bool) func (*MessagesMessagesArray).PopFirst() (v MessagesMessages, ok bool)
MessagesMessagesArray is adapter for slice of MessagesMessages. 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 MessagesMessages. Sort sorts slice of MessagesMessages. SortStable sorts slice of MessagesMessages. func MessagesMessagesArray.Retain(keep func(x MessagesMessages) bool) MessagesMessagesArray func MessagesMessagesArray.Sort(less func(a, b MessagesMessages) bool) MessagesMessagesArray func MessagesMessagesArray.SortStable(less func(a, b MessagesMessages) bool) MessagesMessagesArray func MessagesMessagesClassArray.AsMessagesMessages() (to MessagesMessagesArray)
MessagesMessages boxes the MessagesMessagesClass providing a helper. Messages MessagesMessagesClass Decode implements bin.Decoder for MessagesMessagesBox. Encode implements bin.Encode for MessagesMessagesBox. *MessagesMessagesBox : github.com/gotd/td/bin.Decoder *MessagesMessagesBox : github.com/gotd/td/bin.Encoder *MessagesMessagesBox : github.com/gotd/td/bin.Object
MessagesMessagesClass represents messages.Messages generic type. See https://core.telegram.org/type/messages.Messages for reference. Example: g, err := tg.DecodeMessagesMessages(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesMessages: // messages.messages#8c718e87 case *tg.MessagesMessagesSlice: // messages.messagesSlice#3a54685e case *tg.MessagesChannelMessages: // messages.channelMessages#c776ba4e case *tg.MessagesMessagesNotModified: // messages.messagesNotModified#74535f21 default: panic(v) } AsModified tries to map MessagesMessagesClass to ModifiedMessagesMessages. ( MessagesMessagesClass) Decode(b *bin.Buffer) error ( MessagesMessagesClass) DecodeBare(b *bin.Buffer) error ( MessagesMessagesClass) Encode(b *bin.Buffer) error ( MessagesMessagesClass) 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. *MessagesChannelMessages *MessagesMessages *MessagesMessagesNotModified *MessagesMessagesSlice MessagesMessagesClass : github.com/gotd/td/bin.BareDecoder MessagesMessagesClass : github.com/gotd/td/bin.BareEncoder MessagesMessagesClass : github.com/gotd/td/bin.Decoder MessagesMessagesClass : github.com/gotd/td/bin.Encoder MessagesMessagesClass : github.com/gotd/td/bin.Object MessagesMessagesClass : fmt.Stringer func DecodeMessagesMessages(buf *bin.Buffer) (MessagesMessagesClass, error) func (*Client).ChannelsGetMessages(ctx context.Context, request *ChannelsGetMessagesRequest) (MessagesMessagesClass, error) func (*Client).MessagesGetHistory(ctx context.Context, request *MessagesGetHistoryRequest) (MessagesMessagesClass, error) func (*Client).MessagesGetMessages(ctx context.Context, id []InputMessageClass) (MessagesMessagesClass, error) func (*Client).MessagesGetRecentLocations(ctx context.Context, request *MessagesGetRecentLocationsRequest) (MessagesMessagesClass, error) func (*Client).MessagesGetReplies(ctx context.Context, request *MessagesGetRepliesRequest) (MessagesMessagesClass, error) func (*Client).MessagesGetScheduledHistory(ctx context.Context, request *MessagesGetScheduledHistoryRequest) (MessagesMessagesClass, error) func (*Client).MessagesGetScheduledMessages(ctx context.Context, request *MessagesGetScheduledMessagesRequest) (MessagesMessagesClass, error) func (*Client).MessagesGetUnreadMentions(ctx context.Context, request *MessagesGetUnreadMentionsRequest) (MessagesMessagesClass, error) func (*Client).MessagesGetUnreadReactions(ctx context.Context, request *MessagesGetUnreadReactionsRequest) (MessagesMessagesClass, error) func (*Client).MessagesSearch(ctx context.Context, request *MessagesSearchRequest) (MessagesMessagesClass, error) func (*Client).MessagesSearchGlobal(ctx context.Context, request *MessagesSearchGlobalRequest) (MessagesMessagesClass, error) func (*Client).MessagesSearchSentMedia(ctx context.Context, request *MessagesSearchSentMediaRequest) (MessagesMessagesClass, error) func MessagesMessagesClassArray.First() (v MessagesMessagesClass, ok bool) func MessagesMessagesClassArray.Last() (v MessagesMessagesClass, ok bool) func (*MessagesMessagesClassArray).Pop() (v MessagesMessagesClass, ok bool) func (*MessagesMessagesClassArray).PopFirst() (v MessagesMessagesClass, ok bool)
MessagesMessagesClassArray is adapter for slice of MessagesMessagesClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesChannelMessages returns copy with only MessagesChannelMessages constructors. AsMessagesMessages returns copy with only MessagesMessages constructors. AsMessagesMessagesNotModified returns copy with only MessagesMessagesNotModified constructors. AsMessagesMessagesSlice returns copy with only MessagesMessagesSlice 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 MessagesMessagesClass. Sort sorts slice of MessagesMessagesClass. SortStable sorts slice of MessagesMessagesClass. func MessagesMessagesClassArray.Retain(keep func(x MessagesMessagesClass) bool) MessagesMessagesClassArray func MessagesMessagesClassArray.Sort(less func(a, b MessagesMessagesClass) bool) MessagesMessagesClassArray func MessagesMessagesClassArray.SortStable(less func(a, b MessagesMessagesClass) bool) MessagesMessagesClassArray
MessagesMessagesNotModified represents TL type `messages.messagesNotModified#74535f21`. No new messages matching the query were found See https://core.telegram.org/constructor/messages.messagesNotModified for reference. Number of dialogs found server-side by the query AsModified tries to map MessagesMessagesNotModified to ModifiedMessagesMessages. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesMessagesNotModified from given interface. GetCount returns value of Count 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. (*MessagesMessagesNotModified) Zero() bool *MessagesMessagesNotModified : MessagesMessagesClass *MessagesMessagesNotModified : github.com/gotd/td/bin.BareDecoder *MessagesMessagesNotModified : github.com/gotd/td/bin.BareEncoder *MessagesMessagesNotModified : github.com/gotd/td/bin.Decoder *MessagesMessagesNotModified : github.com/gotd/td/bin.Encoder *MessagesMessagesNotModified : github.com/gotd/td/bin.Object *MessagesMessagesNotModified : github.com/gotd/td/tdp.Object *MessagesMessagesNotModified : fmt.Stringer func MessagesMessagesNotModifiedArray.First() (v MessagesMessagesNotModified, ok bool) func MessagesMessagesNotModifiedArray.Last() (v MessagesMessagesNotModified, ok bool) func (*MessagesMessagesNotModifiedArray).Pop() (v MessagesMessagesNotModified, ok bool) func (*MessagesMessagesNotModifiedArray).PopFirst() (v MessagesMessagesNotModified, ok bool)
MessagesMessagesNotModifiedArray is adapter for slice of MessagesMessagesNotModified. 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 MessagesMessagesNotModified. Sort sorts slice of MessagesMessagesNotModified. SortStable sorts slice of MessagesMessagesNotModified. func MessagesMessagesClassArray.AsMessagesMessagesNotModified() (to MessagesMessagesNotModifiedArray) func MessagesMessagesNotModifiedArray.Retain(keep func(x MessagesMessagesNotModified) bool) MessagesMessagesNotModifiedArray func MessagesMessagesNotModifiedArray.Sort(less func(a, b MessagesMessagesNotModified) bool) MessagesMessagesNotModifiedArray func MessagesMessagesNotModifiedArray.SortStable(less func(a, b MessagesMessagesNotModified) bool) MessagesMessagesNotModifiedArray
MessagesMessagesSlice represents TL type `messages.messagesSlice#3a54685e`. Incomplete list of messages and auxiliary data. See https://core.telegram.org/constructor/messages.messagesSlice for reference. List of chats mentioned in messages Total number of messages in the list Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, indicates that the results may be inexact List of messages Rate to use in the offset_rate parameter in the next call to messages.searchGlobal¹ Links: 1) https://core.telegram.org/method/messages.searchGlobal Use SetNextRate and GetNextRate helpers. Indicates the absolute position of messages[0] within the total result set with count count. This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}. Use SetOffsetIDOffset and GetOffsetIDOffset helpers. List of users mentioned in messages and chats AsModified tries to map MessagesMessagesSlice to ModifiedMessagesMessages. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesMessagesSlice from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetInexact returns value of Inexact conditional field. GetMessages returns value of Messages field. GetNextRate returns value of NextRate conditional field and boolean which is true if field was set. GetOffsetIDOffset returns value of OffsetIDOffset conditional field and boolean which is true if field was set. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetInexact sets value of Inexact conditional field. SetNextRate sets value of NextRate conditional field. SetOffsetIDOffset sets value of OffsetIDOffset 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. (*MessagesMessagesSlice) Zero() bool *MessagesMessagesSlice : MessagesMessagesClass *MessagesMessagesSlice : ModifiedMessagesMessages *MessagesMessagesSlice : github.com/gotd/td/bin.BareDecoder *MessagesMessagesSlice : github.com/gotd/td/bin.BareEncoder *MessagesMessagesSlice : github.com/gotd/td/bin.Decoder *MessagesMessagesSlice : github.com/gotd/td/bin.Encoder *MessagesMessagesSlice : github.com/gotd/td/bin.Object *MessagesMessagesSlice : github.com/gotd/td/tdp.Object *MessagesMessagesSlice : fmt.Stringer func MessagesMessagesSliceArray.First() (v MessagesMessagesSlice, ok bool) func MessagesMessagesSliceArray.Last() (v MessagesMessagesSlice, ok bool) func (*MessagesMessagesSliceArray).Pop() (v MessagesMessagesSlice, ok bool) func (*MessagesMessagesSliceArray).PopFirst() (v MessagesMessagesSlice, ok bool)
MessagesMessagesSliceArray is adapter for slice of MessagesMessagesSlice. 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 MessagesMessagesSlice. Sort sorts slice of MessagesMessagesSlice. SortStable sorts slice of MessagesMessagesSlice. func MessagesMessagesClassArray.AsMessagesMessagesSlice() (to MessagesMessagesSliceArray) func MessagesMessagesSliceArray.Retain(keep func(x MessagesMessagesSlice) bool) MessagesMessagesSliceArray func MessagesMessagesSliceArray.Sort(less func(a, b MessagesMessagesSlice) bool) MessagesMessagesSliceArray func MessagesMessagesSliceArray.SortStable(less func(a, b MessagesMessagesSlice) bool) MessagesMessagesSliceArray
MessagesMessageViews represents TL type `messages.messageViews#b6c4f543`. View, forward counter + info about replies See https://core.telegram.org/constructor/messages.messageViews for reference. Chats mentioned in constructor Users mentioned in constructor View, forward counter + info about replies Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesMessageViews from given interface. GetChats returns value of Chats field. GetUsers returns value of Users field. GetViews returns value of Views 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. (*MessagesMessageViews) Zero() bool *MessagesMessageViews : github.com/gotd/td/bin.BareDecoder *MessagesMessageViews : github.com/gotd/td/bin.BareEncoder *MessagesMessageViews : github.com/gotd/td/bin.Decoder *MessagesMessageViews : github.com/gotd/td/bin.Encoder *MessagesMessageViews : github.com/gotd/td/bin.Object *MessagesMessageViews : github.com/gotd/td/tdp.Object *MessagesMessageViews : fmt.Stringer func (*Client).MessagesGetMessagesViews(ctx context.Context, request *MessagesGetMessagesViewsRequest) (*MessagesMessageViews, error)
MessagesMigrateChatRequest represents TL type `messages.migrateChat#a2875319`. Turn a basic group into a supergroup¹ Links: 1. https://core.telegram.org/api/channel#migration See https://core.telegram.org/method/messages.migrateChat for reference. Chat identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesMigrateChatRequest from given interface. GetChatID returns value of ChatID 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. (*MessagesMigrateChatRequest) Zero() bool *MessagesMigrateChatRequest : github.com/gotd/td/bin.BareDecoder *MessagesMigrateChatRequest : github.com/gotd/td/bin.BareEncoder *MessagesMigrateChatRequest : github.com/gotd/td/bin.Decoder *MessagesMigrateChatRequest : github.com/gotd/td/bin.Encoder *MessagesMigrateChatRequest : github.com/gotd/td/bin.Object *MessagesMigrateChatRequest : github.com/gotd/td/tdp.Object *MessagesMigrateChatRequest : fmt.Stringer
MessagesPeerDialogs represents TL type `messages.peerDialogs#3371c354`. Dialog info of multiple peers See https://core.telegram.org/constructor/messages.peerDialogs for reference. Chats Dialog info Messages mentioned in dialog info Current update state of dialog¹ Links: 1) https://core.telegram.org/api/updates Users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesPeerDialogs from given interface. GetChats returns value of Chats field. GetDialogs returns value of Dialogs field. GetMessages returns value of Messages field. GetState returns value of State field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapDialogs returns field Dialogs wrapped in DialogClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray 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. (*MessagesPeerDialogs) Zero() bool *MessagesPeerDialogs : github.com/gotd/td/bin.BareDecoder *MessagesPeerDialogs : github.com/gotd/td/bin.BareEncoder *MessagesPeerDialogs : github.com/gotd/td/bin.Decoder *MessagesPeerDialogs : github.com/gotd/td/bin.Encoder *MessagesPeerDialogs : github.com/gotd/td/bin.Object *MessagesPeerDialogs : github.com/gotd/td/tdp.Object *MessagesPeerDialogs : fmt.Stringer func (*Client).MessagesGetPeerDialogs(ctx context.Context, peers []InputDialogPeerClass) (*MessagesPeerDialogs, error) func (*Client).MessagesGetPinnedDialogs(ctx context.Context, folderid int) (*MessagesPeerDialogs, error)
MessagesPeerSettings represents TL type `messages.peerSettings#6880b94d`. Peer settings See https://core.telegram.org/constructor/messages.peerSettings for reference. Mentioned chats Peer settings Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesPeerSettings from given interface. GetChats returns value of Chats field. GetSettings returns value of Settings field. GetUsers returns value of Users 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. (*MessagesPeerSettings) Zero() bool *MessagesPeerSettings : github.com/gotd/td/bin.BareDecoder *MessagesPeerSettings : github.com/gotd/td/bin.BareEncoder *MessagesPeerSettings : github.com/gotd/td/bin.Decoder *MessagesPeerSettings : github.com/gotd/td/bin.Encoder *MessagesPeerSettings : github.com/gotd/td/bin.Object *MessagesPeerSettings : github.com/gotd/td/tdp.Object *MessagesPeerSettings : fmt.Stringer func (*Client).MessagesGetPeerSettings(ctx context.Context, peer InputPeerClass) (*MessagesPeerSettings, error)
MessagesProlongWebViewRequest represents TL type `messages.prolongWebView#b0d81a83`. Indicate to the server (from the user side) that the user is still using a web app. If the method returns a QUERY_ID_INVALID error, the webview must be closed. See https://core.telegram.org/method/messages.prolongWebView for reference. Bot that owns the web app¹ Links: 1) https://core.telegram.org/api/bots/webapps Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Dialog where the web app was opened. Web app interaction ID obtained from messages.requestWebView¹ Links: 1) https://core.telegram.org/method/messages.requestWebView If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated¹ should be sent in reply to the specified message or story. Links: 1) https://core.telegram.org/method/messages.sendWebViewResultMessage Use SetReplyTo and GetReplyTo helpers. Open the web app as the specified peer Use SetSendAs and GetSendAs helpers. Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated¹ should be sent silently (no notifications for the receivers). Links: 1) https://core.telegram.org/method/messages.sendWebViewResultMessage Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesProlongWebViewRequest from given interface. GetBot returns value of Bot field. GetPeer returns value of Peer field. GetQueryID returns value of QueryID field. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetSendAs returns value of SendAs conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. SetFlags sets flags for non-zero fields. SetReplyTo sets value of ReplyTo conditional field. SetSendAs sets value of SendAs conditional field. SetSilent sets value of Silent 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. (*MessagesProlongWebViewRequest) Zero() bool *MessagesProlongWebViewRequest : github.com/gotd/td/bin.BareDecoder *MessagesProlongWebViewRequest : github.com/gotd/td/bin.BareEncoder *MessagesProlongWebViewRequest : github.com/gotd/td/bin.Decoder *MessagesProlongWebViewRequest : github.com/gotd/td/bin.Encoder *MessagesProlongWebViewRequest : github.com/gotd/td/bin.Object *MessagesProlongWebViewRequest : github.com/gotd/td/tdp.Object *MessagesProlongWebViewRequest : fmt.Stringer func (*Client).MessagesProlongWebView(ctx context.Context, request *MessagesProlongWebViewRequest) (bool, error)
MessagesRateTranscribedAudioRequest represents TL type `messages.rateTranscribedAudio#7f1d072f`. Rate transcribed voice message¹ Links: 1. https://core.telegram.org/api/transcribe See https://core.telegram.org/method/messages.rateTranscribedAudio for reference. Whether the transcription was correct Message ID Peer where the voice message was sent Transcription ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesRateTranscribedAudioRequest from given interface. GetGood returns value of Good field. GetMsgID returns value of MsgID field. GetPeer returns value of Peer field. GetTranscriptionID returns value of TranscriptionID 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. (*MessagesRateTranscribedAudioRequest) Zero() bool *MessagesRateTranscribedAudioRequest : github.com/gotd/td/bin.BareDecoder *MessagesRateTranscribedAudioRequest : github.com/gotd/td/bin.BareEncoder *MessagesRateTranscribedAudioRequest : github.com/gotd/td/bin.Decoder *MessagesRateTranscribedAudioRequest : github.com/gotd/td/bin.Encoder *MessagesRateTranscribedAudioRequest : github.com/gotd/td/bin.Object *MessagesRateTranscribedAudioRequest : github.com/gotd/td/tdp.Object *MessagesRateTranscribedAudioRequest : fmt.Stringer func (*Client).MessagesRateTranscribedAudio(ctx context.Context, request *MessagesRateTranscribedAudioRequest) (bool, error)
MessagesReactions represents TL type `messages.reactions#eafdf716`. List of message reactions¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/constructor/messages.reactions for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Reactions AsModified tries to map MessagesReactions to MessagesReactions. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReactions from given interface. GetHash returns value of Hash field. GetReactions returns value of Reactions field. MapReactions returns field Reactions wrapped in ReactionClassArray 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. (*MessagesReactions) Zero() bool *MessagesReactions : MessagesReactionsClass *MessagesReactions : github.com/gotd/td/bin.BareDecoder *MessagesReactions : github.com/gotd/td/bin.BareEncoder *MessagesReactions : github.com/gotd/td/bin.Decoder *MessagesReactions : github.com/gotd/td/bin.Encoder *MessagesReactions : github.com/gotd/td/bin.Object *MessagesReactions : github.com/gotd/td/tdp.Object *MessagesReactions : fmt.Stringer func (*MessagesReactions).AsModified() (*MessagesReactions, bool) func MessagesReactionsArray.First() (v MessagesReactions, ok bool) func MessagesReactionsArray.Last() (v MessagesReactions, ok bool) func (*MessagesReactionsArray).Pop() (v MessagesReactions, ok bool) func (*MessagesReactionsArray).PopFirst() (v MessagesReactions, ok bool) func MessagesReactionsClass.AsModified() (*MessagesReactions, bool) func MessagesReactionsClassArray.AppendOnlyModified(to []*MessagesReactions) []*MessagesReactions func MessagesReactionsClassArray.AsModified() (to []*MessagesReactions) func MessagesReactionsClassArray.FirstAsModified() (v *MessagesReactions, ok bool) func MessagesReactionsClassArray.LastAsModified() (v *MessagesReactions, ok bool) func (*MessagesReactionsClassArray).PopAsModified() (v *MessagesReactions, ok bool) func (*MessagesReactionsClassArray).PopFirstAsModified() (v *MessagesReactions, ok bool) func (*MessagesReactionsNotModified).AsModified() (*MessagesReactions, bool) func MessagesReactionsClassArray.AppendOnlyModified(to []*MessagesReactions) []*MessagesReactions
MessagesReactionsArray is adapter for slice of MessagesReactions. 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 MessagesReactions. Sort sorts slice of MessagesReactions. SortStable sorts slice of MessagesReactions. func MessagesReactionsArray.Retain(keep func(x MessagesReactions) bool) MessagesReactionsArray func MessagesReactionsArray.Sort(less func(a, b MessagesReactions) bool) MessagesReactionsArray func MessagesReactionsArray.SortStable(less func(a, b MessagesReactions) bool) MessagesReactionsArray func MessagesReactionsClassArray.AsMessagesReactions() (to MessagesReactionsArray)
MessagesReactions boxes the MessagesReactionsClass providing a helper. Reactions MessagesReactionsClass Decode implements bin.Decoder for MessagesReactionsBox. Encode implements bin.Encode for MessagesReactionsBox. *MessagesReactionsBox : github.com/gotd/td/bin.Decoder *MessagesReactionsBox : github.com/gotd/td/bin.Encoder *MessagesReactionsBox : github.com/gotd/td/bin.Object
MessagesReactionsClass represents messages.Reactions generic type. See https://core.telegram.org/type/messages.Reactions for reference. Example: g, err := tg.DecodeMessagesReactions(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesReactionsNotModified: // messages.reactionsNotModified#b06fdbdf case *tg.MessagesReactions: // messages.reactions#eafdf716 default: panic(v) } AsModified tries to map MessagesReactionsClass to MessagesReactions. ( MessagesReactionsClass) Decode(b *bin.Buffer) error ( MessagesReactionsClass) DecodeBare(b *bin.Buffer) error ( MessagesReactionsClass) Encode(b *bin.Buffer) error ( MessagesReactionsClass) 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. *MessagesReactions *MessagesReactionsNotModified MessagesReactionsClass : github.com/gotd/td/bin.BareDecoder MessagesReactionsClass : github.com/gotd/td/bin.BareEncoder MessagesReactionsClass : github.com/gotd/td/bin.Decoder MessagesReactionsClass : github.com/gotd/td/bin.Encoder MessagesReactionsClass : github.com/gotd/td/bin.Object MessagesReactionsClass : fmt.Stringer func DecodeMessagesReactions(buf *bin.Buffer) (MessagesReactionsClass, error) func (*Client).MessagesGetRecentReactions(ctx context.Context, request *MessagesGetRecentReactionsRequest) (MessagesReactionsClass, error) func (*Client).MessagesGetTopReactions(ctx context.Context, request *MessagesGetTopReactionsRequest) (MessagesReactionsClass, error) func MessagesReactionsClassArray.First() (v MessagesReactionsClass, ok bool) func MessagesReactionsClassArray.Last() (v MessagesReactionsClass, ok bool) func (*MessagesReactionsClassArray).Pop() (v MessagesReactionsClass, ok bool) func (*MessagesReactionsClassArray).PopFirst() (v MessagesReactionsClass, ok bool)
MessagesReactionsClassArray is adapter for slice of MessagesReactionsClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesReactions returns copy with only MessagesReactions 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 MessagesReactionsClass. Sort sorts slice of MessagesReactionsClass. SortStable sorts slice of MessagesReactionsClass. func MessagesReactionsClassArray.Retain(keep func(x MessagesReactionsClass) bool) MessagesReactionsClassArray func MessagesReactionsClassArray.Sort(less func(a, b MessagesReactionsClass) bool) MessagesReactionsClassArray func MessagesReactionsClassArray.SortStable(less func(a, b MessagesReactionsClass) bool) MessagesReactionsClassArray
MessagesReactionsNotModified represents TL type `messages.reactionsNotModified#b06fdbdf`. The server-side list of message reactions¹ hasn't changed Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/constructor/messages.reactionsNotModified for reference. AsModified tries to map MessagesReactionsNotModified to MessagesReactions. 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. (*MessagesReactionsNotModified) Zero() bool *MessagesReactionsNotModified : MessagesReactionsClass *MessagesReactionsNotModified : github.com/gotd/td/bin.BareDecoder *MessagesReactionsNotModified : github.com/gotd/td/bin.BareEncoder *MessagesReactionsNotModified : github.com/gotd/td/bin.Decoder *MessagesReactionsNotModified : github.com/gotd/td/bin.Encoder *MessagesReactionsNotModified : github.com/gotd/td/bin.Object *MessagesReactionsNotModified : github.com/gotd/td/tdp.Object *MessagesReactionsNotModified : fmt.Stringer
MessagesReadDiscussionRequest represents TL type `messages.readDiscussion#f731a9f4`. Mark a thread¹ as read Links: 1. https://core.telegram.org/api/threads See https://core.telegram.org/method/messages.readDiscussion for reference. ID of message that started the thread Group ID ID up to which thread messages were read Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReadDiscussionRequest from given interface. GetMsgID returns value of MsgID field. GetPeer returns value of Peer field. GetReadMaxID returns value of ReadMaxID 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. (*MessagesReadDiscussionRequest) Zero() bool *MessagesReadDiscussionRequest : github.com/gotd/td/bin.BareDecoder *MessagesReadDiscussionRequest : github.com/gotd/td/bin.BareEncoder *MessagesReadDiscussionRequest : github.com/gotd/td/bin.Decoder *MessagesReadDiscussionRequest : github.com/gotd/td/bin.Encoder *MessagesReadDiscussionRequest : github.com/gotd/td/bin.Object *MessagesReadDiscussionRequest : github.com/gotd/td/tdp.Object *MessagesReadDiscussionRequest : fmt.Stringer func (*Client).MessagesReadDiscussion(ctx context.Context, request *MessagesReadDiscussionRequest) (bool, error)
MessagesReadEncryptedHistoryRequest represents TL type `messages.readEncryptedHistory#7f4b690a`. Marks message history within a secret chat as read. See https://core.telegram.org/method/messages.readEncryptedHistory for reference. Maximum date value for received messages in history Secret chat ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReadEncryptedHistoryRequest from given interface. GetMaxDate returns value of MaxDate 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. (*MessagesReadEncryptedHistoryRequest) Zero() bool *MessagesReadEncryptedHistoryRequest : github.com/gotd/td/bin.BareDecoder *MessagesReadEncryptedHistoryRequest : github.com/gotd/td/bin.BareEncoder *MessagesReadEncryptedHistoryRequest : github.com/gotd/td/bin.Decoder *MessagesReadEncryptedHistoryRequest : github.com/gotd/td/bin.Encoder *MessagesReadEncryptedHistoryRequest : github.com/gotd/td/bin.Object *MessagesReadEncryptedHistoryRequest : github.com/gotd/td/tdp.Object *MessagesReadEncryptedHistoryRequest : fmt.Stringer func (*Client).MessagesReadEncryptedHistory(ctx context.Context, request *MessagesReadEncryptedHistoryRequest) (bool, error)
MessagesReadFeaturedStickersRequest represents TL type `messages.readFeaturedStickers#5b118126`. Mark new featured stickers as read See https://core.telegram.org/method/messages.readFeaturedStickers for reference. Full list of user IDs of close friends, see here¹ for more info. Links: 1) https://core.telegram.org/api/privacy Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReadFeaturedStickersRequest 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. (*MessagesReadFeaturedStickersRequest) Zero() bool *MessagesReadFeaturedStickersRequest : github.com/gotd/td/bin.BareDecoder *MessagesReadFeaturedStickersRequest : github.com/gotd/td/bin.BareEncoder *MessagesReadFeaturedStickersRequest : github.com/gotd/td/bin.Decoder *MessagesReadFeaturedStickersRequest : github.com/gotd/td/bin.Encoder *MessagesReadFeaturedStickersRequest : github.com/gotd/td/bin.Object *MessagesReadFeaturedStickersRequest : github.com/gotd/td/tdp.Object *MessagesReadFeaturedStickersRequest : fmt.Stringer
MessagesReadHistoryRequest represents TL type `messages.readHistory#e306d3a`. Marks message history as read. See https://core.telegram.org/method/messages.readHistory for reference. If a positive value is passed, only messages with identifiers less or equal than the given one will be read Target user or group Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReadHistoryRequest from given interface. GetMaxID returns value of MaxID 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. (*MessagesReadHistoryRequest) Zero() bool *MessagesReadHistoryRequest : github.com/gotd/td/bin.BareDecoder *MessagesReadHistoryRequest : github.com/gotd/td/bin.BareEncoder *MessagesReadHistoryRequest : github.com/gotd/td/bin.Decoder *MessagesReadHistoryRequest : github.com/gotd/td/bin.Encoder *MessagesReadHistoryRequest : github.com/gotd/td/bin.Object *MessagesReadHistoryRequest : github.com/gotd/td/tdp.Object *MessagesReadHistoryRequest : fmt.Stringer func (*Client).MessagesReadHistory(ctx context.Context, request *MessagesReadHistoryRequest) (*MessagesAffectedMessages, error)
MessagesReadMentionsRequest represents TL type `messages.readMentions#36e5bf4d`. Mark mentions as read See https://core.telegram.org/method/messages.readMentions for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Dialog Mark as read only mentions within the specified forum topic¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReadMentionsRequest from given interface. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*MessagesReadMentionsRequest) Zero() bool *MessagesReadMentionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesReadMentionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesReadMentionsRequest : github.com/gotd/td/bin.Decoder *MessagesReadMentionsRequest : github.com/gotd/td/bin.Encoder *MessagesReadMentionsRequest : github.com/gotd/td/bin.Object *MessagesReadMentionsRequest : github.com/gotd/td/tdp.Object *MessagesReadMentionsRequest : fmt.Stringer func (*Client).MessagesReadMentions(ctx context.Context, request *MessagesReadMentionsRequest) (*MessagesAffectedHistory, error)
MessagesReadMessageContentsRequest represents TL type `messages.readMessageContents#36a73f77`. Notifies the sender about the recipient having listened a voice message or watched a video. See https://core.telegram.org/method/messages.readMessageContents for reference. Message ID list Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReadMessageContentsRequest 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. (*MessagesReadMessageContentsRequest) Zero() bool *MessagesReadMessageContentsRequest : github.com/gotd/td/bin.BareDecoder *MessagesReadMessageContentsRequest : github.com/gotd/td/bin.BareEncoder *MessagesReadMessageContentsRequest : github.com/gotd/td/bin.Decoder *MessagesReadMessageContentsRequest : github.com/gotd/td/bin.Encoder *MessagesReadMessageContentsRequest : github.com/gotd/td/bin.Object *MessagesReadMessageContentsRequest : github.com/gotd/td/tdp.Object *MessagesReadMessageContentsRequest : fmt.Stringer
MessagesReadReactionsRequest represents TL type `messages.readReactions#54aa7f8e`. Mark message reactions »¹ as read Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.readReactions for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Dialog Mark as read only mentions within the specified forum topic¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReadReactionsRequest from given interface. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*MessagesReadReactionsRequest) Zero() bool *MessagesReadReactionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesReadReactionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesReadReactionsRequest : github.com/gotd/td/bin.Decoder *MessagesReadReactionsRequest : github.com/gotd/td/bin.Encoder *MessagesReadReactionsRequest : github.com/gotd/td/bin.Object *MessagesReadReactionsRequest : github.com/gotd/td/tdp.Object *MessagesReadReactionsRequest : fmt.Stringer func (*Client).MessagesReadReactions(ctx context.Context, request *MessagesReadReactionsRequest) (*MessagesAffectedHistory, error)
MessagesReceivedMessagesRequest represents TL type `messages.receivedMessages#5a954c0`. Confirms receipt of messages by a client, cancels PUSH-notification sending. See https://core.telegram.org/method/messages.receivedMessages for reference. Maximum message ID available in a client. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReceivedMessagesRequest from given interface. GetMaxID returns value of MaxID 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. (*MessagesReceivedMessagesRequest) Zero() bool *MessagesReceivedMessagesRequest : github.com/gotd/td/bin.BareDecoder *MessagesReceivedMessagesRequest : github.com/gotd/td/bin.BareEncoder *MessagesReceivedMessagesRequest : github.com/gotd/td/bin.Decoder *MessagesReceivedMessagesRequest : github.com/gotd/td/bin.Encoder *MessagesReceivedMessagesRequest : github.com/gotd/td/bin.Object *MessagesReceivedMessagesRequest : github.com/gotd/td/tdp.Object *MessagesReceivedMessagesRequest : fmt.Stringer
MessagesReceivedQueueRequest represents TL type `messages.receivedQueue#55a5bb66`. Confirms receipt of messages in a secret chat by client, cancels push notifications. The method returns a list of random_ids of messages for which push notifications were cancelled. See https://core.telegram.org/method/messages.receivedQueue for reference. Maximum qts value available at the client Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReceivedQueueRequest from given interface. GetMaxQts returns value of MaxQts 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. (*MessagesReceivedQueueRequest) Zero() bool *MessagesReceivedQueueRequest : github.com/gotd/td/bin.BareDecoder *MessagesReceivedQueueRequest : github.com/gotd/td/bin.BareEncoder *MessagesReceivedQueueRequest : github.com/gotd/td/bin.Decoder *MessagesReceivedQueueRequest : github.com/gotd/td/bin.Encoder *MessagesReceivedQueueRequest : github.com/gotd/td/bin.Object *MessagesReceivedQueueRequest : github.com/gotd/td/tdp.Object *MessagesReceivedQueueRequest : fmt.Stringer
MessagesRecentStickers represents TL type `messages.recentStickers#88d37c56`. Recently used stickers See https://core.telegram.org/constructor/messages.recentStickers for reference. When was each sticker last used Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Emojis associated to stickers Recent stickers AsModified tries to map MessagesRecentStickers to MessagesRecentStickers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesRecentStickers from given interface. GetDates returns value of Dates field. GetHash returns value of Hash field. GetPacks returns value of Packs field. GetStickers returns value of Stickers field. MapStickers returns field Stickers 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. (*MessagesRecentStickers) Zero() bool *MessagesRecentStickers : MessagesRecentStickersClass *MessagesRecentStickers : github.com/gotd/td/bin.BareDecoder *MessagesRecentStickers : github.com/gotd/td/bin.BareEncoder *MessagesRecentStickers : github.com/gotd/td/bin.Decoder *MessagesRecentStickers : github.com/gotd/td/bin.Encoder *MessagesRecentStickers : github.com/gotd/td/bin.Object *MessagesRecentStickers : github.com/gotd/td/tdp.Object *MessagesRecentStickers : fmt.Stringer func (*MessagesRecentStickers).AsModified() (*MessagesRecentStickers, bool) func MessagesRecentStickersArray.First() (v MessagesRecentStickers, ok bool) func MessagesRecentStickersArray.Last() (v MessagesRecentStickers, ok bool) func (*MessagesRecentStickersArray).Pop() (v MessagesRecentStickers, ok bool) func (*MessagesRecentStickersArray).PopFirst() (v MessagesRecentStickers, ok bool) func MessagesRecentStickersClass.AsModified() (*MessagesRecentStickers, bool) func MessagesRecentStickersClassArray.AppendOnlyModified(to []*MessagesRecentStickers) []*MessagesRecentStickers func MessagesRecentStickersClassArray.AsModified() (to []*MessagesRecentStickers) func MessagesRecentStickersClassArray.FirstAsModified() (v *MessagesRecentStickers, ok bool) func MessagesRecentStickersClassArray.LastAsModified() (v *MessagesRecentStickers, ok bool) func (*MessagesRecentStickersClassArray).PopAsModified() (v *MessagesRecentStickers, ok bool) func (*MessagesRecentStickersClassArray).PopFirstAsModified() (v *MessagesRecentStickers, ok bool) func (*MessagesRecentStickersNotModified).AsModified() (*MessagesRecentStickers, bool) func MessagesRecentStickersClassArray.AppendOnlyModified(to []*MessagesRecentStickers) []*MessagesRecentStickers
MessagesRecentStickersArray is adapter for slice of MessagesRecentStickers. 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 MessagesRecentStickers. Sort sorts slice of MessagesRecentStickers. SortStable sorts slice of MessagesRecentStickers. func MessagesRecentStickersArray.Retain(keep func(x MessagesRecentStickers) bool) MessagesRecentStickersArray func MessagesRecentStickersArray.Sort(less func(a, b MessagesRecentStickers) bool) MessagesRecentStickersArray func MessagesRecentStickersArray.SortStable(less func(a, b MessagesRecentStickers) bool) MessagesRecentStickersArray func MessagesRecentStickersClassArray.AsMessagesRecentStickers() (to MessagesRecentStickersArray)
MessagesRecentStickers boxes the MessagesRecentStickersClass providing a helper. RecentStickers MessagesRecentStickersClass Decode implements bin.Decoder for MessagesRecentStickersBox. Encode implements bin.Encode for MessagesRecentStickersBox. *MessagesRecentStickersBox : github.com/gotd/td/bin.Decoder *MessagesRecentStickersBox : github.com/gotd/td/bin.Encoder *MessagesRecentStickersBox : github.com/gotd/td/bin.Object
MessagesRecentStickersClass represents messages.RecentStickers generic type. See https://core.telegram.org/type/messages.RecentStickers for reference. Example: g, err := tg.DecodeMessagesRecentStickers(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesRecentStickersNotModified: // messages.recentStickersNotModified#b17f890 case *tg.MessagesRecentStickers: // messages.recentStickers#88d37c56 default: panic(v) } AsModified tries to map MessagesRecentStickersClass to MessagesRecentStickers. ( MessagesRecentStickersClass) Decode(b *bin.Buffer) error ( MessagesRecentStickersClass) DecodeBare(b *bin.Buffer) error ( MessagesRecentStickersClass) Encode(b *bin.Buffer) error ( MessagesRecentStickersClass) 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. *MessagesRecentStickers *MessagesRecentStickersNotModified MessagesRecentStickersClass : github.com/gotd/td/bin.BareDecoder MessagesRecentStickersClass : github.com/gotd/td/bin.BareEncoder MessagesRecentStickersClass : github.com/gotd/td/bin.Decoder MessagesRecentStickersClass : github.com/gotd/td/bin.Encoder MessagesRecentStickersClass : github.com/gotd/td/bin.Object MessagesRecentStickersClass : fmt.Stringer func DecodeMessagesRecentStickers(buf *bin.Buffer) (MessagesRecentStickersClass, error) func (*Client).MessagesGetRecentStickers(ctx context.Context, request *MessagesGetRecentStickersRequest) (MessagesRecentStickersClass, error) func MessagesRecentStickersClassArray.First() (v MessagesRecentStickersClass, ok bool) func MessagesRecentStickersClassArray.Last() (v MessagesRecentStickersClass, ok bool) func (*MessagesRecentStickersClassArray).Pop() (v MessagesRecentStickersClass, ok bool) func (*MessagesRecentStickersClassArray).PopFirst() (v MessagesRecentStickersClass, ok bool)
MessagesRecentStickersClassArray is adapter for slice of MessagesRecentStickersClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesRecentStickers returns copy with only MessagesRecentStickers 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 MessagesRecentStickersClass. Sort sorts slice of MessagesRecentStickersClass. SortStable sorts slice of MessagesRecentStickersClass. func MessagesRecentStickersClassArray.Retain(keep func(x MessagesRecentStickersClass) bool) MessagesRecentStickersClassArray func MessagesRecentStickersClassArray.Sort(less func(a, b MessagesRecentStickersClass) bool) MessagesRecentStickersClassArray func MessagesRecentStickersClassArray.SortStable(less func(a, b MessagesRecentStickersClass) bool) MessagesRecentStickersClassArray
MessagesRecentStickersNotModified represents TL type `messages.recentStickersNotModified#b17f890`. No new recent sticker was found See https://core.telegram.org/constructor/messages.recentStickersNotModified for reference. AsModified tries to map MessagesRecentStickersNotModified to MessagesRecentStickers. 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. (*MessagesRecentStickersNotModified) Zero() bool *MessagesRecentStickersNotModified : MessagesRecentStickersClass *MessagesRecentStickersNotModified : github.com/gotd/td/bin.BareDecoder *MessagesRecentStickersNotModified : github.com/gotd/td/bin.BareEncoder *MessagesRecentStickersNotModified : github.com/gotd/td/bin.Decoder *MessagesRecentStickersNotModified : github.com/gotd/td/bin.Encoder *MessagesRecentStickersNotModified : github.com/gotd/td/bin.Object *MessagesRecentStickersNotModified : github.com/gotd/td/tdp.Object *MessagesRecentStickersNotModified : fmt.Stringer
MessagesReorderPinnedDialogsRequest represents TL type `messages.reorderPinnedDialogs#3b1adf37`. Reorder pinned dialogs See https://core.telegram.org/method/messages.reorderPinnedDialogs for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders If set, dialogs pinned server-side but not present in the order field will be unpinned. New dialog order Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReorderPinnedDialogsRequest from given interface. GetFolderID returns value of FolderID field. GetForce returns value of Force conditional field. GetOrder returns value of Order field. MapOrder returns field Order wrapped in InputDialogPeerClassArray helper. SetFlags sets flags for non-zero fields. SetForce sets value of Force 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. (*MessagesReorderPinnedDialogsRequest) Zero() bool *MessagesReorderPinnedDialogsRequest : github.com/gotd/td/bin.BareDecoder *MessagesReorderPinnedDialogsRequest : github.com/gotd/td/bin.BareEncoder *MessagesReorderPinnedDialogsRequest : github.com/gotd/td/bin.Decoder *MessagesReorderPinnedDialogsRequest : github.com/gotd/td/bin.Encoder *MessagesReorderPinnedDialogsRequest : github.com/gotd/td/bin.Object *MessagesReorderPinnedDialogsRequest : github.com/gotd/td/tdp.Object *MessagesReorderPinnedDialogsRequest : fmt.Stringer func (*Client).MessagesReorderPinnedDialogs(ctx context.Context, request *MessagesReorderPinnedDialogsRequest) (bool, error)
MessagesReorderStickerSetsRequest represents TL type `messages.reorderStickerSets#78337739`. Reorder installed stickersets See https://core.telegram.org/method/messages.reorderStickerSets for reference. Reorder custom emoji stickersets¹ Links: 1) https://core.telegram.org/api/custom-emoji Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Reorder mask stickersets New stickerset order by stickerset IDs Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReorderStickerSetsRequest from given interface. GetEmojis returns value of Emojis conditional field. GetMasks returns value of Masks conditional field. GetOrder returns value of Order field. SetEmojis sets value of Emojis conditional field. SetFlags sets flags for non-zero fields. SetMasks sets value of Masks 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. (*MessagesReorderStickerSetsRequest) Zero() bool *MessagesReorderStickerSetsRequest : github.com/gotd/td/bin.BareDecoder *MessagesReorderStickerSetsRequest : github.com/gotd/td/bin.BareEncoder *MessagesReorderStickerSetsRequest : github.com/gotd/td/bin.Decoder *MessagesReorderStickerSetsRequest : github.com/gotd/td/bin.Encoder *MessagesReorderStickerSetsRequest : github.com/gotd/td/bin.Object *MessagesReorderStickerSetsRequest : github.com/gotd/td/tdp.Object *MessagesReorderStickerSetsRequest : fmt.Stringer func (*Client).MessagesReorderStickerSets(ctx context.Context, request *MessagesReorderStickerSetsRequest) (bool, error)
MessagesReportEncryptedSpamRequest represents TL type `messages.reportEncryptedSpam#4b0c8c0f`. Report a secret chat for spam See https://core.telegram.org/method/messages.reportEncryptedSpam for reference. The secret chat to report Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReportEncryptedSpamRequest 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. (*MessagesReportEncryptedSpamRequest) Zero() bool *MessagesReportEncryptedSpamRequest : github.com/gotd/td/bin.BareDecoder *MessagesReportEncryptedSpamRequest : github.com/gotd/td/bin.BareEncoder *MessagesReportEncryptedSpamRequest : github.com/gotd/td/bin.Decoder *MessagesReportEncryptedSpamRequest : github.com/gotd/td/bin.Encoder *MessagesReportEncryptedSpamRequest : github.com/gotd/td/bin.Object *MessagesReportEncryptedSpamRequest : github.com/gotd/td/tdp.Object *MessagesReportEncryptedSpamRequest : fmt.Stringer
MessagesReportReactionRequest represents TL type `messages.reportReaction#3f64c076`. Report a message reaction¹ Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.reportReaction for reference. Message ID Peer where the message was sent Peer that sent the reaction Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReportReactionRequest from given interface. GetID returns value of ID field. GetPeer returns value of Peer field. GetReactionPeer returns value of ReactionPeer 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. (*MessagesReportReactionRequest) Zero() bool *MessagesReportReactionRequest : github.com/gotd/td/bin.BareDecoder *MessagesReportReactionRequest : github.com/gotd/td/bin.BareEncoder *MessagesReportReactionRequest : github.com/gotd/td/bin.Decoder *MessagesReportReactionRequest : github.com/gotd/td/bin.Encoder *MessagesReportReactionRequest : github.com/gotd/td/bin.Object *MessagesReportReactionRequest : github.com/gotd/td/tdp.Object *MessagesReportReactionRequest : fmt.Stringer func (*Client).MessagesReportReaction(ctx context.Context, request *MessagesReportReactionRequest) (bool, error)
MessagesReportRequest represents TL type `messages.report#8953ab4e`. Report a message in a chat for violation of telegram's Terms of Service See https://core.telegram.org/method/messages.report for reference. IDs of messages to report Comment for report moderation Peer Why are these messages being reported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReportRequest from given interface. GetID returns value of ID field. 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. (*MessagesReportRequest) Zero() bool *MessagesReportRequest : github.com/gotd/td/bin.BareDecoder *MessagesReportRequest : github.com/gotd/td/bin.BareEncoder *MessagesReportRequest : github.com/gotd/td/bin.Decoder *MessagesReportRequest : github.com/gotd/td/bin.Encoder *MessagesReportRequest : github.com/gotd/td/bin.Object *MessagesReportRequest : github.com/gotd/td/tdp.Object *MessagesReportRequest : fmt.Stringer func (*Client).MessagesReport(ctx context.Context, request *MessagesReportRequest) (bool, error)
MessagesReportSpamRequest represents TL type `messages.reportSpam#cf1592db`. Report a new incoming chat for spam, if the peer settings¹ of the chat allow us to do that Links: 1. https://core.telegram.org/constructor/peerSettings See https://core.telegram.org/method/messages.reportSpam for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesReportSpamRequest 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. (*MessagesReportSpamRequest) Zero() bool *MessagesReportSpamRequest : github.com/gotd/td/bin.BareDecoder *MessagesReportSpamRequest : github.com/gotd/td/bin.BareEncoder *MessagesReportSpamRequest : github.com/gotd/td/bin.Decoder *MessagesReportSpamRequest : github.com/gotd/td/bin.Encoder *MessagesReportSpamRequest : github.com/gotd/td/bin.Object *MessagesReportSpamRequest : github.com/gotd/td/tdp.Object *MessagesReportSpamRequest : fmt.Stringer
MessagesRequestAppWebViewRequest represents TL type `messages.requestAppWebView#8c5a3b3c`. Open a bot mini app¹ from a named Mini App deep link², sending over user information after user confirmation. After calling this method, until the user closes the webview, messages prolongWebView¹ must be called every 60 seconds. Links: 1. https://core.telegram.org/bots/webapps 2. https://core.telegram.org/api/links#named-mini-app-links 3. https://core.telegram.org/method/messages.prolongWebView See https://core.telegram.org/method/messages.requestAppWebView for reference. The app obtained by invoking messages.getBotApp¹ as specified in the named Mini App deep link² docs. Links: 1) https://core.telegram.org/method/messages.getBotApp 2) https://core.telegram.org/api/links#named-mini-app-links Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead. Short name of the application; 0-64 English letters, digits, and underscores If the startapp query string parameter is present in the named Mini App deep link¹, pass it to start_param. Links: 1) https://core.telegram.org/api/links#named-mini-app-links Use SetStartParam and GetStartParam helpers. Theme parameters »¹ Links: 1) https://core.telegram.org/api/bots/webapps#theme-parameters Use SetThemeParams and GetThemeParams helpers. Set this flag if the bot is asking permission to send messages to the user as specified in the named Mini App deep link¹ docs, and the user agreed. Links: 1) https://core.telegram.org/api/links#named-mini-app-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesRequestAppWebViewRequest from given interface. GetApp returns value of App field. GetPeer returns value of Peer field. GetPlatform returns value of Platform field. GetStartParam returns value of StartParam conditional field and boolean which is true if field was set. GetThemeParams returns value of ThemeParams conditional field and boolean which is true if field was set. GetWriteAllowed returns value of WriteAllowed conditional field. SetFlags sets flags for non-zero fields. SetStartParam sets value of StartParam conditional field. SetThemeParams sets value of ThemeParams conditional field. SetWriteAllowed sets value of WriteAllowed 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. (*MessagesRequestAppWebViewRequest) Zero() bool *MessagesRequestAppWebViewRequest : github.com/gotd/td/bin.BareDecoder *MessagesRequestAppWebViewRequest : github.com/gotd/td/bin.BareEncoder *MessagesRequestAppWebViewRequest : github.com/gotd/td/bin.Decoder *MessagesRequestAppWebViewRequest : github.com/gotd/td/bin.Encoder *MessagesRequestAppWebViewRequest : github.com/gotd/td/bin.Object *MessagesRequestAppWebViewRequest : github.com/gotd/td/tdp.Object *MessagesRequestAppWebViewRequest : fmt.Stringer func (*Client).MessagesRequestAppWebView(ctx context.Context, request *MessagesRequestAppWebViewRequest) (*AppWebViewResultURL, error)
MessagesRequestEncryptionRequest represents TL type `messages.requestEncryption#f64daf43`. Sends a request to start a secret chat to the user. See https://core.telegram.org/method/messages.requestEncryption for reference. A = g ^ a mod p, see Wikipedia¹ Links: 1) https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange Unique client request ID required to prevent resending. This also doubles as the chat ID. User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesRequestEncryptionRequest from given interface. GetGA returns value of GA field. GetRandomID returns value of RandomID 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. (*MessagesRequestEncryptionRequest) Zero() bool *MessagesRequestEncryptionRequest : github.com/gotd/td/bin.BareDecoder *MessagesRequestEncryptionRequest : github.com/gotd/td/bin.BareEncoder *MessagesRequestEncryptionRequest : github.com/gotd/td/bin.Decoder *MessagesRequestEncryptionRequest : github.com/gotd/td/bin.Encoder *MessagesRequestEncryptionRequest : github.com/gotd/td/bin.Object *MessagesRequestEncryptionRequest : github.com/gotd/td/tdp.Object *MessagesRequestEncryptionRequest : fmt.Stringer func (*Client).MessagesRequestEncryption(ctx context.Context, request *MessagesRequestEncryptionRequest) (EncryptedChatClass, error)
MessagesRequestSimpleWebViewRequest represents TL type `messages.requestSimpleWebView#1a46500a`. Open a bot mini app¹. Links: 1. https://core.telegram.org/api/bots/webapps See https://core.telegram.org/method/messages.requestSimpleWebView for reference. Bot that owns the mini app Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Set this flag if opening the Mini App from the installed side menu entry »¹ or from a Mini App link »². Links: 1) https://core.telegram.org/api/bots/attach 2) https://core.telegram.org/api/links#mini-app-links Whether the webapp was opened by clicking on the switch_webview button shown on top of the inline results list returned by messages.getInlineBotResults¹. Links: 1) https://core.telegram.org/method/messages.getInlineBotResults Short name of the application; 0-64 English letters, digits, and underscores Start parameter, if opening from a Mini App link »¹. Links: 1) https://core.telegram.org/api/links#mini-app-links Use SetStartParam and GetStartParam helpers. Theme parameters »¹ Links: 1) https://core.telegram.org/api/bots/webapps#theme-parameters Use SetThemeParams and GetThemeParams helpers. Web app URL, if opening from a keyboard button or inline result Use SetURL and GetURL helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesRequestSimpleWebViewRequest from given interface. GetBot returns value of Bot field. GetFromSideMenu returns value of FromSideMenu conditional field. GetFromSwitchWebview returns value of FromSwitchWebview conditional field. GetPlatform returns value of Platform field. GetStartParam returns value of StartParam conditional field and boolean which is true if field was set. GetThemeParams returns value of ThemeParams conditional field and boolean which is true if field was set. GetURL returns value of URL conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetFromSideMenu sets value of FromSideMenu conditional field. SetFromSwitchWebview sets value of FromSwitchWebview conditional field. SetStartParam sets value of StartParam conditional field. SetThemeParams sets value of ThemeParams 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. (*MessagesRequestSimpleWebViewRequest) Zero() bool *MessagesRequestSimpleWebViewRequest : github.com/gotd/td/bin.BareDecoder *MessagesRequestSimpleWebViewRequest : github.com/gotd/td/bin.BareEncoder *MessagesRequestSimpleWebViewRequest : github.com/gotd/td/bin.Decoder *MessagesRequestSimpleWebViewRequest : github.com/gotd/td/bin.Encoder *MessagesRequestSimpleWebViewRequest : github.com/gotd/td/bin.Object *MessagesRequestSimpleWebViewRequest : github.com/gotd/td/tdp.Object *MessagesRequestSimpleWebViewRequest : fmt.Stringer func (*Client).MessagesRequestSimpleWebView(ctx context.Context, request *MessagesRequestSimpleWebViewRequest) (*SimpleWebViewResultURL, error)
MessagesRequestURLAuthRequest represents TL type `messages.requestUrlAuth#198fb446`. Get more info about a Seamless Telegram Login authorization request, for more info click here »¹ Links: 1. https://core.telegram.org/api/url-authorization See https://core.telegram.org/method/messages.requestUrlAuth for reference. The ID of the button with the authorization request Use SetButtonID and GetButtonID helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The message Use SetMsgID and GetMsgID helpers. Peer where the message is located Use SetPeer and GetPeer helpers. URL used for link URL authorization, click here for more info »¹ Links: 1) https://core.telegram.org/api/url-authorization#link-url-authorization Use SetURL and GetURL helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesRequestURLAuthRequest from given interface. GetButtonID returns value of ButtonID conditional field and boolean which is true if field was set. GetMsgID returns value of MsgID conditional field and boolean which is true if field was set. GetPeer returns value of Peer conditional field and boolean which is true if field was set. GetURL returns value of URL conditional field and boolean which is true if field was set. SetButtonID sets value of ButtonID conditional field. SetFlags sets flags for non-zero fields. SetMsgID sets value of MsgID conditional field. SetPeer sets value of Peer 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. (*MessagesRequestURLAuthRequest) Zero() bool *MessagesRequestURLAuthRequest : github.com/gotd/td/bin.BareDecoder *MessagesRequestURLAuthRequest : github.com/gotd/td/bin.BareEncoder *MessagesRequestURLAuthRequest : github.com/gotd/td/bin.Decoder *MessagesRequestURLAuthRequest : github.com/gotd/td/bin.Encoder *MessagesRequestURLAuthRequest : github.com/gotd/td/bin.Object *MessagesRequestURLAuthRequest : github.com/gotd/td/tdp.Object *MessagesRequestURLAuthRequest : fmt.Stringer func (*Client).MessagesRequestURLAuth(ctx context.Context, request *MessagesRequestURLAuthRequest) (URLAuthResultClass, error)
MessagesRequestWebViewRequest represents TL type `messages.requestWebView#269dc2c1`. Open a bot mini app¹, sending over user information after user confirmation. After calling this method, until the user closes the webview, messages prolongWebView¹ must be called every 60 seconds. Links: 1. https://core.telegram.org/bots/webapps 2. https://core.telegram.org/method/messages.prolongWebView See https://core.telegram.org/method/messages.requestWebView for reference. Bot that owns the web app¹ Links: 1) https://core.telegram.org/api/bots/webapps Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the webview was opened by clicking on the bot's menu button »¹. Links: 1) https://core.telegram.org/api/bots/menu Dialog where the web app is being opened, and where the resulting message will be sent (see the docs for more info »¹). Links: 1) https://core.telegram.org/api/bots/webapps Short name of the application; 0-64 English letters, digits, and underscores If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated¹ should be sent in reply to the specified message or story. Links: 1) https://core.telegram.org/method/messages.sendWebViewResultMessage Use SetReplyTo and GetReplyTo helpers. Open the web app as the specified peer, sending the resulting the message as the specified peer. Use SetSendAs and GetSendAs helpers. Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is terminated¹ should be sent silently (no notifications for the receivers). Links: 1) https://core.telegram.org/method/messages.sendWebViewResultMessage If the web app was opened from the attachment menu using a attachment menu deep link¹ start_param should contain the data from the startattach parameter. Links: 1) https://core.telegram.org/api/links#bot-attachment-or-side-menu-links Use SetStartParam and GetStartParam helpers. Theme parameters »¹ Links: 1) https://core.telegram.org/api/bots/webapps#theme-parameters Use SetThemeParams and GetThemeParams helpers. Web app URL¹ Links: 1) https://core.telegram.org/api/bots/webapps Use SetURL and GetURL helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesRequestWebViewRequest from given interface. GetBot returns value of Bot field. GetFromBotMenu returns value of FromBotMenu conditional field. GetPeer returns value of Peer field. GetPlatform returns value of Platform field. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetSendAs returns value of SendAs conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. GetStartParam returns value of StartParam conditional field and boolean which is true if field was set. GetThemeParams returns value of ThemeParams conditional field and boolean which is true if field was set. GetURL returns value of URL conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetFromBotMenu sets value of FromBotMenu conditional field. SetReplyTo sets value of ReplyTo conditional field. SetSendAs sets value of SendAs conditional field. SetSilent sets value of Silent conditional field. SetStartParam sets value of StartParam conditional field. SetThemeParams sets value of ThemeParams 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. (*MessagesRequestWebViewRequest) Zero() bool *MessagesRequestWebViewRequest : github.com/gotd/td/bin.BareDecoder *MessagesRequestWebViewRequest : github.com/gotd/td/bin.BareEncoder *MessagesRequestWebViewRequest : github.com/gotd/td/bin.Decoder *MessagesRequestWebViewRequest : github.com/gotd/td/bin.Encoder *MessagesRequestWebViewRequest : github.com/gotd/td/bin.Object *MessagesRequestWebViewRequest : github.com/gotd/td/tdp.Object *MessagesRequestWebViewRequest : fmt.Stringer func (*Client).MessagesRequestWebView(ctx context.Context, request *MessagesRequestWebViewRequest) (*WebViewResultURL, error)
MessagesSaveDefaultSendAsRequest represents TL type `messages.saveDefaultSendAs#ccfddf96`. Change the default peer that should be used when sending messages to a specific group See https://core.telegram.org/method/messages.saveDefaultSendAs for reference. Group The default peer that should be used when sending messages to the group Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSaveDefaultSendAsRequest from given interface. GetPeer returns value of Peer field. GetSendAs returns value of SendAs 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. (*MessagesSaveDefaultSendAsRequest) Zero() bool *MessagesSaveDefaultSendAsRequest : github.com/gotd/td/bin.BareDecoder *MessagesSaveDefaultSendAsRequest : github.com/gotd/td/bin.BareEncoder *MessagesSaveDefaultSendAsRequest : github.com/gotd/td/bin.Decoder *MessagesSaveDefaultSendAsRequest : github.com/gotd/td/bin.Encoder *MessagesSaveDefaultSendAsRequest : github.com/gotd/td/bin.Object *MessagesSaveDefaultSendAsRequest : github.com/gotd/td/tdp.Object *MessagesSaveDefaultSendAsRequest : fmt.Stringer func (*Client).MessagesSaveDefaultSendAs(ctx context.Context, request *MessagesSaveDefaultSendAsRequest) (bool, error)
MessagesSavedGifs represents TL type `messages.savedGifs#84a02a0d`. Saved gifs See https://core.telegram.org/constructor/messages.savedGifs for reference. List of saved gifs Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation AsModified tries to map MessagesSavedGifs to MessagesSavedGifs. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSavedGifs from given interface. GetGifs returns value of Gifs field. GetHash returns value of Hash field. MapGifs returns field Gifs 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. (*MessagesSavedGifs) Zero() bool *MessagesSavedGifs : MessagesSavedGifsClass *MessagesSavedGifs : github.com/gotd/td/bin.BareDecoder *MessagesSavedGifs : github.com/gotd/td/bin.BareEncoder *MessagesSavedGifs : github.com/gotd/td/bin.Decoder *MessagesSavedGifs : github.com/gotd/td/bin.Encoder *MessagesSavedGifs : github.com/gotd/td/bin.Object *MessagesSavedGifs : github.com/gotd/td/tdp.Object *MessagesSavedGifs : fmt.Stringer func (*MessagesSavedGifs).AsModified() (*MessagesSavedGifs, bool) func MessagesSavedGifsArray.First() (v MessagesSavedGifs, ok bool) func MessagesSavedGifsArray.Last() (v MessagesSavedGifs, ok bool) func (*MessagesSavedGifsArray).Pop() (v MessagesSavedGifs, ok bool) func (*MessagesSavedGifsArray).PopFirst() (v MessagesSavedGifs, ok bool) func MessagesSavedGifsClass.AsModified() (*MessagesSavedGifs, bool) func MessagesSavedGifsClassArray.AppendOnlyModified(to []*MessagesSavedGifs) []*MessagesSavedGifs func MessagesSavedGifsClassArray.AsModified() (to []*MessagesSavedGifs) func MessagesSavedGifsClassArray.FirstAsModified() (v *MessagesSavedGifs, ok bool) func MessagesSavedGifsClassArray.LastAsModified() (v *MessagesSavedGifs, ok bool) func (*MessagesSavedGifsClassArray).PopAsModified() (v *MessagesSavedGifs, ok bool) func (*MessagesSavedGifsClassArray).PopFirstAsModified() (v *MessagesSavedGifs, ok bool) func (*MessagesSavedGifsNotModified).AsModified() (*MessagesSavedGifs, bool) func MessagesSavedGifsClassArray.AppendOnlyModified(to []*MessagesSavedGifs) []*MessagesSavedGifs
MessagesSavedGifsArray is adapter for slice of MessagesSavedGifs. 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 MessagesSavedGifs. Sort sorts slice of MessagesSavedGifs. SortStable sorts slice of MessagesSavedGifs. func MessagesSavedGifsArray.Retain(keep func(x MessagesSavedGifs) bool) MessagesSavedGifsArray func MessagesSavedGifsArray.Sort(less func(a, b MessagesSavedGifs) bool) MessagesSavedGifsArray func MessagesSavedGifsArray.SortStable(less func(a, b MessagesSavedGifs) bool) MessagesSavedGifsArray func MessagesSavedGifsClassArray.AsMessagesSavedGifs() (to MessagesSavedGifsArray)
MessagesSavedGifs boxes the MessagesSavedGifsClass providing a helper. SavedGifs MessagesSavedGifsClass Decode implements bin.Decoder for MessagesSavedGifsBox. Encode implements bin.Encode for MessagesSavedGifsBox. *MessagesSavedGifsBox : github.com/gotd/td/bin.Decoder *MessagesSavedGifsBox : github.com/gotd/td/bin.Encoder *MessagesSavedGifsBox : github.com/gotd/td/bin.Object
MessagesSavedGifsClass represents messages.SavedGifs generic type. See https://core.telegram.org/type/messages.SavedGifs for reference. Example: g, err := tg.DecodeMessagesSavedGifs(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesSavedGifsNotModified: // messages.savedGifsNotModified#e8025ca2 case *tg.MessagesSavedGifs: // messages.savedGifs#84a02a0d default: panic(v) } AsModified tries to map MessagesSavedGifsClass to MessagesSavedGifs. ( MessagesSavedGifsClass) Decode(b *bin.Buffer) error ( MessagesSavedGifsClass) DecodeBare(b *bin.Buffer) error ( MessagesSavedGifsClass) Encode(b *bin.Buffer) error ( MessagesSavedGifsClass) 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. *MessagesSavedGifs *MessagesSavedGifsNotModified MessagesSavedGifsClass : github.com/gotd/td/bin.BareDecoder MessagesSavedGifsClass : github.com/gotd/td/bin.BareEncoder MessagesSavedGifsClass : github.com/gotd/td/bin.Decoder MessagesSavedGifsClass : github.com/gotd/td/bin.Encoder MessagesSavedGifsClass : github.com/gotd/td/bin.Object MessagesSavedGifsClass : fmt.Stringer func DecodeMessagesSavedGifs(buf *bin.Buffer) (MessagesSavedGifsClass, error) func (*Client).MessagesGetSavedGifs(ctx context.Context, hash int64) (MessagesSavedGifsClass, error) func MessagesSavedGifsClassArray.First() (v MessagesSavedGifsClass, ok bool) func MessagesSavedGifsClassArray.Last() (v MessagesSavedGifsClass, ok bool) func (*MessagesSavedGifsClassArray).Pop() (v MessagesSavedGifsClass, ok bool) func (*MessagesSavedGifsClassArray).PopFirst() (v MessagesSavedGifsClass, ok bool)
MessagesSavedGifsClassArray is adapter for slice of MessagesSavedGifsClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesSavedGifs returns copy with only MessagesSavedGifs 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 MessagesSavedGifsClass. Sort sorts slice of MessagesSavedGifsClass. SortStable sorts slice of MessagesSavedGifsClass. func MessagesSavedGifsClassArray.Retain(keep func(x MessagesSavedGifsClass) bool) MessagesSavedGifsClassArray func MessagesSavedGifsClassArray.Sort(less func(a, b MessagesSavedGifsClass) bool) MessagesSavedGifsClassArray func MessagesSavedGifsClassArray.SortStable(less func(a, b MessagesSavedGifsClass) bool) MessagesSavedGifsClassArray
MessagesSavedGifsNotModified represents TL type `messages.savedGifsNotModified#e8025ca2`. No new saved gifs were found See https://core.telegram.org/constructor/messages.savedGifsNotModified for reference. AsModified tries to map MessagesSavedGifsNotModified to MessagesSavedGifs. 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. (*MessagesSavedGifsNotModified) Zero() bool *MessagesSavedGifsNotModified : MessagesSavedGifsClass *MessagesSavedGifsNotModified : github.com/gotd/td/bin.BareDecoder *MessagesSavedGifsNotModified : github.com/gotd/td/bin.BareEncoder *MessagesSavedGifsNotModified : github.com/gotd/td/bin.Decoder *MessagesSavedGifsNotModified : github.com/gotd/td/bin.Encoder *MessagesSavedGifsNotModified : github.com/gotd/td/bin.Object *MessagesSavedGifsNotModified : github.com/gotd/td/tdp.Object *MessagesSavedGifsNotModified : fmt.Stringer
MessagesSaveDraftRequest represents TL type `messages.saveDraft#7ff3b806`. Save a message draft¹ associated to a chat. Links: 1. https://core.telegram.org/api/drafts See https://core.telegram.org/method/messages.saveDraft 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. Attached media Use SetMedia and GetMedia helpers. The draft Disable generation of the webpage preview Destination of the message that should be sent If set, indicates that the message should be sent in reply to the specified message or story. Use SetReplyTo and GetReplyTo helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSaveDraftRequest 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. GetMedia returns value of Media conditional field and boolean which is true if field was set. GetMessage returns value of Message field. GetNoWebpage returns value of NoWebpage conditional field. GetPeer returns value of Peer field. GetReplyTo returns value of ReplyTo 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. SetMedia sets value of Media conditional field. SetNoWebpage sets value of NoWebpage conditional field. SetReplyTo sets value of ReplyTo 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. (*MessagesSaveDraftRequest) Zero() bool *MessagesSaveDraftRequest : github.com/gotd/td/bin.BareDecoder *MessagesSaveDraftRequest : github.com/gotd/td/bin.BareEncoder *MessagesSaveDraftRequest : github.com/gotd/td/bin.Decoder *MessagesSaveDraftRequest : github.com/gotd/td/bin.Encoder *MessagesSaveDraftRequest : github.com/gotd/td/bin.Object *MessagesSaveDraftRequest : github.com/gotd/td/tdp.Object *MessagesSaveDraftRequest : fmt.Stringer func (*Client).MessagesSaveDraft(ctx context.Context, request *MessagesSaveDraftRequest) (bool, error)
MessagesSaveGifRequest represents TL type `messages.saveGif#327a30cb`. Add GIF to saved gifs list See https://core.telegram.org/method/messages.saveGif 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 MessagesSaveGifRequest 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. (*MessagesSaveGifRequest) Zero() bool *MessagesSaveGifRequest : github.com/gotd/td/bin.BareDecoder *MessagesSaveGifRequest : github.com/gotd/td/bin.BareEncoder *MessagesSaveGifRequest : github.com/gotd/td/bin.Decoder *MessagesSaveGifRequest : github.com/gotd/td/bin.Encoder *MessagesSaveGifRequest : github.com/gotd/td/bin.Object *MessagesSaveGifRequest : github.com/gotd/td/tdp.Object *MessagesSaveGifRequest : fmt.Stringer func (*Client).MessagesSaveGif(ctx context.Context, request *MessagesSaveGifRequest) (bool, error)
MessagesSaveRecentStickerRequest represents TL type `messages.saveRecentSticker#392718f8`. Add/remove sticker from recent stickers list See https://core.telegram.org/method/messages.saveRecentSticker for reference. Whether to add/remove stickers recently attached to photo or video files Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Sticker Whether to save or unsave the sticker Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSaveRecentStickerRequest from given interface. GetAttached returns value of Attached conditional field. GetID returns value of ID field. GetIDAsNotEmpty returns mapped value of ID field. GetUnsave returns value of Unsave field. SetAttached sets value of Attached 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. (*MessagesSaveRecentStickerRequest) Zero() bool *MessagesSaveRecentStickerRequest : github.com/gotd/td/bin.BareDecoder *MessagesSaveRecentStickerRequest : github.com/gotd/td/bin.BareEncoder *MessagesSaveRecentStickerRequest : github.com/gotd/td/bin.Decoder *MessagesSaveRecentStickerRequest : github.com/gotd/td/bin.Encoder *MessagesSaveRecentStickerRequest : github.com/gotd/td/bin.Object *MessagesSaveRecentStickerRequest : github.com/gotd/td/tdp.Object *MessagesSaveRecentStickerRequest : fmt.Stringer func (*Client).MessagesSaveRecentSticker(ctx context.Context, request *MessagesSaveRecentStickerRequest) (bool, error)
MessagesSearchCounter represents TL type `messages.searchCounter#e844ebff`. Indicates how many results would be found by a messages.search¹ call with the same parameters Links: 1. https://core.telegram.org/method/messages.search See https://core.telegram.org/constructor/messages.searchCounter for reference. Number of results that were found server-side Provided message filter Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, the results may be inexact Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSearchCounter from given interface. GetCount returns value of Count field. GetFilter returns value of Filter field. GetInexact returns value of Inexact conditional field. SetFlags sets flags for non-zero fields. SetInexact sets value of Inexact 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. (*MessagesSearchCounter) Zero() bool *MessagesSearchCounter : github.com/gotd/td/bin.BareDecoder *MessagesSearchCounter : github.com/gotd/td/bin.BareEncoder *MessagesSearchCounter : github.com/gotd/td/bin.Decoder *MessagesSearchCounter : github.com/gotd/td/bin.Encoder *MessagesSearchCounter : github.com/gotd/td/bin.Object *MessagesSearchCounter : github.com/gotd/td/tdp.Object *MessagesSearchCounter : fmt.Stringer func (*Client).MessagesGetSearchCounters(ctx context.Context, request *MessagesGetSearchCountersRequest) ([]MessagesSearchCounter, error) func (*MessagesSearchCounterVector).GetElems() (value []MessagesSearchCounter)
MessagesSearchCounterVector is a box for Vector<messages.SearchCounter> Elements of Vector<messages.SearchCounter> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSearchCounterVector 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. (*MessagesSearchCounterVector) Zero() bool *MessagesSearchCounterVector : github.com/gotd/td/bin.BareDecoder *MessagesSearchCounterVector : github.com/gotd/td/bin.BareEncoder *MessagesSearchCounterVector : github.com/gotd/td/bin.Decoder *MessagesSearchCounterVector : github.com/gotd/td/bin.Encoder *MessagesSearchCounterVector : github.com/gotd/td/bin.Object *MessagesSearchCounterVector : github.com/gotd/td/tdp.Object *MessagesSearchCounterVector : fmt.Stringer
MessagesSearchCustomEmojiRequest represents TL type `messages.searchCustomEmoji#2c11c0d7`. Look for custom emojis¹ associated to a UTF8 emoji Links: 1. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/method/messages.searchCustomEmoji for reference. The emoji Hash for pagination, 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 MessagesSearchCustomEmojiRequest from given interface. GetEmoticon returns value of Emoticon 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. (*MessagesSearchCustomEmojiRequest) Zero() bool *MessagesSearchCustomEmojiRequest : github.com/gotd/td/bin.BareDecoder *MessagesSearchCustomEmojiRequest : github.com/gotd/td/bin.BareEncoder *MessagesSearchCustomEmojiRequest : github.com/gotd/td/bin.Decoder *MessagesSearchCustomEmojiRequest : github.com/gotd/td/bin.Encoder *MessagesSearchCustomEmojiRequest : github.com/gotd/td/bin.Object *MessagesSearchCustomEmojiRequest : github.com/gotd/td/tdp.Object *MessagesSearchCustomEmojiRequest : fmt.Stringer func (*Client).MessagesSearchCustomEmoji(ctx context.Context, request *MessagesSearchCustomEmojiRequest) (EmojiListClass, error)
MessagesSearchEmojiStickerSetsRequest represents TL type `messages.searchEmojiStickerSets#92b4494c`. Search for custom emoji stickersets »¹ Links: 1. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/method/messages.searchEmojiStickerSets for reference. Exclude featured stickersets from results Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Query string Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSearchEmojiStickerSetsRequest from given interface. GetExcludeFeatured returns value of ExcludeFeatured conditional field. GetHash returns value of Hash field. GetQ returns value of Q field. SetExcludeFeatured sets value of ExcludeFeatured 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. (*MessagesSearchEmojiStickerSetsRequest) Zero() bool *MessagesSearchEmojiStickerSetsRequest : github.com/gotd/td/bin.BareDecoder *MessagesSearchEmojiStickerSetsRequest : github.com/gotd/td/bin.BareEncoder *MessagesSearchEmojiStickerSetsRequest : github.com/gotd/td/bin.Decoder *MessagesSearchEmojiStickerSetsRequest : github.com/gotd/td/bin.Encoder *MessagesSearchEmojiStickerSetsRequest : github.com/gotd/td/bin.Object *MessagesSearchEmojiStickerSetsRequest : github.com/gotd/td/tdp.Object *MessagesSearchEmojiStickerSetsRequest : fmt.Stringer func (*Client).MessagesSearchEmojiStickerSets(ctx context.Context, request *MessagesSearchEmojiStickerSetsRequest) (MessagesFoundStickerSetsClass, error)
MessagesSearchGlobalRequest represents TL type `messages.searchGlobal#4bc6589a`. Search for messages and peers globally See https://core.telegram.org/method/messages.searchGlobal for reference. Global search filter Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets If a positive value was transferred, the method will return only messages with date smaller than max_date If a positive value was specified, the method will return only messages with date bigger than min_date Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Initially 0, then set to the next_rate parameter of messages.messagesSlice¹ Links: 1) https://core.telegram.org/constructor/messages.messagesSlice Query Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSearchGlobalRequest from given interface. GetFilter returns value of Filter field. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetLimit returns value of Limit field. GetMaxDate returns value of MaxDate field. GetMinDate returns value of MinDate field. GetOffsetID returns value of OffsetID field. GetOffsetPeer returns value of OffsetPeer field. GetOffsetRate returns value of OffsetRate field. GetQ returns value of Q field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID 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. (*MessagesSearchGlobalRequest) Zero() bool *MessagesSearchGlobalRequest : github.com/gotd/td/bin.BareDecoder *MessagesSearchGlobalRequest : github.com/gotd/td/bin.BareEncoder *MessagesSearchGlobalRequest : github.com/gotd/td/bin.Decoder *MessagesSearchGlobalRequest : github.com/gotd/td/bin.Encoder *MessagesSearchGlobalRequest : github.com/gotd/td/bin.Object *MessagesSearchGlobalRequest : github.com/gotd/td/tdp.Object *MessagesSearchGlobalRequest : fmt.Stringer func (*Client).MessagesSearchGlobal(ctx context.Context, request *MessagesSearchGlobalRequest) (MessagesMessagesClass, error)
MessagesSearchRequest represents TL type `messages.search#a0fda762`. Search for messages. See https://core.telegram.org/method/messages.search for reference. Additional offset¹ Links: 1) https://core.telegram.org/api/offsets Filter to return only specified message types Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Only return messages sent by the specified user ID Use SetFromID and GetFromID helpers. Hash¹ Links: 1) https://core.telegram.org/api/offsets Number of results to return¹ Links: 1) https://core.telegram.org/api/offsets If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned Maximum message ID to return¹ Links: 1) https://core.telegram.org/api/offsets If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned Minimum message ID to return¹ Links: 1) https://core.telegram.org/api/offsets Only return messages starting from the specified message ID User or chat, histories with which are searched, or (inputPeerEmpty)¹ constructor to search in all private chats and normal groups (not channels) »². Use messages searchGlobal³ to search globally in all chats, groups, supergroups and channels. Links: 1) https://core.telegram.org/constructor/inputPeerEmpty 2) https://core.telegram.org/api/channel 3) https://core.telegram.org/method/messages.searchGlobal Text search request Thread ID¹ Links: 1) https://core.telegram.org/api/threads Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSearchRequest from given interface. GetAddOffset returns value of AddOffset field. GetFilter returns value of Filter field. GetFromID returns value of FromID conditional field and boolean which is true if field was set. GetHash returns value of Hash field. GetLimit returns value of Limit field. GetMaxDate returns value of MaxDate field. GetMaxID returns value of MaxID field. GetMinDate returns value of MinDate field. GetMinID returns value of MinID field. GetOffsetID returns value of OffsetID field. GetPeer returns value of Peer field. GetQ returns value of Q field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetFromID sets value of FromID conditional field. SetTopMsgID sets value of TopMsgID 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. (*MessagesSearchRequest) Zero() bool *MessagesSearchRequest : github.com/gotd/td/bin.BareDecoder *MessagesSearchRequest : github.com/gotd/td/bin.BareEncoder *MessagesSearchRequest : github.com/gotd/td/bin.Decoder *MessagesSearchRequest : github.com/gotd/td/bin.Encoder *MessagesSearchRequest : github.com/gotd/td/bin.Object *MessagesSearchRequest : github.com/gotd/td/tdp.Object *MessagesSearchRequest : fmt.Stringer func (*Client).MessagesSearch(ctx context.Context, request *MessagesSearchRequest) (MessagesMessagesClass, error)
MessagesSearchResultsCalendar represents TL type `messages.searchResultsCalendar#147ee23c`. Information about found messages sent on a specific day See https://core.telegram.org/constructor/messages.searchResultsCalendar for reference. Mentioned chats Total number of results matching query Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, indicates that the results may be inexact Messages Starting timestamp of attached messages Ending timestamp of attached messages Indicates the absolute position of messages[0] within the total result set with count count. This is useful, for example, if we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}. Use SetOffsetIDOffset and GetOffsetIDOffset helpers. Used to split the messages by days: multiple SearchResultsCalendarPeriod¹ constructors are returned, each containing information about the first, last and total number of messages matching the filter that were sent on a specific day. This information can be easily used to split the returned messages by day. Links: 1) https://core.telegram.org/type/SearchResultsCalendarPeriod Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSearchResultsCalendar from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetInexact returns value of Inexact conditional field. GetMessages returns value of Messages field. GetMinDate returns value of MinDate field. GetMinMsgID returns value of MinMsgID field. GetOffsetIDOffset returns value of OffsetIDOffset conditional field and boolean which is true if field was set. GetPeriods returns value of Periods field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetInexact sets value of Inexact conditional field. SetOffsetIDOffset sets value of OffsetIDOffset 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. (*MessagesSearchResultsCalendar) Zero() bool *MessagesSearchResultsCalendar : github.com/gotd/td/bin.BareDecoder *MessagesSearchResultsCalendar : github.com/gotd/td/bin.BareEncoder *MessagesSearchResultsCalendar : github.com/gotd/td/bin.Decoder *MessagesSearchResultsCalendar : github.com/gotd/td/bin.Encoder *MessagesSearchResultsCalendar : github.com/gotd/td/bin.Object *MessagesSearchResultsCalendar : github.com/gotd/td/tdp.Object *MessagesSearchResultsCalendar : fmt.Stringer func (*Client).MessagesGetSearchResultsCalendar(ctx context.Context, request *MessagesGetSearchResultsCalendarRequest) (*MessagesSearchResultsCalendar, error)
MessagesSearchResultsPositions represents TL type `messages.searchResultsPositions#53b22baf`. Information about sparse positions of messages See https://core.telegram.org/constructor/messages.searchResultsPositions for reference. Total number of found messages List of message positions Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSearchResultsPositions from given interface. GetCount returns value of Count field. GetPositions returns value of Positions 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. (*MessagesSearchResultsPositions) Zero() bool *MessagesSearchResultsPositions : github.com/gotd/td/bin.BareDecoder *MessagesSearchResultsPositions : github.com/gotd/td/bin.BareEncoder *MessagesSearchResultsPositions : github.com/gotd/td/bin.Decoder *MessagesSearchResultsPositions : github.com/gotd/td/bin.Encoder *MessagesSearchResultsPositions : github.com/gotd/td/bin.Object *MessagesSearchResultsPositions : github.com/gotd/td/tdp.Object *MessagesSearchResultsPositions : fmt.Stringer func (*Client).MessagesGetSearchResultsPositions(ctx context.Context, request *MessagesGetSearchResultsPositionsRequest) (*MessagesSearchResultsPositions, error)
MessagesSearchSentMediaRequest represents TL type `messages.searchSentMedia#107e31a0`. View and search recently sent media. This method does not support pagination. See https://core.telegram.org/method/messages.searchSentMedia for reference. Message filter Maximum number of results to return (max 100). Optional search query Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSearchSentMediaRequest from given interface. GetFilter returns value of Filter field. GetLimit returns value of Limit field. GetQ returns value of Q 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. (*MessagesSearchSentMediaRequest) Zero() bool *MessagesSearchSentMediaRequest : github.com/gotd/td/bin.BareDecoder *MessagesSearchSentMediaRequest : github.com/gotd/td/bin.BareEncoder *MessagesSearchSentMediaRequest : github.com/gotd/td/bin.Decoder *MessagesSearchSentMediaRequest : github.com/gotd/td/bin.Encoder *MessagesSearchSentMediaRequest : github.com/gotd/td/bin.Object *MessagesSearchSentMediaRequest : github.com/gotd/td/tdp.Object *MessagesSearchSentMediaRequest : fmt.Stringer func (*Client).MessagesSearchSentMedia(ctx context.Context, request *MessagesSearchSentMediaRequest) (MessagesMessagesClass, error)
MessagesSearchStickerSetsRequest represents TL type `messages.searchStickerSets#35705b8a`. Search for stickersets See https://core.telegram.org/method/messages.searchStickerSets for reference. Exclude featured stickersets from results Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Query string Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSearchStickerSetsRequest from given interface. GetExcludeFeatured returns value of ExcludeFeatured conditional field. GetHash returns value of Hash field. GetQ returns value of Q field. SetExcludeFeatured sets value of ExcludeFeatured 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. (*MessagesSearchStickerSetsRequest) Zero() bool *MessagesSearchStickerSetsRequest : github.com/gotd/td/bin.BareDecoder *MessagesSearchStickerSetsRequest : github.com/gotd/td/bin.BareEncoder *MessagesSearchStickerSetsRequest : github.com/gotd/td/bin.Decoder *MessagesSearchStickerSetsRequest : github.com/gotd/td/bin.Encoder *MessagesSearchStickerSetsRequest : github.com/gotd/td/bin.Object *MessagesSearchStickerSetsRequest : github.com/gotd/td/tdp.Object *MessagesSearchStickerSetsRequest : fmt.Stringer func (*Client).MessagesSearchStickerSets(ctx context.Context, request *MessagesSearchStickerSetsRequest) (MessagesFoundStickerSetsClass, error)
MessagesSendBotRequestedPeerRequest represents TL type `messages.sendBotRequestedPeer#91b2d060`. Send a chosen peer, as requested by a keyboardButtonRequestPeer¹ button. Links: 1. https://core.telegram.org/constructor/keyboardButtonRequestPeer See https://core.telegram.org/method/messages.sendBotRequestedPeer for reference. The button_id field from the keyboardButtonRequestPeer¹ constructor. Links: 1) https://core.telegram.org/constructor/keyboardButtonRequestPeer ID of the message that contained the reply keyboard with the keyboardButtonRequestPeer¹ button. Links: 1) https://core.telegram.org/constructor/keyboardButtonRequestPeer The bot that sent the keyboardButtonRequestPeer¹ button. Links: 1) https://core.telegram.org/constructor/keyboardButtonRequestPeer RequestedPeers field of MessagesSendBotRequestedPeerRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendBotRequestedPeerRequest from given interface. GetButtonID returns value of ButtonID field. GetMsgID returns value of MsgID field. GetPeer returns value of Peer field. GetRequestedPeers returns value of RequestedPeers field. MapRequestedPeers returns field RequestedPeers wrapped in InputPeerClassArray 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. (*MessagesSendBotRequestedPeerRequest) Zero() bool *MessagesSendBotRequestedPeerRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendBotRequestedPeerRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendBotRequestedPeerRequest : github.com/gotd/td/bin.Decoder *MessagesSendBotRequestedPeerRequest : github.com/gotd/td/bin.Encoder *MessagesSendBotRequestedPeerRequest : github.com/gotd/td/bin.Object *MessagesSendBotRequestedPeerRequest : github.com/gotd/td/tdp.Object *MessagesSendBotRequestedPeerRequest : fmt.Stringer func (*Client).MessagesSendBotRequestedPeer(ctx context.Context, request *MessagesSendBotRequestedPeerRequest) (UpdatesClass, error)
MessagesSendEncryptedFileRequest represents TL type `messages.sendEncryptedFile#5559481d`. Sends a message with a file attachment to a secret chat See https://core.telegram.org/method/messages.sendEncryptedFile for reference. TL-serialization of DecryptedMessage¹ type, encrypted with a key generated during chat initialization Links: 1) https://core.telegram.org/type/DecryptedMessage File attachment for the secret chat Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Secret chat ID Unique client message ID necessary to prevent message resending Whether to send the file without triggering a notification Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendEncryptedFileRequest from given interface. GetData returns value of Data field. GetFile returns value of File field. GetFileAsNotEmpty returns mapped value of File field. GetPeer returns value of Peer field. GetRandomID returns value of RandomID field. GetSilent returns value of Silent conditional field. SetFlags sets flags for non-zero fields. SetSilent sets value of Silent 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. (*MessagesSendEncryptedFileRequest) Zero() bool *MessagesSendEncryptedFileRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendEncryptedFileRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendEncryptedFileRequest : github.com/gotd/td/bin.Decoder *MessagesSendEncryptedFileRequest : github.com/gotd/td/bin.Encoder *MessagesSendEncryptedFileRequest : github.com/gotd/td/bin.Object *MessagesSendEncryptedFileRequest : github.com/gotd/td/tdp.Object *MessagesSendEncryptedFileRequest : fmt.Stringer func (*Client).MessagesSendEncryptedFile(ctx context.Context, request *MessagesSendEncryptedFileRequest) (MessagesSentEncryptedMessageClass, error)
MessagesSendEncryptedRequest represents TL type `messages.sendEncrypted#44fa7a15`. Sends a text message to a secret chat. See https://core.telegram.org/method/messages.sendEncrypted for reference. TL-serialization of DecryptedMessage¹ type, encrypted with a key that was created during chat initialization Links: 1) https://core.telegram.org/type/DecryptedMessage Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Secret chat ID Unique client message ID, necessary to avoid message resending Send encrypted message without a notification Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendEncryptedRequest from given interface. GetData returns value of Data field. GetPeer returns value of Peer field. GetRandomID returns value of RandomID field. GetSilent returns value of Silent conditional field. SetFlags sets flags for non-zero fields. SetSilent sets value of Silent 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. (*MessagesSendEncryptedRequest) Zero() bool *MessagesSendEncryptedRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendEncryptedRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendEncryptedRequest : github.com/gotd/td/bin.Decoder *MessagesSendEncryptedRequest : github.com/gotd/td/bin.Encoder *MessagesSendEncryptedRequest : github.com/gotd/td/bin.Object *MessagesSendEncryptedRequest : github.com/gotd/td/tdp.Object *MessagesSendEncryptedRequest : fmt.Stringer func (*Client).MessagesSendEncrypted(ctx context.Context, request *MessagesSendEncryptedRequest) (MessagesSentEncryptedMessageClass, error)
MessagesSendEncryptedServiceRequest represents TL type `messages.sendEncryptedService#32d439a4`. Sends a service message to a secret chat. See https://core.telegram.org/method/messages.sendEncryptedService for reference. TL-serialization of DecryptedMessage¹ type, encrypted with a key generated during chat initialization Links: 1) https://core.telegram.org/type/DecryptedMessage Secret chat ID Unique client message ID required to prevent message resending Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendEncryptedServiceRequest from given interface. GetData returns value of Data field. GetPeer returns value of Peer field. GetRandomID returns value of RandomID 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. (*MessagesSendEncryptedServiceRequest) Zero() bool *MessagesSendEncryptedServiceRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendEncryptedServiceRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendEncryptedServiceRequest : github.com/gotd/td/bin.Decoder *MessagesSendEncryptedServiceRequest : github.com/gotd/td/bin.Encoder *MessagesSendEncryptedServiceRequest : github.com/gotd/td/bin.Object *MessagesSendEncryptedServiceRequest : github.com/gotd/td/tdp.Object *MessagesSendEncryptedServiceRequest : fmt.Stringer func (*Client).MessagesSendEncryptedService(ctx context.Context, request *MessagesSendEncryptedServiceRequest) (MessagesSentEncryptedMessageClass, error)
MessagesSendInlineBotResultRequest represents TL type `messages.sendInlineBotResult#f7bc68ba`. Send a result obtained using messages.getInlineBotResults¹. Links: 1. https://core.telegram.org/method/messages.getInlineBotResults See https://core.telegram.org/method/messages.sendInlineBotResult for reference. Whether to send the message in background Whether to clear the draft¹ Links: 1) https://core.telegram.org/api/drafts Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to hide the via @botname in the resulting message (only for bot usernames encountered in the config¹) Links: 1) https://core.telegram.org/constructor/config Result ID from messages.getInlineBotResults¹ Links: 1) https://core.telegram.org/method/messages.getInlineBotResults Destination Query ID from messages.getInlineBotResults¹ Links: 1) https://core.telegram.org/method/messages.getInlineBotResults Random ID to avoid resending the same query If set, indicates that the message should be sent in reply to the specified message or story. Use SetReplyTo and GetReplyTo helpers. Scheduled message date for scheduled messages Use SetScheduleDate and GetScheduleDate helpers. Send this message as the specified peer Use SetSendAs and GetSendAs helpers. Whether to send the message silently (no notification will be triggered on the other client) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendInlineBotResultRequest from given interface. GetBackground returns value of Background conditional field. GetClearDraft returns value of ClearDraft conditional field. GetHideVia returns value of HideVia conditional field. GetID returns value of ID field. GetPeer returns value of Peer field. GetQueryID returns value of QueryID field. GetRandomID returns value of RandomID field. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set. GetSendAs returns value of SendAs conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. SetBackground sets value of Background conditional field. SetClearDraft sets value of ClearDraft conditional field. SetFlags sets flags for non-zero fields. SetHideVia sets value of HideVia conditional field. SetReplyTo sets value of ReplyTo conditional field. SetScheduleDate sets value of ScheduleDate conditional field. SetSendAs sets value of SendAs conditional field. SetSilent sets value of Silent 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. (*MessagesSendInlineBotResultRequest) Zero() bool *MessagesSendInlineBotResultRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendInlineBotResultRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendInlineBotResultRequest : github.com/gotd/td/bin.Decoder *MessagesSendInlineBotResultRequest : github.com/gotd/td/bin.Encoder *MessagesSendInlineBotResultRequest : github.com/gotd/td/bin.Object *MessagesSendInlineBotResultRequest : github.com/gotd/td/tdp.Object *MessagesSendInlineBotResultRequest : fmt.Stringer func (*Client).MessagesSendInlineBotResult(ctx context.Context, request *MessagesSendInlineBotResultRequest) (UpdatesClass, error)
MessagesSendMediaRequest represents TL type `messages.sendMedia#72ccc23d`. Send a media See https://core.telegram.org/method/messages.sendMedia for reference. Send message in background Clear the draft 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. Attached media Caption Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection¹ enabled Links: 1) https://telegram.org/blog/protected-content-delete-by-date-and-more Destination Random ID to avoid resending the same message Reply markup for bot keyboards Use SetReplyMarkup and GetReplyMarkup helpers. If set, indicates that the message should be sent in reply to the specified message or story. Use SetReplyTo and GetReplyTo helpers. Scheduled message date for scheduled messages¹ Links: 1) https://core.telegram.org/api/scheduled-messages Use SetScheduleDate and GetScheduleDate helpers. Send this message as the specified peer Use SetSendAs and GetSendAs helpers. Send message silently (no notification should be triggered) Whether to move used stickersets to top, see here for more info on this flag »¹ Links: 1) https://core.telegram.org/api/stickers#recent-stickersets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendMediaRequest from given interface. GetBackground returns value of Background conditional field. GetClearDraft returns value of ClearDraft conditional field. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetInvertMedia returns value of InvertMedia conditional field. GetMedia returns value of Media field. GetMessage returns value of Message field. GetNoforwards returns value of Noforwards conditional field. GetPeer returns value of Peer field. GetRandomID returns value of RandomID field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set. GetSendAs returns value of SendAs conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. GetUpdateStickersetsOrder returns value of UpdateStickersetsOrder conditional field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetBackground sets value of Background conditional field. SetClearDraft sets value of ClearDraft conditional field. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetInvertMedia sets value of InvertMedia conditional field. SetNoforwards sets value of Noforwards conditional field. SetReplyMarkup sets value of ReplyMarkup conditional field. SetReplyTo sets value of ReplyTo conditional field. SetScheduleDate sets value of ScheduleDate conditional field. SetSendAs sets value of SendAs conditional field. SetSilent sets value of Silent conditional field. SetUpdateStickersetsOrder sets value of UpdateStickersetsOrder 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. (*MessagesSendMediaRequest) Zero() bool *MessagesSendMediaRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendMediaRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendMediaRequest : github.com/gotd/td/bin.Decoder *MessagesSendMediaRequest : github.com/gotd/td/bin.Encoder *MessagesSendMediaRequest : github.com/gotd/td/bin.Object *MessagesSendMediaRequest : github.com/gotd/td/tdp.Object *MessagesSendMediaRequest : fmt.Stringer func (*Client).MessagesSendMedia(ctx context.Context, request *MessagesSendMediaRequest) (UpdatesClass, error)
MessagesSendMessageRequest represents TL type `messages.sendMessage#280d096f`. Sends a message to a chat See https://core.telegram.org/method/messages.sendMessage for reference. Send this message as background message Clear the draft field Message entities¹ for sending 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 Set this flag to disable generation of the webpage preview Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection¹ enabled Links: 1) https://telegram.org/blog/protected-content-delete-by-date-and-more The destination where the message will be sent Unique client message ID required to prevent message resending Reply markup for sending bot buttons Use SetReplyMarkup and GetReplyMarkup helpers. If set, indicates that the message should be sent in reply to the specified message or story. Use SetReplyTo and GetReplyTo helpers. Scheduled message date for scheduled messages¹ Links: 1) https://core.telegram.org/api/scheduled-messages Use SetScheduleDate and GetScheduleDate helpers. Send this message as the specified peer Use SetSendAs and GetSendAs helpers. Send this message silently (no notifications for the receivers) Whether to move used stickersets to top, see here for more info on this flag »¹ Links: 1) https://core.telegram.org/api/stickers#recent-stickersets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendMessageRequest from given interface. GetBackground returns value of Background conditional field. GetClearDraft returns value of ClearDraft conditional field. 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. GetNoforwards returns value of Noforwards conditional field. GetPeer returns value of Peer field. GetRandomID returns value of RandomID field. GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set. GetSendAs returns value of SendAs conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. GetUpdateStickersetsOrder returns value of UpdateStickersetsOrder conditional field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetBackground sets value of Background conditional field. SetClearDraft sets value of ClearDraft conditional field. 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. SetNoforwards sets value of Noforwards conditional field. SetReplyMarkup sets value of ReplyMarkup conditional field. SetReplyTo sets value of ReplyTo conditional field. SetScheduleDate sets value of ScheduleDate conditional field. SetSendAs sets value of SendAs conditional field. SetSilent sets value of Silent conditional field. SetUpdateStickersetsOrder sets value of UpdateStickersetsOrder 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. (*MessagesSendMessageRequest) Zero() bool *MessagesSendMessageRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendMessageRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendMessageRequest : github.com/gotd/td/bin.Decoder *MessagesSendMessageRequest : github.com/gotd/td/bin.Encoder *MessagesSendMessageRequest : github.com/gotd/td/bin.Object *MessagesSendMessageRequest : github.com/gotd/td/tdp.Object *MessagesSendMessageRequest : fmt.Stringer func (*Client).MessagesSendMessage(ctx context.Context, request *MessagesSendMessageRequest) (UpdatesClass, error) func github.com/gotd/td/telegram.(*Client).SendMessage(ctx context.Context, req *MessagesSendMessageRequest) error
MessagesSendMultiMediaRequest represents TL type `messages.sendMultiMedia#456e8987`. Send an album or grouped media¹ Links: 1. https://core.telegram.org/api/files#albums-grouped-media See https://core.telegram.org/method/messages.sendMultiMedia for reference. Send in background? Whether to clear drafts¹ Links: 1) https://core.telegram.org/api/drafts 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 medias to send: note that they must be separately uploaded using messages uploadMedia¹ first, using raw inputMediaUploaded* constructors is not supported. Links: 1) https://core.telegram.org/method/messages.uploadMedia Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection¹ enabled Links: 1) https://telegram.org/blog/protected-content-delete-by-date-and-more The destination chat If set, indicates that the message should be sent in reply to the specified message or story. Use SetReplyTo and GetReplyTo helpers. Scheduled message date for scheduled messages Use SetScheduleDate and GetScheduleDate helpers. Send this message as the specified peer Use SetSendAs and GetSendAs helpers. Whether to send the album silently (no notification triggered) Whether to move used stickersets to top, see here for more info on this flag »¹ Links: 1) https://core.telegram.org/api/stickers#recent-stickersets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendMultiMediaRequest from given interface. GetBackground returns value of Background conditional field. GetClearDraft returns value of ClearDraft conditional field. GetInvertMedia returns value of InvertMedia conditional field. GetMultiMedia returns value of MultiMedia field. GetNoforwards returns value of Noforwards conditional field. GetPeer returns value of Peer field. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set. GetSendAs returns value of SendAs conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. GetUpdateStickersetsOrder returns value of UpdateStickersetsOrder conditional field. SetBackground sets value of Background conditional field. SetClearDraft sets value of ClearDraft conditional field. SetFlags sets flags for non-zero fields. SetInvertMedia sets value of InvertMedia conditional field. SetNoforwards sets value of Noforwards conditional field. SetReplyTo sets value of ReplyTo conditional field. SetScheduleDate sets value of ScheduleDate conditional field. SetSendAs sets value of SendAs conditional field. SetSilent sets value of Silent conditional field. SetUpdateStickersetsOrder sets value of UpdateStickersetsOrder 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. (*MessagesSendMultiMediaRequest) Zero() bool *MessagesSendMultiMediaRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendMultiMediaRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendMultiMediaRequest : github.com/gotd/td/bin.Decoder *MessagesSendMultiMediaRequest : github.com/gotd/td/bin.Encoder *MessagesSendMultiMediaRequest : github.com/gotd/td/bin.Object *MessagesSendMultiMediaRequest : github.com/gotd/td/tdp.Object *MessagesSendMultiMediaRequest : fmt.Stringer func (*Client).MessagesSendMultiMedia(ctx context.Context, request *MessagesSendMultiMediaRequest) (UpdatesClass, error)
MessagesSendReactionRequest represents TL type `messages.sendReaction#d30d78d4`. React to message. Starting from layer 159, the reaction will be sent from the peer specified using messages.saveDefaultSendAs¹. Links: 1. https://core.telegram.org/method/messages.saveDefaultSendAs See https://core.telegram.org/method/messages.sendReaction for reference. Whether to add this reaction to the recent reactions list »¹. Links: 1) https://core.telegram.org/api/reactions#recent-reactions Whether a bigger and longer reaction should be shown Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID to react to Peer A list of reactions Use SetReaction and GetReaction helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendReactionRequest from given interface. GetAddToRecent returns value of AddToRecent conditional field. GetBig returns value of Big conditional field. GetMsgID returns value of MsgID field. GetPeer returns value of Peer field. GetReaction returns value of Reaction conditional field and boolean which is true if field was set. MapReaction returns field Reaction wrapped in ReactionClassArray helper. SetAddToRecent sets value of AddToRecent conditional field. SetBig sets value of Big conditional field. SetFlags sets flags for non-zero fields. SetReaction sets value of Reaction 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. (*MessagesSendReactionRequest) Zero() bool *MessagesSendReactionRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendReactionRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendReactionRequest : github.com/gotd/td/bin.Decoder *MessagesSendReactionRequest : github.com/gotd/td/bin.Encoder *MessagesSendReactionRequest : github.com/gotd/td/bin.Object *MessagesSendReactionRequest : github.com/gotd/td/tdp.Object *MessagesSendReactionRequest : fmt.Stringer func (*Client).MessagesSendReaction(ctx context.Context, request *MessagesSendReactionRequest) (UpdatesClass, error)
MessagesSendScheduledMessagesRequest represents TL type `messages.sendScheduledMessages#bd38850a`. Send scheduled messages right away See https://core.telegram.org/method/messages.sendScheduledMessages for reference. Scheduled message IDs Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendScheduledMessagesRequest from given interface. GetID returns value of ID 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. (*MessagesSendScheduledMessagesRequest) Zero() bool *MessagesSendScheduledMessagesRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendScheduledMessagesRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendScheduledMessagesRequest : github.com/gotd/td/bin.Decoder *MessagesSendScheduledMessagesRequest : github.com/gotd/td/bin.Encoder *MessagesSendScheduledMessagesRequest : github.com/gotd/td/bin.Object *MessagesSendScheduledMessagesRequest : github.com/gotd/td/tdp.Object *MessagesSendScheduledMessagesRequest : fmt.Stringer func (*Client).MessagesSendScheduledMessages(ctx context.Context, request *MessagesSendScheduledMessagesRequest) (UpdatesClass, error)
MessagesSendScreenshotNotificationRequest represents TL type `messages.sendScreenshotNotification#a1405817`. Notify the other user in a private chat that a screenshot of the chat was taken See https://core.telegram.org/method/messages.sendScreenshotNotification for reference. Other user Random ID to avoid message resending Indicates the message that was screenshotted (the specified message ID can also be 0 to avoid indicating any specific message). Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendScreenshotNotificationRequest from given interface. GetPeer returns value of Peer field. GetRandomID returns value of RandomID field. GetReplyTo returns value of ReplyTo 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. (*MessagesSendScreenshotNotificationRequest) Zero() bool *MessagesSendScreenshotNotificationRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendScreenshotNotificationRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendScreenshotNotificationRequest : github.com/gotd/td/bin.Decoder *MessagesSendScreenshotNotificationRequest : github.com/gotd/td/bin.Encoder *MessagesSendScreenshotNotificationRequest : github.com/gotd/td/bin.Object *MessagesSendScreenshotNotificationRequest : github.com/gotd/td/tdp.Object *MessagesSendScreenshotNotificationRequest : fmt.Stringer func (*Client).MessagesSendScreenshotNotification(ctx context.Context, request *MessagesSendScreenshotNotificationRequest) (UpdatesClass, error)
MessagesSendVoteRequest represents TL type `messages.sendVote#10ea6184`. Vote in a poll¹ Links: 1. https://core.telegram.org/constructor/poll See https://core.telegram.org/method/messages.sendVote for reference. The message ID of the poll The options that were chosen The chat where the poll was sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendVoteRequest from given interface. GetMsgID returns value of MsgID field. GetOptions returns value of Options 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. (*MessagesSendVoteRequest) Zero() bool *MessagesSendVoteRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendVoteRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendVoteRequest : github.com/gotd/td/bin.Decoder *MessagesSendVoteRequest : github.com/gotd/td/bin.Encoder *MessagesSendVoteRequest : github.com/gotd/td/bin.Object *MessagesSendVoteRequest : github.com/gotd/td/tdp.Object *MessagesSendVoteRequest : fmt.Stringer func (*Client).MessagesSendVote(ctx context.Context, request *MessagesSendVoteRequest) (UpdatesClass, error)
MessagesSendWebViewDataRequest represents TL type `messages.sendWebViewData#dc0242c8`. Used by the user to relay data from an opened reply keyboard bot mini app¹ to the bot that owns it. Links: 1. https://core.telegram.org/api/bots/webapps See https://core.telegram.org/method/messages.sendWebViewData for reference. Bot that owns the web app Text of the keyboardButtonSimpleWebView¹ that was pressed to open the web app. Links: 1) https://core.telegram.org/constructor/keyboardButtonSimpleWebView Data to relay to the bot, obtained from a web_app_data_send JS event¹. Links: 1) https://core.telegram.org/api/web-events#web-app-data-send Unique client message ID to prevent duplicate sending of the same event Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendWebViewDataRequest from given interface. GetBot returns value of Bot field. GetButtonText returns value of ButtonText field. GetData returns value of Data field. GetRandomID returns value of RandomID 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. (*MessagesSendWebViewDataRequest) Zero() bool *MessagesSendWebViewDataRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendWebViewDataRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendWebViewDataRequest : github.com/gotd/td/bin.Decoder *MessagesSendWebViewDataRequest : github.com/gotd/td/bin.Encoder *MessagesSendWebViewDataRequest : github.com/gotd/td/bin.Object *MessagesSendWebViewDataRequest : github.com/gotd/td/tdp.Object *MessagesSendWebViewDataRequest : fmt.Stringer func (*Client).MessagesSendWebViewData(ctx context.Context, request *MessagesSendWebViewDataRequest) (UpdatesClass, error)
MessagesSendWebViewResultMessageRequest represents TL type `messages.sendWebViewResultMessage#a4314f5`. Terminate webview interaction started with messages.requestWebView¹, sending the specified message to the chat on behalf of the user. Links: 1. https://core.telegram.org/method/messages.requestWebView See https://core.telegram.org/method/messages.sendWebViewResultMessage for reference. Webview interaction ID obtained from messages.requestWebView¹ Links: 1) https://core.telegram.org/method/messages.requestWebView Message to send Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSendWebViewResultMessageRequest from given interface. GetBotQueryID returns value of BotQueryID field. GetResult returns value of Result 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. (*MessagesSendWebViewResultMessageRequest) Zero() bool *MessagesSendWebViewResultMessageRequest : github.com/gotd/td/bin.BareDecoder *MessagesSendWebViewResultMessageRequest : github.com/gotd/td/bin.BareEncoder *MessagesSendWebViewResultMessageRequest : github.com/gotd/td/bin.Decoder *MessagesSendWebViewResultMessageRequest : github.com/gotd/td/bin.Encoder *MessagesSendWebViewResultMessageRequest : github.com/gotd/td/bin.Object *MessagesSendWebViewResultMessageRequest : github.com/gotd/td/tdp.Object *MessagesSendWebViewResultMessageRequest : fmt.Stringer func (*Client).MessagesSendWebViewResultMessage(ctx context.Context, request *MessagesSendWebViewResultMessageRequest) (*WebViewMessageSent, error)
MessagesSentEncryptedFile represents TL type `messages.sentEncryptedFile#9493ff32`. Message with a file enclosure sent to a protected chat See https://core.telegram.org/constructor/messages.sentEncryptedFile for reference. Sending date Attached file Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSentEncryptedFile from given interface. GetDate returns value of Date field. GetFile returns value of File 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. (*MessagesSentEncryptedFile) Zero() bool *MessagesSentEncryptedFile : MessagesSentEncryptedMessageClass *MessagesSentEncryptedFile : github.com/gotd/td/bin.BareDecoder *MessagesSentEncryptedFile : github.com/gotd/td/bin.BareEncoder *MessagesSentEncryptedFile : github.com/gotd/td/bin.Decoder *MessagesSentEncryptedFile : github.com/gotd/td/bin.Encoder *MessagesSentEncryptedFile : github.com/gotd/td/bin.Object *MessagesSentEncryptedFile : github.com/gotd/td/tdp.Object *MessagesSentEncryptedFile : fmt.Stringer func MessagesSentEncryptedFileArray.First() (v MessagesSentEncryptedFile, ok bool) func MessagesSentEncryptedFileArray.Last() (v MessagesSentEncryptedFile, ok bool) func (*MessagesSentEncryptedFileArray).Pop() (v MessagesSentEncryptedFile, ok bool) func (*MessagesSentEncryptedFileArray).PopFirst() (v MessagesSentEncryptedFile, ok bool)
MessagesSentEncryptedFileArray is adapter for slice of MessagesSentEncryptedFile. 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 MessagesSentEncryptedFile. Sort sorts slice of MessagesSentEncryptedFile. SortByDate sorts slice of MessagesSentEncryptedFile by Date. SortStable sorts slice of MessagesSentEncryptedFile. SortStableByDate sorts slice of MessagesSentEncryptedFile by Date. func MessagesSentEncryptedFileArray.Retain(keep func(x MessagesSentEncryptedFile) bool) MessagesSentEncryptedFileArray func MessagesSentEncryptedFileArray.Sort(less func(a, b MessagesSentEncryptedFile) bool) MessagesSentEncryptedFileArray func MessagesSentEncryptedFileArray.SortByDate() MessagesSentEncryptedFileArray func MessagesSentEncryptedFileArray.SortStable(less func(a, b MessagesSentEncryptedFile) bool) MessagesSentEncryptedFileArray func MessagesSentEncryptedFileArray.SortStableByDate() MessagesSentEncryptedFileArray func MessagesSentEncryptedMessageClassArray.AsMessagesSentEncryptedFile() (to MessagesSentEncryptedFileArray)
MessagesSentEncryptedMessage represents TL type `messages.sentEncryptedMessage#560f8935`. Message without file attachments sent to an encrypted file. See https://core.telegram.org/constructor/messages.sentEncryptedMessage for reference. Date of sending Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSentEncryptedMessage from given interface. GetDate returns value of Date 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. (*MessagesSentEncryptedMessage) Zero() bool *MessagesSentEncryptedMessage : MessagesSentEncryptedMessageClass *MessagesSentEncryptedMessage : github.com/gotd/td/bin.BareDecoder *MessagesSentEncryptedMessage : github.com/gotd/td/bin.BareEncoder *MessagesSentEncryptedMessage : github.com/gotd/td/bin.Decoder *MessagesSentEncryptedMessage : github.com/gotd/td/bin.Encoder *MessagesSentEncryptedMessage : github.com/gotd/td/bin.Object *MessagesSentEncryptedMessage : github.com/gotd/td/tdp.Object *MessagesSentEncryptedMessage : fmt.Stringer func MessagesSentEncryptedMessageArray.First() (v MessagesSentEncryptedMessage, ok bool) func MessagesSentEncryptedMessageArray.Last() (v MessagesSentEncryptedMessage, ok bool) func (*MessagesSentEncryptedMessageArray).Pop() (v MessagesSentEncryptedMessage, ok bool) func (*MessagesSentEncryptedMessageArray).PopFirst() (v MessagesSentEncryptedMessage, ok bool)
MessagesSentEncryptedMessageArray is adapter for slice of MessagesSentEncryptedMessage. 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 MessagesSentEncryptedMessage. Sort sorts slice of MessagesSentEncryptedMessage. SortByDate sorts slice of MessagesSentEncryptedMessage by Date. SortStable sorts slice of MessagesSentEncryptedMessage. SortStableByDate sorts slice of MessagesSentEncryptedMessage by Date. func MessagesSentEncryptedMessageArray.Retain(keep func(x MessagesSentEncryptedMessage) bool) MessagesSentEncryptedMessageArray func MessagesSentEncryptedMessageArray.Sort(less func(a, b MessagesSentEncryptedMessage) bool) MessagesSentEncryptedMessageArray func MessagesSentEncryptedMessageArray.SortByDate() MessagesSentEncryptedMessageArray func MessagesSentEncryptedMessageArray.SortStable(less func(a, b MessagesSentEncryptedMessage) bool) MessagesSentEncryptedMessageArray func MessagesSentEncryptedMessageArray.SortStableByDate() MessagesSentEncryptedMessageArray func MessagesSentEncryptedMessageClassArray.AsMessagesSentEncryptedMessage() (to MessagesSentEncryptedMessageArray)
MessagesSentEncryptedMessage boxes the MessagesSentEncryptedMessageClass providing a helper. SentEncryptedMessage MessagesSentEncryptedMessageClass Decode implements bin.Decoder for MessagesSentEncryptedMessageBox. Encode implements bin.Encode for MessagesSentEncryptedMessageBox. *MessagesSentEncryptedMessageBox : github.com/gotd/td/bin.Decoder *MessagesSentEncryptedMessageBox : github.com/gotd/td/bin.Encoder *MessagesSentEncryptedMessageBox : github.com/gotd/td/bin.Object
MessagesSentEncryptedMessageClass represents messages.SentEncryptedMessage generic type. See https://core.telegram.org/type/messages.SentEncryptedMessage for reference. Example: g, err := tg.DecodeMessagesSentEncryptedMessage(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesSentEncryptedMessage: // messages.sentEncryptedMessage#560f8935 case *tg.MessagesSentEncryptedFile: // messages.sentEncryptedFile#9493ff32 default: panic(v) } ( MessagesSentEncryptedMessageClass) Decode(b *bin.Buffer) error ( MessagesSentEncryptedMessageClass) DecodeBare(b *bin.Buffer) error ( MessagesSentEncryptedMessageClass) Encode(b *bin.Buffer) error ( MessagesSentEncryptedMessageClass) EncodeBare(b *bin.Buffer) error Date of sending 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. *MessagesSentEncryptedFile *MessagesSentEncryptedMessage MessagesSentEncryptedMessageClass : github.com/gotd/td/bin.BareDecoder MessagesSentEncryptedMessageClass : github.com/gotd/td/bin.BareEncoder MessagesSentEncryptedMessageClass : github.com/gotd/td/bin.Decoder MessagesSentEncryptedMessageClass : github.com/gotd/td/bin.Encoder MessagesSentEncryptedMessageClass : github.com/gotd/td/bin.Object MessagesSentEncryptedMessageClass : fmt.Stringer func DecodeMessagesSentEncryptedMessage(buf *bin.Buffer) (MessagesSentEncryptedMessageClass, error) func (*Client).MessagesSendEncrypted(ctx context.Context, request *MessagesSendEncryptedRequest) (MessagesSentEncryptedMessageClass, error) func (*Client).MessagesSendEncryptedFile(ctx context.Context, request *MessagesSendEncryptedFileRequest) (MessagesSentEncryptedMessageClass, error) func (*Client).MessagesSendEncryptedService(ctx context.Context, request *MessagesSendEncryptedServiceRequest) (MessagesSentEncryptedMessageClass, error) func MessagesSentEncryptedMessageClassArray.First() (v MessagesSentEncryptedMessageClass, ok bool) func MessagesSentEncryptedMessageClassArray.Last() (v MessagesSentEncryptedMessageClass, ok bool) func (*MessagesSentEncryptedMessageClassArray).Pop() (v MessagesSentEncryptedMessageClass, ok bool) func (*MessagesSentEncryptedMessageClassArray).PopFirst() (v MessagesSentEncryptedMessageClass, ok bool)
MessagesSentEncryptedMessageClassArray is adapter for slice of MessagesSentEncryptedMessageClass. AsMessagesSentEncryptedFile returns copy with only MessagesSentEncryptedFile constructors. AsMessagesSentEncryptedMessage returns copy with only MessagesSentEncryptedMessage 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 MessagesSentEncryptedMessageClass. Sort sorts slice of MessagesSentEncryptedMessageClass. SortByDate sorts slice of MessagesSentEncryptedMessageClass by Date. SortStable sorts slice of MessagesSentEncryptedMessageClass. SortStableByDate sorts slice of MessagesSentEncryptedMessageClass by Date. func MessagesSentEncryptedMessageClassArray.Retain(keep func(x MessagesSentEncryptedMessageClass) bool) MessagesSentEncryptedMessageClassArray func MessagesSentEncryptedMessageClassArray.Sort(less func(a, b MessagesSentEncryptedMessageClass) bool) MessagesSentEncryptedMessageClassArray func MessagesSentEncryptedMessageClassArray.SortByDate() MessagesSentEncryptedMessageClassArray func MessagesSentEncryptedMessageClassArray.SortStable(less func(a, b MessagesSentEncryptedMessageClass) bool) MessagesSentEncryptedMessageClassArray func MessagesSentEncryptedMessageClassArray.SortStableByDate() MessagesSentEncryptedMessageClassArray
MessagesSetBotCallbackAnswerRequest represents TL type `messages.setBotCallbackAnswer#d58f130a`. Set the callback answer to a user button press (bots only) See https://core.telegram.org/method/messages.setBotCallbackAnswer for reference. Whether to show the message as a popup instead of a toast notification Cache validity Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Popup to show Use SetMessage and GetMessage helpers. Query ID URL to open Use SetURL and GetURL helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetBotCallbackAnswerRequest from given interface. GetAlert returns value of Alert conditional field. GetCacheTime returns value of CacheTime field. GetMessage returns value of Message conditional field and boolean which is true if field was set. GetQueryID returns value of QueryID field. GetURL returns value of URL conditional field and boolean which is true if field was set. SetAlert sets value of Alert conditional field. SetFlags sets flags for non-zero fields. SetMessage sets value of Message 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. (*MessagesSetBotCallbackAnswerRequest) Zero() bool *MessagesSetBotCallbackAnswerRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetBotCallbackAnswerRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetBotCallbackAnswerRequest : github.com/gotd/td/bin.Decoder *MessagesSetBotCallbackAnswerRequest : github.com/gotd/td/bin.Encoder *MessagesSetBotCallbackAnswerRequest : github.com/gotd/td/bin.Object *MessagesSetBotCallbackAnswerRequest : github.com/gotd/td/tdp.Object *MessagesSetBotCallbackAnswerRequest : fmt.Stringer func (*Client).MessagesSetBotCallbackAnswer(ctx context.Context, request *MessagesSetBotCallbackAnswerRequest) (bool, error)
MessagesSetBotPrecheckoutResultsRequest represents TL type `messages.setBotPrecheckoutResults#9c2dd95`. Once the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery¹ update. Use this method to respond to such pre-checkout queries. Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent. Links: 1. https://core.telegram.org/constructor/updateBotPrecheckoutQuery See https://core.telegram.org/method/messages.setBotPrecheckoutResults for reference. Required if the success isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user. Use SetError and GetError helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Unique identifier for the query to be answered Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetBotPrecheckoutResultsRequest from given interface. GetError returns value of Error conditional field and boolean which is true if field was set. GetQueryID returns value of QueryID field. GetSuccess returns value of Success conditional field. SetError sets value of Error 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. (*MessagesSetBotPrecheckoutResultsRequest) Zero() bool *MessagesSetBotPrecheckoutResultsRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetBotPrecheckoutResultsRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetBotPrecheckoutResultsRequest : github.com/gotd/td/bin.Decoder *MessagesSetBotPrecheckoutResultsRequest : github.com/gotd/td/bin.Encoder *MessagesSetBotPrecheckoutResultsRequest : github.com/gotd/td/bin.Object *MessagesSetBotPrecheckoutResultsRequest : github.com/gotd/td/tdp.Object *MessagesSetBotPrecheckoutResultsRequest : fmt.Stringer func (*Client).MessagesSetBotPrecheckoutResults(ctx context.Context, request *MessagesSetBotPrecheckoutResultsRequest) (bool, error)
MessagesSetBotShippingResultsRequest represents TL type `messages.setBotShippingResults#e5f672fa`. If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an updateBotShippingQuery¹ update. Use this method to reply to shipping queries. Links: 1. https://core.telegram.org/constructor/updateBotShippingQuery See https://core.telegram.org/method/messages.setBotShippingResults for reference. Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable"). Telegram will display this message to the user. Use SetError and GetError helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Unique identifier for the query to be answered A vector of available shipping options. Use SetShippingOptions and GetShippingOptions helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetBotShippingResultsRequest from given interface. GetError returns value of Error conditional field and boolean which is true if field was set. GetQueryID returns value of QueryID field. GetShippingOptions returns value of ShippingOptions conditional field and boolean which is true if field was set. SetError sets value of Error conditional field. SetFlags sets flags for non-zero fields. SetShippingOptions sets value of ShippingOptions 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. (*MessagesSetBotShippingResultsRequest) Zero() bool *MessagesSetBotShippingResultsRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetBotShippingResultsRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetBotShippingResultsRequest : github.com/gotd/td/bin.Decoder *MessagesSetBotShippingResultsRequest : github.com/gotd/td/bin.Encoder *MessagesSetBotShippingResultsRequest : github.com/gotd/td/bin.Object *MessagesSetBotShippingResultsRequest : github.com/gotd/td/tdp.Object *MessagesSetBotShippingResultsRequest : fmt.Stringer func (*Client).MessagesSetBotShippingResults(ctx context.Context, request *MessagesSetBotShippingResultsRequest) (bool, error)
MessagesSetChatAvailableReactionsRequest represents TL type `messages.setChatAvailableReactions#feb16771`. Change the set of message reactions »¹ that can be used in a certain group, supergroup or channel Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/method/messages.setChatAvailableReactions for reference. Allowed reaction emojis Group where to apply changes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetChatAvailableReactionsRequest from given interface. GetAvailableReactions returns value of AvailableReactions 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. (*MessagesSetChatAvailableReactionsRequest) Zero() bool *MessagesSetChatAvailableReactionsRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetChatAvailableReactionsRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetChatAvailableReactionsRequest : github.com/gotd/td/bin.Decoder *MessagesSetChatAvailableReactionsRequest : github.com/gotd/td/bin.Encoder *MessagesSetChatAvailableReactionsRequest : github.com/gotd/td/bin.Object *MessagesSetChatAvailableReactionsRequest : github.com/gotd/td/tdp.Object *MessagesSetChatAvailableReactionsRequest : fmt.Stringer func (*Client).MessagesSetChatAvailableReactions(ctx context.Context, request *MessagesSetChatAvailableReactionsRequest) (UpdatesClass, error)
MessagesSetChatThemeRequest represents TL type `messages.setChatTheme#e63be13f`. Change the chat theme of a certain chat See https://core.telegram.org/method/messages.setChatTheme for reference. Emoji, identifying a specific chat theme; a list of chat themes can be fetched using account.getChatThemes¹ Links: 1) https://core.telegram.org/method/account.getChatThemes Private chat where to change theme Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetChatThemeRequest from given interface. GetEmoticon returns value of Emoticon 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. (*MessagesSetChatThemeRequest) Zero() bool *MessagesSetChatThemeRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetChatThemeRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetChatThemeRequest : github.com/gotd/td/bin.Decoder *MessagesSetChatThemeRequest : github.com/gotd/td/bin.Encoder *MessagesSetChatThemeRequest : github.com/gotd/td/bin.Object *MessagesSetChatThemeRequest : github.com/gotd/td/tdp.Object *MessagesSetChatThemeRequest : fmt.Stringer func (*Client).MessagesSetChatTheme(ctx context.Context, request *MessagesSetChatThemeRequest) (UpdatesClass, error)
MessagesSetChatWallPaperRequest represents TL type `messages.setChatWallPaper#8ffacae1`. Set a custom wallpaper »¹ in a specific private chat with another user. Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/method/messages.setChatWallPaper for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Only for Premium¹ users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user. Links: 1) https://core.telegram.org/api/premium If the wallpaper was obtained from a messageActionSetChatWallPaper¹ service message, must contain the ID of that message. Links: 1) https://core.telegram.org/constructor/messageActionSetChatWallPaper Use SetID and GetID helpers. The private chat where the wallpaper will be set If we don't like the new wallpaper the other user of the chat has chosen for us using the for_both flag, we can re-set our previous wallpaper just on our side using this flag. Wallpaper settings, obtained as described in the wallpaper documentation »¹ or from messageActionSetChatWallPaper².wallpaper.settings. Links: 1) https://core.telegram.org/api/wallpapers#uploading-wallpapers 2) https://core.telegram.org/constructor/messageActionSetChatWallPaper Use SetSettings and GetSettings helpers. The wallpaper »¹, obtained as described in the wallpaper documentation »²; must not be provided when installing a wallpaper obtained from a messageActionSetChatWallPaper³ service message (id must be provided, instead). Links: 1) https://core.telegram.org/api/wallpapers 2) https://core.telegram.org/api/wallpapers#uploading-wallpapers 3) https://core.telegram.org/constructor/messageActionSetChatWallPaper Use SetWallpaper and GetWallpaper helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetChatWallPaperRequest from given interface. GetForBoth returns value of ForBoth conditional field. GetID returns value of ID conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. GetRevert returns value of Revert conditional field. GetSettings returns value of Settings conditional field and boolean which is true if field was set. GetWallpaper returns value of Wallpaper conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetForBoth sets value of ForBoth conditional field. SetID sets value of ID conditional field. SetRevert sets value of Revert conditional field. SetSettings sets value of Settings conditional field. SetWallpaper sets value of Wallpaper 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. (*MessagesSetChatWallPaperRequest) Zero() bool *MessagesSetChatWallPaperRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetChatWallPaperRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetChatWallPaperRequest : github.com/gotd/td/bin.Decoder *MessagesSetChatWallPaperRequest : github.com/gotd/td/bin.Encoder *MessagesSetChatWallPaperRequest : github.com/gotd/td/bin.Object *MessagesSetChatWallPaperRequest : github.com/gotd/td/tdp.Object *MessagesSetChatWallPaperRequest : fmt.Stringer func (*Client).MessagesSetChatWallPaper(ctx context.Context, request *MessagesSetChatWallPaperRequest) (UpdatesClass, error)
MessagesSetDefaultHistoryTTLRequest represents TL type `messages.setDefaultHistoryTTL#9eb51445`. Changes the default value of the Time-To-Live setting, applied to all new chats. See https://core.telegram.org/method/messages.setDefaultHistoryTTL 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 MessagesSetDefaultHistoryTTLRequest 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. (*MessagesSetDefaultHistoryTTLRequest) Zero() bool *MessagesSetDefaultHistoryTTLRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetDefaultHistoryTTLRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetDefaultHistoryTTLRequest : github.com/gotd/td/bin.Decoder *MessagesSetDefaultHistoryTTLRequest : github.com/gotd/td/bin.Encoder *MessagesSetDefaultHistoryTTLRequest : github.com/gotd/td/bin.Object *MessagesSetDefaultHistoryTTLRequest : github.com/gotd/td/tdp.Object *MessagesSetDefaultHistoryTTLRequest : fmt.Stringer
MessagesSetDefaultReactionRequest represents TL type `messages.setDefaultReaction#4f47a016`. Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using help.getConfig, reactions_default field¹. Links: 1. https://core.telegram.org/method/help.getConfig See https://core.telegram.org/method/messages.setDefaultReaction for reference. New emoji reaction Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetDefaultReactionRequest from given interface. GetReaction returns value of Reaction 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. (*MessagesSetDefaultReactionRequest) Zero() bool *MessagesSetDefaultReactionRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetDefaultReactionRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetDefaultReactionRequest : github.com/gotd/td/bin.Decoder *MessagesSetDefaultReactionRequest : github.com/gotd/td/bin.Encoder *MessagesSetDefaultReactionRequest : github.com/gotd/td/bin.Object *MessagesSetDefaultReactionRequest : github.com/gotd/td/tdp.Object *MessagesSetDefaultReactionRequest : fmt.Stringer
MessagesSetEncryptedTypingRequest represents TL type `messages.setEncryptedTyping#791451ed`. Send typing event by the current user to a secret chat. See https://core.telegram.org/method/messages.setEncryptedTyping for reference. Secret chat ID Typing.Possible values:(boolTrue)¹, if the user started typing and more than 5 seconds have passed since the last request(boolFalse)², if the user stopped typing Links: 1) https://core.telegram.org/constructor/boolTrue 2) https://core.telegram.org/constructor/boolFalse Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetEncryptedTypingRequest from given interface. GetPeer returns value of Peer field. GetTyping returns value of Typing 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. (*MessagesSetEncryptedTypingRequest) Zero() bool *MessagesSetEncryptedTypingRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetEncryptedTypingRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetEncryptedTypingRequest : github.com/gotd/td/bin.Decoder *MessagesSetEncryptedTypingRequest : github.com/gotd/td/bin.Encoder *MessagesSetEncryptedTypingRequest : github.com/gotd/td/bin.Object *MessagesSetEncryptedTypingRequest : github.com/gotd/td/tdp.Object *MessagesSetEncryptedTypingRequest : fmt.Stringer func (*Client).MessagesSetEncryptedTyping(ctx context.Context, request *MessagesSetEncryptedTypingRequest) (bool, error)
MessagesSetGameScoreRequest represents TL type `messages.setGameScore#8ef8ecc0`. Use this method to set the score of the specified user in a game sent as a normal message (bots only). See https://core.telegram.org/method/messages.setGameScore for reference. Set this flag if the game message should be automatically edited to include the current scoreboard Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters Identifier of the sent message Unique identifier of target chat New score User identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetGameScoreRequest from given interface. GetEditMessage returns value of EditMessage conditional field. GetForce returns value of Force conditional field. GetID returns value of ID field. GetPeer returns value of Peer field. GetScore returns value of Score field. GetUserID returns value of UserID field. SetEditMessage sets value of EditMessage conditional field. SetFlags sets flags for non-zero fields. SetForce sets value of Force 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. (*MessagesSetGameScoreRequest) Zero() bool *MessagesSetGameScoreRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetGameScoreRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetGameScoreRequest : github.com/gotd/td/bin.Decoder *MessagesSetGameScoreRequest : github.com/gotd/td/bin.Encoder *MessagesSetGameScoreRequest : github.com/gotd/td/bin.Object *MessagesSetGameScoreRequest : github.com/gotd/td/tdp.Object *MessagesSetGameScoreRequest : fmt.Stringer func (*Client).MessagesSetGameScore(ctx context.Context, request *MessagesSetGameScoreRequest) (UpdatesClass, error)
MessagesSetHistoryTTLRequest represents TL type `messages.setHistoryTTL#b80e5fe4`. Set maximum Time-To-Live of all messages in the specified chat See https://core.telegram.org/method/messages.setHistoryTTL for reference. The dialog Automatically delete all messages sent in the chat after this many seconds Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetHistoryTTLRequest from given interface. GetPeer returns value of Peer 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. (*MessagesSetHistoryTTLRequest) Zero() bool *MessagesSetHistoryTTLRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetHistoryTTLRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetHistoryTTLRequest : github.com/gotd/td/bin.Decoder *MessagesSetHistoryTTLRequest : github.com/gotd/td/bin.Encoder *MessagesSetHistoryTTLRequest : github.com/gotd/td/bin.Object *MessagesSetHistoryTTLRequest : github.com/gotd/td/tdp.Object *MessagesSetHistoryTTLRequest : fmt.Stringer func (*Client).MessagesSetHistoryTTL(ctx context.Context, request *MessagesSetHistoryTTLRequest) (UpdatesClass, error)
MessagesSetInlineBotResultsRequest represents TL type `messages.setInlineBotResults#bb12a419`. Answer an inline query, for bots only See https://core.telegram.org/method/messages.setInlineBotResults for reference. The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Set this flag if the results are composed of media files Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes. Use SetNextOffset and GetNextOffset helpers. Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query Unique identifier for the answered query Vector of results for the inline query If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter. Use SetSwitchPm and GetSwitchPm helpers. If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified inline mode mini app¹. Links: 1) https://core.telegram.org/api/bots/webapps#inline-mode-mini-apps Use SetSwitchWebview and GetSwitchWebview helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetInlineBotResultsRequest from given interface. GetCacheTime returns value of CacheTime field. GetGallery returns value of Gallery conditional field. GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set. GetPrivate returns value of Private conditional field. GetQueryID returns value of QueryID field. GetResults returns value of Results field. GetSwitchPm returns value of SwitchPm conditional field and boolean which is true if field was set. GetSwitchWebview returns value of SwitchWebview conditional field and boolean which is true if field was set. MapResults returns field Results wrapped in InputBotInlineResultClassArray helper. SetFlags sets flags for non-zero fields. SetGallery sets value of Gallery conditional field. SetNextOffset sets value of NextOffset conditional field. SetPrivate sets value of Private conditional field. SetSwitchPm sets value of SwitchPm conditional field. SetSwitchWebview sets value of SwitchWebview 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. (*MessagesSetInlineBotResultsRequest) Zero() bool *MessagesSetInlineBotResultsRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetInlineBotResultsRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetInlineBotResultsRequest : github.com/gotd/td/bin.Decoder *MessagesSetInlineBotResultsRequest : github.com/gotd/td/bin.Encoder *MessagesSetInlineBotResultsRequest : github.com/gotd/td/bin.Object *MessagesSetInlineBotResultsRequest : github.com/gotd/td/tdp.Object *MessagesSetInlineBotResultsRequest : fmt.Stringer func (*Client).MessagesSetInlineBotResults(ctx context.Context, request *MessagesSetInlineBotResultsRequest) (bool, error)
MessagesSetInlineGameScoreRequest represents TL type `messages.setInlineGameScore#15ad9f64`. Use this method to set the score of the specified user in a game sent as an inline message (bots only). See https://core.telegram.org/method/messages.setInlineGameScore for reference. Set this flag if the game message should be automatically edited to include the current scoreboard Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters ID of the inline message New score User identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetInlineGameScoreRequest from given interface. GetEditMessage returns value of EditMessage conditional field. GetForce returns value of Force conditional field. GetID returns value of ID field. GetScore returns value of Score field. GetUserID returns value of UserID field. SetEditMessage sets value of EditMessage conditional field. SetFlags sets flags for non-zero fields. SetForce sets value of Force 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. (*MessagesSetInlineGameScoreRequest) Zero() bool *MessagesSetInlineGameScoreRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetInlineGameScoreRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetInlineGameScoreRequest : github.com/gotd/td/bin.Decoder *MessagesSetInlineGameScoreRequest : github.com/gotd/td/bin.Encoder *MessagesSetInlineGameScoreRequest : github.com/gotd/td/bin.Object *MessagesSetInlineGameScoreRequest : github.com/gotd/td/tdp.Object *MessagesSetInlineGameScoreRequest : fmt.Stringer func (*Client).MessagesSetInlineGameScore(ctx context.Context, request *MessagesSetInlineGameScoreRequest) (bool, error)
MessagesSetTypingRequest represents TL type `messages.setTyping#58943ee2`. Sends a current user typing event (see SendMessageAction¹ for all event types) to a conversation partner or group. Links: 1. https://core.telegram.org/type/SendMessageAction See https://core.telegram.org/method/messages.setTyping for reference. Type of action Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Target user or group Topic ID¹ Links: 1) https://core.telegram.org/api/threads Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSetTypingRequest from given interface. GetAction returns value of Action field. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*MessagesSetTypingRequest) Zero() bool *MessagesSetTypingRequest : github.com/gotd/td/bin.BareDecoder *MessagesSetTypingRequest : github.com/gotd/td/bin.BareEncoder *MessagesSetTypingRequest : github.com/gotd/td/bin.Decoder *MessagesSetTypingRequest : github.com/gotd/td/bin.Encoder *MessagesSetTypingRequest : github.com/gotd/td/bin.Object *MessagesSetTypingRequest : github.com/gotd/td/tdp.Object *MessagesSetTypingRequest : fmt.Stringer func (*Client).MessagesSetTyping(ctx context.Context, request *MessagesSetTypingRequest) (bool, error)
MessagesSponsoredMessages represents TL type `messages.sponsoredMessages#c9ee1d87`. A set of sponsored messages associated to a channel See https://core.telegram.org/constructor/messages.sponsoredMessages for reference. Chats mentioned in the sponsored messages Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Sponsored messages If set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages. Use SetPostsBetween and GetPostsBetween helpers. Users mentioned in the sponsored messages AsNotEmpty tries to map MessagesSponsoredMessages to MessagesSponsoredMessages. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesSponsoredMessages from given interface. GetChats returns value of Chats field. GetMessages returns value of Messages field. GetPostsBetween returns value of PostsBetween conditional field and boolean which is true if field was set. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetPostsBetween sets value of PostsBetween 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. (*MessagesSponsoredMessages) Zero() bool *MessagesSponsoredMessages : MessagesSponsoredMessagesClass *MessagesSponsoredMessages : github.com/gotd/td/bin.BareDecoder *MessagesSponsoredMessages : github.com/gotd/td/bin.BareEncoder *MessagesSponsoredMessages : github.com/gotd/td/bin.Decoder *MessagesSponsoredMessages : github.com/gotd/td/bin.Encoder *MessagesSponsoredMessages : github.com/gotd/td/bin.Object *MessagesSponsoredMessages : github.com/gotd/td/tdp.Object *MessagesSponsoredMessages : fmt.Stringer func (*MessagesSponsoredMessages).AsNotEmpty() (*MessagesSponsoredMessages, bool) func MessagesSponsoredMessagesArray.First() (v MessagesSponsoredMessages, ok bool) func MessagesSponsoredMessagesArray.Last() (v MessagesSponsoredMessages, ok bool) func (*MessagesSponsoredMessagesArray).Pop() (v MessagesSponsoredMessages, ok bool) func (*MessagesSponsoredMessagesArray).PopFirst() (v MessagesSponsoredMessages, ok bool) func MessagesSponsoredMessagesClass.AsNotEmpty() (*MessagesSponsoredMessages, bool) func MessagesSponsoredMessagesClassArray.AppendOnlyNotEmpty(to []*MessagesSponsoredMessages) []*MessagesSponsoredMessages func MessagesSponsoredMessagesClassArray.AsNotEmpty() (to []*MessagesSponsoredMessages) func MessagesSponsoredMessagesClassArray.FirstAsNotEmpty() (v *MessagesSponsoredMessages, ok bool) func MessagesSponsoredMessagesClassArray.LastAsNotEmpty() (v *MessagesSponsoredMessages, ok bool) func (*MessagesSponsoredMessagesClassArray).PopAsNotEmpty() (v *MessagesSponsoredMessages, ok bool) func (*MessagesSponsoredMessagesClassArray).PopFirstAsNotEmpty() (v *MessagesSponsoredMessages, ok bool) func (*MessagesSponsoredMessagesEmpty).AsNotEmpty() (*MessagesSponsoredMessages, bool) func MessagesSponsoredMessagesClassArray.AppendOnlyNotEmpty(to []*MessagesSponsoredMessages) []*MessagesSponsoredMessages
MessagesSponsoredMessagesArray is adapter for slice of MessagesSponsoredMessages. 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 MessagesSponsoredMessages. Sort sorts slice of MessagesSponsoredMessages. SortStable sorts slice of MessagesSponsoredMessages. func MessagesSponsoredMessagesArray.Retain(keep func(x MessagesSponsoredMessages) bool) MessagesSponsoredMessagesArray func MessagesSponsoredMessagesArray.Sort(less func(a, b MessagesSponsoredMessages) bool) MessagesSponsoredMessagesArray func MessagesSponsoredMessagesArray.SortStable(less func(a, b MessagesSponsoredMessages) bool) MessagesSponsoredMessagesArray func MessagesSponsoredMessagesClassArray.AsMessagesSponsoredMessages() (to MessagesSponsoredMessagesArray)
MessagesSponsoredMessages boxes the MessagesSponsoredMessagesClass providing a helper. SponsoredMessages MessagesSponsoredMessagesClass Decode implements bin.Decoder for MessagesSponsoredMessagesBox. Encode implements bin.Encode for MessagesSponsoredMessagesBox. *MessagesSponsoredMessagesBox : github.com/gotd/td/bin.Decoder *MessagesSponsoredMessagesBox : github.com/gotd/td/bin.Encoder *MessagesSponsoredMessagesBox : github.com/gotd/td/bin.Object
MessagesSponsoredMessagesClass represents messages.SponsoredMessages generic type. See https://core.telegram.org/type/messages.SponsoredMessages for reference. Example: g, err := tg.DecodeMessagesSponsoredMessages(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesSponsoredMessages: // messages.sponsoredMessages#c9ee1d87 case *tg.MessagesSponsoredMessagesEmpty: // messages.sponsoredMessagesEmpty#1839490f default: panic(v) } AsNotEmpty tries to map MessagesSponsoredMessagesClass to MessagesSponsoredMessages. ( MessagesSponsoredMessagesClass) Decode(b *bin.Buffer) error ( MessagesSponsoredMessagesClass) DecodeBare(b *bin.Buffer) error ( MessagesSponsoredMessagesClass) Encode(b *bin.Buffer) error ( MessagesSponsoredMessagesClass) 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. *MessagesSponsoredMessages *MessagesSponsoredMessagesEmpty MessagesSponsoredMessagesClass : github.com/gotd/td/bin.BareDecoder MessagesSponsoredMessagesClass : github.com/gotd/td/bin.BareEncoder MessagesSponsoredMessagesClass : github.com/gotd/td/bin.Decoder MessagesSponsoredMessagesClass : github.com/gotd/td/bin.Encoder MessagesSponsoredMessagesClass : github.com/gotd/td/bin.Object MessagesSponsoredMessagesClass : fmt.Stringer func DecodeMessagesSponsoredMessages(buf *bin.Buffer) (MessagesSponsoredMessagesClass, error) func (*Client).ChannelsGetSponsoredMessages(ctx context.Context, channel InputChannelClass) (MessagesSponsoredMessagesClass, error) func MessagesSponsoredMessagesClassArray.First() (v MessagesSponsoredMessagesClass, ok bool) func MessagesSponsoredMessagesClassArray.Last() (v MessagesSponsoredMessagesClass, ok bool) func (*MessagesSponsoredMessagesClassArray).Pop() (v MessagesSponsoredMessagesClass, ok bool) func (*MessagesSponsoredMessagesClassArray).PopFirst() (v MessagesSponsoredMessagesClass, ok bool)
MessagesSponsoredMessagesClassArray is adapter for slice of MessagesSponsoredMessagesClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsMessagesSponsoredMessages returns copy with only MessagesSponsoredMessages constructors. AsNotEmpty returns copy with only NotEmpty constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of MessagesSponsoredMessagesClass. Sort sorts slice of MessagesSponsoredMessagesClass. SortStable sorts slice of MessagesSponsoredMessagesClass. func MessagesSponsoredMessagesClassArray.Retain(keep func(x MessagesSponsoredMessagesClass) bool) MessagesSponsoredMessagesClassArray func MessagesSponsoredMessagesClassArray.Sort(less func(a, b MessagesSponsoredMessagesClass) bool) MessagesSponsoredMessagesClassArray func MessagesSponsoredMessagesClassArray.SortStable(less func(a, b MessagesSponsoredMessagesClass) bool) MessagesSponsoredMessagesClassArray
MessagesSponsoredMessagesEmpty represents TL type `messages.sponsoredMessagesEmpty#1839490f`. No sponsored messages are available. See https://core.telegram.org/constructor/messages.sponsoredMessagesEmpty for reference. AsNotEmpty tries to map MessagesSponsoredMessagesEmpty to MessagesSponsoredMessages. 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. (*MessagesSponsoredMessagesEmpty) Zero() bool *MessagesSponsoredMessagesEmpty : MessagesSponsoredMessagesClass *MessagesSponsoredMessagesEmpty : github.com/gotd/td/bin.BareDecoder *MessagesSponsoredMessagesEmpty : github.com/gotd/td/bin.BareEncoder *MessagesSponsoredMessagesEmpty : github.com/gotd/td/bin.Decoder *MessagesSponsoredMessagesEmpty : github.com/gotd/td/bin.Encoder *MessagesSponsoredMessagesEmpty : github.com/gotd/td/bin.Object *MessagesSponsoredMessagesEmpty : github.com/gotd/td/tdp.Object *MessagesSponsoredMessagesEmpty : fmt.Stringer
MessagesStartBotRequest represents TL type `messages.startBot#e6df7378`. Start a conversation with a bot using a deep linking parameter¹ Links: 1. https://core.telegram.org/api/links#bot-links See https://core.telegram.org/method/messages.startBot for reference. The bot The chat where to start the bot, can be the bot's private chat or a group Random ID to avoid resending the same message Deep linking parameter¹ Links: 1) https://core.telegram.org/api/links#bot-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesStartBotRequest from given interface. GetBot returns value of Bot field. GetPeer returns value of Peer field. GetRandomID returns value of RandomID field. GetStartParam returns value of StartParam 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. (*MessagesStartBotRequest) Zero() bool *MessagesStartBotRequest : github.com/gotd/td/bin.BareDecoder *MessagesStartBotRequest : github.com/gotd/td/bin.BareEncoder *MessagesStartBotRequest : github.com/gotd/td/bin.Decoder *MessagesStartBotRequest : github.com/gotd/td/bin.Encoder *MessagesStartBotRequest : github.com/gotd/td/bin.Object *MessagesStartBotRequest : github.com/gotd/td/tdp.Object *MessagesStartBotRequest : fmt.Stringer func (*Client).MessagesStartBot(ctx context.Context, request *MessagesStartBotRequest) (UpdatesClass, error)
MessagesStartHistoryImportRequest represents TL type `messages.startHistoryImport#b43df344`. Complete the history import process¹, importing all messages into the chat. To be called only after initializing the import with messages.initHistoryImport² and uploading all files using messages.uploadImportedMedia³. Links: 1. https://core.telegram.org/api/import 2. https://core.telegram.org/method/messages.initHistoryImport 3. https://core.telegram.org/method/messages.uploadImportedMedia See https://core.telegram.org/method/messages.startHistoryImport for reference. Identifier of a history import session, returned by messages.initHistoryImport¹. Links: 1) https://core.telegram.org/method/messages.initHistoryImport The Telegram chat where the messages should be imported, click here for more info »¹ Links: 1) https://core.telegram.org/api/import Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesStartHistoryImportRequest from given interface. GetImportID returns value of ImportID 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. (*MessagesStartHistoryImportRequest) Zero() bool *MessagesStartHistoryImportRequest : github.com/gotd/td/bin.BareDecoder *MessagesStartHistoryImportRequest : github.com/gotd/td/bin.BareEncoder *MessagesStartHistoryImportRequest : github.com/gotd/td/bin.Decoder *MessagesStartHistoryImportRequest : github.com/gotd/td/bin.Encoder *MessagesStartHistoryImportRequest : github.com/gotd/td/bin.Object *MessagesStartHistoryImportRequest : github.com/gotd/td/tdp.Object *MessagesStartHistoryImportRequest : fmt.Stringer func (*Client).MessagesStartHistoryImport(ctx context.Context, request *MessagesStartHistoryImportRequest) (bool, error)
MessagesStickers represents TL type `messages.stickers#30a6ec7e`. Found stickers See https://core.telegram.org/constructor/messages.stickers for reference. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Stickers AsModified tries to map MessagesStickers to MessagesStickers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesStickers from given interface. GetHash returns value of Hash field. GetStickers returns value of Stickers field. MapStickers returns field Stickers 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. (*MessagesStickers) Zero() bool *MessagesStickers : MessagesStickersClass *MessagesStickers : github.com/gotd/td/bin.BareDecoder *MessagesStickers : github.com/gotd/td/bin.BareEncoder *MessagesStickers : github.com/gotd/td/bin.Decoder *MessagesStickers : github.com/gotd/td/bin.Encoder *MessagesStickers : github.com/gotd/td/bin.Object *MessagesStickers : github.com/gotd/td/tdp.Object *MessagesStickers : fmt.Stringer func (*MessagesStickers).AsModified() (*MessagesStickers, bool) func MessagesStickersArray.First() (v MessagesStickers, ok bool) func MessagesStickersArray.Last() (v MessagesStickers, ok bool) func (*MessagesStickersArray).Pop() (v MessagesStickers, ok bool) func (*MessagesStickersArray).PopFirst() (v MessagesStickers, ok bool) func MessagesStickersClass.AsModified() (*MessagesStickers, bool) func MessagesStickersClassArray.AppendOnlyModified(to []*MessagesStickers) []*MessagesStickers func MessagesStickersClassArray.AsModified() (to []*MessagesStickers) func MessagesStickersClassArray.FirstAsModified() (v *MessagesStickers, ok bool) func MessagesStickersClassArray.LastAsModified() (v *MessagesStickers, ok bool) func (*MessagesStickersClassArray).PopAsModified() (v *MessagesStickers, ok bool) func (*MessagesStickersClassArray).PopFirstAsModified() (v *MessagesStickers, ok bool) func (*MessagesStickersNotModified).AsModified() (*MessagesStickers, bool) func MessagesStickersClassArray.AppendOnlyModified(to []*MessagesStickers) []*MessagesStickers
MessagesStickersArray is adapter for slice of MessagesStickers. 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 MessagesStickers. Sort sorts slice of MessagesStickers. SortStable sorts slice of MessagesStickers. func MessagesStickersArray.Retain(keep func(x MessagesStickers) bool) MessagesStickersArray func MessagesStickersArray.Sort(less func(a, b MessagesStickers) bool) MessagesStickersArray func MessagesStickersArray.SortStable(less func(a, b MessagesStickers) bool) MessagesStickersArray func MessagesStickersClassArray.AsMessagesStickers() (to MessagesStickersArray)
MessagesStickers boxes the MessagesStickersClass providing a helper. Stickers MessagesStickersClass Decode implements bin.Decoder for MessagesStickersBox. Encode implements bin.Encode for MessagesStickersBox. *MessagesStickersBox : github.com/gotd/td/bin.Decoder *MessagesStickersBox : github.com/gotd/td/bin.Encoder *MessagesStickersBox : github.com/gotd/td/bin.Object
MessagesStickersClass represents messages.Stickers generic type. See https://core.telegram.org/type/messages.Stickers for reference. Example: g, err := tg.DecodeMessagesStickers(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesStickersNotModified: // messages.stickersNotModified#f1749a22 case *tg.MessagesStickers: // messages.stickers#30a6ec7e default: panic(v) } AsModified tries to map MessagesStickersClass to MessagesStickers. ( MessagesStickersClass) Decode(b *bin.Buffer) error ( MessagesStickersClass) DecodeBare(b *bin.Buffer) error ( MessagesStickersClass) Encode(b *bin.Buffer) error ( MessagesStickersClass) 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. *MessagesStickers *MessagesStickersNotModified MessagesStickersClass : github.com/gotd/td/bin.BareDecoder MessagesStickersClass : github.com/gotd/td/bin.BareEncoder MessagesStickersClass : github.com/gotd/td/bin.Decoder MessagesStickersClass : github.com/gotd/td/bin.Encoder MessagesStickersClass : github.com/gotd/td/bin.Object MessagesStickersClass : fmt.Stringer func DecodeMessagesStickers(buf *bin.Buffer) (MessagesStickersClass, error) func (*Client).MessagesGetStickers(ctx context.Context, request *MessagesGetStickersRequest) (MessagesStickersClass, error) func MessagesStickersClassArray.First() (v MessagesStickersClass, ok bool) func MessagesStickersClassArray.Last() (v MessagesStickersClass, ok bool) func (*MessagesStickersClassArray).Pop() (v MessagesStickersClass, ok bool) func (*MessagesStickersClassArray).PopFirst() (v MessagesStickersClass, ok bool)
MessagesStickersClassArray is adapter for slice of MessagesStickersClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesStickers returns copy with only MessagesStickers 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 MessagesStickersClass. Sort sorts slice of MessagesStickersClass. SortStable sorts slice of MessagesStickersClass. func MessagesStickersClassArray.Retain(keep func(x MessagesStickersClass) bool) MessagesStickersClassArray func MessagesStickersClassArray.Sort(less func(a, b MessagesStickersClass) bool) MessagesStickersClassArray func MessagesStickersClassArray.SortStable(less func(a, b MessagesStickersClass) bool) MessagesStickersClassArray
MessagesStickerSet represents TL type `messages.stickerSet#6e153f16`. Stickerset and stickers inside it See https://core.telegram.org/constructor/messages.stickerSet for reference. Stickers in stickerset Keywords for some or every sticker in the stickerset. Emoji info for stickers The stickerset AsModified tries to map MessagesStickerSet to MessagesStickerSet. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesStickerSet from given interface. GetDocuments returns value of Documents field. GetKeywords returns value of Keywords field. GetPacks returns value of Packs field. GetSet returns value of Set field. MapDocuments returns field Documents 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. (*MessagesStickerSet) Zero() bool *MessagesStickerSet : MessagesStickerSetClass *MessagesStickerSet : github.com/gotd/td/bin.BareDecoder *MessagesStickerSet : github.com/gotd/td/bin.BareEncoder *MessagesStickerSet : github.com/gotd/td/bin.Decoder *MessagesStickerSet : github.com/gotd/td/bin.Encoder *MessagesStickerSet : github.com/gotd/td/bin.Object *MessagesStickerSet : github.com/gotd/td/tdp.Object *MessagesStickerSet : fmt.Stringer func (*MessagesStickerSet).AsModified() (*MessagesStickerSet, bool) func MessagesStickerSetArray.First() (v MessagesStickerSet, ok bool) func MessagesStickerSetArray.Last() (v MessagesStickerSet, ok bool) func (*MessagesStickerSetArray).Pop() (v MessagesStickerSet, ok bool) func (*MessagesStickerSetArray).PopFirst() (v MessagesStickerSet, ok bool) func MessagesStickerSetClass.AsModified() (*MessagesStickerSet, bool) func MessagesStickerSetClassArray.AppendOnlyModified(to []*MessagesStickerSet) []*MessagesStickerSet func MessagesStickerSetClassArray.AsModified() (to []*MessagesStickerSet) func MessagesStickerSetClassArray.FirstAsModified() (v *MessagesStickerSet, ok bool) func MessagesStickerSetClassArray.LastAsModified() (v *MessagesStickerSet, ok bool) func (*MessagesStickerSetClassArray).PopAsModified() (v *MessagesStickerSet, ok bool) func (*MessagesStickerSetClassArray).PopFirstAsModified() (v *MessagesStickerSet, ok bool) func (*MessagesStickerSetNotModified).AsModified() (*MessagesStickerSet, bool) func MessagesStickerSetClassArray.AppendOnlyModified(to []*MessagesStickerSet) []*MessagesStickerSet
MessagesStickerSetArray is adapter for slice of MessagesStickerSet. 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 MessagesStickerSet. Sort sorts slice of MessagesStickerSet. SortStable sorts slice of MessagesStickerSet. func MessagesStickerSetArray.Retain(keep func(x MessagesStickerSet) bool) MessagesStickerSetArray func MessagesStickerSetArray.Sort(less func(a, b MessagesStickerSet) bool) MessagesStickerSetArray func MessagesStickerSetArray.SortStable(less func(a, b MessagesStickerSet) bool) MessagesStickerSetArray func MessagesStickerSetClassArray.AsMessagesStickerSet() (to MessagesStickerSetArray)
MessagesStickerSet boxes the MessagesStickerSetClass providing a helper. StickerSet MessagesStickerSetClass Decode implements bin.Decoder for MessagesStickerSetBox. Encode implements bin.Encode for MessagesStickerSetBox. *MessagesStickerSetBox : github.com/gotd/td/bin.Decoder *MessagesStickerSetBox : github.com/gotd/td/bin.Encoder *MessagesStickerSetBox : github.com/gotd/td/bin.Object
MessagesStickerSetClass represents messages.StickerSet generic type. See https://core.telegram.org/type/messages.StickerSet for reference. Example: g, err := tg.DecodeMessagesStickerSet(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesStickerSet: // messages.stickerSet#6e153f16 case *tg.MessagesStickerSetNotModified: // messages.stickerSetNotModified#d3f924eb default: panic(v) } AsModified tries to map MessagesStickerSetClass to MessagesStickerSet. ( MessagesStickerSetClass) Decode(b *bin.Buffer) error ( MessagesStickerSetClass) DecodeBare(b *bin.Buffer) error ( MessagesStickerSetClass) Encode(b *bin.Buffer) error ( MessagesStickerSetClass) 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. *MessagesStickerSet *MessagesStickerSetNotModified MessagesStickerSetClass : github.com/gotd/td/bin.BareDecoder MessagesStickerSetClass : github.com/gotd/td/bin.BareEncoder MessagesStickerSetClass : github.com/gotd/td/bin.Decoder MessagesStickerSetClass : github.com/gotd/td/bin.Encoder MessagesStickerSetClass : github.com/gotd/td/bin.Object MessagesStickerSetClass : fmt.Stringer func DecodeMessagesStickerSet(buf *bin.Buffer) (MessagesStickerSetClass, error) func (*Client).MessagesGetStickerSet(ctx context.Context, request *MessagesGetStickerSetRequest) (MessagesStickerSetClass, error) func (*Client).StickersAddStickerToSet(ctx context.Context, request *StickersAddStickerToSetRequest) (MessagesStickerSetClass, error) func (*Client).StickersChangeSticker(ctx context.Context, request *StickersChangeStickerRequest) (MessagesStickerSetClass, error) func (*Client).StickersChangeStickerPosition(ctx context.Context, request *StickersChangeStickerPositionRequest) (MessagesStickerSetClass, error) func (*Client).StickersCreateStickerSet(ctx context.Context, request *StickersCreateStickerSetRequest) (MessagesStickerSetClass, error) func (*Client).StickersRemoveStickerFromSet(ctx context.Context, sticker InputDocumentClass) (MessagesStickerSetClass, error) func (*Client).StickersRenameStickerSet(ctx context.Context, request *StickersRenameStickerSetRequest) (MessagesStickerSetClass, error) func (*Client).StickersSetStickerSetThumb(ctx context.Context, request *StickersSetStickerSetThumbRequest) (MessagesStickerSetClass, error) func MessagesStickerSetClassArray.First() (v MessagesStickerSetClass, ok bool) func MessagesStickerSetClassArray.Last() (v MessagesStickerSetClass, ok bool) func (*MessagesStickerSetClassArray).Pop() (v MessagesStickerSetClass, ok bool) func (*MessagesStickerSetClassArray).PopFirst() (v MessagesStickerSetClass, ok bool) func (*UpdateNewStickerSet).GetStickerset() (value MessagesStickerSetClass)
MessagesStickerSetClassArray is adapter for slice of MessagesStickerSetClass. AppendOnlyModified appends only Modified constructors to given slice. AsMessagesStickerSet returns copy with only MessagesStickerSet 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 MessagesStickerSetClass. Sort sorts slice of MessagesStickerSetClass. SortStable sorts slice of MessagesStickerSetClass. func MessagesStickerSetClassArray.Retain(keep func(x MessagesStickerSetClass) bool) MessagesStickerSetClassArray func MessagesStickerSetClassArray.Sort(less func(a, b MessagesStickerSetClass) bool) MessagesStickerSetClassArray func MessagesStickerSetClassArray.SortStable(less func(a, b MessagesStickerSetClass) bool) MessagesStickerSetClassArray
MessagesStickerSetInstallResultArchive represents TL type `messages.stickerSetInstallResultArchive#35e410a8`. The stickerset was installed, but since there are too many stickersets some were archived See https://core.telegram.org/constructor/messages.stickerSetInstallResultArchive for reference. Archived stickersets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesStickerSetInstallResultArchive from given interface. GetSets returns value of Sets field. MapSets returns field Sets wrapped in StickerSetCoveredClassArray 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. (*MessagesStickerSetInstallResultArchive) Zero() bool *MessagesStickerSetInstallResultArchive : MessagesStickerSetInstallResultClass *MessagesStickerSetInstallResultArchive : github.com/gotd/td/bin.BareDecoder *MessagesStickerSetInstallResultArchive : github.com/gotd/td/bin.BareEncoder *MessagesStickerSetInstallResultArchive : github.com/gotd/td/bin.Decoder *MessagesStickerSetInstallResultArchive : github.com/gotd/td/bin.Encoder *MessagesStickerSetInstallResultArchive : github.com/gotd/td/bin.Object *MessagesStickerSetInstallResultArchive : github.com/gotd/td/tdp.Object *MessagesStickerSetInstallResultArchive : fmt.Stringer func MessagesStickerSetInstallResultArchiveArray.First() (v MessagesStickerSetInstallResultArchive, ok bool) func MessagesStickerSetInstallResultArchiveArray.Last() (v MessagesStickerSetInstallResultArchive, ok bool) func (*MessagesStickerSetInstallResultArchiveArray).Pop() (v MessagesStickerSetInstallResultArchive, ok bool) func (*MessagesStickerSetInstallResultArchiveArray).PopFirst() (v MessagesStickerSetInstallResultArchive, ok bool)
MessagesStickerSetInstallResultArchiveArray is adapter for slice of MessagesStickerSetInstallResultArchive. 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 MessagesStickerSetInstallResultArchive. Sort sorts slice of MessagesStickerSetInstallResultArchive. SortStable sorts slice of MessagesStickerSetInstallResultArchive. func MessagesStickerSetInstallResultArchiveArray.Retain(keep func(x MessagesStickerSetInstallResultArchive) bool) MessagesStickerSetInstallResultArchiveArray func MessagesStickerSetInstallResultArchiveArray.Sort(less func(a, b MessagesStickerSetInstallResultArchive) bool) MessagesStickerSetInstallResultArchiveArray func MessagesStickerSetInstallResultArchiveArray.SortStable(less func(a, b MessagesStickerSetInstallResultArchive) bool) MessagesStickerSetInstallResultArchiveArray func MessagesStickerSetInstallResultClassArray.AsMessagesStickerSetInstallResultArchive() (to MessagesStickerSetInstallResultArchiveArray)
MessagesStickerSetInstallResult boxes the MessagesStickerSetInstallResultClass providing a helper. StickerSetInstallResult MessagesStickerSetInstallResultClass Decode implements bin.Decoder for MessagesStickerSetInstallResultBox. Encode implements bin.Encode for MessagesStickerSetInstallResultBox. *MessagesStickerSetInstallResultBox : github.com/gotd/td/bin.Decoder *MessagesStickerSetInstallResultBox : github.com/gotd/td/bin.Encoder *MessagesStickerSetInstallResultBox : github.com/gotd/td/bin.Object
MessagesStickerSetInstallResultClass represents messages.StickerSetInstallResult generic type. See https://core.telegram.org/type/messages.StickerSetInstallResult for reference. Example: g, err := tg.DecodeMessagesStickerSetInstallResult(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.MessagesStickerSetInstallResultSuccess: // messages.stickerSetInstallResultSuccess#38641628 case *tg.MessagesStickerSetInstallResultArchive: // messages.stickerSetInstallResultArchive#35e410a8 default: panic(v) } ( MessagesStickerSetInstallResultClass) Decode(b *bin.Buffer) error ( MessagesStickerSetInstallResultClass) DecodeBare(b *bin.Buffer) error ( MessagesStickerSetInstallResultClass) Encode(b *bin.Buffer) error ( MessagesStickerSetInstallResultClass) 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. *MessagesStickerSetInstallResultArchive *MessagesStickerSetInstallResultSuccess MessagesStickerSetInstallResultClass : github.com/gotd/td/bin.BareDecoder MessagesStickerSetInstallResultClass : github.com/gotd/td/bin.BareEncoder MessagesStickerSetInstallResultClass : github.com/gotd/td/bin.Decoder MessagesStickerSetInstallResultClass : github.com/gotd/td/bin.Encoder MessagesStickerSetInstallResultClass : github.com/gotd/td/bin.Object MessagesStickerSetInstallResultClass : fmt.Stringer func DecodeMessagesStickerSetInstallResult(buf *bin.Buffer) (MessagesStickerSetInstallResultClass, error) func (*Client).MessagesInstallStickerSet(ctx context.Context, request *MessagesInstallStickerSetRequest) (MessagesStickerSetInstallResultClass, error) func MessagesStickerSetInstallResultClassArray.First() (v MessagesStickerSetInstallResultClass, ok bool) func MessagesStickerSetInstallResultClassArray.Last() (v MessagesStickerSetInstallResultClass, ok bool) func (*MessagesStickerSetInstallResultClassArray).Pop() (v MessagesStickerSetInstallResultClass, ok bool) func (*MessagesStickerSetInstallResultClassArray).PopFirst() (v MessagesStickerSetInstallResultClass, ok bool)
MessagesStickerSetInstallResultClassArray is adapter for slice of MessagesStickerSetInstallResultClass. AsMessagesStickerSetInstallResultArchive returns copy with only MessagesStickerSetInstallResultArchive 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 MessagesStickerSetInstallResultClass. Sort sorts slice of MessagesStickerSetInstallResultClass. SortStable sorts slice of MessagesStickerSetInstallResultClass. func MessagesStickerSetInstallResultClassArray.Retain(keep func(x MessagesStickerSetInstallResultClass) bool) MessagesStickerSetInstallResultClassArray func MessagesStickerSetInstallResultClassArray.Sort(less func(a, b MessagesStickerSetInstallResultClass) bool) MessagesStickerSetInstallResultClassArray func MessagesStickerSetInstallResultClassArray.SortStable(less func(a, b MessagesStickerSetInstallResultClass) bool) MessagesStickerSetInstallResultClassArray
MessagesStickerSetInstallResultSuccess represents TL type `messages.stickerSetInstallResultSuccess#38641628`. The stickerset was installed successfully See https://core.telegram.org/constructor/messages.stickerSetInstallResultSuccess 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. (*MessagesStickerSetInstallResultSuccess) Zero() bool *MessagesStickerSetInstallResultSuccess : MessagesStickerSetInstallResultClass *MessagesStickerSetInstallResultSuccess : github.com/gotd/td/bin.BareDecoder *MessagesStickerSetInstallResultSuccess : github.com/gotd/td/bin.BareEncoder *MessagesStickerSetInstallResultSuccess : github.com/gotd/td/bin.Decoder *MessagesStickerSetInstallResultSuccess : github.com/gotd/td/bin.Encoder *MessagesStickerSetInstallResultSuccess : github.com/gotd/td/bin.Object *MessagesStickerSetInstallResultSuccess : github.com/gotd/td/tdp.Object *MessagesStickerSetInstallResultSuccess : fmt.Stringer
MessagesStickerSetNotModified represents TL type `messages.stickerSetNotModified#d3f924eb`. The stickerset hasn't changed See https://core.telegram.org/constructor/messages.stickerSetNotModified for reference. AsModified tries to map MessagesStickerSetNotModified to MessagesStickerSet. 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. (*MessagesStickerSetNotModified) Zero() bool *MessagesStickerSetNotModified : MessagesStickerSetClass *MessagesStickerSetNotModified : github.com/gotd/td/bin.BareDecoder *MessagesStickerSetNotModified : github.com/gotd/td/bin.BareEncoder *MessagesStickerSetNotModified : github.com/gotd/td/bin.Decoder *MessagesStickerSetNotModified : github.com/gotd/td/bin.Encoder *MessagesStickerSetNotModified : github.com/gotd/td/bin.Object *MessagesStickerSetNotModified : github.com/gotd/td/tdp.Object *MessagesStickerSetNotModified : fmt.Stringer
MessagesStickersNotModified represents TL type `messages.stickersNotModified#f1749a22`. No new stickers were found for the given query See https://core.telegram.org/constructor/messages.stickersNotModified for reference. AsModified tries to map MessagesStickersNotModified to MessagesStickers. 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. (*MessagesStickersNotModified) Zero() bool *MessagesStickersNotModified : MessagesStickersClass *MessagesStickersNotModified : github.com/gotd/td/bin.BareDecoder *MessagesStickersNotModified : github.com/gotd/td/bin.BareEncoder *MessagesStickersNotModified : github.com/gotd/td/bin.Decoder *MessagesStickersNotModified : github.com/gotd/td/bin.Encoder *MessagesStickersNotModified : github.com/gotd/td/bin.Object *MessagesStickersNotModified : github.com/gotd/td/tdp.Object *MessagesStickersNotModified : fmt.Stringer
MessagesToggleBotInAttachMenuRequest represents TL type `messages.toggleBotInAttachMenu#69f59d69`. Enable or disable web bot attachment menu »¹ Links: 1. https://core.telegram.org/api/bots/attach See https://core.telegram.org/method/messages.toggleBotInAttachMenu for reference. Bot ID Toggle Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the user authorizes the bot to write messages to them, if requested by attachMenuBot¹.request_write_access Links: 1) https://core.telegram.org/constructor/attachMenuBot Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesToggleBotInAttachMenuRequest from given interface. GetBot returns value of Bot field. GetEnabled returns value of Enabled field. GetWriteAllowed returns value of WriteAllowed conditional field. SetFlags sets flags for non-zero fields. SetWriteAllowed sets value of WriteAllowed 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. (*MessagesToggleBotInAttachMenuRequest) Zero() bool *MessagesToggleBotInAttachMenuRequest : github.com/gotd/td/bin.BareDecoder *MessagesToggleBotInAttachMenuRequest : github.com/gotd/td/bin.BareEncoder *MessagesToggleBotInAttachMenuRequest : github.com/gotd/td/bin.Decoder *MessagesToggleBotInAttachMenuRequest : github.com/gotd/td/bin.Encoder *MessagesToggleBotInAttachMenuRequest : github.com/gotd/td/bin.Object *MessagesToggleBotInAttachMenuRequest : github.com/gotd/td/tdp.Object *MessagesToggleBotInAttachMenuRequest : fmt.Stringer func (*Client).MessagesToggleBotInAttachMenu(ctx context.Context, request *MessagesToggleBotInAttachMenuRequest) (bool, error)
MessagesToggleDialogPinRequest represents TL type `messages.toggleDialogPin#a731e257`. Pin/unpin a dialog See https://core.telegram.org/method/messages.toggleDialogPin for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The dialog to pin Whether to pin or unpin the dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesToggleDialogPinRequest from given interface. GetPeer returns value of Peer field. GetPinned returns value of Pinned conditional field. SetFlags sets flags for non-zero fields. SetPinned sets value of Pinned 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. (*MessagesToggleDialogPinRequest) Zero() bool *MessagesToggleDialogPinRequest : github.com/gotd/td/bin.BareDecoder *MessagesToggleDialogPinRequest : github.com/gotd/td/bin.BareEncoder *MessagesToggleDialogPinRequest : github.com/gotd/td/bin.Decoder *MessagesToggleDialogPinRequest : github.com/gotd/td/bin.Encoder *MessagesToggleDialogPinRequest : github.com/gotd/td/bin.Object *MessagesToggleDialogPinRequest : github.com/gotd/td/tdp.Object *MessagesToggleDialogPinRequest : fmt.Stringer func (*Client).MessagesToggleDialogPin(ctx context.Context, request *MessagesToggleDialogPinRequest) (bool, error)
MessagesToggleNoForwardsRequest represents TL type `messages.toggleNoForwards#b11eafa2`. Enable or disable content protection¹ on a channel or chat Links: 1. https://telegram.org/blog/protected-content-delete-by-date-and-more See https://core.telegram.org/method/messages.toggleNoForwards for reference. Enable or disable content protection The chat or channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesToggleNoForwardsRequest from given interface. GetEnabled returns value of Enabled 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. (*MessagesToggleNoForwardsRequest) Zero() bool *MessagesToggleNoForwardsRequest : github.com/gotd/td/bin.BareDecoder *MessagesToggleNoForwardsRequest : github.com/gotd/td/bin.BareEncoder *MessagesToggleNoForwardsRequest : github.com/gotd/td/bin.Decoder *MessagesToggleNoForwardsRequest : github.com/gotd/td/bin.Encoder *MessagesToggleNoForwardsRequest : github.com/gotd/td/bin.Object *MessagesToggleNoForwardsRequest : github.com/gotd/td/tdp.Object *MessagesToggleNoForwardsRequest : fmt.Stringer func (*Client).MessagesToggleNoForwards(ctx context.Context, request *MessagesToggleNoForwardsRequest) (UpdatesClass, error)
MessagesTogglePeerTranslationsRequest represents TL type `messages.togglePeerTranslations#e47cb579`. Show or hide the real-time chat translation popup¹ for a certain chat Links: 1. https://core.telegram.org/api/translation See https://core.telegram.org/method/messages.togglePeerTranslations for reference. Whether to disable or enable the real-time chat translation popup Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesTogglePeerTranslationsRequest from given interface. GetDisabled returns value of Disabled conditional field. GetPeer returns value of Peer field. SetDisabled sets value of Disabled 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. (*MessagesTogglePeerTranslationsRequest) Zero() bool *MessagesTogglePeerTranslationsRequest : github.com/gotd/td/bin.BareDecoder *MessagesTogglePeerTranslationsRequest : github.com/gotd/td/bin.BareEncoder *MessagesTogglePeerTranslationsRequest : github.com/gotd/td/bin.Decoder *MessagesTogglePeerTranslationsRequest : github.com/gotd/td/bin.Encoder *MessagesTogglePeerTranslationsRequest : github.com/gotd/td/bin.Object *MessagesTogglePeerTranslationsRequest : github.com/gotd/td/tdp.Object *MessagesTogglePeerTranslationsRequest : fmt.Stringer func (*Client).MessagesTogglePeerTranslations(ctx context.Context, request *MessagesTogglePeerTranslationsRequest) (bool, error)
MessagesToggleStickerSetsRequest represents TL type `messages.toggleStickerSets#b5052fea`. Apply changes to multiple stickersets See https://core.telegram.org/method/messages.toggleStickerSets for reference. Archive the specified stickersets Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Stickersets to act upon Unarchive the specified stickersets Uninstall the specified stickersets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesToggleStickerSetsRequest from given interface. GetArchive returns value of Archive conditional field. GetStickersets returns value of Stickersets field. GetUnarchive returns value of Unarchive conditional field. GetUninstall returns value of Uninstall conditional field. MapStickersets returns field Stickersets wrapped in InputStickerSetClassArray helper. SetArchive sets value of Archive conditional field. SetFlags sets flags for non-zero fields. SetUnarchive sets value of Unarchive conditional field. SetUninstall sets value of Uninstall 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. (*MessagesToggleStickerSetsRequest) Zero() bool *MessagesToggleStickerSetsRequest : github.com/gotd/td/bin.BareDecoder *MessagesToggleStickerSetsRequest : github.com/gotd/td/bin.BareEncoder *MessagesToggleStickerSetsRequest : github.com/gotd/td/bin.Decoder *MessagesToggleStickerSetsRequest : github.com/gotd/td/bin.Encoder *MessagesToggleStickerSetsRequest : github.com/gotd/td/bin.Object *MessagesToggleStickerSetsRequest : github.com/gotd/td/tdp.Object *MessagesToggleStickerSetsRequest : fmt.Stringer func (*Client).MessagesToggleStickerSets(ctx context.Context, request *MessagesToggleStickerSetsRequest) (bool, error)
MessagesTranscribeAudioRequest represents TL type `messages.transcribeAudio#269e9a49`. Transcribe voice message¹ Links: 1. https://core.telegram.org/api/transcribe See https://core.telegram.org/method/messages.transcribeAudio for reference. Message ID Chat where the invoice was sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesTranscribeAudioRequest from given interface. GetMsgID returns value of MsgID 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. (*MessagesTranscribeAudioRequest) Zero() bool *MessagesTranscribeAudioRequest : github.com/gotd/td/bin.BareDecoder *MessagesTranscribeAudioRequest : github.com/gotd/td/bin.BareEncoder *MessagesTranscribeAudioRequest : github.com/gotd/td/bin.Decoder *MessagesTranscribeAudioRequest : github.com/gotd/td/bin.Encoder *MessagesTranscribeAudioRequest : github.com/gotd/td/bin.Object *MessagesTranscribeAudioRequest : github.com/gotd/td/tdp.Object *MessagesTranscribeAudioRequest : fmt.Stringer func (*Client).MessagesTranscribeAudio(ctx context.Context, request *MessagesTranscribeAudioRequest) (*MessagesTranscribedAudio, error)
MessagesTranscribedAudio represents TL type `messages.transcribedAudio#cfb9d957`. Transcribed text from a voice message »¹ Links: 1. https://core.telegram.org/api/transcribe See https://core.telegram.org/constructor/messages.transcribedAudio for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the transcription is partial because audio transcription is still in progress, if set the user may receive further updateTranscribedAudio¹ updates with the updated transcription. Links: 1) https://core.telegram.org/constructor/updateTranscribedAudio Transcripted text Transcription ID For non-Premium¹ users, this flag will be set, indicating the remaining transcriptions in the free trial period. Links: 1) https://core.telegram.org/api/premium Use SetTrialRemainsNum and GetTrialRemainsNum helpers. For non-Premium¹ users, this flag will be set, indicating the date when the trial_remains_num counter will be reset to the maximum value of transcribe_audio_trial_weekly_number². Links: 1) https://core.telegram.org/api/premium 2) https://core.telegram.org/api/config#transcribe-audio-trial-weekly-number Use SetTrialRemainsUntilDate and GetTrialRemainsUntilDate helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesTranscribedAudio from given interface. GetPending returns value of Pending conditional field. GetText returns value of Text field. GetTranscriptionID returns value of TranscriptionID field. GetTrialRemainsNum returns value of TrialRemainsNum conditional field and boolean which is true if field was set. GetTrialRemainsUntilDate returns value of TrialRemainsUntilDate conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetPending sets value of Pending conditional field. SetTrialRemainsNum sets value of TrialRemainsNum conditional field. SetTrialRemainsUntilDate sets value of TrialRemainsUntilDate 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. (*MessagesTranscribedAudio) Zero() bool *MessagesTranscribedAudio : github.com/gotd/td/bin.BareDecoder *MessagesTranscribedAudio : github.com/gotd/td/bin.BareEncoder *MessagesTranscribedAudio : github.com/gotd/td/bin.Decoder *MessagesTranscribedAudio : github.com/gotd/td/bin.Encoder *MessagesTranscribedAudio : github.com/gotd/td/bin.Object *MessagesTranscribedAudio : github.com/gotd/td/tdp.Object *MessagesTranscribedAudio : fmt.Stringer func (*Client).MessagesTranscribeAudio(ctx context.Context, request *MessagesTranscribeAudioRequest) (*MessagesTranscribedAudio, error)
MessagesTranslateResult represents TL type `messages.translateResult#33db32f8`. Translated text with entities¹ Links: 1. https://core.telegram.org/api/entities See https://core.telegram.org/constructor/messages.translateResult for reference. Text+entities¹, for each input message. Links: 1) https://core.telegram.org/api/entities Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesTranslateResult from given interface. GetResult returns value of Result 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. (*MessagesTranslateResult) Zero() bool *MessagesTranslateResult : github.com/gotd/td/bin.BareDecoder *MessagesTranslateResult : github.com/gotd/td/bin.BareEncoder *MessagesTranslateResult : github.com/gotd/td/bin.Decoder *MessagesTranslateResult : github.com/gotd/td/bin.Encoder *MessagesTranslateResult : github.com/gotd/td/bin.Object *MessagesTranslateResult : github.com/gotd/td/tdp.Object *MessagesTranslateResult : fmt.Stringer func (*Client).MessagesTranslateText(ctx context.Context, request *MessagesTranslateTextRequest) (*MessagesTranslateResult, error)
MessagesTranslateTextRequest represents TL type `messages.translateText#63183030`. Translate a given text. Styled text entities¹ will only be preserved for Telegram Premium² users. Links: 1. https://core.telegram.org/api/entities 2. https://core.telegram.org/api/premium See https://core.telegram.org/method/messages.translateText for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields A list of message IDs to translate Use SetID and GetID helpers. If the text is a chat message, the peer ID Use SetPeer and GetPeer helpers. A list of styled messages to translate Use SetText and GetText helpers. Two-letter ISO 639-1 language code of the language to which the message is translated Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesTranslateTextRequest from given interface. GetID returns value of ID conditional field and boolean which is true if field was set. GetPeer returns value of Peer conditional field and boolean which is true if field was set. GetText returns value of Text conditional field and boolean which is true if field was set. GetToLang returns value of ToLang field. SetFlags sets flags for non-zero fields. SetID sets value of ID conditional field. SetPeer sets value of Peer conditional field. SetText sets value of Text 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. (*MessagesTranslateTextRequest) Zero() bool *MessagesTranslateTextRequest : github.com/gotd/td/bin.BareDecoder *MessagesTranslateTextRequest : github.com/gotd/td/bin.BareEncoder *MessagesTranslateTextRequest : github.com/gotd/td/bin.Decoder *MessagesTranslateTextRequest : github.com/gotd/td/bin.Encoder *MessagesTranslateTextRequest : github.com/gotd/td/bin.Object *MessagesTranslateTextRequest : github.com/gotd/td/tdp.Object *MessagesTranslateTextRequest : fmt.Stringer func (*Client).MessagesTranslateText(ctx context.Context, request *MessagesTranslateTextRequest) (*MessagesTranslateResult, error)
MessagesUninstallStickerSetRequest represents TL type `messages.uninstallStickerSet#f96e55de`. Uninstall a stickerset See https://core.telegram.org/method/messages.uninstallStickerSet for reference. The stickerset to uninstall Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesUninstallStickerSetRequest from given interface. GetStickerset returns value of Stickerset 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. (*MessagesUninstallStickerSetRequest) Zero() bool *MessagesUninstallStickerSetRequest : github.com/gotd/td/bin.BareDecoder *MessagesUninstallStickerSetRequest : github.com/gotd/td/bin.BareEncoder *MessagesUninstallStickerSetRequest : github.com/gotd/td/bin.Decoder *MessagesUninstallStickerSetRequest : github.com/gotd/td/bin.Encoder *MessagesUninstallStickerSetRequest : github.com/gotd/td/bin.Object *MessagesUninstallStickerSetRequest : github.com/gotd/td/tdp.Object *MessagesUninstallStickerSetRequest : fmt.Stringer
MessagesUnpinAllMessagesRequest represents TL type `messages.unpinAllMessages#ee22b9a8`. Unpin¹ all pinned messages Links: 1. https://core.telegram.org/api/pin See https://core.telegram.org/method/messages.unpinAllMessages for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Dialog Mark as read only mentions within the specified forum topic¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesUnpinAllMessagesRequest from given interface. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*MessagesUnpinAllMessagesRequest) Zero() bool *MessagesUnpinAllMessagesRequest : github.com/gotd/td/bin.BareDecoder *MessagesUnpinAllMessagesRequest : github.com/gotd/td/bin.BareEncoder *MessagesUnpinAllMessagesRequest : github.com/gotd/td/bin.Decoder *MessagesUnpinAllMessagesRequest : github.com/gotd/td/bin.Encoder *MessagesUnpinAllMessagesRequest : github.com/gotd/td/bin.Object *MessagesUnpinAllMessagesRequest : github.com/gotd/td/tdp.Object *MessagesUnpinAllMessagesRequest : fmt.Stringer func (*Client).MessagesUnpinAllMessages(ctx context.Context, request *MessagesUnpinAllMessagesRequest) (*MessagesAffectedHistory, error)
MessagesUpdateDialogFilterRequest represents TL type `messages.updateDialogFilter#1ad4a04a`. Update folder¹ Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/method/messages.updateDialogFilter for reference. Folder¹ info Links: 1) https://core.telegram.org/api/folders Use SetFilter and GetFilter helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Folder¹ ID Links: 1) https://core.telegram.org/api/folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesUpdateDialogFilterRequest from given interface. GetFilter returns value of Filter conditional field and boolean which is true if field was set. GetID returns value of ID field. SetFilter sets value of Filter 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. (*MessagesUpdateDialogFilterRequest) Zero() bool *MessagesUpdateDialogFilterRequest : github.com/gotd/td/bin.BareDecoder *MessagesUpdateDialogFilterRequest : github.com/gotd/td/bin.BareEncoder *MessagesUpdateDialogFilterRequest : github.com/gotd/td/bin.Decoder *MessagesUpdateDialogFilterRequest : github.com/gotd/td/bin.Encoder *MessagesUpdateDialogFilterRequest : github.com/gotd/td/bin.Object *MessagesUpdateDialogFilterRequest : github.com/gotd/td/tdp.Object *MessagesUpdateDialogFilterRequest : fmt.Stringer func (*Client).MessagesUpdateDialogFilter(ctx context.Context, request *MessagesUpdateDialogFilterRequest) (bool, error)
MessagesUpdateDialogFiltersOrderRequest represents TL type `messages.updateDialogFiltersOrder#c563c1e4`. Reorder folders¹ Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/method/messages.updateDialogFiltersOrder for reference. New folder¹ order Links: 1) https://core.telegram.org/api/folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesUpdateDialogFiltersOrderRequest 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. (*MessagesUpdateDialogFiltersOrderRequest) Zero() bool *MessagesUpdateDialogFiltersOrderRequest : github.com/gotd/td/bin.BareDecoder *MessagesUpdateDialogFiltersOrderRequest : github.com/gotd/td/bin.BareEncoder *MessagesUpdateDialogFiltersOrderRequest : github.com/gotd/td/bin.Decoder *MessagesUpdateDialogFiltersOrderRequest : github.com/gotd/td/bin.Encoder *MessagesUpdateDialogFiltersOrderRequest : github.com/gotd/td/bin.Object *MessagesUpdateDialogFiltersOrderRequest : github.com/gotd/td/tdp.Object *MessagesUpdateDialogFiltersOrderRequest : fmt.Stringer
MessagesUpdatePinnedMessageRequest represents TL type `messages.updatePinnedMessage#d2aaf7ec`. Pin a message See https://core.telegram.org/method/messages.updatePinnedMessage for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The message to pin or unpin The peer where to pin the message Whether the message should only be pinned on the local side of a one-to-one chat Pin the message silently, without triggering a notification Whether the message should unpinned or pinned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesUpdatePinnedMessageRequest from given interface. GetID returns value of ID field. GetPeer returns value of Peer field. GetPmOneside returns value of PmOneside conditional field. GetSilent returns value of Silent conditional field. GetUnpin returns value of Unpin conditional field. SetFlags sets flags for non-zero fields. SetPmOneside sets value of PmOneside conditional field. SetSilent sets value of Silent conditional field. SetUnpin sets value of Unpin 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. (*MessagesUpdatePinnedMessageRequest) Zero() bool *MessagesUpdatePinnedMessageRequest : github.com/gotd/td/bin.BareDecoder *MessagesUpdatePinnedMessageRequest : github.com/gotd/td/bin.BareEncoder *MessagesUpdatePinnedMessageRequest : github.com/gotd/td/bin.Decoder *MessagesUpdatePinnedMessageRequest : github.com/gotd/td/bin.Encoder *MessagesUpdatePinnedMessageRequest : github.com/gotd/td/bin.Object *MessagesUpdatePinnedMessageRequest : github.com/gotd/td/tdp.Object *MessagesUpdatePinnedMessageRequest : fmt.Stringer func (*Client).MessagesUpdatePinnedMessage(ctx context.Context, request *MessagesUpdatePinnedMessageRequest) (UpdatesClass, error)
MessagesUploadEncryptedFileRequest represents TL type `messages.uploadEncryptedFile#5057c497`. Upload encrypted file and associate it to a secret chat See https://core.telegram.org/method/messages.uploadEncryptedFile for reference. The file The secret chat to associate the file to Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesUploadEncryptedFileRequest from given interface. GetFile returns value of File field. GetFileAsNotEmpty returns mapped value of File 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. (*MessagesUploadEncryptedFileRequest) Zero() bool *MessagesUploadEncryptedFileRequest : github.com/gotd/td/bin.BareDecoder *MessagesUploadEncryptedFileRequest : github.com/gotd/td/bin.BareEncoder *MessagesUploadEncryptedFileRequest : github.com/gotd/td/bin.Decoder *MessagesUploadEncryptedFileRequest : github.com/gotd/td/bin.Encoder *MessagesUploadEncryptedFileRequest : github.com/gotd/td/bin.Object *MessagesUploadEncryptedFileRequest : github.com/gotd/td/tdp.Object *MessagesUploadEncryptedFileRequest : fmt.Stringer func (*Client).MessagesUploadEncryptedFile(ctx context.Context, request *MessagesUploadEncryptedFileRequest) (EncryptedFileClass, error)
MessagesUploadImportedMediaRequest represents TL type `messages.uploadImportedMedia#2a862092`. Upload a media file associated with an imported chat, click here for more info »¹. Links: 1. https://core.telegram.org/api/import See https://core.telegram.org/method/messages.uploadImportedMedia for reference. File name Identifier of a history import session¹, returned by messages.initHistoryImport² Links: 1) https://core.telegram.org/api/import 2) https://core.telegram.org/method/messages.initHistoryImport Media metadata The Telegram chat where the media will be imported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesUploadImportedMediaRequest from given interface. GetFileName returns value of FileName field. GetImportID returns value of ImportID field. GetMedia returns value of Media 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. (*MessagesUploadImportedMediaRequest) Zero() bool *MessagesUploadImportedMediaRequest : github.com/gotd/td/bin.BareDecoder *MessagesUploadImportedMediaRequest : github.com/gotd/td/bin.BareEncoder *MessagesUploadImportedMediaRequest : github.com/gotd/td/bin.Decoder *MessagesUploadImportedMediaRequest : github.com/gotd/td/bin.Encoder *MessagesUploadImportedMediaRequest : github.com/gotd/td/bin.Object *MessagesUploadImportedMediaRequest : github.com/gotd/td/tdp.Object *MessagesUploadImportedMediaRequest : fmt.Stringer func (*Client).MessagesUploadImportedMedia(ctx context.Context, request *MessagesUploadImportedMediaRequest) (MessageMediaClass, error)
MessagesUploadMediaRequest represents TL type `messages.uploadMedia#519bc2b1`. Upload a file and associate it to a chat (without actually sending it to the chat) See https://core.telegram.org/method/messages.uploadMedia for reference. File uploaded in chunks as described in files »¹ Links: 1) https://core.telegram.org/api/files The chat, can be inputPeerEmpty¹ for bots and inputPeerSelf² for users. Links: 1) https://core.telegram.org/constructor/inputPeerEmpty 2) https://core.telegram.org/constructor/inputPeerSelf Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesUploadMediaRequest from given interface. GetMedia returns value of Media 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. (*MessagesUploadMediaRequest) Zero() bool *MessagesUploadMediaRequest : github.com/gotd/td/bin.BareDecoder *MessagesUploadMediaRequest : github.com/gotd/td/bin.BareEncoder *MessagesUploadMediaRequest : github.com/gotd/td/bin.Decoder *MessagesUploadMediaRequest : github.com/gotd/td/bin.Encoder *MessagesUploadMediaRequest : github.com/gotd/td/bin.Object *MessagesUploadMediaRequest : github.com/gotd/td/tdp.Object *MessagesUploadMediaRequest : fmt.Stringer func (*Client).MessagesUploadMedia(ctx context.Context, request *MessagesUploadMediaRequest) (MessageMediaClass, error)
MessagesVotesList represents TL type `messages.votesList#4899484e`. How users voted in a poll See https://core.telegram.org/constructor/messages.votesList for reference. Mentioned chats Total number of votes for all options (or only for the chosen option, if provided to messages.getPollVotes¹) Links: 1) https://core.telegram.org/method/messages.getPollVotes Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Offset to use with the next messages.getPollVotes¹ request, empty string if no more results are available. Links: 1) https://core.telegram.org/method/messages.getPollVotes Use SetNextOffset and GetNextOffset helpers. Info about users that voted in the poll Vote info for each user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesVotesList from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set. GetUsers returns value of Users field. GetVotes returns value of Votes field. MapChats returns field Chats wrapped in ChatClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. MapVotes returns field Votes wrapped in MessagePeerVoteClassArray 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. (*MessagesVotesList) Zero() bool *MessagesVotesList : github.com/gotd/td/bin.BareDecoder *MessagesVotesList : github.com/gotd/td/bin.BareEncoder *MessagesVotesList : github.com/gotd/td/bin.Decoder *MessagesVotesList : github.com/gotd/td/bin.Encoder *MessagesVotesList : github.com/gotd/td/bin.Object *MessagesVotesList : github.com/gotd/td/tdp.Object *MessagesVotesList : fmt.Stringer func (*Client).MessagesGetPollVotes(ctx context.Context, request *MessagesGetPollVotesRequest) (*MessagesVotesList, error)
MessagesWebPage represents TL type `messages.webPage#fd5e12bd`. Represents an Instant View webpage. See https://core.telegram.org/constructor/messages.webPage for reference. Chats mentioned in the webpage. Users mentioned in the webpage. The instant view webpage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessagesWebPage from given interface. GetChats returns value of Chats field. GetUsers returns value of Users field. GetWebpage returns value of Webpage field. GetWebpageAsModified returns mapped value of Webpage 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. (*MessagesWebPage) Zero() bool *MessagesWebPage : github.com/gotd/td/bin.BareDecoder *MessagesWebPage : github.com/gotd/td/bin.BareEncoder *MessagesWebPage : github.com/gotd/td/bin.Decoder *MessagesWebPage : github.com/gotd/td/bin.Encoder *MessagesWebPage : github.com/gotd/td/bin.Object *MessagesWebPage : github.com/gotd/td/tdp.Object *MessagesWebPage : fmt.Stringer func (*Client).MessagesGetWebPage(ctx context.Context, request *MessagesGetWebPageRequest) (*MessagesWebPage, error)
MessageViews represents TL type `messageViews#455b853d`. View, forward counter + info about replies of a specific message See https://core.telegram.org/constructor/messageViews for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Forward count of message Use SetForwards and GetForwards helpers. Reply and thread¹ information of message Links: 1) https://core.telegram.org/api/threads Use SetReplies and GetReplies helpers. View count of message Use SetViews and GetViews helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MessageViews from given interface. GetForwards returns value of Forwards conditional field and boolean which is true if field was set. GetReplies returns value of Replies conditional field and boolean which is true if field was set. GetViews returns value of Views conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetForwards sets value of Forwards conditional field. SetReplies sets value of Replies conditional field. SetViews sets value of Views 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. (*MessageViews) Zero() bool *MessageViews : github.com/gotd/td/bin.BareDecoder *MessageViews : github.com/gotd/td/bin.BareEncoder *MessageViews : github.com/gotd/td/bin.Decoder *MessageViews : github.com/gotd/td/bin.Encoder *MessageViews : github.com/gotd/td/bin.Object *MessageViews : github.com/gotd/td/tdp.Object *MessageViews : fmt.Stringer func (*MessagesMessageViews).GetViews() (value []MessageViews)
ModifiedMessagesDialogs represents Modified subset of MessagesDialogsClass. ( ModifiedMessagesDialogs) Decode(b *bin.Buffer) error ( ModifiedMessagesDialogs) DecodeBare(b *bin.Buffer) error ( ModifiedMessagesDialogs) Encode(b *bin.Buffer) error ( ModifiedMessagesDialogs) EncodeBare(b *bin.Buffer) error List of groups mentioned in the chats List of chats List of last messages from each chat List of users mentioned in messages and groups 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. *MessagesDialogs *MessagesDialogsSlice ModifiedMessagesDialogs : github.com/gotd/td/bin.BareDecoder ModifiedMessagesDialogs : github.com/gotd/td/bin.BareEncoder ModifiedMessagesDialogs : github.com/gotd/td/bin.Decoder ModifiedMessagesDialogs : github.com/gotd/td/bin.Encoder ModifiedMessagesDialogs : github.com/gotd/td/bin.Object ModifiedMessagesDialogs : fmt.Stringer func (*MessagesDialogs).AsModified() (ModifiedMessagesDialogs, bool) func MessagesDialogsClass.AsModified() (ModifiedMessagesDialogs, bool) func MessagesDialogsClassArray.AppendOnlyModified(to []ModifiedMessagesDialogs) []ModifiedMessagesDialogs func MessagesDialogsClassArray.AsModified() (to []ModifiedMessagesDialogs) func MessagesDialogsClassArray.FirstAsModified() (v ModifiedMessagesDialogs, ok bool) func MessagesDialogsClassArray.LastAsModified() (v ModifiedMessagesDialogs, ok bool) func (*MessagesDialogsClassArray).PopAsModified() (v ModifiedMessagesDialogs, ok bool) func (*MessagesDialogsClassArray).PopFirstAsModified() (v ModifiedMessagesDialogs, ok bool) func (*MessagesDialogsNotModified).AsModified() (ModifiedMessagesDialogs, bool) func (*MessagesDialogsSlice).AsModified() (ModifiedMessagesDialogs, bool) func MessagesDialogsClassArray.AppendOnlyModified(to []ModifiedMessagesDialogs) []ModifiedMessagesDialogs
ModifiedMessagesMessages represents Modified subset of MessagesMessagesClass. ( ModifiedMessagesMessages) Decode(b *bin.Buffer) error ( ModifiedMessagesMessages) DecodeBare(b *bin.Buffer) error ( ModifiedMessagesMessages) Encode(b *bin.Buffer) error ( ModifiedMessagesMessages) EncodeBare(b *bin.Buffer) error List of chats mentioned in dialogs List of messages List of users mentioned in messages and chats 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. *MessagesChannelMessages *MessagesMessages *MessagesMessagesSlice ModifiedMessagesMessages : github.com/gotd/td/bin.BareDecoder ModifiedMessagesMessages : github.com/gotd/td/bin.BareEncoder ModifiedMessagesMessages : github.com/gotd/td/bin.Decoder ModifiedMessagesMessages : github.com/gotd/td/bin.Encoder ModifiedMessagesMessages : github.com/gotd/td/bin.Object ModifiedMessagesMessages : fmt.Stringer func (*MessagesChannelMessages).AsModified() (ModifiedMessagesMessages, bool) func (*MessagesMessages).AsModified() (ModifiedMessagesMessages, bool) func MessagesMessagesClass.AsModified() (ModifiedMessagesMessages, bool) func MessagesMessagesClassArray.AppendOnlyModified(to []ModifiedMessagesMessages) []ModifiedMessagesMessages func MessagesMessagesClassArray.AsModified() (to []ModifiedMessagesMessages) func MessagesMessagesClassArray.FirstAsModified() (v ModifiedMessagesMessages, ok bool) func MessagesMessagesClassArray.LastAsModified() (v ModifiedMessagesMessages, ok bool) func (*MessagesMessagesClassArray).PopAsModified() (v ModifiedMessagesMessages, ok bool) func (*MessagesMessagesClassArray).PopFirstAsModified() (v ModifiedMessagesMessages, ok bool) func (*MessagesMessagesNotModified).AsModified() (ModifiedMessagesMessages, bool) func (*MessagesMessagesSlice).AsModified() (ModifiedMessagesMessages, bool) func MessagesMessagesClassArray.AppendOnlyModified(to []ModifiedMessagesMessages) []ModifiedMessagesMessages
ModifiedWebPage represents Modified subset of WebPageClass. ( ModifiedWebPage) Decode(b *bin.Buffer) error ( ModifiedWebPage) DecodeBare(b *bin.Buffer) error ( ModifiedWebPage) Encode(b *bin.Buffer) error ( ModifiedWebPage) EncodeBare(b *bin.Buffer) error Preview ID 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. *WebPage *WebPageEmpty *WebPagePending ModifiedWebPage : github.com/gotd/td/bin.BareDecoder ModifiedWebPage : github.com/gotd/td/bin.BareEncoder ModifiedWebPage : github.com/gotd/td/bin.Decoder ModifiedWebPage : github.com/gotd/td/bin.Encoder ModifiedWebPage : github.com/gotd/td/bin.Object ModifiedWebPage : fmt.Stringer func (*MessagesWebPage).GetWebpageAsModified() (ModifiedWebPage, bool) func (*WebPage).AsModified() (ModifiedWebPage, bool) func WebPageClass.AsModified() (ModifiedWebPage, bool) func WebPageClassArray.AppendOnlyModified(to []ModifiedWebPage) []ModifiedWebPage func WebPageClassArray.AsModified() (to []ModifiedWebPage) func WebPageClassArray.FirstAsModified() (v ModifiedWebPage, ok bool) func WebPageClassArray.LastAsModified() (v ModifiedWebPage, ok bool) func WebPageClassArray.ModifiedToMap() map[int64]ModifiedWebPage func (*WebPageClassArray).PopAsModified() (v ModifiedWebPage, ok bool) func (*WebPageClassArray).PopFirstAsModified() (v ModifiedWebPage, ok bool) func (*WebPageEmpty).AsModified() (ModifiedWebPage, bool) func (*WebPageNotModified).AsModified() (ModifiedWebPage, bool) func (*WebPagePending).AsModified() (ModifiedWebPage, bool) func WebPageClassArray.AppendOnlyModified(to []ModifiedWebPage) []ModifiedWebPage func WebPageClassArray.FillModifiedMap(to map[int64]ModifiedWebPage)
MoveStickerSetToTopHandler is a MoveStickerSetToTop event handler. func UpdateDispatcher.OnMoveStickerSetToTop(handler MoveStickerSetToTopHandler)
MyBoost represents TL type `myBoost#c448415c`. Contains information about a single boost slot »¹. Links: 1. https://core.telegram.org/api/boost See https://core.telegram.org/constructor/myBoost for reference. If peer is set, indicates the (unixtime) date after which this boost can be reassigned to another channel. Use SetCooldownUntilDate and GetCooldownUntilDate helpers. When (unixtime) we started boosting the peer, 0 otherwise. Indicates the (unixtime) expiration date of the boost in peer (0 if peer is not set). Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, indicates this slot is currently occupied, i.e. we are boosting¹ this peer. Note that we can assign multiple boost slots to the same peer. Links: 1) https://core.telegram.org/api/boost Use SetPeer and GetPeer helpers. Boost slot ID »¹ Links: 1) https://core.telegram.org/api/boost Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills MyBoost from given interface. GetCooldownUntilDate returns value of CooldownUntilDate conditional field and boolean which is true if field was set. GetDate returns value of Date field. GetExpires returns value of Expires field. GetPeer returns value of Peer conditional field and boolean which is true if field was set. GetSlot returns value of Slot field. SetCooldownUntilDate sets value of CooldownUntilDate 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. (*MyBoost) Zero() bool *MyBoost : github.com/gotd/td/bin.BareDecoder *MyBoost : github.com/gotd/td/bin.BareEncoder *MyBoost : github.com/gotd/td/bin.Decoder *MyBoost : github.com/gotd/td/bin.Encoder *MyBoost : github.com/gotd/td/bin.Object *MyBoost : github.com/gotd/td/tdp.Object *MyBoost : fmt.Stringer func (*PremiumMyBoosts).GetMyBoosts() (value []MyBoost)
NearestDC represents TL type `nearestDc#8e1a1775`. Nearest data center, according to geo-ip. See https://core.telegram.org/constructor/nearestDc for reference. Country code determined by geo-ip Number of nearest data center Number of current data center Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills NearestDC from given interface. GetCountry returns value of Country field. GetNearestDC returns value of NearestDC field. GetThisDC returns value of ThisDC 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. (*NearestDC) Zero() bool *NearestDC : github.com/gotd/td/bin.BareDecoder *NearestDC : github.com/gotd/td/bin.BareEncoder *NearestDC : github.com/gotd/td/bin.Decoder *NearestDC : github.com/gotd/td/bin.Encoder *NearestDC : github.com/gotd/td/bin.Object *NearestDC : github.com/gotd/td/tdp.Object *NearestDC : fmt.Stringer func (*Client).HelpGetNearestDC(ctx context.Context) (*NearestDC, error)
NewAuthorizationHandler is a NewAuthorization event handler. func UpdateDispatcher.OnNewAuthorization(handler NewAuthorizationHandler)
NewChannelMessageHandler is a NewChannelMessage event handler. func UpdateDispatcher.OnNewChannelMessage(handler NewChannelMessageHandler)
NewEncryptedMessageHandler is a NewEncryptedMessage event handler. func UpdateDispatcher.OnNewEncryptedMessage(handler NewEncryptedMessageHandler)
NewMessageHandler is a NewMessage event handler. func UpdateDispatcher.OnNewMessage(handler NewMessageHandler)
NewScheduledMessageHandler is a NewScheduledMessage event handler. func UpdateDispatcher.OnNewScheduledMessage(handler NewScheduledMessageHandler)
NewStickerSetHandler is a NewStickerSet event handler. func UpdateDispatcher.OnNewStickerSet(handler NewStickerSetHandler)
NotEmptyChat represents NotEmpty subset of ChatClass. ( NotEmptyChat) Decode(b *bin.Buffer) error ( NotEmptyChat) DecodeBare(b *bin.Buffer) error ( NotEmptyChat) Encode(b *bin.Buffer) error ( NotEmptyChat) EncodeBare(b *bin.Buffer) error ID of the group Title 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. *Channel *ChannelForbidden *Chat *ChatForbidden FullChat (interface) NotEmptyChat : NotForbiddenChat NotEmptyChat : github.com/gotd/td/bin.BareDecoder NotEmptyChat : github.com/gotd/td/bin.BareEncoder NotEmptyChat : github.com/gotd/td/bin.Decoder NotEmptyChat : github.com/gotd/td/bin.Encoder NotEmptyChat : github.com/gotd/td/bin.Object NotEmptyChat : fmt.Stringer func (*Channel).AsNotEmpty() (NotEmptyChat, bool) func (*ChannelForbidden).AsNotEmpty() (NotEmptyChat, bool) func (*Chat).AsNotEmpty() (NotEmptyChat, bool) func ChatClass.AsNotEmpty() (NotEmptyChat, bool) func ChatClassArray.AppendOnlyNotEmpty(to []NotEmptyChat) []NotEmptyChat func ChatClassArray.AsNotEmpty() (to []NotEmptyChat) func ChatClassArray.FirstAsNotEmpty() (v NotEmptyChat, ok bool) func ChatClassArray.LastAsNotEmpty() (v NotEmptyChat, ok bool) func ChatClassArray.NotEmptyToMap() map[int64]NotEmptyChat func (*ChatClassArray).PopAsNotEmpty() (v NotEmptyChat, ok bool) func (*ChatClassArray).PopFirstAsNotEmpty() (v NotEmptyChat, ok bool) func (*ChatEmpty).AsNotEmpty() (NotEmptyChat, bool) func (*ChatForbidden).AsNotEmpty() (NotEmptyChat, bool) func ChatClassArray.AppendOnlyNotEmpty(to []NotEmptyChat) []NotEmptyChat func ChatClassArray.FillNotEmptyMap(to map[int64]NotEmptyChat)
NotEmptyEmojiStatus represents NotEmpty subset of EmojiStatusClass. ( NotEmptyEmojiStatus) Decode(b *bin.Buffer) error ( NotEmptyEmojiStatus) DecodeBare(b *bin.Buffer) error ( NotEmptyEmojiStatus) Encode(b *bin.Buffer) error ( NotEmptyEmojiStatus) EncodeBare(b *bin.Buffer) error Custom emoji document ID¹ Links: 1) https://core.telegram.org/api/custom-emoji 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. *EmojiStatus *EmojiStatusUntil NotEmptyEmojiStatus : github.com/gotd/td/bin.BareDecoder NotEmptyEmojiStatus : github.com/gotd/td/bin.BareEncoder NotEmptyEmojiStatus : github.com/gotd/td/bin.Decoder NotEmptyEmojiStatus : github.com/gotd/td/bin.Encoder NotEmptyEmojiStatus : github.com/gotd/td/bin.Object NotEmptyEmojiStatus : fmt.Stringer func (*AccountUpdateEmojiStatusRequest).GetEmojiStatusAsNotEmpty() (NotEmptyEmojiStatus, bool) func (*ChannelsUpdateEmojiStatusRequest).GetEmojiStatusAsNotEmpty() (NotEmptyEmojiStatus, bool) func (*EmojiStatus).AsNotEmpty() (NotEmptyEmojiStatus, bool) func EmojiStatusClass.AsNotEmpty() (NotEmptyEmojiStatus, bool) func EmojiStatusClassArray.AppendOnlyNotEmpty(to []NotEmptyEmojiStatus) []NotEmptyEmojiStatus func EmojiStatusClassArray.AsNotEmpty() (to []NotEmptyEmojiStatus) func EmojiStatusClassArray.FirstAsNotEmpty() (v NotEmptyEmojiStatus, ok bool) func EmojiStatusClassArray.LastAsNotEmpty() (v NotEmptyEmojiStatus, ok bool) func (*EmojiStatusClassArray).PopAsNotEmpty() (v NotEmptyEmojiStatus, ok bool) func (*EmojiStatusClassArray).PopFirstAsNotEmpty() (v NotEmptyEmojiStatus, ok bool) func (*EmojiStatusEmpty).AsNotEmpty() (NotEmptyEmojiStatus, bool) func (*EmojiStatusUntil).AsNotEmpty() (NotEmptyEmojiStatus, bool) func EmojiStatusClassArray.AppendOnlyNotEmpty(to []NotEmptyEmojiStatus) []NotEmptyEmojiStatus
NotEmptyEncryptedChat represents NotEmpty subset of EncryptedChatClass. ( NotEmptyEncryptedChat) Decode(b *bin.Buffer) error ( NotEmptyEncryptedChat) DecodeBare(b *bin.Buffer) error ( NotEmptyEncryptedChat) Encode(b *bin.Buffer) error ( NotEmptyEncryptedChat) EncodeBare(b *bin.Buffer) error Chat ID 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. *EncryptedChat EncryptedChatClass (interface) *EncryptedChatDiscarded *EncryptedChatEmpty *EncryptedChatRequested *EncryptedChatWaiting NotEmptyEncryptedChat : github.com/gotd/td/bin.BareDecoder NotEmptyEncryptedChat : github.com/gotd/td/bin.BareEncoder NotEmptyEncryptedChat : github.com/gotd/td/bin.Decoder NotEmptyEncryptedChat : github.com/gotd/td/bin.Encoder NotEmptyEncryptedChat : github.com/gotd/td/bin.Object NotEmptyEncryptedChat : fmt.Stringer func (*EncryptedChat).AsNotEmpty() (NotEmptyEncryptedChat, bool) func EncryptedChatClass.AsNotEmpty() (NotEmptyEncryptedChat, bool) func EncryptedChatClassArray.AppendOnlyNotEmpty(to []NotEmptyEncryptedChat) []NotEmptyEncryptedChat func EncryptedChatClassArray.AsNotEmpty() (to []NotEmptyEncryptedChat) func EncryptedChatClassArray.FirstAsNotEmpty() (v NotEmptyEncryptedChat, ok bool) func EncryptedChatClassArray.LastAsNotEmpty() (v NotEmptyEncryptedChat, ok bool) func EncryptedChatClassArray.NotEmptyToMap() map[int]NotEmptyEncryptedChat func (*EncryptedChatClassArray).PopAsNotEmpty() (v NotEmptyEncryptedChat, ok bool) func (*EncryptedChatClassArray).PopFirstAsNotEmpty() (v NotEmptyEncryptedChat, ok bool) func (*EncryptedChatDiscarded).AsNotEmpty() (NotEmptyEncryptedChat, bool) func (*EncryptedChatEmpty).AsNotEmpty() (NotEmptyEncryptedChat, bool) func (*EncryptedChatRequested).AsNotEmpty() (NotEmptyEncryptedChat, bool) func (*EncryptedChatWaiting).AsNotEmpty() (NotEmptyEncryptedChat, bool) func EncryptedChatClassArray.AppendOnlyNotEmpty(to []NotEmptyEncryptedChat) []NotEmptyEncryptedChat func EncryptedChatClassArray.FillNotEmptyMap(to map[int]NotEmptyEncryptedChat)
NotEmptyInputChannel represents NotEmpty subset of InputChannelClass. ( NotEmptyInputChannel) Decode(b *bin.Buffer) error ( NotEmptyInputChannel) DecodeBare(b *bin.Buffer) error ( NotEmptyInputChannel) Encode(b *bin.Buffer) error ( NotEmptyInputChannel) EncodeBare(b *bin.Buffer) error Channel ID 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. *InputChannel *InputChannelFromMessage NotEmptyInputChannel : github.com/gotd/td/bin.BareDecoder NotEmptyInputChannel : github.com/gotd/td/bin.BareEncoder NotEmptyInputChannel : github.com/gotd/td/bin.Decoder NotEmptyInputChannel : github.com/gotd/td/bin.Encoder NotEmptyInputChannel : github.com/gotd/td/bin.Object NotEmptyInputChannel : fmt.Stringer func (*ChannelsCheckUsernameRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsClickSponsoredMessageRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsConvertToGigagroupRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsCreateForumTopicRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsDeactivateAllUsernamesRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsDeleteChannelRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsDeleteHistoryRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsDeleteMessagesRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsDeleteParticipantHistoryRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsDeleteTopicHistoryRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsEditAdminRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsEditBannedRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsEditCreatorRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsEditForumTopicRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsEditLocationRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsEditPhotoRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsEditTitleRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsExportMessageLinkRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsGetAdminLogRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsGetChannelRecommendationsRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsGetForumTopicsByIDRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsGetForumTopicsRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsGetFullChannelRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsGetMessagesRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsGetParticipantRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsGetParticipantsRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsGetSponsoredMessagesRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsInviteToChannelRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsJoinChannelRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsLeaveChannelRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsReadHistoryRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsReadMessageContentsRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsReorderPinnedForumTopicsRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsReorderUsernamesRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsReportAntiSpamFalsePositiveRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsReportSpamRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsSetDiscussionGroupRequest).GetBroadcastAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsSetDiscussionGroupRequest).GetGroupAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsSetStickersRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsToggleAntiSpamRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsToggleForumRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsToggleJoinRequestRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsToggleJoinToSendRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsToggleParticipantsHiddenRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsTogglePreHistoryHiddenRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsToggleSignaturesRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsToggleSlowModeRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsToggleUsernameRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsToggleViewForumAsMessagesRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsUpdateColorRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsUpdateEmojiStatusRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsUpdatePinnedForumTopicRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsUpdateUsernameRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*ChannelsViewSponsoredMessageRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*InputChannel).AsNotEmpty() (NotEmptyInputChannel, bool) func InputChannelClass.AsNotEmpty() (NotEmptyInputChannel, bool) func InputChannelClassArray.AppendOnlyNotEmpty(to []NotEmptyInputChannel) []NotEmptyInputChannel func InputChannelClassArray.AsNotEmpty() (to []NotEmptyInputChannel) func InputChannelClassArray.FirstAsNotEmpty() (v NotEmptyInputChannel, ok bool) func InputChannelClassArray.LastAsNotEmpty() (v NotEmptyInputChannel, ok bool) func (*InputChannelClassArray).PopAsNotEmpty() (v NotEmptyInputChannel, ok bool) func (*InputChannelClassArray).PopFirstAsNotEmpty() (v NotEmptyInputChannel, ok bool) func (*InputChannelEmpty).AsNotEmpty() (NotEmptyInputChannel, bool) func (*InputChannelFromMessage).AsNotEmpty() (NotEmptyInputChannel, bool) func (*StatsGetBroadcastStatsRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*StatsGetMegagroupStatsRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*StatsGetMessagePublicForwardsRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*StatsGetMessageStatsRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func (*UpdatesGetChannelDifferenceRequest).GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) func InputChannelClassArray.AppendOnlyNotEmpty(to []NotEmptyInputChannel) []NotEmptyInputChannel
NotEmptyInputEncryptedFile represents NotEmpty subset of InputEncryptedFileClass. ( NotEmptyInputEncryptedFile) Decode(b *bin.Buffer) error ( NotEmptyInputEncryptedFile) DecodeBare(b *bin.Buffer) error ( NotEmptyInputEncryptedFile) Encode(b *bin.Buffer) error ( NotEmptyInputEncryptedFile) EncodeBare(b *bin.Buffer) error Random file ID created by client 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. *InputEncryptedFile *InputEncryptedFileBigUploaded *InputEncryptedFileUploaded NotEmptyInputEncryptedFile : github.com/gotd/td/bin.BareDecoder NotEmptyInputEncryptedFile : github.com/gotd/td/bin.BareEncoder NotEmptyInputEncryptedFile : github.com/gotd/td/bin.Decoder NotEmptyInputEncryptedFile : github.com/gotd/td/bin.Encoder NotEmptyInputEncryptedFile : github.com/gotd/td/bin.Object NotEmptyInputEncryptedFile : fmt.Stringer func (*InputEncryptedFile).AsNotEmpty() (NotEmptyInputEncryptedFile, bool) func (*InputEncryptedFileBigUploaded).AsNotEmpty() (NotEmptyInputEncryptedFile, bool) func InputEncryptedFileClass.AsNotEmpty() (NotEmptyInputEncryptedFile, bool) func InputEncryptedFileClassArray.AppendOnlyNotEmpty(to []NotEmptyInputEncryptedFile) []NotEmptyInputEncryptedFile func InputEncryptedFileClassArray.AsNotEmpty() (to []NotEmptyInputEncryptedFile) func InputEncryptedFileClassArray.FirstAsNotEmpty() (v NotEmptyInputEncryptedFile, ok bool) func InputEncryptedFileClassArray.LastAsNotEmpty() (v NotEmptyInputEncryptedFile, ok bool) func InputEncryptedFileClassArray.NotEmptyToMap() map[int64]NotEmptyInputEncryptedFile func (*InputEncryptedFileClassArray).PopAsNotEmpty() (v NotEmptyInputEncryptedFile, ok bool) func (*InputEncryptedFileClassArray).PopFirstAsNotEmpty() (v NotEmptyInputEncryptedFile, ok bool) func (*InputEncryptedFileEmpty).AsNotEmpty() (NotEmptyInputEncryptedFile, bool) func (*InputEncryptedFileUploaded).AsNotEmpty() (NotEmptyInputEncryptedFile, bool) func (*MessagesSendEncryptedFileRequest).GetFileAsNotEmpty() (NotEmptyInputEncryptedFile, bool) func (*MessagesUploadEncryptedFileRequest).GetFileAsNotEmpty() (NotEmptyInputEncryptedFile, bool) func InputEncryptedFileClassArray.AppendOnlyNotEmpty(to []NotEmptyInputEncryptedFile) []NotEmptyInputEncryptedFile func InputEncryptedFileClassArray.FillNotEmptyMap(to map[int64]NotEmptyInputEncryptedFile)
NotEmptyMessage represents NotEmpty subset of MessageClass. ( NotEmptyMessage) Decode(b *bin.Buffer) error ( NotEmptyMessage) DecodeBare(b *bin.Buffer) error ( NotEmptyMessage) Encode(b *bin.Buffer) error ( NotEmptyMessage) EncodeBare(b *bin.Buffer) error Date of the message ID of the sender of the message ID of the message This is a legacy message: it has to be refetched with the new layer Whether there are unread media attachments in this message Whether we were mentioned¹ in this message Links: 1) https://core.telegram.org/api/mentions Is this an outgoing message Peer ID, the chat where this message was sent Whether this is a channel post Reply information Whether this is a silent message (no notification triggered) Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. 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. *Message *MessageService NotEmptyMessage : github.com/gotd/td/bin.BareDecoder NotEmptyMessage : github.com/gotd/td/bin.BareEncoder NotEmptyMessage : github.com/gotd/td/bin.Decoder NotEmptyMessage : github.com/gotd/td/bin.Encoder NotEmptyMessage : github.com/gotd/td/bin.Object NotEmptyMessage : fmt.Stringer func (*Message).AsNotEmpty() (NotEmptyMessage, bool) func MessageClass.AsNotEmpty() (NotEmptyMessage, bool) func MessageClassArray.AppendOnlyNotEmpty(to []NotEmptyMessage) []NotEmptyMessage func MessageClassArray.AsNotEmpty() (to []NotEmptyMessage) func MessageClassArray.FirstAsNotEmpty() (v NotEmptyMessage, ok bool) func MessageClassArray.LastAsNotEmpty() (v NotEmptyMessage, ok bool) func MessageClassArray.NotEmptyToMap() map[int]NotEmptyMessage func (*MessageClassArray).PopAsNotEmpty() (v NotEmptyMessage, ok bool) func (*MessageClassArray).PopFirstAsNotEmpty() (v NotEmptyMessage, ok bool) func (*MessageEmpty).AsNotEmpty() (NotEmptyMessage, bool) func (*MessageService).AsNotEmpty() (NotEmptyMessage, bool) func MessageClassArray.AppendOnlyNotEmpty(to []NotEmptyMessage) []NotEmptyMessage func MessageClassArray.FillNotEmptyMap(to map[int]NotEmptyMessage)
NotEmptyPhoneCall represents NotEmpty subset of PhoneCallClass. ( NotEmptyPhoneCall) Decode(b *bin.Buffer) error ( NotEmptyPhoneCall) DecodeBare(b *bin.Buffer) error ( NotEmptyPhoneCall) Encode(b *bin.Buffer) error ( NotEmptyPhoneCall) EncodeBare(b *bin.Buffer) error Call ID Is this a video call 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. *PhoneCall *PhoneCallAccepted *PhoneCallDiscarded *PhoneCallRequested *PhoneCallWaiting NotEmptyPhoneCall : github.com/gotd/td/bin.BareDecoder NotEmptyPhoneCall : github.com/gotd/td/bin.BareEncoder NotEmptyPhoneCall : github.com/gotd/td/bin.Decoder NotEmptyPhoneCall : github.com/gotd/td/bin.Encoder NotEmptyPhoneCall : github.com/gotd/td/bin.Object NotEmptyPhoneCall : fmt.Stringer func (*PhoneCall).AsNotEmpty() (NotEmptyPhoneCall, bool) func (*PhoneCallAccepted).AsNotEmpty() (NotEmptyPhoneCall, bool) func PhoneCallClass.AsNotEmpty() (NotEmptyPhoneCall, bool) func PhoneCallClassArray.AppendOnlyNotEmpty(to []NotEmptyPhoneCall) []NotEmptyPhoneCall func PhoneCallClassArray.AsNotEmpty() (to []NotEmptyPhoneCall) func PhoneCallClassArray.FirstAsNotEmpty() (v NotEmptyPhoneCall, ok bool) func PhoneCallClassArray.LastAsNotEmpty() (v NotEmptyPhoneCall, ok bool) func PhoneCallClassArray.NotEmptyToMap() map[int64]NotEmptyPhoneCall func (*PhoneCallClassArray).PopAsNotEmpty() (v NotEmptyPhoneCall, ok bool) func (*PhoneCallClassArray).PopFirstAsNotEmpty() (v NotEmptyPhoneCall, ok bool) func (*PhoneCallDiscarded).AsNotEmpty() (NotEmptyPhoneCall, bool) func (*PhoneCallEmpty).AsNotEmpty() (NotEmptyPhoneCall, bool) func (*PhoneCallRequested).AsNotEmpty() (NotEmptyPhoneCall, bool) func (*PhoneCallWaiting).AsNotEmpty() (NotEmptyPhoneCall, bool) func (*PhonePhoneCall).GetPhoneCallAsNotEmpty() (NotEmptyPhoneCall, bool) func PhoneCallClassArray.AppendOnlyNotEmpty(to []NotEmptyPhoneCall) []NotEmptyPhoneCall func PhoneCallClassArray.FillNotEmptyMap(to map[int64]NotEmptyPhoneCall)
NotEmptyPhotoSize represents NotEmpty subset of PhotoSizeClass. ( NotEmptyPhotoSize) Decode(b *bin.Buffer) error ( NotEmptyPhotoSize) DecodeBare(b *bin.Buffer) error ( NotEmptyPhotoSize) Encode(b *bin.Buffer) error ( NotEmptyPhotoSize) EncodeBare(b *bin.Buffer) error Thumbnail type »¹ Links: 1) https://core.telegram.org/api/files#image-thumbnail-types 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. *PhotoCachedSize *PhotoPathSize *PhotoSize PhotoSizeClass (interface) *PhotoSizeEmpty *PhotoSizeProgressive *PhotoStrippedSize NotEmptyPhotoSize : github.com/gotd/td/bin.BareDecoder NotEmptyPhotoSize : github.com/gotd/td/bin.BareEncoder NotEmptyPhotoSize : github.com/gotd/td/bin.Decoder NotEmptyPhotoSize : github.com/gotd/td/bin.Encoder NotEmptyPhotoSize : github.com/gotd/td/bin.Object NotEmptyPhotoSize : fmt.Stringer func (*PhotoCachedSize).AsNotEmpty() (NotEmptyPhotoSize, bool) func (*PhotoPathSize).AsNotEmpty() (NotEmptyPhotoSize, bool) func (*PhotoSize).AsNotEmpty() (NotEmptyPhotoSize, bool) func PhotoSizeClass.AsNotEmpty() (NotEmptyPhotoSize, bool) func PhotoSizeClassArray.AppendOnlyNotEmpty(to []NotEmptyPhotoSize) []NotEmptyPhotoSize func PhotoSizeClassArray.AsNotEmpty() (to []NotEmptyPhotoSize) func PhotoSizeClassArray.FirstAsNotEmpty() (v NotEmptyPhotoSize, ok bool) func PhotoSizeClassArray.LastAsNotEmpty() (v NotEmptyPhotoSize, ok bool) func (*PhotoSizeClassArray).PopAsNotEmpty() (v NotEmptyPhotoSize, ok bool) func (*PhotoSizeClassArray).PopFirstAsNotEmpty() (v NotEmptyPhotoSize, ok bool) func (*PhotoSizeEmpty).AsNotEmpty() (NotEmptyPhotoSize, bool) func (*PhotoSizeProgressive).AsNotEmpty() (NotEmptyPhotoSize, bool) func (*PhotoStrippedSize).AsNotEmpty() (NotEmptyPhotoSize, bool) func PhotoSizeClassArray.AppendOnlyNotEmpty(to []NotEmptyPhotoSize) []NotEmptyPhotoSize
NotEmptyUpdatesChannelDifference represents NotEmpty subset of UpdatesChannelDifferenceClass. ( NotEmptyUpdatesChannelDifference) Decode(b *bin.Buffer) error ( NotEmptyUpdatesChannelDifference) DecodeBare(b *bin.Buffer) error ( NotEmptyUpdatesChannelDifference) Encode(b *bin.Buffer) error ( NotEmptyUpdatesChannelDifference) EncodeBare(b *bin.Buffer) error Chats from messages Whether there are more updates that must be fetched (always false) Clients are supposed to refetch the channel difference after timeout seconds have elapsed Users from messages 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. *UpdatesChannelDifference *UpdatesChannelDifferenceTooLong NotEmptyUpdatesChannelDifference : github.com/gotd/td/bin.BareDecoder NotEmptyUpdatesChannelDifference : github.com/gotd/td/bin.BareEncoder NotEmptyUpdatesChannelDifference : github.com/gotd/td/bin.Decoder NotEmptyUpdatesChannelDifference : github.com/gotd/td/bin.Encoder NotEmptyUpdatesChannelDifference : github.com/gotd/td/bin.Object NotEmptyUpdatesChannelDifference : fmt.Stringer func (*UpdatesChannelDifference).AsNotEmpty() (NotEmptyUpdatesChannelDifference, bool) func UpdatesChannelDifferenceClass.AsNotEmpty() (NotEmptyUpdatesChannelDifference, bool) func UpdatesChannelDifferenceClassArray.AppendOnlyNotEmpty(to []NotEmptyUpdatesChannelDifference) []NotEmptyUpdatesChannelDifference func UpdatesChannelDifferenceClassArray.AsNotEmpty() (to []NotEmptyUpdatesChannelDifference) func UpdatesChannelDifferenceClassArray.FirstAsNotEmpty() (v NotEmptyUpdatesChannelDifference, ok bool) func UpdatesChannelDifferenceClassArray.LastAsNotEmpty() (v NotEmptyUpdatesChannelDifference, ok bool) func (*UpdatesChannelDifferenceClassArray).PopAsNotEmpty() (v NotEmptyUpdatesChannelDifference, ok bool) func (*UpdatesChannelDifferenceClassArray).PopFirstAsNotEmpty() (v NotEmptyUpdatesChannelDifference, ok bool) func (*UpdatesChannelDifferenceEmpty).AsNotEmpty() (NotEmptyUpdatesChannelDifference, bool) func (*UpdatesChannelDifferenceTooLong).AsNotEmpty() (NotEmptyUpdatesChannelDifference, bool) func UpdatesChannelDifferenceClassArray.AppendOnlyNotEmpty(to []NotEmptyUpdatesChannelDifference) []NotEmptyUpdatesChannelDifference
NotForbiddenChat represents NotForbidden subset of ChatClass. ( NotForbiddenChat) Decode(b *bin.Buffer) error ( NotForbiddenChat) DecodeBare(b *bin.Buffer) error ( NotForbiddenChat) Encode(b *bin.Buffer) error ( NotForbiddenChat) EncodeBare(b *bin.Buffer) error Group identifier 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. *Channel *ChannelForbidden *Chat ChatClass (interface) *ChatEmpty *ChatForbidden FullChat (interface) NotEmptyChat (interface) NotForbiddenChat : github.com/gotd/td/bin.BareDecoder NotForbiddenChat : github.com/gotd/td/bin.BareEncoder NotForbiddenChat : github.com/gotd/td/bin.Decoder NotForbiddenChat : github.com/gotd/td/bin.Encoder NotForbiddenChat : github.com/gotd/td/bin.Object NotForbiddenChat : fmt.Stringer func (*Channel).AsNotForbidden() (NotForbiddenChat, bool) func (*ChannelForbidden).AsNotForbidden() (NotForbiddenChat, bool) func (*Chat).AsNotForbidden() (NotForbiddenChat, bool) func ChatClass.AsNotForbidden() (NotForbiddenChat, bool) func ChatClassArray.AppendOnlyNotForbidden(to []NotForbiddenChat) []NotForbiddenChat func ChatClassArray.AsNotForbidden() (to []NotForbiddenChat) func ChatClassArray.FirstAsNotForbidden() (v NotForbiddenChat, ok bool) func ChatClassArray.LastAsNotForbidden() (v NotForbiddenChat, ok bool) func ChatClassArray.NotForbiddenToMap() map[int64]NotForbiddenChat func (*ChatClassArray).PopAsNotForbidden() (v NotForbiddenChat, ok bool) func (*ChatClassArray).PopFirstAsNotForbidden() (v NotForbiddenChat, ok bool) func (*ChatEmpty).AsNotForbidden() (NotForbiddenChat, bool) func (*ChatForbidden).AsNotForbidden() (NotForbiddenChat, bool) func ChatClassArray.AppendOnlyNotForbidden(to []NotForbiddenChat) []NotForbiddenChat func ChatClassArray.FillNotForbiddenMap(to map[int64]NotForbiddenChat)
NotificationSound boxes the NotificationSoundClass providing a helper. NotificationSound NotificationSoundClass Decode implements bin.Decoder for NotificationSoundBox. Encode implements bin.Encode for NotificationSoundBox. *NotificationSoundBox : github.com/gotd/td/bin.Decoder *NotificationSoundBox : github.com/gotd/td/bin.Encoder *NotificationSoundBox : github.com/gotd/td/bin.Object
NotificationSoundClass represents NotificationSound generic type. See https://core.telegram.org/type/NotificationSound for reference. Example: g, err := tg.DecodeNotificationSound(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.NotificationSoundDefault: // notificationSoundDefault#97e8bebe case *tg.NotificationSoundNone: // notificationSoundNone#6f0c34df case *tg.NotificationSoundLocal: // notificationSoundLocal#830b9ae4 case *tg.NotificationSoundRingtone: // notificationSoundRingtone#ff6c8049 default: panic(v) } ( NotificationSoundClass) Decode(b *bin.Buffer) error ( NotificationSoundClass) DecodeBare(b *bin.Buffer) error ( NotificationSoundClass) Encode(b *bin.Buffer) error ( NotificationSoundClass) 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. *NotificationSoundDefault *NotificationSoundLocal *NotificationSoundNone *NotificationSoundRingtone NotificationSoundClass : github.com/gotd/td/bin.BareDecoder NotificationSoundClass : github.com/gotd/td/bin.BareEncoder NotificationSoundClass : github.com/gotd/td/bin.Decoder NotificationSoundClass : github.com/gotd/td/bin.Encoder NotificationSoundClass : github.com/gotd/td/bin.Object NotificationSoundClass : fmt.Stringer func DecodeNotificationSound(buf *bin.Buffer) (NotificationSoundClass, error) func (*InputPeerNotifySettings).GetSound() (value NotificationSoundClass, ok bool) func (*InputPeerNotifySettings).GetStoriesSound() (value NotificationSoundClass, ok bool) func NotificationSoundClassArray.First() (v NotificationSoundClass, ok bool) func NotificationSoundClassArray.Last() (v NotificationSoundClass, ok bool) func (*NotificationSoundClassArray).Pop() (v NotificationSoundClass, ok bool) func (*NotificationSoundClassArray).PopFirst() (v NotificationSoundClass, ok bool) func (*PeerNotifySettings).GetAndroidSound() (value NotificationSoundClass, ok bool) func (*PeerNotifySettings).GetIosSound() (value NotificationSoundClass, ok bool) func (*PeerNotifySettings).GetOtherSound() (value NotificationSoundClass, ok bool) func (*PeerNotifySettings).GetStoriesAndroidSound() (value NotificationSoundClass, ok bool) func (*PeerNotifySettings).GetStoriesIosSound() (value NotificationSoundClass, ok bool) func (*PeerNotifySettings).GetStoriesOtherSound() (value NotificationSoundClass, ok bool) func (*InputPeerNotifySettings).SetSound(value NotificationSoundClass) func (*InputPeerNotifySettings).SetStoriesSound(value NotificationSoundClass) func (*PeerNotifySettings).SetAndroidSound(value NotificationSoundClass) func (*PeerNotifySettings).SetIosSound(value NotificationSoundClass) func (*PeerNotifySettings).SetOtherSound(value NotificationSoundClass) func (*PeerNotifySettings).SetStoriesAndroidSound(value NotificationSoundClass) func (*PeerNotifySettings).SetStoriesIosSound(value NotificationSoundClass) func (*PeerNotifySettings).SetStoriesOtherSound(value NotificationSoundClass)
NotificationSoundClassArray is adapter for slice of NotificationSoundClass. AsNotificationSoundLocal returns copy with only NotificationSoundLocal constructors. AsNotificationSoundRingtone returns copy with only NotificationSoundRingtone 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 NotificationSoundClass. Sort sorts slice of NotificationSoundClass. SortStable sorts slice of NotificationSoundClass. func NotificationSoundClassArray.Retain(keep func(x NotificationSoundClass) bool) NotificationSoundClassArray func NotificationSoundClassArray.Sort(less func(a, b NotificationSoundClass) bool) NotificationSoundClassArray func NotificationSoundClassArray.SortStable(less func(a, b NotificationSoundClass) bool) NotificationSoundClassArray
NotificationSoundDefault represents TL type `notificationSoundDefault#97e8bebe`. Indicates the default notification sound should be used See https://core.telegram.org/constructor/notificationSoundDefault 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. (*NotificationSoundDefault) Zero() bool *NotificationSoundDefault : NotificationSoundClass *NotificationSoundDefault : github.com/gotd/td/bin.BareDecoder *NotificationSoundDefault : github.com/gotd/td/bin.BareEncoder *NotificationSoundDefault : github.com/gotd/td/bin.Decoder *NotificationSoundDefault : github.com/gotd/td/bin.Encoder *NotificationSoundDefault : github.com/gotd/td/bin.Object *NotificationSoundDefault : github.com/gotd/td/tdp.Object *NotificationSoundDefault : fmt.Stringer
NotificationSoundLocal represents TL type `notificationSoundLocal#830b9ae4`. Indicates a specific local notification sound should be used See https://core.telegram.org/constructor/notificationSoundLocal for reference. Notification sound identifier (arbitrary data used by the client to identify a specific local notification sound) Notification sound title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills NotificationSoundLocal from given interface. GetData returns value of Data field. GetTitle returns value of Title 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. (*NotificationSoundLocal) Zero() bool *NotificationSoundLocal : NotificationSoundClass *NotificationSoundLocal : github.com/gotd/td/bin.BareDecoder *NotificationSoundLocal : github.com/gotd/td/bin.BareEncoder *NotificationSoundLocal : github.com/gotd/td/bin.Decoder *NotificationSoundLocal : github.com/gotd/td/bin.Encoder *NotificationSoundLocal : github.com/gotd/td/bin.Object *NotificationSoundLocal : github.com/gotd/td/tdp.Object *NotificationSoundLocal : fmt.Stringer func NotificationSoundLocalArray.First() (v NotificationSoundLocal, ok bool) func NotificationSoundLocalArray.Last() (v NotificationSoundLocal, ok bool) func (*NotificationSoundLocalArray).Pop() (v NotificationSoundLocal, ok bool) func (*NotificationSoundLocalArray).PopFirst() (v NotificationSoundLocal, ok bool)
NotificationSoundLocalArray is adapter for slice of NotificationSoundLocal. 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 NotificationSoundLocal. Sort sorts slice of NotificationSoundLocal. SortStable sorts slice of NotificationSoundLocal. func NotificationSoundClassArray.AsNotificationSoundLocal() (to NotificationSoundLocalArray) func NotificationSoundLocalArray.Retain(keep func(x NotificationSoundLocal) bool) NotificationSoundLocalArray func NotificationSoundLocalArray.Sort(less func(a, b NotificationSoundLocal) bool) NotificationSoundLocalArray func NotificationSoundLocalArray.SortStable(less func(a, b NotificationSoundLocal) bool) NotificationSoundLocalArray
NotificationSoundNone represents TL type `notificationSoundNone#6f0c34df`. No notification sound should be used See https://core.telegram.org/constructor/notificationSoundNone 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. (*NotificationSoundNone) Zero() bool *NotificationSoundNone : NotificationSoundClass *NotificationSoundNone : github.com/gotd/td/bin.BareDecoder *NotificationSoundNone : github.com/gotd/td/bin.BareEncoder *NotificationSoundNone : github.com/gotd/td/bin.Decoder *NotificationSoundNone : github.com/gotd/td/bin.Encoder *NotificationSoundNone : github.com/gotd/td/bin.Object *NotificationSoundNone : github.com/gotd/td/tdp.Object *NotificationSoundNone : fmt.Stringer
NotificationSoundRingtone represents TL type `notificationSoundRingtone#ff6c8049`. A specific previously uploaded notification sound should be used See https://core.telegram.org/constructor/notificationSoundRingtone for reference. Takeout ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills NotificationSoundRingtone 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. (*NotificationSoundRingtone) Zero() bool *NotificationSoundRingtone : NotificationSoundClass *NotificationSoundRingtone : github.com/gotd/td/bin.BareDecoder *NotificationSoundRingtone : github.com/gotd/td/bin.BareEncoder *NotificationSoundRingtone : github.com/gotd/td/bin.Decoder *NotificationSoundRingtone : github.com/gotd/td/bin.Encoder *NotificationSoundRingtone : github.com/gotd/td/bin.Object *NotificationSoundRingtone : github.com/gotd/td/tdp.Object *NotificationSoundRingtone : fmt.Stringer func NotificationSoundRingtoneArray.First() (v NotificationSoundRingtone, ok bool) func NotificationSoundRingtoneArray.Last() (v NotificationSoundRingtone, ok bool) func (*NotificationSoundRingtoneArray).Pop() (v NotificationSoundRingtone, ok bool) func (*NotificationSoundRingtoneArray).PopFirst() (v NotificationSoundRingtone, ok bool) func NotificationSoundRingtoneArray.ToMap() map[int64]NotificationSoundRingtone func NotificationSoundRingtoneArray.FillMap(to map[int64]NotificationSoundRingtone)
NotificationSoundRingtoneArray is adapter for slice of NotificationSoundRingtone. 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 NotificationSoundRingtone. Sort sorts slice of NotificationSoundRingtone. SortByID sorts slice of NotificationSoundRingtone by ID. SortStable sorts slice of NotificationSoundRingtone. SortStableByID sorts slice of NotificationSoundRingtone by ID. ToMap collects constructors to map. func NotificationSoundClassArray.AsNotificationSoundRingtone() (to NotificationSoundRingtoneArray) func NotificationSoundRingtoneArray.Retain(keep func(x NotificationSoundRingtone) bool) NotificationSoundRingtoneArray func NotificationSoundRingtoneArray.Sort(less func(a, b NotificationSoundRingtone) bool) NotificationSoundRingtoneArray func NotificationSoundRingtoneArray.SortByID() NotificationSoundRingtoneArray func NotificationSoundRingtoneArray.SortStable(less func(a, b NotificationSoundRingtone) bool) NotificationSoundRingtoneArray func NotificationSoundRingtoneArray.SortStableByID() NotificationSoundRingtoneArray
NotifyBroadcasts represents TL type `notifyBroadcasts#d612e8ef`. Channel notification settings See https://core.telegram.org/constructor/notifyBroadcasts 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. (*NotifyBroadcasts) Zero() bool *NotifyBroadcasts : NotifyPeerClass *NotifyBroadcasts : github.com/gotd/td/bin.BareDecoder *NotifyBroadcasts : github.com/gotd/td/bin.BareEncoder *NotifyBroadcasts : github.com/gotd/td/bin.Decoder *NotifyBroadcasts : github.com/gotd/td/bin.Encoder *NotifyBroadcasts : github.com/gotd/td/bin.Object *NotifyBroadcasts : github.com/gotd/td/tdp.Object *NotifyBroadcasts : fmt.Stringer
NotifyChats represents TL type `notifyChats#c007cec3`. Notifications generated by all groups. See https://core.telegram.org/constructor/notifyChats 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. (*NotifyChats) Zero() bool *NotifyChats : NotifyPeerClass *NotifyChats : github.com/gotd/td/bin.BareDecoder *NotifyChats : github.com/gotd/td/bin.BareEncoder *NotifyChats : github.com/gotd/td/bin.Decoder *NotifyChats : github.com/gotd/td/bin.Encoder *NotifyChats : github.com/gotd/td/bin.Object *NotifyChats : github.com/gotd/td/tdp.Object *NotifyChats : fmt.Stringer
NotifyForumTopic represents TL type `notifyForumTopic#226e6308`. Notifications generated by a topic¹ in a forum². Links: 1. https://core.telegram.org/api/forum#forum-topics 2. https://core.telegram.org/api/forum See https://core.telegram.org/constructor/notifyForumTopic for reference. Forum ID Topic ID¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills NotifyForumTopic from given interface. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID 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. (*NotifyForumTopic) Zero() bool *NotifyForumTopic : NotifyPeerClass *NotifyForumTopic : github.com/gotd/td/bin.BareDecoder *NotifyForumTopic : github.com/gotd/td/bin.BareEncoder *NotifyForumTopic : github.com/gotd/td/bin.Decoder *NotifyForumTopic : github.com/gotd/td/bin.Encoder *NotifyForumTopic : github.com/gotd/td/bin.Object *NotifyForumTopic : github.com/gotd/td/tdp.Object *NotifyForumTopic : fmt.Stringer func NotifyForumTopicArray.First() (v NotifyForumTopic, ok bool) func NotifyForumTopicArray.Last() (v NotifyForumTopic, ok bool) func (*NotifyForumTopicArray).Pop() (v NotifyForumTopic, ok bool) func (*NotifyForumTopicArray).PopFirst() (v NotifyForumTopic, ok bool)
NotifyForumTopicArray is adapter for slice of NotifyForumTopic. 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 NotifyForumTopic. Sort sorts slice of NotifyForumTopic. SortStable sorts slice of NotifyForumTopic. func NotifyForumTopicArray.Retain(keep func(x NotifyForumTopic) bool) NotifyForumTopicArray func NotifyForumTopicArray.Sort(less func(a, b NotifyForumTopic) bool) NotifyForumTopicArray func NotifyForumTopicArray.SortStable(less func(a, b NotifyForumTopic) bool) NotifyForumTopicArray func NotifyPeerClassArray.AsNotifyForumTopic() (to NotifyForumTopicArray)
NotifyPeer represents TL type `notifyPeer#9fd40bd8`. Notifications generated by a certain user or group. See https://core.telegram.org/constructor/notifyPeer for reference. The peer that left Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills NotifyPeer 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. (*NotifyPeer) Zero() bool *NotifyPeer : NotifyPeerClass *NotifyPeer : github.com/gotd/td/bin.BareDecoder *NotifyPeer : github.com/gotd/td/bin.BareEncoder *NotifyPeer : github.com/gotd/td/bin.Decoder *NotifyPeer : github.com/gotd/td/bin.Encoder *NotifyPeer : github.com/gotd/td/bin.Object *NotifyPeer : github.com/gotd/td/tdp.Object *NotifyPeer : fmt.Stringer func NotifyPeerArray.First() (v NotifyPeer, ok bool) func NotifyPeerArray.Last() (v NotifyPeer, ok bool) func (*NotifyPeerArray).Pop() (v NotifyPeer, ok bool) func (*NotifyPeerArray).PopFirst() (v NotifyPeer, ok bool)
NotifyPeerArray is adapter for slice of NotifyPeer. 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 NotifyPeer. Sort sorts slice of NotifyPeer. SortStable sorts slice of NotifyPeer. func NotifyPeerArray.Retain(keep func(x NotifyPeer) bool) NotifyPeerArray func NotifyPeerArray.Sort(less func(a, b NotifyPeer) bool) NotifyPeerArray func NotifyPeerArray.SortStable(less func(a, b NotifyPeer) bool) NotifyPeerArray func NotifyPeerClassArray.AsNotifyPeer() (to NotifyPeerArray)
NotifyPeer boxes the NotifyPeerClass providing a helper. NotifyPeer NotifyPeerClass Decode implements bin.Decoder for NotifyPeerBox. Encode implements bin.Encode for NotifyPeerBox. *NotifyPeerBox : github.com/gotd/td/bin.Decoder *NotifyPeerBox : github.com/gotd/td/bin.Encoder *NotifyPeerBox : github.com/gotd/td/bin.Object
NotifyPeerClass represents NotifyPeer generic type. See https://core.telegram.org/type/NotifyPeer for reference. Example: g, err := tg.DecodeNotifyPeer(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.NotifyPeer: // notifyPeer#9fd40bd8 case *tg.NotifyUsers: // notifyUsers#b4c83b4c case *tg.NotifyChats: // notifyChats#c007cec3 case *tg.NotifyBroadcasts: // notifyBroadcasts#d612e8ef case *tg.NotifyForumTopic: // notifyForumTopic#226e6308 default: panic(v) } ( NotifyPeerClass) Decode(b *bin.Buffer) error ( NotifyPeerClass) DecodeBare(b *bin.Buffer) error ( NotifyPeerClass) Encode(b *bin.Buffer) error ( NotifyPeerClass) 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. *NotifyBroadcasts *NotifyChats *NotifyForumTopic *NotifyPeer *NotifyUsers NotifyPeerClass : github.com/gotd/td/bin.BareDecoder NotifyPeerClass : github.com/gotd/td/bin.BareEncoder NotifyPeerClass : github.com/gotd/td/bin.Decoder NotifyPeerClass : github.com/gotd/td/bin.Encoder NotifyPeerClass : github.com/gotd/td/bin.Object NotifyPeerClass : fmt.Stringer func DecodeNotifyPeer(buf *bin.Buffer) (NotifyPeerClass, error) func NotifyPeerClassArray.First() (v NotifyPeerClass, ok bool) func NotifyPeerClassArray.Last() (v NotifyPeerClass, ok bool) func (*NotifyPeerClassArray).Pop() (v NotifyPeerClass, ok bool) func (*NotifyPeerClassArray).PopFirst() (v NotifyPeerClass, ok bool) func (*UpdateNotifySettings).GetPeer() (value NotifyPeerClass)
NotifyPeerClassArray is adapter for slice of NotifyPeerClass. AsNotifyForumTopic returns copy with only NotifyForumTopic constructors. AsNotifyPeer returns copy with only NotifyPeer 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 NotifyPeerClass. Sort sorts slice of NotifyPeerClass. SortStable sorts slice of NotifyPeerClass. func NotifyPeerClassArray.Retain(keep func(x NotifyPeerClass) bool) NotifyPeerClassArray func NotifyPeerClassArray.Sort(less func(a, b NotifyPeerClass) bool) NotifyPeerClassArray func NotifyPeerClassArray.SortStable(less func(a, b NotifyPeerClass) bool) NotifyPeerClassArray
NotifySettingsHandler is a NotifySettings event handler. func UpdateDispatcher.OnNotifySettings(handler NotifySettingsHandler)
NotifyUsers represents TL type `notifyUsers#b4c83b4c`. Notifications generated by all users. See https://core.telegram.org/constructor/notifyUsers 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. (*NotifyUsers) Zero() bool *NotifyUsers : NotifyPeerClass *NotifyUsers : github.com/gotd/td/bin.BareDecoder *NotifyUsers : github.com/gotd/td/bin.BareEncoder *NotifyUsers : github.com/gotd/td/bin.Decoder *NotifyUsers : github.com/gotd/td/bin.Encoder *NotifyUsers : github.com/gotd/td/bin.Object *NotifyUsers : github.com/gotd/td/tdp.Object *NotifyUsers : fmt.Stringer
Null represents TL type `null#56730bcc`. Corresponds to an arbitrary empty object. See https://core.telegram.org/constructor/null 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. (*Null) Zero() bool *Null : github.com/gotd/td/bin.BareDecoder *Null : github.com/gotd/td/bin.BareEncoder *Null : github.com/gotd/td/bin.Decoder *Null : github.com/gotd/td/bin.Encoder *Null : github.com/gotd/td/bin.Object *Null : github.com/gotd/td/tdp.Object *Null : fmt.Stringer
Page represents TL type `page#98657f0d`. Instant view¹ page Links: 1. https://instantview.telegram.org See https://core.telegram.org/constructor/page for reference. Page elements (like with HTML elements, only as TL constructors) Media in page Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Indicates that not full page preview is available to the client and it will need to fetch full Instant View from the server using messages.getWebPagePreview¹. Links: 1) https://core.telegram.org/method/messages.getWebPagePreview Photos in page Whether the page contains RTL text Original page HTTP URL Whether this is an IV v2¹ page Links: 1) https://instantview.telegram.org/docs#what-39s-new-in-2-0 View count Use SetViews and GetViews helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Page from given interface. GetBlocks returns value of Blocks field. GetDocuments returns value of Documents field. GetPart returns value of Part conditional field. GetPhotos returns value of Photos field. GetRtl returns value of Rtl conditional field. GetURL returns value of URL field. GetV2 returns value of V2 conditional field. GetViews returns value of Views conditional field and boolean which is true if field was set. MapBlocks returns field Blocks wrapped in PageBlockClassArray helper. MapDocuments returns field Documents wrapped in DocumentClassArray helper. MapPhotos returns field Photos wrapped in PhotoClassArray helper. SetFlags sets flags for non-zero fields. SetPart sets value of Part conditional field. SetRtl sets value of Rtl conditional field. SetV2 sets value of V2 conditional field. SetViews sets value of Views 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. (*Page) Zero() bool *Page : github.com/gotd/td/bin.BareDecoder *Page : github.com/gotd/td/bin.BareEncoder *Page : github.com/gotd/td/bin.Decoder *Page : github.com/gotd/td/bin.Encoder *Page : github.com/gotd/td/bin.Object *Page : github.com/gotd/td/tdp.Object *Page : fmt.Stringer func (*WebPage).GetCachedPage() (value Page, ok bool) func (*WebPage).SetCachedPage(value Page)
PageBlockAnchor represents TL type `pageBlockAnchor#ce0d37b0`. Link to section within the page itself (like <a href="#target">anchor</a>) See https://core.telegram.org/constructor/pageBlockAnchor for reference. Localized name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockAnchor from given interface. 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. (*PageBlockAnchor) Zero() bool *PageBlockAnchor : PageBlockClass *PageBlockAnchor : github.com/gotd/td/bin.BareDecoder *PageBlockAnchor : github.com/gotd/td/bin.BareEncoder *PageBlockAnchor : github.com/gotd/td/bin.Decoder *PageBlockAnchor : github.com/gotd/td/bin.Encoder *PageBlockAnchor : github.com/gotd/td/bin.Object *PageBlockAnchor : github.com/gotd/td/tdp.Object *PageBlockAnchor : fmt.Stringer func PageBlockAnchorArray.First() (v PageBlockAnchor, ok bool) func PageBlockAnchorArray.Last() (v PageBlockAnchor, ok bool) func (*PageBlockAnchorArray).Pop() (v PageBlockAnchor, ok bool) func (*PageBlockAnchorArray).PopFirst() (v PageBlockAnchor, ok bool)
PageBlockAnchorArray is adapter for slice of PageBlockAnchor. 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 PageBlockAnchor. Sort sorts slice of PageBlockAnchor. SortStable sorts slice of PageBlockAnchor. func PageBlockAnchorArray.Retain(keep func(x PageBlockAnchor) bool) PageBlockAnchorArray func PageBlockAnchorArray.Sort(less func(a, b PageBlockAnchor) bool) PageBlockAnchorArray func PageBlockAnchorArray.SortStable(less func(a, b PageBlockAnchor) bool) PageBlockAnchorArray func PageBlockClassArray.AsPageBlockAnchor() (to PageBlockAnchorArray)
PageBlockAudio represents TL type `pageBlockAudio#804361ea`. Audio See https://core.telegram.org/constructor/pageBlockAudio for reference. Audio ID (to be fetched from the container page¹ constructor Links: 1) https://core.telegram.org/constructor/page Audio caption Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockAudio from given interface. GetAudioID returns value of AudioID field. GetCaption returns value of Caption 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. (*PageBlockAudio) Zero() bool *PageBlockAudio : PageBlockClass *PageBlockAudio : github.com/gotd/td/bin.BareDecoder *PageBlockAudio : github.com/gotd/td/bin.BareEncoder *PageBlockAudio : github.com/gotd/td/bin.Decoder *PageBlockAudio : github.com/gotd/td/bin.Encoder *PageBlockAudio : github.com/gotd/td/bin.Object *PageBlockAudio : github.com/gotd/td/tdp.Object *PageBlockAudio : fmt.Stringer func PageBlockAudioArray.First() (v PageBlockAudio, ok bool) func PageBlockAudioArray.Last() (v PageBlockAudio, ok bool) func (*PageBlockAudioArray).Pop() (v PageBlockAudio, ok bool) func (*PageBlockAudioArray).PopFirst() (v PageBlockAudio, ok bool)
PageBlockAudioArray is adapter for slice of PageBlockAudio. 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 PageBlockAudio. Sort sorts slice of PageBlockAudio. SortStable sorts slice of PageBlockAudio. func PageBlockAudioArray.Retain(keep func(x PageBlockAudio) bool) PageBlockAudioArray func PageBlockAudioArray.Sort(less func(a, b PageBlockAudio) bool) PageBlockAudioArray func PageBlockAudioArray.SortStable(less func(a, b PageBlockAudio) bool) PageBlockAudioArray func PageBlockClassArray.AsPageBlockAudio() (to PageBlockAudioArray)
PageBlockAuthorDate represents TL type `pageBlockAuthorDate#baafe5e0`. Author and date of creation of article See https://core.telegram.org/constructor/pageBlockAuthorDate for reference. Author name Date of publication Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockAuthorDate from given interface. GetAuthor returns value of Author field. GetPublishedDate returns value of PublishedDate 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. (*PageBlockAuthorDate) Zero() bool *PageBlockAuthorDate : PageBlockClass *PageBlockAuthorDate : github.com/gotd/td/bin.BareDecoder *PageBlockAuthorDate : github.com/gotd/td/bin.BareEncoder *PageBlockAuthorDate : github.com/gotd/td/bin.Decoder *PageBlockAuthorDate : github.com/gotd/td/bin.Encoder *PageBlockAuthorDate : github.com/gotd/td/bin.Object *PageBlockAuthorDate : github.com/gotd/td/tdp.Object *PageBlockAuthorDate : fmt.Stringer func PageBlockAuthorDateArray.First() (v PageBlockAuthorDate, ok bool) func PageBlockAuthorDateArray.Last() (v PageBlockAuthorDate, ok bool) func (*PageBlockAuthorDateArray).Pop() (v PageBlockAuthorDate, ok bool) func (*PageBlockAuthorDateArray).PopFirst() (v PageBlockAuthorDate, ok bool)
PageBlockAuthorDateArray is adapter for slice of PageBlockAuthorDate. 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 PageBlockAuthorDate. Sort sorts slice of PageBlockAuthorDate. SortStable sorts slice of PageBlockAuthorDate. func PageBlockAuthorDateArray.Retain(keep func(x PageBlockAuthorDate) bool) PageBlockAuthorDateArray func PageBlockAuthorDateArray.Sort(less func(a, b PageBlockAuthorDate) bool) PageBlockAuthorDateArray func PageBlockAuthorDateArray.SortStable(less func(a, b PageBlockAuthorDate) bool) PageBlockAuthorDateArray func PageBlockClassArray.AsPageBlockAuthorDate() (to PageBlockAuthorDateArray)
PageBlockBlockquote represents TL type `pageBlockBlockquote#263d7c26`. Quote (equivalent to the HTML <blockquote>) See https://core.telegram.org/constructor/pageBlockBlockquote for reference. Caption Quote contents Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockBlockquote from given interface. GetCaption returns value of Caption field. GetText returns value of Text 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. (*PageBlockBlockquote) Zero() bool *PageBlockBlockquote : PageBlockClass *PageBlockBlockquote : github.com/gotd/td/bin.BareDecoder *PageBlockBlockquote : github.com/gotd/td/bin.BareEncoder *PageBlockBlockquote : github.com/gotd/td/bin.Decoder *PageBlockBlockquote : github.com/gotd/td/bin.Encoder *PageBlockBlockquote : github.com/gotd/td/bin.Object *PageBlockBlockquote : github.com/gotd/td/tdp.Object *PageBlockBlockquote : fmt.Stringer func PageBlockBlockquoteArray.First() (v PageBlockBlockquote, ok bool) func PageBlockBlockquoteArray.Last() (v PageBlockBlockquote, ok bool) func (*PageBlockBlockquoteArray).Pop() (v PageBlockBlockquote, ok bool) func (*PageBlockBlockquoteArray).PopFirst() (v PageBlockBlockquote, ok bool)
PageBlockBlockquoteArray is adapter for slice of PageBlockBlockquote. 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 PageBlockBlockquote. Sort sorts slice of PageBlockBlockquote. SortStable sorts slice of PageBlockBlockquote. func PageBlockBlockquoteArray.Retain(keep func(x PageBlockBlockquote) bool) PageBlockBlockquoteArray func PageBlockBlockquoteArray.Sort(less func(a, b PageBlockBlockquote) bool) PageBlockBlockquoteArray func PageBlockBlockquoteArray.SortStable(less func(a, b PageBlockBlockquote) bool) PageBlockBlockquoteArray func PageBlockClassArray.AsPageBlockBlockquote() (to PageBlockBlockquoteArray)
PageBlock boxes the PageBlockClass providing a helper. PageBlock PageBlockClass Decode implements bin.Decoder for PageBlockBox. Encode implements bin.Encode for PageBlockBox. *PageBlockBox : github.com/gotd/td/bin.Decoder *PageBlockBox : github.com/gotd/td/bin.Encoder *PageBlockBox : github.com/gotd/td/bin.Object
PageBlockChannel represents TL type `pageBlockChannel#ef1751b5`. Reference to a telegram channel See https://core.telegram.org/constructor/pageBlockChannel for reference. The channel/supergroup/chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockChannel from given interface. GetChannel returns 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. (*PageBlockChannel) Zero() bool *PageBlockChannel : PageBlockClass *PageBlockChannel : github.com/gotd/td/bin.BareDecoder *PageBlockChannel : github.com/gotd/td/bin.BareEncoder *PageBlockChannel : github.com/gotd/td/bin.Decoder *PageBlockChannel : github.com/gotd/td/bin.Encoder *PageBlockChannel : github.com/gotd/td/bin.Object *PageBlockChannel : github.com/gotd/td/tdp.Object *PageBlockChannel : fmt.Stringer func PageBlockChannelArray.First() (v PageBlockChannel, ok bool) func PageBlockChannelArray.Last() (v PageBlockChannel, ok bool) func (*PageBlockChannelArray).Pop() (v PageBlockChannel, ok bool) func (*PageBlockChannelArray).PopFirst() (v PageBlockChannel, ok bool)
PageBlockChannelArray is adapter for slice of PageBlockChannel. 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 PageBlockChannel. Sort sorts slice of PageBlockChannel. SortStable sorts slice of PageBlockChannel. func PageBlockChannelArray.Retain(keep func(x PageBlockChannel) bool) PageBlockChannelArray func PageBlockChannelArray.Sort(less func(a, b PageBlockChannel) bool) PageBlockChannelArray func PageBlockChannelArray.SortStable(less func(a, b PageBlockChannel) bool) PageBlockChannelArray func PageBlockClassArray.AsPageBlockChannel() (to PageBlockChannelArray)
PageBlockClass represents PageBlock generic type. See https://core.telegram.org/type/PageBlock for reference. Example: g, err := tg.DecodePageBlock(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PageBlockUnsupported: // pageBlockUnsupported#13567e8a case *tg.PageBlockTitle: // pageBlockTitle#70abc3fd case *tg.PageBlockSubtitle: // pageBlockSubtitle#8ffa9a1f case *tg.PageBlockAuthorDate: // pageBlockAuthorDate#baafe5e0 case *tg.PageBlockHeader: // pageBlockHeader#bfd064ec case *tg.PageBlockSubheader: // pageBlockSubheader#f12bb6e1 case *tg.PageBlockParagraph: // pageBlockParagraph#467a0766 case *tg.PageBlockPreformatted: // pageBlockPreformatted#c070d93e case *tg.PageBlockFooter: // pageBlockFooter#48870999 case *tg.PageBlockDivider: // pageBlockDivider#db20b188 case *tg.PageBlockAnchor: // pageBlockAnchor#ce0d37b0 case *tg.PageBlockList: // pageBlockList#e4e88011 case *tg.PageBlockBlockquote: // pageBlockBlockquote#263d7c26 case *tg.PageBlockPullquote: // pageBlockPullquote#4f4456d3 case *tg.PageBlockPhoto: // pageBlockPhoto#1759c560 case *tg.PageBlockVideo: // pageBlockVideo#7c8fe7b6 case *tg.PageBlockCover: // pageBlockCover#39f23300 case *tg.PageBlockEmbed: // pageBlockEmbed#a8718dc5 case *tg.PageBlockEmbedPost: // pageBlockEmbedPost#f259a80b case *tg.PageBlockCollage: // pageBlockCollage#65a0fa4d case *tg.PageBlockSlideshow: // pageBlockSlideshow#31f9590 case *tg.PageBlockChannel: // pageBlockChannel#ef1751b5 case *tg.PageBlockAudio: // pageBlockAudio#804361ea case *tg.PageBlockKicker: // pageBlockKicker#1e148390 case *tg.PageBlockTable: // pageBlockTable#bf4dea82 case *tg.PageBlockOrderedList: // pageBlockOrderedList#9a8ae1e1 case *tg.PageBlockDetails: // pageBlockDetails#76768bed case *tg.PageBlockRelatedArticles: // pageBlockRelatedArticles#16115a96 case *tg.PageBlockMap: // pageBlockMap#a44f3ef6 default: panic(v) } ( PageBlockClass) Decode(b *bin.Buffer) error ( PageBlockClass) DecodeBare(b *bin.Buffer) error ( PageBlockClass) Encode(b *bin.Buffer) error ( PageBlockClass) 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. *PageBlockAnchor *PageBlockAudio *PageBlockAuthorDate *PageBlockBlockquote *PageBlockChannel *PageBlockCollage *PageBlockCover *PageBlockDetails *PageBlockDivider *PageBlockEmbed *PageBlockEmbedPost *PageBlockFooter *PageBlockHeader *PageBlockKicker *PageBlockList *PageBlockMap *PageBlockOrderedList *PageBlockParagraph *PageBlockPhoto *PageBlockPreformatted *PageBlockPullquote *PageBlockRelatedArticles *PageBlockSlideshow *PageBlockSubheader *PageBlockSubtitle *PageBlockTable *PageBlockTitle *PageBlockUnsupported *PageBlockVideo PageBlockClass : github.com/gotd/td/bin.BareDecoder PageBlockClass : github.com/gotd/td/bin.BareEncoder PageBlockClass : github.com/gotd/td/bin.Decoder PageBlockClass : github.com/gotd/td/bin.Encoder PageBlockClass : github.com/gotd/td/bin.Object PageBlockClass : fmt.Stringer func DecodePageBlock(buf *bin.Buffer) (PageBlockClass, error) func (*Page).GetBlocks() (value []PageBlockClass) func PageBlockClassArray.First() (v PageBlockClass, ok bool) func PageBlockClassArray.Last() (v PageBlockClass, ok bool) func (*PageBlockClassArray).Pop() (v PageBlockClass, ok bool) func (*PageBlockClassArray).PopFirst() (v PageBlockClass, ok bool) func (*PageBlockCollage).GetItems() (value []PageBlockClass) func (*PageBlockCover).GetCover() (value PageBlockClass) func (*PageBlockDetails).GetBlocks() (value []PageBlockClass) func (*PageBlockEmbedPost).GetBlocks() (value []PageBlockClass) func (*PageBlockSlideshow).GetItems() (value []PageBlockClass) func (*PageListItemBlocks).GetBlocks() (value []PageBlockClass) func (*PageListOrderedItemBlocks).GetBlocks() (value []PageBlockClass)
PageBlockClassArray is adapter for slice of PageBlockClass. AsPageBlockAnchor returns copy with only PageBlockAnchor constructors. AsPageBlockAudio returns copy with only PageBlockAudio constructors. AsPageBlockAuthorDate returns copy with only PageBlockAuthorDate constructors. AsPageBlockBlockquote returns copy with only PageBlockBlockquote constructors. AsPageBlockChannel returns copy with only PageBlockChannel constructors. AsPageBlockCollage returns copy with only PageBlockCollage constructors. AsPageBlockCover returns copy with only PageBlockCover constructors. AsPageBlockDetails returns copy with only PageBlockDetails constructors. AsPageBlockEmbed returns copy with only PageBlockEmbed constructors. AsPageBlockEmbedPost returns copy with only PageBlockEmbedPost constructors. AsPageBlockFooter returns copy with only PageBlockFooter constructors. AsPageBlockHeader returns copy with only PageBlockHeader constructors. AsPageBlockKicker returns copy with only PageBlockKicker constructors. AsPageBlockList returns copy with only PageBlockList constructors. AsPageBlockMap returns copy with only PageBlockMap constructors. AsPageBlockOrderedList returns copy with only PageBlockOrderedList constructors. AsPageBlockParagraph returns copy with only PageBlockParagraph constructors. AsPageBlockPhoto returns copy with only PageBlockPhoto constructors. AsPageBlockPreformatted returns copy with only PageBlockPreformatted constructors. AsPageBlockPullquote returns copy with only PageBlockPullquote constructors. AsPageBlockRelatedArticles returns copy with only PageBlockRelatedArticles constructors. AsPageBlockSlideshow returns copy with only PageBlockSlideshow constructors. AsPageBlockSubheader returns copy with only PageBlockSubheader constructors. AsPageBlockSubtitle returns copy with only PageBlockSubtitle constructors. AsPageBlockTable returns copy with only PageBlockTable constructors. AsPageBlockTitle returns copy with only PageBlockTitle constructors. AsPageBlockVideo returns copy with only PageBlockVideo 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 PageBlockClass. Sort sorts slice of PageBlockClass. SortStable sorts slice of PageBlockClass. func (*Page).MapBlocks() (value PageBlockClassArray) func PageBlockClassArray.Retain(keep func(x PageBlockClass) bool) PageBlockClassArray func PageBlockClassArray.Sort(less func(a, b PageBlockClass) bool) PageBlockClassArray func PageBlockClassArray.SortStable(less func(a, b PageBlockClass) bool) PageBlockClassArray func (*PageBlockCollage).MapItems() (value PageBlockClassArray) func (*PageBlockDetails).MapBlocks() (value PageBlockClassArray) func (*PageBlockEmbedPost).MapBlocks() (value PageBlockClassArray) func (*PageBlockSlideshow).MapItems() (value PageBlockClassArray) func (*PageListItemBlocks).MapBlocks() (value PageBlockClassArray) func (*PageListOrderedItemBlocks).MapBlocks() (value PageBlockClassArray)
PageBlockCollage represents TL type `pageBlockCollage#65a0fa4d`. Collage of media See https://core.telegram.org/constructor/pageBlockCollage for reference. Caption Media elements Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockCollage from given interface. GetCaption returns value of Caption field. GetItems returns value of Items field. MapItems returns field Items wrapped in PageBlockClassArray 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. (*PageBlockCollage) Zero() bool *PageBlockCollage : PageBlockClass *PageBlockCollage : github.com/gotd/td/bin.BareDecoder *PageBlockCollage : github.com/gotd/td/bin.BareEncoder *PageBlockCollage : github.com/gotd/td/bin.Decoder *PageBlockCollage : github.com/gotd/td/bin.Encoder *PageBlockCollage : github.com/gotd/td/bin.Object *PageBlockCollage : github.com/gotd/td/tdp.Object *PageBlockCollage : fmt.Stringer func PageBlockCollageArray.First() (v PageBlockCollage, ok bool) func PageBlockCollageArray.Last() (v PageBlockCollage, ok bool) func (*PageBlockCollageArray).Pop() (v PageBlockCollage, ok bool) func (*PageBlockCollageArray).PopFirst() (v PageBlockCollage, ok bool)
PageBlockCollageArray is adapter for slice of PageBlockCollage. 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 PageBlockCollage. Sort sorts slice of PageBlockCollage. SortStable sorts slice of PageBlockCollage. func PageBlockClassArray.AsPageBlockCollage() (to PageBlockCollageArray) func PageBlockCollageArray.Retain(keep func(x PageBlockCollage) bool) PageBlockCollageArray func PageBlockCollageArray.Sort(less func(a, b PageBlockCollage) bool) PageBlockCollageArray func PageBlockCollageArray.SortStable(less func(a, b PageBlockCollage) bool) PageBlockCollageArray
PageBlockCover represents TL type `pageBlockCover#39f23300`. A page cover See https://core.telegram.org/constructor/pageBlockCover for reference. Cover Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockCover from given interface. GetCover returns value of Cover 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. (*PageBlockCover) Zero() bool *PageBlockCover : PageBlockClass *PageBlockCover : github.com/gotd/td/bin.BareDecoder *PageBlockCover : github.com/gotd/td/bin.BareEncoder *PageBlockCover : github.com/gotd/td/bin.Decoder *PageBlockCover : github.com/gotd/td/bin.Encoder *PageBlockCover : github.com/gotd/td/bin.Object *PageBlockCover : github.com/gotd/td/tdp.Object *PageBlockCover : fmt.Stringer func PageBlockCoverArray.First() (v PageBlockCover, ok bool) func PageBlockCoverArray.Last() (v PageBlockCover, ok bool) func (*PageBlockCoverArray).Pop() (v PageBlockCover, ok bool) func (*PageBlockCoverArray).PopFirst() (v PageBlockCover, ok bool)
PageBlockCoverArray is adapter for slice of PageBlockCover. 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 PageBlockCover. Sort sorts slice of PageBlockCover. SortStable sorts slice of PageBlockCover. func PageBlockClassArray.AsPageBlockCover() (to PageBlockCoverArray) func PageBlockCoverArray.Retain(keep func(x PageBlockCover) bool) PageBlockCoverArray func PageBlockCoverArray.Sort(less func(a, b PageBlockCover) bool) PageBlockCoverArray func PageBlockCoverArray.SortStable(less func(a, b PageBlockCover) bool) PageBlockCoverArray
PageBlockDetails represents TL type `pageBlockDetails#76768bed`. A collapsible details block See https://core.telegram.org/constructor/pageBlockDetails for reference. Block contents Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the block is open by default Always visible heading for the block Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockDetails from given interface. GetBlocks returns value of Blocks field. GetOpen returns value of Open conditional field. GetTitle returns value of Title field. MapBlocks returns field Blocks wrapped in PageBlockClassArray helper. SetFlags sets flags for non-zero fields. SetOpen sets value of Open 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. (*PageBlockDetails) Zero() bool *PageBlockDetails : PageBlockClass *PageBlockDetails : github.com/gotd/td/bin.BareDecoder *PageBlockDetails : github.com/gotd/td/bin.BareEncoder *PageBlockDetails : github.com/gotd/td/bin.Decoder *PageBlockDetails : github.com/gotd/td/bin.Encoder *PageBlockDetails : github.com/gotd/td/bin.Object *PageBlockDetails : github.com/gotd/td/tdp.Object *PageBlockDetails : fmt.Stringer func PageBlockDetailsArray.First() (v PageBlockDetails, ok bool) func PageBlockDetailsArray.Last() (v PageBlockDetails, ok bool) func (*PageBlockDetailsArray).Pop() (v PageBlockDetails, ok bool) func (*PageBlockDetailsArray).PopFirst() (v PageBlockDetails, ok bool)
PageBlockDetailsArray is adapter for slice of PageBlockDetails. 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 PageBlockDetails. Sort sorts slice of PageBlockDetails. SortStable sorts slice of PageBlockDetails. func PageBlockClassArray.AsPageBlockDetails() (to PageBlockDetailsArray) func PageBlockDetailsArray.Retain(keep func(x PageBlockDetails) bool) PageBlockDetailsArray func PageBlockDetailsArray.Sort(less func(a, b PageBlockDetails) bool) PageBlockDetailsArray func PageBlockDetailsArray.SortStable(less func(a, b PageBlockDetails) bool) PageBlockDetailsArray
PageBlockDivider represents TL type `pageBlockDivider#db20b188`. An empty block separating a page See https://core.telegram.org/constructor/pageBlockDivider 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. (*PageBlockDivider) Zero() bool *PageBlockDivider : PageBlockClass *PageBlockDivider : github.com/gotd/td/bin.BareDecoder *PageBlockDivider : github.com/gotd/td/bin.BareEncoder *PageBlockDivider : github.com/gotd/td/bin.Decoder *PageBlockDivider : github.com/gotd/td/bin.Encoder *PageBlockDivider : github.com/gotd/td/bin.Object *PageBlockDivider : github.com/gotd/td/tdp.Object *PageBlockDivider : fmt.Stringer
PageBlockEmbed represents TL type `pageBlockEmbed#a8718dc5`. An embedded webpage See https://core.telegram.org/constructor/pageBlockEmbed for reference. Whether scrolling should be allowed Caption Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the block should be full width Block height, if known Use SetH and GetH helpers. HTML-markup of the embedded page Use SetHTML and GetHTML helpers. Poster photo, if available Use SetPosterPhotoID and GetPosterPhotoID helpers. Web page URL, if available Use SetURL and GetURL helpers. Block width, if known Use SetW and GetW helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockEmbed from given interface. GetAllowScrolling returns value of AllowScrolling conditional field. GetCaption returns value of Caption field. GetFullWidth returns value of FullWidth conditional field. GetH returns value of H conditional field and boolean which is true if field was set. GetHTML returns value of HTML conditional field and boolean which is true if field was set. GetPosterPhotoID returns value of PosterPhotoID conditional field and boolean which is true if field was set. GetURL returns value of URL conditional field and boolean which is true if field was set. GetW returns value of W conditional field and boolean which is true if field was set. SetAllowScrolling sets value of AllowScrolling conditional field. SetFlags sets flags for non-zero fields. SetFullWidth sets value of FullWidth conditional field. SetH sets value of H conditional field. SetHTML sets value of HTML conditional field. SetPosterPhotoID sets value of PosterPhotoID conditional field. SetURL sets value of URL conditional field. SetW sets value of W 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. (*PageBlockEmbed) Zero() bool *PageBlockEmbed : PageBlockClass *PageBlockEmbed : github.com/gotd/td/bin.BareDecoder *PageBlockEmbed : github.com/gotd/td/bin.BareEncoder *PageBlockEmbed : github.com/gotd/td/bin.Decoder *PageBlockEmbed : github.com/gotd/td/bin.Encoder *PageBlockEmbed : github.com/gotd/td/bin.Object *PageBlockEmbed : github.com/gotd/td/tdp.Object *PageBlockEmbed : fmt.Stringer func PageBlockEmbedArray.First() (v PageBlockEmbed, ok bool) func PageBlockEmbedArray.Last() (v PageBlockEmbed, ok bool) func (*PageBlockEmbedArray).Pop() (v PageBlockEmbed, ok bool) func (*PageBlockEmbedArray).PopFirst() (v PageBlockEmbed, ok bool)
PageBlockEmbedArray is adapter for slice of PageBlockEmbed. 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 PageBlockEmbed. Sort sorts slice of PageBlockEmbed. SortStable sorts slice of PageBlockEmbed. func PageBlockClassArray.AsPageBlockEmbed() (to PageBlockEmbedArray) func PageBlockEmbedArray.Retain(keep func(x PageBlockEmbed) bool) PageBlockEmbedArray func PageBlockEmbedArray.Sort(less func(a, b PageBlockEmbed) bool) PageBlockEmbedArray func PageBlockEmbedArray.SortStable(less func(a, b PageBlockEmbed) bool) PageBlockEmbedArray
PageBlockEmbedPost represents TL type `pageBlockEmbedPost#f259a80b`. An embedded post See https://core.telegram.org/constructor/pageBlockEmbedPost for reference. Author name ID of the author's photo Post contents Caption Creation date Web page URL ID of generated webpage preview Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockEmbedPost from given interface. GetAuthor returns value of Author field. GetAuthorPhotoID returns value of AuthorPhotoID field. GetBlocks returns value of Blocks field. GetCaption returns value of Caption field. GetDate returns value of Date field. GetURL returns value of URL field. GetWebpageID returns value of WebpageID field. MapBlocks returns field Blocks wrapped in PageBlockClassArray 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. (*PageBlockEmbedPost) Zero() bool *PageBlockEmbedPost : PageBlockClass *PageBlockEmbedPost : github.com/gotd/td/bin.BareDecoder *PageBlockEmbedPost : github.com/gotd/td/bin.BareEncoder *PageBlockEmbedPost : github.com/gotd/td/bin.Decoder *PageBlockEmbedPost : github.com/gotd/td/bin.Encoder *PageBlockEmbedPost : github.com/gotd/td/bin.Object *PageBlockEmbedPost : github.com/gotd/td/tdp.Object *PageBlockEmbedPost : fmt.Stringer func PageBlockEmbedPostArray.First() (v PageBlockEmbedPost, ok bool) func PageBlockEmbedPostArray.Last() (v PageBlockEmbedPost, ok bool) func (*PageBlockEmbedPostArray).Pop() (v PageBlockEmbedPost, ok bool) func (*PageBlockEmbedPostArray).PopFirst() (v PageBlockEmbedPost, ok bool)
PageBlockEmbedPostArray is adapter for slice of PageBlockEmbedPost. 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 PageBlockEmbedPost. Sort sorts slice of PageBlockEmbedPost. SortByDate sorts slice of PageBlockEmbedPost by Date. SortStable sorts slice of PageBlockEmbedPost. SortStableByDate sorts slice of PageBlockEmbedPost by Date. func PageBlockClassArray.AsPageBlockEmbedPost() (to PageBlockEmbedPostArray) func PageBlockEmbedPostArray.Retain(keep func(x PageBlockEmbedPost) bool) PageBlockEmbedPostArray func PageBlockEmbedPostArray.Sort(less func(a, b PageBlockEmbedPost) bool) PageBlockEmbedPostArray func PageBlockEmbedPostArray.SortByDate() PageBlockEmbedPostArray func PageBlockEmbedPostArray.SortStable(less func(a, b PageBlockEmbedPost) bool) PageBlockEmbedPostArray func PageBlockEmbedPostArray.SortStableByDate() PageBlockEmbedPostArray
PageBlockFooter represents TL type `pageBlockFooter#48870999`. Page footer See https://core.telegram.org/constructor/pageBlockFooter for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockFooter from given interface. GetText returns value of Text 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. (*PageBlockFooter) Zero() bool *PageBlockFooter : PageBlockClass *PageBlockFooter : github.com/gotd/td/bin.BareDecoder *PageBlockFooter : github.com/gotd/td/bin.BareEncoder *PageBlockFooter : github.com/gotd/td/bin.Decoder *PageBlockFooter : github.com/gotd/td/bin.Encoder *PageBlockFooter : github.com/gotd/td/bin.Object *PageBlockFooter : github.com/gotd/td/tdp.Object *PageBlockFooter : fmt.Stringer func PageBlockFooterArray.First() (v PageBlockFooter, ok bool) func PageBlockFooterArray.Last() (v PageBlockFooter, ok bool) func (*PageBlockFooterArray).Pop() (v PageBlockFooter, ok bool) func (*PageBlockFooterArray).PopFirst() (v PageBlockFooter, ok bool)
PageBlockFooterArray is adapter for slice of PageBlockFooter. 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 PageBlockFooter. Sort sorts slice of PageBlockFooter. SortStable sorts slice of PageBlockFooter. func PageBlockClassArray.AsPageBlockFooter() (to PageBlockFooterArray) func PageBlockFooterArray.Retain(keep func(x PageBlockFooter) bool) PageBlockFooterArray func PageBlockFooterArray.Sort(less func(a, b PageBlockFooter) bool) PageBlockFooterArray func PageBlockFooterArray.SortStable(less func(a, b PageBlockFooter) bool) PageBlockFooterArray
PageBlockHeader represents TL type `pageBlockHeader#bfd064ec`. Page header See https://core.telegram.org/constructor/pageBlockHeader for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockHeader from given interface. GetText returns value of Text 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. (*PageBlockHeader) Zero() bool *PageBlockHeader : PageBlockClass *PageBlockHeader : github.com/gotd/td/bin.BareDecoder *PageBlockHeader : github.com/gotd/td/bin.BareEncoder *PageBlockHeader : github.com/gotd/td/bin.Decoder *PageBlockHeader : github.com/gotd/td/bin.Encoder *PageBlockHeader : github.com/gotd/td/bin.Object *PageBlockHeader : github.com/gotd/td/tdp.Object *PageBlockHeader : fmt.Stringer func PageBlockHeaderArray.First() (v PageBlockHeader, ok bool) func PageBlockHeaderArray.Last() (v PageBlockHeader, ok bool) func (*PageBlockHeaderArray).Pop() (v PageBlockHeader, ok bool) func (*PageBlockHeaderArray).PopFirst() (v PageBlockHeader, ok bool)
PageBlockHeaderArray is adapter for slice of PageBlockHeader. 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 PageBlockHeader. Sort sorts slice of PageBlockHeader. SortStable sorts slice of PageBlockHeader. func PageBlockClassArray.AsPageBlockHeader() (to PageBlockHeaderArray) func PageBlockHeaderArray.Retain(keep func(x PageBlockHeader) bool) PageBlockHeaderArray func PageBlockHeaderArray.Sort(less func(a, b PageBlockHeader) bool) PageBlockHeaderArray func PageBlockHeaderArray.SortStable(less func(a, b PageBlockHeader) bool) PageBlockHeaderArray
PageBlockKicker represents TL type `pageBlockKicker#1e148390`. Kicker See https://core.telegram.org/constructor/pageBlockKicker for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockKicker from given interface. GetText returns value of Text 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. (*PageBlockKicker) Zero() bool *PageBlockKicker : PageBlockClass *PageBlockKicker : github.com/gotd/td/bin.BareDecoder *PageBlockKicker : github.com/gotd/td/bin.BareEncoder *PageBlockKicker : github.com/gotd/td/bin.Decoder *PageBlockKicker : github.com/gotd/td/bin.Encoder *PageBlockKicker : github.com/gotd/td/bin.Object *PageBlockKicker : github.com/gotd/td/tdp.Object *PageBlockKicker : fmt.Stringer func PageBlockKickerArray.First() (v PageBlockKicker, ok bool) func PageBlockKickerArray.Last() (v PageBlockKicker, ok bool) func (*PageBlockKickerArray).Pop() (v PageBlockKicker, ok bool) func (*PageBlockKickerArray).PopFirst() (v PageBlockKicker, ok bool)
PageBlockKickerArray is adapter for slice of PageBlockKicker. 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 PageBlockKicker. Sort sorts slice of PageBlockKicker. SortStable sorts slice of PageBlockKicker. func PageBlockClassArray.AsPageBlockKicker() (to PageBlockKickerArray) func PageBlockKickerArray.Retain(keep func(x PageBlockKicker) bool) PageBlockKickerArray func PageBlockKickerArray.Sort(less func(a, b PageBlockKicker) bool) PageBlockKickerArray func PageBlockKickerArray.SortStable(less func(a, b PageBlockKicker) bool) PageBlockKickerArray
PageBlockList represents TL type `pageBlockList#e4e88011`. Unordered list of IV blocks See https://core.telegram.org/constructor/pageBlockList for reference. List of blocks in an IV page Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockList from given interface. GetItems returns value of Items field. MapItems returns field Items wrapped in PageListItemClassArray 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. (*PageBlockList) Zero() bool *PageBlockList : PageBlockClass *PageBlockList : github.com/gotd/td/bin.BareDecoder *PageBlockList : github.com/gotd/td/bin.BareEncoder *PageBlockList : github.com/gotd/td/bin.Decoder *PageBlockList : github.com/gotd/td/bin.Encoder *PageBlockList : github.com/gotd/td/bin.Object *PageBlockList : github.com/gotd/td/tdp.Object *PageBlockList : fmt.Stringer func PageBlockListArray.First() (v PageBlockList, ok bool) func PageBlockListArray.Last() (v PageBlockList, ok bool) func (*PageBlockListArray).Pop() (v PageBlockList, ok bool) func (*PageBlockListArray).PopFirst() (v PageBlockList, ok bool)
PageBlockListArray is adapter for slice of PageBlockList. 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 PageBlockList. Sort sorts slice of PageBlockList. SortStable sorts slice of PageBlockList. func PageBlockClassArray.AsPageBlockList() (to PageBlockListArray) func PageBlockListArray.Retain(keep func(x PageBlockList) bool) PageBlockListArray func PageBlockListArray.Sort(less func(a, b PageBlockList) bool) PageBlockListArray func PageBlockListArray.SortStable(less func(a, b PageBlockList) bool) PageBlockListArray
PageBlockMap represents TL type `pageBlockMap#a44f3ef6`. A map See https://core.telegram.org/constructor/pageBlockMap for reference. Caption Location of the map center Map height in pixels before applying scale; 16-1024 Map width in pixels before applying scale; 16-102 Map zoom level; 13-20 Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockMap from given interface. GetCaption returns value of Caption field. GetGeo returns value of Geo field. GetH returns value of H field. GetW returns value of W field. GetZoom returns value of Zoom 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. (*PageBlockMap) Zero() bool *PageBlockMap : PageBlockClass *PageBlockMap : github.com/gotd/td/bin.BareDecoder *PageBlockMap : github.com/gotd/td/bin.BareEncoder *PageBlockMap : github.com/gotd/td/bin.Decoder *PageBlockMap : github.com/gotd/td/bin.Encoder *PageBlockMap : github.com/gotd/td/bin.Object *PageBlockMap : github.com/gotd/td/tdp.Object *PageBlockMap : fmt.Stringer func PageBlockMapArray.First() (v PageBlockMap, ok bool) func PageBlockMapArray.Last() (v PageBlockMap, ok bool) func (*PageBlockMapArray).Pop() (v PageBlockMap, ok bool) func (*PageBlockMapArray).PopFirst() (v PageBlockMap, ok bool)
PageBlockMapArray is adapter for slice of PageBlockMap. 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 PageBlockMap. Sort sorts slice of PageBlockMap. SortStable sorts slice of PageBlockMap. func PageBlockClassArray.AsPageBlockMap() (to PageBlockMapArray) func PageBlockMapArray.Retain(keep func(x PageBlockMap) bool) PageBlockMapArray func PageBlockMapArray.Sort(less func(a, b PageBlockMap) bool) PageBlockMapArray func PageBlockMapArray.SortStable(less func(a, b PageBlockMap) bool) PageBlockMapArray
PageBlockOrderedList represents TL type `pageBlockOrderedList#9a8ae1e1`. Ordered list of IV blocks See https://core.telegram.org/constructor/pageBlockOrderedList for reference. List items Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockOrderedList from given interface. GetItems returns value of Items field. MapItems returns field Items wrapped in PageListOrderedItemClassArray 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. (*PageBlockOrderedList) Zero() bool *PageBlockOrderedList : PageBlockClass *PageBlockOrderedList : github.com/gotd/td/bin.BareDecoder *PageBlockOrderedList : github.com/gotd/td/bin.BareEncoder *PageBlockOrderedList : github.com/gotd/td/bin.Decoder *PageBlockOrderedList : github.com/gotd/td/bin.Encoder *PageBlockOrderedList : github.com/gotd/td/bin.Object *PageBlockOrderedList : github.com/gotd/td/tdp.Object *PageBlockOrderedList : fmt.Stringer func PageBlockOrderedListArray.First() (v PageBlockOrderedList, ok bool) func PageBlockOrderedListArray.Last() (v PageBlockOrderedList, ok bool) func (*PageBlockOrderedListArray).Pop() (v PageBlockOrderedList, ok bool) func (*PageBlockOrderedListArray).PopFirst() (v PageBlockOrderedList, ok bool)
PageBlockOrderedListArray is adapter for slice of PageBlockOrderedList. 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 PageBlockOrderedList. Sort sorts slice of PageBlockOrderedList. SortStable sorts slice of PageBlockOrderedList. func PageBlockClassArray.AsPageBlockOrderedList() (to PageBlockOrderedListArray) func PageBlockOrderedListArray.Retain(keep func(x PageBlockOrderedList) bool) PageBlockOrderedListArray func PageBlockOrderedListArray.Sort(less func(a, b PageBlockOrderedList) bool) PageBlockOrderedListArray func PageBlockOrderedListArray.SortStable(less func(a, b PageBlockOrderedList) bool) PageBlockOrderedListArray
PageBlockParagraph represents TL type `pageBlockParagraph#467a0766`. A paragraph See https://core.telegram.org/constructor/pageBlockParagraph for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockParagraph from given interface. GetText returns value of Text 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. (*PageBlockParagraph) Zero() bool *PageBlockParagraph : PageBlockClass *PageBlockParagraph : github.com/gotd/td/bin.BareDecoder *PageBlockParagraph : github.com/gotd/td/bin.BareEncoder *PageBlockParagraph : github.com/gotd/td/bin.Decoder *PageBlockParagraph : github.com/gotd/td/bin.Encoder *PageBlockParagraph : github.com/gotd/td/bin.Object *PageBlockParagraph : github.com/gotd/td/tdp.Object *PageBlockParagraph : fmt.Stringer func PageBlockParagraphArray.First() (v PageBlockParagraph, ok bool) func PageBlockParagraphArray.Last() (v PageBlockParagraph, ok bool) func (*PageBlockParagraphArray).Pop() (v PageBlockParagraph, ok bool) func (*PageBlockParagraphArray).PopFirst() (v PageBlockParagraph, ok bool)
PageBlockParagraphArray is adapter for slice of PageBlockParagraph. 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 PageBlockParagraph. Sort sorts slice of PageBlockParagraph. SortStable sorts slice of PageBlockParagraph. func PageBlockClassArray.AsPageBlockParagraph() (to PageBlockParagraphArray) func PageBlockParagraphArray.Retain(keep func(x PageBlockParagraph) bool) PageBlockParagraphArray func PageBlockParagraphArray.Sort(less func(a, b PageBlockParagraph) bool) PageBlockParagraphArray func PageBlockParagraphArray.SortStable(less func(a, b PageBlockParagraph) bool) PageBlockParagraphArray
PageBlockPhoto represents TL type `pageBlockPhoto#1759c560`. A photo See https://core.telegram.org/constructor/pageBlockPhoto for reference. Caption Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Photo ID HTTP URL of page the photo leads to when clicked Use SetURL and GetURL helpers. ID of preview of the page the photo leads to when clicked Use SetWebpageID and GetWebpageID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockPhoto from given interface. GetCaption returns value of Caption field. GetPhotoID returns value of PhotoID field. GetURL returns value of URL conditional field and boolean which is true if field was set. GetWebpageID returns value of WebpageID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetURL sets value of URL conditional field. SetWebpageID sets value of WebpageID 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. (*PageBlockPhoto) Zero() bool *PageBlockPhoto : PageBlockClass *PageBlockPhoto : github.com/gotd/td/bin.BareDecoder *PageBlockPhoto : github.com/gotd/td/bin.BareEncoder *PageBlockPhoto : github.com/gotd/td/bin.Decoder *PageBlockPhoto : github.com/gotd/td/bin.Encoder *PageBlockPhoto : github.com/gotd/td/bin.Object *PageBlockPhoto : github.com/gotd/td/tdp.Object *PageBlockPhoto : fmt.Stringer func PageBlockPhotoArray.First() (v PageBlockPhoto, ok bool) func PageBlockPhotoArray.Last() (v PageBlockPhoto, ok bool) func (*PageBlockPhotoArray).Pop() (v PageBlockPhoto, ok bool) func (*PageBlockPhotoArray).PopFirst() (v PageBlockPhoto, ok bool)
PageBlockPhotoArray is adapter for slice of PageBlockPhoto. 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 PageBlockPhoto. Sort sorts slice of PageBlockPhoto. SortStable sorts slice of PageBlockPhoto. func PageBlockClassArray.AsPageBlockPhoto() (to PageBlockPhotoArray) func PageBlockPhotoArray.Retain(keep func(x PageBlockPhoto) bool) PageBlockPhotoArray func PageBlockPhotoArray.Sort(less func(a, b PageBlockPhoto) bool) PageBlockPhotoArray func PageBlockPhotoArray.SortStable(less func(a, b PageBlockPhoto) bool) PageBlockPhotoArray
PageBlockPreformatted represents TL type `pageBlockPreformatted#c070d93e`. Preformatted (<pre> text) See https://core.telegram.org/constructor/pageBlockPreformatted for reference. Programming language of preformatted text Text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockPreformatted from given interface. GetLanguage returns value of Language field. GetText returns value of Text 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. (*PageBlockPreformatted) Zero() bool *PageBlockPreformatted : PageBlockClass *PageBlockPreformatted : github.com/gotd/td/bin.BareDecoder *PageBlockPreformatted : github.com/gotd/td/bin.BareEncoder *PageBlockPreformatted : github.com/gotd/td/bin.Decoder *PageBlockPreformatted : github.com/gotd/td/bin.Encoder *PageBlockPreformatted : github.com/gotd/td/bin.Object *PageBlockPreformatted : github.com/gotd/td/tdp.Object *PageBlockPreformatted : fmt.Stringer func PageBlockPreformattedArray.First() (v PageBlockPreformatted, ok bool) func PageBlockPreformattedArray.Last() (v PageBlockPreformatted, ok bool) func (*PageBlockPreformattedArray).Pop() (v PageBlockPreformatted, ok bool) func (*PageBlockPreformattedArray).PopFirst() (v PageBlockPreformatted, ok bool)
PageBlockPreformattedArray is adapter for slice of PageBlockPreformatted. 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 PageBlockPreformatted. Sort sorts slice of PageBlockPreformatted. SortStable sorts slice of PageBlockPreformatted. func PageBlockClassArray.AsPageBlockPreformatted() (to PageBlockPreformattedArray) func PageBlockPreformattedArray.Retain(keep func(x PageBlockPreformatted) bool) PageBlockPreformattedArray func PageBlockPreformattedArray.Sort(less func(a, b PageBlockPreformatted) bool) PageBlockPreformattedArray func PageBlockPreformattedArray.SortStable(less func(a, b PageBlockPreformatted) bool) PageBlockPreformattedArray
PageBlockPullquote represents TL type `pageBlockPullquote#4f4456d3`. Pullquote See https://core.telegram.org/constructor/pageBlockPullquote for reference. Caption Quote contents Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockPullquote from given interface. GetCaption returns value of Caption field. GetText returns value of Text 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. (*PageBlockPullquote) Zero() bool *PageBlockPullquote : PageBlockClass *PageBlockPullquote : github.com/gotd/td/bin.BareDecoder *PageBlockPullquote : github.com/gotd/td/bin.BareEncoder *PageBlockPullquote : github.com/gotd/td/bin.Decoder *PageBlockPullquote : github.com/gotd/td/bin.Encoder *PageBlockPullquote : github.com/gotd/td/bin.Object *PageBlockPullquote : github.com/gotd/td/tdp.Object *PageBlockPullquote : fmt.Stringer func PageBlockPullquoteArray.First() (v PageBlockPullquote, ok bool) func PageBlockPullquoteArray.Last() (v PageBlockPullquote, ok bool) func (*PageBlockPullquoteArray).Pop() (v PageBlockPullquote, ok bool) func (*PageBlockPullquoteArray).PopFirst() (v PageBlockPullquote, ok bool)
PageBlockPullquoteArray is adapter for slice of PageBlockPullquote. 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 PageBlockPullquote. Sort sorts slice of PageBlockPullquote. SortStable sorts slice of PageBlockPullquote. func PageBlockClassArray.AsPageBlockPullquote() (to PageBlockPullquoteArray) func PageBlockPullquoteArray.Retain(keep func(x PageBlockPullquote) bool) PageBlockPullquoteArray func PageBlockPullquoteArray.Sort(less func(a, b PageBlockPullquote) bool) PageBlockPullquoteArray func PageBlockPullquoteArray.SortStable(less func(a, b PageBlockPullquote) bool) PageBlockPullquoteArray
PageBlockRelatedArticles represents TL type `pageBlockRelatedArticles#16115a96`. Related articles See https://core.telegram.org/constructor/pageBlockRelatedArticles for reference. Related articles Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockRelatedArticles from given interface. GetArticles returns value of Articles field. GetTitle returns value of Title 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. (*PageBlockRelatedArticles) Zero() bool *PageBlockRelatedArticles : PageBlockClass *PageBlockRelatedArticles : github.com/gotd/td/bin.BareDecoder *PageBlockRelatedArticles : github.com/gotd/td/bin.BareEncoder *PageBlockRelatedArticles : github.com/gotd/td/bin.Decoder *PageBlockRelatedArticles : github.com/gotd/td/bin.Encoder *PageBlockRelatedArticles : github.com/gotd/td/bin.Object *PageBlockRelatedArticles : github.com/gotd/td/tdp.Object *PageBlockRelatedArticles : fmt.Stringer func PageBlockRelatedArticlesArray.First() (v PageBlockRelatedArticles, ok bool) func PageBlockRelatedArticlesArray.Last() (v PageBlockRelatedArticles, ok bool) func (*PageBlockRelatedArticlesArray).Pop() (v PageBlockRelatedArticles, ok bool) func (*PageBlockRelatedArticlesArray).PopFirst() (v PageBlockRelatedArticles, ok bool)
PageBlockRelatedArticlesArray is adapter for slice of PageBlockRelatedArticles. 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 PageBlockRelatedArticles. Sort sorts slice of PageBlockRelatedArticles. SortStable sorts slice of PageBlockRelatedArticles. func PageBlockClassArray.AsPageBlockRelatedArticles() (to PageBlockRelatedArticlesArray) func PageBlockRelatedArticlesArray.Retain(keep func(x PageBlockRelatedArticles) bool) PageBlockRelatedArticlesArray func PageBlockRelatedArticlesArray.Sort(less func(a, b PageBlockRelatedArticles) bool) PageBlockRelatedArticlesArray func PageBlockRelatedArticlesArray.SortStable(less func(a, b PageBlockRelatedArticles) bool) PageBlockRelatedArticlesArray
PageBlockSlideshow represents TL type `pageBlockSlideshow#31f9590`. Slideshow See https://core.telegram.org/constructor/pageBlockSlideshow for reference. Caption Media elements Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockSlideshow from given interface. GetCaption returns value of Caption field. GetItems returns value of Items field. MapItems returns field Items wrapped in PageBlockClassArray 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. (*PageBlockSlideshow) Zero() bool *PageBlockSlideshow : PageBlockClass *PageBlockSlideshow : github.com/gotd/td/bin.BareDecoder *PageBlockSlideshow : github.com/gotd/td/bin.BareEncoder *PageBlockSlideshow : github.com/gotd/td/bin.Decoder *PageBlockSlideshow : github.com/gotd/td/bin.Encoder *PageBlockSlideshow : github.com/gotd/td/bin.Object *PageBlockSlideshow : github.com/gotd/td/tdp.Object *PageBlockSlideshow : fmt.Stringer func PageBlockSlideshowArray.First() (v PageBlockSlideshow, ok bool) func PageBlockSlideshowArray.Last() (v PageBlockSlideshow, ok bool) func (*PageBlockSlideshowArray).Pop() (v PageBlockSlideshow, ok bool) func (*PageBlockSlideshowArray).PopFirst() (v PageBlockSlideshow, ok bool)
PageBlockSlideshowArray is adapter for slice of PageBlockSlideshow. 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 PageBlockSlideshow. Sort sorts slice of PageBlockSlideshow. SortStable sorts slice of PageBlockSlideshow. func PageBlockClassArray.AsPageBlockSlideshow() (to PageBlockSlideshowArray) func PageBlockSlideshowArray.Retain(keep func(x PageBlockSlideshow) bool) PageBlockSlideshowArray func PageBlockSlideshowArray.Sort(less func(a, b PageBlockSlideshow) bool) PageBlockSlideshowArray func PageBlockSlideshowArray.SortStable(less func(a, b PageBlockSlideshow) bool) PageBlockSlideshowArray
PageBlockSubheader represents TL type `pageBlockSubheader#f12bb6e1`. Subheader See https://core.telegram.org/constructor/pageBlockSubheader for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockSubheader from given interface. GetText returns value of Text 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. (*PageBlockSubheader) Zero() bool *PageBlockSubheader : PageBlockClass *PageBlockSubheader : github.com/gotd/td/bin.BareDecoder *PageBlockSubheader : github.com/gotd/td/bin.BareEncoder *PageBlockSubheader : github.com/gotd/td/bin.Decoder *PageBlockSubheader : github.com/gotd/td/bin.Encoder *PageBlockSubheader : github.com/gotd/td/bin.Object *PageBlockSubheader : github.com/gotd/td/tdp.Object *PageBlockSubheader : fmt.Stringer func PageBlockSubheaderArray.First() (v PageBlockSubheader, ok bool) func PageBlockSubheaderArray.Last() (v PageBlockSubheader, ok bool) func (*PageBlockSubheaderArray).Pop() (v PageBlockSubheader, ok bool) func (*PageBlockSubheaderArray).PopFirst() (v PageBlockSubheader, ok bool)
PageBlockSubheaderArray is adapter for slice of PageBlockSubheader. 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 PageBlockSubheader. Sort sorts slice of PageBlockSubheader. SortStable sorts slice of PageBlockSubheader. func PageBlockClassArray.AsPageBlockSubheader() (to PageBlockSubheaderArray) func PageBlockSubheaderArray.Retain(keep func(x PageBlockSubheader) bool) PageBlockSubheaderArray func PageBlockSubheaderArray.Sort(less func(a, b PageBlockSubheader) bool) PageBlockSubheaderArray func PageBlockSubheaderArray.SortStable(less func(a, b PageBlockSubheader) bool) PageBlockSubheaderArray
PageBlockSubtitle represents TL type `pageBlockSubtitle#8ffa9a1f`. Subtitle See https://core.telegram.org/constructor/pageBlockSubtitle for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockSubtitle from given interface. GetText returns value of Text 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. (*PageBlockSubtitle) Zero() bool *PageBlockSubtitle : PageBlockClass *PageBlockSubtitle : github.com/gotd/td/bin.BareDecoder *PageBlockSubtitle : github.com/gotd/td/bin.BareEncoder *PageBlockSubtitle : github.com/gotd/td/bin.Decoder *PageBlockSubtitle : github.com/gotd/td/bin.Encoder *PageBlockSubtitle : github.com/gotd/td/bin.Object *PageBlockSubtitle : github.com/gotd/td/tdp.Object *PageBlockSubtitle : fmt.Stringer func PageBlockSubtitleArray.First() (v PageBlockSubtitle, ok bool) func PageBlockSubtitleArray.Last() (v PageBlockSubtitle, ok bool) func (*PageBlockSubtitleArray).Pop() (v PageBlockSubtitle, ok bool) func (*PageBlockSubtitleArray).PopFirst() (v PageBlockSubtitle, ok bool)
PageBlockSubtitleArray is adapter for slice of PageBlockSubtitle. 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 PageBlockSubtitle. Sort sorts slice of PageBlockSubtitle. SortStable sorts slice of PageBlockSubtitle. func PageBlockClassArray.AsPageBlockSubtitle() (to PageBlockSubtitleArray) func PageBlockSubtitleArray.Retain(keep func(x PageBlockSubtitle) bool) PageBlockSubtitleArray func PageBlockSubtitleArray.Sort(less func(a, b PageBlockSubtitle) bool) PageBlockSubtitleArray func PageBlockSubtitleArray.SortStable(less func(a, b PageBlockSubtitle) bool) PageBlockSubtitleArray
PageBlockTable represents TL type `pageBlockTable#bf4dea82`. Table See https://core.telegram.org/constructor/pageBlockTable for reference. Does the table have a visible border? Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Table rows Is the table striped? Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockTable from given interface. GetBordered returns value of Bordered conditional field. GetRows returns value of Rows field. GetStriped returns value of Striped conditional field. GetTitle returns value of Title field. SetBordered sets value of Bordered conditional field. SetFlags sets flags for non-zero fields. SetStriped sets value of Striped 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. (*PageBlockTable) Zero() bool *PageBlockTable : PageBlockClass *PageBlockTable : github.com/gotd/td/bin.BareDecoder *PageBlockTable : github.com/gotd/td/bin.BareEncoder *PageBlockTable : github.com/gotd/td/bin.Decoder *PageBlockTable : github.com/gotd/td/bin.Encoder *PageBlockTable : github.com/gotd/td/bin.Object *PageBlockTable : github.com/gotd/td/tdp.Object *PageBlockTable : fmt.Stringer func PageBlockTableArray.First() (v PageBlockTable, ok bool) func PageBlockTableArray.Last() (v PageBlockTable, ok bool) func (*PageBlockTableArray).Pop() (v PageBlockTable, ok bool) func (*PageBlockTableArray).PopFirst() (v PageBlockTable, ok bool)
PageBlockTableArray is adapter for slice of PageBlockTable. 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 PageBlockTable. Sort sorts slice of PageBlockTable. SortStable sorts slice of PageBlockTable. func PageBlockClassArray.AsPageBlockTable() (to PageBlockTableArray) func PageBlockTableArray.Retain(keep func(x PageBlockTable) bool) PageBlockTableArray func PageBlockTableArray.Sort(less func(a, b PageBlockTable) bool) PageBlockTableArray func PageBlockTableArray.SortStable(less func(a, b PageBlockTable) bool) PageBlockTableArray
PageBlockTitle represents TL type `pageBlockTitle#70abc3fd`. Title See https://core.telegram.org/constructor/pageBlockTitle for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockTitle from given interface. GetText returns value of Text 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. (*PageBlockTitle) Zero() bool *PageBlockTitle : PageBlockClass *PageBlockTitle : github.com/gotd/td/bin.BareDecoder *PageBlockTitle : github.com/gotd/td/bin.BareEncoder *PageBlockTitle : github.com/gotd/td/bin.Decoder *PageBlockTitle : github.com/gotd/td/bin.Encoder *PageBlockTitle : github.com/gotd/td/bin.Object *PageBlockTitle : github.com/gotd/td/tdp.Object *PageBlockTitle : fmt.Stringer func PageBlockTitleArray.First() (v PageBlockTitle, ok bool) func PageBlockTitleArray.Last() (v PageBlockTitle, ok bool) func (*PageBlockTitleArray).Pop() (v PageBlockTitle, ok bool) func (*PageBlockTitleArray).PopFirst() (v PageBlockTitle, ok bool)
PageBlockTitleArray is adapter for slice of PageBlockTitle. 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 PageBlockTitle. Sort sorts slice of PageBlockTitle. SortStable sorts slice of PageBlockTitle. func PageBlockClassArray.AsPageBlockTitle() (to PageBlockTitleArray) func PageBlockTitleArray.Retain(keep func(x PageBlockTitle) bool) PageBlockTitleArray func PageBlockTitleArray.Sort(less func(a, b PageBlockTitle) bool) PageBlockTitleArray func PageBlockTitleArray.SortStable(less func(a, b PageBlockTitle) bool) PageBlockTitleArray
PageBlockUnsupported represents TL type `pageBlockUnsupported#13567e8a`. Unsupported IV element See https://core.telegram.org/constructor/pageBlockUnsupported 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. (*PageBlockUnsupported) Zero() bool *PageBlockUnsupported : PageBlockClass *PageBlockUnsupported : github.com/gotd/td/bin.BareDecoder *PageBlockUnsupported : github.com/gotd/td/bin.BareEncoder *PageBlockUnsupported : github.com/gotd/td/bin.Decoder *PageBlockUnsupported : github.com/gotd/td/bin.Encoder *PageBlockUnsupported : github.com/gotd/td/bin.Object *PageBlockUnsupported : github.com/gotd/td/tdp.Object *PageBlockUnsupported : fmt.Stringer
PageBlockVideo represents TL type `pageBlockVideo#7c8fe7b6`. Video See https://core.telegram.org/constructor/pageBlockVideo for reference. Whether the video is set to autoplay Caption Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the video is set to loop Video ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageBlockVideo from given interface. GetAutoplay returns value of Autoplay conditional field. GetCaption returns value of Caption field. GetLoop returns value of Loop conditional field. GetVideoID returns value of VideoID field. SetAutoplay sets value of Autoplay conditional field. SetFlags sets flags for non-zero fields. SetLoop sets value of Loop 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. (*PageBlockVideo) Zero() bool *PageBlockVideo : PageBlockClass *PageBlockVideo : github.com/gotd/td/bin.BareDecoder *PageBlockVideo : github.com/gotd/td/bin.BareEncoder *PageBlockVideo : github.com/gotd/td/bin.Decoder *PageBlockVideo : github.com/gotd/td/bin.Encoder *PageBlockVideo : github.com/gotd/td/bin.Object *PageBlockVideo : github.com/gotd/td/tdp.Object *PageBlockVideo : fmt.Stringer func PageBlockVideoArray.First() (v PageBlockVideo, ok bool) func PageBlockVideoArray.Last() (v PageBlockVideo, ok bool) func (*PageBlockVideoArray).Pop() (v PageBlockVideo, ok bool) func (*PageBlockVideoArray).PopFirst() (v PageBlockVideo, ok bool)
PageBlockVideoArray is adapter for slice of PageBlockVideo. 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 PageBlockVideo. Sort sorts slice of PageBlockVideo. SortStable sorts slice of PageBlockVideo. func PageBlockClassArray.AsPageBlockVideo() (to PageBlockVideoArray) func PageBlockVideoArray.Retain(keep func(x PageBlockVideo) bool) PageBlockVideoArray func PageBlockVideoArray.Sort(less func(a, b PageBlockVideo) bool) PageBlockVideoArray func PageBlockVideoArray.SortStable(less func(a, b PageBlockVideo) bool) PageBlockVideoArray
PageCaption represents TL type `pageCaption#6f747657`. Page caption See https://core.telegram.org/constructor/pageCaption for reference. Credits Caption Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageCaption from given interface. GetCredit returns value of Credit field. GetText returns value of Text 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. (*PageCaption) Zero() bool *PageCaption : github.com/gotd/td/bin.BareDecoder *PageCaption : github.com/gotd/td/bin.BareEncoder *PageCaption : github.com/gotd/td/bin.Decoder *PageCaption : github.com/gotd/td/bin.Encoder *PageCaption : github.com/gotd/td/bin.Object *PageCaption : github.com/gotd/td/tdp.Object *PageCaption : fmt.Stringer func (*PageBlockAudio).GetCaption() (value PageCaption) func (*PageBlockCollage).GetCaption() (value PageCaption) func (*PageBlockEmbed).GetCaption() (value PageCaption) func (*PageBlockEmbedPost).GetCaption() (value PageCaption) func (*PageBlockMap).GetCaption() (value PageCaption) func (*PageBlockPhoto).GetCaption() (value PageCaption) func (*PageBlockSlideshow).GetCaption() (value PageCaption) func (*PageBlockVideo).GetCaption() (value PageCaption)
PageListItemBlocks represents TL type `pageListItemBlocks#25e073fc`. List item See https://core.telegram.org/constructor/pageListItemBlocks for reference. Blocks Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageListItemBlocks from given interface. GetBlocks returns value of Blocks field. MapBlocks returns field Blocks wrapped in PageBlockClassArray 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. (*PageListItemBlocks) Zero() bool *PageListItemBlocks : PageListItemClass *PageListItemBlocks : github.com/gotd/td/bin.BareDecoder *PageListItemBlocks : github.com/gotd/td/bin.BareEncoder *PageListItemBlocks : github.com/gotd/td/bin.Decoder *PageListItemBlocks : github.com/gotd/td/bin.Encoder *PageListItemBlocks : github.com/gotd/td/bin.Object *PageListItemBlocks : github.com/gotd/td/tdp.Object *PageListItemBlocks : fmt.Stringer func PageListItemBlocksArray.First() (v PageListItemBlocks, ok bool) func PageListItemBlocksArray.Last() (v PageListItemBlocks, ok bool) func (*PageListItemBlocksArray).Pop() (v PageListItemBlocks, ok bool) func (*PageListItemBlocksArray).PopFirst() (v PageListItemBlocks, ok bool)
PageListItemBlocksArray is adapter for slice of PageListItemBlocks. 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 PageListItemBlocks. Sort sorts slice of PageListItemBlocks. SortStable sorts slice of PageListItemBlocks. func PageListItemBlocksArray.Retain(keep func(x PageListItemBlocks) bool) PageListItemBlocksArray func PageListItemBlocksArray.Sort(less func(a, b PageListItemBlocks) bool) PageListItemBlocksArray func PageListItemBlocksArray.SortStable(less func(a, b PageListItemBlocks) bool) PageListItemBlocksArray func PageListItemClassArray.AsPageListItemBlocks() (to PageListItemBlocksArray)
PageListItem boxes the PageListItemClass providing a helper. PageListItem PageListItemClass Decode implements bin.Decoder for PageListItemBox. Encode implements bin.Encode for PageListItemBox. *PageListItemBox : github.com/gotd/td/bin.Decoder *PageListItemBox : github.com/gotd/td/bin.Encoder *PageListItemBox : github.com/gotd/td/bin.Object
PageListItemClass represents PageListItem generic type. See https://core.telegram.org/type/PageListItem for reference. Example: g, err := tg.DecodePageListItem(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PageListItemText: // pageListItemText#b92fb6cd case *tg.PageListItemBlocks: // pageListItemBlocks#25e073fc default: panic(v) } ( PageListItemClass) Decode(b *bin.Buffer) error ( PageListItemClass) DecodeBare(b *bin.Buffer) error ( PageListItemClass) Encode(b *bin.Buffer) error ( PageListItemClass) 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. *PageListItemBlocks *PageListItemText PageListItemClass : github.com/gotd/td/bin.BareDecoder PageListItemClass : github.com/gotd/td/bin.BareEncoder PageListItemClass : github.com/gotd/td/bin.Decoder PageListItemClass : github.com/gotd/td/bin.Encoder PageListItemClass : github.com/gotd/td/bin.Object PageListItemClass : fmt.Stringer func DecodePageListItem(buf *bin.Buffer) (PageListItemClass, error) func (*PageBlockList).GetItems() (value []PageListItemClass) func PageListItemClassArray.First() (v PageListItemClass, ok bool) func PageListItemClassArray.Last() (v PageListItemClass, ok bool) func (*PageListItemClassArray).Pop() (v PageListItemClass, ok bool) func (*PageListItemClassArray).PopFirst() (v PageListItemClass, ok bool)
PageListItemClassArray is adapter for slice of PageListItemClass. AsPageListItemBlocks returns copy with only PageListItemBlocks constructors. AsPageListItemText returns copy with only PageListItemText 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 PageListItemClass. Sort sorts slice of PageListItemClass. SortStable sorts slice of PageListItemClass. func (*PageBlockList).MapItems() (value PageListItemClassArray) func PageListItemClassArray.Retain(keep func(x PageListItemClass) bool) PageListItemClassArray func PageListItemClassArray.Sort(less func(a, b PageListItemClass) bool) PageListItemClassArray func PageListItemClassArray.SortStable(less func(a, b PageListItemClass) bool) PageListItemClassArray
PageListItemText represents TL type `pageListItemText#b92fb6cd`. List item See https://core.telegram.org/constructor/pageListItemText for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageListItemText from given interface. GetText returns value of Text 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. (*PageListItemText) Zero() bool *PageListItemText : PageListItemClass *PageListItemText : github.com/gotd/td/bin.BareDecoder *PageListItemText : github.com/gotd/td/bin.BareEncoder *PageListItemText : github.com/gotd/td/bin.Decoder *PageListItemText : github.com/gotd/td/bin.Encoder *PageListItemText : github.com/gotd/td/bin.Object *PageListItemText : github.com/gotd/td/tdp.Object *PageListItemText : fmt.Stringer func PageListItemTextArray.First() (v PageListItemText, ok bool) func PageListItemTextArray.Last() (v PageListItemText, ok bool) func (*PageListItemTextArray).Pop() (v PageListItemText, ok bool) func (*PageListItemTextArray).PopFirst() (v PageListItemText, ok bool)
PageListItemTextArray is adapter for slice of PageListItemText. 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 PageListItemText. Sort sorts slice of PageListItemText. SortStable sorts slice of PageListItemText. func PageListItemClassArray.AsPageListItemText() (to PageListItemTextArray) func PageListItemTextArray.Retain(keep func(x PageListItemText) bool) PageListItemTextArray func PageListItemTextArray.Sort(less func(a, b PageListItemText) bool) PageListItemTextArray func PageListItemTextArray.SortStable(less func(a, b PageListItemText) bool) PageListItemTextArray
PageListOrderedItemBlocks represents TL type `pageListOrderedItemBlocks#98dd8936`. Ordered list of IV¹ blocks Links: 1. https://instantview.telegram.org See https://core.telegram.org/constructor/pageListOrderedItemBlocks for reference. Item contents Number of element within ordered list Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageListOrderedItemBlocks from given interface. GetBlocks returns value of Blocks field. GetNum returns value of Num field. MapBlocks returns field Blocks wrapped in PageBlockClassArray 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. (*PageListOrderedItemBlocks) Zero() bool *PageListOrderedItemBlocks : PageListOrderedItemClass *PageListOrderedItemBlocks : github.com/gotd/td/bin.BareDecoder *PageListOrderedItemBlocks : github.com/gotd/td/bin.BareEncoder *PageListOrderedItemBlocks : github.com/gotd/td/bin.Decoder *PageListOrderedItemBlocks : github.com/gotd/td/bin.Encoder *PageListOrderedItemBlocks : github.com/gotd/td/bin.Object *PageListOrderedItemBlocks : github.com/gotd/td/tdp.Object *PageListOrderedItemBlocks : fmt.Stringer func PageListOrderedItemBlocksArray.First() (v PageListOrderedItemBlocks, ok bool) func PageListOrderedItemBlocksArray.Last() (v PageListOrderedItemBlocks, ok bool) func (*PageListOrderedItemBlocksArray).Pop() (v PageListOrderedItemBlocks, ok bool) func (*PageListOrderedItemBlocksArray).PopFirst() (v PageListOrderedItemBlocks, ok bool)
PageListOrderedItemBlocksArray is adapter for slice of PageListOrderedItemBlocks. 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 PageListOrderedItemBlocks. Sort sorts slice of PageListOrderedItemBlocks. SortStable sorts slice of PageListOrderedItemBlocks. func PageListOrderedItemBlocksArray.Retain(keep func(x PageListOrderedItemBlocks) bool) PageListOrderedItemBlocksArray func PageListOrderedItemBlocksArray.Sort(less func(a, b PageListOrderedItemBlocks) bool) PageListOrderedItemBlocksArray func PageListOrderedItemBlocksArray.SortStable(less func(a, b PageListOrderedItemBlocks) bool) PageListOrderedItemBlocksArray func PageListOrderedItemClassArray.AsPageListOrderedItemBlocks() (to PageListOrderedItemBlocksArray)
PageListOrderedItem boxes the PageListOrderedItemClass providing a helper. PageListOrderedItem PageListOrderedItemClass Decode implements bin.Decoder for PageListOrderedItemBox. Encode implements bin.Encode for PageListOrderedItemBox. *PageListOrderedItemBox : github.com/gotd/td/bin.Decoder *PageListOrderedItemBox : github.com/gotd/td/bin.Encoder *PageListOrderedItemBox : github.com/gotd/td/bin.Object
PageListOrderedItemClass represents PageListOrderedItem generic type. See https://core.telegram.org/type/PageListOrderedItem for reference. Example: g, err := tg.DecodePageListOrderedItem(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PageListOrderedItemText: // pageListOrderedItemText#5e068047 case *tg.PageListOrderedItemBlocks: // pageListOrderedItemBlocks#98dd8936 default: panic(v) } ( PageListOrderedItemClass) Decode(b *bin.Buffer) error ( PageListOrderedItemClass) DecodeBare(b *bin.Buffer) error ( PageListOrderedItemClass) Encode(b *bin.Buffer) error ( PageListOrderedItemClass) EncodeBare(b *bin.Buffer) error Number of element within ordered list 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. *PageListOrderedItemBlocks *PageListOrderedItemText PageListOrderedItemClass : github.com/gotd/td/bin.BareDecoder PageListOrderedItemClass : github.com/gotd/td/bin.BareEncoder PageListOrderedItemClass : github.com/gotd/td/bin.Decoder PageListOrderedItemClass : github.com/gotd/td/bin.Encoder PageListOrderedItemClass : github.com/gotd/td/bin.Object PageListOrderedItemClass : fmt.Stringer func DecodePageListOrderedItem(buf *bin.Buffer) (PageListOrderedItemClass, error) func (*PageBlockOrderedList).GetItems() (value []PageListOrderedItemClass) func PageListOrderedItemClassArray.First() (v PageListOrderedItemClass, ok bool) func PageListOrderedItemClassArray.Last() (v PageListOrderedItemClass, ok bool) func (*PageListOrderedItemClassArray).Pop() (v PageListOrderedItemClass, ok bool) func (*PageListOrderedItemClassArray).PopFirst() (v PageListOrderedItemClass, ok bool)
PageListOrderedItemClassArray is adapter for slice of PageListOrderedItemClass. AsPageListOrderedItemBlocks returns copy with only PageListOrderedItemBlocks constructors. AsPageListOrderedItemText returns copy with only PageListOrderedItemText 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 PageListOrderedItemClass. Sort sorts slice of PageListOrderedItemClass. SortStable sorts slice of PageListOrderedItemClass. func (*PageBlockOrderedList).MapItems() (value PageListOrderedItemClassArray) func PageListOrderedItemClassArray.Retain(keep func(x PageListOrderedItemClass) bool) PageListOrderedItemClassArray func PageListOrderedItemClassArray.Sort(less func(a, b PageListOrderedItemClass) bool) PageListOrderedItemClassArray func PageListOrderedItemClassArray.SortStable(less func(a, b PageListOrderedItemClass) bool) PageListOrderedItemClassArray
PageListOrderedItemText represents TL type `pageListOrderedItemText#5e068047`. Ordered list of text items See https://core.telegram.org/constructor/pageListOrderedItemText for reference. Number of element within ordered list Text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageListOrderedItemText from given interface. GetNum returns value of Num field. GetText returns value of Text 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. (*PageListOrderedItemText) Zero() bool *PageListOrderedItemText : PageListOrderedItemClass *PageListOrderedItemText : github.com/gotd/td/bin.BareDecoder *PageListOrderedItemText : github.com/gotd/td/bin.BareEncoder *PageListOrderedItemText : github.com/gotd/td/bin.Decoder *PageListOrderedItemText : github.com/gotd/td/bin.Encoder *PageListOrderedItemText : github.com/gotd/td/bin.Object *PageListOrderedItemText : github.com/gotd/td/tdp.Object *PageListOrderedItemText : fmt.Stringer func PageListOrderedItemTextArray.First() (v PageListOrderedItemText, ok bool) func PageListOrderedItemTextArray.Last() (v PageListOrderedItemText, ok bool) func (*PageListOrderedItemTextArray).Pop() (v PageListOrderedItemText, ok bool) func (*PageListOrderedItemTextArray).PopFirst() (v PageListOrderedItemText, ok bool)
PageListOrderedItemTextArray is adapter for slice of PageListOrderedItemText. 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 PageListOrderedItemText. Sort sorts slice of PageListOrderedItemText. SortStable sorts slice of PageListOrderedItemText. func PageListOrderedItemClassArray.AsPageListOrderedItemText() (to PageListOrderedItemTextArray) func PageListOrderedItemTextArray.Retain(keep func(x PageListOrderedItemText) bool) PageListOrderedItemTextArray func PageListOrderedItemTextArray.Sort(less func(a, b PageListOrderedItemText) bool) PageListOrderedItemTextArray func PageListOrderedItemTextArray.SortStable(less func(a, b PageListOrderedItemText) bool) PageListOrderedItemTextArray
PageRelatedArticle represents TL type `pageRelatedArticle#b390dc08`. Related article See https://core.telegram.org/constructor/pageRelatedArticle for reference. Author name Use SetAuthor and GetAuthor helpers. Description Use SetDescription and GetDescription helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of preview photo Use SetPhotoID and GetPhotoID helpers. Date of publication Use SetPublishedDate and GetPublishedDate helpers. Title Use SetTitle and GetTitle helpers. URL of article Webpage ID of generated IV preview Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageRelatedArticle from given interface. GetAuthor returns value of Author 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. GetPhotoID returns value of PhotoID conditional field and boolean which is true if field was set. GetPublishedDate returns value of PublishedDate 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. GetURL returns value of URL field. GetWebpageID returns value of WebpageID field. SetAuthor sets value of Author conditional field. SetDescription sets value of Description conditional field. SetFlags sets flags for non-zero fields. SetPhotoID sets value of PhotoID conditional field. SetPublishedDate sets value of PublishedDate 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. (*PageRelatedArticle) Zero() bool *PageRelatedArticle : github.com/gotd/td/bin.BareDecoder *PageRelatedArticle : github.com/gotd/td/bin.BareEncoder *PageRelatedArticle : github.com/gotd/td/bin.Decoder *PageRelatedArticle : github.com/gotd/td/bin.Encoder *PageRelatedArticle : github.com/gotd/td/bin.Object *PageRelatedArticle : github.com/gotd/td/tdp.Object *PageRelatedArticle : fmt.Stringer func (*PageBlockRelatedArticles).GetArticles() (value []PageRelatedArticle)
PageTableCell represents TL type `pageTableCell#34566b6a`. Table cell See https://core.telegram.org/constructor/pageTableCell for reference. Horizontally centered block Right-aligned block For how many columns should this cell extend Use SetColspan and GetColspan helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Is this element part of the column header For how many rows should this cell extend Use SetRowspan and GetRowspan helpers. Content Use SetText and GetText helpers. Block vertically-aligned to the bottom Vertically centered block Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageTableCell from given interface. GetAlignCenter returns value of AlignCenter conditional field. GetAlignRight returns value of AlignRight conditional field. GetColspan returns value of Colspan conditional field and boolean which is true if field was set. GetHeader returns value of Header conditional field. GetRowspan returns value of Rowspan conditional field and boolean which is true if field was set. GetText returns value of Text conditional field and boolean which is true if field was set. GetValignBottom returns value of ValignBottom conditional field. GetValignMiddle returns value of ValignMiddle conditional field. SetAlignCenter sets value of AlignCenter conditional field. SetAlignRight sets value of AlignRight conditional field. SetColspan sets value of Colspan conditional field. SetFlags sets flags for non-zero fields. SetHeader sets value of Header conditional field. SetRowspan sets value of Rowspan conditional field. SetText sets value of Text conditional field. SetValignBottom sets value of ValignBottom conditional field. SetValignMiddle sets value of ValignMiddle 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. (*PageTableCell) Zero() bool *PageTableCell : github.com/gotd/td/bin.BareDecoder *PageTableCell : github.com/gotd/td/bin.BareEncoder *PageTableCell : github.com/gotd/td/bin.Decoder *PageTableCell : github.com/gotd/td/bin.Encoder *PageTableCell : github.com/gotd/td/bin.Object *PageTableCell : github.com/gotd/td/tdp.Object *PageTableCell : fmt.Stringer func (*PageTableRow).GetCells() (value []PageTableCell)
PageTableRow represents TL type `pageTableRow#e0c0c5e5`. Table row See https://core.telegram.org/constructor/pageTableRow for reference. Table cells Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PageTableRow from given interface. GetCells returns value of Cells 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. (*PageTableRow) Zero() bool *PageTableRow : github.com/gotd/td/bin.BareDecoder *PageTableRow : github.com/gotd/td/bin.BareEncoder *PageTableRow : github.com/gotd/td/bin.Decoder *PageTableRow : github.com/gotd/td/bin.Encoder *PageTableRow : github.com/gotd/td/bin.Object *PageTableRow : github.com/gotd/td/tdp.Object *PageTableRow : fmt.Stringer func (*PageBlockTable).GetRows() (value []PageTableRow)
PasswordKdfAlgo boxes the PasswordKdfAlgoClass providing a helper. PasswordKdfAlgo PasswordKdfAlgoClass Decode implements bin.Decoder for PasswordKdfAlgoBox. Encode implements bin.Encode for PasswordKdfAlgoBox. *PasswordKdfAlgoBox : github.com/gotd/td/bin.Decoder *PasswordKdfAlgoBox : github.com/gotd/td/bin.Encoder *PasswordKdfAlgoBox : github.com/gotd/td/bin.Object
PasswordKdfAlgoClass represents PasswordKdfAlgo generic type. See https://core.telegram.org/type/PasswordKdfAlgo for reference. Example: g, err := tg.DecodePasswordKdfAlgo(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PasswordKdfAlgoUnknown: // passwordKdfAlgoUnknown#d45ab096 case *tg.PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow: // passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a default: panic(v) } ( PasswordKdfAlgoClass) Decode(b *bin.Buffer) error ( PasswordKdfAlgoClass) DecodeBare(b *bin.Buffer) error ( PasswordKdfAlgoClass) Encode(b *bin.Buffer) error ( PasswordKdfAlgoClass) 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. *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow *PasswordKdfAlgoUnknown PasswordKdfAlgoClass : github.com/gotd/td/bin.BareDecoder PasswordKdfAlgoClass : github.com/gotd/td/bin.BareEncoder PasswordKdfAlgoClass : github.com/gotd/td/bin.Decoder PasswordKdfAlgoClass : github.com/gotd/td/bin.Encoder PasswordKdfAlgoClass : github.com/gotd/td/bin.Object PasswordKdfAlgoClass : fmt.Stringer func DecodePasswordKdfAlgo(buf *bin.Buffer) (PasswordKdfAlgoClass, error) func (*AccountPassword).GetCurrentAlgo() (value PasswordKdfAlgoClass, ok bool) func (*AccountPassword).GetNewAlgo() (value PasswordKdfAlgoClass) func (*AccountPasswordInputSettings).GetNewAlgo() (value PasswordKdfAlgoClass, ok bool) func PasswordKdfAlgoClassArray.First() (v PasswordKdfAlgoClass, ok bool) func PasswordKdfAlgoClassArray.Last() (v PasswordKdfAlgoClass, ok bool) func (*PasswordKdfAlgoClassArray).Pop() (v PasswordKdfAlgoClass, ok bool) func (*PasswordKdfAlgoClassArray).PopFirst() (v PasswordKdfAlgoClass, ok bool) func (*AccountPassword).SetCurrentAlgo(value PasswordKdfAlgoClass) func (*AccountPasswordInputSettings).SetNewAlgo(value PasswordKdfAlgoClass) func github.com/gotd/td/telegram/auth.PasswordHash(password []byte, srpID int64, srpB, secureRandom []byte, alg PasswordKdfAlgoClass) (*InputCheckPasswordSRP, error)
PasswordKdfAlgoClassArray is adapter for slice of PasswordKdfAlgoClass. AsPasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow returns copy with only PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow 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 PasswordKdfAlgoClass. Sort sorts slice of PasswordKdfAlgoClass. SortStable sorts slice of PasswordKdfAlgoClass. func PasswordKdfAlgoClassArray.Retain(keep func(x PasswordKdfAlgoClass) bool) PasswordKdfAlgoClassArray func PasswordKdfAlgoClassArray.Sort(less func(a, b PasswordKdfAlgoClass) bool) PasswordKdfAlgoClassArray func PasswordKdfAlgoClassArray.SortStable(less func(a, b PasswordKdfAlgoClass) bool) PasswordKdfAlgoClassArray
PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow represents TL type `passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a`. This key derivation algorithm defines that SRP 2FA login¹ must be used Links: 1. https://core.telegram.org/api/srp See https://core.telegram.org/constructor/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow for reference. Base (see SRP 2FA login¹) Links: 1) https://core.telegram.org/api/srp 2048-bit modulus (see SRP 2FA login¹) Links: 1) https://core.telegram.org/api/srp One of two salts used by the derivation function (see SRP 2FA login¹) Links: 1) https://core.telegram.org/api/srp One of two salts used by the derivation function (see SRP 2FA login¹) 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 PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow from given interface. GetG returns value of G field. GetP returns value of P field. GetSalt1 returns value of Salt1 field. GetSalt2 returns value of Salt2 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. (*PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) Zero() bool *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgoClass *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : github.com/gotd/td/bin.BareDecoder *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : github.com/gotd/td/bin.BareEncoder *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : github.com/gotd/td/bin.Decoder *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : github.com/gotd/td/bin.Encoder *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : github.com/gotd/td/bin.Object *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : github.com/gotd/td/tdp.Object *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : fmt.Stringer func PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray.First() (v PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow, ok bool) func PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray.Last() (v PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow, ok bool) func (*PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray).Pop() (v PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow, ok bool) func (*PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray).PopFirst() (v PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow, ok bool) func github.com/gotd/td/telegram/auth.NewPasswordHash(password []byte, algo *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) (hash []byte, _ error)
PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray is adapter for slice of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow. 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 PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow. Sort sorts slice of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow. SortStable sorts slice of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow. func PasswordKdfAlgoClassArray.AsPasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow() (to PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray) func PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray.Retain(keep func(x PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) bool) PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray func PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray.Sort(less func(a, b PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) bool) PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray func PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray.SortStable(less func(a, b PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) bool) PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowArray
PasswordKdfAlgoUnknown represents TL type `passwordKdfAlgoUnknown#d45ab096`. Unknown KDF (most likely, the client is outdated and does not support the specified KDF algorithm) See https://core.telegram.org/constructor/passwordKdfAlgoUnknown 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. (*PasswordKdfAlgoUnknown) Zero() bool *PasswordKdfAlgoUnknown : PasswordKdfAlgoClass *PasswordKdfAlgoUnknown : github.com/gotd/td/bin.BareDecoder *PasswordKdfAlgoUnknown : github.com/gotd/td/bin.BareEncoder *PasswordKdfAlgoUnknown : github.com/gotd/td/bin.Decoder *PasswordKdfAlgoUnknown : github.com/gotd/td/bin.Encoder *PasswordKdfAlgoUnknown : github.com/gotd/td/bin.Object *PasswordKdfAlgoUnknown : github.com/gotd/td/tdp.Object *PasswordKdfAlgoUnknown : fmt.Stringer
PaymentCharge represents TL type `paymentCharge#ea02c27e`. Payment identifier See https://core.telegram.org/constructor/paymentCharge for reference. Telegram payment identifier Provider payment identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentCharge from given interface. GetID returns value of ID field. GetProviderChargeID returns value of ProviderChargeID 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. (*PaymentCharge) Zero() bool *PaymentCharge : github.com/gotd/td/bin.BareDecoder *PaymentCharge : github.com/gotd/td/bin.BareEncoder *PaymentCharge : github.com/gotd/td/bin.Decoder *PaymentCharge : github.com/gotd/td/bin.Encoder *PaymentCharge : github.com/gotd/td/bin.Object *PaymentCharge : github.com/gotd/td/tdp.Object *PaymentCharge : fmt.Stringer func (*MessageActionPaymentSentMe).GetCharge() (value PaymentCharge)
PaymentFormMethod represents TL type `paymentFormMethod#88f8f21b`. Represents an additional payment method See https://core.telegram.org/constructor/paymentFormMethod for reference. Payment method description URL to open in a webview to process the payment Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentFormMethod from given interface. GetTitle returns value of Title 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. (*PaymentFormMethod) Zero() bool *PaymentFormMethod : github.com/gotd/td/bin.BareDecoder *PaymentFormMethod : github.com/gotd/td/bin.BareEncoder *PaymentFormMethod : github.com/gotd/td/bin.Decoder *PaymentFormMethod : github.com/gotd/td/bin.Encoder *PaymentFormMethod : github.com/gotd/td/bin.Object *PaymentFormMethod : github.com/gotd/td/tdp.Object *PaymentFormMethod : fmt.Stringer func (*PaymentsPaymentForm).GetAdditionalMethods() (value []PaymentFormMethod, ok bool) func (*PaymentsPaymentForm).SetAdditionalMethods(value []PaymentFormMethod)
PaymentRequestedInfo represents TL type `paymentRequestedInfo#909c3f94`. Order info provided by the user See https://core.telegram.org/constructor/paymentRequestedInfo for reference. User's email address Use SetEmail and GetEmail helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields User's full name Use SetName and GetName helpers. User's phone number Use SetPhone and GetPhone helpers. User's shipping address Use SetShippingAddress and GetShippingAddress helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentRequestedInfo from given interface. GetEmail returns value of Email conditional field and boolean which is true if field was set. GetName returns value of Name conditional field and boolean which is true if field was set. GetPhone returns value of Phone conditional field and boolean which is true if field was set. GetShippingAddress returns value of ShippingAddress 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. SetName sets value of Name conditional field. SetPhone sets value of Phone conditional field. SetShippingAddress sets value of ShippingAddress 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. (*PaymentRequestedInfo) Zero() bool *PaymentRequestedInfo : github.com/gotd/td/bin.BareDecoder *PaymentRequestedInfo : github.com/gotd/td/bin.BareEncoder *PaymentRequestedInfo : github.com/gotd/td/bin.Decoder *PaymentRequestedInfo : github.com/gotd/td/bin.Encoder *PaymentRequestedInfo : github.com/gotd/td/bin.Object *PaymentRequestedInfo : github.com/gotd/td/tdp.Object *PaymentRequestedInfo : fmt.Stringer func (*MessageActionPaymentSentMe).GetInfo() (value PaymentRequestedInfo, ok bool) func (*PaymentsPaymentForm).GetSavedInfo() (value PaymentRequestedInfo, ok bool) func (*PaymentsPaymentReceipt).GetInfo() (value PaymentRequestedInfo, ok bool) func (*PaymentsSavedInfo).GetSavedInfo() (value PaymentRequestedInfo, ok bool) func (*PaymentsValidateRequestedInfoRequest).GetInfo() (value PaymentRequestedInfo) func (*UpdateBotPrecheckoutQuery).GetInfo() (value PaymentRequestedInfo, ok bool) func (*MessageActionPaymentSentMe).SetInfo(value PaymentRequestedInfo) func (*PaymentsPaymentForm).SetSavedInfo(value PaymentRequestedInfo) func (*PaymentsPaymentReceipt).SetInfo(value PaymentRequestedInfo) func (*PaymentsSavedInfo).SetSavedInfo(value PaymentRequestedInfo) func (*UpdateBotPrecheckoutQuery).SetInfo(value PaymentRequestedInfo)
PaymentsApplyGiftCodeRequest represents TL type `payments.applyGiftCode#f6e26854`. Apply a Telegram Premium giftcode »¹ Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/method/payments.applyGiftCode for reference. slug obtained from the chat folder deep link »¹ Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsApplyGiftCodeRequest 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. (*PaymentsApplyGiftCodeRequest) Zero() bool *PaymentsApplyGiftCodeRequest : github.com/gotd/td/bin.BareDecoder *PaymentsApplyGiftCodeRequest : github.com/gotd/td/bin.BareEncoder *PaymentsApplyGiftCodeRequest : github.com/gotd/td/bin.Decoder *PaymentsApplyGiftCodeRequest : github.com/gotd/td/bin.Encoder *PaymentsApplyGiftCodeRequest : github.com/gotd/td/bin.Object *PaymentsApplyGiftCodeRequest : github.com/gotd/td/tdp.Object *PaymentsApplyGiftCodeRequest : fmt.Stringer
PaymentsAssignAppStoreTransactionRequest represents TL type `payments.assignAppStoreTransaction#80ed747d`. Informs server about a purchase made through the App Store: for official applications only. See https://core.telegram.org/method/payments.assignAppStoreTransaction for reference. Payment purpose Receipt Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsAssignAppStoreTransactionRequest from given interface. GetPurpose returns value of Purpose field. GetReceipt returns value of Receipt 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. (*PaymentsAssignAppStoreTransactionRequest) Zero() bool *PaymentsAssignAppStoreTransactionRequest : github.com/gotd/td/bin.BareDecoder *PaymentsAssignAppStoreTransactionRequest : github.com/gotd/td/bin.BareEncoder *PaymentsAssignAppStoreTransactionRequest : github.com/gotd/td/bin.Decoder *PaymentsAssignAppStoreTransactionRequest : github.com/gotd/td/bin.Encoder *PaymentsAssignAppStoreTransactionRequest : github.com/gotd/td/bin.Object *PaymentsAssignAppStoreTransactionRequest : github.com/gotd/td/tdp.Object *PaymentsAssignAppStoreTransactionRequest : fmt.Stringer func (*Client).PaymentsAssignAppStoreTransaction(ctx context.Context, request *PaymentsAssignAppStoreTransactionRequest) (UpdatesClass, error)
PaymentsAssignPlayMarketTransactionRequest represents TL type `payments.assignPlayMarketTransaction#dffd50d3`. Informs server about a purchase made through the Play Store: for official applications only. See https://core.telegram.org/method/payments.assignPlayMarketTransaction for reference. Payment purpose Receipt Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsAssignPlayMarketTransactionRequest from given interface. GetPurpose returns value of Purpose field. GetReceipt returns value of Receipt 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. (*PaymentsAssignPlayMarketTransactionRequest) Zero() bool *PaymentsAssignPlayMarketTransactionRequest : github.com/gotd/td/bin.BareDecoder *PaymentsAssignPlayMarketTransactionRequest : github.com/gotd/td/bin.BareEncoder *PaymentsAssignPlayMarketTransactionRequest : github.com/gotd/td/bin.Decoder *PaymentsAssignPlayMarketTransactionRequest : github.com/gotd/td/bin.Encoder *PaymentsAssignPlayMarketTransactionRequest : github.com/gotd/td/bin.Object *PaymentsAssignPlayMarketTransactionRequest : github.com/gotd/td/tdp.Object *PaymentsAssignPlayMarketTransactionRequest : fmt.Stringer func (*Client).PaymentsAssignPlayMarketTransaction(ctx context.Context, request *PaymentsAssignPlayMarketTransactionRequest) (UpdatesClass, error)
PaymentSavedCredentialsCard represents TL type `paymentSavedCredentialsCard#cdc27a1f`. Saved credit card See https://core.telegram.org/constructor/paymentSavedCredentialsCard for reference. Card ID Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentSavedCredentialsCard from given interface. GetID returns value of ID field. GetTitle returns value of Title 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. (*PaymentSavedCredentialsCard) Zero() bool *PaymentSavedCredentialsCard : github.com/gotd/td/bin.BareDecoder *PaymentSavedCredentialsCard : github.com/gotd/td/bin.BareEncoder *PaymentSavedCredentialsCard : github.com/gotd/td/bin.Decoder *PaymentSavedCredentialsCard : github.com/gotd/td/bin.Encoder *PaymentSavedCredentialsCard : github.com/gotd/td/bin.Object *PaymentSavedCredentialsCard : github.com/gotd/td/tdp.Object *PaymentSavedCredentialsCard : fmt.Stringer func (*PaymentsPaymentForm).GetSavedCredentials() (value []PaymentSavedCredentialsCard, ok bool) func (*PaymentsPaymentForm).SetSavedCredentials(value []PaymentSavedCredentialsCard)
PaymentsBankCardData represents TL type `payments.bankCardData#3e24e573`. Credit card info, provided by the card's bank(s) See https://core.telegram.org/constructor/payments.bankCardData for reference. Info URL(s) provided by the card's bank(s) Credit card title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsBankCardData from given interface. GetOpenURLs returns value of OpenURLs field. GetTitle returns value of Title 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. (*PaymentsBankCardData) Zero() bool *PaymentsBankCardData : github.com/gotd/td/bin.BareDecoder *PaymentsBankCardData : github.com/gotd/td/bin.BareEncoder *PaymentsBankCardData : github.com/gotd/td/bin.Decoder *PaymentsBankCardData : github.com/gotd/td/bin.Encoder *PaymentsBankCardData : github.com/gotd/td/bin.Object *PaymentsBankCardData : github.com/gotd/td/tdp.Object *PaymentsBankCardData : fmt.Stringer func (*Client).PaymentsGetBankCardData(ctx context.Context, number string) (*PaymentsBankCardData, error)
PaymentsCanPurchasePremiumRequest represents TL type `payments.canPurchasePremium#9fc19eb6`. Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase, official apps only. See https://core.telegram.org/method/payments.canPurchasePremium for reference. Payment purpose Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsCanPurchasePremiumRequest from given interface. 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. (*PaymentsCanPurchasePremiumRequest) Zero() bool *PaymentsCanPurchasePremiumRequest : github.com/gotd/td/bin.BareDecoder *PaymentsCanPurchasePremiumRequest : github.com/gotd/td/bin.BareEncoder *PaymentsCanPurchasePremiumRequest : github.com/gotd/td/bin.Decoder *PaymentsCanPurchasePremiumRequest : github.com/gotd/td/bin.Encoder *PaymentsCanPurchasePremiumRequest : github.com/gotd/td/bin.Object *PaymentsCanPurchasePremiumRequest : github.com/gotd/td/tdp.Object *PaymentsCanPurchasePremiumRequest : fmt.Stringer
PaymentsCheckedGiftCode represents TL type `payments.checkedGiftCode#284a1096`. Contains info about a Telegram Premium giftcode link¹. Links: 1. https://core.telegram.org/api/links#premium-giftcode-links See https://core.telegram.org/constructor/payments.checkedGiftCode for reference. Mentioned chats Creation date of the gift code. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The peer that created the gift code. Use SetFromID and GetFromID helpers. Message ID of the giveaway in the channel specified in from_id. Use SetGiveawayMsgID and GetGiveawayMsgID helpers. Duration in months of the gifted Telegram Premium¹ subscription. Links: 1) https://core.telegram.org/api/premium The destination user of the gift. Use SetToID and GetToID helpers. When was the giftcode imported, if it was imported. Use SetUsedDate and GetUsedDate helpers. Mentioned users Whether this giftcode was created by a giveaway¹. Links: 1) https://core.telegram.org/api/giveaways Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsCheckedGiftCode from given interface. GetChats returns value of Chats field. GetDate returns value of Date field. GetFromID returns value of FromID conditional field and boolean which is true if field was set. GetGiveawayMsgID returns value of GiveawayMsgID conditional field and boolean which is true if field was set. GetMonths returns value of Months field. GetToID returns value of ToID conditional field and boolean which is true if field was set. GetUsedDate returns value of UsedDate conditional field and boolean which is true if field was set. GetUsers returns value of Users field. GetViaGiveaway returns value of ViaGiveaway conditional field. MapChats returns field Chats wrapped in ChatClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetFromID sets value of FromID conditional field. SetGiveawayMsgID sets value of GiveawayMsgID conditional field. SetToID sets value of ToID conditional field. SetUsedDate sets value of UsedDate conditional field. SetViaGiveaway sets value of ViaGiveaway 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. (*PaymentsCheckedGiftCode) Zero() bool *PaymentsCheckedGiftCode : github.com/gotd/td/bin.BareDecoder *PaymentsCheckedGiftCode : github.com/gotd/td/bin.BareEncoder *PaymentsCheckedGiftCode : github.com/gotd/td/bin.Decoder *PaymentsCheckedGiftCode : github.com/gotd/td/bin.Encoder *PaymentsCheckedGiftCode : github.com/gotd/td/bin.Object *PaymentsCheckedGiftCode : github.com/gotd/td/tdp.Object *PaymentsCheckedGiftCode : fmt.Stringer func (*Client).PaymentsCheckGiftCode(ctx context.Context, slug string) (*PaymentsCheckedGiftCode, error)
PaymentsCheckGiftCodeRequest represents TL type `payments.checkGiftCode#8e51b4c1`. Obtain information about a Telegram Premium giftcode »¹ Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/method/payments.checkGiftCode for reference. slug obtained from the chat folder deep link »¹ Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsCheckGiftCodeRequest 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. (*PaymentsCheckGiftCodeRequest) Zero() bool *PaymentsCheckGiftCodeRequest : github.com/gotd/td/bin.BareDecoder *PaymentsCheckGiftCodeRequest : github.com/gotd/td/bin.BareEncoder *PaymentsCheckGiftCodeRequest : github.com/gotd/td/bin.Decoder *PaymentsCheckGiftCodeRequest : github.com/gotd/td/bin.Encoder *PaymentsCheckGiftCodeRequest : github.com/gotd/td/bin.Object *PaymentsCheckGiftCodeRequest : github.com/gotd/td/tdp.Object *PaymentsCheckGiftCodeRequest : fmt.Stringer
PaymentsClearSavedInfoRequest represents TL type `payments.clearSavedInfo#d83d70c1`. Clear saved payment information See https://core.telegram.org/method/payments.clearSavedInfo for reference. Remove saved payment credentials Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Clear the last order settings saved by the user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsClearSavedInfoRequest from given interface. GetCredentials returns value of Credentials conditional field. GetInfo returns value of Info conditional field. SetCredentials sets value of Credentials conditional field. SetFlags sets flags for non-zero fields. SetInfo sets value of Info 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. (*PaymentsClearSavedInfoRequest) Zero() bool *PaymentsClearSavedInfoRequest : github.com/gotd/td/bin.BareDecoder *PaymentsClearSavedInfoRequest : github.com/gotd/td/bin.BareEncoder *PaymentsClearSavedInfoRequest : github.com/gotd/td/bin.Decoder *PaymentsClearSavedInfoRequest : github.com/gotd/td/bin.Encoder *PaymentsClearSavedInfoRequest : github.com/gotd/td/bin.Object *PaymentsClearSavedInfoRequest : github.com/gotd/td/tdp.Object *PaymentsClearSavedInfoRequest : fmt.Stringer func (*Client).PaymentsClearSavedInfo(ctx context.Context, request *PaymentsClearSavedInfoRequest) (bool, error)
PaymentsExportedInvoice represents TL type `payments.exportedInvoice#aed0cbd9`. Exported invoice deep link¹ Links: 1. https://core.telegram.org/api/links#invoice-links See https://core.telegram.org/constructor/payments.exportedInvoice for reference. The URL to open Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsExportedInvoice from given interface. 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. (*PaymentsExportedInvoice) Zero() bool *PaymentsExportedInvoice : github.com/gotd/td/bin.BareDecoder *PaymentsExportedInvoice : github.com/gotd/td/bin.BareEncoder *PaymentsExportedInvoice : github.com/gotd/td/bin.Decoder *PaymentsExportedInvoice : github.com/gotd/td/bin.Encoder *PaymentsExportedInvoice : github.com/gotd/td/bin.Object *PaymentsExportedInvoice : github.com/gotd/td/tdp.Object *PaymentsExportedInvoice : fmt.Stringer func (*Client).PaymentsExportInvoice(ctx context.Context, invoicemedia InputMediaClass) (*PaymentsExportedInvoice, error)
PaymentsExportInvoiceRequest represents TL type `payments.exportInvoice#f91b065`. Generate an invoice deep link¹ Links: 1. https://core.telegram.org/api/links#invoice-links See https://core.telegram.org/method/payments.exportInvoice for reference. Invoice Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsExportInvoiceRequest from given interface. GetInvoiceMedia returns value of InvoiceMedia 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. (*PaymentsExportInvoiceRequest) Zero() bool *PaymentsExportInvoiceRequest : github.com/gotd/td/bin.BareDecoder *PaymentsExportInvoiceRequest : github.com/gotd/td/bin.BareEncoder *PaymentsExportInvoiceRequest : github.com/gotd/td/bin.Decoder *PaymentsExportInvoiceRequest : github.com/gotd/td/bin.Encoder *PaymentsExportInvoiceRequest : github.com/gotd/td/bin.Object *PaymentsExportInvoiceRequest : github.com/gotd/td/tdp.Object *PaymentsExportInvoiceRequest : fmt.Stringer
PaymentsGetBankCardDataRequest represents TL type `payments.getBankCardData#2e79d779`. Get info about a credit card See https://core.telegram.org/method/payments.getBankCardData for reference. Credit card number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsGetBankCardDataRequest from given interface. GetNumber returns value of Number 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. (*PaymentsGetBankCardDataRequest) Zero() bool *PaymentsGetBankCardDataRequest : github.com/gotd/td/bin.BareDecoder *PaymentsGetBankCardDataRequest : github.com/gotd/td/bin.BareEncoder *PaymentsGetBankCardDataRequest : github.com/gotd/td/bin.Decoder *PaymentsGetBankCardDataRequest : github.com/gotd/td/bin.Encoder *PaymentsGetBankCardDataRequest : github.com/gotd/td/bin.Object *PaymentsGetBankCardDataRequest : github.com/gotd/td/tdp.Object *PaymentsGetBankCardDataRequest : fmt.Stringer
PaymentsGetGiveawayInfoRequest represents TL type `payments.getGiveawayInfo#f4239425`. Obtain information about a Telegram Premium giveaway »¹. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/method/payments.getGiveawayInfo for reference. Message ID Chat where the invoice was sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsGetGiveawayInfoRequest from given interface. GetMsgID returns value of MsgID 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. (*PaymentsGetGiveawayInfoRequest) Zero() bool *PaymentsGetGiveawayInfoRequest : github.com/gotd/td/bin.BareDecoder *PaymentsGetGiveawayInfoRequest : github.com/gotd/td/bin.BareEncoder *PaymentsGetGiveawayInfoRequest : github.com/gotd/td/bin.Decoder *PaymentsGetGiveawayInfoRequest : github.com/gotd/td/bin.Encoder *PaymentsGetGiveawayInfoRequest : github.com/gotd/td/bin.Object *PaymentsGetGiveawayInfoRequest : github.com/gotd/td/tdp.Object *PaymentsGetGiveawayInfoRequest : fmt.Stringer func (*Client).PaymentsGetGiveawayInfo(ctx context.Context, request *PaymentsGetGiveawayInfoRequest) (PaymentsGiveawayInfoClass, error)
PaymentsGetPaymentFormRequest represents TL type `payments.getPaymentForm#37148dbb`. Get a payment form See https://core.telegram.org/method/payments.getPaymentForm for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Invoice A JSON object with the following keys, containing color theme information (integers, RGB24) to pass to the payment provider, to apply in eventual verification pages: bg_color - Background color text_color - Text color hint_color - Hint text color link_color - Link color button_color - Button color button_text_color - Button text color Use SetThemeParams and GetThemeParams helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsGetPaymentFormRequest from given interface. GetInvoice returns value of Invoice field. GetThemeParams returns value of ThemeParams conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetThemeParams sets value of ThemeParams 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. (*PaymentsGetPaymentFormRequest) Zero() bool *PaymentsGetPaymentFormRequest : github.com/gotd/td/bin.BareDecoder *PaymentsGetPaymentFormRequest : github.com/gotd/td/bin.BareEncoder *PaymentsGetPaymentFormRequest : github.com/gotd/td/bin.Decoder *PaymentsGetPaymentFormRequest : github.com/gotd/td/bin.Encoder *PaymentsGetPaymentFormRequest : github.com/gotd/td/bin.Object *PaymentsGetPaymentFormRequest : github.com/gotd/td/tdp.Object *PaymentsGetPaymentFormRequest : fmt.Stringer func (*Client).PaymentsGetPaymentForm(ctx context.Context, request *PaymentsGetPaymentFormRequest) (*PaymentsPaymentForm, error)
PaymentsGetPaymentReceiptRequest represents TL type `payments.getPaymentReceipt#2478d1cc`. Get payment receipt See https://core.telegram.org/method/payments.getPaymentReceipt for reference. Message ID Chat where the invoice was sent Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsGetPaymentReceiptRequest from given interface. GetMsgID returns value of MsgID 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. (*PaymentsGetPaymentReceiptRequest) Zero() bool *PaymentsGetPaymentReceiptRequest : github.com/gotd/td/bin.BareDecoder *PaymentsGetPaymentReceiptRequest : github.com/gotd/td/bin.BareEncoder *PaymentsGetPaymentReceiptRequest : github.com/gotd/td/bin.Decoder *PaymentsGetPaymentReceiptRequest : github.com/gotd/td/bin.Encoder *PaymentsGetPaymentReceiptRequest : github.com/gotd/td/bin.Object *PaymentsGetPaymentReceiptRequest : github.com/gotd/td/tdp.Object *PaymentsGetPaymentReceiptRequest : fmt.Stringer func (*Client).PaymentsGetPaymentReceipt(ctx context.Context, request *PaymentsGetPaymentReceiptRequest) (*PaymentsPaymentReceipt, error)
PaymentsGetPremiumGiftCodeOptionsRequest represents TL type `payments.getPremiumGiftCodeOptions#2757ba54`. Obtain a list of Telegram Premium giveaway/gift code »¹ options. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/method/payments.getPremiumGiftCodeOptions for reference. The channel that will start the giveaway Use SetBoostPeer and GetBoostPeer 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 PaymentsGetPremiumGiftCodeOptionsRequest from given interface. GetBoostPeer returns value of BoostPeer conditional field and boolean which is true if field was set. SetBoostPeer sets value of BoostPeer 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. (*PaymentsGetPremiumGiftCodeOptionsRequest) Zero() bool *PaymentsGetPremiumGiftCodeOptionsRequest : github.com/gotd/td/bin.BareDecoder *PaymentsGetPremiumGiftCodeOptionsRequest : github.com/gotd/td/bin.BareEncoder *PaymentsGetPremiumGiftCodeOptionsRequest : github.com/gotd/td/bin.Decoder *PaymentsGetPremiumGiftCodeOptionsRequest : github.com/gotd/td/bin.Encoder *PaymentsGetPremiumGiftCodeOptionsRequest : github.com/gotd/td/bin.Object *PaymentsGetPremiumGiftCodeOptionsRequest : github.com/gotd/td/tdp.Object *PaymentsGetPremiumGiftCodeOptionsRequest : fmt.Stringer func (*Client).PaymentsGetPremiumGiftCodeOptions(ctx context.Context, request *PaymentsGetPremiumGiftCodeOptionsRequest) ([]PremiumGiftCodeOption, error)
PaymentsGetSavedInfoRequest represents TL type `payments.getSavedInfo#227d824b`. Get saved payment information See https://core.telegram.org/method/payments.getSavedInfo 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. (*PaymentsGetSavedInfoRequest) Zero() bool *PaymentsGetSavedInfoRequest : github.com/gotd/td/bin.BareDecoder *PaymentsGetSavedInfoRequest : github.com/gotd/td/bin.BareEncoder *PaymentsGetSavedInfoRequest : github.com/gotd/td/bin.Decoder *PaymentsGetSavedInfoRequest : github.com/gotd/td/bin.Encoder *PaymentsGetSavedInfoRequest : github.com/gotd/td/bin.Object *PaymentsGetSavedInfoRequest : github.com/gotd/td/tdp.Object *PaymentsGetSavedInfoRequest : fmt.Stringer
PaymentsGiveawayInfo represents TL type `payments.giveawayInfo#4367daa0`. Contains info about an ongoing giveaway¹. If neither the participating, joined_too_early_date, admin_disallowed_chat_id or disallowed_country flags are set, the user is not currently participating in the giveaway but could participate by joining all the channels specified in the messageMediaGiveaway¹.channels field. Links: 1. https://core.telegram.org/api/giveaways 2. https://core.telegram.org/constructor/messageMediaGiveaway See https://core.telegram.org/constructor/payments.giveawayInfo for reference. If set, the current user can't participate in the giveaway, because they are an administrator in one of the channels (ID specified in this flag) that created the giveaway. Use SetAdminDisallowedChatID and GetAdminDisallowedChatID helpers. If set, the current user can't participate in this giveaway, because their phone number is from the specified disallowed country (specified as a two-letter ISO 3166-1 alpha-2 country code). Use SetDisallowedCountry and GetDisallowedCountry helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The current user can't participate in the giveaway, because they were already a member of the channel when the giveaway started, and the only_new_subscribers was set when starting the giveaway. Use SetJoinedTooEarlyDate and GetJoinedTooEarlyDate helpers. The current user is participating in the giveaway. If set, the giveaway has ended and the results are being prepared. When was the giveaway started Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsGiveawayInfo from given interface. GetAdminDisallowedChatID returns value of AdminDisallowedChatID conditional field and boolean which is true if field was set. GetDisallowedCountry returns value of DisallowedCountry conditional field and boolean which is true if field was set. GetJoinedTooEarlyDate returns value of JoinedTooEarlyDate conditional field and boolean which is true if field was set. GetParticipating returns value of Participating conditional field. GetPreparingResults returns value of PreparingResults conditional field. GetStartDate returns value of StartDate field. SetAdminDisallowedChatID sets value of AdminDisallowedChatID conditional field. SetDisallowedCountry sets value of DisallowedCountry conditional field. SetFlags sets flags for non-zero fields. SetJoinedTooEarlyDate sets value of JoinedTooEarlyDate conditional field. SetParticipating sets value of Participating conditional field. SetPreparingResults sets value of PreparingResults 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. (*PaymentsGiveawayInfo) Zero() bool *PaymentsGiveawayInfo : PaymentsGiveawayInfoClass *PaymentsGiveawayInfo : github.com/gotd/td/bin.BareDecoder *PaymentsGiveawayInfo : github.com/gotd/td/bin.BareEncoder *PaymentsGiveawayInfo : github.com/gotd/td/bin.Decoder *PaymentsGiveawayInfo : github.com/gotd/td/bin.Encoder *PaymentsGiveawayInfo : github.com/gotd/td/bin.Object *PaymentsGiveawayInfo : github.com/gotd/td/tdp.Object *PaymentsGiveawayInfo : fmt.Stringer func PaymentsGiveawayInfoArray.First() (v PaymentsGiveawayInfo, ok bool) func PaymentsGiveawayInfoArray.Last() (v PaymentsGiveawayInfo, ok bool) func (*PaymentsGiveawayInfoArray).Pop() (v PaymentsGiveawayInfo, ok bool) func (*PaymentsGiveawayInfoArray).PopFirst() (v PaymentsGiveawayInfo, ok bool)
PaymentsGiveawayInfoArray is adapter for slice of PaymentsGiveawayInfo. 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 PaymentsGiveawayInfo. Sort sorts slice of PaymentsGiveawayInfo. SortStable sorts slice of PaymentsGiveawayInfo. func PaymentsGiveawayInfoArray.Retain(keep func(x PaymentsGiveawayInfo) bool) PaymentsGiveawayInfoArray func PaymentsGiveawayInfoArray.Sort(less func(a, b PaymentsGiveawayInfo) bool) PaymentsGiveawayInfoArray func PaymentsGiveawayInfoArray.SortStable(less func(a, b PaymentsGiveawayInfo) bool) PaymentsGiveawayInfoArray func PaymentsGiveawayInfoClassArray.AsPaymentsGiveawayInfo() (to PaymentsGiveawayInfoArray)
PaymentsGiveawayInfo boxes the PaymentsGiveawayInfoClass providing a helper. GiveawayInfo PaymentsGiveawayInfoClass Decode implements bin.Decoder for PaymentsGiveawayInfoBox. Encode implements bin.Encode for PaymentsGiveawayInfoBox. *PaymentsGiveawayInfoBox : github.com/gotd/td/bin.Decoder *PaymentsGiveawayInfoBox : github.com/gotd/td/bin.Encoder *PaymentsGiveawayInfoBox : github.com/gotd/td/bin.Object
PaymentsGiveawayInfoClass represents payments.GiveawayInfo generic type. See https://core.telegram.org/type/payments.GiveawayInfo for reference. Example: g, err := tg.DecodePaymentsGiveawayInfo(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PaymentsGiveawayInfo: // payments.giveawayInfo#4367daa0 case *tg.PaymentsGiveawayInfoResults: // payments.giveawayInfoResults#cd5570 default: panic(v) } ( PaymentsGiveawayInfoClass) Decode(b *bin.Buffer) error ( PaymentsGiveawayInfoClass) DecodeBare(b *bin.Buffer) error ( PaymentsGiveawayInfoClass) Encode(b *bin.Buffer) error ( PaymentsGiveawayInfoClass) EncodeBare(b *bin.Buffer) error When was the giveaway started 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. *PaymentsGiveawayInfo *PaymentsGiveawayInfoResults PaymentsGiveawayInfoClass : github.com/gotd/td/bin.BareDecoder PaymentsGiveawayInfoClass : github.com/gotd/td/bin.BareEncoder PaymentsGiveawayInfoClass : github.com/gotd/td/bin.Decoder PaymentsGiveawayInfoClass : github.com/gotd/td/bin.Encoder PaymentsGiveawayInfoClass : github.com/gotd/td/bin.Object PaymentsGiveawayInfoClass : fmt.Stringer func DecodePaymentsGiveawayInfo(buf *bin.Buffer) (PaymentsGiveawayInfoClass, error) func (*Client).PaymentsGetGiveawayInfo(ctx context.Context, request *PaymentsGetGiveawayInfoRequest) (PaymentsGiveawayInfoClass, error) func PaymentsGiveawayInfoClassArray.First() (v PaymentsGiveawayInfoClass, ok bool) func PaymentsGiveawayInfoClassArray.Last() (v PaymentsGiveawayInfoClass, ok bool) func (*PaymentsGiveawayInfoClassArray).Pop() (v PaymentsGiveawayInfoClass, ok bool) func (*PaymentsGiveawayInfoClassArray).PopFirst() (v PaymentsGiveawayInfoClass, ok bool)
PaymentsGiveawayInfoClassArray is adapter for slice of PaymentsGiveawayInfoClass. AsPaymentsGiveawayInfo returns copy with only PaymentsGiveawayInfo constructors. AsPaymentsGiveawayInfoResults returns copy with only PaymentsGiveawayInfoResults 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 PaymentsGiveawayInfoClass. Sort sorts slice of PaymentsGiveawayInfoClass. SortStable sorts slice of PaymentsGiveawayInfoClass. func PaymentsGiveawayInfoClassArray.Retain(keep func(x PaymentsGiveawayInfoClass) bool) PaymentsGiveawayInfoClassArray func PaymentsGiveawayInfoClassArray.Sort(less func(a, b PaymentsGiveawayInfoClass) bool) PaymentsGiveawayInfoClassArray func PaymentsGiveawayInfoClassArray.SortStable(less func(a, b PaymentsGiveawayInfoClass) bool) PaymentsGiveawayInfoClassArray
PaymentsGiveawayInfoResults represents TL type `payments.giveawayInfoResults#cd5570`. A giveaway¹ has ended. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/constructor/payments.giveawayInfoResults for reference. Number of winners, which activated their gift codes¹. Links: 1) https://core.telegram.org/api/links#premium-giftcode-links End date of the giveaway. May be bigger than the end date specified in parameters of the giveaway. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If we're one of the winners of this giveaway, contains the Premium gift code¹, see here »² for more info on the full giveaway flow. Links: 1) https://core.telegram.org/api/links#premium-giftcode-links 2) https://core.telegram.org/api/giveaways Use SetGiftCodeSlug and GetGiftCodeSlug helpers. Whether the giveaway was canceled and was fully refunded. Start date of the giveaway Whether we're one of the winners of this giveaway. Number of winners in the giveaway Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsGiveawayInfoResults from given interface. GetActivatedCount returns value of ActivatedCount field. GetFinishDate returns value of FinishDate field. GetGiftCodeSlug returns value of GiftCodeSlug conditional field and boolean which is true if field was set. GetRefunded returns value of Refunded conditional field. GetStartDate returns value of StartDate field. GetWinner returns value of Winner conditional field. GetWinnersCount returns value of WinnersCount field. SetFlags sets flags for non-zero fields. SetGiftCodeSlug sets value of GiftCodeSlug conditional field. SetRefunded sets value of Refunded conditional field. SetWinner sets value of Winner 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. (*PaymentsGiveawayInfoResults) Zero() bool *PaymentsGiveawayInfoResults : PaymentsGiveawayInfoClass *PaymentsGiveawayInfoResults : github.com/gotd/td/bin.BareDecoder *PaymentsGiveawayInfoResults : github.com/gotd/td/bin.BareEncoder *PaymentsGiveawayInfoResults : github.com/gotd/td/bin.Decoder *PaymentsGiveawayInfoResults : github.com/gotd/td/bin.Encoder *PaymentsGiveawayInfoResults : github.com/gotd/td/bin.Object *PaymentsGiveawayInfoResults : github.com/gotd/td/tdp.Object *PaymentsGiveawayInfoResults : fmt.Stringer func PaymentsGiveawayInfoResultsArray.First() (v PaymentsGiveawayInfoResults, ok bool) func PaymentsGiveawayInfoResultsArray.Last() (v PaymentsGiveawayInfoResults, ok bool) func (*PaymentsGiveawayInfoResultsArray).Pop() (v PaymentsGiveawayInfoResults, ok bool) func (*PaymentsGiveawayInfoResultsArray).PopFirst() (v PaymentsGiveawayInfoResults, ok bool)
PaymentsGiveawayInfoResultsArray is adapter for slice of PaymentsGiveawayInfoResults. 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 PaymentsGiveawayInfoResults. Sort sorts slice of PaymentsGiveawayInfoResults. SortStable sorts slice of PaymentsGiveawayInfoResults. func PaymentsGiveawayInfoClassArray.AsPaymentsGiveawayInfoResults() (to PaymentsGiveawayInfoResultsArray) func PaymentsGiveawayInfoResultsArray.Retain(keep func(x PaymentsGiveawayInfoResults) bool) PaymentsGiveawayInfoResultsArray func PaymentsGiveawayInfoResultsArray.Sort(less func(a, b PaymentsGiveawayInfoResults) bool) PaymentsGiveawayInfoResultsArray func PaymentsGiveawayInfoResultsArray.SortStable(less func(a, b PaymentsGiveawayInfoResults) bool) PaymentsGiveawayInfoResultsArray
PaymentsLaunchPrepaidGiveawayRequest represents TL type `payments.launchPrepaidGiveaway#5ff58f20`. Launch a prepaid giveaway »¹. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/method/payments.launchPrepaidGiveaway for reference. The prepaid giveaway ID. The peer where to launch the giveaway. Giveway parameters Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsLaunchPrepaidGiveawayRequest from given interface. GetGiveawayID returns value of GiveawayID field. GetPeer returns value of Peer 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. (*PaymentsLaunchPrepaidGiveawayRequest) Zero() bool *PaymentsLaunchPrepaidGiveawayRequest : github.com/gotd/td/bin.BareDecoder *PaymentsLaunchPrepaidGiveawayRequest : github.com/gotd/td/bin.BareEncoder *PaymentsLaunchPrepaidGiveawayRequest : github.com/gotd/td/bin.Decoder *PaymentsLaunchPrepaidGiveawayRequest : github.com/gotd/td/bin.Encoder *PaymentsLaunchPrepaidGiveawayRequest : github.com/gotd/td/bin.Object *PaymentsLaunchPrepaidGiveawayRequest : github.com/gotd/td/tdp.Object *PaymentsLaunchPrepaidGiveawayRequest : fmt.Stringer func (*Client).PaymentsLaunchPrepaidGiveaway(ctx context.Context, request *PaymentsLaunchPrepaidGiveawayRequest) (UpdatesClass, error)
PaymentsPaymentForm represents TL type `payments.paymentForm#a0058751`. Payment form See https://core.telegram.org/constructor/payments.paymentForm for reference. Additional payment methods Use SetAdditionalMethods and GetAdditionalMethods helpers. Bot ID Whether the user can choose to save credentials. Description Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Form ID Invoice Contains information about the payment provider, if available, to support it natively without the need for opening the URL.A JSON object that can contain the following fields:- apple_pay_merchant_id: Apple Pay merchant ID- google_pay_public_key: Google Pay public key- need_country: True, if the user country must be provided,- need_zip: True, if the user ZIP/postal code must be provided,- need_cardholder_name: True, if the cardholder name must be provided Use SetNativeParams and GetNativeParams helpers. Payment provider name.One of the following:- stripe Use SetNativeProvider and GetNativeProvider helpers. Indicates that the user can save payment credentials, but only after setting up a 2FA password¹ (currently the account doesn't have a 2FA password²) Links: 1) https://core.telegram.org/api/srp 2) https://core.telegram.org/api/srp Product photo Use SetPhoto and GetPhoto helpers. Payment provider ID. Contains information about saved card credentials Use SetSavedCredentials and GetSavedCredentials helpers. Saved server-side order information Use SetSavedInfo and GetSavedInfo helpers. Form title Payment form URL Users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsPaymentForm from given interface. GetAdditionalMethods returns value of AdditionalMethods conditional field and boolean which is true if field was set. GetBotID returns value of BotID field. GetCanSaveCredentials returns value of CanSaveCredentials conditional field. GetDescription returns value of Description field. GetFormID returns value of FormID field. GetInvoice returns value of Invoice field. GetNativeParams returns value of NativeParams conditional field and boolean which is true if field was set. GetNativeProvider returns value of NativeProvider conditional field and boolean which is true if field was set. GetPasswordMissing returns value of PasswordMissing conditional field. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetProviderID returns value of ProviderID field. GetSavedCredentials returns value of SavedCredentials conditional field and boolean which is true if field was set. GetSavedInfo returns value of SavedInfo conditional field and boolean which is true if field was set. GetTitle returns value of Title field. GetURL returns value of URL field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in UserClassArray helper. SetAdditionalMethods sets value of AdditionalMethods conditional field. SetCanSaveCredentials sets value of CanSaveCredentials conditional field. SetFlags sets flags for non-zero fields. SetNativeParams sets value of NativeParams conditional field. SetNativeProvider sets value of NativeProvider conditional field. SetPasswordMissing sets value of PasswordMissing conditional field. SetPhoto sets value of Photo conditional field. SetSavedCredentials sets value of SavedCredentials conditional field. SetSavedInfo sets value of SavedInfo 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. (*PaymentsPaymentForm) Zero() bool *PaymentsPaymentForm : github.com/gotd/td/bin.BareDecoder *PaymentsPaymentForm : github.com/gotd/td/bin.BareEncoder *PaymentsPaymentForm : github.com/gotd/td/bin.Decoder *PaymentsPaymentForm : github.com/gotd/td/bin.Encoder *PaymentsPaymentForm : github.com/gotd/td/bin.Object *PaymentsPaymentForm : github.com/gotd/td/tdp.Object *PaymentsPaymentForm : fmt.Stringer func (*Client).PaymentsGetPaymentForm(ctx context.Context, request *PaymentsGetPaymentFormRequest) (*PaymentsPaymentForm, error)
PaymentsPaymentReceipt represents TL type `payments.paymentReceipt#70c4fe03`. Receipt See https://core.telegram.org/constructor/payments.paymentReceipt for reference. Bot ID Payment credential name Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Date of generation Description Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Info Use SetInfo and GetInfo helpers. Invoice Photo Use SetPhoto and GetPhoto helpers. Provider ID Selected shipping option Use SetShipping and GetShipping helpers. Tipped amount Use SetTipAmount and GetTipAmount helpers. Title Total amount 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 Users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsPaymentReceipt from given interface. GetBotID returns value of BotID field. GetCredentialsTitle returns value of CredentialsTitle field. GetCurrency returns value of Currency field. GetDate returns value of Date field. GetDescription returns value of Description field. GetInfo returns value of Info conditional field and boolean which is true if field was set. GetInvoice returns value of Invoice field. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetProviderID returns value of ProviderID field. GetShipping returns value of Shipping conditional field and boolean which is true if field was set. GetTipAmount returns value of TipAmount conditional field and boolean which is true if field was set. GetTitle returns value of Title field. GetTotalAmount returns value of TotalAmount field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetInfo sets value of Info conditional field. SetPhoto sets value of Photo conditional field. SetShipping sets value of Shipping conditional field. SetTipAmount sets value of TipAmount 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. (*PaymentsPaymentReceipt) Zero() bool *PaymentsPaymentReceipt : github.com/gotd/td/bin.BareDecoder *PaymentsPaymentReceipt : github.com/gotd/td/bin.BareEncoder *PaymentsPaymentReceipt : github.com/gotd/td/bin.Decoder *PaymentsPaymentReceipt : github.com/gotd/td/bin.Encoder *PaymentsPaymentReceipt : github.com/gotd/td/bin.Object *PaymentsPaymentReceipt : github.com/gotd/td/tdp.Object *PaymentsPaymentReceipt : fmt.Stringer func (*Client).PaymentsGetPaymentReceipt(ctx context.Context, request *PaymentsGetPaymentReceiptRequest) (*PaymentsPaymentReceipt, error)
PaymentsPaymentResult represents TL type `payments.paymentResult#4e5f810d`. Payment result See https://core.telegram.org/constructor/payments.paymentResult for reference. Info about the payment Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsPaymentResult from given interface. GetUpdates returns value of Updates 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. (*PaymentsPaymentResult) Zero() bool *PaymentsPaymentResult : PaymentsPaymentResultClass *PaymentsPaymentResult : github.com/gotd/td/bin.BareDecoder *PaymentsPaymentResult : github.com/gotd/td/bin.BareEncoder *PaymentsPaymentResult : github.com/gotd/td/bin.Decoder *PaymentsPaymentResult : github.com/gotd/td/bin.Encoder *PaymentsPaymentResult : github.com/gotd/td/bin.Object *PaymentsPaymentResult : github.com/gotd/td/tdp.Object *PaymentsPaymentResult : fmt.Stringer func PaymentsPaymentResultArray.First() (v PaymentsPaymentResult, ok bool) func PaymentsPaymentResultArray.Last() (v PaymentsPaymentResult, ok bool) func (*PaymentsPaymentResultArray).Pop() (v PaymentsPaymentResult, ok bool) func (*PaymentsPaymentResultArray).PopFirst() (v PaymentsPaymentResult, ok bool)
PaymentsPaymentResultArray is adapter for slice of PaymentsPaymentResult. 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 PaymentsPaymentResult. Sort sorts slice of PaymentsPaymentResult. SortStable sorts slice of PaymentsPaymentResult. func PaymentsPaymentResultArray.Retain(keep func(x PaymentsPaymentResult) bool) PaymentsPaymentResultArray func PaymentsPaymentResultArray.Sort(less func(a, b PaymentsPaymentResult) bool) PaymentsPaymentResultArray func PaymentsPaymentResultArray.SortStable(less func(a, b PaymentsPaymentResult) bool) PaymentsPaymentResultArray func PaymentsPaymentResultClassArray.AsPaymentsPaymentResult() (to PaymentsPaymentResultArray)
PaymentsPaymentResult boxes the PaymentsPaymentResultClass providing a helper. PaymentResult PaymentsPaymentResultClass Decode implements bin.Decoder for PaymentsPaymentResultBox. Encode implements bin.Encode for PaymentsPaymentResultBox. *PaymentsPaymentResultBox : github.com/gotd/td/bin.Decoder *PaymentsPaymentResultBox : github.com/gotd/td/bin.Encoder *PaymentsPaymentResultBox : github.com/gotd/td/bin.Object
PaymentsPaymentResultClass represents payments.PaymentResult generic type. See https://core.telegram.org/type/payments.PaymentResult for reference. Example: g, err := tg.DecodePaymentsPaymentResult(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PaymentsPaymentResult: // payments.paymentResult#4e5f810d case *tg.PaymentsPaymentVerificationNeeded: // payments.paymentVerificationNeeded#d8411139 default: panic(v) } ( PaymentsPaymentResultClass) Decode(b *bin.Buffer) error ( PaymentsPaymentResultClass) DecodeBare(b *bin.Buffer) error ( PaymentsPaymentResultClass) Encode(b *bin.Buffer) error ( PaymentsPaymentResultClass) 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. *PaymentsPaymentResult *PaymentsPaymentVerificationNeeded PaymentsPaymentResultClass : github.com/gotd/td/bin.BareDecoder PaymentsPaymentResultClass : github.com/gotd/td/bin.BareEncoder PaymentsPaymentResultClass : github.com/gotd/td/bin.Decoder PaymentsPaymentResultClass : github.com/gotd/td/bin.Encoder PaymentsPaymentResultClass : github.com/gotd/td/bin.Object PaymentsPaymentResultClass : fmt.Stringer func DecodePaymentsPaymentResult(buf *bin.Buffer) (PaymentsPaymentResultClass, error) func (*Client).PaymentsSendPaymentForm(ctx context.Context, request *PaymentsSendPaymentFormRequest) (PaymentsPaymentResultClass, error) func PaymentsPaymentResultClassArray.First() (v PaymentsPaymentResultClass, ok bool) func PaymentsPaymentResultClassArray.Last() (v PaymentsPaymentResultClass, ok bool) func (*PaymentsPaymentResultClassArray).Pop() (v PaymentsPaymentResultClass, ok bool) func (*PaymentsPaymentResultClassArray).PopFirst() (v PaymentsPaymentResultClass, ok bool)
PaymentsPaymentResultClassArray is adapter for slice of PaymentsPaymentResultClass. AsPaymentsPaymentResult returns copy with only PaymentsPaymentResult constructors. AsPaymentsPaymentVerificationNeeded returns copy with only PaymentsPaymentVerificationNeeded 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 PaymentsPaymentResultClass. Sort sorts slice of PaymentsPaymentResultClass. SortStable sorts slice of PaymentsPaymentResultClass. func PaymentsPaymentResultClassArray.Retain(keep func(x PaymentsPaymentResultClass) bool) PaymentsPaymentResultClassArray func PaymentsPaymentResultClassArray.Sort(less func(a, b PaymentsPaymentResultClass) bool) PaymentsPaymentResultClassArray func PaymentsPaymentResultClassArray.SortStable(less func(a, b PaymentsPaymentResultClass) bool) PaymentsPaymentResultClassArray
PaymentsPaymentVerificationNeeded represents TL type `payments.paymentVerificationNeeded#d8411139`. Payment was not successful, additional verification is needed See https://core.telegram.org/constructor/payments.paymentVerificationNeeded for reference. The URL to open Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsPaymentVerificationNeeded from given interface. 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. (*PaymentsPaymentVerificationNeeded) Zero() bool *PaymentsPaymentVerificationNeeded : PaymentsPaymentResultClass *PaymentsPaymentVerificationNeeded : github.com/gotd/td/bin.BareDecoder *PaymentsPaymentVerificationNeeded : github.com/gotd/td/bin.BareEncoder *PaymentsPaymentVerificationNeeded : github.com/gotd/td/bin.Decoder *PaymentsPaymentVerificationNeeded : github.com/gotd/td/bin.Encoder *PaymentsPaymentVerificationNeeded : github.com/gotd/td/bin.Object *PaymentsPaymentVerificationNeeded : github.com/gotd/td/tdp.Object *PaymentsPaymentVerificationNeeded : fmt.Stringer func PaymentsPaymentVerificationNeededArray.First() (v PaymentsPaymentVerificationNeeded, ok bool) func PaymentsPaymentVerificationNeededArray.Last() (v PaymentsPaymentVerificationNeeded, ok bool) func (*PaymentsPaymentVerificationNeededArray).Pop() (v PaymentsPaymentVerificationNeeded, ok bool) func (*PaymentsPaymentVerificationNeededArray).PopFirst() (v PaymentsPaymentVerificationNeeded, ok bool)
PaymentsPaymentVerificationNeededArray is adapter for slice of PaymentsPaymentVerificationNeeded. 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 PaymentsPaymentVerificationNeeded. Sort sorts slice of PaymentsPaymentVerificationNeeded. SortStable sorts slice of PaymentsPaymentVerificationNeeded. func PaymentsPaymentResultClassArray.AsPaymentsPaymentVerificationNeeded() (to PaymentsPaymentVerificationNeededArray) func PaymentsPaymentVerificationNeededArray.Retain(keep func(x PaymentsPaymentVerificationNeeded) bool) PaymentsPaymentVerificationNeededArray func PaymentsPaymentVerificationNeededArray.Sort(less func(a, b PaymentsPaymentVerificationNeeded) bool) PaymentsPaymentVerificationNeededArray func PaymentsPaymentVerificationNeededArray.SortStable(less func(a, b PaymentsPaymentVerificationNeeded) bool) PaymentsPaymentVerificationNeededArray
PaymentsSavedInfo represents TL type `payments.savedInfo#fb8fe43c`. Saved server-side order information See https://core.telegram.org/constructor/payments.savedInfo for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the user has some saved payment credentials Saved server-side order information Use SetSavedInfo and GetSavedInfo helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsSavedInfo from given interface. GetHasSavedCredentials returns value of HasSavedCredentials conditional field. GetSavedInfo returns value of SavedInfo conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetHasSavedCredentials sets value of HasSavedCredentials conditional field. SetSavedInfo sets value of SavedInfo 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. (*PaymentsSavedInfo) Zero() bool *PaymentsSavedInfo : github.com/gotd/td/bin.BareDecoder *PaymentsSavedInfo : github.com/gotd/td/bin.BareEncoder *PaymentsSavedInfo : github.com/gotd/td/bin.Decoder *PaymentsSavedInfo : github.com/gotd/td/bin.Encoder *PaymentsSavedInfo : github.com/gotd/td/bin.Object *PaymentsSavedInfo : github.com/gotd/td/tdp.Object *PaymentsSavedInfo : fmt.Stringer func (*Client).PaymentsGetSavedInfo(ctx context.Context) (*PaymentsSavedInfo, error)
PaymentsSendPaymentFormRequest represents TL type `payments.sendPaymentForm#2d03522f`. Send compiled payment form See https://core.telegram.org/method/payments.sendPaymentForm for reference. Payment credentials Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Form ID Invoice ID of saved and validated order info¹ Links: 1) https://core.telegram.org/constructor/payments.validatedRequestedInfo Use SetRequestedInfoID and GetRequestedInfoID helpers. Chosen shipping option ID Use SetShippingOptionID and GetShippingOptionID helpers. Tip, 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 Use SetTipAmount and GetTipAmount helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsSendPaymentFormRequest from given interface. GetCredentials returns value of Credentials field. GetFormID returns value of FormID field. GetInvoice returns value of Invoice field. GetRequestedInfoID returns value of RequestedInfoID conditional field and boolean which is true if field was set. GetShippingOptionID returns value of ShippingOptionID conditional field and boolean which is true if field was set. GetTipAmount returns value of TipAmount conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetRequestedInfoID sets value of RequestedInfoID conditional field. SetShippingOptionID sets value of ShippingOptionID conditional field. SetTipAmount sets value of TipAmount 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. (*PaymentsSendPaymentFormRequest) Zero() bool *PaymentsSendPaymentFormRequest : github.com/gotd/td/bin.BareDecoder *PaymentsSendPaymentFormRequest : github.com/gotd/td/bin.BareEncoder *PaymentsSendPaymentFormRequest : github.com/gotd/td/bin.Decoder *PaymentsSendPaymentFormRequest : github.com/gotd/td/bin.Encoder *PaymentsSendPaymentFormRequest : github.com/gotd/td/bin.Object *PaymentsSendPaymentFormRequest : github.com/gotd/td/tdp.Object *PaymentsSendPaymentFormRequest : fmt.Stringer func (*Client).PaymentsSendPaymentForm(ctx context.Context, request *PaymentsSendPaymentFormRequest) (PaymentsPaymentResultClass, error)
PaymentsValidatedRequestedInfo represents TL type `payments.validatedRequestedInfo#d1451883`. See https://core.telegram.org/constructor/payments.validatedRequestedInfo for reference. Flags field of PaymentsValidatedRequestedInfo. ID field of PaymentsValidatedRequestedInfo. Use SetID and GetID helpers. ShippingOptions field of PaymentsValidatedRequestedInfo. Use SetShippingOptions and GetShippingOptions helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsValidatedRequestedInfo from given interface. GetID returns value of ID conditional field and boolean which is true if field was set. GetShippingOptions returns value of ShippingOptions conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetID sets value of ID conditional field. SetShippingOptions sets value of ShippingOptions 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. (*PaymentsValidatedRequestedInfo) Zero() bool *PaymentsValidatedRequestedInfo : github.com/gotd/td/bin.BareDecoder *PaymentsValidatedRequestedInfo : github.com/gotd/td/bin.BareEncoder *PaymentsValidatedRequestedInfo : github.com/gotd/td/bin.Decoder *PaymentsValidatedRequestedInfo : github.com/gotd/td/bin.Encoder *PaymentsValidatedRequestedInfo : github.com/gotd/td/bin.Object *PaymentsValidatedRequestedInfo : github.com/gotd/td/tdp.Object *PaymentsValidatedRequestedInfo : fmt.Stringer func (*Client).PaymentsValidateRequestedInfo(ctx context.Context, request *PaymentsValidateRequestedInfoRequest) (*PaymentsValidatedRequestedInfo, error)
PaymentsValidateRequestedInfoRequest represents TL type `payments.validateRequestedInfo#b6c8f12b`. Submit requested order information for validation See https://core.telegram.org/method/payments.validateRequestedInfo for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Requested order information Invoice Save order information to re-use it for future orders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PaymentsValidateRequestedInfoRequest from given interface. GetInfo returns value of Info field. GetInvoice returns value of Invoice field. GetSave returns value of Save conditional field. SetFlags sets flags for non-zero fields. SetSave sets value of Save 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. (*PaymentsValidateRequestedInfoRequest) Zero() bool *PaymentsValidateRequestedInfoRequest : github.com/gotd/td/bin.BareDecoder *PaymentsValidateRequestedInfoRequest : github.com/gotd/td/bin.BareEncoder *PaymentsValidateRequestedInfoRequest : github.com/gotd/td/bin.Decoder *PaymentsValidateRequestedInfoRequest : github.com/gotd/td/bin.Encoder *PaymentsValidateRequestedInfoRequest : github.com/gotd/td/bin.Object *PaymentsValidateRequestedInfoRequest : github.com/gotd/td/tdp.Object *PaymentsValidateRequestedInfoRequest : fmt.Stringer func (*Client).PaymentsValidateRequestedInfo(ctx context.Context, request *PaymentsValidateRequestedInfoRequest) (*PaymentsValidatedRequestedInfo, error)
PeerBlocked represents TL type `peerBlocked#e8fd8014`. Information about a blocked peer See https://core.telegram.org/constructor/peerBlocked for reference. When was the peer blocked Peer ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerBlocked from given interface. GetDate returns value of Date field. GetPeerID returns value of PeerID 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. (*PeerBlocked) Zero() bool *PeerBlocked : github.com/gotd/td/bin.BareDecoder *PeerBlocked : github.com/gotd/td/bin.BareEncoder *PeerBlocked : github.com/gotd/td/bin.Decoder *PeerBlocked : github.com/gotd/td/bin.Encoder *PeerBlocked : github.com/gotd/td/bin.Object *PeerBlocked : github.com/gotd/td/tdp.Object *PeerBlocked : fmt.Stringer func (*ContactsBlocked).GetBlocked() (value []PeerBlocked) func ContactsBlockedClass.GetBlocked() (value []PeerBlocked) func (*ContactsBlockedSlice).GetBlocked() (value []PeerBlocked)
PeerBlockedHandler is a PeerBlocked event handler. func UpdateDispatcher.OnPeerBlocked(handler PeerBlockedHandler)
Peer boxes the PeerClass providing a helper. The peer that left Decode implements bin.Decoder for PeerBox. Encode implements bin.Encode for PeerBox. *PeerBox : github.com/gotd/td/bin.Decoder *PeerBox : github.com/gotd/td/bin.Encoder *PeerBox : github.com/gotd/td/bin.Object
PeerChannel represents TL type `peerChannel#a2a5371e`. Channel/supergroup See https://core.telegram.org/constructor/peerChannel for reference. The supergroup it was migrated to Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerChannel from given interface. GetChannelID returns value of ChannelID 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. (*PeerChannel) Zero() bool *PeerChannel : PeerClass *PeerChannel : github.com/gotd/td/bin.BareDecoder *PeerChannel : github.com/gotd/td/bin.BareEncoder *PeerChannel : github.com/gotd/td/bin.Decoder *PeerChannel : github.com/gotd/td/bin.Encoder *PeerChannel : github.com/gotd/td/bin.Object *PeerChannel : github.com/gotd/td/tdp.Object *PeerChannel : fmt.Stringer func PeerChannelArray.First() (v PeerChannel, ok bool) func PeerChannelArray.Last() (v PeerChannel, ok bool) func (*PeerChannelArray).Pop() (v PeerChannel, ok bool) func (*PeerChannelArray).PopFirst() (v PeerChannel, ok bool)
PeerChannelArray is adapter for slice of PeerChannel. 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 PeerChannel. Sort sorts slice of PeerChannel. SortStable sorts slice of PeerChannel. func PeerChannelArray.Retain(keep func(x PeerChannel) bool) PeerChannelArray func PeerChannelArray.Sort(less func(a, b PeerChannel) bool) PeerChannelArray func PeerChannelArray.SortStable(less func(a, b PeerChannel) bool) PeerChannelArray func PeerClassArray.AsPeerChannel() (to PeerChannelArray)
PeerChat represents TL type `peerChat#36c6019a`. Group. See https://core.telegram.org/constructor/peerChat for reference. Chat identifier AsInput tries to map PeerChat to InputPeerChat. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerChat from given interface. GetChatID returns value of ChatID 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. (*PeerChat) Zero() bool *PeerChat : PeerClass *PeerChat : github.com/gotd/td/bin.BareDecoder *PeerChat : github.com/gotd/td/bin.BareEncoder *PeerChat : github.com/gotd/td/bin.Decoder *PeerChat : github.com/gotd/td/bin.Encoder *PeerChat : github.com/gotd/td/bin.Object *PeerChat : github.com/gotd/td/tdp.Object *PeerChat : fmt.Stringer func PeerChatArray.First() (v PeerChat, ok bool) func PeerChatArray.Last() (v PeerChat, ok bool) func (*PeerChatArray).Pop() (v PeerChat, ok bool) func (*PeerChatArray).PopFirst() (v PeerChat, ok bool)
PeerChatArray is adapter for slice of PeerChat. 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 PeerChat. Sort sorts slice of PeerChat. SortStable sorts slice of PeerChat. func PeerChatArray.Retain(keep func(x PeerChat) bool) PeerChatArray func PeerChatArray.Sort(less func(a, b PeerChat) bool) PeerChatArray func PeerChatArray.SortStable(less func(a, b PeerChat) bool) PeerChatArray func PeerClassArray.AsPeerChat() (to PeerChatArray)
PeerClass represents Peer generic type. See https://core.telegram.org/type/Peer for reference. Example: g, err := tg.DecodePeer(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PeerUser: // peerUser#59511722 case *tg.PeerChat: // peerChat#36c6019a case *tg.PeerChannel: // peerChannel#a2a5371e default: panic(v) } ( PeerClass) Decode(b *bin.Buffer) error ( PeerClass) DecodeBare(b *bin.Buffer) error ( PeerClass) Encode(b *bin.Buffer) error ( PeerClass) 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. *PeerChannel *PeerChat *PeerUser PeerClass : github.com/gotd/td/bin.BareDecoder PeerClass : github.com/gotd/td/bin.BareEncoder PeerClass : github.com/gotd/td/bin.Decoder PeerClass : github.com/gotd/td/bin.Encoder PeerClass : github.com/gotd/td/bin.Object PeerClass : fmt.Stringer func DecodePeer(buf *bin.Buffer) (PeerClass, error) func (*AutoSaveException).GetPeer() (value PeerClass) func (*ChannelFull).GetDefaultSendAs() (value PeerClass, ok bool) func (*ChannelFull).GetGroupcallDefaultJoinAs() (value PeerClass, ok bool) func (*ChannelParticipantBanned).GetPeer() (value PeerClass) func (*ChannelParticipantLeft).GetPeer() (value PeerClass) func (*ChatFull).GetGroupcallDefaultJoinAs() (value PeerClass, ok bool) func ChatFullClass.GetGroupcallDefaultJoinAs() (value PeerClass, ok bool) func (*ChatlistsChatlistInvite).GetPeers() (value []PeerClass) func (*ChatlistsChatlistInviteAlready).GetAlreadyPeers() (value []PeerClass) func (*ChatlistsChatlistInviteAlready).GetMissingPeers() (value []PeerClass) func (*ChatlistsChatlistUpdates).GetMissingPeers() (value []PeerClass) func (*Client).ChatlistsGetLeaveChatlistSuggestions(ctx context.Context, chatlist InputChatlistDialogFilter) ([]PeerClass, error) func (*ContactsFound).GetMyResults() (value []PeerClass) func (*ContactsFound).GetResults() (value []PeerClass) func (*ContactsResolvedPeer).GetPeer() (value PeerClass) func (*Dialog).GetPeer() (value PeerClass) func DialogClass.GetPeer() (value PeerClass) func (*DialogFolder).GetPeer() (value PeerClass) func (*DialogPeer).GetPeer() (value PeerClass) func (*ExportedChatlistInvite).GetPeers() (value []PeerClass) func (*FolderPeer).GetPeer() (value PeerClass) func (*ForumTopic).GetFromID() (value PeerClass) func (*GroupCallParticipant).GetPeer() (value PeerClass) func (*HelpPromoData).GetPeer() (value PeerClass) func (*Message).GetFromID() (value PeerClass, ok bool) func (*Message).GetPeerID() (value PeerClass) func (*MessageActionGeoProximityReached).GetFromID() (value PeerClass) func (*MessageActionGeoProximityReached).GetToID() (value PeerClass) func (*MessageActionGiftCode).GetBoostPeer() (value PeerClass, ok bool) func (*MessageActionRequestedPeer).GetPeers() (value []PeerClass) func (*MessageEmpty).GetPeerID() (value PeerClass, ok bool) func (*MessageFwdHeader).GetFromID() (value PeerClass, ok bool) func (*MessageFwdHeader).GetSavedFromPeer() (value PeerClass, ok bool) func (*MessageMediaStory).GetPeer() (value PeerClass) func (*MessagePeerReaction).GetPeerID() (value PeerClass) func (*MessagePeerVote).GetPeer() (value PeerClass) func MessagePeerVoteClass.GetPeer() (value PeerClass) func (*MessagePeerVoteInputOption).GetPeer() (value PeerClass) func (*MessagePeerVoteMultiple).GetPeer() (value PeerClass) func (*MessageReplies).GetRecentRepliers() (value []PeerClass, ok bool) func (*MessageReplyHeader).GetReplyToPeerID() (value PeerClass, ok bool) func (*MessageService).GetFromID() (value PeerClass, ok bool) func (*MessageService).GetPeerID() (value PeerClass) func (*MyBoost).GetPeer() (value PeerClass, ok bool) func NotEmptyMessage.GetFromID() (value PeerClass, ok bool) func NotEmptyMessage.GetPeerID() (value PeerClass) func (*NotifyForumTopic).GetPeer() (value PeerClass) func (*NotifyPeer).GetPeer() (value PeerClass) func (*PaymentsCheckedGiftCode).GetFromID() (value PeerClass, ok bool) func (*PeerBlocked).GetPeerID() (value PeerClass) func PeerClassArray.First() (v PeerClass, ok bool) func PeerClassArray.Last() (v PeerClass, ok bool) func (*PeerClassArray).Pop() (v PeerClass, ok bool) func (*PeerClassArray).PopFirst() (v PeerClass, ok bool) func (*PeerClassVector).GetElems() (value []PeerClass) func (*PeerLocated).GetPeer() (value PeerClass) func (*PeerStories).GetPeer() (value PeerClass) func (*PhoneJoinAsPeers).GetPeers() (value []PeerClass) func (*PollResults).GetRecentVoters() (value []PeerClass, ok bool) func (*PublicForwardStory).GetPeer() (value PeerClass) func (*SendAsPeer).GetPeer() (value PeerClass) func (*SponsoredMessage).GetFromID() (value PeerClass, ok bool) func (*StoryFwdHeader).GetFrom() (value PeerClass, ok bool) func (*StoryReaction).GetPeerID() (value PeerClass) func (*StoryReactionPublicRepost).GetPeerID() (value PeerClass) func (*StoryViewPublicRepost).GetPeerID() (value PeerClass) func (*TopPeer).GetPeer() (value PeerClass) func (*UpdateBotCallbackQuery).GetPeer() (value PeerClass) func (*UpdateBotChatBoost).GetPeer() (value PeerClass) func (*UpdateBotChatInviteRequester).GetPeer() (value PeerClass) func (*UpdateBotCommands).GetPeer() (value PeerClass) func (*UpdateBotMessageReaction).GetActor() (value PeerClass) func (*UpdateBotMessageReaction).GetPeer() (value PeerClass) func (*UpdateBotMessageReactions).GetPeer() (value PeerClass) func (*UpdateChannelUserTyping).GetFromID() (value PeerClass) func (*UpdateChatDefaultBannedRights).GetPeer() (value PeerClass) func (*UpdateChatUserTyping).GetFromID() (value PeerClass) func (*UpdateDeleteScheduledMessages).GetPeer() (value PeerClass) func (*UpdateDraftMessage).GetPeer() (value PeerClass) func (*UpdateGeoLiveViewed).GetPeer() (value PeerClass) func (*UpdateMessageExtendedMedia).GetPeer() (value PeerClass) func (*UpdateMessagePollVote).GetPeer() (value PeerClass) func (*UpdateMessageReactions).GetPeer() (value PeerClass) func (*UpdatePeerBlocked).GetPeerID() (value PeerClass) func (*UpdatePeerHistoryTTL).GetPeer() (value PeerClass) func (*UpdatePeerSettings).GetPeer() (value PeerClass) func (*UpdatePeerWallpaper).GetPeer() (value PeerClass) func (*UpdatePendingJoinRequests).GetPeer() (value PeerClass) func (*UpdatePinnedMessages).GetPeer() (value PeerClass) func (*UpdateReadHistoryInbox).GetPeer() (value PeerClass) func (*UpdateReadHistoryOutbox).GetPeer() (value PeerClass) func (*UpdateReadStories).GetPeer() (value PeerClass) func (*UpdateSentStoryReaction).GetPeer() (value PeerClass) func (*UpdateStory).GetPeer() (value PeerClass) func (*UpdateTranscribedAudio).GetPeer() (value PeerClass) func (*WebPageAttributeStory).GetPeer() (value PeerClass) func (*ChannelFull).SetDefaultSendAs(value PeerClass) func (*ChannelFull).SetGroupcallDefaultJoinAs(value PeerClass) func (*ChatFull).SetGroupcallDefaultJoinAs(value PeerClass) func (*Message).SetFromID(value PeerClass) func (*MessageActionGiftCode).SetBoostPeer(value PeerClass) func (*MessageEmpty).SetPeerID(value PeerClass) func (*MessageFwdHeader).SetFromID(value PeerClass) func (*MessageFwdHeader).SetSavedFromPeer(value PeerClass) func (*MessageReplies).SetRecentRepliers(value []PeerClass) func (*MessageReplyHeader).SetReplyToPeerID(value PeerClass) func (*MessageService).SetFromID(value PeerClass) func (*MyBoost).SetPeer(value PeerClass) func (*PaymentsCheckedGiftCode).SetFromID(value PeerClass) func (*PollResults).SetRecentVoters(value []PeerClass) func (*SponsoredMessage).SetFromID(value PeerClass) func (*StoryFwdHeader).SetFrom(value PeerClass)
PeerClassArray is adapter for slice of PeerClass. AsPeerChannel returns copy with only PeerChannel constructors. AsPeerChat returns copy with only PeerChat constructors. AsPeerUser returns copy with only PeerUser 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 PeerClass. Sort sorts slice of PeerClass. SortStable sorts slice of PeerClass. func (*ChatlistsChatlistInvite).MapPeers() (value PeerClassArray) func (*ChatlistsChatlistInviteAlready).MapAlreadyPeers() (value PeerClassArray) func (*ChatlistsChatlistInviteAlready).MapMissingPeers() (value PeerClassArray) func (*ChatlistsChatlistUpdates).MapMissingPeers() (value PeerClassArray) func (*ContactsFound).MapMyResults() (value PeerClassArray) func (*ContactsFound).MapResults() (value PeerClassArray) func (*ExportedChatlistInvite).MapPeers() (value PeerClassArray) func (*MessageActionRequestedPeer).MapPeers() (value PeerClassArray) func (*MessageReplies).MapRecentRepliers() (value PeerClassArray, ok bool) func PeerClassArray.Retain(keep func(x PeerClass) bool) PeerClassArray func PeerClassArray.Sort(less func(a, b PeerClass) bool) PeerClassArray func PeerClassArray.SortStable(less func(a, b PeerClass) bool) PeerClassArray func (*PeerClassVector).MapElems() (value PeerClassArray) func (*PhoneJoinAsPeers).MapPeers() (value PeerClassArray) func (*PollResults).MapRecentVoters() (value PeerClassArray, ok bool)
PeerClassVector is a box for Vector<Peer> Elements of Vector<Peer> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerClassVector from given interface. GetElems returns value of Elems field. MapElems returns field Elems wrapped in PeerClassArray 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. (*PeerClassVector) Zero() bool *PeerClassVector : github.com/gotd/td/bin.BareDecoder *PeerClassVector : github.com/gotd/td/bin.BareEncoder *PeerClassVector : github.com/gotd/td/bin.Decoder *PeerClassVector : github.com/gotd/td/bin.Encoder *PeerClassVector : github.com/gotd/td/bin.Object *PeerClassVector : github.com/gotd/td/tdp.Object *PeerClassVector : fmt.Stringer
PeerColor represents TL type `peerColor#b54b5acf`. Represents a color palette »¹. Links: 1. https://core.telegram.org/api/colors See https://core.telegram.org/constructor/peerColor for reference. Custom emoji ID¹ used to generate the pattern. Links: 1) https://core.telegram.org/api/custom-emoji Use SetBackgroundEmojiID and GetBackgroundEmojiID helpers. Color palette ID, see here »¹ for more info. Links: 1) 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 Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerColor from given interface. GetBackgroundEmojiID returns value of BackgroundEmojiID conditional field and boolean which is true if field was set. GetColor returns value of Color conditional field and boolean which is true if field was set. SetBackgroundEmojiID sets value of BackgroundEmojiID conditional field. SetColor sets value of Color 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. (*PeerColor) Zero() bool *PeerColor : github.com/gotd/td/bin.BareDecoder *PeerColor : github.com/gotd/td/bin.BareEncoder *PeerColor : github.com/gotd/td/bin.Decoder *PeerColor : github.com/gotd/td/bin.Encoder *PeerColor : github.com/gotd/td/bin.Object *PeerColor : github.com/gotd/td/tdp.Object *PeerColor : fmt.Stringer func (*Channel).GetColor() (value PeerColor, ok bool) func (*Channel).GetProfileColor() (value PeerColor, ok bool) func (*ChannelAdminLogEventActionChangePeerColor).GetNewValue() (value PeerColor) func (*ChannelAdminLogEventActionChangePeerColor).GetPrevValue() (value PeerColor) func (*ChannelAdminLogEventActionChangeProfilePeerColor).GetNewValue() (value PeerColor) func (*ChannelAdminLogEventActionChangeProfilePeerColor).GetPrevValue() (value PeerColor) func (*User).GetColor() (value PeerColor, ok bool) func (*User).GetProfileColor() (value PeerColor, ok bool) func (*Channel).SetColor(value PeerColor) func (*Channel).SetProfileColor(value PeerColor) func (*User).SetColor(value PeerColor) func (*User).SetProfileColor(value PeerColor)
PeerHistoryTTLHandler is a PeerHistoryTTL event handler. func UpdateDispatcher.OnPeerHistoryTTL(handler PeerHistoryTTLHandler)
PeerLocated represents TL type `peerLocated#ca461b5d`. Peer geolocated nearby See https://core.telegram.org/constructor/peerLocated for reference. Distance from the peer in meters Validity period of current data Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerLocated from given interface. GetDistance returns value of Distance field. GetExpires returns value of Expires 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. (*PeerLocated) Zero() bool *PeerLocated : PeerLocatedClass *PeerLocated : github.com/gotd/td/bin.BareDecoder *PeerLocated : github.com/gotd/td/bin.BareEncoder *PeerLocated : github.com/gotd/td/bin.Decoder *PeerLocated : github.com/gotd/td/bin.Encoder *PeerLocated : github.com/gotd/td/bin.Object *PeerLocated : github.com/gotd/td/tdp.Object *PeerLocated : fmt.Stringer func PeerLocatedArray.First() (v PeerLocated, ok bool) func PeerLocatedArray.Last() (v PeerLocated, ok bool) func (*PeerLocatedArray).Pop() (v PeerLocated, ok bool) func (*PeerLocatedArray).PopFirst() (v PeerLocated, ok bool)
PeerLocatedArray is adapter for slice of PeerLocated. 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 PeerLocated. Sort sorts slice of PeerLocated. SortStable sorts slice of PeerLocated. func PeerLocatedArray.Retain(keep func(x PeerLocated) bool) PeerLocatedArray func PeerLocatedArray.Sort(less func(a, b PeerLocated) bool) PeerLocatedArray func PeerLocatedArray.SortStable(less func(a, b PeerLocated) bool) PeerLocatedArray func PeerLocatedClassArray.AsPeerLocated() (to PeerLocatedArray)
PeerLocated boxes the PeerLocatedClass providing a helper. PeerLocated PeerLocatedClass Decode implements bin.Decoder for PeerLocatedBox. Encode implements bin.Encode for PeerLocatedBox. *PeerLocatedBox : github.com/gotd/td/bin.Decoder *PeerLocatedBox : github.com/gotd/td/bin.Encoder *PeerLocatedBox : github.com/gotd/td/bin.Object
PeerLocatedClass represents PeerLocated generic type. See https://core.telegram.org/type/PeerLocated for reference. Example: g, err := tg.DecodePeerLocated(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PeerLocated: // peerLocated#ca461b5d case *tg.PeerSelfLocated: // peerSelfLocated#f8ec284b default: panic(v) } ( PeerLocatedClass) Decode(b *bin.Buffer) error ( PeerLocatedClass) DecodeBare(b *bin.Buffer) error ( PeerLocatedClass) Encode(b *bin.Buffer) error ( PeerLocatedClass) EncodeBare(b *bin.Buffer) error Validity period of current data 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. *PeerLocated *PeerSelfLocated PeerLocatedClass : github.com/gotd/td/bin.BareDecoder PeerLocatedClass : github.com/gotd/td/bin.BareEncoder PeerLocatedClass : github.com/gotd/td/bin.Decoder PeerLocatedClass : github.com/gotd/td/bin.Encoder PeerLocatedClass : github.com/gotd/td/bin.Object PeerLocatedClass : fmt.Stringer func DecodePeerLocated(buf *bin.Buffer) (PeerLocatedClass, error) func PeerLocatedClassArray.First() (v PeerLocatedClass, ok bool) func PeerLocatedClassArray.Last() (v PeerLocatedClass, ok bool) func (*PeerLocatedClassArray).Pop() (v PeerLocatedClass, ok bool) func (*PeerLocatedClassArray).PopFirst() (v PeerLocatedClass, ok bool) func (*UpdatePeerLocated).GetPeers() (value []PeerLocatedClass)
PeerLocatedClassArray is adapter for slice of PeerLocatedClass. AsPeerLocated returns copy with only PeerLocated constructors. AsPeerSelfLocated returns copy with only PeerSelfLocated 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 PeerLocatedClass. Sort sorts slice of PeerLocatedClass. SortStable sorts slice of PeerLocatedClass. func PeerLocatedClassArray.Retain(keep func(x PeerLocatedClass) bool) PeerLocatedClassArray func PeerLocatedClassArray.Sort(less func(a, b PeerLocatedClass) bool) PeerLocatedClassArray func PeerLocatedClassArray.SortStable(less func(a, b PeerLocatedClass) bool) PeerLocatedClassArray func (*UpdatePeerLocated).MapPeers() (value PeerLocatedClassArray)
PeerLocatedHandler is a PeerLocated event handler. func UpdateDispatcher.OnPeerLocated(handler PeerLocatedHandler)
PeerNotifySettings represents TL type `peerNotifySettings#99622c0c`. Notification settings. See https://core.telegram.org/constructor/peerNotifySettings for reference. Notification sound for the official android application Use SetAndroidSound and GetAndroidSound helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Notification sound for the official iOS application Use SetIosSound and GetIosSound helpers. Mute all notifications until this date Use SetMuteUntil and GetMuteUntil helpers. Notification sound for other applications Use SetOtherSound and GetOtherSound helpers. (Ternary value) If set, indicates whether or not to display previews of messages in notifications; otherwise the default behavior should be used. Use SetShowPreviews and GetShowPreviews helpers. (Ternary value) If set, indicates whether to mute or unmute the peer; otherwise the default behavior should be used. Use SetSilent and GetSilent helpers. Sound for story notifications on the official Android application Use SetStoriesAndroidSound and GetStoriesAndroidSound helpers. Whether the sender name should be displayed in story notifications. Use SetStoriesHideSender and GetStoriesHideSender helpers. Sound for story notifications on the official iOS application Use SetStoriesIosSound and GetStoriesIosSound helpers. Whether story notifications should be disabled. Use SetStoriesMuted and GetStoriesMuted helpers. Sound for story notifications on other applications Use SetStoriesOtherSound and GetStoriesOtherSound helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerNotifySettings from given interface. GetAndroidSound returns value of AndroidSound conditional field and boolean which is true if field was set. GetIosSound returns value of IosSound conditional field and boolean which is true if field was set. GetMuteUntil returns value of MuteUntil conditional field and boolean which is true if field was set. GetOtherSound returns value of OtherSound conditional field and boolean which is true if field was set. GetShowPreviews returns value of ShowPreviews conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field and boolean which is true if field was set. GetStoriesAndroidSound returns value of StoriesAndroidSound conditional field and boolean which is true if field was set. GetStoriesHideSender returns value of StoriesHideSender conditional field and boolean which is true if field was set. GetStoriesIosSound returns value of StoriesIosSound conditional field and boolean which is true if field was set. GetStoriesMuted returns value of StoriesMuted conditional field and boolean which is true if field was set. GetStoriesOtherSound returns value of StoriesOtherSound conditional field and boolean which is true if field was set. SetAndroidSound sets value of AndroidSound conditional field. SetFlags sets flags for non-zero fields. SetIosSound sets value of IosSound conditional field. SetMuteUntil sets value of MuteUntil conditional field. SetOtherSound sets value of OtherSound conditional field. SetShowPreviews sets value of ShowPreviews conditional field. SetSilent sets value of Silent conditional field. SetStoriesAndroidSound sets value of StoriesAndroidSound conditional field. SetStoriesHideSender sets value of StoriesHideSender conditional field. SetStoriesIosSound sets value of StoriesIosSound conditional field. SetStoriesMuted sets value of StoriesMuted conditional field. SetStoriesOtherSound sets value of StoriesOtherSound 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. (*PeerNotifySettings) Zero() bool *PeerNotifySettings : github.com/gotd/td/bin.BareDecoder *PeerNotifySettings : github.com/gotd/td/bin.BareEncoder *PeerNotifySettings : github.com/gotd/td/bin.Decoder *PeerNotifySettings : github.com/gotd/td/bin.Encoder *PeerNotifySettings : github.com/gotd/td/bin.Object *PeerNotifySettings : github.com/gotd/td/tdp.Object *PeerNotifySettings : fmt.Stringer func (*ChannelFull).GetNotifySettings() (value PeerNotifySettings) func (*ChatFull).GetNotifySettings() (value PeerNotifySettings) func ChatFullClass.GetNotifySettings() (value PeerNotifySettings) func (*Client).AccountGetNotifySettings(ctx context.Context, peer InputNotifyPeerClass) (*PeerNotifySettings, error) func (*Dialog).GetNotifySettings() (value PeerNotifySettings) func (*ForumTopic).GetNotifySettings() (value PeerNotifySettings) func (*UpdateNotifySettings).GetNotifySettings() (value PeerNotifySettings) func (*UserFull).GetNotifySettings() (value PeerNotifySettings)
PeerSelfLocated represents TL type `peerSelfLocated#f8ec284b`. Current peer See https://core.telegram.org/constructor/peerSelfLocated for reference. Re-fetch PSA/MTProxy info after the specified number of seconds Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerSelfLocated from given interface. GetExpires returns value of Expires 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. (*PeerSelfLocated) Zero() bool *PeerSelfLocated : PeerLocatedClass *PeerSelfLocated : github.com/gotd/td/bin.BareDecoder *PeerSelfLocated : github.com/gotd/td/bin.BareEncoder *PeerSelfLocated : github.com/gotd/td/bin.Decoder *PeerSelfLocated : github.com/gotd/td/bin.Encoder *PeerSelfLocated : github.com/gotd/td/bin.Object *PeerSelfLocated : github.com/gotd/td/tdp.Object *PeerSelfLocated : fmt.Stringer func PeerSelfLocatedArray.First() (v PeerSelfLocated, ok bool) func PeerSelfLocatedArray.Last() (v PeerSelfLocated, ok bool) func (*PeerSelfLocatedArray).Pop() (v PeerSelfLocated, ok bool) func (*PeerSelfLocatedArray).PopFirst() (v PeerSelfLocated, ok bool)
PeerSelfLocatedArray is adapter for slice of PeerSelfLocated. 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 PeerSelfLocated. Sort sorts slice of PeerSelfLocated. SortStable sorts slice of PeerSelfLocated. func PeerLocatedClassArray.AsPeerSelfLocated() (to PeerSelfLocatedArray) func PeerSelfLocatedArray.Retain(keep func(x PeerSelfLocated) bool) PeerSelfLocatedArray func PeerSelfLocatedArray.Sort(less func(a, b PeerSelfLocated) bool) PeerSelfLocatedArray func PeerSelfLocatedArray.SortStable(less func(a, b PeerSelfLocated) bool) PeerSelfLocatedArray
PeerSettings represents TL type `peerSettings#a518110d`. List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar »¹, see here »² for more info. Links: 1. https://core.telegram.org/api/action-bar 2. https://core.telegram.org/api/action-bar See https://core.telegram.org/constructor/peerSettings for reference. Whether we can add the user as contact Whether this peer was automatically archived according to privacy settings¹ and can be unarchived Links: 1) https://core.telegram.org/constructor/globalPrivacySettings Whether we can block the user Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Distance in meters between us and this peer Use SetGeoDistance and GetGeoDistance helpers. If set, this is a recently created group chat to which new members can be invited Whether a special exception for contacts is needed Whether we can report a geogroup as irrelevant for this location Whether we can still report the user for spam This flag is set if request_chat_title and request_chat_date fields are set and the join request »¹ is related to a channel (otherwise if only the request fields are set, the join request »² is related to a chat). Links: 1) https://core.telegram.org/api/invites#join-requests 2) https://core.telegram.org/api/invites#join-requests If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the timestamp when the join request »¹ was sent. Links: 1) https://core.telegram.org/api/invites#join-requests Use SetRequestChatDate and GetRequestChatDate helpers. If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the chat/channel's title. Use SetRequestChatTitle and GetRequestChatTitle helpers. Whether we can share the user's contact Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerSettings from given interface. GetAddContact returns value of AddContact conditional field. GetAutoarchived returns value of Autoarchived conditional field. GetBlockContact returns value of BlockContact conditional field. GetGeoDistance returns value of GeoDistance conditional field and boolean which is true if field was set. GetInviteMembers returns value of InviteMembers conditional field. GetNeedContactsException returns value of NeedContactsException conditional field. GetReportGeo returns value of ReportGeo conditional field. GetReportSpam returns value of ReportSpam conditional field. GetRequestChatBroadcast returns value of RequestChatBroadcast conditional field. GetRequestChatDate returns value of RequestChatDate conditional field and boolean which is true if field was set. GetRequestChatTitle returns value of RequestChatTitle conditional field and boolean which is true if field was set. GetShareContact returns value of ShareContact conditional field. SetAddContact sets value of AddContact conditional field. SetAutoarchived sets value of Autoarchived conditional field. SetBlockContact sets value of BlockContact conditional field. SetFlags sets flags for non-zero fields. SetGeoDistance sets value of GeoDistance conditional field. SetInviteMembers sets value of InviteMembers conditional field. SetNeedContactsException sets value of NeedContactsException conditional field. SetReportGeo sets value of ReportGeo conditional field. SetReportSpam sets value of ReportSpam conditional field. SetRequestChatBroadcast sets value of RequestChatBroadcast conditional field. SetRequestChatDate sets value of RequestChatDate conditional field. SetRequestChatTitle sets value of RequestChatTitle conditional field. SetShareContact sets value of ShareContact 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. (*PeerSettings) Zero() bool *PeerSettings : github.com/gotd/td/bin.BareDecoder *PeerSettings : github.com/gotd/td/bin.BareEncoder *PeerSettings : github.com/gotd/td/bin.Decoder *PeerSettings : github.com/gotd/td/bin.Encoder *PeerSettings : github.com/gotd/td/bin.Object *PeerSettings : github.com/gotd/td/tdp.Object *PeerSettings : fmt.Stringer func (*MessagesPeerSettings).GetSettings() (value PeerSettings) func (*UpdatePeerSettings).GetSettings() (value PeerSettings) func (*UserFull).GetSettings() (value PeerSettings)
PeerSettingsHandler is a PeerSettings event handler. func UpdateDispatcher.OnPeerSettings(handler PeerSettingsHandler)
PeerStories represents TL type `peerStories#9a35e999`. Stories¹ associated to a peer Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/peerStories for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, contains the ID of the maximum read story Use SetMaxReadID and GetMaxReadID helpers. The peer Stories Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerStories from given interface. GetMaxReadID returns value of MaxReadID conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. GetStories returns value of Stories field. MapStories returns field Stories wrapped in StoryItemClassArray helper. SetFlags sets flags for non-zero fields. SetMaxReadID sets value of MaxReadID 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. (*PeerStories) Zero() bool *PeerStories : github.com/gotd/td/bin.BareDecoder *PeerStories : github.com/gotd/td/bin.BareEncoder *PeerStories : github.com/gotd/td/bin.Decoder *PeerStories : github.com/gotd/td/bin.Encoder *PeerStories : github.com/gotd/td/bin.Object *PeerStories : github.com/gotd/td/tdp.Object *PeerStories : fmt.Stringer func (*ChannelFull).GetStories() (value PeerStories, ok bool) func (*StoriesAllStories).GetPeerStories() (value []PeerStories) func (*StoriesPeerStories).GetStories() (value PeerStories) func (*UserFull).GetStories() (value PeerStories, ok bool) func (*ChannelFull).SetStories(value PeerStories) func (*UserFull).SetStories(value PeerStories)
PeerUser represents TL type `peerUser#59511722`. Chat partner See https://core.telegram.org/constructor/peerUser for reference. ID of the user that created the group Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PeerUser from given interface. 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. (*PeerUser) Zero() bool *PeerUser : PeerClass *PeerUser : github.com/gotd/td/bin.BareDecoder *PeerUser : github.com/gotd/td/bin.BareEncoder *PeerUser : github.com/gotd/td/bin.Decoder *PeerUser : github.com/gotd/td/bin.Encoder *PeerUser : github.com/gotd/td/bin.Object *PeerUser : github.com/gotd/td/tdp.Object *PeerUser : fmt.Stringer func PeerUserArray.First() (v PeerUser, ok bool) func PeerUserArray.Last() (v PeerUser, ok bool) func (*PeerUserArray).Pop() (v PeerUser, ok bool) func (*PeerUserArray).PopFirst() (v PeerUser, ok bool)
PeerUserArray is adapter for slice of PeerUser. 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 PeerUser. Sort sorts slice of PeerUser. SortStable sorts slice of PeerUser. func PeerClassArray.AsPeerUser() (to PeerUserArray) func PeerUserArray.Retain(keep func(x PeerUser) bool) PeerUserArray func PeerUserArray.Sort(less func(a, b PeerUser) bool) PeerUserArray func PeerUserArray.SortStable(less func(a, b PeerUser) bool) PeerUserArray
PeerWallpaperHandler is a PeerWallpaper event handler. func UpdateDispatcher.OnPeerWallpaper(handler PeerWallpaperHandler)
PendingJoinRequestsHandler is a PendingJoinRequests event handler. func UpdateDispatcher.OnPendingJoinRequests(handler PendingJoinRequestsHandler)
PhoneAcceptCallRequest represents TL type `phone.acceptCall#3bd2b4a0`. Accept incoming call See https://core.telegram.org/method/phone.acceptCall for reference. Parameter for E2E encryption key exchange »¹ Links: 1) https://core.telegram.org/api/end-to-end/voice-calls The call to accept Phone call settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneAcceptCallRequest from given interface. GetGB returns value of GB field. GetPeer returns value of Peer field. GetProtocol returns value of Protocol 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. (*PhoneAcceptCallRequest) Zero() bool *PhoneAcceptCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneAcceptCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneAcceptCallRequest : github.com/gotd/td/bin.Decoder *PhoneAcceptCallRequest : github.com/gotd/td/bin.Encoder *PhoneAcceptCallRequest : github.com/gotd/td/bin.Object *PhoneAcceptCallRequest : github.com/gotd/td/tdp.Object *PhoneAcceptCallRequest : fmt.Stringer func (*Client).PhoneAcceptCall(ctx context.Context, request *PhoneAcceptCallRequest) (*PhonePhoneCall, error)
PhoneCall represents TL type `phoneCall#967f7c67`. Phone call See https://core.telegram.org/constructor/phoneCall for reference. Access hash User ID of the creator of the call List of endpoints the user can connect to to exchange call data Date of creation of the call Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Parameter for key exchange¹ Links: 1) https://core.telegram.org/api/end-to-end/voice-calls Call ID Key fingerprint¹ Links: 1) https://core.telegram.org/api/end-to-end/voice-calls Whether P2P connection to the other peer is allowed User ID of the other participant in the call Call protocol info to be passed to libtgvoip When was the call actually started Whether this is a video call AsInput tries to map PhoneCall to InputPhoneCall. AsNotEmpty tries to map PhoneCall to NotEmptyPhoneCall. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneCall from given interface. GetAccessHash returns value of AccessHash field. GetAdminID returns value of AdminID field. GetConnections returns value of Connections field. GetDate returns value of Date field. GetGAOrB returns value of GAOrB field. GetID returns value of ID field. GetKeyFingerprint returns value of KeyFingerprint field. GetP2PAllowed returns value of P2PAllowed conditional field. GetParticipantID returns value of ParticipantID field. GetProtocol returns value of Protocol field. GetStartDate returns value of StartDate field. GetVideo returns value of Video conditional field. MapConnections returns field Connections wrapped in PhoneConnectionClassArray helper. SetFlags sets flags for non-zero fields. SetP2PAllowed sets value of P2PAllowed conditional field. SetVideo sets value of Video 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. (*PhoneCall) Zero() bool *PhoneCall : NotEmptyPhoneCall *PhoneCall : PhoneCallClass *PhoneCall : github.com/gotd/td/bin.BareDecoder *PhoneCall : github.com/gotd/td/bin.BareEncoder *PhoneCall : github.com/gotd/td/bin.Decoder *PhoneCall : github.com/gotd/td/bin.Encoder *PhoneCall : github.com/gotd/td/bin.Object *PhoneCall : github.com/gotd/td/tdp.Object *PhoneCall : fmt.Stringer func PhoneCallArray.First() (v PhoneCall, ok bool) func PhoneCallArray.Last() (v PhoneCall, ok bool) func (*PhoneCallArray).Pop() (v PhoneCall, ok bool) func (*PhoneCallArray).PopFirst() (v PhoneCall, ok bool) func PhoneCallArray.ToMap() map[int64]PhoneCall func PhoneCallClassArray.PhoneCallToMap() map[int64]*PhoneCall func PhoneCallArray.FillMap(to map[int64]PhoneCall) func PhoneCallClassArray.FillPhoneCallMap(to map[int64]*PhoneCall)
PhoneCallAccepted represents TL type `phoneCallAccepted#3660c311`. An accepted phone call See https://core.telegram.org/constructor/phoneCallAccepted for reference. Access hash of phone call ID of the call creator When was the call accepted Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields B parameter for secure E2E phone call key exchange¹ Links: 1) https://core.telegram.org/api/end-to-end/voice-calls ID of accepted phone call ID of the other user in the call Protocol to use for phone call Whether this is a video call AsNotEmpty tries to map PhoneCallAccepted to NotEmptyPhoneCall. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneCallAccepted from given interface. GetAccessHash returns value of AccessHash field. GetAdminID returns value of AdminID field. GetDate returns value of Date field. GetGB returns value of GB field. GetID returns value of ID field. GetParticipantID returns value of ParticipantID field. GetProtocol returns value of Protocol field. GetVideo returns value of Video conditional field. SetFlags sets flags for non-zero fields. SetVideo sets value of Video 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. (*PhoneCallAccepted) Zero() bool *PhoneCallAccepted : NotEmptyPhoneCall *PhoneCallAccepted : PhoneCallClass *PhoneCallAccepted : github.com/gotd/td/bin.BareDecoder *PhoneCallAccepted : github.com/gotd/td/bin.BareEncoder *PhoneCallAccepted : github.com/gotd/td/bin.Decoder *PhoneCallAccepted : github.com/gotd/td/bin.Encoder *PhoneCallAccepted : github.com/gotd/td/bin.Object *PhoneCallAccepted : github.com/gotd/td/tdp.Object *PhoneCallAccepted : fmt.Stringer func PhoneCallAcceptedArray.First() (v PhoneCallAccepted, ok bool) func PhoneCallAcceptedArray.Last() (v PhoneCallAccepted, ok bool) func (*PhoneCallAcceptedArray).Pop() (v PhoneCallAccepted, ok bool) func (*PhoneCallAcceptedArray).PopFirst() (v PhoneCallAccepted, ok bool) func PhoneCallAcceptedArray.ToMap() map[int64]PhoneCallAccepted func PhoneCallClassArray.PhoneCallAcceptedToMap() map[int64]*PhoneCallAccepted func PhoneCallAcceptedArray.FillMap(to map[int64]PhoneCallAccepted) func PhoneCallClassArray.FillPhoneCallAcceptedMap(to map[int64]*PhoneCallAccepted)
PhoneCallAcceptedArray is adapter for slice of PhoneCallAccepted. 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 PhoneCallAccepted. Sort sorts slice of PhoneCallAccepted. SortByDate sorts slice of PhoneCallAccepted by Date. SortByID sorts slice of PhoneCallAccepted by ID. SortStable sorts slice of PhoneCallAccepted. SortStableByDate sorts slice of PhoneCallAccepted by Date. SortStableByID sorts slice of PhoneCallAccepted by ID. ToMap collects constructors to map. func PhoneCallAcceptedArray.Retain(keep func(x PhoneCallAccepted) bool) PhoneCallAcceptedArray func PhoneCallAcceptedArray.Sort(less func(a, b PhoneCallAccepted) bool) PhoneCallAcceptedArray func PhoneCallAcceptedArray.SortByDate() PhoneCallAcceptedArray func PhoneCallAcceptedArray.SortByID() PhoneCallAcceptedArray func PhoneCallAcceptedArray.SortStable(less func(a, b PhoneCallAccepted) bool) PhoneCallAcceptedArray func PhoneCallAcceptedArray.SortStableByDate() PhoneCallAcceptedArray func PhoneCallAcceptedArray.SortStableByID() PhoneCallAcceptedArray func PhoneCallClassArray.AsPhoneCallAccepted() (to PhoneCallAcceptedArray)
PhoneCallArray is adapter for slice of PhoneCall. 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 PhoneCall. Sort sorts slice of PhoneCall. SortByDate sorts slice of PhoneCall by Date. SortByID sorts slice of PhoneCall by ID. SortStable sorts slice of PhoneCall. SortStableByDate sorts slice of PhoneCall by Date. SortStableByID sorts slice of PhoneCall by ID. ToMap collects constructors to map. func PhoneCallArray.Retain(keep func(x PhoneCall) bool) PhoneCallArray func PhoneCallArray.Sort(less func(a, b PhoneCall) bool) PhoneCallArray func PhoneCallArray.SortByDate() PhoneCallArray func PhoneCallArray.SortByID() PhoneCallArray func PhoneCallArray.SortStable(less func(a, b PhoneCall) bool) PhoneCallArray func PhoneCallArray.SortStableByDate() PhoneCallArray func PhoneCallArray.SortStableByID() PhoneCallArray func PhoneCallClassArray.AsPhoneCall() (to PhoneCallArray)
PhoneCall boxes the PhoneCallClass providing a helper. PhoneCall PhoneCallClass Decode implements bin.Decoder for PhoneCallBox. Encode implements bin.Encode for PhoneCallBox. *PhoneCallBox : github.com/gotd/td/bin.Decoder *PhoneCallBox : github.com/gotd/td/bin.Encoder *PhoneCallBox : github.com/gotd/td/bin.Object
PhoneCallClass represents PhoneCall generic type. See https://core.telegram.org/type/PhoneCall for reference. Example: g, err := tg.DecodePhoneCall(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PhoneCallEmpty: // phoneCallEmpty#5366c915 case *tg.PhoneCallWaiting: // phoneCallWaiting#c5226f17 case *tg.PhoneCallRequested: // phoneCallRequested#14b0ed0c case *tg.PhoneCallAccepted: // phoneCallAccepted#3660c311 case *tg.PhoneCall: // phoneCall#967f7c67 case *tg.PhoneCallDiscarded: // phoneCallDiscarded#50ca4de1 default: panic(v) } AsNotEmpty tries to map PhoneCallClass to NotEmptyPhoneCall. ( PhoneCallClass) Decode(b *bin.Buffer) error ( PhoneCallClass) DecodeBare(b *bin.Buffer) error ( PhoneCallClass) Encode(b *bin.Buffer) error ( PhoneCallClass) EncodeBare(b *bin.Buffer) error Call ID 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. *PhoneCall *PhoneCallAccepted *PhoneCallDiscarded *PhoneCallEmpty *PhoneCallRequested *PhoneCallWaiting PhoneCallClass : github.com/gotd/td/bin.BareDecoder PhoneCallClass : github.com/gotd/td/bin.BareEncoder PhoneCallClass : github.com/gotd/td/bin.Decoder PhoneCallClass : github.com/gotd/td/bin.Encoder PhoneCallClass : github.com/gotd/td/bin.Object PhoneCallClass : fmt.Stringer func DecodePhoneCall(buf *bin.Buffer) (PhoneCallClass, error) func PhoneCallClassArray.First() (v PhoneCallClass, ok bool) func PhoneCallClassArray.Last() (v PhoneCallClass, ok bool) func (*PhoneCallClassArray).Pop() (v PhoneCallClass, ok bool) func (*PhoneCallClassArray).PopFirst() (v PhoneCallClass, ok bool) func (*PhonePhoneCall).GetPhoneCall() (value PhoneCallClass) func (*UpdatePhoneCall).GetPhoneCall() (value PhoneCallClass)
PhoneCallClassArray is adapter for slice of PhoneCallClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsNotEmpty returns copy with only NotEmpty constructors. AsPhoneCall returns copy with only PhoneCall constructors. AsPhoneCallAccepted returns copy with only PhoneCallAccepted constructors. AsPhoneCallDiscarded returns copy with only PhoneCallDiscarded constructors. AsPhoneCallEmpty returns copy with only PhoneCallEmpty constructors. AsPhoneCallRequested returns copy with only PhoneCallRequested constructors. AsPhoneCallWaiting returns copy with only PhoneCallWaiting constructors. FillNotEmptyMap fills only NotEmpty constructors to given map. FillPhoneCallAcceptedMap fills only PhoneCallAccepted constructors to given map. FillPhoneCallDiscardedMap fills only PhoneCallDiscarded constructors to given map. FillPhoneCallEmptyMap fills only PhoneCallEmpty constructors to given map. FillPhoneCallMap fills only PhoneCall constructors to given map. FillPhoneCallRequestedMap fills only PhoneCallRequested constructors to given map. FillPhoneCallWaitingMap fills only PhoneCallWaiting constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. PhoneCallAcceptedToMap collects only PhoneCallAccepted constructors to map. PhoneCallDiscardedToMap collects only PhoneCallDiscarded constructors to map. PhoneCallEmptyToMap collects only PhoneCallEmpty constructors to map. PhoneCallRequestedToMap collects only PhoneCallRequested constructors to map. PhoneCallToMap collects only PhoneCall constructors to map. PhoneCallWaitingToMap collects only PhoneCallWaiting constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of PhoneCallClass. Sort sorts slice of PhoneCallClass. SortByID sorts slice of PhoneCallClass by ID. SortStable sorts slice of PhoneCallClass. SortStableByID sorts slice of PhoneCallClass by ID. func PhoneCallClassArray.Retain(keep func(x PhoneCallClass) bool) PhoneCallClassArray func PhoneCallClassArray.Sort(less func(a, b PhoneCallClass) bool) PhoneCallClassArray func PhoneCallClassArray.SortByID() PhoneCallClassArray func PhoneCallClassArray.SortStable(less func(a, b PhoneCallClass) bool) PhoneCallClassArray func PhoneCallClassArray.SortStableByID() PhoneCallClassArray
PhoneCallDiscarded represents TL type `phoneCallDiscarded#50ca4de1`. Indicates a discarded phone call See https://core.telegram.org/constructor/phoneCallDiscarded for reference. Duration of the phone call in seconds Use SetDuration and GetDuration helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Call ID Whether the server required the client to send¹ the libtgvoip call debug data Links: 1) https://core.telegram.org/method/phone.saveCallDebug Whether the server required the user to rate¹ the call Links: 1) https://core.telegram.org/method/phone.setCallRating Why was the phone call discarded Use SetReason and GetReason helpers. Whether the call was a video call AsNotEmpty tries to map PhoneCallDiscarded to NotEmptyPhoneCall. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneCallDiscarded from given interface. GetDuration returns value of Duration conditional field and boolean which is true if field was set. GetID returns value of ID field. GetNeedDebug returns value of NeedDebug conditional field. GetNeedRating returns value of NeedRating conditional field. GetReason returns value of Reason conditional field and boolean which is true if field was set. GetVideo returns value of Video conditional field. SetDuration sets value of Duration conditional field. SetFlags sets flags for non-zero fields. SetNeedDebug sets value of NeedDebug conditional field. SetNeedRating sets value of NeedRating conditional field. SetReason sets value of Reason conditional field. SetVideo sets value of Video 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. (*PhoneCallDiscarded) Zero() bool *PhoneCallDiscarded : NotEmptyPhoneCall *PhoneCallDiscarded : PhoneCallClass *PhoneCallDiscarded : github.com/gotd/td/bin.BareDecoder *PhoneCallDiscarded : github.com/gotd/td/bin.BareEncoder *PhoneCallDiscarded : github.com/gotd/td/bin.Decoder *PhoneCallDiscarded : github.com/gotd/td/bin.Encoder *PhoneCallDiscarded : github.com/gotd/td/bin.Object *PhoneCallDiscarded : github.com/gotd/td/tdp.Object *PhoneCallDiscarded : fmt.Stringer func PhoneCallClassArray.PhoneCallDiscardedToMap() map[int64]*PhoneCallDiscarded func PhoneCallDiscardedArray.First() (v PhoneCallDiscarded, ok bool) func PhoneCallDiscardedArray.Last() (v PhoneCallDiscarded, ok bool) func (*PhoneCallDiscardedArray).Pop() (v PhoneCallDiscarded, ok bool) func (*PhoneCallDiscardedArray).PopFirst() (v PhoneCallDiscarded, ok bool) func PhoneCallDiscardedArray.ToMap() map[int64]PhoneCallDiscarded func PhoneCallClassArray.FillPhoneCallDiscardedMap(to map[int64]*PhoneCallDiscarded) func PhoneCallDiscardedArray.FillMap(to map[int64]PhoneCallDiscarded)
PhoneCallDiscardedArray is adapter for slice of PhoneCallDiscarded. 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 PhoneCallDiscarded. Sort sorts slice of PhoneCallDiscarded. SortByID sorts slice of PhoneCallDiscarded by ID. SortStable sorts slice of PhoneCallDiscarded. SortStableByID sorts slice of PhoneCallDiscarded by ID. ToMap collects constructors to map. func PhoneCallClassArray.AsPhoneCallDiscarded() (to PhoneCallDiscardedArray) func PhoneCallDiscardedArray.Retain(keep func(x PhoneCallDiscarded) bool) PhoneCallDiscardedArray func PhoneCallDiscardedArray.Sort(less func(a, b PhoneCallDiscarded) bool) PhoneCallDiscardedArray func PhoneCallDiscardedArray.SortByID() PhoneCallDiscardedArray func PhoneCallDiscardedArray.SortStable(less func(a, b PhoneCallDiscarded) bool) PhoneCallDiscardedArray func PhoneCallDiscardedArray.SortStableByID() PhoneCallDiscardedArray
PhoneCallDiscardReason boxes the PhoneCallDiscardReasonClass providing a helper. PhoneCallDiscardReason PhoneCallDiscardReasonClass Decode implements bin.Decoder for PhoneCallDiscardReasonBox. Encode implements bin.Encode for PhoneCallDiscardReasonBox. *PhoneCallDiscardReasonBox : github.com/gotd/td/bin.Decoder *PhoneCallDiscardReasonBox : github.com/gotd/td/bin.Encoder *PhoneCallDiscardReasonBox : github.com/gotd/td/bin.Object
PhoneCallDiscardReasonBusy represents TL type `phoneCallDiscardReasonBusy#faf7e8c9`. The phone call was discarded because the user is busy in another call See https://core.telegram.org/constructor/phoneCallDiscardReasonBusy 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. (*PhoneCallDiscardReasonBusy) Zero() bool *PhoneCallDiscardReasonBusy : PhoneCallDiscardReasonClass *PhoneCallDiscardReasonBusy : github.com/gotd/td/bin.BareDecoder *PhoneCallDiscardReasonBusy : github.com/gotd/td/bin.BareEncoder *PhoneCallDiscardReasonBusy : github.com/gotd/td/bin.Decoder *PhoneCallDiscardReasonBusy : github.com/gotd/td/bin.Encoder *PhoneCallDiscardReasonBusy : github.com/gotd/td/bin.Object *PhoneCallDiscardReasonBusy : github.com/gotd/td/tdp.Object *PhoneCallDiscardReasonBusy : fmt.Stringer
PhoneCallDiscardReasonClass represents PhoneCallDiscardReason generic type. See https://core.telegram.org/type/PhoneCallDiscardReason for reference. Example: g, err := tg.DecodePhoneCallDiscardReason(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PhoneCallDiscardReasonMissed: // phoneCallDiscardReasonMissed#85e42301 case *tg.PhoneCallDiscardReasonDisconnect: // phoneCallDiscardReasonDisconnect#e095c1a0 case *tg.PhoneCallDiscardReasonHangup: // phoneCallDiscardReasonHangup#57adc690 case *tg.PhoneCallDiscardReasonBusy: // phoneCallDiscardReasonBusy#faf7e8c9 default: panic(v) } ( PhoneCallDiscardReasonClass) Decode(b *bin.Buffer) error ( PhoneCallDiscardReasonClass) DecodeBare(b *bin.Buffer) error ( PhoneCallDiscardReasonClass) Encode(b *bin.Buffer) error ( PhoneCallDiscardReasonClass) 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. *PhoneCallDiscardReasonBusy *PhoneCallDiscardReasonDisconnect *PhoneCallDiscardReasonHangup *PhoneCallDiscardReasonMissed PhoneCallDiscardReasonClass : github.com/gotd/td/bin.BareDecoder PhoneCallDiscardReasonClass : github.com/gotd/td/bin.BareEncoder PhoneCallDiscardReasonClass : github.com/gotd/td/bin.Decoder PhoneCallDiscardReasonClass : github.com/gotd/td/bin.Encoder PhoneCallDiscardReasonClass : github.com/gotd/td/bin.Object PhoneCallDiscardReasonClass : fmt.Stringer func DecodePhoneCallDiscardReason(buf *bin.Buffer) (PhoneCallDiscardReasonClass, error) func (*MessageActionPhoneCall).GetReason() (value PhoneCallDiscardReasonClass, ok bool) func (*PhoneCallDiscarded).GetReason() (value PhoneCallDiscardReasonClass, ok bool) func PhoneCallDiscardReasonClassArray.First() (v PhoneCallDiscardReasonClass, ok bool) func PhoneCallDiscardReasonClassArray.Last() (v PhoneCallDiscardReasonClass, ok bool) func (*PhoneCallDiscardReasonClassArray).Pop() (v PhoneCallDiscardReasonClass, ok bool) func (*PhoneCallDiscardReasonClassArray).PopFirst() (v PhoneCallDiscardReasonClass, ok bool) func (*PhoneDiscardCallRequest).GetReason() (value PhoneCallDiscardReasonClass) func (*MessageActionPhoneCall).SetReason(value PhoneCallDiscardReasonClass) func (*PhoneCallDiscarded).SetReason(value PhoneCallDiscardReasonClass)
PhoneCallDiscardReasonClassArray is adapter for slice of PhoneCallDiscardReasonClass. 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 PhoneCallDiscardReasonClass. Sort sorts slice of PhoneCallDiscardReasonClass. SortStable sorts slice of PhoneCallDiscardReasonClass. func PhoneCallDiscardReasonClassArray.Retain(keep func(x PhoneCallDiscardReasonClass) bool) PhoneCallDiscardReasonClassArray func PhoneCallDiscardReasonClassArray.Sort(less func(a, b PhoneCallDiscardReasonClass) bool) PhoneCallDiscardReasonClassArray func PhoneCallDiscardReasonClassArray.SortStable(less func(a, b PhoneCallDiscardReasonClass) bool) PhoneCallDiscardReasonClassArray
PhoneCallDiscardReasonDisconnect represents TL type `phoneCallDiscardReasonDisconnect#e095c1a0`. The phone call was disconnected See https://core.telegram.org/constructor/phoneCallDiscardReasonDisconnect 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. (*PhoneCallDiscardReasonDisconnect) Zero() bool *PhoneCallDiscardReasonDisconnect : PhoneCallDiscardReasonClass *PhoneCallDiscardReasonDisconnect : github.com/gotd/td/bin.BareDecoder *PhoneCallDiscardReasonDisconnect : github.com/gotd/td/bin.BareEncoder *PhoneCallDiscardReasonDisconnect : github.com/gotd/td/bin.Decoder *PhoneCallDiscardReasonDisconnect : github.com/gotd/td/bin.Encoder *PhoneCallDiscardReasonDisconnect : github.com/gotd/td/bin.Object *PhoneCallDiscardReasonDisconnect : github.com/gotd/td/tdp.Object *PhoneCallDiscardReasonDisconnect : fmt.Stringer
PhoneCallDiscardReasonHangup represents TL type `phoneCallDiscardReasonHangup#57adc690`. The phone call was ended normally See https://core.telegram.org/constructor/phoneCallDiscardReasonHangup 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. (*PhoneCallDiscardReasonHangup) Zero() bool *PhoneCallDiscardReasonHangup : PhoneCallDiscardReasonClass *PhoneCallDiscardReasonHangup : github.com/gotd/td/bin.BareDecoder *PhoneCallDiscardReasonHangup : github.com/gotd/td/bin.BareEncoder *PhoneCallDiscardReasonHangup : github.com/gotd/td/bin.Decoder *PhoneCallDiscardReasonHangup : github.com/gotd/td/bin.Encoder *PhoneCallDiscardReasonHangup : github.com/gotd/td/bin.Object *PhoneCallDiscardReasonHangup : github.com/gotd/td/tdp.Object *PhoneCallDiscardReasonHangup : fmt.Stringer
PhoneCallDiscardReasonMissed represents TL type `phoneCallDiscardReasonMissed#85e42301`. The phone call was missed See https://core.telegram.org/constructor/phoneCallDiscardReasonMissed 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. (*PhoneCallDiscardReasonMissed) Zero() bool *PhoneCallDiscardReasonMissed : PhoneCallDiscardReasonClass *PhoneCallDiscardReasonMissed : github.com/gotd/td/bin.BareDecoder *PhoneCallDiscardReasonMissed : github.com/gotd/td/bin.BareEncoder *PhoneCallDiscardReasonMissed : github.com/gotd/td/bin.Decoder *PhoneCallDiscardReasonMissed : github.com/gotd/td/bin.Encoder *PhoneCallDiscardReasonMissed : github.com/gotd/td/bin.Object *PhoneCallDiscardReasonMissed : github.com/gotd/td/tdp.Object *PhoneCallDiscardReasonMissed : fmt.Stringer
PhoneCallEmpty represents TL type `phoneCallEmpty#5366c915`. Empty constructor See https://core.telegram.org/constructor/phoneCallEmpty for reference. Takeout ID AsNotEmpty tries to map PhoneCallEmpty to NotEmptyPhoneCall. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneCallEmpty 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. (*PhoneCallEmpty) Zero() bool *PhoneCallEmpty : PhoneCallClass *PhoneCallEmpty : github.com/gotd/td/bin.BareDecoder *PhoneCallEmpty : github.com/gotd/td/bin.BareEncoder *PhoneCallEmpty : github.com/gotd/td/bin.Decoder *PhoneCallEmpty : github.com/gotd/td/bin.Encoder *PhoneCallEmpty : github.com/gotd/td/bin.Object *PhoneCallEmpty : github.com/gotd/td/tdp.Object *PhoneCallEmpty : fmt.Stringer func PhoneCallClassArray.PhoneCallEmptyToMap() map[int64]*PhoneCallEmpty func PhoneCallEmptyArray.First() (v PhoneCallEmpty, ok bool) func PhoneCallEmptyArray.Last() (v PhoneCallEmpty, ok bool) func (*PhoneCallEmptyArray).Pop() (v PhoneCallEmpty, ok bool) func (*PhoneCallEmptyArray).PopFirst() (v PhoneCallEmpty, ok bool) func PhoneCallEmptyArray.ToMap() map[int64]PhoneCallEmpty func PhoneCallClassArray.FillPhoneCallEmptyMap(to map[int64]*PhoneCallEmpty) func PhoneCallEmptyArray.FillMap(to map[int64]PhoneCallEmpty)
PhoneCallEmptyArray is adapter for slice of PhoneCallEmpty. 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 PhoneCallEmpty. Sort sorts slice of PhoneCallEmpty. SortByID sorts slice of PhoneCallEmpty by ID. SortStable sorts slice of PhoneCallEmpty. SortStableByID sorts slice of PhoneCallEmpty by ID. ToMap collects constructors to map. func PhoneCallClassArray.AsPhoneCallEmpty() (to PhoneCallEmptyArray) func PhoneCallEmptyArray.Retain(keep func(x PhoneCallEmpty) bool) PhoneCallEmptyArray func PhoneCallEmptyArray.Sort(less func(a, b PhoneCallEmpty) bool) PhoneCallEmptyArray func PhoneCallEmptyArray.SortByID() PhoneCallEmptyArray func PhoneCallEmptyArray.SortStable(less func(a, b PhoneCallEmpty) bool) PhoneCallEmptyArray func PhoneCallEmptyArray.SortStableByID() PhoneCallEmptyArray
PhoneCallHandler is a PhoneCall event handler. func UpdateDispatcher.OnPhoneCall(handler PhoneCallHandler)
PhoneCallProtocol represents TL type `phoneCallProtocol#fc878fc8`. Protocol info for libtgvoip See https://core.telegram.org/constructor/phoneCallProtocol for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields When using phone.requestCall¹ and phone.acceptCall², specify all library versions supported by the client. The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee's phone.acceptCall³ and in the phoneCallAccepted⁴ update received by the caller. Links: 1) https://core.telegram.org/method/phone.requestCall 2) https://core.telegram.org/method/phone.acceptCall 3) https://core.telegram.org/method/phone.acceptCall 4) https://core.telegram.org/constructor/phoneCallAccepted Maximum layer for remote libtgvoip Minimum layer for remote libtgvoip Whether to allow P2P connection to the other participant Whether to allow connection to the other participants through the reflector servers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneCallProtocol from given interface. GetLibraryVersions returns value of LibraryVersions field. GetMaxLayer returns value of MaxLayer field. GetMinLayer returns value of MinLayer field. GetUDPP2P returns value of UDPP2P conditional field. GetUDPReflector returns value of UDPReflector conditional field. SetFlags sets flags for non-zero fields. SetUDPP2P sets value of UDPP2P conditional field. SetUDPReflector sets value of UDPReflector 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. (*PhoneCallProtocol) Zero() bool *PhoneCallProtocol : github.com/gotd/td/bin.BareDecoder *PhoneCallProtocol : github.com/gotd/td/bin.BareEncoder *PhoneCallProtocol : github.com/gotd/td/bin.Decoder *PhoneCallProtocol : github.com/gotd/td/bin.Encoder *PhoneCallProtocol : github.com/gotd/td/bin.Object *PhoneCallProtocol : github.com/gotd/td/tdp.Object *PhoneCallProtocol : fmt.Stringer func (*PhoneAcceptCallRequest).GetProtocol() (value PhoneCallProtocol) func (*PhoneCall).GetProtocol() (value PhoneCallProtocol) func (*PhoneCallAccepted).GetProtocol() (value PhoneCallProtocol) func (*PhoneCallRequested).GetProtocol() (value PhoneCallProtocol) func (*PhoneCallWaiting).GetProtocol() (value PhoneCallProtocol) func (*PhoneConfirmCallRequest).GetProtocol() (value PhoneCallProtocol) func (*PhoneRequestCallRequest).GetProtocol() (value PhoneCallProtocol)
PhoneCallRequested represents TL type `phoneCallRequested#14b0ed0c`. Requested phone call See https://core.telegram.org/constructor/phoneCallRequested for reference. Access hash ID of the creator of the phone call When was the phone call created Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Parameter for key exchange¹ Links: 1) https://core.telegram.org/api/end-to-end/voice-calls Phone call ID ID of the other participant of the phone call Call protocol info to be passed to libtgvoip Whether this is a video call AsNotEmpty tries to map PhoneCallRequested to NotEmptyPhoneCall. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneCallRequested from given interface. GetAccessHash returns value of AccessHash field. GetAdminID returns value of AdminID field. GetDate returns value of Date field. GetGAHash returns value of GAHash field. GetID returns value of ID field. GetParticipantID returns value of ParticipantID field. GetProtocol returns value of Protocol field. GetVideo returns value of Video conditional field. SetFlags sets flags for non-zero fields. SetVideo sets value of Video 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. (*PhoneCallRequested) Zero() bool *PhoneCallRequested : NotEmptyPhoneCall *PhoneCallRequested : PhoneCallClass *PhoneCallRequested : github.com/gotd/td/bin.BareDecoder *PhoneCallRequested : github.com/gotd/td/bin.BareEncoder *PhoneCallRequested : github.com/gotd/td/bin.Decoder *PhoneCallRequested : github.com/gotd/td/bin.Encoder *PhoneCallRequested : github.com/gotd/td/bin.Object *PhoneCallRequested : github.com/gotd/td/tdp.Object *PhoneCallRequested : fmt.Stringer func PhoneCallClassArray.PhoneCallRequestedToMap() map[int64]*PhoneCallRequested func PhoneCallRequestedArray.First() (v PhoneCallRequested, ok bool) func PhoneCallRequestedArray.Last() (v PhoneCallRequested, ok bool) func (*PhoneCallRequestedArray).Pop() (v PhoneCallRequested, ok bool) func (*PhoneCallRequestedArray).PopFirst() (v PhoneCallRequested, ok bool) func PhoneCallRequestedArray.ToMap() map[int64]PhoneCallRequested func PhoneCallClassArray.FillPhoneCallRequestedMap(to map[int64]*PhoneCallRequested) func PhoneCallRequestedArray.FillMap(to map[int64]PhoneCallRequested)
PhoneCallRequestedArray is adapter for slice of PhoneCallRequested. 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 PhoneCallRequested. Sort sorts slice of PhoneCallRequested. SortByDate sorts slice of PhoneCallRequested by Date. SortByID sorts slice of PhoneCallRequested by ID. SortStable sorts slice of PhoneCallRequested. SortStableByDate sorts slice of PhoneCallRequested by Date. SortStableByID sorts slice of PhoneCallRequested by ID. ToMap collects constructors to map. func PhoneCallClassArray.AsPhoneCallRequested() (to PhoneCallRequestedArray) func PhoneCallRequestedArray.Retain(keep func(x PhoneCallRequested) bool) PhoneCallRequestedArray func PhoneCallRequestedArray.Sort(less func(a, b PhoneCallRequested) bool) PhoneCallRequestedArray func PhoneCallRequestedArray.SortByDate() PhoneCallRequestedArray func PhoneCallRequestedArray.SortByID() PhoneCallRequestedArray func PhoneCallRequestedArray.SortStable(less func(a, b PhoneCallRequested) bool) PhoneCallRequestedArray func PhoneCallRequestedArray.SortStableByDate() PhoneCallRequestedArray func PhoneCallRequestedArray.SortStableByID() PhoneCallRequestedArray
PhoneCallSignalingDataHandler is a PhoneCallSignalingData event handler. func UpdateDispatcher.OnPhoneCallSignalingData(handler PhoneCallSignalingDataHandler)
PhoneCallWaiting represents TL type `phoneCallWaiting#c5226f17`. Incoming phone call See https://core.telegram.org/constructor/phoneCallWaiting for reference. Access hash Admin ID Date Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Call ID Participant ID Phone call protocol info When was the phone call received Use SetReceiveDate and GetReceiveDate helpers. Is this a video call AsNotEmpty tries to map PhoneCallWaiting to NotEmptyPhoneCall. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneCallWaiting from given interface. GetAccessHash returns value of AccessHash field. GetAdminID returns value of AdminID field. GetDate returns value of Date field. GetID returns value of ID field. GetParticipantID returns value of ParticipantID field. GetProtocol returns value of Protocol field. GetReceiveDate returns value of ReceiveDate conditional field and boolean which is true if field was set. GetVideo returns value of Video conditional field. SetFlags sets flags for non-zero fields. SetReceiveDate sets value of ReceiveDate conditional field. SetVideo sets value of Video 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. (*PhoneCallWaiting) Zero() bool *PhoneCallWaiting : NotEmptyPhoneCall *PhoneCallWaiting : PhoneCallClass *PhoneCallWaiting : github.com/gotd/td/bin.BareDecoder *PhoneCallWaiting : github.com/gotd/td/bin.BareEncoder *PhoneCallWaiting : github.com/gotd/td/bin.Decoder *PhoneCallWaiting : github.com/gotd/td/bin.Encoder *PhoneCallWaiting : github.com/gotd/td/bin.Object *PhoneCallWaiting : github.com/gotd/td/tdp.Object *PhoneCallWaiting : fmt.Stringer func PhoneCallClassArray.PhoneCallWaitingToMap() map[int64]*PhoneCallWaiting func PhoneCallWaitingArray.First() (v PhoneCallWaiting, ok bool) func PhoneCallWaitingArray.Last() (v PhoneCallWaiting, ok bool) func (*PhoneCallWaitingArray).Pop() (v PhoneCallWaiting, ok bool) func (*PhoneCallWaitingArray).PopFirst() (v PhoneCallWaiting, ok bool) func PhoneCallWaitingArray.ToMap() map[int64]PhoneCallWaiting func PhoneCallClassArray.FillPhoneCallWaitingMap(to map[int64]*PhoneCallWaiting) func PhoneCallWaitingArray.FillMap(to map[int64]PhoneCallWaiting)
PhoneCallWaitingArray is adapter for slice of PhoneCallWaiting. 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 PhoneCallWaiting. Sort sorts slice of PhoneCallWaiting. SortByDate sorts slice of PhoneCallWaiting by Date. SortByID sorts slice of PhoneCallWaiting by ID. SortStable sorts slice of PhoneCallWaiting. SortStableByDate sorts slice of PhoneCallWaiting by Date. SortStableByID sorts slice of PhoneCallWaiting by ID. ToMap collects constructors to map. func PhoneCallClassArray.AsPhoneCallWaiting() (to PhoneCallWaitingArray) func PhoneCallWaitingArray.Retain(keep func(x PhoneCallWaiting) bool) PhoneCallWaitingArray func PhoneCallWaitingArray.Sort(less func(a, b PhoneCallWaiting) bool) PhoneCallWaitingArray func PhoneCallWaitingArray.SortByDate() PhoneCallWaitingArray func PhoneCallWaitingArray.SortByID() PhoneCallWaitingArray func PhoneCallWaitingArray.SortStable(less func(a, b PhoneCallWaiting) bool) PhoneCallWaitingArray func PhoneCallWaitingArray.SortStableByDate() PhoneCallWaitingArray func PhoneCallWaitingArray.SortStableByID() PhoneCallWaitingArray
PhoneCheckGroupCallRequest represents TL type `phone.checkGroupCall#b59cf977`. Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs. Returns an intersection of the source IDs specified in sources, and the source IDs currently being forwarded by the SFU. See https://core.telegram.org/method/phone.checkGroupCall for reference. Group call Source IDs Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneCheckGroupCallRequest from given interface. GetCall returns value of Call field. GetSources returns value of Sources 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. (*PhoneCheckGroupCallRequest) Zero() bool *PhoneCheckGroupCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneCheckGroupCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneCheckGroupCallRequest : github.com/gotd/td/bin.Decoder *PhoneCheckGroupCallRequest : github.com/gotd/td/bin.Encoder *PhoneCheckGroupCallRequest : github.com/gotd/td/bin.Object *PhoneCheckGroupCallRequest : github.com/gotd/td/tdp.Object *PhoneCheckGroupCallRequest : fmt.Stringer func (*Client).PhoneCheckGroupCall(ctx context.Context, request *PhoneCheckGroupCallRequest) ([]int, error)
PhoneConfirmCallRequest represents TL type `phone.confirmCall#2efe1722`. Complete phone call E2E encryption key exchange »¹ Links: 1. https://core.telegram.org/api/end-to-end/voice-calls See https://core.telegram.org/method/phone.confirmCall for reference. Parameter for E2E encryption key exchange »¹ Links: 1) https://core.telegram.org/api/end-to-end/voice-calls Key fingerprint The phone call Phone call settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneConfirmCallRequest from given interface. GetGA returns value of GA field. GetKeyFingerprint returns value of KeyFingerprint field. GetPeer returns value of Peer field. GetProtocol returns value of Protocol 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. (*PhoneConfirmCallRequest) Zero() bool *PhoneConfirmCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneConfirmCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneConfirmCallRequest : github.com/gotd/td/bin.Decoder *PhoneConfirmCallRequest : github.com/gotd/td/bin.Encoder *PhoneConfirmCallRequest : github.com/gotd/td/bin.Object *PhoneConfirmCallRequest : github.com/gotd/td/tdp.Object *PhoneConfirmCallRequest : fmt.Stringer func (*Client).PhoneConfirmCall(ctx context.Context, request *PhoneConfirmCallRequest) (*PhonePhoneCall, error)
PhoneConnection represents TL type `phoneConnection#9cc123c7`. Identifies an endpoint that can be used to connect to the other user in a phone call See https://core.telegram.org/constructor/phoneConnection for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Endpoint ID IP address of endpoint IPv6 address of endpoint Our peer tag Port ID Whether TCP should be used Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneConnection from given interface. GetID returns value of ID field. GetIP returns value of IP field. GetIpv6 returns value of Ipv6 field. GetPeerTag returns value of PeerTag field. GetPort returns value of Port field. GetTCP returns value of TCP conditional field. SetFlags sets flags for non-zero fields. SetTCP sets value of TCP 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. (*PhoneConnection) Zero() bool *PhoneConnection : PhoneConnectionClass *PhoneConnection : github.com/gotd/td/bin.BareDecoder *PhoneConnection : github.com/gotd/td/bin.BareEncoder *PhoneConnection : github.com/gotd/td/bin.Decoder *PhoneConnection : github.com/gotd/td/bin.Encoder *PhoneConnection : github.com/gotd/td/bin.Object *PhoneConnection : github.com/gotd/td/tdp.Object *PhoneConnection : fmt.Stringer func PhoneConnectionArray.First() (v PhoneConnection, ok bool) func PhoneConnectionArray.Last() (v PhoneConnection, ok bool) func (*PhoneConnectionArray).Pop() (v PhoneConnection, ok bool) func (*PhoneConnectionArray).PopFirst() (v PhoneConnection, ok bool) func PhoneConnectionArray.ToMap() map[int64]PhoneConnection func PhoneConnectionClassArray.PhoneConnectionToMap() map[int64]*PhoneConnection func PhoneConnectionArray.FillMap(to map[int64]PhoneConnection) func PhoneConnectionClassArray.FillPhoneConnectionMap(to map[int64]*PhoneConnection)
PhoneConnectionArray is adapter for slice of PhoneConnection. 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 PhoneConnection. Sort sorts slice of PhoneConnection. SortByID sorts slice of PhoneConnection by ID. SortStable sorts slice of PhoneConnection. SortStableByID sorts slice of PhoneConnection by ID. ToMap collects constructors to map. func PhoneConnectionArray.Retain(keep func(x PhoneConnection) bool) PhoneConnectionArray func PhoneConnectionArray.Sort(less func(a, b PhoneConnection) bool) PhoneConnectionArray func PhoneConnectionArray.SortByID() PhoneConnectionArray func PhoneConnectionArray.SortStable(less func(a, b PhoneConnection) bool) PhoneConnectionArray func PhoneConnectionArray.SortStableByID() PhoneConnectionArray func PhoneConnectionClassArray.AsPhoneConnection() (to PhoneConnectionArray)
PhoneConnection boxes the PhoneConnectionClass providing a helper. PhoneConnection PhoneConnectionClass Decode implements bin.Decoder for PhoneConnectionBox. Encode implements bin.Encode for PhoneConnectionBox. *PhoneConnectionBox : github.com/gotd/td/bin.Decoder *PhoneConnectionBox : github.com/gotd/td/bin.Encoder *PhoneConnectionBox : github.com/gotd/td/bin.Object
PhoneConnectionClass represents PhoneConnection generic type. See https://core.telegram.org/type/PhoneConnection for reference. Example: g, err := tg.DecodePhoneConnection(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PhoneConnection: // phoneConnection#9cc123c7 case *tg.PhoneConnectionWebrtc: // phoneConnectionWebrtc#635fe375 default: panic(v) } ( PhoneConnectionClass) Decode(b *bin.Buffer) error ( PhoneConnectionClass) DecodeBare(b *bin.Buffer) error ( PhoneConnectionClass) Encode(b *bin.Buffer) error ( PhoneConnectionClass) EncodeBare(b *bin.Buffer) error Endpoint ID IP address of endpoint IPv6 address of endpoint Port ID 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. *PhoneConnection *PhoneConnectionWebrtc PhoneConnectionClass : github.com/gotd/td/bin.BareDecoder PhoneConnectionClass : github.com/gotd/td/bin.BareEncoder PhoneConnectionClass : github.com/gotd/td/bin.Decoder PhoneConnectionClass : github.com/gotd/td/bin.Encoder PhoneConnectionClass : github.com/gotd/td/bin.Object PhoneConnectionClass : fmt.Stringer func DecodePhoneConnection(buf *bin.Buffer) (PhoneConnectionClass, error) func (*PhoneCall).GetConnections() (value []PhoneConnectionClass) func PhoneConnectionClassArray.First() (v PhoneConnectionClass, ok bool) func PhoneConnectionClassArray.Last() (v PhoneConnectionClass, ok bool) func (*PhoneConnectionClassArray).Pop() (v PhoneConnectionClass, ok bool) func (*PhoneConnectionClassArray).PopFirst() (v PhoneConnectionClass, ok bool)
PhoneConnectionClassArray is adapter for slice of PhoneConnectionClass. AsPhoneConnection returns copy with only PhoneConnection constructors. AsPhoneConnectionWebrtc returns copy with only PhoneConnectionWebrtc constructors. FillPhoneConnectionMap fills only PhoneConnection constructors to given map. FillPhoneConnectionWebrtcMap fills only PhoneConnectionWebrtc constructors to given map. First returns first element of slice (if exists). Last returns last element of slice (if exists). PhoneConnectionToMap collects only PhoneConnection constructors to map. PhoneConnectionWebrtcToMap collects only PhoneConnectionWebrtc constructors to map. 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 PhoneConnectionClass. Sort sorts slice of PhoneConnectionClass. SortByID sorts slice of PhoneConnectionClass by ID. SortStable sorts slice of PhoneConnectionClass. SortStableByID sorts slice of PhoneConnectionClass by ID. func (*PhoneCall).MapConnections() (value PhoneConnectionClassArray) func PhoneConnectionClassArray.Retain(keep func(x PhoneConnectionClass) bool) PhoneConnectionClassArray func PhoneConnectionClassArray.Sort(less func(a, b PhoneConnectionClass) bool) PhoneConnectionClassArray func PhoneConnectionClassArray.SortByID() PhoneConnectionClassArray func PhoneConnectionClassArray.SortStable(less func(a, b PhoneConnectionClass) bool) PhoneConnectionClassArray func PhoneConnectionClassArray.SortStableByID() PhoneConnectionClassArray
PhoneConnectionWebrtc represents TL type `phoneConnectionWebrtc#635fe375`. WebRTC connection parameters See https://core.telegram.org/constructor/phoneConnectionWebrtc for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Endpoint ID IP address IPv6 address Password Port Whether this is a STUN endpoint Whether this is a TURN endpoint Username Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneConnectionWebrtc from given interface. GetID returns value of ID field. GetIP returns value of IP field. GetIpv6 returns value of Ipv6 field. GetPassword returns value of Password field. GetPort returns value of Port field. GetStun returns value of Stun conditional field. GetTurn returns value of Turn conditional field. GetUsername returns value of Username field. SetFlags sets flags for non-zero fields. SetStun sets value of Stun conditional field. SetTurn sets value of Turn 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. (*PhoneConnectionWebrtc) Zero() bool *PhoneConnectionWebrtc : PhoneConnectionClass *PhoneConnectionWebrtc : github.com/gotd/td/bin.BareDecoder *PhoneConnectionWebrtc : github.com/gotd/td/bin.BareEncoder *PhoneConnectionWebrtc : github.com/gotd/td/bin.Decoder *PhoneConnectionWebrtc : github.com/gotd/td/bin.Encoder *PhoneConnectionWebrtc : github.com/gotd/td/bin.Object *PhoneConnectionWebrtc : github.com/gotd/td/tdp.Object *PhoneConnectionWebrtc : fmt.Stringer func PhoneConnectionClassArray.PhoneConnectionWebrtcToMap() map[int64]*PhoneConnectionWebrtc func PhoneConnectionWebrtcArray.First() (v PhoneConnectionWebrtc, ok bool) func PhoneConnectionWebrtcArray.Last() (v PhoneConnectionWebrtc, ok bool) func (*PhoneConnectionWebrtcArray).Pop() (v PhoneConnectionWebrtc, ok bool) func (*PhoneConnectionWebrtcArray).PopFirst() (v PhoneConnectionWebrtc, ok bool) func PhoneConnectionWebrtcArray.ToMap() map[int64]PhoneConnectionWebrtc func PhoneConnectionClassArray.FillPhoneConnectionWebrtcMap(to map[int64]*PhoneConnectionWebrtc) func PhoneConnectionWebrtcArray.FillMap(to map[int64]PhoneConnectionWebrtc)
PhoneConnectionWebrtcArray is adapter for slice of PhoneConnectionWebrtc. 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 PhoneConnectionWebrtc. Sort sorts slice of PhoneConnectionWebrtc. SortByID sorts slice of PhoneConnectionWebrtc by ID. SortStable sorts slice of PhoneConnectionWebrtc. SortStableByID sorts slice of PhoneConnectionWebrtc by ID. ToMap collects constructors to map. func PhoneConnectionClassArray.AsPhoneConnectionWebrtc() (to PhoneConnectionWebrtcArray) func PhoneConnectionWebrtcArray.Retain(keep func(x PhoneConnectionWebrtc) bool) PhoneConnectionWebrtcArray func PhoneConnectionWebrtcArray.Sort(less func(a, b PhoneConnectionWebrtc) bool) PhoneConnectionWebrtcArray func PhoneConnectionWebrtcArray.SortByID() PhoneConnectionWebrtcArray func PhoneConnectionWebrtcArray.SortStable(less func(a, b PhoneConnectionWebrtc) bool) PhoneConnectionWebrtcArray func PhoneConnectionWebrtcArray.SortStableByID() PhoneConnectionWebrtcArray
PhoneCreateGroupCallRequest represents TL type `phone.createGroupCall#48cdc6d8`. Create a group call or livestream See https://core.telegram.org/method/phone.createGroupCall for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Associate the group call or livestream to the provided group/supergroup/channel¹ Links: 1) https://core.telegram.org/api/channel Unique client message ID required to prevent creation of duplicate group calls Whether RTMP stream support should be enabled: only the group/supergroup/channel¹ owner can use this flag. Links: 1) https://core.telegram.org/api/channel For scheduled group call or livestreams, the absolute date when the group call will start Use SetScheduleDate and GetScheduleDate helpers. Call title Use SetTitle and GetTitle helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneCreateGroupCallRequest from given interface. GetPeer returns value of Peer field. GetRandomID returns value of RandomID field. GetRtmpStream returns value of RtmpStream conditional field. GetScheduleDate returns value of ScheduleDate 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. SetFlags sets flags for non-zero fields. SetRtmpStream sets value of RtmpStream conditional field. SetScheduleDate sets value of ScheduleDate 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. (*PhoneCreateGroupCallRequest) Zero() bool *PhoneCreateGroupCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneCreateGroupCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneCreateGroupCallRequest : github.com/gotd/td/bin.Decoder *PhoneCreateGroupCallRequest : github.com/gotd/td/bin.Encoder *PhoneCreateGroupCallRequest : github.com/gotd/td/bin.Object *PhoneCreateGroupCallRequest : github.com/gotd/td/tdp.Object *PhoneCreateGroupCallRequest : fmt.Stringer func (*Client).PhoneCreateGroupCall(ctx context.Context, request *PhoneCreateGroupCallRequest) (UpdatesClass, error)
PhoneDiscardCallRequest represents TL type `phone.discardCall#b2cbc1c0`. Refuse or end running call See https://core.telegram.org/method/phone.discardCall for reference. Preferred libtgvoip relay ID Call duration Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The phone call Why was the call discarded Whether this is a video call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneDiscardCallRequest from given interface. GetConnectionID returns value of ConnectionID field. GetDuration returns value of Duration field. GetPeer returns value of Peer field. GetReason returns value of Reason field. GetVideo returns value of Video conditional field. SetFlags sets flags for non-zero fields. SetVideo sets value of Video 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. (*PhoneDiscardCallRequest) Zero() bool *PhoneDiscardCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneDiscardCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneDiscardCallRequest : github.com/gotd/td/bin.Decoder *PhoneDiscardCallRequest : github.com/gotd/td/bin.Encoder *PhoneDiscardCallRequest : github.com/gotd/td/bin.Object *PhoneDiscardCallRequest : github.com/gotd/td/tdp.Object *PhoneDiscardCallRequest : fmt.Stringer func (*Client).PhoneDiscardCall(ctx context.Context, request *PhoneDiscardCallRequest) (UpdatesClass, error)
PhoneDiscardGroupCallRequest represents TL type `phone.discardGroupCall#7a777135`. Terminate a group call See https://core.telegram.org/method/phone.discardGroupCall for reference. Group call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneDiscardGroupCallRequest from given interface. GetCall returns value of Call 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. (*PhoneDiscardGroupCallRequest) Zero() bool *PhoneDiscardGroupCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneDiscardGroupCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneDiscardGroupCallRequest : github.com/gotd/td/bin.Decoder *PhoneDiscardGroupCallRequest : github.com/gotd/td/bin.Encoder *PhoneDiscardGroupCallRequest : github.com/gotd/td/bin.Object *PhoneDiscardGroupCallRequest : github.com/gotd/td/tdp.Object *PhoneDiscardGroupCallRequest : fmt.Stringer
PhoneEditGroupCallParticipantRequest represents TL type `phone.editGroupCallParticipant#a5273abf`. Edit information about a given group call participant Note: flags¹.N?Bool² parameters can have three possible values: Links: 1. https://core.telegram.org/mtproto/TL-combinators#conditional-fields 2. https://core.telegram.org/type/Bool See https://core.telegram.org/method/phone.editGroupCallParticipant for reference. The group call Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to mute or unmute the specified participant Use SetMuted and GetMuted helpers. The group call participant (can also be the user itself) Pause or resume the screen sharing stream Use SetPresentationPaused and GetPresentationPaused helpers. Raise or lower hand Use SetRaiseHand and GetRaiseHand helpers. Pause or resume the video stream Use SetVideoPaused and GetVideoPaused helpers. Start or stop the video stream Use SetVideoStopped and GetVideoStopped helpers. New volume Use SetVolume and GetVolume helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneEditGroupCallParticipantRequest from given interface. GetCall returns value of Call field. GetMuted returns value of Muted conditional field and boolean which is true if field was set. GetParticipant returns value of Participant field. GetPresentationPaused returns value of PresentationPaused conditional field and boolean which is true if field was set. GetRaiseHand returns value of RaiseHand conditional field and boolean which is true if field was set. GetVideoPaused returns value of VideoPaused conditional field and boolean which is true if field was set. GetVideoStopped returns value of VideoStopped conditional field and boolean which is true if field was set. GetVolume returns value of Volume conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetMuted sets value of Muted conditional field. SetPresentationPaused sets value of PresentationPaused conditional field. SetRaiseHand sets value of RaiseHand conditional field. SetVideoPaused sets value of VideoPaused conditional field. SetVideoStopped sets value of VideoStopped conditional field. SetVolume sets value of Volume 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. (*PhoneEditGroupCallParticipantRequest) Zero() bool *PhoneEditGroupCallParticipantRequest : github.com/gotd/td/bin.BareDecoder *PhoneEditGroupCallParticipantRequest : github.com/gotd/td/bin.BareEncoder *PhoneEditGroupCallParticipantRequest : github.com/gotd/td/bin.Decoder *PhoneEditGroupCallParticipantRequest : github.com/gotd/td/bin.Encoder *PhoneEditGroupCallParticipantRequest : github.com/gotd/td/bin.Object *PhoneEditGroupCallParticipantRequest : github.com/gotd/td/tdp.Object *PhoneEditGroupCallParticipantRequest : fmt.Stringer func (*Client).PhoneEditGroupCallParticipant(ctx context.Context, request *PhoneEditGroupCallParticipantRequest) (UpdatesClass, error)
PhoneEditGroupCallTitleRequest represents TL type `phone.editGroupCallTitle#1ca6ac0a`. Edit the title of a group call or livestream See https://core.telegram.org/method/phone.editGroupCallTitle for reference. Group call New title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneEditGroupCallTitleRequest from given interface. GetCall returns value of Call field. GetTitle returns value of Title 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. (*PhoneEditGroupCallTitleRequest) Zero() bool *PhoneEditGroupCallTitleRequest : github.com/gotd/td/bin.BareDecoder *PhoneEditGroupCallTitleRequest : github.com/gotd/td/bin.BareEncoder *PhoneEditGroupCallTitleRequest : github.com/gotd/td/bin.Decoder *PhoneEditGroupCallTitleRequest : github.com/gotd/td/bin.Encoder *PhoneEditGroupCallTitleRequest : github.com/gotd/td/bin.Object *PhoneEditGroupCallTitleRequest : github.com/gotd/td/tdp.Object *PhoneEditGroupCallTitleRequest : fmt.Stringer func (*Client).PhoneEditGroupCallTitle(ctx context.Context, request *PhoneEditGroupCallTitleRequest) (UpdatesClass, error)
PhoneExportedGroupCallInvite represents TL type `phone.exportedGroupCallInvite#204bd158`. An invite to a group call or livestream See https://core.telegram.org/constructor/phone.exportedGroupCallInvite for reference. The story deep link¹. Links: 1) https://core.telegram.org/api/stories#story-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneExportedGroupCallInvite 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. (*PhoneExportedGroupCallInvite) Zero() bool *PhoneExportedGroupCallInvite : github.com/gotd/td/bin.BareDecoder *PhoneExportedGroupCallInvite : github.com/gotd/td/bin.BareEncoder *PhoneExportedGroupCallInvite : github.com/gotd/td/bin.Decoder *PhoneExportedGroupCallInvite : github.com/gotd/td/bin.Encoder *PhoneExportedGroupCallInvite : github.com/gotd/td/bin.Object *PhoneExportedGroupCallInvite : github.com/gotd/td/tdp.Object *PhoneExportedGroupCallInvite : fmt.Stringer func (*Client).PhoneExportGroupCallInvite(ctx context.Context, request *PhoneExportGroupCallInviteRequest) (*PhoneExportedGroupCallInvite, error)
PhoneExportGroupCallInviteRequest represents TL type `phone.exportGroupCallInvite#e6aa647f`. Get an invite link¹ for a group call or livestream Links: 1. https://core.telegram.org/api/links#video-chat-livestream-links See https://core.telegram.org/method/phone.exportGroupCallInvite for reference. The group call For livestreams or muted group chats, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand). 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 PhoneExportGroupCallInviteRequest from given interface. GetCall returns value of Call field. GetCanSelfUnmute returns value of CanSelfUnmute conditional field. SetCanSelfUnmute sets value of CanSelfUnmute 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. (*PhoneExportGroupCallInviteRequest) Zero() bool *PhoneExportGroupCallInviteRequest : github.com/gotd/td/bin.BareDecoder *PhoneExportGroupCallInviteRequest : github.com/gotd/td/bin.BareEncoder *PhoneExportGroupCallInviteRequest : github.com/gotd/td/bin.Decoder *PhoneExportGroupCallInviteRequest : github.com/gotd/td/bin.Encoder *PhoneExportGroupCallInviteRequest : github.com/gotd/td/bin.Object *PhoneExportGroupCallInviteRequest : github.com/gotd/td/tdp.Object *PhoneExportGroupCallInviteRequest : fmt.Stringer func (*Client).PhoneExportGroupCallInvite(ctx context.Context, request *PhoneExportGroupCallInviteRequest) (*PhoneExportedGroupCallInvite, error)
PhoneGetCallConfigRequest represents TL type `phone.getCallConfig#55451fa9`. Get phone call configuration to be passed to libtgvoip's shared config See https://core.telegram.org/method/phone.getCallConfig 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. (*PhoneGetCallConfigRequest) Zero() bool *PhoneGetCallConfigRequest : github.com/gotd/td/bin.BareDecoder *PhoneGetCallConfigRequest : github.com/gotd/td/bin.BareEncoder *PhoneGetCallConfigRequest : github.com/gotd/td/bin.Decoder *PhoneGetCallConfigRequest : github.com/gotd/td/bin.Encoder *PhoneGetCallConfigRequest : github.com/gotd/td/bin.Object *PhoneGetCallConfigRequest : github.com/gotd/td/tdp.Object *PhoneGetCallConfigRequest : fmt.Stringer
PhoneGetGroupCallJoinAsRequest represents TL type `phone.getGroupCallJoinAs#ef7c213a`. Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel. See https://core.telegram.org/method/phone.getGroupCallJoinAs for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneGetGroupCallJoinAsRequest 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. (*PhoneGetGroupCallJoinAsRequest) Zero() bool *PhoneGetGroupCallJoinAsRequest : github.com/gotd/td/bin.BareDecoder *PhoneGetGroupCallJoinAsRequest : github.com/gotd/td/bin.BareEncoder *PhoneGetGroupCallJoinAsRequest : github.com/gotd/td/bin.Decoder *PhoneGetGroupCallJoinAsRequest : github.com/gotd/td/bin.Encoder *PhoneGetGroupCallJoinAsRequest : github.com/gotd/td/bin.Object *PhoneGetGroupCallJoinAsRequest : github.com/gotd/td/tdp.Object *PhoneGetGroupCallJoinAsRequest : fmt.Stringer
PhoneGetGroupCallRequest represents TL type `phone.getGroupCall#41845db`. Get info about a group call See https://core.telegram.org/method/phone.getGroupCall for reference. The group call Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneGetGroupCallRequest from given interface. GetCall returns value of Call field. GetLimit returns value of Limit 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. (*PhoneGetGroupCallRequest) Zero() bool *PhoneGetGroupCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneGetGroupCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneGetGroupCallRequest : github.com/gotd/td/bin.Decoder *PhoneGetGroupCallRequest : github.com/gotd/td/bin.Encoder *PhoneGetGroupCallRequest : github.com/gotd/td/bin.Object *PhoneGetGroupCallRequest : github.com/gotd/td/tdp.Object *PhoneGetGroupCallRequest : fmt.Stringer func (*Client).PhoneGetGroupCall(ctx context.Context, request *PhoneGetGroupCallRequest) (*PhoneGroupCall, error)
PhoneGetGroupCallStreamChannelsRequest represents TL type `phone.getGroupCallStreamChannels#1ab21940`. Get info about RTMP streams in a group call or livestream. This method should be invoked to the same group/channel-related DC used for downloading livestream chunks¹. As usual, the media DC is preferred, if available. Links: 1. https://core.telegram.org/api/files#downloading-files See https://core.telegram.org/method/phone.getGroupCallStreamChannels for reference. Group call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneGetGroupCallStreamChannelsRequest from given interface. GetCall returns value of Call 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. (*PhoneGetGroupCallStreamChannelsRequest) Zero() bool *PhoneGetGroupCallStreamChannelsRequest : github.com/gotd/td/bin.BareDecoder *PhoneGetGroupCallStreamChannelsRequest : github.com/gotd/td/bin.BareEncoder *PhoneGetGroupCallStreamChannelsRequest : github.com/gotd/td/bin.Decoder *PhoneGetGroupCallStreamChannelsRequest : github.com/gotd/td/bin.Encoder *PhoneGetGroupCallStreamChannelsRequest : github.com/gotd/td/bin.Object *PhoneGetGroupCallStreamChannelsRequest : github.com/gotd/td/tdp.Object *PhoneGetGroupCallStreamChannelsRequest : fmt.Stringer
PhoneGetGroupCallStreamRtmpURLRequest represents TL type `phone.getGroupCallStreamRtmpUrl#deb3abbf`. Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with phone.createGroupCall¹ (the rtmp_stream flag must be set). Links: 1. https://core.telegram.org/method/phone.createGroupCall See https://core.telegram.org/method/phone.getGroupCallStreamRtmpUrl for reference. Peer to livestream into Whether to revoke the previous stream key or simply return the existing one Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneGetGroupCallStreamRtmpURLRequest from given interface. GetPeer returns value of Peer field. GetRevoke returns value of Revoke 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. (*PhoneGetGroupCallStreamRtmpURLRequest) Zero() bool *PhoneGetGroupCallStreamRtmpURLRequest : github.com/gotd/td/bin.BareDecoder *PhoneGetGroupCallStreamRtmpURLRequest : github.com/gotd/td/bin.BareEncoder *PhoneGetGroupCallStreamRtmpURLRequest : github.com/gotd/td/bin.Decoder *PhoneGetGroupCallStreamRtmpURLRequest : github.com/gotd/td/bin.Encoder *PhoneGetGroupCallStreamRtmpURLRequest : github.com/gotd/td/bin.Object *PhoneGetGroupCallStreamRtmpURLRequest : github.com/gotd/td/tdp.Object *PhoneGetGroupCallStreamRtmpURLRequest : fmt.Stringer func (*Client).PhoneGetGroupCallStreamRtmpURL(ctx context.Context, request *PhoneGetGroupCallStreamRtmpURLRequest) (*PhoneGroupCallStreamRtmpURL, error)
PhoneGetGroupParticipantsRequest represents TL type `phone.getGroupParticipants#c558d8ab`. Get group call participants See https://core.telegram.org/method/phone.getGroupParticipants for reference. Group call If specified, will fetch group participant info about the specified peers Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offset for results, taken from the next_offset field of phone.groupParticipants¹, initially an empty string. Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in phone.groupParticipants² if it is empty, to avoid an infinite loop. Links: 1) https://core.telegram.org/constructor/phone.groupParticipants 2) https://core.telegram.org/constructor/phone.groupParticipants If specified, will fetch group participant info about the specified WebRTC source IDs Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneGetGroupParticipantsRequest from given interface. GetCall returns value of Call field. GetIDs returns value of IDs field. GetLimit returns value of Limit field. GetOffset returns value of Offset field. GetSources returns value of Sources field. MapIDs returns field IDs wrapped in InputPeerClassArray 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. (*PhoneGetGroupParticipantsRequest) Zero() bool *PhoneGetGroupParticipantsRequest : github.com/gotd/td/bin.BareDecoder *PhoneGetGroupParticipantsRequest : github.com/gotd/td/bin.BareEncoder *PhoneGetGroupParticipantsRequest : github.com/gotd/td/bin.Decoder *PhoneGetGroupParticipantsRequest : github.com/gotd/td/bin.Encoder *PhoneGetGroupParticipantsRequest : github.com/gotd/td/bin.Object *PhoneGetGroupParticipantsRequest : github.com/gotd/td/tdp.Object *PhoneGetGroupParticipantsRequest : fmt.Stringer func (*Client).PhoneGetGroupParticipants(ctx context.Context, request *PhoneGetGroupParticipantsRequest) (*PhoneGroupParticipants, error)
PhoneGroupCall represents TL type `phone.groupCall#9e727aad`. Contains info about a group call, and partial info about its participants. See https://core.telegram.org/constructor/phone.groupCall for reference. Info about the group call Chats mentioned in the participants vector A partial list of participants. Next offset to use when fetching the remaining participants using phone getGroupParticipants¹ Links: 1) https://core.telegram.org/method/phone.getGroupParticipants Users mentioned in the participants vector Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneGroupCall from given interface. GetCall returns value of Call field. GetChats returns value of Chats field. GetParticipants returns value of Participants field. GetParticipantsNextOffset returns value of ParticipantsNextOffset field. GetUsers returns value of Users 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. (*PhoneGroupCall) Zero() bool *PhoneGroupCall : github.com/gotd/td/bin.BareDecoder *PhoneGroupCall : github.com/gotd/td/bin.BareEncoder *PhoneGroupCall : github.com/gotd/td/bin.Decoder *PhoneGroupCall : github.com/gotd/td/bin.Encoder *PhoneGroupCall : github.com/gotd/td/bin.Object *PhoneGroupCall : github.com/gotd/td/tdp.Object *PhoneGroupCall : fmt.Stringer func (*Client).PhoneGetGroupCall(ctx context.Context, request *PhoneGetGroupCallRequest) (*PhoneGroupCall, error)
PhoneGroupCallStreamChannels represents TL type `phone.groupCallStreamChannels#d0e482b2`. Info about RTMP streams in a group call or livestream See https://core.telegram.org/constructor/phone.groupCallStreamChannels for reference. RTMP streams Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneGroupCallStreamChannels from given interface. GetChannels returns value of Channels 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. (*PhoneGroupCallStreamChannels) Zero() bool *PhoneGroupCallStreamChannels : github.com/gotd/td/bin.BareDecoder *PhoneGroupCallStreamChannels : github.com/gotd/td/bin.BareEncoder *PhoneGroupCallStreamChannels : github.com/gotd/td/bin.Decoder *PhoneGroupCallStreamChannels : github.com/gotd/td/bin.Encoder *PhoneGroupCallStreamChannels : github.com/gotd/td/bin.Object *PhoneGroupCallStreamChannels : github.com/gotd/td/tdp.Object *PhoneGroupCallStreamChannels : fmt.Stringer func (*Client).PhoneGetGroupCallStreamChannels(ctx context.Context, call InputGroupCall) (*PhoneGroupCallStreamChannels, error)
PhoneGroupCallStreamRtmpURL represents TL type `phone.groupCallStreamRtmpUrl#2dbf3432`. RTMP URL and stream key to be used in streaming software See https://core.telegram.org/constructor/phone.groupCallStreamRtmpUrl for reference. Stream key RTMP URL Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneGroupCallStreamRtmpURL from given interface. GetKey returns value of Key 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. (*PhoneGroupCallStreamRtmpURL) Zero() bool *PhoneGroupCallStreamRtmpURL : github.com/gotd/td/bin.BareDecoder *PhoneGroupCallStreamRtmpURL : github.com/gotd/td/bin.BareEncoder *PhoneGroupCallStreamRtmpURL : github.com/gotd/td/bin.Decoder *PhoneGroupCallStreamRtmpURL : github.com/gotd/td/bin.Encoder *PhoneGroupCallStreamRtmpURL : github.com/gotd/td/bin.Object *PhoneGroupCallStreamRtmpURL : github.com/gotd/td/tdp.Object *PhoneGroupCallStreamRtmpURL : fmt.Stringer func (*Client).PhoneGetGroupCallStreamRtmpURL(ctx context.Context, request *PhoneGetGroupCallStreamRtmpURLRequest) (*PhoneGroupCallStreamRtmpURL, error)
PhoneGroupParticipants represents TL type `phone.groupParticipants#f47751b6`. Info about the participants of a group call or livestream See https://core.telegram.org/constructor/phone.groupParticipants for reference. Mentioned chats Number of participants If not empty, the specified list of participants is partial, and more participants can be fetched specifying this parameter as offset in phone.getGroupParticipants¹. Links: 1) https://core.telegram.org/method/phone.getGroupParticipants List of participants Mentioned users Version info Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneGroupParticipants from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetNextOffset returns value of NextOffset field. GetParticipants returns value of Participants field. GetUsers returns value of Users field. GetVersion returns value of Version 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. (*PhoneGroupParticipants) Zero() bool *PhoneGroupParticipants : github.com/gotd/td/bin.BareDecoder *PhoneGroupParticipants : github.com/gotd/td/bin.BareEncoder *PhoneGroupParticipants : github.com/gotd/td/bin.Decoder *PhoneGroupParticipants : github.com/gotd/td/bin.Encoder *PhoneGroupParticipants : github.com/gotd/td/bin.Object *PhoneGroupParticipants : github.com/gotd/td/tdp.Object *PhoneGroupParticipants : fmt.Stringer func (*Client).PhoneGetGroupParticipants(ctx context.Context, request *PhoneGetGroupParticipantsRequest) (*PhoneGroupParticipants, error)
PhoneInviteToGroupCallRequest represents TL type `phone.inviteToGroupCall#7b393160`. Invite a set of users to a group call. See https://core.telegram.org/method/phone.inviteToGroupCall for reference. The group call The users to invite. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneInviteToGroupCallRequest from given interface. GetCall returns value of Call field. GetUsers returns value of Users field. MapUsers returns field Users wrapped in InputUserClassArray 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. (*PhoneInviteToGroupCallRequest) Zero() bool *PhoneInviteToGroupCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneInviteToGroupCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneInviteToGroupCallRequest : github.com/gotd/td/bin.Decoder *PhoneInviteToGroupCallRequest : github.com/gotd/td/bin.Encoder *PhoneInviteToGroupCallRequest : github.com/gotd/td/bin.Object *PhoneInviteToGroupCallRequest : github.com/gotd/td/tdp.Object *PhoneInviteToGroupCallRequest : fmt.Stringer func (*Client).PhoneInviteToGroupCall(ctx context.Context, request *PhoneInviteToGroupCallRequest) (UpdatesClass, error)
PhoneJoinAsPeers represents TL type `phone.joinAsPeers#afe5623f`. A list of peers that can be used to join a group call, presenting yourself as a specific user/channel. See https://core.telegram.org/constructor/phone.joinAsPeers for reference. Chats mentioned in the peers vector Peers Users mentioned in the peers vector Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneJoinAsPeers from given interface. GetChats returns value of Chats field. GetPeers returns value of Peers field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapPeers returns field Peers wrapped in PeerClassArray 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. (*PhoneJoinAsPeers) Zero() bool *PhoneJoinAsPeers : github.com/gotd/td/bin.BareDecoder *PhoneJoinAsPeers : github.com/gotd/td/bin.BareEncoder *PhoneJoinAsPeers : github.com/gotd/td/bin.Decoder *PhoneJoinAsPeers : github.com/gotd/td/bin.Encoder *PhoneJoinAsPeers : github.com/gotd/td/bin.Object *PhoneJoinAsPeers : github.com/gotd/td/tdp.Object *PhoneJoinAsPeers : fmt.Stringer func (*Client).PhoneGetGroupCallJoinAs(ctx context.Context, peer InputPeerClass) (*PhoneJoinAsPeers, error)
PhoneJoinGroupCallPresentationRequest represents TL type `phone.joinGroupCallPresentation#cbea6bc4`. Start screen sharing in a call See https://core.telegram.org/method/phone.joinGroupCallPresentation for reference. The group call WebRTC parameters Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneJoinGroupCallPresentationRequest from given interface. GetCall returns value of Call field. GetParams returns value of Params 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. (*PhoneJoinGroupCallPresentationRequest) Zero() bool *PhoneJoinGroupCallPresentationRequest : github.com/gotd/td/bin.BareDecoder *PhoneJoinGroupCallPresentationRequest : github.com/gotd/td/bin.BareEncoder *PhoneJoinGroupCallPresentationRequest : github.com/gotd/td/bin.Decoder *PhoneJoinGroupCallPresentationRequest : github.com/gotd/td/bin.Encoder *PhoneJoinGroupCallPresentationRequest : github.com/gotd/td/bin.Object *PhoneJoinGroupCallPresentationRequest : github.com/gotd/td/tdp.Object *PhoneJoinGroupCallPresentationRequest : fmt.Stringer func (*Client).PhoneJoinGroupCallPresentation(ctx context.Context, request *PhoneJoinGroupCallPresentationRequest) (UpdatesClass, error)
PhoneJoinGroupCallRequest represents TL type `phone.joinGroupCall#b132ff7b`. Join a group call See https://core.telegram.org/method/phone.joinGroupCall for reference. The group call Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The invitation hash from the invite link »¹, if provided allows speaking in a livestream or muted group chat. Links: 1) https://core.telegram.org/api/links#video-chat-livestream-links Use SetInviteHash and GetInviteHash helpers. Join the group call, presenting yourself as the specified user/channel If set, the user will be muted by default upon joining. WebRTC parameters If set, the user's video will be disabled by default upon joining. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneJoinGroupCallRequest from given interface. GetCall returns value of Call field. GetInviteHash returns value of InviteHash conditional field and boolean which is true if field was set. GetJoinAs returns value of JoinAs field. GetMuted returns value of Muted conditional field. GetParams returns value of Params field. GetVideoStopped returns value of VideoStopped conditional field. SetFlags sets flags for non-zero fields. SetInviteHash sets value of InviteHash conditional field. SetMuted sets value of Muted conditional field. SetVideoStopped sets value of VideoStopped 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. (*PhoneJoinGroupCallRequest) Zero() bool *PhoneJoinGroupCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneJoinGroupCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneJoinGroupCallRequest : github.com/gotd/td/bin.Decoder *PhoneJoinGroupCallRequest : github.com/gotd/td/bin.Encoder *PhoneJoinGroupCallRequest : github.com/gotd/td/bin.Object *PhoneJoinGroupCallRequest : github.com/gotd/td/tdp.Object *PhoneJoinGroupCallRequest : fmt.Stringer func (*Client).PhoneJoinGroupCall(ctx context.Context, request *PhoneJoinGroupCallRequest) (UpdatesClass, error)
PhoneLeaveGroupCallPresentationRequest represents TL type `phone.leaveGroupCallPresentation#1c50d144`. Stop screen sharing in a group call See https://core.telegram.org/method/phone.leaveGroupCallPresentation for reference. Group call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneLeaveGroupCallPresentationRequest from given interface. GetCall returns value of Call 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. (*PhoneLeaveGroupCallPresentationRequest) Zero() bool *PhoneLeaveGroupCallPresentationRequest : github.com/gotd/td/bin.BareDecoder *PhoneLeaveGroupCallPresentationRequest : github.com/gotd/td/bin.BareEncoder *PhoneLeaveGroupCallPresentationRequest : github.com/gotd/td/bin.Decoder *PhoneLeaveGroupCallPresentationRequest : github.com/gotd/td/bin.Encoder *PhoneLeaveGroupCallPresentationRequest : github.com/gotd/td/bin.Object *PhoneLeaveGroupCallPresentationRequest : github.com/gotd/td/tdp.Object *PhoneLeaveGroupCallPresentationRequest : fmt.Stringer
PhoneLeaveGroupCallRequest represents TL type `phone.leaveGroupCall#500377f9`. Leave a group call See https://core.telegram.org/method/phone.leaveGroupCall for reference. The group call Your source ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneLeaveGroupCallRequest from given interface. GetCall returns value of Call field. GetSource returns value of Source 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. (*PhoneLeaveGroupCallRequest) Zero() bool *PhoneLeaveGroupCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneLeaveGroupCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneLeaveGroupCallRequest : github.com/gotd/td/bin.Decoder *PhoneLeaveGroupCallRequest : github.com/gotd/td/bin.Encoder *PhoneLeaveGroupCallRequest : github.com/gotd/td/bin.Object *PhoneLeaveGroupCallRequest : github.com/gotd/td/tdp.Object *PhoneLeaveGroupCallRequest : fmt.Stringer func (*Client).PhoneLeaveGroupCall(ctx context.Context, request *PhoneLeaveGroupCallRequest) (UpdatesClass, error)
PhonePhoneCall represents TL type `phone.phoneCall#ec82e140`. A VoIP phone call See https://core.telegram.org/constructor/phone.phoneCall for reference. The VoIP phone call VoIP phone call participants Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhonePhoneCall from given interface. GetPhoneCall returns value of PhoneCall field. GetPhoneCallAsNotEmpty returns mapped value of PhoneCall 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. (*PhonePhoneCall) Zero() bool *PhonePhoneCall : github.com/gotd/td/bin.BareDecoder *PhonePhoneCall : github.com/gotd/td/bin.BareEncoder *PhonePhoneCall : github.com/gotd/td/bin.Decoder *PhonePhoneCall : github.com/gotd/td/bin.Encoder *PhonePhoneCall : github.com/gotd/td/bin.Object *PhonePhoneCall : github.com/gotd/td/tdp.Object *PhonePhoneCall : fmt.Stringer func (*Client).PhoneAcceptCall(ctx context.Context, request *PhoneAcceptCallRequest) (*PhonePhoneCall, error) func (*Client).PhoneConfirmCall(ctx context.Context, request *PhoneConfirmCallRequest) (*PhonePhoneCall, error) func (*Client).PhoneRequestCall(ctx context.Context, request *PhoneRequestCallRequest) (*PhonePhoneCall, error)
PhoneReceivedCallRequest represents TL type `phone.receivedCall#17d54f61`. Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended. See https://core.telegram.org/method/phone.receivedCall for reference. The phone call we're currently in Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneReceivedCallRequest 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. (*PhoneReceivedCallRequest) Zero() bool *PhoneReceivedCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneReceivedCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneReceivedCallRequest : github.com/gotd/td/bin.Decoder *PhoneReceivedCallRequest : github.com/gotd/td/bin.Encoder *PhoneReceivedCallRequest : github.com/gotd/td/bin.Object *PhoneReceivedCallRequest : github.com/gotd/td/tdp.Object *PhoneReceivedCallRequest : fmt.Stringer
PhoneRequestCallRequest represents TL type `phone.requestCall#42ff96ed`. Start a telegram phone call See https://core.telegram.org/method/phone.requestCall for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Parameter for E2E encryption key exchange »¹ Links: 1) https://core.telegram.org/api/end-to-end/voice-calls Phone call settings Random ID to avoid resending the same object Destination of the phone call Whether to start a video call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneRequestCallRequest from given interface. GetGAHash returns value of GAHash field. GetProtocol returns value of Protocol field. GetRandomID returns value of RandomID field. GetUserID returns value of UserID field. GetVideo returns value of Video conditional field. SetFlags sets flags for non-zero fields. SetVideo sets value of Video 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. (*PhoneRequestCallRequest) Zero() bool *PhoneRequestCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneRequestCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneRequestCallRequest : github.com/gotd/td/bin.Decoder *PhoneRequestCallRequest : github.com/gotd/td/bin.Encoder *PhoneRequestCallRequest : github.com/gotd/td/bin.Object *PhoneRequestCallRequest : github.com/gotd/td/tdp.Object *PhoneRequestCallRequest : fmt.Stringer func (*Client).PhoneRequestCall(ctx context.Context, request *PhoneRequestCallRequest) (*PhonePhoneCall, error)
PhoneSaveCallDebugRequest represents TL type `phone.saveCallDebug#277add7e`. Send phone call debug data to server See https://core.telegram.org/method/phone.saveCallDebug for reference. Debug statistics obtained from libtgvoip Phone call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneSaveCallDebugRequest from given interface. GetDebug returns value of Debug 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. (*PhoneSaveCallDebugRequest) Zero() bool *PhoneSaveCallDebugRequest : github.com/gotd/td/bin.BareDecoder *PhoneSaveCallDebugRequest : github.com/gotd/td/bin.BareEncoder *PhoneSaveCallDebugRequest : github.com/gotd/td/bin.Decoder *PhoneSaveCallDebugRequest : github.com/gotd/td/bin.Encoder *PhoneSaveCallDebugRequest : github.com/gotd/td/bin.Object *PhoneSaveCallDebugRequest : github.com/gotd/td/tdp.Object *PhoneSaveCallDebugRequest : fmt.Stringer func (*Client).PhoneSaveCallDebug(ctx context.Context, request *PhoneSaveCallDebugRequest) (bool, error)
PhoneSaveCallLogRequest represents TL type `phone.saveCallLog#41248786`. Save phone call debug information See https://core.telegram.org/method/phone.saveCallLog for reference. Logs Phone call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneSaveCallLogRequest from given interface. GetFile returns value of File 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. (*PhoneSaveCallLogRequest) Zero() bool *PhoneSaveCallLogRequest : github.com/gotd/td/bin.BareDecoder *PhoneSaveCallLogRequest : github.com/gotd/td/bin.BareEncoder *PhoneSaveCallLogRequest : github.com/gotd/td/bin.Decoder *PhoneSaveCallLogRequest : github.com/gotd/td/bin.Encoder *PhoneSaveCallLogRequest : github.com/gotd/td/bin.Object *PhoneSaveCallLogRequest : github.com/gotd/td/tdp.Object *PhoneSaveCallLogRequest : fmt.Stringer func (*Client).PhoneSaveCallLog(ctx context.Context, request *PhoneSaveCallLogRequest) (bool, error)
PhoneSaveDefaultGroupCallJoinAsRequest represents TL type `phone.saveDefaultGroupCallJoinAs#575e1f8c`. Set the default peer that will be used to join a group call in a specific dialog. See https://core.telegram.org/method/phone.saveDefaultGroupCallJoinAs for reference. The default peer that will be used to join group calls in this dialog, presenting yourself as a specific user/channel. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneSaveDefaultGroupCallJoinAsRequest from given interface. GetJoinAs returns value of JoinAs 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. (*PhoneSaveDefaultGroupCallJoinAsRequest) Zero() bool *PhoneSaveDefaultGroupCallJoinAsRequest : github.com/gotd/td/bin.BareDecoder *PhoneSaveDefaultGroupCallJoinAsRequest : github.com/gotd/td/bin.BareEncoder *PhoneSaveDefaultGroupCallJoinAsRequest : github.com/gotd/td/bin.Decoder *PhoneSaveDefaultGroupCallJoinAsRequest : github.com/gotd/td/bin.Encoder *PhoneSaveDefaultGroupCallJoinAsRequest : github.com/gotd/td/bin.Object *PhoneSaveDefaultGroupCallJoinAsRequest : github.com/gotd/td/tdp.Object *PhoneSaveDefaultGroupCallJoinAsRequest : fmt.Stringer func (*Client).PhoneSaveDefaultGroupCallJoinAs(ctx context.Context, request *PhoneSaveDefaultGroupCallJoinAsRequest) (bool, error)
PhoneSendSignalingDataRequest represents TL type `phone.sendSignalingData#ff7a9383`. Send VoIP signaling data See https://core.telegram.org/method/phone.sendSignalingData for reference. Signaling payload Phone call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneSendSignalingDataRequest from given interface. GetData returns value of Data 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. (*PhoneSendSignalingDataRequest) Zero() bool *PhoneSendSignalingDataRequest : github.com/gotd/td/bin.BareDecoder *PhoneSendSignalingDataRequest : github.com/gotd/td/bin.BareEncoder *PhoneSendSignalingDataRequest : github.com/gotd/td/bin.Decoder *PhoneSendSignalingDataRequest : github.com/gotd/td/bin.Encoder *PhoneSendSignalingDataRequest : github.com/gotd/td/bin.Object *PhoneSendSignalingDataRequest : github.com/gotd/td/tdp.Object *PhoneSendSignalingDataRequest : fmt.Stringer func (*Client).PhoneSendSignalingData(ctx context.Context, request *PhoneSendSignalingDataRequest) (bool, error)
PhoneSetCallRatingRequest represents TL type `phone.setCallRating#59ead627`. Rate a call, returns info about the rating message sent to the official VoIP bot. See https://core.telegram.org/method/phone.setCallRating for reference. An additional comment Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The call to rate Rating in 1-5 stars Whether the user decided on their own initiative to rate the call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneSetCallRatingRequest from given interface. GetComment returns value of Comment field. GetPeer returns value of Peer field. GetRating returns value of Rating field. GetUserInitiative returns value of UserInitiative conditional field. SetFlags sets flags for non-zero fields. SetUserInitiative sets value of UserInitiative 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. (*PhoneSetCallRatingRequest) Zero() bool *PhoneSetCallRatingRequest : github.com/gotd/td/bin.BareDecoder *PhoneSetCallRatingRequest : github.com/gotd/td/bin.BareEncoder *PhoneSetCallRatingRequest : github.com/gotd/td/bin.Decoder *PhoneSetCallRatingRequest : github.com/gotd/td/bin.Encoder *PhoneSetCallRatingRequest : github.com/gotd/td/bin.Object *PhoneSetCallRatingRequest : github.com/gotd/td/tdp.Object *PhoneSetCallRatingRequest : fmt.Stringer func (*Client).PhoneSetCallRating(ctx context.Context, request *PhoneSetCallRatingRequest) (UpdatesClass, error)
PhoneStartScheduledGroupCallRequest represents TL type `phone.startScheduledGroupCall#5680e342`. Start a scheduled group call. See https://core.telegram.org/method/phone.startScheduledGroupCall for reference. Group call Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneStartScheduledGroupCallRequest from given interface. GetCall returns value of Call 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. (*PhoneStartScheduledGroupCallRequest) Zero() bool *PhoneStartScheduledGroupCallRequest : github.com/gotd/td/bin.BareDecoder *PhoneStartScheduledGroupCallRequest : github.com/gotd/td/bin.BareEncoder *PhoneStartScheduledGroupCallRequest : github.com/gotd/td/bin.Decoder *PhoneStartScheduledGroupCallRequest : github.com/gotd/td/bin.Encoder *PhoneStartScheduledGroupCallRequest : github.com/gotd/td/bin.Object *PhoneStartScheduledGroupCallRequest : github.com/gotd/td/tdp.Object *PhoneStartScheduledGroupCallRequest : fmt.Stringer
PhoneToggleGroupCallRecordRequest represents TL type `phone.toggleGroupCallRecord#f128c708`. Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves). See https://core.telegram.org/method/phone.toggleGroupCallRecord for reference. The group call or livestream Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to start or stop recording Recording title Use SetTitle and GetTitle helpers. Whether to also record video streams If video stream recording is enabled, whether to record in portrait or landscape mode Use SetVideoPortrait and GetVideoPortrait helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneToggleGroupCallRecordRequest from given interface. GetCall returns value of Call field. GetStart returns value of Start conditional field. GetTitle returns value of Title conditional field and boolean which is true if field was set. GetVideo returns value of Video conditional field. GetVideoPortrait returns value of VideoPortrait conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetStart sets value of Start conditional field. SetTitle sets value of Title conditional field. SetVideo sets value of Video conditional field. SetVideoPortrait sets value of VideoPortrait 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. (*PhoneToggleGroupCallRecordRequest) Zero() bool *PhoneToggleGroupCallRecordRequest : github.com/gotd/td/bin.BareDecoder *PhoneToggleGroupCallRecordRequest : github.com/gotd/td/bin.BareEncoder *PhoneToggleGroupCallRecordRequest : github.com/gotd/td/bin.Decoder *PhoneToggleGroupCallRecordRequest : github.com/gotd/td/bin.Encoder *PhoneToggleGroupCallRecordRequest : github.com/gotd/td/bin.Object *PhoneToggleGroupCallRecordRequest : github.com/gotd/td/tdp.Object *PhoneToggleGroupCallRecordRequest : fmt.Stringer func (*Client).PhoneToggleGroupCallRecord(ctx context.Context, request *PhoneToggleGroupCallRecordRequest) (UpdatesClass, error)
PhoneToggleGroupCallSettingsRequest represents TL type `phone.toggleGroupCallSettings#74bbb43d`. Change group call settings See https://core.telegram.org/method/phone.toggleGroupCallSettings for reference. Group call Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether all users will that join this group call are muted by default upon joining the group call Use SetJoinMuted and GetJoinMuted helpers. Invalidate existing invite links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneToggleGroupCallSettingsRequest from given interface. GetCall returns value of Call field. GetJoinMuted returns value of JoinMuted conditional field and boolean which is true if field was set. GetResetInviteHash returns value of ResetInviteHash conditional field. SetFlags sets flags for non-zero fields. SetJoinMuted sets value of JoinMuted conditional field. SetResetInviteHash sets value of ResetInviteHash 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. (*PhoneToggleGroupCallSettingsRequest) Zero() bool *PhoneToggleGroupCallSettingsRequest : github.com/gotd/td/bin.BareDecoder *PhoneToggleGroupCallSettingsRequest : github.com/gotd/td/bin.BareEncoder *PhoneToggleGroupCallSettingsRequest : github.com/gotd/td/bin.Decoder *PhoneToggleGroupCallSettingsRequest : github.com/gotd/td/bin.Encoder *PhoneToggleGroupCallSettingsRequest : github.com/gotd/td/bin.Object *PhoneToggleGroupCallSettingsRequest : github.com/gotd/td/tdp.Object *PhoneToggleGroupCallSettingsRequest : fmt.Stringer func (*Client).PhoneToggleGroupCallSettings(ctx context.Context, request *PhoneToggleGroupCallSettingsRequest) (UpdatesClass, error)
PhoneToggleGroupCallStartSubscriptionRequest represents TL type `phone.toggleGroupCallStartSubscription#219c34e6`. Subscribe or unsubscribe to a scheduled group call See https://core.telegram.org/method/phone.toggleGroupCallStartSubscription for reference. Scheduled group call Enable or disable subscription Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhoneToggleGroupCallStartSubscriptionRequest from given interface. GetCall returns value of Call field. GetSubscribed returns value of Subscribed 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. (*PhoneToggleGroupCallStartSubscriptionRequest) Zero() bool *PhoneToggleGroupCallStartSubscriptionRequest : github.com/gotd/td/bin.BareDecoder *PhoneToggleGroupCallStartSubscriptionRequest : github.com/gotd/td/bin.BareEncoder *PhoneToggleGroupCallStartSubscriptionRequest : github.com/gotd/td/bin.Decoder *PhoneToggleGroupCallStartSubscriptionRequest : github.com/gotd/td/bin.Encoder *PhoneToggleGroupCallStartSubscriptionRequest : github.com/gotd/td/bin.Object *PhoneToggleGroupCallStartSubscriptionRequest : github.com/gotd/td/tdp.Object *PhoneToggleGroupCallStartSubscriptionRequest : fmt.Stringer func (*Client).PhoneToggleGroupCallStartSubscription(ctx context.Context, request *PhoneToggleGroupCallStartSubscriptionRequest) (UpdatesClass, error)
Photo represents TL type `photo#fb197a65`. Photo See https://core.telegram.org/constructor/photo for reference. Access hash DC ID to use for download Date of upload file reference¹ Links: 1) https://core.telegram.org/api/file_reference Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the photo has mask stickers attached to it ID Available sizes for download For animated profiles¹, the MPEG4 videos Links: 1) https://core.telegram.org/api/files#animated-profile-pictures Use SetVideoSizes and GetVideoSizes helpers. AsInput tries to map Photo to InputPhoto. AsNotEmpty tries to map Photo to Photo. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Photo from given interface. GetAccessHash returns value of AccessHash field. GetDCID returns value of DCID field. GetDate returns value of Date field. GetFileReference returns value of FileReference field. GetHasStickers returns value of HasStickers conditional field. GetID returns value of ID field. GetSizes returns value of Sizes field. GetVideoSizes returns value of VideoSizes conditional field and boolean which is true if field was set. MapSizes returns field Sizes wrapped in PhotoSizeClassArray helper. MapVideoSizes returns field VideoSizes wrapped in VideoSizeClassArray helper. SetFlags sets flags for non-zero fields. SetHasStickers sets value of HasStickers conditional field. SetVideoSizes sets value of VideoSizes 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. (*Photo) Zero() bool *Photo : PhotoClass *Photo : github.com/gotd/td/bin.BareDecoder *Photo : github.com/gotd/td/bin.BareEncoder *Photo : github.com/gotd/td/bin.Decoder *Photo : github.com/gotd/td/bin.Encoder *Photo : github.com/gotd/td/bin.Object *Photo : github.com/gotd/td/tdp.Object *Photo : fmt.Stringer func (*BotInfo).GetDescriptionPhotoAsNotEmpty() (*Photo, bool) func (*Game).GetPhotoAsNotEmpty() (*Photo, bool) func (*Photo).AsNotEmpty() (*Photo, bool) func PhotoArray.First() (v Photo, ok bool) func PhotoArray.Last() (v Photo, ok bool) func (*PhotoArray).Pop() (v Photo, ok bool) func (*PhotoArray).PopFirst() (v Photo, ok bool) func PhotoArray.ToMap() map[int64]Photo func PhotoClass.AsNotEmpty() (*Photo, bool) func PhotoClassArray.AppendOnlyNotEmpty(to []*Photo) []*Photo func PhotoClassArray.AsNotEmpty() (to []*Photo) func PhotoClassArray.FirstAsNotEmpty() (v *Photo, ok bool) func PhotoClassArray.LastAsNotEmpty() (v *Photo, ok bool) func PhotoClassArray.NotEmptyToMap() map[int64]*Photo func PhotoClassArray.PhotoToMap() map[int64]*Photo func (*PhotoClassArray).PopAsNotEmpty() (v *Photo, ok bool) func (*PhotoClassArray).PopFirstAsNotEmpty() (v *Photo, ok bool) func (*PhotoEmpty).AsNotEmpty() (*Photo, bool) func (*PhotosPhoto).GetPhotoAsNotEmpty() (*Photo, bool) func (*SponsoredWebPage).GetPhotoAsNotEmpty() (*Photo, bool) func (*UserFull).GetFallbackPhotoAsNotEmpty() (*Photo, bool) func (*UserFull).GetPersonalPhotoAsNotEmpty() (*Photo, bool) func (*UserFull).GetProfilePhotoAsNotEmpty() (*Photo, bool) func PhotoArray.FillMap(to map[int64]Photo) func PhotoClassArray.AppendOnlyNotEmpty(to []*Photo) []*Photo func PhotoClassArray.FillNotEmptyMap(to map[int64]*Photo) func PhotoClassArray.FillPhotoMap(to map[int64]*Photo)
PhotoArray is adapter for slice of Photo. 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 Photo. Sort sorts slice of Photo. SortByDate sorts slice of Photo by Date. SortByID sorts slice of Photo by ID. SortStable sorts slice of Photo. SortStableByDate sorts slice of Photo by Date. SortStableByID sorts slice of Photo by ID. ToMap collects constructors to map. func PhotoArray.Retain(keep func(x Photo) bool) PhotoArray func PhotoArray.Sort(less func(a, b Photo) bool) PhotoArray func PhotoArray.SortByDate() PhotoArray func PhotoArray.SortByID() PhotoArray func PhotoArray.SortStable(less func(a, b Photo) bool) PhotoArray func PhotoArray.SortStableByDate() PhotoArray func PhotoArray.SortStableByID() PhotoArray func PhotoClassArray.AsPhoto() (to PhotoArray)
Photo boxes the PhotoClass providing a helper. New group profile photo Decode implements bin.Decoder for PhotoBox. Encode implements bin.Encode for PhotoBox. *PhotoBox : github.com/gotd/td/bin.Decoder *PhotoBox : github.com/gotd/td/bin.Encoder *PhotoBox : github.com/gotd/td/bin.Object
PhotoCachedSize represents TL type `photoCachedSize#21e1ad6`. Description of an image and its content. See https://core.telegram.org/constructor/photoCachedSize for reference. Binary data, file content Image height Thumbnail type Image width AsNotEmpty tries to map PhotoCachedSize to NotEmptyPhotoSize. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotoCachedSize from given interface. GetBytes returns value of Bytes field. GetH returns value of H field. GetType returns value of Type field. GetW returns value of W 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. (*PhotoCachedSize) Zero() bool *PhotoCachedSize : NotEmptyPhotoSize *PhotoCachedSize : PhotoSizeClass *PhotoCachedSize : github.com/gotd/td/bin.BareDecoder *PhotoCachedSize : github.com/gotd/td/bin.BareEncoder *PhotoCachedSize : github.com/gotd/td/bin.Decoder *PhotoCachedSize : github.com/gotd/td/bin.Encoder *PhotoCachedSize : github.com/gotd/td/bin.Object *PhotoCachedSize : github.com/gotd/td/tdp.Object *PhotoCachedSize : fmt.Stringer func PhotoCachedSizeArray.First() (v PhotoCachedSize, ok bool) func PhotoCachedSizeArray.Last() (v PhotoCachedSize, ok bool) func (*PhotoCachedSizeArray).Pop() (v PhotoCachedSize, ok bool) func (*PhotoCachedSizeArray).PopFirst() (v PhotoCachedSize, ok bool)
PhotoCachedSizeArray is adapter for slice of PhotoCachedSize. 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 PhotoCachedSize. Sort sorts slice of PhotoCachedSize. SortStable sorts slice of PhotoCachedSize. func PhotoCachedSizeArray.Retain(keep func(x PhotoCachedSize) bool) PhotoCachedSizeArray func PhotoCachedSizeArray.Sort(less func(a, b PhotoCachedSize) bool) PhotoCachedSizeArray func PhotoCachedSizeArray.SortStable(less func(a, b PhotoCachedSize) bool) PhotoCachedSizeArray func PhotoSizeClassArray.AsPhotoCachedSize() (to PhotoCachedSizeArray)
PhotoClass represents Photo generic type. See https://core.telegram.org/type/Photo for reference. Example: g, err := tg.DecodePhoto(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PhotoEmpty: // photoEmpty#2331b22d case *tg.Photo: // photo#fb197a65 default: panic(v) } AsNotEmpty tries to map PhotoClass to Photo. ( PhotoClass) Decode(b *bin.Buffer) error ( PhotoClass) DecodeBare(b *bin.Buffer) error ( PhotoClass) Encode(b *bin.Buffer) error ( PhotoClass) EncodeBare(b *bin.Buffer) error Photo identifier 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. *Photo *PhotoEmpty PhotoClass : github.com/gotd/td/bin.BareDecoder PhotoClass : github.com/gotd/td/bin.BareEncoder PhotoClass : github.com/gotd/td/bin.Decoder PhotoClass : github.com/gotd/td/bin.Encoder PhotoClass : github.com/gotd/td/bin.Object PhotoClass : fmt.Stringer func DecodePhoto(buf *bin.Buffer) (PhotoClass, error) func (*BotApp).GetPhoto() (value PhotoClass) func (*BotInfo).GetDescriptionPhoto() (value PhotoClass, ok bool) func (*BotInlineMediaResult).GetPhoto() (value PhotoClass, ok bool) func (*ChannelAdminLogEventActionChangePhoto).GetNewPhoto() (value PhotoClass) func (*ChannelAdminLogEventActionChangePhoto).GetPrevPhoto() (value PhotoClass) func (*ChannelFull).GetChatPhoto() (value PhotoClass) func (*ChatFull).GetChatPhoto() (value PhotoClass, ok bool) func (*ChatInvite).GetPhoto() (value PhotoClass) func (*Game).GetPhoto() (value PhotoClass) func (*MessageActionChatEditPhoto).GetPhoto() (value PhotoClass) func (*MessageActionSuggestProfilePhoto).GetPhoto() (value PhotoClass) func (*MessageMediaPhoto).GetPhoto() (value PhotoClass, ok bool) func (*Page).GetPhotos() (value []PhotoClass) func PhotoClassArray.First() (v PhotoClass, ok bool) func PhotoClassArray.Last() (v PhotoClass, ok bool) func (*PhotoClassArray).Pop() (v PhotoClass, ok bool) func (*PhotoClassArray).PopFirst() (v PhotoClass, ok bool) func (*PhotosPhoto).GetPhoto() (value PhotoClass) func (*PhotosPhotos).GetPhotos() (value []PhotoClass) func PhotosPhotosClass.GetPhotos() (value []PhotoClass) func (*PhotosPhotosSlice).GetPhotos() (value []PhotoClass) func (*SponsoredWebPage).GetPhoto() (value PhotoClass, ok bool) func (*UserFull).GetFallbackPhoto() (value PhotoClass, ok bool) func (*UserFull).GetPersonalPhoto() (value PhotoClass, ok bool) func (*UserFull).GetProfilePhoto() (value PhotoClass, ok bool) func (*WebPage).GetPhoto() (value PhotoClass, ok bool) func (*BotInfo).SetDescriptionPhoto(value PhotoClass) func (*BotInlineMediaResult).SetPhoto(value PhotoClass) func (*ChatFull).SetChatPhoto(value PhotoClass) func (*MessageMediaPhoto).SetPhoto(value PhotoClass) func (*SponsoredWebPage).SetPhoto(value PhotoClass) func (*UserFull).SetFallbackPhoto(value PhotoClass) func (*UserFull).SetPersonalPhoto(value PhotoClass) func (*UserFull).SetProfilePhoto(value PhotoClass) func (*WebPage).SetPhoto(value PhotoClass)
PhotoClassArray is adapter for slice of PhotoClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsNotEmpty returns copy with only NotEmpty constructors. AsPhoto returns copy with only Photo constructors. AsPhotoEmpty returns copy with only PhotoEmpty constructors. FillNotEmptyMap fills only NotEmpty constructors to given map. FillPhotoEmptyMap fills only PhotoEmpty constructors to given map. FillPhotoMap fills only Photo constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. PhotoEmptyToMap collects only PhotoEmpty constructors to map. PhotoToMap collects only Photo constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of PhotoClass. Sort sorts slice of PhotoClass. SortByID sorts slice of PhotoClass by ID. SortStable sorts slice of PhotoClass. SortStableByID sorts slice of PhotoClass by ID. func (*Page).MapPhotos() (value PhotoClassArray) func PhotoClassArray.Retain(keep func(x PhotoClass) bool) PhotoClassArray func PhotoClassArray.Sort(less func(a, b PhotoClass) bool) PhotoClassArray func PhotoClassArray.SortByID() PhotoClassArray func PhotoClassArray.SortStable(less func(a, b PhotoClass) bool) PhotoClassArray func PhotoClassArray.SortStableByID() PhotoClassArray func (*PhotosPhotos).MapPhotos() (value PhotoClassArray) func PhotosPhotosClass.MapPhotos() (value PhotoClassArray) func (*PhotosPhotosSlice).MapPhotos() (value PhotoClassArray)
PhotoEmpty represents TL type `photoEmpty#2331b22d`. Empty constructor, non-existent photo See https://core.telegram.org/constructor/photoEmpty for reference. Takeout ID AsNotEmpty tries to map PhotoEmpty to Photo. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotoEmpty 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. (*PhotoEmpty) Zero() bool *PhotoEmpty : PhotoClass *PhotoEmpty : github.com/gotd/td/bin.BareDecoder *PhotoEmpty : github.com/gotd/td/bin.BareEncoder *PhotoEmpty : github.com/gotd/td/bin.Decoder *PhotoEmpty : github.com/gotd/td/bin.Encoder *PhotoEmpty : github.com/gotd/td/bin.Object *PhotoEmpty : github.com/gotd/td/tdp.Object *PhotoEmpty : fmt.Stringer func PhotoClassArray.PhotoEmptyToMap() map[int64]*PhotoEmpty func PhotoEmptyArray.First() (v PhotoEmpty, ok bool) func PhotoEmptyArray.Last() (v PhotoEmpty, ok bool) func (*PhotoEmptyArray).Pop() (v PhotoEmpty, ok bool) func (*PhotoEmptyArray).PopFirst() (v PhotoEmpty, ok bool) func PhotoEmptyArray.ToMap() map[int64]PhotoEmpty func PhotoClassArray.FillPhotoEmptyMap(to map[int64]*PhotoEmpty) func PhotoEmptyArray.FillMap(to map[int64]PhotoEmpty)
PhotoEmptyArray is adapter for slice of PhotoEmpty. 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 PhotoEmpty. Sort sorts slice of PhotoEmpty. SortByID sorts slice of PhotoEmpty by ID. SortStable sorts slice of PhotoEmpty. SortStableByID sorts slice of PhotoEmpty by ID. ToMap collects constructors to map. func PhotoClassArray.AsPhotoEmpty() (to PhotoEmptyArray) func PhotoEmptyArray.Retain(keep func(x PhotoEmpty) bool) PhotoEmptyArray func PhotoEmptyArray.Sort(less func(a, b PhotoEmpty) bool) PhotoEmptyArray func PhotoEmptyArray.SortByID() PhotoEmptyArray func PhotoEmptyArray.SortStable(less func(a, b PhotoEmpty) bool) PhotoEmptyArray func PhotoEmptyArray.SortStableByID() PhotoEmptyArray
PhotoPathSize represents TL type `photoPathSize#d8214d41`. Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation. See https://core.telegram.org/constructor/photoPathSize for reference. Thumbnail data, see here for more info on decompression »¹ Links: 1) https://core.telegram.org/api/files#stripped-thumbnails Thumbnail type AsNotEmpty tries to map PhotoPathSize to NotEmptyPhotoSize. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotoPathSize from given interface. GetBytes returns value of Bytes field. GetType returns value of Type 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. (*PhotoPathSize) Zero() bool *PhotoPathSize : NotEmptyPhotoSize *PhotoPathSize : PhotoSizeClass *PhotoPathSize : github.com/gotd/td/bin.BareDecoder *PhotoPathSize : github.com/gotd/td/bin.BareEncoder *PhotoPathSize : github.com/gotd/td/bin.Decoder *PhotoPathSize : github.com/gotd/td/bin.Encoder *PhotoPathSize : github.com/gotd/td/bin.Object *PhotoPathSize : github.com/gotd/td/tdp.Object *PhotoPathSize : fmt.Stringer func PhotoPathSizeArray.First() (v PhotoPathSize, ok bool) func PhotoPathSizeArray.Last() (v PhotoPathSize, ok bool) func (*PhotoPathSizeArray).Pop() (v PhotoPathSize, ok bool) func (*PhotoPathSizeArray).PopFirst() (v PhotoPathSize, ok bool)
PhotoPathSizeArray is adapter for slice of PhotoPathSize. 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 PhotoPathSize. Sort sorts slice of PhotoPathSize. SortStable sorts slice of PhotoPathSize. func PhotoPathSizeArray.Retain(keep func(x PhotoPathSize) bool) PhotoPathSizeArray func PhotoPathSizeArray.Sort(less func(a, b PhotoPathSize) bool) PhotoPathSizeArray func PhotoPathSizeArray.SortStable(less func(a, b PhotoPathSize) bool) PhotoPathSizeArray func PhotoSizeClassArray.AsPhotoPathSize() (to PhotoPathSizeArray)
PhotosDeletePhotosRequest represents TL type `photos.deletePhotos#87cf7f2f`. Deletes profile photos. The method returns a list of successfully deleted photo IDs. See https://core.telegram.org/method/photos.deletePhotos for reference. Input photos to delete Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotosDeletePhotosRequest from given interface. GetID returns value of ID field. MapID returns field ID wrapped in InputPhotoClassArray 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. (*PhotosDeletePhotosRequest) Zero() bool *PhotosDeletePhotosRequest : github.com/gotd/td/bin.BareDecoder *PhotosDeletePhotosRequest : github.com/gotd/td/bin.BareEncoder *PhotosDeletePhotosRequest : github.com/gotd/td/bin.Decoder *PhotosDeletePhotosRequest : github.com/gotd/td/bin.Encoder *PhotosDeletePhotosRequest : github.com/gotd/td/bin.Object *PhotosDeletePhotosRequest : github.com/gotd/td/tdp.Object *PhotosDeletePhotosRequest : fmt.Stringer
PhotosGetUserPhotosRequest represents TL type `photos.getUserPhotos#91cd32a8`. Returns the list of user photos. See https://core.telegram.org/method/photos.getUserPhotos for reference. Number of list elements to be returned If a positive value was transferred, the method will return only photos with IDs less than the set one. This parameter is often useful when refetching file references »¹, as in conjuction with limit=1 and offset=-1 the photo² object with the id specified in max_id can be fetched. Links: 1) https://core.telegram.org/api/file_reference 2) https://core.telegram.org/constructor/photo Number of list elements to be skipped User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotosGetUserPhotosRequest from given interface. GetLimit returns value of Limit field. GetMaxID returns value of MaxID field. GetOffset returns value of Offset 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. (*PhotosGetUserPhotosRequest) Zero() bool *PhotosGetUserPhotosRequest : github.com/gotd/td/bin.BareDecoder *PhotosGetUserPhotosRequest : github.com/gotd/td/bin.BareEncoder *PhotosGetUserPhotosRequest : github.com/gotd/td/bin.Decoder *PhotosGetUserPhotosRequest : github.com/gotd/td/bin.Encoder *PhotosGetUserPhotosRequest : github.com/gotd/td/bin.Object *PhotosGetUserPhotosRequest : github.com/gotd/td/tdp.Object *PhotosGetUserPhotosRequest : fmt.Stringer func (*Client).PhotosGetUserPhotos(ctx context.Context, request *PhotosGetUserPhotosRequest) (PhotosPhotosClass, error)
PhotoSize represents TL type `photoSize#75c78e60`. Image description. See https://core.telegram.org/constructor/photoSize for reference. Image height File size Thumbnail type »¹ Links: 1) https://core.telegram.org/api/files#image-thumbnail-types Image width AsNotEmpty tries to map PhotoSize to NotEmptyPhotoSize. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotoSize from given interface. GetH returns value of H field. GetSize returns value of Size field. GetType returns value of Type field. GetW returns value of W 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. (*PhotoSize) Zero() bool *PhotoSize : NotEmptyPhotoSize *PhotoSize : PhotoSizeClass *PhotoSize : github.com/gotd/td/bin.BareDecoder *PhotoSize : github.com/gotd/td/bin.BareEncoder *PhotoSize : github.com/gotd/td/bin.Decoder *PhotoSize : github.com/gotd/td/bin.Encoder *PhotoSize : github.com/gotd/td/bin.Object *PhotoSize : github.com/gotd/td/tdp.Object *PhotoSize : fmt.Stringer func PhotoSizeArray.First() (v PhotoSize, ok bool) func PhotoSizeArray.Last() (v PhotoSize, ok bool) func (*PhotoSizeArray).Pop() (v PhotoSize, ok bool) func (*PhotoSizeArray).PopFirst() (v PhotoSize, ok bool)
PhotoSizeArray is adapter for slice of PhotoSize. 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 PhotoSize. Sort sorts slice of PhotoSize. SortStable sorts slice of PhotoSize. func PhotoSizeArray.Retain(keep func(x PhotoSize) bool) PhotoSizeArray func PhotoSizeArray.Sort(less func(a, b PhotoSize) bool) PhotoSizeArray func PhotoSizeArray.SortStable(less func(a, b PhotoSize) bool) PhotoSizeArray func PhotoSizeClassArray.AsPhotoSize() (to PhotoSizeArray)
PhotoSize boxes the PhotoSizeClass providing a helper. PhotoSize PhotoSizeClass Decode implements bin.Decoder for PhotoSizeBox. Encode implements bin.Encode for PhotoSizeBox. *PhotoSizeBox : github.com/gotd/td/bin.Decoder *PhotoSizeBox : github.com/gotd/td/bin.Encoder *PhotoSizeBox : github.com/gotd/td/bin.Object
PhotoSizeClass represents PhotoSize generic type. See https://core.telegram.org/type/PhotoSize for reference. Example: g, err := tg.DecodePhotoSize(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PhotoSizeEmpty: // photoSizeEmpty#e17e23c case *tg.PhotoSize: // photoSize#75c78e60 case *tg.PhotoCachedSize: // photoCachedSize#21e1ad6 case *tg.PhotoStrippedSize: // photoStrippedSize#e0b0bc2e case *tg.PhotoSizeProgressive: // photoSizeProgressive#fa3efb95 case *tg.PhotoPathSize: // photoPathSize#d8214d41 default: panic(v) } AsNotEmpty tries to map PhotoSizeClass to NotEmptyPhotoSize. ( PhotoSizeClass) Decode(b *bin.Buffer) error ( PhotoSizeClass) DecodeBare(b *bin.Buffer) error ( PhotoSizeClass) Encode(b *bin.Buffer) error ( PhotoSizeClass) EncodeBare(b *bin.Buffer) error Thumbnail type »¹ Links: 1) https://core.telegram.org/api/files#image-thumbnail-types 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. *PhotoCachedSize *PhotoPathSize *PhotoSize *PhotoSizeEmpty *PhotoSizeProgressive *PhotoStrippedSize PhotoSizeClass : NotEmptyPhotoSize PhotoSizeClass : github.com/gotd/td/bin.BareDecoder PhotoSizeClass : github.com/gotd/td/bin.BareEncoder PhotoSizeClass : github.com/gotd/td/bin.Decoder PhotoSizeClass : github.com/gotd/td/bin.Encoder PhotoSizeClass : github.com/gotd/td/bin.Object PhotoSizeClass : fmt.Stringer func DecodePhotoSize(buf *bin.Buffer) (PhotoSizeClass, error) func (*Document).GetThumbs() (value []PhotoSizeClass, ok bool) func (*MessageExtendedMediaPreview).GetThumb() (value PhotoSizeClass, ok bool) func (*Photo).GetSizes() (value []PhotoSizeClass) func PhotoSizeClassArray.First() (v PhotoSizeClass, ok bool) func PhotoSizeClassArray.Last() (v PhotoSizeClass, ok bool) func (*PhotoSizeClassArray).Pop() (v PhotoSizeClass, ok bool) func (*PhotoSizeClassArray).PopFirst() (v PhotoSizeClass, ok bool) func (*StickerSet).GetThumbs() (value []PhotoSizeClass, ok bool) func (*Document).SetThumbs(value []PhotoSizeClass) func (*MessageExtendedMediaPreview).SetThumb(value PhotoSizeClass) func (*StickerSet).SetThumbs(value []PhotoSizeClass)
PhotoSizeClassArray is adapter for slice of PhotoSizeClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsNotEmpty returns copy with only NotEmpty constructors. AsPhotoCachedSize returns copy with only PhotoCachedSize constructors. AsPhotoPathSize returns copy with only PhotoPathSize constructors. AsPhotoSize returns copy with only PhotoSize constructors. AsPhotoSizeEmpty returns copy with only PhotoSizeEmpty constructors. AsPhotoSizeProgressive returns copy with only PhotoSizeProgressive constructors. AsPhotoStrippedSize returns copy with only PhotoStrippedSize constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of PhotoSizeClass. Sort sorts slice of PhotoSizeClass. SortStable sorts slice of PhotoSizeClass. func (*Document).MapThumbs() (value PhotoSizeClassArray, ok bool) func (*Photo).MapSizes() (value PhotoSizeClassArray) func PhotoSizeClassArray.Retain(keep func(x PhotoSizeClass) bool) PhotoSizeClassArray func PhotoSizeClassArray.Sort(less func(a, b PhotoSizeClass) bool) PhotoSizeClassArray func PhotoSizeClassArray.SortStable(less func(a, b PhotoSizeClass) bool) PhotoSizeClassArray func (*StickerSet).MapThumbs() (value PhotoSizeClassArray, ok bool)
PhotoSizeEmpty represents TL type `photoSizeEmpty#e17e23c`. Empty constructor. Image with this thumbnail is unavailable. See https://core.telegram.org/constructor/photoSizeEmpty for reference. Thumbnail type »¹ Links: 1) https://core.telegram.org/api/files#image-thumbnail-types AsNotEmpty tries to map PhotoSizeEmpty to NotEmptyPhotoSize. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotoSizeEmpty from given interface. GetType returns value of Type 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. (*PhotoSizeEmpty) Zero() bool *PhotoSizeEmpty : NotEmptyPhotoSize *PhotoSizeEmpty : PhotoSizeClass *PhotoSizeEmpty : github.com/gotd/td/bin.BareDecoder *PhotoSizeEmpty : github.com/gotd/td/bin.BareEncoder *PhotoSizeEmpty : github.com/gotd/td/bin.Decoder *PhotoSizeEmpty : github.com/gotd/td/bin.Encoder *PhotoSizeEmpty : github.com/gotd/td/bin.Object *PhotoSizeEmpty : github.com/gotd/td/tdp.Object *PhotoSizeEmpty : fmt.Stringer func PhotoSizeEmptyArray.First() (v PhotoSizeEmpty, ok bool) func PhotoSizeEmptyArray.Last() (v PhotoSizeEmpty, ok bool) func (*PhotoSizeEmptyArray).Pop() (v PhotoSizeEmpty, ok bool) func (*PhotoSizeEmptyArray).PopFirst() (v PhotoSizeEmpty, ok bool)
PhotoSizeEmptyArray is adapter for slice of PhotoSizeEmpty. 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 PhotoSizeEmpty. Sort sorts slice of PhotoSizeEmpty. SortStable sorts slice of PhotoSizeEmpty. func PhotoSizeClassArray.AsPhotoSizeEmpty() (to PhotoSizeEmptyArray) func PhotoSizeEmptyArray.Retain(keep func(x PhotoSizeEmpty) bool) PhotoSizeEmptyArray func PhotoSizeEmptyArray.Sort(less func(a, b PhotoSizeEmpty) bool) PhotoSizeEmptyArray func PhotoSizeEmptyArray.SortStable(less func(a, b PhotoSizeEmpty) bool) PhotoSizeEmptyArray
PhotoSizeProgressive represents TL type `photoSizeProgressive#fa3efb95`. Progressively encoded photosize See https://core.telegram.org/constructor/photoSizeProgressive for reference. Photo height Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image. Photosize type »¹ Links: 1) https://core.telegram.org/api/files#image-thumbnail-types Photo width AsNotEmpty tries to map PhotoSizeProgressive to NotEmptyPhotoSize. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotoSizeProgressive from given interface. GetH returns value of H field. GetSizes returns value of Sizes field. GetType returns value of Type field. GetW returns value of W 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. (*PhotoSizeProgressive) Zero() bool *PhotoSizeProgressive : NotEmptyPhotoSize *PhotoSizeProgressive : PhotoSizeClass *PhotoSizeProgressive : github.com/gotd/td/bin.BareDecoder *PhotoSizeProgressive : github.com/gotd/td/bin.BareEncoder *PhotoSizeProgressive : github.com/gotd/td/bin.Decoder *PhotoSizeProgressive : github.com/gotd/td/bin.Encoder *PhotoSizeProgressive : github.com/gotd/td/bin.Object *PhotoSizeProgressive : github.com/gotd/td/tdp.Object *PhotoSizeProgressive : fmt.Stringer func PhotoSizeProgressiveArray.First() (v PhotoSizeProgressive, ok bool) func PhotoSizeProgressiveArray.Last() (v PhotoSizeProgressive, ok bool) func (*PhotoSizeProgressiveArray).Pop() (v PhotoSizeProgressive, ok bool) func (*PhotoSizeProgressiveArray).PopFirst() (v PhotoSizeProgressive, ok bool)
PhotoSizeProgressiveArray is adapter for slice of PhotoSizeProgressive. 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 PhotoSizeProgressive. Sort sorts slice of PhotoSizeProgressive. SortStable sorts slice of PhotoSizeProgressive. func PhotoSizeClassArray.AsPhotoSizeProgressive() (to PhotoSizeProgressiveArray) func PhotoSizeProgressiveArray.Retain(keep func(x PhotoSizeProgressive) bool) PhotoSizeProgressiveArray func PhotoSizeProgressiveArray.Sort(less func(a, b PhotoSizeProgressive) bool) PhotoSizeProgressiveArray func PhotoSizeProgressiveArray.SortStable(less func(a, b PhotoSizeProgressive) bool) PhotoSizeProgressiveArray
PhotosPhoto represents TL type `photos.photo#20212ca8`. Photo with auxiliary data. See https://core.telegram.org/constructor/photos.photo for reference. Photo Users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotosPhoto from given interface. GetPhoto returns value of Photo field. GetPhotoAsNotEmpty returns mapped value of Photo 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. (*PhotosPhoto) Zero() bool *PhotosPhoto : github.com/gotd/td/bin.BareDecoder *PhotosPhoto : github.com/gotd/td/bin.BareEncoder *PhotosPhoto : github.com/gotd/td/bin.Decoder *PhotosPhoto : github.com/gotd/td/bin.Encoder *PhotosPhoto : github.com/gotd/td/bin.Object *PhotosPhoto : github.com/gotd/td/tdp.Object *PhotosPhoto : fmt.Stringer func (*Client).PhotosUpdateProfilePhoto(ctx context.Context, request *PhotosUpdateProfilePhotoRequest) (*PhotosPhoto, error) func (*Client).PhotosUploadContactProfilePhoto(ctx context.Context, request *PhotosUploadContactProfilePhotoRequest) (*PhotosPhoto, error) func (*Client).PhotosUploadProfilePhoto(ctx context.Context, request *PhotosUploadProfilePhotoRequest) (*PhotosPhoto, error)
PhotosPhotos represents TL type `photos.photos#8dca6aa5`. Full list of photos with auxiliary data. See https://core.telegram.org/constructor/photos.photos for reference. List of photos List of mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotosPhotos from given interface. GetPhotos returns value of Photos field. GetUsers returns value of Users field. MapPhotos returns field Photos wrapped in PhotoClassArray 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. (*PhotosPhotos) Zero() bool *PhotosPhotos : PhotosPhotosClass *PhotosPhotos : github.com/gotd/td/bin.BareDecoder *PhotosPhotos : github.com/gotd/td/bin.BareEncoder *PhotosPhotos : github.com/gotd/td/bin.Decoder *PhotosPhotos : github.com/gotd/td/bin.Encoder *PhotosPhotos : github.com/gotd/td/bin.Object *PhotosPhotos : github.com/gotd/td/tdp.Object *PhotosPhotos : fmt.Stringer func PhotosPhotosArray.First() (v PhotosPhotos, ok bool) func PhotosPhotosArray.Last() (v PhotosPhotos, ok bool) func (*PhotosPhotosArray).Pop() (v PhotosPhotos, ok bool) func (*PhotosPhotosArray).PopFirst() (v PhotosPhotos, ok bool)
PhotosPhotosArray is adapter for slice of PhotosPhotos. 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 PhotosPhotos. Sort sorts slice of PhotosPhotos. SortStable sorts slice of PhotosPhotos. func PhotosPhotosArray.Retain(keep func(x PhotosPhotos) bool) PhotosPhotosArray func PhotosPhotosArray.Sort(less func(a, b PhotosPhotos) bool) PhotosPhotosArray func PhotosPhotosArray.SortStable(less func(a, b PhotosPhotos) bool) PhotosPhotosArray func PhotosPhotosClassArray.AsPhotosPhotos() (to PhotosPhotosArray)
PhotosPhotos boxes the PhotosPhotosClass providing a helper. Photos PhotosPhotosClass Decode implements bin.Decoder for PhotosPhotosBox. Encode implements bin.Encode for PhotosPhotosBox. *PhotosPhotosBox : github.com/gotd/td/bin.Decoder *PhotosPhotosBox : github.com/gotd/td/bin.Encoder *PhotosPhotosBox : github.com/gotd/td/bin.Object
PhotosPhotosClass represents photos.Photos generic type. See https://core.telegram.org/type/photos.Photos for reference. Example: g, err := tg.DecodePhotosPhotos(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PhotosPhotos: // photos.photos#8dca6aa5 case *tg.PhotosPhotosSlice: // photos.photosSlice#15051f54 default: panic(v) } ( PhotosPhotosClass) Decode(b *bin.Buffer) error ( PhotosPhotosClass) DecodeBare(b *bin.Buffer) error ( PhotosPhotosClass) Encode(b *bin.Buffer) error ( PhotosPhotosClass) EncodeBare(b *bin.Buffer) error List of photos List of mentioned users List of photos List of mentioned users 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. *PhotosPhotos *PhotosPhotosSlice PhotosPhotosClass : github.com/gotd/td/bin.BareDecoder PhotosPhotosClass : github.com/gotd/td/bin.BareEncoder PhotosPhotosClass : github.com/gotd/td/bin.Decoder PhotosPhotosClass : github.com/gotd/td/bin.Encoder PhotosPhotosClass : github.com/gotd/td/bin.Object PhotosPhotosClass : fmt.Stringer func DecodePhotosPhotos(buf *bin.Buffer) (PhotosPhotosClass, error) func (*Client).PhotosGetUserPhotos(ctx context.Context, request *PhotosGetUserPhotosRequest) (PhotosPhotosClass, error) func PhotosPhotosClassArray.First() (v PhotosPhotosClass, ok bool) func PhotosPhotosClassArray.Last() (v PhotosPhotosClass, ok bool) func (*PhotosPhotosClassArray).Pop() (v PhotosPhotosClass, ok bool) func (*PhotosPhotosClassArray).PopFirst() (v PhotosPhotosClass, ok bool)
PhotosPhotosClassArray is adapter for slice of PhotosPhotosClass. AsPhotosPhotos returns copy with only PhotosPhotos constructors. AsPhotosPhotosSlice returns copy with only PhotosPhotosSlice 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 PhotosPhotosClass. Sort sorts slice of PhotosPhotosClass. SortStable sorts slice of PhotosPhotosClass. func PhotosPhotosClassArray.Retain(keep func(x PhotosPhotosClass) bool) PhotosPhotosClassArray func PhotosPhotosClassArray.Sort(less func(a, b PhotosPhotosClass) bool) PhotosPhotosClassArray func PhotosPhotosClassArray.SortStable(less func(a, b PhotosPhotosClass) bool) PhotosPhotosClassArray
PhotosPhotosSlice represents TL type `photos.photosSlice#15051f54`. Incomplete list of photos with auxiliary data. See https://core.telegram.org/constructor/photos.photosSlice for reference. Total number of photos List of photos List of mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotosPhotosSlice from given interface. GetCount returns value of Count field. GetPhotos returns value of Photos field. GetUsers returns value of Users field. MapPhotos returns field Photos wrapped in PhotoClassArray 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. (*PhotosPhotosSlice) Zero() bool *PhotosPhotosSlice : PhotosPhotosClass *PhotosPhotosSlice : github.com/gotd/td/bin.BareDecoder *PhotosPhotosSlice : github.com/gotd/td/bin.BareEncoder *PhotosPhotosSlice : github.com/gotd/td/bin.Decoder *PhotosPhotosSlice : github.com/gotd/td/bin.Encoder *PhotosPhotosSlice : github.com/gotd/td/bin.Object *PhotosPhotosSlice : github.com/gotd/td/tdp.Object *PhotosPhotosSlice : fmt.Stringer func PhotosPhotosSliceArray.First() (v PhotosPhotosSlice, ok bool) func PhotosPhotosSliceArray.Last() (v PhotosPhotosSlice, ok bool) func (*PhotosPhotosSliceArray).Pop() (v PhotosPhotosSlice, ok bool) func (*PhotosPhotosSliceArray).PopFirst() (v PhotosPhotosSlice, ok bool)
PhotosPhotosSliceArray is adapter for slice of PhotosPhotosSlice. 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 PhotosPhotosSlice. Sort sorts slice of PhotosPhotosSlice. SortStable sorts slice of PhotosPhotosSlice. func PhotosPhotosClassArray.AsPhotosPhotosSlice() (to PhotosPhotosSliceArray) func PhotosPhotosSliceArray.Retain(keep func(x PhotosPhotosSlice) bool) PhotosPhotosSliceArray func PhotosPhotosSliceArray.Sort(less func(a, b PhotosPhotosSlice) bool) PhotosPhotosSliceArray func PhotosPhotosSliceArray.SortStable(less func(a, b PhotosPhotosSlice) bool) PhotosPhotosSliceArray
PhotoStrippedSize represents TL type `photoStrippedSize#e0b0bc2e`. A low-resolution compressed JPG payload See https://core.telegram.org/constructor/photoStrippedSize for reference. Thumbnail data, see here for more info on decompression »¹ Links: 1) https://core.telegram.org/api/files#stripped-thumbnails Thumbnail type AsNotEmpty tries to map PhotoStrippedSize to NotEmptyPhotoSize. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotoStrippedSize from given interface. GetBytes returns value of Bytes field. GetType returns value of Type 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. (*PhotoStrippedSize) Zero() bool *PhotoStrippedSize : NotEmptyPhotoSize *PhotoStrippedSize : PhotoSizeClass *PhotoStrippedSize : github.com/gotd/td/bin.BareDecoder *PhotoStrippedSize : github.com/gotd/td/bin.BareEncoder *PhotoStrippedSize : github.com/gotd/td/bin.Decoder *PhotoStrippedSize : github.com/gotd/td/bin.Encoder *PhotoStrippedSize : github.com/gotd/td/bin.Object *PhotoStrippedSize : github.com/gotd/td/tdp.Object *PhotoStrippedSize : fmt.Stringer func PhotoStrippedSizeArray.First() (v PhotoStrippedSize, ok bool) func PhotoStrippedSizeArray.Last() (v PhotoStrippedSize, ok bool) func (*PhotoStrippedSizeArray).Pop() (v PhotoStrippedSize, ok bool) func (*PhotoStrippedSizeArray).PopFirst() (v PhotoStrippedSize, ok bool)
PhotoStrippedSizeArray is adapter for slice of PhotoStrippedSize. 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 PhotoStrippedSize. Sort sorts slice of PhotoStrippedSize. SortStable sorts slice of PhotoStrippedSize. func PhotoSizeClassArray.AsPhotoStrippedSize() (to PhotoStrippedSizeArray) func PhotoStrippedSizeArray.Retain(keep func(x PhotoStrippedSize) bool) PhotoStrippedSizeArray func PhotoStrippedSizeArray.Sort(less func(a, b PhotoStrippedSize) bool) PhotoStrippedSizeArray func PhotoStrippedSizeArray.SortStable(less func(a, b PhotoStrippedSize) bool) PhotoStrippedSizeArray
PhotosUpdateProfilePhotoRequest represents TL type `photos.updateProfilePhoto#9e82039`. Installs a previously uploaded photo as a profile photo. See https://core.telegram.org/method/photos.updateProfilePhoto for reference. Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user. Use SetBot and GetBot helpers. If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Input photo Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotosUpdateProfilePhotoRequest from given interface. GetBot returns value of Bot conditional field and boolean which is true if field was set. GetFallback returns value of Fallback conditional field. GetID returns value of ID field. GetIDAsNotEmpty returns mapped value of ID field. SetBot sets value of Bot conditional field. SetFallback sets value of Fallback 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. (*PhotosUpdateProfilePhotoRequest) Zero() bool *PhotosUpdateProfilePhotoRequest : github.com/gotd/td/bin.BareDecoder *PhotosUpdateProfilePhotoRequest : github.com/gotd/td/bin.BareEncoder *PhotosUpdateProfilePhotoRequest : github.com/gotd/td/bin.Decoder *PhotosUpdateProfilePhotoRequest : github.com/gotd/td/bin.Encoder *PhotosUpdateProfilePhotoRequest : github.com/gotd/td/bin.Object *PhotosUpdateProfilePhotoRequest : github.com/gotd/td/tdp.Object *PhotosUpdateProfilePhotoRequest : fmt.Stringer func (*Client).PhotosUpdateProfilePhoto(ctx context.Context, request *PhotosUpdateProfilePhotoRequest) (*PhotosPhoto, error)
PhotosUploadContactProfilePhotoRequest represents TL type `photos.uploadContactProfilePhoto#e14c4a71`. Upload a custom profile picture for a contact, or suggest a new profile picture to a contact. The file, video and video_emoji_markup flags are mutually exclusive. See https://core.telegram.org/method/photos.uploadContactProfilePhoto for reference. Profile photo Use SetFile and GetFile helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply deleted the messageActionSuggestProfilePhoto¹ service message with messages.deleteMessages²). Links: 1) https://core.telegram.org/constructor/messageActionSuggestProfilePhoto 2) https://core.telegram.org/method/messages.deleteMessages If set, will send a messageActionSuggestProfilePhoto¹ service message to user_id, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user). Links: 1) https://core.telegram.org/constructor/messageActionSuggestProfilePhoto The contact Animated profile picture¹ video Links: 1) https://core.telegram.org/api/files#animated-profile-pictures Use SetVideo and GetVideo helpers. Animated sticker profile picture, must contain either a videoSizeEmojiMarkup¹ or a videoSizeStickerMarkup² constructor. Links: 1) https://core.telegram.org/constructor/videoSizeEmojiMarkup 2) https://core.telegram.org/constructor/videoSizeStickerMarkup Use SetVideoEmojiMarkup and GetVideoEmojiMarkup helpers. Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set. Use SetVideoStartTs and GetVideoStartTs helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotosUploadContactProfilePhotoRequest from given interface. GetFile returns value of File conditional field and boolean which is true if field was set. GetSave returns value of Save conditional field. GetSuggest returns value of Suggest conditional field. GetUserID returns value of UserID field. GetVideo returns value of Video conditional field and boolean which is true if field was set. GetVideoEmojiMarkup returns value of VideoEmojiMarkup conditional field and boolean which is true if field was set. GetVideoStartTs returns value of VideoStartTs conditional field and boolean which is true if field was set. SetFile sets value of File conditional field. SetFlags sets flags for non-zero fields. SetSave sets value of Save conditional field. SetSuggest sets value of Suggest conditional field. SetVideo sets value of Video conditional field. SetVideoEmojiMarkup sets value of VideoEmojiMarkup conditional field. SetVideoStartTs sets value of VideoStartTs 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. (*PhotosUploadContactProfilePhotoRequest) Zero() bool *PhotosUploadContactProfilePhotoRequest : github.com/gotd/td/bin.BareDecoder *PhotosUploadContactProfilePhotoRequest : github.com/gotd/td/bin.BareEncoder *PhotosUploadContactProfilePhotoRequest : github.com/gotd/td/bin.Decoder *PhotosUploadContactProfilePhotoRequest : github.com/gotd/td/bin.Encoder *PhotosUploadContactProfilePhotoRequest : github.com/gotd/td/bin.Object *PhotosUploadContactProfilePhotoRequest : github.com/gotd/td/tdp.Object *PhotosUploadContactProfilePhotoRequest : fmt.Stringer func (*Client).PhotosUploadContactProfilePhoto(ctx context.Context, request *PhotosUploadContactProfilePhotoRequest) (*PhotosPhoto, error)
PhotosUploadProfilePhotoRequest represents TL type `photos.uploadProfilePhoto#388a3b5`. Updates current user profile photo. The file, video and video_emoji_markup flags are mutually exclusive. See https://core.telegram.org/method/photos.uploadProfilePhoto for reference. Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user. Use SetBot and GetBot helpers. If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings. Profile photo Use SetFile and GetFile helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Animated profile picture¹ video Links: 1) https://core.telegram.org/api/files#animated-profile-pictures Use SetVideo and GetVideo helpers. Animated sticker profile picture, must contain either a videoSizeEmojiMarkup¹ or a videoSizeStickerMarkup² constructor. Links: 1) https://core.telegram.org/constructor/videoSizeEmojiMarkup 2) https://core.telegram.org/constructor/videoSizeStickerMarkup Use SetVideoEmojiMarkup and GetVideoEmojiMarkup helpers. Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set. Use SetVideoStartTs and GetVideoStartTs helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PhotosUploadProfilePhotoRequest from given interface. GetBot returns value of Bot conditional field and boolean which is true if field was set. GetFallback returns value of Fallback conditional field. GetFile returns value of File conditional field and boolean which is true if field was set. GetVideo returns value of Video conditional field and boolean which is true if field was set. GetVideoEmojiMarkup returns value of VideoEmojiMarkup conditional field and boolean which is true if field was set. GetVideoStartTs returns value of VideoStartTs conditional field and boolean which is true if field was set. SetBot sets value of Bot conditional field. SetFallback sets value of Fallback conditional field. SetFile sets value of File conditional field. SetFlags sets flags for non-zero fields. SetVideo sets value of Video conditional field. SetVideoEmojiMarkup sets value of VideoEmojiMarkup conditional field. SetVideoStartTs sets value of VideoStartTs 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. (*PhotosUploadProfilePhotoRequest) Zero() bool *PhotosUploadProfilePhotoRequest : github.com/gotd/td/bin.BareDecoder *PhotosUploadProfilePhotoRequest : github.com/gotd/td/bin.BareEncoder *PhotosUploadProfilePhotoRequest : github.com/gotd/td/bin.Decoder *PhotosUploadProfilePhotoRequest : github.com/gotd/td/bin.Encoder *PhotosUploadProfilePhotoRequest : github.com/gotd/td/bin.Object *PhotosUploadProfilePhotoRequest : github.com/gotd/td/tdp.Object *PhotosUploadProfilePhotoRequest : fmt.Stringer func (*Client).PhotosUploadProfilePhoto(ctx context.Context, request *PhotosUploadProfilePhotoRequest) (*PhotosPhoto, error)
PinnedChannelMessagesHandler is a PinnedChannelMessages event handler. func UpdateDispatcher.OnPinnedChannelMessages(handler PinnedChannelMessagesHandler)
PinnedDialogsHandler is a PinnedDialogs event handler. func UpdateDispatcher.OnPinnedDialogs(handler PinnedDialogsHandler)
PinnedMessagesHandler is a PinnedMessages event handler. func UpdateDispatcher.OnPinnedMessages(handler PinnedMessagesHandler)
Poll represents TL type `poll#86e18161`. Poll See https://core.telegram.org/constructor/poll for reference. The possible answers, vote using messages.sendVote¹. Links: 1) https://core.telegram.org/method/messages.sendVote Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future; can't be used together with close_period. Use SetCloseDate and GetCloseDate helpers. Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date. Use SetClosePeriod and GetClosePeriod helpers. Whether the poll is closed and doesn't accept any more answers Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of the poll Whether multiple options can be chosen as answer Whether cast votes are publicly visible to all users (non-anonymous poll) The question of the poll Whether this is a quiz (with wrong and correct answers, results shown in the return type) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Poll from given interface. GetAnswers returns value of Answers field. GetCloseDate returns value of CloseDate conditional field and boolean which is true if field was set. GetClosePeriod returns value of ClosePeriod conditional field and boolean which is true if field was set. GetClosed returns value of Closed conditional field. GetID returns value of ID field. GetMultipleChoice returns value of MultipleChoice conditional field. GetPublicVoters returns value of PublicVoters conditional field. GetQuestion returns value of Question field. GetQuiz returns value of Quiz conditional field. SetCloseDate sets value of CloseDate conditional field. SetClosePeriod sets value of ClosePeriod conditional field. SetClosed sets value of Closed conditional field. SetFlags sets flags for non-zero fields. SetMultipleChoice sets value of MultipleChoice conditional field. SetPublicVoters sets value of PublicVoters conditional field. SetQuiz sets value of Quiz 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. (*Poll) Zero() bool *Poll : github.com/gotd/td/bin.BareDecoder *Poll : github.com/gotd/td/bin.BareEncoder *Poll : github.com/gotd/td/bin.Decoder *Poll : github.com/gotd/td/bin.Encoder *Poll : github.com/gotd/td/bin.Object *Poll : github.com/gotd/td/tdp.Object *Poll : fmt.Stringer func (*InputMediaPoll).GetPoll() (value Poll) func (*MessageMediaPoll).GetPoll() (value Poll) func (*UpdateMessagePoll).GetPoll() (value Poll, ok bool) func (*UpdateMessagePoll).SetPoll(value Poll)
PollAnswer represents TL type `pollAnswer#6ca9c2e9`. A possible answer of a poll See https://core.telegram.org/constructor/pollAnswer for reference. The param that has to be passed to messages.sendVote¹. Links: 1) https://core.telegram.org/method/messages.sendVote Textual representation of the answer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PollAnswer from given interface. GetOption returns value of Option field. GetText returns value of Text 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. (*PollAnswer) Zero() bool *PollAnswer : github.com/gotd/td/bin.BareDecoder *PollAnswer : github.com/gotd/td/bin.BareEncoder *PollAnswer : github.com/gotd/td/bin.Decoder *PollAnswer : github.com/gotd/td/bin.Encoder *PollAnswer : github.com/gotd/td/bin.Object *PollAnswer : github.com/gotd/td/tdp.Object *PollAnswer : fmt.Stringer func (*Poll).GetAnswers() (value []PollAnswer)
PollAnswerVoters represents TL type `pollAnswerVoters#3b6ddad2`. A poll answer, and how users voted on it See https://core.telegram.org/constructor/pollAnswerVoters for reference. Whether we have chosen this answer For quizzes, whether the option we have chosen is correct Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The param that has to be passed to messages.sendVote¹. Links: 1) https://core.telegram.org/method/messages.sendVote How many users voted for this option Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PollAnswerVoters from given interface. GetChosen returns value of Chosen conditional field. GetCorrect returns value of Correct conditional field. GetOption returns value of Option field. GetVoters returns value of Voters field. SetChosen sets value of Chosen conditional field. SetCorrect sets value of Correct 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. (*PollAnswerVoters) Zero() bool *PollAnswerVoters : github.com/gotd/td/bin.BareDecoder *PollAnswerVoters : github.com/gotd/td/bin.BareEncoder *PollAnswerVoters : github.com/gotd/td/bin.Decoder *PollAnswerVoters : github.com/gotd/td/bin.Encoder *PollAnswerVoters : github.com/gotd/td/bin.Object *PollAnswerVoters : github.com/gotd/td/tdp.Object *PollAnswerVoters : fmt.Stringer func (*PollResults).GetResults() (value []PollAnswerVoters, ok bool) func (*PollResults).SetResults(value []PollAnswerVoters)
PollResults represents TL type `pollResults#7adf2420`. Results of poll See https://core.telegram.org/constructor/pollResults for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Similar to min¹ objects, used for poll constructors that are the same for all users so they don't have the option chosen by the current user (you can use messages getPollResults² to get the full poll results). Links: 1) https://core.telegram.org/api/min 2) https://core.telegram.org/method/messages.getPollResults IDs of the last users that recently voted in the poll Use SetRecentVoters and GetRecentVoters helpers. Poll results Use SetResults and GetResults helpers. Explanation of quiz solution Use SetSolution and GetSolution helpers. Message entities for styled text in quiz solution¹ Links: 1) https://core.telegram.org/api/entities Use SetSolutionEntities and GetSolutionEntities helpers. Total number of people that voted in the poll Use SetTotalVoters and GetTotalVoters helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PollResults from given interface. GetMin returns value of Min conditional field. GetRecentVoters returns value of RecentVoters conditional field and boolean which is true if field was set. GetResults returns value of Results conditional field and boolean which is true if field was set. GetSolution returns value of Solution conditional field and boolean which is true if field was set. GetSolutionEntities returns value of SolutionEntities conditional field and boolean which is true if field was set. GetTotalVoters returns value of TotalVoters conditional field and boolean which is true if field was set. MapRecentVoters returns field RecentVoters wrapped in PeerClassArray helper. MapSolutionEntities returns field SolutionEntities wrapped in MessageEntityClassArray helper. SetFlags sets flags for non-zero fields. SetMin sets value of Min conditional field. SetRecentVoters sets value of RecentVoters conditional field. SetResults sets value of Results conditional field. SetSolution sets value of Solution conditional field. SetSolutionEntities sets value of SolutionEntities conditional field. SetTotalVoters sets value of TotalVoters 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. (*PollResults) Zero() bool *PollResults : github.com/gotd/td/bin.BareDecoder *PollResults : github.com/gotd/td/bin.BareEncoder *PollResults : github.com/gotd/td/bin.Decoder *PollResults : github.com/gotd/td/bin.Encoder *PollResults : github.com/gotd/td/bin.Object *PollResults : github.com/gotd/td/tdp.Object *PollResults : fmt.Stringer func (*MessageMediaPoll).GetResults() (value PollResults) func (*UpdateMessagePoll).GetResults() (value PollResults)
PopularContact represents TL type `popularContact#5ce14175`. Popular contact See https://core.telegram.org/constructor/popularContact for reference. Contact identifier How many people imported this contact Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PopularContact from given interface. GetClientID returns value of ClientID field. GetImporters returns value of Importers 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. (*PopularContact) Zero() bool *PopularContact : github.com/gotd/td/bin.BareDecoder *PopularContact : github.com/gotd/td/bin.BareEncoder *PopularContact : github.com/gotd/td/bin.Decoder *PopularContact : github.com/gotd/td/bin.Encoder *PopularContact : github.com/gotd/td/bin.Object *PopularContact : github.com/gotd/td/tdp.Object *PopularContact : fmt.Stringer func (*ContactsImportedContacts).GetPopularInvites() (value []PopularContact)
PostAddress represents TL type `postAddress#1e8caaeb`. Shipping address See https://core.telegram.org/constructor/postAddress for reference. City ISO 3166-1 alpha-2 country code Address post code State, if applicable (empty otherwise) First line for the address Second line for the address Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PostAddress from given interface. GetCity returns value of City field. GetCountryISO2 returns value of CountryISO2 field. GetPostCode returns value of PostCode field. GetState returns value of State field. GetStreetLine1 returns value of StreetLine1 field. GetStreetLine2 returns value of StreetLine2 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. (*PostAddress) Zero() bool *PostAddress : github.com/gotd/td/bin.BareDecoder *PostAddress : github.com/gotd/td/bin.BareEncoder *PostAddress : github.com/gotd/td/bin.Decoder *PostAddress : github.com/gotd/td/bin.Encoder *PostAddress : github.com/gotd/td/bin.Object *PostAddress : github.com/gotd/td/tdp.Object *PostAddress : fmt.Stringer func (*PaymentRequestedInfo).GetShippingAddress() (value PostAddress, ok bool) func (*UpdateBotShippingQuery).GetShippingAddress() (value PostAddress) func (*PaymentRequestedInfo).SetShippingAddress(value PostAddress)
PostInteractionCounters boxes the PostInteractionCountersClass providing a helper. PostInteractionCounters PostInteractionCountersClass Decode implements bin.Decoder for PostInteractionCountersBox. Encode implements bin.Encode for PostInteractionCountersBox. *PostInteractionCountersBox : github.com/gotd/td/bin.Decoder *PostInteractionCountersBox : github.com/gotd/td/bin.Encoder *PostInteractionCountersBox : github.com/gotd/td/bin.Object
PostInteractionCountersClass represents PostInteractionCounters generic type. See https://core.telegram.org/type/PostInteractionCounters for reference. Example: g, err := tg.DecodePostInteractionCounters(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PostInteractionCountersMessage: // postInteractionCountersMessage#e7058e7f case *tg.PostInteractionCountersStory: // postInteractionCountersStory#8a480e27 default: panic(v) } ( PostInteractionCountersClass) Decode(b *bin.Buffer) error ( PostInteractionCountersClass) DecodeBare(b *bin.Buffer) error ( PostInteractionCountersClass) Encode(b *bin.Buffer) error ( PostInteractionCountersClass) EncodeBare(b *bin.Buffer) error Number of forwards to public channels Number of reactions Number of views 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. *PostInteractionCountersMessage *PostInteractionCountersStory PostInteractionCountersClass : github.com/gotd/td/bin.BareDecoder PostInteractionCountersClass : github.com/gotd/td/bin.BareEncoder PostInteractionCountersClass : github.com/gotd/td/bin.Decoder PostInteractionCountersClass : github.com/gotd/td/bin.Encoder PostInteractionCountersClass : github.com/gotd/td/bin.Object PostInteractionCountersClass : fmt.Stringer func DecodePostInteractionCounters(buf *bin.Buffer) (PostInteractionCountersClass, error) func PostInteractionCountersClassArray.First() (v PostInteractionCountersClass, ok bool) func PostInteractionCountersClassArray.Last() (v PostInteractionCountersClass, ok bool) func (*PostInteractionCountersClassArray).Pop() (v PostInteractionCountersClass, ok bool) func (*PostInteractionCountersClassArray).PopFirst() (v PostInteractionCountersClass, ok bool) func (*StatsBroadcastStats).GetRecentPostsInteractions() (value []PostInteractionCountersClass)
PostInteractionCountersClassArray is adapter for slice of PostInteractionCountersClass. AsPostInteractionCountersMessage returns copy with only PostInteractionCountersMessage constructors. AsPostInteractionCountersStory returns copy with only PostInteractionCountersStory 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 PostInteractionCountersClass. Sort sorts slice of PostInteractionCountersClass. SortStable sorts slice of PostInteractionCountersClass. func PostInteractionCountersClassArray.Retain(keep func(x PostInteractionCountersClass) bool) PostInteractionCountersClassArray func PostInteractionCountersClassArray.Sort(less func(a, b PostInteractionCountersClass) bool) PostInteractionCountersClassArray func PostInteractionCountersClassArray.SortStable(less func(a, b PostInteractionCountersClass) bool) PostInteractionCountersClassArray func (*StatsBroadcastStats).MapRecentPostsInteractions() (value PostInteractionCountersClassArray)
PostInteractionCountersMessage represents TL type `postInteractionCountersMessage#e7058e7f`. Interaction counters for a message. See https://core.telegram.org/constructor/postInteractionCountersMessage for reference. Number of forwards to public channels Message ID Number of reactions Number of views Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PostInteractionCountersMessage from given interface. GetForwards returns value of Forwards field. GetMsgID returns value of MsgID field. GetReactions returns value of Reactions field. GetViews returns value of Views 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. (*PostInteractionCountersMessage) Zero() bool *PostInteractionCountersMessage : PostInteractionCountersClass *PostInteractionCountersMessage : github.com/gotd/td/bin.BareDecoder *PostInteractionCountersMessage : github.com/gotd/td/bin.BareEncoder *PostInteractionCountersMessage : github.com/gotd/td/bin.Decoder *PostInteractionCountersMessage : github.com/gotd/td/bin.Encoder *PostInteractionCountersMessage : github.com/gotd/td/bin.Object *PostInteractionCountersMessage : github.com/gotd/td/tdp.Object *PostInteractionCountersMessage : fmt.Stringer func PostInteractionCountersMessageArray.First() (v PostInteractionCountersMessage, ok bool) func PostInteractionCountersMessageArray.Last() (v PostInteractionCountersMessage, ok bool) func (*PostInteractionCountersMessageArray).Pop() (v PostInteractionCountersMessage, ok bool) func (*PostInteractionCountersMessageArray).PopFirst() (v PostInteractionCountersMessage, ok bool)
PostInteractionCountersMessageArray is adapter for slice of PostInteractionCountersMessage. 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 PostInteractionCountersMessage. Sort sorts slice of PostInteractionCountersMessage. SortStable sorts slice of PostInteractionCountersMessage. func PostInteractionCountersClassArray.AsPostInteractionCountersMessage() (to PostInteractionCountersMessageArray) func PostInteractionCountersMessageArray.Retain(keep func(x PostInteractionCountersMessage) bool) PostInteractionCountersMessageArray func PostInteractionCountersMessageArray.Sort(less func(a, b PostInteractionCountersMessage) bool) PostInteractionCountersMessageArray func PostInteractionCountersMessageArray.SortStable(less func(a, b PostInteractionCountersMessage) bool) PostInteractionCountersMessageArray
PostInteractionCountersStory represents TL type `postInteractionCountersStory#8a480e27`. Interaction counters for a story. See https://core.telegram.org/constructor/postInteractionCountersStory for reference. Number of forwards and reposts to public chats and channels Number of reactions Story ID Number of views Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PostInteractionCountersStory from given interface. GetForwards returns value of Forwards field. GetReactions returns value of Reactions field. GetStoryID returns value of StoryID field. GetViews returns value of Views 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. (*PostInteractionCountersStory) Zero() bool *PostInteractionCountersStory : PostInteractionCountersClass *PostInteractionCountersStory : github.com/gotd/td/bin.BareDecoder *PostInteractionCountersStory : github.com/gotd/td/bin.BareEncoder *PostInteractionCountersStory : github.com/gotd/td/bin.Decoder *PostInteractionCountersStory : github.com/gotd/td/bin.Encoder *PostInteractionCountersStory : github.com/gotd/td/bin.Object *PostInteractionCountersStory : github.com/gotd/td/tdp.Object *PostInteractionCountersStory : fmt.Stringer func PostInteractionCountersStoryArray.First() (v PostInteractionCountersStory, ok bool) func PostInteractionCountersStoryArray.Last() (v PostInteractionCountersStory, ok bool) func (*PostInteractionCountersStoryArray).Pop() (v PostInteractionCountersStory, ok bool) func (*PostInteractionCountersStoryArray).PopFirst() (v PostInteractionCountersStory, ok bool)
PostInteractionCountersStoryArray is adapter for slice of PostInteractionCountersStory. 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 PostInteractionCountersStory. Sort sorts slice of PostInteractionCountersStory. SortStable sorts slice of PostInteractionCountersStory. func PostInteractionCountersClassArray.AsPostInteractionCountersStory() (to PostInteractionCountersStoryArray) func PostInteractionCountersStoryArray.Retain(keep func(x PostInteractionCountersStory) bool) PostInteractionCountersStoryArray func PostInteractionCountersStoryArray.Sort(less func(a, b PostInteractionCountersStory) bool) PostInteractionCountersStoryArray func PostInteractionCountersStoryArray.SortStable(less func(a, b PostInteractionCountersStory) bool) PostInteractionCountersStoryArray
PremiumApplyBoostRequest represents TL type `premium.applyBoost#6b7da746`. Apply one or more boosts »¹ to a peer. Links: 1. https://core.telegram.org/api/boost See https://core.telegram.org/method/premium.applyBoost for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The peer to boost. Which boost slots¹ to assign to this peer. Links: 1) https://core.telegram.org/api/boost Use SetSlots and GetSlots helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumApplyBoostRequest from given interface. GetPeer returns value of Peer field. GetSlots returns value of Slots conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetSlots sets value of Slots 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. (*PremiumApplyBoostRequest) Zero() bool *PremiumApplyBoostRequest : github.com/gotd/td/bin.BareDecoder *PremiumApplyBoostRequest : github.com/gotd/td/bin.BareEncoder *PremiumApplyBoostRequest : github.com/gotd/td/bin.Decoder *PremiumApplyBoostRequest : github.com/gotd/td/bin.Encoder *PremiumApplyBoostRequest : github.com/gotd/td/bin.Object *PremiumApplyBoostRequest : github.com/gotd/td/tdp.Object *PremiumApplyBoostRequest : fmt.Stringer func (*Client).PremiumApplyBoost(ctx context.Context, request *PremiumApplyBoostRequest) (*PremiumMyBoosts, error)
PremiumBoostsList represents TL type `premium.boostsList#86f8613c`. List of boosts¹ that were applied to a peer by multiple users. Links: 1. https://core.telegram.org/api/boost See https://core.telegram.org/constructor/premium.boostsList for reference. Boosts¹ Links: 1) https://core.telegram.org/api/boost Total number of results Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Offset that can be used for pagination¹. Links: 1) https://core.telegram.org/api/offsets Use SetNextOffset and GetNextOffset helpers. Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumBoostsList from given interface. GetBoosts returns value of Boosts field. GetCount returns value of Count field. GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set. GetUsers returns value of Users field. 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. (*PremiumBoostsList) Zero() bool *PremiumBoostsList : github.com/gotd/td/bin.BareDecoder *PremiumBoostsList : github.com/gotd/td/bin.BareEncoder *PremiumBoostsList : github.com/gotd/td/bin.Decoder *PremiumBoostsList : github.com/gotd/td/bin.Encoder *PremiumBoostsList : github.com/gotd/td/bin.Object *PremiumBoostsList : github.com/gotd/td/tdp.Object *PremiumBoostsList : fmt.Stringer func (*Client).PremiumGetBoostsList(ctx context.Context, request *PremiumGetBoostsListRequest) (*PremiumBoostsList, error) func (*Client).PremiumGetUserBoosts(ctx context.Context, request *PremiumGetUserBoostsRequest) (*PremiumBoostsList, error)
PremiumBoostsStatus represents TL type `premium.boostsStatus#4959427a`. Contains info about the current boost status¹ of a peer. Links: 1. https://core.telegram.org/api/boost See https://core.telegram.org/constructor/premium.boostsStatus for reference. Boost deep link »¹ that can be used to boost the chat. Links: 1) https://core.telegram.org/api/links#boost-links Total number of boosts acquired so far. The number of boosts acquired so far in the current level. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The number of boosts acquired from created Telegram Premium gift codes¹ and giveaways²; only returned to channel admins. Links: 1) https://core.telegram.org/api/giveaways 2) https://core.telegram.org/api/giveaways Use SetGiftBoosts and GetGiftBoosts helpers. The current boost level of the channel. Whether we're currently boosting this channel, my_boost_slots will also be set. Indicates which of our boost slots¹ we've assigned to this peer (populated if my_boost is set). Links: 1) https://core.telegram.org/api/boost Use SetMyBoostSlots and GetMyBoostSlots helpers. Total number of boosts needed to reach the next level; if absent, the next level isn't available. Use SetNextLevelBoosts and GetNextLevelBoosts helpers. Only returned to channel admins: contains the approximated number of Premium users subscribed to the channel, related to the total number of subscribers. Use SetPremiumAudience and GetPremiumAudience helpers. A list of prepaid giveaways¹ available for the chat; only returned to channel admins. Links: 1) https://core.telegram.org/api/giveaways Use SetPrepaidGiveaways and GetPrepaidGiveaways helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumBoostsStatus from given interface. GetBoostURL returns value of BoostURL field. GetBoosts returns value of Boosts field. GetCurrentLevelBoosts returns value of CurrentLevelBoosts field. GetGiftBoosts returns value of GiftBoosts conditional field and boolean which is true if field was set. GetLevel returns value of Level field. GetMyBoost returns value of MyBoost conditional field. GetMyBoostSlots returns value of MyBoostSlots conditional field and boolean which is true if field was set. GetNextLevelBoosts returns value of NextLevelBoosts conditional field and boolean which is true if field was set. GetPremiumAudience returns value of PremiumAudience conditional field and boolean which is true if field was set. GetPrepaidGiveaways returns value of PrepaidGiveaways conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetGiftBoosts sets value of GiftBoosts conditional field. SetMyBoost sets value of MyBoost conditional field. SetMyBoostSlots sets value of MyBoostSlots conditional field. SetNextLevelBoosts sets value of NextLevelBoosts conditional field. SetPremiumAudience sets value of PremiumAudience conditional field. SetPrepaidGiveaways sets value of PrepaidGiveaways 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. (*PremiumBoostsStatus) Zero() bool *PremiumBoostsStatus : github.com/gotd/td/bin.BareDecoder *PremiumBoostsStatus : github.com/gotd/td/bin.BareEncoder *PremiumBoostsStatus : github.com/gotd/td/bin.Decoder *PremiumBoostsStatus : github.com/gotd/td/bin.Encoder *PremiumBoostsStatus : github.com/gotd/td/bin.Object *PremiumBoostsStatus : github.com/gotd/td/tdp.Object *PremiumBoostsStatus : fmt.Stringer func (*Client).PremiumGetBoostsStatus(ctx context.Context, peer InputPeerClass) (*PremiumBoostsStatus, error)
PremiumGetBoostsListRequest represents TL type `premium.getBoostsList#60f67660`. Obtains info about the boosts that were applied to a certain channel (admins only) See https://core.telegram.org/method/premium.getBoostsList for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to return only info about boosts received from gift codes and giveaways created by the channel »¹ Links: 1) https://core.telegram.org/api/giveaways Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offset for pagination, obtained from premium.boostsList¹.next_offset Links: 1) https://core.telegram.org/constructor/premium.boostsList The channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumGetBoostsListRequest from given interface. GetGifts returns value of Gifts conditional field. GetLimit returns value of Limit field. GetOffset returns value of Offset field. GetPeer returns value of Peer field. SetFlags sets flags for non-zero fields. SetGifts sets value of Gifts 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. (*PremiumGetBoostsListRequest) Zero() bool *PremiumGetBoostsListRequest : github.com/gotd/td/bin.BareDecoder *PremiumGetBoostsListRequest : github.com/gotd/td/bin.BareEncoder *PremiumGetBoostsListRequest : github.com/gotd/td/bin.Decoder *PremiumGetBoostsListRequest : github.com/gotd/td/bin.Encoder *PremiumGetBoostsListRequest : github.com/gotd/td/bin.Object *PremiumGetBoostsListRequest : github.com/gotd/td/tdp.Object *PremiumGetBoostsListRequest : fmt.Stringer func (*Client).PremiumGetBoostsList(ctx context.Context, request *PremiumGetBoostsListRequest) (*PremiumBoostsList, error)
PremiumGetBoostsStatusRequest represents TL type `premium.getBoostsStatus#42f1f61`. Gets the current number of boosts¹ of a channel. Links: 1. https://core.telegram.org/api/boost See https://core.telegram.org/method/premium.getBoostsStatus for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumGetBoostsStatusRequest 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. (*PremiumGetBoostsStatusRequest) Zero() bool *PremiumGetBoostsStatusRequest : github.com/gotd/td/bin.BareDecoder *PremiumGetBoostsStatusRequest : github.com/gotd/td/bin.BareEncoder *PremiumGetBoostsStatusRequest : github.com/gotd/td/bin.Decoder *PremiumGetBoostsStatusRequest : github.com/gotd/td/bin.Encoder *PremiumGetBoostsStatusRequest : github.com/gotd/td/bin.Object *PremiumGetBoostsStatusRequest : github.com/gotd/td/tdp.Object *PremiumGetBoostsStatusRequest : fmt.Stringer
PremiumGetMyBoostsRequest represents TL type `premium.getMyBoosts#be77b4a`. Obtain which peers are we currently boosting¹, and how many boost slots² we have left. Links: 1. https://core.telegram.org/api/boost 2. https://core.telegram.org/api/boost See https://core.telegram.org/method/premium.getMyBoosts 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. (*PremiumGetMyBoostsRequest) Zero() bool *PremiumGetMyBoostsRequest : github.com/gotd/td/bin.BareDecoder *PremiumGetMyBoostsRequest : github.com/gotd/td/bin.BareEncoder *PremiumGetMyBoostsRequest : github.com/gotd/td/bin.Decoder *PremiumGetMyBoostsRequest : github.com/gotd/td/bin.Encoder *PremiumGetMyBoostsRequest : github.com/gotd/td/bin.Object *PremiumGetMyBoostsRequest : github.com/gotd/td/tdp.Object *PremiumGetMyBoostsRequest : fmt.Stringer
PremiumGetUserBoostsRequest represents TL type `premium.getUserBoosts#39854d1f`. Returns the lists of boost that were applied to a channel by a specific user (admins only) See https://core.telegram.org/method/premium.getUserBoosts for reference. The chat The user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumGetUserBoostsRequest 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. (*PremiumGetUserBoostsRequest) Zero() bool *PremiumGetUserBoostsRequest : github.com/gotd/td/bin.BareDecoder *PremiumGetUserBoostsRequest : github.com/gotd/td/bin.BareEncoder *PremiumGetUserBoostsRequest : github.com/gotd/td/bin.Decoder *PremiumGetUserBoostsRequest : github.com/gotd/td/bin.Encoder *PremiumGetUserBoostsRequest : github.com/gotd/td/bin.Object *PremiumGetUserBoostsRequest : github.com/gotd/td/tdp.Object *PremiumGetUserBoostsRequest : fmt.Stringer func (*Client).PremiumGetUserBoosts(ctx context.Context, request *PremiumGetUserBoostsRequest) (*PremiumBoostsList, error)
PremiumGiftCodeOption represents TL type `premiumGiftCodeOption#257e962b`. Contains info about a giveaway/gift¹ option. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/constructor/premiumGiftCodeOption 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 Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Duration in months of each gifted Telegram Premium¹ subscription. Links: 1) https://core.telegram.org/api/premium Identifier of the store product associated with the option, official apps only. Use SetStoreProduct and GetStoreProduct helpers. Number of times the store product must be paid Use SetStoreQuantity and GetStoreQuantity helpers. Number of users which will be able to activate the gift codes. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumGiftCodeOption from given interface. GetAmount returns value of Amount field. GetCurrency returns value of Currency field. GetMonths returns value of Months field. GetStoreProduct returns value of StoreProduct conditional field and boolean which is true if field was set. GetStoreQuantity returns value of StoreQuantity conditional field and boolean which is true if field was set. GetUsers returns value of Users field. SetFlags sets flags for non-zero fields. SetStoreProduct sets value of StoreProduct conditional field. SetStoreQuantity sets value of StoreQuantity 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. (*PremiumGiftCodeOption) Zero() bool *PremiumGiftCodeOption : github.com/gotd/td/bin.BareDecoder *PremiumGiftCodeOption : github.com/gotd/td/bin.BareEncoder *PremiumGiftCodeOption : github.com/gotd/td/bin.Decoder *PremiumGiftCodeOption : github.com/gotd/td/bin.Encoder *PremiumGiftCodeOption : github.com/gotd/td/bin.Object *PremiumGiftCodeOption : github.com/gotd/td/tdp.Object *PremiumGiftCodeOption : fmt.Stringer func (*Client).PaymentsGetPremiumGiftCodeOptions(ctx context.Context, request *PaymentsGetPremiumGiftCodeOptionsRequest) ([]PremiumGiftCodeOption, error) func (*InputInvoicePremiumGiftCode).GetOption() (value PremiumGiftCodeOption) func (*PremiumGiftCodeOptionVector).GetElems() (value []PremiumGiftCodeOption)
PremiumGiftCodeOptionVector is a box for Vector<PremiumGiftCodeOption> Elements of Vector<PremiumGiftCodeOption> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumGiftCodeOptionVector 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. (*PremiumGiftCodeOptionVector) Zero() bool *PremiumGiftCodeOptionVector : github.com/gotd/td/bin.BareDecoder *PremiumGiftCodeOptionVector : github.com/gotd/td/bin.BareEncoder *PremiumGiftCodeOptionVector : github.com/gotd/td/bin.Decoder *PremiumGiftCodeOptionVector : github.com/gotd/td/bin.Encoder *PremiumGiftCodeOptionVector : github.com/gotd/td/bin.Object *PremiumGiftCodeOptionVector : github.com/gotd/td/tdp.Object *PremiumGiftCodeOptionVector : fmt.Stringer
PremiumGiftOption represents TL type `premiumGiftOption#74c34319`. Telegram Premium gift option See https://core.telegram.org/constructor/premiumGiftOption for reference. Price of the product 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 An invoice deep link »¹ to an invoice for in-app payment, using the official Premium bot; may be empty if direct payment isn't available. Links: 1) https://core.telegram.org/api/links#invoice-links Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Duration of gifted Telegram Premium subscription An identifier for the App Store/Play Store product associated with the Premium gift. Use SetStoreProduct and GetStoreProduct helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumGiftOption from given interface. GetAmount returns value of Amount field. GetBotURL returns value of BotURL field. GetCurrency returns value of Currency field. GetMonths returns value of Months field. GetStoreProduct returns value of StoreProduct conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetStoreProduct sets value of StoreProduct 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. (*PremiumGiftOption) Zero() bool *PremiumGiftOption : github.com/gotd/td/bin.BareDecoder *PremiumGiftOption : github.com/gotd/td/bin.BareEncoder *PremiumGiftOption : github.com/gotd/td/bin.Decoder *PremiumGiftOption : github.com/gotd/td/bin.Encoder *PremiumGiftOption : github.com/gotd/td/bin.Object *PremiumGiftOption : github.com/gotd/td/tdp.Object *PremiumGiftOption : fmt.Stringer func (*UserFull).GetPremiumGifts() (value []PremiumGiftOption, ok bool) func (*UserFull).SetPremiumGifts(value []PremiumGiftOption)
PremiumMyBoosts represents TL type `premium.myBoosts#9ae228e2`. A list of peers we are currently boosting¹, and how many boost slots² we have left. Links: 1. https://core.telegram.org/api/boost 2. https://core.telegram.org/api/boost See https://core.telegram.org/constructor/premium.myBoosts for reference. Referenced chats Info about boosted peers and remaining boost slots. Referenced users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumMyBoosts from given interface. GetChats returns value of Chats field. GetMyBoosts returns value of MyBoosts field. GetUsers returns value of Users 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. (*PremiumMyBoosts) Zero() bool *PremiumMyBoosts : github.com/gotd/td/bin.BareDecoder *PremiumMyBoosts : github.com/gotd/td/bin.BareEncoder *PremiumMyBoosts : github.com/gotd/td/bin.Decoder *PremiumMyBoosts : github.com/gotd/td/bin.Encoder *PremiumMyBoosts : github.com/gotd/td/bin.Object *PremiumMyBoosts : github.com/gotd/td/tdp.Object *PremiumMyBoosts : fmt.Stringer func (*Client).PremiumApplyBoost(ctx context.Context, request *PremiumApplyBoostRequest) (*PremiumMyBoosts, error) func (*Client).PremiumGetMyBoosts(ctx context.Context) (*PremiumMyBoosts, error)
PremiumSubscriptionOption represents TL type `premiumSubscriptionOption#5f2d1df2`. Describes a Telegram Premium subscription option See https://core.telegram.org/constructor/premiumSubscriptionOption 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 Deep link¹ used to initiate payment Links: 1) https://core.telegram.org/api/links Whether this subscription option can be used to upgrade the existing Telegram Premium subscription. When upgrading Telegram Premium subscriptions bought through stores, make sure that the store transaction ID is equal to transaction, to avoid upgrading someone else's account, if the client is currently logged into multiple accounts. Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Whether this subscription option is currently in use. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Duration of subscription in months Store product ID, only for official apps Use SetStoreProduct and GetStoreProduct helpers. Identifier of the last in-store transaction for the currently used subscription on the current account. Use SetTransaction and GetTransaction helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PremiumSubscriptionOption from given interface. GetAmount returns value of Amount field. GetBotURL returns value of BotURL field. GetCanPurchaseUpgrade returns value of CanPurchaseUpgrade conditional field. GetCurrency returns value of Currency field. GetCurrent returns value of Current conditional field. GetMonths returns value of Months field. GetStoreProduct returns value of StoreProduct conditional field and boolean which is true if field was set. GetTransaction returns value of Transaction conditional field and boolean which is true if field was set. SetCanPurchaseUpgrade sets value of CanPurchaseUpgrade conditional field. SetCurrent sets value of Current conditional field. SetFlags sets flags for non-zero fields. SetStoreProduct sets value of StoreProduct conditional field. SetTransaction sets value of Transaction 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. (*PremiumSubscriptionOption) Zero() bool *PremiumSubscriptionOption : github.com/gotd/td/bin.BareDecoder *PremiumSubscriptionOption : github.com/gotd/td/bin.BareEncoder *PremiumSubscriptionOption : github.com/gotd/td/bin.Decoder *PremiumSubscriptionOption : github.com/gotd/td/bin.Encoder *PremiumSubscriptionOption : github.com/gotd/td/bin.Object *PremiumSubscriptionOption : github.com/gotd/td/tdp.Object *PremiumSubscriptionOption : fmt.Stringer func (*HelpPremiumPromo).GetPeriodOptions() (value []PremiumSubscriptionOption)
PrepaidGiveaway represents TL type `prepaidGiveaway#b2539d54`. Contains info about a prepaid giveaway »¹. Links: 1. https://core.telegram.org/api/giveaways See https://core.telegram.org/constructor/prepaidGiveaway for reference. Payment date. Prepaid giveaway ID. Duration in months of each gifted Telegram Premium¹ subscription. Links: 1) https://core.telegram.org/api/premium Number of given away Telegram Premium¹ subscriptions. Links: 1) https://core.telegram.org/api/premium Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PrepaidGiveaway from given interface. GetDate returns value of Date field. GetID returns value of ID field. GetMonths returns value of Months field. GetQuantity returns value of Quantity 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. (*PrepaidGiveaway) Zero() bool *PrepaidGiveaway : github.com/gotd/td/bin.BareDecoder *PrepaidGiveaway : github.com/gotd/td/bin.BareEncoder *PrepaidGiveaway : github.com/gotd/td/bin.Decoder *PrepaidGiveaway : github.com/gotd/td/bin.Encoder *PrepaidGiveaway : github.com/gotd/td/bin.Object *PrepaidGiveaway : github.com/gotd/td/tdp.Object *PrepaidGiveaway : fmt.Stringer func (*PremiumBoostsStatus).GetPrepaidGiveaways() (value []PrepaidGiveaway, ok bool) func (*PremiumBoostsStatus).SetPrepaidGiveaways(value []PrepaidGiveaway)
PrivacyHandler is a Privacy event handler. func UpdateDispatcher.OnPrivacy(handler PrivacyHandler)
PrivacyKeyAbout represents TL type `privacyKeyAbout#a486b761`. Whether people can see your bio See https://core.telegram.org/constructor/privacyKeyAbout 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. (*PrivacyKeyAbout) Zero() bool *PrivacyKeyAbout : PrivacyKeyClass *PrivacyKeyAbout : github.com/gotd/td/bin.BareDecoder *PrivacyKeyAbout : github.com/gotd/td/bin.BareEncoder *PrivacyKeyAbout : github.com/gotd/td/bin.Decoder *PrivacyKeyAbout : github.com/gotd/td/bin.Encoder *PrivacyKeyAbout : github.com/gotd/td/bin.Object *PrivacyKeyAbout : github.com/gotd/td/tdp.Object *PrivacyKeyAbout : fmt.Stringer
PrivacyKeyAddedByPhone represents TL type `privacyKeyAddedByPhone#42ffd42b`. Whether this user can be added to our contact list by their phone number See https://core.telegram.org/constructor/privacyKeyAddedByPhone 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. (*PrivacyKeyAddedByPhone) Zero() bool *PrivacyKeyAddedByPhone : PrivacyKeyClass *PrivacyKeyAddedByPhone : github.com/gotd/td/bin.BareDecoder *PrivacyKeyAddedByPhone : github.com/gotd/td/bin.BareEncoder *PrivacyKeyAddedByPhone : github.com/gotd/td/bin.Decoder *PrivacyKeyAddedByPhone : github.com/gotd/td/bin.Encoder *PrivacyKeyAddedByPhone : github.com/gotd/td/bin.Object *PrivacyKeyAddedByPhone : github.com/gotd/td/tdp.Object *PrivacyKeyAddedByPhone : fmt.Stringer
PrivacyKey boxes the PrivacyKeyClass providing a helper. PrivacyKey PrivacyKeyClass Decode implements bin.Decoder for PrivacyKeyBox. Encode implements bin.Encode for PrivacyKeyBox. *PrivacyKeyBox : github.com/gotd/td/bin.Decoder *PrivacyKeyBox : github.com/gotd/td/bin.Encoder *PrivacyKeyBox : github.com/gotd/td/bin.Object
PrivacyKeyChatInvite represents TL type `privacyKeyChatInvite#500e6dfa`. Whether the user can be invited to chats See https://core.telegram.org/constructor/privacyKeyChatInvite 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. (*PrivacyKeyChatInvite) Zero() bool *PrivacyKeyChatInvite : PrivacyKeyClass *PrivacyKeyChatInvite : github.com/gotd/td/bin.BareDecoder *PrivacyKeyChatInvite : github.com/gotd/td/bin.BareEncoder *PrivacyKeyChatInvite : github.com/gotd/td/bin.Decoder *PrivacyKeyChatInvite : github.com/gotd/td/bin.Encoder *PrivacyKeyChatInvite : github.com/gotd/td/bin.Object *PrivacyKeyChatInvite : github.com/gotd/td/tdp.Object *PrivacyKeyChatInvite : fmt.Stringer
PrivacyKeyClass represents PrivacyKey generic type. See https://core.telegram.org/type/PrivacyKey for reference. Example: g, err := tg.DecodePrivacyKey(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PrivacyKeyStatusTimestamp: // privacyKeyStatusTimestamp#bc2eab30 case *tg.PrivacyKeyChatInvite: // privacyKeyChatInvite#500e6dfa case *tg.PrivacyKeyPhoneCall: // privacyKeyPhoneCall#3d662b7b case *tg.PrivacyKeyPhoneP2P: // privacyKeyPhoneP2P#39491cc8 case *tg.PrivacyKeyForwards: // privacyKeyForwards#69ec56a3 case *tg.PrivacyKeyProfilePhoto: // privacyKeyProfilePhoto#96151fed case *tg.PrivacyKeyPhoneNumber: // privacyKeyPhoneNumber#d19ae46d case *tg.PrivacyKeyAddedByPhone: // privacyKeyAddedByPhone#42ffd42b case *tg.PrivacyKeyVoiceMessages: // privacyKeyVoiceMessages#697f414 case *tg.PrivacyKeyAbout: // privacyKeyAbout#a486b761 default: panic(v) } ( PrivacyKeyClass) Decode(b *bin.Buffer) error ( PrivacyKeyClass) DecodeBare(b *bin.Buffer) error ( PrivacyKeyClass) Encode(b *bin.Buffer) error ( PrivacyKeyClass) 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. *PrivacyKeyAbout *PrivacyKeyAddedByPhone *PrivacyKeyChatInvite *PrivacyKeyForwards *PrivacyKeyPhoneCall *PrivacyKeyPhoneNumber *PrivacyKeyPhoneP2P *PrivacyKeyProfilePhoto *PrivacyKeyStatusTimestamp *PrivacyKeyVoiceMessages PrivacyKeyClass : github.com/gotd/td/bin.BareDecoder PrivacyKeyClass : github.com/gotd/td/bin.BareEncoder PrivacyKeyClass : github.com/gotd/td/bin.Decoder PrivacyKeyClass : github.com/gotd/td/bin.Encoder PrivacyKeyClass : github.com/gotd/td/bin.Object PrivacyKeyClass : fmt.Stringer func DecodePrivacyKey(buf *bin.Buffer) (PrivacyKeyClass, error) func PrivacyKeyClassArray.First() (v PrivacyKeyClass, ok bool) func PrivacyKeyClassArray.Last() (v PrivacyKeyClass, ok bool) func (*PrivacyKeyClassArray).Pop() (v PrivacyKeyClass, ok bool) func (*PrivacyKeyClassArray).PopFirst() (v PrivacyKeyClass, ok bool) func (*UpdatePrivacy).GetKey() (value PrivacyKeyClass)
PrivacyKeyClassArray is adapter for slice of PrivacyKeyClass. 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 PrivacyKeyClass. Sort sorts slice of PrivacyKeyClass. SortStable sorts slice of PrivacyKeyClass. func PrivacyKeyClassArray.Retain(keep func(x PrivacyKeyClass) bool) PrivacyKeyClassArray func PrivacyKeyClassArray.Sort(less func(a, b PrivacyKeyClass) bool) PrivacyKeyClassArray func PrivacyKeyClassArray.SortStable(less func(a, b PrivacyKeyClass) bool) PrivacyKeyClassArray
PrivacyKeyForwards represents TL type `privacyKeyForwards#69ec56a3`. Whether messages forwarded from the user will be anonymously forwarded¹ Links: 1. https://telegram.org/blog/unsend-privacy-emoji#anonymous-forwarding See https://core.telegram.org/constructor/privacyKeyForwards 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. (*PrivacyKeyForwards) Zero() bool *PrivacyKeyForwards : PrivacyKeyClass *PrivacyKeyForwards : github.com/gotd/td/bin.BareDecoder *PrivacyKeyForwards : github.com/gotd/td/bin.BareEncoder *PrivacyKeyForwards : github.com/gotd/td/bin.Decoder *PrivacyKeyForwards : github.com/gotd/td/bin.Encoder *PrivacyKeyForwards : github.com/gotd/td/bin.Object *PrivacyKeyForwards : github.com/gotd/td/tdp.Object *PrivacyKeyForwards : fmt.Stringer
PrivacyKeyPhoneCall represents TL type `privacyKeyPhoneCall#3d662b7b`. Whether the user accepts phone calls See https://core.telegram.org/constructor/privacyKeyPhoneCall 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. (*PrivacyKeyPhoneCall) Zero() bool *PrivacyKeyPhoneCall : PrivacyKeyClass *PrivacyKeyPhoneCall : github.com/gotd/td/bin.BareDecoder *PrivacyKeyPhoneCall : github.com/gotd/td/bin.BareEncoder *PrivacyKeyPhoneCall : github.com/gotd/td/bin.Decoder *PrivacyKeyPhoneCall : github.com/gotd/td/bin.Encoder *PrivacyKeyPhoneCall : github.com/gotd/td/bin.Object *PrivacyKeyPhoneCall : github.com/gotd/td/tdp.Object *PrivacyKeyPhoneCall : fmt.Stringer
PrivacyKeyPhoneNumber represents TL type `privacyKeyPhoneNumber#d19ae46d`. Whether the user allows us to see his phone number See https://core.telegram.org/constructor/privacyKeyPhoneNumber 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. (*PrivacyKeyPhoneNumber) Zero() bool *PrivacyKeyPhoneNumber : PrivacyKeyClass *PrivacyKeyPhoneNumber : github.com/gotd/td/bin.BareDecoder *PrivacyKeyPhoneNumber : github.com/gotd/td/bin.BareEncoder *PrivacyKeyPhoneNumber : github.com/gotd/td/bin.Decoder *PrivacyKeyPhoneNumber : github.com/gotd/td/bin.Encoder *PrivacyKeyPhoneNumber : github.com/gotd/td/bin.Object *PrivacyKeyPhoneNumber : github.com/gotd/td/tdp.Object *PrivacyKeyPhoneNumber : fmt.Stringer
PrivacyKeyPhoneP2P represents TL type `privacyKeyPhoneP2P#39491cc8`. Whether P2P connections in phone calls with this user are allowed See https://core.telegram.org/constructor/privacyKeyPhoneP2P 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. (*PrivacyKeyPhoneP2P) Zero() bool *PrivacyKeyPhoneP2P : PrivacyKeyClass *PrivacyKeyPhoneP2P : github.com/gotd/td/bin.BareDecoder *PrivacyKeyPhoneP2P : github.com/gotd/td/bin.BareEncoder *PrivacyKeyPhoneP2P : github.com/gotd/td/bin.Decoder *PrivacyKeyPhoneP2P : github.com/gotd/td/bin.Encoder *PrivacyKeyPhoneP2P : github.com/gotd/td/bin.Object *PrivacyKeyPhoneP2P : github.com/gotd/td/tdp.Object *PrivacyKeyPhoneP2P : fmt.Stringer
PrivacyKeyProfilePhoto represents TL type `privacyKeyProfilePhoto#96151fed`. Whether the profile picture of the user is visible See https://core.telegram.org/constructor/privacyKeyProfilePhoto 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. (*PrivacyKeyProfilePhoto) Zero() bool *PrivacyKeyProfilePhoto : PrivacyKeyClass *PrivacyKeyProfilePhoto : github.com/gotd/td/bin.BareDecoder *PrivacyKeyProfilePhoto : github.com/gotd/td/bin.BareEncoder *PrivacyKeyProfilePhoto : github.com/gotd/td/bin.Decoder *PrivacyKeyProfilePhoto : github.com/gotd/td/bin.Encoder *PrivacyKeyProfilePhoto : github.com/gotd/td/bin.Object *PrivacyKeyProfilePhoto : github.com/gotd/td/tdp.Object *PrivacyKeyProfilePhoto : fmt.Stringer
PrivacyKeyStatusTimestamp represents TL type `privacyKeyStatusTimestamp#bc2eab30`. Whether we can see the last online timestamp of this user See https://core.telegram.org/constructor/privacyKeyStatusTimestamp 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. (*PrivacyKeyStatusTimestamp) Zero() bool *PrivacyKeyStatusTimestamp : PrivacyKeyClass *PrivacyKeyStatusTimestamp : github.com/gotd/td/bin.BareDecoder *PrivacyKeyStatusTimestamp : github.com/gotd/td/bin.BareEncoder *PrivacyKeyStatusTimestamp : github.com/gotd/td/bin.Decoder *PrivacyKeyStatusTimestamp : github.com/gotd/td/bin.Encoder *PrivacyKeyStatusTimestamp : github.com/gotd/td/bin.Object *PrivacyKeyStatusTimestamp : github.com/gotd/td/tdp.Object *PrivacyKeyStatusTimestamp : fmt.Stringer
PrivacyKeyVoiceMessages represents TL type `privacyKeyVoiceMessages#697f414`. Whether the user accepts voice messages See https://core.telegram.org/constructor/privacyKeyVoiceMessages 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. (*PrivacyKeyVoiceMessages) Zero() bool *PrivacyKeyVoiceMessages : PrivacyKeyClass *PrivacyKeyVoiceMessages : github.com/gotd/td/bin.BareDecoder *PrivacyKeyVoiceMessages : github.com/gotd/td/bin.BareEncoder *PrivacyKeyVoiceMessages : github.com/gotd/td/bin.Decoder *PrivacyKeyVoiceMessages : github.com/gotd/td/bin.Encoder *PrivacyKeyVoiceMessages : github.com/gotd/td/bin.Object *PrivacyKeyVoiceMessages : github.com/gotd/td/tdp.Object *PrivacyKeyVoiceMessages : fmt.Stringer
PrivacyRule boxes the PrivacyRuleClass providing a helper. PrivacyRule PrivacyRuleClass Decode implements bin.Decoder for PrivacyRuleBox. Encode implements bin.Encode for PrivacyRuleBox. *PrivacyRuleBox : github.com/gotd/td/bin.Decoder *PrivacyRuleBox : github.com/gotd/td/bin.Encoder *PrivacyRuleBox : github.com/gotd/td/bin.Object
PrivacyRuleClass represents PrivacyRule generic type. See https://core.telegram.org/type/PrivacyRule for reference. Example: g, err := tg.DecodePrivacyRule(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PrivacyValueAllowContacts: // privacyValueAllowContacts#fffe1bac case *tg.PrivacyValueAllowAll: // privacyValueAllowAll#65427b82 case *tg.PrivacyValueAllowUsers: // privacyValueAllowUsers#b8905fb2 case *tg.PrivacyValueDisallowContacts: // privacyValueDisallowContacts#f888fa1a case *tg.PrivacyValueDisallowAll: // privacyValueDisallowAll#8b73e763 case *tg.PrivacyValueDisallowUsers: // privacyValueDisallowUsers#e4621141 case *tg.PrivacyValueAllowChatParticipants: // privacyValueAllowChatParticipants#6b134e8e case *tg.PrivacyValueDisallowChatParticipants: // privacyValueDisallowChatParticipants#41c87565 case *tg.PrivacyValueAllowCloseFriends: // privacyValueAllowCloseFriends#f7e8d89b default: panic(v) } ( PrivacyRuleClass) Decode(b *bin.Buffer) error ( PrivacyRuleClass) DecodeBare(b *bin.Buffer) error ( PrivacyRuleClass) Encode(b *bin.Buffer) error ( PrivacyRuleClass) 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. *PrivacyValueAllowAll *PrivacyValueAllowChatParticipants *PrivacyValueAllowCloseFriends *PrivacyValueAllowContacts *PrivacyValueAllowUsers *PrivacyValueDisallowAll *PrivacyValueDisallowChatParticipants *PrivacyValueDisallowContacts *PrivacyValueDisallowUsers PrivacyRuleClass : github.com/gotd/td/bin.BareDecoder PrivacyRuleClass : github.com/gotd/td/bin.BareEncoder PrivacyRuleClass : github.com/gotd/td/bin.Decoder PrivacyRuleClass : github.com/gotd/td/bin.Encoder PrivacyRuleClass : github.com/gotd/td/bin.Object PrivacyRuleClass : fmt.Stringer func DecodePrivacyRule(buf *bin.Buffer) (PrivacyRuleClass, error) func (*AccountPrivacyRules).GetRules() (value []PrivacyRuleClass) func PrivacyRuleClassArray.First() (v PrivacyRuleClass, ok bool) func PrivacyRuleClassArray.Last() (v PrivacyRuleClass, ok bool) func (*PrivacyRuleClassArray).Pop() (v PrivacyRuleClass, ok bool) func (*PrivacyRuleClassArray).PopFirst() (v PrivacyRuleClass, ok bool) func (*StoryItem).GetPrivacy() (value []PrivacyRuleClass, ok bool) func (*UpdatePrivacy).GetRules() (value []PrivacyRuleClass) func (*StoryItem).SetPrivacy(value []PrivacyRuleClass)
PrivacyRuleClassArray is adapter for slice of PrivacyRuleClass. AsPrivacyValueAllowChatParticipants returns copy with only PrivacyValueAllowChatParticipants constructors. AsPrivacyValueAllowUsers returns copy with only PrivacyValueAllowUsers constructors. AsPrivacyValueDisallowChatParticipants returns copy with only PrivacyValueDisallowChatParticipants constructors. AsPrivacyValueDisallowUsers returns copy with only PrivacyValueDisallowUsers 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 PrivacyRuleClass. Sort sorts slice of PrivacyRuleClass. SortStable sorts slice of PrivacyRuleClass. func (*AccountPrivacyRules).MapRules() (value PrivacyRuleClassArray) func PrivacyRuleClassArray.Retain(keep func(x PrivacyRuleClass) bool) PrivacyRuleClassArray func PrivacyRuleClassArray.Sort(less func(a, b PrivacyRuleClass) bool) PrivacyRuleClassArray func PrivacyRuleClassArray.SortStable(less func(a, b PrivacyRuleClass) bool) PrivacyRuleClassArray func (*StoryItem).MapPrivacy() (value PrivacyRuleClassArray, ok bool) func (*UpdatePrivacy).MapRules() (value PrivacyRuleClassArray)
PrivacyValueAllowAll represents TL type `privacyValueAllowAll#65427b82`. Allow all users See https://core.telegram.org/constructor/privacyValueAllowAll 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. (*PrivacyValueAllowAll) Zero() bool *PrivacyValueAllowAll : PrivacyRuleClass *PrivacyValueAllowAll : github.com/gotd/td/bin.BareDecoder *PrivacyValueAllowAll : github.com/gotd/td/bin.BareEncoder *PrivacyValueAllowAll : github.com/gotd/td/bin.Decoder *PrivacyValueAllowAll : github.com/gotd/td/bin.Encoder *PrivacyValueAllowAll : github.com/gotd/td/bin.Object *PrivacyValueAllowAll : github.com/gotd/td/tdp.Object *PrivacyValueAllowAll : fmt.Stringer
PrivacyValueAllowChatParticipants represents TL type `privacyValueAllowChatParticipants#6b134e8e`. Allow all participants of certain chats See https://core.telegram.org/constructor/privacyValueAllowChatParticipants for reference. Allowed chat IDs AsInput tries to map PrivacyValueAllowChatParticipants to InputPrivacyValueAllowChatParticipants. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PrivacyValueAllowChatParticipants from given interface. GetChats returns value of Chats 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. (*PrivacyValueAllowChatParticipants) Zero() bool *PrivacyValueAllowChatParticipants : PrivacyRuleClass *PrivacyValueAllowChatParticipants : github.com/gotd/td/bin.BareDecoder *PrivacyValueAllowChatParticipants : github.com/gotd/td/bin.BareEncoder *PrivacyValueAllowChatParticipants : github.com/gotd/td/bin.Decoder *PrivacyValueAllowChatParticipants : github.com/gotd/td/bin.Encoder *PrivacyValueAllowChatParticipants : github.com/gotd/td/bin.Object *PrivacyValueAllowChatParticipants : github.com/gotd/td/tdp.Object *PrivacyValueAllowChatParticipants : fmt.Stringer func PrivacyValueAllowChatParticipantsArray.First() (v PrivacyValueAllowChatParticipants, ok bool) func PrivacyValueAllowChatParticipantsArray.Last() (v PrivacyValueAllowChatParticipants, ok bool) func (*PrivacyValueAllowChatParticipantsArray).Pop() (v PrivacyValueAllowChatParticipants, ok bool) func (*PrivacyValueAllowChatParticipantsArray).PopFirst() (v PrivacyValueAllowChatParticipants, ok bool)
PrivacyValueAllowChatParticipantsArray is adapter for slice of PrivacyValueAllowChatParticipants. 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 PrivacyValueAllowChatParticipants. Sort sorts slice of PrivacyValueAllowChatParticipants. SortStable sorts slice of PrivacyValueAllowChatParticipants. func PrivacyRuleClassArray.AsPrivacyValueAllowChatParticipants() (to PrivacyValueAllowChatParticipantsArray) func PrivacyValueAllowChatParticipantsArray.Retain(keep func(x PrivacyValueAllowChatParticipants) bool) PrivacyValueAllowChatParticipantsArray func PrivacyValueAllowChatParticipantsArray.Sort(less func(a, b PrivacyValueAllowChatParticipants) bool) PrivacyValueAllowChatParticipantsArray func PrivacyValueAllowChatParticipantsArray.SortStable(less func(a, b PrivacyValueAllowChatParticipants) bool) PrivacyValueAllowChatParticipantsArray
PrivacyValueAllowCloseFriends represents TL type `privacyValueAllowCloseFriends#f7e8d89b`. Allow only close friends »¹ Links: 1. https://core.telegram.org/api/privacy See https://core.telegram.org/constructor/privacyValueAllowCloseFriends 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. (*PrivacyValueAllowCloseFriends) Zero() bool *PrivacyValueAllowCloseFriends : PrivacyRuleClass *PrivacyValueAllowCloseFriends : github.com/gotd/td/bin.BareDecoder *PrivacyValueAllowCloseFriends : github.com/gotd/td/bin.BareEncoder *PrivacyValueAllowCloseFriends : github.com/gotd/td/bin.Decoder *PrivacyValueAllowCloseFriends : github.com/gotd/td/bin.Encoder *PrivacyValueAllowCloseFriends : github.com/gotd/td/bin.Object *PrivacyValueAllowCloseFriends : github.com/gotd/td/tdp.Object *PrivacyValueAllowCloseFriends : fmt.Stringer
PrivacyValueAllowContacts represents TL type `privacyValueAllowContacts#fffe1bac`. Allow all contacts See https://core.telegram.org/constructor/privacyValueAllowContacts 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. (*PrivacyValueAllowContacts) Zero() bool *PrivacyValueAllowContacts : PrivacyRuleClass *PrivacyValueAllowContacts : github.com/gotd/td/bin.BareDecoder *PrivacyValueAllowContacts : github.com/gotd/td/bin.BareEncoder *PrivacyValueAllowContacts : github.com/gotd/td/bin.Decoder *PrivacyValueAllowContacts : github.com/gotd/td/bin.Encoder *PrivacyValueAllowContacts : github.com/gotd/td/bin.Object *PrivacyValueAllowContacts : github.com/gotd/td/tdp.Object *PrivacyValueAllowContacts : fmt.Stringer
PrivacyValueAllowUsers represents TL type `privacyValueAllowUsers#b8905fb2`. Allow only certain users See https://core.telegram.org/constructor/privacyValueAllowUsers for reference. Users that were invited to the chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PrivacyValueAllowUsers from given interface. GetUsers returns value of Users 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. (*PrivacyValueAllowUsers) Zero() bool *PrivacyValueAllowUsers : PrivacyRuleClass *PrivacyValueAllowUsers : github.com/gotd/td/bin.BareDecoder *PrivacyValueAllowUsers : github.com/gotd/td/bin.BareEncoder *PrivacyValueAllowUsers : github.com/gotd/td/bin.Decoder *PrivacyValueAllowUsers : github.com/gotd/td/bin.Encoder *PrivacyValueAllowUsers : github.com/gotd/td/bin.Object *PrivacyValueAllowUsers : github.com/gotd/td/tdp.Object *PrivacyValueAllowUsers : fmt.Stringer func PrivacyValueAllowUsersArray.First() (v PrivacyValueAllowUsers, ok bool) func PrivacyValueAllowUsersArray.Last() (v PrivacyValueAllowUsers, ok bool) func (*PrivacyValueAllowUsersArray).Pop() (v PrivacyValueAllowUsers, ok bool) func (*PrivacyValueAllowUsersArray).PopFirst() (v PrivacyValueAllowUsers, ok bool)
PrivacyValueAllowUsersArray is adapter for slice of PrivacyValueAllowUsers. 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 PrivacyValueAllowUsers. Sort sorts slice of PrivacyValueAllowUsers. SortStable sorts slice of PrivacyValueAllowUsers. func PrivacyRuleClassArray.AsPrivacyValueAllowUsers() (to PrivacyValueAllowUsersArray) func PrivacyValueAllowUsersArray.Retain(keep func(x PrivacyValueAllowUsers) bool) PrivacyValueAllowUsersArray func PrivacyValueAllowUsersArray.Sort(less func(a, b PrivacyValueAllowUsers) bool) PrivacyValueAllowUsersArray func PrivacyValueAllowUsersArray.SortStable(less func(a, b PrivacyValueAllowUsers) bool) PrivacyValueAllowUsersArray
PrivacyValueDisallowAll represents TL type `privacyValueDisallowAll#8b73e763`. Disallow all users See https://core.telegram.org/constructor/privacyValueDisallowAll 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. (*PrivacyValueDisallowAll) Zero() bool *PrivacyValueDisallowAll : PrivacyRuleClass *PrivacyValueDisallowAll : github.com/gotd/td/bin.BareDecoder *PrivacyValueDisallowAll : github.com/gotd/td/bin.BareEncoder *PrivacyValueDisallowAll : github.com/gotd/td/bin.Decoder *PrivacyValueDisallowAll : github.com/gotd/td/bin.Encoder *PrivacyValueDisallowAll : github.com/gotd/td/bin.Object *PrivacyValueDisallowAll : github.com/gotd/td/tdp.Object *PrivacyValueDisallowAll : fmt.Stringer
PrivacyValueDisallowChatParticipants represents TL type `privacyValueDisallowChatParticipants#41c87565`. Disallow only participants of certain chats See https://core.telegram.org/constructor/privacyValueDisallowChatParticipants for reference. Allowed chat IDs AsInput tries to map PrivacyValueDisallowChatParticipants to InputPrivacyValueDisallowChatParticipants. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PrivacyValueDisallowChatParticipants from given interface. GetChats returns value of Chats 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. (*PrivacyValueDisallowChatParticipants) Zero() bool *PrivacyValueDisallowChatParticipants : PrivacyRuleClass *PrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.BareDecoder *PrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.BareEncoder *PrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.Decoder *PrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.Encoder *PrivacyValueDisallowChatParticipants : github.com/gotd/td/bin.Object *PrivacyValueDisallowChatParticipants : github.com/gotd/td/tdp.Object *PrivacyValueDisallowChatParticipants : fmt.Stringer func PrivacyValueDisallowChatParticipantsArray.First() (v PrivacyValueDisallowChatParticipants, ok bool) func PrivacyValueDisallowChatParticipantsArray.Last() (v PrivacyValueDisallowChatParticipants, ok bool) func (*PrivacyValueDisallowChatParticipantsArray).Pop() (v PrivacyValueDisallowChatParticipants, ok bool) func (*PrivacyValueDisallowChatParticipantsArray).PopFirst() (v PrivacyValueDisallowChatParticipants, ok bool)
PrivacyValueDisallowChatParticipantsArray is adapter for slice of PrivacyValueDisallowChatParticipants. 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 PrivacyValueDisallowChatParticipants. Sort sorts slice of PrivacyValueDisallowChatParticipants. SortStable sorts slice of PrivacyValueDisallowChatParticipants. func PrivacyRuleClassArray.AsPrivacyValueDisallowChatParticipants() (to PrivacyValueDisallowChatParticipantsArray) func PrivacyValueDisallowChatParticipantsArray.Retain(keep func(x PrivacyValueDisallowChatParticipants) bool) PrivacyValueDisallowChatParticipantsArray func PrivacyValueDisallowChatParticipantsArray.Sort(less func(a, b PrivacyValueDisallowChatParticipants) bool) PrivacyValueDisallowChatParticipantsArray func PrivacyValueDisallowChatParticipantsArray.SortStable(less func(a, b PrivacyValueDisallowChatParticipants) bool) PrivacyValueDisallowChatParticipantsArray
PrivacyValueDisallowContacts represents TL type `privacyValueDisallowContacts#f888fa1a`. Disallow only contacts See https://core.telegram.org/constructor/privacyValueDisallowContacts 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. (*PrivacyValueDisallowContacts) Zero() bool *PrivacyValueDisallowContacts : PrivacyRuleClass *PrivacyValueDisallowContacts : github.com/gotd/td/bin.BareDecoder *PrivacyValueDisallowContacts : github.com/gotd/td/bin.BareEncoder *PrivacyValueDisallowContacts : github.com/gotd/td/bin.Decoder *PrivacyValueDisallowContacts : github.com/gotd/td/bin.Encoder *PrivacyValueDisallowContacts : github.com/gotd/td/bin.Object *PrivacyValueDisallowContacts : github.com/gotd/td/tdp.Object *PrivacyValueDisallowContacts : fmt.Stringer
PrivacyValueDisallowUsers represents TL type `privacyValueDisallowUsers#e4621141`. Disallow only certain users See https://core.telegram.org/constructor/privacyValueDisallowUsers for reference. Users that were invited to the chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PrivacyValueDisallowUsers from given interface. GetUsers returns value of Users 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. (*PrivacyValueDisallowUsers) Zero() bool *PrivacyValueDisallowUsers : PrivacyRuleClass *PrivacyValueDisallowUsers : github.com/gotd/td/bin.BareDecoder *PrivacyValueDisallowUsers : github.com/gotd/td/bin.BareEncoder *PrivacyValueDisallowUsers : github.com/gotd/td/bin.Decoder *PrivacyValueDisallowUsers : github.com/gotd/td/bin.Encoder *PrivacyValueDisallowUsers : github.com/gotd/td/bin.Object *PrivacyValueDisallowUsers : github.com/gotd/td/tdp.Object *PrivacyValueDisallowUsers : fmt.Stringer func PrivacyValueDisallowUsersArray.First() (v PrivacyValueDisallowUsers, ok bool) func PrivacyValueDisallowUsersArray.Last() (v PrivacyValueDisallowUsers, ok bool) func (*PrivacyValueDisallowUsersArray).Pop() (v PrivacyValueDisallowUsers, ok bool) func (*PrivacyValueDisallowUsersArray).PopFirst() (v PrivacyValueDisallowUsers, ok bool)
PrivacyValueDisallowUsersArray is adapter for slice of PrivacyValueDisallowUsers. 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 PrivacyValueDisallowUsers. Sort sorts slice of PrivacyValueDisallowUsers. SortStable sorts slice of PrivacyValueDisallowUsers. func PrivacyRuleClassArray.AsPrivacyValueDisallowUsers() (to PrivacyValueDisallowUsersArray) func PrivacyValueDisallowUsersArray.Retain(keep func(x PrivacyValueDisallowUsers) bool) PrivacyValueDisallowUsersArray func PrivacyValueDisallowUsersArray.Sort(less func(a, b PrivacyValueDisallowUsers) bool) PrivacyValueDisallowUsersArray func PrivacyValueDisallowUsersArray.SortStable(less func(a, b PrivacyValueDisallowUsers) bool) PrivacyValueDisallowUsersArray
PtsChangedHandler is a PtsChanged event handler. func UpdateDispatcher.OnPtsChanged(handler PtsChangedHandler)
PublicForward boxes the PublicForwardClass providing a helper. PublicForward PublicForwardClass Decode implements bin.Decoder for PublicForwardBox. Encode implements bin.Encode for PublicForwardBox. *PublicForwardBox : github.com/gotd/td/bin.Decoder *PublicForwardBox : github.com/gotd/td/bin.Encoder *PublicForwardBox : github.com/gotd/td/bin.Object
PublicForwardClass represents PublicForward generic type. See https://core.telegram.org/type/PublicForward for reference. Example: g, err := tg.DecodePublicForward(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.PublicForwardMessage: // publicForwardMessage#1f2bf4a case *tg.PublicForwardStory: // publicForwardStory#edf3add0 default: panic(v) } ( PublicForwardClass) Decode(b *bin.Buffer) error ( PublicForwardClass) DecodeBare(b *bin.Buffer) error ( PublicForwardClass) Encode(b *bin.Buffer) error ( PublicForwardClass) 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. *PublicForwardMessage *PublicForwardStory PublicForwardClass : github.com/gotd/td/bin.BareDecoder PublicForwardClass : github.com/gotd/td/bin.BareEncoder PublicForwardClass : github.com/gotd/td/bin.Decoder PublicForwardClass : github.com/gotd/td/bin.Encoder PublicForwardClass : github.com/gotd/td/bin.Object PublicForwardClass : fmt.Stringer func DecodePublicForward(buf *bin.Buffer) (PublicForwardClass, error) func PublicForwardClassArray.First() (v PublicForwardClass, ok bool) func PublicForwardClassArray.Last() (v PublicForwardClass, ok bool) func (*PublicForwardClassArray).Pop() (v PublicForwardClass, ok bool) func (*PublicForwardClassArray).PopFirst() (v PublicForwardClass, ok bool) func (*StatsPublicForwards).GetForwards() (value []PublicForwardClass)
PublicForwardClassArray is adapter for slice of PublicForwardClass. AsPublicForwardMessage returns copy with only PublicForwardMessage constructors. AsPublicForwardStory returns copy with only PublicForwardStory 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 PublicForwardClass. Sort sorts slice of PublicForwardClass. SortStable sorts slice of PublicForwardClass. func PublicForwardClassArray.Retain(keep func(x PublicForwardClass) bool) PublicForwardClassArray func PublicForwardClassArray.Sort(less func(a, b PublicForwardClass) bool) PublicForwardClassArray func PublicForwardClassArray.SortStable(less func(a, b PublicForwardClass) bool) PublicForwardClassArray func (*StatsPublicForwards).MapForwards() (value PublicForwardClassArray)
PublicForwardMessage represents TL type `publicForwardMessage#1f2bf4a`. Contains info about a forward of a story¹ as a message. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/publicForwardMessage for reference. The message that was pinned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PublicForwardMessage from given interface. GetMessage returns value of Message 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. (*PublicForwardMessage) Zero() bool *PublicForwardMessage : PublicForwardClass *PublicForwardMessage : github.com/gotd/td/bin.BareDecoder *PublicForwardMessage : github.com/gotd/td/bin.BareEncoder *PublicForwardMessage : github.com/gotd/td/bin.Decoder *PublicForwardMessage : github.com/gotd/td/bin.Encoder *PublicForwardMessage : github.com/gotd/td/bin.Object *PublicForwardMessage : github.com/gotd/td/tdp.Object *PublicForwardMessage : fmt.Stringer func PublicForwardMessageArray.First() (v PublicForwardMessage, ok bool) func PublicForwardMessageArray.Last() (v PublicForwardMessage, ok bool) func (*PublicForwardMessageArray).Pop() (v PublicForwardMessage, ok bool) func (*PublicForwardMessageArray).PopFirst() (v PublicForwardMessage, ok bool)
PublicForwardMessageArray is adapter for slice of PublicForwardMessage. 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 PublicForwardMessage. Sort sorts slice of PublicForwardMessage. SortStable sorts slice of PublicForwardMessage. func PublicForwardClassArray.AsPublicForwardMessage() (to PublicForwardMessageArray) func PublicForwardMessageArray.Retain(keep func(x PublicForwardMessage) bool) PublicForwardMessageArray func PublicForwardMessageArray.Sort(less func(a, b PublicForwardMessage) bool) PublicForwardMessageArray func PublicForwardMessageArray.SortStable(less func(a, b PublicForwardMessage) bool) PublicForwardMessageArray
PublicForwardStory represents TL type `publicForwardStory#edf3add0`. Contains info about a forward of a story¹ as a repost by a public channel. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/publicForwardStory for reference. The channel that reposted the story. The reposted story (may be different from the original story). Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills PublicForwardStory from given interface. GetPeer returns value of Peer field. GetStory returns value of Story 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. (*PublicForwardStory) Zero() bool *PublicForwardStory : PublicForwardClass *PublicForwardStory : github.com/gotd/td/bin.BareDecoder *PublicForwardStory : github.com/gotd/td/bin.BareEncoder *PublicForwardStory : github.com/gotd/td/bin.Decoder *PublicForwardStory : github.com/gotd/td/bin.Encoder *PublicForwardStory : github.com/gotd/td/bin.Object *PublicForwardStory : github.com/gotd/td/tdp.Object *PublicForwardStory : fmt.Stringer func PublicForwardStoryArray.First() (v PublicForwardStory, ok bool) func PublicForwardStoryArray.Last() (v PublicForwardStory, ok bool) func (*PublicForwardStoryArray).Pop() (v PublicForwardStory, ok bool) func (*PublicForwardStoryArray).PopFirst() (v PublicForwardStory, ok bool)
PublicForwardStoryArray is adapter for slice of PublicForwardStory. 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 PublicForwardStory. Sort sorts slice of PublicForwardStory. SortStable sorts slice of PublicForwardStory. func PublicForwardClassArray.AsPublicForwardStory() (to PublicForwardStoryArray) func PublicForwardStoryArray.Retain(keep func(x PublicForwardStory) bool) PublicForwardStoryArray func PublicForwardStoryArray.Sort(less func(a, b PublicForwardStory) bool) PublicForwardStoryArray func PublicForwardStoryArray.SortStable(less func(a, b PublicForwardStory) bool) PublicForwardStoryArray
Reaction boxes the ReactionClass providing a helper. New emoji reaction Decode implements bin.Decoder for ReactionBox. Encode implements bin.Encode for ReactionBox. *ReactionBox : github.com/gotd/td/bin.Decoder *ReactionBox : github.com/gotd/td/bin.Encoder *ReactionBox : github.com/gotd/td/bin.Object
ReactionClass represents Reaction generic type. See https://core.telegram.org/type/Reaction for reference. Example: g, err := tg.DecodeReaction(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ReactionEmpty: // reactionEmpty#79f5d419 case *tg.ReactionEmoji: // reactionEmoji#1b2286b8 case *tg.ReactionCustomEmoji: // reactionCustomEmoji#8935fc73 default: panic(v) } ( ReactionClass) Decode(b *bin.Buffer) error ( ReactionClass) DecodeBare(b *bin.Buffer) error ( ReactionClass) Encode(b *bin.Buffer) error ( ReactionClass) 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. *ReactionCustomEmoji *ReactionEmoji *ReactionEmpty ReactionClass : github.com/gotd/td/bin.BareDecoder ReactionClass : github.com/gotd/td/bin.BareEncoder ReactionClass : github.com/gotd/td/bin.Decoder ReactionClass : github.com/gotd/td/bin.Encoder ReactionClass : github.com/gotd/td/bin.Object ReactionClass : fmt.Stringer func DecodeReaction(buf *bin.Buffer) (ReactionClass, error) func (*ChatReactionsSome).GetReactions() (value []ReactionClass) func (*Config).GetReactionsDefault() (value ReactionClass, ok bool) func (*MediaAreaSuggestedReaction).GetReaction() (value ReactionClass) func (*MessagePeerReaction).GetReaction() (value ReactionClass) func (*MessagesGetMessageReactionsListRequest).GetReaction() (value ReactionClass, ok bool) func (*MessagesReactions).GetReactions() (value []ReactionClass) func (*MessagesSendReactionRequest).GetReaction() (value []ReactionClass, ok bool) func (*MessagesSetDefaultReactionRequest).GetReaction() (value ReactionClass) func ReactionClassArray.First() (v ReactionClass, ok bool) func ReactionClassArray.Last() (v ReactionClass, ok bool) func (*ReactionClassArray).Pop() (v ReactionClass, ok bool) func (*ReactionClassArray).PopFirst() (v ReactionClass, ok bool) func (*ReactionCount).GetReaction() (value ReactionClass) func (*StoriesGetStoryReactionsListRequest).GetReaction() (value ReactionClass, ok bool) func (*StoriesSendReactionRequest).GetReaction() (value ReactionClass) func (*StoryItem).GetSentReaction() (value ReactionClass, ok bool) func (*StoryReaction).GetReaction() (value ReactionClass) func (*StoryView).GetReaction() (value ReactionClass, ok bool) func (*UpdateBotMessageReaction).GetNewReactions() (value []ReactionClass) func (*UpdateBotMessageReaction).GetOldReactions() (value []ReactionClass) func (*UpdateSentStoryReaction).GetReaction() (value ReactionClass) func (*Client).MessagesSetDefaultReaction(ctx context.Context, reaction ReactionClass) (bool, error) func (*Config).SetReactionsDefault(value ReactionClass) func (*MessagesGetMessageReactionsListRequest).SetReaction(value ReactionClass) func (*MessagesSendReactionRequest).SetReaction(value []ReactionClass) func (*StoriesGetStoryReactionsListRequest).SetReaction(value ReactionClass) func (*StoryItem).SetSentReaction(value ReactionClass) func (*StoryView).SetReaction(value ReactionClass)
ReactionClassArray is adapter for slice of ReactionClass. AsReactionCustomEmoji returns copy with only ReactionCustomEmoji constructors. AsReactionEmoji returns copy with only ReactionEmoji 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 ReactionClass. Sort sorts slice of ReactionClass. SortStable sorts slice of ReactionClass. func (*ChatReactionsSome).MapReactions() (value ReactionClassArray) func (*MessagesReactions).MapReactions() (value ReactionClassArray) func (*MessagesSendReactionRequest).MapReaction() (value ReactionClassArray, ok bool) func ReactionClassArray.Retain(keep func(x ReactionClass) bool) ReactionClassArray func ReactionClassArray.Sort(less func(a, b ReactionClass) bool) ReactionClassArray func ReactionClassArray.SortStable(less func(a, b ReactionClass) bool) ReactionClassArray func (*UpdateBotMessageReaction).MapNewReactions() (value ReactionClassArray) func (*UpdateBotMessageReaction).MapOldReactions() (value ReactionClassArray)
ReactionCount represents TL type `reactionCount#a3d1cb80`. Reactions See https://core.telegram.org/constructor/reactionCount for reference. If set, indicates that the current user also sent this reaction. The integer value indicates when was the reaction added: the bigger the value, the newer the reaction. Use SetChosenOrder and GetChosenOrder helpers. Number of users that reacted with this emoji. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The reaction. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReactionCount from given interface. GetChosenOrder returns value of ChosenOrder conditional field and boolean which is true if field was set. GetCount returns value of Count field. GetReaction returns value of Reaction field. SetChosenOrder sets value of ChosenOrder 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. (*ReactionCount) Zero() bool *ReactionCount : github.com/gotd/td/bin.BareDecoder *ReactionCount : github.com/gotd/td/bin.BareEncoder *ReactionCount : github.com/gotd/td/bin.Decoder *ReactionCount : github.com/gotd/td/bin.Encoder *ReactionCount : github.com/gotd/td/bin.Object *ReactionCount : github.com/gotd/td/tdp.Object *ReactionCount : fmt.Stringer func (*MessageReactions).GetResults() (value []ReactionCount) func (*StoryViews).GetReactions() (value []ReactionCount, ok bool) func (*UpdateBotMessageReactions).GetReactions() (value []ReactionCount) func (*StoryViews).SetReactions(value []ReactionCount)
ReactionCustomEmoji represents TL type `reactionCustomEmoji#8935fc73`. Custom emoji¹ message reaction Links: 1. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/constructor/reactionCustomEmoji for reference. Custom emoji document ID¹ Links: 1) https://core.telegram.org/api/custom-emoji Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReactionCustomEmoji from given interface. GetDocumentID returns value of DocumentID 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. (*ReactionCustomEmoji) Zero() bool *ReactionCustomEmoji : ReactionClass *ReactionCustomEmoji : github.com/gotd/td/bin.BareDecoder *ReactionCustomEmoji : github.com/gotd/td/bin.BareEncoder *ReactionCustomEmoji : github.com/gotd/td/bin.Decoder *ReactionCustomEmoji : github.com/gotd/td/bin.Encoder *ReactionCustomEmoji : github.com/gotd/td/bin.Object *ReactionCustomEmoji : github.com/gotd/td/tdp.Object *ReactionCustomEmoji : fmt.Stringer func ReactionCustomEmojiArray.First() (v ReactionCustomEmoji, ok bool) func ReactionCustomEmojiArray.Last() (v ReactionCustomEmoji, ok bool) func (*ReactionCustomEmojiArray).Pop() (v ReactionCustomEmoji, ok bool) func (*ReactionCustomEmojiArray).PopFirst() (v ReactionCustomEmoji, ok bool)
ReactionCustomEmojiArray is adapter for slice of ReactionCustomEmoji. 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 ReactionCustomEmoji. Sort sorts slice of ReactionCustomEmoji. SortStable sorts slice of ReactionCustomEmoji. func ReactionClassArray.AsReactionCustomEmoji() (to ReactionCustomEmojiArray) func ReactionCustomEmojiArray.Retain(keep func(x ReactionCustomEmoji) bool) ReactionCustomEmojiArray func ReactionCustomEmojiArray.Sort(less func(a, b ReactionCustomEmoji) bool) ReactionCustomEmojiArray func ReactionCustomEmojiArray.SortStable(less func(a, b ReactionCustomEmoji) bool) ReactionCustomEmojiArray
ReactionEmoji represents TL type `reactionEmoji#1b2286b8`. Normal emoji message reaction See https://core.telegram.org/constructor/reactionEmoji for reference. The emoji, for now , and are supported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReactionEmoji from given interface. GetEmoticon returns value of Emoticon 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. (*ReactionEmoji) Zero() bool *ReactionEmoji : ReactionClass *ReactionEmoji : github.com/gotd/td/bin.BareDecoder *ReactionEmoji : github.com/gotd/td/bin.BareEncoder *ReactionEmoji : github.com/gotd/td/bin.Decoder *ReactionEmoji : github.com/gotd/td/bin.Encoder *ReactionEmoji : github.com/gotd/td/bin.Object *ReactionEmoji : github.com/gotd/td/tdp.Object *ReactionEmoji : fmt.Stringer func ReactionEmojiArray.First() (v ReactionEmoji, ok bool) func ReactionEmojiArray.Last() (v ReactionEmoji, ok bool) func (*ReactionEmojiArray).Pop() (v ReactionEmoji, ok bool) func (*ReactionEmojiArray).PopFirst() (v ReactionEmoji, ok bool)
ReactionEmojiArray is adapter for slice of ReactionEmoji. 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 ReactionEmoji. Sort sorts slice of ReactionEmoji. SortStable sorts slice of ReactionEmoji. func ReactionClassArray.AsReactionEmoji() (to ReactionEmojiArray) func ReactionEmojiArray.Retain(keep func(x ReactionEmoji) bool) ReactionEmojiArray func ReactionEmojiArray.Sort(less func(a, b ReactionEmoji) bool) ReactionEmojiArray func ReactionEmojiArray.SortStable(less func(a, b ReactionEmoji) bool) ReactionEmojiArray
ReactionEmpty represents TL type `reactionEmpty#79f5d419`. No reaction See https://core.telegram.org/constructor/reactionEmpty 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. (*ReactionEmpty) Zero() bool *ReactionEmpty : ReactionClass *ReactionEmpty : github.com/gotd/td/bin.BareDecoder *ReactionEmpty : github.com/gotd/td/bin.BareEncoder *ReactionEmpty : github.com/gotd/td/bin.Decoder *ReactionEmpty : github.com/gotd/td/bin.Encoder *ReactionEmpty : github.com/gotd/td/bin.Object *ReactionEmpty : github.com/gotd/td/tdp.Object *ReactionEmpty : fmt.Stringer
ReadChannelDiscussionInboxHandler is a ReadChannelDiscussionInbox event handler. func UpdateDispatcher.OnReadChannelDiscussionInbox(handler ReadChannelDiscussionInboxHandler)
ReadChannelDiscussionOutboxHandler is a ReadChannelDiscussionOutbox event handler. func UpdateDispatcher.OnReadChannelDiscussionOutbox(handler ReadChannelDiscussionOutboxHandler)
ReadChannelInboxHandler is a ReadChannelInbox event handler. func UpdateDispatcher.OnReadChannelInbox(handler ReadChannelInboxHandler)
ReadChannelOutboxHandler is a ReadChannelOutbox event handler. func UpdateDispatcher.OnReadChannelOutbox(handler ReadChannelOutboxHandler)
ReadFeaturedEmojiStickersHandler is a ReadFeaturedEmojiStickers event handler. func UpdateDispatcher.OnReadFeaturedEmojiStickers(handler ReadFeaturedEmojiStickersHandler)
ReadFeaturedStickersHandler is a ReadFeaturedStickers event handler. func UpdateDispatcher.OnReadFeaturedStickers(handler ReadFeaturedStickersHandler)
ReadHistoryInboxHandler is a ReadHistoryInbox event handler. func UpdateDispatcher.OnReadHistoryInbox(handler ReadHistoryInboxHandler)
ReadHistoryOutboxHandler is a ReadHistoryOutbox event handler. func UpdateDispatcher.OnReadHistoryOutbox(handler ReadHistoryOutboxHandler)
ReadMessagesContentsHandler is a ReadMessagesContents event handler. func UpdateDispatcher.OnReadMessagesContents(handler ReadMessagesContentsHandler)
ReadParticipantDate represents TL type `readParticipantDate#4a4ff172`. Contains info about when a certain participant has read a message See https://core.telegram.org/constructor/readParticipantDate for reference. Date joined Participant user ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReadParticipantDate from given interface. GetDate returns value of Date 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. (*ReadParticipantDate) Zero() bool *ReadParticipantDate : github.com/gotd/td/bin.BareDecoder *ReadParticipantDate : github.com/gotd/td/bin.BareEncoder *ReadParticipantDate : github.com/gotd/td/bin.Decoder *ReadParticipantDate : github.com/gotd/td/bin.Encoder *ReadParticipantDate : github.com/gotd/td/bin.Object *ReadParticipantDate : github.com/gotd/td/tdp.Object *ReadParticipantDate : fmt.Stringer func (*Client).MessagesGetMessageReadParticipants(ctx context.Context, request *MessagesGetMessageReadParticipantsRequest) ([]ReadParticipantDate, error) func (*ReadParticipantDateVector).GetElems() (value []ReadParticipantDate)
ReadParticipantDateVector is a box for Vector<ReadParticipantDate> Elements of Vector<ReadParticipantDate> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReadParticipantDateVector 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. (*ReadParticipantDateVector) Zero() bool *ReadParticipantDateVector : github.com/gotd/td/bin.BareDecoder *ReadParticipantDateVector : github.com/gotd/td/bin.BareEncoder *ReadParticipantDateVector : github.com/gotd/td/bin.Decoder *ReadParticipantDateVector : github.com/gotd/td/bin.Encoder *ReadParticipantDateVector : github.com/gotd/td/bin.Object *ReadParticipantDateVector : github.com/gotd/td/tdp.Object *ReadParticipantDateVector : fmt.Stringer
ReadStoriesHandler is a ReadStories event handler. func UpdateDispatcher.OnReadStories(handler ReadStoriesHandler)
ReceivedNotifyMessage represents TL type `receivedNotifyMessage#a384b779`. Message ID, for which PUSH-notifications were cancelled. See https://core.telegram.org/constructor/receivedNotifyMessage for reference. Reserved for future use Message ID, for which PUSH-notifications were canceled Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReceivedNotifyMessage from given interface. GetFlags returns value of Flags 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. (*ReceivedNotifyMessage) Zero() bool *ReceivedNotifyMessage : github.com/gotd/td/bin.BareDecoder *ReceivedNotifyMessage : github.com/gotd/td/bin.BareEncoder *ReceivedNotifyMessage : github.com/gotd/td/bin.Decoder *ReceivedNotifyMessage : github.com/gotd/td/bin.Encoder *ReceivedNotifyMessage : github.com/gotd/td/bin.Object *ReceivedNotifyMessage : github.com/gotd/td/tdp.Object *ReceivedNotifyMessage : fmt.Stringer func (*Client).MessagesReceivedMessages(ctx context.Context, maxid int) ([]ReceivedNotifyMessage, error) func (*ReceivedNotifyMessageVector).GetElems() (value []ReceivedNotifyMessage)
ReceivedNotifyMessageVector is a box for Vector<ReceivedNotifyMessage> Elements of Vector<ReceivedNotifyMessage> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReceivedNotifyMessageVector 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. (*ReceivedNotifyMessageVector) Zero() bool *ReceivedNotifyMessageVector : github.com/gotd/td/bin.BareDecoder *ReceivedNotifyMessageVector : github.com/gotd/td/bin.BareEncoder *ReceivedNotifyMessageVector : github.com/gotd/td/bin.Decoder *ReceivedNotifyMessageVector : github.com/gotd/td/bin.Encoder *ReceivedNotifyMessageVector : github.com/gotd/td/bin.Object *ReceivedNotifyMessageVector : github.com/gotd/td/tdp.Object *ReceivedNotifyMessageVector : fmt.Stringer
RecentEmojiStatusesHandler is a RecentEmojiStatuses event handler. func UpdateDispatcher.OnRecentEmojiStatuses(handler RecentEmojiStatusesHandler)
RecentMeURL boxes the RecentMeURLClass providing a helper. RecentMeUrl RecentMeURLClass Decode implements bin.Decoder for RecentMeURLBox. Encode implements bin.Encode for RecentMeURLBox. *RecentMeURLBox : github.com/gotd/td/bin.Decoder *RecentMeURLBox : github.com/gotd/td/bin.Encoder *RecentMeURLBox : github.com/gotd/td/bin.Object
RecentMeURLChat represents TL type `recentMeUrlChat#b2da71d2`. Recent t.me link to a chat See https://core.telegram.org/constructor/recentMeUrlChat for reference. Chat ID t.me URL Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills RecentMeURLChat from given interface. GetChatID returns value of ChatID 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. (*RecentMeURLChat) Zero() bool *RecentMeURLChat : RecentMeURLClass *RecentMeURLChat : github.com/gotd/td/bin.BareDecoder *RecentMeURLChat : github.com/gotd/td/bin.BareEncoder *RecentMeURLChat : github.com/gotd/td/bin.Decoder *RecentMeURLChat : github.com/gotd/td/bin.Encoder *RecentMeURLChat : github.com/gotd/td/bin.Object *RecentMeURLChat : github.com/gotd/td/tdp.Object *RecentMeURLChat : fmt.Stringer func RecentMeURLChatArray.First() (v RecentMeURLChat, ok bool) func RecentMeURLChatArray.Last() (v RecentMeURLChat, ok bool) func (*RecentMeURLChatArray).Pop() (v RecentMeURLChat, ok bool) func (*RecentMeURLChatArray).PopFirst() (v RecentMeURLChat, ok bool)
RecentMeURLChatArray is adapter for slice of RecentMeURLChat. 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 RecentMeURLChat. Sort sorts slice of RecentMeURLChat. SortStable sorts slice of RecentMeURLChat. func RecentMeURLChatArray.Retain(keep func(x RecentMeURLChat) bool) RecentMeURLChatArray func RecentMeURLChatArray.Sort(less func(a, b RecentMeURLChat) bool) RecentMeURLChatArray func RecentMeURLChatArray.SortStable(less func(a, b RecentMeURLChat) bool) RecentMeURLChatArray func RecentMeURLClassArray.AsRecentMeURLChat() (to RecentMeURLChatArray)
RecentMeURLChatInvite represents TL type `recentMeUrlChatInvite#eb49081d`. Recent t.me invite link to a chat See https://core.telegram.org/constructor/recentMeUrlChatInvite for reference. Chat invitation t.me URL Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills RecentMeURLChatInvite from given interface. GetChatInvite returns value of ChatInvite 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. (*RecentMeURLChatInvite) Zero() bool *RecentMeURLChatInvite : RecentMeURLClass *RecentMeURLChatInvite : github.com/gotd/td/bin.BareDecoder *RecentMeURLChatInvite : github.com/gotd/td/bin.BareEncoder *RecentMeURLChatInvite : github.com/gotd/td/bin.Decoder *RecentMeURLChatInvite : github.com/gotd/td/bin.Encoder *RecentMeURLChatInvite : github.com/gotd/td/bin.Object *RecentMeURLChatInvite : github.com/gotd/td/tdp.Object *RecentMeURLChatInvite : fmt.Stringer func RecentMeURLChatInviteArray.First() (v RecentMeURLChatInvite, ok bool) func RecentMeURLChatInviteArray.Last() (v RecentMeURLChatInvite, ok bool) func (*RecentMeURLChatInviteArray).Pop() (v RecentMeURLChatInvite, ok bool) func (*RecentMeURLChatInviteArray).PopFirst() (v RecentMeURLChatInvite, ok bool)
RecentMeURLChatInviteArray is adapter for slice of RecentMeURLChatInvite. 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 RecentMeURLChatInvite. Sort sorts slice of RecentMeURLChatInvite. SortStable sorts slice of RecentMeURLChatInvite. func RecentMeURLChatInviteArray.Retain(keep func(x RecentMeURLChatInvite) bool) RecentMeURLChatInviteArray func RecentMeURLChatInviteArray.Sort(less func(a, b RecentMeURLChatInvite) bool) RecentMeURLChatInviteArray func RecentMeURLChatInviteArray.SortStable(less func(a, b RecentMeURLChatInvite) bool) RecentMeURLChatInviteArray func RecentMeURLClassArray.AsRecentMeURLChatInvite() (to RecentMeURLChatInviteArray)
RecentMeURLClass represents RecentMeUrl generic type. See https://core.telegram.org/type/RecentMeUrl for reference. Example: g, err := tg.DecodeRecentMeURL(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.RecentMeURLUnknown: // recentMeUrlUnknown#46e1d13d case *tg.RecentMeURLUser: // recentMeUrlUser#b92c09e2 case *tg.RecentMeURLChat: // recentMeUrlChat#b2da71d2 case *tg.RecentMeURLChatInvite: // recentMeUrlChatInvite#eb49081d case *tg.RecentMeURLStickerSet: // recentMeUrlStickerSet#bc0a57dc default: panic(v) } ( RecentMeURLClass) Decode(b *bin.Buffer) error ( RecentMeURLClass) DecodeBare(b *bin.Buffer) error ( RecentMeURLClass) Encode(b *bin.Buffer) error ( RecentMeURLClass) EncodeBare(b *bin.Buffer) error URL 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. *RecentMeURLChat *RecentMeURLChatInvite *RecentMeURLStickerSet *RecentMeURLUnknown *RecentMeURLUser RecentMeURLClass : github.com/gotd/td/bin.BareDecoder RecentMeURLClass : github.com/gotd/td/bin.BareEncoder RecentMeURLClass : github.com/gotd/td/bin.Decoder RecentMeURLClass : github.com/gotd/td/bin.Encoder RecentMeURLClass : github.com/gotd/td/bin.Object RecentMeURLClass : fmt.Stringer func DecodeRecentMeURL(buf *bin.Buffer) (RecentMeURLClass, error) func (*HelpRecentMeURLs).GetURLs() (value []RecentMeURLClass) func RecentMeURLClassArray.First() (v RecentMeURLClass, ok bool) func RecentMeURLClassArray.Last() (v RecentMeURLClass, ok bool) func (*RecentMeURLClassArray).Pop() (v RecentMeURLClass, ok bool) func (*RecentMeURLClassArray).PopFirst() (v RecentMeURLClass, ok bool)
RecentMeURLClassArray is adapter for slice of RecentMeURLClass. AsRecentMeURLChat returns copy with only RecentMeURLChat constructors. AsRecentMeURLChatInvite returns copy with only RecentMeURLChatInvite constructors. AsRecentMeURLStickerSet returns copy with only RecentMeURLStickerSet constructors. AsRecentMeURLUnknown returns copy with only RecentMeURLUnknown constructors. AsRecentMeURLUser returns copy with only RecentMeURLUser 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 RecentMeURLClass. Sort sorts slice of RecentMeURLClass. SortStable sorts slice of RecentMeURLClass. func (*HelpRecentMeURLs).MapURLs() (value RecentMeURLClassArray) func RecentMeURLClassArray.Retain(keep func(x RecentMeURLClass) bool) RecentMeURLClassArray func RecentMeURLClassArray.Sort(less func(a, b RecentMeURLClass) bool) RecentMeURLClassArray func RecentMeURLClassArray.SortStable(less func(a, b RecentMeURLClass) bool) RecentMeURLClassArray
RecentMeURLStickerSet represents TL type `recentMeUrlStickerSet#bc0a57dc`. Recent t.me stickerset installation URL See https://core.telegram.org/constructor/recentMeUrlStickerSet for reference. Stickerset t.me URL Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills RecentMeURLStickerSet from given interface. GetSet returns value of Set 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. (*RecentMeURLStickerSet) Zero() bool *RecentMeURLStickerSet : RecentMeURLClass *RecentMeURLStickerSet : github.com/gotd/td/bin.BareDecoder *RecentMeURLStickerSet : github.com/gotd/td/bin.BareEncoder *RecentMeURLStickerSet : github.com/gotd/td/bin.Decoder *RecentMeURLStickerSet : github.com/gotd/td/bin.Encoder *RecentMeURLStickerSet : github.com/gotd/td/bin.Object *RecentMeURLStickerSet : github.com/gotd/td/tdp.Object *RecentMeURLStickerSet : fmt.Stringer func RecentMeURLStickerSetArray.First() (v RecentMeURLStickerSet, ok bool) func RecentMeURLStickerSetArray.Last() (v RecentMeURLStickerSet, ok bool) func (*RecentMeURLStickerSetArray).Pop() (v RecentMeURLStickerSet, ok bool) func (*RecentMeURLStickerSetArray).PopFirst() (v RecentMeURLStickerSet, ok bool)
RecentMeURLStickerSetArray is adapter for slice of RecentMeURLStickerSet. 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 RecentMeURLStickerSet. Sort sorts slice of RecentMeURLStickerSet. SortStable sorts slice of RecentMeURLStickerSet. func RecentMeURLClassArray.AsRecentMeURLStickerSet() (to RecentMeURLStickerSetArray) func RecentMeURLStickerSetArray.Retain(keep func(x RecentMeURLStickerSet) bool) RecentMeURLStickerSetArray func RecentMeURLStickerSetArray.Sort(less func(a, b RecentMeURLStickerSet) bool) RecentMeURLStickerSetArray func RecentMeURLStickerSetArray.SortStable(less func(a, b RecentMeURLStickerSet) bool) RecentMeURLStickerSetArray
RecentMeURLUnknown represents TL type `recentMeUrlUnknown#46e1d13d`. Unknown t.me url See https://core.telegram.org/constructor/recentMeUrlUnknown for reference. The URL to open Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills RecentMeURLUnknown from given interface. 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. (*RecentMeURLUnknown) Zero() bool *RecentMeURLUnknown : RecentMeURLClass *RecentMeURLUnknown : github.com/gotd/td/bin.BareDecoder *RecentMeURLUnknown : github.com/gotd/td/bin.BareEncoder *RecentMeURLUnknown : github.com/gotd/td/bin.Decoder *RecentMeURLUnknown : github.com/gotd/td/bin.Encoder *RecentMeURLUnknown : github.com/gotd/td/bin.Object *RecentMeURLUnknown : github.com/gotd/td/tdp.Object *RecentMeURLUnknown : fmt.Stringer func RecentMeURLUnknownArray.First() (v RecentMeURLUnknown, ok bool) func RecentMeURLUnknownArray.Last() (v RecentMeURLUnknown, ok bool) func (*RecentMeURLUnknownArray).Pop() (v RecentMeURLUnknown, ok bool) func (*RecentMeURLUnknownArray).PopFirst() (v RecentMeURLUnknown, ok bool)
RecentMeURLUnknownArray is adapter for slice of RecentMeURLUnknown. 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 RecentMeURLUnknown. Sort sorts slice of RecentMeURLUnknown. SortStable sorts slice of RecentMeURLUnknown. func RecentMeURLClassArray.AsRecentMeURLUnknown() (to RecentMeURLUnknownArray) func RecentMeURLUnknownArray.Retain(keep func(x RecentMeURLUnknown) bool) RecentMeURLUnknownArray func RecentMeURLUnknownArray.Sort(less func(a, b RecentMeURLUnknown) bool) RecentMeURLUnknownArray func RecentMeURLUnknownArray.SortStable(less func(a, b RecentMeURLUnknown) bool) RecentMeURLUnknownArray
RecentMeURLUser represents TL type `recentMeUrlUser#b92c09e2`. Recent t.me link to a user See https://core.telegram.org/constructor/recentMeUrlUser for reference. URL User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills RecentMeURLUser from given interface. GetURL returns value of URL 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. (*RecentMeURLUser) Zero() bool *RecentMeURLUser : RecentMeURLClass *RecentMeURLUser : github.com/gotd/td/bin.BareDecoder *RecentMeURLUser : github.com/gotd/td/bin.BareEncoder *RecentMeURLUser : github.com/gotd/td/bin.Decoder *RecentMeURLUser : github.com/gotd/td/bin.Encoder *RecentMeURLUser : github.com/gotd/td/bin.Object *RecentMeURLUser : github.com/gotd/td/tdp.Object *RecentMeURLUser : fmt.Stringer func RecentMeURLUserArray.First() (v RecentMeURLUser, ok bool) func RecentMeURLUserArray.Last() (v RecentMeURLUser, ok bool) func (*RecentMeURLUserArray).Pop() (v RecentMeURLUser, ok bool) func (*RecentMeURLUserArray).PopFirst() (v RecentMeURLUser, ok bool)
RecentMeURLUserArray is adapter for slice of RecentMeURLUser. 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 RecentMeURLUser. Sort sorts slice of RecentMeURLUser. SortStable sorts slice of RecentMeURLUser. func RecentMeURLClassArray.AsRecentMeURLUser() (to RecentMeURLUserArray) func RecentMeURLUserArray.Retain(keep func(x RecentMeURLUser) bool) RecentMeURLUserArray func RecentMeURLUserArray.Sort(less func(a, b RecentMeURLUser) bool) RecentMeURLUserArray func RecentMeURLUserArray.SortStable(less func(a, b RecentMeURLUser) bool) RecentMeURLUserArray
RecentReactionsHandler is a RecentReactions event handler. func UpdateDispatcher.OnRecentReactions(handler RecentReactionsHandler)
RecentStickersHandler is a RecentStickers event handler. func UpdateDispatcher.OnRecentStickers(handler RecentStickersHandler)
ReplyInlineMarkup represents TL type `replyInlineMarkup#48a30254`. Bot or inline keyboard See https://core.telegram.org/constructor/replyInlineMarkup for reference. Bot or inline keyboard rows Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReplyInlineMarkup from given interface. GetRows returns value of Rows 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. (*ReplyInlineMarkup) Zero() bool *ReplyInlineMarkup : ReplyMarkupClass *ReplyInlineMarkup : github.com/gotd/td/bin.BareDecoder *ReplyInlineMarkup : github.com/gotd/td/bin.BareEncoder *ReplyInlineMarkup : github.com/gotd/td/bin.Decoder *ReplyInlineMarkup : github.com/gotd/td/bin.Encoder *ReplyInlineMarkup : github.com/gotd/td/bin.Object *ReplyInlineMarkup : github.com/gotd/td/tdp.Object *ReplyInlineMarkup : fmt.Stringer func ReplyInlineMarkupArray.First() (v ReplyInlineMarkup, ok bool) func ReplyInlineMarkupArray.Last() (v ReplyInlineMarkup, ok bool) func (*ReplyInlineMarkupArray).Pop() (v ReplyInlineMarkup, ok bool) func (*ReplyInlineMarkupArray).PopFirst() (v ReplyInlineMarkup, ok bool)
ReplyInlineMarkupArray is adapter for slice of ReplyInlineMarkup. 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 ReplyInlineMarkup. Sort sorts slice of ReplyInlineMarkup. SortStable sorts slice of ReplyInlineMarkup. func ReplyInlineMarkupArray.Retain(keep func(x ReplyInlineMarkup) bool) ReplyInlineMarkupArray func ReplyInlineMarkupArray.Sort(less func(a, b ReplyInlineMarkup) bool) ReplyInlineMarkupArray func ReplyInlineMarkupArray.SortStable(less func(a, b ReplyInlineMarkup) bool) ReplyInlineMarkupArray func ReplyMarkupClassArray.AsReplyInlineMarkup() (to ReplyInlineMarkupArray)
ReplyKeyboardForceReply represents TL type `replyKeyboardForceReply#86b40b08`. Force the user to send a reply See https://core.telegram.org/constructor/replyKeyboardForceReply for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The placeholder to be shown in the input field when the keyboard is active; 1-64 characters. Use SetPlaceholder and GetPlaceholder helpers. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message. Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReplyKeyboardForceReply from given interface. GetPlaceholder returns value of Placeholder conditional field and boolean which is true if field was set. GetSelective returns value of Selective conditional field. GetSingleUse returns value of SingleUse conditional field. SetFlags sets flags for non-zero fields. SetPlaceholder sets value of Placeholder conditional field. SetSelective sets value of Selective conditional field. SetSingleUse sets value of SingleUse 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. (*ReplyKeyboardForceReply) Zero() bool *ReplyKeyboardForceReply : ReplyMarkupClass *ReplyKeyboardForceReply : github.com/gotd/td/bin.BareDecoder *ReplyKeyboardForceReply : github.com/gotd/td/bin.BareEncoder *ReplyKeyboardForceReply : github.com/gotd/td/bin.Decoder *ReplyKeyboardForceReply : github.com/gotd/td/bin.Encoder *ReplyKeyboardForceReply : github.com/gotd/td/bin.Object *ReplyKeyboardForceReply : github.com/gotd/td/tdp.Object *ReplyKeyboardForceReply : fmt.Stringer func ReplyKeyboardForceReplyArray.First() (v ReplyKeyboardForceReply, ok bool) func ReplyKeyboardForceReplyArray.Last() (v ReplyKeyboardForceReply, ok bool) func (*ReplyKeyboardForceReplyArray).Pop() (v ReplyKeyboardForceReply, ok bool) func (*ReplyKeyboardForceReplyArray).PopFirst() (v ReplyKeyboardForceReply, ok bool)
ReplyKeyboardForceReplyArray is adapter for slice of ReplyKeyboardForceReply. 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 ReplyKeyboardForceReply. Sort sorts slice of ReplyKeyboardForceReply. SortStable sorts slice of ReplyKeyboardForceReply. func ReplyKeyboardForceReplyArray.Retain(keep func(x ReplyKeyboardForceReply) bool) ReplyKeyboardForceReplyArray func ReplyKeyboardForceReplyArray.Sort(less func(a, b ReplyKeyboardForceReply) bool) ReplyKeyboardForceReplyArray func ReplyKeyboardForceReplyArray.SortStable(less func(a, b ReplyKeyboardForceReply) bool) ReplyKeyboardForceReplyArray func ReplyMarkupClassArray.AsReplyKeyboardForceReply() (to ReplyKeyboardForceReplyArray)
ReplyKeyboardHide represents TL type `replyKeyboardHide#a03e5b85`. Hide sent bot keyboard See https://core.telegram.org/constructor/replyKeyboardHide for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Use this flag if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReplyKeyboardHide from given interface. GetSelective returns value of Selective conditional field. SetFlags sets flags for non-zero fields. SetSelective sets value of Selective 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. (*ReplyKeyboardHide) Zero() bool *ReplyKeyboardHide : ReplyMarkupClass *ReplyKeyboardHide : github.com/gotd/td/bin.BareDecoder *ReplyKeyboardHide : github.com/gotd/td/bin.BareEncoder *ReplyKeyboardHide : github.com/gotd/td/bin.Decoder *ReplyKeyboardHide : github.com/gotd/td/bin.Encoder *ReplyKeyboardHide : github.com/gotd/td/bin.Object *ReplyKeyboardHide : github.com/gotd/td/tdp.Object *ReplyKeyboardHide : fmt.Stringer func ReplyKeyboardHideArray.First() (v ReplyKeyboardHide, ok bool) func ReplyKeyboardHideArray.Last() (v ReplyKeyboardHide, ok bool) func (*ReplyKeyboardHideArray).Pop() (v ReplyKeyboardHide, ok bool) func (*ReplyKeyboardHideArray).PopFirst() (v ReplyKeyboardHide, ok bool)
ReplyKeyboardHideArray is adapter for slice of ReplyKeyboardHide. 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 ReplyKeyboardHide. Sort sorts slice of ReplyKeyboardHide. SortStable sorts slice of ReplyKeyboardHide. func ReplyKeyboardHideArray.Retain(keep func(x ReplyKeyboardHide) bool) ReplyKeyboardHideArray func ReplyKeyboardHideArray.Sort(less func(a, b ReplyKeyboardHide) bool) ReplyKeyboardHideArray func ReplyKeyboardHideArray.SortStable(less func(a, b ReplyKeyboardHide) bool) ReplyKeyboardHideArray func ReplyMarkupClassArray.AsReplyKeyboardHide() (to ReplyKeyboardHideArray)
ReplyKeyboardMarkup represents TL type `replyKeyboardMarkup#85dd99d1`. Bot keyboard See https://core.telegram.org/constructor/replyKeyboardMarkup for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Requests clients to always show the keyboard when the regular keyboard is hidden. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters. Use SetPlaceholder and GetPlaceholder helpers. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). If not set, the custom keyboard is always of the same height as the app's standard keyboard. Button row Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ReplyKeyboardMarkup from given interface. GetPersistent returns value of Persistent conditional field. GetPlaceholder returns value of Placeholder conditional field and boolean which is true if field was set. GetResize returns value of Resize conditional field. GetRows returns value of Rows field. GetSelective returns value of Selective conditional field. GetSingleUse returns value of SingleUse conditional field. SetFlags sets flags for non-zero fields. SetPersistent sets value of Persistent conditional field. SetPlaceholder sets value of Placeholder conditional field. SetResize sets value of Resize conditional field. SetSelective sets value of Selective conditional field. SetSingleUse sets value of SingleUse 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. (*ReplyKeyboardMarkup) Zero() bool *ReplyKeyboardMarkup : ReplyMarkupClass *ReplyKeyboardMarkup : github.com/gotd/td/bin.BareDecoder *ReplyKeyboardMarkup : github.com/gotd/td/bin.BareEncoder *ReplyKeyboardMarkup : github.com/gotd/td/bin.Decoder *ReplyKeyboardMarkup : github.com/gotd/td/bin.Encoder *ReplyKeyboardMarkup : github.com/gotd/td/bin.Object *ReplyKeyboardMarkup : github.com/gotd/td/tdp.Object *ReplyKeyboardMarkup : fmt.Stringer func ReplyKeyboardMarkupArray.First() (v ReplyKeyboardMarkup, ok bool) func ReplyKeyboardMarkupArray.Last() (v ReplyKeyboardMarkup, ok bool) func (*ReplyKeyboardMarkupArray).Pop() (v ReplyKeyboardMarkup, ok bool) func (*ReplyKeyboardMarkupArray).PopFirst() (v ReplyKeyboardMarkup, ok bool)
ReplyKeyboardMarkupArray is adapter for slice of ReplyKeyboardMarkup. 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 ReplyKeyboardMarkup. Sort sorts slice of ReplyKeyboardMarkup. SortStable sorts slice of ReplyKeyboardMarkup. func ReplyKeyboardMarkupArray.Retain(keep func(x ReplyKeyboardMarkup) bool) ReplyKeyboardMarkupArray func ReplyKeyboardMarkupArray.Sort(less func(a, b ReplyKeyboardMarkup) bool) ReplyKeyboardMarkupArray func ReplyKeyboardMarkupArray.SortStable(less func(a, b ReplyKeyboardMarkup) bool) ReplyKeyboardMarkupArray func ReplyMarkupClassArray.AsReplyKeyboardMarkup() (to ReplyKeyboardMarkupArray)
ReplyMarkup boxes the ReplyMarkupClass providing a helper. ReplyMarkup ReplyMarkupClass Decode implements bin.Decoder for ReplyMarkupBox. Encode implements bin.Encode for ReplyMarkupBox. *ReplyMarkupBox : github.com/gotd/td/bin.Decoder *ReplyMarkupBox : github.com/gotd/td/bin.Encoder *ReplyMarkupBox : github.com/gotd/td/bin.Object
ReplyMarkupClass represents ReplyMarkup generic type. See https://core.telegram.org/type/ReplyMarkup for reference. Example: g, err := tg.DecodeReplyMarkup(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.ReplyKeyboardHide: // replyKeyboardHide#a03e5b85 case *tg.ReplyKeyboardForceReply: // replyKeyboardForceReply#86b40b08 case *tg.ReplyKeyboardMarkup: // replyKeyboardMarkup#85dd99d1 case *tg.ReplyInlineMarkup: // replyInlineMarkup#48a30254 default: panic(v) } ( ReplyMarkupClass) Decode(b *bin.Buffer) error ( ReplyMarkupClass) DecodeBare(b *bin.Buffer) error ( ReplyMarkupClass) Encode(b *bin.Buffer) error ( ReplyMarkupClass) 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. *ReplyInlineMarkup *ReplyKeyboardForceReply *ReplyKeyboardHide *ReplyKeyboardMarkup ReplyMarkupClass : github.com/gotd/td/bin.BareDecoder ReplyMarkupClass : github.com/gotd/td/bin.BareEncoder ReplyMarkupClass : github.com/gotd/td/bin.Decoder ReplyMarkupClass : github.com/gotd/td/bin.Encoder ReplyMarkupClass : github.com/gotd/td/bin.Object ReplyMarkupClass : fmt.Stringer func DecodeReplyMarkup(buf *bin.Buffer) (ReplyMarkupClass, error) func BotInlineMessageClass.GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*BotInlineMessageMediaAuto).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*BotInlineMessageMediaContact).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*BotInlineMessageMediaGeo).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*BotInlineMessageMediaInvoice).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*BotInlineMessageMediaVenue).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*BotInlineMessageMediaWebPage).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*BotInlineMessageText).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func InputBotInlineMessageClass.GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*InputBotInlineMessageGame).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*InputBotInlineMessageMediaAuto).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*InputBotInlineMessageMediaContact).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*InputBotInlineMessageMediaGeo).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*InputBotInlineMessageMediaInvoice).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*InputBotInlineMessageMediaVenue).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*InputBotInlineMessageMediaWebPage).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*InputBotInlineMessageText).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*Message).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*MessagesEditInlineBotMessageRequest).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*MessagesEditMessageRequest).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*MessagesSendMediaRequest).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func (*MessagesSendMessageRequest).GetReplyMarkup() (value ReplyMarkupClass, ok bool) func ReplyMarkupClassArray.First() (v ReplyMarkupClass, ok bool) func ReplyMarkupClassArray.Last() (v ReplyMarkupClass, ok bool) func (*ReplyMarkupClassArray).Pop() (v ReplyMarkupClass, ok bool) func (*ReplyMarkupClassArray).PopFirst() (v ReplyMarkupClass, ok bool) func (*BotInlineMessageMediaAuto).SetReplyMarkup(value ReplyMarkupClass) func (*BotInlineMessageMediaContact).SetReplyMarkup(value ReplyMarkupClass) func (*BotInlineMessageMediaGeo).SetReplyMarkup(value ReplyMarkupClass) func (*BotInlineMessageMediaInvoice).SetReplyMarkup(value ReplyMarkupClass) func (*BotInlineMessageMediaVenue).SetReplyMarkup(value ReplyMarkupClass) func (*BotInlineMessageMediaWebPage).SetReplyMarkup(value ReplyMarkupClass) func (*BotInlineMessageText).SetReplyMarkup(value ReplyMarkupClass) func (*InputBotInlineMessageGame).SetReplyMarkup(value ReplyMarkupClass) func (*InputBotInlineMessageMediaAuto).SetReplyMarkup(value ReplyMarkupClass) func (*InputBotInlineMessageMediaContact).SetReplyMarkup(value ReplyMarkupClass) func (*InputBotInlineMessageMediaGeo).SetReplyMarkup(value ReplyMarkupClass) func (*InputBotInlineMessageMediaInvoice).SetReplyMarkup(value ReplyMarkupClass) func (*InputBotInlineMessageMediaVenue).SetReplyMarkup(value ReplyMarkupClass) func (*InputBotInlineMessageMediaWebPage).SetReplyMarkup(value ReplyMarkupClass) func (*InputBotInlineMessageText).SetReplyMarkup(value ReplyMarkupClass) func (*Message).SetReplyMarkup(value ReplyMarkupClass) func (*MessagesEditInlineBotMessageRequest).SetReplyMarkup(value ReplyMarkupClass) func (*MessagesEditMessageRequest).SetReplyMarkup(value ReplyMarkupClass) func (*MessagesSendMediaRequest).SetReplyMarkup(value ReplyMarkupClass) func (*MessagesSendMessageRequest).SetReplyMarkup(value ReplyMarkupClass)
ReplyMarkupClassArray is adapter for slice of ReplyMarkupClass. AsReplyInlineMarkup returns copy with only ReplyInlineMarkup constructors. AsReplyKeyboardForceReply returns copy with only ReplyKeyboardForceReply constructors. AsReplyKeyboardHide returns copy with only ReplyKeyboardHide constructors. AsReplyKeyboardMarkup returns copy with only ReplyKeyboardMarkup 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 ReplyMarkupClass. Sort sorts slice of ReplyMarkupClass. SortStable sorts slice of ReplyMarkupClass. func ReplyMarkupClassArray.Retain(keep func(x ReplyMarkupClass) bool) ReplyMarkupClassArray func ReplyMarkupClassArray.Sort(less func(a, b ReplyMarkupClass) bool) ReplyMarkupClassArray func ReplyMarkupClassArray.SortStable(less func(a, b ReplyMarkupClass) bool) ReplyMarkupClassArray
ReportReason boxes the ReportReasonClass providing a helper. ReportReason ReportReasonClass Decode implements bin.Decoder for ReportReasonBox. Encode implements bin.Encode for ReportReasonBox. *ReportReasonBox : github.com/gotd/td/bin.Decoder *ReportReasonBox : github.com/gotd/td/bin.Encoder *ReportReasonBox : github.com/gotd/td/bin.Object
ReportReasonClass represents ReportReason generic type. See https://core.telegram.org/type/ReportReason for reference. Example: g, err := tg.DecodeReportReason(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.InputReportReasonSpam: // inputReportReasonSpam#58dbcab8 case *tg.InputReportReasonViolence: // inputReportReasonViolence#1e22c78d case *tg.InputReportReasonPornography: // inputReportReasonPornography#2e59d922 case *tg.InputReportReasonChildAbuse: // inputReportReasonChildAbuse#adf44ee3 case *tg.InputReportReasonOther: // inputReportReasonOther#c1e4a2b1 case *tg.InputReportReasonCopyright: // inputReportReasonCopyright#9b89f93a case *tg.InputReportReasonGeoIrrelevant: // inputReportReasonGeoIrrelevant#dbd4feed case *tg.InputReportReasonFake: // inputReportReasonFake#f5ddd6e7 case *tg.InputReportReasonIllegalDrugs: // inputReportReasonIllegalDrugs#a8eb2be case *tg.InputReportReasonPersonalDetails: // inputReportReasonPersonalDetails#9ec7863d default: panic(v) } ( ReportReasonClass) Decode(b *bin.Buffer) error ( ReportReasonClass) DecodeBare(b *bin.Buffer) error ( ReportReasonClass) Encode(b *bin.Buffer) error ( ReportReasonClass) 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. *InputReportReasonChildAbuse *InputReportReasonCopyright *InputReportReasonFake *InputReportReasonGeoIrrelevant *InputReportReasonIllegalDrugs *InputReportReasonOther *InputReportReasonPersonalDetails *InputReportReasonPornography *InputReportReasonSpam *InputReportReasonViolence ReportReasonClass : github.com/gotd/td/bin.BareDecoder ReportReasonClass : github.com/gotd/td/bin.BareEncoder ReportReasonClass : github.com/gotd/td/bin.Decoder ReportReasonClass : github.com/gotd/td/bin.Encoder ReportReasonClass : github.com/gotd/td/bin.Object ReportReasonClass : fmt.Stringer func DecodeReportReason(buf *bin.Buffer) (ReportReasonClass, error) func (*AccountReportPeerRequest).GetReason() (value ReportReasonClass) func (*AccountReportProfilePhotoRequest).GetReason() (value ReportReasonClass) func (*MessagesReportRequest).GetReason() (value ReportReasonClass) func ReportReasonClassArray.First() (v ReportReasonClass, ok bool) func ReportReasonClassArray.Last() (v ReportReasonClass, ok bool) func (*ReportReasonClassArray).Pop() (v ReportReasonClass, ok bool) func (*ReportReasonClassArray).PopFirst() (v ReportReasonClass, ok bool) func (*StoriesReportRequest).GetReason() (value ReportReasonClass)
ReportReasonClassArray is adapter for slice of ReportReasonClass. 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 ReportReasonClass. Sort sorts slice of ReportReasonClass. SortStable sorts slice of ReportReasonClass. func ReportReasonClassArray.Retain(keep func(x ReportReasonClass) bool) ReportReasonClassArray func ReportReasonClassArray.Sort(less func(a, b ReportReasonClass) bool) ReportReasonClassArray func ReportReasonClassArray.SortStable(less func(a, b ReportReasonClass) bool) ReportReasonClassArray
RequestPeerType boxes the RequestPeerTypeClass providing a helper. RequestPeerType RequestPeerTypeClass Decode implements bin.Decoder for RequestPeerTypeBox. Encode implements bin.Encode for RequestPeerTypeBox. *RequestPeerTypeBox : github.com/gotd/td/bin.Decoder *RequestPeerTypeBox : github.com/gotd/td/bin.Encoder *RequestPeerTypeBox : github.com/gotd/td/bin.Object
RequestPeerTypeBroadcast represents TL type `requestPeerTypeBroadcast#339bef6c`. Choose a channel See https://core.telegram.org/constructor/requestPeerTypeBroadcast for reference. If specified, allows only choosing channels where the bot is an admin with at least the specified admin rights. Use SetBotAdminRights and GetBotAdminRights helpers. Whether to allow only choosing channels that were created by the current user. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If specified, allows only choosing channels with or without a username, according to the value of Bool¹. Links: 1) https://core.telegram.org/type/Bool Use SetHasUsername and GetHasUsername helpers. If specified, allows only choosing channels where the current user is an admin with at least the specified admin rights. Use SetUserAdminRights and GetUserAdminRights helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills RequestPeerTypeBroadcast from given interface. GetBotAdminRights returns value of BotAdminRights conditional field and boolean which is true if field was set. GetCreator returns value of Creator conditional field. GetHasUsername returns value of HasUsername conditional field and boolean which is true if field was set. GetUserAdminRights returns value of UserAdminRights conditional field and boolean which is true if field was set. SetBotAdminRights sets value of BotAdminRights conditional field. SetCreator sets value of Creator conditional field. SetFlags sets flags for non-zero fields. SetHasUsername sets value of HasUsername conditional field. SetUserAdminRights sets value of UserAdminRights 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. (*RequestPeerTypeBroadcast) Zero() bool *RequestPeerTypeBroadcast : RequestPeerTypeClass *RequestPeerTypeBroadcast : github.com/gotd/td/bin.BareDecoder *RequestPeerTypeBroadcast : github.com/gotd/td/bin.BareEncoder *RequestPeerTypeBroadcast : github.com/gotd/td/bin.Decoder *RequestPeerTypeBroadcast : github.com/gotd/td/bin.Encoder *RequestPeerTypeBroadcast : github.com/gotd/td/bin.Object *RequestPeerTypeBroadcast : github.com/gotd/td/tdp.Object *RequestPeerTypeBroadcast : fmt.Stringer func RequestPeerTypeBroadcastArray.First() (v RequestPeerTypeBroadcast, ok bool) func RequestPeerTypeBroadcastArray.Last() (v RequestPeerTypeBroadcast, ok bool) func (*RequestPeerTypeBroadcastArray).Pop() (v RequestPeerTypeBroadcast, ok bool) func (*RequestPeerTypeBroadcastArray).PopFirst() (v RequestPeerTypeBroadcast, ok bool)
RequestPeerTypeBroadcastArray is adapter for slice of RequestPeerTypeBroadcast. 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 RequestPeerTypeBroadcast. Sort sorts slice of RequestPeerTypeBroadcast. SortStable sorts slice of RequestPeerTypeBroadcast. func RequestPeerTypeBroadcastArray.Retain(keep func(x RequestPeerTypeBroadcast) bool) RequestPeerTypeBroadcastArray func RequestPeerTypeBroadcastArray.Sort(less func(a, b RequestPeerTypeBroadcast) bool) RequestPeerTypeBroadcastArray func RequestPeerTypeBroadcastArray.SortStable(less func(a, b RequestPeerTypeBroadcast) bool) RequestPeerTypeBroadcastArray func RequestPeerTypeClassArray.AsRequestPeerTypeBroadcast() (to RequestPeerTypeBroadcastArray)
RequestPeerTypeChat represents TL type `requestPeerTypeChat#c9f06e1b`. Choose a chat or supergroup See https://core.telegram.org/constructor/requestPeerTypeChat for reference. If specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights. Use SetBotAdminRights and GetBotAdminRights helpers. Whether to allow only choosing chats or supergroups where the bot is a participant. Whether to allow only choosing chats or supergroups that were created by the current user. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If specified, allows only choosing chats or supergroups that are or aren't forums¹, according to the value of Bool². Links: 1) https://core.telegram.org/api/forum 2) https://core.telegram.org/type/Bool Use SetForum and GetForum helpers. If specified, allows only choosing channels with or without a username, according to the value of Bool¹. Links: 1) https://core.telegram.org/type/Bool Use SetHasUsername and GetHasUsername helpers. If specified, allows only choosing chats or supergroups where the current user is an admin with at least the specified admin rights. Use SetUserAdminRights and GetUserAdminRights helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills RequestPeerTypeChat from given interface. GetBotAdminRights returns value of BotAdminRights conditional field and boolean which is true if field was set. GetBotParticipant returns value of BotParticipant conditional field. GetCreator returns value of Creator conditional field. GetForum returns value of Forum conditional field and boolean which is true if field was set. GetHasUsername returns value of HasUsername conditional field and boolean which is true if field was set. GetUserAdminRights returns value of UserAdminRights conditional field and boolean which is true if field was set. SetBotAdminRights sets value of BotAdminRights conditional field. SetBotParticipant sets value of BotParticipant conditional field. SetCreator sets value of Creator conditional field. SetFlags sets flags for non-zero fields. SetForum sets value of Forum conditional field. SetHasUsername sets value of HasUsername conditional field. SetUserAdminRights sets value of UserAdminRights 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. (*RequestPeerTypeChat) Zero() bool *RequestPeerTypeChat : RequestPeerTypeClass *RequestPeerTypeChat : github.com/gotd/td/bin.BareDecoder *RequestPeerTypeChat : github.com/gotd/td/bin.BareEncoder *RequestPeerTypeChat : github.com/gotd/td/bin.Decoder *RequestPeerTypeChat : github.com/gotd/td/bin.Encoder *RequestPeerTypeChat : github.com/gotd/td/bin.Object *RequestPeerTypeChat : github.com/gotd/td/tdp.Object *RequestPeerTypeChat : fmt.Stringer func RequestPeerTypeChatArray.First() (v RequestPeerTypeChat, ok bool) func RequestPeerTypeChatArray.Last() (v RequestPeerTypeChat, ok bool) func (*RequestPeerTypeChatArray).Pop() (v RequestPeerTypeChat, ok bool) func (*RequestPeerTypeChatArray).PopFirst() (v RequestPeerTypeChat, ok bool)
RequestPeerTypeChatArray is adapter for slice of RequestPeerTypeChat. 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 RequestPeerTypeChat. Sort sorts slice of RequestPeerTypeChat. SortStable sorts slice of RequestPeerTypeChat. func RequestPeerTypeChatArray.Retain(keep func(x RequestPeerTypeChat) bool) RequestPeerTypeChatArray func RequestPeerTypeChatArray.Sort(less func(a, b RequestPeerTypeChat) bool) RequestPeerTypeChatArray func RequestPeerTypeChatArray.SortStable(less func(a, b RequestPeerTypeChat) bool) RequestPeerTypeChatArray func RequestPeerTypeClassArray.AsRequestPeerTypeChat() (to RequestPeerTypeChatArray)
RequestPeerTypeClass represents RequestPeerType generic type. See https://core.telegram.org/type/RequestPeerType for reference. Example: g, err := tg.DecodeRequestPeerType(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.RequestPeerTypeUser: // requestPeerTypeUser#5f3b8a00 case *tg.RequestPeerTypeChat: // requestPeerTypeChat#c9f06e1b case *tg.RequestPeerTypeBroadcast: // requestPeerTypeBroadcast#339bef6c default: panic(v) } ( RequestPeerTypeClass) Decode(b *bin.Buffer) error ( RequestPeerTypeClass) DecodeBare(b *bin.Buffer) error ( RequestPeerTypeClass) Encode(b *bin.Buffer) error ( RequestPeerTypeClass) 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. *RequestPeerTypeBroadcast *RequestPeerTypeChat *RequestPeerTypeUser RequestPeerTypeClass : github.com/gotd/td/bin.BareDecoder RequestPeerTypeClass : github.com/gotd/td/bin.BareEncoder RequestPeerTypeClass : github.com/gotd/td/bin.Decoder RequestPeerTypeClass : github.com/gotd/td/bin.Encoder RequestPeerTypeClass : github.com/gotd/td/bin.Object RequestPeerTypeClass : fmt.Stringer func DecodeRequestPeerType(buf *bin.Buffer) (RequestPeerTypeClass, error) func (*KeyboardButtonRequestPeer).GetPeerType() (value RequestPeerTypeClass) func RequestPeerTypeClassArray.First() (v RequestPeerTypeClass, ok bool) func RequestPeerTypeClassArray.Last() (v RequestPeerTypeClass, ok bool) func (*RequestPeerTypeClassArray).Pop() (v RequestPeerTypeClass, ok bool) func (*RequestPeerTypeClassArray).PopFirst() (v RequestPeerTypeClass, ok bool)
RequestPeerTypeClassArray is adapter for slice of RequestPeerTypeClass. AsRequestPeerTypeBroadcast returns copy with only RequestPeerTypeBroadcast constructors. AsRequestPeerTypeChat returns copy with only RequestPeerTypeChat constructors. AsRequestPeerTypeUser returns copy with only RequestPeerTypeUser 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 RequestPeerTypeClass. Sort sorts slice of RequestPeerTypeClass. SortStable sorts slice of RequestPeerTypeClass. func RequestPeerTypeClassArray.Retain(keep func(x RequestPeerTypeClass) bool) RequestPeerTypeClassArray func RequestPeerTypeClassArray.Sort(less func(a, b RequestPeerTypeClass) bool) RequestPeerTypeClassArray func RequestPeerTypeClassArray.SortStable(less func(a, b RequestPeerTypeClass) bool) RequestPeerTypeClassArray
RequestPeerTypeUser represents TL type `requestPeerTypeUser#5f3b8a00`. Choose a user. See https://core.telegram.org/constructor/requestPeerTypeUser for reference. Whether to allow choosing only bots. Use SetBot and GetBot helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to allow choosing only Premium¹ users. Links: 1) https://core.telegram.org/api/premium Use SetPremium and GetPremium helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills RequestPeerTypeUser from given interface. GetBot returns value of Bot conditional field and boolean which is true if field was set. GetPremium returns value of Premium conditional field and boolean which is true if field was set. SetBot sets value of Bot conditional field. SetFlags sets flags for non-zero fields. 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. (*RequestPeerTypeUser) Zero() bool *RequestPeerTypeUser : RequestPeerTypeClass *RequestPeerTypeUser : github.com/gotd/td/bin.BareDecoder *RequestPeerTypeUser : github.com/gotd/td/bin.BareEncoder *RequestPeerTypeUser : github.com/gotd/td/bin.Decoder *RequestPeerTypeUser : github.com/gotd/td/bin.Encoder *RequestPeerTypeUser : github.com/gotd/td/bin.Object *RequestPeerTypeUser : github.com/gotd/td/tdp.Object *RequestPeerTypeUser : fmt.Stringer func RequestPeerTypeUserArray.First() (v RequestPeerTypeUser, ok bool) func RequestPeerTypeUserArray.Last() (v RequestPeerTypeUser, ok bool) func (*RequestPeerTypeUserArray).Pop() (v RequestPeerTypeUser, ok bool) func (*RequestPeerTypeUserArray).PopFirst() (v RequestPeerTypeUser, ok bool)
RequestPeerTypeUserArray is adapter for slice of RequestPeerTypeUser. 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 RequestPeerTypeUser. Sort sorts slice of RequestPeerTypeUser. SortStable sorts slice of RequestPeerTypeUser. func RequestPeerTypeClassArray.AsRequestPeerTypeUser() (to RequestPeerTypeUserArray) func RequestPeerTypeUserArray.Retain(keep func(x RequestPeerTypeUser) bool) RequestPeerTypeUserArray func RequestPeerTypeUserArray.Sort(less func(a, b RequestPeerTypeUser) bool) RequestPeerTypeUserArray func RequestPeerTypeUserArray.SortStable(less func(a, b RequestPeerTypeUser) bool) RequestPeerTypeUserArray
RestrictionReason represents TL type `restrictionReason#d072acb4`. Restriction reason. Contains the reason why access to a certain object must be restricted. Clients are supposed to deny access to the channel if the platform field is equal to all or to the current platform (ios, android, wp, etc.). Platforms can be concatenated (ios-android, ios-wp), unknown platforms are to be ignored. The text is the error message that should be shown to the user. See https://core.telegram.org/constructor/restrictionReason for reference. Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc) Restriction reason (porno, terms, etc.) Error message to be shown to the user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills RestrictionReason from given interface. GetPlatform returns value of Platform field. GetReason returns value of Reason field. GetText returns value of Text 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. (*RestrictionReason) Zero() bool *RestrictionReason : github.com/gotd/td/bin.BareDecoder *RestrictionReason : github.com/gotd/td/bin.BareEncoder *RestrictionReason : github.com/gotd/td/bin.Decoder *RestrictionReason : github.com/gotd/td/bin.Encoder *RestrictionReason : github.com/gotd/td/bin.Object *RestrictionReason : github.com/gotd/td/tdp.Object *RestrictionReason : fmt.Stringer func (*Channel).GetRestrictionReason() (value []RestrictionReason, ok bool) func (*Message).GetRestrictionReason() (value []RestrictionReason, ok bool) func (*User).GetRestrictionReason() (value []RestrictionReason, ok bool) func (*Channel).SetRestrictionReason(value []RestrictionReason) func (*Message).SetRestrictionReason(value []RestrictionReason) func (*User).SetRestrictionReason(value []RestrictionReason)
RichText boxes the RichTextClass providing a helper. RichText RichTextClass Decode implements bin.Decoder for RichTextBox. Encode implements bin.Encode for RichTextBox. *RichTextBox : github.com/gotd/td/bin.Decoder *RichTextBox : github.com/gotd/td/bin.Encoder *RichTextBox : github.com/gotd/td/bin.Object
RichTextClass represents RichText generic type. See https://core.telegram.org/type/RichText for reference. Example: g, err := tg.DecodeRichText(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.TextEmpty: // textEmpty#dc3d824f case *tg.TextPlain: // textPlain#744694e0 case *tg.TextBold: // textBold#6724abc4 case *tg.TextItalic: // textItalic#d912a59c case *tg.TextUnderline: // textUnderline#c12622c4 case *tg.TextStrike: // textStrike#9bf8bb95 case *tg.TextFixed: // textFixed#6c3f19b9 case *tg.TextURL: // textUrl#3c2884c1 case *tg.TextEmail: // textEmail#de5a0dd6 case *tg.TextConcat: // textConcat#7e6260d7 case *tg.TextSubscript: // textSubscript#ed6a8504 case *tg.TextSuperscript: // textSuperscript#c7fb5e01 case *tg.TextMarked: // textMarked#34b8621 case *tg.TextPhone: // textPhone#1ccb966a case *tg.TextImage: // textImage#81ccf4f case *tg.TextAnchor: // textAnchor#35553762 default: panic(v) } ( RichTextClass) Decode(b *bin.Buffer) error ( RichTextClass) DecodeBare(b *bin.Buffer) error ( RichTextClass) Encode(b *bin.Buffer) error ( RichTextClass) 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. *TextAnchor *TextBold *TextConcat *TextEmail *TextEmpty *TextFixed *TextImage *TextItalic *TextMarked *TextPhone *TextPlain *TextStrike *TextSubscript *TextSuperscript *TextUnderline *TextURL RichTextClass : github.com/gotd/td/bin.BareDecoder RichTextClass : github.com/gotd/td/bin.BareEncoder RichTextClass : github.com/gotd/td/bin.Decoder RichTextClass : github.com/gotd/td/bin.Encoder RichTextClass : github.com/gotd/td/bin.Object RichTextClass : fmt.Stringer func DecodeRichText(buf *bin.Buffer) (RichTextClass, error) func (*PageBlockAuthorDate).GetAuthor() (value RichTextClass) func (*PageBlockBlockquote).GetCaption() (value RichTextClass) func (*PageBlockBlockquote).GetText() (value RichTextClass) func (*PageBlockDetails).GetTitle() (value RichTextClass) func (*PageBlockFooter).GetText() (value RichTextClass) func (*PageBlockHeader).GetText() (value RichTextClass) func (*PageBlockKicker).GetText() (value RichTextClass) func (*PageBlockParagraph).GetText() (value RichTextClass) func (*PageBlockPreformatted).GetText() (value RichTextClass) func (*PageBlockPullquote).GetCaption() (value RichTextClass) func (*PageBlockPullquote).GetText() (value RichTextClass) func (*PageBlockRelatedArticles).GetTitle() (value RichTextClass) func (*PageBlockSubheader).GetText() (value RichTextClass) func (*PageBlockSubtitle).GetText() (value RichTextClass) func (*PageBlockTable).GetTitle() (value RichTextClass) func (*PageBlockTitle).GetText() (value RichTextClass) func (*PageCaption).GetCredit() (value RichTextClass) func (*PageCaption).GetText() (value RichTextClass) func (*PageListItemText).GetText() (value RichTextClass) func (*PageListOrderedItemText).GetText() (value RichTextClass) func (*PageTableCell).GetText() (value RichTextClass, ok bool) func RichTextClassArray.First() (v RichTextClass, ok bool) func RichTextClassArray.Last() (v RichTextClass, ok bool) func (*RichTextClassArray).Pop() (v RichTextClass, ok bool) func (*RichTextClassArray).PopFirst() (v RichTextClass, ok bool) func (*TextAnchor).GetText() (value RichTextClass) func (*TextBold).GetText() (value RichTextClass) func (*TextConcat).GetTexts() (value []RichTextClass) func (*TextEmail).GetText() (value RichTextClass) func (*TextFixed).GetText() (value RichTextClass) func (*TextItalic).GetText() (value RichTextClass) func (*TextMarked).GetText() (value RichTextClass) func (*TextPhone).GetText() (value RichTextClass) func (*TextStrike).GetText() (value RichTextClass) func (*TextSubscript).GetText() (value RichTextClass) func (*TextSuperscript).GetText() (value RichTextClass) func (*TextUnderline).GetText() (value RichTextClass) func (*TextURL).GetText() (value RichTextClass) func (*PageTableCell).SetText(value RichTextClass)
RichTextClassArray is adapter for slice of RichTextClass. AsTextAnchor returns copy with only TextAnchor constructors. AsTextBold returns copy with only TextBold constructors. AsTextConcat returns copy with only TextConcat constructors. AsTextEmail returns copy with only TextEmail constructors. AsTextFixed returns copy with only TextFixed constructors. AsTextImage returns copy with only TextImage constructors. AsTextItalic returns copy with only TextItalic constructors. AsTextMarked returns copy with only TextMarked constructors. AsTextPhone returns copy with only TextPhone constructors. AsTextPlain returns copy with only TextPlain constructors. AsTextStrike returns copy with only TextStrike constructors. AsTextSubscript returns copy with only TextSubscript constructors. AsTextSuperscript returns copy with only TextSuperscript constructors. AsTextURL returns copy with only TextURL constructors. AsTextUnderline returns copy with only TextUnderline 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 RichTextClass. Sort sorts slice of RichTextClass. SortStable sorts slice of RichTextClass. func RichTextClassArray.Retain(keep func(x RichTextClass) bool) RichTextClassArray func RichTextClassArray.Sort(less func(a, b RichTextClass) bool) RichTextClassArray func RichTextClassArray.SortStable(less func(a, b RichTextClass) bool) RichTextClassArray func (*TextConcat).MapTexts() (value RichTextClassArray)
SavedGifsHandler is a SavedGifs event handler. func UpdateDispatcher.OnSavedGifs(handler SavedGifsHandler)
SavedPhoneContact represents TL type `savedPhoneContact#1142bd56`. Saved contact See https://core.telegram.org/constructor/savedPhoneContact for reference. Date added First name Last name Phone number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SavedPhoneContact from given interface. GetDate returns value of Date field. GetFirstName returns value of FirstName field. GetLastName returns value of LastName field. GetPhone returns value of Phone 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. (*SavedPhoneContact) Zero() bool *SavedPhoneContact : github.com/gotd/td/bin.BareDecoder *SavedPhoneContact : github.com/gotd/td/bin.BareEncoder *SavedPhoneContact : github.com/gotd/td/bin.Decoder *SavedPhoneContact : github.com/gotd/td/bin.Encoder *SavedPhoneContact : github.com/gotd/td/bin.Object *SavedPhoneContact : github.com/gotd/td/tdp.Object *SavedPhoneContact : fmt.Stringer func (*Client).ContactsGetSaved(ctx context.Context) ([]SavedPhoneContact, error) func (*SavedPhoneContactVector).GetElems() (value []SavedPhoneContact)
SavedPhoneContactVector is a box for Vector<SavedContact> Elements of Vector<SavedContact> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SavedPhoneContactVector 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. (*SavedPhoneContactVector) Zero() bool *SavedPhoneContactVector : github.com/gotd/td/bin.BareDecoder *SavedPhoneContactVector : github.com/gotd/td/bin.BareEncoder *SavedPhoneContactVector : github.com/gotd/td/bin.Decoder *SavedPhoneContactVector : github.com/gotd/td/bin.Encoder *SavedPhoneContactVector : github.com/gotd/td/bin.Object *SavedPhoneContactVector : github.com/gotd/td/tdp.Object *SavedPhoneContactVector : fmt.Stringer
SavedRingtonesHandler is a SavedRingtones event handler. func UpdateDispatcher.OnSavedRingtones(handler SavedRingtonesHandler)
SearchResultPosition represents TL type `searchResultPosition#7f648b67`. Information about a message in a specific position See https://core.telegram.org/constructor/searchResultPosition for reference. When was the message sent Message ID 0-based message position in the full list of suitable messages Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SearchResultPosition from given interface. GetDate returns value of Date field. GetMsgID returns value of MsgID 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. (*SearchResultPosition) Zero() bool *SearchResultPosition : github.com/gotd/td/bin.BareDecoder *SearchResultPosition : github.com/gotd/td/bin.BareEncoder *SearchResultPosition : github.com/gotd/td/bin.Decoder *SearchResultPosition : github.com/gotd/td/bin.Encoder *SearchResultPosition : github.com/gotd/td/bin.Object *SearchResultPosition : github.com/gotd/td/tdp.Object *SearchResultPosition : fmt.Stringer func (*MessagesSearchResultsPositions).GetPositions() (value []SearchResultPosition)
SearchResultsCalendarPeriod represents TL type `searchResultsCalendarPeriod#c9b0539f`. Information about found messages sent on a specific day, used to split the messages in messages.searchResultsCalendar¹ constructors by days. Multiple searchResultsCalendarPeriod constructors are returned in messages searchResultsCalendar¹, each containing information about the first, last and total number of messages matching the filter that were sent on a specific day. Links: 1. https://core.telegram.org/constructor/messages.searchResultsCalendar 2. https://core.telegram.org/constructor/messages.searchResultsCalendar See https://core.telegram.org/constructor/searchResultsCalendarPeriod for reference. All messages that were sent on this day. The day this object is referring to. Last message ID that was sent on this day. First message ID that was sent on this day. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SearchResultsCalendarPeriod from given interface. GetCount returns value of Count field. GetDate returns value of Date field. GetMaxMsgID returns value of MaxMsgID field. GetMinMsgID returns value of MinMsgID 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. (*SearchResultsCalendarPeriod) Zero() bool *SearchResultsCalendarPeriod : github.com/gotd/td/bin.BareDecoder *SearchResultsCalendarPeriod : github.com/gotd/td/bin.BareEncoder *SearchResultsCalendarPeriod : github.com/gotd/td/bin.Decoder *SearchResultsCalendarPeriod : github.com/gotd/td/bin.Encoder *SearchResultsCalendarPeriod : github.com/gotd/td/bin.Object *SearchResultsCalendarPeriod : github.com/gotd/td/tdp.Object *SearchResultsCalendarPeriod : fmt.Stringer func (*MessagesSearchResultsCalendar).GetPeriods() (value []SearchResultsCalendarPeriod)
SecureCredentialsEncrypted represents TL type `secureCredentialsEncrypted#33f0ea47`. Encrypted credentials required to decrypt telegram passport¹ data. Links: 1. https://core.telegram.org/passport See https://core.telegram.org/constructor/secureCredentialsEncrypted for reference. Encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication, as described in decrypting data »¹ Links: 1) https://core.telegram.org/passport#decrypting-data Data hash for data authentication as described in decrypting data »¹ Links: 1) https://core.telegram.org/passport#decrypting-data Secret, encrypted with the bot's public RSA key, required for data decryption as described in decrypting data »¹ Links: 1) https://core.telegram.org/passport#decrypting-data Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureCredentialsEncrypted from given interface. GetData returns value of Data field. GetHash returns value of Hash field. GetSecret returns value of Secret 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. (*SecureCredentialsEncrypted) Zero() bool *SecureCredentialsEncrypted : github.com/gotd/td/bin.BareDecoder *SecureCredentialsEncrypted : github.com/gotd/td/bin.BareEncoder *SecureCredentialsEncrypted : github.com/gotd/td/bin.Decoder *SecureCredentialsEncrypted : github.com/gotd/td/bin.Encoder *SecureCredentialsEncrypted : github.com/gotd/td/bin.Object *SecureCredentialsEncrypted : github.com/gotd/td/tdp.Object *SecureCredentialsEncrypted : fmt.Stringer func (*AccountAcceptAuthorizationRequest).GetCredentials() (value SecureCredentialsEncrypted) func (*MessageActionSecureValuesSentMe).GetCredentials() (value SecureCredentialsEncrypted)
SecureData represents TL type `secureData#8aeabec3`. Secure passport¹ data, for more info see the passport docs »² Links: 1. https://core.telegram.org/passport 2. https://core.telegram.org/passport/encryption#securedata See https://core.telegram.org/constructor/secureData for reference. Data Data hash Secret Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureData from given interface. GetData returns value of Data field. GetDataHash returns value of DataHash field. GetSecret returns value of Secret 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. (*SecureData) Zero() bool *SecureData : github.com/gotd/td/bin.BareDecoder *SecureData : github.com/gotd/td/bin.BareEncoder *SecureData : github.com/gotd/td/bin.Decoder *SecureData : github.com/gotd/td/bin.Encoder *SecureData : github.com/gotd/td/bin.Object *SecureData : github.com/gotd/td/tdp.Object *SecureData : fmt.Stringer func (*InputSecureValue).GetData() (value SecureData, ok bool) func (*SecureValue).GetData() (value SecureData, ok bool) func (*InputSecureValue).SetData(value SecureData) func (*SecureValue).SetData(value SecureData)
SecureFile represents TL type `secureFile#7d09c27e`. Secure passport¹ file, for more info see the passport docs »² Links: 1. https://core.telegram.org/passport 2. https://core.telegram.org/passport/encryption#inputsecurefile See https://core.telegram.org/constructor/secureFile for reference. Access hash DC ID Date of upload File hash ID Secret File size AsInput tries to map SecureFile to InputSecureFile. AsInputSecureFileLocation tries to map SecureFile to InputSecureFileLocation. AsNotEmpty tries to map SecureFile to SecureFile. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureFile from given interface. GetAccessHash returns value of AccessHash field. GetDCID returns value of DCID field. GetDate returns value of Date field. GetFileHash returns value of FileHash field. GetID returns value of ID field. GetSecret returns value of Secret field. GetSize returns value of Size 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. (*SecureFile) Zero() bool *SecureFile : SecureFileClass *SecureFile : github.com/gotd/td/bin.BareDecoder *SecureFile : github.com/gotd/td/bin.BareEncoder *SecureFile : github.com/gotd/td/bin.Decoder *SecureFile : github.com/gotd/td/bin.Encoder *SecureFile : github.com/gotd/td/bin.Object *SecureFile : github.com/gotd/td/tdp.Object *SecureFile : fmt.Stringer func (*SecureFile).AsNotEmpty() (*SecureFile, bool) func SecureFileArray.First() (v SecureFile, ok bool) func SecureFileArray.Last() (v SecureFile, ok bool) func (*SecureFileArray).Pop() (v SecureFile, ok bool) func (*SecureFileArray).PopFirst() (v SecureFile, ok bool) func SecureFileArray.ToMap() map[int64]SecureFile func SecureFileClass.AsNotEmpty() (*SecureFile, bool) func SecureFileClassArray.AppendOnlyNotEmpty(to []*SecureFile) []*SecureFile func SecureFileClassArray.AsNotEmpty() (to []*SecureFile) func SecureFileClassArray.FirstAsNotEmpty() (v *SecureFile, ok bool) func SecureFileClassArray.LastAsNotEmpty() (v *SecureFile, ok bool) func SecureFileClassArray.NotEmptyToMap() map[int64]*SecureFile func (*SecureFileClassArray).PopAsNotEmpty() (v *SecureFile, ok bool) func (*SecureFileClassArray).PopFirstAsNotEmpty() (v *SecureFile, ok bool) func (*SecureFileEmpty).AsNotEmpty() (*SecureFile, bool) func (*SecureValue).GetFrontSideAsNotEmpty() (*SecureFile, bool) func (*SecureValue).GetReverseSideAsNotEmpty() (*SecureFile, bool) func (*SecureValue).GetSelfieAsNotEmpty() (*SecureFile, bool) func SecureFileArray.FillMap(to map[int64]SecureFile) func SecureFileClassArray.AppendOnlyNotEmpty(to []*SecureFile) []*SecureFile func SecureFileClassArray.FillNotEmptyMap(to map[int64]*SecureFile)
SecureFileArray is adapter for slice of SecureFile. 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 SecureFile. Sort sorts slice of SecureFile. SortByDate sorts slice of SecureFile by Date. SortByID sorts slice of SecureFile by ID. SortStable sorts slice of SecureFile. SortStableByDate sorts slice of SecureFile by Date. SortStableByID sorts slice of SecureFile by ID. ToMap collects constructors to map. func SecureFileArray.Retain(keep func(x SecureFile) bool) SecureFileArray func SecureFileArray.Sort(less func(a, b SecureFile) bool) SecureFileArray func SecureFileArray.SortByDate() SecureFileArray func SecureFileArray.SortByID() SecureFileArray func SecureFileArray.SortStable(less func(a, b SecureFile) bool) SecureFileArray func SecureFileArray.SortStableByDate() SecureFileArray func SecureFileArray.SortStableByID() SecureFileArray func SecureFileClassArray.AsSecureFile() (to SecureFileArray)
SecureFile boxes the SecureFileClass providing a helper. SecureFile SecureFileClass Decode implements bin.Decoder for SecureFileBox. Encode implements bin.Encode for SecureFileBox. *SecureFileBox : github.com/gotd/td/bin.Decoder *SecureFileBox : github.com/gotd/td/bin.Encoder *SecureFileBox : github.com/gotd/td/bin.Object
SecureFileClass represents SecureFile generic type. See https://core.telegram.org/type/SecureFile for reference. Example: g, err := tg.DecodeSecureFile(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.SecureFileEmpty: // secureFileEmpty#64199744 case *tg.SecureFile: // secureFile#7d09c27e default: panic(v) } AsNotEmpty tries to map SecureFileClass to SecureFile. ( SecureFileClass) Decode(b *bin.Buffer) error ( SecureFileClass) DecodeBare(b *bin.Buffer) error ( SecureFileClass) Encode(b *bin.Buffer) error ( SecureFileClass) 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. *SecureFile *SecureFileEmpty SecureFileClass : github.com/gotd/td/bin.BareDecoder SecureFileClass : github.com/gotd/td/bin.BareEncoder SecureFileClass : github.com/gotd/td/bin.Decoder SecureFileClass : github.com/gotd/td/bin.Encoder SecureFileClass : github.com/gotd/td/bin.Object SecureFileClass : fmt.Stringer func DecodeSecureFile(buf *bin.Buffer) (SecureFileClass, error) func SecureFileClassArray.First() (v SecureFileClass, ok bool) func SecureFileClassArray.Last() (v SecureFileClass, ok bool) func (*SecureFileClassArray).Pop() (v SecureFileClass, ok bool) func (*SecureFileClassArray).PopFirst() (v SecureFileClass, ok bool) func (*SecureValue).GetFiles() (value []SecureFileClass, ok bool) func (*SecureValue).GetFrontSide() (value SecureFileClass, ok bool) func (*SecureValue).GetReverseSide() (value SecureFileClass, ok bool) func (*SecureValue).GetSelfie() (value SecureFileClass, ok bool) func (*SecureValue).GetTranslation() (value []SecureFileClass, ok bool) func (*SecureValue).SetFiles(value []SecureFileClass) func (*SecureValue).SetFrontSide(value SecureFileClass) func (*SecureValue).SetReverseSide(value SecureFileClass) func (*SecureValue).SetSelfie(value SecureFileClass) func (*SecureValue).SetTranslation(value []SecureFileClass)
SecureFileClassArray is adapter for slice of SecureFileClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsNotEmpty returns copy with only NotEmpty constructors. AsSecureFile returns copy with only SecureFile constructors. FillNotEmptyMap fills only NotEmpty constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of SecureFileClass. Sort sorts slice of SecureFileClass. SortStable sorts slice of SecureFileClass. func SecureFileClassArray.Retain(keep func(x SecureFileClass) bool) SecureFileClassArray func SecureFileClassArray.Sort(less func(a, b SecureFileClass) bool) SecureFileClassArray func SecureFileClassArray.SortStable(less func(a, b SecureFileClass) bool) SecureFileClassArray func (*SecureValue).MapFiles() (value SecureFileClassArray, ok bool) func (*SecureValue).MapTranslation() (value SecureFileClassArray, ok bool)
SecureFileEmpty represents TL type `secureFileEmpty#64199744`. Empty constructor See https://core.telegram.org/constructor/secureFileEmpty for reference. AsNotEmpty tries to map SecureFileEmpty to SecureFile. 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. (*SecureFileEmpty) Zero() bool *SecureFileEmpty : SecureFileClass *SecureFileEmpty : github.com/gotd/td/bin.BareDecoder *SecureFileEmpty : github.com/gotd/td/bin.BareEncoder *SecureFileEmpty : github.com/gotd/td/bin.Decoder *SecureFileEmpty : github.com/gotd/td/bin.Encoder *SecureFileEmpty : github.com/gotd/td/bin.Object *SecureFileEmpty : github.com/gotd/td/tdp.Object *SecureFileEmpty : fmt.Stringer
SecurePasswordKdfAlgo boxes the SecurePasswordKdfAlgoClass providing a helper. SecurePasswordKdfAlgo SecurePasswordKdfAlgoClass Decode implements bin.Decoder for SecurePasswordKdfAlgoBox. Encode implements bin.Encode for SecurePasswordKdfAlgoBox. *SecurePasswordKdfAlgoBox : github.com/gotd/td/bin.Decoder *SecurePasswordKdfAlgoBox : github.com/gotd/td/bin.Encoder *SecurePasswordKdfAlgoBox : github.com/gotd/td/bin.Object
SecurePasswordKdfAlgoClass represents SecurePasswordKdfAlgo generic type. See https://core.telegram.org/type/SecurePasswordKdfAlgo for reference. Example: g, err := tg.DecodeSecurePasswordKdfAlgo(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.SecurePasswordKdfAlgoUnknown: // securePasswordKdfAlgoUnknown#4a8537 case *tg.SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000: // securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 case *tg.SecurePasswordKdfAlgoSHA512: // securePasswordKdfAlgoSHA512#86471d92 default: panic(v) } ( SecurePasswordKdfAlgoClass) Decode(b *bin.Buffer) error ( SecurePasswordKdfAlgoClass) DecodeBare(b *bin.Buffer) error ( SecurePasswordKdfAlgoClass) Encode(b *bin.Buffer) error ( SecurePasswordKdfAlgoClass) 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. *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 *SecurePasswordKdfAlgoSHA512 *SecurePasswordKdfAlgoUnknown SecurePasswordKdfAlgoClass : github.com/gotd/td/bin.BareDecoder SecurePasswordKdfAlgoClass : github.com/gotd/td/bin.BareEncoder SecurePasswordKdfAlgoClass : github.com/gotd/td/bin.Decoder SecurePasswordKdfAlgoClass : github.com/gotd/td/bin.Encoder SecurePasswordKdfAlgoClass : github.com/gotd/td/bin.Object SecurePasswordKdfAlgoClass : fmt.Stringer func DecodeSecurePasswordKdfAlgo(buf *bin.Buffer) (SecurePasswordKdfAlgoClass, error) func (*AccountPassword).GetNewSecureAlgo() (value SecurePasswordKdfAlgoClass) func SecurePasswordKdfAlgoClassArray.First() (v SecurePasswordKdfAlgoClass, ok bool) func SecurePasswordKdfAlgoClassArray.Last() (v SecurePasswordKdfAlgoClass, ok bool) func (*SecurePasswordKdfAlgoClassArray).Pop() (v SecurePasswordKdfAlgoClass, ok bool) func (*SecurePasswordKdfAlgoClassArray).PopFirst() (v SecurePasswordKdfAlgoClass, ok bool) func (*SecureSecretSettings).GetSecureAlgo() (value SecurePasswordKdfAlgoClass)
SecurePasswordKdfAlgoClassArray is adapter for slice of SecurePasswordKdfAlgoClass. AsSecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 returns copy with only SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 constructors. AsSecurePasswordKdfAlgoSHA512 returns copy with only SecurePasswordKdfAlgoSHA512 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 SecurePasswordKdfAlgoClass. Sort sorts slice of SecurePasswordKdfAlgoClass. SortStable sorts slice of SecurePasswordKdfAlgoClass. func SecurePasswordKdfAlgoClassArray.Retain(keep func(x SecurePasswordKdfAlgoClass) bool) SecurePasswordKdfAlgoClassArray func SecurePasswordKdfAlgoClassArray.Sort(less func(a, b SecurePasswordKdfAlgoClass) bool) SecurePasswordKdfAlgoClassArray func SecurePasswordKdfAlgoClassArray.SortStable(less func(a, b SecurePasswordKdfAlgoClass) bool) SecurePasswordKdfAlgoClassArray
SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 represents TL type `securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0`. PBKDF2 with SHA512 and 100000 iterations KDF algo See https://core.telegram.org/constructor/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 for reference. Salt Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 from given interface. GetSalt returns value of Salt 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. (*SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) Zero() bool *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : SecurePasswordKdfAlgoClass *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : github.com/gotd/td/bin.BareDecoder *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : github.com/gotd/td/bin.BareEncoder *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : github.com/gotd/td/bin.Decoder *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : github.com/gotd/td/bin.Encoder *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : github.com/gotd/td/bin.Object *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : github.com/gotd/td/tdp.Object *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : fmt.Stringer func SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array.First() (v SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000, ok bool) func SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array.Last() (v SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000, ok bool) func (*SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array).Pop() (v SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000, ok bool) func (*SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array).PopFirst() (v SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000, ok bool)
SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array is adapter for slice of SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000. 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 SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000. Sort sorts slice of SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000. SortStable sorts slice of SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000. func SecurePasswordKdfAlgoClassArray.AsSecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000() (to SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array) func SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array.Retain(keep func(x SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) bool) SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array func SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array.Sort(less func(a, b SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) bool) SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array func SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array.SortStable(less func(a, b SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) bool) SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000Array
SecurePasswordKdfAlgoSHA512 represents TL type `securePasswordKdfAlgoSHA512#86471d92`. SHA512 KDF algo See https://core.telegram.org/constructor/securePasswordKdfAlgoSHA512 for reference. Salt Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecurePasswordKdfAlgoSHA512 from given interface. GetSalt returns value of Salt 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. (*SecurePasswordKdfAlgoSHA512) Zero() bool *SecurePasswordKdfAlgoSHA512 : SecurePasswordKdfAlgoClass *SecurePasswordKdfAlgoSHA512 : github.com/gotd/td/bin.BareDecoder *SecurePasswordKdfAlgoSHA512 : github.com/gotd/td/bin.BareEncoder *SecurePasswordKdfAlgoSHA512 : github.com/gotd/td/bin.Decoder *SecurePasswordKdfAlgoSHA512 : github.com/gotd/td/bin.Encoder *SecurePasswordKdfAlgoSHA512 : github.com/gotd/td/bin.Object *SecurePasswordKdfAlgoSHA512 : github.com/gotd/td/tdp.Object *SecurePasswordKdfAlgoSHA512 : fmt.Stringer func SecurePasswordKdfAlgoSHA512Array.First() (v SecurePasswordKdfAlgoSHA512, ok bool) func SecurePasswordKdfAlgoSHA512Array.Last() (v SecurePasswordKdfAlgoSHA512, ok bool) func (*SecurePasswordKdfAlgoSHA512Array).Pop() (v SecurePasswordKdfAlgoSHA512, ok bool) func (*SecurePasswordKdfAlgoSHA512Array).PopFirst() (v SecurePasswordKdfAlgoSHA512, ok bool)
SecurePasswordKdfAlgoSHA512Array is adapter for slice of SecurePasswordKdfAlgoSHA512. 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 SecurePasswordKdfAlgoSHA512. Sort sorts slice of SecurePasswordKdfAlgoSHA512. SortStable sorts slice of SecurePasswordKdfAlgoSHA512. func SecurePasswordKdfAlgoClassArray.AsSecurePasswordKdfAlgoSHA512() (to SecurePasswordKdfAlgoSHA512Array) func SecurePasswordKdfAlgoSHA512Array.Retain(keep func(x SecurePasswordKdfAlgoSHA512) bool) SecurePasswordKdfAlgoSHA512Array func SecurePasswordKdfAlgoSHA512Array.Sort(less func(a, b SecurePasswordKdfAlgoSHA512) bool) SecurePasswordKdfAlgoSHA512Array func SecurePasswordKdfAlgoSHA512Array.SortStable(less func(a, b SecurePasswordKdfAlgoSHA512) bool) SecurePasswordKdfAlgoSHA512Array
SecurePasswordKdfAlgoUnknown represents TL type `securePasswordKdfAlgoUnknown#4a8537`. Unknown KDF algo (most likely the client has to be updated) See https://core.telegram.org/constructor/securePasswordKdfAlgoUnknown 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. (*SecurePasswordKdfAlgoUnknown) Zero() bool *SecurePasswordKdfAlgoUnknown : SecurePasswordKdfAlgoClass *SecurePasswordKdfAlgoUnknown : github.com/gotd/td/bin.BareDecoder *SecurePasswordKdfAlgoUnknown : github.com/gotd/td/bin.BareEncoder *SecurePasswordKdfAlgoUnknown : github.com/gotd/td/bin.Decoder *SecurePasswordKdfAlgoUnknown : github.com/gotd/td/bin.Encoder *SecurePasswordKdfAlgoUnknown : github.com/gotd/td/bin.Object *SecurePasswordKdfAlgoUnknown : github.com/gotd/td/tdp.Object *SecurePasswordKdfAlgoUnknown : fmt.Stringer
SecurePlainData boxes the SecurePlainDataClass providing a helper. SecurePlainData SecurePlainDataClass Decode implements bin.Decoder for SecurePlainDataBox. Encode implements bin.Encode for SecurePlainDataBox. *SecurePlainDataBox : github.com/gotd/td/bin.Decoder *SecurePlainDataBox : github.com/gotd/td/bin.Encoder *SecurePlainDataBox : github.com/gotd/td/bin.Object
SecurePlainDataClass represents SecurePlainData generic type. See https://core.telegram.org/type/SecurePlainData for reference. Example: g, err := tg.DecodeSecurePlainData(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.SecurePlainPhone: // securePlainPhone#7d6099dd case *tg.SecurePlainEmail: // securePlainEmail#21ec5a5f default: panic(v) } ( SecurePlainDataClass) Decode(b *bin.Buffer) error ( SecurePlainDataClass) DecodeBare(b *bin.Buffer) error ( SecurePlainDataClass) Encode(b *bin.Buffer) error ( SecurePlainDataClass) 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. *SecurePlainEmail *SecurePlainPhone SecurePlainDataClass : github.com/gotd/td/bin.BareDecoder SecurePlainDataClass : github.com/gotd/td/bin.BareEncoder SecurePlainDataClass : github.com/gotd/td/bin.Decoder SecurePlainDataClass : github.com/gotd/td/bin.Encoder SecurePlainDataClass : github.com/gotd/td/bin.Object SecurePlainDataClass : fmt.Stringer func DecodeSecurePlainData(buf *bin.Buffer) (SecurePlainDataClass, error) func (*InputSecureValue).GetPlainData() (value SecurePlainDataClass, ok bool) func SecurePlainDataClassArray.First() (v SecurePlainDataClass, ok bool) func SecurePlainDataClassArray.Last() (v SecurePlainDataClass, ok bool) func (*SecurePlainDataClassArray).Pop() (v SecurePlainDataClass, ok bool) func (*SecurePlainDataClassArray).PopFirst() (v SecurePlainDataClass, ok bool) func (*SecureValue).GetPlainData() (value SecurePlainDataClass, ok bool) func (*InputSecureValue).SetPlainData(value SecurePlainDataClass) func (*SecureValue).SetPlainData(value SecurePlainDataClass)
SecurePlainDataClassArray is adapter for slice of SecurePlainDataClass. AsSecurePlainEmail returns copy with only SecurePlainEmail constructors. AsSecurePlainPhone returns copy with only SecurePlainPhone 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 SecurePlainDataClass. Sort sorts slice of SecurePlainDataClass. SortStable sorts slice of SecurePlainDataClass. func SecurePlainDataClassArray.Retain(keep func(x SecurePlainDataClass) bool) SecurePlainDataClassArray func SecurePlainDataClassArray.Sort(less func(a, b SecurePlainDataClass) bool) SecurePlainDataClassArray func SecurePlainDataClassArray.SortStable(less func(a, b SecurePlainDataClass) bool) SecurePlainDataClassArray
SecurePlainEmail represents TL type `securePlainEmail#21ec5a5f`. Email address to use in telegram passport¹: it must be verified, first »². Links: 1. https://core.telegram.org/passport 2. https://core.telegram.org/passport/encryption#secureplaindata See https://core.telegram.org/constructor/securePlainEmail for reference. The verified email address. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecurePlainEmail 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. (*SecurePlainEmail) Zero() bool *SecurePlainEmail : SecurePlainDataClass *SecurePlainEmail : github.com/gotd/td/bin.BareDecoder *SecurePlainEmail : github.com/gotd/td/bin.BareEncoder *SecurePlainEmail : github.com/gotd/td/bin.Decoder *SecurePlainEmail : github.com/gotd/td/bin.Encoder *SecurePlainEmail : github.com/gotd/td/bin.Object *SecurePlainEmail : github.com/gotd/td/tdp.Object *SecurePlainEmail : fmt.Stringer func SecurePlainEmailArray.First() (v SecurePlainEmail, ok bool) func SecurePlainEmailArray.Last() (v SecurePlainEmail, ok bool) func (*SecurePlainEmailArray).Pop() (v SecurePlainEmail, ok bool) func (*SecurePlainEmailArray).PopFirst() (v SecurePlainEmail, ok bool)
SecurePlainEmailArray is adapter for slice of SecurePlainEmail. 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 SecurePlainEmail. Sort sorts slice of SecurePlainEmail. SortStable sorts slice of SecurePlainEmail. func SecurePlainDataClassArray.AsSecurePlainEmail() (to SecurePlainEmailArray) func SecurePlainEmailArray.Retain(keep func(x SecurePlainEmail) bool) SecurePlainEmailArray func SecurePlainEmailArray.Sort(less func(a, b SecurePlainEmail) bool) SecurePlainEmailArray func SecurePlainEmailArray.SortStable(less func(a, b SecurePlainEmail) bool) SecurePlainEmailArray
SecurePlainPhone represents TL type `securePlainPhone#7d6099dd`. Phone number to use in telegram passport¹: it must be verified, first »². Links: 1. https://core.telegram.org/passport 2. https://core.telegram.org/passport/encryption#secureplaindata See https://core.telegram.org/constructor/securePlainPhone for reference. Phone number in international format, possibly obtained from a phone number deep link¹. Links: 1) https://core.telegram.org/api/links#phone-number-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecurePlainPhone from given interface. GetPhone returns value of Phone 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. (*SecurePlainPhone) Zero() bool *SecurePlainPhone : SecurePlainDataClass *SecurePlainPhone : github.com/gotd/td/bin.BareDecoder *SecurePlainPhone : github.com/gotd/td/bin.BareEncoder *SecurePlainPhone : github.com/gotd/td/bin.Decoder *SecurePlainPhone : github.com/gotd/td/bin.Encoder *SecurePlainPhone : github.com/gotd/td/bin.Object *SecurePlainPhone : github.com/gotd/td/tdp.Object *SecurePlainPhone : fmt.Stringer func SecurePlainPhoneArray.First() (v SecurePlainPhone, ok bool) func SecurePlainPhoneArray.Last() (v SecurePlainPhone, ok bool) func (*SecurePlainPhoneArray).Pop() (v SecurePlainPhone, ok bool) func (*SecurePlainPhoneArray).PopFirst() (v SecurePlainPhone, ok bool)
SecurePlainPhoneArray is adapter for slice of SecurePlainPhone. 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 SecurePlainPhone. Sort sorts slice of SecurePlainPhone. SortStable sorts slice of SecurePlainPhone. func SecurePlainDataClassArray.AsSecurePlainPhone() (to SecurePlainPhoneArray) func SecurePlainPhoneArray.Retain(keep func(x SecurePlainPhone) bool) SecurePlainPhoneArray func SecurePlainPhoneArray.Sort(less func(a, b SecurePlainPhone) bool) SecurePlainPhoneArray func SecurePlainPhoneArray.SortStable(less func(a, b SecurePlainPhone) bool) SecurePlainPhoneArray
SecureRequiredType represents TL type `secureRequiredType#829d99da`. Required type See https://core.telegram.org/constructor/secureRequiredType for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Native names Is a selfie required Is a translation required Secure value type Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureRequiredType from given interface. GetNativeNames returns value of NativeNames conditional field. GetSelfieRequired returns value of SelfieRequired conditional field. GetTranslationRequired returns value of TranslationRequired conditional field. GetType returns value of Type field. SetFlags sets flags for non-zero fields. SetNativeNames sets value of NativeNames conditional field. SetSelfieRequired sets value of SelfieRequired conditional field. SetTranslationRequired sets value of TranslationRequired 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. (*SecureRequiredType) Zero() bool *SecureRequiredType : SecureRequiredTypeClass *SecureRequiredType : github.com/gotd/td/bin.BareDecoder *SecureRequiredType : github.com/gotd/td/bin.BareEncoder *SecureRequiredType : github.com/gotd/td/bin.Decoder *SecureRequiredType : github.com/gotd/td/bin.Encoder *SecureRequiredType : github.com/gotd/td/bin.Object *SecureRequiredType : github.com/gotd/td/tdp.Object *SecureRequiredType : fmt.Stringer func SecureRequiredTypeArray.First() (v SecureRequiredType, ok bool) func SecureRequiredTypeArray.Last() (v SecureRequiredType, ok bool) func (*SecureRequiredTypeArray).Pop() (v SecureRequiredType, ok bool) func (*SecureRequiredTypeArray).PopFirst() (v SecureRequiredType, ok bool)
SecureRequiredTypeArray is adapter for slice of SecureRequiredType. 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 SecureRequiredType. Sort sorts slice of SecureRequiredType. SortStable sorts slice of SecureRequiredType. func SecureRequiredTypeArray.Retain(keep func(x SecureRequiredType) bool) SecureRequiredTypeArray func SecureRequiredTypeArray.Sort(less func(a, b SecureRequiredType) bool) SecureRequiredTypeArray func SecureRequiredTypeArray.SortStable(less func(a, b SecureRequiredType) bool) SecureRequiredTypeArray func SecureRequiredTypeClassArray.AsSecureRequiredType() (to SecureRequiredTypeArray)
SecureRequiredType boxes the SecureRequiredTypeClass providing a helper. SecureRequiredType SecureRequiredTypeClass Decode implements bin.Decoder for SecureRequiredTypeBox. Encode implements bin.Encode for SecureRequiredTypeBox. *SecureRequiredTypeBox : github.com/gotd/td/bin.Decoder *SecureRequiredTypeBox : github.com/gotd/td/bin.Encoder *SecureRequiredTypeBox : github.com/gotd/td/bin.Object
SecureRequiredTypeClass represents SecureRequiredType generic type. See https://core.telegram.org/type/SecureRequiredType for reference. Example: g, err := tg.DecodeSecureRequiredType(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.SecureRequiredType: // secureRequiredType#829d99da case *tg.SecureRequiredTypeOneOf: // secureRequiredTypeOneOf#27477b4 default: panic(v) } ( SecureRequiredTypeClass) Decode(b *bin.Buffer) error ( SecureRequiredTypeClass) DecodeBare(b *bin.Buffer) error ( SecureRequiredTypeClass) Encode(b *bin.Buffer) error ( SecureRequiredTypeClass) 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. *SecureRequiredType *SecureRequiredTypeOneOf SecureRequiredTypeClass : github.com/gotd/td/bin.BareDecoder SecureRequiredTypeClass : github.com/gotd/td/bin.BareEncoder SecureRequiredTypeClass : github.com/gotd/td/bin.Decoder SecureRequiredTypeClass : github.com/gotd/td/bin.Encoder SecureRequiredTypeClass : github.com/gotd/td/bin.Object SecureRequiredTypeClass : fmt.Stringer func DecodeSecureRequiredType(buf *bin.Buffer) (SecureRequiredTypeClass, error) func (*AccountAuthorizationForm).GetRequiredTypes() (value []SecureRequiredTypeClass) func SecureRequiredTypeClassArray.First() (v SecureRequiredTypeClass, ok bool) func SecureRequiredTypeClassArray.Last() (v SecureRequiredTypeClass, ok bool) func (*SecureRequiredTypeClassArray).Pop() (v SecureRequiredTypeClass, ok bool) func (*SecureRequiredTypeClassArray).PopFirst() (v SecureRequiredTypeClass, ok bool) func (*SecureRequiredTypeOneOf).GetTypes() (value []SecureRequiredTypeClass)
SecureRequiredTypeClassArray is adapter for slice of SecureRequiredTypeClass. AsSecureRequiredType returns copy with only SecureRequiredType constructors. AsSecureRequiredTypeOneOf returns copy with only SecureRequiredTypeOneOf 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 SecureRequiredTypeClass. Sort sorts slice of SecureRequiredTypeClass. SortStable sorts slice of SecureRequiredTypeClass. func (*AccountAuthorizationForm).MapRequiredTypes() (value SecureRequiredTypeClassArray) func SecureRequiredTypeClassArray.Retain(keep func(x SecureRequiredTypeClass) bool) SecureRequiredTypeClassArray func SecureRequiredTypeClassArray.Sort(less func(a, b SecureRequiredTypeClass) bool) SecureRequiredTypeClassArray func SecureRequiredTypeClassArray.SortStable(less func(a, b SecureRequiredTypeClass) bool) SecureRequiredTypeClassArray func (*SecureRequiredTypeOneOf).MapTypes() (value SecureRequiredTypeClassArray)
SecureRequiredTypeOneOf represents TL type `secureRequiredTypeOneOf#27477b4`. One of See https://core.telegram.org/constructor/secureRequiredTypeOneOf for reference. Secure required value types Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureRequiredTypeOneOf from given interface. GetTypes returns value of Types field. MapTypes returns field Types wrapped in SecureRequiredTypeClassArray 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. (*SecureRequiredTypeOneOf) Zero() bool *SecureRequiredTypeOneOf : SecureRequiredTypeClass *SecureRequiredTypeOneOf : github.com/gotd/td/bin.BareDecoder *SecureRequiredTypeOneOf : github.com/gotd/td/bin.BareEncoder *SecureRequiredTypeOneOf : github.com/gotd/td/bin.Decoder *SecureRequiredTypeOneOf : github.com/gotd/td/bin.Encoder *SecureRequiredTypeOneOf : github.com/gotd/td/bin.Object *SecureRequiredTypeOneOf : github.com/gotd/td/tdp.Object *SecureRequiredTypeOneOf : fmt.Stringer func SecureRequiredTypeOneOfArray.First() (v SecureRequiredTypeOneOf, ok bool) func SecureRequiredTypeOneOfArray.Last() (v SecureRequiredTypeOneOf, ok bool) func (*SecureRequiredTypeOneOfArray).Pop() (v SecureRequiredTypeOneOf, ok bool) func (*SecureRequiredTypeOneOfArray).PopFirst() (v SecureRequiredTypeOneOf, ok bool)
SecureRequiredTypeOneOfArray is adapter for slice of SecureRequiredTypeOneOf. 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 SecureRequiredTypeOneOf. Sort sorts slice of SecureRequiredTypeOneOf. SortStable sorts slice of SecureRequiredTypeOneOf. func SecureRequiredTypeClassArray.AsSecureRequiredTypeOneOf() (to SecureRequiredTypeOneOfArray) func SecureRequiredTypeOneOfArray.Retain(keep func(x SecureRequiredTypeOneOf) bool) SecureRequiredTypeOneOfArray func SecureRequiredTypeOneOfArray.Sort(less func(a, b SecureRequiredTypeOneOf) bool) SecureRequiredTypeOneOfArray func SecureRequiredTypeOneOfArray.SortStable(less func(a, b SecureRequiredTypeOneOf) bool) SecureRequiredTypeOneOfArray
SecureSecretSettings represents TL type `secureSecretSettings#1527bcac`. Secure settings See https://core.telegram.org/constructor/secureSecretSettings for reference. Secure KDF algo Secure secret Secret ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureSecretSettings from given interface. GetSecureAlgo returns value of SecureAlgo field. GetSecureSecret returns value of SecureSecret field. GetSecureSecretID returns value of SecureSecretID 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. (*SecureSecretSettings) Zero() bool *SecureSecretSettings : github.com/gotd/td/bin.BareDecoder *SecureSecretSettings : github.com/gotd/td/bin.BareEncoder *SecureSecretSettings : github.com/gotd/td/bin.Decoder *SecureSecretSettings : github.com/gotd/td/bin.Encoder *SecureSecretSettings : github.com/gotd/td/bin.Object *SecureSecretSettings : github.com/gotd/td/tdp.Object *SecureSecretSettings : fmt.Stringer func (*AccountPasswordInputSettings).GetNewSecureSettings() (value SecureSecretSettings, ok bool) func (*AccountPasswordSettings).GetSecureSettings() (value SecureSecretSettings, ok bool) func (*AccountPasswordInputSettings).SetNewSecureSettings(value SecureSecretSettings) func (*AccountPasswordSettings).SetSecureSettings(value SecureSecretSettings)
SecureValue represents TL type `secureValue#187fa0ca`. Secure value See https://core.telegram.org/constructor/secureValue for reference. Encrypted Telegram Passport¹ element data Links: 1) https://core.telegram.org/passport Use SetData and GetData helpers. Array of encrypted passport¹ files with photos the of the documents Links: 1) https://core.telegram.org/passport Use SetFiles and GetFiles helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Encrypted passport¹ file with the front side of the document Links: 1) https://core.telegram.org/passport Use SetFrontSide and GetFrontSide helpers. Data hash Plaintext verified passport¹ data Links: 1) https://core.telegram.org/passport Use SetPlainData and GetPlainData helpers. Encrypted passport¹ file with the reverse side of the document Links: 1) https://core.telegram.org/passport Use SetReverseSide and GetReverseSide helpers. Encrypted passport¹ file with a selfie of the user holding the document Links: 1) https://core.telegram.org/passport Use SetSelfie and GetSelfie helpers. Array of encrypted passport¹ files with translated versions of the provided documents Links: 1) https://core.telegram.org/passport Use SetTranslation and GetTranslation helpers. Secure passport¹ value type 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 SecureValue from given interface. GetData returns value of Data conditional field and boolean which is true if field was set. GetFiles returns value of Files conditional field and boolean which is true if field was set. GetFrontSide returns value of FrontSide conditional field and boolean which is true if field was set. GetFrontSideAsNotEmpty returns mapped value of FrontSide conditional field and boolean which is true if field was set. GetHash returns value of Hash field. GetPlainData returns value of PlainData conditional field and boolean which is true if field was set. GetReverseSide returns value of ReverseSide conditional field and boolean which is true if field was set. GetReverseSideAsNotEmpty returns mapped value of ReverseSide conditional field and boolean which is true if field was set. GetSelfie returns value of Selfie conditional field and boolean which is true if field was set. GetSelfieAsNotEmpty returns mapped value of Selfie conditional field and boolean which is true if field was set. GetTranslation returns value of Translation conditional field and boolean which is true if field was set. GetType returns value of Type field. MapFiles returns field Files wrapped in SecureFileClassArray helper. MapTranslation returns field Translation wrapped in SecureFileClassArray helper. SetData sets value of Data conditional field. SetFiles sets value of Files conditional field. SetFlags sets flags for non-zero fields. SetFrontSide sets value of FrontSide conditional field. SetPlainData sets value of PlainData conditional field. SetReverseSide sets value of ReverseSide conditional field. SetSelfie sets value of Selfie conditional field. SetTranslation sets value of Translation 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. (*SecureValue) Zero() bool *SecureValue : github.com/gotd/td/bin.BareDecoder *SecureValue : github.com/gotd/td/bin.BareEncoder *SecureValue : github.com/gotd/td/bin.Decoder *SecureValue : github.com/gotd/td/bin.Encoder *SecureValue : github.com/gotd/td/bin.Object *SecureValue : github.com/gotd/td/tdp.Object *SecureValue : fmt.Stringer func (*AccountAuthorizationForm).GetValues() (value []SecureValue) func (*Client).AccountGetAllSecureValues(ctx context.Context) ([]SecureValue, error) func (*Client).AccountGetSecureValue(ctx context.Context, types []SecureValueTypeClass) ([]SecureValue, error) func (*Client).AccountSaveSecureValue(ctx context.Context, request *AccountSaveSecureValueRequest) (*SecureValue, error) func (*MessageActionSecureValuesSentMe).GetValues() (value []SecureValue) func (*SecureValueVector).GetElems() (value []SecureValue)
SecureValueError represents TL type `secureValueError#869d758f`. Secure value error See https://core.telegram.org/constructor/secureValueError for reference. Hash Error message Type of element which has the issue Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueError from given interface. GetHash returns value of Hash field. GetText returns value of Text field. GetType returns value of Type 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. (*SecureValueError) Zero() bool *SecureValueError : SecureValueErrorClass *SecureValueError : github.com/gotd/td/bin.BareDecoder *SecureValueError : github.com/gotd/td/bin.BareEncoder *SecureValueError : github.com/gotd/td/bin.Decoder *SecureValueError : github.com/gotd/td/bin.Encoder *SecureValueError : github.com/gotd/td/bin.Object *SecureValueError : github.com/gotd/td/tdp.Object *SecureValueError : fmt.Stringer func SecureValueErrorArray.First() (v SecureValueError, ok bool) func SecureValueErrorArray.Last() (v SecureValueError, ok bool) func (*SecureValueErrorArray).Pop() (v SecureValueError, ok bool) func (*SecureValueErrorArray).PopFirst() (v SecureValueError, ok bool)
SecureValueErrorArray is adapter for slice of SecureValueError. 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 SecureValueError. Sort sorts slice of SecureValueError. SortStable sorts slice of SecureValueError. func SecureValueErrorArray.Retain(keep func(x SecureValueError) bool) SecureValueErrorArray func SecureValueErrorArray.Sort(less func(a, b SecureValueError) bool) SecureValueErrorArray func SecureValueErrorArray.SortStable(less func(a, b SecureValueError) bool) SecureValueErrorArray func SecureValueErrorClassArray.AsSecureValueError() (to SecureValueErrorArray)
SecureValueError boxes the SecureValueErrorClass providing a helper. SecureValueError SecureValueErrorClass Decode implements bin.Decoder for SecureValueErrorBox. Encode implements bin.Encode for SecureValueErrorBox. *SecureValueErrorBox : github.com/gotd/td/bin.Decoder *SecureValueErrorBox : github.com/gotd/td/bin.Encoder *SecureValueErrorBox : github.com/gotd/td/bin.Object
SecureValueErrorClass represents SecureValueError generic type. See https://core.telegram.org/type/SecureValueError for reference. Example: g, err := tg.DecodeSecureValueError(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.SecureValueErrorData: // secureValueErrorData#e8a40bd9 case *tg.SecureValueErrorFrontSide: // secureValueErrorFrontSide#be3dfa case *tg.SecureValueErrorReverseSide: // secureValueErrorReverseSide#868a2aa5 case *tg.SecureValueErrorSelfie: // secureValueErrorSelfie#e537ced6 case *tg.SecureValueErrorFile: // secureValueErrorFile#7a700873 case *tg.SecureValueErrorFiles: // secureValueErrorFiles#666220e9 case *tg.SecureValueError: // secureValueError#869d758f case *tg.SecureValueErrorTranslationFile: // secureValueErrorTranslationFile#a1144770 case *tg.SecureValueErrorTranslationFiles: // secureValueErrorTranslationFiles#34636dd8 default: panic(v) } ( SecureValueErrorClass) Decode(b *bin.Buffer) error ( SecureValueErrorClass) DecodeBare(b *bin.Buffer) error ( SecureValueErrorClass) Encode(b *bin.Buffer) error ( SecureValueErrorClass) EncodeBare(b *bin.Buffer) error Error message The section of the user's Telegram Passport which has the error, one of secureValueTypePersonalDetails¹, secureValueTypePassport², secureValueTypeDriverLicense³, secureValueTypeIdentityCard⁴, secureValueTypeInternalPassport⁵, secureValueTypeAddress⁶ Links: 1) https://core.telegram.org/constructor/secureValueTypePersonalDetails 2) https://core.telegram.org/constructor/secureValueTypePassport 3) https://core.telegram.org/constructor/secureValueTypeDriverLicense 4) https://core.telegram.org/constructor/secureValueTypeIdentityCard 5) https://core.telegram.org/constructor/secureValueTypeInternalPassport 6) https://core.telegram.org/constructor/secureValueTypeAddress 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. *SecureValueError *SecureValueErrorData *SecureValueErrorFile *SecureValueErrorFiles *SecureValueErrorFrontSide *SecureValueErrorReverseSide *SecureValueErrorSelfie *SecureValueErrorTranslationFile *SecureValueErrorTranslationFiles SecureValueErrorClass : github.com/gotd/td/bin.BareDecoder SecureValueErrorClass : github.com/gotd/td/bin.BareEncoder SecureValueErrorClass : github.com/gotd/td/bin.Decoder SecureValueErrorClass : github.com/gotd/td/bin.Encoder SecureValueErrorClass : github.com/gotd/td/bin.Object SecureValueErrorClass : fmt.Stringer func DecodeSecureValueError(buf *bin.Buffer) (SecureValueErrorClass, error) func (*AccountAuthorizationForm).GetErrors() (value []SecureValueErrorClass) func SecureValueErrorClassArray.First() (v SecureValueErrorClass, ok bool) func SecureValueErrorClassArray.Last() (v SecureValueErrorClass, ok bool) func (*SecureValueErrorClassArray).Pop() (v SecureValueErrorClass, ok bool) func (*SecureValueErrorClassArray).PopFirst() (v SecureValueErrorClass, ok bool) func (*UsersSetSecureValueErrorsRequest).GetErrors() (value []SecureValueErrorClass)
SecureValueErrorClassArray is adapter for slice of SecureValueErrorClass. AsSecureValueError returns copy with only SecureValueError constructors. AsSecureValueErrorData returns copy with only SecureValueErrorData constructors. AsSecureValueErrorFile returns copy with only SecureValueErrorFile constructors. AsSecureValueErrorFiles returns copy with only SecureValueErrorFiles constructors. AsSecureValueErrorFrontSide returns copy with only SecureValueErrorFrontSide constructors. AsSecureValueErrorReverseSide returns copy with only SecureValueErrorReverseSide constructors. AsSecureValueErrorSelfie returns copy with only SecureValueErrorSelfie constructors. AsSecureValueErrorTranslationFile returns copy with only SecureValueErrorTranslationFile constructors. AsSecureValueErrorTranslationFiles returns copy with only SecureValueErrorTranslationFiles 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 SecureValueErrorClass. Sort sorts slice of SecureValueErrorClass. SortStable sorts slice of SecureValueErrorClass. func (*AccountAuthorizationForm).MapErrors() (value SecureValueErrorClassArray) func SecureValueErrorClassArray.Retain(keep func(x SecureValueErrorClass) bool) SecureValueErrorClassArray func SecureValueErrorClassArray.Sort(less func(a, b SecureValueErrorClass) bool) SecureValueErrorClassArray func SecureValueErrorClassArray.SortStable(less func(a, b SecureValueErrorClass) bool) SecureValueErrorClassArray func (*UsersSetSecureValueErrorsRequest).MapErrors() (value SecureValueErrorClassArray)
SecureValueErrorData represents TL type `secureValueErrorData#e8a40bd9`. Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes. See https://core.telegram.org/constructor/secureValueErrorData for reference. Data hash Name of the data field which has the error Error message The section of the user's Telegram Passport which has the error, one of secureValueTypePersonalDetails¹, secureValueTypePassport², secureValueTypeDriverLicense³, secureValueTypeIdentityCard⁴, secureValueTypeInternalPassport⁵, secureValueTypeAddress⁶ Links: 1) https://core.telegram.org/constructor/secureValueTypePersonalDetails 2) https://core.telegram.org/constructor/secureValueTypePassport 3) https://core.telegram.org/constructor/secureValueTypeDriverLicense 4) https://core.telegram.org/constructor/secureValueTypeIdentityCard 5) https://core.telegram.org/constructor/secureValueTypeInternalPassport 6) https://core.telegram.org/constructor/secureValueTypeAddress Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueErrorData from given interface. GetDataHash returns value of DataHash field. GetField returns value of Field field. GetText returns value of Text field. GetType returns value of Type 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. (*SecureValueErrorData) Zero() bool *SecureValueErrorData : SecureValueErrorClass *SecureValueErrorData : github.com/gotd/td/bin.BareDecoder *SecureValueErrorData : github.com/gotd/td/bin.BareEncoder *SecureValueErrorData : github.com/gotd/td/bin.Decoder *SecureValueErrorData : github.com/gotd/td/bin.Encoder *SecureValueErrorData : github.com/gotd/td/bin.Object *SecureValueErrorData : github.com/gotd/td/tdp.Object *SecureValueErrorData : fmt.Stringer func SecureValueErrorDataArray.First() (v SecureValueErrorData, ok bool) func SecureValueErrorDataArray.Last() (v SecureValueErrorData, ok bool) func (*SecureValueErrorDataArray).Pop() (v SecureValueErrorData, ok bool) func (*SecureValueErrorDataArray).PopFirst() (v SecureValueErrorData, ok bool)
SecureValueErrorDataArray is adapter for slice of SecureValueErrorData. 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 SecureValueErrorData. Sort sorts slice of SecureValueErrorData. SortStable sorts slice of SecureValueErrorData. func SecureValueErrorClassArray.AsSecureValueErrorData() (to SecureValueErrorDataArray) func SecureValueErrorDataArray.Retain(keep func(x SecureValueErrorData) bool) SecureValueErrorDataArray func SecureValueErrorDataArray.Sort(less func(a, b SecureValueErrorData) bool) SecureValueErrorDataArray func SecureValueErrorDataArray.SortStable(less func(a, b SecureValueErrorData) bool) SecureValueErrorDataArray
SecureValueErrorFile represents TL type `secureValueErrorFile#7a700873`. Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes. See https://core.telegram.org/constructor/secureValueErrorFile for reference. File hash Error message One of secureValueTypePassport¹, secureValueTypeDriverLicense², secureValueTypeIdentityCard³, secureValueTypeInternalPassport⁴ Links: 1) https://core.telegram.org/constructor/secureValueTypePassport 2) https://core.telegram.org/constructor/secureValueTypeDriverLicense 3) https://core.telegram.org/constructor/secureValueTypeIdentityCard 4) https://core.telegram.org/constructor/secureValueTypeInternalPassport Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueErrorFile from given interface. GetFileHash returns value of FileHash field. GetText returns value of Text field. GetType returns value of Type 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. (*SecureValueErrorFile) Zero() bool *SecureValueErrorFile : SecureValueErrorClass *SecureValueErrorFile : github.com/gotd/td/bin.BareDecoder *SecureValueErrorFile : github.com/gotd/td/bin.BareEncoder *SecureValueErrorFile : github.com/gotd/td/bin.Decoder *SecureValueErrorFile : github.com/gotd/td/bin.Encoder *SecureValueErrorFile : github.com/gotd/td/bin.Object *SecureValueErrorFile : github.com/gotd/td/tdp.Object *SecureValueErrorFile : fmt.Stringer func SecureValueErrorFileArray.First() (v SecureValueErrorFile, ok bool) func SecureValueErrorFileArray.Last() (v SecureValueErrorFile, ok bool) func (*SecureValueErrorFileArray).Pop() (v SecureValueErrorFile, ok bool) func (*SecureValueErrorFileArray).PopFirst() (v SecureValueErrorFile, ok bool)
SecureValueErrorFileArray is adapter for slice of SecureValueErrorFile. 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 SecureValueErrorFile. Sort sorts slice of SecureValueErrorFile. SortStable sorts slice of SecureValueErrorFile. func SecureValueErrorClassArray.AsSecureValueErrorFile() (to SecureValueErrorFileArray) func SecureValueErrorFileArray.Retain(keep func(x SecureValueErrorFile) bool) SecureValueErrorFileArray func SecureValueErrorFileArray.Sort(less func(a, b SecureValueErrorFile) bool) SecureValueErrorFileArray func SecureValueErrorFileArray.SortStable(less func(a, b SecureValueErrorFile) bool) SecureValueErrorFileArray
SecureValueErrorFiles represents TL type `secureValueErrorFiles#666220e9`. Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes. See https://core.telegram.org/constructor/secureValueErrorFiles for reference. File hash Error message One of secureValueTypeUtilityBill¹, secureValueTypeBankStatement², secureValueTypeRentalAgreement³, secureValueTypePassportRegistration⁴, secureValueTypeTemporaryRegistration⁵ Links: 1) https://core.telegram.org/constructor/secureValueTypeUtilityBill 2) https://core.telegram.org/constructor/secureValueTypeBankStatement 3) https://core.telegram.org/constructor/secureValueTypeRentalAgreement 4) https://core.telegram.org/constructor/secureValueTypePassportRegistration 5) https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueErrorFiles from given interface. GetFileHash returns value of FileHash field. GetText returns value of Text field. GetType returns value of Type 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. (*SecureValueErrorFiles) Zero() bool *SecureValueErrorFiles : SecureValueErrorClass *SecureValueErrorFiles : github.com/gotd/td/bin.BareDecoder *SecureValueErrorFiles : github.com/gotd/td/bin.BareEncoder *SecureValueErrorFiles : github.com/gotd/td/bin.Decoder *SecureValueErrorFiles : github.com/gotd/td/bin.Encoder *SecureValueErrorFiles : github.com/gotd/td/bin.Object *SecureValueErrorFiles : github.com/gotd/td/tdp.Object *SecureValueErrorFiles : fmt.Stringer func SecureValueErrorFilesArray.First() (v SecureValueErrorFiles, ok bool) func SecureValueErrorFilesArray.Last() (v SecureValueErrorFiles, ok bool) func (*SecureValueErrorFilesArray).Pop() (v SecureValueErrorFiles, ok bool) func (*SecureValueErrorFilesArray).PopFirst() (v SecureValueErrorFiles, ok bool)
SecureValueErrorFilesArray is adapter for slice of SecureValueErrorFiles. 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 SecureValueErrorFiles. Sort sorts slice of SecureValueErrorFiles. SortStable sorts slice of SecureValueErrorFiles. func SecureValueErrorClassArray.AsSecureValueErrorFiles() (to SecureValueErrorFilesArray) func SecureValueErrorFilesArray.Retain(keep func(x SecureValueErrorFiles) bool) SecureValueErrorFilesArray func SecureValueErrorFilesArray.Sort(less func(a, b SecureValueErrorFiles) bool) SecureValueErrorFilesArray func SecureValueErrorFilesArray.SortStable(less func(a, b SecureValueErrorFiles) bool) SecureValueErrorFilesArray
SecureValueErrorFrontSide represents TL type `secureValueErrorFrontSide#be3dfa`. Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes. See https://core.telegram.org/constructor/secureValueErrorFrontSide for reference. File hash Error message One of secureValueTypePassport¹, secureValueTypeDriverLicense², secureValueTypeIdentityCard³, secureValueTypeInternalPassport⁴ Links: 1) https://core.telegram.org/constructor/secureValueTypePassport 2) https://core.telegram.org/constructor/secureValueTypeDriverLicense 3) https://core.telegram.org/constructor/secureValueTypeIdentityCard 4) https://core.telegram.org/constructor/secureValueTypeInternalPassport Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueErrorFrontSide from given interface. GetFileHash returns value of FileHash field. GetText returns value of Text field. GetType returns value of Type 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. (*SecureValueErrorFrontSide) Zero() bool *SecureValueErrorFrontSide : SecureValueErrorClass *SecureValueErrorFrontSide : github.com/gotd/td/bin.BareDecoder *SecureValueErrorFrontSide : github.com/gotd/td/bin.BareEncoder *SecureValueErrorFrontSide : github.com/gotd/td/bin.Decoder *SecureValueErrorFrontSide : github.com/gotd/td/bin.Encoder *SecureValueErrorFrontSide : github.com/gotd/td/bin.Object *SecureValueErrorFrontSide : github.com/gotd/td/tdp.Object *SecureValueErrorFrontSide : fmt.Stringer func SecureValueErrorFrontSideArray.First() (v SecureValueErrorFrontSide, ok bool) func SecureValueErrorFrontSideArray.Last() (v SecureValueErrorFrontSide, ok bool) func (*SecureValueErrorFrontSideArray).Pop() (v SecureValueErrorFrontSide, ok bool) func (*SecureValueErrorFrontSideArray).PopFirst() (v SecureValueErrorFrontSide, ok bool)
SecureValueErrorFrontSideArray is adapter for slice of SecureValueErrorFrontSide. 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 SecureValueErrorFrontSide. Sort sorts slice of SecureValueErrorFrontSide. SortStable sorts slice of SecureValueErrorFrontSide. func SecureValueErrorClassArray.AsSecureValueErrorFrontSide() (to SecureValueErrorFrontSideArray) func SecureValueErrorFrontSideArray.Retain(keep func(x SecureValueErrorFrontSide) bool) SecureValueErrorFrontSideArray func SecureValueErrorFrontSideArray.Sort(less func(a, b SecureValueErrorFrontSide) bool) SecureValueErrorFrontSideArray func SecureValueErrorFrontSideArray.SortStable(less func(a, b SecureValueErrorFrontSide) bool) SecureValueErrorFrontSideArray
SecureValueErrorReverseSide represents TL type `secureValueErrorReverseSide#868a2aa5`. Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes. See https://core.telegram.org/constructor/secureValueErrorReverseSide for reference. File hash Error message One of secureValueTypePassport¹, secureValueTypeDriverLicense², secureValueTypeIdentityCard³, secureValueTypeInternalPassport⁴ Links: 1) https://core.telegram.org/constructor/secureValueTypePassport 2) https://core.telegram.org/constructor/secureValueTypeDriverLicense 3) https://core.telegram.org/constructor/secureValueTypeIdentityCard 4) https://core.telegram.org/constructor/secureValueTypeInternalPassport Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueErrorReverseSide from given interface. GetFileHash returns value of FileHash field. GetText returns value of Text field. GetType returns value of Type 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. (*SecureValueErrorReverseSide) Zero() bool *SecureValueErrorReverseSide : SecureValueErrorClass *SecureValueErrorReverseSide : github.com/gotd/td/bin.BareDecoder *SecureValueErrorReverseSide : github.com/gotd/td/bin.BareEncoder *SecureValueErrorReverseSide : github.com/gotd/td/bin.Decoder *SecureValueErrorReverseSide : github.com/gotd/td/bin.Encoder *SecureValueErrorReverseSide : github.com/gotd/td/bin.Object *SecureValueErrorReverseSide : github.com/gotd/td/tdp.Object *SecureValueErrorReverseSide : fmt.Stringer func SecureValueErrorReverseSideArray.First() (v SecureValueErrorReverseSide, ok bool) func SecureValueErrorReverseSideArray.Last() (v SecureValueErrorReverseSide, ok bool) func (*SecureValueErrorReverseSideArray).Pop() (v SecureValueErrorReverseSide, ok bool) func (*SecureValueErrorReverseSideArray).PopFirst() (v SecureValueErrorReverseSide, ok bool)
SecureValueErrorReverseSideArray is adapter for slice of SecureValueErrorReverseSide. 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 SecureValueErrorReverseSide. Sort sorts slice of SecureValueErrorReverseSide. SortStable sorts slice of SecureValueErrorReverseSide. func SecureValueErrorClassArray.AsSecureValueErrorReverseSide() (to SecureValueErrorReverseSideArray) func SecureValueErrorReverseSideArray.Retain(keep func(x SecureValueErrorReverseSide) bool) SecureValueErrorReverseSideArray func SecureValueErrorReverseSideArray.Sort(less func(a, b SecureValueErrorReverseSide) bool) SecureValueErrorReverseSideArray func SecureValueErrorReverseSideArray.SortStable(less func(a, b SecureValueErrorReverseSide) bool) SecureValueErrorReverseSideArray
SecureValueErrorSelfie represents TL type `secureValueErrorSelfie#e537ced6`. Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes. See https://core.telegram.org/constructor/secureValueErrorSelfie for reference. File hash Error message One of secureValueTypePassport¹, secureValueTypeDriverLicense², secureValueTypeIdentityCard³, secureValueTypeInternalPassport⁴ Links: 1) https://core.telegram.org/constructor/secureValueTypePassport 2) https://core.telegram.org/constructor/secureValueTypeDriverLicense 3) https://core.telegram.org/constructor/secureValueTypeIdentityCard 4) https://core.telegram.org/constructor/secureValueTypeInternalPassport Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueErrorSelfie from given interface. GetFileHash returns value of FileHash field. GetText returns value of Text field. GetType returns value of Type 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. (*SecureValueErrorSelfie) Zero() bool *SecureValueErrorSelfie : SecureValueErrorClass *SecureValueErrorSelfie : github.com/gotd/td/bin.BareDecoder *SecureValueErrorSelfie : github.com/gotd/td/bin.BareEncoder *SecureValueErrorSelfie : github.com/gotd/td/bin.Decoder *SecureValueErrorSelfie : github.com/gotd/td/bin.Encoder *SecureValueErrorSelfie : github.com/gotd/td/bin.Object *SecureValueErrorSelfie : github.com/gotd/td/tdp.Object *SecureValueErrorSelfie : fmt.Stringer func SecureValueErrorSelfieArray.First() (v SecureValueErrorSelfie, ok bool) func SecureValueErrorSelfieArray.Last() (v SecureValueErrorSelfie, ok bool) func (*SecureValueErrorSelfieArray).Pop() (v SecureValueErrorSelfie, ok bool) func (*SecureValueErrorSelfieArray).PopFirst() (v SecureValueErrorSelfie, ok bool)
SecureValueErrorSelfieArray is adapter for slice of SecureValueErrorSelfie. 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 SecureValueErrorSelfie. Sort sorts slice of SecureValueErrorSelfie. SortStable sorts slice of SecureValueErrorSelfie. func SecureValueErrorClassArray.AsSecureValueErrorSelfie() (to SecureValueErrorSelfieArray) func SecureValueErrorSelfieArray.Retain(keep func(x SecureValueErrorSelfie) bool) SecureValueErrorSelfieArray func SecureValueErrorSelfieArray.Sort(less func(a, b SecureValueErrorSelfie) bool) SecureValueErrorSelfieArray func SecureValueErrorSelfieArray.SortStable(less func(a, b SecureValueErrorSelfie) bool) SecureValueErrorSelfieArray
SecureValueErrorTranslationFile represents TL type `secureValueErrorTranslationFile#a1144770`. Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes. See https://core.telegram.org/constructor/secureValueErrorTranslationFile for reference. File hash Error message One of secureValueTypePassport¹, secureValueTypeDriverLicense², secureValueTypeIdentityCard³, secureValueTypeInternalPassport⁴ Links: 1) https://core.telegram.org/constructor/secureValueTypePassport 2) https://core.telegram.org/constructor/secureValueTypeDriverLicense 3) https://core.telegram.org/constructor/secureValueTypeIdentityCard 4) https://core.telegram.org/constructor/secureValueTypeInternalPassport Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueErrorTranslationFile from given interface. GetFileHash returns value of FileHash field. GetText returns value of Text field. GetType returns value of Type 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. (*SecureValueErrorTranslationFile) Zero() bool *SecureValueErrorTranslationFile : SecureValueErrorClass *SecureValueErrorTranslationFile : github.com/gotd/td/bin.BareDecoder *SecureValueErrorTranslationFile : github.com/gotd/td/bin.BareEncoder *SecureValueErrorTranslationFile : github.com/gotd/td/bin.Decoder *SecureValueErrorTranslationFile : github.com/gotd/td/bin.Encoder *SecureValueErrorTranslationFile : github.com/gotd/td/bin.Object *SecureValueErrorTranslationFile : github.com/gotd/td/tdp.Object *SecureValueErrorTranslationFile : fmt.Stringer func SecureValueErrorTranslationFileArray.First() (v SecureValueErrorTranslationFile, ok bool) func SecureValueErrorTranslationFileArray.Last() (v SecureValueErrorTranslationFile, ok bool) func (*SecureValueErrorTranslationFileArray).Pop() (v SecureValueErrorTranslationFile, ok bool) func (*SecureValueErrorTranslationFileArray).PopFirst() (v SecureValueErrorTranslationFile, ok bool)
SecureValueErrorTranslationFileArray is adapter for slice of SecureValueErrorTranslationFile. 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 SecureValueErrorTranslationFile. Sort sorts slice of SecureValueErrorTranslationFile. SortStable sorts slice of SecureValueErrorTranslationFile. func SecureValueErrorClassArray.AsSecureValueErrorTranslationFile() (to SecureValueErrorTranslationFileArray) func SecureValueErrorTranslationFileArray.Retain(keep func(x SecureValueErrorTranslationFile) bool) SecureValueErrorTranslationFileArray func SecureValueErrorTranslationFileArray.Sort(less func(a, b SecureValueErrorTranslationFile) bool) SecureValueErrorTranslationFileArray func SecureValueErrorTranslationFileArray.SortStable(less func(a, b SecureValueErrorTranslationFile) bool) SecureValueErrorTranslationFileArray
SecureValueErrorTranslationFiles represents TL type `secureValueErrorTranslationFiles#34636dd8`. Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation changes. See https://core.telegram.org/constructor/secureValueErrorTranslationFiles for reference. File hash Error message One of secureValueTypeUtilityBill¹, secureValueTypeBankStatement², secureValueTypeRentalAgreement³, secureValueTypePassportRegistration⁴, secureValueTypeTemporaryRegistration⁵ Links: 1) https://core.telegram.org/constructor/secureValueTypeUtilityBill 2) https://core.telegram.org/constructor/secureValueTypeBankStatement 3) https://core.telegram.org/constructor/secureValueTypeRentalAgreement 4) https://core.telegram.org/constructor/secureValueTypePassportRegistration 5) https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueErrorTranslationFiles from given interface. GetFileHash returns value of FileHash field. GetText returns value of Text field. GetType returns value of Type 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. (*SecureValueErrorTranslationFiles) Zero() bool *SecureValueErrorTranslationFiles : SecureValueErrorClass *SecureValueErrorTranslationFiles : github.com/gotd/td/bin.BareDecoder *SecureValueErrorTranslationFiles : github.com/gotd/td/bin.BareEncoder *SecureValueErrorTranslationFiles : github.com/gotd/td/bin.Decoder *SecureValueErrorTranslationFiles : github.com/gotd/td/bin.Encoder *SecureValueErrorTranslationFiles : github.com/gotd/td/bin.Object *SecureValueErrorTranslationFiles : github.com/gotd/td/tdp.Object *SecureValueErrorTranslationFiles : fmt.Stringer func SecureValueErrorTranslationFilesArray.First() (v SecureValueErrorTranslationFiles, ok bool) func SecureValueErrorTranslationFilesArray.Last() (v SecureValueErrorTranslationFiles, ok bool) func (*SecureValueErrorTranslationFilesArray).Pop() (v SecureValueErrorTranslationFiles, ok bool) func (*SecureValueErrorTranslationFilesArray).PopFirst() (v SecureValueErrorTranslationFiles, ok bool)
SecureValueErrorTranslationFilesArray is adapter for slice of SecureValueErrorTranslationFiles. 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 SecureValueErrorTranslationFiles. Sort sorts slice of SecureValueErrorTranslationFiles. SortStable sorts slice of SecureValueErrorTranslationFiles. func SecureValueErrorClassArray.AsSecureValueErrorTranslationFiles() (to SecureValueErrorTranslationFilesArray) func SecureValueErrorTranslationFilesArray.Retain(keep func(x SecureValueErrorTranslationFiles) bool) SecureValueErrorTranslationFilesArray func SecureValueErrorTranslationFilesArray.Sort(less func(a, b SecureValueErrorTranslationFiles) bool) SecureValueErrorTranslationFilesArray func SecureValueErrorTranslationFilesArray.SortStable(less func(a, b SecureValueErrorTranslationFiles) bool) SecureValueErrorTranslationFilesArray
SecureValueHash represents TL type `secureValueHash#ed1ecdb0`. Secure value hash See https://core.telegram.org/constructor/secureValueHash for reference. Hash Secure value type Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueHash from given interface. GetHash returns value of Hash field. GetType returns value of Type 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. (*SecureValueHash) Zero() bool *SecureValueHash : github.com/gotd/td/bin.BareDecoder *SecureValueHash : github.com/gotd/td/bin.BareEncoder *SecureValueHash : github.com/gotd/td/bin.Decoder *SecureValueHash : github.com/gotd/td/bin.Encoder *SecureValueHash : github.com/gotd/td/bin.Object *SecureValueHash : github.com/gotd/td/tdp.Object *SecureValueHash : fmt.Stringer func (*AccountAcceptAuthorizationRequest).GetValueHashes() (value []SecureValueHash)
SecureValueTypeAddress represents TL type `secureValueTypeAddress#cbe31e26`. Address See https://core.telegram.org/constructor/secureValueTypeAddress 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. (*SecureValueTypeAddress) Zero() bool *SecureValueTypeAddress : SecureValueTypeClass *SecureValueTypeAddress : github.com/gotd/td/bin.BareDecoder *SecureValueTypeAddress : github.com/gotd/td/bin.BareEncoder *SecureValueTypeAddress : github.com/gotd/td/bin.Decoder *SecureValueTypeAddress : github.com/gotd/td/bin.Encoder *SecureValueTypeAddress : github.com/gotd/td/bin.Object *SecureValueTypeAddress : github.com/gotd/td/tdp.Object *SecureValueTypeAddress : fmt.Stringer
SecureValueTypeBankStatement represents TL type `secureValueTypeBankStatement#89137c0d`. Bank statement See https://core.telegram.org/constructor/secureValueTypeBankStatement 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. (*SecureValueTypeBankStatement) Zero() bool *SecureValueTypeBankStatement : SecureValueTypeClass *SecureValueTypeBankStatement : github.com/gotd/td/bin.BareDecoder *SecureValueTypeBankStatement : github.com/gotd/td/bin.BareEncoder *SecureValueTypeBankStatement : github.com/gotd/td/bin.Decoder *SecureValueTypeBankStatement : github.com/gotd/td/bin.Encoder *SecureValueTypeBankStatement : github.com/gotd/td/bin.Object *SecureValueTypeBankStatement : github.com/gotd/td/tdp.Object *SecureValueTypeBankStatement : fmt.Stringer
SecureValueType boxes the SecureValueTypeClass providing a helper. SecureValueType SecureValueTypeClass Decode implements bin.Decoder for SecureValueTypeBox. Encode implements bin.Encode for SecureValueTypeBox. *SecureValueTypeBox : github.com/gotd/td/bin.Decoder *SecureValueTypeBox : github.com/gotd/td/bin.Encoder *SecureValueTypeBox : github.com/gotd/td/bin.Object
SecureValueTypeClass represents SecureValueType generic type. See https://core.telegram.org/type/SecureValueType for reference. Example: g, err := tg.DecodeSecureValueType(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.SecureValueTypePersonalDetails: // secureValueTypePersonalDetails#9d2a81e3 case *tg.SecureValueTypePassport: // secureValueTypePassport#3dac6a00 case *tg.SecureValueTypeDriverLicense: // secureValueTypeDriverLicense#6e425c4 case *tg.SecureValueTypeIdentityCard: // secureValueTypeIdentityCard#a0d0744b case *tg.SecureValueTypeInternalPassport: // secureValueTypeInternalPassport#99a48f23 case *tg.SecureValueTypeAddress: // secureValueTypeAddress#cbe31e26 case *tg.SecureValueTypeUtilityBill: // secureValueTypeUtilityBill#fc36954e case *tg.SecureValueTypeBankStatement: // secureValueTypeBankStatement#89137c0d case *tg.SecureValueTypeRentalAgreement: // secureValueTypeRentalAgreement#8b883488 case *tg.SecureValueTypePassportRegistration: // secureValueTypePassportRegistration#99e3806a case *tg.SecureValueTypeTemporaryRegistration: // secureValueTypeTemporaryRegistration#ea02ec33 case *tg.SecureValueTypePhone: // secureValueTypePhone#b320aadb case *tg.SecureValueTypeEmail: // secureValueTypeEmail#8e3ca7ee default: panic(v) } ( SecureValueTypeClass) Decode(b *bin.Buffer) error ( SecureValueTypeClass) DecodeBare(b *bin.Buffer) error ( SecureValueTypeClass) Encode(b *bin.Buffer) error ( SecureValueTypeClass) 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. *SecureValueTypeAddress *SecureValueTypeBankStatement *SecureValueTypeDriverLicense *SecureValueTypeEmail *SecureValueTypeIdentityCard *SecureValueTypeInternalPassport *SecureValueTypePassport *SecureValueTypePassportRegistration *SecureValueTypePersonalDetails *SecureValueTypePhone *SecureValueTypeRentalAgreement *SecureValueTypeTemporaryRegistration *SecureValueTypeUtilityBill SecureValueTypeClass : github.com/gotd/td/bin.BareDecoder SecureValueTypeClass : github.com/gotd/td/bin.BareEncoder SecureValueTypeClass : github.com/gotd/td/bin.Decoder SecureValueTypeClass : github.com/gotd/td/bin.Encoder SecureValueTypeClass : github.com/gotd/td/bin.Object SecureValueTypeClass : fmt.Stringer func DecodeSecureValueType(buf *bin.Buffer) (SecureValueTypeClass, error) func (*AccountDeleteSecureValueRequest).GetTypes() (value []SecureValueTypeClass) func (*AccountGetSecureValueRequest).GetTypes() (value []SecureValueTypeClass) func (*InputSecureValue).GetType() (value SecureValueTypeClass) func (*MessageActionSecureValuesSent).GetTypes() (value []SecureValueTypeClass) func (*SecureRequiredType).GetType() (value SecureValueTypeClass) func (*SecureValue).GetType() (value SecureValueTypeClass) func (*SecureValueError).GetType() (value SecureValueTypeClass) func SecureValueErrorClass.GetType() (value SecureValueTypeClass) func (*SecureValueErrorData).GetType() (value SecureValueTypeClass) func (*SecureValueErrorFile).GetType() (value SecureValueTypeClass) func (*SecureValueErrorFiles).GetType() (value SecureValueTypeClass) func (*SecureValueErrorFrontSide).GetType() (value SecureValueTypeClass) func (*SecureValueErrorReverseSide).GetType() (value SecureValueTypeClass) func (*SecureValueErrorSelfie).GetType() (value SecureValueTypeClass) func (*SecureValueErrorTranslationFile).GetType() (value SecureValueTypeClass) func (*SecureValueErrorTranslationFiles).GetType() (value SecureValueTypeClass) func (*SecureValueHash).GetType() (value SecureValueTypeClass) func SecureValueTypeClassArray.First() (v SecureValueTypeClass, ok bool) func SecureValueTypeClassArray.Last() (v SecureValueTypeClass, ok bool) func (*SecureValueTypeClassArray).Pop() (v SecureValueTypeClass, ok bool) func (*SecureValueTypeClassArray).PopFirst() (v SecureValueTypeClass, ok bool) func (*Client).AccountDeleteSecureValue(ctx context.Context, types []SecureValueTypeClass) (bool, error) func (*Client).AccountGetSecureValue(ctx context.Context, types []SecureValueTypeClass) ([]SecureValue, error)
SecureValueTypeClassArray is adapter for slice of SecureValueTypeClass. 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 SecureValueTypeClass. Sort sorts slice of SecureValueTypeClass. SortStable sorts slice of SecureValueTypeClass. func (*AccountDeleteSecureValueRequest).MapTypes() (value SecureValueTypeClassArray) func (*AccountGetSecureValueRequest).MapTypes() (value SecureValueTypeClassArray) func (*MessageActionSecureValuesSent).MapTypes() (value SecureValueTypeClassArray) func SecureValueTypeClassArray.Retain(keep func(x SecureValueTypeClass) bool) SecureValueTypeClassArray func SecureValueTypeClassArray.Sort(less func(a, b SecureValueTypeClass) bool) SecureValueTypeClassArray func SecureValueTypeClassArray.SortStable(less func(a, b SecureValueTypeClass) bool) SecureValueTypeClassArray
SecureValueTypeDriverLicense represents TL type `secureValueTypeDriverLicense#6e425c4`. Driver's license See https://core.telegram.org/constructor/secureValueTypeDriverLicense 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. (*SecureValueTypeDriverLicense) Zero() bool *SecureValueTypeDriverLicense : SecureValueTypeClass *SecureValueTypeDriverLicense : github.com/gotd/td/bin.BareDecoder *SecureValueTypeDriverLicense : github.com/gotd/td/bin.BareEncoder *SecureValueTypeDriverLicense : github.com/gotd/td/bin.Decoder *SecureValueTypeDriverLicense : github.com/gotd/td/bin.Encoder *SecureValueTypeDriverLicense : github.com/gotd/td/bin.Object *SecureValueTypeDriverLicense : github.com/gotd/td/tdp.Object *SecureValueTypeDriverLicense : fmt.Stringer
SecureValueTypeEmail represents TL type `secureValueTypeEmail#8e3ca7ee`. Email See https://core.telegram.org/constructor/secureValueTypeEmail 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. (*SecureValueTypeEmail) Zero() bool *SecureValueTypeEmail : SecureValueTypeClass *SecureValueTypeEmail : github.com/gotd/td/bin.BareDecoder *SecureValueTypeEmail : github.com/gotd/td/bin.BareEncoder *SecureValueTypeEmail : github.com/gotd/td/bin.Decoder *SecureValueTypeEmail : github.com/gotd/td/bin.Encoder *SecureValueTypeEmail : github.com/gotd/td/bin.Object *SecureValueTypeEmail : github.com/gotd/td/tdp.Object *SecureValueTypeEmail : fmt.Stringer
SecureValueTypeIdentityCard represents TL type `secureValueTypeIdentityCard#a0d0744b`. Identity card See https://core.telegram.org/constructor/secureValueTypeIdentityCard 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. (*SecureValueTypeIdentityCard) Zero() bool *SecureValueTypeIdentityCard : SecureValueTypeClass *SecureValueTypeIdentityCard : github.com/gotd/td/bin.BareDecoder *SecureValueTypeIdentityCard : github.com/gotd/td/bin.BareEncoder *SecureValueTypeIdentityCard : github.com/gotd/td/bin.Decoder *SecureValueTypeIdentityCard : github.com/gotd/td/bin.Encoder *SecureValueTypeIdentityCard : github.com/gotd/td/bin.Object *SecureValueTypeIdentityCard : github.com/gotd/td/tdp.Object *SecureValueTypeIdentityCard : fmt.Stringer
SecureValueTypeInternalPassport represents TL type `secureValueTypeInternalPassport#99a48f23`. Internal passport¹ Links: 1. https://core.telegram.org/passport See https://core.telegram.org/constructor/secureValueTypeInternalPassport 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. (*SecureValueTypeInternalPassport) Zero() bool *SecureValueTypeInternalPassport : SecureValueTypeClass *SecureValueTypeInternalPassport : github.com/gotd/td/bin.BareDecoder *SecureValueTypeInternalPassport : github.com/gotd/td/bin.BareEncoder *SecureValueTypeInternalPassport : github.com/gotd/td/bin.Decoder *SecureValueTypeInternalPassport : github.com/gotd/td/bin.Encoder *SecureValueTypeInternalPassport : github.com/gotd/td/bin.Object *SecureValueTypeInternalPassport : github.com/gotd/td/tdp.Object *SecureValueTypeInternalPassport : fmt.Stringer
SecureValueTypePassport represents TL type `secureValueTypePassport#3dac6a00`. Passport See https://core.telegram.org/constructor/secureValueTypePassport 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. (*SecureValueTypePassport) Zero() bool *SecureValueTypePassport : SecureValueTypeClass *SecureValueTypePassport : github.com/gotd/td/bin.BareDecoder *SecureValueTypePassport : github.com/gotd/td/bin.BareEncoder *SecureValueTypePassport : github.com/gotd/td/bin.Decoder *SecureValueTypePassport : github.com/gotd/td/bin.Encoder *SecureValueTypePassport : github.com/gotd/td/bin.Object *SecureValueTypePassport : github.com/gotd/td/tdp.Object *SecureValueTypePassport : fmt.Stringer
SecureValueTypePassportRegistration represents TL type `secureValueTypePassportRegistration#99e3806a`. Internal registration passport¹ Links: 1. https://core.telegram.org/passport See https://core.telegram.org/constructor/secureValueTypePassportRegistration 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. (*SecureValueTypePassportRegistration) Zero() bool *SecureValueTypePassportRegistration : SecureValueTypeClass *SecureValueTypePassportRegistration : github.com/gotd/td/bin.BareDecoder *SecureValueTypePassportRegistration : github.com/gotd/td/bin.BareEncoder *SecureValueTypePassportRegistration : github.com/gotd/td/bin.Decoder *SecureValueTypePassportRegistration : github.com/gotd/td/bin.Encoder *SecureValueTypePassportRegistration : github.com/gotd/td/bin.Object *SecureValueTypePassportRegistration : github.com/gotd/td/tdp.Object *SecureValueTypePassportRegistration : fmt.Stringer
SecureValueTypePersonalDetails represents TL type `secureValueTypePersonalDetails#9d2a81e3`. Personal details See https://core.telegram.org/constructor/secureValueTypePersonalDetails 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. (*SecureValueTypePersonalDetails) Zero() bool *SecureValueTypePersonalDetails : SecureValueTypeClass *SecureValueTypePersonalDetails : github.com/gotd/td/bin.BareDecoder *SecureValueTypePersonalDetails : github.com/gotd/td/bin.BareEncoder *SecureValueTypePersonalDetails : github.com/gotd/td/bin.Decoder *SecureValueTypePersonalDetails : github.com/gotd/td/bin.Encoder *SecureValueTypePersonalDetails : github.com/gotd/td/bin.Object *SecureValueTypePersonalDetails : github.com/gotd/td/tdp.Object *SecureValueTypePersonalDetails : fmt.Stringer
SecureValueTypePhone represents TL type `secureValueTypePhone#b320aadb`. Phone See https://core.telegram.org/constructor/secureValueTypePhone 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. (*SecureValueTypePhone) Zero() bool *SecureValueTypePhone : SecureValueTypeClass *SecureValueTypePhone : github.com/gotd/td/bin.BareDecoder *SecureValueTypePhone : github.com/gotd/td/bin.BareEncoder *SecureValueTypePhone : github.com/gotd/td/bin.Decoder *SecureValueTypePhone : github.com/gotd/td/bin.Encoder *SecureValueTypePhone : github.com/gotd/td/bin.Object *SecureValueTypePhone : github.com/gotd/td/tdp.Object *SecureValueTypePhone : fmt.Stringer
SecureValueTypeRentalAgreement represents TL type `secureValueTypeRentalAgreement#8b883488`. Rental agreement See https://core.telegram.org/constructor/secureValueTypeRentalAgreement 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. (*SecureValueTypeRentalAgreement) Zero() bool *SecureValueTypeRentalAgreement : SecureValueTypeClass *SecureValueTypeRentalAgreement : github.com/gotd/td/bin.BareDecoder *SecureValueTypeRentalAgreement : github.com/gotd/td/bin.BareEncoder *SecureValueTypeRentalAgreement : github.com/gotd/td/bin.Decoder *SecureValueTypeRentalAgreement : github.com/gotd/td/bin.Encoder *SecureValueTypeRentalAgreement : github.com/gotd/td/bin.Object *SecureValueTypeRentalAgreement : github.com/gotd/td/tdp.Object *SecureValueTypeRentalAgreement : fmt.Stringer
SecureValueTypeTemporaryRegistration represents TL type `secureValueTypeTemporaryRegistration#ea02ec33`. Temporary registration See https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration 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. (*SecureValueTypeTemporaryRegistration) Zero() bool *SecureValueTypeTemporaryRegistration : SecureValueTypeClass *SecureValueTypeTemporaryRegistration : github.com/gotd/td/bin.BareDecoder *SecureValueTypeTemporaryRegistration : github.com/gotd/td/bin.BareEncoder *SecureValueTypeTemporaryRegistration : github.com/gotd/td/bin.Decoder *SecureValueTypeTemporaryRegistration : github.com/gotd/td/bin.Encoder *SecureValueTypeTemporaryRegistration : github.com/gotd/td/bin.Object *SecureValueTypeTemporaryRegistration : github.com/gotd/td/tdp.Object *SecureValueTypeTemporaryRegistration : fmt.Stringer
SecureValueTypeUtilityBill represents TL type `secureValueTypeUtilityBill#fc36954e`. Utility bill See https://core.telegram.org/constructor/secureValueTypeUtilityBill 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. (*SecureValueTypeUtilityBill) Zero() bool *SecureValueTypeUtilityBill : SecureValueTypeClass *SecureValueTypeUtilityBill : github.com/gotd/td/bin.BareDecoder *SecureValueTypeUtilityBill : github.com/gotd/td/bin.BareEncoder *SecureValueTypeUtilityBill : github.com/gotd/td/bin.Decoder *SecureValueTypeUtilityBill : github.com/gotd/td/bin.Encoder *SecureValueTypeUtilityBill : github.com/gotd/td/bin.Object *SecureValueTypeUtilityBill : github.com/gotd/td/tdp.Object *SecureValueTypeUtilityBill : fmt.Stringer
SecureValueVector is a box for Vector<SecureValue> Elements of Vector<SecureValue> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SecureValueVector 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. (*SecureValueVector) Zero() bool *SecureValueVector : github.com/gotd/td/bin.BareDecoder *SecureValueVector : github.com/gotd/td/bin.BareEncoder *SecureValueVector : github.com/gotd/td/bin.Decoder *SecureValueVector : github.com/gotd/td/bin.Encoder *SecureValueVector : github.com/gotd/td/bin.Object *SecureValueVector : github.com/gotd/td/tdp.Object *SecureValueVector : fmt.Stringer
SendAsPeer represents TL type `sendAsPeer#b81c7034`. Indicates a peer that can be used to send messages See https://core.telegram.org/constructor/sendAsPeer for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer Whether a Telegram Premium account is required to send messages as this peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SendAsPeer from given interface. GetPeer returns value of Peer field. GetPremiumRequired returns value of PremiumRequired conditional field. SetFlags sets flags for non-zero fields. SetPremiumRequired sets value of PremiumRequired 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. (*SendAsPeer) Zero() bool *SendAsPeer : github.com/gotd/td/bin.BareDecoder *SendAsPeer : github.com/gotd/td/bin.BareEncoder *SendAsPeer : github.com/gotd/td/bin.Decoder *SendAsPeer : github.com/gotd/td/bin.Encoder *SendAsPeer : github.com/gotd/td/bin.Object *SendAsPeer : github.com/gotd/td/tdp.Object *SendAsPeer : fmt.Stringer func (*ChannelsSendAsPeers).GetPeers() (value []SendAsPeer)
SendMessageAction boxes the SendMessageActionClass providing a helper. SendMessageAction SendMessageActionClass Decode implements bin.Decoder for SendMessageActionBox. Encode implements bin.Encode for SendMessageActionBox. *SendMessageActionBox : github.com/gotd/td/bin.Decoder *SendMessageActionBox : github.com/gotd/td/bin.Encoder *SendMessageActionBox : github.com/gotd/td/bin.Object
SendMessageActionClass represents SendMessageAction generic type. See https://core.telegram.org/type/SendMessageAction for reference. Example: g, err := tg.DecodeSendMessageAction(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.SendMessageTypingAction: // sendMessageTypingAction#16bf744e case *tg.SendMessageCancelAction: // sendMessageCancelAction#fd5ec8f5 case *tg.SendMessageRecordVideoAction: // sendMessageRecordVideoAction#a187d66f case *tg.SendMessageUploadVideoAction: // sendMessageUploadVideoAction#e9763aec case *tg.SendMessageRecordAudioAction: // sendMessageRecordAudioAction#d52f73f7 case *tg.SendMessageUploadAudioAction: // sendMessageUploadAudioAction#f351d7ab case *tg.SendMessageUploadPhotoAction: // sendMessageUploadPhotoAction#d1d34a26 case *tg.SendMessageUploadDocumentAction: // sendMessageUploadDocumentAction#aa0cd9e4 case *tg.SendMessageGeoLocationAction: // sendMessageGeoLocationAction#176f8ba1 case *tg.SendMessageChooseContactAction: // sendMessageChooseContactAction#628cbc6f case *tg.SendMessageGamePlayAction: // sendMessageGamePlayAction#dd6a8f48 case *tg.SendMessageRecordRoundAction: // sendMessageRecordRoundAction#88f27fbc case *tg.SendMessageUploadRoundAction: // sendMessageUploadRoundAction#243e1c66 case *tg.SpeakingInGroupCallAction: // speakingInGroupCallAction#d92c2285 case *tg.SendMessageHistoryImportAction: // sendMessageHistoryImportAction#dbda9246 case *tg.SendMessageChooseStickerAction: // sendMessageChooseStickerAction#b05ac6b1 case *tg.SendMessageEmojiInteraction: // sendMessageEmojiInteraction#25972bcb case *tg.SendMessageEmojiInteractionSeen: // sendMessageEmojiInteractionSeen#b665902e default: panic(v) } ( SendMessageActionClass) Decode(b *bin.Buffer) error ( SendMessageActionClass) DecodeBare(b *bin.Buffer) error ( SendMessageActionClass) Encode(b *bin.Buffer) error ( SendMessageActionClass) 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. *SendMessageCancelAction *SendMessageChooseContactAction *SendMessageChooseStickerAction *SendMessageEmojiInteraction *SendMessageEmojiInteractionSeen *SendMessageGamePlayAction *SendMessageGeoLocationAction *SendMessageHistoryImportAction *SendMessageRecordAudioAction *SendMessageRecordRoundAction *SendMessageRecordVideoAction *SendMessageTypingAction *SendMessageUploadAudioAction *SendMessageUploadDocumentAction *SendMessageUploadPhotoAction *SendMessageUploadRoundAction *SendMessageUploadVideoAction *SpeakingInGroupCallAction SendMessageActionClass : github.com/gotd/td/bin.BareDecoder SendMessageActionClass : github.com/gotd/td/bin.BareEncoder SendMessageActionClass : github.com/gotd/td/bin.Decoder SendMessageActionClass : github.com/gotd/td/bin.Encoder SendMessageActionClass : github.com/gotd/td/bin.Object SendMessageActionClass : fmt.Stringer func DecodeSendMessageAction(buf *bin.Buffer) (SendMessageActionClass, error) func (*MessagesSetTypingRequest).GetAction() (value SendMessageActionClass) func SendMessageActionClassArray.First() (v SendMessageActionClass, ok bool) func SendMessageActionClassArray.Last() (v SendMessageActionClass, ok bool) func (*SendMessageActionClassArray).Pop() (v SendMessageActionClass, ok bool) func (*SendMessageActionClassArray).PopFirst() (v SendMessageActionClass, ok bool) func (*UpdateChannelUserTyping).GetAction() (value SendMessageActionClass) func (*UpdateChatUserTyping).GetAction() (value SendMessageActionClass) func (*UpdateUserTyping).GetAction() (value SendMessageActionClass)
SendMessageActionClassArray is adapter for slice of SendMessageActionClass. AsSendMessageEmojiInteraction returns copy with only SendMessageEmojiInteraction constructors. AsSendMessageEmojiInteractionSeen returns copy with only SendMessageEmojiInteractionSeen constructors. AsSendMessageHistoryImportAction returns copy with only SendMessageHistoryImportAction constructors. AsSendMessageUploadAudioAction returns copy with only SendMessageUploadAudioAction constructors. AsSendMessageUploadDocumentAction returns copy with only SendMessageUploadDocumentAction constructors. AsSendMessageUploadPhotoAction returns copy with only SendMessageUploadPhotoAction constructors. AsSendMessageUploadRoundAction returns copy with only SendMessageUploadRoundAction constructors. AsSendMessageUploadVideoAction returns copy with only SendMessageUploadVideoAction 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 SendMessageActionClass. Sort sorts slice of SendMessageActionClass. SortStable sorts slice of SendMessageActionClass. func SendMessageActionClassArray.Retain(keep func(x SendMessageActionClass) bool) SendMessageActionClassArray func SendMessageActionClassArray.Sort(less func(a, b SendMessageActionClass) bool) SendMessageActionClassArray func SendMessageActionClassArray.SortStable(less func(a, b SendMessageActionClass) bool) SendMessageActionClassArray
SendMessageCancelAction represents TL type `sendMessageCancelAction#fd5ec8f5`. Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload. See https://core.telegram.org/constructor/sendMessageCancelAction 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. (*SendMessageCancelAction) Zero() bool *SendMessageCancelAction : SendMessageActionClass *SendMessageCancelAction : github.com/gotd/td/bin.BareDecoder *SendMessageCancelAction : github.com/gotd/td/bin.BareEncoder *SendMessageCancelAction : github.com/gotd/td/bin.Decoder *SendMessageCancelAction : github.com/gotd/td/bin.Encoder *SendMessageCancelAction : github.com/gotd/td/bin.Object *SendMessageCancelAction : github.com/gotd/td/tdp.Object *SendMessageCancelAction : fmt.Stringer
SendMessageChooseContactAction represents TL type `sendMessageChooseContactAction#628cbc6f`. User is selecting a contact to share. See https://core.telegram.org/constructor/sendMessageChooseContactAction 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. (*SendMessageChooseContactAction) Zero() bool *SendMessageChooseContactAction : SendMessageActionClass *SendMessageChooseContactAction : github.com/gotd/td/bin.BareDecoder *SendMessageChooseContactAction : github.com/gotd/td/bin.BareEncoder *SendMessageChooseContactAction : github.com/gotd/td/bin.Decoder *SendMessageChooseContactAction : github.com/gotd/td/bin.Encoder *SendMessageChooseContactAction : github.com/gotd/td/bin.Object *SendMessageChooseContactAction : github.com/gotd/td/tdp.Object *SendMessageChooseContactAction : fmt.Stringer
SendMessageChooseStickerAction represents TL type `sendMessageChooseStickerAction#b05ac6b1`. User is choosing a sticker See https://core.telegram.org/constructor/sendMessageChooseStickerAction 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. (*SendMessageChooseStickerAction) Zero() bool *SendMessageChooseStickerAction : SendMessageActionClass *SendMessageChooseStickerAction : github.com/gotd/td/bin.BareDecoder *SendMessageChooseStickerAction : github.com/gotd/td/bin.BareEncoder *SendMessageChooseStickerAction : github.com/gotd/td/bin.Decoder *SendMessageChooseStickerAction : github.com/gotd/td/bin.Encoder *SendMessageChooseStickerAction : github.com/gotd/td/bin.Object *SendMessageChooseStickerAction : github.com/gotd/td/tdp.Object *SendMessageChooseStickerAction : fmt.Stringer
SendMessageEmojiInteraction represents TL type `sendMessageEmojiInteraction#25972bcb`. User has clicked on an animated emoji triggering a reaction, click here for more info »¹. Links: 1. https://core.telegram.org/api/animated-emojis#emoji-reactions See https://core.telegram.org/constructor/sendMessageEmojiInteraction for reference. Emoji A JSON object with interaction info, click here for more info »¹ Links: 1) https://core.telegram.org/api/animated-emojis#emoji-reactions Message ID of the animated emoji that was clicked Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SendMessageEmojiInteraction from given interface. GetEmoticon returns value of Emoticon field. GetInteraction returns value of Interaction field. GetMsgID returns value of MsgID 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. (*SendMessageEmojiInteraction) Zero() bool *SendMessageEmojiInteraction : SendMessageActionClass *SendMessageEmojiInteraction : github.com/gotd/td/bin.BareDecoder *SendMessageEmojiInteraction : github.com/gotd/td/bin.BareEncoder *SendMessageEmojiInteraction : github.com/gotd/td/bin.Decoder *SendMessageEmojiInteraction : github.com/gotd/td/bin.Encoder *SendMessageEmojiInteraction : github.com/gotd/td/bin.Object *SendMessageEmojiInteraction : github.com/gotd/td/tdp.Object *SendMessageEmojiInteraction : fmt.Stringer func SendMessageEmojiInteractionArray.First() (v SendMessageEmojiInteraction, ok bool) func SendMessageEmojiInteractionArray.Last() (v SendMessageEmojiInteraction, ok bool) func (*SendMessageEmojiInteractionArray).Pop() (v SendMessageEmojiInteraction, ok bool) func (*SendMessageEmojiInteractionArray).PopFirst() (v SendMessageEmojiInteraction, ok bool)
SendMessageEmojiInteractionArray is adapter for slice of SendMessageEmojiInteraction. 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 SendMessageEmojiInteraction. Sort sorts slice of SendMessageEmojiInteraction. SortStable sorts slice of SendMessageEmojiInteraction. func SendMessageActionClassArray.AsSendMessageEmojiInteraction() (to SendMessageEmojiInteractionArray) func SendMessageEmojiInteractionArray.Retain(keep func(x SendMessageEmojiInteraction) bool) SendMessageEmojiInteractionArray func SendMessageEmojiInteractionArray.Sort(less func(a, b SendMessageEmojiInteraction) bool) SendMessageEmojiInteractionArray func SendMessageEmojiInteractionArray.SortStable(less func(a, b SendMessageEmojiInteraction) bool) SendMessageEmojiInteractionArray
SendMessageEmojiInteractionSeen represents TL type `sendMessageEmojiInteractionSeen#b665902e`. User is watching an animated emoji reaction triggered by another user, click here for more info »¹. Links: 1. https://core.telegram.org/api/animated-emojis#emoji-reactions See https://core.telegram.org/constructor/sendMessageEmojiInteractionSeen for reference. The emoji, for now , and are supported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SendMessageEmojiInteractionSeen from given interface. GetEmoticon returns value of Emoticon 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. (*SendMessageEmojiInteractionSeen) Zero() bool *SendMessageEmojiInteractionSeen : SendMessageActionClass *SendMessageEmojiInteractionSeen : github.com/gotd/td/bin.BareDecoder *SendMessageEmojiInteractionSeen : github.com/gotd/td/bin.BareEncoder *SendMessageEmojiInteractionSeen : github.com/gotd/td/bin.Decoder *SendMessageEmojiInteractionSeen : github.com/gotd/td/bin.Encoder *SendMessageEmojiInteractionSeen : github.com/gotd/td/bin.Object *SendMessageEmojiInteractionSeen : github.com/gotd/td/tdp.Object *SendMessageEmojiInteractionSeen : fmt.Stringer func SendMessageEmojiInteractionSeenArray.First() (v SendMessageEmojiInteractionSeen, ok bool) func SendMessageEmojiInteractionSeenArray.Last() (v SendMessageEmojiInteractionSeen, ok bool) func (*SendMessageEmojiInteractionSeenArray).Pop() (v SendMessageEmojiInteractionSeen, ok bool) func (*SendMessageEmojiInteractionSeenArray).PopFirst() (v SendMessageEmojiInteractionSeen, ok bool)
SendMessageEmojiInteractionSeenArray is adapter for slice of SendMessageEmojiInteractionSeen. 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 SendMessageEmojiInteractionSeen. Sort sorts slice of SendMessageEmojiInteractionSeen. SortStable sorts slice of SendMessageEmojiInteractionSeen. func SendMessageActionClassArray.AsSendMessageEmojiInteractionSeen() (to SendMessageEmojiInteractionSeenArray) func SendMessageEmojiInteractionSeenArray.Retain(keep func(x SendMessageEmojiInteractionSeen) bool) SendMessageEmojiInteractionSeenArray func SendMessageEmojiInteractionSeenArray.Sort(less func(a, b SendMessageEmojiInteractionSeen) bool) SendMessageEmojiInteractionSeenArray func SendMessageEmojiInteractionSeenArray.SortStable(less func(a, b SendMessageEmojiInteractionSeen) bool) SendMessageEmojiInteractionSeenArray
SendMessageGamePlayAction represents TL type `sendMessageGamePlayAction#dd6a8f48`. User is playing a game See https://core.telegram.org/constructor/sendMessageGamePlayAction 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. (*SendMessageGamePlayAction) Zero() bool *SendMessageGamePlayAction : SendMessageActionClass *SendMessageGamePlayAction : github.com/gotd/td/bin.BareDecoder *SendMessageGamePlayAction : github.com/gotd/td/bin.BareEncoder *SendMessageGamePlayAction : github.com/gotd/td/bin.Decoder *SendMessageGamePlayAction : github.com/gotd/td/bin.Encoder *SendMessageGamePlayAction : github.com/gotd/td/bin.Object *SendMessageGamePlayAction : github.com/gotd/td/tdp.Object *SendMessageGamePlayAction : fmt.Stringer
SendMessageGeoLocationAction represents TL type `sendMessageGeoLocationAction#176f8ba1`. User is selecting a location to share. See https://core.telegram.org/constructor/sendMessageGeoLocationAction 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. (*SendMessageGeoLocationAction) Zero() bool *SendMessageGeoLocationAction : SendMessageActionClass *SendMessageGeoLocationAction : github.com/gotd/td/bin.BareDecoder *SendMessageGeoLocationAction : github.com/gotd/td/bin.BareEncoder *SendMessageGeoLocationAction : github.com/gotd/td/bin.Decoder *SendMessageGeoLocationAction : github.com/gotd/td/bin.Encoder *SendMessageGeoLocationAction : github.com/gotd/td/bin.Object *SendMessageGeoLocationAction : github.com/gotd/td/tdp.Object *SendMessageGeoLocationAction : fmt.Stringer
SendMessageHistoryImportAction represents TL type `sendMessageHistoryImportAction#dbda9246`. Chat history is being imported See https://core.telegram.org/constructor/sendMessageHistoryImportAction for reference. Progress percentage Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SendMessageHistoryImportAction from given interface. GetProgress returns value of Progress 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. (*SendMessageHistoryImportAction) Zero() bool *SendMessageHistoryImportAction : SendMessageActionClass *SendMessageHistoryImportAction : github.com/gotd/td/bin.BareDecoder *SendMessageHistoryImportAction : github.com/gotd/td/bin.BareEncoder *SendMessageHistoryImportAction : github.com/gotd/td/bin.Decoder *SendMessageHistoryImportAction : github.com/gotd/td/bin.Encoder *SendMessageHistoryImportAction : github.com/gotd/td/bin.Object *SendMessageHistoryImportAction : github.com/gotd/td/tdp.Object *SendMessageHistoryImportAction : fmt.Stringer func SendMessageHistoryImportActionArray.First() (v SendMessageHistoryImportAction, ok bool) func SendMessageHistoryImportActionArray.Last() (v SendMessageHistoryImportAction, ok bool) func (*SendMessageHistoryImportActionArray).Pop() (v SendMessageHistoryImportAction, ok bool) func (*SendMessageHistoryImportActionArray).PopFirst() (v SendMessageHistoryImportAction, ok bool)
SendMessageHistoryImportActionArray is adapter for slice of SendMessageHistoryImportAction. 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 SendMessageHistoryImportAction. Sort sorts slice of SendMessageHistoryImportAction. SortStable sorts slice of SendMessageHistoryImportAction. func SendMessageActionClassArray.AsSendMessageHistoryImportAction() (to SendMessageHistoryImportActionArray) func SendMessageHistoryImportActionArray.Retain(keep func(x SendMessageHistoryImportAction) bool) SendMessageHistoryImportActionArray func SendMessageHistoryImportActionArray.Sort(less func(a, b SendMessageHistoryImportAction) bool) SendMessageHistoryImportActionArray func SendMessageHistoryImportActionArray.SortStable(less func(a, b SendMessageHistoryImportAction) bool) SendMessageHistoryImportActionArray
SendMessageRecordAudioAction represents TL type `sendMessageRecordAudioAction#d52f73f7`. User is recording a voice message. See https://core.telegram.org/constructor/sendMessageRecordAudioAction 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. (*SendMessageRecordAudioAction) Zero() bool *SendMessageRecordAudioAction : SendMessageActionClass *SendMessageRecordAudioAction : github.com/gotd/td/bin.BareDecoder *SendMessageRecordAudioAction : github.com/gotd/td/bin.BareEncoder *SendMessageRecordAudioAction : github.com/gotd/td/bin.Decoder *SendMessageRecordAudioAction : github.com/gotd/td/bin.Encoder *SendMessageRecordAudioAction : github.com/gotd/td/bin.Object *SendMessageRecordAudioAction : github.com/gotd/td/tdp.Object *SendMessageRecordAudioAction : fmt.Stringer
SendMessageRecordRoundAction represents TL type `sendMessageRecordRoundAction#88f27fbc`. User is recording a round video to share See https://core.telegram.org/constructor/sendMessageRecordRoundAction 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. (*SendMessageRecordRoundAction) Zero() bool *SendMessageRecordRoundAction : SendMessageActionClass *SendMessageRecordRoundAction : github.com/gotd/td/bin.BareDecoder *SendMessageRecordRoundAction : github.com/gotd/td/bin.BareEncoder *SendMessageRecordRoundAction : github.com/gotd/td/bin.Decoder *SendMessageRecordRoundAction : github.com/gotd/td/bin.Encoder *SendMessageRecordRoundAction : github.com/gotd/td/bin.Object *SendMessageRecordRoundAction : github.com/gotd/td/tdp.Object *SendMessageRecordRoundAction : fmt.Stringer
SendMessageRecordVideoAction represents TL type `sendMessageRecordVideoAction#a187d66f`. User is recording a video. See https://core.telegram.org/constructor/sendMessageRecordVideoAction 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. (*SendMessageRecordVideoAction) Zero() bool *SendMessageRecordVideoAction : SendMessageActionClass *SendMessageRecordVideoAction : github.com/gotd/td/bin.BareDecoder *SendMessageRecordVideoAction : github.com/gotd/td/bin.BareEncoder *SendMessageRecordVideoAction : github.com/gotd/td/bin.Decoder *SendMessageRecordVideoAction : github.com/gotd/td/bin.Encoder *SendMessageRecordVideoAction : github.com/gotd/td/bin.Object *SendMessageRecordVideoAction : github.com/gotd/td/tdp.Object *SendMessageRecordVideoAction : fmt.Stringer
SendMessageTypingAction represents TL type `sendMessageTypingAction#16bf744e`. User is typing. See https://core.telegram.org/constructor/sendMessageTypingAction 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. (*SendMessageTypingAction) Zero() bool *SendMessageTypingAction : SendMessageActionClass *SendMessageTypingAction : github.com/gotd/td/bin.BareDecoder *SendMessageTypingAction : github.com/gotd/td/bin.BareEncoder *SendMessageTypingAction : github.com/gotd/td/bin.Decoder *SendMessageTypingAction : github.com/gotd/td/bin.Encoder *SendMessageTypingAction : github.com/gotd/td/bin.Object *SendMessageTypingAction : github.com/gotd/td/tdp.Object *SendMessageTypingAction : fmt.Stringer
SendMessageUploadAudioAction represents TL type `sendMessageUploadAudioAction#f351d7ab`. User is uploading a voice message. See https://core.telegram.org/constructor/sendMessageUploadAudioAction for reference. Progress percentage Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SendMessageUploadAudioAction from given interface. GetProgress returns value of Progress 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. (*SendMessageUploadAudioAction) Zero() bool *SendMessageUploadAudioAction : SendMessageActionClass *SendMessageUploadAudioAction : github.com/gotd/td/bin.BareDecoder *SendMessageUploadAudioAction : github.com/gotd/td/bin.BareEncoder *SendMessageUploadAudioAction : github.com/gotd/td/bin.Decoder *SendMessageUploadAudioAction : github.com/gotd/td/bin.Encoder *SendMessageUploadAudioAction : github.com/gotd/td/bin.Object *SendMessageUploadAudioAction : github.com/gotd/td/tdp.Object *SendMessageUploadAudioAction : fmt.Stringer func SendMessageUploadAudioActionArray.First() (v SendMessageUploadAudioAction, ok bool) func SendMessageUploadAudioActionArray.Last() (v SendMessageUploadAudioAction, ok bool) func (*SendMessageUploadAudioActionArray).Pop() (v SendMessageUploadAudioAction, ok bool) func (*SendMessageUploadAudioActionArray).PopFirst() (v SendMessageUploadAudioAction, ok bool)
SendMessageUploadAudioActionArray is adapter for slice of SendMessageUploadAudioAction. 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 SendMessageUploadAudioAction. Sort sorts slice of SendMessageUploadAudioAction. SortStable sorts slice of SendMessageUploadAudioAction. func SendMessageActionClassArray.AsSendMessageUploadAudioAction() (to SendMessageUploadAudioActionArray) func SendMessageUploadAudioActionArray.Retain(keep func(x SendMessageUploadAudioAction) bool) SendMessageUploadAudioActionArray func SendMessageUploadAudioActionArray.Sort(less func(a, b SendMessageUploadAudioAction) bool) SendMessageUploadAudioActionArray func SendMessageUploadAudioActionArray.SortStable(less func(a, b SendMessageUploadAudioAction) bool) SendMessageUploadAudioActionArray
SendMessageUploadDocumentAction represents TL type `sendMessageUploadDocumentAction#aa0cd9e4`. User is uploading a file. See https://core.telegram.org/constructor/sendMessageUploadDocumentAction for reference. Progress percentage Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SendMessageUploadDocumentAction from given interface. GetProgress returns value of Progress 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. (*SendMessageUploadDocumentAction) Zero() bool *SendMessageUploadDocumentAction : SendMessageActionClass *SendMessageUploadDocumentAction : github.com/gotd/td/bin.BareDecoder *SendMessageUploadDocumentAction : github.com/gotd/td/bin.BareEncoder *SendMessageUploadDocumentAction : github.com/gotd/td/bin.Decoder *SendMessageUploadDocumentAction : github.com/gotd/td/bin.Encoder *SendMessageUploadDocumentAction : github.com/gotd/td/bin.Object *SendMessageUploadDocumentAction : github.com/gotd/td/tdp.Object *SendMessageUploadDocumentAction : fmt.Stringer func SendMessageUploadDocumentActionArray.First() (v SendMessageUploadDocumentAction, ok bool) func SendMessageUploadDocumentActionArray.Last() (v SendMessageUploadDocumentAction, ok bool) func (*SendMessageUploadDocumentActionArray).Pop() (v SendMessageUploadDocumentAction, ok bool) func (*SendMessageUploadDocumentActionArray).PopFirst() (v SendMessageUploadDocumentAction, ok bool)
SendMessageUploadDocumentActionArray is adapter for slice of SendMessageUploadDocumentAction. 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 SendMessageUploadDocumentAction. Sort sorts slice of SendMessageUploadDocumentAction. SortStable sorts slice of SendMessageUploadDocumentAction. func SendMessageActionClassArray.AsSendMessageUploadDocumentAction() (to SendMessageUploadDocumentActionArray) func SendMessageUploadDocumentActionArray.Retain(keep func(x SendMessageUploadDocumentAction) bool) SendMessageUploadDocumentActionArray func SendMessageUploadDocumentActionArray.Sort(less func(a, b SendMessageUploadDocumentAction) bool) SendMessageUploadDocumentActionArray func SendMessageUploadDocumentActionArray.SortStable(less func(a, b SendMessageUploadDocumentAction) bool) SendMessageUploadDocumentActionArray
SendMessageUploadPhotoAction represents TL type `sendMessageUploadPhotoAction#d1d34a26`. User is uploading a photo. See https://core.telegram.org/constructor/sendMessageUploadPhotoAction for reference. Progress percentage Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SendMessageUploadPhotoAction from given interface. GetProgress returns value of Progress 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. (*SendMessageUploadPhotoAction) Zero() bool *SendMessageUploadPhotoAction : SendMessageActionClass *SendMessageUploadPhotoAction : github.com/gotd/td/bin.BareDecoder *SendMessageUploadPhotoAction : github.com/gotd/td/bin.BareEncoder *SendMessageUploadPhotoAction : github.com/gotd/td/bin.Decoder *SendMessageUploadPhotoAction : github.com/gotd/td/bin.Encoder *SendMessageUploadPhotoAction : github.com/gotd/td/bin.Object *SendMessageUploadPhotoAction : github.com/gotd/td/tdp.Object *SendMessageUploadPhotoAction : fmt.Stringer func SendMessageUploadPhotoActionArray.First() (v SendMessageUploadPhotoAction, ok bool) func SendMessageUploadPhotoActionArray.Last() (v SendMessageUploadPhotoAction, ok bool) func (*SendMessageUploadPhotoActionArray).Pop() (v SendMessageUploadPhotoAction, ok bool) func (*SendMessageUploadPhotoActionArray).PopFirst() (v SendMessageUploadPhotoAction, ok bool)
SendMessageUploadPhotoActionArray is adapter for slice of SendMessageUploadPhotoAction. 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 SendMessageUploadPhotoAction. Sort sorts slice of SendMessageUploadPhotoAction. SortStable sorts slice of SendMessageUploadPhotoAction. func SendMessageActionClassArray.AsSendMessageUploadPhotoAction() (to SendMessageUploadPhotoActionArray) func SendMessageUploadPhotoActionArray.Retain(keep func(x SendMessageUploadPhotoAction) bool) SendMessageUploadPhotoActionArray func SendMessageUploadPhotoActionArray.Sort(less func(a, b SendMessageUploadPhotoAction) bool) SendMessageUploadPhotoActionArray func SendMessageUploadPhotoActionArray.SortStable(less func(a, b SendMessageUploadPhotoAction) bool) SendMessageUploadPhotoActionArray
SendMessageUploadRoundAction represents TL type `sendMessageUploadRoundAction#243e1c66`. User is uploading a round video See https://core.telegram.org/constructor/sendMessageUploadRoundAction for reference. Progress percentage Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SendMessageUploadRoundAction from given interface. GetProgress returns value of Progress 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. (*SendMessageUploadRoundAction) Zero() bool *SendMessageUploadRoundAction : SendMessageActionClass *SendMessageUploadRoundAction : github.com/gotd/td/bin.BareDecoder *SendMessageUploadRoundAction : github.com/gotd/td/bin.BareEncoder *SendMessageUploadRoundAction : github.com/gotd/td/bin.Decoder *SendMessageUploadRoundAction : github.com/gotd/td/bin.Encoder *SendMessageUploadRoundAction : github.com/gotd/td/bin.Object *SendMessageUploadRoundAction : github.com/gotd/td/tdp.Object *SendMessageUploadRoundAction : fmt.Stringer func SendMessageUploadRoundActionArray.First() (v SendMessageUploadRoundAction, ok bool) func SendMessageUploadRoundActionArray.Last() (v SendMessageUploadRoundAction, ok bool) func (*SendMessageUploadRoundActionArray).Pop() (v SendMessageUploadRoundAction, ok bool) func (*SendMessageUploadRoundActionArray).PopFirst() (v SendMessageUploadRoundAction, ok bool)
SendMessageUploadRoundActionArray is adapter for slice of SendMessageUploadRoundAction. 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 SendMessageUploadRoundAction. Sort sorts slice of SendMessageUploadRoundAction. SortStable sorts slice of SendMessageUploadRoundAction. func SendMessageActionClassArray.AsSendMessageUploadRoundAction() (to SendMessageUploadRoundActionArray) func SendMessageUploadRoundActionArray.Retain(keep func(x SendMessageUploadRoundAction) bool) SendMessageUploadRoundActionArray func SendMessageUploadRoundActionArray.Sort(less func(a, b SendMessageUploadRoundAction) bool) SendMessageUploadRoundActionArray func SendMessageUploadRoundActionArray.SortStable(less func(a, b SendMessageUploadRoundAction) bool) SendMessageUploadRoundActionArray
SendMessageUploadVideoAction represents TL type `sendMessageUploadVideoAction#e9763aec`. User is uploading a video. See https://core.telegram.org/constructor/sendMessageUploadVideoAction for reference. Progress percentage Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SendMessageUploadVideoAction from given interface. GetProgress returns value of Progress 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. (*SendMessageUploadVideoAction) Zero() bool *SendMessageUploadVideoAction : SendMessageActionClass *SendMessageUploadVideoAction : github.com/gotd/td/bin.BareDecoder *SendMessageUploadVideoAction : github.com/gotd/td/bin.BareEncoder *SendMessageUploadVideoAction : github.com/gotd/td/bin.Decoder *SendMessageUploadVideoAction : github.com/gotd/td/bin.Encoder *SendMessageUploadVideoAction : github.com/gotd/td/bin.Object *SendMessageUploadVideoAction : github.com/gotd/td/tdp.Object *SendMessageUploadVideoAction : fmt.Stringer func SendMessageUploadVideoActionArray.First() (v SendMessageUploadVideoAction, ok bool) func SendMessageUploadVideoActionArray.Last() (v SendMessageUploadVideoAction, ok bool) func (*SendMessageUploadVideoActionArray).Pop() (v SendMessageUploadVideoAction, ok bool) func (*SendMessageUploadVideoActionArray).PopFirst() (v SendMessageUploadVideoAction, ok bool)
SendMessageUploadVideoActionArray is adapter for slice of SendMessageUploadVideoAction. 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 SendMessageUploadVideoAction. Sort sorts slice of SendMessageUploadVideoAction. SortStable sorts slice of SendMessageUploadVideoAction. func SendMessageActionClassArray.AsSendMessageUploadVideoAction() (to SendMessageUploadVideoActionArray) func SendMessageUploadVideoActionArray.Retain(keep func(x SendMessageUploadVideoAction) bool) SendMessageUploadVideoActionArray func SendMessageUploadVideoActionArray.Sort(less func(a, b SendMessageUploadVideoAction) bool) SendMessageUploadVideoActionArray func SendMessageUploadVideoActionArray.SortStable(less func(a, b SendMessageUploadVideoAction) bool) SendMessageUploadVideoActionArray
SentStoryReactionHandler is a SentStoryReaction event handler. func UpdateDispatcher.OnSentStoryReaction(handler SentStoryReactionHandler)
(*ServerDispatcher) Handle(ctx context.Context, b *bin.Buffer) (bin.Encoder, error) (*ServerDispatcher) OnAccountAcceptAuthorization(f func(ctx context.Context, request *AccountAcceptAuthorizationRequest) (bool, error)) (*ServerDispatcher) OnAccountCancelPasswordEmail(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAccountChangeAuthorizationSettings(f func(ctx context.Context, request *AccountChangeAuthorizationSettingsRequest) (bool, error)) (*ServerDispatcher) OnAccountChangePhone(f func(ctx context.Context, request *AccountChangePhoneRequest) (UserClass, error)) (*ServerDispatcher) OnAccountCheckUsername(f func(ctx context.Context, username string) (bool, error)) (*ServerDispatcher) OnAccountClearRecentEmojiStatuses(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAccountConfirmPasswordEmail(f func(ctx context.Context, code string) (bool, error)) (*ServerDispatcher) OnAccountConfirmPhone(f func(ctx context.Context, request *AccountConfirmPhoneRequest) (bool, error)) (*ServerDispatcher) OnAccountCreateTheme(f func(ctx context.Context, request *AccountCreateThemeRequest) (*Theme, error)) (*ServerDispatcher) OnAccountDeclinePasswordReset(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAccountDeleteAccount(f func(ctx context.Context, request *AccountDeleteAccountRequest) (bool, error)) (*ServerDispatcher) OnAccountDeleteAutoSaveExceptions(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAccountDeleteSecureValue(f func(ctx context.Context, types []SecureValueTypeClass) (bool, error)) (*ServerDispatcher) OnAccountFinishTakeoutSession(f func(ctx context.Context, request *AccountFinishTakeoutSessionRequest) (bool, error)) (*ServerDispatcher) OnAccountGetAccountTTL(f func(ctx context.Context) (*AccountDaysTTL, error)) (*ServerDispatcher) OnAccountGetAllSecureValues(f func(ctx context.Context) ([]SecureValue, error)) (*ServerDispatcher) OnAccountGetAuthorizationForm(f func(ctx context.Context, request *AccountGetAuthorizationFormRequest) (*AccountAuthorizationForm, error)) (*ServerDispatcher) OnAccountGetAuthorizations(f func(ctx context.Context) (*AccountAuthorizations, error)) (*ServerDispatcher) OnAccountGetAutoDownloadSettings(f func(ctx context.Context) (*AccountAutoDownloadSettings, error)) (*ServerDispatcher) OnAccountGetAutoSaveSettings(f func(ctx context.Context) (*AccountAutoSaveSettings, error)) (*ServerDispatcher) OnAccountGetChannelDefaultEmojiStatuses(f func(ctx context.Context, hash int64) (AccountEmojiStatusesClass, error)) (*ServerDispatcher) OnAccountGetChannelRestrictedStatusEmojis(f func(ctx context.Context, hash int64) (EmojiListClass, error)) (*ServerDispatcher) OnAccountGetChatThemes(f func(ctx context.Context, hash int64) (AccountThemesClass, error)) (*ServerDispatcher) OnAccountGetContactSignUpNotification(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAccountGetContentSettings(f func(ctx context.Context) (*AccountContentSettings, error)) (*ServerDispatcher) OnAccountGetDefaultBackgroundEmojis(f func(ctx context.Context, hash int64) (EmojiListClass, error)) (*ServerDispatcher) OnAccountGetDefaultEmojiStatuses(f func(ctx context.Context, hash int64) (AccountEmojiStatusesClass, error)) (*ServerDispatcher) OnAccountGetDefaultGroupPhotoEmojis(f func(ctx context.Context, hash int64) (EmojiListClass, error)) (*ServerDispatcher) OnAccountGetDefaultProfilePhotoEmojis(f func(ctx context.Context, hash int64) (EmojiListClass, error)) (*ServerDispatcher) OnAccountGetGlobalPrivacySettings(f func(ctx context.Context) (*GlobalPrivacySettings, error)) (*ServerDispatcher) OnAccountGetMultiWallPapers(f func(ctx context.Context, wallpapers []InputWallPaperClass) ([]WallPaperClass, error)) (*ServerDispatcher) OnAccountGetNotifyExceptions(f func(ctx context.Context, request *AccountGetNotifyExceptionsRequest) (UpdatesClass, error)) (*ServerDispatcher) OnAccountGetNotifySettings(f func(ctx context.Context, peer InputNotifyPeerClass) (*PeerNotifySettings, error)) (*ServerDispatcher) OnAccountGetPassword(f func(ctx context.Context) (*AccountPassword, error)) (*ServerDispatcher) OnAccountGetPasswordSettings(f func(ctx context.Context, password InputCheckPasswordSRPClass) (*AccountPasswordSettings, error)) (*ServerDispatcher) OnAccountGetPrivacy(f func(ctx context.Context, key InputPrivacyKeyClass) (*AccountPrivacyRules, error)) (*ServerDispatcher) OnAccountGetRecentEmojiStatuses(f func(ctx context.Context, hash int64) (AccountEmojiStatusesClass, error)) (*ServerDispatcher) OnAccountGetSavedRingtones(f func(ctx context.Context, hash int64) (AccountSavedRingtonesClass, error)) (*ServerDispatcher) OnAccountGetSecureValue(f func(ctx context.Context, types []SecureValueTypeClass) ([]SecureValue, error)) (*ServerDispatcher) OnAccountGetTheme(f func(ctx context.Context, request *AccountGetThemeRequest) (*Theme, error)) (*ServerDispatcher) OnAccountGetThemes(f func(ctx context.Context, request *AccountGetThemesRequest) (AccountThemesClass, error)) (*ServerDispatcher) OnAccountGetTmpPassword(f func(ctx context.Context, request *AccountGetTmpPasswordRequest) (*AccountTmpPassword, error)) (*ServerDispatcher) OnAccountGetWallPaper(f func(ctx context.Context, wallpaper InputWallPaperClass) (WallPaperClass, error)) (*ServerDispatcher) OnAccountGetWallPapers(f func(ctx context.Context, hash int64) (AccountWallPapersClass, error)) (*ServerDispatcher) OnAccountGetWebAuthorizations(f func(ctx context.Context) (*AccountWebAuthorizations, error)) (*ServerDispatcher) OnAccountInitTakeoutSession(f func(ctx context.Context, request *AccountInitTakeoutSessionRequest) (*AccountTakeout, error)) (*ServerDispatcher) OnAccountInstallTheme(f func(ctx context.Context, request *AccountInstallThemeRequest) (bool, error)) (*ServerDispatcher) OnAccountInstallWallPaper(f func(ctx context.Context, request *AccountInstallWallPaperRequest) (bool, error)) (*ServerDispatcher) OnAccountInvalidateSignInCodes(f func(ctx context.Context, codes []string) (bool, error)) (*ServerDispatcher) OnAccountRegisterDevice(f func(ctx context.Context, request *AccountRegisterDeviceRequest) (bool, error)) (*ServerDispatcher) OnAccountReorderUsernames(f func(ctx context.Context, order []string) (bool, error)) (*ServerDispatcher) OnAccountReportPeer(f func(ctx context.Context, request *AccountReportPeerRequest) (bool, error)) (*ServerDispatcher) OnAccountReportProfilePhoto(f func(ctx context.Context, request *AccountReportProfilePhotoRequest) (bool, error)) (*ServerDispatcher) OnAccountResendPasswordEmail(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAccountResetAuthorization(f func(ctx context.Context, hash int64) (bool, error)) (*ServerDispatcher) OnAccountResetNotifySettings(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAccountResetPassword(f func(ctx context.Context) (AccountResetPasswordResultClass, error)) (*ServerDispatcher) OnAccountResetWallPapers(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAccountResetWebAuthorization(f func(ctx context.Context, hash int64) (bool, error)) (*ServerDispatcher) OnAccountResetWebAuthorizations(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAccountSaveAutoDownloadSettings(f func(ctx context.Context, request *AccountSaveAutoDownloadSettingsRequest) (bool, error)) (*ServerDispatcher) OnAccountSaveAutoSaveSettings(f func(ctx context.Context, request *AccountSaveAutoSaveSettingsRequest) (bool, error)) (*ServerDispatcher) OnAccountSaveRingtone(f func(ctx context.Context, request *AccountSaveRingtoneRequest) (AccountSavedRingtoneClass, error)) (*ServerDispatcher) OnAccountSaveSecureValue(f func(ctx context.Context, request *AccountSaveSecureValueRequest) (*SecureValue, error)) (*ServerDispatcher) OnAccountSaveTheme(f func(ctx context.Context, request *AccountSaveThemeRequest) (bool, error)) (*ServerDispatcher) OnAccountSaveWallPaper(f func(ctx context.Context, request *AccountSaveWallPaperRequest) (bool, error)) (*ServerDispatcher) OnAccountSendChangePhoneCode(f func(ctx context.Context, request *AccountSendChangePhoneCodeRequest) (AuthSentCodeClass, error)) (*ServerDispatcher) OnAccountSendConfirmPhoneCode(f func(ctx context.Context, request *AccountSendConfirmPhoneCodeRequest) (AuthSentCodeClass, error)) (*ServerDispatcher) OnAccountSendVerifyEmailCode(f func(ctx context.Context, request *AccountSendVerifyEmailCodeRequest) (*AccountSentEmailCode, error)) (*ServerDispatcher) OnAccountSendVerifyPhoneCode(f func(ctx context.Context, request *AccountSendVerifyPhoneCodeRequest) (AuthSentCodeClass, error)) (*ServerDispatcher) OnAccountSetAccountTTL(f func(ctx context.Context, ttl AccountDaysTTL) (bool, error)) (*ServerDispatcher) OnAccountSetAuthorizationTTL(f func(ctx context.Context, authorizationttldays int) (bool, error)) (*ServerDispatcher) OnAccountSetContactSignUpNotification(f func(ctx context.Context, silent bool) (bool, error)) (*ServerDispatcher) OnAccountSetContentSettings(f func(ctx context.Context, request *AccountSetContentSettingsRequest) (bool, error)) (*ServerDispatcher) OnAccountSetGlobalPrivacySettings(f func(ctx context.Context, settings GlobalPrivacySettings) (*GlobalPrivacySettings, error)) (*ServerDispatcher) OnAccountSetPrivacy(f func(ctx context.Context, request *AccountSetPrivacyRequest) (*AccountPrivacyRules, error)) (*ServerDispatcher) OnAccountToggleUsername(f func(ctx context.Context, request *AccountToggleUsernameRequest) (bool, error)) (*ServerDispatcher) OnAccountUnregisterDevice(f func(ctx context.Context, request *AccountUnregisterDeviceRequest) (bool, error)) (*ServerDispatcher) OnAccountUpdateColor(f func(ctx context.Context, request *AccountUpdateColorRequest) (bool, error)) (*ServerDispatcher) OnAccountUpdateDeviceLocked(f func(ctx context.Context, period int) (bool, error)) (*ServerDispatcher) OnAccountUpdateEmojiStatus(f func(ctx context.Context, emojistatus EmojiStatusClass) (bool, error)) (*ServerDispatcher) OnAccountUpdateNotifySettings(f func(ctx context.Context, request *AccountUpdateNotifySettingsRequest) (bool, error)) (*ServerDispatcher) OnAccountUpdatePasswordSettings(f func(ctx context.Context, request *AccountUpdatePasswordSettingsRequest) (bool, error)) (*ServerDispatcher) OnAccountUpdateProfile(f func(ctx context.Context, request *AccountUpdateProfileRequest) (UserClass, error)) (*ServerDispatcher) OnAccountUpdateStatus(f func(ctx context.Context, offline bool) (bool, error)) (*ServerDispatcher) OnAccountUpdateTheme(f func(ctx context.Context, request *AccountUpdateThemeRequest) (*Theme, error)) (*ServerDispatcher) OnAccountUpdateUsername(f func(ctx context.Context, username string) (UserClass, error)) (*ServerDispatcher) OnAccountUploadRingtone(f func(ctx context.Context, request *AccountUploadRingtoneRequest) (DocumentClass, error)) (*ServerDispatcher) OnAccountUploadTheme(f func(ctx context.Context, request *AccountUploadThemeRequest) (DocumentClass, error)) (*ServerDispatcher) OnAccountUploadWallPaper(f func(ctx context.Context, request *AccountUploadWallPaperRequest) (WallPaperClass, error)) (*ServerDispatcher) OnAccountVerifyEmail(f func(ctx context.Context, request *AccountVerifyEmailRequest) (AccountEmailVerifiedClass, error)) (*ServerDispatcher) OnAccountVerifyPhone(f func(ctx context.Context, request *AccountVerifyPhoneRequest) (bool, error)) (*ServerDispatcher) OnAuthAcceptLoginToken(f func(ctx context.Context, token []byte) (*Authorization, error)) (*ServerDispatcher) OnAuthBindTempAuthKey(f func(ctx context.Context, request *AuthBindTempAuthKeyRequest) (bool, error)) (*ServerDispatcher) OnAuthCancelCode(f func(ctx context.Context, request *AuthCancelCodeRequest) (bool, error)) (*ServerDispatcher) OnAuthCheckPassword(f func(ctx context.Context, password InputCheckPasswordSRPClass) (AuthAuthorizationClass, error)) (*ServerDispatcher) OnAuthCheckRecoveryPassword(f func(ctx context.Context, code string) (bool, error)) (*ServerDispatcher) OnAuthDropTempAuthKeys(f func(ctx context.Context, exceptauthkeys []int64) (bool, error)) (*ServerDispatcher) OnAuthExportAuthorization(f func(ctx context.Context, dcid int) (*AuthExportedAuthorization, error)) (*ServerDispatcher) OnAuthExportLoginToken(f func(ctx context.Context, request *AuthExportLoginTokenRequest) (AuthLoginTokenClass, error)) (*ServerDispatcher) OnAuthImportAuthorization(f func(ctx context.Context, request *AuthImportAuthorizationRequest) (AuthAuthorizationClass, error)) (*ServerDispatcher) OnAuthImportBotAuthorization(f func(ctx context.Context, request *AuthImportBotAuthorizationRequest) (AuthAuthorizationClass, error)) (*ServerDispatcher) OnAuthImportLoginToken(f func(ctx context.Context, token []byte) (AuthLoginTokenClass, error)) (*ServerDispatcher) OnAuthImportWebTokenAuthorization(f func(ctx context.Context, request *AuthImportWebTokenAuthorizationRequest) (AuthAuthorizationClass, error)) (*ServerDispatcher) OnAuthLogOut(f func(ctx context.Context) (*AuthLoggedOut, error)) (*ServerDispatcher) OnAuthRecoverPassword(f func(ctx context.Context, request *AuthRecoverPasswordRequest) (AuthAuthorizationClass, error)) (*ServerDispatcher) OnAuthRequestFirebaseSMS(f func(ctx context.Context, request *AuthRequestFirebaseSMSRequest) (bool, error)) (*ServerDispatcher) OnAuthRequestPasswordRecovery(f func(ctx context.Context) (*AuthPasswordRecovery, error)) (*ServerDispatcher) OnAuthResendCode(f func(ctx context.Context, request *AuthResendCodeRequest) (AuthSentCodeClass, error)) (*ServerDispatcher) OnAuthResetAuthorizations(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnAuthResetLoginEmail(f func(ctx context.Context, request *AuthResetLoginEmailRequest) (AuthSentCodeClass, error)) (*ServerDispatcher) OnAuthSendCode(f func(ctx context.Context, request *AuthSendCodeRequest) (AuthSentCodeClass, error)) (*ServerDispatcher) OnAuthSignIn(f func(ctx context.Context, request *AuthSignInRequest) (AuthAuthorizationClass, error)) (*ServerDispatcher) OnAuthSignUp(f func(ctx context.Context, request *AuthSignUpRequest) (AuthAuthorizationClass, error)) (*ServerDispatcher) OnBotsAllowSendMessage(f func(ctx context.Context, bot InputUserClass) (UpdatesClass, error)) (*ServerDispatcher) OnBotsAnswerWebhookJSONQuery(f func(ctx context.Context, request *BotsAnswerWebhookJSONQueryRequest) (bool, error)) (*ServerDispatcher) OnBotsCanSendMessage(f func(ctx context.Context, bot InputUserClass) (bool, error)) (*ServerDispatcher) OnBotsGetBotCommands(f func(ctx context.Context, request *BotsGetBotCommandsRequest) ([]BotCommand, error)) (*ServerDispatcher) OnBotsGetBotInfo(f func(ctx context.Context, request *BotsGetBotInfoRequest) (*BotsBotInfo, error)) (*ServerDispatcher) OnBotsGetBotMenuButton(f func(ctx context.Context, userid InputUserClass) (BotMenuButtonClass, error)) (*ServerDispatcher) OnBotsInvokeWebViewCustomMethod(f func(ctx context.Context, request *BotsInvokeWebViewCustomMethodRequest) (*DataJSON, error)) (*ServerDispatcher) OnBotsReorderUsernames(f func(ctx context.Context, request *BotsReorderUsernamesRequest) (bool, error)) (*ServerDispatcher) OnBotsResetBotCommands(f func(ctx context.Context, request *BotsResetBotCommandsRequest) (bool, error)) (*ServerDispatcher) OnBotsSendCustomRequest(f func(ctx context.Context, request *BotsSendCustomRequestRequest) (*DataJSON, error)) (*ServerDispatcher) OnBotsSetBotBroadcastDefaultAdminRights(f func(ctx context.Context, adminrights ChatAdminRights) (bool, error)) (*ServerDispatcher) OnBotsSetBotCommands(f func(ctx context.Context, request *BotsSetBotCommandsRequest) (bool, error)) (*ServerDispatcher) OnBotsSetBotGroupDefaultAdminRights(f func(ctx context.Context, adminrights ChatAdminRights) (bool, error)) (*ServerDispatcher) OnBotsSetBotInfo(f func(ctx context.Context, request *BotsSetBotInfoRequest) (bool, error)) (*ServerDispatcher) OnBotsSetBotMenuButton(f func(ctx context.Context, request *BotsSetBotMenuButtonRequest) (bool, error)) (*ServerDispatcher) OnBotsToggleUsername(f func(ctx context.Context, request *BotsToggleUsernameRequest) (bool, error)) (*ServerDispatcher) OnChannelsCheckUsername(f func(ctx context.Context, request *ChannelsCheckUsernameRequest) (bool, error)) (*ServerDispatcher) OnChannelsClickSponsoredMessage(f func(ctx context.Context, request *ChannelsClickSponsoredMessageRequest) (bool, error)) (*ServerDispatcher) OnChannelsConvertToGigagroup(f func(ctx context.Context, channel InputChannelClass) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsCreateChannel(f func(ctx context.Context, request *ChannelsCreateChannelRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsCreateForumTopic(f func(ctx context.Context, request *ChannelsCreateForumTopicRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsDeactivateAllUsernames(f func(ctx context.Context, channel InputChannelClass) (bool, error)) (*ServerDispatcher) OnChannelsDeleteChannel(f func(ctx context.Context, channel InputChannelClass) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsDeleteHistory(f func(ctx context.Context, request *ChannelsDeleteHistoryRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsDeleteMessages(f func(ctx context.Context, request *ChannelsDeleteMessagesRequest) (*MessagesAffectedMessages, error)) (*ServerDispatcher) OnChannelsDeleteParticipantHistory(f func(ctx context.Context, request *ChannelsDeleteParticipantHistoryRequest) (*MessagesAffectedHistory, error)) (*ServerDispatcher) OnChannelsDeleteTopicHistory(f func(ctx context.Context, request *ChannelsDeleteTopicHistoryRequest) (*MessagesAffectedHistory, error)) (*ServerDispatcher) OnChannelsEditAdmin(f func(ctx context.Context, request *ChannelsEditAdminRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsEditBanned(f func(ctx context.Context, request *ChannelsEditBannedRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsEditCreator(f func(ctx context.Context, request *ChannelsEditCreatorRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsEditForumTopic(f func(ctx context.Context, request *ChannelsEditForumTopicRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsEditLocation(f func(ctx context.Context, request *ChannelsEditLocationRequest) (bool, error)) (*ServerDispatcher) OnChannelsEditPhoto(f func(ctx context.Context, request *ChannelsEditPhotoRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsEditTitle(f func(ctx context.Context, request *ChannelsEditTitleRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsExportMessageLink(f func(ctx context.Context, request *ChannelsExportMessageLinkRequest) (*ExportedMessageLink, error)) (*ServerDispatcher) OnChannelsGetAdminLog(f func(ctx context.Context, request *ChannelsGetAdminLogRequest) (*ChannelsAdminLogResults, error)) (*ServerDispatcher) OnChannelsGetAdminedPublicChannels(f func(ctx context.Context, request *ChannelsGetAdminedPublicChannelsRequest) (MessagesChatsClass, error)) (*ServerDispatcher) OnChannelsGetChannelRecommendations(f func(ctx context.Context, channel InputChannelClass) (MessagesChatsClass, error)) (*ServerDispatcher) OnChannelsGetChannels(f func(ctx context.Context, id []InputChannelClass) (MessagesChatsClass, error)) (*ServerDispatcher) OnChannelsGetForumTopics(f func(ctx context.Context, request *ChannelsGetForumTopicsRequest) (*MessagesForumTopics, error)) (*ServerDispatcher) OnChannelsGetForumTopicsByID(f func(ctx context.Context, request *ChannelsGetForumTopicsByIDRequest) (*MessagesForumTopics, error)) (*ServerDispatcher) OnChannelsGetFullChannel(f func(ctx context.Context, channel InputChannelClass) (*MessagesChatFull, error)) (*ServerDispatcher) OnChannelsGetGroupsForDiscussion(f func(ctx context.Context) (MessagesChatsClass, error)) (*ServerDispatcher) OnChannelsGetInactiveChannels(f func(ctx context.Context) (*MessagesInactiveChats, error)) (*ServerDispatcher) OnChannelsGetLeftChannels(f func(ctx context.Context, offset int) (MessagesChatsClass, error)) (*ServerDispatcher) OnChannelsGetMessages(f func(ctx context.Context, request *ChannelsGetMessagesRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnChannelsGetParticipant(f func(ctx context.Context, request *ChannelsGetParticipantRequest) (*ChannelsChannelParticipant, error)) (*ServerDispatcher) OnChannelsGetParticipants(f func(ctx context.Context, request *ChannelsGetParticipantsRequest) (ChannelsChannelParticipantsClass, error)) (*ServerDispatcher) OnChannelsGetSendAs(f func(ctx context.Context, peer InputPeerClass) (*ChannelsSendAsPeers, error)) (*ServerDispatcher) OnChannelsGetSponsoredMessages(f func(ctx context.Context, channel InputChannelClass) (MessagesSponsoredMessagesClass, error)) (*ServerDispatcher) OnChannelsInviteToChannel(f func(ctx context.Context, request *ChannelsInviteToChannelRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsJoinChannel(f func(ctx context.Context, channel InputChannelClass) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsLeaveChannel(f func(ctx context.Context, channel InputChannelClass) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsReadHistory(f func(ctx context.Context, request *ChannelsReadHistoryRequest) (bool, error)) (*ServerDispatcher) OnChannelsReadMessageContents(f func(ctx context.Context, request *ChannelsReadMessageContentsRequest) (bool, error)) (*ServerDispatcher) OnChannelsReorderPinnedForumTopics(f func(ctx context.Context, request *ChannelsReorderPinnedForumTopicsRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsReorderUsernames(f func(ctx context.Context, request *ChannelsReorderUsernamesRequest) (bool, error)) (*ServerDispatcher) OnChannelsReportAntiSpamFalsePositive(f func(ctx context.Context, request *ChannelsReportAntiSpamFalsePositiveRequest) (bool, error)) (*ServerDispatcher) OnChannelsReportSpam(f func(ctx context.Context, request *ChannelsReportSpamRequest) (bool, error)) (*ServerDispatcher) OnChannelsSetDiscussionGroup(f func(ctx context.Context, request *ChannelsSetDiscussionGroupRequest) (bool, error)) (*ServerDispatcher) OnChannelsSetStickers(f func(ctx context.Context, request *ChannelsSetStickersRequest) (bool, error)) (*ServerDispatcher) OnChannelsToggleAntiSpam(f func(ctx context.Context, request *ChannelsToggleAntiSpamRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsToggleForum(f func(ctx context.Context, request *ChannelsToggleForumRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsToggleJoinRequest(f func(ctx context.Context, request *ChannelsToggleJoinRequestRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsToggleJoinToSend(f func(ctx context.Context, request *ChannelsToggleJoinToSendRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsToggleParticipantsHidden(f func(ctx context.Context, request *ChannelsToggleParticipantsHiddenRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsTogglePreHistoryHidden(f func(ctx context.Context, request *ChannelsTogglePreHistoryHiddenRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsToggleSignatures(f func(ctx context.Context, request *ChannelsToggleSignaturesRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsToggleSlowMode(f func(ctx context.Context, request *ChannelsToggleSlowModeRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsToggleUsername(f func(ctx context.Context, request *ChannelsToggleUsernameRequest) (bool, error)) (*ServerDispatcher) OnChannelsToggleViewForumAsMessages(f func(ctx context.Context, request *ChannelsToggleViewForumAsMessagesRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsUpdateColor(f func(ctx context.Context, request *ChannelsUpdateColorRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsUpdateEmojiStatus(f func(ctx context.Context, request *ChannelsUpdateEmojiStatusRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsUpdatePinnedForumTopic(f func(ctx context.Context, request *ChannelsUpdatePinnedForumTopicRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChannelsUpdateUsername(f func(ctx context.Context, request *ChannelsUpdateUsernameRequest) (bool, error)) (*ServerDispatcher) OnChannelsViewSponsoredMessage(f func(ctx context.Context, request *ChannelsViewSponsoredMessageRequest) (bool, error)) (*ServerDispatcher) OnChatlistsCheckChatlistInvite(f func(ctx context.Context, slug string) (ChatlistsChatlistInviteClass, error)) (*ServerDispatcher) OnChatlistsDeleteExportedInvite(f func(ctx context.Context, request *ChatlistsDeleteExportedInviteRequest) (bool, error)) (*ServerDispatcher) OnChatlistsEditExportedInvite(f func(ctx context.Context, request *ChatlistsEditExportedInviteRequest) (*ExportedChatlistInvite, error)) (*ServerDispatcher) OnChatlistsExportChatlistInvite(f func(ctx context.Context, request *ChatlistsExportChatlistInviteRequest) (*ChatlistsExportedChatlistInvite, error)) (*ServerDispatcher) OnChatlistsGetChatlistUpdates(f func(ctx context.Context, chatlist InputChatlistDialogFilter) (*ChatlistsChatlistUpdates, error)) (*ServerDispatcher) OnChatlistsGetExportedInvites(f func(ctx context.Context, chatlist InputChatlistDialogFilter) (*ChatlistsExportedInvites, error)) (*ServerDispatcher) OnChatlistsGetLeaveChatlistSuggestions(f func(ctx context.Context, chatlist InputChatlistDialogFilter) ([]PeerClass, error)) (*ServerDispatcher) OnChatlistsHideChatlistUpdates(f func(ctx context.Context, chatlist InputChatlistDialogFilter) (bool, error)) (*ServerDispatcher) OnChatlistsJoinChatlistInvite(f func(ctx context.Context, request *ChatlistsJoinChatlistInviteRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChatlistsJoinChatlistUpdates(f func(ctx context.Context, request *ChatlistsJoinChatlistUpdatesRequest) (UpdatesClass, error)) (*ServerDispatcher) OnChatlistsLeaveChatlist(f func(ctx context.Context, request *ChatlistsLeaveChatlistRequest) (UpdatesClass, error)) (*ServerDispatcher) OnContactsAcceptContact(f func(ctx context.Context, id InputUserClass) (UpdatesClass, error)) (*ServerDispatcher) OnContactsAddContact(f func(ctx context.Context, request *ContactsAddContactRequest) (UpdatesClass, error)) (*ServerDispatcher) OnContactsBlock(f func(ctx context.Context, request *ContactsBlockRequest) (bool, error)) (*ServerDispatcher) OnContactsBlockFromReplies(f func(ctx context.Context, request *ContactsBlockFromRepliesRequest) (UpdatesClass, error)) (*ServerDispatcher) OnContactsDeleteByPhones(f func(ctx context.Context, phones []string) (bool, error)) (*ServerDispatcher) OnContactsDeleteContacts(f func(ctx context.Context, id []InputUserClass) (UpdatesClass, error)) (*ServerDispatcher) OnContactsEditCloseFriends(f func(ctx context.Context, id []int64) (bool, error)) (*ServerDispatcher) OnContactsExportContactToken(f func(ctx context.Context) (*ExportedContactToken, error)) (*ServerDispatcher) OnContactsGetBlocked(f func(ctx context.Context, request *ContactsGetBlockedRequest) (ContactsBlockedClass, error)) (*ServerDispatcher) OnContactsGetContactIDs(f func(ctx context.Context, hash int64) ([]int, error)) (*ServerDispatcher) OnContactsGetContacts(f func(ctx context.Context, hash int64) (ContactsContactsClass, error)) (*ServerDispatcher) OnContactsGetLocated(f func(ctx context.Context, request *ContactsGetLocatedRequest) (UpdatesClass, error)) (*ServerDispatcher) OnContactsGetSaved(f func(ctx context.Context) ([]SavedPhoneContact, error)) (*ServerDispatcher) OnContactsGetStatuses(f func(ctx context.Context) ([]ContactStatus, error)) (*ServerDispatcher) OnContactsGetTopPeers(f func(ctx context.Context, request *ContactsGetTopPeersRequest) (ContactsTopPeersClass, error)) (*ServerDispatcher) OnContactsImportContactToken(f func(ctx context.Context, token string) (UserClass, error)) (*ServerDispatcher) OnContactsImportContacts(f func(ctx context.Context, contacts []InputPhoneContact) (*ContactsImportedContacts, error)) (*ServerDispatcher) OnContactsResetSaved(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnContactsResetTopPeerRating(f func(ctx context.Context, request *ContactsResetTopPeerRatingRequest) (bool, error)) (*ServerDispatcher) OnContactsResolvePhone(f func(ctx context.Context, phone string) (*ContactsResolvedPeer, error)) (*ServerDispatcher) OnContactsResolveUsername(f func(ctx context.Context, username string) (*ContactsResolvedPeer, error)) (*ServerDispatcher) OnContactsSearch(f func(ctx context.Context, request *ContactsSearchRequest) (*ContactsFound, error)) (*ServerDispatcher) OnContactsSetBlocked(f func(ctx context.Context, request *ContactsSetBlockedRequest) (bool, error)) (*ServerDispatcher) OnContactsToggleTopPeers(f func(ctx context.Context, enabled bool) (bool, error)) (*ServerDispatcher) OnContactsUnblock(f func(ctx context.Context, request *ContactsUnblockRequest) (bool, error)) (*ServerDispatcher) OnFoldersEditPeerFolders(f func(ctx context.Context, folderpeers []InputFolderPeer) (UpdatesClass, error)) (*ServerDispatcher) OnHelpAcceptTermsOfService(f func(ctx context.Context, id DataJSON) (bool, error)) (*ServerDispatcher) OnHelpDismissSuggestion(f func(ctx context.Context, request *HelpDismissSuggestionRequest) (bool, error)) (*ServerDispatcher) OnHelpEditUserInfo(f func(ctx context.Context, request *HelpEditUserInfoRequest) (HelpUserInfoClass, error)) (*ServerDispatcher) OnHelpGetAppConfig(f func(ctx context.Context, hash int) (HelpAppConfigClass, error)) (*ServerDispatcher) OnHelpGetAppUpdate(f func(ctx context.Context, source string) (HelpAppUpdateClass, error)) (*ServerDispatcher) OnHelpGetCDNConfig(f func(ctx context.Context) (*CDNConfig, error)) (*ServerDispatcher) OnHelpGetConfig(f func(ctx context.Context) (*Config, error)) (*ServerDispatcher) OnHelpGetCountriesList(f func(ctx context.Context, request *HelpGetCountriesListRequest) (HelpCountriesListClass, error)) (*ServerDispatcher) OnHelpGetDeepLinkInfo(f func(ctx context.Context, path string) (HelpDeepLinkInfoClass, error)) (*ServerDispatcher) OnHelpGetInviteText(f func(ctx context.Context) (*HelpInviteText, error)) (*ServerDispatcher) OnHelpGetNearestDC(f func(ctx context.Context) (*NearestDC, error)) (*ServerDispatcher) OnHelpGetPassportConfig(f func(ctx context.Context, hash int) (HelpPassportConfigClass, error)) (*ServerDispatcher) OnHelpGetPeerColors(f func(ctx context.Context, hash int) (HelpPeerColorsClass, error)) (*ServerDispatcher) OnHelpGetPeerProfileColors(f func(ctx context.Context, hash int) (HelpPeerColorsClass, error)) (*ServerDispatcher) OnHelpGetPremiumPromo(f func(ctx context.Context) (*HelpPremiumPromo, error)) (*ServerDispatcher) OnHelpGetPromoData(f func(ctx context.Context) (HelpPromoDataClass, error)) (*ServerDispatcher) OnHelpGetRecentMeURLs(f func(ctx context.Context, referer string) (*HelpRecentMeURLs, error)) (*ServerDispatcher) OnHelpGetSupport(f func(ctx context.Context) (*HelpSupport, error)) (*ServerDispatcher) OnHelpGetSupportName(f func(ctx context.Context) (*HelpSupportName, error)) (*ServerDispatcher) OnHelpGetTermsOfServiceUpdate(f func(ctx context.Context) (HelpTermsOfServiceUpdateClass, error)) (*ServerDispatcher) OnHelpGetUserInfo(f func(ctx context.Context, userid InputUserClass) (HelpUserInfoClass, error)) (*ServerDispatcher) OnHelpHidePromoData(f func(ctx context.Context, peer InputPeerClass) (bool, error)) (*ServerDispatcher) OnHelpSaveAppLog(f func(ctx context.Context, events []InputAppEvent) (bool, error)) (*ServerDispatcher) OnHelpSetBotUpdatesStatus(f func(ctx context.Context, request *HelpSetBotUpdatesStatusRequest) (bool, error)) (*ServerDispatcher) OnLangpackGetDifference(f func(ctx context.Context, request *LangpackGetDifferenceRequest) (*LangPackDifference, error)) (*ServerDispatcher) OnLangpackGetLangPack(f func(ctx context.Context, request *LangpackGetLangPackRequest) (*LangPackDifference, error)) (*ServerDispatcher) OnLangpackGetLanguage(f func(ctx context.Context, request *LangpackGetLanguageRequest) (*LangPackLanguage, error)) (*ServerDispatcher) OnLangpackGetLanguages(f func(ctx context.Context, langpack string) ([]LangPackLanguage, error)) (*ServerDispatcher) OnLangpackGetStrings(f func(ctx context.Context, request *LangpackGetStringsRequest) ([]LangPackStringClass, error)) (*ServerDispatcher) OnMessagesAcceptEncryption(f func(ctx context.Context, request *MessagesAcceptEncryptionRequest) (EncryptedChatClass, error)) (*ServerDispatcher) OnMessagesAcceptURLAuth(f func(ctx context.Context, request *MessagesAcceptURLAuthRequest) (URLAuthResultClass, error)) (*ServerDispatcher) OnMessagesAddChatUser(f func(ctx context.Context, request *MessagesAddChatUserRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesCheckChatInvite(f func(ctx context.Context, hash string) (ChatInviteClass, error)) (*ServerDispatcher) OnMessagesCheckHistoryImport(f func(ctx context.Context, importhead string) (*MessagesHistoryImportParsed, error)) (*ServerDispatcher) OnMessagesCheckHistoryImportPeer(f func(ctx context.Context, peer InputPeerClass) (*MessagesCheckedHistoryImportPeer, error)) (*ServerDispatcher) OnMessagesClearAllDrafts(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnMessagesClearRecentReactions(f func(ctx context.Context) (bool, error)) (*ServerDispatcher) OnMessagesClearRecentStickers(f func(ctx context.Context, request *MessagesClearRecentStickersRequest) (bool, error)) (*ServerDispatcher) OnMessagesCreateChat(f func(ctx context.Context, request *MessagesCreateChatRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesDeleteChat(f func(ctx context.Context, chatid int64) (bool, error)) (*ServerDispatcher) OnMessagesDeleteChatUser(f func(ctx context.Context, request *MessagesDeleteChatUserRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesDeleteExportedChatInvite(f func(ctx context.Context, request *MessagesDeleteExportedChatInviteRequest) (bool, error)) (*ServerDispatcher) OnMessagesDeleteHistory(f func(ctx context.Context, request *MessagesDeleteHistoryRequest) (*MessagesAffectedHistory, error)) (*ServerDispatcher) OnMessagesDeleteMessages(f func(ctx context.Context, request *MessagesDeleteMessagesRequest) (*MessagesAffectedMessages, error)) (*ServerDispatcher) OnMessagesDeletePhoneCallHistory(f func(ctx context.Context, request *MessagesDeletePhoneCallHistoryRequest) (*MessagesAffectedFoundMessages, error)) (*ServerDispatcher) OnMessagesDeleteRevokedExportedChatInvites(f func(ctx context.Context, request *MessagesDeleteRevokedExportedChatInvitesRequest) (bool, error)) (*ServerDispatcher) OnMessagesDeleteScheduledMessages(f func(ctx context.Context, request *MessagesDeleteScheduledMessagesRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesDiscardEncryption(f func(ctx context.Context, request *MessagesDiscardEncryptionRequest) (bool, error)) (*ServerDispatcher) OnMessagesEditChatAbout(f func(ctx context.Context, request *MessagesEditChatAboutRequest) (bool, error)) (*ServerDispatcher) OnMessagesEditChatAdmin(f func(ctx context.Context, request *MessagesEditChatAdminRequest) (bool, error)) (*ServerDispatcher) OnMessagesEditChatDefaultBannedRights(f func(ctx context.Context, request *MessagesEditChatDefaultBannedRightsRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesEditChatPhoto(f func(ctx context.Context, request *MessagesEditChatPhotoRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesEditChatTitle(f func(ctx context.Context, request *MessagesEditChatTitleRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesEditExportedChatInvite(f func(ctx context.Context, request *MessagesEditExportedChatInviteRequest) (MessagesExportedChatInviteClass, error)) (*ServerDispatcher) OnMessagesEditInlineBotMessage(f func(ctx context.Context, request *MessagesEditInlineBotMessageRequest) (bool, error)) (*ServerDispatcher) OnMessagesEditMessage(f func(ctx context.Context, request *MessagesEditMessageRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesExportChatInvite(f func(ctx context.Context, request *MessagesExportChatInviteRequest) (ExportedChatInviteClass, error)) (*ServerDispatcher) OnMessagesFaveSticker(f func(ctx context.Context, request *MessagesFaveStickerRequest) (bool, error)) (*ServerDispatcher) OnMessagesForwardMessages(f func(ctx context.Context, request *MessagesForwardMessagesRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesGetAdminsWithInvites(f func(ctx context.Context, peer InputPeerClass) (*MessagesChatAdminsWithInvites, error)) (*ServerDispatcher) OnMessagesGetAllDrafts(f func(ctx context.Context) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesGetAllStickers(f func(ctx context.Context, hash int64) (MessagesAllStickersClass, error)) (*ServerDispatcher) OnMessagesGetArchivedStickers(f func(ctx context.Context, request *MessagesGetArchivedStickersRequest) (*MessagesArchivedStickers, error)) (*ServerDispatcher) OnMessagesGetAttachMenuBot(f func(ctx context.Context, bot InputUserClass) (*AttachMenuBotsBot, error)) (*ServerDispatcher) OnMessagesGetAttachMenuBots(f func(ctx context.Context, hash int64) (AttachMenuBotsClass, error)) (*ServerDispatcher) OnMessagesGetAttachedStickers(f func(ctx context.Context, media InputStickeredMediaClass) ([]StickerSetCoveredClass, error)) (*ServerDispatcher) OnMessagesGetAvailableReactions(f func(ctx context.Context, hash int) (MessagesAvailableReactionsClass, error)) (*ServerDispatcher) OnMessagesGetBotApp(f func(ctx context.Context, request *MessagesGetBotAppRequest) (*MessagesBotApp, error)) (*ServerDispatcher) OnMessagesGetBotCallbackAnswer(f func(ctx context.Context, request *MessagesGetBotCallbackAnswerRequest) (*MessagesBotCallbackAnswer, error)) (*ServerDispatcher) OnMessagesGetChatInviteImporters(f func(ctx context.Context, request *MessagesGetChatInviteImportersRequest) (*MessagesChatInviteImporters, error)) (*ServerDispatcher) OnMessagesGetChats(f func(ctx context.Context, id []int64) (MessagesChatsClass, error)) (*ServerDispatcher) OnMessagesGetCommonChats(f func(ctx context.Context, request *MessagesGetCommonChatsRequest) (MessagesChatsClass, error)) (*ServerDispatcher) OnMessagesGetCustomEmojiDocuments(f func(ctx context.Context, documentid []int64) ([]DocumentClass, error)) (*ServerDispatcher) OnMessagesGetDefaultHistoryTTL(f func(ctx context.Context) (*DefaultHistoryTTL, error)) (*ServerDispatcher) OnMessagesGetDhConfig(f func(ctx context.Context, request *MessagesGetDhConfigRequest) (MessagesDhConfigClass, error)) (*ServerDispatcher) OnMessagesGetDialogFilters(f func(ctx context.Context) ([]DialogFilterClass, error)) (*ServerDispatcher) OnMessagesGetDialogUnreadMarks(f func(ctx context.Context) ([]DialogPeerClass, error)) (*ServerDispatcher) OnMessagesGetDialogs(f func(ctx context.Context, request *MessagesGetDialogsRequest) (MessagesDialogsClass, error)) (*ServerDispatcher) OnMessagesGetDiscussionMessage(f func(ctx context.Context, request *MessagesGetDiscussionMessageRequest) (*MessagesDiscussionMessage, error)) (*ServerDispatcher) OnMessagesGetDocumentByHash(f func(ctx context.Context, request *MessagesGetDocumentByHashRequest) (DocumentClass, error)) (*ServerDispatcher) OnMessagesGetEmojiGroups(f func(ctx context.Context, hash int) (MessagesEmojiGroupsClass, error)) (*ServerDispatcher) OnMessagesGetEmojiKeywords(f func(ctx context.Context, langcode string) (*EmojiKeywordsDifference, error)) (*ServerDispatcher) OnMessagesGetEmojiKeywordsDifference(f func(ctx context.Context, request *MessagesGetEmojiKeywordsDifferenceRequest) (*EmojiKeywordsDifference, error)) (*ServerDispatcher) OnMessagesGetEmojiKeywordsLanguages(f func(ctx context.Context, langcodes []string) ([]EmojiLanguage, error)) (*ServerDispatcher) OnMessagesGetEmojiProfilePhotoGroups(f func(ctx context.Context, hash int) (MessagesEmojiGroupsClass, error)) (*ServerDispatcher) OnMessagesGetEmojiStatusGroups(f func(ctx context.Context, hash int) (MessagesEmojiGroupsClass, error)) (*ServerDispatcher) OnMessagesGetEmojiStickers(f func(ctx context.Context, hash int64) (MessagesAllStickersClass, error)) (*ServerDispatcher) OnMessagesGetEmojiURL(f func(ctx context.Context, langcode string) (*EmojiURL, error)) (*ServerDispatcher) OnMessagesGetExportedChatInvite(f func(ctx context.Context, request *MessagesGetExportedChatInviteRequest) (MessagesExportedChatInviteClass, error)) (*ServerDispatcher) OnMessagesGetExportedChatInvites(f func(ctx context.Context, request *MessagesGetExportedChatInvitesRequest) (*MessagesExportedChatInvites, error)) (*ServerDispatcher) OnMessagesGetExtendedMedia(f func(ctx context.Context, request *MessagesGetExtendedMediaRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesGetFavedStickers(f func(ctx context.Context, hash int64) (MessagesFavedStickersClass, error)) (*ServerDispatcher) OnMessagesGetFeaturedEmojiStickers(f func(ctx context.Context, hash int64) (MessagesFeaturedStickersClass, error)) (*ServerDispatcher) OnMessagesGetFeaturedStickers(f func(ctx context.Context, hash int64) (MessagesFeaturedStickersClass, error)) (*ServerDispatcher) OnMessagesGetFullChat(f func(ctx context.Context, chatid int64) (*MessagesChatFull, error)) (*ServerDispatcher) OnMessagesGetGameHighScores(f func(ctx context.Context, request *MessagesGetGameHighScoresRequest) (*MessagesHighScores, error)) (*ServerDispatcher) OnMessagesGetHistory(f func(ctx context.Context, request *MessagesGetHistoryRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesGetInlineBotResults(f func(ctx context.Context, request *MessagesGetInlineBotResultsRequest) (*MessagesBotResults, error)) (*ServerDispatcher) OnMessagesGetInlineGameHighScores(f func(ctx context.Context, request *MessagesGetInlineGameHighScoresRequest) (*MessagesHighScores, error)) (*ServerDispatcher) OnMessagesGetMaskStickers(f func(ctx context.Context, hash int64) (MessagesAllStickersClass, error)) (*ServerDispatcher) OnMessagesGetMessageEditData(f func(ctx context.Context, request *MessagesGetMessageEditDataRequest) (*MessagesMessageEditData, error)) (*ServerDispatcher) OnMessagesGetMessageReactionsList(f func(ctx context.Context, request *MessagesGetMessageReactionsListRequest) (*MessagesMessageReactionsList, error)) (*ServerDispatcher) OnMessagesGetMessageReadParticipants(f func(ctx context.Context, request *MessagesGetMessageReadParticipantsRequest) ([]ReadParticipantDate, error)) (*ServerDispatcher) OnMessagesGetMessages(f func(ctx context.Context, id []InputMessageClass) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesGetMessagesReactions(f func(ctx context.Context, request *MessagesGetMessagesReactionsRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesGetMessagesViews(f func(ctx context.Context, request *MessagesGetMessagesViewsRequest) (*MessagesMessageViews, error)) (*ServerDispatcher) OnMessagesGetOldFeaturedStickers(f func(ctx context.Context, request *MessagesGetOldFeaturedStickersRequest) (MessagesFeaturedStickersClass, error)) (*ServerDispatcher) OnMessagesGetOnlines(f func(ctx context.Context, peer InputPeerClass) (*ChatOnlines, error)) (*ServerDispatcher) OnMessagesGetPeerDialogs(f func(ctx context.Context, peers []InputDialogPeerClass) (*MessagesPeerDialogs, error)) (*ServerDispatcher) OnMessagesGetPeerSettings(f func(ctx context.Context, peer InputPeerClass) (*MessagesPeerSettings, error)) (*ServerDispatcher) OnMessagesGetPinnedDialogs(f func(ctx context.Context, folderid int) (*MessagesPeerDialogs, error)) (*ServerDispatcher) OnMessagesGetPollResults(f func(ctx context.Context, request *MessagesGetPollResultsRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesGetPollVotes(f func(ctx context.Context, request *MessagesGetPollVotesRequest) (*MessagesVotesList, error)) (*ServerDispatcher) OnMessagesGetRecentLocations(f func(ctx context.Context, request *MessagesGetRecentLocationsRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesGetRecentReactions(f func(ctx context.Context, request *MessagesGetRecentReactionsRequest) (MessagesReactionsClass, error)) (*ServerDispatcher) OnMessagesGetRecentStickers(f func(ctx context.Context, request *MessagesGetRecentStickersRequest) (MessagesRecentStickersClass, error)) (*ServerDispatcher) OnMessagesGetReplies(f func(ctx context.Context, request *MessagesGetRepliesRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesGetSavedGifs(f func(ctx context.Context, hash int64) (MessagesSavedGifsClass, error)) (*ServerDispatcher) OnMessagesGetScheduledHistory(f func(ctx context.Context, request *MessagesGetScheduledHistoryRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesGetScheduledMessages(f func(ctx context.Context, request *MessagesGetScheduledMessagesRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesGetSearchCounters(f func(ctx context.Context, request *MessagesGetSearchCountersRequest) ([]MessagesSearchCounter, error)) (*ServerDispatcher) OnMessagesGetSearchResultsCalendar(f func(ctx context.Context, request *MessagesGetSearchResultsCalendarRequest) (*MessagesSearchResultsCalendar, error)) (*ServerDispatcher) OnMessagesGetSearchResultsPositions(f func(ctx context.Context, request *MessagesGetSearchResultsPositionsRequest) (*MessagesSearchResultsPositions, error)) (*ServerDispatcher) OnMessagesGetSplitRanges(f func(ctx context.Context) ([]MessageRange, error)) (*ServerDispatcher) OnMessagesGetStickerSet(f func(ctx context.Context, request *MessagesGetStickerSetRequest) (MessagesStickerSetClass, error)) (*ServerDispatcher) OnMessagesGetStickers(f func(ctx context.Context, request *MessagesGetStickersRequest) (MessagesStickersClass, error)) (*ServerDispatcher) OnMessagesGetSuggestedDialogFilters(f func(ctx context.Context) ([]DialogFilterSuggested, error)) (*ServerDispatcher) OnMessagesGetTopReactions(f func(ctx context.Context, request *MessagesGetTopReactionsRequest) (MessagesReactionsClass, error)) (*ServerDispatcher) OnMessagesGetUnreadMentions(f func(ctx context.Context, request *MessagesGetUnreadMentionsRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesGetUnreadReactions(f func(ctx context.Context, request *MessagesGetUnreadReactionsRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesGetWebPage(f func(ctx context.Context, request *MessagesGetWebPageRequest) (*MessagesWebPage, error)) (*ServerDispatcher) OnMessagesGetWebPagePreview(f func(ctx context.Context, request *MessagesGetWebPagePreviewRequest) (MessageMediaClass, error)) (*ServerDispatcher) OnMessagesHideAllChatJoinRequests(f func(ctx context.Context, request *MessagesHideAllChatJoinRequestsRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesHideChatJoinRequest(f func(ctx context.Context, request *MessagesHideChatJoinRequestRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesHidePeerSettingsBar(f func(ctx context.Context, peer InputPeerClass) (bool, error)) (*ServerDispatcher) OnMessagesImportChatInvite(f func(ctx context.Context, hash string) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesInitHistoryImport(f func(ctx context.Context, request *MessagesInitHistoryImportRequest) (*MessagesHistoryImport, error)) (*ServerDispatcher) OnMessagesInstallStickerSet(f func(ctx context.Context, request *MessagesInstallStickerSetRequest) (MessagesStickerSetInstallResultClass, error)) (*ServerDispatcher) OnMessagesMarkDialogUnread(f func(ctx context.Context, request *MessagesMarkDialogUnreadRequest) (bool, error)) (*ServerDispatcher) OnMessagesMigrateChat(f func(ctx context.Context, chatid int64) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesProlongWebView(f func(ctx context.Context, request *MessagesProlongWebViewRequest) (bool, error)) (*ServerDispatcher) OnMessagesRateTranscribedAudio(f func(ctx context.Context, request *MessagesRateTranscribedAudioRequest) (bool, error)) (*ServerDispatcher) OnMessagesReadDiscussion(f func(ctx context.Context, request *MessagesReadDiscussionRequest) (bool, error)) (*ServerDispatcher) OnMessagesReadEncryptedHistory(f func(ctx context.Context, request *MessagesReadEncryptedHistoryRequest) (bool, error)) (*ServerDispatcher) OnMessagesReadFeaturedStickers(f func(ctx context.Context, id []int64) (bool, error)) (*ServerDispatcher) OnMessagesReadHistory(f func(ctx context.Context, request *MessagesReadHistoryRequest) (*MessagesAffectedMessages, error)) (*ServerDispatcher) OnMessagesReadMentions(f func(ctx context.Context, request *MessagesReadMentionsRequest) (*MessagesAffectedHistory, error)) (*ServerDispatcher) OnMessagesReadMessageContents(f func(ctx context.Context, id []int) (*MessagesAffectedMessages, error)) (*ServerDispatcher) OnMessagesReadReactions(f func(ctx context.Context, request *MessagesReadReactionsRequest) (*MessagesAffectedHistory, error)) (*ServerDispatcher) OnMessagesReceivedMessages(f func(ctx context.Context, maxid int) ([]ReceivedNotifyMessage, error)) (*ServerDispatcher) OnMessagesReceivedQueue(f func(ctx context.Context, maxqts int) ([]int64, error)) (*ServerDispatcher) OnMessagesReorderPinnedDialogs(f func(ctx context.Context, request *MessagesReorderPinnedDialogsRequest) (bool, error)) (*ServerDispatcher) OnMessagesReorderStickerSets(f func(ctx context.Context, request *MessagesReorderStickerSetsRequest) (bool, error)) (*ServerDispatcher) OnMessagesReport(f func(ctx context.Context, request *MessagesReportRequest) (bool, error)) (*ServerDispatcher) OnMessagesReportEncryptedSpam(f func(ctx context.Context, peer InputEncryptedChat) (bool, error)) (*ServerDispatcher) OnMessagesReportReaction(f func(ctx context.Context, request *MessagesReportReactionRequest) (bool, error)) (*ServerDispatcher) OnMessagesReportSpam(f func(ctx context.Context, peer InputPeerClass) (bool, error)) (*ServerDispatcher) OnMessagesRequestAppWebView(f func(ctx context.Context, request *MessagesRequestAppWebViewRequest) (*AppWebViewResultURL, error)) (*ServerDispatcher) OnMessagesRequestEncryption(f func(ctx context.Context, request *MessagesRequestEncryptionRequest) (EncryptedChatClass, error)) (*ServerDispatcher) OnMessagesRequestSimpleWebView(f func(ctx context.Context, request *MessagesRequestSimpleWebViewRequest) (*SimpleWebViewResultURL, error)) (*ServerDispatcher) OnMessagesRequestURLAuth(f func(ctx context.Context, request *MessagesRequestURLAuthRequest) (URLAuthResultClass, error)) (*ServerDispatcher) OnMessagesRequestWebView(f func(ctx context.Context, request *MessagesRequestWebViewRequest) (*WebViewResultURL, error)) (*ServerDispatcher) OnMessagesSaveDefaultSendAs(f func(ctx context.Context, request *MessagesSaveDefaultSendAsRequest) (bool, error)) (*ServerDispatcher) OnMessagesSaveDraft(f func(ctx context.Context, request *MessagesSaveDraftRequest) (bool, error)) (*ServerDispatcher) OnMessagesSaveGif(f func(ctx context.Context, request *MessagesSaveGifRequest) (bool, error)) (*ServerDispatcher) OnMessagesSaveRecentSticker(f func(ctx context.Context, request *MessagesSaveRecentStickerRequest) (bool, error)) (*ServerDispatcher) OnMessagesSearch(f func(ctx context.Context, request *MessagesSearchRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesSearchCustomEmoji(f func(ctx context.Context, request *MessagesSearchCustomEmojiRequest) (EmojiListClass, error)) (*ServerDispatcher) OnMessagesSearchEmojiStickerSets(f func(ctx context.Context, request *MessagesSearchEmojiStickerSetsRequest) (MessagesFoundStickerSetsClass, error)) (*ServerDispatcher) OnMessagesSearchGlobal(f func(ctx context.Context, request *MessagesSearchGlobalRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesSearchSentMedia(f func(ctx context.Context, request *MessagesSearchSentMediaRequest) (MessagesMessagesClass, error)) (*ServerDispatcher) OnMessagesSearchStickerSets(f func(ctx context.Context, request *MessagesSearchStickerSetsRequest) (MessagesFoundStickerSetsClass, error)) (*ServerDispatcher) OnMessagesSendBotRequestedPeer(f func(ctx context.Context, request *MessagesSendBotRequestedPeerRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendEncrypted(f func(ctx context.Context, request *MessagesSendEncryptedRequest) (MessagesSentEncryptedMessageClass, error)) (*ServerDispatcher) OnMessagesSendEncryptedFile(f func(ctx context.Context, request *MessagesSendEncryptedFileRequest) (MessagesSentEncryptedMessageClass, error)) (*ServerDispatcher) OnMessagesSendEncryptedService(f func(ctx context.Context, request *MessagesSendEncryptedServiceRequest) (MessagesSentEncryptedMessageClass, error)) (*ServerDispatcher) OnMessagesSendInlineBotResult(f func(ctx context.Context, request *MessagesSendInlineBotResultRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendMedia(f func(ctx context.Context, request *MessagesSendMediaRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendMessage(f func(ctx context.Context, request *MessagesSendMessageRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendMultiMedia(f func(ctx context.Context, request *MessagesSendMultiMediaRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendReaction(f func(ctx context.Context, request *MessagesSendReactionRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendScheduledMessages(f func(ctx context.Context, request *MessagesSendScheduledMessagesRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendScreenshotNotification(f func(ctx context.Context, request *MessagesSendScreenshotNotificationRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendVote(f func(ctx context.Context, request *MessagesSendVoteRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendWebViewData(f func(ctx context.Context, request *MessagesSendWebViewDataRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSendWebViewResultMessage(f func(ctx context.Context, request *MessagesSendWebViewResultMessageRequest) (*WebViewMessageSent, error)) (*ServerDispatcher) OnMessagesSetBotCallbackAnswer(f func(ctx context.Context, request *MessagesSetBotCallbackAnswerRequest) (bool, error)) (*ServerDispatcher) OnMessagesSetBotPrecheckoutResults(f func(ctx context.Context, request *MessagesSetBotPrecheckoutResultsRequest) (bool, error)) (*ServerDispatcher) OnMessagesSetBotShippingResults(f func(ctx context.Context, request *MessagesSetBotShippingResultsRequest) (bool, error)) (*ServerDispatcher) OnMessagesSetChatAvailableReactions(f func(ctx context.Context, request *MessagesSetChatAvailableReactionsRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSetChatTheme(f func(ctx context.Context, request *MessagesSetChatThemeRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSetChatWallPaper(f func(ctx context.Context, request *MessagesSetChatWallPaperRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSetDefaultHistoryTTL(f func(ctx context.Context, period int) (bool, error)) (*ServerDispatcher) OnMessagesSetDefaultReaction(f func(ctx context.Context, reaction ReactionClass) (bool, error)) (*ServerDispatcher) OnMessagesSetEncryptedTyping(f func(ctx context.Context, request *MessagesSetEncryptedTypingRequest) (bool, error)) (*ServerDispatcher) OnMessagesSetGameScore(f func(ctx context.Context, request *MessagesSetGameScoreRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSetHistoryTTL(f func(ctx context.Context, request *MessagesSetHistoryTTLRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesSetInlineBotResults(f func(ctx context.Context, request *MessagesSetInlineBotResultsRequest) (bool, error)) (*ServerDispatcher) OnMessagesSetInlineGameScore(f func(ctx context.Context, request *MessagesSetInlineGameScoreRequest) (bool, error)) (*ServerDispatcher) OnMessagesSetTyping(f func(ctx context.Context, request *MessagesSetTypingRequest) (bool, error)) (*ServerDispatcher) OnMessagesStartBot(f func(ctx context.Context, request *MessagesStartBotRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesStartHistoryImport(f func(ctx context.Context, request *MessagesStartHistoryImportRequest) (bool, error)) (*ServerDispatcher) OnMessagesToggleBotInAttachMenu(f func(ctx context.Context, request *MessagesToggleBotInAttachMenuRequest) (bool, error)) (*ServerDispatcher) OnMessagesToggleDialogPin(f func(ctx context.Context, request *MessagesToggleDialogPinRequest) (bool, error)) (*ServerDispatcher) OnMessagesToggleNoForwards(f func(ctx context.Context, request *MessagesToggleNoForwardsRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesTogglePeerTranslations(f func(ctx context.Context, request *MessagesTogglePeerTranslationsRequest) (bool, error)) (*ServerDispatcher) OnMessagesToggleStickerSets(f func(ctx context.Context, request *MessagesToggleStickerSetsRequest) (bool, error)) (*ServerDispatcher) OnMessagesTranscribeAudio(f func(ctx context.Context, request *MessagesTranscribeAudioRequest) (*MessagesTranscribedAudio, error)) (*ServerDispatcher) OnMessagesTranslateText(f func(ctx context.Context, request *MessagesTranslateTextRequest) (*MessagesTranslateResult, error)) (*ServerDispatcher) OnMessagesUninstallStickerSet(f func(ctx context.Context, stickerset InputStickerSetClass) (bool, error)) (*ServerDispatcher) OnMessagesUnpinAllMessages(f func(ctx context.Context, request *MessagesUnpinAllMessagesRequest) (*MessagesAffectedHistory, error)) (*ServerDispatcher) OnMessagesUpdateDialogFilter(f func(ctx context.Context, request *MessagesUpdateDialogFilterRequest) (bool, error)) (*ServerDispatcher) OnMessagesUpdateDialogFiltersOrder(f func(ctx context.Context, order []int) (bool, error)) (*ServerDispatcher) OnMessagesUpdatePinnedMessage(f func(ctx context.Context, request *MessagesUpdatePinnedMessageRequest) (UpdatesClass, error)) (*ServerDispatcher) OnMessagesUploadEncryptedFile(f func(ctx context.Context, request *MessagesUploadEncryptedFileRequest) (EncryptedFileClass, error)) (*ServerDispatcher) OnMessagesUploadImportedMedia(f func(ctx context.Context, request *MessagesUploadImportedMediaRequest) (MessageMediaClass, error)) (*ServerDispatcher) OnMessagesUploadMedia(f func(ctx context.Context, request *MessagesUploadMediaRequest) (MessageMediaClass, error)) (*ServerDispatcher) OnPaymentsApplyGiftCode(f func(ctx context.Context, slug string) (UpdatesClass, error)) (*ServerDispatcher) OnPaymentsAssignAppStoreTransaction(f func(ctx context.Context, request *PaymentsAssignAppStoreTransactionRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPaymentsAssignPlayMarketTransaction(f func(ctx context.Context, request *PaymentsAssignPlayMarketTransactionRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPaymentsCanPurchasePremium(f func(ctx context.Context, purpose InputStorePaymentPurposeClass) (bool, error)) (*ServerDispatcher) OnPaymentsCheckGiftCode(f func(ctx context.Context, slug string) (*PaymentsCheckedGiftCode, error)) (*ServerDispatcher) OnPaymentsClearSavedInfo(f func(ctx context.Context, request *PaymentsClearSavedInfoRequest) (bool, error)) (*ServerDispatcher) OnPaymentsExportInvoice(f func(ctx context.Context, invoicemedia InputMediaClass) (*PaymentsExportedInvoice, error)) (*ServerDispatcher) OnPaymentsGetBankCardData(f func(ctx context.Context, number string) (*PaymentsBankCardData, error)) (*ServerDispatcher) OnPaymentsGetGiveawayInfo(f func(ctx context.Context, request *PaymentsGetGiveawayInfoRequest) (PaymentsGiveawayInfoClass, error)) (*ServerDispatcher) OnPaymentsGetPaymentForm(f func(ctx context.Context, request *PaymentsGetPaymentFormRequest) (*PaymentsPaymentForm, error)) (*ServerDispatcher) OnPaymentsGetPaymentReceipt(f func(ctx context.Context, request *PaymentsGetPaymentReceiptRequest) (*PaymentsPaymentReceipt, error)) (*ServerDispatcher) OnPaymentsGetPremiumGiftCodeOptions(f func(ctx context.Context, request *PaymentsGetPremiumGiftCodeOptionsRequest) ([]PremiumGiftCodeOption, error)) (*ServerDispatcher) OnPaymentsGetSavedInfo(f func(ctx context.Context) (*PaymentsSavedInfo, error)) (*ServerDispatcher) OnPaymentsLaunchPrepaidGiveaway(f func(ctx context.Context, request *PaymentsLaunchPrepaidGiveawayRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPaymentsSendPaymentForm(f func(ctx context.Context, request *PaymentsSendPaymentFormRequest) (PaymentsPaymentResultClass, error)) (*ServerDispatcher) OnPaymentsValidateRequestedInfo(f func(ctx context.Context, request *PaymentsValidateRequestedInfoRequest) (*PaymentsValidatedRequestedInfo, error)) (*ServerDispatcher) OnPhoneAcceptCall(f func(ctx context.Context, request *PhoneAcceptCallRequest) (*PhonePhoneCall, error)) (*ServerDispatcher) OnPhoneCheckGroupCall(f func(ctx context.Context, request *PhoneCheckGroupCallRequest) ([]int, error)) (*ServerDispatcher) OnPhoneConfirmCall(f func(ctx context.Context, request *PhoneConfirmCallRequest) (*PhonePhoneCall, error)) (*ServerDispatcher) OnPhoneCreateGroupCall(f func(ctx context.Context, request *PhoneCreateGroupCallRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneDiscardCall(f func(ctx context.Context, request *PhoneDiscardCallRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneDiscardGroupCall(f func(ctx context.Context, call InputGroupCall) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneEditGroupCallParticipant(f func(ctx context.Context, request *PhoneEditGroupCallParticipantRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneEditGroupCallTitle(f func(ctx context.Context, request *PhoneEditGroupCallTitleRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneExportGroupCallInvite(f func(ctx context.Context, request *PhoneExportGroupCallInviteRequest) (*PhoneExportedGroupCallInvite, error)) (*ServerDispatcher) OnPhoneGetCallConfig(f func(ctx context.Context) (*DataJSON, error)) (*ServerDispatcher) OnPhoneGetGroupCall(f func(ctx context.Context, request *PhoneGetGroupCallRequest) (*PhoneGroupCall, error)) (*ServerDispatcher) OnPhoneGetGroupCallJoinAs(f func(ctx context.Context, peer InputPeerClass) (*PhoneJoinAsPeers, error)) (*ServerDispatcher) OnPhoneGetGroupCallStreamChannels(f func(ctx context.Context, call InputGroupCall) (*PhoneGroupCallStreamChannels, error)) (*ServerDispatcher) OnPhoneGetGroupCallStreamRtmpURL(f func(ctx context.Context, request *PhoneGetGroupCallStreamRtmpURLRequest) (*PhoneGroupCallStreamRtmpURL, error)) (*ServerDispatcher) OnPhoneGetGroupParticipants(f func(ctx context.Context, request *PhoneGetGroupParticipantsRequest) (*PhoneGroupParticipants, error)) (*ServerDispatcher) OnPhoneInviteToGroupCall(f func(ctx context.Context, request *PhoneInviteToGroupCallRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneJoinGroupCall(f func(ctx context.Context, request *PhoneJoinGroupCallRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneJoinGroupCallPresentation(f func(ctx context.Context, request *PhoneJoinGroupCallPresentationRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneLeaveGroupCall(f func(ctx context.Context, request *PhoneLeaveGroupCallRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneLeaveGroupCallPresentation(f func(ctx context.Context, call InputGroupCall) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneReceivedCall(f func(ctx context.Context, peer InputPhoneCall) (bool, error)) (*ServerDispatcher) OnPhoneRequestCall(f func(ctx context.Context, request *PhoneRequestCallRequest) (*PhonePhoneCall, error)) (*ServerDispatcher) OnPhoneSaveCallDebug(f func(ctx context.Context, request *PhoneSaveCallDebugRequest) (bool, error)) (*ServerDispatcher) OnPhoneSaveCallLog(f func(ctx context.Context, request *PhoneSaveCallLogRequest) (bool, error)) (*ServerDispatcher) OnPhoneSaveDefaultGroupCallJoinAs(f func(ctx context.Context, request *PhoneSaveDefaultGroupCallJoinAsRequest) (bool, error)) (*ServerDispatcher) OnPhoneSendSignalingData(f func(ctx context.Context, request *PhoneSendSignalingDataRequest) (bool, error)) (*ServerDispatcher) OnPhoneSetCallRating(f func(ctx context.Context, request *PhoneSetCallRatingRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneStartScheduledGroupCall(f func(ctx context.Context, call InputGroupCall) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneToggleGroupCallRecord(f func(ctx context.Context, request *PhoneToggleGroupCallRecordRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneToggleGroupCallSettings(f func(ctx context.Context, request *PhoneToggleGroupCallSettingsRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhoneToggleGroupCallStartSubscription(f func(ctx context.Context, request *PhoneToggleGroupCallStartSubscriptionRequest) (UpdatesClass, error)) (*ServerDispatcher) OnPhotosDeletePhotos(f func(ctx context.Context, id []InputPhotoClass) ([]int64, error)) (*ServerDispatcher) OnPhotosGetUserPhotos(f func(ctx context.Context, request *PhotosGetUserPhotosRequest) (PhotosPhotosClass, error)) (*ServerDispatcher) OnPhotosUpdateProfilePhoto(f func(ctx context.Context, request *PhotosUpdateProfilePhotoRequest) (*PhotosPhoto, error)) (*ServerDispatcher) OnPhotosUploadContactProfilePhoto(f func(ctx context.Context, request *PhotosUploadContactProfilePhotoRequest) (*PhotosPhoto, error)) (*ServerDispatcher) OnPhotosUploadProfilePhoto(f func(ctx context.Context, request *PhotosUploadProfilePhotoRequest) (*PhotosPhoto, error)) (*ServerDispatcher) OnPremiumApplyBoost(f func(ctx context.Context, request *PremiumApplyBoostRequest) (*PremiumMyBoosts, error)) (*ServerDispatcher) OnPremiumGetBoostsList(f func(ctx context.Context, request *PremiumGetBoostsListRequest) (*PremiumBoostsList, error)) (*ServerDispatcher) OnPremiumGetBoostsStatus(f func(ctx context.Context, peer InputPeerClass) (*PremiumBoostsStatus, error)) (*ServerDispatcher) OnPremiumGetMyBoosts(f func(ctx context.Context) (*PremiumMyBoosts, error)) (*ServerDispatcher) OnPremiumGetUserBoosts(f func(ctx context.Context, request *PremiumGetUserBoostsRequest) (*PremiumBoostsList, error)) (*ServerDispatcher) OnStatsGetBroadcastStats(f func(ctx context.Context, request *StatsGetBroadcastStatsRequest) (*StatsBroadcastStats, error)) (*ServerDispatcher) OnStatsGetMegagroupStats(f func(ctx context.Context, request *StatsGetMegagroupStatsRequest) (*StatsMegagroupStats, error)) (*ServerDispatcher) OnStatsGetMessagePublicForwards(f func(ctx context.Context, request *StatsGetMessagePublicForwardsRequest) (*StatsPublicForwards, error)) (*ServerDispatcher) OnStatsGetMessageStats(f func(ctx context.Context, request *StatsGetMessageStatsRequest) (*StatsMessageStats, error)) (*ServerDispatcher) OnStatsGetStoryPublicForwards(f func(ctx context.Context, request *StatsGetStoryPublicForwardsRequest) (*StatsPublicForwards, error)) (*ServerDispatcher) OnStatsGetStoryStats(f func(ctx context.Context, request *StatsGetStoryStatsRequest) (*StatsStoryStats, error)) (*ServerDispatcher) OnStatsLoadAsyncGraph(f func(ctx context.Context, request *StatsLoadAsyncGraphRequest) (StatsGraphClass, error)) (*ServerDispatcher) OnStickersAddStickerToSet(f func(ctx context.Context, request *StickersAddStickerToSetRequest) (MessagesStickerSetClass, error)) (*ServerDispatcher) OnStickersChangeSticker(f func(ctx context.Context, request *StickersChangeStickerRequest) (MessagesStickerSetClass, error)) (*ServerDispatcher) OnStickersChangeStickerPosition(f func(ctx context.Context, request *StickersChangeStickerPositionRequest) (MessagesStickerSetClass, error)) (*ServerDispatcher) OnStickersCheckShortName(f func(ctx context.Context, shortname string) (bool, error)) (*ServerDispatcher) OnStickersCreateStickerSet(f func(ctx context.Context, request *StickersCreateStickerSetRequest) (MessagesStickerSetClass, error)) (*ServerDispatcher) OnStickersDeleteStickerSet(f func(ctx context.Context, stickerset InputStickerSetClass) (bool, error)) (*ServerDispatcher) OnStickersRemoveStickerFromSet(f func(ctx context.Context, sticker InputDocumentClass) (MessagesStickerSetClass, error)) (*ServerDispatcher) OnStickersRenameStickerSet(f func(ctx context.Context, request *StickersRenameStickerSetRequest) (MessagesStickerSetClass, error)) (*ServerDispatcher) OnStickersSetStickerSetThumb(f func(ctx context.Context, request *StickersSetStickerSetThumbRequest) (MessagesStickerSetClass, error)) (*ServerDispatcher) OnStickersSuggestShortName(f func(ctx context.Context, title string) (*StickersSuggestedShortName, error)) (*ServerDispatcher) OnStoriesActivateStealthMode(f func(ctx context.Context, request *StoriesActivateStealthModeRequest) (UpdatesClass, error)) (*ServerDispatcher) OnStoriesCanSendStory(f func(ctx context.Context, peer InputPeerClass) (bool, error)) (*ServerDispatcher) OnStoriesDeleteStories(f func(ctx context.Context, request *StoriesDeleteStoriesRequest) ([]int, error)) (*ServerDispatcher) OnStoriesEditStory(f func(ctx context.Context, request *StoriesEditStoryRequest) (UpdatesClass, error)) (*ServerDispatcher) OnStoriesExportStoryLink(f func(ctx context.Context, request *StoriesExportStoryLinkRequest) (*ExportedStoryLink, error)) (*ServerDispatcher) OnStoriesGetAllReadPeerStories(f func(ctx context.Context) (UpdatesClass, error)) (*ServerDispatcher) OnStoriesGetAllStories(f func(ctx context.Context, request *StoriesGetAllStoriesRequest) (StoriesAllStoriesClass, error)) (*ServerDispatcher) OnStoriesGetChatsToSend(f func(ctx context.Context) (MessagesChatsClass, error)) (*ServerDispatcher) OnStoriesGetPeerMaxIDs(f func(ctx context.Context, id []InputPeerClass) ([]int, error)) (*ServerDispatcher) OnStoriesGetPeerStories(f func(ctx context.Context, peer InputPeerClass) (*StoriesPeerStories, error)) (*ServerDispatcher) OnStoriesGetPinnedStories(f func(ctx context.Context, request *StoriesGetPinnedStoriesRequest) (*StoriesStories, error)) (*ServerDispatcher) OnStoriesGetStoriesArchive(f func(ctx context.Context, request *StoriesGetStoriesArchiveRequest) (*StoriesStories, error)) (*ServerDispatcher) OnStoriesGetStoriesByID(f func(ctx context.Context, request *StoriesGetStoriesByIDRequest) (*StoriesStories, error)) (*ServerDispatcher) OnStoriesGetStoriesViews(f func(ctx context.Context, request *StoriesGetStoriesViewsRequest) (*StoriesStoryViews, error)) (*ServerDispatcher) OnStoriesGetStoryReactionsList(f func(ctx context.Context, request *StoriesGetStoryReactionsListRequest) (*StoriesStoryReactionsList, error)) (*ServerDispatcher) OnStoriesGetStoryViewsList(f func(ctx context.Context, request *StoriesGetStoryViewsListRequest) (*StoriesStoryViewsList, error)) (*ServerDispatcher) OnStoriesIncrementStoryViews(f func(ctx context.Context, request *StoriesIncrementStoryViewsRequest) (bool, error)) (*ServerDispatcher) OnStoriesReadStories(f func(ctx context.Context, request *StoriesReadStoriesRequest) ([]int, error)) (*ServerDispatcher) OnStoriesReport(f func(ctx context.Context, request *StoriesReportRequest) (bool, error)) (*ServerDispatcher) OnStoriesSendReaction(f func(ctx context.Context, request *StoriesSendReactionRequest) (UpdatesClass, error)) (*ServerDispatcher) OnStoriesSendStory(f func(ctx context.Context, request *StoriesSendStoryRequest) (UpdatesClass, error)) (*ServerDispatcher) OnStoriesToggleAllStoriesHidden(f func(ctx context.Context, hidden bool) (bool, error)) (*ServerDispatcher) OnStoriesTogglePeerStoriesHidden(f func(ctx context.Context, request *StoriesTogglePeerStoriesHiddenRequest) (bool, error)) (*ServerDispatcher) OnStoriesTogglePinned(f func(ctx context.Context, request *StoriesTogglePinnedRequest) ([]int, error)) (*ServerDispatcher) OnTestUseConfigSimple(f func(ctx context.Context) (*HelpConfigSimple, error)) (*ServerDispatcher) OnTestUseError(f func(ctx context.Context) (*Error, error)) (*ServerDispatcher) OnUpdatesGetChannelDifference(f func(ctx context.Context, request *UpdatesGetChannelDifferenceRequest) (UpdatesChannelDifferenceClass, error)) (*ServerDispatcher) OnUpdatesGetDifference(f func(ctx context.Context, request *UpdatesGetDifferenceRequest) (UpdatesDifferenceClass, error)) (*ServerDispatcher) OnUpdatesGetState(f func(ctx context.Context) (*UpdatesState, error)) (*ServerDispatcher) OnUploadGetCDNFile(f func(ctx context.Context, request *UploadGetCDNFileRequest) (UploadCDNFileClass, error)) (*ServerDispatcher) OnUploadGetCDNFileHashes(f func(ctx context.Context, request *UploadGetCDNFileHashesRequest) ([]FileHash, error)) (*ServerDispatcher) OnUploadGetFile(f func(ctx context.Context, request *UploadGetFileRequest) (UploadFileClass, error)) (*ServerDispatcher) OnUploadGetFileHashes(f func(ctx context.Context, request *UploadGetFileHashesRequest) ([]FileHash, error)) (*ServerDispatcher) OnUploadGetWebFile(f func(ctx context.Context, request *UploadGetWebFileRequest) (*UploadWebFile, error)) (*ServerDispatcher) OnUploadReuploadCDNFile(f func(ctx context.Context, request *UploadReuploadCDNFileRequest) ([]FileHash, error)) (*ServerDispatcher) OnUploadSaveBigFilePart(f func(ctx context.Context, request *UploadSaveBigFilePartRequest) (bool, error)) (*ServerDispatcher) OnUploadSaveFilePart(f func(ctx context.Context, request *UploadSaveFilePartRequest) (bool, error)) (*ServerDispatcher) OnUsersGetFullUser(f func(ctx context.Context, id InputUserClass) (*UsersUserFull, error)) (*ServerDispatcher) OnUsersGetUsers(f func(ctx context.Context, id []InputUserClass) ([]UserClass, error)) (*ServerDispatcher) OnUsersSetSecureValueErrors(f func(ctx context.Context, request *UsersSetSecureValueErrorsRequest) (bool, error)) func NewServerDispatcher(fallback func(ctx context.Context, b *bin.Buffer) (bin.Encoder, error)) *ServerDispatcher
ServiceNotificationHandler is a ServiceNotification event handler. func UpdateDispatcher.OnServiceNotification(handler ServiceNotificationHandler)
ShippingOption represents TL type `shippingOption#b6213cdf`. Shipping option See https://core.telegram.org/constructor/shippingOption for reference. Option ID List of price portions Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ShippingOption from given interface. GetID returns value of ID field. GetPrices returns value of Prices field. GetTitle returns value of Title 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. (*ShippingOption) Zero() bool *ShippingOption : github.com/gotd/td/bin.BareDecoder *ShippingOption : github.com/gotd/td/bin.BareEncoder *ShippingOption : github.com/gotd/td/bin.Decoder *ShippingOption : github.com/gotd/td/bin.Encoder *ShippingOption : github.com/gotd/td/bin.Object *ShippingOption : github.com/gotd/td/tdp.Object *ShippingOption : fmt.Stringer func (*MessagesSetBotShippingResultsRequest).GetShippingOptions() (value []ShippingOption, ok bool) func (*PaymentsPaymentReceipt).GetShipping() (value ShippingOption, ok bool) func (*PaymentsValidatedRequestedInfo).GetShippingOptions() (value []ShippingOption, ok bool) func (*MessagesSetBotShippingResultsRequest).SetShippingOptions(value []ShippingOption) func (*PaymentsPaymentReceipt).SetShipping(value ShippingOption) func (*PaymentsValidatedRequestedInfo).SetShippingOptions(value []ShippingOption)
SimpleWebViewResultURL represents TL type `simpleWebViewResultUrl#882f76bb`. Contains the webview URL with appropriate theme parameters added See https://core.telegram.org/constructor/simpleWebViewResultUrl for reference. The URL to open Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SimpleWebViewResultURL from given interface. 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. (*SimpleWebViewResultURL) Zero() bool *SimpleWebViewResultURL : github.com/gotd/td/bin.BareDecoder *SimpleWebViewResultURL : github.com/gotd/td/bin.BareEncoder *SimpleWebViewResultURL : github.com/gotd/td/bin.Decoder *SimpleWebViewResultURL : github.com/gotd/td/bin.Encoder *SimpleWebViewResultURL : github.com/gotd/td/bin.Object *SimpleWebViewResultURL : github.com/gotd/td/tdp.Object *SimpleWebViewResultURL : fmt.Stringer func (*Client).MessagesRequestSimpleWebView(ctx context.Context, request *MessagesRequestSimpleWebViewRequest) (*SimpleWebViewResultURL, error)
SpeakingInGroupCallAction represents TL type `speakingInGroupCallAction#d92c2285`. User is currently speaking in the group call See https://core.telegram.org/constructor/speakingInGroupCallAction 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. (*SpeakingInGroupCallAction) Zero() bool *SpeakingInGroupCallAction : SendMessageActionClass *SpeakingInGroupCallAction : github.com/gotd/td/bin.BareDecoder *SpeakingInGroupCallAction : github.com/gotd/td/bin.BareEncoder *SpeakingInGroupCallAction : github.com/gotd/td/bin.Decoder *SpeakingInGroupCallAction : github.com/gotd/td/bin.Encoder *SpeakingInGroupCallAction : github.com/gotd/td/bin.Object *SpeakingInGroupCallAction : github.com/gotd/td/tdp.Object *SpeakingInGroupCallAction : fmt.Stringer
SponsoredMessage represents TL type `sponsoredMessage#ed5383f7`. A sponsored message¹. Links: 1. https://core.telegram.org/api/sponsored-messages See https://core.telegram.org/constructor/sponsoredMessage for reference. If set, contains additional information about the sponsored message to be shown along with the message. Use SetAdditionalInfo and GetAdditionalInfo helpers. Mini App »¹ to open when the sponsored message is clicked. Links: 1) https://core.telegram.org/api/bots/webapps Use SetApp and GetApp helpers. Text of the sponsored message button. Use SetButtonText and GetButtonText helpers. Optional link to a channel post if from_id points to a channel Use SetChannelPost and GetChannelPost helpers. Information about the chat invite hash specified in chat_invite_hash Use SetChatInvite and GetChatInvite helpers. Chat invite Use SetChatInviteHash and GetChatInviteHash helpers. 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 ID of the sender of the message Use SetFromID and GetFromID helpers. Sponsored message Message ID Whether the message needs to be labeled as "recommended" instead of "sponsored" Whether a profile photo bubble should be displayed for this message, like for messages sent in groups. The photo shown in the bubble is obtained either from the peer contained in from_id, or from chat_invite. If set, contains additional information about the sponsor to be shown along with the message. Use SetSponsorInfo and GetSponsorInfo helpers. Parameter for the bot start message if the sponsored chat is a chat with a bot. Use SetStartParam and GetStartParam helpers. Sponsored website Use SetWebpage and GetWebpage helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SponsoredMessage from given interface. GetAdditionalInfo returns value of AdditionalInfo conditional field and boolean which is true if field was set. GetApp returns value of App conditional field and boolean which is true if field was set. GetAppAsModified returns mapped value of App conditional field and boolean which is true if field was set. GetButtonText returns value of ButtonText conditional field and boolean which is true if field was set. GetChannelPost returns value of ChannelPost conditional field and boolean which is true if field was set. GetChatInvite returns value of ChatInvite conditional field and boolean which is true if field was set. GetChatInviteHash returns value of ChatInviteHash conditional field and boolean which is true if field was set. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetFromID returns value of FromID conditional field and boolean which is true if field was set. GetMessage returns value of Message field. GetRandomID returns value of RandomID field. GetRecommended returns value of Recommended conditional field. GetShowPeerPhoto returns value of ShowPeerPhoto conditional field. GetSponsorInfo returns value of SponsorInfo conditional field and boolean which is true if field was set. GetStartParam returns value of StartParam conditional field and boolean which is true if field was set. GetWebpage returns value of Webpage conditional field and boolean which is true if field was set. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetAdditionalInfo sets value of AdditionalInfo conditional field. SetApp sets value of App conditional field. SetButtonText sets value of ButtonText conditional field. SetChannelPost sets value of ChannelPost conditional field. SetChatInvite sets value of ChatInvite conditional field. SetChatInviteHash sets value of ChatInviteHash conditional field. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetFromID sets value of FromID conditional field. SetRecommended sets value of Recommended conditional field. SetShowPeerPhoto sets value of ShowPeerPhoto conditional field. SetSponsorInfo sets value of SponsorInfo conditional field. SetStartParam sets value of StartParam conditional field. SetWebpage sets value of Webpage 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. (*SponsoredMessage) Zero() bool *SponsoredMessage : github.com/gotd/td/bin.BareDecoder *SponsoredMessage : github.com/gotd/td/bin.BareEncoder *SponsoredMessage : github.com/gotd/td/bin.Decoder *SponsoredMessage : github.com/gotd/td/bin.Encoder *SponsoredMessage : github.com/gotd/td/bin.Object *SponsoredMessage : github.com/gotd/td/tdp.Object *SponsoredMessage : fmt.Stringer func (*MessagesSponsoredMessages).GetMessages() (value []SponsoredMessage)
SponsoredWebPage represents TL type `sponsoredWebPage#3db8ec63`. Represents a sponsored website. See https://core.telegram.org/constructor/sponsoredWebPage for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Optional image preview. Use SetPhoto and GetPhoto helpers. Website name. Web page URL. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills SponsoredWebPage from given interface. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetPhotoAsNotEmpty returns mapped value of Photo conditional field and boolean which is true if field was set. GetSiteName returns value of SiteName field. GetURL returns value of URL field. SetFlags sets flags for non-zero fields. SetPhoto sets value of Photo 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. (*SponsoredWebPage) Zero() bool *SponsoredWebPage : github.com/gotd/td/bin.BareDecoder *SponsoredWebPage : github.com/gotd/td/bin.BareEncoder *SponsoredWebPage : github.com/gotd/td/bin.Decoder *SponsoredWebPage : github.com/gotd/td/bin.Encoder *SponsoredWebPage : github.com/gotd/td/bin.Object *SponsoredWebPage : github.com/gotd/td/tdp.Object *SponsoredWebPage : fmt.Stringer func (*SponsoredMessage).GetWebpage() (value SponsoredWebPage, ok bool) func (*SponsoredMessage).SetWebpage(value SponsoredWebPage)
StatsAbsValueAndPrev represents TL type `statsAbsValueAndPrev#cb43acde`. Statistics value couple; initial and final value for period of time currently in consideration See https://core.telegram.org/constructor/statsAbsValueAndPrev for reference. Current value Previous value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsAbsValueAndPrev from given interface. GetCurrent returns value of Current field. GetPrevious returns value of Previous 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. (*StatsAbsValueAndPrev) Zero() bool *StatsAbsValueAndPrev : github.com/gotd/td/bin.BareDecoder *StatsAbsValueAndPrev : github.com/gotd/td/bin.BareEncoder *StatsAbsValueAndPrev : github.com/gotd/td/bin.Decoder *StatsAbsValueAndPrev : github.com/gotd/td/bin.Encoder *StatsAbsValueAndPrev : github.com/gotd/td/bin.Object *StatsAbsValueAndPrev : github.com/gotd/td/tdp.Object *StatsAbsValueAndPrev : fmt.Stringer func (*StatsBroadcastStats).GetFollowers() (value StatsAbsValueAndPrev) func (*StatsBroadcastStats).GetReactionsPerPost() (value StatsAbsValueAndPrev) func (*StatsBroadcastStats).GetReactionsPerStory() (value StatsAbsValueAndPrev) func (*StatsBroadcastStats).GetSharesPerPost() (value StatsAbsValueAndPrev) func (*StatsBroadcastStats).GetSharesPerStory() (value StatsAbsValueAndPrev) func (*StatsBroadcastStats).GetViewsPerPost() (value StatsAbsValueAndPrev) func (*StatsBroadcastStats).GetViewsPerStory() (value StatsAbsValueAndPrev) func (*StatsMegagroupStats).GetMembers() (value StatsAbsValueAndPrev) func (*StatsMegagroupStats).GetMessages() (value StatsAbsValueAndPrev) func (*StatsMegagroupStats).GetPosters() (value StatsAbsValueAndPrev) func (*StatsMegagroupStats).GetViewers() (value StatsAbsValueAndPrev)
StatsBroadcastStats represents TL type `stats.broadcastStats#396ca5fc`. Channel statistics¹. Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/constructor/stats.broadcastStats for reference. Percentage of subscribers with enabled notifications Follower count change for period in consideration Followers growth graph (relative subscriber count) Channel growth graph (absolute subscriber count) Interactions graph (absolute) IV interactions graph (absolute) Subscriber language graph (pie chart) Muted users graph (relative) New followers by source graph (absolute) Period in consideration A graph containing the number of reactions on posts categorized by emotion total_reactions/postcount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date) total_reactions/storycount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date) Detailed statistics about number of views and shares of recently sent messages and stories total_sharecount/postcount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date) total_shares/storycount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date) A graph containing the number of story views and shares A graph containing the number of reactions on stories categorized by emotion Views per hour graph (absolute) Views by source graph (absolute) total_viewcount/postcount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date). total_views/storycount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsBroadcastStats from given interface. GetEnabledNotifications returns value of EnabledNotifications field. GetFollowers returns value of Followers field. GetFollowersGraph returns value of FollowersGraph field. GetGrowthGraph returns value of GrowthGraph field. GetInteractionsGraph returns value of InteractionsGraph field. GetIvInteractionsGraph returns value of IvInteractionsGraph field. GetLanguagesGraph returns value of LanguagesGraph field. GetMuteGraph returns value of MuteGraph field. GetNewFollowersBySourceGraph returns value of NewFollowersBySourceGraph field. GetPeriod returns value of Period field. GetReactionsByEmotionGraph returns value of ReactionsByEmotionGraph field. GetReactionsPerPost returns value of ReactionsPerPost field. GetReactionsPerStory returns value of ReactionsPerStory field. GetRecentPostsInteractions returns value of RecentPostsInteractions field. GetSharesPerPost returns value of SharesPerPost field. GetSharesPerStory returns value of SharesPerStory field. GetStoryInteractionsGraph returns value of StoryInteractionsGraph field. GetStoryReactionsByEmotionGraph returns value of StoryReactionsByEmotionGraph field. GetTopHoursGraph returns value of TopHoursGraph field. GetViewsBySourceGraph returns value of ViewsBySourceGraph field. GetViewsPerPost returns value of ViewsPerPost field. GetViewsPerStory returns value of ViewsPerStory field. MapRecentPostsInteractions returns field RecentPostsInteractions wrapped in PostInteractionCountersClassArray 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. (*StatsBroadcastStats) Zero() bool *StatsBroadcastStats : github.com/gotd/td/bin.BareDecoder *StatsBroadcastStats : github.com/gotd/td/bin.BareEncoder *StatsBroadcastStats : github.com/gotd/td/bin.Decoder *StatsBroadcastStats : github.com/gotd/td/bin.Encoder *StatsBroadcastStats : github.com/gotd/td/bin.Object *StatsBroadcastStats : github.com/gotd/td/tdp.Object *StatsBroadcastStats : fmt.Stringer func (*Client).StatsGetBroadcastStats(ctx context.Context, request *StatsGetBroadcastStatsRequest) (*StatsBroadcastStats, error)
StatsDateRangeDays represents TL type `statsDateRangeDays#b637edaf`. Channel statistics¹ date range Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/constructor/statsDateRangeDays for reference. Final date Initial date Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsDateRangeDays from given interface. GetMaxDate returns value of MaxDate field. GetMinDate returns value of MinDate 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. (*StatsDateRangeDays) Zero() bool *StatsDateRangeDays : github.com/gotd/td/bin.BareDecoder *StatsDateRangeDays : github.com/gotd/td/bin.BareEncoder *StatsDateRangeDays : github.com/gotd/td/bin.Decoder *StatsDateRangeDays : github.com/gotd/td/bin.Encoder *StatsDateRangeDays : github.com/gotd/td/bin.Object *StatsDateRangeDays : github.com/gotd/td/tdp.Object *StatsDateRangeDays : fmt.Stringer func (*StatsBroadcastStats).GetPeriod() (value StatsDateRangeDays) func (*StatsMegagroupStats).GetPeriod() (value StatsDateRangeDays)
StatsGetBroadcastStatsRequest represents TL type `stats.getBroadcastStats#ab42441a`. Get channel statistics¹ Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/method/stats.getBroadcastStats for reference. The channel Whether to enable dark theme for graph colors 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 StatsGetBroadcastStatsRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetDark returns value of Dark conditional field. SetDark sets value of Dark 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. (*StatsGetBroadcastStatsRequest) Zero() bool *StatsGetBroadcastStatsRequest : github.com/gotd/td/bin.BareDecoder *StatsGetBroadcastStatsRequest : github.com/gotd/td/bin.BareEncoder *StatsGetBroadcastStatsRequest : github.com/gotd/td/bin.Decoder *StatsGetBroadcastStatsRequest : github.com/gotd/td/bin.Encoder *StatsGetBroadcastStatsRequest : github.com/gotd/td/bin.Object *StatsGetBroadcastStatsRequest : github.com/gotd/td/tdp.Object *StatsGetBroadcastStatsRequest : fmt.Stringer func (*Client).StatsGetBroadcastStats(ctx context.Context, request *StatsGetBroadcastStatsRequest) (*StatsBroadcastStats, error)
StatsGetMegagroupStatsRequest represents TL type `stats.getMegagroupStats#dcdf8607`. Get supergroup statistics¹ Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/method/stats.getMegagroupStats for reference. The channel Whether to enable dark theme for graph colors 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 StatsGetMegagroupStatsRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetDark returns value of Dark conditional field. SetDark sets value of Dark 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. (*StatsGetMegagroupStatsRequest) Zero() bool *StatsGetMegagroupStatsRequest : github.com/gotd/td/bin.BareDecoder *StatsGetMegagroupStatsRequest : github.com/gotd/td/bin.BareEncoder *StatsGetMegagroupStatsRequest : github.com/gotd/td/bin.Decoder *StatsGetMegagroupStatsRequest : github.com/gotd/td/bin.Encoder *StatsGetMegagroupStatsRequest : github.com/gotd/td/bin.Object *StatsGetMegagroupStatsRequest : github.com/gotd/td/tdp.Object *StatsGetMegagroupStatsRequest : fmt.Stringer func (*Client).StatsGetMegagroupStats(ctx context.Context, request *StatsGetMegagroupStatsRequest) (*StatsMegagroupStats, error)
StatsGetMessagePublicForwardsRequest represents TL type `stats.getMessagePublicForwards#5f150144`. Obtains a list of messages, indicating to which other public channels was a channel message forwarded. Will return a list of messages¹ with peer_id equal to the public channel to which this message was forwarded. Links: 1. https://core.telegram.org/constructor/message See https://core.telegram.org/method/stats.getMessagePublicForwards for reference. Source channel Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Source message ID Offset field of StatsGetMessagePublicForwardsRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGetMessagePublicForwardsRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetLimit returns value of Limit field. GetMsgID returns value of MsgID 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. (*StatsGetMessagePublicForwardsRequest) Zero() bool *StatsGetMessagePublicForwardsRequest : github.com/gotd/td/bin.BareDecoder *StatsGetMessagePublicForwardsRequest : github.com/gotd/td/bin.BareEncoder *StatsGetMessagePublicForwardsRequest : github.com/gotd/td/bin.Decoder *StatsGetMessagePublicForwardsRequest : github.com/gotd/td/bin.Encoder *StatsGetMessagePublicForwardsRequest : github.com/gotd/td/bin.Object *StatsGetMessagePublicForwardsRequest : github.com/gotd/td/tdp.Object *StatsGetMessagePublicForwardsRequest : fmt.Stringer func (*Client).StatsGetMessagePublicForwards(ctx context.Context, request *StatsGetMessagePublicForwardsRequest) (*StatsPublicForwards, error)
StatsGetMessageStatsRequest represents TL type `stats.getMessageStats#b6e0a3f5`. Get message statistics¹ Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/method/stats.getMessageStats for reference. Channel ID Whether to enable dark theme for graph colors Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGetMessageStatsRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetDark returns value of Dark conditional field. GetMsgID returns value of MsgID field. SetDark sets value of Dark 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. (*StatsGetMessageStatsRequest) Zero() bool *StatsGetMessageStatsRequest : github.com/gotd/td/bin.BareDecoder *StatsGetMessageStatsRequest : github.com/gotd/td/bin.BareEncoder *StatsGetMessageStatsRequest : github.com/gotd/td/bin.Decoder *StatsGetMessageStatsRequest : github.com/gotd/td/bin.Encoder *StatsGetMessageStatsRequest : github.com/gotd/td/bin.Object *StatsGetMessageStatsRequest : github.com/gotd/td/tdp.Object *StatsGetMessageStatsRequest : fmt.Stringer func (*Client).StatsGetMessageStats(ctx context.Context, request *StatsGetMessageStatsRequest) (*StatsMessageStats, error)
StatsGetStoryPublicForwardsRequest represents TL type `stats.getStoryPublicForwards#a6437ef6`. Obtain forwards of a story¹ as a message to public chats and reposts by public channels. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/method/stats.getStoryPublicForwards for reference. Story¹ ID Links: 1) https://core.telegram.org/api/stories Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offset for pagination, from stats.PublicForwards¹.next_offset. Links: 1) https://core.telegram.org/constructor/stats.publicForwards Peer where the story was originally posted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGetStoryPublicForwardsRequest from given interface. GetID returns value of ID field. GetLimit returns value of Limit field. GetOffset returns value of Offset 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. (*StatsGetStoryPublicForwardsRequest) Zero() bool *StatsGetStoryPublicForwardsRequest : github.com/gotd/td/bin.BareDecoder *StatsGetStoryPublicForwardsRequest : github.com/gotd/td/bin.BareEncoder *StatsGetStoryPublicForwardsRequest : github.com/gotd/td/bin.Decoder *StatsGetStoryPublicForwardsRequest : github.com/gotd/td/bin.Encoder *StatsGetStoryPublicForwardsRequest : github.com/gotd/td/bin.Object *StatsGetStoryPublicForwardsRequest : github.com/gotd/td/tdp.Object *StatsGetStoryPublicForwardsRequest : fmt.Stringer func (*Client).StatsGetStoryPublicForwards(ctx context.Context, request *StatsGetStoryPublicForwardsRequest) (*StatsPublicForwards, error)
StatsGetStoryStatsRequest represents TL type `stats.getStoryStats#374fef40`. Get statistics¹ for a certain story². Links: 1. https://core.telegram.org/api/stats 2. https://core.telegram.org/api/stories See https://core.telegram.org/method/stats.getStoryStats for reference. Whether to enable the dark theme for graph colors Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Story ID The peer that posted the story Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGetStoryStatsRequest from given interface. GetDark returns value of Dark conditional field. GetID returns value of ID field. GetPeer returns value of Peer field. SetDark sets value of Dark 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. (*StatsGetStoryStatsRequest) Zero() bool *StatsGetStoryStatsRequest : github.com/gotd/td/bin.BareDecoder *StatsGetStoryStatsRequest : github.com/gotd/td/bin.BareEncoder *StatsGetStoryStatsRequest : github.com/gotd/td/bin.Decoder *StatsGetStoryStatsRequest : github.com/gotd/td/bin.Encoder *StatsGetStoryStatsRequest : github.com/gotd/td/bin.Object *StatsGetStoryStatsRequest : github.com/gotd/td/tdp.Object *StatsGetStoryStatsRequest : fmt.Stringer func (*Client).StatsGetStoryStats(ctx context.Context, request *StatsGetStoryStatsRequest) (*StatsStoryStats, error)
StatsGraph represents TL type `statsGraph#8ea464b6`. Channel statistics graph¹ Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/constructor/statsGraph for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Statistics data Zoom token Use SetZoomToken and GetZoomToken helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGraph from given interface. GetJSON returns value of JSON field. GetZoomToken returns value of ZoomToken conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetZoomToken sets value of ZoomToken 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. (*StatsGraph) Zero() bool *StatsGraph : StatsGraphClass *StatsGraph : github.com/gotd/td/bin.BareDecoder *StatsGraph : github.com/gotd/td/bin.BareEncoder *StatsGraph : github.com/gotd/td/bin.Decoder *StatsGraph : github.com/gotd/td/bin.Encoder *StatsGraph : github.com/gotd/td/bin.Object *StatsGraph : github.com/gotd/td/tdp.Object *StatsGraph : fmt.Stringer func StatsGraphArray.First() (v StatsGraph, ok bool) func StatsGraphArray.Last() (v StatsGraph, ok bool) func (*StatsGraphArray).Pop() (v StatsGraph, ok bool) func (*StatsGraphArray).PopFirst() (v StatsGraph, ok bool)
StatsGraphArray is adapter for slice of StatsGraph. 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 StatsGraph. Sort sorts slice of StatsGraph. SortStable sorts slice of StatsGraph. func StatsGraphArray.Retain(keep func(x StatsGraph) bool) StatsGraphArray func StatsGraphArray.Sort(less func(a, b StatsGraph) bool) StatsGraphArray func StatsGraphArray.SortStable(less func(a, b StatsGraph) bool) StatsGraphArray func StatsGraphClassArray.AsStatsGraph() (to StatsGraphArray)
StatsGraphAsync represents TL type `statsGraphAsync#4a27eb2d`. This channel statistics graph¹ must be generated asynchronously using stats loadAsyncGraph² to reduce server load Links: 1. https://core.telegram.org/api/stats 2. https://core.telegram.org/method/stats.loadAsyncGraph See https://core.telegram.org/constructor/statsGraphAsync for reference. The token extracted from the temporary profile link¹. Links: 1) https://core.telegram.org/api/links#temporary-profile-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGraphAsync 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. (*StatsGraphAsync) Zero() bool *StatsGraphAsync : StatsGraphClass *StatsGraphAsync : github.com/gotd/td/bin.BareDecoder *StatsGraphAsync : github.com/gotd/td/bin.BareEncoder *StatsGraphAsync : github.com/gotd/td/bin.Decoder *StatsGraphAsync : github.com/gotd/td/bin.Encoder *StatsGraphAsync : github.com/gotd/td/bin.Object *StatsGraphAsync : github.com/gotd/td/tdp.Object *StatsGraphAsync : fmt.Stringer func StatsGraphAsyncArray.First() (v StatsGraphAsync, ok bool) func StatsGraphAsyncArray.Last() (v StatsGraphAsync, ok bool) func (*StatsGraphAsyncArray).Pop() (v StatsGraphAsync, ok bool) func (*StatsGraphAsyncArray).PopFirst() (v StatsGraphAsync, ok bool)
StatsGraphAsyncArray is adapter for slice of StatsGraphAsync. 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 StatsGraphAsync. Sort sorts slice of StatsGraphAsync. SortStable sorts slice of StatsGraphAsync. func StatsGraphAsyncArray.Retain(keep func(x StatsGraphAsync) bool) StatsGraphAsyncArray func StatsGraphAsyncArray.Sort(less func(a, b StatsGraphAsync) bool) StatsGraphAsyncArray func StatsGraphAsyncArray.SortStable(less func(a, b StatsGraphAsync) bool) StatsGraphAsyncArray func StatsGraphClassArray.AsStatsGraphAsync() (to StatsGraphAsyncArray)
StatsGraph boxes the StatsGraphClass providing a helper. StatsGraph StatsGraphClass Decode implements bin.Decoder for StatsGraphBox. Encode implements bin.Encode for StatsGraphBox. *StatsGraphBox : github.com/gotd/td/bin.Decoder *StatsGraphBox : github.com/gotd/td/bin.Encoder *StatsGraphBox : github.com/gotd/td/bin.Object
StatsGraphClass represents StatsGraph generic type. See https://core.telegram.org/type/StatsGraph for reference. Example: g, err := tg.DecodeStatsGraph(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.StatsGraphAsync: // statsGraphAsync#4a27eb2d case *tg.StatsGraphError: // statsGraphError#bedc9822 case *tg.StatsGraph: // statsGraph#8ea464b6 default: panic(v) } ( StatsGraphClass) Decode(b *bin.Buffer) error ( StatsGraphClass) DecodeBare(b *bin.Buffer) error ( StatsGraphClass) Encode(b *bin.Buffer) error ( StatsGraphClass) 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. *StatsGraph *StatsGraphAsync *StatsGraphError StatsGraphClass : github.com/gotd/td/bin.BareDecoder StatsGraphClass : github.com/gotd/td/bin.BareEncoder StatsGraphClass : github.com/gotd/td/bin.Decoder StatsGraphClass : github.com/gotd/td/bin.Encoder StatsGraphClass : github.com/gotd/td/bin.Object StatsGraphClass : fmt.Stringer func DecodeStatsGraph(buf *bin.Buffer) (StatsGraphClass, error) func (*Client).StatsLoadAsyncGraph(ctx context.Context, request *StatsLoadAsyncGraphRequest) (StatsGraphClass, error) func (*StatsBroadcastStats).GetFollowersGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetGrowthGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetInteractionsGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetIvInteractionsGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetLanguagesGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetMuteGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetNewFollowersBySourceGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetReactionsByEmotionGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetStoryInteractionsGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetStoryReactionsByEmotionGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetTopHoursGraph() (value StatsGraphClass) func (*StatsBroadcastStats).GetViewsBySourceGraph() (value StatsGraphClass) func StatsGraphClassArray.First() (v StatsGraphClass, ok bool) func StatsGraphClassArray.Last() (v StatsGraphClass, ok bool) func (*StatsGraphClassArray).Pop() (v StatsGraphClass, ok bool) func (*StatsGraphClassArray).PopFirst() (v StatsGraphClass, ok bool) func (*StatsMegagroupStats).GetActionsGraph() (value StatsGraphClass) func (*StatsMegagroupStats).GetGrowthGraph() (value StatsGraphClass) func (*StatsMegagroupStats).GetLanguagesGraph() (value StatsGraphClass) func (*StatsMegagroupStats).GetMembersGraph() (value StatsGraphClass) func (*StatsMegagroupStats).GetMessagesGraph() (value StatsGraphClass) func (*StatsMegagroupStats).GetNewMembersBySourceGraph() (value StatsGraphClass) func (*StatsMegagroupStats).GetTopHoursGraph() (value StatsGraphClass) func (*StatsMegagroupStats).GetWeekdaysGraph() (value StatsGraphClass) func (*StatsMessageStats).GetReactionsByEmotionGraph() (value StatsGraphClass) func (*StatsMessageStats).GetViewsGraph() (value StatsGraphClass) func (*StatsStoryStats).GetReactionsByEmotionGraph() (value StatsGraphClass) func (*StatsStoryStats).GetViewsGraph() (value StatsGraphClass)
StatsGraphClassArray is adapter for slice of StatsGraphClass. AsStatsGraph returns copy with only StatsGraph constructors. AsStatsGraphAsync returns copy with only StatsGraphAsync constructors. AsStatsGraphError returns copy with only StatsGraphError 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 StatsGraphClass. Sort sorts slice of StatsGraphClass. SortStable sorts slice of StatsGraphClass. func StatsGraphClassArray.Retain(keep func(x StatsGraphClass) bool) StatsGraphClassArray func StatsGraphClassArray.Sort(less func(a, b StatsGraphClass) bool) StatsGraphClassArray func StatsGraphClassArray.SortStable(less func(a, b StatsGraphClass) bool) StatsGraphClassArray
StatsGraphError represents TL type `statsGraphError#bedc9822`. An error occurred while generating the statistics graph¹ Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/constructor/statsGraphError for reference. The error Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGraphError from given interface. GetError returns value of Error 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. (*StatsGraphError) Zero() bool *StatsGraphError : StatsGraphClass *StatsGraphError : github.com/gotd/td/bin.BareDecoder *StatsGraphError : github.com/gotd/td/bin.BareEncoder *StatsGraphError : github.com/gotd/td/bin.Decoder *StatsGraphError : github.com/gotd/td/bin.Encoder *StatsGraphError : github.com/gotd/td/bin.Object *StatsGraphError : github.com/gotd/td/tdp.Object *StatsGraphError : fmt.Stringer func StatsGraphErrorArray.First() (v StatsGraphError, ok bool) func StatsGraphErrorArray.Last() (v StatsGraphError, ok bool) func (*StatsGraphErrorArray).Pop() (v StatsGraphError, ok bool) func (*StatsGraphErrorArray).PopFirst() (v StatsGraphError, ok bool)
StatsGraphErrorArray is adapter for slice of StatsGraphError. 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 StatsGraphError. Sort sorts slice of StatsGraphError. SortStable sorts slice of StatsGraphError. func StatsGraphClassArray.AsStatsGraphError() (to StatsGraphErrorArray) func StatsGraphErrorArray.Retain(keep func(x StatsGraphError) bool) StatsGraphErrorArray func StatsGraphErrorArray.Sort(less func(a, b StatsGraphError) bool) StatsGraphErrorArray func StatsGraphErrorArray.SortStable(less func(a, b StatsGraphError) bool) StatsGraphErrorArray
StatsGroupTopAdmin represents TL type `statsGroupTopAdmin#d7584c87`. Information about an active admin in a supergroup See https://core.telegram.org/constructor/statsGroupTopAdmin for reference. Number of banned users for statistics¹ period in consideration Links: 1) https://core.telegram.org/api/stats Number of deleted messages for statistics¹ period in consideration Links: 1) https://core.telegram.org/api/stats Number of kicked users for statistics¹ period in consideration Links: 1) https://core.telegram.org/api/stats User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGroupTopAdmin from given interface. GetBanned returns value of Banned field. GetDeleted returns value of Deleted field. GetKicked returns value of Kicked 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. (*StatsGroupTopAdmin) Zero() bool *StatsGroupTopAdmin : github.com/gotd/td/bin.BareDecoder *StatsGroupTopAdmin : github.com/gotd/td/bin.BareEncoder *StatsGroupTopAdmin : github.com/gotd/td/bin.Decoder *StatsGroupTopAdmin : github.com/gotd/td/bin.Encoder *StatsGroupTopAdmin : github.com/gotd/td/bin.Object *StatsGroupTopAdmin : github.com/gotd/td/tdp.Object *StatsGroupTopAdmin : fmt.Stringer func (*StatsMegagroupStats).GetTopAdmins() (value []StatsGroupTopAdmin)
StatsGroupTopInviter represents TL type `statsGroupTopInviter#535f779d`. Information about an active supergroup inviter See https://core.telegram.org/constructor/statsGroupTopInviter for reference. Number of invitations for statistics¹ period in consideration Links: 1) https://core.telegram.org/api/stats User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGroupTopInviter from given interface. GetInvitations returns value of Invitations 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. (*StatsGroupTopInviter) Zero() bool *StatsGroupTopInviter : github.com/gotd/td/bin.BareDecoder *StatsGroupTopInviter : github.com/gotd/td/bin.BareEncoder *StatsGroupTopInviter : github.com/gotd/td/bin.Decoder *StatsGroupTopInviter : github.com/gotd/td/bin.Encoder *StatsGroupTopInviter : github.com/gotd/td/bin.Object *StatsGroupTopInviter : github.com/gotd/td/tdp.Object *StatsGroupTopInviter : fmt.Stringer func (*StatsMegagroupStats).GetTopInviters() (value []StatsGroupTopInviter)
StatsGroupTopPoster represents TL type `statsGroupTopPoster#9d04af9b`. Information about an active user in a supergroup See https://core.telegram.org/constructor/statsGroupTopPoster for reference. Average number of characters per message Number of messages for statistics¹ period in consideration Links: 1) https://core.telegram.org/api/stats User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsGroupTopPoster from given interface. GetAvgChars returns value of AvgChars field. GetMessages returns value of Messages 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. (*StatsGroupTopPoster) Zero() bool *StatsGroupTopPoster : github.com/gotd/td/bin.BareDecoder *StatsGroupTopPoster : github.com/gotd/td/bin.BareEncoder *StatsGroupTopPoster : github.com/gotd/td/bin.Decoder *StatsGroupTopPoster : github.com/gotd/td/bin.Encoder *StatsGroupTopPoster : github.com/gotd/td/bin.Object *StatsGroupTopPoster : github.com/gotd/td/tdp.Object *StatsGroupTopPoster : fmt.Stringer func (*StatsMegagroupStats).GetTopPosters() (value []StatsGroupTopPoster)
StatsLoadAsyncGraphRequest represents TL type `stats.loadAsyncGraph#621d5fa0`. Load channel statistics graph¹ asynchronously Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/method/stats.loadAsyncGraph for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Graph token from statsGraphAsync¹ constructor Links: 1) https://core.telegram.org/constructor/statsGraphAsync Zoom value, if required Use SetX and GetX helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsLoadAsyncGraphRequest from given interface. GetToken returns value of Token field. GetX returns value of X conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetX sets value of X 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. (*StatsLoadAsyncGraphRequest) Zero() bool *StatsLoadAsyncGraphRequest : github.com/gotd/td/bin.BareDecoder *StatsLoadAsyncGraphRequest : github.com/gotd/td/bin.BareEncoder *StatsLoadAsyncGraphRequest : github.com/gotd/td/bin.Decoder *StatsLoadAsyncGraphRequest : github.com/gotd/td/bin.Encoder *StatsLoadAsyncGraphRequest : github.com/gotd/td/bin.Object *StatsLoadAsyncGraphRequest : github.com/gotd/td/tdp.Object *StatsLoadAsyncGraphRequest : fmt.Stringer func (*Client).StatsLoadAsyncGraph(ctx context.Context, request *StatsLoadAsyncGraphRequest) (StatsGraphClass, error)
StatsMegagroupStats represents TL type `stats.megagroupStats#ef7ff916`. Supergroup statistics¹ Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/constructor/stats.megagroupStats for reference. Group activity graph (deleted, modified messages, blocked users) Supergroup growth graph (absolute subscriber count) Subscriber language graph (pie chart) Member count change for period in consideration Members growth (relative subscriber count) Message number change for period in consideration Message activity graph (stacked bar graph, message type) New members by source graph Period in consideration Number of users that posted messages, for range in consideration Info about most active group admins Activity per hour graph (absolute) Info about most active group inviters Info about most active group members Info about users mentioned in statistics Number of users that viewed messages, for range in consideration Activity per day of week graph (absolute) Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsMegagroupStats from given interface. GetActionsGraph returns value of ActionsGraph field. GetGrowthGraph returns value of GrowthGraph field. GetLanguagesGraph returns value of LanguagesGraph field. GetMembers returns value of Members field. GetMembersGraph returns value of MembersGraph field. GetMessages returns value of Messages field. GetMessagesGraph returns value of MessagesGraph field. GetNewMembersBySourceGraph returns value of NewMembersBySourceGraph field. GetPeriod returns value of Period field. GetPosters returns value of Posters field. GetTopAdmins returns value of TopAdmins field. GetTopHoursGraph returns value of TopHoursGraph field. GetTopInviters returns value of TopInviters field. GetTopPosters returns value of TopPosters field. GetUsers returns value of Users field. GetViewers returns value of Viewers field. GetWeekdaysGraph returns value of WeekdaysGraph 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. (*StatsMegagroupStats) Zero() bool *StatsMegagroupStats : github.com/gotd/td/bin.BareDecoder *StatsMegagroupStats : github.com/gotd/td/bin.BareEncoder *StatsMegagroupStats : github.com/gotd/td/bin.Decoder *StatsMegagroupStats : github.com/gotd/td/bin.Encoder *StatsMegagroupStats : github.com/gotd/td/bin.Object *StatsMegagroupStats : github.com/gotd/td/tdp.Object *StatsMegagroupStats : fmt.Stringer func (*Client).StatsGetMegagroupStats(ctx context.Context, request *StatsGetMegagroupStatsRequest) (*StatsMegagroupStats, error)
StatsMessageStats represents TL type `stats.messageStats#7fe91c14`. Message statistics See https://core.telegram.org/constructor/stats.messageStats for reference. A graph containing the number of reactions on stories categorized by emotion Message view graph Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsMessageStats from given interface. GetReactionsByEmotionGraph returns value of ReactionsByEmotionGraph field. GetViewsGraph returns value of ViewsGraph 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. (*StatsMessageStats) Zero() bool *StatsMessageStats : github.com/gotd/td/bin.BareDecoder *StatsMessageStats : github.com/gotd/td/bin.BareEncoder *StatsMessageStats : github.com/gotd/td/bin.Decoder *StatsMessageStats : github.com/gotd/td/bin.Encoder *StatsMessageStats : github.com/gotd/td/bin.Object *StatsMessageStats : github.com/gotd/td/tdp.Object *StatsMessageStats : fmt.Stringer func (*Client).StatsGetMessageStats(ctx context.Context, request *StatsGetMessageStatsRequest) (*StatsMessageStats, error)
StatsPercentValue represents TL type `statsPercentValue#cbce2fe0`. Channel statistics percentage¹. Compute the percentage simply by doing part * total / 100 Links: 1. https://core.telegram.org/api/stats See https://core.telegram.org/constructor/statsPercentValue for reference. Partial value Total value Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsPercentValue from given interface. GetPart returns value of Part field. GetTotal returns value of Total 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. (*StatsPercentValue) Zero() bool *StatsPercentValue : github.com/gotd/td/bin.BareDecoder *StatsPercentValue : github.com/gotd/td/bin.BareEncoder *StatsPercentValue : github.com/gotd/td/bin.Decoder *StatsPercentValue : github.com/gotd/td/bin.Encoder *StatsPercentValue : github.com/gotd/td/bin.Object *StatsPercentValue : github.com/gotd/td/tdp.Object *StatsPercentValue : fmt.Stringer func (*PremiumBoostsStatus).GetPremiumAudience() (value StatsPercentValue, ok bool) func (*StatsBroadcastStats).GetEnabledNotifications() (value StatsPercentValue) func (*PremiumBoostsStatus).SetPremiumAudience(value StatsPercentValue)
StatsPublicForwards represents TL type `stats.publicForwards#93037e20`. Contains info about the forwards of a story¹ as a message to public chats and reposts by public channels. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/stats.publicForwards for reference. Mentioned chats Total number of results Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Info about the forwards of a story. Offset used for pagination¹. Links: 1) https://core.telegram.org/api/offsets Use SetNextOffset and GetNextOffset helpers. Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsPublicForwards from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetForwards returns value of Forwards field. GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapForwards returns field Forwards wrapped in PublicForwardClassArray 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. (*StatsPublicForwards) Zero() bool *StatsPublicForwards : github.com/gotd/td/bin.BareDecoder *StatsPublicForwards : github.com/gotd/td/bin.BareEncoder *StatsPublicForwards : github.com/gotd/td/bin.Decoder *StatsPublicForwards : github.com/gotd/td/bin.Encoder *StatsPublicForwards : github.com/gotd/td/bin.Object *StatsPublicForwards : github.com/gotd/td/tdp.Object *StatsPublicForwards : fmt.Stringer func (*Client).StatsGetMessagePublicForwards(ctx context.Context, request *StatsGetMessagePublicForwardsRequest) (*StatsPublicForwards, error) func (*Client).StatsGetStoryPublicForwards(ctx context.Context, request *StatsGetStoryPublicForwardsRequest) (*StatsPublicForwards, error)
StatsStoryStats represents TL type `stats.storyStats#50cd067c`. Contains statistics¹ about a story². Links: 1. https://core.telegram.org/api/stats 2. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/stats.storyStats for reference. A graph containing the number of reactions on stories categorized by emotion Message view graph Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsStoryStats from given interface. GetReactionsByEmotionGraph returns value of ReactionsByEmotionGraph field. GetViewsGraph returns value of ViewsGraph 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. (*StatsStoryStats) Zero() bool *StatsStoryStats : github.com/gotd/td/bin.BareDecoder *StatsStoryStats : github.com/gotd/td/bin.BareEncoder *StatsStoryStats : github.com/gotd/td/bin.Decoder *StatsStoryStats : github.com/gotd/td/bin.Encoder *StatsStoryStats : github.com/gotd/td/bin.Object *StatsStoryStats : github.com/gotd/td/tdp.Object *StatsStoryStats : fmt.Stringer func (*Client).StatsGetStoryStats(ctx context.Context, request *StatsGetStoryStatsRequest) (*StatsStoryStats, error)
StatsURL represents TL type `statsURL#47a971e0`. URL with chat statistics See https://core.telegram.org/constructor/statsURL for reference. The URL to open Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StatsURL from given interface. 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. (*StatsURL) Zero() bool *StatsURL : github.com/gotd/td/bin.BareDecoder *StatsURL : github.com/gotd/td/bin.BareEncoder *StatsURL : github.com/gotd/td/bin.Decoder *StatsURL : github.com/gotd/td/bin.Encoder *StatsURL : github.com/gotd/td/bin.Object *StatsURL : github.com/gotd/td/tdp.Object *StatsURL : fmt.Stringer
StickerKeyword represents TL type `stickerKeyword#fcfeb29c`. Keywords for a certain sticker See https://core.telegram.org/constructor/stickerKeyword for reference. Sticker ID Keywords Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickerKeyword from given interface. GetDocumentID returns value of DocumentID field. GetKeyword returns value of Keyword 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. (*StickerKeyword) Zero() bool *StickerKeyword : github.com/gotd/td/bin.BareDecoder *StickerKeyword : github.com/gotd/td/bin.BareEncoder *StickerKeyword : github.com/gotd/td/bin.Decoder *StickerKeyword : github.com/gotd/td/bin.Encoder *StickerKeyword : github.com/gotd/td/bin.Object *StickerKeyword : github.com/gotd/td/tdp.Object *StickerKeyword : fmt.Stringer func (*MessagesStickerSet).GetKeywords() (value []StickerKeyword) func (*StickerSetFullCovered).GetKeywords() (value []StickerKeyword)
StickerPack represents TL type `stickerPack#12b299d4`. A stickerpack is a group of stickers associated to the same emoji. It is not a sticker pack the way it is usually intended, you may be looking for a StickerSet¹. Links: 1. https://core.telegram.org/type/StickerSet See https://core.telegram.org/constructor/stickerPack for reference. Stickers Emoji Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickerPack from given interface. GetDocuments returns value of Documents field. GetEmoticon returns value of Emoticon 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. (*StickerPack) Zero() bool *StickerPack : github.com/gotd/td/bin.BareDecoder *StickerPack : github.com/gotd/td/bin.BareEncoder *StickerPack : github.com/gotd/td/bin.Decoder *StickerPack : github.com/gotd/td/bin.Encoder *StickerPack : github.com/gotd/td/bin.Object *StickerPack : github.com/gotd/td/tdp.Object *StickerPack : fmt.Stringer func (*MessagesFavedStickers).GetPacks() (value []StickerPack) func (*MessagesRecentStickers).GetPacks() (value []StickerPack) func (*MessagesStickerSet).GetPacks() (value []StickerPack) func (*StickerSetFullCovered).GetPacks() (value []StickerPack)
StickersAddStickerToSetRequest represents TL type `stickers.addStickerToSet#8653febe`. Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot. See https://core.telegram.org/method/stickers.addStickerToSet for reference. The sticker The stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersAddStickerToSetRequest from given interface. GetSticker returns value of Sticker field. GetStickerset returns value of Stickerset 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. (*StickersAddStickerToSetRequest) Zero() bool *StickersAddStickerToSetRequest : github.com/gotd/td/bin.BareDecoder *StickersAddStickerToSetRequest : github.com/gotd/td/bin.BareEncoder *StickersAddStickerToSetRequest : github.com/gotd/td/bin.Decoder *StickersAddStickerToSetRequest : github.com/gotd/td/bin.Encoder *StickersAddStickerToSetRequest : github.com/gotd/td/bin.Object *StickersAddStickerToSetRequest : github.com/gotd/td/tdp.Object *StickersAddStickerToSetRequest : fmt.Stringer func (*Client).StickersAddStickerToSet(ctx context.Context, request *StickersAddStickerToSetRequest) (MessagesStickerSetClass, error)
StickersChangeStickerPositionRequest represents TL type `stickers.changeStickerPosition#ffb6d4ca`. Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot See https://core.telegram.org/method/stickers.changeStickerPosition for reference. The new position of the sticker, zero-based The sticker Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersChangeStickerPositionRequest from given interface. GetPosition returns value of Position field. GetSticker returns value of Sticker field. GetStickerAsNotEmpty returns mapped value of Sticker 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. (*StickersChangeStickerPositionRequest) Zero() bool *StickersChangeStickerPositionRequest : github.com/gotd/td/bin.BareDecoder *StickersChangeStickerPositionRequest : github.com/gotd/td/bin.BareEncoder *StickersChangeStickerPositionRequest : github.com/gotd/td/bin.Decoder *StickersChangeStickerPositionRequest : github.com/gotd/td/bin.Encoder *StickersChangeStickerPositionRequest : github.com/gotd/td/bin.Object *StickersChangeStickerPositionRequest : github.com/gotd/td/tdp.Object *StickersChangeStickerPositionRequest : fmt.Stringer func (*Client).StickersChangeStickerPosition(ctx context.Context, request *StickersChangeStickerPositionRequest) (MessagesStickerSetClass, error)
StickersChangeStickerRequest represents TL type `stickers.changeSticker#f5537ebc`. Update the keywords, emojis or mask coordinates¹ of a sticker, bots only. Links: 1. https://core.telegram.org/api/stickers#mask-stickers See https://core.telegram.org/method/stickers.changeSticker for reference. If set, updates the emoji list associated to the sticker Use SetEmoji and GetEmoji helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers. Use SetKeywords and GetKeywords helpers. If set, updates the mask coordinates¹ Links: 1) https://core.telegram.org/api/stickers#mask-stickers Use SetMaskCoords and GetMaskCoords helpers. The sticker Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersChangeStickerRequest from given interface. GetEmoji returns value of Emoji conditional field and boolean which is true if field was set. GetKeywords returns value of Keywords conditional field and boolean which is true if field was set. GetMaskCoords returns value of MaskCoords conditional field and boolean which is true if field was set. GetSticker returns value of Sticker field. GetStickerAsNotEmpty returns mapped value of Sticker field. SetEmoji sets value of Emoji conditional field. SetFlags sets flags for non-zero fields. SetKeywords sets value of Keywords conditional field. SetMaskCoords sets value of MaskCoords 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. (*StickersChangeStickerRequest) Zero() bool *StickersChangeStickerRequest : github.com/gotd/td/bin.BareDecoder *StickersChangeStickerRequest : github.com/gotd/td/bin.BareEncoder *StickersChangeStickerRequest : github.com/gotd/td/bin.Decoder *StickersChangeStickerRequest : github.com/gotd/td/bin.Encoder *StickersChangeStickerRequest : github.com/gotd/td/bin.Object *StickersChangeStickerRequest : github.com/gotd/td/tdp.Object *StickersChangeStickerRequest : fmt.Stringer func (*Client).StickersChangeSticker(ctx context.Context, request *StickersChangeStickerRequest) (MessagesStickerSetClass, error)
StickersCheckShortNameRequest represents TL type `stickers.checkShortName#284b3639`. Check whether the given short name is available See https://core.telegram.org/method/stickers.checkShortName for reference. Short name from a stickerset deep link »¹ Links: 1) https://core.telegram.org/api/links#stickerset-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersCheckShortNameRequest from given interface. GetShortName returns value of ShortName 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. (*StickersCheckShortNameRequest) Zero() bool *StickersCheckShortNameRequest : github.com/gotd/td/bin.BareDecoder *StickersCheckShortNameRequest : github.com/gotd/td/bin.BareEncoder *StickersCheckShortNameRequest : github.com/gotd/td/bin.Decoder *StickersCheckShortNameRequest : github.com/gotd/td/bin.Encoder *StickersCheckShortNameRequest : github.com/gotd/td/bin.Object *StickersCheckShortNameRequest : github.com/gotd/td/tdp.Object *StickersCheckShortNameRequest : fmt.Stringer
StickersCreateStickerSetRequest represents TL type `stickers.createStickerSet#9021ab67`. Create a stickerset, bots only. See https://core.telegram.org/method/stickers.createStickerSet for reference. Whether this is an animated stickerset Whether this is a custom emoji¹ stickerset. Links: 1) https://core.telegram.org/api/custom-emoji Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this is a mask stickerset Short name of sticker set, to be used in sticker deep links »¹. Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and, if called by a bot, must end in "_by_<bot_username>". <bot_username> is case insensitive. 1-64 characters. Links: 1) https://core.telegram.org/api/links#stickerset-links Used when importing stickers using the sticker import SDKs¹, specifies the name of the software that created the stickers Links: 1) https://core.telegram.org/import-stickers Use SetSoftware and GetSoftware helpers. Stickers Whether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only. Thumbnail Use SetThumb and GetThumb helpers. Stickerset name, 1-64 chars Stickerset owner Whether this is a video stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersCreateStickerSetRequest from given interface. GetAnimated returns value of Animated conditional field. GetEmojis returns value of Emojis conditional field. GetMasks returns value of Masks conditional field. GetShortName returns value of ShortName field. GetSoftware returns value of Software conditional field and boolean which is true if field was set. GetStickers returns value of Stickers field. GetTextColor returns value of TextColor conditional field. GetThumb returns value of Thumb conditional field and boolean which is true if field was set. GetThumbAsNotEmpty returns mapped value of Thumb conditional field and boolean which is true if field was set. GetTitle returns value of Title field. GetUserID returns value of UserID field. GetVideos returns value of Videos conditional field. SetAnimated sets value of Animated conditional field. SetEmojis sets value of Emojis conditional field. SetFlags sets flags for non-zero fields. SetMasks sets value of Masks conditional field. SetSoftware sets value of Software conditional field. SetTextColor sets value of TextColor conditional field. SetThumb sets value of Thumb 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. (*StickersCreateStickerSetRequest) Zero() bool *StickersCreateStickerSetRequest : github.com/gotd/td/bin.BareDecoder *StickersCreateStickerSetRequest : github.com/gotd/td/bin.BareEncoder *StickersCreateStickerSetRequest : github.com/gotd/td/bin.Decoder *StickersCreateStickerSetRequest : github.com/gotd/td/bin.Encoder *StickersCreateStickerSetRequest : github.com/gotd/td/bin.Object *StickersCreateStickerSetRequest : github.com/gotd/td/tdp.Object *StickersCreateStickerSetRequest : fmt.Stringer func (*Client).StickersCreateStickerSet(ctx context.Context, request *StickersCreateStickerSetRequest) (MessagesStickerSetClass, error)
StickersDeleteStickerSetRequest represents TL type `stickers.deleteStickerSet#87704394`. Deletes a stickerset we created, bots only. See https://core.telegram.org/method/stickers.deleteStickerSet for reference. The stickerset to uninstall Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersDeleteStickerSetRequest from given interface. GetStickerset returns value of Stickerset 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. (*StickersDeleteStickerSetRequest) Zero() bool *StickersDeleteStickerSetRequest : github.com/gotd/td/bin.BareDecoder *StickersDeleteStickerSetRequest : github.com/gotd/td/bin.BareEncoder *StickersDeleteStickerSetRequest : github.com/gotd/td/bin.Decoder *StickersDeleteStickerSetRequest : github.com/gotd/td/bin.Encoder *StickersDeleteStickerSetRequest : github.com/gotd/td/bin.Object *StickersDeleteStickerSetRequest : github.com/gotd/td/tdp.Object *StickersDeleteStickerSetRequest : fmt.Stringer
StickerSet represents TL type `stickerSet#2dd14edc`. Represents a stickerset (stickerpack) See https://core.telegram.org/constructor/stickerSet for reference. Access hash of stickerset Is this an animated stickerpack Whether this stickerset was archived (due to too many saved stickers in the current account) ChannelEmojiStatus field of StickerSet. Number of stickers in pack This is a custom emoji stickerset Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Hash ID of the stickerset When was this stickerset installed Use SetInstalledDate and GetInstalledDate helpers. Is this a mask stickerset Is this stickerset official Short name of stickerset, used when sharing stickerset using stickerset deep links¹. Links: 1) https://core.telegram.org/api/links#stickerset-links Whether the color of this TGS custom emoji stickerset should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. DC ID of thumbnail Use SetThumbDCID and GetThumbDCID helpers. Document ID of custom emoji thumbnail, fetch the document using messages getCustomEmojiDocuments¹ Links: 1) https://core.telegram.org/method/messages.getCustomEmojiDocuments Use SetThumbDocumentID and GetThumbDocumentID helpers. Thumbnail version Use SetThumbVersion and GetThumbVersion helpers. Stickerset thumbnail Use SetThumbs and GetThumbs helpers. Title of stickerset Is this a video stickerpack Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickerSet from given interface. GetAccessHash returns value of AccessHash field. GetAnimated returns value of Animated conditional field. GetArchived returns value of Archived conditional field. GetChannelEmojiStatus returns value of ChannelEmojiStatus conditional field. GetCount returns value of Count field. GetEmojis returns value of Emojis conditional field. GetHash returns value of Hash field. GetID returns value of ID field. GetInstalledDate returns value of InstalledDate conditional field and boolean which is true if field was set. GetMasks returns value of Masks conditional field. GetOfficial returns value of Official conditional field. GetShortName returns value of ShortName field. GetTextColor returns value of TextColor conditional field. GetThumbDCID returns value of ThumbDCID conditional field and boolean which is true if field was set. GetThumbDocumentID returns value of ThumbDocumentID conditional field and boolean which is true if field was set. GetThumbVersion returns value of ThumbVersion conditional field and boolean which is true if field was set. GetThumbs returns value of Thumbs conditional field and boolean which is true if field was set. GetTitle returns value of Title field. GetVideos returns value of Videos conditional field. MapThumbs returns field Thumbs wrapped in PhotoSizeClassArray helper. SetAnimated sets value of Animated conditional field. SetArchived sets value of Archived conditional field. SetChannelEmojiStatus sets value of ChannelEmojiStatus conditional field. SetEmojis sets value of Emojis conditional field. SetFlags sets flags for non-zero fields. SetInstalledDate sets value of InstalledDate conditional field. SetMasks sets value of Masks conditional field. SetOfficial sets value of Official conditional field. SetTextColor sets value of TextColor conditional field. SetThumbDCID sets value of ThumbDCID conditional field. SetThumbDocumentID sets value of ThumbDocumentID conditional field. SetThumbVersion sets value of ThumbVersion conditional field. SetThumbs sets value of Thumbs 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. (*StickerSet) Zero() bool *StickerSet : github.com/gotd/td/bin.BareDecoder *StickerSet : github.com/gotd/td/bin.BareEncoder *StickerSet : github.com/gotd/td/bin.Decoder *StickerSet : github.com/gotd/td/bin.Encoder *StickerSet : github.com/gotd/td/bin.Object *StickerSet : github.com/gotd/td/tdp.Object *StickerSet : fmt.Stringer func (*ChannelFull).GetStickerset() (value StickerSet, ok bool) func (*MessagesAllStickers).GetSets() (value []StickerSet) func (*MessagesStickerSet).GetSet() (value StickerSet) func (*StickerSetCovered).GetSet() (value StickerSet) func StickerSetCoveredClass.GetSet() (value StickerSet) func (*StickerSetFullCovered).GetSet() (value StickerSet) func (*StickerSetMultiCovered).GetSet() (value StickerSet) func (*StickerSetNoCovered).GetSet() (value StickerSet) func (*ChannelFull).SetStickerset(value StickerSet)
StickerSetCovered represents TL type `stickerSetCovered#6410a5d2`. Stickerset with a single sticker as preview See https://core.telegram.org/constructor/stickerSetCovered for reference. Preview Stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickerSetCovered from given interface. GetCover returns value of Cover field. GetSet returns value of Set 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. (*StickerSetCovered) Zero() bool *StickerSetCovered : StickerSetCoveredClass *StickerSetCovered : github.com/gotd/td/bin.BareDecoder *StickerSetCovered : github.com/gotd/td/bin.BareEncoder *StickerSetCovered : github.com/gotd/td/bin.Decoder *StickerSetCovered : github.com/gotd/td/bin.Encoder *StickerSetCovered : github.com/gotd/td/bin.Object *StickerSetCovered : github.com/gotd/td/tdp.Object *StickerSetCovered : fmt.Stringer func StickerSetCoveredArray.First() (v StickerSetCovered, ok bool) func StickerSetCoveredArray.Last() (v StickerSetCovered, ok bool) func (*StickerSetCoveredArray).Pop() (v StickerSetCovered, ok bool) func (*StickerSetCoveredArray).PopFirst() (v StickerSetCovered, ok bool)
StickerSetCoveredArray is adapter for slice of StickerSetCovered. 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 StickerSetCovered. Sort sorts slice of StickerSetCovered. SortStable sorts slice of StickerSetCovered. func StickerSetCoveredArray.Retain(keep func(x StickerSetCovered) bool) StickerSetCoveredArray func StickerSetCoveredArray.Sort(less func(a, b StickerSetCovered) bool) StickerSetCoveredArray func StickerSetCoveredArray.SortStable(less func(a, b StickerSetCovered) bool) StickerSetCoveredArray func StickerSetCoveredClassArray.AsStickerSetCovered() (to StickerSetCoveredArray)
StickerSetCovered boxes the StickerSetCoveredClass providing a helper. StickerSetCovered StickerSetCoveredClass Decode implements bin.Decoder for StickerSetCoveredBox. Encode implements bin.Encode for StickerSetCoveredBox. *StickerSetCoveredBox : github.com/gotd/td/bin.Decoder *StickerSetCoveredBox : github.com/gotd/td/bin.Encoder *StickerSetCoveredBox : github.com/gotd/td/bin.Object
StickerSetCoveredClass represents StickerSetCovered generic type. See https://core.telegram.org/type/StickerSetCovered for reference. Example: g, err := tg.DecodeStickerSetCovered(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.StickerSetCovered: // stickerSetCovered#6410a5d2 case *tg.StickerSetMultiCovered: // stickerSetMultiCovered#3407e51b case *tg.StickerSetFullCovered: // stickerSetFullCovered#40d13c0e case *tg.StickerSetNoCovered: // stickerSetNoCovered#77b15d1c default: panic(v) } ( StickerSetCoveredClass) Decode(b *bin.Buffer) error ( StickerSetCoveredClass) DecodeBare(b *bin.Buffer) error ( StickerSetCoveredClass) Encode(b *bin.Buffer) error ( StickerSetCoveredClass) EncodeBare(b *bin.Buffer) error Stickerset 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. *StickerSetCovered *StickerSetFullCovered *StickerSetMultiCovered *StickerSetNoCovered StickerSetCoveredClass : github.com/gotd/td/bin.BareDecoder StickerSetCoveredClass : github.com/gotd/td/bin.BareEncoder StickerSetCoveredClass : github.com/gotd/td/bin.Decoder StickerSetCoveredClass : github.com/gotd/td/bin.Encoder StickerSetCoveredClass : github.com/gotd/td/bin.Object StickerSetCoveredClass : fmt.Stringer func DecodeStickerSetCovered(buf *bin.Buffer) (StickerSetCoveredClass, error) func (*Client).MessagesGetAttachedStickers(ctx context.Context, media InputStickeredMediaClass) ([]StickerSetCoveredClass, error) func (*MessagesArchivedStickers).GetSets() (value []StickerSetCoveredClass) func (*MessagesFeaturedStickers).GetSets() (value []StickerSetCoveredClass) func (*MessagesFoundStickerSets).GetSets() (value []StickerSetCoveredClass) func (*MessagesStickerSetInstallResultArchive).GetSets() (value []StickerSetCoveredClass) func (*RecentMeURLStickerSet).GetSet() (value StickerSetCoveredClass) func StickerSetCoveredClassArray.First() (v StickerSetCoveredClass, ok bool) func StickerSetCoveredClassArray.Last() (v StickerSetCoveredClass, ok bool) func (*StickerSetCoveredClassArray).Pop() (v StickerSetCoveredClass, ok bool) func (*StickerSetCoveredClassArray).PopFirst() (v StickerSetCoveredClass, ok bool) func (*StickerSetCoveredClassVector).GetElems() (value []StickerSetCoveredClass)
StickerSetCoveredClassArray is adapter for slice of StickerSetCoveredClass. AsStickerSetCovered returns copy with only StickerSetCovered constructors. AsStickerSetFullCovered returns copy with only StickerSetFullCovered constructors. AsStickerSetMultiCovered returns copy with only StickerSetMultiCovered constructors. AsStickerSetNoCovered returns copy with only StickerSetNoCovered 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 StickerSetCoveredClass. Sort sorts slice of StickerSetCoveredClass. SortStable sorts slice of StickerSetCoveredClass. func (*MessagesArchivedStickers).MapSets() (value StickerSetCoveredClassArray) func (*MessagesFeaturedStickers).MapSets() (value StickerSetCoveredClassArray) func (*MessagesFoundStickerSets).MapSets() (value StickerSetCoveredClassArray) func (*MessagesStickerSetInstallResultArchive).MapSets() (value StickerSetCoveredClassArray) func StickerSetCoveredClassArray.Retain(keep func(x StickerSetCoveredClass) bool) StickerSetCoveredClassArray func StickerSetCoveredClassArray.Sort(less func(a, b StickerSetCoveredClass) bool) StickerSetCoveredClassArray func StickerSetCoveredClassArray.SortStable(less func(a, b StickerSetCoveredClass) bool) StickerSetCoveredClassArray func (*StickerSetCoveredClassVector).MapElems() (value StickerSetCoveredClassArray)
StickerSetCoveredClassVector is a box for Vector<StickerSetCovered> Elements of Vector<StickerSetCovered> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickerSetCoveredClassVector from given interface. GetElems returns value of Elems field. MapElems returns field Elems wrapped in StickerSetCoveredClassArray 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. (*StickerSetCoveredClassVector) Zero() bool *StickerSetCoveredClassVector : github.com/gotd/td/bin.BareDecoder *StickerSetCoveredClassVector : github.com/gotd/td/bin.BareEncoder *StickerSetCoveredClassVector : github.com/gotd/td/bin.Decoder *StickerSetCoveredClassVector : github.com/gotd/td/bin.Encoder *StickerSetCoveredClassVector : github.com/gotd/td/bin.Object *StickerSetCoveredClassVector : github.com/gotd/td/tdp.Object *StickerSetCoveredClassVector : fmt.Stringer
StickerSetFullCovered represents TL type `stickerSetFullCovered#40d13c0e`. Stickerset preview with all stickers of the stickerset included. Currently used only for custom emoji stickersets¹, to avoid a further call to messages.getStickerSet². Links: 1. https://core.telegram.org/api/custom-emoji 2. https://core.telegram.org/method/messages.getStickerSet See https://core.telegram.org/constructor/stickerSetFullCovered for reference. Stickers in stickerset Keywords for some or every sticker in the stickerset. Emoji info for stickers The stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickerSetFullCovered from given interface. GetDocuments returns value of Documents field. GetKeywords returns value of Keywords field. GetPacks returns value of Packs field. GetSet returns value of Set field. MapDocuments returns field Documents 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. (*StickerSetFullCovered) Zero() bool *StickerSetFullCovered : StickerSetCoveredClass *StickerSetFullCovered : github.com/gotd/td/bin.BareDecoder *StickerSetFullCovered : github.com/gotd/td/bin.BareEncoder *StickerSetFullCovered : github.com/gotd/td/bin.Decoder *StickerSetFullCovered : github.com/gotd/td/bin.Encoder *StickerSetFullCovered : github.com/gotd/td/bin.Object *StickerSetFullCovered : github.com/gotd/td/tdp.Object *StickerSetFullCovered : fmt.Stringer func StickerSetFullCoveredArray.First() (v StickerSetFullCovered, ok bool) func StickerSetFullCoveredArray.Last() (v StickerSetFullCovered, ok bool) func (*StickerSetFullCoveredArray).Pop() (v StickerSetFullCovered, ok bool) func (*StickerSetFullCoveredArray).PopFirst() (v StickerSetFullCovered, ok bool)
StickerSetFullCoveredArray is adapter for slice of StickerSetFullCovered. 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 StickerSetFullCovered. Sort sorts slice of StickerSetFullCovered. SortStable sorts slice of StickerSetFullCovered. func StickerSetCoveredClassArray.AsStickerSetFullCovered() (to StickerSetFullCoveredArray) func StickerSetFullCoveredArray.Retain(keep func(x StickerSetFullCovered) bool) StickerSetFullCoveredArray func StickerSetFullCoveredArray.Sort(less func(a, b StickerSetFullCovered) bool) StickerSetFullCoveredArray func StickerSetFullCoveredArray.SortStable(less func(a, b StickerSetFullCovered) bool) StickerSetFullCoveredArray
StickerSetMultiCovered represents TL type `stickerSetMultiCovered#3407e51b`. Stickerset, with multiple stickers as preview See https://core.telegram.org/constructor/stickerSetMultiCovered for reference. Preview stickers Stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickerSetMultiCovered from given interface. GetCovers returns value of Covers field. GetSet returns value of Set field. MapCovers returns field Covers 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. (*StickerSetMultiCovered) Zero() bool *StickerSetMultiCovered : StickerSetCoveredClass *StickerSetMultiCovered : github.com/gotd/td/bin.BareDecoder *StickerSetMultiCovered : github.com/gotd/td/bin.BareEncoder *StickerSetMultiCovered : github.com/gotd/td/bin.Decoder *StickerSetMultiCovered : github.com/gotd/td/bin.Encoder *StickerSetMultiCovered : github.com/gotd/td/bin.Object *StickerSetMultiCovered : github.com/gotd/td/tdp.Object *StickerSetMultiCovered : fmt.Stringer func StickerSetMultiCoveredArray.First() (v StickerSetMultiCovered, ok bool) func StickerSetMultiCoveredArray.Last() (v StickerSetMultiCovered, ok bool) func (*StickerSetMultiCoveredArray).Pop() (v StickerSetMultiCovered, ok bool) func (*StickerSetMultiCoveredArray).PopFirst() (v StickerSetMultiCovered, ok bool)
StickerSetMultiCoveredArray is adapter for slice of StickerSetMultiCovered. 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 StickerSetMultiCovered. Sort sorts slice of StickerSetMultiCovered. SortStable sorts slice of StickerSetMultiCovered. func StickerSetCoveredClassArray.AsStickerSetMultiCovered() (to StickerSetMultiCoveredArray) func StickerSetMultiCoveredArray.Retain(keep func(x StickerSetMultiCovered) bool) StickerSetMultiCoveredArray func StickerSetMultiCoveredArray.Sort(less func(a, b StickerSetMultiCovered) bool) StickerSetMultiCoveredArray func StickerSetMultiCoveredArray.SortStable(less func(a, b StickerSetMultiCovered) bool) StickerSetMultiCoveredArray
StickerSetNoCovered represents TL type `stickerSetNoCovered#77b15d1c`. Just the stickerset information, with no previews. See https://core.telegram.org/constructor/stickerSetNoCovered for reference. Stickerset information. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickerSetNoCovered from given interface. GetSet returns value of Set 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. (*StickerSetNoCovered) Zero() bool *StickerSetNoCovered : StickerSetCoveredClass *StickerSetNoCovered : github.com/gotd/td/bin.BareDecoder *StickerSetNoCovered : github.com/gotd/td/bin.BareEncoder *StickerSetNoCovered : github.com/gotd/td/bin.Decoder *StickerSetNoCovered : github.com/gotd/td/bin.Encoder *StickerSetNoCovered : github.com/gotd/td/bin.Object *StickerSetNoCovered : github.com/gotd/td/tdp.Object *StickerSetNoCovered : fmt.Stringer func StickerSetNoCoveredArray.First() (v StickerSetNoCovered, ok bool) func StickerSetNoCoveredArray.Last() (v StickerSetNoCovered, ok bool) func (*StickerSetNoCoveredArray).Pop() (v StickerSetNoCovered, ok bool) func (*StickerSetNoCoveredArray).PopFirst() (v StickerSetNoCovered, ok bool)
StickerSetNoCoveredArray is adapter for slice of StickerSetNoCovered. 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 StickerSetNoCovered. Sort sorts slice of StickerSetNoCovered. SortStable sorts slice of StickerSetNoCovered. func StickerSetCoveredClassArray.AsStickerSetNoCovered() (to StickerSetNoCoveredArray) func StickerSetNoCoveredArray.Retain(keep func(x StickerSetNoCovered) bool) StickerSetNoCoveredArray func StickerSetNoCoveredArray.Sort(less func(a, b StickerSetNoCovered) bool) StickerSetNoCoveredArray func StickerSetNoCoveredArray.SortStable(less func(a, b StickerSetNoCovered) bool) StickerSetNoCoveredArray
StickerSetsHandler is a StickerSets event handler. func UpdateDispatcher.OnStickerSets(handler StickerSetsHandler)
StickerSetsOrderHandler is a StickerSetsOrder event handler. func UpdateDispatcher.OnStickerSetsOrder(handler StickerSetsOrderHandler)
StickersRemoveStickerFromSetRequest represents TL type `stickers.removeStickerFromSet#f7760f51`. Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot. See https://core.telegram.org/method/stickers.removeStickerFromSet for reference. The sticker to remove Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersRemoveStickerFromSetRequest from given interface. GetSticker returns value of Sticker field. GetStickerAsNotEmpty returns mapped value of Sticker 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. (*StickersRemoveStickerFromSetRequest) Zero() bool *StickersRemoveStickerFromSetRequest : github.com/gotd/td/bin.BareDecoder *StickersRemoveStickerFromSetRequest : github.com/gotd/td/bin.BareEncoder *StickersRemoveStickerFromSetRequest : github.com/gotd/td/bin.Decoder *StickersRemoveStickerFromSetRequest : github.com/gotd/td/bin.Encoder *StickersRemoveStickerFromSetRequest : github.com/gotd/td/bin.Object *StickersRemoveStickerFromSetRequest : github.com/gotd/td/tdp.Object *StickersRemoveStickerFromSetRequest : fmt.Stringer
StickersRenameStickerSetRequest represents TL type `stickers.renameStickerSet#124b1c00`. Renames a stickerset, bots only. See https://core.telegram.org/method/stickers.renameStickerSet for reference. Stickerset to rename New stickerset title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersRenameStickerSetRequest from given interface. GetStickerset returns value of Stickerset field. GetTitle returns value of Title 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. (*StickersRenameStickerSetRequest) Zero() bool *StickersRenameStickerSetRequest : github.com/gotd/td/bin.BareDecoder *StickersRenameStickerSetRequest : github.com/gotd/td/bin.BareEncoder *StickersRenameStickerSetRequest : github.com/gotd/td/bin.Decoder *StickersRenameStickerSetRequest : github.com/gotd/td/bin.Encoder *StickersRenameStickerSetRequest : github.com/gotd/td/bin.Object *StickersRenameStickerSetRequest : github.com/gotd/td/tdp.Object *StickersRenameStickerSetRequest : fmt.Stringer func (*Client).StickersRenameStickerSet(ctx context.Context, request *StickersRenameStickerSetRequest) (MessagesStickerSetClass, error)
StickersSetStickerSetThumbRequest represents TL type `stickers.setStickerSetThumb#a76a5392`. Set stickerset thumbnail See https://core.telegram.org/method/stickers.setStickerSetThumb for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Stickerset Thumbnail (only for normal stickersets, not custom emoji stickersets). Use SetThumb and GetThumb helpers. Only for custom emoji stickersets¹, ID of a custom emoji present in the set to use as thumbnail; pass 0 to fallback to the first custom emoji of the set. Links: 1) https://core.telegram.org/api/custom-emoji Use SetThumbDocumentID and GetThumbDocumentID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersSetStickerSetThumbRequest from given interface. GetStickerset returns value of Stickerset field. GetThumb returns value of Thumb conditional field and boolean which is true if field was set. GetThumbAsNotEmpty returns mapped value of Thumb conditional field and boolean which is true if field was set. GetThumbDocumentID returns value of ThumbDocumentID 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. SetThumbDocumentID sets value of ThumbDocumentID 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. (*StickersSetStickerSetThumbRequest) Zero() bool *StickersSetStickerSetThumbRequest : github.com/gotd/td/bin.BareDecoder *StickersSetStickerSetThumbRequest : github.com/gotd/td/bin.BareEncoder *StickersSetStickerSetThumbRequest : github.com/gotd/td/bin.Decoder *StickersSetStickerSetThumbRequest : github.com/gotd/td/bin.Encoder *StickersSetStickerSetThumbRequest : github.com/gotd/td/bin.Object *StickersSetStickerSetThumbRequest : github.com/gotd/td/tdp.Object *StickersSetStickerSetThumbRequest : fmt.Stringer func (*Client).StickersSetStickerSetThumb(ctx context.Context, request *StickersSetStickerSetThumbRequest) (MessagesStickerSetClass, error)
StickersSuggestedShortName represents TL type `stickers.suggestedShortName#85fea03f`. A suggested short name for a stickerpack See https://core.telegram.org/constructor/stickers.suggestedShortName for reference. Short name from a stickerset deep link »¹ Links: 1) https://core.telegram.org/api/links#stickerset-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersSuggestedShortName from given interface. GetShortName returns value of ShortName 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. (*StickersSuggestedShortName) Zero() bool *StickersSuggestedShortName : github.com/gotd/td/bin.BareDecoder *StickersSuggestedShortName : github.com/gotd/td/bin.BareEncoder *StickersSuggestedShortName : github.com/gotd/td/bin.Decoder *StickersSuggestedShortName : github.com/gotd/td/bin.Encoder *StickersSuggestedShortName : github.com/gotd/td/bin.Object *StickersSuggestedShortName : github.com/gotd/td/tdp.Object *StickersSuggestedShortName : fmt.Stringer func (*Client).StickersSuggestShortName(ctx context.Context, title string) (*StickersSuggestedShortName, error)
StickersSuggestShortNameRequest represents TL type `stickers.suggestShortName#4dafc503`. Suggests a short name for a given stickerpack name See https://core.telegram.org/method/stickers.suggestShortName for reference. New group name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StickersSuggestShortNameRequest from given interface. GetTitle returns value of Title 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. (*StickersSuggestShortNameRequest) Zero() bool *StickersSuggestShortNameRequest : github.com/gotd/td/bin.BareDecoder *StickersSuggestShortNameRequest : github.com/gotd/td/bin.BareEncoder *StickersSuggestShortNameRequest : github.com/gotd/td/bin.Decoder *StickersSuggestShortNameRequest : github.com/gotd/td/bin.Encoder *StickersSuggestShortNameRequest : github.com/gotd/td/bin.Object *StickersSuggestShortNameRequest : github.com/gotd/td/tdp.Object *StickersSuggestShortNameRequest : fmt.Stringer
StorageFileGif represents TL type `storage.fileGif#cae1aadf`. GIF image. MIME type: image/gif. See https://core.telegram.org/constructor/storage.fileGif 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. (*StorageFileGif) Zero() bool *StorageFileGif : StorageFileTypeClass *StorageFileGif : github.com/gotd/td/bin.BareDecoder *StorageFileGif : github.com/gotd/td/bin.BareEncoder *StorageFileGif : github.com/gotd/td/bin.Decoder *StorageFileGif : github.com/gotd/td/bin.Encoder *StorageFileGif : github.com/gotd/td/bin.Object *StorageFileGif : github.com/gotd/td/tdp.Object *StorageFileGif : fmt.Stringer
StorageFileJpeg represents TL type `storage.fileJpeg#7efe0e`. JPEG image. MIME type: image/jpeg. See https://core.telegram.org/constructor/storage.fileJpeg 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. (*StorageFileJpeg) Zero() bool *StorageFileJpeg : StorageFileTypeClass *StorageFileJpeg : github.com/gotd/td/bin.BareDecoder *StorageFileJpeg : github.com/gotd/td/bin.BareEncoder *StorageFileJpeg : github.com/gotd/td/bin.Decoder *StorageFileJpeg : github.com/gotd/td/bin.Encoder *StorageFileJpeg : github.com/gotd/td/bin.Object *StorageFileJpeg : github.com/gotd/td/tdp.Object *StorageFileJpeg : fmt.Stringer
StorageFileMov represents TL type `storage.fileMov#4b09ebbc`. Quicktime video. MIME type: video/quicktime. See https://core.telegram.org/constructor/storage.fileMov 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. (*StorageFileMov) Zero() bool *StorageFileMov : StorageFileTypeClass *StorageFileMov : github.com/gotd/td/bin.BareDecoder *StorageFileMov : github.com/gotd/td/bin.BareEncoder *StorageFileMov : github.com/gotd/td/bin.Decoder *StorageFileMov : github.com/gotd/td/bin.Encoder *StorageFileMov : github.com/gotd/td/bin.Object *StorageFileMov : github.com/gotd/td/tdp.Object *StorageFileMov : fmt.Stringer
StorageFileMp3 represents TL type `storage.fileMp3#528a0677`. Mp3 audio. MIME type: audio/mpeg. See https://core.telegram.org/constructor/storage.fileMp3 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. (*StorageFileMp3) Zero() bool *StorageFileMp3 : StorageFileTypeClass *StorageFileMp3 : github.com/gotd/td/bin.BareDecoder *StorageFileMp3 : github.com/gotd/td/bin.BareEncoder *StorageFileMp3 : github.com/gotd/td/bin.Decoder *StorageFileMp3 : github.com/gotd/td/bin.Encoder *StorageFileMp3 : github.com/gotd/td/bin.Object *StorageFileMp3 : github.com/gotd/td/tdp.Object *StorageFileMp3 : fmt.Stringer
StorageFileMp4 represents TL type `storage.fileMp4#b3cea0e4`. MPEG-4 video. MIME type: video/mp4. See https://core.telegram.org/constructor/storage.fileMp4 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. (*StorageFileMp4) Zero() bool *StorageFileMp4 : StorageFileTypeClass *StorageFileMp4 : github.com/gotd/td/bin.BareDecoder *StorageFileMp4 : github.com/gotd/td/bin.BareEncoder *StorageFileMp4 : github.com/gotd/td/bin.Decoder *StorageFileMp4 : github.com/gotd/td/bin.Encoder *StorageFileMp4 : github.com/gotd/td/bin.Object *StorageFileMp4 : github.com/gotd/td/tdp.Object *StorageFileMp4 : fmt.Stringer
StorageFilePartial represents TL type `storage.filePartial#40bc6f52`. Part of a bigger file. See https://core.telegram.org/constructor/storage.filePartial 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. (*StorageFilePartial) Zero() bool *StorageFilePartial : StorageFileTypeClass *StorageFilePartial : github.com/gotd/td/bin.BareDecoder *StorageFilePartial : github.com/gotd/td/bin.BareEncoder *StorageFilePartial : github.com/gotd/td/bin.Decoder *StorageFilePartial : github.com/gotd/td/bin.Encoder *StorageFilePartial : github.com/gotd/td/bin.Object *StorageFilePartial : github.com/gotd/td/tdp.Object *StorageFilePartial : fmt.Stringer
StorageFilePdf represents TL type `storage.filePdf#ae1e508d`. PDF document image. MIME type: application/pdf. See https://core.telegram.org/constructor/storage.filePdf 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. (*StorageFilePdf) Zero() bool *StorageFilePdf : StorageFileTypeClass *StorageFilePdf : github.com/gotd/td/bin.BareDecoder *StorageFilePdf : github.com/gotd/td/bin.BareEncoder *StorageFilePdf : github.com/gotd/td/bin.Decoder *StorageFilePdf : github.com/gotd/td/bin.Encoder *StorageFilePdf : github.com/gotd/td/bin.Object *StorageFilePdf : github.com/gotd/td/tdp.Object *StorageFilePdf : fmt.Stringer
StorageFilePng represents TL type `storage.filePng#a4f63c0`. PNG image. MIME type: image/png. See https://core.telegram.org/constructor/storage.filePng 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. (*StorageFilePng) Zero() bool *StorageFilePng : StorageFileTypeClass *StorageFilePng : github.com/gotd/td/bin.BareDecoder *StorageFilePng : github.com/gotd/td/bin.BareEncoder *StorageFilePng : github.com/gotd/td/bin.Decoder *StorageFilePng : github.com/gotd/td/bin.Encoder *StorageFilePng : github.com/gotd/td/bin.Object *StorageFilePng : github.com/gotd/td/tdp.Object *StorageFilePng : fmt.Stringer
StorageFileType boxes the StorageFileTypeClass providing a helper. FileType StorageFileTypeClass Decode implements bin.Decoder for StorageFileTypeBox. Encode implements bin.Encode for StorageFileTypeBox. *StorageFileTypeBox : github.com/gotd/td/bin.Decoder *StorageFileTypeBox : github.com/gotd/td/bin.Encoder *StorageFileTypeBox : github.com/gotd/td/bin.Object
StorageFileTypeClass represents storage.FileType generic type. See https://core.telegram.org/type/storage.FileType for reference. Example: g, err := tg.DecodeStorageFileType(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.StorageFileUnknown: // storage.fileUnknown#aa963b05 case *tg.StorageFilePartial: // storage.filePartial#40bc6f52 case *tg.StorageFileJpeg: // storage.fileJpeg#7efe0e case *tg.StorageFileGif: // storage.fileGif#cae1aadf case *tg.StorageFilePng: // storage.filePng#a4f63c0 case *tg.StorageFilePdf: // storage.filePdf#ae1e508d case *tg.StorageFileMp3: // storage.fileMp3#528a0677 case *tg.StorageFileMov: // storage.fileMov#4b09ebbc case *tg.StorageFileMp4: // storage.fileMp4#b3cea0e4 case *tg.StorageFileWebp: // storage.fileWebp#1081464c default: panic(v) } ( StorageFileTypeClass) Decode(b *bin.Buffer) error ( StorageFileTypeClass) DecodeBare(b *bin.Buffer) error ( StorageFileTypeClass) Encode(b *bin.Buffer) error ( StorageFileTypeClass) 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. *StorageFileGif *StorageFileJpeg *StorageFileMov *StorageFileMp3 *StorageFileMp4 *StorageFilePartial *StorageFilePdf *StorageFilePng *StorageFileUnknown *StorageFileWebp StorageFileTypeClass : github.com/gotd/td/bin.BareDecoder StorageFileTypeClass : github.com/gotd/td/bin.BareEncoder StorageFileTypeClass : github.com/gotd/td/bin.Decoder StorageFileTypeClass : github.com/gotd/td/bin.Encoder StorageFileTypeClass : github.com/gotd/td/bin.Object StorageFileTypeClass : fmt.Stringer func DecodeStorageFileType(buf *bin.Buffer) (StorageFileTypeClass, error) func StorageFileTypeClassArray.First() (v StorageFileTypeClass, ok bool) func StorageFileTypeClassArray.Last() (v StorageFileTypeClass, ok bool) func (*StorageFileTypeClassArray).Pop() (v StorageFileTypeClass, ok bool) func (*StorageFileTypeClassArray).PopFirst() (v StorageFileTypeClass, ok bool) func (*UploadFile).GetType() (value StorageFileTypeClass) func (*UploadWebFile).GetFileType() (value StorageFileTypeClass)
StorageFileTypeClassArray is adapter for slice of StorageFileTypeClass. 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 StorageFileTypeClass. Sort sorts slice of StorageFileTypeClass. SortStable sorts slice of StorageFileTypeClass. func StorageFileTypeClassArray.Retain(keep func(x StorageFileTypeClass) bool) StorageFileTypeClassArray func StorageFileTypeClassArray.Sort(less func(a, b StorageFileTypeClass) bool) StorageFileTypeClassArray func StorageFileTypeClassArray.SortStable(less func(a, b StorageFileTypeClass) bool) StorageFileTypeClassArray
StorageFileUnknown represents TL type `storage.fileUnknown#aa963b05`. Unknown type. See https://core.telegram.org/constructor/storage.fileUnknown 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. (*StorageFileUnknown) Zero() bool *StorageFileUnknown : StorageFileTypeClass *StorageFileUnknown : github.com/gotd/td/bin.BareDecoder *StorageFileUnknown : github.com/gotd/td/bin.BareEncoder *StorageFileUnknown : github.com/gotd/td/bin.Decoder *StorageFileUnknown : github.com/gotd/td/bin.Encoder *StorageFileUnknown : github.com/gotd/td/bin.Object *StorageFileUnknown : github.com/gotd/td/tdp.Object *StorageFileUnknown : fmt.Stringer
StorageFileWebp represents TL type `storage.fileWebp#1081464c`. WEBP image. MIME type: image/webp. See https://core.telegram.org/constructor/storage.fileWebp 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. (*StorageFileWebp) Zero() bool *StorageFileWebp : StorageFileTypeClass *StorageFileWebp : github.com/gotd/td/bin.BareDecoder *StorageFileWebp : github.com/gotd/td/bin.BareEncoder *StorageFileWebp : github.com/gotd/td/bin.Decoder *StorageFileWebp : github.com/gotd/td/bin.Encoder *StorageFileWebp : github.com/gotd/td/bin.Object *StorageFileWebp : github.com/gotd/td/tdp.Object *StorageFileWebp : fmt.Stringer
StoriesActivateStealthModeRequest represents TL type `stories.activateStealthMode#57bbd166`. Activates stories stealth mode¹, see here »² for more info. Will return an updateStoriesStealthMode¹. Links: 1. https://core.telegram.org/api/stories#stealth-mode 2. https://core.telegram.org/api/stories#stealth-mode 3. https://core.telegram.org/constructor/updateStoriesStealthMode See https://core.telegram.org/method/stories.activateStealthMode for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether to hide future story views for the next stories_stealth_future_period seconds »¹, as specified by the client configuration². Links: 1) https://core.telegram.org/api/config#stories-stealth-future-period 2) https://core.telegram.org/api/config#client-configuration Whether to erase views from any stories opened in the past stories_stealth_past_period seconds »¹, as specified by the client configuration². Links: 1) https://core.telegram.org/api/config#stories-stealth-past-period 2) https://core.telegram.org/api/config#client-configuration Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesActivateStealthModeRequest from given interface. GetFuture returns value of Future conditional field. GetPast returns value of Past conditional field. SetFlags sets flags for non-zero fields. SetFuture sets value of Future conditional field. SetPast sets value of Past 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. (*StoriesActivateStealthModeRequest) Zero() bool *StoriesActivateStealthModeRequest : github.com/gotd/td/bin.BareDecoder *StoriesActivateStealthModeRequest : github.com/gotd/td/bin.BareEncoder *StoriesActivateStealthModeRequest : github.com/gotd/td/bin.Decoder *StoriesActivateStealthModeRequest : github.com/gotd/td/bin.Encoder *StoriesActivateStealthModeRequest : github.com/gotd/td/bin.Object *StoriesActivateStealthModeRequest : github.com/gotd/td/tdp.Object *StoriesActivateStealthModeRequest : fmt.Stringer func (*Client).StoriesActivateStealthMode(ctx context.Context, request *StoriesActivateStealthModeRequest) (UpdatesClass, error)
StoriesAllStories represents TL type `stories.allStories#6efc5e81`. Full list of active (or active and hidden) stories¹. Links: 1. https://core.telegram.org/api/stories#watching-stories See https://core.telegram.org/constructor/stories.allStories for reference. Mentioned chats Total number of active (or active and hidden) stories Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether more results can be fetched as described here »¹. Links: 1) https://core.telegram.org/api/stories#watching-stories Stories State to use for pagination Current stealth mode¹ information Links: 1) https://core.telegram.org/api/stories#stealth-mode Mentioned users AsModified tries to map StoriesAllStories to StoriesAllStories. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesAllStories from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetHasMore returns value of HasMore conditional field. GetPeerStories returns value of PeerStories field. GetState returns value of State field. GetStealthMode returns value of StealthMode field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFlags sets flags for non-zero fields. SetHasMore sets value of HasMore 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. (*StoriesAllStories) Zero() bool *StoriesAllStories : StoriesAllStoriesClass *StoriesAllStories : github.com/gotd/td/bin.BareDecoder *StoriesAllStories : github.com/gotd/td/bin.BareEncoder *StoriesAllStories : github.com/gotd/td/bin.Decoder *StoriesAllStories : github.com/gotd/td/bin.Encoder *StoriesAllStories : github.com/gotd/td/bin.Object *StoriesAllStories : github.com/gotd/td/tdp.Object *StoriesAllStories : fmt.Stringer func (*StoriesAllStories).AsModified() (*StoriesAllStories, bool) func StoriesAllStoriesArray.First() (v StoriesAllStories, ok bool) func StoriesAllStoriesArray.Last() (v StoriesAllStories, ok bool) func (*StoriesAllStoriesArray).Pop() (v StoriesAllStories, ok bool) func (*StoriesAllStoriesArray).PopFirst() (v StoriesAllStories, ok bool) func StoriesAllStoriesClass.AsModified() (*StoriesAllStories, bool) func StoriesAllStoriesClassArray.AppendOnlyModified(to []*StoriesAllStories) []*StoriesAllStories func StoriesAllStoriesClassArray.AsModified() (to []*StoriesAllStories) func StoriesAllStoriesClassArray.FirstAsModified() (v *StoriesAllStories, ok bool) func StoriesAllStoriesClassArray.LastAsModified() (v *StoriesAllStories, ok bool) func (*StoriesAllStoriesClassArray).PopAsModified() (v *StoriesAllStories, ok bool) func (*StoriesAllStoriesClassArray).PopFirstAsModified() (v *StoriesAllStories, ok bool) func (*StoriesAllStoriesNotModified).AsModified() (*StoriesAllStories, bool) func StoriesAllStoriesClassArray.AppendOnlyModified(to []*StoriesAllStories) []*StoriesAllStories
StoriesAllStoriesArray is adapter for slice of StoriesAllStories. 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 StoriesAllStories. Sort sorts slice of StoriesAllStories. SortStable sorts slice of StoriesAllStories. func StoriesAllStoriesArray.Retain(keep func(x StoriesAllStories) bool) StoriesAllStoriesArray func StoriesAllStoriesArray.Sort(less func(a, b StoriesAllStories) bool) StoriesAllStoriesArray func StoriesAllStoriesArray.SortStable(less func(a, b StoriesAllStories) bool) StoriesAllStoriesArray func StoriesAllStoriesClassArray.AsStoriesAllStories() (to StoriesAllStoriesArray)
StoriesAllStories boxes the StoriesAllStoriesClass providing a helper. AllStories StoriesAllStoriesClass Decode implements bin.Decoder for StoriesAllStoriesBox. Encode implements bin.Encode for StoriesAllStoriesBox. *StoriesAllStoriesBox : github.com/gotd/td/bin.Decoder *StoriesAllStoriesBox : github.com/gotd/td/bin.Encoder *StoriesAllStoriesBox : github.com/gotd/td/bin.Object
StoriesAllStoriesClass represents stories.AllStories generic type. See https://core.telegram.org/type/stories.AllStories for reference. Example: g, err := tg.DecodeStoriesAllStories(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.StoriesAllStoriesNotModified: // stories.allStoriesNotModified#1158fe3e case *tg.StoriesAllStories: // stories.allStories#6efc5e81 default: panic(v) } AsModified tries to map StoriesAllStoriesClass to StoriesAllStories. ( StoriesAllStoriesClass) Decode(b *bin.Buffer) error ( StoriesAllStoriesClass) DecodeBare(b *bin.Buffer) error ( StoriesAllStoriesClass) Encode(b *bin.Buffer) error ( StoriesAllStoriesClass) EncodeBare(b *bin.Buffer) error State to use to ask for updates Current stealth mode¹ information Links: 1) https://core.telegram.org/api/stories#stealth-mode 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. *StoriesAllStories *StoriesAllStoriesNotModified StoriesAllStoriesClass : github.com/gotd/td/bin.BareDecoder StoriesAllStoriesClass : github.com/gotd/td/bin.BareEncoder StoriesAllStoriesClass : github.com/gotd/td/bin.Decoder StoriesAllStoriesClass : github.com/gotd/td/bin.Encoder StoriesAllStoriesClass : github.com/gotd/td/bin.Object StoriesAllStoriesClass : fmt.Stringer func DecodeStoriesAllStories(buf *bin.Buffer) (StoriesAllStoriesClass, error) func (*Client).StoriesGetAllStories(ctx context.Context, request *StoriesGetAllStoriesRequest) (StoriesAllStoriesClass, error) func StoriesAllStoriesClassArray.First() (v StoriesAllStoriesClass, ok bool) func StoriesAllStoriesClassArray.Last() (v StoriesAllStoriesClass, ok bool) func (*StoriesAllStoriesClassArray).Pop() (v StoriesAllStoriesClass, ok bool) func (*StoriesAllStoriesClassArray).PopFirst() (v StoriesAllStoriesClass, ok bool)
StoriesAllStoriesClassArray is adapter for slice of StoriesAllStoriesClass. AppendOnlyModified appends only Modified constructors to given slice. AsModified returns copy with only Modified constructors. AsStoriesAllStories returns copy with only StoriesAllStories constructors. AsStoriesAllStoriesNotModified returns copy with only StoriesAllStoriesNotModified 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 StoriesAllStoriesClass. Sort sorts slice of StoriesAllStoriesClass. SortStable sorts slice of StoriesAllStoriesClass. func StoriesAllStoriesClassArray.Retain(keep func(x StoriesAllStoriesClass) bool) StoriesAllStoriesClassArray func StoriesAllStoriesClassArray.Sort(less func(a, b StoriesAllStoriesClass) bool) StoriesAllStoriesClassArray func StoriesAllStoriesClassArray.SortStable(less func(a, b StoriesAllStoriesClass) bool) StoriesAllStoriesClassArray
StoriesAllStoriesNotModified represents TL type `stories.allStoriesNotModified#1158fe3e`. The list of active (or active and hidden) stories¹ has not changed. Links: 1. https://core.telegram.org/api/stories#watching-stories See https://core.telegram.org/constructor/stories.allStoriesNotModified for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields State to use to ask for updates Current stealth mode¹ information Links: 1) https://core.telegram.org/api/stories#stealth-mode AsModified tries to map StoriesAllStoriesNotModified to StoriesAllStories. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesAllStoriesNotModified from given interface. GetState returns value of State field. GetStealthMode returns value of StealthMode 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. (*StoriesAllStoriesNotModified) Zero() bool *StoriesAllStoriesNotModified : StoriesAllStoriesClass *StoriesAllStoriesNotModified : github.com/gotd/td/bin.BareDecoder *StoriesAllStoriesNotModified : github.com/gotd/td/bin.BareEncoder *StoriesAllStoriesNotModified : github.com/gotd/td/bin.Decoder *StoriesAllStoriesNotModified : github.com/gotd/td/bin.Encoder *StoriesAllStoriesNotModified : github.com/gotd/td/bin.Object *StoriesAllStoriesNotModified : github.com/gotd/td/tdp.Object *StoriesAllStoriesNotModified : fmt.Stringer func StoriesAllStoriesNotModifiedArray.First() (v StoriesAllStoriesNotModified, ok bool) func StoriesAllStoriesNotModifiedArray.Last() (v StoriesAllStoriesNotModified, ok bool) func (*StoriesAllStoriesNotModifiedArray).Pop() (v StoriesAllStoriesNotModified, ok bool) func (*StoriesAllStoriesNotModifiedArray).PopFirst() (v StoriesAllStoriesNotModified, ok bool)
StoriesAllStoriesNotModifiedArray is adapter for slice of StoriesAllStoriesNotModified. 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 StoriesAllStoriesNotModified. Sort sorts slice of StoriesAllStoriesNotModified. SortStable sorts slice of StoriesAllStoriesNotModified. func StoriesAllStoriesClassArray.AsStoriesAllStoriesNotModified() (to StoriesAllStoriesNotModifiedArray) func StoriesAllStoriesNotModifiedArray.Retain(keep func(x StoriesAllStoriesNotModified) bool) StoriesAllStoriesNotModifiedArray func StoriesAllStoriesNotModifiedArray.Sort(less func(a, b StoriesAllStoriesNotModified) bool) StoriesAllStoriesNotModifiedArray func StoriesAllStoriesNotModifiedArray.SortStable(less func(a, b StoriesAllStoriesNotModified) bool) StoriesAllStoriesNotModifiedArray
StoriesCanSendStoryRequest represents TL type `stories.canSendStory#c7dfdfdd`. Check whether we can post stories as the specified peer. See https://core.telegram.org/method/stories.canSendStory for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesCanSendStoryRequest 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. (*StoriesCanSendStoryRequest) Zero() bool *StoriesCanSendStoryRequest : github.com/gotd/td/bin.BareDecoder *StoriesCanSendStoryRequest : github.com/gotd/td/bin.BareEncoder *StoriesCanSendStoryRequest : github.com/gotd/td/bin.Decoder *StoriesCanSendStoryRequest : github.com/gotd/td/bin.Encoder *StoriesCanSendStoryRequest : github.com/gotd/td/bin.Object *StoriesCanSendStoryRequest : github.com/gotd/td/tdp.Object *StoriesCanSendStoryRequest : fmt.Stringer
StoriesDeleteStoriesRequest represents TL type `stories.deleteStories#ae59db5f`. Deletes some posted stories¹. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/method/stories.deleteStories for reference. Scheduled message IDs Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesDeleteStoriesRequest from given interface. GetID returns value of ID 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. (*StoriesDeleteStoriesRequest) Zero() bool *StoriesDeleteStoriesRequest : github.com/gotd/td/bin.BareDecoder *StoriesDeleteStoriesRequest : github.com/gotd/td/bin.BareEncoder *StoriesDeleteStoriesRequest : github.com/gotd/td/bin.Decoder *StoriesDeleteStoriesRequest : github.com/gotd/td/bin.Encoder *StoriesDeleteStoriesRequest : github.com/gotd/td/bin.Object *StoriesDeleteStoriesRequest : github.com/gotd/td/tdp.Object *StoriesDeleteStoriesRequest : fmt.Stringer func (*Client).StoriesDeleteStories(ctx context.Context, request *StoriesDeleteStoriesRequest) ([]int, error)
StoriesEditStoryRequest represents TL type `stories.editStory#b583ba46`. Edit an uploaded story¹ Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/method/stories.editStory for reference. If specified, replaces the story caption. Use SetCaption and GetCaption helpers. Message entities for styled text in the caption¹, if allowed by the stories_entities client configuration parameter »². Links: 1) https://core.telegram.org/api/entities 2) https://core.telegram.org/api/config#stories-entities Use SetEntities and GetEntities helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of story to edit. If specified, replaces the story media. Use SetMedia and GetMedia helpers. Media areas¹ associated to the story, see here »² for more info. Links: 1) https://core.telegram.org/api/stories#media-areas 2) https://core.telegram.org/api/stories#media-areas Use SetMediaAreas and GetMediaAreas helpers. Peer where the story was posted. If specified, alters the privacy settings »¹ of the story, changing who can or can't view the story. Links: 1) https://core.telegram.org/api/privacy Use SetPrivacyRules and GetPrivacyRules helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesEditStoryRequest from given interface. GetCaption returns value of Caption conditional field and boolean which is true if field was set. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetID returns value of ID field. GetMedia returns value of Media conditional field and boolean which is true if field was set. GetMediaAreas returns value of MediaAreas conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. GetPrivacyRules returns value of PrivacyRules conditional field and boolean which is true if field was set. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. MapMediaAreas returns field MediaAreas wrapped in MediaAreaClassArray helper. MapPrivacyRules returns field PrivacyRules wrapped in InputPrivacyRuleClassArray helper. SetCaption sets value of Caption conditional field. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetMedia sets value of Media conditional field. SetMediaAreas sets value of MediaAreas conditional field. SetPrivacyRules sets value of PrivacyRules 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. (*StoriesEditStoryRequest) Zero() bool *StoriesEditStoryRequest : github.com/gotd/td/bin.BareDecoder *StoriesEditStoryRequest : github.com/gotd/td/bin.BareEncoder *StoriesEditStoryRequest : github.com/gotd/td/bin.Decoder *StoriesEditStoryRequest : github.com/gotd/td/bin.Encoder *StoriesEditStoryRequest : github.com/gotd/td/bin.Object *StoriesEditStoryRequest : github.com/gotd/td/tdp.Object *StoriesEditStoryRequest : fmt.Stringer func (*Client).StoriesEditStory(ctx context.Context, request *StoriesEditStoryRequest) (UpdatesClass, error)
StoriesExportStoryLinkRequest represents TL type `stories.exportStoryLink#7b8def20`. Generate a story deep link¹ for a specific story Links: 1. https://core.telegram.org/api/links#story-links See https://core.telegram.org/method/stories.exportStoryLink for reference. Story ID Peer where the story was posted Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesExportStoryLinkRequest from given interface. GetID returns value of ID 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. (*StoriesExportStoryLinkRequest) Zero() bool *StoriesExportStoryLinkRequest : github.com/gotd/td/bin.BareDecoder *StoriesExportStoryLinkRequest : github.com/gotd/td/bin.BareEncoder *StoriesExportStoryLinkRequest : github.com/gotd/td/bin.Decoder *StoriesExportStoryLinkRequest : github.com/gotd/td/bin.Encoder *StoriesExportStoryLinkRequest : github.com/gotd/td/bin.Object *StoriesExportStoryLinkRequest : github.com/gotd/td/tdp.Object *StoriesExportStoryLinkRequest : fmt.Stringer func (*Client).StoriesExportStoryLink(ctx context.Context, request *StoriesExportStoryLinkRequest) (*ExportedStoryLink, error)
StoriesGetAllReadPeerStoriesRequest represents TL type `stories.getAllReadPeerStories#9b5ae7f9`. Obtain the latest read story ID for all peers when first logging in, returned as a list of updateReadStories¹ updates, see here »² for more info. Links: 1. https://core.telegram.org/constructor/updateReadStories 2. https://core.telegram.org/api/stories#watching-stories See https://core.telegram.org/method/stories.getAllReadPeerStories 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. (*StoriesGetAllReadPeerStoriesRequest) Zero() bool *StoriesGetAllReadPeerStoriesRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetAllReadPeerStoriesRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetAllReadPeerStoriesRequest : github.com/gotd/td/bin.Decoder *StoriesGetAllReadPeerStoriesRequest : github.com/gotd/td/bin.Encoder *StoriesGetAllReadPeerStoriesRequest : github.com/gotd/td/bin.Object *StoriesGetAllReadPeerStoriesRequest : github.com/gotd/td/tdp.Object *StoriesGetAllReadPeerStoriesRequest : fmt.Stringer
StoriesGetAllStoriesRequest represents TL type `stories.getAllStories#eeb0d625`. Fetch the List of active (or active and hidden) stories, see here »¹ for more info on watching stories. Links: 1. https://core.telegram.org/api/stories#watching-stories See https://core.telegram.org/method/stories.getAllStories for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, fetches the hidden active story list, otherwise fetches the active story list, see here »¹ for more info on the full flow. Links: 1) https://core.telegram.org/api/stories#watching-stories If next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here »¹ for more info on the full flow. Links: 1) https://core.telegram.org/api/stories#watching-stories If next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here »¹ for more info on the full flow. Links: 1) https://core.telegram.org/api/stories#watching-stories Use SetState and GetState helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesGetAllStoriesRequest from given interface. GetHidden returns value of Hidden conditional field. GetNext returns value of Next conditional field. GetState returns value of State conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetHidden sets value of Hidden conditional field. SetNext sets value of Next conditional field. SetState sets value of State 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. (*StoriesGetAllStoriesRequest) Zero() bool *StoriesGetAllStoriesRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetAllStoriesRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetAllStoriesRequest : github.com/gotd/td/bin.Decoder *StoriesGetAllStoriesRequest : github.com/gotd/td/bin.Encoder *StoriesGetAllStoriesRequest : github.com/gotd/td/bin.Object *StoriesGetAllStoriesRequest : github.com/gotd/td/tdp.Object *StoriesGetAllStoriesRequest : fmt.Stringer func (*Client).StoriesGetAllStories(ctx context.Context, request *StoriesGetAllStoriesRequest) (StoriesAllStoriesClass, error)
StoriesGetChatsToSendRequest represents TL type `stories.getChatsToSend#a56a8b60`. Obtain a list of channels where the user can post stories¹ Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/method/stories.getChatsToSend 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. (*StoriesGetChatsToSendRequest) Zero() bool *StoriesGetChatsToSendRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetChatsToSendRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetChatsToSendRequest : github.com/gotd/td/bin.Decoder *StoriesGetChatsToSendRequest : github.com/gotd/td/bin.Encoder *StoriesGetChatsToSendRequest : github.com/gotd/td/bin.Object *StoriesGetChatsToSendRequest : github.com/gotd/td/tdp.Object *StoriesGetChatsToSendRequest : fmt.Stringer
StoriesGetPeerMaxIDsRequest represents TL type `stories.getPeerMaxIDs#535983c3`. Get the IDs of the maximum read stories for a set of peers. See https://core.telegram.org/method/stories.getPeerMaxIDs for reference. Peers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesGetPeerMaxIDsRequest from given interface. GetID returns value of ID field. MapID returns field ID wrapped in InputPeerClassArray 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. (*StoriesGetPeerMaxIDsRequest) Zero() bool *StoriesGetPeerMaxIDsRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetPeerMaxIDsRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetPeerMaxIDsRequest : github.com/gotd/td/bin.Decoder *StoriesGetPeerMaxIDsRequest : github.com/gotd/td/bin.Encoder *StoriesGetPeerMaxIDsRequest : github.com/gotd/td/bin.Object *StoriesGetPeerMaxIDsRequest : github.com/gotd/td/tdp.Object *StoriesGetPeerMaxIDsRequest : fmt.Stringer
StoriesGetPeerStoriesRequest represents TL type `stories.getPeerStories#2c4ada50`. Fetch the full active story list¹ of a specific peer. Links: 1. https://core.telegram.org/api/stories#watching-stories See https://core.telegram.org/method/stories.getPeerStories for reference. The dialog Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesGetPeerStoriesRequest 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. (*StoriesGetPeerStoriesRequest) Zero() bool *StoriesGetPeerStoriesRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetPeerStoriesRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetPeerStoriesRequest : github.com/gotd/td/bin.Decoder *StoriesGetPeerStoriesRequest : github.com/gotd/td/bin.Encoder *StoriesGetPeerStoriesRequest : github.com/gotd/td/bin.Object *StoriesGetPeerStoriesRequest : github.com/gotd/td/tdp.Object *StoriesGetPeerStoriesRequest : fmt.Stringer
StoriesGetPinnedStoriesRequest represents TL type `stories.getPinnedStories#5821a5dc`. Fetch the stories¹ pinned on a peer's profile. Links: 1. https://core.telegram.org/api/stories#pinned-or-archived-stories See https://core.telegram.org/method/stories.getPinnedStories for reference. Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Peer whose pinned stories should be fetched Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesGetPinnedStoriesRequest from given interface. GetLimit returns value of Limit field. GetOffsetID returns value of OffsetID 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. (*StoriesGetPinnedStoriesRequest) Zero() bool *StoriesGetPinnedStoriesRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetPinnedStoriesRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetPinnedStoriesRequest : github.com/gotd/td/bin.Decoder *StoriesGetPinnedStoriesRequest : github.com/gotd/td/bin.Encoder *StoriesGetPinnedStoriesRequest : github.com/gotd/td/bin.Object *StoriesGetPinnedStoriesRequest : github.com/gotd/td/tdp.Object *StoriesGetPinnedStoriesRequest : fmt.Stringer func (*Client).StoriesGetPinnedStories(ctx context.Context, request *StoriesGetPinnedStoriesRequest) (*StoriesStories, error)
StoriesGetStoriesArchiveRequest represents TL type `stories.getStoriesArchive#b4352016`. Fetch the story archive »¹ of a peer we control. Links: 1. https://core.telegram.org/api/stories#pinned-or-archived-stories See https://core.telegram.org/method/stories.getStoriesArchive for reference. Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offsets for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets Peer whose pinned stories should be fetched Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesGetStoriesArchiveRequest from given interface. GetLimit returns value of Limit field. GetOffsetID returns value of OffsetID 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. (*StoriesGetStoriesArchiveRequest) Zero() bool *StoriesGetStoriesArchiveRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetStoriesArchiveRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetStoriesArchiveRequest : github.com/gotd/td/bin.Decoder *StoriesGetStoriesArchiveRequest : github.com/gotd/td/bin.Encoder *StoriesGetStoriesArchiveRequest : github.com/gotd/td/bin.Object *StoriesGetStoriesArchiveRequest : github.com/gotd/td/tdp.Object *StoriesGetStoriesArchiveRequest : fmt.Stringer func (*Client).StoriesGetStoriesArchive(ctx context.Context, request *StoriesGetStoriesArchiveRequest) (*StoriesStories, error)
StoriesGetStoriesByIDRequest represents TL type `stories.getStoriesByID#5774ca74`. Obtain full info about a set of stories¹ by their IDs. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/method/stories.getStoriesByID for reference. Scheduled message IDs Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesGetStoriesByIDRequest from given interface. GetID returns value of ID 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. (*StoriesGetStoriesByIDRequest) Zero() bool *StoriesGetStoriesByIDRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetStoriesByIDRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetStoriesByIDRequest : github.com/gotd/td/bin.Decoder *StoriesGetStoriesByIDRequest : github.com/gotd/td/bin.Encoder *StoriesGetStoriesByIDRequest : github.com/gotd/td/bin.Object *StoriesGetStoriesByIDRequest : github.com/gotd/td/tdp.Object *StoriesGetStoriesByIDRequest : fmt.Stringer func (*Client).StoriesGetStoriesByID(ctx context.Context, request *StoriesGetStoriesByIDRequest) (*StoriesStories, error)
StoriesGetStoriesViewsRequest represents TL type `stories.getStoriesViews#28e16cc8`. Obtain info about the view count, forward count, reactions and recent viewers of one or more stories¹. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/method/stories.getStoriesViews for reference. Scheduled message IDs Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesGetStoriesViewsRequest from given interface. GetID returns value of ID 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. (*StoriesGetStoriesViewsRequest) Zero() bool *StoriesGetStoriesViewsRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetStoriesViewsRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetStoriesViewsRequest : github.com/gotd/td/bin.Decoder *StoriesGetStoriesViewsRequest : github.com/gotd/td/bin.Encoder *StoriesGetStoriesViewsRequest : github.com/gotd/td/bin.Object *StoriesGetStoriesViewsRequest : github.com/gotd/td/tdp.Object *StoriesGetStoriesViewsRequest : fmt.Stringer func (*Client).StoriesGetStoriesViews(ctx context.Context, request *StoriesGetStoriesViewsRequest) (*StoriesStoryViews, error)
StoriesGetStoryReactionsListRequest represents TL type `stories.getStoryReactionsList#b9b2881f`. See https://core.telegram.org/method/stories.getStoryReactionsList for reference. Flags field of StoriesGetStoryReactionsListRequest. ForwardsFirst field of StoriesGetStoryReactionsListRequest. ID field of StoriesGetStoryReactionsListRequest. Limit field of StoriesGetStoryReactionsListRequest. Offset field of StoriesGetStoryReactionsListRequest. Use SetOffset and GetOffset helpers. Peer field of StoriesGetStoryReactionsListRequest. Reaction field of StoriesGetStoryReactionsListRequest. Use SetReaction and GetReaction helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesGetStoryReactionsListRequest from given interface. GetForwardsFirst returns value of ForwardsFirst conditional field. GetID returns value of ID field. GetLimit returns value of Limit field. GetOffset returns value of Offset conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. GetReaction returns value of Reaction conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetForwardsFirst sets value of ForwardsFirst conditional field. SetOffset sets value of Offset conditional field. SetReaction sets value of Reaction 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. (*StoriesGetStoryReactionsListRequest) Zero() bool *StoriesGetStoryReactionsListRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetStoryReactionsListRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetStoryReactionsListRequest : github.com/gotd/td/bin.Decoder *StoriesGetStoryReactionsListRequest : github.com/gotd/td/bin.Encoder *StoriesGetStoryReactionsListRequest : github.com/gotd/td/bin.Object *StoriesGetStoryReactionsListRequest : github.com/gotd/td/tdp.Object *StoriesGetStoryReactionsListRequest : fmt.Stringer func (*Client).StoriesGetStoryReactionsList(ctx context.Context, request *StoriesGetStoryReactionsListRequest) (*StoriesStoryReactionsList, error)
StoriesGetStoryViewsListRequest represents TL type `stories.getStoryViewsList#7ed23c57`. Obtain the list of users that have viewed a specific story we posted¹ Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/method/stories.getStoryViewsList for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ForwardsFirst field of StoriesGetStoryViewsListRequest. Story ID Whether to only fetch view reaction/views made by our contacts¹ Links: 1) https://core.telegram.org/api/contacts Maximum number of results to return, see pagination¹ Links: 1) https://core.telegram.org/api/offsets Offset for pagination, obtained from stories.storyViewsList¹.next_offset Links: 1) https://core.telegram.org/constructor/stories.storyViewsList Peer where the story was posted Search for specific peers Use SetQ and GetQ helpers. Whether to return storyView¹ info about users that reacted to the story (i.e. if set, the server will first sort results by view date as usual, and then also additionally sort the list by putting storyView²s with an associated reaction first in the list). Links: 1) https://core.telegram.org/constructor/storyView 2) https://core.telegram.org/constructor/storyView Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesGetStoryViewsListRequest from given interface. GetForwardsFirst returns value of ForwardsFirst conditional field. GetID returns value of ID field. GetJustContacts returns value of JustContacts conditional field. GetLimit returns value of Limit field. GetOffset returns value of Offset field. GetPeer returns value of Peer field. GetQ returns value of Q conditional field and boolean which is true if field was set. GetReactionsFirst returns value of ReactionsFirst conditional field. SetFlags sets flags for non-zero fields. SetForwardsFirst sets value of ForwardsFirst conditional field. SetJustContacts sets value of JustContacts conditional field. SetQ sets value of Q conditional field. SetReactionsFirst sets value of ReactionsFirst 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. (*StoriesGetStoryViewsListRequest) Zero() bool *StoriesGetStoryViewsListRequest : github.com/gotd/td/bin.BareDecoder *StoriesGetStoryViewsListRequest : github.com/gotd/td/bin.BareEncoder *StoriesGetStoryViewsListRequest : github.com/gotd/td/bin.Decoder *StoriesGetStoryViewsListRequest : github.com/gotd/td/bin.Encoder *StoriesGetStoryViewsListRequest : github.com/gotd/td/bin.Object *StoriesGetStoryViewsListRequest : github.com/gotd/td/tdp.Object *StoriesGetStoryViewsListRequest : fmt.Stringer func (*Client).StoriesGetStoryViewsList(ctx context.Context, request *StoriesGetStoryViewsListRequest) (*StoriesStoryViewsList, error)
StoriesIncrementStoryViewsRequest represents TL type `stories.incrementStoryViews#b2028afb`. Increment the view counter of one or more stories. See https://core.telegram.org/method/stories.incrementStoryViews for reference. Scheduled message IDs Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesIncrementStoryViewsRequest from given interface. GetID returns value of ID 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. (*StoriesIncrementStoryViewsRequest) Zero() bool *StoriesIncrementStoryViewsRequest : github.com/gotd/td/bin.BareDecoder *StoriesIncrementStoryViewsRequest : github.com/gotd/td/bin.BareEncoder *StoriesIncrementStoryViewsRequest : github.com/gotd/td/bin.Decoder *StoriesIncrementStoryViewsRequest : github.com/gotd/td/bin.Encoder *StoriesIncrementStoryViewsRequest : github.com/gotd/td/bin.Object *StoriesIncrementStoryViewsRequest : github.com/gotd/td/tdp.Object *StoriesIncrementStoryViewsRequest : fmt.Stringer func (*Client).StoriesIncrementStoryViews(ctx context.Context, request *StoriesIncrementStoryViewsRequest) (bool, error)
StoriesPeerStories represents TL type `stories.peerStories#cae68768`. Active story list¹ of a specific peer. Links: 1. https://core.telegram.org/api/stories#watching-stories See https://core.telegram.org/constructor/stories.peerStories for reference. Mentioned chats Stories Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesPeerStories from given interface. GetChats returns value of Chats field. GetStories returns value of Stories field. GetUsers returns value of Users 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. (*StoriesPeerStories) Zero() bool *StoriesPeerStories : github.com/gotd/td/bin.BareDecoder *StoriesPeerStories : github.com/gotd/td/bin.BareEncoder *StoriesPeerStories : github.com/gotd/td/bin.Decoder *StoriesPeerStories : github.com/gotd/td/bin.Encoder *StoriesPeerStories : github.com/gotd/td/bin.Object *StoriesPeerStories : github.com/gotd/td/tdp.Object *StoriesPeerStories : fmt.Stringer func (*Client).StoriesGetPeerStories(ctx context.Context, peer InputPeerClass) (*StoriesPeerStories, error)
StoriesReadStoriesRequest represents TL type `stories.readStories#a556dac8`. Mark all stories up to a certain ID as read, for a given peer; will emit an updateReadStories¹ update to all logged-in sessions. Links: 1. https://core.telegram.org/constructor/updateReadStories See https://core.telegram.org/method/stories.readStories for reference. If a positive value is passed, only messages with identifiers less or equal than the given one will be read Target user or group Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesReadStoriesRequest from given interface. GetMaxID returns value of MaxID 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. (*StoriesReadStoriesRequest) Zero() bool *StoriesReadStoriesRequest : github.com/gotd/td/bin.BareDecoder *StoriesReadStoriesRequest : github.com/gotd/td/bin.BareEncoder *StoriesReadStoriesRequest : github.com/gotd/td/bin.Decoder *StoriesReadStoriesRequest : github.com/gotd/td/bin.Encoder *StoriesReadStoriesRequest : github.com/gotd/td/bin.Object *StoriesReadStoriesRequest : github.com/gotd/td/tdp.Object *StoriesReadStoriesRequest : fmt.Stringer func (*Client).StoriesReadStories(ctx context.Context, request *StoriesReadStoriesRequest) ([]int, error)
StoriesReportRequest represents TL type `stories.report#1923fa8c`. Report a story. See https://core.telegram.org/method/stories.report for reference. IDs of messages to report Comment for report moderation Peer Why are these messages being reported Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesReportRequest from given interface. GetID returns value of ID field. 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. (*StoriesReportRequest) Zero() bool *StoriesReportRequest : github.com/gotd/td/bin.BareDecoder *StoriesReportRequest : github.com/gotd/td/bin.BareEncoder *StoriesReportRequest : github.com/gotd/td/bin.Decoder *StoriesReportRequest : github.com/gotd/td/bin.Encoder *StoriesReportRequest : github.com/gotd/td/bin.Object *StoriesReportRequest : github.com/gotd/td/tdp.Object *StoriesReportRequest : fmt.Stringer func (*Client).StoriesReport(ctx context.Context, request *StoriesReportRequest) (bool, error)
StoriesSendReactionRequest represents TL type `stories.sendReaction#7fd736b2`. React to a story. See https://core.telegram.org/method/stories.sendReaction for reference. Whether to add this reaction to the recent reactions list »¹. Links: 1) https://core.telegram.org/api/reactions#recent-reactions Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The peer that sent the story Reaction ID of the story to react to Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesSendReactionRequest from given interface. GetAddToRecent returns value of AddToRecent conditional field. GetPeer returns value of Peer field. GetReaction returns value of Reaction field. GetStoryID returns value of StoryID field. SetAddToRecent sets value of AddToRecent 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. (*StoriesSendReactionRequest) Zero() bool *StoriesSendReactionRequest : github.com/gotd/td/bin.BareDecoder *StoriesSendReactionRequest : github.com/gotd/td/bin.BareEncoder *StoriesSendReactionRequest : github.com/gotd/td/bin.Decoder *StoriesSendReactionRequest : github.com/gotd/td/bin.Encoder *StoriesSendReactionRequest : github.com/gotd/td/bin.Object *StoriesSendReactionRequest : github.com/gotd/td/tdp.Object *StoriesSendReactionRequest : fmt.Stringer func (*Client).StoriesSendReaction(ctx context.Context, request *StoriesSendReactionRequest) (UpdatesClass, error)
StoriesSendStoryRequest represents TL type `stories.sendStory#e4e6694b`. Uploads a Telegram Story¹. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/method/stories.sendStory for reference. Story caption. Use SetCaption and GetCaption helpers. Message entities for styled text¹, if allowed by the stories_entities client configuration parameter »². Links: 1) https://core.telegram.org/api/entities 2) https://core.telegram.org/api/config#stories-entities Use SetEntities and GetEntities helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id. Use SetFwdFromID and GetFwdFromID helpers. If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id. Use SetFwdFromStory and GetFwdFromStory helpers. Set this flag when reposting stories with fwd_from_id+fwd_from_id, if the media was modified before reposting. The story media. Media areas¹ associated to the story, see here »² for more info. Links: 1) https://core.telegram.org/api/stories#media-areas 2) https://core.telegram.org/api/stories#media-areas Use SetMediaAreas and GetMediaAreas helpers. If set, disables forwards, screenshots, and downloads. The peer to send the story as. Period after which the story is moved to archive (and to the profile if pinned is set) in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise. Use SetPeriod and GetPeriod helpers. Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see here »¹ for more info. Links: 1) https://core.telegram.org/api/stories Privacy rules¹ for the story, indicating who can or can't view the story. Links: 1) https://core.telegram.org/api/privacy Unique client message ID required to prevent message resending. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesSendStoryRequest from given interface. GetCaption returns value of Caption conditional field and boolean which is true if field was set. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetFwdFromID returns value of FwdFromID conditional field and boolean which is true if field was set. GetFwdFromStory returns value of FwdFromStory conditional field and boolean which is true if field was set. GetFwdModified returns value of FwdModified conditional field. GetMedia returns value of Media field. GetMediaAreas returns value of MediaAreas conditional field and boolean which is true if field was set. GetNoforwards returns value of Noforwards conditional field. GetPeer returns value of Peer field. GetPeriod returns value of Period conditional field and boolean which is true if field was set. GetPinned returns value of Pinned conditional field. GetPrivacyRules returns value of PrivacyRules field. GetRandomID returns value of RandomID field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. MapMediaAreas returns field MediaAreas wrapped in MediaAreaClassArray helper. MapPrivacyRules returns field PrivacyRules wrapped in InputPrivacyRuleClassArray helper. SetCaption sets value of Caption conditional field. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetFwdFromID sets value of FwdFromID conditional field. SetFwdFromStory sets value of FwdFromStory conditional field. SetFwdModified sets value of FwdModified conditional field. SetMediaAreas sets value of MediaAreas conditional field. SetNoforwards sets value of Noforwards conditional field. SetPeriod sets value of Period conditional field. SetPinned sets value of Pinned 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. (*StoriesSendStoryRequest) Zero() bool *StoriesSendStoryRequest : github.com/gotd/td/bin.BareDecoder *StoriesSendStoryRequest : github.com/gotd/td/bin.BareEncoder *StoriesSendStoryRequest : github.com/gotd/td/bin.Decoder *StoriesSendStoryRequest : github.com/gotd/td/bin.Encoder *StoriesSendStoryRequest : github.com/gotd/td/bin.Object *StoriesSendStoryRequest : github.com/gotd/td/tdp.Object *StoriesSendStoryRequest : fmt.Stringer func (*Client).StoriesSendStory(ctx context.Context, request *StoriesSendStoryRequest) (UpdatesClass, error)
StoriesStealthMode represents TL type `storiesStealthMode#712e27fd`. Information about the current stealth mode¹ session. Links: 1. https://core.telegram.org/api/stories#stealth-mode See https://core.telegram.org/constructor/storiesStealthMode for reference. The date up to which stealth mode will be active. Use SetActiveUntilDate and GetActiveUntilDate helpers. The date starting from which the user will be allowed to re-enable stealth mode again. Use SetCooldownUntilDate and GetCooldownUntilDate 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 StoriesStealthMode from given interface. GetActiveUntilDate returns value of ActiveUntilDate conditional field and boolean which is true if field was set. GetCooldownUntilDate returns value of CooldownUntilDate conditional field and boolean which is true if field was set. SetActiveUntilDate sets value of ActiveUntilDate conditional field. SetCooldownUntilDate sets value of CooldownUntilDate 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. (*StoriesStealthMode) Zero() bool *StoriesStealthMode : github.com/gotd/td/bin.BareDecoder *StoriesStealthMode : github.com/gotd/td/bin.BareEncoder *StoriesStealthMode : github.com/gotd/td/bin.Decoder *StoriesStealthMode : github.com/gotd/td/bin.Encoder *StoriesStealthMode : github.com/gotd/td/bin.Object *StoriesStealthMode : github.com/gotd/td/tdp.Object *StoriesStealthMode : fmt.Stringer func (*StoriesAllStories).GetStealthMode() (value StoriesStealthMode) func StoriesAllStoriesClass.GetStealthMode() (value StoriesStealthMode) func (*StoriesAllStoriesNotModified).GetStealthMode() (value StoriesStealthMode) func (*UpdateStoriesStealthMode).GetStealthMode() (value StoriesStealthMode)
StoriesStealthModeHandler is a StoriesStealthMode event handler. func UpdateDispatcher.OnStoriesStealthMode(handler StoriesStealthModeHandler)
StoriesStories represents TL type `stories.stories#5dd8c3c8`. List of stories¹ Links: 1. https://core.telegram.org/api/stories#pinned-or-archived-stories See https://core.telegram.org/constructor/stories.stories for reference. Mentioned chats Total number of stories that can be fetched Stories Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesStories from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetStories returns value of Stories field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapStories returns field Stories wrapped in StoryItemClassArray 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. (*StoriesStories) Zero() bool *StoriesStories : github.com/gotd/td/bin.BareDecoder *StoriesStories : github.com/gotd/td/bin.BareEncoder *StoriesStories : github.com/gotd/td/bin.Decoder *StoriesStories : github.com/gotd/td/bin.Encoder *StoriesStories : github.com/gotd/td/bin.Object *StoriesStories : github.com/gotd/td/tdp.Object *StoriesStories : fmt.Stringer func (*Client).StoriesGetPinnedStories(ctx context.Context, request *StoriesGetPinnedStoriesRequest) (*StoriesStories, error) func (*Client).StoriesGetStoriesArchive(ctx context.Context, request *StoriesGetStoriesArchiveRequest) (*StoriesStories, error) func (*Client).StoriesGetStoriesByID(ctx context.Context, request *StoriesGetStoriesByIDRequest) (*StoriesStories, error)
StoriesStoryReactionsList represents TL type `stories.storyReactionsList#aa5f789c`. See https://core.telegram.org/constructor/stories.storyReactionsList for reference. Chats field of StoriesStoryReactionsList. Count field of StoriesStoryReactionsList. Flags field of StoriesStoryReactionsList. NextOffset field of StoriesStoryReactionsList. Use SetNextOffset and GetNextOffset helpers. Reactions field of StoriesStoryReactionsList. Users field of StoriesStoryReactionsList. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesStoryReactionsList from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set. GetReactions returns value of Reactions field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapReactions returns field Reactions wrapped in StoryReactionClassArray 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. (*StoriesStoryReactionsList) Zero() bool *StoriesStoryReactionsList : github.com/gotd/td/bin.BareDecoder *StoriesStoryReactionsList : github.com/gotd/td/bin.BareEncoder *StoriesStoryReactionsList : github.com/gotd/td/bin.Decoder *StoriesStoryReactionsList : github.com/gotd/td/bin.Encoder *StoriesStoryReactionsList : github.com/gotd/td/bin.Object *StoriesStoryReactionsList : github.com/gotd/td/tdp.Object *StoriesStoryReactionsList : fmt.Stringer func (*Client).StoriesGetStoryReactionsList(ctx context.Context, request *StoriesGetStoryReactionsListRequest) (*StoriesStoryReactionsList, error)
StoriesStoryViews represents TL type `stories.storyViews#de9eed1d`. Reaction and view counters for a list of stories¹ Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/stories.storyViews for reference. Mentioned users View date and reaction information of multiple stories Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesStoryViews from given interface. GetUsers returns value of Users field. GetViews returns value of Views 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. (*StoriesStoryViews) Zero() bool *StoriesStoryViews : github.com/gotd/td/bin.BareDecoder *StoriesStoryViews : github.com/gotd/td/bin.BareEncoder *StoriesStoryViews : github.com/gotd/td/bin.Decoder *StoriesStoryViews : github.com/gotd/td/bin.Encoder *StoriesStoryViews : github.com/gotd/td/bin.Object *StoriesStoryViews : github.com/gotd/td/tdp.Object *StoriesStoryViews : fmt.Stringer func (*Client).StoriesGetStoriesViews(ctx context.Context, request *StoriesGetStoriesViewsRequest) (*StoriesStoryViews, error)
StoriesStoryViewsList represents TL type `stories.storyViewsList#59d78fc5`. Reaction and view counters for a story¹ Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/stories.storyViewsList for reference. Chats field of StoriesStoryViewsList. Total number of results that can be fetched Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ForwardsCount field of StoriesStoryViewsList. Offset for pagination Use SetNextOffset and GetNextOffset helpers. Number of reactions that were added to the story Mentioned users Story view date and reaction information ViewsCount field of StoriesStoryViewsList. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesStoryViewsList from given interface. GetChats returns value of Chats field. GetCount returns value of Count field. GetForwardsCount returns value of ForwardsCount field. GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set. GetReactionsCount returns value of ReactionsCount field. GetUsers returns value of Users field. GetViews returns value of Views field. GetViewsCount returns value of ViewsCount field. MapChats returns field Chats wrapped in ChatClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. MapViews returns field Views wrapped in StoryViewClassArray 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. (*StoriesStoryViewsList) Zero() bool *StoriesStoryViewsList : github.com/gotd/td/bin.BareDecoder *StoriesStoryViewsList : github.com/gotd/td/bin.BareEncoder *StoriesStoryViewsList : github.com/gotd/td/bin.Decoder *StoriesStoryViewsList : github.com/gotd/td/bin.Encoder *StoriesStoryViewsList : github.com/gotd/td/bin.Object *StoriesStoryViewsList : github.com/gotd/td/tdp.Object *StoriesStoryViewsList : fmt.Stringer func (*Client).StoriesGetStoryViewsList(ctx context.Context, request *StoriesGetStoryViewsListRequest) (*StoriesStoryViewsList, error)
StoriesToggleAllStoriesHiddenRequest represents TL type `stories.toggleAllStoriesHidden#7c2557c4`. Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen. See https://core.telegram.org/method/stories.toggleAllStoriesHidden for reference. Whether to hide or unhide all active stories of the peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesToggleAllStoriesHiddenRequest from given interface. GetHidden returns value of Hidden 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. (*StoriesToggleAllStoriesHiddenRequest) Zero() bool *StoriesToggleAllStoriesHiddenRequest : github.com/gotd/td/bin.BareDecoder *StoriesToggleAllStoriesHiddenRequest : github.com/gotd/td/bin.BareEncoder *StoriesToggleAllStoriesHiddenRequest : github.com/gotd/td/bin.Decoder *StoriesToggleAllStoriesHiddenRequest : github.com/gotd/td/bin.Encoder *StoriesToggleAllStoriesHiddenRequest : github.com/gotd/td/bin.Object *StoriesToggleAllStoriesHiddenRequest : github.com/gotd/td/tdp.Object *StoriesToggleAllStoriesHiddenRequest : fmt.Stringer
StoriesTogglePeerStoriesHiddenRequest represents TL type `stories.togglePeerStoriesHidden#bd0415c4`. Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here »¹ for more info. Links: 1. https://core.telegram.org/api/stories#hiding-stories-of-other-users See https://core.telegram.org/method/stories.togglePeerStoriesHidden for reference. Whether to hide or unhide stories. Peer whose stories should be (un)hidden. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesTogglePeerStoriesHiddenRequest from given interface. GetHidden returns value of Hidden 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. (*StoriesTogglePeerStoriesHiddenRequest) Zero() bool *StoriesTogglePeerStoriesHiddenRequest : github.com/gotd/td/bin.BareDecoder *StoriesTogglePeerStoriesHiddenRequest : github.com/gotd/td/bin.BareEncoder *StoriesTogglePeerStoriesHiddenRequest : github.com/gotd/td/bin.Decoder *StoriesTogglePeerStoriesHiddenRequest : github.com/gotd/td/bin.Encoder *StoriesTogglePeerStoriesHiddenRequest : github.com/gotd/td/bin.Object *StoriesTogglePeerStoriesHiddenRequest : github.com/gotd/td/tdp.Object *StoriesTogglePeerStoriesHiddenRequest : fmt.Stringer func (*Client).StoriesTogglePeerStoriesHidden(ctx context.Context, request *StoriesTogglePeerStoriesHiddenRequest) (bool, error)
StoriesTogglePinnedRequest represents TL type `stories.togglePinned#9a75a1ef`. Pin or unpin one or more stories See https://core.telegram.org/method/stories.togglePinned for reference. IDs of stories to pin or unpin Peer where to pin or unpin stories Whether to pin or unpin the stories Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoriesTogglePinnedRequest from given interface. GetID returns value of ID field. GetPeer returns value of Peer field. GetPinned returns value of Pinned 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. (*StoriesTogglePinnedRequest) Zero() bool *StoriesTogglePinnedRequest : github.com/gotd/td/bin.BareDecoder *StoriesTogglePinnedRequest : github.com/gotd/td/bin.BareEncoder *StoriesTogglePinnedRequest : github.com/gotd/td/bin.Decoder *StoriesTogglePinnedRequest : github.com/gotd/td/bin.Encoder *StoriesTogglePinnedRequest : github.com/gotd/td/bin.Object *StoriesTogglePinnedRequest : github.com/gotd/td/tdp.Object *StoriesTogglePinnedRequest : fmt.Stringer func (*Client).StoriesTogglePinned(ctx context.Context, request *StoriesTogglePinnedRequest) ([]int, error)
StoryFwdHeader represents TL type `storyFwdHeader#b826e150`. Contains info about the original poster of a reposted story. See https://core.telegram.org/constructor/storyFwdHeader for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer that originally posted the story; will be empty for stories forwarded from a user with forwards privacy enabled, in which case from_name will be set, instead. Use SetFrom and GetFrom helpers. Will be set for stories forwarded from a user with forwards privacy enabled, in which case from will also be empty. Use SetFromName and GetFromName helpers. Whether the story media was modified before reposting it (for example by overlaying a round video with a reaction). , contains the story ID Use SetStoryID and GetStoryID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryFwdHeader from given interface. GetFrom returns value of From conditional field and boolean which is true if field was set. GetFromName returns value of FromName conditional field and boolean which is true if field was set. GetModified returns value of Modified conditional field. GetStoryID returns value of StoryID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetFrom sets value of From conditional field. SetFromName sets value of FromName conditional field. SetModified sets value of Modified conditional field. SetStoryID sets value of StoryID 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. (*StoryFwdHeader) Zero() bool *StoryFwdHeader : github.com/gotd/td/bin.BareDecoder *StoryFwdHeader : github.com/gotd/td/bin.BareEncoder *StoryFwdHeader : github.com/gotd/td/bin.Decoder *StoryFwdHeader : github.com/gotd/td/bin.Encoder *StoryFwdHeader : github.com/gotd/td/bin.Object *StoryFwdHeader : github.com/gotd/td/tdp.Object *StoryFwdHeader : fmt.Stringer func (*StoryItem).GetFwdFrom() (value StoryFwdHeader, ok bool) func (*StoryItem).SetFwdFrom(value StoryFwdHeader)
StoryHandler is a Story event handler. func UpdateDispatcher.OnStory(handler StoryHandler)
StoryIDHandler is a StoryID event handler. func UpdateDispatcher.OnStoryID(handler StoryIDHandler)
StoryItem represents TL type `storyItem#af6365a1`. Represents a story¹. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/storyItem for reference. Story caption. Use SetCaption and GetCaption helpers. Whether this story can only be viewed by our close friends, see here »¹ for more info Links: 1) https://core.telegram.org/api/privacy Whether this story can only be viewed by our contacts When was the story posted. Indicates whether the story was edited. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Use SetEntities and GetEntities helpers. When does the story expire. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields For reposted stories »¹, contains info about the original story. Links: 1) https://core.telegram.org/api/stories#reposting-stories Use SetFwdFrom and GetFwdFrom helpers. ID of the story. Story media. List of media areas, see here »¹ for more info on media areas. Links: 1) https://core.telegram.org/api/stories#media-areas Use SetMediaAreas and GetMediaAreas helpers. Full information about this story was omitted for space and performance reasons; use stories.getStoriesByID¹ to fetch full info about this story when and if needed. Links: 1) https://core.telegram.org/method/stories.getStoriesByID Whether this story is protected¹ and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera). Links: 1) https://telegram.org/blog/protected-content-delete-by-date-and-more indicates whether we sent this story. Whether this story is pinned on the user's profile Privacy rules¹ indicating who can and can't view this story Links: 1) https://core.telegram.org/api/privacy Use SetPrivacy and GetPrivacy helpers. Whether this story is public and can be viewed by everyone Whether this story can only be viewed by a select list of our contacts The reaction we sent. Use SetSentReaction and GetSentReaction helpers. View date and reaction information Use SetViews and GetViews helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryItem from given interface. GetCaption returns value of Caption conditional field and boolean which is true if field was set. GetCloseFriends returns value of CloseFriends conditional field. GetContacts returns value of Contacts conditional field. GetDate returns value of Date field. GetEdited returns value of Edited conditional field. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetExpireDate returns value of ExpireDate field. GetFwdFrom returns value of FwdFrom conditional field and boolean which is true if field was set. GetID returns value of ID field. GetMedia returns value of Media field. GetMediaAreas returns value of MediaAreas conditional field and boolean which is true if field was set. GetMin returns value of Min conditional field. GetNoforwards returns value of Noforwards conditional field. GetOut returns value of Out conditional field. GetPinned returns value of Pinned conditional field. GetPrivacy returns value of Privacy conditional field and boolean which is true if field was set. GetPublic returns value of Public conditional field. GetSelectedContacts returns value of SelectedContacts conditional field. GetSentReaction returns value of SentReaction conditional field and boolean which is true if field was set. GetViews returns value of Views conditional field and boolean which is true if field was set. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. MapMediaAreas returns field MediaAreas wrapped in MediaAreaClassArray helper. MapPrivacy returns field Privacy wrapped in PrivacyRuleClassArray helper. SetCaption sets value of Caption conditional field. SetCloseFriends sets value of CloseFriends conditional field. SetContacts sets value of Contacts conditional field. SetEdited sets value of Edited conditional field. SetEntities sets value of Entities conditional field. SetFlags sets flags for non-zero fields. SetFwdFrom sets value of FwdFrom conditional field. SetMediaAreas sets value of MediaAreas conditional field. SetMin sets value of Min conditional field. SetNoforwards sets value of Noforwards conditional field. SetOut sets value of Out conditional field. SetPinned sets value of Pinned conditional field. SetPrivacy sets value of Privacy conditional field. SetPublic sets value of Public conditional field. SetSelectedContacts sets value of SelectedContacts conditional field. SetSentReaction sets value of SentReaction conditional field. SetViews sets value of Views 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. (*StoryItem) Zero() bool *StoryItem : StoryItemClass *StoryItem : github.com/gotd/td/bin.BareDecoder *StoryItem : github.com/gotd/td/bin.BareEncoder *StoryItem : github.com/gotd/td/bin.Decoder *StoryItem : github.com/gotd/td/bin.Encoder *StoryItem : github.com/gotd/td/bin.Object *StoryItem : github.com/gotd/td/tdp.Object *StoryItem : fmt.Stringer func StoryItemArray.First() (v StoryItem, ok bool) func StoryItemArray.Last() (v StoryItem, ok bool) func (*StoryItemArray).Pop() (v StoryItem, ok bool) func (*StoryItemArray).PopFirst() (v StoryItem, ok bool) func StoryItemArray.ToMap() map[int]StoryItem func StoryItemClassArray.StoryItemToMap() map[int]*StoryItem func StoryItemArray.FillMap(to map[int]StoryItem) func StoryItemClassArray.FillStoryItemMap(to map[int]*StoryItem)
StoryItemArray is adapter for slice of StoryItem. 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 StoryItem. Sort sorts slice of StoryItem. SortByDate sorts slice of StoryItem by Date. SortByID sorts slice of StoryItem by ID. SortStable sorts slice of StoryItem. SortStableByDate sorts slice of StoryItem by Date. SortStableByID sorts slice of StoryItem by ID. ToMap collects constructors to map. func StoryItemArray.Retain(keep func(x StoryItem) bool) StoryItemArray func StoryItemArray.Sort(less func(a, b StoryItem) bool) StoryItemArray func StoryItemArray.SortByDate() StoryItemArray func StoryItemArray.SortByID() StoryItemArray func StoryItemArray.SortStable(less func(a, b StoryItem) bool) StoryItemArray func StoryItemArray.SortStableByDate() StoryItemArray func StoryItemArray.SortStableByID() StoryItemArray func StoryItemClassArray.AsStoryItem() (to StoryItemArray)
StoryItem boxes the StoryItemClass providing a helper. StoryItem StoryItemClass Decode implements bin.Decoder for StoryItemBox. Encode implements bin.Encode for StoryItemBox. *StoryItemBox : github.com/gotd/td/bin.Decoder *StoryItemBox : github.com/gotd/td/bin.Encoder *StoryItemBox : github.com/gotd/td/bin.Object
StoryItemClass represents StoryItem generic type. See https://core.telegram.org/type/StoryItem for reference. Example: g, err := tg.DecodeStoryItem(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.StoryItemDeleted: // storyItemDeleted#51e6ee4f case *tg.StoryItemSkipped: // storyItemSkipped#ffadc913 case *tg.StoryItem: // storyItem#af6365a1 default: panic(v) } ( StoryItemClass) Decode(b *bin.Buffer) error ( StoryItemClass) DecodeBare(b *bin.Buffer) error ( StoryItemClass) Encode(b *bin.Buffer) error ( StoryItemClass) EncodeBare(b *bin.Buffer) error Story ID 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. *StoryItem *StoryItemDeleted *StoryItemSkipped StoryItemClass : github.com/gotd/td/bin.BareDecoder StoryItemClass : github.com/gotd/td/bin.BareEncoder StoryItemClass : github.com/gotd/td/bin.Decoder StoryItemClass : github.com/gotd/td/bin.Encoder StoryItemClass : github.com/gotd/td/bin.Object StoryItemClass : fmt.Stringer func DecodeStoryItem(buf *bin.Buffer) (StoryItemClass, error) func (*MessageMediaStory).GetStory() (value StoryItemClass, ok bool) func (*PeerStories).GetStories() (value []StoryItemClass) func (*PublicForwardStory).GetStory() (value StoryItemClass) func (*StoriesStories).GetStories() (value []StoryItemClass) func StoryItemClassArray.First() (v StoryItemClass, ok bool) func StoryItemClassArray.Last() (v StoryItemClass, ok bool) func (*StoryItemClassArray).Pop() (v StoryItemClass, ok bool) func (*StoryItemClassArray).PopFirst() (v StoryItemClass, ok bool) func (*StoryReactionPublicRepost).GetStory() (value StoryItemClass) func (*StoryViewPublicRepost).GetStory() (value StoryItemClass) func (*UpdateStory).GetStory() (value StoryItemClass) func (*WebPageAttributeStory).GetStory() (value StoryItemClass, ok bool) func (*MessageMediaStory).SetStory(value StoryItemClass) func (*WebPageAttributeStory).SetStory(value StoryItemClass)
StoryItemClassArray is adapter for slice of StoryItemClass. AsStoryItem returns copy with only StoryItem constructors. AsStoryItemDeleted returns copy with only StoryItemDeleted constructors. AsStoryItemSkipped returns copy with only StoryItemSkipped constructors. FillStoryItemDeletedMap fills only StoryItemDeleted constructors to given map. FillStoryItemMap fills only StoryItem constructors to given map. FillStoryItemSkippedMap fills only StoryItemSkipped 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 StoryItemClass. Sort sorts slice of StoryItemClass. SortByID sorts slice of StoryItemClass by ID. SortStable sorts slice of StoryItemClass. SortStableByID sorts slice of StoryItemClass by ID. StoryItemDeletedToMap collects only StoryItemDeleted constructors to map. StoryItemSkippedToMap collects only StoryItemSkipped constructors to map. StoryItemToMap collects only StoryItem constructors to map. func (*PeerStories).MapStories() (value StoryItemClassArray) func (*StoriesStories).MapStories() (value StoryItemClassArray) func StoryItemClassArray.Retain(keep func(x StoryItemClass) bool) StoryItemClassArray func StoryItemClassArray.Sort(less func(a, b StoryItemClass) bool) StoryItemClassArray func StoryItemClassArray.SortByID() StoryItemClassArray func StoryItemClassArray.SortStable(less func(a, b StoryItemClass) bool) StoryItemClassArray func StoryItemClassArray.SortStableByID() StoryItemClassArray
StoryItemDeleted represents TL type `storyItemDeleted#51e6ee4f`. Represents a previously active story, that was deleted See https://core.telegram.org/constructor/storyItemDeleted for reference. Chat ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryItemDeleted 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. (*StoryItemDeleted) Zero() bool *StoryItemDeleted : StoryItemClass *StoryItemDeleted : github.com/gotd/td/bin.BareDecoder *StoryItemDeleted : github.com/gotd/td/bin.BareEncoder *StoryItemDeleted : github.com/gotd/td/bin.Decoder *StoryItemDeleted : github.com/gotd/td/bin.Encoder *StoryItemDeleted : github.com/gotd/td/bin.Object *StoryItemDeleted : github.com/gotd/td/tdp.Object *StoryItemDeleted : fmt.Stringer func StoryItemClassArray.StoryItemDeletedToMap() map[int]*StoryItemDeleted func StoryItemDeletedArray.First() (v StoryItemDeleted, ok bool) func StoryItemDeletedArray.Last() (v StoryItemDeleted, ok bool) func (*StoryItemDeletedArray).Pop() (v StoryItemDeleted, ok bool) func (*StoryItemDeletedArray).PopFirst() (v StoryItemDeleted, ok bool) func StoryItemDeletedArray.ToMap() map[int]StoryItemDeleted func StoryItemClassArray.FillStoryItemDeletedMap(to map[int]*StoryItemDeleted) func StoryItemDeletedArray.FillMap(to map[int]StoryItemDeleted)
StoryItemDeletedArray is adapter for slice of StoryItemDeleted. 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 StoryItemDeleted. Sort sorts slice of StoryItemDeleted. SortByID sorts slice of StoryItemDeleted by ID. SortStable sorts slice of StoryItemDeleted. SortStableByID sorts slice of StoryItemDeleted by ID. ToMap collects constructors to map. func StoryItemClassArray.AsStoryItemDeleted() (to StoryItemDeletedArray) func StoryItemDeletedArray.Retain(keep func(x StoryItemDeleted) bool) StoryItemDeletedArray func StoryItemDeletedArray.Sort(less func(a, b StoryItemDeleted) bool) StoryItemDeletedArray func StoryItemDeletedArray.SortByID() StoryItemDeletedArray func StoryItemDeletedArray.SortStable(less func(a, b StoryItemDeleted) bool) StoryItemDeletedArray func StoryItemDeletedArray.SortStableByID() StoryItemDeletedArray
StoryItemSkipped represents TL type `storyItemSkipped#ffadc913`. Represents an active story, whose full information was omitted for space and performance reasons; use stories.getStoriesByID¹ to fetch full info about the skipped story when and if needed. Links: 1. https://core.telegram.org/method/stories.getStoriesByID See https://core.telegram.org/constructor/storyItemSkipped for reference. Whether this story can only be viewed by our close friends, see here »¹ for more info Links: 1) https://core.telegram.org/api/privacy When was the story posted. When does the story expire. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Story ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryItemSkipped from given interface. GetCloseFriends returns value of CloseFriends conditional field. GetDate returns value of Date field. GetExpireDate returns value of ExpireDate field. GetID returns value of ID field. SetCloseFriends sets value of CloseFriends 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. (*StoryItemSkipped) Zero() bool *StoryItemSkipped : StoryItemClass *StoryItemSkipped : github.com/gotd/td/bin.BareDecoder *StoryItemSkipped : github.com/gotd/td/bin.BareEncoder *StoryItemSkipped : github.com/gotd/td/bin.Decoder *StoryItemSkipped : github.com/gotd/td/bin.Encoder *StoryItemSkipped : github.com/gotd/td/bin.Object *StoryItemSkipped : github.com/gotd/td/tdp.Object *StoryItemSkipped : fmt.Stringer func StoryItemClassArray.StoryItemSkippedToMap() map[int]*StoryItemSkipped func StoryItemSkippedArray.First() (v StoryItemSkipped, ok bool) func StoryItemSkippedArray.Last() (v StoryItemSkipped, ok bool) func (*StoryItemSkippedArray).Pop() (v StoryItemSkipped, ok bool) func (*StoryItemSkippedArray).PopFirst() (v StoryItemSkipped, ok bool) func StoryItemSkippedArray.ToMap() map[int]StoryItemSkipped func StoryItemClassArray.FillStoryItemSkippedMap(to map[int]*StoryItemSkipped) func StoryItemSkippedArray.FillMap(to map[int]StoryItemSkipped)
StoryItemSkippedArray is adapter for slice of StoryItemSkipped. 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 StoryItemSkipped. Sort sorts slice of StoryItemSkipped. SortByDate sorts slice of StoryItemSkipped by Date. SortByID sorts slice of StoryItemSkipped by ID. SortStable sorts slice of StoryItemSkipped. SortStableByDate sorts slice of StoryItemSkipped by Date. SortStableByID sorts slice of StoryItemSkipped by ID. ToMap collects constructors to map. func StoryItemClassArray.AsStoryItemSkipped() (to StoryItemSkippedArray) func StoryItemSkippedArray.Retain(keep func(x StoryItemSkipped) bool) StoryItemSkippedArray func StoryItemSkippedArray.Sort(less func(a, b StoryItemSkipped) bool) StoryItemSkippedArray func StoryItemSkippedArray.SortByDate() StoryItemSkippedArray func StoryItemSkippedArray.SortByID() StoryItemSkippedArray func StoryItemSkippedArray.SortStable(less func(a, b StoryItemSkipped) bool) StoryItemSkippedArray func StoryItemSkippedArray.SortStableByDate() StoryItemSkippedArray func StoryItemSkippedArray.SortStableByID() StoryItemSkippedArray
StoryReaction represents TL type `storyReaction#6090d6d5`. See https://core.telegram.org/constructor/storyReaction for reference. Date field of StoryReaction. PeerID field of StoryReaction. Reaction field of StoryReaction. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryReaction from given interface. GetDate returns value of Date field. GetPeerID returns value of PeerID field. GetReaction returns value of Reaction 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. (*StoryReaction) Zero() bool *StoryReaction : StoryReactionClass *StoryReaction : github.com/gotd/td/bin.BareDecoder *StoryReaction : github.com/gotd/td/bin.BareEncoder *StoryReaction : github.com/gotd/td/bin.Decoder *StoryReaction : github.com/gotd/td/bin.Encoder *StoryReaction : github.com/gotd/td/bin.Object *StoryReaction : github.com/gotd/td/tdp.Object *StoryReaction : fmt.Stringer func StoryReactionArray.First() (v StoryReaction, ok bool) func StoryReactionArray.Last() (v StoryReaction, ok bool) func (*StoryReactionArray).Pop() (v StoryReaction, ok bool) func (*StoryReactionArray).PopFirst() (v StoryReaction, ok bool)
StoryReactionArray is adapter for slice of StoryReaction. 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 StoryReaction. Sort sorts slice of StoryReaction. SortByDate sorts slice of StoryReaction by Date. SortStable sorts slice of StoryReaction. SortStableByDate sorts slice of StoryReaction by Date. func StoryReactionArray.Retain(keep func(x StoryReaction) bool) StoryReactionArray func StoryReactionArray.Sort(less func(a, b StoryReaction) bool) StoryReactionArray func StoryReactionArray.SortByDate() StoryReactionArray func StoryReactionArray.SortStable(less func(a, b StoryReaction) bool) StoryReactionArray func StoryReactionArray.SortStableByDate() StoryReactionArray func StoryReactionClassArray.AsStoryReaction() (to StoryReactionArray)
StoryReaction boxes the StoryReactionClass providing a helper. StoryReaction StoryReactionClass Decode implements bin.Decoder for StoryReactionBox. Encode implements bin.Encode for StoryReactionBox. *StoryReactionBox : github.com/gotd/td/bin.Decoder *StoryReactionBox : github.com/gotd/td/bin.Encoder *StoryReactionBox : github.com/gotd/td/bin.Object
StoryReactionClass represents StoryReaction generic type. See https://core.telegram.org/type/StoryReaction for reference. Example: g, err := tg.DecodeStoryReaction(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.StoryReaction: // storyReaction#6090d6d5 case *tg.StoryReactionPublicForward: // storyReactionPublicForward#bbab2643 case *tg.StoryReactionPublicRepost: // storyReactionPublicRepost#cfcd0f13 default: panic(v) } ( StoryReactionClass) Decode(b *bin.Buffer) error ( StoryReactionClass) DecodeBare(b *bin.Buffer) error ( StoryReactionClass) Encode(b *bin.Buffer) error ( StoryReactionClass) 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. *StoryReaction *StoryReactionPublicForward *StoryReactionPublicRepost StoryReactionClass : github.com/gotd/td/bin.BareDecoder StoryReactionClass : github.com/gotd/td/bin.BareEncoder StoryReactionClass : github.com/gotd/td/bin.Decoder StoryReactionClass : github.com/gotd/td/bin.Encoder StoryReactionClass : github.com/gotd/td/bin.Object StoryReactionClass : fmt.Stringer func DecodeStoryReaction(buf *bin.Buffer) (StoryReactionClass, error) func (*StoriesStoryReactionsList).GetReactions() (value []StoryReactionClass) func StoryReactionClassArray.First() (v StoryReactionClass, ok bool) func StoryReactionClassArray.Last() (v StoryReactionClass, ok bool) func (*StoryReactionClassArray).Pop() (v StoryReactionClass, ok bool) func (*StoryReactionClassArray).PopFirst() (v StoryReactionClass, ok bool)
StoryReactionClassArray is adapter for slice of StoryReactionClass. AsStoryReaction returns copy with only StoryReaction constructors. AsStoryReactionPublicForward returns copy with only StoryReactionPublicForward constructors. AsStoryReactionPublicRepost returns copy with only StoryReactionPublicRepost 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 StoryReactionClass. Sort sorts slice of StoryReactionClass. SortStable sorts slice of StoryReactionClass. func (*StoriesStoryReactionsList).MapReactions() (value StoryReactionClassArray) func StoryReactionClassArray.Retain(keep func(x StoryReactionClass) bool) StoryReactionClassArray func StoryReactionClassArray.Sort(less func(a, b StoryReactionClass) bool) StoryReactionClassArray func StoryReactionClassArray.SortStable(less func(a, b StoryReactionClass) bool) StoryReactionClassArray
StoryReactionPublicForward represents TL type `storyReactionPublicForward#bbab2643`. See https://core.telegram.org/constructor/storyReactionPublicForward for reference. The message that was pinned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryReactionPublicForward from given interface. GetMessage returns value of Message 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. (*StoryReactionPublicForward) Zero() bool *StoryReactionPublicForward : StoryReactionClass *StoryReactionPublicForward : github.com/gotd/td/bin.BareDecoder *StoryReactionPublicForward : github.com/gotd/td/bin.BareEncoder *StoryReactionPublicForward : github.com/gotd/td/bin.Decoder *StoryReactionPublicForward : github.com/gotd/td/bin.Encoder *StoryReactionPublicForward : github.com/gotd/td/bin.Object *StoryReactionPublicForward : github.com/gotd/td/tdp.Object *StoryReactionPublicForward : fmt.Stringer func StoryReactionPublicForwardArray.First() (v StoryReactionPublicForward, ok bool) func StoryReactionPublicForwardArray.Last() (v StoryReactionPublicForward, ok bool) func (*StoryReactionPublicForwardArray).Pop() (v StoryReactionPublicForward, ok bool) func (*StoryReactionPublicForwardArray).PopFirst() (v StoryReactionPublicForward, ok bool)
StoryReactionPublicForwardArray is adapter for slice of StoryReactionPublicForward. 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 StoryReactionPublicForward. Sort sorts slice of StoryReactionPublicForward. SortStable sorts slice of StoryReactionPublicForward. func StoryReactionClassArray.AsStoryReactionPublicForward() (to StoryReactionPublicForwardArray) func StoryReactionPublicForwardArray.Retain(keep func(x StoryReactionPublicForward) bool) StoryReactionPublicForwardArray func StoryReactionPublicForwardArray.Sort(less func(a, b StoryReactionPublicForward) bool) StoryReactionPublicForwardArray func StoryReactionPublicForwardArray.SortStable(less func(a, b StoryReactionPublicForward) bool) StoryReactionPublicForwardArray
StoryReactionPublicRepost represents TL type `storyReactionPublicRepost#cfcd0f13`. See https://core.telegram.org/constructor/storyReactionPublicRepost for reference. PeerID field of StoryReactionPublicRepost. Story field of StoryReactionPublicRepost. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryReactionPublicRepost from given interface. GetPeerID returns value of PeerID field. GetStory returns value of Story 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. (*StoryReactionPublicRepost) Zero() bool *StoryReactionPublicRepost : StoryReactionClass *StoryReactionPublicRepost : github.com/gotd/td/bin.BareDecoder *StoryReactionPublicRepost : github.com/gotd/td/bin.BareEncoder *StoryReactionPublicRepost : github.com/gotd/td/bin.Decoder *StoryReactionPublicRepost : github.com/gotd/td/bin.Encoder *StoryReactionPublicRepost : github.com/gotd/td/bin.Object *StoryReactionPublicRepost : github.com/gotd/td/tdp.Object *StoryReactionPublicRepost : fmt.Stringer func StoryReactionPublicRepostArray.First() (v StoryReactionPublicRepost, ok bool) func StoryReactionPublicRepostArray.Last() (v StoryReactionPublicRepost, ok bool) func (*StoryReactionPublicRepostArray).Pop() (v StoryReactionPublicRepost, ok bool) func (*StoryReactionPublicRepostArray).PopFirst() (v StoryReactionPublicRepost, ok bool)
StoryReactionPublicRepostArray is adapter for slice of StoryReactionPublicRepost. 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 StoryReactionPublicRepost. Sort sorts slice of StoryReactionPublicRepost. SortStable sorts slice of StoryReactionPublicRepost. func StoryReactionClassArray.AsStoryReactionPublicRepost() (to StoryReactionPublicRepostArray) func StoryReactionPublicRepostArray.Retain(keep func(x StoryReactionPublicRepost) bool) StoryReactionPublicRepostArray func StoryReactionPublicRepostArray.Sort(less func(a, b StoryReactionPublicRepost) bool) StoryReactionPublicRepostArray func StoryReactionPublicRepostArray.SortStable(less func(a, b StoryReactionPublicRepost) bool) StoryReactionPublicRepostArray
StoryView represents TL type `storyView#b0bdeac5`. Story¹ view date and reaction information Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/storyView for reference. Whether we have completely blocked¹ this user, including from viewing more of our stories. Links: 1) https://core.telegram.org/api/block Whether we have blocked¹ this user from viewing more of our stories. Links: 1) https://core.telegram.org/api/block When did the user view the story Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If present, contains the reaction that the user left on the story Use SetReaction and GetReaction helpers. The user that viewed the story Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryView from given interface. GetBlocked returns value of Blocked conditional field. GetBlockedMyStoriesFrom returns value of BlockedMyStoriesFrom conditional field. GetDate returns value of Date field. GetReaction returns value of Reaction conditional field and boolean which is true if field was set. GetUserID returns value of UserID field. SetBlocked sets value of Blocked conditional field. SetBlockedMyStoriesFrom sets value of BlockedMyStoriesFrom conditional field. SetFlags sets flags for non-zero fields. SetReaction sets value of Reaction 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. (*StoryView) Zero() bool *StoryView : StoryViewClass *StoryView : github.com/gotd/td/bin.BareDecoder *StoryView : github.com/gotd/td/bin.BareEncoder *StoryView : github.com/gotd/td/bin.Decoder *StoryView : github.com/gotd/td/bin.Encoder *StoryView : github.com/gotd/td/bin.Object *StoryView : github.com/gotd/td/tdp.Object *StoryView : fmt.Stringer func StoryViewArray.First() (v StoryView, ok bool) func StoryViewArray.Last() (v StoryView, ok bool) func (*StoryViewArray).Pop() (v StoryView, ok bool) func (*StoryViewArray).PopFirst() (v StoryView, ok bool)
StoryViewArray is adapter for slice of StoryView. 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 StoryView. Sort sorts slice of StoryView. SortByDate sorts slice of StoryView by Date. SortStable sorts slice of StoryView. SortStableByDate sorts slice of StoryView by Date. func StoryViewArray.Retain(keep func(x StoryView) bool) StoryViewArray func StoryViewArray.Sort(less func(a, b StoryView) bool) StoryViewArray func StoryViewArray.SortByDate() StoryViewArray func StoryViewArray.SortStable(less func(a, b StoryView) bool) StoryViewArray func StoryViewArray.SortStableByDate() StoryViewArray func StoryViewClassArray.AsStoryView() (to StoryViewArray)
StoryView boxes the StoryViewClass providing a helper. StoryView StoryViewClass Decode implements bin.Decoder for StoryViewBox. Encode implements bin.Encode for StoryViewBox. *StoryViewBox : github.com/gotd/td/bin.Decoder *StoryViewBox : github.com/gotd/td/bin.Encoder *StoryViewBox : github.com/gotd/td/bin.Object
StoryViewClass represents StoryView generic type. See https://core.telegram.org/type/StoryView for reference. Example: g, err := tg.DecodeStoryView(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.StoryView: // storyView#b0bdeac5 case *tg.StoryViewPublicForward: // storyViewPublicForward#9083670b case *tg.StoryViewPublicRepost: // storyViewPublicRepost#bd74cf49 default: panic(v) } ( StoryViewClass) Decode(b *bin.Buffer) error ( StoryViewClass) DecodeBare(b *bin.Buffer) error ( StoryViewClass) Encode(b *bin.Buffer) error ( StoryViewClass) EncodeBare(b *bin.Buffer) error Whether we have completely blocked¹ this user, including from viewing more of our stories. Links: 1) https://core.telegram.org/api/block Whether we have blocked¹ this user from viewing more of our stories. Links: 1) https://core.telegram.org/api/block 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. *StoryView *StoryViewPublicForward *StoryViewPublicRepost StoryViewClass : github.com/gotd/td/bin.BareDecoder StoryViewClass : github.com/gotd/td/bin.BareEncoder StoryViewClass : github.com/gotd/td/bin.Decoder StoryViewClass : github.com/gotd/td/bin.Encoder StoryViewClass : github.com/gotd/td/bin.Object StoryViewClass : fmt.Stringer func DecodeStoryView(buf *bin.Buffer) (StoryViewClass, error) func (*StoriesStoryViewsList).GetViews() (value []StoryViewClass) func StoryViewClassArray.First() (v StoryViewClass, ok bool) func StoryViewClassArray.Last() (v StoryViewClass, ok bool) func (*StoryViewClassArray).Pop() (v StoryViewClass, ok bool) func (*StoryViewClassArray).PopFirst() (v StoryViewClass, ok bool)
StoryViewClassArray is adapter for slice of StoryViewClass. AsStoryView returns copy with only StoryView constructors. AsStoryViewPublicForward returns copy with only StoryViewPublicForward constructors. AsStoryViewPublicRepost returns copy with only StoryViewPublicRepost 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 StoryViewClass. Sort sorts slice of StoryViewClass. SortStable sorts slice of StoryViewClass. func (*StoriesStoryViewsList).MapViews() (value StoryViewClassArray) func StoryViewClassArray.Retain(keep func(x StoryViewClass) bool) StoryViewClassArray func StoryViewClassArray.Sort(less func(a, b StoryViewClass) bool) StoryViewClassArray func StoryViewClassArray.SortStable(less func(a, b StoryViewClass) bool) StoryViewClassArray
StoryViewPublicForward represents TL type `storyViewPublicForward#9083670b`. See https://core.telegram.org/constructor/storyViewPublicForward for reference. Blocked field of StoryViewPublicForward. BlockedMyStoriesFrom field of StoryViewPublicForward. Flags field of StoryViewPublicForward. Message field of StoryViewPublicForward. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryViewPublicForward from given interface. GetBlocked returns value of Blocked conditional field. GetBlockedMyStoriesFrom returns value of BlockedMyStoriesFrom conditional field. GetMessage returns value of Message field. SetBlocked sets value of Blocked conditional field. SetBlockedMyStoriesFrom sets value of BlockedMyStoriesFrom 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. (*StoryViewPublicForward) Zero() bool *StoryViewPublicForward : StoryViewClass *StoryViewPublicForward : github.com/gotd/td/bin.BareDecoder *StoryViewPublicForward : github.com/gotd/td/bin.BareEncoder *StoryViewPublicForward : github.com/gotd/td/bin.Decoder *StoryViewPublicForward : github.com/gotd/td/bin.Encoder *StoryViewPublicForward : github.com/gotd/td/bin.Object *StoryViewPublicForward : github.com/gotd/td/tdp.Object *StoryViewPublicForward : fmt.Stringer func StoryViewPublicForwardArray.First() (v StoryViewPublicForward, ok bool) func StoryViewPublicForwardArray.Last() (v StoryViewPublicForward, ok bool) func (*StoryViewPublicForwardArray).Pop() (v StoryViewPublicForward, ok bool) func (*StoryViewPublicForwardArray).PopFirst() (v StoryViewPublicForward, ok bool)
StoryViewPublicForwardArray is adapter for slice of StoryViewPublicForward. 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 StoryViewPublicForward. Sort sorts slice of StoryViewPublicForward. SortStable sorts slice of StoryViewPublicForward. func StoryViewClassArray.AsStoryViewPublicForward() (to StoryViewPublicForwardArray) func StoryViewPublicForwardArray.Retain(keep func(x StoryViewPublicForward) bool) StoryViewPublicForwardArray func StoryViewPublicForwardArray.Sort(less func(a, b StoryViewPublicForward) bool) StoryViewPublicForwardArray func StoryViewPublicForwardArray.SortStable(less func(a, b StoryViewPublicForward) bool) StoryViewPublicForwardArray
StoryViewPublicRepost represents TL type `storyViewPublicRepost#bd74cf49`. See https://core.telegram.org/constructor/storyViewPublicRepost for reference. Blocked field of StoryViewPublicRepost. BlockedMyStoriesFrom field of StoryViewPublicRepost. Flags field of StoryViewPublicRepost. PeerID field of StoryViewPublicRepost. Story field of StoryViewPublicRepost. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryViewPublicRepost from given interface. GetBlocked returns value of Blocked conditional field. GetBlockedMyStoriesFrom returns value of BlockedMyStoriesFrom conditional field. GetPeerID returns value of PeerID field. GetStory returns value of Story field. SetBlocked sets value of Blocked conditional field. SetBlockedMyStoriesFrom sets value of BlockedMyStoriesFrom 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. (*StoryViewPublicRepost) Zero() bool *StoryViewPublicRepost : StoryViewClass *StoryViewPublicRepost : github.com/gotd/td/bin.BareDecoder *StoryViewPublicRepost : github.com/gotd/td/bin.BareEncoder *StoryViewPublicRepost : github.com/gotd/td/bin.Decoder *StoryViewPublicRepost : github.com/gotd/td/bin.Encoder *StoryViewPublicRepost : github.com/gotd/td/bin.Object *StoryViewPublicRepost : github.com/gotd/td/tdp.Object *StoryViewPublicRepost : fmt.Stringer func StoryViewPublicRepostArray.First() (v StoryViewPublicRepost, ok bool) func StoryViewPublicRepostArray.Last() (v StoryViewPublicRepost, ok bool) func (*StoryViewPublicRepostArray).Pop() (v StoryViewPublicRepost, ok bool) func (*StoryViewPublicRepostArray).PopFirst() (v StoryViewPublicRepost, ok bool)
StoryViewPublicRepostArray is adapter for slice of StoryViewPublicRepost. 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 StoryViewPublicRepost. Sort sorts slice of StoryViewPublicRepost. SortStable sorts slice of StoryViewPublicRepost. func StoryViewClassArray.AsStoryViewPublicRepost() (to StoryViewPublicRepostArray) func StoryViewPublicRepostArray.Retain(keep func(x StoryViewPublicRepost) bool) StoryViewPublicRepostArray func StoryViewPublicRepostArray.Sort(less func(a, b StoryViewPublicRepost) bool) StoryViewPublicRepostArray func StoryViewPublicRepostArray.SortStable(less func(a, b StoryViewPublicRepost) bool) StoryViewPublicRepostArray
StoryViews represents TL type `storyViews#8d595cd6`. Aggregated view and reaction information of a story¹. Links: 1. https://core.telegram.org/api/stories See https://core.telegram.org/constructor/storyViews for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Forward counter of the story Use SetForwardsCount and GetForwardsCount helpers. If set, indicates that the viewers list is currently viewable, and was not yet deleted because the story has expired while the user didn't have a Premium¹ account. Links: 1) https://core.telegram.org/api/premium All reactions sent to this story Use SetReactions and GetReactions helpers. Number of reactions added to the story Use SetReactionsCount and GetReactionsCount helpers. User IDs of some recent viewers of the story Use SetRecentViewers and GetRecentViewers helpers. View counter of the story Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills StoryViews from given interface. GetForwardsCount returns value of ForwardsCount conditional field and boolean which is true if field was set. GetHasViewers returns value of HasViewers conditional field. GetReactions returns value of Reactions conditional field and boolean which is true if field was set. GetReactionsCount returns value of ReactionsCount conditional field and boolean which is true if field was set. GetRecentViewers returns value of RecentViewers conditional field and boolean which is true if field was set. GetViewsCount returns value of ViewsCount field. SetFlags sets flags for non-zero fields. SetForwardsCount sets value of ForwardsCount conditional field. SetHasViewers sets value of HasViewers conditional field. SetReactions sets value of Reactions conditional field. SetReactionsCount sets value of ReactionsCount conditional field. SetRecentViewers sets value of RecentViewers 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. (*StoryViews) Zero() bool *StoryViews : github.com/gotd/td/bin.BareDecoder *StoryViews : github.com/gotd/td/bin.BareEncoder *StoryViews : github.com/gotd/td/bin.Decoder *StoryViews : github.com/gotd/td/bin.Encoder *StoryViews : github.com/gotd/td/bin.Object *StoryViews : github.com/gotd/td/tdp.Object *StoryViews : fmt.Stringer func (*StoriesStoryViews).GetViews() (value []StoryViews) func (*StoryItem).GetViews() (value StoryViews, ok bool) func (*StoryItem).SetViews(value StoryViews)
String represents TL type `string#b5286e24`. See https://core.telegram.org/constructor/string 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. (*String) Zero() bool *String : github.com/gotd/td/bin.BareDecoder *String : github.com/gotd/td/bin.BareEncoder *String : github.com/gotd/td/bin.Decoder *String : github.com/gotd/td/bin.Encoder *String : github.com/gotd/td/bin.Object *String : github.com/gotd/td/tdp.Object *String : fmt.Stringer
TestUseConfigSimpleRequest represents TL type `test.useConfigSimple#f9b7b23d`. See https://core.telegram.org/method/test.useConfigSimple 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. (*TestUseConfigSimpleRequest) Zero() bool *TestUseConfigSimpleRequest : github.com/gotd/td/bin.BareDecoder *TestUseConfigSimpleRequest : github.com/gotd/td/bin.BareEncoder *TestUseConfigSimpleRequest : github.com/gotd/td/bin.Decoder *TestUseConfigSimpleRequest : github.com/gotd/td/bin.Encoder *TestUseConfigSimpleRequest : github.com/gotd/td/bin.Object *TestUseConfigSimpleRequest : github.com/gotd/td/tdp.Object *TestUseConfigSimpleRequest : fmt.Stringer
TestUseErrorRequest represents TL type `test.useError#ee75af01`. See https://core.telegram.org/method/test.useError 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. (*TestUseErrorRequest) Zero() bool *TestUseErrorRequest : github.com/gotd/td/bin.BareDecoder *TestUseErrorRequest : github.com/gotd/td/bin.BareEncoder *TestUseErrorRequest : github.com/gotd/td/bin.Decoder *TestUseErrorRequest : github.com/gotd/td/bin.Encoder *TestUseErrorRequest : github.com/gotd/td/bin.Object *TestUseErrorRequest : github.com/gotd/td/tdp.Object *TestUseErrorRequest : fmt.Stringer
TextAnchor represents TL type `textAnchor#35553762`. Text linking to another section of the page See https://core.telegram.org/constructor/textAnchor for reference. Section name Text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextAnchor from given interface. GetName returns value of Name field. GetText returns value of Text 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. (*TextAnchor) Zero() bool *TextAnchor : RichTextClass *TextAnchor : github.com/gotd/td/bin.BareDecoder *TextAnchor : github.com/gotd/td/bin.BareEncoder *TextAnchor : github.com/gotd/td/bin.Decoder *TextAnchor : github.com/gotd/td/bin.Encoder *TextAnchor : github.com/gotd/td/bin.Object *TextAnchor : github.com/gotd/td/tdp.Object *TextAnchor : fmt.Stringer func TextAnchorArray.First() (v TextAnchor, ok bool) func TextAnchorArray.Last() (v TextAnchor, ok bool) func (*TextAnchorArray).Pop() (v TextAnchor, ok bool) func (*TextAnchorArray).PopFirst() (v TextAnchor, ok bool)
TextAnchorArray is adapter for slice of TextAnchor. 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 TextAnchor. Sort sorts slice of TextAnchor. SortStable sorts slice of TextAnchor. func RichTextClassArray.AsTextAnchor() (to TextAnchorArray) func TextAnchorArray.Retain(keep func(x TextAnchor) bool) TextAnchorArray func TextAnchorArray.Sort(less func(a, b TextAnchor) bool) TextAnchorArray func TextAnchorArray.SortStable(less func(a, b TextAnchor) bool) TextAnchorArray
TextBold represents TL type `textBold#6724abc4`. Bold text See https://core.telegram.org/constructor/textBold for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextBold from given interface. GetText returns value of Text 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. (*TextBold) Zero() bool *TextBold : RichTextClass *TextBold : github.com/gotd/td/bin.BareDecoder *TextBold : github.com/gotd/td/bin.BareEncoder *TextBold : github.com/gotd/td/bin.Decoder *TextBold : github.com/gotd/td/bin.Encoder *TextBold : github.com/gotd/td/bin.Object *TextBold : github.com/gotd/td/tdp.Object *TextBold : fmt.Stringer func TextBoldArray.First() (v TextBold, ok bool) func TextBoldArray.Last() (v TextBold, ok bool) func (*TextBoldArray).Pop() (v TextBold, ok bool) func (*TextBoldArray).PopFirst() (v TextBold, ok bool)
TextBoldArray is adapter for slice of TextBold. 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 TextBold. Sort sorts slice of TextBold. SortStable sorts slice of TextBold. func RichTextClassArray.AsTextBold() (to TextBoldArray) func TextBoldArray.Retain(keep func(x TextBold) bool) TextBoldArray func TextBoldArray.Sort(less func(a, b TextBold) bool) TextBoldArray func TextBoldArray.SortStable(less func(a, b TextBold) bool) TextBoldArray
TextConcat represents TL type `textConcat#7e6260d7`. Concatenation of rich texts See https://core.telegram.org/constructor/textConcat for reference. Concatenated rich texts Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextConcat from given interface. GetTexts returns value of Texts field. MapTexts returns field Texts wrapped in RichTextClassArray 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. (*TextConcat) Zero() bool *TextConcat : RichTextClass *TextConcat : github.com/gotd/td/bin.BareDecoder *TextConcat : github.com/gotd/td/bin.BareEncoder *TextConcat : github.com/gotd/td/bin.Decoder *TextConcat : github.com/gotd/td/bin.Encoder *TextConcat : github.com/gotd/td/bin.Object *TextConcat : github.com/gotd/td/tdp.Object *TextConcat : fmt.Stringer func TextConcatArray.First() (v TextConcat, ok bool) func TextConcatArray.Last() (v TextConcat, ok bool) func (*TextConcatArray).Pop() (v TextConcat, ok bool) func (*TextConcatArray).PopFirst() (v TextConcat, ok bool)
TextConcatArray is adapter for slice of TextConcat. 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 TextConcat. Sort sorts slice of TextConcat. SortStable sorts slice of TextConcat. func RichTextClassArray.AsTextConcat() (to TextConcatArray) func TextConcatArray.Retain(keep func(x TextConcat) bool) TextConcatArray func TextConcatArray.Sort(less func(a, b TextConcat) bool) TextConcatArray func TextConcatArray.SortStable(less func(a, b TextConcat) bool) TextConcatArray
TextEmail represents TL type `textEmail#de5a0dd6`. Rich text email link See https://core.telegram.org/constructor/textEmail for reference. Email address Link text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextEmail from given interface. GetEmail returns value of Email field. GetText returns value of Text 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. (*TextEmail) Zero() bool *TextEmail : RichTextClass *TextEmail : github.com/gotd/td/bin.BareDecoder *TextEmail : github.com/gotd/td/bin.BareEncoder *TextEmail : github.com/gotd/td/bin.Decoder *TextEmail : github.com/gotd/td/bin.Encoder *TextEmail : github.com/gotd/td/bin.Object *TextEmail : github.com/gotd/td/tdp.Object *TextEmail : fmt.Stringer func TextEmailArray.First() (v TextEmail, ok bool) func TextEmailArray.Last() (v TextEmail, ok bool) func (*TextEmailArray).Pop() (v TextEmail, ok bool) func (*TextEmailArray).PopFirst() (v TextEmail, ok bool)
TextEmailArray is adapter for slice of TextEmail. 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 TextEmail. Sort sorts slice of TextEmail. SortStable sorts slice of TextEmail. func RichTextClassArray.AsTextEmail() (to TextEmailArray) func TextEmailArray.Retain(keep func(x TextEmail) bool) TextEmailArray func TextEmailArray.Sort(less func(a, b TextEmail) bool) TextEmailArray func TextEmailArray.SortStable(less func(a, b TextEmail) bool) TextEmailArray
TextEmpty represents TL type `textEmpty#dc3d824f`. Empty rich text element See https://core.telegram.org/constructor/textEmpty 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. (*TextEmpty) Zero() bool *TextEmpty : RichTextClass *TextEmpty : github.com/gotd/td/bin.BareDecoder *TextEmpty : github.com/gotd/td/bin.BareEncoder *TextEmpty : github.com/gotd/td/bin.Decoder *TextEmpty : github.com/gotd/td/bin.Encoder *TextEmpty : github.com/gotd/td/bin.Object *TextEmpty : github.com/gotd/td/tdp.Object *TextEmpty : fmt.Stringer
TextFixed represents TL type `textFixed#6c3f19b9`. fixed-width rich text See https://core.telegram.org/constructor/textFixed for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextFixed from given interface. GetText returns value of Text 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. (*TextFixed) Zero() bool *TextFixed : RichTextClass *TextFixed : github.com/gotd/td/bin.BareDecoder *TextFixed : github.com/gotd/td/bin.BareEncoder *TextFixed : github.com/gotd/td/bin.Decoder *TextFixed : github.com/gotd/td/bin.Encoder *TextFixed : github.com/gotd/td/bin.Object *TextFixed : github.com/gotd/td/tdp.Object *TextFixed : fmt.Stringer func TextFixedArray.First() (v TextFixed, ok bool) func TextFixedArray.Last() (v TextFixed, ok bool) func (*TextFixedArray).Pop() (v TextFixed, ok bool) func (*TextFixedArray).PopFirst() (v TextFixed, ok bool)
TextFixedArray is adapter for slice of TextFixed. 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 TextFixed. Sort sorts slice of TextFixed. SortStable sorts slice of TextFixed. func RichTextClassArray.AsTextFixed() (to TextFixedArray) func TextFixedArray.Retain(keep func(x TextFixed) bool) TextFixedArray func TextFixedArray.Sort(less func(a, b TextFixed) bool) TextFixedArray func TextFixedArray.SortStable(less func(a, b TextFixed) bool) TextFixedArray
TextImage represents TL type `textImage#81ccf4f`. Inline image See https://core.telegram.org/constructor/textImage for reference. Document ID Height Width Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextImage from given interface. GetDocumentID returns value of DocumentID field. GetH returns value of H field. GetW returns value of W 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. (*TextImage) Zero() bool *TextImage : RichTextClass *TextImage : github.com/gotd/td/bin.BareDecoder *TextImage : github.com/gotd/td/bin.BareEncoder *TextImage : github.com/gotd/td/bin.Decoder *TextImage : github.com/gotd/td/bin.Encoder *TextImage : github.com/gotd/td/bin.Object *TextImage : github.com/gotd/td/tdp.Object *TextImage : fmt.Stringer func TextImageArray.First() (v TextImage, ok bool) func TextImageArray.Last() (v TextImage, ok bool) func (*TextImageArray).Pop() (v TextImage, ok bool) func (*TextImageArray).PopFirst() (v TextImage, ok bool)
TextImageArray is adapter for slice of TextImage. 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 TextImage. Sort sorts slice of TextImage. SortStable sorts slice of TextImage. func RichTextClassArray.AsTextImage() (to TextImageArray) func TextImageArray.Retain(keep func(x TextImage) bool) TextImageArray func TextImageArray.Sort(less func(a, b TextImage) bool) TextImageArray func TextImageArray.SortStable(less func(a, b TextImage) bool) TextImageArray
TextItalic represents TL type `textItalic#d912a59c`. Italic text See https://core.telegram.org/constructor/textItalic for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextItalic from given interface. GetText returns value of Text 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. (*TextItalic) Zero() bool *TextItalic : RichTextClass *TextItalic : github.com/gotd/td/bin.BareDecoder *TextItalic : github.com/gotd/td/bin.BareEncoder *TextItalic : github.com/gotd/td/bin.Decoder *TextItalic : github.com/gotd/td/bin.Encoder *TextItalic : github.com/gotd/td/bin.Object *TextItalic : github.com/gotd/td/tdp.Object *TextItalic : fmt.Stringer func TextItalicArray.First() (v TextItalic, ok bool) func TextItalicArray.Last() (v TextItalic, ok bool) func (*TextItalicArray).Pop() (v TextItalic, ok bool) func (*TextItalicArray).PopFirst() (v TextItalic, ok bool)
TextItalicArray is adapter for slice of TextItalic. 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 TextItalic. Sort sorts slice of TextItalic. SortStable sorts slice of TextItalic. func RichTextClassArray.AsTextItalic() (to TextItalicArray) func TextItalicArray.Retain(keep func(x TextItalic) bool) TextItalicArray func TextItalicArray.Sort(less func(a, b TextItalic) bool) TextItalicArray func TextItalicArray.SortStable(less func(a, b TextItalic) bool) TextItalicArray
TextMarked represents TL type `textMarked#34b8621`. Highlighted text See https://core.telegram.org/constructor/textMarked for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextMarked from given interface. GetText returns value of Text 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. (*TextMarked) Zero() bool *TextMarked : RichTextClass *TextMarked : github.com/gotd/td/bin.BareDecoder *TextMarked : github.com/gotd/td/bin.BareEncoder *TextMarked : github.com/gotd/td/bin.Decoder *TextMarked : github.com/gotd/td/bin.Encoder *TextMarked : github.com/gotd/td/bin.Object *TextMarked : github.com/gotd/td/tdp.Object *TextMarked : fmt.Stringer func TextMarkedArray.First() (v TextMarked, ok bool) func TextMarkedArray.Last() (v TextMarked, ok bool) func (*TextMarkedArray).Pop() (v TextMarked, ok bool) func (*TextMarkedArray).PopFirst() (v TextMarked, ok bool)
TextMarkedArray is adapter for slice of TextMarked. 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 TextMarked. Sort sorts slice of TextMarked. SortStable sorts slice of TextMarked. func RichTextClassArray.AsTextMarked() (to TextMarkedArray) func TextMarkedArray.Retain(keep func(x TextMarked) bool) TextMarkedArray func TextMarkedArray.Sort(less func(a, b TextMarked) bool) TextMarkedArray func TextMarkedArray.SortStable(less func(a, b TextMarked) bool) TextMarkedArray
TextPhone represents TL type `textPhone#1ccb966a`. Rich text linked to a phone number See https://core.telegram.org/constructor/textPhone for reference. Phone number Text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextPhone from given interface. GetPhone returns value of Phone field. GetText returns value of Text 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. (*TextPhone) Zero() bool *TextPhone : RichTextClass *TextPhone : github.com/gotd/td/bin.BareDecoder *TextPhone : github.com/gotd/td/bin.BareEncoder *TextPhone : github.com/gotd/td/bin.Decoder *TextPhone : github.com/gotd/td/bin.Encoder *TextPhone : github.com/gotd/td/bin.Object *TextPhone : github.com/gotd/td/tdp.Object *TextPhone : fmt.Stringer func TextPhoneArray.First() (v TextPhone, ok bool) func TextPhoneArray.Last() (v TextPhone, ok bool) func (*TextPhoneArray).Pop() (v TextPhone, ok bool) func (*TextPhoneArray).PopFirst() (v TextPhone, ok bool)
TextPhoneArray is adapter for slice of TextPhone. 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 TextPhone. Sort sorts slice of TextPhone. SortStable sorts slice of TextPhone. func RichTextClassArray.AsTextPhone() (to TextPhoneArray) func TextPhoneArray.Retain(keep func(x TextPhone) bool) TextPhoneArray func TextPhoneArray.Sort(less func(a, b TextPhone) bool) TextPhoneArray func TextPhoneArray.SortStable(less func(a, b TextPhone) bool) TextPhoneArray
TextPlain represents TL type `textPlain#744694e0`. Plain text See https://core.telegram.org/constructor/textPlain for reference. Button text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextPlain from given interface. GetText returns value of Text 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. (*TextPlain) Zero() bool *TextPlain : RichTextClass *TextPlain : github.com/gotd/td/bin.BareDecoder *TextPlain : github.com/gotd/td/bin.BareEncoder *TextPlain : github.com/gotd/td/bin.Decoder *TextPlain : github.com/gotd/td/bin.Encoder *TextPlain : github.com/gotd/td/bin.Object *TextPlain : github.com/gotd/td/tdp.Object *TextPlain : fmt.Stringer func TextPlainArray.First() (v TextPlain, ok bool) func TextPlainArray.Last() (v TextPlain, ok bool) func (*TextPlainArray).Pop() (v TextPlain, ok bool) func (*TextPlainArray).PopFirst() (v TextPlain, ok bool)
TextPlainArray is adapter for slice of TextPlain. 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 TextPlain. Sort sorts slice of TextPlain. SortStable sorts slice of TextPlain. func RichTextClassArray.AsTextPlain() (to TextPlainArray) func TextPlainArray.Retain(keep func(x TextPlain) bool) TextPlainArray func TextPlainArray.Sort(less func(a, b TextPlain) bool) TextPlainArray func TextPlainArray.SortStable(less func(a, b TextPlain) bool) TextPlainArray
TextStrike represents TL type `textStrike#9bf8bb95`. Strikethrough text See https://core.telegram.org/constructor/textStrike for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextStrike from given interface. GetText returns value of Text 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. (*TextStrike) Zero() bool *TextStrike : RichTextClass *TextStrike : github.com/gotd/td/bin.BareDecoder *TextStrike : github.com/gotd/td/bin.BareEncoder *TextStrike : github.com/gotd/td/bin.Decoder *TextStrike : github.com/gotd/td/bin.Encoder *TextStrike : github.com/gotd/td/bin.Object *TextStrike : github.com/gotd/td/tdp.Object *TextStrike : fmt.Stringer func TextStrikeArray.First() (v TextStrike, ok bool) func TextStrikeArray.Last() (v TextStrike, ok bool) func (*TextStrikeArray).Pop() (v TextStrike, ok bool) func (*TextStrikeArray).PopFirst() (v TextStrike, ok bool)
TextStrikeArray is adapter for slice of TextStrike. 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 TextStrike. Sort sorts slice of TextStrike. SortStable sorts slice of TextStrike. func RichTextClassArray.AsTextStrike() (to TextStrikeArray) func TextStrikeArray.Retain(keep func(x TextStrike) bool) TextStrikeArray func TextStrikeArray.Sort(less func(a, b TextStrike) bool) TextStrikeArray func TextStrikeArray.SortStable(less func(a, b TextStrike) bool) TextStrikeArray
TextSubscript represents TL type `textSubscript#ed6a8504`. Subscript text See https://core.telegram.org/constructor/textSubscript for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextSubscript from given interface. GetText returns value of Text 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. (*TextSubscript) Zero() bool *TextSubscript : RichTextClass *TextSubscript : github.com/gotd/td/bin.BareDecoder *TextSubscript : github.com/gotd/td/bin.BareEncoder *TextSubscript : github.com/gotd/td/bin.Decoder *TextSubscript : github.com/gotd/td/bin.Encoder *TextSubscript : github.com/gotd/td/bin.Object *TextSubscript : github.com/gotd/td/tdp.Object *TextSubscript : fmt.Stringer func TextSubscriptArray.First() (v TextSubscript, ok bool) func TextSubscriptArray.Last() (v TextSubscript, ok bool) func (*TextSubscriptArray).Pop() (v TextSubscript, ok bool) func (*TextSubscriptArray).PopFirst() (v TextSubscript, ok bool)
TextSubscriptArray is adapter for slice of TextSubscript. 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 TextSubscript. Sort sorts slice of TextSubscript. SortStable sorts slice of TextSubscript. func RichTextClassArray.AsTextSubscript() (to TextSubscriptArray) func TextSubscriptArray.Retain(keep func(x TextSubscript) bool) TextSubscriptArray func TextSubscriptArray.Sort(less func(a, b TextSubscript) bool) TextSubscriptArray func TextSubscriptArray.SortStable(less func(a, b TextSubscript) bool) TextSubscriptArray
TextSuperscript represents TL type `textSuperscript#c7fb5e01`. Superscript text See https://core.telegram.org/constructor/textSuperscript for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextSuperscript from given interface. GetText returns value of Text 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. (*TextSuperscript) Zero() bool *TextSuperscript : RichTextClass *TextSuperscript : github.com/gotd/td/bin.BareDecoder *TextSuperscript : github.com/gotd/td/bin.BareEncoder *TextSuperscript : github.com/gotd/td/bin.Decoder *TextSuperscript : github.com/gotd/td/bin.Encoder *TextSuperscript : github.com/gotd/td/bin.Object *TextSuperscript : github.com/gotd/td/tdp.Object *TextSuperscript : fmt.Stringer func TextSuperscriptArray.First() (v TextSuperscript, ok bool) func TextSuperscriptArray.Last() (v TextSuperscript, ok bool) func (*TextSuperscriptArray).Pop() (v TextSuperscript, ok bool) func (*TextSuperscriptArray).PopFirst() (v TextSuperscript, ok bool)
TextSuperscriptArray is adapter for slice of TextSuperscript. 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 TextSuperscript. Sort sorts slice of TextSuperscript. SortStable sorts slice of TextSuperscript. func RichTextClassArray.AsTextSuperscript() (to TextSuperscriptArray) func TextSuperscriptArray.Retain(keep func(x TextSuperscript) bool) TextSuperscriptArray func TextSuperscriptArray.Sort(less func(a, b TextSuperscript) bool) TextSuperscriptArray func TextSuperscriptArray.SortStable(less func(a, b TextSuperscript) bool) TextSuperscriptArray
TextUnderline represents TL type `textUnderline#c12622c4`. Underlined text See https://core.telegram.org/constructor/textUnderline for reference. Title Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextUnderline from given interface. GetText returns value of Text 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. (*TextUnderline) Zero() bool *TextUnderline : RichTextClass *TextUnderline : github.com/gotd/td/bin.BareDecoder *TextUnderline : github.com/gotd/td/bin.BareEncoder *TextUnderline : github.com/gotd/td/bin.Decoder *TextUnderline : github.com/gotd/td/bin.Encoder *TextUnderline : github.com/gotd/td/bin.Object *TextUnderline : github.com/gotd/td/tdp.Object *TextUnderline : fmt.Stringer func TextUnderlineArray.First() (v TextUnderline, ok bool) func TextUnderlineArray.Last() (v TextUnderline, ok bool) func (*TextUnderlineArray).Pop() (v TextUnderline, ok bool) func (*TextUnderlineArray).PopFirst() (v TextUnderline, ok bool)
TextUnderlineArray is adapter for slice of TextUnderline. 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 TextUnderline. Sort sorts slice of TextUnderline. SortStable sorts slice of TextUnderline. func RichTextClassArray.AsTextUnderline() (to TextUnderlineArray) func TextUnderlineArray.Retain(keep func(x TextUnderline) bool) TextUnderlineArray func TextUnderlineArray.Sort(less func(a, b TextUnderline) bool) TextUnderlineArray func TextUnderlineArray.SortStable(less func(a, b TextUnderline) bool) TextUnderlineArray
TextURL represents TL type `textUrl#3c2884c1`. Link See https://core.telegram.org/constructor/textUrl for reference. Text of link Webpage HTTP URL If a preview was already generated for the page, the page ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextURL from given interface. GetText returns value of Text field. GetURL returns value of URL field. GetWebpageID returns value of WebpageID 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. (*TextURL) Zero() bool *TextURL : RichTextClass *TextURL : github.com/gotd/td/bin.BareDecoder *TextURL : github.com/gotd/td/bin.BareEncoder *TextURL : github.com/gotd/td/bin.Decoder *TextURL : github.com/gotd/td/bin.Encoder *TextURL : github.com/gotd/td/bin.Object *TextURL : github.com/gotd/td/tdp.Object *TextURL : fmt.Stringer func TextURLArray.First() (v TextURL, ok bool) func TextURLArray.Last() (v TextURL, ok bool) func (*TextURLArray).Pop() (v TextURL, ok bool) func (*TextURLArray).PopFirst() (v TextURL, ok bool)
TextURLArray is adapter for slice of TextURL. 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 TextURL. Sort sorts slice of TextURL. SortStable sorts slice of TextURL. func RichTextClassArray.AsTextURL() (to TextURLArray) func TextURLArray.Retain(keep func(x TextURL) bool) TextURLArray func TextURLArray.Sort(less func(a, b TextURL) bool) TextURLArray func TextURLArray.SortStable(less func(a, b TextURL) bool) TextURLArray
TextWithEntities represents TL type `textWithEntities#751f3146`. Styled text with message entities¹ Links: 1. https://core.telegram.org/api/entities See https://core.telegram.org/constructor/textWithEntities for reference. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Text Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TextWithEntities from given interface. GetEntities returns value of Entities field. GetText returns value of Text field. MapEntities returns field Entities wrapped in MessageEntityClassArray 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. (*TextWithEntities) Zero() bool *TextWithEntities : github.com/gotd/td/bin.BareDecoder *TextWithEntities : github.com/gotd/td/bin.BareEncoder *TextWithEntities : github.com/gotd/td/bin.Decoder *TextWithEntities : github.com/gotd/td/bin.Encoder *TextWithEntities : github.com/gotd/td/bin.Object *TextWithEntities : github.com/gotd/td/tdp.Object *TextWithEntities : fmt.Stringer func (*MessagesTranslateResult).GetResult() (value []TextWithEntities) func (*MessagesTranslateTextRequest).GetText() (value []TextWithEntities, ok bool) func (*MessagesTranslateTextRequest).SetText(value []TextWithEntities)
Theme represents TL type `theme#a00e67d6`. Theme See https://core.telegram.org/constructor/theme for reference. Theme access hash Whether the current user is the creator of this theme Whether this is the default theme Theme Use SetDocument and GetDocument helpers. Theme emoji Use SetEmoticon and GetEmoticon helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether this theme is meant to be used as a chat theme¹ Links: 1) https://telegram.org/blog/chat-themes-interactive-emoji-read-receipts Theme ID Installation count Use SetInstallsCount and GetInstallsCount helpers. Theme settings Use SetSettings and GetSettings helpers. Unique theme ID Theme name Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Theme from given interface. GetAccessHash returns value of AccessHash field. GetCreator returns value of Creator conditional field. GetDefault returns value of Default conditional field. 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. GetEmoticon returns value of Emoticon conditional field and boolean which is true if field was set. GetForChat returns value of ForChat conditional field. GetID returns value of ID field. GetInstallsCount returns value of InstallsCount 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. SetCreator sets value of Creator conditional field. SetDefault sets value of Default conditional field. SetDocument sets value of Document conditional field. SetEmoticon sets value of Emoticon conditional field. SetFlags sets flags for non-zero fields. SetForChat sets value of ForChat conditional field. SetInstallsCount sets value of InstallsCount conditional field. 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. (*Theme) Zero() bool *Theme : github.com/gotd/td/bin.BareDecoder *Theme : github.com/gotd/td/bin.BareEncoder *Theme : github.com/gotd/td/bin.Decoder *Theme : github.com/gotd/td/bin.Encoder *Theme : github.com/gotd/td/bin.Object *Theme : github.com/gotd/td/tdp.Object *Theme : fmt.Stringer func (*AccountThemes).GetThemes() (value []Theme) func (*Client).AccountCreateTheme(ctx context.Context, request *AccountCreateThemeRequest) (*Theme, error) func (*Client).AccountGetTheme(ctx context.Context, request *AccountGetThemeRequest) (*Theme, error) func (*Client).AccountUpdateTheme(ctx context.Context, request *AccountUpdateThemeRequest) (*Theme, error) func (*UpdateTheme).GetTheme() (value Theme)
ThemeHandler is a Theme event handler. func UpdateDispatcher.OnTheme(handler ThemeHandler)
ThemeSettings represents TL type `themeSettings#fa58b6d4`. Theme settings See https://core.telegram.org/constructor/themeSettings for reference. Accent color, ARGB format Base theme Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The fill to be used as a background for outgoing messages, in RGB24 format. If just one or two equal colors are provided, describes a solid fill of a background. If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.If three or four colors are provided, describes a freeform gradient fill of a background. Use SetMessageColors and GetMessageColors helpers. If set, the freeform gradient fill needs to be animated on every sent message. Accent color of outgoing messages in ARGB format Use SetOutboxAccentColor and GetOutboxAccentColor helpers. Wallpaper¹ Links: 1) https://core.telegram.org/api/wallpapers Use SetWallpaper and GetWallpaper helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills ThemeSettings from given interface. GetAccentColor returns value of AccentColor field. GetBaseTheme returns value of BaseTheme field. GetMessageColors returns value of MessageColors conditional field and boolean which is true if field was set. GetMessageColorsAnimated returns value of MessageColorsAnimated conditional field. GetOutboxAccentColor returns value of OutboxAccentColor conditional field and boolean which is true if field was set. GetWallpaper returns value of Wallpaper conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetMessageColors sets value of MessageColors conditional field. SetMessageColorsAnimated sets value of MessageColorsAnimated conditional field. SetOutboxAccentColor sets value of OutboxAccentColor conditional field. SetWallpaper sets value of Wallpaper 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. (*ThemeSettings) Zero() bool *ThemeSettings : github.com/gotd/td/bin.BareDecoder *ThemeSettings : github.com/gotd/td/bin.BareEncoder *ThemeSettings : github.com/gotd/td/bin.Decoder *ThemeSettings : github.com/gotd/td/bin.Encoder *ThemeSettings : github.com/gotd/td/bin.Object *ThemeSettings : github.com/gotd/td/tdp.Object *ThemeSettings : fmt.Stringer func (*Theme).GetSettings() (value []ThemeSettings, ok bool) func (*WebPageAttributeTheme).GetSettings() (value ThemeSettings, ok bool) func (*Theme).SetSettings(value []ThemeSettings) func (*WebPageAttributeTheme).SetSettings(value ThemeSettings)
TopPeer represents TL type `topPeer#edcdc05b`. Top peer See https://core.telegram.org/constructor/topPeer for reference. Peer Rating as computed in top peer rating »¹ Links: 1) https://core.telegram.org/api/top-rating Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TopPeer from given interface. GetPeer returns value of Peer field. GetRating returns value of Rating 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. (*TopPeer) Zero() bool *TopPeer : github.com/gotd/td/bin.BareDecoder *TopPeer : github.com/gotd/td/bin.BareEncoder *TopPeer : github.com/gotd/td/bin.Decoder *TopPeer : github.com/gotd/td/bin.Encoder *TopPeer : github.com/gotd/td/bin.Object *TopPeer : github.com/gotd/td/tdp.Object *TopPeer : fmt.Stringer func (*TopPeerCategoryPeers).GetPeers() (value []TopPeer)
TopPeerCategoryBotsInline represents TL type `topPeerCategoryBotsInline#148677e2`. Most used inline bots See https://core.telegram.org/constructor/topPeerCategoryBotsInline 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. (*TopPeerCategoryBotsInline) Zero() bool *TopPeerCategoryBotsInline : TopPeerCategoryClass *TopPeerCategoryBotsInline : github.com/gotd/td/bin.BareDecoder *TopPeerCategoryBotsInline : github.com/gotd/td/bin.BareEncoder *TopPeerCategoryBotsInline : github.com/gotd/td/bin.Decoder *TopPeerCategoryBotsInline : github.com/gotd/td/bin.Encoder *TopPeerCategoryBotsInline : github.com/gotd/td/bin.Object *TopPeerCategoryBotsInline : github.com/gotd/td/tdp.Object *TopPeerCategoryBotsInline : fmt.Stringer
TopPeerCategoryBotsPM represents TL type `topPeerCategoryBotsPM#ab661b5b`. Most used bots See https://core.telegram.org/constructor/topPeerCategoryBotsPM 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. (*TopPeerCategoryBotsPM) Zero() bool *TopPeerCategoryBotsPM : TopPeerCategoryClass *TopPeerCategoryBotsPM : github.com/gotd/td/bin.BareDecoder *TopPeerCategoryBotsPM : github.com/gotd/td/bin.BareEncoder *TopPeerCategoryBotsPM : github.com/gotd/td/bin.Decoder *TopPeerCategoryBotsPM : github.com/gotd/td/bin.Encoder *TopPeerCategoryBotsPM : github.com/gotd/td/bin.Object *TopPeerCategoryBotsPM : github.com/gotd/td/tdp.Object *TopPeerCategoryBotsPM : fmt.Stringer
TopPeerCategory boxes the TopPeerCategoryClass providing a helper. TopPeerCategory TopPeerCategoryClass Decode implements bin.Decoder for TopPeerCategoryBox. Encode implements bin.Encode for TopPeerCategoryBox. *TopPeerCategoryBox : github.com/gotd/td/bin.Decoder *TopPeerCategoryBox : github.com/gotd/td/bin.Encoder *TopPeerCategoryBox : github.com/gotd/td/bin.Object
TopPeerCategoryChannels represents TL type `topPeerCategoryChannels#161d9628`. Most frequently visited channels See https://core.telegram.org/constructor/topPeerCategoryChannels 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. (*TopPeerCategoryChannels) Zero() bool *TopPeerCategoryChannels : TopPeerCategoryClass *TopPeerCategoryChannels : github.com/gotd/td/bin.BareDecoder *TopPeerCategoryChannels : github.com/gotd/td/bin.BareEncoder *TopPeerCategoryChannels : github.com/gotd/td/bin.Decoder *TopPeerCategoryChannels : github.com/gotd/td/bin.Encoder *TopPeerCategoryChannels : github.com/gotd/td/bin.Object *TopPeerCategoryChannels : github.com/gotd/td/tdp.Object *TopPeerCategoryChannels : fmt.Stringer
TopPeerCategoryClass represents TopPeerCategory generic type. See https://core.telegram.org/type/TopPeerCategory for reference. Example: g, err := tg.DecodeTopPeerCategory(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.TopPeerCategoryBotsPM: // topPeerCategoryBotsPM#ab661b5b case *tg.TopPeerCategoryBotsInline: // topPeerCategoryBotsInline#148677e2 case *tg.TopPeerCategoryCorrespondents: // topPeerCategoryCorrespondents#637b7ed case *tg.TopPeerCategoryGroups: // topPeerCategoryGroups#bd17a14a case *tg.TopPeerCategoryChannels: // topPeerCategoryChannels#161d9628 case *tg.TopPeerCategoryPhoneCalls: // topPeerCategoryPhoneCalls#1e76a78c case *tg.TopPeerCategoryForwardUsers: // topPeerCategoryForwardUsers#a8406ca9 case *tg.TopPeerCategoryForwardChats: // topPeerCategoryForwardChats#fbeec0f0 default: panic(v) } ( TopPeerCategoryClass) Decode(b *bin.Buffer) error ( TopPeerCategoryClass) DecodeBare(b *bin.Buffer) error ( TopPeerCategoryClass) Encode(b *bin.Buffer) error ( TopPeerCategoryClass) 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. *TopPeerCategoryBotsInline *TopPeerCategoryBotsPM *TopPeerCategoryChannels *TopPeerCategoryCorrespondents *TopPeerCategoryForwardChats *TopPeerCategoryForwardUsers *TopPeerCategoryGroups *TopPeerCategoryPhoneCalls TopPeerCategoryClass : github.com/gotd/td/bin.BareDecoder TopPeerCategoryClass : github.com/gotd/td/bin.BareEncoder TopPeerCategoryClass : github.com/gotd/td/bin.Decoder TopPeerCategoryClass : github.com/gotd/td/bin.Encoder TopPeerCategoryClass : github.com/gotd/td/bin.Object TopPeerCategoryClass : fmt.Stringer func DecodeTopPeerCategory(buf *bin.Buffer) (TopPeerCategoryClass, error) func (*ContactsResetTopPeerRatingRequest).GetCategory() (value TopPeerCategoryClass) func TopPeerCategoryClassArray.First() (v TopPeerCategoryClass, ok bool) func TopPeerCategoryClassArray.Last() (v TopPeerCategoryClass, ok bool) func (*TopPeerCategoryClassArray).Pop() (v TopPeerCategoryClass, ok bool) func (*TopPeerCategoryClassArray).PopFirst() (v TopPeerCategoryClass, ok bool) func (*TopPeerCategoryPeers).GetCategory() (value TopPeerCategoryClass)
TopPeerCategoryClassArray is adapter for slice of TopPeerCategoryClass. 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 TopPeerCategoryClass. Sort sorts slice of TopPeerCategoryClass. SortStable sorts slice of TopPeerCategoryClass. func TopPeerCategoryClassArray.Retain(keep func(x TopPeerCategoryClass) bool) TopPeerCategoryClassArray func TopPeerCategoryClassArray.Sort(less func(a, b TopPeerCategoryClass) bool) TopPeerCategoryClassArray func TopPeerCategoryClassArray.SortStable(less func(a, b TopPeerCategoryClass) bool) TopPeerCategoryClassArray
TopPeerCategoryCorrespondents represents TL type `topPeerCategoryCorrespondents#637b7ed`. Users we've chatted most frequently with See https://core.telegram.org/constructor/topPeerCategoryCorrespondents 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. (*TopPeerCategoryCorrespondents) Zero() bool *TopPeerCategoryCorrespondents : TopPeerCategoryClass *TopPeerCategoryCorrespondents : github.com/gotd/td/bin.BareDecoder *TopPeerCategoryCorrespondents : github.com/gotd/td/bin.BareEncoder *TopPeerCategoryCorrespondents : github.com/gotd/td/bin.Decoder *TopPeerCategoryCorrespondents : github.com/gotd/td/bin.Encoder *TopPeerCategoryCorrespondents : github.com/gotd/td/bin.Object *TopPeerCategoryCorrespondents : github.com/gotd/td/tdp.Object *TopPeerCategoryCorrespondents : fmt.Stringer
TopPeerCategoryForwardChats represents TL type `topPeerCategoryForwardChats#fbeec0f0`. Chats to which the users often forwards messages to See https://core.telegram.org/constructor/topPeerCategoryForwardChats 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. (*TopPeerCategoryForwardChats) Zero() bool *TopPeerCategoryForwardChats : TopPeerCategoryClass *TopPeerCategoryForwardChats : github.com/gotd/td/bin.BareDecoder *TopPeerCategoryForwardChats : github.com/gotd/td/bin.BareEncoder *TopPeerCategoryForwardChats : github.com/gotd/td/bin.Decoder *TopPeerCategoryForwardChats : github.com/gotd/td/bin.Encoder *TopPeerCategoryForwardChats : github.com/gotd/td/bin.Object *TopPeerCategoryForwardChats : github.com/gotd/td/tdp.Object *TopPeerCategoryForwardChats : fmt.Stringer
TopPeerCategoryForwardUsers represents TL type `topPeerCategoryForwardUsers#a8406ca9`. Users to which the users often forwards messages to See https://core.telegram.org/constructor/topPeerCategoryForwardUsers 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. (*TopPeerCategoryForwardUsers) Zero() bool *TopPeerCategoryForwardUsers : TopPeerCategoryClass *TopPeerCategoryForwardUsers : github.com/gotd/td/bin.BareDecoder *TopPeerCategoryForwardUsers : github.com/gotd/td/bin.BareEncoder *TopPeerCategoryForwardUsers : github.com/gotd/td/bin.Decoder *TopPeerCategoryForwardUsers : github.com/gotd/td/bin.Encoder *TopPeerCategoryForwardUsers : github.com/gotd/td/bin.Object *TopPeerCategoryForwardUsers : github.com/gotd/td/tdp.Object *TopPeerCategoryForwardUsers : fmt.Stringer
TopPeerCategoryGroups represents TL type `topPeerCategoryGroups#bd17a14a`. Often-opened groups and supergroups See https://core.telegram.org/constructor/topPeerCategoryGroups 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. (*TopPeerCategoryGroups) Zero() bool *TopPeerCategoryGroups : TopPeerCategoryClass *TopPeerCategoryGroups : github.com/gotd/td/bin.BareDecoder *TopPeerCategoryGroups : github.com/gotd/td/bin.BareEncoder *TopPeerCategoryGroups : github.com/gotd/td/bin.Decoder *TopPeerCategoryGroups : github.com/gotd/td/bin.Encoder *TopPeerCategoryGroups : github.com/gotd/td/bin.Object *TopPeerCategoryGroups : github.com/gotd/td/tdp.Object *TopPeerCategoryGroups : fmt.Stringer
TopPeerCategoryPeers represents TL type `topPeerCategoryPeers#fb834291`. Top peer category See https://core.telegram.org/constructor/topPeerCategoryPeers for reference. Top peer category of peers Count of peers Peers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills TopPeerCategoryPeers from given interface. GetCategory returns value of Category field. GetCount returns value of Count field. GetPeers returns value of Peers 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. (*TopPeerCategoryPeers) Zero() bool *TopPeerCategoryPeers : github.com/gotd/td/bin.BareDecoder *TopPeerCategoryPeers : github.com/gotd/td/bin.BareEncoder *TopPeerCategoryPeers : github.com/gotd/td/bin.Decoder *TopPeerCategoryPeers : github.com/gotd/td/bin.Encoder *TopPeerCategoryPeers : github.com/gotd/td/bin.Object *TopPeerCategoryPeers : github.com/gotd/td/tdp.Object *TopPeerCategoryPeers : fmt.Stringer func (*ContactsTopPeers).GetCategories() (value []TopPeerCategoryPeers)
TopPeerCategoryPhoneCalls represents TL type `topPeerCategoryPhoneCalls#1e76a78c`. Most frequently called users See https://core.telegram.org/constructor/topPeerCategoryPhoneCalls 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. (*TopPeerCategoryPhoneCalls) Zero() bool *TopPeerCategoryPhoneCalls : TopPeerCategoryClass *TopPeerCategoryPhoneCalls : github.com/gotd/td/bin.BareDecoder *TopPeerCategoryPhoneCalls : github.com/gotd/td/bin.BareEncoder *TopPeerCategoryPhoneCalls : github.com/gotd/td/bin.Decoder *TopPeerCategoryPhoneCalls : github.com/gotd/td/bin.Encoder *TopPeerCategoryPhoneCalls : github.com/gotd/td/bin.Object *TopPeerCategoryPhoneCalls : github.com/gotd/td/tdp.Object *TopPeerCategoryPhoneCalls : fmt.Stringer
TranscribedAudioHandler is a TranscribedAudio event handler. func UpdateDispatcher.OnTranscribedAudio(handler TranscribedAudioHandler)
True represents TL type `true#3fedd339`. See predefined identifiers¹. Links: 1. https://core.telegram.org/mtproto/TL-formal#predefined-identifiers See https://core.telegram.org/constructor/true 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. (*True) Zero() bool *True : github.com/gotd/td/bin.BareDecoder *True : github.com/gotd/td/bin.BareEncoder *True : github.com/gotd/td/bin.Decoder *True : github.com/gotd/td/bin.Encoder *True : github.com/gotd/td/bin.Object *True : github.com/gotd/td/tdp.Object *True : fmt.Stringer
UpdateAttachMenuBots represents TL type `updateAttachMenuBots#17b7a20b`. The list of installed attachment menu entries »¹ has changed, use messages getAttachMenuBots² to fetch the updated list. Links: 1. https://core.telegram.org/api/bots/attach 2. https://core.telegram.org/method/messages.getAttachMenuBots See https://core.telegram.org/constructor/updateAttachMenuBots 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. (*UpdateAttachMenuBots) Zero() bool *UpdateAttachMenuBots : UpdateClass *UpdateAttachMenuBots : github.com/gotd/td/bin.BareDecoder *UpdateAttachMenuBots : github.com/gotd/td/bin.BareEncoder *UpdateAttachMenuBots : github.com/gotd/td/bin.Decoder *UpdateAttachMenuBots : github.com/gotd/td/bin.Encoder *UpdateAttachMenuBots : github.com/gotd/td/bin.Object *UpdateAttachMenuBots : github.com/gotd/td/tdp.Object *UpdateAttachMenuBots : fmt.Stringer
UpdateAutoSaveSettings represents TL type `updateAutoSaveSettings#ec05b097`. Media autosave settings have changed and must be refetched using account getAutoSaveSettings¹. Links: 1. https://core.telegram.org/method/account.getAutoSaveSettings See https://core.telegram.org/constructor/updateAutoSaveSettings 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. (*UpdateAutoSaveSettings) Zero() bool *UpdateAutoSaveSettings : UpdateClass *UpdateAutoSaveSettings : github.com/gotd/td/bin.BareDecoder *UpdateAutoSaveSettings : github.com/gotd/td/bin.BareEncoder *UpdateAutoSaveSettings : github.com/gotd/td/bin.Decoder *UpdateAutoSaveSettings : github.com/gotd/td/bin.Encoder *UpdateAutoSaveSettings : github.com/gotd/td/bin.Object *UpdateAutoSaveSettings : github.com/gotd/td/tdp.Object *UpdateAutoSaveSettings : fmt.Stringer
UpdateBotCallbackQuery represents TL type `updateBotCallbackQuery#b9cfc48d`. A callback button was pressed, and the button data was sent to the bot that created the button See https://core.telegram.org/constructor/updateBotCallbackQuery for reference. Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games. Callback data Use SetData and GetData helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Short name of a Game to be returned, serves as the unique identifier for the game Use SetGameShortName and GetGameShortName helpers. Message ID Chat where the inline keyboard was sent Query ID ID of the user that pressed the button Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotCallbackQuery from given interface. GetChatInstance returns value of ChatInstance field. GetData returns value of Data conditional field and boolean which is true if field was set. GetGameShortName returns value of GameShortName conditional field and boolean which is true if field was set. GetMsgID returns value of MsgID field. GetPeer returns value of Peer field. GetQueryID returns value of QueryID field. GetUserID returns value of UserID field. SetData sets value of Data conditional field. SetFlags sets flags for non-zero fields. SetGameShortName sets value of GameShortName 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. (*UpdateBotCallbackQuery) Zero() bool *UpdateBotCallbackQuery : UpdateClass *UpdateBotCallbackQuery : github.com/gotd/td/bin.BareDecoder *UpdateBotCallbackQuery : github.com/gotd/td/bin.BareEncoder *UpdateBotCallbackQuery : github.com/gotd/td/bin.Decoder *UpdateBotCallbackQuery : github.com/gotd/td/bin.Encoder *UpdateBotCallbackQuery : github.com/gotd/td/bin.Object *UpdateBotCallbackQuery : github.com/gotd/td/tdp.Object *UpdateBotCallbackQuery : fmt.Stringer func UpdateBotCallbackQueryArray.First() (v UpdateBotCallbackQuery, ok bool) func UpdateBotCallbackQueryArray.Last() (v UpdateBotCallbackQuery, ok bool) func (*UpdateBotCallbackQueryArray).Pop() (v UpdateBotCallbackQuery, ok bool) func (*UpdateBotCallbackQueryArray).PopFirst() (v UpdateBotCallbackQuery, ok bool)
UpdateBotCallbackQueryArray is adapter for slice of UpdateBotCallbackQuery. 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 UpdateBotCallbackQuery. Sort sorts slice of UpdateBotCallbackQuery. SortStable sorts slice of UpdateBotCallbackQuery. func UpdateBotCallbackQueryArray.Retain(keep func(x UpdateBotCallbackQuery) bool) UpdateBotCallbackQueryArray func UpdateBotCallbackQueryArray.Sort(less func(a, b UpdateBotCallbackQuery) bool) UpdateBotCallbackQueryArray func UpdateBotCallbackQueryArray.SortStable(less func(a, b UpdateBotCallbackQuery) bool) UpdateBotCallbackQueryArray func UpdateClassArray.AsUpdateBotCallbackQuery() (to UpdateBotCallbackQueryArray)
UpdateBotChatBoost represents TL type `updateBotChatBoost#904dd49c`. A channel boost¹ has changed (bots only) Links: 1. https://core.telegram.org/api/boost See https://core.telegram.org/constructor/updateBotChatBoost for reference. New boost information Channel QTS¹ event sequence identifier Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotChatBoost from given interface. GetBoost returns value of Boost field. GetPeer returns value of Peer field. GetQts returns value of Qts 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. (*UpdateBotChatBoost) Zero() bool *UpdateBotChatBoost : UpdateClass *UpdateBotChatBoost : github.com/gotd/td/bin.BareDecoder *UpdateBotChatBoost : github.com/gotd/td/bin.BareEncoder *UpdateBotChatBoost : github.com/gotd/td/bin.Decoder *UpdateBotChatBoost : github.com/gotd/td/bin.Encoder *UpdateBotChatBoost : github.com/gotd/td/bin.Object *UpdateBotChatBoost : github.com/gotd/td/tdp.Object *UpdateBotChatBoost : fmt.Stringer func UpdateBotChatBoostArray.First() (v UpdateBotChatBoost, ok bool) func UpdateBotChatBoostArray.Last() (v UpdateBotChatBoost, ok bool) func (*UpdateBotChatBoostArray).Pop() (v UpdateBotChatBoost, ok bool) func (*UpdateBotChatBoostArray).PopFirst() (v UpdateBotChatBoost, ok bool)
UpdateBotChatBoostArray is adapter for slice of UpdateBotChatBoost. 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 UpdateBotChatBoost. Sort sorts slice of UpdateBotChatBoost. SortStable sorts slice of UpdateBotChatBoost. func UpdateBotChatBoostArray.Retain(keep func(x UpdateBotChatBoost) bool) UpdateBotChatBoostArray func UpdateBotChatBoostArray.Sort(less func(a, b UpdateBotChatBoost) bool) UpdateBotChatBoostArray func UpdateBotChatBoostArray.SortStable(less func(a, b UpdateBotChatBoost) bool) UpdateBotChatBoostArray func UpdateClassArray.AsUpdateBotChatBoost() (to UpdateBotChatBoostArray)
UpdateBotChatInviteRequester represents TL type `updateBotChatInviteRequester#11dfa986`. Someone has requested to join a chat or channel (bots only, users will receive an updatePendingJoinRequests¹, instead) Links: 1. https://core.telegram.org/constructor/updatePendingJoinRequests See https://core.telegram.org/constructor/updateBotChatInviteRequester for reference. Bio of the user When was the join request »¹ made Links: 1) https://core.telegram.org/api/invites#join-requests Chat invite link that was used by the user to send the join request »¹ Links: 1) https://core.telegram.org/api/invites#join-requests The chat or channel in question QTS¹ event sequence identifier Links: 1) https://core.telegram.org/api/updates The user ID that is asking to join the chat or channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotChatInviteRequester from given interface. GetAbout returns value of About field. GetDate returns value of Date field. GetInvite returns value of Invite field. GetPeer returns value of Peer field. GetQts returns value of Qts 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. (*UpdateBotChatInviteRequester) Zero() bool *UpdateBotChatInviteRequester : UpdateClass *UpdateBotChatInviteRequester : github.com/gotd/td/bin.BareDecoder *UpdateBotChatInviteRequester : github.com/gotd/td/bin.BareEncoder *UpdateBotChatInviteRequester : github.com/gotd/td/bin.Decoder *UpdateBotChatInviteRequester : github.com/gotd/td/bin.Encoder *UpdateBotChatInviteRequester : github.com/gotd/td/bin.Object *UpdateBotChatInviteRequester : github.com/gotd/td/tdp.Object *UpdateBotChatInviteRequester : fmt.Stringer func UpdateBotChatInviteRequesterArray.First() (v UpdateBotChatInviteRequester, ok bool) func UpdateBotChatInviteRequesterArray.Last() (v UpdateBotChatInviteRequester, ok bool) func (*UpdateBotChatInviteRequesterArray).Pop() (v UpdateBotChatInviteRequester, ok bool) func (*UpdateBotChatInviteRequesterArray).PopFirst() (v UpdateBotChatInviteRequester, ok bool)
UpdateBotChatInviteRequesterArray is adapter for slice of UpdateBotChatInviteRequester. 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 UpdateBotChatInviteRequester. Sort sorts slice of UpdateBotChatInviteRequester. SortByDate sorts slice of UpdateBotChatInviteRequester by Date. SortStable sorts slice of UpdateBotChatInviteRequester. SortStableByDate sorts slice of UpdateBotChatInviteRequester by Date. func UpdateBotChatInviteRequesterArray.Retain(keep func(x UpdateBotChatInviteRequester) bool) UpdateBotChatInviteRequesterArray func UpdateBotChatInviteRequesterArray.Sort(less func(a, b UpdateBotChatInviteRequester) bool) UpdateBotChatInviteRequesterArray func UpdateBotChatInviteRequesterArray.SortByDate() UpdateBotChatInviteRequesterArray func UpdateBotChatInviteRequesterArray.SortStable(less func(a, b UpdateBotChatInviteRequester) bool) UpdateBotChatInviteRequesterArray func UpdateBotChatInviteRequesterArray.SortStableByDate() UpdateBotChatInviteRequesterArray func UpdateClassArray.AsUpdateBotChatInviteRequester() (to UpdateBotChatInviteRequesterArray)
UpdateBotCommands represents TL type `updateBotCommands#4d712f2e`. The command set¹ of a certain bot in a certain chat has changed. Links: 1. https://core.telegram.org/api/bots/commands See https://core.telegram.org/constructor/updateBotCommands for reference. ID of the bot that changed its command set New bot commands The affected chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotCommands from given interface. GetBotID returns value of BotID field. GetCommands returns value of Commands 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. (*UpdateBotCommands) Zero() bool *UpdateBotCommands : UpdateClass *UpdateBotCommands : github.com/gotd/td/bin.BareDecoder *UpdateBotCommands : github.com/gotd/td/bin.BareEncoder *UpdateBotCommands : github.com/gotd/td/bin.Decoder *UpdateBotCommands : github.com/gotd/td/bin.Encoder *UpdateBotCommands : github.com/gotd/td/bin.Object *UpdateBotCommands : github.com/gotd/td/tdp.Object *UpdateBotCommands : fmt.Stringer func UpdateBotCommandsArray.First() (v UpdateBotCommands, ok bool) func UpdateBotCommandsArray.Last() (v UpdateBotCommands, ok bool) func (*UpdateBotCommandsArray).Pop() (v UpdateBotCommands, ok bool) func (*UpdateBotCommandsArray).PopFirst() (v UpdateBotCommands, ok bool)
UpdateBotCommandsArray is adapter for slice of UpdateBotCommands. 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 UpdateBotCommands. Sort sorts slice of UpdateBotCommands. SortStable sorts slice of UpdateBotCommands. func UpdateBotCommandsArray.Retain(keep func(x UpdateBotCommands) bool) UpdateBotCommandsArray func UpdateBotCommandsArray.Sort(less func(a, b UpdateBotCommands) bool) UpdateBotCommandsArray func UpdateBotCommandsArray.SortStable(less func(a, b UpdateBotCommands) bool) UpdateBotCommandsArray func UpdateClassArray.AsUpdateBotCommands() (to UpdateBotCommandsArray)
UpdateBotInlineQuery represents TL type `updateBotInlineQuery#496f379c`. An incoming inline query See https://core.telegram.org/constructor/updateBotInlineQuery for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Attached geolocation Use SetGeo and GetGeo helpers. Offset to navigate through results Type of the chat from which the inline query was sent. Use SetPeerType and GetPeerType helpers. Text of query Query ID User that sent the query Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotInlineQuery from given interface. GetGeo returns value of Geo conditional field and boolean which is true if field was set. GetOffset returns value of Offset field. GetPeerType returns value of PeerType conditional field and boolean which is true if field was set. GetQuery returns value of Query field. GetQueryID returns value of QueryID field. GetUserID returns value of UserID field. SetFlags sets flags for non-zero fields. SetGeo sets value of Geo conditional field. SetPeerType sets value of PeerType 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. (*UpdateBotInlineQuery) Zero() bool *UpdateBotInlineQuery : UpdateClass *UpdateBotInlineQuery : github.com/gotd/td/bin.BareDecoder *UpdateBotInlineQuery : github.com/gotd/td/bin.BareEncoder *UpdateBotInlineQuery : github.com/gotd/td/bin.Decoder *UpdateBotInlineQuery : github.com/gotd/td/bin.Encoder *UpdateBotInlineQuery : github.com/gotd/td/bin.Object *UpdateBotInlineQuery : github.com/gotd/td/tdp.Object *UpdateBotInlineQuery : fmt.Stringer func UpdateBotInlineQueryArray.First() (v UpdateBotInlineQuery, ok bool) func UpdateBotInlineQueryArray.Last() (v UpdateBotInlineQuery, ok bool) func (*UpdateBotInlineQueryArray).Pop() (v UpdateBotInlineQuery, ok bool) func (*UpdateBotInlineQueryArray).PopFirst() (v UpdateBotInlineQuery, ok bool)
UpdateBotInlineQueryArray is adapter for slice of UpdateBotInlineQuery. 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 UpdateBotInlineQuery. Sort sorts slice of UpdateBotInlineQuery. SortStable sorts slice of UpdateBotInlineQuery. func UpdateBotInlineQueryArray.Retain(keep func(x UpdateBotInlineQuery) bool) UpdateBotInlineQueryArray func UpdateBotInlineQueryArray.Sort(less func(a, b UpdateBotInlineQuery) bool) UpdateBotInlineQueryArray func UpdateBotInlineQueryArray.SortStable(less func(a, b UpdateBotInlineQuery) bool) UpdateBotInlineQueryArray func UpdateClassArray.AsUpdateBotInlineQuery() (to UpdateBotInlineQueryArray)
UpdateBotInlineSend represents TL type `updateBotInlineSend#12f12a07`. The result of an inline query that was chosen by a user and sent to their chat partner Please see our documentation on the feedback collecting¹ for details on how to enable these updates for your bot. Links: 1. https://core.telegram.org/bots/inline#collecting-feedback See https://core.telegram.org/constructor/updateBotInlineSend for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Optional. Sender location, only for bots that require user location Use SetGeo and GetGeo helpers. The unique identifier for the result that was chosen Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message. Use SetMsgID and GetMsgID helpers. The query that was used to obtain the result The user that chose the result Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotInlineSend from given interface. GetGeo returns value of Geo conditional field and boolean which is true if field was set. GetID returns value of ID field. GetMsgID returns value of MsgID conditional field and boolean which is true if field was set. GetQuery returns value of Query field. GetUserID returns value of UserID field. SetFlags sets flags for non-zero fields. SetGeo sets value of Geo conditional field. SetMsgID sets value of MsgID 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. (*UpdateBotInlineSend) Zero() bool *UpdateBotInlineSend : UpdateClass *UpdateBotInlineSend : github.com/gotd/td/bin.BareDecoder *UpdateBotInlineSend : github.com/gotd/td/bin.BareEncoder *UpdateBotInlineSend : github.com/gotd/td/bin.Decoder *UpdateBotInlineSend : github.com/gotd/td/bin.Encoder *UpdateBotInlineSend : github.com/gotd/td/bin.Object *UpdateBotInlineSend : github.com/gotd/td/tdp.Object *UpdateBotInlineSend : fmt.Stringer func UpdateBotInlineSendArray.First() (v UpdateBotInlineSend, ok bool) func UpdateBotInlineSendArray.Last() (v UpdateBotInlineSend, ok bool) func (*UpdateBotInlineSendArray).Pop() (v UpdateBotInlineSend, ok bool) func (*UpdateBotInlineSendArray).PopFirst() (v UpdateBotInlineSend, ok bool)
UpdateBotInlineSendArray is adapter for slice of UpdateBotInlineSend. 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 UpdateBotInlineSend. Sort sorts slice of UpdateBotInlineSend. SortStable sorts slice of UpdateBotInlineSend. func UpdateBotInlineSendArray.Retain(keep func(x UpdateBotInlineSend) bool) UpdateBotInlineSendArray func UpdateBotInlineSendArray.Sort(less func(a, b UpdateBotInlineSend) bool) UpdateBotInlineSendArray func UpdateBotInlineSendArray.SortStable(less func(a, b UpdateBotInlineSend) bool) UpdateBotInlineSendArray func UpdateClassArray.AsUpdateBotInlineSend() (to UpdateBotInlineSendArray)
UpdateBotMenuButton represents TL type `updateBotMenuButton#14b85813`. The menu button behavior for the specified bot has changed See https://core.telegram.org/constructor/updateBotMenuButton for reference. Bot ID New menu button Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotMenuButton from given interface. GetBotID returns value of BotID field. GetButton returns value of Button 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. (*UpdateBotMenuButton) Zero() bool *UpdateBotMenuButton : UpdateClass *UpdateBotMenuButton : github.com/gotd/td/bin.BareDecoder *UpdateBotMenuButton : github.com/gotd/td/bin.BareEncoder *UpdateBotMenuButton : github.com/gotd/td/bin.Decoder *UpdateBotMenuButton : github.com/gotd/td/bin.Encoder *UpdateBotMenuButton : github.com/gotd/td/bin.Object *UpdateBotMenuButton : github.com/gotd/td/tdp.Object *UpdateBotMenuButton : fmt.Stringer func UpdateBotMenuButtonArray.First() (v UpdateBotMenuButton, ok bool) func UpdateBotMenuButtonArray.Last() (v UpdateBotMenuButton, ok bool) func (*UpdateBotMenuButtonArray).Pop() (v UpdateBotMenuButton, ok bool) func (*UpdateBotMenuButtonArray).PopFirst() (v UpdateBotMenuButton, ok bool)
UpdateBotMenuButtonArray is adapter for slice of UpdateBotMenuButton. 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 UpdateBotMenuButton. Sort sorts slice of UpdateBotMenuButton. SortStable sorts slice of UpdateBotMenuButton. func UpdateBotMenuButtonArray.Retain(keep func(x UpdateBotMenuButton) bool) UpdateBotMenuButtonArray func UpdateBotMenuButtonArray.Sort(less func(a, b UpdateBotMenuButton) bool) UpdateBotMenuButtonArray func UpdateBotMenuButtonArray.SortStable(less func(a, b UpdateBotMenuButton) bool) UpdateBotMenuButtonArray func UpdateClassArray.AsUpdateBotMenuButton() (to UpdateBotMenuButtonArray)
UpdateBotMessageReaction represents TL type `updateBotMessageReaction#ac21d3ce`. See https://core.telegram.org/constructor/updateBotMessageReaction for reference. Actor field of UpdateBotMessageReaction. Date field of UpdateBotMessageReaction. MsgID field of UpdateBotMessageReaction. NewReactions field of UpdateBotMessageReaction. OldReactions field of UpdateBotMessageReaction. Peer field of UpdateBotMessageReaction. Qts field of UpdateBotMessageReaction. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotMessageReaction from given interface. GetActor returns value of Actor field. GetDate returns value of Date field. GetMsgID returns value of MsgID field. GetNewReactions returns value of NewReactions field. GetOldReactions returns value of OldReactions field. GetPeer returns value of Peer field. GetQts returns value of Qts field. MapNewReactions returns field NewReactions wrapped in ReactionClassArray helper. MapOldReactions returns field OldReactions wrapped in ReactionClassArray 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. (*UpdateBotMessageReaction) Zero() bool *UpdateBotMessageReaction : UpdateClass *UpdateBotMessageReaction : github.com/gotd/td/bin.BareDecoder *UpdateBotMessageReaction : github.com/gotd/td/bin.BareEncoder *UpdateBotMessageReaction : github.com/gotd/td/bin.Decoder *UpdateBotMessageReaction : github.com/gotd/td/bin.Encoder *UpdateBotMessageReaction : github.com/gotd/td/bin.Object *UpdateBotMessageReaction : github.com/gotd/td/tdp.Object *UpdateBotMessageReaction : fmt.Stringer func UpdateBotMessageReactionArray.First() (v UpdateBotMessageReaction, ok bool) func UpdateBotMessageReactionArray.Last() (v UpdateBotMessageReaction, ok bool) func (*UpdateBotMessageReactionArray).Pop() (v UpdateBotMessageReaction, ok bool) func (*UpdateBotMessageReactionArray).PopFirst() (v UpdateBotMessageReaction, ok bool)
UpdateBotMessageReactionArray is adapter for slice of UpdateBotMessageReaction. 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 UpdateBotMessageReaction. Sort sorts slice of UpdateBotMessageReaction. SortByDate sorts slice of UpdateBotMessageReaction by Date. SortStable sorts slice of UpdateBotMessageReaction. SortStableByDate sorts slice of UpdateBotMessageReaction by Date. func UpdateBotMessageReactionArray.Retain(keep func(x UpdateBotMessageReaction) bool) UpdateBotMessageReactionArray func UpdateBotMessageReactionArray.Sort(less func(a, b UpdateBotMessageReaction) bool) UpdateBotMessageReactionArray func UpdateBotMessageReactionArray.SortByDate() UpdateBotMessageReactionArray func UpdateBotMessageReactionArray.SortStable(less func(a, b UpdateBotMessageReaction) bool) UpdateBotMessageReactionArray func UpdateBotMessageReactionArray.SortStableByDate() UpdateBotMessageReactionArray func UpdateClassArray.AsUpdateBotMessageReaction() (to UpdateBotMessageReactionArray)
UpdateBotMessageReactions represents TL type `updateBotMessageReactions#9cb7759`. See https://core.telegram.org/constructor/updateBotMessageReactions for reference. Date field of UpdateBotMessageReactions. MsgID field of UpdateBotMessageReactions. Peer field of UpdateBotMessageReactions. Qts field of UpdateBotMessageReactions. Reactions field of UpdateBotMessageReactions. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotMessageReactions from given interface. GetDate returns value of Date field. GetMsgID returns value of MsgID field. GetPeer returns value of Peer field. GetQts returns value of Qts field. GetReactions returns value of Reactions 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. (*UpdateBotMessageReactions) Zero() bool *UpdateBotMessageReactions : UpdateClass *UpdateBotMessageReactions : github.com/gotd/td/bin.BareDecoder *UpdateBotMessageReactions : github.com/gotd/td/bin.BareEncoder *UpdateBotMessageReactions : github.com/gotd/td/bin.Decoder *UpdateBotMessageReactions : github.com/gotd/td/bin.Encoder *UpdateBotMessageReactions : github.com/gotd/td/bin.Object *UpdateBotMessageReactions : github.com/gotd/td/tdp.Object *UpdateBotMessageReactions : fmt.Stringer func UpdateBotMessageReactionsArray.First() (v UpdateBotMessageReactions, ok bool) func UpdateBotMessageReactionsArray.Last() (v UpdateBotMessageReactions, ok bool) func (*UpdateBotMessageReactionsArray).Pop() (v UpdateBotMessageReactions, ok bool) func (*UpdateBotMessageReactionsArray).PopFirst() (v UpdateBotMessageReactions, ok bool)
UpdateBotMessageReactionsArray is adapter for slice of UpdateBotMessageReactions. 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 UpdateBotMessageReactions. Sort sorts slice of UpdateBotMessageReactions. SortByDate sorts slice of UpdateBotMessageReactions by Date. SortStable sorts slice of UpdateBotMessageReactions. SortStableByDate sorts slice of UpdateBotMessageReactions by Date. func UpdateBotMessageReactionsArray.Retain(keep func(x UpdateBotMessageReactions) bool) UpdateBotMessageReactionsArray func UpdateBotMessageReactionsArray.Sort(less func(a, b UpdateBotMessageReactions) bool) UpdateBotMessageReactionsArray func UpdateBotMessageReactionsArray.SortByDate() UpdateBotMessageReactionsArray func UpdateBotMessageReactionsArray.SortStable(less func(a, b UpdateBotMessageReactions) bool) UpdateBotMessageReactionsArray func UpdateBotMessageReactionsArray.SortStableByDate() UpdateBotMessageReactionsArray func UpdateClassArray.AsUpdateBotMessageReactions() (to UpdateBotMessageReactionsArray)
UpdateBotPrecheckoutQuery represents TL type `updateBotPrecheckoutQuery#8caa9a96`. This object contains information about an incoming pre-checkout query. See https://core.telegram.org/constructor/updateBotPrecheckoutQuery for reference. Three-letter ISO 4217 currency¹ code Links: 1) https://core.telegram.org/bots/payments#supported-currencies Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Order info provided by the user Use SetInfo and GetInfo helpers. Bot specified invoice payload Unique query identifier Identifier of the shipping option chosen by the user Use SetShippingOptionID and GetShippingOptionID helpers. Total amount 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 User who sent the query Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotPrecheckoutQuery from given interface. GetCurrency returns value of Currency field. GetInfo returns value of Info conditional field and boolean which is true if field was set. GetPayload returns value of Payload field. GetQueryID returns value of QueryID field. GetShippingOptionID returns value of ShippingOptionID conditional field and boolean which is true if field was set. GetTotalAmount returns value of TotalAmount field. GetUserID returns value of UserID field. SetFlags sets flags for non-zero fields. SetInfo sets value of Info conditional field. SetShippingOptionID sets value of ShippingOptionID 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. (*UpdateBotPrecheckoutQuery) Zero() bool *UpdateBotPrecheckoutQuery : UpdateClass *UpdateBotPrecheckoutQuery : github.com/gotd/td/bin.BareDecoder *UpdateBotPrecheckoutQuery : github.com/gotd/td/bin.BareEncoder *UpdateBotPrecheckoutQuery : github.com/gotd/td/bin.Decoder *UpdateBotPrecheckoutQuery : github.com/gotd/td/bin.Encoder *UpdateBotPrecheckoutQuery : github.com/gotd/td/bin.Object *UpdateBotPrecheckoutQuery : github.com/gotd/td/tdp.Object *UpdateBotPrecheckoutQuery : fmt.Stringer func UpdateBotPrecheckoutQueryArray.First() (v UpdateBotPrecheckoutQuery, ok bool) func UpdateBotPrecheckoutQueryArray.Last() (v UpdateBotPrecheckoutQuery, ok bool) func (*UpdateBotPrecheckoutQueryArray).Pop() (v UpdateBotPrecheckoutQuery, ok bool) func (*UpdateBotPrecheckoutQueryArray).PopFirst() (v UpdateBotPrecheckoutQuery, ok bool)
UpdateBotPrecheckoutQueryArray is adapter for slice of UpdateBotPrecheckoutQuery. 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 UpdateBotPrecheckoutQuery. Sort sorts slice of UpdateBotPrecheckoutQuery. SortStable sorts slice of UpdateBotPrecheckoutQuery. func UpdateBotPrecheckoutQueryArray.Retain(keep func(x UpdateBotPrecheckoutQuery) bool) UpdateBotPrecheckoutQueryArray func UpdateBotPrecheckoutQueryArray.Sort(less func(a, b UpdateBotPrecheckoutQuery) bool) UpdateBotPrecheckoutQueryArray func UpdateBotPrecheckoutQueryArray.SortStable(less func(a, b UpdateBotPrecheckoutQuery) bool) UpdateBotPrecheckoutQueryArray func UpdateClassArray.AsUpdateBotPrecheckoutQuery() (to UpdateBotPrecheckoutQueryArray)
UpdateBotShippingQuery represents TL type `updateBotShippingQuery#b5aefd7d`. This object contains information about an incoming shipping query. See https://core.telegram.org/constructor/updateBotShippingQuery for reference. Bot specified invoice payload Unique query identifier User specified shipping address User who sent the query Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotShippingQuery from given interface. GetPayload returns value of Payload field. GetQueryID returns value of QueryID field. GetShippingAddress returns value of ShippingAddress 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. (*UpdateBotShippingQuery) Zero() bool *UpdateBotShippingQuery : UpdateClass *UpdateBotShippingQuery : github.com/gotd/td/bin.BareDecoder *UpdateBotShippingQuery : github.com/gotd/td/bin.BareEncoder *UpdateBotShippingQuery : github.com/gotd/td/bin.Decoder *UpdateBotShippingQuery : github.com/gotd/td/bin.Encoder *UpdateBotShippingQuery : github.com/gotd/td/bin.Object *UpdateBotShippingQuery : github.com/gotd/td/tdp.Object *UpdateBotShippingQuery : fmt.Stringer func UpdateBotShippingQueryArray.First() (v UpdateBotShippingQuery, ok bool) func UpdateBotShippingQueryArray.Last() (v UpdateBotShippingQuery, ok bool) func (*UpdateBotShippingQueryArray).Pop() (v UpdateBotShippingQuery, ok bool) func (*UpdateBotShippingQueryArray).PopFirst() (v UpdateBotShippingQuery, ok bool)
UpdateBotShippingQueryArray is adapter for slice of UpdateBotShippingQuery. 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 UpdateBotShippingQuery. Sort sorts slice of UpdateBotShippingQuery. SortStable sorts slice of UpdateBotShippingQuery. func UpdateBotShippingQueryArray.Retain(keep func(x UpdateBotShippingQuery) bool) UpdateBotShippingQueryArray func UpdateBotShippingQueryArray.Sort(less func(a, b UpdateBotShippingQuery) bool) UpdateBotShippingQueryArray func UpdateBotShippingQueryArray.SortStable(less func(a, b UpdateBotShippingQuery) bool) UpdateBotShippingQueryArray func UpdateClassArray.AsUpdateBotShippingQuery() (to UpdateBotShippingQueryArray)
UpdateBotStopped represents TL type `updateBotStopped#c4870a49`. A bot was stopped or re-started. See https://core.telegram.org/constructor/updateBotStopped for reference. When did this action occur New qts value, see updates »¹ for more info. Links: 1) https://core.telegram.org/api/updates Whether the bot was stopped or started The user ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotStopped from given interface. GetDate returns value of Date field. GetQts returns value of Qts field. GetStopped returns value of Stopped 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. (*UpdateBotStopped) Zero() bool *UpdateBotStopped : UpdateClass *UpdateBotStopped : github.com/gotd/td/bin.BareDecoder *UpdateBotStopped : github.com/gotd/td/bin.BareEncoder *UpdateBotStopped : github.com/gotd/td/bin.Decoder *UpdateBotStopped : github.com/gotd/td/bin.Encoder *UpdateBotStopped : github.com/gotd/td/bin.Object *UpdateBotStopped : github.com/gotd/td/tdp.Object *UpdateBotStopped : fmt.Stringer func UpdateBotStoppedArray.First() (v UpdateBotStopped, ok bool) func UpdateBotStoppedArray.Last() (v UpdateBotStopped, ok bool) func (*UpdateBotStoppedArray).Pop() (v UpdateBotStopped, ok bool) func (*UpdateBotStoppedArray).PopFirst() (v UpdateBotStopped, ok bool)
UpdateBotStoppedArray is adapter for slice of UpdateBotStopped. 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 UpdateBotStopped. Sort sorts slice of UpdateBotStopped. SortByDate sorts slice of UpdateBotStopped by Date. SortStable sorts slice of UpdateBotStopped. SortStableByDate sorts slice of UpdateBotStopped by Date. func UpdateBotStoppedArray.Retain(keep func(x UpdateBotStopped) bool) UpdateBotStoppedArray func UpdateBotStoppedArray.Sort(less func(a, b UpdateBotStopped) bool) UpdateBotStoppedArray func UpdateBotStoppedArray.SortByDate() UpdateBotStoppedArray func UpdateBotStoppedArray.SortStable(less func(a, b UpdateBotStopped) bool) UpdateBotStoppedArray func UpdateBotStoppedArray.SortStableByDate() UpdateBotStoppedArray func UpdateClassArray.AsUpdateBotStopped() (to UpdateBotStoppedArray)
UpdateBotWebhookJSON represents TL type `updateBotWebhookJSON#8317c0c3`. A new incoming event; for bots only See https://core.telegram.org/constructor/updateBotWebhookJSON for reference. The event Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotWebhookJSON from given interface. GetData returns value of Data 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. (*UpdateBotWebhookJSON) Zero() bool *UpdateBotWebhookJSON : UpdateClass *UpdateBotWebhookJSON : github.com/gotd/td/bin.BareDecoder *UpdateBotWebhookJSON : github.com/gotd/td/bin.BareEncoder *UpdateBotWebhookJSON : github.com/gotd/td/bin.Decoder *UpdateBotWebhookJSON : github.com/gotd/td/bin.Encoder *UpdateBotWebhookJSON : github.com/gotd/td/bin.Object *UpdateBotWebhookJSON : github.com/gotd/td/tdp.Object *UpdateBotWebhookJSON : fmt.Stringer func UpdateBotWebhookJSONArray.First() (v UpdateBotWebhookJSON, ok bool) func UpdateBotWebhookJSONArray.Last() (v UpdateBotWebhookJSON, ok bool) func (*UpdateBotWebhookJSONArray).Pop() (v UpdateBotWebhookJSON, ok bool) func (*UpdateBotWebhookJSONArray).PopFirst() (v UpdateBotWebhookJSON, ok bool)
UpdateBotWebhookJSONArray is adapter for slice of UpdateBotWebhookJSON. 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 UpdateBotWebhookJSON. Sort sorts slice of UpdateBotWebhookJSON. SortStable sorts slice of UpdateBotWebhookJSON. func UpdateBotWebhookJSONArray.Retain(keep func(x UpdateBotWebhookJSON) bool) UpdateBotWebhookJSONArray func UpdateBotWebhookJSONArray.Sort(less func(a, b UpdateBotWebhookJSON) bool) UpdateBotWebhookJSONArray func UpdateBotWebhookJSONArray.SortStable(less func(a, b UpdateBotWebhookJSON) bool) UpdateBotWebhookJSONArray func UpdateClassArray.AsUpdateBotWebhookJSON() (to UpdateBotWebhookJSONArray)
UpdateBotWebhookJSONQuery represents TL type `updateBotWebhookJSONQuery#9b9240a6`. A new incoming query; for bots only See https://core.telegram.org/constructor/updateBotWebhookJSONQuery for reference. Query data Query identifier Query timeout Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateBotWebhookJSONQuery from given interface. GetData returns value of Data field. GetQueryID returns value of QueryID field. GetTimeout returns value of Timeout 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. (*UpdateBotWebhookJSONQuery) Zero() bool *UpdateBotWebhookJSONQuery : UpdateClass *UpdateBotWebhookJSONQuery : github.com/gotd/td/bin.BareDecoder *UpdateBotWebhookJSONQuery : github.com/gotd/td/bin.BareEncoder *UpdateBotWebhookJSONQuery : github.com/gotd/td/bin.Decoder *UpdateBotWebhookJSONQuery : github.com/gotd/td/bin.Encoder *UpdateBotWebhookJSONQuery : github.com/gotd/td/bin.Object *UpdateBotWebhookJSONQuery : github.com/gotd/td/tdp.Object *UpdateBotWebhookJSONQuery : fmt.Stringer func UpdateBotWebhookJSONQueryArray.First() (v UpdateBotWebhookJSONQuery, ok bool) func UpdateBotWebhookJSONQueryArray.Last() (v UpdateBotWebhookJSONQuery, ok bool) func (*UpdateBotWebhookJSONQueryArray).Pop() (v UpdateBotWebhookJSONQuery, ok bool) func (*UpdateBotWebhookJSONQueryArray).PopFirst() (v UpdateBotWebhookJSONQuery, ok bool)
UpdateBotWebhookJSONQueryArray is adapter for slice of UpdateBotWebhookJSONQuery. 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 UpdateBotWebhookJSONQuery. Sort sorts slice of UpdateBotWebhookJSONQuery. SortStable sorts slice of UpdateBotWebhookJSONQuery. func UpdateBotWebhookJSONQueryArray.Retain(keep func(x UpdateBotWebhookJSONQuery) bool) UpdateBotWebhookJSONQueryArray func UpdateBotWebhookJSONQueryArray.Sort(less func(a, b UpdateBotWebhookJSONQuery) bool) UpdateBotWebhookJSONQueryArray func UpdateBotWebhookJSONQueryArray.SortStable(less func(a, b UpdateBotWebhookJSONQuery) bool) UpdateBotWebhookJSONQueryArray func UpdateClassArray.AsUpdateBotWebhookJSONQuery() (to UpdateBotWebhookJSONQueryArray)
Update boxes the UpdateClass providing a helper. Update UpdateClass Decode implements bin.Decoder for UpdateBox. Encode implements bin.Encode for UpdateBox. *UpdateBox : github.com/gotd/td/bin.Decoder *UpdateBox : github.com/gotd/td/bin.Encoder *UpdateBox : github.com/gotd/td/bin.Object
UpdateChannel represents TL type `updateChannel#635b4c09`. A new channel or supergroup is available, or info about an existing channel has changed and must be refeteched. See https://core.telegram.org/constructor/updateChannel for reference. The supergroup it was migrated to Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannel from given interface. GetChannelID returns value of ChannelID 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. (*UpdateChannel) Zero() bool *UpdateChannel : UpdateClass *UpdateChannel : github.com/gotd/td/bin.BareDecoder *UpdateChannel : github.com/gotd/td/bin.BareEncoder *UpdateChannel : github.com/gotd/td/bin.Decoder *UpdateChannel : github.com/gotd/td/bin.Encoder *UpdateChannel : github.com/gotd/td/bin.Object *UpdateChannel : github.com/gotd/td/tdp.Object *UpdateChannel : fmt.Stringer func UpdateChannelArray.First() (v UpdateChannel, ok bool) func UpdateChannelArray.Last() (v UpdateChannel, ok bool) func (*UpdateChannelArray).Pop() (v UpdateChannel, ok bool) func (*UpdateChannelArray).PopFirst() (v UpdateChannel, ok bool)
UpdateChannelArray is adapter for slice of UpdateChannel. 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 UpdateChannel. Sort sorts slice of UpdateChannel. SortStable sorts slice of UpdateChannel. func UpdateChannelArray.Retain(keep func(x UpdateChannel) bool) UpdateChannelArray func UpdateChannelArray.Sort(less func(a, b UpdateChannel) bool) UpdateChannelArray func UpdateChannelArray.SortStable(less func(a, b UpdateChannel) bool) UpdateChannelArray func UpdateClassArray.AsUpdateChannel() (to UpdateChannelArray)
UpdateChannelAvailableMessages represents TL type `updateChannelAvailableMessages#b23fc698`. The history of a channel/supergroup¹ was hidden. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateChannelAvailableMessages for reference. Identifier of a maximum unavailable message in a channel due to hidden history. Channel/supergroup ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelAvailableMessages from given interface. GetAvailableMinID returns value of AvailableMinID field. GetChannelID returns value of ChannelID 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. (*UpdateChannelAvailableMessages) Zero() bool *UpdateChannelAvailableMessages : UpdateClass *UpdateChannelAvailableMessages : github.com/gotd/td/bin.BareDecoder *UpdateChannelAvailableMessages : github.com/gotd/td/bin.BareEncoder *UpdateChannelAvailableMessages : github.com/gotd/td/bin.Decoder *UpdateChannelAvailableMessages : github.com/gotd/td/bin.Encoder *UpdateChannelAvailableMessages : github.com/gotd/td/bin.Object *UpdateChannelAvailableMessages : github.com/gotd/td/tdp.Object *UpdateChannelAvailableMessages : fmt.Stringer func UpdateChannelAvailableMessagesArray.First() (v UpdateChannelAvailableMessages, ok bool) func UpdateChannelAvailableMessagesArray.Last() (v UpdateChannelAvailableMessages, ok bool) func (*UpdateChannelAvailableMessagesArray).Pop() (v UpdateChannelAvailableMessages, ok bool) func (*UpdateChannelAvailableMessagesArray).PopFirst() (v UpdateChannelAvailableMessages, ok bool)
UpdateChannelAvailableMessagesArray is adapter for slice of UpdateChannelAvailableMessages. 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 UpdateChannelAvailableMessages. Sort sorts slice of UpdateChannelAvailableMessages. SortStable sorts slice of UpdateChannelAvailableMessages. func UpdateChannelAvailableMessagesArray.Retain(keep func(x UpdateChannelAvailableMessages) bool) UpdateChannelAvailableMessagesArray func UpdateChannelAvailableMessagesArray.Sort(less func(a, b UpdateChannelAvailableMessages) bool) UpdateChannelAvailableMessagesArray func UpdateChannelAvailableMessagesArray.SortStable(less func(a, b UpdateChannelAvailableMessages) bool) UpdateChannelAvailableMessagesArray func UpdateClassArray.AsUpdateChannelAvailableMessages() (to UpdateChannelAvailableMessagesArray)
UpdateChannelMessageForwards represents TL type `updateChannelMessageForwards#d29a27f4`. The forward counter of a message in a channel has changed See https://core.telegram.org/constructor/updateChannelMessageForwards for reference. Channel ID New forward counter ID of the message Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelMessageForwards from given interface. GetChannelID returns value of ChannelID field. GetForwards returns value of Forwards 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. (*UpdateChannelMessageForwards) Zero() bool *UpdateChannelMessageForwards : UpdateClass *UpdateChannelMessageForwards : github.com/gotd/td/bin.BareDecoder *UpdateChannelMessageForwards : github.com/gotd/td/bin.BareEncoder *UpdateChannelMessageForwards : github.com/gotd/td/bin.Decoder *UpdateChannelMessageForwards : github.com/gotd/td/bin.Encoder *UpdateChannelMessageForwards : github.com/gotd/td/bin.Object *UpdateChannelMessageForwards : github.com/gotd/td/tdp.Object *UpdateChannelMessageForwards : fmt.Stringer func UpdateChannelMessageForwardsArray.First() (v UpdateChannelMessageForwards, ok bool) func UpdateChannelMessageForwardsArray.Last() (v UpdateChannelMessageForwards, ok bool) func (*UpdateChannelMessageForwardsArray).Pop() (v UpdateChannelMessageForwards, ok bool) func (*UpdateChannelMessageForwardsArray).PopFirst() (v UpdateChannelMessageForwards, ok bool) func UpdateChannelMessageForwardsArray.ToMap() map[int]UpdateChannelMessageForwards func UpdateChannelMessageForwardsArray.FillMap(to map[int]UpdateChannelMessageForwards)
UpdateChannelMessageForwardsArray is adapter for slice of UpdateChannelMessageForwards. 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 UpdateChannelMessageForwards. Sort sorts slice of UpdateChannelMessageForwards. SortByID sorts slice of UpdateChannelMessageForwards by ID. SortStable sorts slice of UpdateChannelMessageForwards. SortStableByID sorts slice of UpdateChannelMessageForwards by ID. ToMap collects constructors to map. func UpdateChannelMessageForwardsArray.Retain(keep func(x UpdateChannelMessageForwards) bool) UpdateChannelMessageForwardsArray func UpdateChannelMessageForwardsArray.Sort(less func(a, b UpdateChannelMessageForwards) bool) UpdateChannelMessageForwardsArray func UpdateChannelMessageForwardsArray.SortByID() UpdateChannelMessageForwardsArray func UpdateChannelMessageForwardsArray.SortStable(less func(a, b UpdateChannelMessageForwards) bool) UpdateChannelMessageForwardsArray func UpdateChannelMessageForwardsArray.SortStableByID() UpdateChannelMessageForwardsArray func UpdateClassArray.AsUpdateChannelMessageForwards() (to UpdateChannelMessageForwardsArray)
UpdateChannelMessageViews represents TL type `updateChannelMessageViews#f226ac08`. The view counter of a message in a channel has changed See https://core.telegram.org/constructor/updateChannelMessageViews for reference. Channel ID ID of the message New view counter Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelMessageViews from given interface. GetChannelID returns value of ChannelID field. GetID returns value of ID field. GetViews returns value of Views 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. (*UpdateChannelMessageViews) Zero() bool *UpdateChannelMessageViews : UpdateClass *UpdateChannelMessageViews : github.com/gotd/td/bin.BareDecoder *UpdateChannelMessageViews : github.com/gotd/td/bin.BareEncoder *UpdateChannelMessageViews : github.com/gotd/td/bin.Decoder *UpdateChannelMessageViews : github.com/gotd/td/bin.Encoder *UpdateChannelMessageViews : github.com/gotd/td/bin.Object *UpdateChannelMessageViews : github.com/gotd/td/tdp.Object *UpdateChannelMessageViews : fmt.Stringer func UpdateChannelMessageViewsArray.First() (v UpdateChannelMessageViews, ok bool) func UpdateChannelMessageViewsArray.Last() (v UpdateChannelMessageViews, ok bool) func (*UpdateChannelMessageViewsArray).Pop() (v UpdateChannelMessageViews, ok bool) func (*UpdateChannelMessageViewsArray).PopFirst() (v UpdateChannelMessageViews, ok bool) func UpdateChannelMessageViewsArray.ToMap() map[int]UpdateChannelMessageViews func UpdateChannelMessageViewsArray.FillMap(to map[int]UpdateChannelMessageViews)
UpdateChannelMessageViewsArray is adapter for slice of UpdateChannelMessageViews. 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 UpdateChannelMessageViews. Sort sorts slice of UpdateChannelMessageViews. SortByID sorts slice of UpdateChannelMessageViews by ID. SortStable sorts slice of UpdateChannelMessageViews. SortStableByID sorts slice of UpdateChannelMessageViews by ID. ToMap collects constructors to map. func UpdateChannelMessageViewsArray.Retain(keep func(x UpdateChannelMessageViews) bool) UpdateChannelMessageViewsArray func UpdateChannelMessageViewsArray.Sort(less func(a, b UpdateChannelMessageViews) bool) UpdateChannelMessageViewsArray func UpdateChannelMessageViewsArray.SortByID() UpdateChannelMessageViewsArray func UpdateChannelMessageViewsArray.SortStable(less func(a, b UpdateChannelMessageViews) bool) UpdateChannelMessageViewsArray func UpdateChannelMessageViewsArray.SortStableByID() UpdateChannelMessageViewsArray func UpdateClassArray.AsUpdateChannelMessageViews() (to UpdateChannelMessageViewsArray)
UpdateChannelParticipant represents TL type `updateChannelParticipant#985d3abb`. A participant has left, joined, was banned or admined in a channel or supergroup¹. Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateChannelParticipant for reference. User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself) Channel ID Date of the event Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Chat invite used to join the channel/supergroup¹ Links: 1) https://core.telegram.org/api/channel Use SetInvite and GetInvite helpers. New participant status Use SetNewParticipant and GetNewParticipant helpers. Previous participant status Use SetPrevParticipant and GetPrevParticipant helpers. New qts value, see updates »¹ for more info. Links: 1) https://core.telegram.org/api/updates User that was affected by the change Whether the participant joined using a chat folder deep link »¹. Links: 1) https://core.telegram.org/api/links#chat-folder-links Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelParticipant from given interface. GetActorID returns value of ActorID field. GetChannelID returns value of ChannelID field. GetDate returns value of Date field. GetInvite returns value of Invite conditional field and boolean which is true if field was set. GetNewParticipant returns value of NewParticipant conditional field and boolean which is true if field was set. GetPrevParticipant returns value of PrevParticipant conditional field and boolean which is true if field was set. GetQts returns value of Qts field. GetUserID returns value of UserID field. GetViaChatlist returns value of ViaChatlist conditional field. SetFlags sets flags for non-zero fields. SetInvite sets value of Invite conditional field. SetNewParticipant sets value of NewParticipant conditional field. SetPrevParticipant sets value of PrevParticipant conditional field. SetViaChatlist sets value of ViaChatlist 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. (*UpdateChannelParticipant) Zero() bool *UpdateChannelParticipant : UpdateClass *UpdateChannelParticipant : github.com/gotd/td/bin.BareDecoder *UpdateChannelParticipant : github.com/gotd/td/bin.BareEncoder *UpdateChannelParticipant : github.com/gotd/td/bin.Decoder *UpdateChannelParticipant : github.com/gotd/td/bin.Encoder *UpdateChannelParticipant : github.com/gotd/td/bin.Object *UpdateChannelParticipant : github.com/gotd/td/tdp.Object *UpdateChannelParticipant : fmt.Stringer func UpdateChannelParticipantArray.First() (v UpdateChannelParticipant, ok bool) func UpdateChannelParticipantArray.Last() (v UpdateChannelParticipant, ok bool) func (*UpdateChannelParticipantArray).Pop() (v UpdateChannelParticipant, ok bool) func (*UpdateChannelParticipantArray).PopFirst() (v UpdateChannelParticipant, ok bool)
UpdateChannelParticipantArray is adapter for slice of UpdateChannelParticipant. 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 UpdateChannelParticipant. Sort sorts slice of UpdateChannelParticipant. SortByDate sorts slice of UpdateChannelParticipant by Date. SortStable sorts slice of UpdateChannelParticipant. SortStableByDate sorts slice of UpdateChannelParticipant by Date. func UpdateChannelParticipantArray.Retain(keep func(x UpdateChannelParticipant) bool) UpdateChannelParticipantArray func UpdateChannelParticipantArray.Sort(less func(a, b UpdateChannelParticipant) bool) UpdateChannelParticipantArray func UpdateChannelParticipantArray.SortByDate() UpdateChannelParticipantArray func UpdateChannelParticipantArray.SortStable(less func(a, b UpdateChannelParticipant) bool) UpdateChannelParticipantArray func UpdateChannelParticipantArray.SortStableByDate() UpdateChannelParticipantArray func UpdateClassArray.AsUpdateChannelParticipant() (to UpdateChannelParticipantArray)
UpdateChannelPinnedTopic represents TL type `updateChannelPinnedTopic#192efbe3`. A forum topic »¹ was pinned or unpinned. Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/updateChannelPinnedTopic for reference. The forum ID Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the topic was pinned or unpinned The topic ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelPinnedTopic from given interface. GetChannelID returns value of ChannelID field. GetPinned returns value of Pinned conditional field. GetTopicID returns value of TopicID field. SetFlags sets flags for non-zero fields. SetPinned sets value of Pinned 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. (*UpdateChannelPinnedTopic) Zero() bool *UpdateChannelPinnedTopic : UpdateClass *UpdateChannelPinnedTopic : github.com/gotd/td/bin.BareDecoder *UpdateChannelPinnedTopic : github.com/gotd/td/bin.BareEncoder *UpdateChannelPinnedTopic : github.com/gotd/td/bin.Decoder *UpdateChannelPinnedTopic : github.com/gotd/td/bin.Encoder *UpdateChannelPinnedTopic : github.com/gotd/td/bin.Object *UpdateChannelPinnedTopic : github.com/gotd/td/tdp.Object *UpdateChannelPinnedTopic : fmt.Stringer func UpdateChannelPinnedTopicArray.First() (v UpdateChannelPinnedTopic, ok bool) func UpdateChannelPinnedTopicArray.Last() (v UpdateChannelPinnedTopic, ok bool) func (*UpdateChannelPinnedTopicArray).Pop() (v UpdateChannelPinnedTopic, ok bool) func (*UpdateChannelPinnedTopicArray).PopFirst() (v UpdateChannelPinnedTopic, ok bool)
UpdateChannelPinnedTopicArray is adapter for slice of UpdateChannelPinnedTopic. 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 UpdateChannelPinnedTopic. Sort sorts slice of UpdateChannelPinnedTopic. SortStable sorts slice of UpdateChannelPinnedTopic. func UpdateChannelPinnedTopicArray.Retain(keep func(x UpdateChannelPinnedTopic) bool) UpdateChannelPinnedTopicArray func UpdateChannelPinnedTopicArray.Sort(less func(a, b UpdateChannelPinnedTopic) bool) UpdateChannelPinnedTopicArray func UpdateChannelPinnedTopicArray.SortStable(less func(a, b UpdateChannelPinnedTopic) bool) UpdateChannelPinnedTopicArray func UpdateClassArray.AsUpdateChannelPinnedTopic() (to UpdateChannelPinnedTopicArray)
UpdateChannelPinnedTopics represents TL type `updateChannelPinnedTopics#fe198602`. The pinned topics¹ of a forum have changed. Links: 1. https://core.telegram.org/api/forum#forum-topics See https://core.telegram.org/constructor/updateChannelPinnedTopics for reference. Forum ID. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Ordered list containing the IDs of all pinned topics. Use SetOrder and GetOrder helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelPinnedTopics from given interface. GetChannelID returns value of ChannelID field. GetOrder returns value of Order conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetOrder sets value of Order 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. (*UpdateChannelPinnedTopics) Zero() bool *UpdateChannelPinnedTopics : UpdateClass *UpdateChannelPinnedTopics : github.com/gotd/td/bin.BareDecoder *UpdateChannelPinnedTopics : github.com/gotd/td/bin.BareEncoder *UpdateChannelPinnedTopics : github.com/gotd/td/bin.Decoder *UpdateChannelPinnedTopics : github.com/gotd/td/bin.Encoder *UpdateChannelPinnedTopics : github.com/gotd/td/bin.Object *UpdateChannelPinnedTopics : github.com/gotd/td/tdp.Object *UpdateChannelPinnedTopics : fmt.Stringer func UpdateChannelPinnedTopicsArray.First() (v UpdateChannelPinnedTopics, ok bool) func UpdateChannelPinnedTopicsArray.Last() (v UpdateChannelPinnedTopics, ok bool) func (*UpdateChannelPinnedTopicsArray).Pop() (v UpdateChannelPinnedTopics, ok bool) func (*UpdateChannelPinnedTopicsArray).PopFirst() (v UpdateChannelPinnedTopics, ok bool)
UpdateChannelPinnedTopicsArray is adapter for slice of UpdateChannelPinnedTopics. 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 UpdateChannelPinnedTopics. Sort sorts slice of UpdateChannelPinnedTopics. SortStable sorts slice of UpdateChannelPinnedTopics. func UpdateChannelPinnedTopicsArray.Retain(keep func(x UpdateChannelPinnedTopics) bool) UpdateChannelPinnedTopicsArray func UpdateChannelPinnedTopicsArray.Sort(less func(a, b UpdateChannelPinnedTopics) bool) UpdateChannelPinnedTopicsArray func UpdateChannelPinnedTopicsArray.SortStable(less func(a, b UpdateChannelPinnedTopics) bool) UpdateChannelPinnedTopicsArray func UpdateClassArray.AsUpdateChannelPinnedTopics() (to UpdateChannelPinnedTopicsArray)
UpdateChannelReadMessagesContents represents TL type `updateChannelReadMessagesContents#ea29055d`. The specified channel/supergroup¹ messages were read Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateChannelReadMessagesContents for reference. Channel/supergroup¹ ID Links: 1) https://core.telegram.org/api/channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields IDs of messages that were read Forum topic ID¹. Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelReadMessagesContents from given interface. GetChannelID returns value of ChannelID field. GetMessages returns value of Messages field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*UpdateChannelReadMessagesContents) Zero() bool *UpdateChannelReadMessagesContents : UpdateClass *UpdateChannelReadMessagesContents : github.com/gotd/td/bin.BareDecoder *UpdateChannelReadMessagesContents : github.com/gotd/td/bin.BareEncoder *UpdateChannelReadMessagesContents : github.com/gotd/td/bin.Decoder *UpdateChannelReadMessagesContents : github.com/gotd/td/bin.Encoder *UpdateChannelReadMessagesContents : github.com/gotd/td/bin.Object *UpdateChannelReadMessagesContents : github.com/gotd/td/tdp.Object *UpdateChannelReadMessagesContents : fmt.Stringer func UpdateChannelReadMessagesContentsArray.First() (v UpdateChannelReadMessagesContents, ok bool) func UpdateChannelReadMessagesContentsArray.Last() (v UpdateChannelReadMessagesContents, ok bool) func (*UpdateChannelReadMessagesContentsArray).Pop() (v UpdateChannelReadMessagesContents, ok bool) func (*UpdateChannelReadMessagesContentsArray).PopFirst() (v UpdateChannelReadMessagesContents, ok bool)
UpdateChannelReadMessagesContentsArray is adapter for slice of UpdateChannelReadMessagesContents. 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 UpdateChannelReadMessagesContents. Sort sorts slice of UpdateChannelReadMessagesContents. SortStable sorts slice of UpdateChannelReadMessagesContents. func UpdateChannelReadMessagesContentsArray.Retain(keep func(x UpdateChannelReadMessagesContents) bool) UpdateChannelReadMessagesContentsArray func UpdateChannelReadMessagesContentsArray.Sort(less func(a, b UpdateChannelReadMessagesContents) bool) UpdateChannelReadMessagesContentsArray func UpdateChannelReadMessagesContentsArray.SortStable(less func(a, b UpdateChannelReadMessagesContents) bool) UpdateChannelReadMessagesContentsArray func UpdateClassArray.AsUpdateChannelReadMessagesContents() (to UpdateChannelReadMessagesContentsArray)
UpdateChannelTooLong represents TL type `updateChannelTooLong#108d941f`. There are new updates in the specified channel, the client must fetch them. If the difference is too long or if the channel isn't currently in the states, start fetching from the specified pts. See https://core.telegram.org/constructor/updateChannelTooLong for reference. The channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The PTS¹. Links: 1) https://core.telegram.org/api/updates Use SetPts and GetPts helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelTooLong from given interface. GetChannelID returns value of ChannelID field. GetPts returns value of Pts conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetPts sets value of Pts 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. (*UpdateChannelTooLong) Zero() bool *UpdateChannelTooLong : UpdateClass *UpdateChannelTooLong : github.com/gotd/td/bin.BareDecoder *UpdateChannelTooLong : github.com/gotd/td/bin.BareEncoder *UpdateChannelTooLong : github.com/gotd/td/bin.Decoder *UpdateChannelTooLong : github.com/gotd/td/bin.Encoder *UpdateChannelTooLong : github.com/gotd/td/bin.Object *UpdateChannelTooLong : github.com/gotd/td/tdp.Object *UpdateChannelTooLong : fmt.Stringer func UpdateChannelTooLongArray.First() (v UpdateChannelTooLong, ok bool) func UpdateChannelTooLongArray.Last() (v UpdateChannelTooLong, ok bool) func (*UpdateChannelTooLongArray).Pop() (v UpdateChannelTooLong, ok bool) func (*UpdateChannelTooLongArray).PopFirst() (v UpdateChannelTooLong, ok bool)
UpdateChannelTooLongArray is adapter for slice of UpdateChannelTooLong. 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 UpdateChannelTooLong. Sort sorts slice of UpdateChannelTooLong. SortStable sorts slice of UpdateChannelTooLong. func UpdateChannelTooLongArray.Retain(keep func(x UpdateChannelTooLong) bool) UpdateChannelTooLongArray func UpdateChannelTooLongArray.Sort(less func(a, b UpdateChannelTooLong) bool) UpdateChannelTooLongArray func UpdateChannelTooLongArray.SortStable(less func(a, b UpdateChannelTooLong) bool) UpdateChannelTooLongArray func UpdateClassArray.AsUpdateChannelTooLong() (to UpdateChannelTooLongArray)
UpdateChannelUserTyping represents TL type `updateChannelUserTyping#8c88c923`. A user is typing in a supergroup, channel¹ or message thread² Links: 1. https://core.telegram.org/api/channel 2. https://core.telegram.org/api/threads See https://core.telegram.org/constructor/updateChannelUserTyping for reference. Whether the user is typing, sending a media or doing something else Channel ID Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The peer that is typing Thread ID¹ Links: 1) https://core.telegram.org/api/threads Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelUserTyping from given interface. GetAction returns value of Action field. GetChannelID returns value of ChannelID field. GetFromID returns value of FromID field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*UpdateChannelUserTyping) Zero() bool *UpdateChannelUserTyping : UpdateClass *UpdateChannelUserTyping : github.com/gotd/td/bin.BareDecoder *UpdateChannelUserTyping : github.com/gotd/td/bin.BareEncoder *UpdateChannelUserTyping : github.com/gotd/td/bin.Decoder *UpdateChannelUserTyping : github.com/gotd/td/bin.Encoder *UpdateChannelUserTyping : github.com/gotd/td/bin.Object *UpdateChannelUserTyping : github.com/gotd/td/tdp.Object *UpdateChannelUserTyping : fmt.Stringer func UpdateChannelUserTypingArray.First() (v UpdateChannelUserTyping, ok bool) func UpdateChannelUserTypingArray.Last() (v UpdateChannelUserTyping, ok bool) func (*UpdateChannelUserTypingArray).Pop() (v UpdateChannelUserTyping, ok bool) func (*UpdateChannelUserTypingArray).PopFirst() (v UpdateChannelUserTyping, ok bool)
UpdateChannelUserTypingArray is adapter for slice of UpdateChannelUserTyping. 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 UpdateChannelUserTyping. Sort sorts slice of UpdateChannelUserTyping. SortStable sorts slice of UpdateChannelUserTyping. func UpdateChannelUserTypingArray.Retain(keep func(x UpdateChannelUserTyping) bool) UpdateChannelUserTypingArray func UpdateChannelUserTypingArray.Sort(less func(a, b UpdateChannelUserTyping) bool) UpdateChannelUserTypingArray func UpdateChannelUserTypingArray.SortStable(less func(a, b UpdateChannelUserTyping) bool) UpdateChannelUserTypingArray func UpdateClassArray.AsUpdateChannelUserTyping() (to UpdateChannelUserTypingArray)
UpdateChannelViewForumAsMessages represents TL type `updateChannelViewForumAsMessages#7b68920`. Users may also choose to display messages from all topics as if they were sent to a normal group, using a "View as messages" setting in the local client. This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages¹ method; invoking this method will update the value of the view_forum_as_messages flag of channelFull² or dialog³ and emit an updateChannelViewForumAsMessages⁴. Links: 1. https://core.telegram.org/method/channels.toggleViewForumAsMessages 2. https://core.telegram.org/constructor/channelFull 3. https://core.telegram.org/constructor/dialog 4. https://core.telegram.org/constructor/updateChannelViewForumAsMessages See https://core.telegram.org/constructor/updateChannelViewForumAsMessages for reference. The forum ID The new value of the toggle. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelViewForumAsMessages from given interface. GetChannelID returns value of ChannelID field. 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. (*UpdateChannelViewForumAsMessages) Zero() bool *UpdateChannelViewForumAsMessages : UpdateClass *UpdateChannelViewForumAsMessages : github.com/gotd/td/bin.BareDecoder *UpdateChannelViewForumAsMessages : github.com/gotd/td/bin.BareEncoder *UpdateChannelViewForumAsMessages : github.com/gotd/td/bin.Decoder *UpdateChannelViewForumAsMessages : github.com/gotd/td/bin.Encoder *UpdateChannelViewForumAsMessages : github.com/gotd/td/bin.Object *UpdateChannelViewForumAsMessages : github.com/gotd/td/tdp.Object *UpdateChannelViewForumAsMessages : fmt.Stringer func UpdateChannelViewForumAsMessagesArray.First() (v UpdateChannelViewForumAsMessages, ok bool) func UpdateChannelViewForumAsMessagesArray.Last() (v UpdateChannelViewForumAsMessages, ok bool) func (*UpdateChannelViewForumAsMessagesArray).Pop() (v UpdateChannelViewForumAsMessages, ok bool) func (*UpdateChannelViewForumAsMessagesArray).PopFirst() (v UpdateChannelViewForumAsMessages, ok bool)
UpdateChannelViewForumAsMessagesArray is adapter for slice of UpdateChannelViewForumAsMessages. 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 UpdateChannelViewForumAsMessages. Sort sorts slice of UpdateChannelViewForumAsMessages. SortStable sorts slice of UpdateChannelViewForumAsMessages. func UpdateChannelViewForumAsMessagesArray.Retain(keep func(x UpdateChannelViewForumAsMessages) bool) UpdateChannelViewForumAsMessagesArray func UpdateChannelViewForumAsMessagesArray.Sort(less func(a, b UpdateChannelViewForumAsMessages) bool) UpdateChannelViewForumAsMessagesArray func UpdateChannelViewForumAsMessagesArray.SortStable(less func(a, b UpdateChannelViewForumAsMessages) bool) UpdateChannelViewForumAsMessagesArray func UpdateClassArray.AsUpdateChannelViewForumAsMessages() (to UpdateChannelViewForumAsMessagesArray)
UpdateChannelWebPage represents TL type `updateChannelWebPage#2f2ba99f`. A webpage preview of a link in a channel/supergroup¹ message was generated Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateChannelWebPage for reference. Channel/supergroup¹ ID Links: 1) https://core.telegram.org/api/channel Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Generated webpage preview Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChannelWebPage from given interface. GetChannelID returns value of ChannelID field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount field. GetWebpage returns value of Webpage 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. (*UpdateChannelWebPage) Zero() bool *UpdateChannelWebPage : UpdateClass *UpdateChannelWebPage : github.com/gotd/td/bin.BareDecoder *UpdateChannelWebPage : github.com/gotd/td/bin.BareEncoder *UpdateChannelWebPage : github.com/gotd/td/bin.Decoder *UpdateChannelWebPage : github.com/gotd/td/bin.Encoder *UpdateChannelWebPage : github.com/gotd/td/bin.Object *UpdateChannelWebPage : github.com/gotd/td/tdp.Object *UpdateChannelWebPage : fmt.Stringer func UpdateChannelWebPageArray.First() (v UpdateChannelWebPage, ok bool) func UpdateChannelWebPageArray.Last() (v UpdateChannelWebPage, ok bool) func (*UpdateChannelWebPageArray).Pop() (v UpdateChannelWebPage, ok bool) func (*UpdateChannelWebPageArray).PopFirst() (v UpdateChannelWebPage, ok bool)
UpdateChannelWebPageArray is adapter for slice of UpdateChannelWebPage. 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 UpdateChannelWebPage. Sort sorts slice of UpdateChannelWebPage. SortStable sorts slice of UpdateChannelWebPage. func UpdateChannelWebPageArray.Retain(keep func(x UpdateChannelWebPage) bool) UpdateChannelWebPageArray func UpdateChannelWebPageArray.Sort(less func(a, b UpdateChannelWebPage) bool) UpdateChannelWebPageArray func UpdateChannelWebPageArray.SortStable(less func(a, b UpdateChannelWebPage) bool) UpdateChannelWebPageArray func UpdateClassArray.AsUpdateChannelWebPage() (to UpdateChannelWebPageArray)
UpdateChat represents TL type `updateChat#f89a6a4e`. A new chat is available See https://core.telegram.org/constructor/updateChat for reference. Chat identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChat from given interface. GetChatID returns value of ChatID 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. (*UpdateChat) Zero() bool *UpdateChat : UpdateClass *UpdateChat : github.com/gotd/td/bin.BareDecoder *UpdateChat : github.com/gotd/td/bin.BareEncoder *UpdateChat : github.com/gotd/td/bin.Decoder *UpdateChat : github.com/gotd/td/bin.Encoder *UpdateChat : github.com/gotd/td/bin.Object *UpdateChat : github.com/gotd/td/tdp.Object *UpdateChat : fmt.Stringer func UpdateChatArray.First() (v UpdateChat, ok bool) func UpdateChatArray.Last() (v UpdateChat, ok bool) func (*UpdateChatArray).Pop() (v UpdateChat, ok bool) func (*UpdateChatArray).PopFirst() (v UpdateChat, ok bool)
UpdateChatArray is adapter for slice of UpdateChat. 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 UpdateChat. Sort sorts slice of UpdateChat. SortStable sorts slice of UpdateChat. func UpdateChatArray.Retain(keep func(x UpdateChat) bool) UpdateChatArray func UpdateChatArray.Sort(less func(a, b UpdateChat) bool) UpdateChatArray func UpdateChatArray.SortStable(less func(a, b UpdateChat) bool) UpdateChatArray func UpdateClassArray.AsUpdateChat() (to UpdateChatArray)
UpdateChatDefaultBannedRights represents TL type `updateChatDefaultBannedRights#54c01850`. Default banned rights in a normal chat¹ were updated Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateChatDefaultBannedRights for reference. New default banned rights The chat Version Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChatDefaultBannedRights from given interface. GetDefaultBannedRights returns value of DefaultBannedRights field. GetPeer returns value of Peer field. GetVersion returns value of Version 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. (*UpdateChatDefaultBannedRights) Zero() bool *UpdateChatDefaultBannedRights : UpdateClass *UpdateChatDefaultBannedRights : github.com/gotd/td/bin.BareDecoder *UpdateChatDefaultBannedRights : github.com/gotd/td/bin.BareEncoder *UpdateChatDefaultBannedRights : github.com/gotd/td/bin.Decoder *UpdateChatDefaultBannedRights : github.com/gotd/td/bin.Encoder *UpdateChatDefaultBannedRights : github.com/gotd/td/bin.Object *UpdateChatDefaultBannedRights : github.com/gotd/td/tdp.Object *UpdateChatDefaultBannedRights : fmt.Stringer func UpdateChatDefaultBannedRightsArray.First() (v UpdateChatDefaultBannedRights, ok bool) func UpdateChatDefaultBannedRightsArray.Last() (v UpdateChatDefaultBannedRights, ok bool) func (*UpdateChatDefaultBannedRightsArray).Pop() (v UpdateChatDefaultBannedRights, ok bool) func (*UpdateChatDefaultBannedRightsArray).PopFirst() (v UpdateChatDefaultBannedRights, ok bool)
UpdateChatDefaultBannedRightsArray is adapter for slice of UpdateChatDefaultBannedRights. 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 UpdateChatDefaultBannedRights. Sort sorts slice of UpdateChatDefaultBannedRights. SortStable sorts slice of UpdateChatDefaultBannedRights. func UpdateChatDefaultBannedRightsArray.Retain(keep func(x UpdateChatDefaultBannedRights) bool) UpdateChatDefaultBannedRightsArray func UpdateChatDefaultBannedRightsArray.Sort(less func(a, b UpdateChatDefaultBannedRights) bool) UpdateChatDefaultBannedRightsArray func UpdateChatDefaultBannedRightsArray.SortStable(less func(a, b UpdateChatDefaultBannedRights) bool) UpdateChatDefaultBannedRightsArray func UpdateClassArray.AsUpdateChatDefaultBannedRights() (to UpdateChatDefaultBannedRightsArray)
UpdateChatParticipant represents TL type `updateChatParticipant#d087663a`. A user has joined or left a specific chat See https://core.telegram.org/constructor/updateChatParticipant for reference. User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself) Chat¹ ID Links: 1) https://core.telegram.org/api/channel When did this event occur Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The invite that was used to join the group Use SetInvite and GetInvite helpers. New participant info (empty if this participant just left) Use SetNewParticipant and GetNewParticipant helpers. Previous participant info (empty if this participant just joined) Use SetPrevParticipant and GetPrevParticipant helpers. New qts value, see updates »¹ for more info. Links: 1) https://core.telegram.org/api/updates User that was affected by the change Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChatParticipant from given interface. GetActorID returns value of ActorID field. GetChatID returns value of ChatID field. GetDate returns value of Date field. GetInvite returns value of Invite conditional field and boolean which is true if field was set. GetNewParticipant returns value of NewParticipant conditional field and boolean which is true if field was set. GetPrevParticipant returns value of PrevParticipant conditional field and boolean which is true if field was set. GetQts returns value of Qts field. GetUserID returns value of UserID field. SetFlags sets flags for non-zero fields. SetInvite sets value of Invite conditional field. SetNewParticipant sets value of NewParticipant conditional field. SetPrevParticipant sets value of PrevParticipant 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. (*UpdateChatParticipant) Zero() bool *UpdateChatParticipant : UpdateClass *UpdateChatParticipant : github.com/gotd/td/bin.BareDecoder *UpdateChatParticipant : github.com/gotd/td/bin.BareEncoder *UpdateChatParticipant : github.com/gotd/td/bin.Decoder *UpdateChatParticipant : github.com/gotd/td/bin.Encoder *UpdateChatParticipant : github.com/gotd/td/bin.Object *UpdateChatParticipant : github.com/gotd/td/tdp.Object *UpdateChatParticipant : fmt.Stringer func UpdateChatParticipantArray.First() (v UpdateChatParticipant, ok bool) func UpdateChatParticipantArray.Last() (v UpdateChatParticipant, ok bool) func (*UpdateChatParticipantArray).Pop() (v UpdateChatParticipant, ok bool) func (*UpdateChatParticipantArray).PopFirst() (v UpdateChatParticipant, ok bool)
UpdateChatParticipantAdd represents TL type `updateChatParticipantAdd#3dda5451`. New group member. See https://core.telegram.org/constructor/updateChatParticipantAdd for reference. Group ID When was the participant added ID of the user, who added member to the group ID of the new member Chat version number Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChatParticipantAdd from given interface. GetChatID returns value of ChatID field. GetDate returns value of Date field. GetInviterID returns value of InviterID field. GetUserID returns value of UserID field. GetVersion returns value of Version 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. (*UpdateChatParticipantAdd) Zero() bool *UpdateChatParticipantAdd : UpdateClass *UpdateChatParticipantAdd : github.com/gotd/td/bin.BareDecoder *UpdateChatParticipantAdd : github.com/gotd/td/bin.BareEncoder *UpdateChatParticipantAdd : github.com/gotd/td/bin.Decoder *UpdateChatParticipantAdd : github.com/gotd/td/bin.Encoder *UpdateChatParticipantAdd : github.com/gotd/td/bin.Object *UpdateChatParticipantAdd : github.com/gotd/td/tdp.Object *UpdateChatParticipantAdd : fmt.Stringer func UpdateChatParticipantAddArray.First() (v UpdateChatParticipantAdd, ok bool) func UpdateChatParticipantAddArray.Last() (v UpdateChatParticipantAdd, ok bool) func (*UpdateChatParticipantAddArray).Pop() (v UpdateChatParticipantAdd, ok bool) func (*UpdateChatParticipantAddArray).PopFirst() (v UpdateChatParticipantAdd, ok bool)
UpdateChatParticipantAddArray is adapter for slice of UpdateChatParticipantAdd. 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 UpdateChatParticipantAdd. Sort sorts slice of UpdateChatParticipantAdd. SortByDate sorts slice of UpdateChatParticipantAdd by Date. SortStable sorts slice of UpdateChatParticipantAdd. SortStableByDate sorts slice of UpdateChatParticipantAdd by Date. func UpdateChatParticipantAddArray.Retain(keep func(x UpdateChatParticipantAdd) bool) UpdateChatParticipantAddArray func UpdateChatParticipantAddArray.Sort(less func(a, b UpdateChatParticipantAdd) bool) UpdateChatParticipantAddArray func UpdateChatParticipantAddArray.SortByDate() UpdateChatParticipantAddArray func UpdateChatParticipantAddArray.SortStable(less func(a, b UpdateChatParticipantAdd) bool) UpdateChatParticipantAddArray func UpdateChatParticipantAddArray.SortStableByDate() UpdateChatParticipantAddArray func UpdateClassArray.AsUpdateChatParticipantAdd() (to UpdateChatParticipantAddArray)
UpdateChatParticipantAdmin represents TL type `updateChatParticipantAdmin#d7ca61a2`. Admin permissions of a user in a basic group¹ were changed Links: 1. https://core.telegram.org/api/channel#basic-groups See https://core.telegram.org/constructor/updateChatParticipantAdmin for reference. Chat ID Whether the user was rendered admin ID of the (de)admined user Used in basic groups to reorder updates and make sure that all of them was received. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChatParticipantAdmin from given interface. GetChatID returns value of ChatID field. GetIsAdmin returns value of IsAdmin field. GetUserID returns value of UserID field. GetVersion returns value of Version 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. (*UpdateChatParticipantAdmin) Zero() bool *UpdateChatParticipantAdmin : UpdateClass *UpdateChatParticipantAdmin : github.com/gotd/td/bin.BareDecoder *UpdateChatParticipantAdmin : github.com/gotd/td/bin.BareEncoder *UpdateChatParticipantAdmin : github.com/gotd/td/bin.Decoder *UpdateChatParticipantAdmin : github.com/gotd/td/bin.Encoder *UpdateChatParticipantAdmin : github.com/gotd/td/bin.Object *UpdateChatParticipantAdmin : github.com/gotd/td/tdp.Object *UpdateChatParticipantAdmin : fmt.Stringer func UpdateChatParticipantAdminArray.First() (v UpdateChatParticipantAdmin, ok bool) func UpdateChatParticipantAdminArray.Last() (v UpdateChatParticipantAdmin, ok bool) func (*UpdateChatParticipantAdminArray).Pop() (v UpdateChatParticipantAdmin, ok bool) func (*UpdateChatParticipantAdminArray).PopFirst() (v UpdateChatParticipantAdmin, ok bool)
UpdateChatParticipantAdminArray is adapter for slice of UpdateChatParticipantAdmin. 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 UpdateChatParticipantAdmin. Sort sorts slice of UpdateChatParticipantAdmin. SortStable sorts slice of UpdateChatParticipantAdmin. func UpdateChatParticipantAdminArray.Retain(keep func(x UpdateChatParticipantAdmin) bool) UpdateChatParticipantAdminArray func UpdateChatParticipantAdminArray.Sort(less func(a, b UpdateChatParticipantAdmin) bool) UpdateChatParticipantAdminArray func UpdateChatParticipantAdminArray.SortStable(less func(a, b UpdateChatParticipantAdmin) bool) UpdateChatParticipantAdminArray func UpdateClassArray.AsUpdateChatParticipantAdmin() (to UpdateChatParticipantAdminArray)
UpdateChatParticipantArray is adapter for slice of UpdateChatParticipant. 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 UpdateChatParticipant. Sort sorts slice of UpdateChatParticipant. SortByDate sorts slice of UpdateChatParticipant by Date. SortStable sorts slice of UpdateChatParticipant. SortStableByDate sorts slice of UpdateChatParticipant by Date. func UpdateChatParticipantArray.Retain(keep func(x UpdateChatParticipant) bool) UpdateChatParticipantArray func UpdateChatParticipantArray.Sort(less func(a, b UpdateChatParticipant) bool) UpdateChatParticipantArray func UpdateChatParticipantArray.SortByDate() UpdateChatParticipantArray func UpdateChatParticipantArray.SortStable(less func(a, b UpdateChatParticipant) bool) UpdateChatParticipantArray func UpdateChatParticipantArray.SortStableByDate() UpdateChatParticipantArray func UpdateClassArray.AsUpdateChatParticipant() (to UpdateChatParticipantArray)
UpdateChatParticipantDelete represents TL type `updateChatParticipantDelete#e32f3d77`. A member has left the group. See https://core.telegram.org/constructor/updateChatParticipantDelete for reference. Group ID ID of the user Used in basic groups to reorder updates and make sure that all of them was received. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChatParticipantDelete from given interface. GetChatID returns value of ChatID field. GetUserID returns value of UserID field. GetVersion returns value of Version 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. (*UpdateChatParticipantDelete) Zero() bool *UpdateChatParticipantDelete : UpdateClass *UpdateChatParticipantDelete : github.com/gotd/td/bin.BareDecoder *UpdateChatParticipantDelete : github.com/gotd/td/bin.BareEncoder *UpdateChatParticipantDelete : github.com/gotd/td/bin.Decoder *UpdateChatParticipantDelete : github.com/gotd/td/bin.Encoder *UpdateChatParticipantDelete : github.com/gotd/td/bin.Object *UpdateChatParticipantDelete : github.com/gotd/td/tdp.Object *UpdateChatParticipantDelete : fmt.Stringer func UpdateChatParticipantDeleteArray.First() (v UpdateChatParticipantDelete, ok bool) func UpdateChatParticipantDeleteArray.Last() (v UpdateChatParticipantDelete, ok bool) func (*UpdateChatParticipantDeleteArray).Pop() (v UpdateChatParticipantDelete, ok bool) func (*UpdateChatParticipantDeleteArray).PopFirst() (v UpdateChatParticipantDelete, ok bool)
UpdateChatParticipantDeleteArray is adapter for slice of UpdateChatParticipantDelete. 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 UpdateChatParticipantDelete. Sort sorts slice of UpdateChatParticipantDelete. SortStable sorts slice of UpdateChatParticipantDelete. func UpdateChatParticipantDeleteArray.Retain(keep func(x UpdateChatParticipantDelete) bool) UpdateChatParticipantDeleteArray func UpdateChatParticipantDeleteArray.Sort(less func(a, b UpdateChatParticipantDelete) bool) UpdateChatParticipantDeleteArray func UpdateChatParticipantDeleteArray.SortStable(less func(a, b UpdateChatParticipantDelete) bool) UpdateChatParticipantDeleteArray func UpdateClassArray.AsUpdateChatParticipantDelete() (to UpdateChatParticipantDeleteArray)
UpdateChatParticipants represents TL type `updateChatParticipants#7761198`. Composition of chat participants changed. See https://core.telegram.org/constructor/updateChatParticipants for reference. Updated chat participants Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChatParticipants from given interface. GetParticipants returns value of Participants 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. (*UpdateChatParticipants) Zero() bool *UpdateChatParticipants : UpdateClass *UpdateChatParticipants : github.com/gotd/td/bin.BareDecoder *UpdateChatParticipants : github.com/gotd/td/bin.BareEncoder *UpdateChatParticipants : github.com/gotd/td/bin.Decoder *UpdateChatParticipants : github.com/gotd/td/bin.Encoder *UpdateChatParticipants : github.com/gotd/td/bin.Object *UpdateChatParticipants : github.com/gotd/td/tdp.Object *UpdateChatParticipants : fmt.Stringer func UpdateChatParticipantsArray.First() (v UpdateChatParticipants, ok bool) func UpdateChatParticipantsArray.Last() (v UpdateChatParticipants, ok bool) func (*UpdateChatParticipantsArray).Pop() (v UpdateChatParticipants, ok bool) func (*UpdateChatParticipantsArray).PopFirst() (v UpdateChatParticipants, ok bool)
UpdateChatParticipantsArray is adapter for slice of UpdateChatParticipants. 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 UpdateChatParticipants. Sort sorts slice of UpdateChatParticipants. SortStable sorts slice of UpdateChatParticipants. func UpdateChatParticipantsArray.Retain(keep func(x UpdateChatParticipants) bool) UpdateChatParticipantsArray func UpdateChatParticipantsArray.Sort(less func(a, b UpdateChatParticipants) bool) UpdateChatParticipantsArray func UpdateChatParticipantsArray.SortStable(less func(a, b UpdateChatParticipants) bool) UpdateChatParticipantsArray func UpdateClassArray.AsUpdateChatParticipants() (to UpdateChatParticipantsArray)
UpdateChatUserTyping represents TL type `updateChatUserTyping#83487af0`. The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing See https://core.telegram.org/constructor/updateChatUserTyping for reference. Type of action Group id Peer that started typing (can be the chat itself, in case of anonymous admins). Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateChatUserTyping from given interface. GetAction returns value of Action field. GetChatID returns value of ChatID field. GetFromID returns value of FromID 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. (*UpdateChatUserTyping) Zero() bool *UpdateChatUserTyping : UpdateClass *UpdateChatUserTyping : github.com/gotd/td/bin.BareDecoder *UpdateChatUserTyping : github.com/gotd/td/bin.BareEncoder *UpdateChatUserTyping : github.com/gotd/td/bin.Decoder *UpdateChatUserTyping : github.com/gotd/td/bin.Encoder *UpdateChatUserTyping : github.com/gotd/td/bin.Object *UpdateChatUserTyping : github.com/gotd/td/tdp.Object *UpdateChatUserTyping : fmt.Stringer func UpdateChatUserTypingArray.First() (v UpdateChatUserTyping, ok bool) func UpdateChatUserTypingArray.Last() (v UpdateChatUserTyping, ok bool) func (*UpdateChatUserTypingArray).Pop() (v UpdateChatUserTyping, ok bool) func (*UpdateChatUserTypingArray).PopFirst() (v UpdateChatUserTyping, ok bool)
UpdateChatUserTypingArray is adapter for slice of UpdateChatUserTyping. 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 UpdateChatUserTyping. Sort sorts slice of UpdateChatUserTyping. SortStable sorts slice of UpdateChatUserTyping. func UpdateChatUserTypingArray.Retain(keep func(x UpdateChatUserTyping) bool) UpdateChatUserTypingArray func UpdateChatUserTypingArray.Sort(less func(a, b UpdateChatUserTyping) bool) UpdateChatUserTypingArray func UpdateChatUserTypingArray.SortStable(less func(a, b UpdateChatUserTyping) bool) UpdateChatUserTypingArray func UpdateClassArray.AsUpdateChatUserTyping() (to UpdateChatUserTypingArray)
UpdateClass represents Update generic type. See https://core.telegram.org/type/Update for reference. Example: g, err := tg.DecodeUpdate(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.UpdateNewMessage: // updateNewMessage#1f2b0afd case *tg.UpdateMessageID: // updateMessageID#4e90bfd6 case *tg.UpdateDeleteMessages: // updateDeleteMessages#a20db0e5 case *tg.UpdateUserTyping: // updateUserTyping#c01e857f case *tg.UpdateChatUserTyping: // updateChatUserTyping#83487af0 case *tg.UpdateChatParticipants: // updateChatParticipants#7761198 case *tg.UpdateUserStatus: // updateUserStatus#e5bdf8de case *tg.UpdateUserName: // updateUserName#a7848924 case *tg.UpdateNewAuthorization: // updateNewAuthorization#8951abef case *tg.UpdateNewEncryptedMessage: // updateNewEncryptedMessage#12bcbd9a case *tg.UpdateEncryptedChatTyping: // updateEncryptedChatTyping#1710f156 case *tg.UpdateEncryption: // updateEncryption#b4a2e88d case *tg.UpdateEncryptedMessagesRead: // updateEncryptedMessagesRead#38fe25b7 case *tg.UpdateChatParticipantAdd: // updateChatParticipantAdd#3dda5451 case *tg.UpdateChatParticipantDelete: // updateChatParticipantDelete#e32f3d77 case *tg.UpdateDCOptions: // updateDcOptions#8e5e9873 case *tg.UpdateNotifySettings: // updateNotifySettings#bec268ef case *tg.UpdateServiceNotification: // updateServiceNotification#ebe46819 case *tg.UpdatePrivacy: // updatePrivacy#ee3b272a case *tg.UpdateUserPhone: // updateUserPhone#5492a13 case *tg.UpdateReadHistoryInbox: // updateReadHistoryInbox#9c974fdf case *tg.UpdateReadHistoryOutbox: // updateReadHistoryOutbox#2f2f21bf case *tg.UpdateWebPage: // updateWebPage#7f891213 case *tg.UpdateReadMessagesContents: // updateReadMessagesContents#f8227181 case *tg.UpdateChannelTooLong: // updateChannelTooLong#108d941f case *tg.UpdateChannel: // updateChannel#635b4c09 case *tg.UpdateNewChannelMessage: // updateNewChannelMessage#62ba04d9 case *tg.UpdateReadChannelInbox: // updateReadChannelInbox#922e6e10 case *tg.UpdateDeleteChannelMessages: // updateDeleteChannelMessages#c32d5b12 case *tg.UpdateChannelMessageViews: // updateChannelMessageViews#f226ac08 case *tg.UpdateChatParticipantAdmin: // updateChatParticipantAdmin#d7ca61a2 case *tg.UpdateNewStickerSet: // updateNewStickerSet#688a30aa case *tg.UpdateStickerSetsOrder: // updateStickerSetsOrder#bb2d201 case *tg.UpdateStickerSets: // updateStickerSets#31c24808 case *tg.UpdateSavedGifs: // updateSavedGifs#9375341e case *tg.UpdateBotInlineQuery: // updateBotInlineQuery#496f379c case *tg.UpdateBotInlineSend: // updateBotInlineSend#12f12a07 case *tg.UpdateEditChannelMessage: // updateEditChannelMessage#1b3f4df7 case *tg.UpdateBotCallbackQuery: // updateBotCallbackQuery#b9cfc48d case *tg.UpdateEditMessage: // updateEditMessage#e40370a3 case *tg.UpdateInlineBotCallbackQuery: // updateInlineBotCallbackQuery#691e9052 case *tg.UpdateReadChannelOutbox: // updateReadChannelOutbox#b75f99a9 case *tg.UpdateDraftMessage: // updateDraftMessage#1b49ec6d case *tg.UpdateReadFeaturedStickers: // updateReadFeaturedStickers#571d2742 case *tg.UpdateRecentStickers: // updateRecentStickers#9a422c20 case *tg.UpdateConfig: // updateConfig#a229dd06 case *tg.UpdatePtsChanged: // updatePtsChanged#3354678f case *tg.UpdateChannelWebPage: // updateChannelWebPage#2f2ba99f case *tg.UpdateDialogPinned: // updateDialogPinned#6e6fe51c case *tg.UpdatePinnedDialogs: // updatePinnedDialogs#fa0f3ca2 case *tg.UpdateBotWebhookJSON: // updateBotWebhookJSON#8317c0c3 case *tg.UpdateBotWebhookJSONQuery: // updateBotWebhookJSONQuery#9b9240a6 case *tg.UpdateBotShippingQuery: // updateBotShippingQuery#b5aefd7d case *tg.UpdateBotPrecheckoutQuery: // updateBotPrecheckoutQuery#8caa9a96 case *tg.UpdatePhoneCall: // updatePhoneCall#ab0f6b1e case *tg.UpdateLangPackTooLong: // updateLangPackTooLong#46560264 case *tg.UpdateLangPack: // updateLangPack#56022f4d case *tg.UpdateFavedStickers: // updateFavedStickers#e511996d case *tg.UpdateChannelReadMessagesContents: // updateChannelReadMessagesContents#ea29055d case *tg.UpdateContactsReset: // updateContactsReset#7084a7be case *tg.UpdateChannelAvailableMessages: // updateChannelAvailableMessages#b23fc698 case *tg.UpdateDialogUnreadMark: // updateDialogUnreadMark#e16459c3 case *tg.UpdateMessagePoll: // updateMessagePoll#aca1657b case *tg.UpdateChatDefaultBannedRights: // updateChatDefaultBannedRights#54c01850 case *tg.UpdateFolderPeers: // updateFolderPeers#19360dc0 case *tg.UpdatePeerSettings: // updatePeerSettings#6a7e7366 case *tg.UpdatePeerLocated: // updatePeerLocated#b4afcfb0 case *tg.UpdateNewScheduledMessage: // updateNewScheduledMessage#39a51dfb case *tg.UpdateDeleteScheduledMessages: // updateDeleteScheduledMessages#90866cee case *tg.UpdateTheme: // updateTheme#8216fba3 case *tg.UpdateGeoLiveViewed: // updateGeoLiveViewed#871fb939 case *tg.UpdateLoginToken: // updateLoginToken#564fe691 case *tg.UpdateMessagePollVote: // updateMessagePollVote#24f40e77 case *tg.UpdateDialogFilter: // updateDialogFilter#26ffde7d case *tg.UpdateDialogFilterOrder: // updateDialogFilterOrder#a5d72105 case *tg.UpdateDialogFilters: // updateDialogFilters#3504914f case *tg.UpdatePhoneCallSignalingData: // updatePhoneCallSignalingData#2661bf09 case *tg.UpdateChannelMessageForwards: // updateChannelMessageForwards#d29a27f4 case *tg.UpdateReadChannelDiscussionInbox: // updateReadChannelDiscussionInbox#d6b19546 case *tg.UpdateReadChannelDiscussionOutbox: // updateReadChannelDiscussionOutbox#695c9e7c case *tg.UpdatePeerBlocked: // updatePeerBlocked#ebe07752 case *tg.UpdateChannelUserTyping: // updateChannelUserTyping#8c88c923 case *tg.UpdatePinnedMessages: // updatePinnedMessages#ed85eab5 case *tg.UpdatePinnedChannelMessages: // updatePinnedChannelMessages#5bb98608 case *tg.UpdateChat: // updateChat#f89a6a4e case *tg.UpdateGroupCallParticipants: // updateGroupCallParticipants#f2ebdb4e case *tg.UpdateGroupCall: // updateGroupCall#14b24500 case *tg.UpdatePeerHistoryTTL: // updatePeerHistoryTTL#bb9bb9a5 case *tg.UpdateChatParticipant: // updateChatParticipant#d087663a case *tg.UpdateChannelParticipant: // updateChannelParticipant#985d3abb case *tg.UpdateBotStopped: // updateBotStopped#c4870a49 case *tg.UpdateGroupCallConnection: // updateGroupCallConnection#b783982 case *tg.UpdateBotCommands: // updateBotCommands#4d712f2e case *tg.UpdatePendingJoinRequests: // updatePendingJoinRequests#7063c3db case *tg.UpdateBotChatInviteRequester: // updateBotChatInviteRequester#11dfa986 case *tg.UpdateMessageReactions: // updateMessageReactions#5e1b3cb8 case *tg.UpdateAttachMenuBots: // updateAttachMenuBots#17b7a20b case *tg.UpdateWebViewResultSent: // updateWebViewResultSent#1592b79d case *tg.UpdateBotMenuButton: // updateBotMenuButton#14b85813 case *tg.UpdateSavedRingtones: // updateSavedRingtones#74d8be99 case *tg.UpdateTranscribedAudio: // updateTranscribedAudio#84cd5a case *tg.UpdateReadFeaturedEmojiStickers: // updateReadFeaturedEmojiStickers#fb4c496c case *tg.UpdateUserEmojiStatus: // updateUserEmojiStatus#28373599 case *tg.UpdateRecentEmojiStatuses: // updateRecentEmojiStatuses#30f443db case *tg.UpdateRecentReactions: // updateRecentReactions#6f7863f4 case *tg.UpdateMoveStickerSetToTop: // updateMoveStickerSetToTop#86fccf85 case *tg.UpdateMessageExtendedMedia: // updateMessageExtendedMedia#5a73a98c case *tg.UpdateChannelPinnedTopic: // updateChannelPinnedTopic#192efbe3 case *tg.UpdateChannelPinnedTopics: // updateChannelPinnedTopics#fe198602 case *tg.UpdateUser: // updateUser#20529438 case *tg.UpdateAutoSaveSettings: // updateAutoSaveSettings#ec05b097 case *tg.UpdateGroupInvitePrivacyForbidden: // updateGroupInvitePrivacyForbidden#ccf08ad6 case *tg.UpdateStory: // updateStory#75b3b798 case *tg.UpdateReadStories: // updateReadStories#f74e932b case *tg.UpdateStoryID: // updateStoryID#1bf335b9 case *tg.UpdateStoriesStealthMode: // updateStoriesStealthMode#2c084dc1 case *tg.UpdateSentStoryReaction: // updateSentStoryReaction#7d627683 case *tg.UpdateBotChatBoost: // updateBotChatBoost#904dd49c case *tg.UpdateChannelViewForumAsMessages: // updateChannelViewForumAsMessages#7b68920 case *tg.UpdatePeerWallpaper: // updatePeerWallpaper#ae3f101d case *tg.UpdateBotMessageReaction: // updateBotMessageReaction#ac21d3ce case *tg.UpdateBotMessageReactions: // updateBotMessageReactions#9cb7759 default: panic(v) } ( UpdateClass) Decode(b *bin.Buffer) error ( UpdateClass) DecodeBare(b *bin.Buffer) error ( UpdateClass) Encode(b *bin.Buffer) error ( UpdateClass) 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. *UpdateAttachMenuBots *UpdateAutoSaveSettings *UpdateBotCallbackQuery *UpdateBotChatBoost *UpdateBotChatInviteRequester *UpdateBotCommands *UpdateBotInlineQuery *UpdateBotInlineSend *UpdateBotMenuButton *UpdateBotMessageReaction *UpdateBotMessageReactions *UpdateBotPrecheckoutQuery *UpdateBotShippingQuery *UpdateBotStopped *UpdateBotWebhookJSON *UpdateBotWebhookJSONQuery *UpdateChannel *UpdateChannelAvailableMessages *UpdateChannelMessageForwards *UpdateChannelMessageViews *UpdateChannelParticipant *UpdateChannelPinnedTopic *UpdateChannelPinnedTopics *UpdateChannelReadMessagesContents *UpdateChannelTooLong *UpdateChannelUserTyping *UpdateChannelViewForumAsMessages *UpdateChannelWebPage *UpdateChat *UpdateChatDefaultBannedRights *UpdateChatParticipant *UpdateChatParticipantAdd *UpdateChatParticipantAdmin *UpdateChatParticipantDelete *UpdateChatParticipants *UpdateChatUserTyping *UpdateConfig *UpdateContactsReset *UpdateDCOptions *UpdateDeleteChannelMessages *UpdateDeleteMessages *UpdateDeleteScheduledMessages *UpdateDialogFilter *UpdateDialogFilterOrder *UpdateDialogFilters *UpdateDialogPinned *UpdateDialogUnreadMark *UpdateDraftMessage *UpdateEditChannelMessage *UpdateEditMessage *UpdateEncryptedChatTyping *UpdateEncryptedMessagesRead *UpdateEncryption *UpdateFavedStickers *UpdateFolderPeers *UpdateGeoLiveViewed *UpdateGroupCall *UpdateGroupCallConnection *UpdateGroupCallParticipants *UpdateGroupInvitePrivacyForbidden *UpdateInlineBotCallbackQuery *UpdateLangPack *UpdateLangPackTooLong *UpdateLoginToken *UpdateMessageExtendedMedia *UpdateMessageID *UpdateMessagePoll *UpdateMessagePollVote *UpdateMessageReactions *UpdateMoveStickerSetToTop *UpdateNewAuthorization *UpdateNewChannelMessage *UpdateNewEncryptedMessage *UpdateNewMessage *UpdateNewScheduledMessage *UpdateNewStickerSet *UpdateNotifySettings *UpdatePeerBlocked *UpdatePeerHistoryTTL *UpdatePeerLocated *UpdatePeerSettings *UpdatePeerWallpaper *UpdatePendingJoinRequests *UpdatePhoneCall *UpdatePhoneCallSignalingData *UpdatePinnedChannelMessages *UpdatePinnedDialogs *UpdatePinnedMessages *UpdatePrivacy *UpdatePtsChanged *UpdateReadChannelDiscussionInbox *UpdateReadChannelDiscussionOutbox *UpdateReadChannelInbox *UpdateReadChannelOutbox *UpdateReadFeaturedEmojiStickers *UpdateReadFeaturedStickers *UpdateReadHistoryInbox *UpdateReadHistoryOutbox *UpdateReadMessagesContents *UpdateReadStories *UpdateRecentEmojiStatuses *UpdateRecentReactions *UpdateRecentStickers *UpdateSavedGifs *UpdateSavedRingtones *UpdateSentStoryReaction *UpdateServiceNotification *UpdateStickerSets *UpdateStickerSetsOrder *UpdateStoriesStealthMode *UpdateStory *UpdateStoryID *UpdateTheme *UpdateTranscribedAudio *UpdateUser *UpdateUserEmojiStatus *UpdateUserName *UpdateUserPhone *UpdateUserStatus *UpdateUserTyping *UpdateWebPage *UpdateWebViewResultSent UpdateClass : github.com/gotd/td/bin.BareDecoder UpdateClass : github.com/gotd/td/bin.BareEncoder UpdateClass : github.com/gotd/td/bin.Decoder UpdateClass : github.com/gotd/td/bin.Encoder UpdateClass : github.com/gotd/td/bin.Object UpdateClass : fmt.Stringer func DecodeUpdate(buf *bin.Buffer) (UpdateClass, error) func UpdateClassArray.First() (v UpdateClass, ok bool) func UpdateClassArray.Last() (v UpdateClass, ok bool) func (*UpdateClassArray).Pop() (v UpdateClass, ok bool) func (*UpdateClassArray).PopFirst() (v UpdateClass, ok bool) func (*Updates).GetUpdates() (value []UpdateClass) func (*UpdatesChannelDifference).GetOtherUpdates() (value []UpdateClass) func (*UpdatesCombined).GetUpdates() (value []UpdateClass) func (*UpdatesDifference).GetOtherUpdates() (value []UpdateClass) func (*UpdatesDifferenceSlice).GetOtherUpdates() (value []UpdateClass) func (*UpdateShort).GetUpdate() (value UpdateClass) func IsChannelPtsUpdate(u UpdateClass) (channelID int64, pts, ptsCount int, ok bool, err error) func IsPtsUpdate(u UpdateClass) (pts, ptsCount int, ok bool) func IsQtsUpdate(u UpdateClass) (qts int, ok bool)
UpdateClassArray is adapter for slice of UpdateClass. AsUpdateBotCallbackQuery returns copy with only UpdateBotCallbackQuery constructors. AsUpdateBotChatBoost returns copy with only UpdateBotChatBoost constructors. AsUpdateBotChatInviteRequester returns copy with only UpdateBotChatInviteRequester constructors. AsUpdateBotCommands returns copy with only UpdateBotCommands constructors. AsUpdateBotInlineQuery returns copy with only UpdateBotInlineQuery constructors. AsUpdateBotInlineSend returns copy with only UpdateBotInlineSend constructors. AsUpdateBotMenuButton returns copy with only UpdateBotMenuButton constructors. AsUpdateBotMessageReaction returns copy with only UpdateBotMessageReaction constructors. AsUpdateBotMessageReactions returns copy with only UpdateBotMessageReactions constructors. AsUpdateBotPrecheckoutQuery returns copy with only UpdateBotPrecheckoutQuery constructors. AsUpdateBotShippingQuery returns copy with only UpdateBotShippingQuery constructors. AsUpdateBotStopped returns copy with only UpdateBotStopped constructors. AsUpdateBotWebhookJSON returns copy with only UpdateBotWebhookJSON constructors. AsUpdateBotWebhookJSONQuery returns copy with only UpdateBotWebhookJSONQuery constructors. AsUpdateChannel returns copy with only UpdateChannel constructors. AsUpdateChannelAvailableMessages returns copy with only UpdateChannelAvailableMessages constructors. AsUpdateChannelMessageForwards returns copy with only UpdateChannelMessageForwards constructors. AsUpdateChannelMessageViews returns copy with only UpdateChannelMessageViews constructors. AsUpdateChannelParticipant returns copy with only UpdateChannelParticipant constructors. AsUpdateChannelPinnedTopic returns copy with only UpdateChannelPinnedTopic constructors. AsUpdateChannelPinnedTopics returns copy with only UpdateChannelPinnedTopics constructors. AsUpdateChannelReadMessagesContents returns copy with only UpdateChannelReadMessagesContents constructors. AsUpdateChannelTooLong returns copy with only UpdateChannelTooLong constructors. AsUpdateChannelUserTyping returns copy with only UpdateChannelUserTyping constructors. AsUpdateChannelViewForumAsMessages returns copy with only UpdateChannelViewForumAsMessages constructors. AsUpdateChannelWebPage returns copy with only UpdateChannelWebPage constructors. AsUpdateChat returns copy with only UpdateChat constructors. AsUpdateChatDefaultBannedRights returns copy with only UpdateChatDefaultBannedRights constructors. AsUpdateChatParticipant returns copy with only UpdateChatParticipant constructors. AsUpdateChatParticipantAdd returns copy with only UpdateChatParticipantAdd constructors. AsUpdateChatParticipantAdmin returns copy with only UpdateChatParticipantAdmin constructors. AsUpdateChatParticipantDelete returns copy with only UpdateChatParticipantDelete constructors. AsUpdateChatParticipants returns copy with only UpdateChatParticipants constructors. AsUpdateChatUserTyping returns copy with only UpdateChatUserTyping constructors. AsUpdateDCOptions returns copy with only UpdateDCOptions constructors. AsUpdateDeleteChannelMessages returns copy with only UpdateDeleteChannelMessages constructors. AsUpdateDeleteMessages returns copy with only UpdateDeleteMessages constructors. AsUpdateDeleteScheduledMessages returns copy with only UpdateDeleteScheduledMessages constructors. AsUpdateDialogFilter returns copy with only UpdateDialogFilter constructors. AsUpdateDialogFilterOrder returns copy with only UpdateDialogFilterOrder constructors. AsUpdateDialogPinned returns copy with only UpdateDialogPinned constructors. AsUpdateDialogUnreadMark returns copy with only UpdateDialogUnreadMark constructors. AsUpdateDraftMessage returns copy with only UpdateDraftMessage constructors. AsUpdateEditChannelMessage returns copy with only UpdateEditChannelMessage constructors. AsUpdateEditMessage returns copy with only UpdateEditMessage constructors. AsUpdateEncryptedChatTyping returns copy with only UpdateEncryptedChatTyping constructors. AsUpdateEncryptedMessagesRead returns copy with only UpdateEncryptedMessagesRead constructors. AsUpdateEncryption returns copy with only UpdateEncryption constructors. AsUpdateFolderPeers returns copy with only UpdateFolderPeers constructors. AsUpdateGeoLiveViewed returns copy with only UpdateGeoLiveViewed constructors. AsUpdateGroupCall returns copy with only UpdateGroupCall constructors. AsUpdateGroupCallConnection returns copy with only UpdateGroupCallConnection constructors. AsUpdateGroupCallParticipants returns copy with only UpdateGroupCallParticipants constructors. AsUpdateGroupInvitePrivacyForbidden returns copy with only UpdateGroupInvitePrivacyForbidden constructors. AsUpdateInlineBotCallbackQuery returns copy with only UpdateInlineBotCallbackQuery constructors. AsUpdateLangPack returns copy with only UpdateLangPack constructors. AsUpdateLangPackTooLong returns copy with only UpdateLangPackTooLong constructors. AsUpdateMessageExtendedMedia returns copy with only UpdateMessageExtendedMedia constructors. AsUpdateMessageID returns copy with only UpdateMessageID constructors. AsUpdateMessagePoll returns copy with only UpdateMessagePoll constructors. AsUpdateMessagePollVote returns copy with only UpdateMessagePollVote constructors. AsUpdateMessageReactions returns copy with only UpdateMessageReactions constructors. AsUpdateMoveStickerSetToTop returns copy with only UpdateMoveStickerSetToTop constructors. AsUpdateNewAuthorization returns copy with only UpdateNewAuthorization constructors. AsUpdateNewChannelMessage returns copy with only UpdateNewChannelMessage constructors. AsUpdateNewEncryptedMessage returns copy with only UpdateNewEncryptedMessage constructors. AsUpdateNewMessage returns copy with only UpdateNewMessage constructors. AsUpdateNewScheduledMessage returns copy with only UpdateNewScheduledMessage constructors. AsUpdateNewStickerSet returns copy with only UpdateNewStickerSet constructors. AsUpdateNotifySettings returns copy with only UpdateNotifySettings constructors. AsUpdatePeerBlocked returns copy with only UpdatePeerBlocked constructors. AsUpdatePeerHistoryTTL returns copy with only UpdatePeerHistoryTTL constructors. AsUpdatePeerLocated returns copy with only UpdatePeerLocated constructors. AsUpdatePeerSettings returns copy with only UpdatePeerSettings constructors. AsUpdatePeerWallpaper returns copy with only UpdatePeerWallpaper constructors. AsUpdatePendingJoinRequests returns copy with only UpdatePendingJoinRequests constructors. AsUpdatePhoneCall returns copy with only UpdatePhoneCall constructors. AsUpdatePhoneCallSignalingData returns copy with only UpdatePhoneCallSignalingData constructors. AsUpdatePinnedChannelMessages returns copy with only UpdatePinnedChannelMessages constructors. AsUpdatePinnedDialogs returns copy with only UpdatePinnedDialogs constructors. AsUpdatePinnedMessages returns copy with only UpdatePinnedMessages constructors. AsUpdatePrivacy returns copy with only UpdatePrivacy constructors. AsUpdateReadChannelDiscussionInbox returns copy with only UpdateReadChannelDiscussionInbox constructors. AsUpdateReadChannelDiscussionOutbox returns copy with only UpdateReadChannelDiscussionOutbox constructors. AsUpdateReadChannelInbox returns copy with only UpdateReadChannelInbox constructors. AsUpdateReadChannelOutbox returns copy with only UpdateReadChannelOutbox constructors. AsUpdateReadHistoryInbox returns copy with only UpdateReadHistoryInbox constructors. AsUpdateReadHistoryOutbox returns copy with only UpdateReadHistoryOutbox constructors. AsUpdateReadMessagesContents returns copy with only UpdateReadMessagesContents constructors. AsUpdateReadStories returns copy with only UpdateReadStories constructors. AsUpdateSentStoryReaction returns copy with only UpdateSentStoryReaction constructors. AsUpdateServiceNotification returns copy with only UpdateServiceNotification constructors. AsUpdateStickerSets returns copy with only UpdateStickerSets constructors. AsUpdateStickerSetsOrder returns copy with only UpdateStickerSetsOrder constructors. AsUpdateStoriesStealthMode returns copy with only UpdateStoriesStealthMode constructors. AsUpdateStory returns copy with only UpdateStory constructors. AsUpdateStoryID returns copy with only UpdateStoryID constructors. AsUpdateTheme returns copy with only UpdateTheme constructors. AsUpdateTranscribedAudio returns copy with only UpdateTranscribedAudio constructors. AsUpdateUser returns copy with only UpdateUser constructors. AsUpdateUserEmojiStatus returns copy with only UpdateUserEmojiStatus constructors. AsUpdateUserName returns copy with only UpdateUserName constructors. AsUpdateUserPhone returns copy with only UpdateUserPhone constructors. AsUpdateUserStatus returns copy with only UpdateUserStatus constructors. AsUpdateUserTyping returns copy with only UpdateUserTyping constructors. AsUpdateWebPage returns copy with only UpdateWebPage constructors. AsUpdateWebViewResultSent returns copy with only UpdateWebViewResultSent 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 UpdateClass. Sort sorts slice of UpdateClass. SortStable sorts slice of UpdateClass. func UpdateClassArray.Retain(keep func(x UpdateClass) bool) UpdateClassArray func UpdateClassArray.Sort(less func(a, b UpdateClass) bool) UpdateClassArray func UpdateClassArray.SortStable(less func(a, b UpdateClass) bool) UpdateClassArray func (*Updates).MapUpdates() (value UpdateClassArray) func (*UpdatesChannelDifference).MapOtherUpdates() (value UpdateClassArray) func (*UpdatesCombined).MapUpdates() (value UpdateClassArray) func (*UpdatesDifference).MapOtherUpdates() (value UpdateClassArray) func (*UpdatesDifferenceSlice).MapOtherUpdates() (value UpdateClassArray)
UpdateConfig represents TL type `updateConfig#a229dd06`. The server-side configuration has changed; the client should re-fetch the config using help.getConfig¹ Links: 1. https://core.telegram.org/method/help.getConfig See https://core.telegram.org/constructor/updateConfig 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. (*UpdateConfig) Zero() bool *UpdateConfig : UpdateClass *UpdateConfig : github.com/gotd/td/bin.BareDecoder *UpdateConfig : github.com/gotd/td/bin.BareEncoder *UpdateConfig : github.com/gotd/td/bin.Decoder *UpdateConfig : github.com/gotd/td/bin.Encoder *UpdateConfig : github.com/gotd/td/bin.Object *UpdateConfig : github.com/gotd/td/tdp.Object *UpdateConfig : fmt.Stringer
UpdateContactsReset represents TL type `updateContactsReset#7084a7be`. All contacts were deleted See https://core.telegram.org/constructor/updateContactsReset 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. (*UpdateContactsReset) Zero() bool *UpdateContactsReset : UpdateClass *UpdateContactsReset : github.com/gotd/td/bin.BareDecoder *UpdateContactsReset : github.com/gotd/td/bin.BareEncoder *UpdateContactsReset : github.com/gotd/td/bin.Decoder *UpdateContactsReset : github.com/gotd/td/bin.Encoder *UpdateContactsReset : github.com/gotd/td/bin.Object *UpdateContactsReset : github.com/gotd/td/tdp.Object *UpdateContactsReset : fmt.Stringer
UpdateDCOptions represents TL type `updateDcOptions#8e5e9873`. Changes in the data center configuration options. See https://core.telegram.org/constructor/updateDcOptions for reference. New connection options Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateDCOptions from given interface. GetDCOptions returns value of DCOptions 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. (*UpdateDCOptions) Zero() bool *UpdateDCOptions : UpdateClass *UpdateDCOptions : github.com/gotd/td/bin.BareDecoder *UpdateDCOptions : github.com/gotd/td/bin.BareEncoder *UpdateDCOptions : github.com/gotd/td/bin.Decoder *UpdateDCOptions : github.com/gotd/td/bin.Encoder *UpdateDCOptions : github.com/gotd/td/bin.Object *UpdateDCOptions : github.com/gotd/td/tdp.Object *UpdateDCOptions : fmt.Stringer func UpdateDCOptionsArray.First() (v UpdateDCOptions, ok bool) func UpdateDCOptionsArray.Last() (v UpdateDCOptions, ok bool) func (*UpdateDCOptionsArray).Pop() (v UpdateDCOptions, ok bool) func (*UpdateDCOptionsArray).PopFirst() (v UpdateDCOptions, ok bool)
UpdateDCOptionsArray is adapter for slice of UpdateDCOptions. 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 UpdateDCOptions. Sort sorts slice of UpdateDCOptions. SortStable sorts slice of UpdateDCOptions. func UpdateClassArray.AsUpdateDCOptions() (to UpdateDCOptionsArray) func UpdateDCOptionsArray.Retain(keep func(x UpdateDCOptions) bool) UpdateDCOptionsArray func UpdateDCOptionsArray.Sort(less func(a, b UpdateDCOptions) bool) UpdateDCOptionsArray func UpdateDCOptionsArray.SortStable(less func(a, b UpdateDCOptions) bool) UpdateDCOptionsArray
UpdateDeleteChannelMessages represents TL type `updateDeleteChannelMessages#c32d5b12`. Some messages in a supergroup/channel¹ were deleted Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateDeleteChannelMessages for reference. Channel ID IDs of messages that were deleted Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateDeleteChannelMessages from given interface. GetChannelID returns value of ChannelID field. GetMessages returns value of Messages field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*UpdateDeleteChannelMessages) Zero() bool *UpdateDeleteChannelMessages : UpdateClass *UpdateDeleteChannelMessages : github.com/gotd/td/bin.BareDecoder *UpdateDeleteChannelMessages : github.com/gotd/td/bin.BareEncoder *UpdateDeleteChannelMessages : github.com/gotd/td/bin.Decoder *UpdateDeleteChannelMessages : github.com/gotd/td/bin.Encoder *UpdateDeleteChannelMessages : github.com/gotd/td/bin.Object *UpdateDeleteChannelMessages : github.com/gotd/td/tdp.Object *UpdateDeleteChannelMessages : fmt.Stringer func UpdateDeleteChannelMessagesArray.First() (v UpdateDeleteChannelMessages, ok bool) func UpdateDeleteChannelMessagesArray.Last() (v UpdateDeleteChannelMessages, ok bool) func (*UpdateDeleteChannelMessagesArray).Pop() (v UpdateDeleteChannelMessages, ok bool) func (*UpdateDeleteChannelMessagesArray).PopFirst() (v UpdateDeleteChannelMessages, ok bool)
UpdateDeleteChannelMessagesArray is adapter for slice of UpdateDeleteChannelMessages. 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 UpdateDeleteChannelMessages. Sort sorts slice of UpdateDeleteChannelMessages. SortStable sorts slice of UpdateDeleteChannelMessages. func UpdateClassArray.AsUpdateDeleteChannelMessages() (to UpdateDeleteChannelMessagesArray) func UpdateDeleteChannelMessagesArray.Retain(keep func(x UpdateDeleteChannelMessages) bool) UpdateDeleteChannelMessagesArray func UpdateDeleteChannelMessagesArray.Sort(less func(a, b UpdateDeleteChannelMessages) bool) UpdateDeleteChannelMessagesArray func UpdateDeleteChannelMessagesArray.SortStable(less func(a, b UpdateDeleteChannelMessages) bool) UpdateDeleteChannelMessagesArray
UpdateDeleteMessages represents TL type `updateDeleteMessages#a20db0e5`. Messages were deleted. See https://core.telegram.org/constructor/updateDeleteMessages for reference. List of identifiers of deleted messages New quality of actions in a message box Number of generated events¹ Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateDeleteMessages from given interface. GetMessages returns value of Messages field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*UpdateDeleteMessages) Zero() bool *UpdateDeleteMessages : UpdateClass *UpdateDeleteMessages : github.com/gotd/td/bin.BareDecoder *UpdateDeleteMessages : github.com/gotd/td/bin.BareEncoder *UpdateDeleteMessages : github.com/gotd/td/bin.Decoder *UpdateDeleteMessages : github.com/gotd/td/bin.Encoder *UpdateDeleteMessages : github.com/gotd/td/bin.Object *UpdateDeleteMessages : github.com/gotd/td/tdp.Object *UpdateDeleteMessages : fmt.Stringer func UpdateDeleteMessagesArray.First() (v UpdateDeleteMessages, ok bool) func UpdateDeleteMessagesArray.Last() (v UpdateDeleteMessages, ok bool) func (*UpdateDeleteMessagesArray).Pop() (v UpdateDeleteMessages, ok bool) func (*UpdateDeleteMessagesArray).PopFirst() (v UpdateDeleteMessages, ok bool)
UpdateDeleteMessagesArray is adapter for slice of UpdateDeleteMessages. 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 UpdateDeleteMessages. Sort sorts slice of UpdateDeleteMessages. SortStable sorts slice of UpdateDeleteMessages. func UpdateClassArray.AsUpdateDeleteMessages() (to UpdateDeleteMessagesArray) func UpdateDeleteMessagesArray.Retain(keep func(x UpdateDeleteMessages) bool) UpdateDeleteMessagesArray func UpdateDeleteMessagesArray.Sort(less func(a, b UpdateDeleteMessages) bool) UpdateDeleteMessagesArray func UpdateDeleteMessagesArray.SortStable(less func(a, b UpdateDeleteMessages) bool) UpdateDeleteMessagesArray
UpdateDeleteScheduledMessages represents TL type `updateDeleteScheduledMessages#90866cee`. Some scheduled messages¹ were deleted from the schedule queue of a chat Links: 1. https://core.telegram.org/api/scheduled-messages See https://core.telegram.org/constructor/updateDeleteScheduledMessages for reference. Deleted scheduled messages Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateDeleteScheduledMessages from given interface. GetMessages returns value of Messages 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. (*UpdateDeleteScheduledMessages) Zero() bool *UpdateDeleteScheduledMessages : UpdateClass *UpdateDeleteScheduledMessages : github.com/gotd/td/bin.BareDecoder *UpdateDeleteScheduledMessages : github.com/gotd/td/bin.BareEncoder *UpdateDeleteScheduledMessages : github.com/gotd/td/bin.Decoder *UpdateDeleteScheduledMessages : github.com/gotd/td/bin.Encoder *UpdateDeleteScheduledMessages : github.com/gotd/td/bin.Object *UpdateDeleteScheduledMessages : github.com/gotd/td/tdp.Object *UpdateDeleteScheduledMessages : fmt.Stringer func UpdateDeleteScheduledMessagesArray.First() (v UpdateDeleteScheduledMessages, ok bool) func UpdateDeleteScheduledMessagesArray.Last() (v UpdateDeleteScheduledMessages, ok bool) func (*UpdateDeleteScheduledMessagesArray).Pop() (v UpdateDeleteScheduledMessages, ok bool) func (*UpdateDeleteScheduledMessagesArray).PopFirst() (v UpdateDeleteScheduledMessages, ok bool)
UpdateDeleteScheduledMessagesArray is adapter for slice of UpdateDeleteScheduledMessages. 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 UpdateDeleteScheduledMessages. Sort sorts slice of UpdateDeleteScheduledMessages. SortStable sorts slice of UpdateDeleteScheduledMessages. func UpdateClassArray.AsUpdateDeleteScheduledMessages() (to UpdateDeleteScheduledMessagesArray) func UpdateDeleteScheduledMessagesArray.Retain(keep func(x UpdateDeleteScheduledMessages) bool) UpdateDeleteScheduledMessagesArray func UpdateDeleteScheduledMessagesArray.Sort(less func(a, b UpdateDeleteScheduledMessages) bool) UpdateDeleteScheduledMessagesArray func UpdateDeleteScheduledMessagesArray.SortStable(less func(a, b UpdateDeleteScheduledMessages) bool) UpdateDeleteScheduledMessagesArray
UpdateDialogFilter represents TL type `updateDialogFilter#26ffde7d`. A new folder¹ was added Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/constructor/updateDialogFilter for reference. Folder¹ info Links: 1) https://core.telegram.org/api/folders Use SetFilter and GetFilter helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Folder¹ ID Links: 1) https://core.telegram.org/api/folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateDialogFilter from given interface. GetFilter returns value of Filter conditional field and boolean which is true if field was set. GetID returns value of ID field. SetFilter sets value of Filter 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. (*UpdateDialogFilter) Zero() bool *UpdateDialogFilter : UpdateClass *UpdateDialogFilter : github.com/gotd/td/bin.BareDecoder *UpdateDialogFilter : github.com/gotd/td/bin.BareEncoder *UpdateDialogFilter : github.com/gotd/td/bin.Decoder *UpdateDialogFilter : github.com/gotd/td/bin.Encoder *UpdateDialogFilter : github.com/gotd/td/bin.Object *UpdateDialogFilter : github.com/gotd/td/tdp.Object *UpdateDialogFilter : fmt.Stringer func UpdateDialogFilterArray.First() (v UpdateDialogFilter, ok bool) func UpdateDialogFilterArray.Last() (v UpdateDialogFilter, ok bool) func (*UpdateDialogFilterArray).Pop() (v UpdateDialogFilter, ok bool) func (*UpdateDialogFilterArray).PopFirst() (v UpdateDialogFilter, ok bool) func UpdateDialogFilterArray.ToMap() map[int]UpdateDialogFilter func UpdateDialogFilterArray.FillMap(to map[int]UpdateDialogFilter)
UpdateDialogFilterArray is adapter for slice of UpdateDialogFilter. 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 UpdateDialogFilter. Sort sorts slice of UpdateDialogFilter. SortByID sorts slice of UpdateDialogFilter by ID. SortStable sorts slice of UpdateDialogFilter. SortStableByID sorts slice of UpdateDialogFilter by ID. ToMap collects constructors to map. func UpdateClassArray.AsUpdateDialogFilter() (to UpdateDialogFilterArray) func UpdateDialogFilterArray.Retain(keep func(x UpdateDialogFilter) bool) UpdateDialogFilterArray func UpdateDialogFilterArray.Sort(less func(a, b UpdateDialogFilter) bool) UpdateDialogFilterArray func UpdateDialogFilterArray.SortByID() UpdateDialogFilterArray func UpdateDialogFilterArray.SortStable(less func(a, b UpdateDialogFilter) bool) UpdateDialogFilterArray func UpdateDialogFilterArray.SortStableByID() UpdateDialogFilterArray
UpdateDialogFilterOrder represents TL type `updateDialogFilterOrder#a5d72105`. New folder¹ order Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/constructor/updateDialogFilterOrder for reference. New folder¹ order Links: 1) https://core.telegram.org/api/folders Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateDialogFilterOrder 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. (*UpdateDialogFilterOrder) Zero() bool *UpdateDialogFilterOrder : UpdateClass *UpdateDialogFilterOrder : github.com/gotd/td/bin.BareDecoder *UpdateDialogFilterOrder : github.com/gotd/td/bin.BareEncoder *UpdateDialogFilterOrder : github.com/gotd/td/bin.Decoder *UpdateDialogFilterOrder : github.com/gotd/td/bin.Encoder *UpdateDialogFilterOrder : github.com/gotd/td/bin.Object *UpdateDialogFilterOrder : github.com/gotd/td/tdp.Object *UpdateDialogFilterOrder : fmt.Stringer func UpdateDialogFilterOrderArray.First() (v UpdateDialogFilterOrder, ok bool) func UpdateDialogFilterOrderArray.Last() (v UpdateDialogFilterOrder, ok bool) func (*UpdateDialogFilterOrderArray).Pop() (v UpdateDialogFilterOrder, ok bool) func (*UpdateDialogFilterOrderArray).PopFirst() (v UpdateDialogFilterOrder, ok bool)
UpdateDialogFilterOrderArray is adapter for slice of UpdateDialogFilterOrder. 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 UpdateDialogFilterOrder. Sort sorts slice of UpdateDialogFilterOrder. SortStable sorts slice of UpdateDialogFilterOrder. func UpdateClassArray.AsUpdateDialogFilterOrder() (to UpdateDialogFilterOrderArray) func UpdateDialogFilterOrderArray.Retain(keep func(x UpdateDialogFilterOrder) bool) UpdateDialogFilterOrderArray func UpdateDialogFilterOrderArray.Sort(less func(a, b UpdateDialogFilterOrder) bool) UpdateDialogFilterOrderArray func UpdateDialogFilterOrderArray.SortStable(less func(a, b UpdateDialogFilterOrder) bool) UpdateDialogFilterOrderArray
UpdateDialogFilters represents TL type `updateDialogFilters#3504914f`. Clients should update folder¹ info Links: 1. https://core.telegram.org/api/folders See https://core.telegram.org/constructor/updateDialogFilters 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. (*UpdateDialogFilters) Zero() bool *UpdateDialogFilters : UpdateClass *UpdateDialogFilters : github.com/gotd/td/bin.BareDecoder *UpdateDialogFilters : github.com/gotd/td/bin.BareEncoder *UpdateDialogFilters : github.com/gotd/td/bin.Decoder *UpdateDialogFilters : github.com/gotd/td/bin.Encoder *UpdateDialogFilters : github.com/gotd/td/bin.Object *UpdateDialogFilters : github.com/gotd/td/tdp.Object *UpdateDialogFilters : fmt.Stringer
UpdateDialogPinned represents TL type `updateDialogPinned#6e6fe51c`. A dialog was pinned/unpinned See https://core.telegram.org/constructor/updateDialogPinned for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. The dialog Whether the dialog was pinned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateDialogPinned from given interface. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetPeer returns value of Peer field. GetPinned returns value of Pinned conditional field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID conditional field. SetPinned sets value of Pinned 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. (*UpdateDialogPinned) Zero() bool *UpdateDialogPinned : UpdateClass *UpdateDialogPinned : github.com/gotd/td/bin.BareDecoder *UpdateDialogPinned : github.com/gotd/td/bin.BareEncoder *UpdateDialogPinned : github.com/gotd/td/bin.Decoder *UpdateDialogPinned : github.com/gotd/td/bin.Encoder *UpdateDialogPinned : github.com/gotd/td/bin.Object *UpdateDialogPinned : github.com/gotd/td/tdp.Object *UpdateDialogPinned : fmt.Stringer func UpdateDialogPinnedArray.First() (v UpdateDialogPinned, ok bool) func UpdateDialogPinnedArray.Last() (v UpdateDialogPinned, ok bool) func (*UpdateDialogPinnedArray).Pop() (v UpdateDialogPinned, ok bool) func (*UpdateDialogPinnedArray).PopFirst() (v UpdateDialogPinned, ok bool)
UpdateDialogPinnedArray is adapter for slice of UpdateDialogPinned. 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 UpdateDialogPinned. Sort sorts slice of UpdateDialogPinned. SortStable sorts slice of UpdateDialogPinned. func UpdateClassArray.AsUpdateDialogPinned() (to UpdateDialogPinnedArray) func UpdateDialogPinnedArray.Retain(keep func(x UpdateDialogPinned) bool) UpdateDialogPinnedArray func UpdateDialogPinnedArray.Sort(less func(a, b UpdateDialogPinned) bool) UpdateDialogPinnedArray func UpdateDialogPinnedArray.SortStable(less func(a, b UpdateDialogPinned) bool) UpdateDialogPinnedArray
UpdateDialogUnreadMark represents TL type `updateDialogUnreadMark#e16459c3`. The manual unread mark of a chat was changed See https://core.telegram.org/constructor/updateDialogUnreadMark for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The dialog Was the chat marked or unmarked as read Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateDialogUnreadMark from given interface. GetPeer returns value of Peer field. GetUnread returns value of Unread conditional field. SetFlags sets flags for non-zero fields. SetUnread sets value of Unread 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. (*UpdateDialogUnreadMark) Zero() bool *UpdateDialogUnreadMark : UpdateClass *UpdateDialogUnreadMark : github.com/gotd/td/bin.BareDecoder *UpdateDialogUnreadMark : github.com/gotd/td/bin.BareEncoder *UpdateDialogUnreadMark : github.com/gotd/td/bin.Decoder *UpdateDialogUnreadMark : github.com/gotd/td/bin.Encoder *UpdateDialogUnreadMark : github.com/gotd/td/bin.Object *UpdateDialogUnreadMark : github.com/gotd/td/tdp.Object *UpdateDialogUnreadMark : fmt.Stringer func UpdateDialogUnreadMarkArray.First() (v UpdateDialogUnreadMark, ok bool) func UpdateDialogUnreadMarkArray.Last() (v UpdateDialogUnreadMark, ok bool) func (*UpdateDialogUnreadMarkArray).Pop() (v UpdateDialogUnreadMark, ok bool) func (*UpdateDialogUnreadMarkArray).PopFirst() (v UpdateDialogUnreadMark, ok bool)
UpdateDialogUnreadMarkArray is adapter for slice of UpdateDialogUnreadMark. 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 UpdateDialogUnreadMark. Sort sorts slice of UpdateDialogUnreadMark. SortStable sorts slice of UpdateDialogUnreadMark. func UpdateClassArray.AsUpdateDialogUnreadMark() (to UpdateDialogUnreadMarkArray) func UpdateDialogUnreadMarkArray.Retain(keep func(x UpdateDialogUnreadMark) bool) UpdateDialogUnreadMarkArray func UpdateDialogUnreadMarkArray.Sort(less func(a, b UpdateDialogUnreadMark) bool) UpdateDialogUnreadMarkArray func UpdateDialogUnreadMarkArray.SortStable(less func(a, b UpdateDialogUnreadMark) bool) UpdateDialogUnreadMarkArray
Handle implements UpdateDispatcher. OnAttachMenuBots sets AttachMenuBots handler. OnAutoSaveSettings sets AutoSaveSettings handler. OnBotCallbackQuery sets BotCallbackQuery handler. OnBotChatBoost sets BotChatBoost handler. OnBotChatInviteRequester sets BotChatInviteRequester handler. OnBotCommands sets BotCommands handler. OnBotInlineQuery sets BotInlineQuery handler. OnBotInlineSend sets BotInlineSend handler. OnBotMenuButton sets BotMenuButton handler. OnBotMessageReaction sets BotMessageReaction handler. OnBotMessageReactions sets BotMessageReactions handler. OnBotPrecheckoutQuery sets BotPrecheckoutQuery handler. OnBotShippingQuery sets BotShippingQuery handler. OnBotStopped sets BotStopped handler. OnBotWebhookJSON sets BotWebhookJSON handler. OnBotWebhookJSONQuery sets BotWebhookJSONQuery handler. OnChannel sets Channel handler. OnChannelAvailableMessages sets ChannelAvailableMessages handler. OnChannelMessageForwards sets ChannelMessageForwards handler. OnChannelMessageViews sets ChannelMessageViews handler. OnChannelParticipant sets ChannelParticipant handler. OnChannelPinnedTopic sets ChannelPinnedTopic handler. OnChannelPinnedTopics sets ChannelPinnedTopics handler. OnChannelReadMessagesContents sets ChannelReadMessagesContents handler. OnChannelTooLong sets ChannelTooLong handler. OnChannelUserTyping sets ChannelUserTyping handler. OnChannelViewForumAsMessages sets ChannelViewForumAsMessages handler. OnChannelWebPage sets ChannelWebPage handler. OnChat sets Chat handler. OnChatDefaultBannedRights sets ChatDefaultBannedRights handler. OnChatParticipant sets ChatParticipant handler. OnChatParticipantAdd sets ChatParticipantAdd handler. OnChatParticipantAdmin sets ChatParticipantAdmin handler. OnChatParticipantDelete sets ChatParticipantDelete handler. OnChatParticipants sets ChatParticipants handler. OnChatUserTyping sets ChatUserTyping handler. OnConfig sets Config handler. OnContactsReset sets ContactsReset handler. OnDCOptions sets DCOptions handler. OnDeleteChannelMessages sets DeleteChannelMessages handler. OnDeleteMessages sets DeleteMessages handler. OnDeleteScheduledMessages sets DeleteScheduledMessages handler. OnDialogFilter sets DialogFilter handler. OnDialogFilterOrder sets DialogFilterOrder handler. OnDialogFilters sets DialogFilters handler. OnDialogPinned sets DialogPinned handler. OnDialogUnreadMark sets DialogUnreadMark handler. OnDraftMessage sets DraftMessage handler. OnEditChannelMessage sets EditChannelMessage handler. OnEditMessage sets EditMessage handler. OnEncryptedChatTyping sets EncryptedChatTyping handler. OnEncryptedMessagesRead sets EncryptedMessagesRead handler. OnEncryption sets Encryption handler. OnFavedStickers sets FavedStickers handler. OnFolderPeers sets FolderPeers handler. OnGeoLiveViewed sets GeoLiveViewed handler. OnGroupCall sets GroupCall handler. OnGroupCallConnection sets GroupCallConnection handler. OnGroupCallParticipants sets GroupCallParticipants handler. OnGroupInvitePrivacyForbidden sets GroupInvitePrivacyForbidden handler. OnInlineBotCallbackQuery sets InlineBotCallbackQuery handler. OnLangPack sets LangPack handler. OnLangPackTooLong sets LangPackTooLong handler. OnLoginToken sets LoginToken handler. OnMessageExtendedMedia sets MessageExtendedMedia handler. OnMessageID sets MessageID handler. OnMessagePoll sets MessagePoll handler. OnMessagePollVote sets MessagePollVote handler. OnMessageReactions sets MessageReactions handler. OnMoveStickerSetToTop sets MoveStickerSetToTop handler. OnNewAuthorization sets NewAuthorization handler. OnNewChannelMessage sets NewChannelMessage handler. OnNewEncryptedMessage sets NewEncryptedMessage handler. OnNewMessage sets NewMessage handler. OnNewScheduledMessage sets NewScheduledMessage handler. OnNewStickerSet sets NewStickerSet handler. OnNotifySettings sets NotifySettings handler. OnPeerBlocked sets PeerBlocked handler. OnPeerHistoryTTL sets PeerHistoryTTL handler. OnPeerLocated sets PeerLocated handler. OnPeerSettings sets PeerSettings handler. OnPeerWallpaper sets PeerWallpaper handler. OnPendingJoinRequests sets PendingJoinRequests handler. OnPhoneCall sets PhoneCall handler. OnPhoneCallSignalingData sets PhoneCallSignalingData handler. OnPinnedChannelMessages sets PinnedChannelMessages handler. OnPinnedDialogs sets PinnedDialogs handler. OnPinnedMessages sets PinnedMessages handler. OnPrivacy sets Privacy handler. OnPtsChanged sets PtsChanged handler. OnReadChannelDiscussionInbox sets ReadChannelDiscussionInbox handler. OnReadChannelDiscussionOutbox sets ReadChannelDiscussionOutbox handler. OnReadChannelInbox sets ReadChannelInbox handler. OnReadChannelOutbox sets ReadChannelOutbox handler. OnReadFeaturedEmojiStickers sets ReadFeaturedEmojiStickers handler. OnReadFeaturedStickers sets ReadFeaturedStickers handler. OnReadHistoryInbox sets ReadHistoryInbox handler. OnReadHistoryOutbox sets ReadHistoryOutbox handler. OnReadMessagesContents sets ReadMessagesContents handler. OnReadStories sets ReadStories handler. OnRecentEmojiStatuses sets RecentEmojiStatuses handler. OnRecentReactions sets RecentReactions handler. OnRecentStickers sets RecentStickers handler. OnSavedGifs sets SavedGifs handler. OnSavedRingtones sets SavedRingtones handler. OnSentStoryReaction sets SentStoryReaction handler. OnServiceNotification sets ServiceNotification handler. OnStickerSets sets StickerSets handler. OnStickerSetsOrder sets StickerSetsOrder handler. OnStoriesStealthMode sets StoriesStealthMode handler. OnStory sets Story handler. OnStoryID sets StoryID handler. OnTheme sets Theme handler. OnTranscribedAudio sets TranscribedAudio handler. OnUser sets User handler. OnUserEmojiStatus sets UserEmojiStatus handler. OnUserName sets UserName handler. OnUserPhone sets UserPhone handler. OnUserStatus sets UserStatus handler. OnUserTyping sets UserTyping handler. OnWebPage sets WebPage handler. OnWebViewResultSent sets WebViewResultSent handler. UpdateDispatcher : github.com/gotd/td/telegram.UpdateHandler func NewUpdateDispatcher() UpdateDispatcher
UpdateDraftMessage represents TL type `updateDraftMessage#1b49ec6d`. Notifies a change of a message draft¹. Links: 1. https://core.telegram.org/api/drafts See https://core.telegram.org/constructor/updateDraftMessage for reference. The draft Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The peer to which the draft is associated ID of the forum topic¹ to which the draft is associated Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateDraftMessage from given interface. GetDraft returns value of Draft field. GetPeer returns value of Peer field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*UpdateDraftMessage) Zero() bool *UpdateDraftMessage : UpdateClass *UpdateDraftMessage : github.com/gotd/td/bin.BareDecoder *UpdateDraftMessage : github.com/gotd/td/bin.BareEncoder *UpdateDraftMessage : github.com/gotd/td/bin.Decoder *UpdateDraftMessage : github.com/gotd/td/bin.Encoder *UpdateDraftMessage : github.com/gotd/td/bin.Object *UpdateDraftMessage : github.com/gotd/td/tdp.Object *UpdateDraftMessage : fmt.Stringer func UpdateDraftMessageArray.First() (v UpdateDraftMessage, ok bool) func UpdateDraftMessageArray.Last() (v UpdateDraftMessage, ok bool) func (*UpdateDraftMessageArray).Pop() (v UpdateDraftMessage, ok bool) func (*UpdateDraftMessageArray).PopFirst() (v UpdateDraftMessage, ok bool)
UpdateDraftMessageArray is adapter for slice of UpdateDraftMessage. 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 UpdateDraftMessage. Sort sorts slice of UpdateDraftMessage. SortStable sorts slice of UpdateDraftMessage. func UpdateClassArray.AsUpdateDraftMessage() (to UpdateDraftMessageArray) func UpdateDraftMessageArray.Retain(keep func(x UpdateDraftMessage) bool) UpdateDraftMessageArray func UpdateDraftMessageArray.Sort(less func(a, b UpdateDraftMessage) bool) UpdateDraftMessageArray func UpdateDraftMessageArray.SortStable(less func(a, b UpdateDraftMessage) bool) UpdateDraftMessageArray
UpdateEditChannelMessage represents TL type `updateEditChannelMessage#1b3f4df7`. A message was edited in a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateEditChannelMessage for reference. Message New quantity of actions in a message box Number of generated events Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateEditChannelMessage from given interface. GetMessage returns value of Message field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*UpdateEditChannelMessage) Zero() bool *UpdateEditChannelMessage : UpdateClass *UpdateEditChannelMessage : github.com/gotd/td/bin.BareDecoder *UpdateEditChannelMessage : github.com/gotd/td/bin.BareEncoder *UpdateEditChannelMessage : github.com/gotd/td/bin.Decoder *UpdateEditChannelMessage : github.com/gotd/td/bin.Encoder *UpdateEditChannelMessage : github.com/gotd/td/bin.Object *UpdateEditChannelMessage : github.com/gotd/td/tdp.Object *UpdateEditChannelMessage : fmt.Stringer func UpdateEditChannelMessageArray.First() (v UpdateEditChannelMessage, ok bool) func UpdateEditChannelMessageArray.Last() (v UpdateEditChannelMessage, ok bool) func (*UpdateEditChannelMessageArray).Pop() (v UpdateEditChannelMessage, ok bool) func (*UpdateEditChannelMessageArray).PopFirst() (v UpdateEditChannelMessage, ok bool)
UpdateEditChannelMessageArray is adapter for slice of UpdateEditChannelMessage. 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 UpdateEditChannelMessage. Sort sorts slice of UpdateEditChannelMessage. SortStable sorts slice of UpdateEditChannelMessage. func UpdateClassArray.AsUpdateEditChannelMessage() (to UpdateEditChannelMessageArray) func UpdateEditChannelMessageArray.Retain(keep func(x UpdateEditChannelMessage) bool) UpdateEditChannelMessageArray func UpdateEditChannelMessageArray.Sort(less func(a, b UpdateEditChannelMessage) bool) UpdateEditChannelMessageArray func UpdateEditChannelMessageArray.SortStable(less func(a, b UpdateEditChannelMessage) bool) UpdateEditChannelMessageArray
UpdateEditMessage represents TL type `updateEditMessage#e40370a3`. A message was edited See https://core.telegram.org/constructor/updateEditMessage for reference. Message New quantity of actions in a message box Number of generated events Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateEditMessage from given interface. GetMessage returns value of Message field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*UpdateEditMessage) Zero() bool *UpdateEditMessage : UpdateClass *UpdateEditMessage : github.com/gotd/td/bin.BareDecoder *UpdateEditMessage : github.com/gotd/td/bin.BareEncoder *UpdateEditMessage : github.com/gotd/td/bin.Decoder *UpdateEditMessage : github.com/gotd/td/bin.Encoder *UpdateEditMessage : github.com/gotd/td/bin.Object *UpdateEditMessage : github.com/gotd/td/tdp.Object *UpdateEditMessage : fmt.Stringer func UpdateEditMessageArray.First() (v UpdateEditMessage, ok bool) func UpdateEditMessageArray.Last() (v UpdateEditMessage, ok bool) func (*UpdateEditMessageArray).Pop() (v UpdateEditMessage, ok bool) func (*UpdateEditMessageArray).PopFirst() (v UpdateEditMessage, ok bool)
UpdateEditMessageArray is adapter for slice of UpdateEditMessage. 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 UpdateEditMessage. Sort sorts slice of UpdateEditMessage. SortStable sorts slice of UpdateEditMessage. func UpdateClassArray.AsUpdateEditMessage() (to UpdateEditMessageArray) func UpdateEditMessageArray.Retain(keep func(x UpdateEditMessage) bool) UpdateEditMessageArray func UpdateEditMessageArray.Sort(less func(a, b UpdateEditMessage) bool) UpdateEditMessageArray func UpdateEditMessageArray.SortStable(less func(a, b UpdateEditMessage) bool) UpdateEditMessageArray
UpdateEncryptedChatTyping represents TL type `updateEncryptedChatTyping#1710f156`. Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing. See https://core.telegram.org/constructor/updateEncryptedChatTyping for reference. Chat ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateEncryptedChatTyping from given interface. GetChatID returns value of ChatID 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. (*UpdateEncryptedChatTyping) Zero() bool *UpdateEncryptedChatTyping : UpdateClass *UpdateEncryptedChatTyping : github.com/gotd/td/bin.BareDecoder *UpdateEncryptedChatTyping : github.com/gotd/td/bin.BareEncoder *UpdateEncryptedChatTyping : github.com/gotd/td/bin.Decoder *UpdateEncryptedChatTyping : github.com/gotd/td/bin.Encoder *UpdateEncryptedChatTyping : github.com/gotd/td/bin.Object *UpdateEncryptedChatTyping : github.com/gotd/td/tdp.Object *UpdateEncryptedChatTyping : fmt.Stringer func UpdateEncryptedChatTypingArray.First() (v UpdateEncryptedChatTyping, ok bool) func UpdateEncryptedChatTypingArray.Last() (v UpdateEncryptedChatTyping, ok bool) func (*UpdateEncryptedChatTypingArray).Pop() (v UpdateEncryptedChatTyping, ok bool) func (*UpdateEncryptedChatTypingArray).PopFirst() (v UpdateEncryptedChatTyping, ok bool)
UpdateEncryptedChatTypingArray is adapter for slice of UpdateEncryptedChatTyping. 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 UpdateEncryptedChatTyping. Sort sorts slice of UpdateEncryptedChatTyping. SortStable sorts slice of UpdateEncryptedChatTyping. func UpdateClassArray.AsUpdateEncryptedChatTyping() (to UpdateEncryptedChatTypingArray) func UpdateEncryptedChatTypingArray.Retain(keep func(x UpdateEncryptedChatTyping) bool) UpdateEncryptedChatTypingArray func UpdateEncryptedChatTypingArray.Sort(less func(a, b UpdateEncryptedChatTyping) bool) UpdateEncryptedChatTypingArray func UpdateEncryptedChatTypingArray.SortStable(less func(a, b UpdateEncryptedChatTyping) bool) UpdateEncryptedChatTypingArray
UpdateEncryptedMessagesRead represents TL type `updateEncryptedMessagesRead#38fe25b7`. Communication history in an encrypted chat was marked as read. See https://core.telegram.org/constructor/updateEncryptedMessagesRead for reference. Chat ID Time when messages were read Maximum value of data for read messages Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateEncryptedMessagesRead from given interface. GetChatID returns value of ChatID field. GetDate returns value of Date field. GetMaxDate returns value of MaxDate 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. (*UpdateEncryptedMessagesRead) Zero() bool *UpdateEncryptedMessagesRead : UpdateClass *UpdateEncryptedMessagesRead : github.com/gotd/td/bin.BareDecoder *UpdateEncryptedMessagesRead : github.com/gotd/td/bin.BareEncoder *UpdateEncryptedMessagesRead : github.com/gotd/td/bin.Decoder *UpdateEncryptedMessagesRead : github.com/gotd/td/bin.Encoder *UpdateEncryptedMessagesRead : github.com/gotd/td/bin.Object *UpdateEncryptedMessagesRead : github.com/gotd/td/tdp.Object *UpdateEncryptedMessagesRead : fmt.Stringer func UpdateEncryptedMessagesReadArray.First() (v UpdateEncryptedMessagesRead, ok bool) func UpdateEncryptedMessagesReadArray.Last() (v UpdateEncryptedMessagesRead, ok bool) func (*UpdateEncryptedMessagesReadArray).Pop() (v UpdateEncryptedMessagesRead, ok bool) func (*UpdateEncryptedMessagesReadArray).PopFirst() (v UpdateEncryptedMessagesRead, ok bool)
UpdateEncryptedMessagesReadArray is adapter for slice of UpdateEncryptedMessagesRead. 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 UpdateEncryptedMessagesRead. Sort sorts slice of UpdateEncryptedMessagesRead. SortByDate sorts slice of UpdateEncryptedMessagesRead by Date. SortStable sorts slice of UpdateEncryptedMessagesRead. SortStableByDate sorts slice of UpdateEncryptedMessagesRead by Date. func UpdateClassArray.AsUpdateEncryptedMessagesRead() (to UpdateEncryptedMessagesReadArray) func UpdateEncryptedMessagesReadArray.Retain(keep func(x UpdateEncryptedMessagesRead) bool) UpdateEncryptedMessagesReadArray func UpdateEncryptedMessagesReadArray.Sort(less func(a, b UpdateEncryptedMessagesRead) bool) UpdateEncryptedMessagesReadArray func UpdateEncryptedMessagesReadArray.SortByDate() UpdateEncryptedMessagesReadArray func UpdateEncryptedMessagesReadArray.SortStable(less func(a, b UpdateEncryptedMessagesRead) bool) UpdateEncryptedMessagesReadArray func UpdateEncryptedMessagesReadArray.SortStableByDate() UpdateEncryptedMessagesReadArray
UpdateEncryption represents TL type `updateEncryption#b4a2e88d`. Change of state in an encrypted chat. See https://core.telegram.org/constructor/updateEncryption for reference. Encrypted chat Date of change Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateEncryption from given interface. GetChat returns value of Chat field. GetDate returns value of Date 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. (*UpdateEncryption) Zero() bool *UpdateEncryption : UpdateClass *UpdateEncryption : github.com/gotd/td/bin.BareDecoder *UpdateEncryption : github.com/gotd/td/bin.BareEncoder *UpdateEncryption : github.com/gotd/td/bin.Decoder *UpdateEncryption : github.com/gotd/td/bin.Encoder *UpdateEncryption : github.com/gotd/td/bin.Object *UpdateEncryption : github.com/gotd/td/tdp.Object *UpdateEncryption : fmt.Stringer func UpdateEncryptionArray.First() (v UpdateEncryption, ok bool) func UpdateEncryptionArray.Last() (v UpdateEncryption, ok bool) func (*UpdateEncryptionArray).Pop() (v UpdateEncryption, ok bool) func (*UpdateEncryptionArray).PopFirst() (v UpdateEncryption, ok bool)
UpdateEncryptionArray is adapter for slice of UpdateEncryption. 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 UpdateEncryption. Sort sorts slice of UpdateEncryption. SortByDate sorts slice of UpdateEncryption by Date. SortStable sorts slice of UpdateEncryption. SortStableByDate sorts slice of UpdateEncryption by Date. func UpdateClassArray.AsUpdateEncryption() (to UpdateEncryptionArray) func UpdateEncryptionArray.Retain(keep func(x UpdateEncryption) bool) UpdateEncryptionArray func UpdateEncryptionArray.Sort(less func(a, b UpdateEncryption) bool) UpdateEncryptionArray func UpdateEncryptionArray.SortByDate() UpdateEncryptionArray func UpdateEncryptionArray.SortStable(less func(a, b UpdateEncryption) bool) UpdateEncryptionArray func UpdateEncryptionArray.SortStableByDate() UpdateEncryptionArray
UpdateFavedStickers represents TL type `updateFavedStickers#e511996d`. The list of favorited stickers was changed, the client should call messages getFavedStickers¹ to refetch the new list Links: 1. https://core.telegram.org/method/messages.getFavedStickers See https://core.telegram.org/constructor/updateFavedStickers 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. (*UpdateFavedStickers) Zero() bool *UpdateFavedStickers : UpdateClass *UpdateFavedStickers : github.com/gotd/td/bin.BareDecoder *UpdateFavedStickers : github.com/gotd/td/bin.BareEncoder *UpdateFavedStickers : github.com/gotd/td/bin.Decoder *UpdateFavedStickers : github.com/gotd/td/bin.Encoder *UpdateFavedStickers : github.com/gotd/td/bin.Object *UpdateFavedStickers : github.com/gotd/td/tdp.Object *UpdateFavedStickers : fmt.Stringer
UpdateFolderPeers represents TL type `updateFolderPeers#19360dc0`. The peer list of a peer folder¹ was updated Links: 1. https://core.telegram.org/api/folders#peer-folders See https://core.telegram.org/constructor/updateFolderPeers for reference. New peer list Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateFolderPeers from given interface. GetFolderPeers returns value of FolderPeers field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*UpdateFolderPeers) Zero() bool *UpdateFolderPeers : UpdateClass *UpdateFolderPeers : github.com/gotd/td/bin.BareDecoder *UpdateFolderPeers : github.com/gotd/td/bin.BareEncoder *UpdateFolderPeers : github.com/gotd/td/bin.Decoder *UpdateFolderPeers : github.com/gotd/td/bin.Encoder *UpdateFolderPeers : github.com/gotd/td/bin.Object *UpdateFolderPeers : github.com/gotd/td/tdp.Object *UpdateFolderPeers : fmt.Stringer func UpdateFolderPeersArray.First() (v UpdateFolderPeers, ok bool) func UpdateFolderPeersArray.Last() (v UpdateFolderPeers, ok bool) func (*UpdateFolderPeersArray).Pop() (v UpdateFolderPeers, ok bool) func (*UpdateFolderPeersArray).PopFirst() (v UpdateFolderPeers, ok bool)
UpdateFolderPeersArray is adapter for slice of UpdateFolderPeers. 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 UpdateFolderPeers. Sort sorts slice of UpdateFolderPeers. SortStable sorts slice of UpdateFolderPeers. func UpdateClassArray.AsUpdateFolderPeers() (to UpdateFolderPeersArray) func UpdateFolderPeersArray.Retain(keep func(x UpdateFolderPeers) bool) UpdateFolderPeersArray func UpdateFolderPeersArray.Sort(less func(a, b UpdateFolderPeers) bool) UpdateFolderPeersArray func UpdateFolderPeersArray.SortStable(less func(a, b UpdateFolderPeers) bool) UpdateFolderPeersArray
UpdateGeoLiveViewed represents TL type `updateGeoLiveViewed#871fb939`. Live geoposition message was viewed See https://core.telegram.org/constructor/updateGeoLiveViewed for reference. Message ID of geoposition message The user that viewed the live geoposition Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateGeoLiveViewed from given interface. GetMsgID returns value of MsgID 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. (*UpdateGeoLiveViewed) Zero() bool *UpdateGeoLiveViewed : UpdateClass *UpdateGeoLiveViewed : github.com/gotd/td/bin.BareDecoder *UpdateGeoLiveViewed : github.com/gotd/td/bin.BareEncoder *UpdateGeoLiveViewed : github.com/gotd/td/bin.Decoder *UpdateGeoLiveViewed : github.com/gotd/td/bin.Encoder *UpdateGeoLiveViewed : github.com/gotd/td/bin.Object *UpdateGeoLiveViewed : github.com/gotd/td/tdp.Object *UpdateGeoLiveViewed : fmt.Stringer func UpdateGeoLiveViewedArray.First() (v UpdateGeoLiveViewed, ok bool) func UpdateGeoLiveViewedArray.Last() (v UpdateGeoLiveViewed, ok bool) func (*UpdateGeoLiveViewedArray).Pop() (v UpdateGeoLiveViewed, ok bool) func (*UpdateGeoLiveViewedArray).PopFirst() (v UpdateGeoLiveViewed, ok bool)
UpdateGeoLiveViewedArray is adapter for slice of UpdateGeoLiveViewed. 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 UpdateGeoLiveViewed. Sort sorts slice of UpdateGeoLiveViewed. SortStable sorts slice of UpdateGeoLiveViewed. func UpdateClassArray.AsUpdateGeoLiveViewed() (to UpdateGeoLiveViewedArray) func UpdateGeoLiveViewedArray.Retain(keep func(x UpdateGeoLiveViewed) bool) UpdateGeoLiveViewedArray func UpdateGeoLiveViewedArray.Sort(less func(a, b UpdateGeoLiveViewed) bool) UpdateGeoLiveViewedArray func UpdateGeoLiveViewedArray.SortStable(less func(a, b UpdateGeoLiveViewed) bool) UpdateGeoLiveViewedArray
UpdateGroupCall represents TL type `updateGroupCall#14b24500`. A new groupcall was started See https://core.telegram.org/constructor/updateGroupCall for reference. Info about the group call or livestream The channel/supergroup¹ where this group call or livestream takes place Links: 1) https://core.telegram.org/api/channel Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateGroupCall from given interface. GetCall returns value of Call field. GetChatID returns value of ChatID 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. (*UpdateGroupCall) Zero() bool *UpdateGroupCall : UpdateClass *UpdateGroupCall : github.com/gotd/td/bin.BareDecoder *UpdateGroupCall : github.com/gotd/td/bin.BareEncoder *UpdateGroupCall : github.com/gotd/td/bin.Decoder *UpdateGroupCall : github.com/gotd/td/bin.Encoder *UpdateGroupCall : github.com/gotd/td/bin.Object *UpdateGroupCall : github.com/gotd/td/tdp.Object *UpdateGroupCall : fmt.Stringer func UpdateGroupCallArray.First() (v UpdateGroupCall, ok bool) func UpdateGroupCallArray.Last() (v UpdateGroupCall, ok bool) func (*UpdateGroupCallArray).Pop() (v UpdateGroupCall, ok bool) func (*UpdateGroupCallArray).PopFirst() (v UpdateGroupCall, ok bool)
UpdateGroupCallArray is adapter for slice of UpdateGroupCall. 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 UpdateGroupCall. Sort sorts slice of UpdateGroupCall. SortStable sorts slice of UpdateGroupCall. func UpdateClassArray.AsUpdateGroupCall() (to UpdateGroupCallArray) func UpdateGroupCallArray.Retain(keep func(x UpdateGroupCall) bool) UpdateGroupCallArray func UpdateGroupCallArray.Sort(less func(a, b UpdateGroupCall) bool) UpdateGroupCallArray func UpdateGroupCallArray.SortStable(less func(a, b UpdateGroupCall) bool) UpdateGroupCallArray
UpdateGroupCallConnection represents TL type `updateGroupCallConnection#b783982`. New WebRTC parameters See https://core.telegram.org/constructor/updateGroupCallConnection for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields WebRTC parameters Are these parameters related to the screen capture session currently in progress? Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateGroupCallConnection from given interface. GetParams returns value of Params field. GetPresentation returns value of Presentation conditional field. SetFlags sets flags for non-zero fields. SetPresentation sets value of Presentation 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. (*UpdateGroupCallConnection) Zero() bool *UpdateGroupCallConnection : UpdateClass *UpdateGroupCallConnection : github.com/gotd/td/bin.BareDecoder *UpdateGroupCallConnection : github.com/gotd/td/bin.BareEncoder *UpdateGroupCallConnection : github.com/gotd/td/bin.Decoder *UpdateGroupCallConnection : github.com/gotd/td/bin.Encoder *UpdateGroupCallConnection : github.com/gotd/td/bin.Object *UpdateGroupCallConnection : github.com/gotd/td/tdp.Object *UpdateGroupCallConnection : fmt.Stringer func UpdateGroupCallConnectionArray.First() (v UpdateGroupCallConnection, ok bool) func UpdateGroupCallConnectionArray.Last() (v UpdateGroupCallConnection, ok bool) func (*UpdateGroupCallConnectionArray).Pop() (v UpdateGroupCallConnection, ok bool) func (*UpdateGroupCallConnectionArray).PopFirst() (v UpdateGroupCallConnection, ok bool)
UpdateGroupCallConnectionArray is adapter for slice of UpdateGroupCallConnection. 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 UpdateGroupCallConnection. Sort sorts slice of UpdateGroupCallConnection. SortStable sorts slice of UpdateGroupCallConnection. func UpdateClassArray.AsUpdateGroupCallConnection() (to UpdateGroupCallConnectionArray) func UpdateGroupCallConnectionArray.Retain(keep func(x UpdateGroupCallConnection) bool) UpdateGroupCallConnectionArray func UpdateGroupCallConnectionArray.Sort(less func(a, b UpdateGroupCallConnection) bool) UpdateGroupCallConnectionArray func UpdateGroupCallConnectionArray.SortStable(less func(a, b UpdateGroupCallConnection) bool) UpdateGroupCallConnectionArray
UpdateGroupCallParticipants represents TL type `updateGroupCallParticipants#f2ebdb4e`. The participant list of a certain group call has changed See https://core.telegram.org/constructor/updateGroupCallParticipants for reference. Group call New participant list Version Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateGroupCallParticipants from given interface. GetCall returns value of Call field. GetParticipants returns value of Participants field. GetVersion returns value of Version 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. (*UpdateGroupCallParticipants) Zero() bool *UpdateGroupCallParticipants : UpdateClass *UpdateGroupCallParticipants : github.com/gotd/td/bin.BareDecoder *UpdateGroupCallParticipants : github.com/gotd/td/bin.BareEncoder *UpdateGroupCallParticipants : github.com/gotd/td/bin.Decoder *UpdateGroupCallParticipants : github.com/gotd/td/bin.Encoder *UpdateGroupCallParticipants : github.com/gotd/td/bin.Object *UpdateGroupCallParticipants : github.com/gotd/td/tdp.Object *UpdateGroupCallParticipants : fmt.Stringer func UpdateGroupCallParticipantsArray.First() (v UpdateGroupCallParticipants, ok bool) func UpdateGroupCallParticipantsArray.Last() (v UpdateGroupCallParticipants, ok bool) func (*UpdateGroupCallParticipantsArray).Pop() (v UpdateGroupCallParticipants, ok bool) func (*UpdateGroupCallParticipantsArray).PopFirst() (v UpdateGroupCallParticipants, ok bool)
UpdateGroupCallParticipantsArray is adapter for slice of UpdateGroupCallParticipants. 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 UpdateGroupCallParticipants. Sort sorts slice of UpdateGroupCallParticipants. SortStable sorts slice of UpdateGroupCallParticipants. func UpdateClassArray.AsUpdateGroupCallParticipants() (to UpdateGroupCallParticipantsArray) func UpdateGroupCallParticipantsArray.Retain(keep func(x UpdateGroupCallParticipants) bool) UpdateGroupCallParticipantsArray func UpdateGroupCallParticipantsArray.Sort(less func(a, b UpdateGroupCallParticipants) bool) UpdateGroupCallParticipantsArray func UpdateGroupCallParticipantsArray.SortStable(less func(a, b UpdateGroupCallParticipants) bool) UpdateGroupCallParticipantsArray
UpdateGroupInvitePrivacyForbidden represents TL type `updateGroupInvitePrivacyForbidden#ccf08ad6`. 0-N updates of this type may be returned only when invoking messages.addChatUser¹, channels.inviteToChannel² or messages.createChat³: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link⁴ can be shared with the user, instead. Links: 1. https://core.telegram.org/method/messages.addChatUser 2. https://core.telegram.org/method/channels.inviteToChannel 3. https://core.telegram.org/method/messages.createChat 4. https://core.telegram.org/api/invites See https://core.telegram.org/constructor/updateGroupInvitePrivacyForbidden for reference. ID of the user that created the group Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateGroupInvitePrivacyForbidden from given interface. 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. (*UpdateGroupInvitePrivacyForbidden) Zero() bool *UpdateGroupInvitePrivacyForbidden : UpdateClass *UpdateGroupInvitePrivacyForbidden : github.com/gotd/td/bin.BareDecoder *UpdateGroupInvitePrivacyForbidden : github.com/gotd/td/bin.BareEncoder *UpdateGroupInvitePrivacyForbidden : github.com/gotd/td/bin.Decoder *UpdateGroupInvitePrivacyForbidden : github.com/gotd/td/bin.Encoder *UpdateGroupInvitePrivacyForbidden : github.com/gotd/td/bin.Object *UpdateGroupInvitePrivacyForbidden : github.com/gotd/td/tdp.Object *UpdateGroupInvitePrivacyForbidden : fmt.Stringer func UpdateGroupInvitePrivacyForbiddenArray.First() (v UpdateGroupInvitePrivacyForbidden, ok bool) func UpdateGroupInvitePrivacyForbiddenArray.Last() (v UpdateGroupInvitePrivacyForbidden, ok bool) func (*UpdateGroupInvitePrivacyForbiddenArray).Pop() (v UpdateGroupInvitePrivacyForbidden, ok bool) func (*UpdateGroupInvitePrivacyForbiddenArray).PopFirst() (v UpdateGroupInvitePrivacyForbidden, ok bool)
UpdateGroupInvitePrivacyForbiddenArray is adapter for slice of UpdateGroupInvitePrivacyForbidden. 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 UpdateGroupInvitePrivacyForbidden. Sort sorts slice of UpdateGroupInvitePrivacyForbidden. SortStable sorts slice of UpdateGroupInvitePrivacyForbidden. func UpdateClassArray.AsUpdateGroupInvitePrivacyForbidden() (to UpdateGroupInvitePrivacyForbiddenArray) func UpdateGroupInvitePrivacyForbiddenArray.Retain(keep func(x UpdateGroupInvitePrivacyForbidden) bool) UpdateGroupInvitePrivacyForbiddenArray func UpdateGroupInvitePrivacyForbiddenArray.Sort(less func(a, b UpdateGroupInvitePrivacyForbidden) bool) UpdateGroupInvitePrivacyForbiddenArray func UpdateGroupInvitePrivacyForbiddenArray.SortStable(less func(a, b UpdateGroupInvitePrivacyForbidden) bool) UpdateGroupInvitePrivacyForbiddenArray
UpdateInlineBotCallbackQuery represents TL type `updateInlineBotCallbackQuery#691e9052`. This notification is received by bots when a button is pressed See https://core.telegram.org/constructor/updateInlineBotCallbackQuery for reference. Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field. Use SetData and GetData helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Short name of a Game to be returned, serves as the unique identifier for the game Use SetGameShortName and GetGameShortName helpers. ID of the inline message with the button Query ID ID of the user that pressed the button Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateInlineBotCallbackQuery from given interface. GetChatInstance returns value of ChatInstance field. GetData returns value of Data conditional field and boolean which is true if field was set. GetGameShortName returns value of GameShortName conditional field and boolean which is true if field was set. GetMsgID returns value of MsgID field. GetQueryID returns value of QueryID field. GetUserID returns value of UserID field. SetData sets value of Data conditional field. SetFlags sets flags for non-zero fields. SetGameShortName sets value of GameShortName 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. (*UpdateInlineBotCallbackQuery) Zero() bool *UpdateInlineBotCallbackQuery : UpdateClass *UpdateInlineBotCallbackQuery : github.com/gotd/td/bin.BareDecoder *UpdateInlineBotCallbackQuery : github.com/gotd/td/bin.BareEncoder *UpdateInlineBotCallbackQuery : github.com/gotd/td/bin.Decoder *UpdateInlineBotCallbackQuery : github.com/gotd/td/bin.Encoder *UpdateInlineBotCallbackQuery : github.com/gotd/td/bin.Object *UpdateInlineBotCallbackQuery : github.com/gotd/td/tdp.Object *UpdateInlineBotCallbackQuery : fmt.Stringer func UpdateInlineBotCallbackQueryArray.First() (v UpdateInlineBotCallbackQuery, ok bool) func UpdateInlineBotCallbackQueryArray.Last() (v UpdateInlineBotCallbackQuery, ok bool) func (*UpdateInlineBotCallbackQueryArray).Pop() (v UpdateInlineBotCallbackQuery, ok bool) func (*UpdateInlineBotCallbackQueryArray).PopFirst() (v UpdateInlineBotCallbackQuery, ok bool)
UpdateInlineBotCallbackQueryArray is adapter for slice of UpdateInlineBotCallbackQuery. 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 UpdateInlineBotCallbackQuery. Sort sorts slice of UpdateInlineBotCallbackQuery. SortStable sorts slice of UpdateInlineBotCallbackQuery. func UpdateClassArray.AsUpdateInlineBotCallbackQuery() (to UpdateInlineBotCallbackQueryArray) func UpdateInlineBotCallbackQueryArray.Retain(keep func(x UpdateInlineBotCallbackQuery) bool) UpdateInlineBotCallbackQueryArray func UpdateInlineBotCallbackQueryArray.Sort(less func(a, b UpdateInlineBotCallbackQuery) bool) UpdateInlineBotCallbackQueryArray func UpdateInlineBotCallbackQueryArray.SortStable(less func(a, b UpdateInlineBotCallbackQuery) bool) UpdateInlineBotCallbackQueryArray
UpdateLangPack represents TL type `updateLangPack#56022f4d`. Language pack updated See https://core.telegram.org/constructor/updateLangPack for reference. Changed strings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateLangPack from given interface. GetDifference returns value of Difference 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. (*UpdateLangPack) Zero() bool *UpdateLangPack : UpdateClass *UpdateLangPack : github.com/gotd/td/bin.BareDecoder *UpdateLangPack : github.com/gotd/td/bin.BareEncoder *UpdateLangPack : github.com/gotd/td/bin.Decoder *UpdateLangPack : github.com/gotd/td/bin.Encoder *UpdateLangPack : github.com/gotd/td/bin.Object *UpdateLangPack : github.com/gotd/td/tdp.Object *UpdateLangPack : fmt.Stringer func UpdateLangPackArray.First() (v UpdateLangPack, ok bool) func UpdateLangPackArray.Last() (v UpdateLangPack, ok bool) func (*UpdateLangPackArray).Pop() (v UpdateLangPack, ok bool) func (*UpdateLangPackArray).PopFirst() (v UpdateLangPack, ok bool)
UpdateLangPackArray is adapter for slice of UpdateLangPack. 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 UpdateLangPack. Sort sorts slice of UpdateLangPack. SortStable sorts slice of UpdateLangPack. func UpdateClassArray.AsUpdateLangPack() (to UpdateLangPackArray) func UpdateLangPackArray.Retain(keep func(x UpdateLangPack) bool) UpdateLangPackArray func UpdateLangPackArray.Sort(less func(a, b UpdateLangPack) bool) UpdateLangPackArray func UpdateLangPackArray.SortStable(less func(a, b UpdateLangPack) bool) UpdateLangPackArray
UpdateLangPackTooLong represents TL type `updateLangPackTooLong#46560264`. A language pack has changed, the client should manually fetch the changed strings using langpack.getDifference¹ Links: 1. https://core.telegram.org/method/langpack.getDifference See https://core.telegram.org/constructor/updateLangPackTooLong for reference. Language code Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateLangPackTooLong from given interface. GetLangCode returns value of LangCode 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. (*UpdateLangPackTooLong) Zero() bool *UpdateLangPackTooLong : UpdateClass *UpdateLangPackTooLong : github.com/gotd/td/bin.BareDecoder *UpdateLangPackTooLong : github.com/gotd/td/bin.BareEncoder *UpdateLangPackTooLong : github.com/gotd/td/bin.Decoder *UpdateLangPackTooLong : github.com/gotd/td/bin.Encoder *UpdateLangPackTooLong : github.com/gotd/td/bin.Object *UpdateLangPackTooLong : github.com/gotd/td/tdp.Object *UpdateLangPackTooLong : fmt.Stringer func UpdateLangPackTooLongArray.First() (v UpdateLangPackTooLong, ok bool) func UpdateLangPackTooLongArray.Last() (v UpdateLangPackTooLong, ok bool) func (*UpdateLangPackTooLongArray).Pop() (v UpdateLangPackTooLong, ok bool) func (*UpdateLangPackTooLongArray).PopFirst() (v UpdateLangPackTooLong, ok bool)
UpdateLangPackTooLongArray is adapter for slice of UpdateLangPackTooLong. 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 UpdateLangPackTooLong. Sort sorts slice of UpdateLangPackTooLong. SortStable sorts slice of UpdateLangPackTooLong. func UpdateClassArray.AsUpdateLangPackTooLong() (to UpdateLangPackTooLongArray) func UpdateLangPackTooLongArray.Retain(keep func(x UpdateLangPackTooLong) bool) UpdateLangPackTooLongArray func UpdateLangPackTooLongArray.Sort(less func(a, b UpdateLangPackTooLong) bool) UpdateLangPackTooLongArray func UpdateLangPackTooLongArray.SortStable(less func(a, b UpdateLangPackTooLong) bool) UpdateLangPackTooLongArray
UpdateLoginToken represents TL type `updateLoginToken#564fe691`. A login token (for login via QR code) was accepted. See https://core.telegram.org/constructor/updateLoginToken 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. (*UpdateLoginToken) Zero() bool *UpdateLoginToken : UpdateClass *UpdateLoginToken : github.com/gotd/td/bin.BareDecoder *UpdateLoginToken : github.com/gotd/td/bin.BareEncoder *UpdateLoginToken : github.com/gotd/td/bin.Decoder *UpdateLoginToken : github.com/gotd/td/bin.Encoder *UpdateLoginToken : github.com/gotd/td/bin.Object *UpdateLoginToken : github.com/gotd/td/tdp.Object *UpdateLoginToken : fmt.Stringer
UpdateMessageExtendedMedia represents TL type `updateMessageExtendedMedia#5a73a98c`. Extended media update See https://core.telegram.org/constructor/updateMessageExtendedMedia for reference. Extended media Message ID Peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateMessageExtendedMedia from given interface. GetExtendedMedia returns value of ExtendedMedia field. GetMsgID returns value of MsgID 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. (*UpdateMessageExtendedMedia) Zero() bool *UpdateMessageExtendedMedia : UpdateClass *UpdateMessageExtendedMedia : github.com/gotd/td/bin.BareDecoder *UpdateMessageExtendedMedia : github.com/gotd/td/bin.BareEncoder *UpdateMessageExtendedMedia : github.com/gotd/td/bin.Decoder *UpdateMessageExtendedMedia : github.com/gotd/td/bin.Encoder *UpdateMessageExtendedMedia : github.com/gotd/td/bin.Object *UpdateMessageExtendedMedia : github.com/gotd/td/tdp.Object *UpdateMessageExtendedMedia : fmt.Stringer func UpdateMessageExtendedMediaArray.First() (v UpdateMessageExtendedMedia, ok bool) func UpdateMessageExtendedMediaArray.Last() (v UpdateMessageExtendedMedia, ok bool) func (*UpdateMessageExtendedMediaArray).Pop() (v UpdateMessageExtendedMedia, ok bool) func (*UpdateMessageExtendedMediaArray).PopFirst() (v UpdateMessageExtendedMedia, ok bool)
UpdateMessageExtendedMediaArray is adapter for slice of UpdateMessageExtendedMedia. 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 UpdateMessageExtendedMedia. Sort sorts slice of UpdateMessageExtendedMedia. SortStable sorts slice of UpdateMessageExtendedMedia. func UpdateClassArray.AsUpdateMessageExtendedMedia() (to UpdateMessageExtendedMediaArray) func UpdateMessageExtendedMediaArray.Retain(keep func(x UpdateMessageExtendedMedia) bool) UpdateMessageExtendedMediaArray func UpdateMessageExtendedMediaArray.Sort(less func(a, b UpdateMessageExtendedMedia) bool) UpdateMessageExtendedMediaArray func UpdateMessageExtendedMediaArray.SortStable(less func(a, b UpdateMessageExtendedMedia) bool) UpdateMessageExtendedMediaArray
UpdateMessageID represents TL type `updateMessageID#4e90bfd6`. Sent message with random_id client identifier was assigned an identifier. See https://core.telegram.org/constructor/updateMessageID for reference. id identifier of a respective Message¹ Links: 1) https://core.telegram.org/type/Message Previously transferred client random_id identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateMessageID from given interface. GetID returns value of ID field. GetRandomID returns value of RandomID 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. (*UpdateMessageID) Zero() bool *UpdateMessageID : UpdateClass *UpdateMessageID : github.com/gotd/td/bin.BareDecoder *UpdateMessageID : github.com/gotd/td/bin.BareEncoder *UpdateMessageID : github.com/gotd/td/bin.Decoder *UpdateMessageID : github.com/gotd/td/bin.Encoder *UpdateMessageID : github.com/gotd/td/bin.Object *UpdateMessageID : github.com/gotd/td/tdp.Object *UpdateMessageID : fmt.Stringer func UpdateMessageIDArray.First() (v UpdateMessageID, ok bool) func UpdateMessageIDArray.Last() (v UpdateMessageID, ok bool) func (*UpdateMessageIDArray).Pop() (v UpdateMessageID, ok bool) func (*UpdateMessageIDArray).PopFirst() (v UpdateMessageID, ok bool) func UpdateMessageIDArray.ToMap() map[int]UpdateMessageID func UpdateMessageIDArray.FillMap(to map[int]UpdateMessageID)
UpdateMessageIDArray is adapter for slice of UpdateMessageID. 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 UpdateMessageID. Sort sorts slice of UpdateMessageID. SortByID sorts slice of UpdateMessageID by ID. SortStable sorts slice of UpdateMessageID. SortStableByID sorts slice of UpdateMessageID by ID. ToMap collects constructors to map. func UpdateClassArray.AsUpdateMessageID() (to UpdateMessageIDArray) func UpdateMessageIDArray.Retain(keep func(x UpdateMessageID) bool) UpdateMessageIDArray func UpdateMessageIDArray.Sort(less func(a, b UpdateMessageID) bool) UpdateMessageIDArray func UpdateMessageIDArray.SortByID() UpdateMessageIDArray func UpdateMessageIDArray.SortStable(less func(a, b UpdateMessageID) bool) UpdateMessageIDArray func UpdateMessageIDArray.SortStableByID() UpdateMessageIDArray
UpdateMessagePoll represents TL type `updateMessagePoll#aca1657b`. The results of a poll have changed See https://core.telegram.org/constructor/updateMessagePoll for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields If the server knows the client hasn't cached this poll yet, the poll itself Use SetPoll and GetPoll helpers. Poll ID New poll results Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateMessagePoll from given interface. GetPoll returns value of Poll conditional field and boolean which is true if field was set. GetPollID returns value of PollID field. GetResults returns value of Results field. SetFlags sets flags for non-zero fields. SetPoll sets value of Poll 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. (*UpdateMessagePoll) Zero() bool *UpdateMessagePoll : UpdateClass *UpdateMessagePoll : github.com/gotd/td/bin.BareDecoder *UpdateMessagePoll : github.com/gotd/td/bin.BareEncoder *UpdateMessagePoll : github.com/gotd/td/bin.Decoder *UpdateMessagePoll : github.com/gotd/td/bin.Encoder *UpdateMessagePoll : github.com/gotd/td/bin.Object *UpdateMessagePoll : github.com/gotd/td/tdp.Object *UpdateMessagePoll : fmt.Stringer func UpdateMessagePollArray.First() (v UpdateMessagePoll, ok bool) func UpdateMessagePollArray.Last() (v UpdateMessagePoll, ok bool) func (*UpdateMessagePollArray).Pop() (v UpdateMessagePoll, ok bool) func (*UpdateMessagePollArray).PopFirst() (v UpdateMessagePoll, ok bool)
UpdateMessagePollArray is adapter for slice of UpdateMessagePoll. 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 UpdateMessagePoll. Sort sorts slice of UpdateMessagePoll. SortStable sorts slice of UpdateMessagePoll. func UpdateClassArray.AsUpdateMessagePoll() (to UpdateMessagePollArray) func UpdateMessagePollArray.Retain(keep func(x UpdateMessagePoll) bool) UpdateMessagePollArray func UpdateMessagePollArray.Sort(less func(a, b UpdateMessagePoll) bool) UpdateMessagePollArray func UpdateMessagePollArray.SortStable(less func(a, b UpdateMessagePoll) bool) UpdateMessagePollArray
UpdateMessagePollVote represents TL type `updateMessagePollVote#24f40e77`. A specific peer has voted in a poll See https://core.telegram.org/constructor/updateMessagePollVote for reference. Chosen option(s) The peer that voted in the poll Poll ID New qts value, see updates »¹ for more info. Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateMessagePollVote from given interface. GetOptions returns value of Options field. GetPeer returns value of Peer field. GetPollID returns value of PollID field. GetQts returns value of Qts 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. (*UpdateMessagePollVote) Zero() bool *UpdateMessagePollVote : UpdateClass *UpdateMessagePollVote : github.com/gotd/td/bin.BareDecoder *UpdateMessagePollVote : github.com/gotd/td/bin.BareEncoder *UpdateMessagePollVote : github.com/gotd/td/bin.Decoder *UpdateMessagePollVote : github.com/gotd/td/bin.Encoder *UpdateMessagePollVote : github.com/gotd/td/bin.Object *UpdateMessagePollVote : github.com/gotd/td/tdp.Object *UpdateMessagePollVote : fmt.Stringer func UpdateMessagePollVoteArray.First() (v UpdateMessagePollVote, ok bool) func UpdateMessagePollVoteArray.Last() (v UpdateMessagePollVote, ok bool) func (*UpdateMessagePollVoteArray).Pop() (v UpdateMessagePollVote, ok bool) func (*UpdateMessagePollVoteArray).PopFirst() (v UpdateMessagePollVote, ok bool)
UpdateMessagePollVoteArray is adapter for slice of UpdateMessagePollVote. 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 UpdateMessagePollVote. Sort sorts slice of UpdateMessagePollVote. SortStable sorts slice of UpdateMessagePollVote. func UpdateClassArray.AsUpdateMessagePollVote() (to UpdateMessagePollVoteArray) func UpdateMessagePollVoteArray.Retain(keep func(x UpdateMessagePollVote) bool) UpdateMessagePollVoteArray func UpdateMessagePollVoteArray.Sort(less func(a, b UpdateMessagePollVote) bool) UpdateMessagePollVoteArray func UpdateMessagePollVoteArray.SortStable(less func(a, b UpdateMessagePollVote) bool) UpdateMessagePollVoteArray
UpdateMessageReactions represents TL type `updateMessageReactions#5e1b3cb8`. New message reactions »¹ are available Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/constructor/updateMessageReactions for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID Peer Reactions Forum topic ID¹ Links: 1) https://core.telegram.org/api/forum#forum-topics Use SetTopMsgID and GetTopMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateMessageReactions from given interface. GetMsgID returns value of MsgID field. GetPeer returns value of Peer field. GetReactions returns value of Reactions field. GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTopMsgID sets value of TopMsgID 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. (*UpdateMessageReactions) Zero() bool *UpdateMessageReactions : UpdateClass *UpdateMessageReactions : github.com/gotd/td/bin.BareDecoder *UpdateMessageReactions : github.com/gotd/td/bin.BareEncoder *UpdateMessageReactions : github.com/gotd/td/bin.Decoder *UpdateMessageReactions : github.com/gotd/td/bin.Encoder *UpdateMessageReactions : github.com/gotd/td/bin.Object *UpdateMessageReactions : github.com/gotd/td/tdp.Object *UpdateMessageReactions : fmt.Stringer func UpdateMessageReactionsArray.First() (v UpdateMessageReactions, ok bool) func UpdateMessageReactionsArray.Last() (v UpdateMessageReactions, ok bool) func (*UpdateMessageReactionsArray).Pop() (v UpdateMessageReactions, ok bool) func (*UpdateMessageReactionsArray).PopFirst() (v UpdateMessageReactions, ok bool)
UpdateMessageReactionsArray is adapter for slice of UpdateMessageReactions. 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 UpdateMessageReactions. Sort sorts slice of UpdateMessageReactions. SortStable sorts slice of UpdateMessageReactions. func UpdateClassArray.AsUpdateMessageReactions() (to UpdateMessageReactionsArray) func UpdateMessageReactionsArray.Retain(keep func(x UpdateMessageReactions) bool) UpdateMessageReactionsArray func UpdateMessageReactionsArray.Sort(less func(a, b UpdateMessageReactions) bool) UpdateMessageReactionsArray func UpdateMessageReactionsArray.SortStable(less func(a, b UpdateMessageReactions) bool) UpdateMessageReactionsArray
UpdateMoveStickerSetToTop represents TL type `updateMoveStickerSetToTop#86fccf85`. A stickerset was just moved to top, see here for more info »¹ Links: 1. https://core.telegram.org/api/stickers#recent-stickersets See https://core.telegram.org/constructor/updateMoveStickerSetToTop for reference. This update is referring to a custom emoji stickerset¹ Links: 1) https://core.telegram.org/api/custom-emoji Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields This update is referring to a mask stickerset¹ Links: 1) https://core.telegram.org/api/stickers#mask-stickers Stickerset¹ ID Links: 1) https://core.telegram.org/api/stickers Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateMoveStickerSetToTop from given interface. GetEmojis returns value of Emojis conditional field. GetMasks returns value of Masks conditional field. GetStickerset returns value of Stickerset field. SetEmojis sets value of Emojis conditional field. SetFlags sets flags for non-zero fields. SetMasks sets value of Masks 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. (*UpdateMoveStickerSetToTop) Zero() bool *UpdateMoveStickerSetToTop : UpdateClass *UpdateMoveStickerSetToTop : github.com/gotd/td/bin.BareDecoder *UpdateMoveStickerSetToTop : github.com/gotd/td/bin.BareEncoder *UpdateMoveStickerSetToTop : github.com/gotd/td/bin.Decoder *UpdateMoveStickerSetToTop : github.com/gotd/td/bin.Encoder *UpdateMoveStickerSetToTop : github.com/gotd/td/bin.Object *UpdateMoveStickerSetToTop : github.com/gotd/td/tdp.Object *UpdateMoveStickerSetToTop : fmt.Stringer func UpdateMoveStickerSetToTopArray.First() (v UpdateMoveStickerSetToTop, ok bool) func UpdateMoveStickerSetToTopArray.Last() (v UpdateMoveStickerSetToTop, ok bool) func (*UpdateMoveStickerSetToTopArray).Pop() (v UpdateMoveStickerSetToTop, ok bool) func (*UpdateMoveStickerSetToTopArray).PopFirst() (v UpdateMoveStickerSetToTop, ok bool)
UpdateMoveStickerSetToTopArray is adapter for slice of UpdateMoveStickerSetToTop. 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 UpdateMoveStickerSetToTop. Sort sorts slice of UpdateMoveStickerSetToTop. SortStable sorts slice of UpdateMoveStickerSetToTop. func UpdateClassArray.AsUpdateMoveStickerSetToTop() (to UpdateMoveStickerSetToTopArray) func UpdateMoveStickerSetToTopArray.Retain(keep func(x UpdateMoveStickerSetToTop) bool) UpdateMoveStickerSetToTopArray func UpdateMoveStickerSetToTopArray.Sort(less func(a, b UpdateMoveStickerSetToTop) bool) UpdateMoveStickerSetToTopArray func UpdateMoveStickerSetToTopArray.SortStable(less func(a, b UpdateMoveStickerSetToTop) bool) UpdateMoveStickerSetToTopArray
UpdateNewAuthorization represents TL type `updateNewAuthorization#8951abef`. A new session logged into the current user's account through an unknown device. See https://core.telegram.org/constructor/updateNewAuthorization for reference. Authorization date Use SetDate and GetDate helpers. Name of device, for example Android Use SetDevice and GetDevice helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Location, for example USA, NY (IP=1.2.3.4) Use SetLocation and GetLocation helpers. 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 UpdateNewAuthorization from given interface. GetDate returns value of Date conditional field and boolean which is true if field was set. GetDevice returns value of Device conditional field and boolean which is true if field was set. GetHash returns value of Hash field. GetLocation returns value of Location conditional field and boolean which is true if field was set. GetUnconfirmed returns value of Unconfirmed conditional field. SetDate sets value of Date conditional field. SetDevice sets value of Device conditional field. SetFlags sets flags for non-zero fields. SetLocation sets value of Location 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. (*UpdateNewAuthorization) Zero() bool *UpdateNewAuthorization : UpdateClass *UpdateNewAuthorization : github.com/gotd/td/bin.BareDecoder *UpdateNewAuthorization : github.com/gotd/td/bin.BareEncoder *UpdateNewAuthorization : github.com/gotd/td/bin.Decoder *UpdateNewAuthorization : github.com/gotd/td/bin.Encoder *UpdateNewAuthorization : github.com/gotd/td/bin.Object *UpdateNewAuthorization : github.com/gotd/td/tdp.Object *UpdateNewAuthorization : fmt.Stringer func UpdateNewAuthorizationArray.First() (v UpdateNewAuthorization, ok bool) func UpdateNewAuthorizationArray.Last() (v UpdateNewAuthorization, ok bool) func (*UpdateNewAuthorizationArray).Pop() (v UpdateNewAuthorization, ok bool) func (*UpdateNewAuthorizationArray).PopFirst() (v UpdateNewAuthorization, ok bool)
UpdateNewAuthorizationArray is adapter for slice of UpdateNewAuthorization. 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 UpdateNewAuthorization. Sort sorts slice of UpdateNewAuthorization. SortStable sorts slice of UpdateNewAuthorization. func UpdateClassArray.AsUpdateNewAuthorization() (to UpdateNewAuthorizationArray) func UpdateNewAuthorizationArray.Retain(keep func(x UpdateNewAuthorization) bool) UpdateNewAuthorizationArray func UpdateNewAuthorizationArray.Sort(less func(a, b UpdateNewAuthorization) bool) UpdateNewAuthorizationArray func UpdateNewAuthorizationArray.SortStable(less func(a, b UpdateNewAuthorization) bool) UpdateNewAuthorizationArray
UpdateNewChannelMessage represents TL type `updateNewChannelMessage#62ba04d9`. A new message was sent in a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateNewChannelMessage for reference. Message New quantity of actions in a message box Number of generated events Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateNewChannelMessage from given interface. GetMessage returns value of Message field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*UpdateNewChannelMessage) Zero() bool *UpdateNewChannelMessage : UpdateClass *UpdateNewChannelMessage : github.com/gotd/td/bin.BareDecoder *UpdateNewChannelMessage : github.com/gotd/td/bin.BareEncoder *UpdateNewChannelMessage : github.com/gotd/td/bin.Decoder *UpdateNewChannelMessage : github.com/gotd/td/bin.Encoder *UpdateNewChannelMessage : github.com/gotd/td/bin.Object *UpdateNewChannelMessage : github.com/gotd/td/tdp.Object *UpdateNewChannelMessage : fmt.Stringer func UpdateNewChannelMessageArray.First() (v UpdateNewChannelMessage, ok bool) func UpdateNewChannelMessageArray.Last() (v UpdateNewChannelMessage, ok bool) func (*UpdateNewChannelMessageArray).Pop() (v UpdateNewChannelMessage, ok bool) func (*UpdateNewChannelMessageArray).PopFirst() (v UpdateNewChannelMessage, ok bool)
UpdateNewChannelMessageArray is adapter for slice of UpdateNewChannelMessage. 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 UpdateNewChannelMessage. Sort sorts slice of UpdateNewChannelMessage. SortStable sorts slice of UpdateNewChannelMessage. func UpdateClassArray.AsUpdateNewChannelMessage() (to UpdateNewChannelMessageArray) func UpdateNewChannelMessageArray.Retain(keep func(x UpdateNewChannelMessage) bool) UpdateNewChannelMessageArray func UpdateNewChannelMessageArray.Sort(less func(a, b UpdateNewChannelMessage) bool) UpdateNewChannelMessageArray func UpdateNewChannelMessageArray.SortStable(less func(a, b UpdateNewChannelMessage) bool) UpdateNewChannelMessageArray
UpdateNewEncryptedMessage represents TL type `updateNewEncryptedMessage#12bcbd9a`. New encrypted message. See https://core.telegram.org/constructor/updateNewEncryptedMessage for reference. Message New qts value, see updates »¹ for more info. Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateNewEncryptedMessage from given interface. GetMessage returns value of Message field. GetQts returns value of Qts 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. (*UpdateNewEncryptedMessage) Zero() bool *UpdateNewEncryptedMessage : UpdateClass *UpdateNewEncryptedMessage : github.com/gotd/td/bin.BareDecoder *UpdateNewEncryptedMessage : github.com/gotd/td/bin.BareEncoder *UpdateNewEncryptedMessage : github.com/gotd/td/bin.Decoder *UpdateNewEncryptedMessage : github.com/gotd/td/bin.Encoder *UpdateNewEncryptedMessage : github.com/gotd/td/bin.Object *UpdateNewEncryptedMessage : github.com/gotd/td/tdp.Object *UpdateNewEncryptedMessage : fmt.Stringer func UpdateNewEncryptedMessageArray.First() (v UpdateNewEncryptedMessage, ok bool) func UpdateNewEncryptedMessageArray.Last() (v UpdateNewEncryptedMessage, ok bool) func (*UpdateNewEncryptedMessageArray).Pop() (v UpdateNewEncryptedMessage, ok bool) func (*UpdateNewEncryptedMessageArray).PopFirst() (v UpdateNewEncryptedMessage, ok bool)
UpdateNewEncryptedMessageArray is adapter for slice of UpdateNewEncryptedMessage. 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 UpdateNewEncryptedMessage. Sort sorts slice of UpdateNewEncryptedMessage. SortStable sorts slice of UpdateNewEncryptedMessage. func UpdateClassArray.AsUpdateNewEncryptedMessage() (to UpdateNewEncryptedMessageArray) func UpdateNewEncryptedMessageArray.Retain(keep func(x UpdateNewEncryptedMessage) bool) UpdateNewEncryptedMessageArray func UpdateNewEncryptedMessageArray.Sort(less func(a, b UpdateNewEncryptedMessage) bool) UpdateNewEncryptedMessageArray func UpdateNewEncryptedMessageArray.SortStable(less func(a, b UpdateNewEncryptedMessage) bool) UpdateNewEncryptedMessageArray
UpdateNewMessage represents TL type `updateNewMessage#1f2b0afd`. New message in a private chat or in a basic group¹. Links: 1. https://core.telegram.org/api/channel#basic-groups See https://core.telegram.org/constructor/updateNewMessage for reference. Message New quantity of actions in a message box Number of generated events Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateNewMessage from given interface. GetMessage returns value of Message field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*UpdateNewMessage) Zero() bool *UpdateNewMessage : UpdateClass *UpdateNewMessage : github.com/gotd/td/bin.BareDecoder *UpdateNewMessage : github.com/gotd/td/bin.BareEncoder *UpdateNewMessage : github.com/gotd/td/bin.Decoder *UpdateNewMessage : github.com/gotd/td/bin.Encoder *UpdateNewMessage : github.com/gotd/td/bin.Object *UpdateNewMessage : github.com/gotd/td/tdp.Object *UpdateNewMessage : fmt.Stringer func UpdateNewMessageArray.First() (v UpdateNewMessage, ok bool) func UpdateNewMessageArray.Last() (v UpdateNewMessage, ok bool) func (*UpdateNewMessageArray).Pop() (v UpdateNewMessage, ok bool) func (*UpdateNewMessageArray).PopFirst() (v UpdateNewMessage, ok bool)
UpdateNewMessageArray is adapter for slice of UpdateNewMessage. 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 UpdateNewMessage. Sort sorts slice of UpdateNewMessage. SortStable sorts slice of UpdateNewMessage. func UpdateClassArray.AsUpdateNewMessage() (to UpdateNewMessageArray) func UpdateNewMessageArray.Retain(keep func(x UpdateNewMessage) bool) UpdateNewMessageArray func UpdateNewMessageArray.Sort(less func(a, b UpdateNewMessage) bool) UpdateNewMessageArray func UpdateNewMessageArray.SortStable(less func(a, b UpdateNewMessage) bool) UpdateNewMessageArray
UpdateNewScheduledMessage represents TL type `updateNewScheduledMessage#39a51dfb`. A message was added to the schedule queue of a chat¹ Links: 1. https://core.telegram.org/api/scheduled-messages See https://core.telegram.org/constructor/updateNewScheduledMessage for reference. The message that was pinned Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateNewScheduledMessage from given interface. GetMessage returns value of Message 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. (*UpdateNewScheduledMessage) Zero() bool *UpdateNewScheduledMessage : UpdateClass *UpdateNewScheduledMessage : github.com/gotd/td/bin.BareDecoder *UpdateNewScheduledMessage : github.com/gotd/td/bin.BareEncoder *UpdateNewScheduledMessage : github.com/gotd/td/bin.Decoder *UpdateNewScheduledMessage : github.com/gotd/td/bin.Encoder *UpdateNewScheduledMessage : github.com/gotd/td/bin.Object *UpdateNewScheduledMessage : github.com/gotd/td/tdp.Object *UpdateNewScheduledMessage : fmt.Stringer func UpdateNewScheduledMessageArray.First() (v UpdateNewScheduledMessage, ok bool) func UpdateNewScheduledMessageArray.Last() (v UpdateNewScheduledMessage, ok bool) func (*UpdateNewScheduledMessageArray).Pop() (v UpdateNewScheduledMessage, ok bool) func (*UpdateNewScheduledMessageArray).PopFirst() (v UpdateNewScheduledMessage, ok bool)
UpdateNewScheduledMessageArray is adapter for slice of UpdateNewScheduledMessage. 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 UpdateNewScheduledMessage. Sort sorts slice of UpdateNewScheduledMessage. SortStable sorts slice of UpdateNewScheduledMessage. func UpdateClassArray.AsUpdateNewScheduledMessage() (to UpdateNewScheduledMessageArray) func UpdateNewScheduledMessageArray.Retain(keep func(x UpdateNewScheduledMessage) bool) UpdateNewScheduledMessageArray func UpdateNewScheduledMessageArray.Sort(less func(a, b UpdateNewScheduledMessage) bool) UpdateNewScheduledMessageArray func UpdateNewScheduledMessageArray.SortStable(less func(a, b UpdateNewScheduledMessage) bool) UpdateNewScheduledMessageArray
UpdateNewStickerSet represents TL type `updateNewStickerSet#688a30aa`. A new stickerset was installed See https://core.telegram.org/constructor/updateNewStickerSet for reference. The installed stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateNewStickerSet from given interface. GetStickerset returns value of Stickerset 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. (*UpdateNewStickerSet) Zero() bool *UpdateNewStickerSet : UpdateClass *UpdateNewStickerSet : github.com/gotd/td/bin.BareDecoder *UpdateNewStickerSet : github.com/gotd/td/bin.BareEncoder *UpdateNewStickerSet : github.com/gotd/td/bin.Decoder *UpdateNewStickerSet : github.com/gotd/td/bin.Encoder *UpdateNewStickerSet : github.com/gotd/td/bin.Object *UpdateNewStickerSet : github.com/gotd/td/tdp.Object *UpdateNewStickerSet : fmt.Stringer func UpdateNewStickerSetArray.First() (v UpdateNewStickerSet, ok bool) func UpdateNewStickerSetArray.Last() (v UpdateNewStickerSet, ok bool) func (*UpdateNewStickerSetArray).Pop() (v UpdateNewStickerSet, ok bool) func (*UpdateNewStickerSetArray).PopFirst() (v UpdateNewStickerSet, ok bool)
UpdateNewStickerSetArray is adapter for slice of UpdateNewStickerSet. 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 UpdateNewStickerSet. Sort sorts slice of UpdateNewStickerSet. SortStable sorts slice of UpdateNewStickerSet. func UpdateClassArray.AsUpdateNewStickerSet() (to UpdateNewStickerSetArray) func UpdateNewStickerSetArray.Retain(keep func(x UpdateNewStickerSet) bool) UpdateNewStickerSetArray func UpdateNewStickerSetArray.Sort(less func(a, b UpdateNewStickerSet) bool) UpdateNewStickerSetArray func UpdateNewStickerSetArray.SortStable(less func(a, b UpdateNewStickerSet) bool) UpdateNewStickerSetArray
UpdateNotifySettings represents TL type `updateNotifySettings#bec268ef`. Changes in notification settings. See https://core.telegram.org/constructor/updateNotifySettings for reference. New notification settings Notification source Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateNotifySettings from given interface. GetNotifySettings returns value of NotifySettings 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. (*UpdateNotifySettings) Zero() bool *UpdateNotifySettings : UpdateClass *UpdateNotifySettings : github.com/gotd/td/bin.BareDecoder *UpdateNotifySettings : github.com/gotd/td/bin.BareEncoder *UpdateNotifySettings : github.com/gotd/td/bin.Decoder *UpdateNotifySettings : github.com/gotd/td/bin.Encoder *UpdateNotifySettings : github.com/gotd/td/bin.Object *UpdateNotifySettings : github.com/gotd/td/tdp.Object *UpdateNotifySettings : fmt.Stringer func UpdateNotifySettingsArray.First() (v UpdateNotifySettings, ok bool) func UpdateNotifySettingsArray.Last() (v UpdateNotifySettings, ok bool) func (*UpdateNotifySettingsArray).Pop() (v UpdateNotifySettings, ok bool) func (*UpdateNotifySettingsArray).PopFirst() (v UpdateNotifySettings, ok bool)
UpdateNotifySettingsArray is adapter for slice of UpdateNotifySettings. 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 UpdateNotifySettings. Sort sorts slice of UpdateNotifySettings. SortStable sorts slice of UpdateNotifySettings. func UpdateClassArray.AsUpdateNotifySettings() (to UpdateNotifySettingsArray) func UpdateNotifySettingsArray.Retain(keep func(x UpdateNotifySettings) bool) UpdateNotifySettingsArray func UpdateNotifySettingsArray.Sort(less func(a, b UpdateNotifySettings) bool) UpdateNotifySettingsArray func UpdateNotifySettingsArray.SortStable(less func(a, b UpdateNotifySettings) bool) UpdateNotifySettingsArray
UpdatePeerBlocked represents TL type `updatePeerBlocked#ebe07752`. We blocked a peer, see here »¹ for more info on blocklists. Links: 1. https://core.telegram.org/api/block See https://core.telegram.org/constructor/updatePeerBlocked for reference. Whether the peer was blocked or unblocked Whether the peer was added/removed to/from the story blocklist; if not set, this update affects the main blocklist, see here »¹ for more info. Links: 1) https://core.telegram.org/api/block Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The (un)blocked peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePeerBlocked from given interface. GetBlocked returns value of Blocked conditional field. GetBlockedMyStoriesFrom returns value of BlockedMyStoriesFrom conditional field. GetPeerID returns value of PeerID field. SetBlocked sets value of Blocked conditional field. SetBlockedMyStoriesFrom sets value of BlockedMyStoriesFrom 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. (*UpdatePeerBlocked) Zero() bool *UpdatePeerBlocked : UpdateClass *UpdatePeerBlocked : github.com/gotd/td/bin.BareDecoder *UpdatePeerBlocked : github.com/gotd/td/bin.BareEncoder *UpdatePeerBlocked : github.com/gotd/td/bin.Decoder *UpdatePeerBlocked : github.com/gotd/td/bin.Encoder *UpdatePeerBlocked : github.com/gotd/td/bin.Object *UpdatePeerBlocked : github.com/gotd/td/tdp.Object *UpdatePeerBlocked : fmt.Stringer func UpdatePeerBlockedArray.First() (v UpdatePeerBlocked, ok bool) func UpdatePeerBlockedArray.Last() (v UpdatePeerBlocked, ok bool) func (*UpdatePeerBlockedArray).Pop() (v UpdatePeerBlocked, ok bool) func (*UpdatePeerBlockedArray).PopFirst() (v UpdatePeerBlocked, ok bool)
UpdatePeerBlockedArray is adapter for slice of UpdatePeerBlocked. 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 UpdatePeerBlocked. Sort sorts slice of UpdatePeerBlocked. SortStable sorts slice of UpdatePeerBlocked. func UpdateClassArray.AsUpdatePeerBlocked() (to UpdatePeerBlockedArray) func UpdatePeerBlockedArray.Retain(keep func(x UpdatePeerBlocked) bool) UpdatePeerBlockedArray func UpdatePeerBlockedArray.Sort(less func(a, b UpdatePeerBlocked) bool) UpdatePeerBlockedArray func UpdatePeerBlockedArray.SortStable(less func(a, b UpdatePeerBlocked) bool) UpdatePeerBlockedArray
UpdatePeerHistoryTTL represents TL type `updatePeerHistoryTTL#bb9bb9a5`. The Time-To-Live for messages sent by the current user in a specific chat has changed See https://core.telegram.org/constructor/updatePeerHistoryTTL for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The chat The new Time-To-Live Use SetTTLPeriod and GetTTLPeriod helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePeerHistoryTTL from given interface. GetPeer returns value of Peer field. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetTTLPeriod sets value of TTLPeriod 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. (*UpdatePeerHistoryTTL) Zero() bool *UpdatePeerHistoryTTL : UpdateClass *UpdatePeerHistoryTTL : github.com/gotd/td/bin.BareDecoder *UpdatePeerHistoryTTL : github.com/gotd/td/bin.BareEncoder *UpdatePeerHistoryTTL : github.com/gotd/td/bin.Decoder *UpdatePeerHistoryTTL : github.com/gotd/td/bin.Encoder *UpdatePeerHistoryTTL : github.com/gotd/td/bin.Object *UpdatePeerHistoryTTL : github.com/gotd/td/tdp.Object *UpdatePeerHistoryTTL : fmt.Stringer func UpdatePeerHistoryTTLArray.First() (v UpdatePeerHistoryTTL, ok bool) func UpdatePeerHistoryTTLArray.Last() (v UpdatePeerHistoryTTL, ok bool) func (*UpdatePeerHistoryTTLArray).Pop() (v UpdatePeerHistoryTTL, ok bool) func (*UpdatePeerHistoryTTLArray).PopFirst() (v UpdatePeerHistoryTTL, ok bool)
UpdatePeerHistoryTTLArray is adapter for slice of UpdatePeerHistoryTTL. 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 UpdatePeerHistoryTTL. Sort sorts slice of UpdatePeerHistoryTTL. SortStable sorts slice of UpdatePeerHistoryTTL. func UpdateClassArray.AsUpdatePeerHistoryTTL() (to UpdatePeerHistoryTTLArray) func UpdatePeerHistoryTTLArray.Retain(keep func(x UpdatePeerHistoryTTL) bool) UpdatePeerHistoryTTLArray func UpdatePeerHistoryTTLArray.Sort(less func(a, b UpdatePeerHistoryTTL) bool) UpdatePeerHistoryTTLArray func UpdatePeerHistoryTTLArray.SortStable(less func(a, b UpdatePeerHistoryTTL) bool) UpdatePeerHistoryTTLArray
UpdatePeerLocated represents TL type `updatePeerLocated#b4afcfb0`. List of peers near you was updated See https://core.telegram.org/constructor/updatePeerLocated for reference. Geolocated peer list update Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePeerLocated from given interface. GetPeers returns value of Peers field. MapPeers returns field Peers wrapped in PeerLocatedClassArray 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. (*UpdatePeerLocated) Zero() bool *UpdatePeerLocated : UpdateClass *UpdatePeerLocated : github.com/gotd/td/bin.BareDecoder *UpdatePeerLocated : github.com/gotd/td/bin.BareEncoder *UpdatePeerLocated : github.com/gotd/td/bin.Decoder *UpdatePeerLocated : github.com/gotd/td/bin.Encoder *UpdatePeerLocated : github.com/gotd/td/bin.Object *UpdatePeerLocated : github.com/gotd/td/tdp.Object *UpdatePeerLocated : fmt.Stringer func UpdatePeerLocatedArray.First() (v UpdatePeerLocated, ok bool) func UpdatePeerLocatedArray.Last() (v UpdatePeerLocated, ok bool) func (*UpdatePeerLocatedArray).Pop() (v UpdatePeerLocated, ok bool) func (*UpdatePeerLocatedArray).PopFirst() (v UpdatePeerLocated, ok bool)
UpdatePeerLocatedArray is adapter for slice of UpdatePeerLocated. 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 UpdatePeerLocated. Sort sorts slice of UpdatePeerLocated. SortStable sorts slice of UpdatePeerLocated. func UpdateClassArray.AsUpdatePeerLocated() (to UpdatePeerLocatedArray) func UpdatePeerLocatedArray.Retain(keep func(x UpdatePeerLocated) bool) UpdatePeerLocatedArray func UpdatePeerLocatedArray.Sort(less func(a, b UpdatePeerLocated) bool) UpdatePeerLocatedArray func UpdatePeerLocatedArray.SortStable(less func(a, b UpdatePeerLocated) bool) UpdatePeerLocatedArray
UpdatePeerSettings represents TL type `updatePeerSettings#6a7e7366`. Settings of a certain peer have changed See https://core.telegram.org/constructor/updatePeerSettings for reference. The peer Associated peer settings Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePeerSettings 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. (*UpdatePeerSettings) Zero() bool *UpdatePeerSettings : UpdateClass *UpdatePeerSettings : github.com/gotd/td/bin.BareDecoder *UpdatePeerSettings : github.com/gotd/td/bin.BareEncoder *UpdatePeerSettings : github.com/gotd/td/bin.Decoder *UpdatePeerSettings : github.com/gotd/td/bin.Encoder *UpdatePeerSettings : github.com/gotd/td/bin.Object *UpdatePeerSettings : github.com/gotd/td/tdp.Object *UpdatePeerSettings : fmt.Stringer func UpdatePeerSettingsArray.First() (v UpdatePeerSettings, ok bool) func UpdatePeerSettingsArray.Last() (v UpdatePeerSettings, ok bool) func (*UpdatePeerSettingsArray).Pop() (v UpdatePeerSettings, ok bool) func (*UpdatePeerSettingsArray).PopFirst() (v UpdatePeerSettings, ok bool)
UpdatePeerSettingsArray is adapter for slice of UpdatePeerSettings. 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 UpdatePeerSettings. Sort sorts slice of UpdatePeerSettings. SortStable sorts slice of UpdatePeerSettings. func UpdateClassArray.AsUpdatePeerSettings() (to UpdatePeerSettingsArray) func UpdatePeerSettingsArray.Retain(keep func(x UpdatePeerSettings) bool) UpdatePeerSettingsArray func UpdatePeerSettingsArray.Sort(less func(a, b UpdatePeerSettings) bool) UpdatePeerSettingsArray func UpdatePeerSettingsArray.SortStable(less func(a, b UpdatePeerSettings) bool) UpdatePeerSettingsArray
UpdatePeerWallpaper represents TL type `updatePeerWallpaper#ae3f101d`. The wallpaper »¹ of a given peer has changed. Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/constructor/updatePeerWallpaper for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The peer where the wallpaper has changed. The new wallpaper, if none the wallpaper was removed and the default wallpaper should be used. Use SetWallpaper and GetWallpaper helpers. Whether the other user has chosen a custom wallpaper for us using messages setChatWallPaper¹ and the for_both flag, see here »² for more info. Links: 1) https://core.telegram.org/method/messages.setChatWallPaper 2) https://core.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePeerWallpaper from given interface. GetPeer returns value of Peer field. GetWallpaper returns value of Wallpaper conditional field and boolean which is true if field was set. GetWallpaperOverridden returns value of WallpaperOverridden conditional field. SetFlags sets flags for non-zero fields. SetWallpaper sets value of Wallpaper conditional field. SetWallpaperOverridden sets value of WallpaperOverridden 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. (*UpdatePeerWallpaper) Zero() bool *UpdatePeerWallpaper : UpdateClass *UpdatePeerWallpaper : github.com/gotd/td/bin.BareDecoder *UpdatePeerWallpaper : github.com/gotd/td/bin.BareEncoder *UpdatePeerWallpaper : github.com/gotd/td/bin.Decoder *UpdatePeerWallpaper : github.com/gotd/td/bin.Encoder *UpdatePeerWallpaper : github.com/gotd/td/bin.Object *UpdatePeerWallpaper : github.com/gotd/td/tdp.Object *UpdatePeerWallpaper : fmt.Stringer func UpdatePeerWallpaperArray.First() (v UpdatePeerWallpaper, ok bool) func UpdatePeerWallpaperArray.Last() (v UpdatePeerWallpaper, ok bool) func (*UpdatePeerWallpaperArray).Pop() (v UpdatePeerWallpaper, ok bool) func (*UpdatePeerWallpaperArray).PopFirst() (v UpdatePeerWallpaper, ok bool)
UpdatePeerWallpaperArray is adapter for slice of UpdatePeerWallpaper. 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 UpdatePeerWallpaper. Sort sorts slice of UpdatePeerWallpaper. SortStable sorts slice of UpdatePeerWallpaper. func UpdateClassArray.AsUpdatePeerWallpaper() (to UpdatePeerWallpaperArray) func UpdatePeerWallpaperArray.Retain(keep func(x UpdatePeerWallpaper) bool) UpdatePeerWallpaperArray func UpdatePeerWallpaperArray.Sort(less func(a, b UpdatePeerWallpaper) bool) UpdatePeerWallpaperArray func UpdatePeerWallpaperArray.SortStable(less func(a, b UpdatePeerWallpaper) bool) UpdatePeerWallpaperArray
UpdatePendingJoinRequests represents TL type `updatePendingJoinRequests#7063c3db`. Someone has requested to join a chat or channel See https://core.telegram.org/constructor/updatePendingJoinRequests for reference. Chat or channel IDs of users that have recently requested to join Number of pending join requests »¹ for the chat or channel Links: 1) https://core.telegram.org/api/invites#join-requests Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePendingJoinRequests from given interface. GetPeer returns value of Peer field. GetRecentRequesters returns value of RecentRequesters field. GetRequestsPending returns value of RequestsPending 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. (*UpdatePendingJoinRequests) Zero() bool *UpdatePendingJoinRequests : UpdateClass *UpdatePendingJoinRequests : github.com/gotd/td/bin.BareDecoder *UpdatePendingJoinRequests : github.com/gotd/td/bin.BareEncoder *UpdatePendingJoinRequests : github.com/gotd/td/bin.Decoder *UpdatePendingJoinRequests : github.com/gotd/td/bin.Encoder *UpdatePendingJoinRequests : github.com/gotd/td/bin.Object *UpdatePendingJoinRequests : github.com/gotd/td/tdp.Object *UpdatePendingJoinRequests : fmt.Stringer func UpdatePendingJoinRequestsArray.First() (v UpdatePendingJoinRequests, ok bool) func UpdatePendingJoinRequestsArray.Last() (v UpdatePendingJoinRequests, ok bool) func (*UpdatePendingJoinRequestsArray).Pop() (v UpdatePendingJoinRequests, ok bool) func (*UpdatePendingJoinRequestsArray).PopFirst() (v UpdatePendingJoinRequests, ok bool)
UpdatePendingJoinRequestsArray is adapter for slice of UpdatePendingJoinRequests. 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 UpdatePendingJoinRequests. Sort sorts slice of UpdatePendingJoinRequests. SortStable sorts slice of UpdatePendingJoinRequests. func UpdateClassArray.AsUpdatePendingJoinRequests() (to UpdatePendingJoinRequestsArray) func UpdatePendingJoinRequestsArray.Retain(keep func(x UpdatePendingJoinRequests) bool) UpdatePendingJoinRequestsArray func UpdatePendingJoinRequestsArray.Sort(less func(a, b UpdatePendingJoinRequests) bool) UpdatePendingJoinRequestsArray func UpdatePendingJoinRequestsArray.SortStable(less func(a, b UpdatePendingJoinRequests) bool) UpdatePendingJoinRequestsArray
UpdatePhoneCall represents TL type `updatePhoneCall#ab0f6b1e`. An incoming phone call See https://core.telegram.org/constructor/updatePhoneCall for reference. PhoneCall PhoneCallClass Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePhoneCall from given interface. GetPhoneCall returns value of PhoneCall 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. (*UpdatePhoneCall) Zero() bool *UpdatePhoneCall : UpdateClass *UpdatePhoneCall : github.com/gotd/td/bin.BareDecoder *UpdatePhoneCall : github.com/gotd/td/bin.BareEncoder *UpdatePhoneCall : github.com/gotd/td/bin.Decoder *UpdatePhoneCall : github.com/gotd/td/bin.Encoder *UpdatePhoneCall : github.com/gotd/td/bin.Object *UpdatePhoneCall : github.com/gotd/td/tdp.Object *UpdatePhoneCall : fmt.Stringer func UpdatePhoneCallArray.First() (v UpdatePhoneCall, ok bool) func UpdatePhoneCallArray.Last() (v UpdatePhoneCall, ok bool) func (*UpdatePhoneCallArray).Pop() (v UpdatePhoneCall, ok bool) func (*UpdatePhoneCallArray).PopFirst() (v UpdatePhoneCall, ok bool)
UpdatePhoneCallArray is adapter for slice of UpdatePhoneCall. 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 UpdatePhoneCall. Sort sorts slice of UpdatePhoneCall. SortStable sorts slice of UpdatePhoneCall. func UpdateClassArray.AsUpdatePhoneCall() (to UpdatePhoneCallArray) func UpdatePhoneCallArray.Retain(keep func(x UpdatePhoneCall) bool) UpdatePhoneCallArray func UpdatePhoneCallArray.Sort(less func(a, b UpdatePhoneCall) bool) UpdatePhoneCallArray func UpdatePhoneCallArray.SortStable(less func(a, b UpdatePhoneCall) bool) UpdatePhoneCallArray
UpdatePhoneCallSignalingData represents TL type `updatePhoneCallSignalingData#2661bf09`. Incoming phone call signaling payload See https://core.telegram.org/constructor/updatePhoneCallSignalingData for reference. Signaling payload Phone call ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePhoneCallSignalingData from given interface. GetData returns value of Data field. GetPhoneCallID returns value of PhoneCallID 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. (*UpdatePhoneCallSignalingData) Zero() bool *UpdatePhoneCallSignalingData : UpdateClass *UpdatePhoneCallSignalingData : github.com/gotd/td/bin.BareDecoder *UpdatePhoneCallSignalingData : github.com/gotd/td/bin.BareEncoder *UpdatePhoneCallSignalingData : github.com/gotd/td/bin.Decoder *UpdatePhoneCallSignalingData : github.com/gotd/td/bin.Encoder *UpdatePhoneCallSignalingData : github.com/gotd/td/bin.Object *UpdatePhoneCallSignalingData : github.com/gotd/td/tdp.Object *UpdatePhoneCallSignalingData : fmt.Stringer func UpdatePhoneCallSignalingDataArray.First() (v UpdatePhoneCallSignalingData, ok bool) func UpdatePhoneCallSignalingDataArray.Last() (v UpdatePhoneCallSignalingData, ok bool) func (*UpdatePhoneCallSignalingDataArray).Pop() (v UpdatePhoneCallSignalingData, ok bool) func (*UpdatePhoneCallSignalingDataArray).PopFirst() (v UpdatePhoneCallSignalingData, ok bool)
UpdatePhoneCallSignalingDataArray is adapter for slice of UpdatePhoneCallSignalingData. 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 UpdatePhoneCallSignalingData. Sort sorts slice of UpdatePhoneCallSignalingData. SortStable sorts slice of UpdatePhoneCallSignalingData. func UpdateClassArray.AsUpdatePhoneCallSignalingData() (to UpdatePhoneCallSignalingDataArray) func UpdatePhoneCallSignalingDataArray.Retain(keep func(x UpdatePhoneCallSignalingData) bool) UpdatePhoneCallSignalingDataArray func UpdatePhoneCallSignalingDataArray.Sort(less func(a, b UpdatePhoneCallSignalingData) bool) UpdatePhoneCallSignalingDataArray func UpdatePhoneCallSignalingDataArray.SortStable(less func(a, b UpdatePhoneCallSignalingData) bool) UpdatePhoneCallSignalingDataArray
UpdatePinnedChannelMessages represents TL type `updatePinnedChannelMessages#5bb98608`. Messages were pinned/unpinned in a channel/supergroup¹ Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updatePinnedChannelMessages for reference. Channel ID Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Messages Whether the messages were pinned or unpinned Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePinnedChannelMessages from given interface. GetChannelID returns value of ChannelID field. GetMessages returns value of Messages field. GetPinned returns value of Pinned conditional field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount field. SetFlags sets flags for non-zero fields. SetPinned sets value of Pinned 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. (*UpdatePinnedChannelMessages) Zero() bool *UpdatePinnedChannelMessages : UpdateClass *UpdatePinnedChannelMessages : github.com/gotd/td/bin.BareDecoder *UpdatePinnedChannelMessages : github.com/gotd/td/bin.BareEncoder *UpdatePinnedChannelMessages : github.com/gotd/td/bin.Decoder *UpdatePinnedChannelMessages : github.com/gotd/td/bin.Encoder *UpdatePinnedChannelMessages : github.com/gotd/td/bin.Object *UpdatePinnedChannelMessages : github.com/gotd/td/tdp.Object *UpdatePinnedChannelMessages : fmt.Stringer func UpdatePinnedChannelMessagesArray.First() (v UpdatePinnedChannelMessages, ok bool) func UpdatePinnedChannelMessagesArray.Last() (v UpdatePinnedChannelMessages, ok bool) func (*UpdatePinnedChannelMessagesArray).Pop() (v UpdatePinnedChannelMessages, ok bool) func (*UpdatePinnedChannelMessagesArray).PopFirst() (v UpdatePinnedChannelMessages, ok bool)
UpdatePinnedChannelMessagesArray is adapter for slice of UpdatePinnedChannelMessages. 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 UpdatePinnedChannelMessages. Sort sorts slice of UpdatePinnedChannelMessages. SortStable sorts slice of UpdatePinnedChannelMessages. func UpdateClassArray.AsUpdatePinnedChannelMessages() (to UpdatePinnedChannelMessagesArray) func UpdatePinnedChannelMessagesArray.Retain(keep func(x UpdatePinnedChannelMessages) bool) UpdatePinnedChannelMessagesArray func UpdatePinnedChannelMessagesArray.Sort(less func(a, b UpdatePinnedChannelMessages) bool) UpdatePinnedChannelMessagesArray func UpdatePinnedChannelMessagesArray.SortStable(less func(a, b UpdatePinnedChannelMessages) bool) UpdatePinnedChannelMessagesArray
UpdatePinnedDialogs represents TL type `updatePinnedDialogs#fa0f3ca2`. Pinned dialogs were updated See https://core.telegram.org/constructor/updatePinnedDialogs for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. New order of pinned dialogs Use SetOrder and GetOrder helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePinnedDialogs from given interface. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetOrder returns value of Order conditional field and boolean which is true if field was set. MapOrder returns field Order wrapped in DialogPeerClassArray helper. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID conditional field. SetOrder sets value of Order 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. (*UpdatePinnedDialogs) Zero() bool *UpdatePinnedDialogs : UpdateClass *UpdatePinnedDialogs : github.com/gotd/td/bin.BareDecoder *UpdatePinnedDialogs : github.com/gotd/td/bin.BareEncoder *UpdatePinnedDialogs : github.com/gotd/td/bin.Decoder *UpdatePinnedDialogs : github.com/gotd/td/bin.Encoder *UpdatePinnedDialogs : github.com/gotd/td/bin.Object *UpdatePinnedDialogs : github.com/gotd/td/tdp.Object *UpdatePinnedDialogs : fmt.Stringer func UpdatePinnedDialogsArray.First() (v UpdatePinnedDialogs, ok bool) func UpdatePinnedDialogsArray.Last() (v UpdatePinnedDialogs, ok bool) func (*UpdatePinnedDialogsArray).Pop() (v UpdatePinnedDialogs, ok bool) func (*UpdatePinnedDialogsArray).PopFirst() (v UpdatePinnedDialogs, ok bool)
UpdatePinnedDialogsArray is adapter for slice of UpdatePinnedDialogs. 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 UpdatePinnedDialogs. Sort sorts slice of UpdatePinnedDialogs. SortStable sorts slice of UpdatePinnedDialogs. func UpdateClassArray.AsUpdatePinnedDialogs() (to UpdatePinnedDialogsArray) func UpdatePinnedDialogsArray.Retain(keep func(x UpdatePinnedDialogs) bool) UpdatePinnedDialogsArray func UpdatePinnedDialogsArray.Sort(less func(a, b UpdatePinnedDialogs) bool) UpdatePinnedDialogsArray func UpdatePinnedDialogsArray.SortStable(less func(a, b UpdatePinnedDialogs) bool) UpdatePinnedDialogsArray
UpdatePinnedMessages represents TL type `updatePinnedMessages#ed85eab5`. Some messages were pinned in a chat See https://core.telegram.org/constructor/updatePinnedMessages for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message IDs Peer Whether the messages were pinned or unpinned Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePinnedMessages from given interface. GetMessages returns value of Messages field. GetPeer returns value of Peer field. GetPinned returns value of Pinned conditional field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount field. SetFlags sets flags for non-zero fields. SetPinned sets value of Pinned 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. (*UpdatePinnedMessages) Zero() bool *UpdatePinnedMessages : UpdateClass *UpdatePinnedMessages : github.com/gotd/td/bin.BareDecoder *UpdatePinnedMessages : github.com/gotd/td/bin.BareEncoder *UpdatePinnedMessages : github.com/gotd/td/bin.Decoder *UpdatePinnedMessages : github.com/gotd/td/bin.Encoder *UpdatePinnedMessages : github.com/gotd/td/bin.Object *UpdatePinnedMessages : github.com/gotd/td/tdp.Object *UpdatePinnedMessages : fmt.Stringer func UpdatePinnedMessagesArray.First() (v UpdatePinnedMessages, ok bool) func UpdatePinnedMessagesArray.Last() (v UpdatePinnedMessages, ok bool) func (*UpdatePinnedMessagesArray).Pop() (v UpdatePinnedMessages, ok bool) func (*UpdatePinnedMessagesArray).PopFirst() (v UpdatePinnedMessages, ok bool)
UpdatePinnedMessagesArray is adapter for slice of UpdatePinnedMessages. 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 UpdatePinnedMessages. Sort sorts slice of UpdatePinnedMessages. SortStable sorts slice of UpdatePinnedMessages. func UpdateClassArray.AsUpdatePinnedMessages() (to UpdatePinnedMessagesArray) func UpdatePinnedMessagesArray.Retain(keep func(x UpdatePinnedMessages) bool) UpdatePinnedMessagesArray func UpdatePinnedMessagesArray.Sort(less func(a, b UpdatePinnedMessages) bool) UpdatePinnedMessagesArray func UpdatePinnedMessagesArray.SortStable(less func(a, b UpdatePinnedMessages) bool) UpdatePinnedMessagesArray
UpdatePrivacy represents TL type `updatePrivacy#ee3b272a`. Privacy rules were changed See https://core.telegram.org/constructor/updatePrivacy for reference. Peers to which the privacy rules apply New privacy rules Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatePrivacy from given interface. GetKey returns value of Key field. GetRules returns value of Rules field. MapRules returns field Rules wrapped in PrivacyRuleClassArray 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. (*UpdatePrivacy) Zero() bool *UpdatePrivacy : UpdateClass *UpdatePrivacy : github.com/gotd/td/bin.BareDecoder *UpdatePrivacy : github.com/gotd/td/bin.BareEncoder *UpdatePrivacy : github.com/gotd/td/bin.Decoder *UpdatePrivacy : github.com/gotd/td/bin.Encoder *UpdatePrivacy : github.com/gotd/td/bin.Object *UpdatePrivacy : github.com/gotd/td/tdp.Object *UpdatePrivacy : fmt.Stringer func UpdatePrivacyArray.First() (v UpdatePrivacy, ok bool) func UpdatePrivacyArray.Last() (v UpdatePrivacy, ok bool) func (*UpdatePrivacyArray).Pop() (v UpdatePrivacy, ok bool) func (*UpdatePrivacyArray).PopFirst() (v UpdatePrivacy, ok bool)
UpdatePrivacyArray is adapter for slice of UpdatePrivacy. 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 UpdatePrivacy. Sort sorts slice of UpdatePrivacy. SortStable sorts slice of UpdatePrivacy. func UpdateClassArray.AsUpdatePrivacy() (to UpdatePrivacyArray) func UpdatePrivacyArray.Retain(keep func(x UpdatePrivacy) bool) UpdatePrivacyArray func UpdatePrivacyArray.Sort(less func(a, b UpdatePrivacy) bool) UpdatePrivacyArray func UpdatePrivacyArray.SortStable(less func(a, b UpdatePrivacy) bool) UpdatePrivacyArray
UpdatePtsChanged represents TL type `updatePtsChanged#3354678f`. Common message box sequence PTS¹ has changed, state has to be refetched using updates getState² Links: 1. https://core.telegram.org/api/updates 2. https://core.telegram.org/api/updates#fetching-state See https://core.telegram.org/constructor/updatePtsChanged 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. (*UpdatePtsChanged) Zero() bool *UpdatePtsChanged : UpdateClass *UpdatePtsChanged : github.com/gotd/td/bin.BareDecoder *UpdatePtsChanged : github.com/gotd/td/bin.BareEncoder *UpdatePtsChanged : github.com/gotd/td/bin.Decoder *UpdatePtsChanged : github.com/gotd/td/bin.Encoder *UpdatePtsChanged : github.com/gotd/td/bin.Object *UpdatePtsChanged : github.com/gotd/td/tdp.Object *UpdatePtsChanged : fmt.Stringer
UpdateReadChannelDiscussionInbox represents TL type `updateReadChannelDiscussionInbox#d6b19546`. Incoming comments in a discussion thread¹ were marked as read Links: 1. https://core.telegram.org/api/threads See https://core.telegram.org/constructor/updateReadChannelDiscussionInbox for reference. If set, contains the ID of the channel¹ that contains the post that started the comment thread² in the discussion group (channel_id) Links: 1) https://core.telegram.org/api/channel 2) https://core.telegram.org/api/threads Use SetBroadcastID and GetBroadcastID helpers. If set, contains the ID of the channel post that started the comment thread¹ Links: 1) https://core.telegram.org/api/threads Use SetBroadcastPost and GetBroadcastPost helpers. Discussion group ID¹ Links: 1) https://core.telegram.org/api/channel Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID of latest read incoming message for this thread¹ Links: 1) https://core.telegram.org/api/threads ID of the group message that started the thread¹ (message in linked discussion group) Links: 1) https://core.telegram.org/api/threads Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateReadChannelDiscussionInbox from given interface. GetBroadcastID returns value of BroadcastID conditional field and boolean which is true if field was set. GetBroadcastPost returns value of BroadcastPost conditional field and boolean which is true if field was set. GetChannelID returns value of ChannelID field. GetReadMaxID returns value of ReadMaxID field. GetTopMsgID returns value of TopMsgID field. SetBroadcastID sets value of BroadcastID conditional field. SetBroadcastPost sets value of BroadcastPost 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. (*UpdateReadChannelDiscussionInbox) Zero() bool *UpdateReadChannelDiscussionInbox : UpdateClass *UpdateReadChannelDiscussionInbox : github.com/gotd/td/bin.BareDecoder *UpdateReadChannelDiscussionInbox : github.com/gotd/td/bin.BareEncoder *UpdateReadChannelDiscussionInbox : github.com/gotd/td/bin.Decoder *UpdateReadChannelDiscussionInbox : github.com/gotd/td/bin.Encoder *UpdateReadChannelDiscussionInbox : github.com/gotd/td/bin.Object *UpdateReadChannelDiscussionInbox : github.com/gotd/td/tdp.Object *UpdateReadChannelDiscussionInbox : fmt.Stringer func UpdateReadChannelDiscussionInboxArray.First() (v UpdateReadChannelDiscussionInbox, ok bool) func UpdateReadChannelDiscussionInboxArray.Last() (v UpdateReadChannelDiscussionInbox, ok bool) func (*UpdateReadChannelDiscussionInboxArray).Pop() (v UpdateReadChannelDiscussionInbox, ok bool) func (*UpdateReadChannelDiscussionInboxArray).PopFirst() (v UpdateReadChannelDiscussionInbox, ok bool)
UpdateReadChannelDiscussionInboxArray is adapter for slice of UpdateReadChannelDiscussionInbox. 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 UpdateReadChannelDiscussionInbox. Sort sorts slice of UpdateReadChannelDiscussionInbox. SortStable sorts slice of UpdateReadChannelDiscussionInbox. func UpdateClassArray.AsUpdateReadChannelDiscussionInbox() (to UpdateReadChannelDiscussionInboxArray) func UpdateReadChannelDiscussionInboxArray.Retain(keep func(x UpdateReadChannelDiscussionInbox) bool) UpdateReadChannelDiscussionInboxArray func UpdateReadChannelDiscussionInboxArray.Sort(less func(a, b UpdateReadChannelDiscussionInbox) bool) UpdateReadChannelDiscussionInboxArray func UpdateReadChannelDiscussionInboxArray.SortStable(less func(a, b UpdateReadChannelDiscussionInbox) bool) UpdateReadChannelDiscussionInboxArray
UpdateReadChannelDiscussionOutbox represents TL type `updateReadChannelDiscussionOutbox#695c9e7c`. Outgoing comments in a discussion thread¹ were marked as read Links: 1. https://core.telegram.org/api/threads See https://core.telegram.org/constructor/updateReadChannelDiscussionOutbox for reference. Supergroup ID¹ Links: 1) https://core.telegram.org/api/channel Message ID of latest read outgoing message for this thread¹ Links: 1) https://core.telegram.org/api/threads ID of the group message that started the thread¹ Links: 1) https://core.telegram.org/api/threads Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateReadChannelDiscussionOutbox from given interface. GetChannelID returns value of ChannelID field. GetReadMaxID returns value of ReadMaxID field. GetTopMsgID returns value of TopMsgID 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. (*UpdateReadChannelDiscussionOutbox) Zero() bool *UpdateReadChannelDiscussionOutbox : UpdateClass *UpdateReadChannelDiscussionOutbox : github.com/gotd/td/bin.BareDecoder *UpdateReadChannelDiscussionOutbox : github.com/gotd/td/bin.BareEncoder *UpdateReadChannelDiscussionOutbox : github.com/gotd/td/bin.Decoder *UpdateReadChannelDiscussionOutbox : github.com/gotd/td/bin.Encoder *UpdateReadChannelDiscussionOutbox : github.com/gotd/td/bin.Object *UpdateReadChannelDiscussionOutbox : github.com/gotd/td/tdp.Object *UpdateReadChannelDiscussionOutbox : fmt.Stringer func UpdateReadChannelDiscussionOutboxArray.First() (v UpdateReadChannelDiscussionOutbox, ok bool) func UpdateReadChannelDiscussionOutboxArray.Last() (v UpdateReadChannelDiscussionOutbox, ok bool) func (*UpdateReadChannelDiscussionOutboxArray).Pop() (v UpdateReadChannelDiscussionOutbox, ok bool) func (*UpdateReadChannelDiscussionOutboxArray).PopFirst() (v UpdateReadChannelDiscussionOutbox, ok bool)
UpdateReadChannelDiscussionOutboxArray is adapter for slice of UpdateReadChannelDiscussionOutbox. 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 UpdateReadChannelDiscussionOutbox. Sort sorts slice of UpdateReadChannelDiscussionOutbox. SortStable sorts slice of UpdateReadChannelDiscussionOutbox. func UpdateClassArray.AsUpdateReadChannelDiscussionOutbox() (to UpdateReadChannelDiscussionOutboxArray) func UpdateReadChannelDiscussionOutboxArray.Retain(keep func(x UpdateReadChannelDiscussionOutbox) bool) UpdateReadChannelDiscussionOutboxArray func UpdateReadChannelDiscussionOutboxArray.Sort(less func(a, b UpdateReadChannelDiscussionOutbox) bool) UpdateReadChannelDiscussionOutboxArray func UpdateReadChannelDiscussionOutboxArray.SortStable(less func(a, b UpdateReadChannelDiscussionOutbox) bool) UpdateReadChannelDiscussionOutboxArray
UpdateReadChannelInbox represents TL type `updateReadChannelInbox#922e6e10`. Incoming messages in a channel/supergroup¹ were read Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateReadChannelInbox for reference. Channel/supergroup ID Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. Position up to which all incoming messages are read. Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Count of messages weren't read yet Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateReadChannelInbox from given interface. GetChannelID returns value of ChannelID field. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetMaxID returns value of MaxID field. GetPts returns value of Pts field. GetStillUnreadCount returns value of StillUnreadCount field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID 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. (*UpdateReadChannelInbox) Zero() bool *UpdateReadChannelInbox : UpdateClass *UpdateReadChannelInbox : github.com/gotd/td/bin.BareDecoder *UpdateReadChannelInbox : github.com/gotd/td/bin.BareEncoder *UpdateReadChannelInbox : github.com/gotd/td/bin.Decoder *UpdateReadChannelInbox : github.com/gotd/td/bin.Encoder *UpdateReadChannelInbox : github.com/gotd/td/bin.Object *UpdateReadChannelInbox : github.com/gotd/td/tdp.Object *UpdateReadChannelInbox : fmt.Stringer func UpdateReadChannelInboxArray.First() (v UpdateReadChannelInbox, ok bool) func UpdateReadChannelInboxArray.Last() (v UpdateReadChannelInbox, ok bool) func (*UpdateReadChannelInboxArray).Pop() (v UpdateReadChannelInbox, ok bool) func (*UpdateReadChannelInboxArray).PopFirst() (v UpdateReadChannelInbox, ok bool)
UpdateReadChannelInboxArray is adapter for slice of UpdateReadChannelInbox. 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 UpdateReadChannelInbox. Sort sorts slice of UpdateReadChannelInbox. SortStable sorts slice of UpdateReadChannelInbox. func UpdateClassArray.AsUpdateReadChannelInbox() (to UpdateReadChannelInboxArray) func UpdateReadChannelInboxArray.Retain(keep func(x UpdateReadChannelInbox) bool) UpdateReadChannelInboxArray func UpdateReadChannelInboxArray.Sort(less func(a, b UpdateReadChannelInbox) bool) UpdateReadChannelInboxArray func UpdateReadChannelInboxArray.SortStable(less func(a, b UpdateReadChannelInbox) bool) UpdateReadChannelInboxArray
UpdateReadChannelOutbox represents TL type `updateReadChannelOutbox#b75f99a9`. Outgoing messages in a channel/supergroup¹ were read Links: 1. https://core.telegram.org/api/channel See https://core.telegram.org/constructor/updateReadChannelOutbox for reference. Channel/supergroup ID Position up to which all outgoing messages are read. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateReadChannelOutbox from given interface. GetChannelID returns value of ChannelID field. GetMaxID returns value of MaxID 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. (*UpdateReadChannelOutbox) Zero() bool *UpdateReadChannelOutbox : UpdateClass *UpdateReadChannelOutbox : github.com/gotd/td/bin.BareDecoder *UpdateReadChannelOutbox : github.com/gotd/td/bin.BareEncoder *UpdateReadChannelOutbox : github.com/gotd/td/bin.Decoder *UpdateReadChannelOutbox : github.com/gotd/td/bin.Encoder *UpdateReadChannelOutbox : github.com/gotd/td/bin.Object *UpdateReadChannelOutbox : github.com/gotd/td/tdp.Object *UpdateReadChannelOutbox : fmt.Stringer func UpdateReadChannelOutboxArray.First() (v UpdateReadChannelOutbox, ok bool) func UpdateReadChannelOutboxArray.Last() (v UpdateReadChannelOutbox, ok bool) func (*UpdateReadChannelOutboxArray).Pop() (v UpdateReadChannelOutbox, ok bool) func (*UpdateReadChannelOutboxArray).PopFirst() (v UpdateReadChannelOutbox, ok bool)
UpdateReadChannelOutboxArray is adapter for slice of UpdateReadChannelOutbox. 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 UpdateReadChannelOutbox. Sort sorts slice of UpdateReadChannelOutbox. SortStable sorts slice of UpdateReadChannelOutbox. func UpdateClassArray.AsUpdateReadChannelOutbox() (to UpdateReadChannelOutboxArray) func UpdateReadChannelOutboxArray.Retain(keep func(x UpdateReadChannelOutbox) bool) UpdateReadChannelOutboxArray func UpdateReadChannelOutboxArray.Sort(less func(a, b UpdateReadChannelOutbox) bool) UpdateReadChannelOutboxArray func UpdateReadChannelOutboxArray.SortStable(less func(a, b UpdateReadChannelOutbox) bool) UpdateReadChannelOutboxArray
UpdateReadFeaturedEmojiStickers represents TL type `updateReadFeaturedEmojiStickers#fb4c496c`. Some featured custom emoji stickers¹ were marked as read Links: 1. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/constructor/updateReadFeaturedEmojiStickers 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. (*UpdateReadFeaturedEmojiStickers) Zero() bool *UpdateReadFeaturedEmojiStickers : UpdateClass *UpdateReadFeaturedEmojiStickers : github.com/gotd/td/bin.BareDecoder *UpdateReadFeaturedEmojiStickers : github.com/gotd/td/bin.BareEncoder *UpdateReadFeaturedEmojiStickers : github.com/gotd/td/bin.Decoder *UpdateReadFeaturedEmojiStickers : github.com/gotd/td/bin.Encoder *UpdateReadFeaturedEmojiStickers : github.com/gotd/td/bin.Object *UpdateReadFeaturedEmojiStickers : github.com/gotd/td/tdp.Object *UpdateReadFeaturedEmojiStickers : fmt.Stringer
UpdateReadFeaturedStickers represents TL type `updateReadFeaturedStickers#571d2742`. Some featured stickers were marked as read See https://core.telegram.org/constructor/updateReadFeaturedStickers 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. (*UpdateReadFeaturedStickers) Zero() bool *UpdateReadFeaturedStickers : UpdateClass *UpdateReadFeaturedStickers : github.com/gotd/td/bin.BareDecoder *UpdateReadFeaturedStickers : github.com/gotd/td/bin.BareEncoder *UpdateReadFeaturedStickers : github.com/gotd/td/bin.Decoder *UpdateReadFeaturedStickers : github.com/gotd/td/bin.Encoder *UpdateReadFeaturedStickers : github.com/gotd/td/bin.Object *UpdateReadFeaturedStickers : github.com/gotd/td/tdp.Object *UpdateReadFeaturedStickers : fmt.Stringer
UpdateReadHistoryInbox represents TL type `updateReadHistoryInbox#9c974fdf`. Incoming messages were read See https://core.telegram.org/constructor/updateReadHistoryInbox for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. Maximum ID of messages read Peer Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Number of messages that are still unread Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateReadHistoryInbox from given interface. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetMaxID returns value of MaxID field. GetPeer returns value of Peer field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount field. GetStillUnreadCount returns value of StillUnreadCount field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID 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. (*UpdateReadHistoryInbox) Zero() bool *UpdateReadHistoryInbox : UpdateClass *UpdateReadHistoryInbox : github.com/gotd/td/bin.BareDecoder *UpdateReadHistoryInbox : github.com/gotd/td/bin.BareEncoder *UpdateReadHistoryInbox : github.com/gotd/td/bin.Decoder *UpdateReadHistoryInbox : github.com/gotd/td/bin.Encoder *UpdateReadHistoryInbox : github.com/gotd/td/bin.Object *UpdateReadHistoryInbox : github.com/gotd/td/tdp.Object *UpdateReadHistoryInbox : fmt.Stringer func UpdateReadHistoryInboxArray.First() (v UpdateReadHistoryInbox, ok bool) func UpdateReadHistoryInboxArray.Last() (v UpdateReadHistoryInbox, ok bool) func (*UpdateReadHistoryInboxArray).Pop() (v UpdateReadHistoryInbox, ok bool) func (*UpdateReadHistoryInboxArray).PopFirst() (v UpdateReadHistoryInbox, ok bool)
UpdateReadHistoryInboxArray is adapter for slice of UpdateReadHistoryInbox. 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 UpdateReadHistoryInbox. Sort sorts slice of UpdateReadHistoryInbox. SortStable sorts slice of UpdateReadHistoryInbox. func UpdateClassArray.AsUpdateReadHistoryInbox() (to UpdateReadHistoryInboxArray) func UpdateReadHistoryInboxArray.Retain(keep func(x UpdateReadHistoryInbox) bool) UpdateReadHistoryInboxArray func UpdateReadHistoryInboxArray.Sort(less func(a, b UpdateReadHistoryInbox) bool) UpdateReadHistoryInboxArray func UpdateReadHistoryInboxArray.SortStable(less func(a, b UpdateReadHistoryInbox) bool) UpdateReadHistoryInboxArray
UpdateReadHistoryOutbox represents TL type `updateReadHistoryOutbox#2f2f21bf`. Outgoing messages were read See https://core.telegram.org/constructor/updateReadHistoryOutbox for reference. Maximum ID of read outgoing messages Peer Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateReadHistoryOutbox from given interface. GetMaxID returns value of MaxID field. GetPeer returns value of Peer field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount 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. (*UpdateReadHistoryOutbox) Zero() bool *UpdateReadHistoryOutbox : UpdateClass *UpdateReadHistoryOutbox : github.com/gotd/td/bin.BareDecoder *UpdateReadHistoryOutbox : github.com/gotd/td/bin.BareEncoder *UpdateReadHistoryOutbox : github.com/gotd/td/bin.Decoder *UpdateReadHistoryOutbox : github.com/gotd/td/bin.Encoder *UpdateReadHistoryOutbox : github.com/gotd/td/bin.Object *UpdateReadHistoryOutbox : github.com/gotd/td/tdp.Object *UpdateReadHistoryOutbox : fmt.Stringer func UpdateReadHistoryOutboxArray.First() (v UpdateReadHistoryOutbox, ok bool) func UpdateReadHistoryOutboxArray.Last() (v UpdateReadHistoryOutbox, ok bool) func (*UpdateReadHistoryOutboxArray).Pop() (v UpdateReadHistoryOutbox, ok bool) func (*UpdateReadHistoryOutboxArray).PopFirst() (v UpdateReadHistoryOutbox, ok bool)
UpdateReadHistoryOutboxArray is adapter for slice of UpdateReadHistoryOutbox. 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 UpdateReadHistoryOutbox. Sort sorts slice of UpdateReadHistoryOutbox. SortStable sorts slice of UpdateReadHistoryOutbox. func UpdateClassArray.AsUpdateReadHistoryOutbox() (to UpdateReadHistoryOutboxArray) func UpdateReadHistoryOutboxArray.Retain(keep func(x UpdateReadHistoryOutbox) bool) UpdateReadHistoryOutboxArray func UpdateReadHistoryOutboxArray.Sort(less func(a, b UpdateReadHistoryOutbox) bool) UpdateReadHistoryOutboxArray func UpdateReadHistoryOutboxArray.SortStable(less func(a, b UpdateReadHistoryOutbox) bool) UpdateReadHistoryOutboxArray
UpdateReadMessagesContents represents TL type `updateReadMessagesContents#f8227181`. Contents of messages in the common message box¹ were read Links: 1. https://core.telegram.org/api/updates See https://core.telegram.org/constructor/updateReadMessagesContents for reference. When was the last message in messages marked as read. Use SetDate and GetDate helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields IDs of read messages Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateReadMessagesContents from given interface. GetDate returns value of Date conditional field and boolean which is true if field was set. GetMessages returns value of Messages field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount field. SetDate sets value of Date 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. (*UpdateReadMessagesContents) Zero() bool *UpdateReadMessagesContents : UpdateClass *UpdateReadMessagesContents : github.com/gotd/td/bin.BareDecoder *UpdateReadMessagesContents : github.com/gotd/td/bin.BareEncoder *UpdateReadMessagesContents : github.com/gotd/td/bin.Decoder *UpdateReadMessagesContents : github.com/gotd/td/bin.Encoder *UpdateReadMessagesContents : github.com/gotd/td/bin.Object *UpdateReadMessagesContents : github.com/gotd/td/tdp.Object *UpdateReadMessagesContents : fmt.Stringer func UpdateReadMessagesContentsArray.First() (v UpdateReadMessagesContents, ok bool) func UpdateReadMessagesContentsArray.Last() (v UpdateReadMessagesContents, ok bool) func (*UpdateReadMessagesContentsArray).Pop() (v UpdateReadMessagesContents, ok bool) func (*UpdateReadMessagesContentsArray).PopFirst() (v UpdateReadMessagesContents, ok bool)
UpdateReadMessagesContentsArray is adapter for slice of UpdateReadMessagesContents. 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 UpdateReadMessagesContents. Sort sorts slice of UpdateReadMessagesContents. SortStable sorts slice of UpdateReadMessagesContents. func UpdateClassArray.AsUpdateReadMessagesContents() (to UpdateReadMessagesContentsArray) func UpdateReadMessagesContentsArray.Retain(keep func(x UpdateReadMessagesContents) bool) UpdateReadMessagesContentsArray func UpdateReadMessagesContentsArray.Sort(less func(a, b UpdateReadMessagesContents) bool) UpdateReadMessagesContentsArray func UpdateReadMessagesContentsArray.SortStable(less func(a, b UpdateReadMessagesContents) bool) UpdateReadMessagesContentsArray
UpdateReadStories represents TL type `updateReadStories#f74e932b`. Stories of a specific peer were marked as read. See https://core.telegram.org/constructor/updateReadStories for reference. ID of the last story that was marked as read The peer Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateReadStories from given interface. GetMaxID returns value of MaxID 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. (*UpdateReadStories) Zero() bool *UpdateReadStories : UpdateClass *UpdateReadStories : github.com/gotd/td/bin.BareDecoder *UpdateReadStories : github.com/gotd/td/bin.BareEncoder *UpdateReadStories : github.com/gotd/td/bin.Decoder *UpdateReadStories : github.com/gotd/td/bin.Encoder *UpdateReadStories : github.com/gotd/td/bin.Object *UpdateReadStories : github.com/gotd/td/tdp.Object *UpdateReadStories : fmt.Stringer func UpdateReadStoriesArray.First() (v UpdateReadStories, ok bool) func UpdateReadStoriesArray.Last() (v UpdateReadStories, ok bool) func (*UpdateReadStoriesArray).Pop() (v UpdateReadStories, ok bool) func (*UpdateReadStoriesArray).PopFirst() (v UpdateReadStories, ok bool)
UpdateReadStoriesArray is adapter for slice of UpdateReadStories. 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 UpdateReadStories. Sort sorts slice of UpdateReadStories. SortStable sorts slice of UpdateReadStories. func UpdateClassArray.AsUpdateReadStories() (to UpdateReadStoriesArray) func UpdateReadStoriesArray.Retain(keep func(x UpdateReadStories) bool) UpdateReadStoriesArray func UpdateReadStoriesArray.Sort(less func(a, b UpdateReadStories) bool) UpdateReadStoriesArray func UpdateReadStoriesArray.SortStable(less func(a, b UpdateReadStories) bool) UpdateReadStoriesArray
UpdateRecentEmojiStatuses represents TL type `updateRecentEmojiStatuses#30f443db`. The list of recent emoji statuses¹ has changed Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/constructor/updateRecentEmojiStatuses 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. (*UpdateRecentEmojiStatuses) Zero() bool *UpdateRecentEmojiStatuses : UpdateClass *UpdateRecentEmojiStatuses : github.com/gotd/td/bin.BareDecoder *UpdateRecentEmojiStatuses : github.com/gotd/td/bin.BareEncoder *UpdateRecentEmojiStatuses : github.com/gotd/td/bin.Decoder *UpdateRecentEmojiStatuses : github.com/gotd/td/bin.Encoder *UpdateRecentEmojiStatuses : github.com/gotd/td/bin.Object *UpdateRecentEmojiStatuses : github.com/gotd/td/tdp.Object *UpdateRecentEmojiStatuses : fmt.Stringer
UpdateRecentReactions represents TL type `updateRecentReactions#6f7863f4`. The list of recent message reactions¹ has changed Links: 1. https://core.telegram.org/api/reactions See https://core.telegram.org/constructor/updateRecentReactions 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. (*UpdateRecentReactions) Zero() bool *UpdateRecentReactions : UpdateClass *UpdateRecentReactions : github.com/gotd/td/bin.BareDecoder *UpdateRecentReactions : github.com/gotd/td/bin.BareEncoder *UpdateRecentReactions : github.com/gotd/td/bin.Decoder *UpdateRecentReactions : github.com/gotd/td/bin.Encoder *UpdateRecentReactions : github.com/gotd/td/bin.Object *UpdateRecentReactions : github.com/gotd/td/tdp.Object *UpdateRecentReactions : fmt.Stringer
UpdateRecentStickers represents TL type `updateRecentStickers#9a422c20`. The recent sticker list was updated See https://core.telegram.org/constructor/updateRecentStickers 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. (*UpdateRecentStickers) Zero() bool *UpdateRecentStickers : UpdateClass *UpdateRecentStickers : github.com/gotd/td/bin.BareDecoder *UpdateRecentStickers : github.com/gotd/td/bin.BareEncoder *UpdateRecentStickers : github.com/gotd/td/bin.Decoder *UpdateRecentStickers : github.com/gotd/td/bin.Encoder *UpdateRecentStickers : github.com/gotd/td/bin.Object *UpdateRecentStickers : github.com/gotd/td/tdp.Object *UpdateRecentStickers : fmt.Stringer
Updates represents TL type `updates#74ae4240`. See https://core.telegram.org/constructor/updates for reference. Chats field of Updates. Date field of Updates. Seq field of Updates. Updates field of Updates. Users field of Updates. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Updates from given interface. GetChats returns value of Chats field. GetDate returns value of Date field. GetSeq returns value of Seq field. GetUpdates returns value of Updates field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapUpdates returns field Updates wrapped in UpdateClassArray 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. (*Updates) Zero() bool *Updates : UpdatesClass *Updates : github.com/gotd/td/bin.BareDecoder *Updates : github.com/gotd/td/bin.BareEncoder *Updates : github.com/gotd/td/bin.Decoder *Updates : github.com/gotd/td/bin.Encoder *Updates : github.com/gotd/td/bin.Object *Updates : github.com/gotd/td/tdp.Object *Updates : fmt.Stringer func UpdatesArray.First() (v Updates, ok bool) func UpdatesArray.Last() (v Updates, ok bool) func (*UpdatesArray).Pop() (v Updates, ok bool) func (*UpdatesArray).PopFirst() (v Updates, ok bool)
UpdatesArray is adapter for slice of Updates. 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 Updates. Sort sorts slice of Updates. SortByDate sorts slice of Updates by Date. SortStable sorts slice of Updates. SortStableByDate sorts slice of Updates by Date. func UpdatesArray.Retain(keep func(x Updates) bool) UpdatesArray func UpdatesArray.Sort(less func(a, b Updates) bool) UpdatesArray func UpdatesArray.SortByDate() UpdatesArray func UpdatesArray.SortStable(less func(a, b Updates) bool) UpdatesArray func UpdatesArray.SortStableByDate() UpdatesArray func UpdatesClassArray.AsUpdates() (to UpdatesArray)
UpdateSavedGifs represents TL type `updateSavedGifs#9375341e`. The saved gif list has changed, the client should refetch it using messages getSavedGifs¹ Links: 1. https://core.telegram.org/method/messages.getSavedGifs See https://core.telegram.org/constructor/updateSavedGifs 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. (*UpdateSavedGifs) Zero() bool *UpdateSavedGifs : UpdateClass *UpdateSavedGifs : github.com/gotd/td/bin.BareDecoder *UpdateSavedGifs : github.com/gotd/td/bin.BareEncoder *UpdateSavedGifs : github.com/gotd/td/bin.Decoder *UpdateSavedGifs : github.com/gotd/td/bin.Encoder *UpdateSavedGifs : github.com/gotd/td/bin.Object *UpdateSavedGifs : github.com/gotd/td/tdp.Object *UpdateSavedGifs : fmt.Stringer
UpdateSavedRingtones represents TL type `updateSavedRingtones#74d8be99`. The list of saved notification sounds has changed, use account.getSavedRingtones¹ to fetch the new list. Links: 1. https://core.telegram.org/method/account.getSavedRingtones See https://core.telegram.org/constructor/updateSavedRingtones 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. (*UpdateSavedRingtones) Zero() bool *UpdateSavedRingtones : UpdateClass *UpdateSavedRingtones : github.com/gotd/td/bin.BareDecoder *UpdateSavedRingtones : github.com/gotd/td/bin.BareEncoder *UpdateSavedRingtones : github.com/gotd/td/bin.Decoder *UpdateSavedRingtones : github.com/gotd/td/bin.Encoder *UpdateSavedRingtones : github.com/gotd/td/bin.Object *UpdateSavedRingtones : github.com/gotd/td/tdp.Object *UpdateSavedRingtones : fmt.Stringer
Updates boxes the UpdatesClass providing a helper. Info about the payment Decode implements bin.Decoder for UpdatesBox. Encode implements bin.Encode for UpdatesBox. *UpdatesBox : github.com/gotd/td/bin.Decoder *UpdatesBox : github.com/gotd/td/bin.Encoder *UpdatesBox : github.com/gotd/td/bin.Object
UpdatesChannelDifference represents TL type `updates.channelDifference#2064674e`. The new updates See https://core.telegram.org/constructor/updates.channelDifference for reference. Chats Whether there are more updates to be fetched using getDifference, starting from the provided pts Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields New messages Other updates The PTS¹ from which to start getting updates the next time Links: 1) https://core.telegram.org/api/updates Clients are supposed to refetch the channel difference after timeout seconds have elapsed Use SetTimeout and GetTimeout helpers. Users AsNotEmpty tries to map UpdatesChannelDifference to NotEmptyUpdatesChannelDifference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesChannelDifference from given interface. GetChats returns value of Chats field. GetFinal returns value of Final conditional field. GetNewMessages returns value of NewMessages field. GetOtherUpdates returns value of OtherUpdates field. GetPts returns value of Pts field. GetTimeout returns value of Timeout conditional field and boolean which is true if field was set. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapNewMessages returns field NewMessages wrapped in MessageClassArray helper. MapOtherUpdates returns field OtherUpdates wrapped in UpdateClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFinal sets value of Final conditional field. SetFlags sets flags for non-zero fields. 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. (*UpdatesChannelDifference) Zero() bool *UpdatesChannelDifference : NotEmptyUpdatesChannelDifference *UpdatesChannelDifference : UpdatesChannelDifferenceClass *UpdatesChannelDifference : github.com/gotd/td/bin.BareDecoder *UpdatesChannelDifference : github.com/gotd/td/bin.BareEncoder *UpdatesChannelDifference : github.com/gotd/td/bin.Decoder *UpdatesChannelDifference : github.com/gotd/td/bin.Encoder *UpdatesChannelDifference : github.com/gotd/td/bin.Object *UpdatesChannelDifference : github.com/gotd/td/tdp.Object *UpdatesChannelDifference : fmt.Stringer func UpdatesChannelDifferenceArray.First() (v UpdatesChannelDifference, ok bool) func UpdatesChannelDifferenceArray.Last() (v UpdatesChannelDifference, ok bool) func (*UpdatesChannelDifferenceArray).Pop() (v UpdatesChannelDifference, ok bool) func (*UpdatesChannelDifferenceArray).PopFirst() (v UpdatesChannelDifference, ok bool)
UpdatesChannelDifferenceArray is adapter for slice of UpdatesChannelDifference. 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 UpdatesChannelDifference. Sort sorts slice of UpdatesChannelDifference. SortStable sorts slice of UpdatesChannelDifference. func UpdatesChannelDifferenceArray.Retain(keep func(x UpdatesChannelDifference) bool) UpdatesChannelDifferenceArray func UpdatesChannelDifferenceArray.Sort(less func(a, b UpdatesChannelDifference) bool) UpdatesChannelDifferenceArray func UpdatesChannelDifferenceArray.SortStable(less func(a, b UpdatesChannelDifference) bool) UpdatesChannelDifferenceArray func UpdatesChannelDifferenceClassArray.AsUpdatesChannelDifference() (to UpdatesChannelDifferenceArray)
UpdatesChannelDifference boxes the UpdatesChannelDifferenceClass providing a helper. ChannelDifference UpdatesChannelDifferenceClass Decode implements bin.Decoder for UpdatesChannelDifferenceBox. Encode implements bin.Encode for UpdatesChannelDifferenceBox. *UpdatesChannelDifferenceBox : github.com/gotd/td/bin.Decoder *UpdatesChannelDifferenceBox : github.com/gotd/td/bin.Encoder *UpdatesChannelDifferenceBox : github.com/gotd/td/bin.Object
UpdatesChannelDifferenceClass represents updates.ChannelDifference generic type. See https://core.telegram.org/type/updates.ChannelDifference for reference. Example: g, err := tg.DecodeUpdatesChannelDifference(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.UpdatesChannelDifferenceEmpty: // updates.channelDifferenceEmpty#3e11affb case *tg.UpdatesChannelDifferenceTooLong: // updates.channelDifferenceTooLong#a4bcc6fe case *tg.UpdatesChannelDifference: // updates.channelDifference#2064674e default: panic(v) } AsNotEmpty tries to map UpdatesChannelDifferenceClass to NotEmptyUpdatesChannelDifference. ( UpdatesChannelDifferenceClass) Decode(b *bin.Buffer) error ( UpdatesChannelDifferenceClass) DecodeBare(b *bin.Buffer) error ( UpdatesChannelDifferenceClass) Encode(b *bin.Buffer) error ( UpdatesChannelDifferenceClass) EncodeBare(b *bin.Buffer) error Whether there are more updates that must be fetched (always false) Clients are supposed to refetch the channel difference after timeout seconds have elapsed 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. *UpdatesChannelDifference *UpdatesChannelDifferenceEmpty *UpdatesChannelDifferenceTooLong UpdatesChannelDifferenceClass : github.com/gotd/td/bin.BareDecoder UpdatesChannelDifferenceClass : github.com/gotd/td/bin.BareEncoder UpdatesChannelDifferenceClass : github.com/gotd/td/bin.Decoder UpdatesChannelDifferenceClass : github.com/gotd/td/bin.Encoder UpdatesChannelDifferenceClass : github.com/gotd/td/bin.Object UpdatesChannelDifferenceClass : fmt.Stringer func DecodeUpdatesChannelDifference(buf *bin.Buffer) (UpdatesChannelDifferenceClass, error) func (*Client).UpdatesGetChannelDifference(ctx context.Context, request *UpdatesGetChannelDifferenceRequest) (UpdatesChannelDifferenceClass, error) func UpdatesChannelDifferenceClassArray.First() (v UpdatesChannelDifferenceClass, ok bool) func UpdatesChannelDifferenceClassArray.Last() (v UpdatesChannelDifferenceClass, ok bool) func (*UpdatesChannelDifferenceClassArray).Pop() (v UpdatesChannelDifferenceClass, ok bool) func (*UpdatesChannelDifferenceClassArray).PopFirst() (v UpdatesChannelDifferenceClass, ok bool)
UpdatesChannelDifferenceClassArray is adapter for slice of UpdatesChannelDifferenceClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsNotEmpty returns copy with only NotEmpty constructors. AsUpdatesChannelDifference returns copy with only UpdatesChannelDifference constructors. AsUpdatesChannelDifferenceEmpty returns copy with only UpdatesChannelDifferenceEmpty constructors. AsUpdatesChannelDifferenceTooLong returns copy with only UpdatesChannelDifferenceTooLong constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of UpdatesChannelDifferenceClass. Sort sorts slice of UpdatesChannelDifferenceClass. SortStable sorts slice of UpdatesChannelDifferenceClass. func UpdatesChannelDifferenceClassArray.Retain(keep func(x UpdatesChannelDifferenceClass) bool) UpdatesChannelDifferenceClassArray func UpdatesChannelDifferenceClassArray.Sort(less func(a, b UpdatesChannelDifferenceClass) bool) UpdatesChannelDifferenceClassArray func UpdatesChannelDifferenceClassArray.SortStable(less func(a, b UpdatesChannelDifferenceClass) bool) UpdatesChannelDifferenceClassArray
UpdatesChannelDifferenceEmpty represents TL type `updates.channelDifferenceEmpty#3e11affb`. There are no new updates See https://core.telegram.org/constructor/updates.channelDifferenceEmpty for reference. Whether there are more updates that must be fetched (always false) Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The latest PTS¹ Links: 1) https://core.telegram.org/api/updates Clients are supposed to refetch the channel difference after timeout seconds have elapsed Use SetTimeout and GetTimeout helpers. AsNotEmpty tries to map UpdatesChannelDifferenceEmpty to NotEmptyUpdatesChannelDifference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesChannelDifferenceEmpty from given interface. GetFinal returns value of Final conditional field. GetPts returns value of Pts field. GetTimeout returns value of Timeout conditional field and boolean which is true if field was set. SetFinal sets value of Final conditional field. SetFlags sets flags for non-zero fields. 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. (*UpdatesChannelDifferenceEmpty) Zero() bool *UpdatesChannelDifferenceEmpty : UpdatesChannelDifferenceClass *UpdatesChannelDifferenceEmpty : github.com/gotd/td/bin.BareDecoder *UpdatesChannelDifferenceEmpty : github.com/gotd/td/bin.BareEncoder *UpdatesChannelDifferenceEmpty : github.com/gotd/td/bin.Decoder *UpdatesChannelDifferenceEmpty : github.com/gotd/td/bin.Encoder *UpdatesChannelDifferenceEmpty : github.com/gotd/td/bin.Object *UpdatesChannelDifferenceEmpty : github.com/gotd/td/tdp.Object *UpdatesChannelDifferenceEmpty : fmt.Stringer func UpdatesChannelDifferenceEmptyArray.First() (v UpdatesChannelDifferenceEmpty, ok bool) func UpdatesChannelDifferenceEmptyArray.Last() (v UpdatesChannelDifferenceEmpty, ok bool) func (*UpdatesChannelDifferenceEmptyArray).Pop() (v UpdatesChannelDifferenceEmpty, ok bool) func (*UpdatesChannelDifferenceEmptyArray).PopFirst() (v UpdatesChannelDifferenceEmpty, ok bool)
UpdatesChannelDifferenceEmptyArray is adapter for slice of UpdatesChannelDifferenceEmpty. 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 UpdatesChannelDifferenceEmpty. Sort sorts slice of UpdatesChannelDifferenceEmpty. SortStable sorts slice of UpdatesChannelDifferenceEmpty. func UpdatesChannelDifferenceClassArray.AsUpdatesChannelDifferenceEmpty() (to UpdatesChannelDifferenceEmptyArray) func UpdatesChannelDifferenceEmptyArray.Retain(keep func(x UpdatesChannelDifferenceEmpty) bool) UpdatesChannelDifferenceEmptyArray func UpdatesChannelDifferenceEmptyArray.Sort(less func(a, b UpdatesChannelDifferenceEmpty) bool) UpdatesChannelDifferenceEmptyArray func UpdatesChannelDifferenceEmptyArray.SortStable(less func(a, b UpdatesChannelDifferenceEmpty) bool) UpdatesChannelDifferenceEmptyArray
UpdatesChannelDifferenceTooLong represents TL type `updates.channelDifferenceTooLong#a4bcc6fe`. The provided pts + limit < remote pts. Simply, there are too many updates to be fetched (more than limit), the client has to resolve the update gap in one of the following ways (assuming the existence of a persistent database to locally store messages): It should be also noted that some messages like live location messages shouldn't be deleted. See https://core.telegram.org/constructor/updates.channelDifferenceTooLong for reference. Chats from messages Dialog containing the latest PTS¹ that can be used to reset the channel state Links: 1) https://core.telegram.org/api/updates Whether there are more updates that must be fetched (always false) Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The latest messages Clients are supposed to refetch the channel difference after timeout seconds have elapsed Use SetTimeout and GetTimeout helpers. Users from messages AsNotEmpty tries to map UpdatesChannelDifferenceTooLong to NotEmptyUpdatesChannelDifference. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesChannelDifferenceTooLong from given interface. GetChats returns value of Chats field. GetDialog returns value of Dialog field. GetFinal returns value of Final conditional field. GetMessages returns value of Messages field. GetTimeout returns value of Timeout conditional field and boolean which is true if field was set. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapMessages returns field Messages wrapped in MessageClassArray helper. MapUsers returns field Users wrapped in UserClassArray helper. SetFinal sets value of Final conditional field. SetFlags sets flags for non-zero fields. 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. (*UpdatesChannelDifferenceTooLong) Zero() bool *UpdatesChannelDifferenceTooLong : NotEmptyUpdatesChannelDifference *UpdatesChannelDifferenceTooLong : UpdatesChannelDifferenceClass *UpdatesChannelDifferenceTooLong : github.com/gotd/td/bin.BareDecoder *UpdatesChannelDifferenceTooLong : github.com/gotd/td/bin.BareEncoder *UpdatesChannelDifferenceTooLong : github.com/gotd/td/bin.Decoder *UpdatesChannelDifferenceTooLong : github.com/gotd/td/bin.Encoder *UpdatesChannelDifferenceTooLong : github.com/gotd/td/bin.Object *UpdatesChannelDifferenceTooLong : github.com/gotd/td/tdp.Object *UpdatesChannelDifferenceTooLong : fmt.Stringer func UpdatesChannelDifferenceTooLongArray.First() (v UpdatesChannelDifferenceTooLong, ok bool) func UpdatesChannelDifferenceTooLongArray.Last() (v UpdatesChannelDifferenceTooLong, ok bool) func (*UpdatesChannelDifferenceTooLongArray).Pop() (v UpdatesChannelDifferenceTooLong, ok bool) func (*UpdatesChannelDifferenceTooLongArray).PopFirst() (v UpdatesChannelDifferenceTooLong, ok bool)
UpdatesChannelDifferenceTooLongArray is adapter for slice of UpdatesChannelDifferenceTooLong. 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 UpdatesChannelDifferenceTooLong. Sort sorts slice of UpdatesChannelDifferenceTooLong. SortStable sorts slice of UpdatesChannelDifferenceTooLong. func UpdatesChannelDifferenceClassArray.AsUpdatesChannelDifferenceTooLong() (to UpdatesChannelDifferenceTooLongArray) func UpdatesChannelDifferenceTooLongArray.Retain(keep func(x UpdatesChannelDifferenceTooLong) bool) UpdatesChannelDifferenceTooLongArray func UpdatesChannelDifferenceTooLongArray.Sort(less func(a, b UpdatesChannelDifferenceTooLong) bool) UpdatesChannelDifferenceTooLongArray func UpdatesChannelDifferenceTooLongArray.SortStable(less func(a, b UpdatesChannelDifferenceTooLong) bool) UpdatesChannelDifferenceTooLongArray
UpdatesClass represents Updates generic type. See https://core.telegram.org/type/Updates for reference. Example: g, err := tg.DecodeUpdates(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.UpdatesTooLong: // updatesTooLong#e317af7e case *tg.UpdateShortMessage: // updateShortMessage#313bc7f8 case *tg.UpdateShortChatMessage: // updateShortChatMessage#4d6deea5 case *tg.UpdateShort: // updateShort#78d4dec1 case *tg.UpdatesCombined: // updatesCombined#725b04c3 case *tg.Updates: // updates#74ae4240 case *tg.UpdateShortSentMessage: // updateShortSentMessage#9015e101 default: panic(v) } ( UpdatesClass) Decode(b *bin.Buffer) error ( UpdatesClass) DecodeBare(b *bin.Buffer) error ( UpdatesClass) Encode(b *bin.Buffer) error ( UpdatesClass) 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. *UpdateShort *UpdateShortChatMessage *UpdateShortMessage *UpdateShortSentMessage *Updates *UpdatesCombined *UpdatesTooLong UpdatesClass : github.com/gotd/td/bin.BareDecoder UpdatesClass : github.com/gotd/td/bin.BareEncoder UpdatesClass : github.com/gotd/td/bin.Decoder UpdatesClass : github.com/gotd/td/bin.Encoder UpdatesClass : github.com/gotd/td/bin.Object UpdatesClass : fmt.Stringer func DecodeUpdates(buf *bin.Buffer) (UpdatesClass, error) func (*Client).AccountGetNotifyExceptions(ctx context.Context, request *AccountGetNotifyExceptionsRequest) (UpdatesClass, error) func (*Client).BotsAllowSendMessage(ctx context.Context, bot InputUserClass) (UpdatesClass, error) func (*Client).ChannelsConvertToGigagroup(ctx context.Context, channel InputChannelClass) (UpdatesClass, error) func (*Client).ChannelsCreateChannel(ctx context.Context, request *ChannelsCreateChannelRequest) (UpdatesClass, error) func (*Client).ChannelsCreateForumTopic(ctx context.Context, request *ChannelsCreateForumTopicRequest) (UpdatesClass, error) func (*Client).ChannelsDeleteChannel(ctx context.Context, channel InputChannelClass) (UpdatesClass, error) func (*Client).ChannelsDeleteHistory(ctx context.Context, request *ChannelsDeleteHistoryRequest) (UpdatesClass, error) func (*Client).ChannelsEditAdmin(ctx context.Context, request *ChannelsEditAdminRequest) (UpdatesClass, error) func (*Client).ChannelsEditBanned(ctx context.Context, request *ChannelsEditBannedRequest) (UpdatesClass, error) func (*Client).ChannelsEditCreator(ctx context.Context, request *ChannelsEditCreatorRequest) (UpdatesClass, error) func (*Client).ChannelsEditForumTopic(ctx context.Context, request *ChannelsEditForumTopicRequest) (UpdatesClass, error) func (*Client).ChannelsEditPhoto(ctx context.Context, request *ChannelsEditPhotoRequest) (UpdatesClass, error) func (*Client).ChannelsEditTitle(ctx context.Context, request *ChannelsEditTitleRequest) (UpdatesClass, error) func (*Client).ChannelsInviteToChannel(ctx context.Context, request *ChannelsInviteToChannelRequest) (UpdatesClass, error) func (*Client).ChannelsJoinChannel(ctx context.Context, channel InputChannelClass) (UpdatesClass, error) func (*Client).ChannelsLeaveChannel(ctx context.Context, channel InputChannelClass) (UpdatesClass, error) func (*Client).ChannelsReorderPinnedForumTopics(ctx context.Context, request *ChannelsReorderPinnedForumTopicsRequest) (UpdatesClass, error) func (*Client).ChannelsToggleAntiSpam(ctx context.Context, request *ChannelsToggleAntiSpamRequest) (UpdatesClass, error) func (*Client).ChannelsToggleForum(ctx context.Context, request *ChannelsToggleForumRequest) (UpdatesClass, error) func (*Client).ChannelsToggleJoinRequest(ctx context.Context, request *ChannelsToggleJoinRequestRequest) (UpdatesClass, error) func (*Client).ChannelsToggleJoinToSend(ctx context.Context, request *ChannelsToggleJoinToSendRequest) (UpdatesClass, error) func (*Client).ChannelsToggleParticipantsHidden(ctx context.Context, request *ChannelsToggleParticipantsHiddenRequest) (UpdatesClass, error) func (*Client).ChannelsTogglePreHistoryHidden(ctx context.Context, request *ChannelsTogglePreHistoryHiddenRequest) (UpdatesClass, error) func (*Client).ChannelsToggleSignatures(ctx context.Context, request *ChannelsToggleSignaturesRequest) (UpdatesClass, error) func (*Client).ChannelsToggleSlowMode(ctx context.Context, request *ChannelsToggleSlowModeRequest) (UpdatesClass, error) func (*Client).ChannelsToggleViewForumAsMessages(ctx context.Context, request *ChannelsToggleViewForumAsMessagesRequest) (UpdatesClass, error) func (*Client).ChannelsUpdateColor(ctx context.Context, request *ChannelsUpdateColorRequest) (UpdatesClass, error) func (*Client).ChannelsUpdateEmojiStatus(ctx context.Context, request *ChannelsUpdateEmojiStatusRequest) (UpdatesClass, error) func (*Client).ChannelsUpdatePinnedForumTopic(ctx context.Context, request *ChannelsUpdatePinnedForumTopicRequest) (UpdatesClass, error) func (*Client).ChatlistsJoinChatlistInvite(ctx context.Context, request *ChatlistsJoinChatlistInviteRequest) (UpdatesClass, error) func (*Client).ChatlistsJoinChatlistUpdates(ctx context.Context, request *ChatlistsJoinChatlistUpdatesRequest) (UpdatesClass, error) func (*Client).ChatlistsLeaveChatlist(ctx context.Context, request *ChatlistsLeaveChatlistRequest) (UpdatesClass, error) func (*Client).ContactsAcceptContact(ctx context.Context, id InputUserClass) (UpdatesClass, error) func (*Client).ContactsAddContact(ctx context.Context, request *ContactsAddContactRequest) (UpdatesClass, error) func (*Client).ContactsBlockFromReplies(ctx context.Context, request *ContactsBlockFromRepliesRequest) (UpdatesClass, error) func (*Client).ContactsDeleteContacts(ctx context.Context, id []InputUserClass) (UpdatesClass, error) func (*Client).ContactsGetLocated(ctx context.Context, request *ContactsGetLocatedRequest) (UpdatesClass, error) func (*Client).FoldersEditPeerFolders(ctx context.Context, folderpeers []InputFolderPeer) (UpdatesClass, error) func (*Client).MessagesAddChatUser(ctx context.Context, request *MessagesAddChatUserRequest) (UpdatesClass, error) func (*Client).MessagesCreateChat(ctx context.Context, request *MessagesCreateChatRequest) (UpdatesClass, error) func (*Client).MessagesDeleteChatUser(ctx context.Context, request *MessagesDeleteChatUserRequest) (UpdatesClass, error) func (*Client).MessagesDeleteScheduledMessages(ctx context.Context, request *MessagesDeleteScheduledMessagesRequest) (UpdatesClass, error) func (*Client).MessagesEditChatDefaultBannedRights(ctx context.Context, request *MessagesEditChatDefaultBannedRightsRequest) (UpdatesClass, error) func (*Client).MessagesEditChatPhoto(ctx context.Context, request *MessagesEditChatPhotoRequest) (UpdatesClass, error) func (*Client).MessagesEditChatTitle(ctx context.Context, request *MessagesEditChatTitleRequest) (UpdatesClass, error) func (*Client).MessagesEditMessage(ctx context.Context, request *MessagesEditMessageRequest) (UpdatesClass, error) func (*Client).MessagesForwardMessages(ctx context.Context, request *MessagesForwardMessagesRequest) (UpdatesClass, error) func (*Client).MessagesGetAllDrafts(ctx context.Context) (UpdatesClass, error) func (*Client).MessagesGetExtendedMedia(ctx context.Context, request *MessagesGetExtendedMediaRequest) (UpdatesClass, error) func (*Client).MessagesGetMessagesReactions(ctx context.Context, request *MessagesGetMessagesReactionsRequest) (UpdatesClass, error) func (*Client).MessagesGetPollResults(ctx context.Context, request *MessagesGetPollResultsRequest) (UpdatesClass, error) func (*Client).MessagesHideAllChatJoinRequests(ctx context.Context, request *MessagesHideAllChatJoinRequestsRequest) (UpdatesClass, error) func (*Client).MessagesHideChatJoinRequest(ctx context.Context, request *MessagesHideChatJoinRequestRequest) (UpdatesClass, error) func (*Client).MessagesImportChatInvite(ctx context.Context, hash string) (UpdatesClass, error) func (*Client).MessagesMigrateChat(ctx context.Context, chatid int64) (UpdatesClass, error) func (*Client).MessagesSendBotRequestedPeer(ctx context.Context, request *MessagesSendBotRequestedPeerRequest) (UpdatesClass, error) func (*Client).MessagesSendInlineBotResult(ctx context.Context, request *MessagesSendInlineBotResultRequest) (UpdatesClass, error) func (*Client).MessagesSendMedia(ctx context.Context, request *MessagesSendMediaRequest) (UpdatesClass, error) func (*Client).MessagesSendMessage(ctx context.Context, request *MessagesSendMessageRequest) (UpdatesClass, error) func (*Client).MessagesSendMultiMedia(ctx context.Context, request *MessagesSendMultiMediaRequest) (UpdatesClass, error) func (*Client).MessagesSendReaction(ctx context.Context, request *MessagesSendReactionRequest) (UpdatesClass, error) func (*Client).MessagesSendScheduledMessages(ctx context.Context, request *MessagesSendScheduledMessagesRequest) (UpdatesClass, error) func (*Client).MessagesSendScreenshotNotification(ctx context.Context, request *MessagesSendScreenshotNotificationRequest) (UpdatesClass, error) func (*Client).MessagesSendVote(ctx context.Context, request *MessagesSendVoteRequest) (UpdatesClass, error) func (*Client).MessagesSendWebViewData(ctx context.Context, request *MessagesSendWebViewDataRequest) (UpdatesClass, error) func (*Client).MessagesSetChatAvailableReactions(ctx context.Context, request *MessagesSetChatAvailableReactionsRequest) (UpdatesClass, error) func (*Client).MessagesSetChatTheme(ctx context.Context, request *MessagesSetChatThemeRequest) (UpdatesClass, error) func (*Client).MessagesSetChatWallPaper(ctx context.Context, request *MessagesSetChatWallPaperRequest) (UpdatesClass, error) func (*Client).MessagesSetGameScore(ctx context.Context, request *MessagesSetGameScoreRequest) (UpdatesClass, error) func (*Client).MessagesSetHistoryTTL(ctx context.Context, request *MessagesSetHistoryTTLRequest) (UpdatesClass, error) func (*Client).MessagesStartBot(ctx context.Context, request *MessagesStartBotRequest) (UpdatesClass, error) func (*Client).MessagesToggleNoForwards(ctx context.Context, request *MessagesToggleNoForwardsRequest) (UpdatesClass, error) func (*Client).MessagesUpdatePinnedMessage(ctx context.Context, request *MessagesUpdatePinnedMessageRequest) (UpdatesClass, error) func (*Client).PaymentsApplyGiftCode(ctx context.Context, slug string) (UpdatesClass, error) func (*Client).PaymentsAssignAppStoreTransaction(ctx context.Context, request *PaymentsAssignAppStoreTransactionRequest) (UpdatesClass, error) func (*Client).PaymentsAssignPlayMarketTransaction(ctx context.Context, request *PaymentsAssignPlayMarketTransactionRequest) (UpdatesClass, error) func (*Client).PaymentsLaunchPrepaidGiveaway(ctx context.Context, request *PaymentsLaunchPrepaidGiveawayRequest) (UpdatesClass, error) func (*Client).PhoneCreateGroupCall(ctx context.Context, request *PhoneCreateGroupCallRequest) (UpdatesClass, error) func (*Client).PhoneDiscardCall(ctx context.Context, request *PhoneDiscardCallRequest) (UpdatesClass, error) func (*Client).PhoneDiscardGroupCall(ctx context.Context, call InputGroupCall) (UpdatesClass, error) func (*Client).PhoneEditGroupCallParticipant(ctx context.Context, request *PhoneEditGroupCallParticipantRequest) (UpdatesClass, error) func (*Client).PhoneEditGroupCallTitle(ctx context.Context, request *PhoneEditGroupCallTitleRequest) (UpdatesClass, error) func (*Client).PhoneInviteToGroupCall(ctx context.Context, request *PhoneInviteToGroupCallRequest) (UpdatesClass, error) func (*Client).PhoneJoinGroupCall(ctx context.Context, request *PhoneJoinGroupCallRequest) (UpdatesClass, error) func (*Client).PhoneJoinGroupCallPresentation(ctx context.Context, request *PhoneJoinGroupCallPresentationRequest) (UpdatesClass, error) func (*Client).PhoneLeaveGroupCall(ctx context.Context, request *PhoneLeaveGroupCallRequest) (UpdatesClass, error) func (*Client).PhoneLeaveGroupCallPresentation(ctx context.Context, call InputGroupCall) (UpdatesClass, error) func (*Client).PhoneSetCallRating(ctx context.Context, request *PhoneSetCallRatingRequest) (UpdatesClass, error) func (*Client).PhoneStartScheduledGroupCall(ctx context.Context, call InputGroupCall) (UpdatesClass, error) func (*Client).PhoneToggleGroupCallRecord(ctx context.Context, request *PhoneToggleGroupCallRecordRequest) (UpdatesClass, error) func (*Client).PhoneToggleGroupCallSettings(ctx context.Context, request *PhoneToggleGroupCallSettingsRequest) (UpdatesClass, error) func (*Client).PhoneToggleGroupCallStartSubscription(ctx context.Context, request *PhoneToggleGroupCallStartSubscriptionRequest) (UpdatesClass, error) func (*Client).StoriesActivateStealthMode(ctx context.Context, request *StoriesActivateStealthModeRequest) (UpdatesClass, error) func (*Client).StoriesEditStory(ctx context.Context, request *StoriesEditStoryRequest) (UpdatesClass, error) func (*Client).StoriesGetAllReadPeerStories(ctx context.Context) (UpdatesClass, error) func (*Client).StoriesSendReaction(ctx context.Context, request *StoriesSendReactionRequest) (UpdatesClass, error) func (*Client).StoriesSendStory(ctx context.Context, request *StoriesSendStoryRequest) (UpdatesClass, error) func (*PaymentsPaymentResult).GetUpdates() (value UpdatesClass) func UpdatesClassArray.First() (v UpdatesClass, ok bool) func UpdatesClassArray.Last() (v UpdatesClass, ok bool) func (*UpdatesClassArray).Pop() (v UpdatesClass, ok bool) func (*UpdatesClassArray).PopFirst() (v UpdatesClass, ok bool) func UpdateDispatcher.Handle(ctx context.Context, updates UpdatesClass) error func github.com/gotd/td/telegram.UpdateHandler.Handle(ctx context.Context, u UpdatesClass) error func github.com/gotd/td/telegram.UpdateHandlerFunc.Handle(ctx context.Context, u UpdatesClass) error
UpdatesClassArray is adapter for slice of UpdatesClass. AsUpdateShort returns copy with only UpdateShort constructors. AsUpdateShortChatMessage returns copy with only UpdateShortChatMessage constructors. AsUpdateShortMessage returns copy with only UpdateShortMessage constructors. AsUpdateShortSentMessage returns copy with only UpdateShortSentMessage constructors. AsUpdates returns copy with only Updates constructors. AsUpdatesCombined returns copy with only UpdatesCombined 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 UpdatesClass. Sort sorts slice of UpdatesClass. SortStable sorts slice of UpdatesClass. func UpdatesClassArray.Retain(keep func(x UpdatesClass) bool) UpdatesClassArray func UpdatesClassArray.Sort(less func(a, b UpdatesClass) bool) UpdatesClassArray func UpdatesClassArray.SortStable(less func(a, b UpdatesClass) bool) UpdatesClassArray
UpdatesCombined represents TL type `updatesCombined#725b04c3`. Constructor for a group of updates. See https://core.telegram.org/constructor/updatesCombined for reference. List of chats mentioned in updates Current date Value seq for the latest update in a group Value seq for the earliest update in a group List of updates List of users mentioned in updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesCombined from given interface. GetChats returns value of Chats field. GetDate returns value of Date field. GetSeq returns value of Seq field. GetSeqStart returns value of SeqStart field. GetUpdates returns value of Updates field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapUpdates returns field Updates wrapped in UpdateClassArray 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. (*UpdatesCombined) Zero() bool *UpdatesCombined : UpdatesClass *UpdatesCombined : github.com/gotd/td/bin.BareDecoder *UpdatesCombined : github.com/gotd/td/bin.BareEncoder *UpdatesCombined : github.com/gotd/td/bin.Decoder *UpdatesCombined : github.com/gotd/td/bin.Encoder *UpdatesCombined : github.com/gotd/td/bin.Object *UpdatesCombined : github.com/gotd/td/tdp.Object *UpdatesCombined : fmt.Stringer func UpdatesCombinedArray.First() (v UpdatesCombined, ok bool) func UpdatesCombinedArray.Last() (v UpdatesCombined, ok bool) func (*UpdatesCombinedArray).Pop() (v UpdatesCombined, ok bool) func (*UpdatesCombinedArray).PopFirst() (v UpdatesCombined, ok bool)
UpdatesCombinedArray is adapter for slice of UpdatesCombined. 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 UpdatesCombined. Sort sorts slice of UpdatesCombined. SortByDate sorts slice of UpdatesCombined by Date. SortStable sorts slice of UpdatesCombined. SortStableByDate sorts slice of UpdatesCombined by Date. func UpdatesClassArray.AsUpdatesCombined() (to UpdatesCombinedArray) func UpdatesCombinedArray.Retain(keep func(x UpdatesCombined) bool) UpdatesCombinedArray func UpdatesCombinedArray.Sort(less func(a, b UpdatesCombined) bool) UpdatesCombinedArray func UpdatesCombinedArray.SortByDate() UpdatesCombinedArray func UpdatesCombinedArray.SortStable(less func(a, b UpdatesCombined) bool) UpdatesCombinedArray func UpdatesCombinedArray.SortStableByDate() UpdatesCombinedArray
UpdatesDifference represents TL type `updates.difference#f49ca0`. Full list of occurred events. See https://core.telegram.org/constructor/updates.difference for reference. List of chats mentioned in events List of new encrypted secret chat messages List of new messages List of updates Current state List of users mentioned in events Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesDifference from given interface. GetChats returns value of Chats field. GetNewEncryptedMessages returns value of NewEncryptedMessages field. GetNewMessages returns value of NewMessages field. GetOtherUpdates returns value of OtherUpdates field. GetState returns value of State field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapNewEncryptedMessages returns field NewEncryptedMessages wrapped in EncryptedMessageClassArray helper. MapNewMessages returns field NewMessages wrapped in MessageClassArray helper. MapOtherUpdates returns field OtherUpdates wrapped in UpdateClassArray 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. (*UpdatesDifference) Zero() bool *UpdatesDifference : UpdatesDifferenceClass *UpdatesDifference : github.com/gotd/td/bin.BareDecoder *UpdatesDifference : github.com/gotd/td/bin.BareEncoder *UpdatesDifference : github.com/gotd/td/bin.Decoder *UpdatesDifference : github.com/gotd/td/bin.Encoder *UpdatesDifference : github.com/gotd/td/bin.Object *UpdatesDifference : github.com/gotd/td/tdp.Object *UpdatesDifference : fmt.Stringer func UpdatesDifferenceArray.First() (v UpdatesDifference, ok bool) func UpdatesDifferenceArray.Last() (v UpdatesDifference, ok bool) func (*UpdatesDifferenceArray).Pop() (v UpdatesDifference, ok bool) func (*UpdatesDifferenceArray).PopFirst() (v UpdatesDifference, ok bool)
UpdatesDifferenceArray is adapter for slice of UpdatesDifference. 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 UpdatesDifference. Sort sorts slice of UpdatesDifference. SortStable sorts slice of UpdatesDifference. func UpdatesDifferenceArray.Retain(keep func(x UpdatesDifference) bool) UpdatesDifferenceArray func UpdatesDifferenceArray.Sort(less func(a, b UpdatesDifference) bool) UpdatesDifferenceArray func UpdatesDifferenceArray.SortStable(less func(a, b UpdatesDifference) bool) UpdatesDifferenceArray func UpdatesDifferenceClassArray.AsUpdatesDifference() (to UpdatesDifferenceArray)
UpdatesDifference boxes the UpdatesDifferenceClass providing a helper. Difference UpdatesDifferenceClass Decode implements bin.Decoder for UpdatesDifferenceBox. Encode implements bin.Encode for UpdatesDifferenceBox. *UpdatesDifferenceBox : github.com/gotd/td/bin.Decoder *UpdatesDifferenceBox : github.com/gotd/td/bin.Encoder *UpdatesDifferenceBox : github.com/gotd/td/bin.Object
UpdatesDifferenceClass represents updates.Difference generic type. See https://core.telegram.org/type/updates.Difference for reference. Example: g, err := tg.DecodeUpdatesDifference(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.UpdatesDifferenceEmpty: // updates.differenceEmpty#5d75a138 case *tg.UpdatesDifference: // updates.difference#f49ca0 case *tg.UpdatesDifferenceSlice: // updates.differenceSlice#a8fb1981 case *tg.UpdatesDifferenceTooLong: // updates.differenceTooLong#4afe8f6d default: panic(v) } ( UpdatesDifferenceClass) Decode(b *bin.Buffer) error ( UpdatesDifferenceClass) DecodeBare(b *bin.Buffer) error ( UpdatesDifferenceClass) Encode(b *bin.Buffer) error ( UpdatesDifferenceClass) 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. *UpdatesDifference *UpdatesDifferenceEmpty *UpdatesDifferenceSlice *UpdatesDifferenceTooLong UpdatesDifferenceClass : github.com/gotd/td/bin.BareDecoder UpdatesDifferenceClass : github.com/gotd/td/bin.BareEncoder UpdatesDifferenceClass : github.com/gotd/td/bin.Decoder UpdatesDifferenceClass : github.com/gotd/td/bin.Encoder UpdatesDifferenceClass : github.com/gotd/td/bin.Object UpdatesDifferenceClass : fmt.Stringer func DecodeUpdatesDifference(buf *bin.Buffer) (UpdatesDifferenceClass, error) func (*Client).UpdatesGetDifference(ctx context.Context, request *UpdatesGetDifferenceRequest) (UpdatesDifferenceClass, error) func UpdatesDifferenceClassArray.First() (v UpdatesDifferenceClass, ok bool) func UpdatesDifferenceClassArray.Last() (v UpdatesDifferenceClass, ok bool) func (*UpdatesDifferenceClassArray).Pop() (v UpdatesDifferenceClass, ok bool) func (*UpdatesDifferenceClassArray).PopFirst() (v UpdatesDifferenceClass, ok bool)
UpdatesDifferenceClassArray is adapter for slice of UpdatesDifferenceClass. AsUpdatesDifference returns copy with only UpdatesDifference constructors. AsUpdatesDifferenceEmpty returns copy with only UpdatesDifferenceEmpty constructors. AsUpdatesDifferenceSlice returns copy with only UpdatesDifferenceSlice constructors. AsUpdatesDifferenceTooLong returns copy with only UpdatesDifferenceTooLong 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 UpdatesDifferenceClass. Sort sorts slice of UpdatesDifferenceClass. SortStable sorts slice of UpdatesDifferenceClass. func UpdatesDifferenceClassArray.Retain(keep func(x UpdatesDifferenceClass) bool) UpdatesDifferenceClassArray func UpdatesDifferenceClassArray.Sort(less func(a, b UpdatesDifferenceClass) bool) UpdatesDifferenceClassArray func UpdatesDifferenceClassArray.SortStable(less func(a, b UpdatesDifferenceClass) bool) UpdatesDifferenceClassArray
UpdatesDifferenceEmpty represents TL type `updates.differenceEmpty#5d75a138`. No events. See https://core.telegram.org/constructor/updates.differenceEmpty for reference. Current date Number of sent updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesDifferenceEmpty from given interface. GetDate returns value of Date field. GetSeq returns value of Seq 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. (*UpdatesDifferenceEmpty) Zero() bool *UpdatesDifferenceEmpty : UpdatesDifferenceClass *UpdatesDifferenceEmpty : github.com/gotd/td/bin.BareDecoder *UpdatesDifferenceEmpty : github.com/gotd/td/bin.BareEncoder *UpdatesDifferenceEmpty : github.com/gotd/td/bin.Decoder *UpdatesDifferenceEmpty : github.com/gotd/td/bin.Encoder *UpdatesDifferenceEmpty : github.com/gotd/td/bin.Object *UpdatesDifferenceEmpty : github.com/gotd/td/tdp.Object *UpdatesDifferenceEmpty : fmt.Stringer func UpdatesDifferenceEmptyArray.First() (v UpdatesDifferenceEmpty, ok bool) func UpdatesDifferenceEmptyArray.Last() (v UpdatesDifferenceEmpty, ok bool) func (*UpdatesDifferenceEmptyArray).Pop() (v UpdatesDifferenceEmpty, ok bool) func (*UpdatesDifferenceEmptyArray).PopFirst() (v UpdatesDifferenceEmpty, ok bool)
UpdatesDifferenceEmptyArray is adapter for slice of UpdatesDifferenceEmpty. 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 UpdatesDifferenceEmpty. Sort sorts slice of UpdatesDifferenceEmpty. SortByDate sorts slice of UpdatesDifferenceEmpty by Date. SortStable sorts slice of UpdatesDifferenceEmpty. SortStableByDate sorts slice of UpdatesDifferenceEmpty by Date. func UpdatesDifferenceClassArray.AsUpdatesDifferenceEmpty() (to UpdatesDifferenceEmptyArray) func UpdatesDifferenceEmptyArray.Retain(keep func(x UpdatesDifferenceEmpty) bool) UpdatesDifferenceEmptyArray func UpdatesDifferenceEmptyArray.Sort(less func(a, b UpdatesDifferenceEmpty) bool) UpdatesDifferenceEmptyArray func UpdatesDifferenceEmptyArray.SortByDate() UpdatesDifferenceEmptyArray func UpdatesDifferenceEmptyArray.SortStable(less func(a, b UpdatesDifferenceEmpty) bool) UpdatesDifferenceEmptyArray func UpdatesDifferenceEmptyArray.SortStableByDate() UpdatesDifferenceEmptyArray
UpdatesDifferenceSlice represents TL type `updates.differenceSlice#a8fb1981`. Incomplete list of occurred events. See https://core.telegram.org/constructor/updates.differenceSlice for reference. List of chats mentioned in events Intermediary state New messages from the encrypted event sequence¹ Links: 1) https://core.telegram.org/api/updates List of new messages List of updates List of users mentioned in events Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesDifferenceSlice from given interface. GetChats returns value of Chats field. GetIntermediateState returns value of IntermediateState field. GetNewEncryptedMessages returns value of NewEncryptedMessages field. GetNewMessages returns value of NewMessages field. GetOtherUpdates returns value of OtherUpdates field. GetUsers returns value of Users field. MapChats returns field Chats wrapped in ChatClassArray helper. MapNewEncryptedMessages returns field NewEncryptedMessages wrapped in EncryptedMessageClassArray helper. MapNewMessages returns field NewMessages wrapped in MessageClassArray helper. MapOtherUpdates returns field OtherUpdates wrapped in UpdateClassArray 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. (*UpdatesDifferenceSlice) Zero() bool *UpdatesDifferenceSlice : UpdatesDifferenceClass *UpdatesDifferenceSlice : github.com/gotd/td/bin.BareDecoder *UpdatesDifferenceSlice : github.com/gotd/td/bin.BareEncoder *UpdatesDifferenceSlice : github.com/gotd/td/bin.Decoder *UpdatesDifferenceSlice : github.com/gotd/td/bin.Encoder *UpdatesDifferenceSlice : github.com/gotd/td/bin.Object *UpdatesDifferenceSlice : github.com/gotd/td/tdp.Object *UpdatesDifferenceSlice : fmt.Stringer func UpdatesDifferenceSliceArray.First() (v UpdatesDifferenceSlice, ok bool) func UpdatesDifferenceSliceArray.Last() (v UpdatesDifferenceSlice, ok bool) func (*UpdatesDifferenceSliceArray).Pop() (v UpdatesDifferenceSlice, ok bool) func (*UpdatesDifferenceSliceArray).PopFirst() (v UpdatesDifferenceSlice, ok bool)
UpdatesDifferenceSliceArray is adapter for slice of UpdatesDifferenceSlice. 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 UpdatesDifferenceSlice. Sort sorts slice of UpdatesDifferenceSlice. SortStable sorts slice of UpdatesDifferenceSlice. func UpdatesDifferenceClassArray.AsUpdatesDifferenceSlice() (to UpdatesDifferenceSliceArray) func UpdatesDifferenceSliceArray.Retain(keep func(x UpdatesDifferenceSlice) bool) UpdatesDifferenceSliceArray func UpdatesDifferenceSliceArray.Sort(less func(a, b UpdatesDifferenceSlice) bool) UpdatesDifferenceSliceArray func UpdatesDifferenceSliceArray.SortStable(less func(a, b UpdatesDifferenceSlice) bool) UpdatesDifferenceSliceArray
UpdatesDifferenceTooLong represents TL type `updates.differenceTooLong#4afe8f6d`. The difference is too long¹, and the specified state must be used to refetch updates. Links: 1. https://core.telegram.org/api/updates#recovering-gaps See https://core.telegram.org/constructor/updates.differenceTooLong for reference. The new state to use. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesDifferenceTooLong from given interface. GetPts returns value of Pts 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. (*UpdatesDifferenceTooLong) Zero() bool *UpdatesDifferenceTooLong : UpdatesDifferenceClass *UpdatesDifferenceTooLong : github.com/gotd/td/bin.BareDecoder *UpdatesDifferenceTooLong : github.com/gotd/td/bin.BareEncoder *UpdatesDifferenceTooLong : github.com/gotd/td/bin.Decoder *UpdatesDifferenceTooLong : github.com/gotd/td/bin.Encoder *UpdatesDifferenceTooLong : github.com/gotd/td/bin.Object *UpdatesDifferenceTooLong : github.com/gotd/td/tdp.Object *UpdatesDifferenceTooLong : fmt.Stringer func UpdatesDifferenceTooLongArray.First() (v UpdatesDifferenceTooLong, ok bool) func UpdatesDifferenceTooLongArray.Last() (v UpdatesDifferenceTooLong, ok bool) func (*UpdatesDifferenceTooLongArray).Pop() (v UpdatesDifferenceTooLong, ok bool) func (*UpdatesDifferenceTooLongArray).PopFirst() (v UpdatesDifferenceTooLong, ok bool)
UpdatesDifferenceTooLongArray is adapter for slice of UpdatesDifferenceTooLong. 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 UpdatesDifferenceTooLong. Sort sorts slice of UpdatesDifferenceTooLong. SortStable sorts slice of UpdatesDifferenceTooLong. func UpdatesDifferenceClassArray.AsUpdatesDifferenceTooLong() (to UpdatesDifferenceTooLongArray) func UpdatesDifferenceTooLongArray.Retain(keep func(x UpdatesDifferenceTooLong) bool) UpdatesDifferenceTooLongArray func UpdatesDifferenceTooLongArray.Sort(less func(a, b UpdatesDifferenceTooLong) bool) UpdatesDifferenceTooLongArray func UpdatesDifferenceTooLongArray.SortStable(less func(a, b UpdatesDifferenceTooLong) bool) UpdatesDifferenceTooLongArray
UpdateSentStoryReaction represents TL type `updateSentStoryReaction#7d627683`. Indicates we reacted to a story »¹. Links: 1. https://core.telegram.org/api/stories#reactions See https://core.telegram.org/constructor/updateSentStoryReaction for reference. The peer that sent the story The reaction that was sent ID of the story we reacted to Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateSentStoryReaction from given interface. GetPeer returns value of Peer field. GetReaction returns value of Reaction field. GetStoryID returns value of StoryID 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. (*UpdateSentStoryReaction) Zero() bool *UpdateSentStoryReaction : UpdateClass *UpdateSentStoryReaction : github.com/gotd/td/bin.BareDecoder *UpdateSentStoryReaction : github.com/gotd/td/bin.BareEncoder *UpdateSentStoryReaction : github.com/gotd/td/bin.Decoder *UpdateSentStoryReaction : github.com/gotd/td/bin.Encoder *UpdateSentStoryReaction : github.com/gotd/td/bin.Object *UpdateSentStoryReaction : github.com/gotd/td/tdp.Object *UpdateSentStoryReaction : fmt.Stringer func UpdateSentStoryReactionArray.First() (v UpdateSentStoryReaction, ok bool) func UpdateSentStoryReactionArray.Last() (v UpdateSentStoryReaction, ok bool) func (*UpdateSentStoryReactionArray).Pop() (v UpdateSentStoryReaction, ok bool) func (*UpdateSentStoryReactionArray).PopFirst() (v UpdateSentStoryReaction, ok bool)
UpdateSentStoryReactionArray is adapter for slice of UpdateSentStoryReaction. 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 UpdateSentStoryReaction. Sort sorts slice of UpdateSentStoryReaction. SortStable sorts slice of UpdateSentStoryReaction. func UpdateClassArray.AsUpdateSentStoryReaction() (to UpdateSentStoryReactionArray) func UpdateSentStoryReactionArray.Retain(keep func(x UpdateSentStoryReaction) bool) UpdateSentStoryReactionArray func UpdateSentStoryReactionArray.Sort(less func(a, b UpdateSentStoryReaction) bool) UpdateSentStoryReactionArray func UpdateSentStoryReactionArray.SortStable(less func(a, b UpdateSentStoryReaction) bool) UpdateSentStoryReactionArray
UpdateServiceNotification represents TL type `updateServiceNotification#ebe46819`. A service message for the user. The app must show the message to the user upon receiving this update. In case the popup parameter was passed, the text message must be displayed in a popup alert immediately upon receipt. It is recommended to handle the text as you would an ordinary message in terms of highlighting links, etc. The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications). See https://core.telegram.org/constructor/updateServiceNotification for reference. Message entities for styled text¹ Links: 1) https://core.telegram.org/api/entities Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields When was the notification receivedThe message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications). Use SetInboxDate and GetInboxDate helpers. If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. Media content (optional) Message text If set, the message must be displayed in a popup. String, identical in format and contents to the type¹ field in API errors. Describes type of service message. It is acceptable to ignore repeated messages of the same type within a short period of time (15 minutes). Links: 1) https://core.telegram.org/api/errors#error-type Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateServiceNotification from given interface. GetEntities returns value of Entities field. GetInboxDate returns value of InboxDate conditional field and boolean which is true if field was set. GetInvertMedia returns value of InvertMedia conditional field. GetMedia returns value of Media field. GetMessage returns value of Message field. GetPopup returns value of Popup conditional field. GetType returns value of Type field. MapEntities returns field Entities wrapped in MessageEntityClassArray helper. SetFlags sets flags for non-zero fields. SetInboxDate sets value of InboxDate conditional field. SetInvertMedia sets value of InvertMedia conditional field. SetPopup sets value of Popup 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. (*UpdateServiceNotification) Zero() bool *UpdateServiceNotification : UpdateClass *UpdateServiceNotification : github.com/gotd/td/bin.BareDecoder *UpdateServiceNotification : github.com/gotd/td/bin.BareEncoder *UpdateServiceNotification : github.com/gotd/td/bin.Decoder *UpdateServiceNotification : github.com/gotd/td/bin.Encoder *UpdateServiceNotification : github.com/gotd/td/bin.Object *UpdateServiceNotification : github.com/gotd/td/tdp.Object *UpdateServiceNotification : fmt.Stringer func UpdateServiceNotificationArray.First() (v UpdateServiceNotification, ok bool) func UpdateServiceNotificationArray.Last() (v UpdateServiceNotification, ok bool) func (*UpdateServiceNotificationArray).Pop() (v UpdateServiceNotification, ok bool) func (*UpdateServiceNotificationArray).PopFirst() (v UpdateServiceNotification, ok bool)
UpdateServiceNotificationArray is adapter for slice of UpdateServiceNotification. 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 UpdateServiceNotification. Sort sorts slice of UpdateServiceNotification. SortStable sorts slice of UpdateServiceNotification. func UpdateClassArray.AsUpdateServiceNotification() (to UpdateServiceNotificationArray) func UpdateServiceNotificationArray.Retain(keep func(x UpdateServiceNotification) bool) UpdateServiceNotificationArray func UpdateServiceNotificationArray.Sort(less func(a, b UpdateServiceNotification) bool) UpdateServiceNotificationArray func UpdateServiceNotificationArray.SortStable(less func(a, b UpdateServiceNotification) bool) UpdateServiceNotificationArray
UpdatesGetChannelDifferenceRequest represents TL type `updates.getChannelDifference#3173d78`. Returns the difference between the current state of updates of a certain channel and transmitted. See https://core.telegram.org/method/updates.getChannelDifference for reference. The channel Messsage filter Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Set to true to skip some possibly unneeded updates and reduce server-side load How many updates to fetch, max 100000Ordinary (non-bot) users are supposed to pass 10-100 Persistent timestamp (see updates¹) Links: 1) https://core.telegram.org/api/updates Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesGetChannelDifferenceRequest from given interface. GetChannel returns value of Channel field. GetChannelAsNotEmpty returns mapped value of Channel field. GetFilter returns value of Filter field. GetFilterAsNotEmpty returns mapped value of Filter field. GetForce returns value of Force conditional field. GetLimit returns value of Limit field. GetPts returns value of Pts field. SetFlags sets flags for non-zero fields. SetForce sets value of Force 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. (*UpdatesGetChannelDifferenceRequest) Zero() bool *UpdatesGetChannelDifferenceRequest : github.com/gotd/td/bin.BareDecoder *UpdatesGetChannelDifferenceRequest : github.com/gotd/td/bin.BareEncoder *UpdatesGetChannelDifferenceRequest : github.com/gotd/td/bin.Decoder *UpdatesGetChannelDifferenceRequest : github.com/gotd/td/bin.Encoder *UpdatesGetChannelDifferenceRequest : github.com/gotd/td/bin.Object *UpdatesGetChannelDifferenceRequest : github.com/gotd/td/tdp.Object *UpdatesGetChannelDifferenceRequest : fmt.Stringer func (*Client).UpdatesGetChannelDifference(ctx context.Context, request *UpdatesGetChannelDifferenceRequest) (UpdatesChannelDifferenceClass, error)
UpdatesGetDifferenceRequest represents TL type `updates.getDifference#19c2f763`. Get new updates¹. Links: 1. https://core.telegram.org/api/updates See https://core.telegram.org/method/updates.getDifference for reference. date, see updates¹. Links: 1) https://core.telegram.org/api/updates Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields PTS, see updates¹. Links: 1) https://core.telegram.org/api/updates PTS limit Use SetPtsLimit and GetPtsLimit helpers. For fast updating: if provided and pts + pts_total_limit < remote pts, updates differenceTooLong¹ will be returned.Simply tells the server to not return the difference if it is bigger than pts_total_limitIf the remote pts is too big (> ~4000000), this field will default to 1000000 Links: 1) https://core.telegram.org/constructor/updates.differenceTooLong Use SetPtsTotalLimit and GetPtsTotalLimit helpers. QTS, see updates¹. Links: 1) https://core.telegram.org/api/updates QTS limit Use SetQtsLimit and GetQtsLimit helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesGetDifferenceRequest from given interface. GetDate returns value of Date field. GetPts returns value of Pts field. GetPtsLimit returns value of PtsLimit conditional field and boolean which is true if field was set. GetPtsTotalLimit returns value of PtsTotalLimit conditional field and boolean which is true if field was set. GetQts returns value of Qts field. GetQtsLimit returns value of QtsLimit conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetPtsLimit sets value of PtsLimit conditional field. SetPtsTotalLimit sets value of PtsTotalLimit conditional field. SetQtsLimit sets value of QtsLimit 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. (*UpdatesGetDifferenceRequest) Zero() bool *UpdatesGetDifferenceRequest : github.com/gotd/td/bin.BareDecoder *UpdatesGetDifferenceRequest : github.com/gotd/td/bin.BareEncoder *UpdatesGetDifferenceRequest : github.com/gotd/td/bin.Decoder *UpdatesGetDifferenceRequest : github.com/gotd/td/bin.Encoder *UpdatesGetDifferenceRequest : github.com/gotd/td/bin.Object *UpdatesGetDifferenceRequest : github.com/gotd/td/tdp.Object *UpdatesGetDifferenceRequest : fmt.Stringer func (*Client).UpdatesGetDifference(ctx context.Context, request *UpdatesGetDifferenceRequest) (UpdatesDifferenceClass, error)
UpdatesGetStateRequest represents TL type `updates.getState#edd4882a`. Returns a current state of updates. See https://core.telegram.org/method/updates.getState 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. (*UpdatesGetStateRequest) Zero() bool *UpdatesGetStateRequest : github.com/gotd/td/bin.BareDecoder *UpdatesGetStateRequest : github.com/gotd/td/bin.BareEncoder *UpdatesGetStateRequest : github.com/gotd/td/bin.Decoder *UpdatesGetStateRequest : github.com/gotd/td/bin.Encoder *UpdatesGetStateRequest : github.com/gotd/td/bin.Object *UpdatesGetStateRequest : github.com/gotd/td/tdp.Object *UpdatesGetStateRequest : fmt.Stringer
UpdateShort represents TL type `updateShort#78d4dec1`. Shortened constructor containing info on one update not requiring auxiliary data See https://core.telegram.org/constructor/updateShort for reference. Date of event Update Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateShort from given interface. GetDate returns value of Date field. GetUpdate returns value of Update 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. (*UpdateShort) Zero() bool *UpdateShort : UpdatesClass *UpdateShort : github.com/gotd/td/bin.BareDecoder *UpdateShort : github.com/gotd/td/bin.BareEncoder *UpdateShort : github.com/gotd/td/bin.Decoder *UpdateShort : github.com/gotd/td/bin.Encoder *UpdateShort : github.com/gotd/td/bin.Object *UpdateShort : github.com/gotd/td/tdp.Object *UpdateShort : fmt.Stringer func UpdateShortArray.First() (v UpdateShort, ok bool) func UpdateShortArray.Last() (v UpdateShort, ok bool) func (*UpdateShortArray).Pop() (v UpdateShort, ok bool) func (*UpdateShortArray).PopFirst() (v UpdateShort, ok bool) func github.com/gotd/td/telegram/internal/upconv.ShortChatMessage(u *UpdateShortChatMessage) *UpdateShort func github.com/gotd/td/telegram/internal/upconv.ShortMessage(u *UpdateShortMessage) *UpdateShort func github.com/gotd/td/telegram/internal/upconv.ShortSentMessage(u *UpdateShortSentMessage) *UpdateShort
UpdateShortArray is adapter for slice of UpdateShort. 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 UpdateShort. Sort sorts slice of UpdateShort. SortByDate sorts slice of UpdateShort by Date. SortStable sorts slice of UpdateShort. SortStableByDate sorts slice of UpdateShort by Date. func UpdatesClassArray.AsUpdateShort() (to UpdateShortArray) func UpdateShortArray.Retain(keep func(x UpdateShort) bool) UpdateShortArray func UpdateShortArray.Sort(less func(a, b UpdateShort) bool) UpdateShortArray func UpdateShortArray.SortByDate() UpdateShortArray func UpdateShortArray.SortStable(less func(a, b UpdateShort) bool) UpdateShortArray func UpdateShortArray.SortStableByDate() UpdateShortArray
UpdateShortChatMessage represents TL type `updateShortChatMessage#4d6deea5`. Shortened constructor containing info on one new incoming text message from a chat See https://core.telegram.org/constructor/updateShortChatMessage for reference. ID of the chat where the message was sent date¹ Links: 1) https://core.telegram.org/api/updates 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 ID of the sender of the message Info about a forwarded message Use SetFwdFrom and GetFwdFrom helpers. ID of the message Whether the message contains some unread mentions Whether we were mentioned in this message Message Whether the message is outgoing PTS¹ Links: 1) https://core.telegram.org/api/updates PTS count¹ Links: 1) https://core.telegram.org/api/updates Reply (thread) information Use SetReplyTo and GetReplyTo helpers. If true, the message is a silent message, no notifications should be triggered Time To Live of the message, once updateShortChatMessage.date+updateShortChatMessage ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. Use SetTTLPeriod and GetTTLPeriod helpers. Info about the inline bot used to generate this message Use SetViaBotID and GetViaBotID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateShortChatMessage from given interface. GetChatID returns value of ChatID field. GetDate returns value of Date field. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetFromID returns value of FromID field. GetFwdFrom returns value of FwdFrom conditional field and boolean which is true if field was set. GetID returns value of ID field. GetMediaUnread returns value of MediaUnread conditional field. GetMentioned returns value of Mentioned conditional field. GetMessage returns value of Message field. GetOut returns value of Out conditional field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount field. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. GetViaBotID returns value of ViaBotID 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. SetFwdFrom sets value of FwdFrom conditional field. SetMediaUnread sets value of MediaUnread conditional field. SetMentioned sets value of Mentioned conditional field. SetOut sets value of Out conditional field. SetReplyTo sets value of ReplyTo conditional field. SetSilent sets value of Silent conditional field. SetTTLPeriod sets value of TTLPeriod conditional field. SetViaBotID sets value of ViaBotID 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. (*UpdateShortChatMessage) Zero() bool *UpdateShortChatMessage : UpdatesClass *UpdateShortChatMessage : github.com/gotd/td/bin.BareDecoder *UpdateShortChatMessage : github.com/gotd/td/bin.BareEncoder *UpdateShortChatMessage : github.com/gotd/td/bin.Decoder *UpdateShortChatMessage : github.com/gotd/td/bin.Encoder *UpdateShortChatMessage : github.com/gotd/td/bin.Object *UpdateShortChatMessage : github.com/gotd/td/tdp.Object *UpdateShortChatMessage : fmt.Stringer func UpdateShortChatMessageArray.First() (v UpdateShortChatMessage, ok bool) func UpdateShortChatMessageArray.Last() (v UpdateShortChatMessage, ok bool) func (*UpdateShortChatMessageArray).Pop() (v UpdateShortChatMessage, ok bool) func (*UpdateShortChatMessageArray).PopFirst() (v UpdateShortChatMessage, ok bool) func UpdateShortChatMessageArray.ToMap() map[int]UpdateShortChatMessage func UpdateShortChatMessageArray.FillMap(to map[int]UpdateShortChatMessage) func github.com/gotd/td/telegram/internal/upconv.ShortChatMessage(u *UpdateShortChatMessage) *UpdateShort
UpdateShortChatMessageArray is adapter for slice of UpdateShortChatMessage. 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 UpdateShortChatMessage. Sort sorts slice of UpdateShortChatMessage. SortByDate sorts slice of UpdateShortChatMessage by Date. SortByID sorts slice of UpdateShortChatMessage by ID. SortStable sorts slice of UpdateShortChatMessage. SortStableByDate sorts slice of UpdateShortChatMessage by Date. SortStableByID sorts slice of UpdateShortChatMessage by ID. ToMap collects constructors to map. func UpdatesClassArray.AsUpdateShortChatMessage() (to UpdateShortChatMessageArray) func UpdateShortChatMessageArray.Retain(keep func(x UpdateShortChatMessage) bool) UpdateShortChatMessageArray func UpdateShortChatMessageArray.Sort(less func(a, b UpdateShortChatMessage) bool) UpdateShortChatMessageArray func UpdateShortChatMessageArray.SortByDate() UpdateShortChatMessageArray func UpdateShortChatMessageArray.SortByID() UpdateShortChatMessageArray func UpdateShortChatMessageArray.SortStable(less func(a, b UpdateShortChatMessage) bool) UpdateShortChatMessageArray func UpdateShortChatMessageArray.SortStableByDate() UpdateShortChatMessageArray func UpdateShortChatMessageArray.SortStableByID() UpdateShortChatMessageArray
UpdateShortMessage represents TL type `updateShortMessage#313bc7f8`. Info about a message sent to (received from) another user See https://core.telegram.org/constructor/updateShortMessage for reference. date¹ Links: 1) https://core.telegram.org/api/updates 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 Info about a forwarded message Use SetFwdFrom and GetFwdFrom helpers. The message ID Whether there are some unread mentions in this message Whether we were mentioned in the message The message Whether the message is outgoing PTS¹ Links: 1) https://core.telegram.org/api/updates PTS count¹ Links: 1) https://core.telegram.org/api/updates Reply and thread¹ information Links: 1) https://core.telegram.org/api/threads Use SetReplyTo and GetReplyTo helpers. If true, the message is a silent message, no notifications should be triggered Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. Use SetTTLPeriod and GetTTLPeriod helpers. The ID of the sender (if outgoing will be the ID of the destination) of the message Info about the inline bot used to generate this message Use SetViaBotID and GetViaBotID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateShortMessage from given interface. GetDate returns value of Date field. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetFwdFrom returns value of FwdFrom conditional field and boolean which is true if field was set. GetID returns value of ID field. GetMediaUnread returns value of MediaUnread conditional field. GetMentioned returns value of Mentioned conditional field. GetMessage returns value of Message field. GetOut returns value of Out conditional field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount field. GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set. GetSilent returns value of Silent conditional field. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. GetUserID returns value of UserID field. GetViaBotID returns value of ViaBotID 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. SetFwdFrom sets value of FwdFrom conditional field. SetMediaUnread sets value of MediaUnread conditional field. SetMentioned sets value of Mentioned conditional field. SetOut sets value of Out conditional field. SetReplyTo sets value of ReplyTo conditional field. SetSilent sets value of Silent conditional field. SetTTLPeriod sets value of TTLPeriod conditional field. SetViaBotID sets value of ViaBotID 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. (*UpdateShortMessage) Zero() bool *UpdateShortMessage : UpdatesClass *UpdateShortMessage : github.com/gotd/td/bin.BareDecoder *UpdateShortMessage : github.com/gotd/td/bin.BareEncoder *UpdateShortMessage : github.com/gotd/td/bin.Decoder *UpdateShortMessage : github.com/gotd/td/bin.Encoder *UpdateShortMessage : github.com/gotd/td/bin.Object *UpdateShortMessage : github.com/gotd/td/tdp.Object *UpdateShortMessage : fmt.Stringer func UpdateShortMessageArray.First() (v UpdateShortMessage, ok bool) func UpdateShortMessageArray.Last() (v UpdateShortMessage, ok bool) func (*UpdateShortMessageArray).Pop() (v UpdateShortMessage, ok bool) func (*UpdateShortMessageArray).PopFirst() (v UpdateShortMessage, ok bool) func UpdateShortMessageArray.ToMap() map[int]UpdateShortMessage func UpdateShortMessageArray.FillMap(to map[int]UpdateShortMessage) func github.com/gotd/td/telegram/internal/upconv.ShortMessage(u *UpdateShortMessage) *UpdateShort
UpdateShortMessageArray is adapter for slice of UpdateShortMessage. 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 UpdateShortMessage. Sort sorts slice of UpdateShortMessage. SortByDate sorts slice of UpdateShortMessage by Date. SortByID sorts slice of UpdateShortMessage by ID. SortStable sorts slice of UpdateShortMessage. SortStableByDate sorts slice of UpdateShortMessage by Date. SortStableByID sorts slice of UpdateShortMessage by ID. ToMap collects constructors to map. func UpdatesClassArray.AsUpdateShortMessage() (to UpdateShortMessageArray) func UpdateShortMessageArray.Retain(keep func(x UpdateShortMessage) bool) UpdateShortMessageArray func UpdateShortMessageArray.Sort(less func(a, b UpdateShortMessage) bool) UpdateShortMessageArray func UpdateShortMessageArray.SortByDate() UpdateShortMessageArray func UpdateShortMessageArray.SortByID() UpdateShortMessageArray func UpdateShortMessageArray.SortStable(less func(a, b UpdateShortMessage) bool) UpdateShortMessageArray func UpdateShortMessageArray.SortStableByDate() UpdateShortMessageArray func UpdateShortMessageArray.SortStableByID() UpdateShortMessageArray
UpdateShortSentMessage represents TL type `updateShortSentMessage#9015e101`. Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object). See https://core.telegram.org/constructor/updateShortSentMessage for reference. date¹ Links: 1) https://core.telegram.org/api/updates 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 ID of the sent message Attached media Use SetMedia and GetMedia helpers. Whether the message is outgoing PTS¹ Links: 1) https://core.telegram.org/api/updates PTS count¹ Links: 1) https://core.telegram.org/api/updates Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. Use SetTTLPeriod and GetTTLPeriod helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateShortSentMessage from given interface. GetDate returns value of Date field. GetEntities returns value of Entities conditional field and boolean which is true if field was set. GetID returns value of ID field. GetMedia returns value of Media conditional field and boolean which is true if field was set. GetOut returns value of Out conditional field. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount field. GetTTLPeriod returns value of TTLPeriod 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. SetMedia sets value of Media conditional field. SetOut sets value of Out conditional field. SetTTLPeriod sets value of TTLPeriod 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. (*UpdateShortSentMessage) Zero() bool *UpdateShortSentMessage : UpdatesClass *UpdateShortSentMessage : github.com/gotd/td/bin.BareDecoder *UpdateShortSentMessage : github.com/gotd/td/bin.BareEncoder *UpdateShortSentMessage : github.com/gotd/td/bin.Decoder *UpdateShortSentMessage : github.com/gotd/td/bin.Encoder *UpdateShortSentMessage : github.com/gotd/td/bin.Object *UpdateShortSentMessage : github.com/gotd/td/tdp.Object *UpdateShortSentMessage : fmt.Stringer func UpdateShortSentMessageArray.First() (v UpdateShortSentMessage, ok bool) func UpdateShortSentMessageArray.Last() (v UpdateShortSentMessage, ok bool) func (*UpdateShortSentMessageArray).Pop() (v UpdateShortSentMessage, ok bool) func (*UpdateShortSentMessageArray).PopFirst() (v UpdateShortSentMessage, ok bool) func UpdateShortSentMessageArray.ToMap() map[int]UpdateShortSentMessage func UpdateShortSentMessageArray.FillMap(to map[int]UpdateShortSentMessage) func github.com/gotd/td/telegram/internal/upconv.ShortSentMessage(u *UpdateShortSentMessage) *UpdateShort
UpdateShortSentMessageArray is adapter for slice of UpdateShortSentMessage. 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 UpdateShortSentMessage. Sort sorts slice of UpdateShortSentMessage. SortByDate sorts slice of UpdateShortSentMessage by Date. SortByID sorts slice of UpdateShortSentMessage by ID. SortStable sorts slice of UpdateShortSentMessage. SortStableByDate sorts slice of UpdateShortSentMessage by Date. SortStableByID sorts slice of UpdateShortSentMessage by ID. ToMap collects constructors to map. func UpdatesClassArray.AsUpdateShortSentMessage() (to UpdateShortSentMessageArray) func UpdateShortSentMessageArray.Retain(keep func(x UpdateShortSentMessage) bool) UpdateShortSentMessageArray func UpdateShortSentMessageArray.Sort(less func(a, b UpdateShortSentMessage) bool) UpdateShortSentMessageArray func UpdateShortSentMessageArray.SortByDate() UpdateShortSentMessageArray func UpdateShortSentMessageArray.SortByID() UpdateShortSentMessageArray func UpdateShortSentMessageArray.SortStable(less func(a, b UpdateShortSentMessage) bool) UpdateShortSentMessageArray func UpdateShortSentMessageArray.SortStableByDate() UpdateShortSentMessageArray func UpdateShortSentMessageArray.SortStableByID() UpdateShortSentMessageArray
UpdatesState represents TL type `updates.state#a56c2a3e`. Updates state. See https://core.telegram.org/constructor/updates.state for reference. Date of condition Number of events occurred in a text box Position in a sequence of updates in secret chats. For further details refer to article secret chats¹ Links: 1) https://core.telegram.org/api/end-to-end Number of sent updates Number of unread messages Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdatesState from given interface. GetDate returns value of Date field. GetPts returns value of Pts field. GetQts returns value of Qts field. GetSeq returns value of Seq field. GetUnreadCount returns value of UnreadCount 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. (*UpdatesState) Zero() bool *UpdatesState : github.com/gotd/td/bin.BareDecoder *UpdatesState : github.com/gotd/td/bin.BareEncoder *UpdatesState : github.com/gotd/td/bin.Decoder *UpdatesState : github.com/gotd/td/bin.Encoder *UpdatesState : github.com/gotd/td/bin.Object *UpdatesState : github.com/gotd/td/tdp.Object *UpdatesState : fmt.Stringer func (*Client).UpdatesGetState(ctx context.Context) (*UpdatesState, error) func (*MessagesPeerDialogs).GetState() (value UpdatesState) func (*UpdatesDifference).GetState() (value UpdatesState) func (*UpdatesDifferenceSlice).GetIntermediateState() (value UpdatesState)
UpdateStickerSets represents TL type `updateStickerSets#31c24808`. Installed stickersets have changed, the client should refetch them as described in the docs¹. Links: 1. https://core.telegram.org/api/stickers#installing-stickersets See https://core.telegram.org/constructor/updateStickerSets for reference. Whether the list of installed custom emoji stickersets¹ has changed Links: 1) https://core.telegram.org/api/custom-emoji Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether mask stickersets have changed Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateStickerSets from given interface. GetEmojis returns value of Emojis conditional field. GetMasks returns value of Masks conditional field. SetEmojis sets value of Emojis conditional field. SetFlags sets flags for non-zero fields. SetMasks sets value of Masks 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. (*UpdateStickerSets) Zero() bool *UpdateStickerSets : UpdateClass *UpdateStickerSets : github.com/gotd/td/bin.BareDecoder *UpdateStickerSets : github.com/gotd/td/bin.BareEncoder *UpdateStickerSets : github.com/gotd/td/bin.Decoder *UpdateStickerSets : github.com/gotd/td/bin.Encoder *UpdateStickerSets : github.com/gotd/td/bin.Object *UpdateStickerSets : github.com/gotd/td/tdp.Object *UpdateStickerSets : fmt.Stringer func UpdateStickerSetsArray.First() (v UpdateStickerSets, ok bool) func UpdateStickerSetsArray.Last() (v UpdateStickerSets, ok bool) func (*UpdateStickerSetsArray).Pop() (v UpdateStickerSets, ok bool) func (*UpdateStickerSetsArray).PopFirst() (v UpdateStickerSets, ok bool)
UpdateStickerSetsArray is adapter for slice of UpdateStickerSets. 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 UpdateStickerSets. Sort sorts slice of UpdateStickerSets. SortStable sorts slice of UpdateStickerSets. func UpdateClassArray.AsUpdateStickerSets() (to UpdateStickerSetsArray) func UpdateStickerSetsArray.Retain(keep func(x UpdateStickerSets) bool) UpdateStickerSetsArray func UpdateStickerSetsArray.Sort(less func(a, b UpdateStickerSets) bool) UpdateStickerSetsArray func UpdateStickerSetsArray.SortStable(less func(a, b UpdateStickerSets) bool) UpdateStickerSetsArray
UpdateStickerSetsOrder represents TL type `updateStickerSetsOrder#bb2d201`. The order of stickersets was changed See https://core.telegram.org/constructor/updateStickerSetsOrder for reference. Reorder custom emoji stickersets¹ Links: 1) https://core.telegram.org/api/custom-emoji Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Reorder mask stickersets New stickerset order by stickerset IDs Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateStickerSetsOrder from given interface. GetEmojis returns value of Emojis conditional field. GetMasks returns value of Masks conditional field. GetOrder returns value of Order field. SetEmojis sets value of Emojis conditional field. SetFlags sets flags for non-zero fields. SetMasks sets value of Masks 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. (*UpdateStickerSetsOrder) Zero() bool *UpdateStickerSetsOrder : UpdateClass *UpdateStickerSetsOrder : github.com/gotd/td/bin.BareDecoder *UpdateStickerSetsOrder : github.com/gotd/td/bin.BareEncoder *UpdateStickerSetsOrder : github.com/gotd/td/bin.Decoder *UpdateStickerSetsOrder : github.com/gotd/td/bin.Encoder *UpdateStickerSetsOrder : github.com/gotd/td/bin.Object *UpdateStickerSetsOrder : github.com/gotd/td/tdp.Object *UpdateStickerSetsOrder : fmt.Stringer func UpdateStickerSetsOrderArray.First() (v UpdateStickerSetsOrder, ok bool) func UpdateStickerSetsOrderArray.Last() (v UpdateStickerSetsOrder, ok bool) func (*UpdateStickerSetsOrderArray).Pop() (v UpdateStickerSetsOrder, ok bool) func (*UpdateStickerSetsOrderArray).PopFirst() (v UpdateStickerSetsOrder, ok bool)
UpdateStickerSetsOrderArray is adapter for slice of UpdateStickerSetsOrder. 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 UpdateStickerSetsOrder. Sort sorts slice of UpdateStickerSetsOrder. SortStable sorts slice of UpdateStickerSetsOrder. func UpdateClassArray.AsUpdateStickerSetsOrder() (to UpdateStickerSetsOrderArray) func UpdateStickerSetsOrderArray.Retain(keep func(x UpdateStickerSetsOrder) bool) UpdateStickerSetsOrderArray func UpdateStickerSetsOrderArray.Sort(less func(a, b UpdateStickerSetsOrder) bool) UpdateStickerSetsOrderArray func UpdateStickerSetsOrderArray.SortStable(less func(a, b UpdateStickerSetsOrder) bool) UpdateStickerSetsOrderArray
UpdatesTooLong represents TL type `updatesTooLong#e317af7e`. Too many updates, it is necessary to execute updates.getDifference¹. Links: 1. https://core.telegram.org/method/updates.getDifference See https://core.telegram.org/constructor/updatesTooLong 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. (*UpdatesTooLong) Zero() bool *UpdatesTooLong : UpdatesClass *UpdatesTooLong : github.com/gotd/td/bin.BareDecoder *UpdatesTooLong : github.com/gotd/td/bin.BareEncoder *UpdatesTooLong : github.com/gotd/td/bin.Decoder *UpdatesTooLong : github.com/gotd/td/bin.Encoder *UpdatesTooLong : github.com/gotd/td/bin.Object *UpdatesTooLong : github.com/gotd/td/tdp.Object *UpdatesTooLong : fmt.Stringer
UpdateStoriesStealthMode represents TL type `updateStoriesStealthMode#2c084dc1`. Indicates that stories stealth mode¹ was activated. Links: 1. https://core.telegram.org/api/stories#stealth-mode See https://core.telegram.org/constructor/updateStoriesStealthMode for reference. Information about the current stealth mode¹ session. Links: 1) https://core.telegram.org/api/stories#stealth-mode Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateStoriesStealthMode from given interface. GetStealthMode returns value of StealthMode 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. (*UpdateStoriesStealthMode) Zero() bool *UpdateStoriesStealthMode : UpdateClass *UpdateStoriesStealthMode : github.com/gotd/td/bin.BareDecoder *UpdateStoriesStealthMode : github.com/gotd/td/bin.BareEncoder *UpdateStoriesStealthMode : github.com/gotd/td/bin.Decoder *UpdateStoriesStealthMode : github.com/gotd/td/bin.Encoder *UpdateStoriesStealthMode : github.com/gotd/td/bin.Object *UpdateStoriesStealthMode : github.com/gotd/td/tdp.Object *UpdateStoriesStealthMode : fmt.Stringer func UpdateStoriesStealthModeArray.First() (v UpdateStoriesStealthMode, ok bool) func UpdateStoriesStealthModeArray.Last() (v UpdateStoriesStealthMode, ok bool) func (*UpdateStoriesStealthModeArray).Pop() (v UpdateStoriesStealthMode, ok bool) func (*UpdateStoriesStealthModeArray).PopFirst() (v UpdateStoriesStealthMode, ok bool)
UpdateStoriesStealthModeArray is adapter for slice of UpdateStoriesStealthMode. 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 UpdateStoriesStealthMode. Sort sorts slice of UpdateStoriesStealthMode. SortStable sorts slice of UpdateStoriesStealthMode. func UpdateClassArray.AsUpdateStoriesStealthMode() (to UpdateStoriesStealthModeArray) func UpdateStoriesStealthModeArray.Retain(keep func(x UpdateStoriesStealthMode) bool) UpdateStoriesStealthModeArray func UpdateStoriesStealthModeArray.Sort(less func(a, b UpdateStoriesStealthMode) bool) UpdateStoriesStealthModeArray func UpdateStoriesStealthModeArray.SortStable(less func(a, b UpdateStoriesStealthMode) bool) UpdateStoriesStealthModeArray
UpdateStory represents TL type `updateStory#75b3b798`. A new story was posted. See https://core.telegram.org/constructor/updateStory for reference. The channel that reposted the story. The reposted story (may be different from the original story). Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateStory from given interface. GetPeer returns value of Peer field. GetStory returns value of Story 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. (*UpdateStory) Zero() bool *UpdateStory : UpdateClass *UpdateStory : github.com/gotd/td/bin.BareDecoder *UpdateStory : github.com/gotd/td/bin.BareEncoder *UpdateStory : github.com/gotd/td/bin.Decoder *UpdateStory : github.com/gotd/td/bin.Encoder *UpdateStory : github.com/gotd/td/bin.Object *UpdateStory : github.com/gotd/td/tdp.Object *UpdateStory : fmt.Stringer func UpdateStoryArray.First() (v UpdateStory, ok bool) func UpdateStoryArray.Last() (v UpdateStory, ok bool) func (*UpdateStoryArray).Pop() (v UpdateStory, ok bool) func (*UpdateStoryArray).PopFirst() (v UpdateStory, ok bool)
UpdateStoryArray is adapter for slice of UpdateStory. 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 UpdateStory. Sort sorts slice of UpdateStory. SortStable sorts slice of UpdateStory. func UpdateClassArray.AsUpdateStory() (to UpdateStoryArray) func UpdateStoryArray.Retain(keep func(x UpdateStory) bool) UpdateStoryArray func UpdateStoryArray.Sort(less func(a, b UpdateStory) bool) UpdateStoryArray func UpdateStoryArray.SortStable(less func(a, b UpdateStory) bool) UpdateStoryArray
UpdateStoryID represents TL type `updateStoryID#1bf335b9`. A story was successfully uploaded. Once a story is successfully uploaded, an updateStoryID¹ will be returned, indicating the story ID (id) that was attributed to the story (like for messages, random_id indicates the random_id that was passed to stories.sendStory²: this way, you can tell which story was assigned a specific id by checking which stories.sendStory³ call has the returned random_id). Links: 1. https://core.telegram.org/constructor/updateStoryID 2. https://core.telegram.org/method/stories.sendStory 3. https://core.telegram.org/method/stories.sendStory See https://core.telegram.org/constructor/updateStoryID for reference. id identifier of a respective Message¹ Links: 1) https://core.telegram.org/type/Message Previously transferred client random_id identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateStoryID from given interface. GetID returns value of ID field. GetRandomID returns value of RandomID 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. (*UpdateStoryID) Zero() bool *UpdateStoryID : UpdateClass *UpdateStoryID : github.com/gotd/td/bin.BareDecoder *UpdateStoryID : github.com/gotd/td/bin.BareEncoder *UpdateStoryID : github.com/gotd/td/bin.Decoder *UpdateStoryID : github.com/gotd/td/bin.Encoder *UpdateStoryID : github.com/gotd/td/bin.Object *UpdateStoryID : github.com/gotd/td/tdp.Object *UpdateStoryID : fmt.Stringer func UpdateStoryIDArray.First() (v UpdateStoryID, ok bool) func UpdateStoryIDArray.Last() (v UpdateStoryID, ok bool) func (*UpdateStoryIDArray).Pop() (v UpdateStoryID, ok bool) func (*UpdateStoryIDArray).PopFirst() (v UpdateStoryID, ok bool) func UpdateStoryIDArray.ToMap() map[int]UpdateStoryID func UpdateStoryIDArray.FillMap(to map[int]UpdateStoryID)
UpdateStoryIDArray is adapter for slice of UpdateStoryID. 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 UpdateStoryID. Sort sorts slice of UpdateStoryID. SortByID sorts slice of UpdateStoryID by ID. SortStable sorts slice of UpdateStoryID. SortStableByID sorts slice of UpdateStoryID by ID. ToMap collects constructors to map. func UpdateClassArray.AsUpdateStoryID() (to UpdateStoryIDArray) func UpdateStoryIDArray.Retain(keep func(x UpdateStoryID) bool) UpdateStoryIDArray func UpdateStoryIDArray.Sort(less func(a, b UpdateStoryID) bool) UpdateStoryIDArray func UpdateStoryIDArray.SortByID() UpdateStoryIDArray func UpdateStoryIDArray.SortStable(less func(a, b UpdateStoryID) bool) UpdateStoryIDArray func UpdateStoryIDArray.SortStableByID() UpdateStoryIDArray
UpdateTheme represents TL type `updateTheme#8216fba3`. A cloud theme was updated See https://core.telegram.org/constructor/updateTheme for reference. Theme Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateTheme from given interface. 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. (*UpdateTheme) Zero() bool *UpdateTheme : UpdateClass *UpdateTheme : github.com/gotd/td/bin.BareDecoder *UpdateTheme : github.com/gotd/td/bin.BareEncoder *UpdateTheme : github.com/gotd/td/bin.Decoder *UpdateTheme : github.com/gotd/td/bin.Encoder *UpdateTheme : github.com/gotd/td/bin.Object *UpdateTheme : github.com/gotd/td/tdp.Object *UpdateTheme : fmt.Stringer func UpdateThemeArray.First() (v UpdateTheme, ok bool) func UpdateThemeArray.Last() (v UpdateTheme, ok bool) func (*UpdateThemeArray).Pop() (v UpdateTheme, ok bool) func (*UpdateThemeArray).PopFirst() (v UpdateTheme, ok bool)
UpdateThemeArray is adapter for slice of UpdateTheme. 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 UpdateTheme. Sort sorts slice of UpdateTheme. SortStable sorts slice of UpdateTheme. func UpdateClassArray.AsUpdateTheme() (to UpdateThemeArray) func UpdateThemeArray.Retain(keep func(x UpdateTheme) bool) UpdateThemeArray func UpdateThemeArray.Sort(less func(a, b UpdateTheme) bool) UpdateThemeArray func UpdateThemeArray.SortStable(less func(a, b UpdateTheme) bool) UpdateThemeArray
UpdateTranscribedAudio represents TL type `updateTranscribedAudio#84cd5a`. A pending voice message transcription »¹ initiated with messages.transcribeAudio² was updated. Links: 1. https://core.telegram.org/api/transcribe 2. https://core.telegram.org/method/messages.transcribeAudio See https://core.telegram.org/constructor/updateTranscribedAudio for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Transcribed message ID Peer of the transcribed message Whether this transcription is still pending and further updateTranscribedAudio¹ about it will be sent in the future. Links: 1) https://core.telegram.org/constructor/updateTranscribedAudio Transcribed text Transcription ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateTranscribedAudio from given interface. GetMsgID returns value of MsgID field. GetPeer returns value of Peer field. GetPending returns value of Pending conditional field. GetText returns value of Text field. GetTranscriptionID returns value of TranscriptionID field. SetFlags sets flags for non-zero fields. SetPending sets value of Pending 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. (*UpdateTranscribedAudio) Zero() bool *UpdateTranscribedAudio : UpdateClass *UpdateTranscribedAudio : github.com/gotd/td/bin.BareDecoder *UpdateTranscribedAudio : github.com/gotd/td/bin.BareEncoder *UpdateTranscribedAudio : github.com/gotd/td/bin.Decoder *UpdateTranscribedAudio : github.com/gotd/td/bin.Encoder *UpdateTranscribedAudio : github.com/gotd/td/bin.Object *UpdateTranscribedAudio : github.com/gotd/td/tdp.Object *UpdateTranscribedAudio : fmt.Stringer func UpdateTranscribedAudioArray.First() (v UpdateTranscribedAudio, ok bool) func UpdateTranscribedAudioArray.Last() (v UpdateTranscribedAudio, ok bool) func (*UpdateTranscribedAudioArray).Pop() (v UpdateTranscribedAudio, ok bool) func (*UpdateTranscribedAudioArray).PopFirst() (v UpdateTranscribedAudio, ok bool)
UpdateTranscribedAudioArray is adapter for slice of UpdateTranscribedAudio. 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 UpdateTranscribedAudio. Sort sorts slice of UpdateTranscribedAudio. SortStable sorts slice of UpdateTranscribedAudio. func UpdateClassArray.AsUpdateTranscribedAudio() (to UpdateTranscribedAudioArray) func UpdateTranscribedAudioArray.Retain(keep func(x UpdateTranscribedAudio) bool) UpdateTranscribedAudioArray func UpdateTranscribedAudioArray.Sort(less func(a, b UpdateTranscribedAudio) bool) UpdateTranscribedAudioArray func UpdateTranscribedAudioArray.SortStable(less func(a, b UpdateTranscribedAudio) bool) UpdateTranscribedAudioArray
UpdateUser represents TL type `updateUser#20529438`. User information was updated, it must be refetched using users.getFullUser¹. Links: 1. https://core.telegram.org/method/users.getFullUser See https://core.telegram.org/constructor/updateUser for reference. ID of the user that created the group Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateUser from given interface. 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. (*UpdateUser) Zero() bool *UpdateUser : UpdateClass *UpdateUser : github.com/gotd/td/bin.BareDecoder *UpdateUser : github.com/gotd/td/bin.BareEncoder *UpdateUser : github.com/gotd/td/bin.Decoder *UpdateUser : github.com/gotd/td/bin.Encoder *UpdateUser : github.com/gotd/td/bin.Object *UpdateUser : github.com/gotd/td/tdp.Object *UpdateUser : fmt.Stringer func UpdateUserArray.First() (v UpdateUser, ok bool) func UpdateUserArray.Last() (v UpdateUser, ok bool) func (*UpdateUserArray).Pop() (v UpdateUser, ok bool) func (*UpdateUserArray).PopFirst() (v UpdateUser, ok bool)
UpdateUserArray is adapter for slice of UpdateUser. 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 UpdateUser. Sort sorts slice of UpdateUser. SortStable sorts slice of UpdateUser. func UpdateClassArray.AsUpdateUser() (to UpdateUserArray) func UpdateUserArray.Retain(keep func(x UpdateUser) bool) UpdateUserArray func UpdateUserArray.Sort(less func(a, b UpdateUser) bool) UpdateUserArray func UpdateUserArray.SortStable(less func(a, b UpdateUser) bool) UpdateUserArray
UpdateUserEmojiStatus represents TL type `updateUserEmojiStatus#28373599`. The emoji status¹ of a certain user has changed Links: 1. https://core.telegram.org/api/emoji-status See https://core.telegram.org/constructor/updateUserEmojiStatus for reference. New emoji status¹ Links: 1) https://core.telegram.org/api/emoji-status User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateUserEmojiStatus from given interface. GetEmojiStatus returns value of EmojiStatus 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. (*UpdateUserEmojiStatus) Zero() bool *UpdateUserEmojiStatus : UpdateClass *UpdateUserEmojiStatus : github.com/gotd/td/bin.BareDecoder *UpdateUserEmojiStatus : github.com/gotd/td/bin.BareEncoder *UpdateUserEmojiStatus : github.com/gotd/td/bin.Decoder *UpdateUserEmojiStatus : github.com/gotd/td/bin.Encoder *UpdateUserEmojiStatus : github.com/gotd/td/bin.Object *UpdateUserEmojiStatus : github.com/gotd/td/tdp.Object *UpdateUserEmojiStatus : fmt.Stringer func UpdateUserEmojiStatusArray.First() (v UpdateUserEmojiStatus, ok bool) func UpdateUserEmojiStatusArray.Last() (v UpdateUserEmojiStatus, ok bool) func (*UpdateUserEmojiStatusArray).Pop() (v UpdateUserEmojiStatus, ok bool) func (*UpdateUserEmojiStatusArray).PopFirst() (v UpdateUserEmojiStatus, ok bool)
UpdateUserEmojiStatusArray is adapter for slice of UpdateUserEmojiStatus. 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 UpdateUserEmojiStatus. Sort sorts slice of UpdateUserEmojiStatus. SortStable sorts slice of UpdateUserEmojiStatus. func UpdateClassArray.AsUpdateUserEmojiStatus() (to UpdateUserEmojiStatusArray) func UpdateUserEmojiStatusArray.Retain(keep func(x UpdateUserEmojiStatus) bool) UpdateUserEmojiStatusArray func UpdateUserEmojiStatusArray.Sort(less func(a, b UpdateUserEmojiStatus) bool) UpdateUserEmojiStatusArray func UpdateUserEmojiStatusArray.SortStable(less func(a, b UpdateUserEmojiStatus) bool) UpdateUserEmojiStatusArray
UpdateUserName represents TL type `updateUserName#a7848924`. Changes the user's first name, last name and username. See https://core.telegram.org/constructor/updateUserName for reference. New first name. Corresponds to the new value of real_first_name field of the userFull¹ constructor. Links: 1) https://core.telegram.org/constructor/userFull New last name. Corresponds to the new value of real_last_name field of the userFull¹ constructor. Links: 1) https://core.telegram.org/constructor/userFull User identifier Usernames. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateUserName from given interface. GetFirstName returns value of FirstName field. GetLastName returns value of LastName field. GetUserID returns value of UserID field. GetUsernames returns value of Usernames 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. (*UpdateUserName) Zero() bool *UpdateUserName : UpdateClass *UpdateUserName : github.com/gotd/td/bin.BareDecoder *UpdateUserName : github.com/gotd/td/bin.BareEncoder *UpdateUserName : github.com/gotd/td/bin.Decoder *UpdateUserName : github.com/gotd/td/bin.Encoder *UpdateUserName : github.com/gotd/td/bin.Object *UpdateUserName : github.com/gotd/td/tdp.Object *UpdateUserName : fmt.Stringer func UpdateUserNameArray.First() (v UpdateUserName, ok bool) func UpdateUserNameArray.Last() (v UpdateUserName, ok bool) func (*UpdateUserNameArray).Pop() (v UpdateUserName, ok bool) func (*UpdateUserNameArray).PopFirst() (v UpdateUserName, ok bool)
UpdateUserNameArray is adapter for slice of UpdateUserName. 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 UpdateUserName. Sort sorts slice of UpdateUserName. SortStable sorts slice of UpdateUserName. func UpdateClassArray.AsUpdateUserName() (to UpdateUserNameArray) func UpdateUserNameArray.Retain(keep func(x UpdateUserName) bool) UpdateUserNameArray func UpdateUserNameArray.Sort(less func(a, b UpdateUserName) bool) UpdateUserNameArray func UpdateUserNameArray.SortStable(less func(a, b UpdateUserName) bool) UpdateUserNameArray
UpdateUserPhone represents TL type `updateUserPhone#5492a13`. A user's phone number was changed See https://core.telegram.org/constructor/updateUserPhone for reference. New phone number User ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateUserPhone from given interface. GetPhone returns value of Phone 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. (*UpdateUserPhone) Zero() bool *UpdateUserPhone : UpdateClass *UpdateUserPhone : github.com/gotd/td/bin.BareDecoder *UpdateUserPhone : github.com/gotd/td/bin.BareEncoder *UpdateUserPhone : github.com/gotd/td/bin.Decoder *UpdateUserPhone : github.com/gotd/td/bin.Encoder *UpdateUserPhone : github.com/gotd/td/bin.Object *UpdateUserPhone : github.com/gotd/td/tdp.Object *UpdateUserPhone : fmt.Stringer func UpdateUserPhoneArray.First() (v UpdateUserPhone, ok bool) func UpdateUserPhoneArray.Last() (v UpdateUserPhone, ok bool) func (*UpdateUserPhoneArray).Pop() (v UpdateUserPhone, ok bool) func (*UpdateUserPhoneArray).PopFirst() (v UpdateUserPhone, ok bool)
UpdateUserPhoneArray is adapter for slice of UpdateUserPhone. 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 UpdateUserPhone. Sort sorts slice of UpdateUserPhone. SortStable sorts slice of UpdateUserPhone. func UpdateClassArray.AsUpdateUserPhone() (to UpdateUserPhoneArray) func UpdateUserPhoneArray.Retain(keep func(x UpdateUserPhone) bool) UpdateUserPhoneArray func UpdateUserPhoneArray.Sort(less func(a, b UpdateUserPhone) bool) UpdateUserPhoneArray func UpdateUserPhoneArray.SortStable(less func(a, b UpdateUserPhone) bool) UpdateUserPhoneArray
UpdateUserStatus represents TL type `updateUserStatus#e5bdf8de`. Contact status update. See https://core.telegram.org/constructor/updateUserStatus for reference. Online status User identifier Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateUserStatus from given interface. GetStatus returns value of Status 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. (*UpdateUserStatus) Zero() bool *UpdateUserStatus : UpdateClass *UpdateUserStatus : github.com/gotd/td/bin.BareDecoder *UpdateUserStatus : github.com/gotd/td/bin.BareEncoder *UpdateUserStatus : github.com/gotd/td/bin.Decoder *UpdateUserStatus : github.com/gotd/td/bin.Encoder *UpdateUserStatus : github.com/gotd/td/bin.Object *UpdateUserStatus : github.com/gotd/td/tdp.Object *UpdateUserStatus : fmt.Stringer func UpdateUserStatusArray.First() (v UpdateUserStatus, ok bool) func UpdateUserStatusArray.Last() (v UpdateUserStatus, ok bool) func (*UpdateUserStatusArray).Pop() (v UpdateUserStatus, ok bool) func (*UpdateUserStatusArray).PopFirst() (v UpdateUserStatus, ok bool)
UpdateUserStatusArray is adapter for slice of UpdateUserStatus. 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 UpdateUserStatus. Sort sorts slice of UpdateUserStatus. SortStable sorts slice of UpdateUserStatus. func UpdateClassArray.AsUpdateUserStatus() (to UpdateUserStatusArray) func UpdateUserStatusArray.Retain(keep func(x UpdateUserStatus) bool) UpdateUserStatusArray func UpdateUserStatusArray.Sort(less func(a, b UpdateUserStatus) bool) UpdateUserStatusArray func UpdateUserStatusArray.SortStable(less func(a, b UpdateUserStatus) bool) UpdateUserStatusArray
UpdateUserTyping represents TL type `updateUserTyping#c01e857f`. The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing See https://core.telegram.org/constructor/updateUserTyping for reference. Action type User id Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateUserTyping from given interface. GetAction returns value of Action 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. (*UpdateUserTyping) Zero() bool *UpdateUserTyping : UpdateClass *UpdateUserTyping : github.com/gotd/td/bin.BareDecoder *UpdateUserTyping : github.com/gotd/td/bin.BareEncoder *UpdateUserTyping : github.com/gotd/td/bin.Decoder *UpdateUserTyping : github.com/gotd/td/bin.Encoder *UpdateUserTyping : github.com/gotd/td/bin.Object *UpdateUserTyping : github.com/gotd/td/tdp.Object *UpdateUserTyping : fmt.Stringer func UpdateUserTypingArray.First() (v UpdateUserTyping, ok bool) func UpdateUserTypingArray.Last() (v UpdateUserTyping, ok bool) func (*UpdateUserTypingArray).Pop() (v UpdateUserTyping, ok bool) func (*UpdateUserTypingArray).PopFirst() (v UpdateUserTyping, ok bool)
UpdateUserTypingArray is adapter for slice of UpdateUserTyping. 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 UpdateUserTyping. Sort sorts slice of UpdateUserTyping. SortStable sorts slice of UpdateUserTyping. func UpdateClassArray.AsUpdateUserTyping() (to UpdateUserTypingArray) func UpdateUserTypingArray.Retain(keep func(x UpdateUserTyping) bool) UpdateUserTypingArray func UpdateUserTypingArray.Sort(less func(a, b UpdateUserTyping) bool) UpdateUserTypingArray func UpdateUserTypingArray.SortStable(less func(a, b UpdateUserTyping) bool) UpdateUserTypingArray
UpdateWebPage represents TL type `updateWebPage#7f891213`. An instant view¹ webpage preview was generated Links: 1. https://instantview.telegram.org See https://core.telegram.org/constructor/updateWebPage for reference. Event count after generation¹ Links: 1) https://core.telegram.org/api/updates Number of events that were generated¹ Links: 1) https://core.telegram.org/api/updates Webpage preview Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateWebPage from given interface. GetPts returns value of Pts field. GetPtsCount returns value of PtsCount field. GetWebpage returns value of Webpage 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. (*UpdateWebPage) Zero() bool *UpdateWebPage : UpdateClass *UpdateWebPage : github.com/gotd/td/bin.BareDecoder *UpdateWebPage : github.com/gotd/td/bin.BareEncoder *UpdateWebPage : github.com/gotd/td/bin.Decoder *UpdateWebPage : github.com/gotd/td/bin.Encoder *UpdateWebPage : github.com/gotd/td/bin.Object *UpdateWebPage : github.com/gotd/td/tdp.Object *UpdateWebPage : fmt.Stringer func UpdateWebPageArray.First() (v UpdateWebPage, ok bool) func UpdateWebPageArray.Last() (v UpdateWebPage, ok bool) func (*UpdateWebPageArray).Pop() (v UpdateWebPage, ok bool) func (*UpdateWebPageArray).PopFirst() (v UpdateWebPage, ok bool)
UpdateWebPageArray is adapter for slice of UpdateWebPage. 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 UpdateWebPage. Sort sorts slice of UpdateWebPage. SortStable sorts slice of UpdateWebPage. func UpdateClassArray.AsUpdateWebPage() (to UpdateWebPageArray) func UpdateWebPageArray.Retain(keep func(x UpdateWebPage) bool) UpdateWebPageArray func UpdateWebPageArray.Sort(less func(a, b UpdateWebPage) bool) UpdateWebPageArray func UpdateWebPageArray.SortStable(less func(a, b UpdateWebPage) bool) UpdateWebPageArray
UpdateWebViewResultSent represents TL type `updateWebViewResultSent#1592b79d`. Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using messages.sendWebViewResultMessage¹ Links: 1. https://core.telegram.org/method/messages.sendWebViewResultMessage See https://core.telegram.org/constructor/updateWebViewResultSent for reference. Web app interaction ID Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UpdateWebViewResultSent from given interface. 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. (*UpdateWebViewResultSent) Zero() bool *UpdateWebViewResultSent : UpdateClass *UpdateWebViewResultSent : github.com/gotd/td/bin.BareDecoder *UpdateWebViewResultSent : github.com/gotd/td/bin.BareEncoder *UpdateWebViewResultSent : github.com/gotd/td/bin.Decoder *UpdateWebViewResultSent : github.com/gotd/td/bin.Encoder *UpdateWebViewResultSent : github.com/gotd/td/bin.Object *UpdateWebViewResultSent : github.com/gotd/td/tdp.Object *UpdateWebViewResultSent : fmt.Stringer func UpdateWebViewResultSentArray.First() (v UpdateWebViewResultSent, ok bool) func UpdateWebViewResultSentArray.Last() (v UpdateWebViewResultSent, ok bool) func (*UpdateWebViewResultSentArray).Pop() (v UpdateWebViewResultSent, ok bool) func (*UpdateWebViewResultSentArray).PopFirst() (v UpdateWebViewResultSent, ok bool)
UpdateWebViewResultSentArray is adapter for slice of UpdateWebViewResultSent. 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 UpdateWebViewResultSent. Sort sorts slice of UpdateWebViewResultSent. SortStable sorts slice of UpdateWebViewResultSent. func UpdateClassArray.AsUpdateWebViewResultSent() (to UpdateWebViewResultSentArray) func UpdateWebViewResultSentArray.Retain(keep func(x UpdateWebViewResultSent) bool) UpdateWebViewResultSentArray func UpdateWebViewResultSentArray.Sort(less func(a, b UpdateWebViewResultSent) bool) UpdateWebViewResultSentArray func UpdateWebViewResultSentArray.SortStable(less func(a, b UpdateWebViewResultSent) bool) UpdateWebViewResultSentArray
UploadCDNFile represents TL type `upload.cdnFile#a99fca4f`. Represent a chunk of a CDN¹ file. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/constructor/upload.cdnFile for reference. The data Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadCDNFile from given interface. GetBytes returns value of Bytes 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. (*UploadCDNFile) Zero() bool *UploadCDNFile : UploadCDNFileClass *UploadCDNFile : github.com/gotd/td/bin.BareDecoder *UploadCDNFile : github.com/gotd/td/bin.BareEncoder *UploadCDNFile : github.com/gotd/td/bin.Decoder *UploadCDNFile : github.com/gotd/td/bin.Encoder *UploadCDNFile : github.com/gotd/td/bin.Object *UploadCDNFile : github.com/gotd/td/tdp.Object *UploadCDNFile : fmt.Stringer func UploadCDNFileArray.First() (v UploadCDNFile, ok bool) func UploadCDNFileArray.Last() (v UploadCDNFile, ok bool) func (*UploadCDNFileArray).Pop() (v UploadCDNFile, ok bool) func (*UploadCDNFileArray).PopFirst() (v UploadCDNFile, ok bool)
UploadCDNFileArray is adapter for slice of UploadCDNFile. 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 UploadCDNFile. Sort sorts slice of UploadCDNFile. SortStable sorts slice of UploadCDNFile. func UploadCDNFileArray.Retain(keep func(x UploadCDNFile) bool) UploadCDNFileArray func UploadCDNFileArray.Sort(less func(a, b UploadCDNFile) bool) UploadCDNFileArray func UploadCDNFileArray.SortStable(less func(a, b UploadCDNFile) bool) UploadCDNFileArray func UploadCDNFileClassArray.AsUploadCDNFile() (to UploadCDNFileArray)
UploadCDNFile boxes the UploadCDNFileClass providing a helper. CdnFile UploadCDNFileClass Decode implements bin.Decoder for UploadCDNFileBox. Encode implements bin.Encode for UploadCDNFileBox. *UploadCDNFileBox : github.com/gotd/td/bin.Decoder *UploadCDNFileBox : github.com/gotd/td/bin.Encoder *UploadCDNFileBox : github.com/gotd/td/bin.Object
UploadCDNFileClass represents upload.CdnFile generic type. See https://core.telegram.org/type/upload.CdnFile for reference. Example: g, err := tg.DecodeUploadCDNFile(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.UploadCDNFileReuploadNeeded: // upload.cdnFileReuploadNeeded#eea8e46e case *tg.UploadCDNFile: // upload.cdnFile#a99fca4f default: panic(v) } ( UploadCDNFileClass) Decode(b *bin.Buffer) error ( UploadCDNFileClass) DecodeBare(b *bin.Buffer) error ( UploadCDNFileClass) Encode(b *bin.Buffer) error ( UploadCDNFileClass) 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. *UploadCDNFile *UploadCDNFileReuploadNeeded UploadCDNFileClass : github.com/gotd/td/bin.BareDecoder UploadCDNFileClass : github.com/gotd/td/bin.BareEncoder UploadCDNFileClass : github.com/gotd/td/bin.Decoder UploadCDNFileClass : github.com/gotd/td/bin.Encoder UploadCDNFileClass : github.com/gotd/td/bin.Object UploadCDNFileClass : fmt.Stringer func DecodeUploadCDNFile(buf *bin.Buffer) (UploadCDNFileClass, error) func (*Client).UploadGetCDNFile(ctx context.Context, request *UploadGetCDNFileRequest) (UploadCDNFileClass, error) func UploadCDNFileClassArray.First() (v UploadCDNFileClass, ok bool) func UploadCDNFileClassArray.Last() (v UploadCDNFileClass, ok bool) func (*UploadCDNFileClassArray).Pop() (v UploadCDNFileClass, ok bool) func (*UploadCDNFileClassArray).PopFirst() (v UploadCDNFileClass, ok bool)
UploadCDNFileClassArray is adapter for slice of UploadCDNFileClass. AsUploadCDNFile returns copy with only UploadCDNFile constructors. AsUploadCDNFileReuploadNeeded returns copy with only UploadCDNFileReuploadNeeded 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 UploadCDNFileClass. Sort sorts slice of UploadCDNFileClass. SortStable sorts slice of UploadCDNFileClass. func UploadCDNFileClassArray.Retain(keep func(x UploadCDNFileClass) bool) UploadCDNFileClassArray func UploadCDNFileClassArray.Sort(less func(a, b UploadCDNFileClass) bool) UploadCDNFileClassArray func UploadCDNFileClassArray.SortStable(less func(a, b UploadCDNFileClass) bool) UploadCDNFileClassArray
UploadCDNFileReuploadNeeded represents TL type `upload.cdnFileReuploadNeeded#eea8e46e`. The file was cleared from the temporary RAM cache of the CDN¹ and has to be re-uploaded. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/constructor/upload.cdnFileReuploadNeeded for reference. Request token (see CDN¹) Links: 1) https://core.telegram.org/cdn Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadCDNFileReuploadNeeded from given interface. GetRequestToken returns value of RequestToken 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. (*UploadCDNFileReuploadNeeded) Zero() bool *UploadCDNFileReuploadNeeded : UploadCDNFileClass *UploadCDNFileReuploadNeeded : github.com/gotd/td/bin.BareDecoder *UploadCDNFileReuploadNeeded : github.com/gotd/td/bin.BareEncoder *UploadCDNFileReuploadNeeded : github.com/gotd/td/bin.Decoder *UploadCDNFileReuploadNeeded : github.com/gotd/td/bin.Encoder *UploadCDNFileReuploadNeeded : github.com/gotd/td/bin.Object *UploadCDNFileReuploadNeeded : github.com/gotd/td/tdp.Object *UploadCDNFileReuploadNeeded : fmt.Stringer func UploadCDNFileReuploadNeededArray.First() (v UploadCDNFileReuploadNeeded, ok bool) func UploadCDNFileReuploadNeededArray.Last() (v UploadCDNFileReuploadNeeded, ok bool) func (*UploadCDNFileReuploadNeededArray).Pop() (v UploadCDNFileReuploadNeeded, ok bool) func (*UploadCDNFileReuploadNeededArray).PopFirst() (v UploadCDNFileReuploadNeeded, ok bool)
UploadCDNFileReuploadNeededArray is adapter for slice of UploadCDNFileReuploadNeeded. 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 UploadCDNFileReuploadNeeded. Sort sorts slice of UploadCDNFileReuploadNeeded. SortStable sorts slice of UploadCDNFileReuploadNeeded. func UploadCDNFileClassArray.AsUploadCDNFileReuploadNeeded() (to UploadCDNFileReuploadNeededArray) func UploadCDNFileReuploadNeededArray.Retain(keep func(x UploadCDNFileReuploadNeeded) bool) UploadCDNFileReuploadNeededArray func UploadCDNFileReuploadNeededArray.Sort(less func(a, b UploadCDNFileReuploadNeeded) bool) UploadCDNFileReuploadNeededArray func UploadCDNFileReuploadNeededArray.SortStable(less func(a, b UploadCDNFileReuploadNeeded) bool) UploadCDNFileReuploadNeededArray
UploadFile represents TL type `upload.file#96a18d5`. File content. See https://core.telegram.org/constructor/upload.file for reference. Binary data, file content Modification time File type Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadFile from given interface. GetBytes returns value of Bytes field. GetMtime returns value of Mtime field. GetType returns value of Type 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. (*UploadFile) Zero() bool *UploadFile : UploadFileClass *UploadFile : github.com/gotd/td/bin.BareDecoder *UploadFile : github.com/gotd/td/bin.BareEncoder *UploadFile : github.com/gotd/td/bin.Decoder *UploadFile : github.com/gotd/td/bin.Encoder *UploadFile : github.com/gotd/td/bin.Object *UploadFile : github.com/gotd/td/tdp.Object *UploadFile : fmt.Stringer func UploadFileArray.First() (v UploadFile, ok bool) func UploadFileArray.Last() (v UploadFile, ok bool) func (*UploadFileArray).Pop() (v UploadFile, ok bool) func (*UploadFileArray).PopFirst() (v UploadFile, ok bool)
UploadFileArray is adapter for slice of UploadFile. 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 UploadFile. Sort sorts slice of UploadFile. SortStable sorts slice of UploadFile. func UploadFileArray.Retain(keep func(x UploadFile) bool) UploadFileArray func UploadFileArray.Sort(less func(a, b UploadFile) bool) UploadFileArray func UploadFileArray.SortStable(less func(a, b UploadFile) bool) UploadFileArray func UploadFileClassArray.AsUploadFile() (to UploadFileArray)
UploadFile boxes the UploadFileClass providing a helper. File UploadFileClass Decode implements bin.Decoder for UploadFileBox. Encode implements bin.Encode for UploadFileBox. *UploadFileBox : github.com/gotd/td/bin.Decoder *UploadFileBox : github.com/gotd/td/bin.Encoder *UploadFileBox : github.com/gotd/td/bin.Object
UploadFileCDNRedirect represents TL type `upload.fileCdnRedirect#f18cda44`. The file must be downloaded from a CDN DC¹. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/constructor/upload.fileCdnRedirect for reference. CDN DC¹ ID Links: 1) https://core.telegram.org/cdn Encryption IV (see CDN files¹) Links: 1) https://core.telegram.org/cdn Encryption key (see CDN files¹) Links: 1) https://core.telegram.org/cdn File hashes (see CDN files¹) Links: 1) https://core.telegram.org/cdn File token (see CDN files¹) Links: 1) https://core.telegram.org/cdn Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadFileCDNRedirect from given interface. GetDCID returns value of DCID field. GetEncryptionIv returns value of EncryptionIv field. GetEncryptionKey returns value of EncryptionKey field. GetFileHashes returns value of FileHashes field. GetFileToken returns value of FileToken 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. (*UploadFileCDNRedirect) Zero() bool *UploadFileCDNRedirect : UploadFileClass *UploadFileCDNRedirect : github.com/gotd/td/bin.BareDecoder *UploadFileCDNRedirect : github.com/gotd/td/bin.BareEncoder *UploadFileCDNRedirect : github.com/gotd/td/bin.Decoder *UploadFileCDNRedirect : github.com/gotd/td/bin.Encoder *UploadFileCDNRedirect : github.com/gotd/td/bin.Object *UploadFileCDNRedirect : github.com/gotd/td/tdp.Object *UploadFileCDNRedirect : fmt.Stringer func UploadFileCDNRedirectArray.First() (v UploadFileCDNRedirect, ok bool) func UploadFileCDNRedirectArray.Last() (v UploadFileCDNRedirect, ok bool) func (*UploadFileCDNRedirectArray).Pop() (v UploadFileCDNRedirect, ok bool) func (*UploadFileCDNRedirectArray).PopFirst() (v UploadFileCDNRedirect, ok bool)
UploadFileCDNRedirectArray is adapter for slice of UploadFileCDNRedirect. 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 UploadFileCDNRedirect. Sort sorts slice of UploadFileCDNRedirect. SortStable sorts slice of UploadFileCDNRedirect. func UploadFileCDNRedirectArray.Retain(keep func(x UploadFileCDNRedirect) bool) UploadFileCDNRedirectArray func UploadFileCDNRedirectArray.Sort(less func(a, b UploadFileCDNRedirect) bool) UploadFileCDNRedirectArray func UploadFileCDNRedirectArray.SortStable(less func(a, b UploadFileCDNRedirect) bool) UploadFileCDNRedirectArray func UploadFileClassArray.AsUploadFileCDNRedirect() (to UploadFileCDNRedirectArray)
UploadFileClass represents upload.File generic type. See https://core.telegram.org/type/upload.File for reference. Example: g, err := tg.DecodeUploadFile(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.UploadFile: // upload.file#96a18d5 case *tg.UploadFileCDNRedirect: // upload.fileCdnRedirect#f18cda44 default: panic(v) } ( UploadFileClass) Decode(b *bin.Buffer) error ( UploadFileClass) DecodeBare(b *bin.Buffer) error ( UploadFileClass) Encode(b *bin.Buffer) error ( UploadFileClass) 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. *UploadFile *UploadFileCDNRedirect UploadFileClass : github.com/gotd/td/bin.BareDecoder UploadFileClass : github.com/gotd/td/bin.BareEncoder UploadFileClass : github.com/gotd/td/bin.Decoder UploadFileClass : github.com/gotd/td/bin.Encoder UploadFileClass : github.com/gotd/td/bin.Object UploadFileClass : fmt.Stringer func DecodeUploadFile(buf *bin.Buffer) (UploadFileClass, error) func (*Client).UploadGetFile(ctx context.Context, request *UploadGetFileRequest) (UploadFileClass, error) func UploadFileClassArray.First() (v UploadFileClass, ok bool) func UploadFileClassArray.Last() (v UploadFileClass, ok bool) func (*UploadFileClassArray).Pop() (v UploadFileClass, ok bool) func (*UploadFileClassArray).PopFirst() (v UploadFileClass, ok bool)
UploadFileClassArray is adapter for slice of UploadFileClass. AsUploadFile returns copy with only UploadFile constructors. AsUploadFileCDNRedirect returns copy with only UploadFileCDNRedirect 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 UploadFileClass. Sort sorts slice of UploadFileClass. SortStable sorts slice of UploadFileClass. func UploadFileClassArray.Retain(keep func(x UploadFileClass) bool) UploadFileClassArray func UploadFileClassArray.Sort(less func(a, b UploadFileClass) bool) UploadFileClassArray func UploadFileClassArray.SortStable(less func(a, b UploadFileClass) bool) UploadFileClassArray
UploadGetCDNFileHashesRequest represents TL type `upload.getCdnFileHashes#91dc3f31`. Get SHA256 hashes for verifying downloaded CDN¹ files Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/method/upload.getCdnFileHashes for reference. File Offset from which to start getting hashes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadGetCDNFileHashesRequest from given interface. GetFileToken returns value of FileToken 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. (*UploadGetCDNFileHashesRequest) Zero() bool *UploadGetCDNFileHashesRequest : github.com/gotd/td/bin.BareDecoder *UploadGetCDNFileHashesRequest : github.com/gotd/td/bin.BareEncoder *UploadGetCDNFileHashesRequest : github.com/gotd/td/bin.Decoder *UploadGetCDNFileHashesRequest : github.com/gotd/td/bin.Encoder *UploadGetCDNFileHashesRequest : github.com/gotd/td/bin.Object *UploadGetCDNFileHashesRequest : github.com/gotd/td/tdp.Object *UploadGetCDNFileHashesRequest : fmt.Stringer func (*Client).UploadGetCDNFileHashes(ctx context.Context, request *UploadGetCDNFileHashesRequest) ([]FileHash, error)
UploadGetCDNFileRequest represents TL type `upload.getCdnFile#395f69da`. Download a CDN¹ file. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/method/upload.getCdnFile for reference. File token Length of chunk to download Offset of chunk to download Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadGetCDNFileRequest from given interface. GetFileToken returns value of FileToken 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. (*UploadGetCDNFileRequest) Zero() bool *UploadGetCDNFileRequest : github.com/gotd/td/bin.BareDecoder *UploadGetCDNFileRequest : github.com/gotd/td/bin.BareEncoder *UploadGetCDNFileRequest : github.com/gotd/td/bin.Decoder *UploadGetCDNFileRequest : github.com/gotd/td/bin.Encoder *UploadGetCDNFileRequest : github.com/gotd/td/bin.Object *UploadGetCDNFileRequest : github.com/gotd/td/tdp.Object *UploadGetCDNFileRequest : fmt.Stringer func (*Client).UploadGetCDNFile(ctx context.Context, request *UploadGetCDNFileRequest) (UploadCDNFileClass, error)
UploadGetFileHashesRequest represents TL type `upload.getFileHashes#9156982a`. Get SHA256 hashes for verifying downloaded files See https://core.telegram.org/method/upload.getFileHashes for reference. File Offset from which to get file hashes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadGetFileHashesRequest from given interface. GetLocation returns value of Location 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. (*UploadGetFileHashesRequest) Zero() bool *UploadGetFileHashesRequest : github.com/gotd/td/bin.BareDecoder *UploadGetFileHashesRequest : github.com/gotd/td/bin.BareEncoder *UploadGetFileHashesRequest : github.com/gotd/td/bin.Decoder *UploadGetFileHashesRequest : github.com/gotd/td/bin.Encoder *UploadGetFileHashesRequest : github.com/gotd/td/bin.Object *UploadGetFileHashesRequest : github.com/gotd/td/tdp.Object *UploadGetFileHashesRequest : fmt.Stringer func (*Client).UploadGetFileHashes(ctx context.Context, request *UploadGetFileHashesRequest) ([]FileHash, error)
UploadGetFileRequest represents TL type `upload.getFile#be5335be`. Returns content of a whole file or its part. See https://core.telegram.org/method/upload.getFile for reference. Whether the current client supports CDN downloads¹ Links: 1) https://core.telegram.org/cdn Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Number of bytes to be returned File location Number of bytes to be skipped Disable some checks on limit and offset values, useful for example to stream videos by keyframes Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadGetFileRequest from given interface. GetCDNSupported returns value of CDNSupported conditional field. GetLimit returns value of Limit field. GetLocation returns value of Location field. GetOffset returns value of Offset field. GetPrecise returns value of Precise conditional field. SetCDNSupported sets value of CDNSupported conditional field. SetFlags sets flags for non-zero fields. SetPrecise sets value of Precise 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. (*UploadGetFileRequest) Zero() bool *UploadGetFileRequest : github.com/gotd/td/bin.BareDecoder *UploadGetFileRequest : github.com/gotd/td/bin.BareEncoder *UploadGetFileRequest : github.com/gotd/td/bin.Decoder *UploadGetFileRequest : github.com/gotd/td/bin.Encoder *UploadGetFileRequest : github.com/gotd/td/bin.Object *UploadGetFileRequest : github.com/gotd/td/tdp.Object *UploadGetFileRequest : fmt.Stringer func (*Client).UploadGetFile(ctx context.Context, request *UploadGetFileRequest) (UploadFileClass, error)
UploadGetWebFileRequest represents TL type `upload.getWebFile#24e6818d`. See https://core.telegram.org/method/upload.getWebFile for reference. Limit field of UploadGetWebFileRequest. Location field of UploadGetWebFileRequest. Offset field of UploadGetWebFileRequest. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadGetWebFileRequest from given interface. GetLimit returns value of Limit field. GetLocation returns value of Location 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. (*UploadGetWebFileRequest) Zero() bool *UploadGetWebFileRequest : github.com/gotd/td/bin.BareDecoder *UploadGetWebFileRequest : github.com/gotd/td/bin.BareEncoder *UploadGetWebFileRequest : github.com/gotd/td/bin.Decoder *UploadGetWebFileRequest : github.com/gotd/td/bin.Encoder *UploadGetWebFileRequest : github.com/gotd/td/bin.Object *UploadGetWebFileRequest : github.com/gotd/td/tdp.Object *UploadGetWebFileRequest : fmt.Stringer func (*Client).UploadGetWebFile(ctx context.Context, request *UploadGetWebFileRequest) (*UploadWebFile, error)
UploadReuploadCDNFileRequest represents TL type `upload.reuploadCdnFile#9b2754a8`. Request a reupload of a certain file to a CDN DC¹. Links: 1. https://core.telegram.org/cdn See https://core.telegram.org/method/upload.reuploadCdnFile for reference. File token Request token Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadReuploadCDNFileRequest from given interface. GetFileToken returns value of FileToken field. GetRequestToken returns value of RequestToken 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. (*UploadReuploadCDNFileRequest) Zero() bool *UploadReuploadCDNFileRequest : github.com/gotd/td/bin.BareDecoder *UploadReuploadCDNFileRequest : github.com/gotd/td/bin.BareEncoder *UploadReuploadCDNFileRequest : github.com/gotd/td/bin.Decoder *UploadReuploadCDNFileRequest : github.com/gotd/td/bin.Encoder *UploadReuploadCDNFileRequest : github.com/gotd/td/bin.Object *UploadReuploadCDNFileRequest : github.com/gotd/td/tdp.Object *UploadReuploadCDNFileRequest : fmt.Stringer func (*Client).UploadReuploadCDNFile(ctx context.Context, request *UploadReuploadCDNFileRequest) ([]FileHash, error)
UploadSaveBigFilePartRequest represents TL type `upload.saveBigFilePart#de7b673d`. Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods. See https://core.telegram.org/method/upload.saveBigFilePart for reference. Binary data, part contents Random file id, created by the client Part sequence number Total number of parts Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadSaveBigFilePartRequest from given interface. GetBytes returns value of Bytes field. GetFileID returns value of FileID field. GetFilePart returns value of FilePart field. GetFileTotalParts returns value of FileTotalParts 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. (*UploadSaveBigFilePartRequest) Zero() bool *UploadSaveBigFilePartRequest : github.com/gotd/td/bin.BareDecoder *UploadSaveBigFilePartRequest : github.com/gotd/td/bin.BareEncoder *UploadSaveBigFilePartRequest : github.com/gotd/td/bin.Decoder *UploadSaveBigFilePartRequest : github.com/gotd/td/bin.Encoder *UploadSaveBigFilePartRequest : github.com/gotd/td/bin.Object *UploadSaveBigFilePartRequest : github.com/gotd/td/tdp.Object *UploadSaveBigFilePartRequest : fmt.Stringer func (*Client).UploadSaveBigFilePart(ctx context.Context, request *UploadSaveBigFilePartRequest) (bool, error)
UploadSaveFilePartRequest represents TL type `upload.saveFilePart#b304a621`. Saves a part of file for further sending to one of the methods. See https://core.telegram.org/method/upload.saveFilePart for reference. Binary data, content of a part Random file identifier created by the client Numerical order of a part Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadSaveFilePartRequest from given interface. GetBytes returns value of Bytes field. GetFileID returns value of FileID field. GetFilePart returns value of FilePart 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. (*UploadSaveFilePartRequest) Zero() bool *UploadSaveFilePartRequest : github.com/gotd/td/bin.BareDecoder *UploadSaveFilePartRequest : github.com/gotd/td/bin.BareEncoder *UploadSaveFilePartRequest : github.com/gotd/td/bin.Decoder *UploadSaveFilePartRequest : github.com/gotd/td/bin.Encoder *UploadSaveFilePartRequest : github.com/gotd/td/bin.Object *UploadSaveFilePartRequest : github.com/gotd/td/tdp.Object *UploadSaveFilePartRequest : fmt.Stringer func (*Client).UploadSaveFilePart(ctx context.Context, request *UploadSaveFilePartRequest) (bool, error)
UploadWebFile represents TL type `upload.webFile#21e753bc`. Represents a chunk of an HTTP webfile¹ downloaded through telegram's secure MTProto servers Links: 1. https://core.telegram.org/api/files See https://core.telegram.org/constructor/upload.webFile for reference. Data File type Mime type Modified time File size Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UploadWebFile from given interface. GetBytes returns value of Bytes field. GetFileType returns value of FileType field. GetMimeType returns value of MimeType field. GetMtime returns value of Mtime field. GetSize returns value of Size 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. (*UploadWebFile) Zero() bool *UploadWebFile : github.com/gotd/td/bin.BareDecoder *UploadWebFile : github.com/gotd/td/bin.BareEncoder *UploadWebFile : github.com/gotd/td/bin.Decoder *UploadWebFile : github.com/gotd/td/bin.Encoder *UploadWebFile : github.com/gotd/td/bin.Object *UploadWebFile : github.com/gotd/td/tdp.Object *UploadWebFile : fmt.Stringer func (*Client).UploadGetWebFile(ctx context.Context, request *UploadGetWebFileRequest) (*UploadWebFile, error)
URLAuthResultAccepted represents TL type `urlAuthResultAccepted#8f8c0e4e`. Details about an accepted authorization request, for more info click here »¹ Links: 1. https://core.telegram.org/api/url-authorization See https://core.telegram.org/constructor/urlAuthResultAccepted for reference. The URL to open Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills URLAuthResultAccepted from given interface. 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. (*URLAuthResultAccepted) Zero() bool *URLAuthResultAccepted : URLAuthResultClass *URLAuthResultAccepted : github.com/gotd/td/bin.BareDecoder *URLAuthResultAccepted : github.com/gotd/td/bin.BareEncoder *URLAuthResultAccepted : github.com/gotd/td/bin.Decoder *URLAuthResultAccepted : github.com/gotd/td/bin.Encoder *URLAuthResultAccepted : github.com/gotd/td/bin.Object *URLAuthResultAccepted : github.com/gotd/td/tdp.Object *URLAuthResultAccepted : fmt.Stringer func URLAuthResultAcceptedArray.First() (v URLAuthResultAccepted, ok bool) func URLAuthResultAcceptedArray.Last() (v URLAuthResultAccepted, ok bool) func (*URLAuthResultAcceptedArray).Pop() (v URLAuthResultAccepted, ok bool) func (*URLAuthResultAcceptedArray).PopFirst() (v URLAuthResultAccepted, ok bool)
URLAuthResultAcceptedArray is adapter for slice of URLAuthResultAccepted. 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 URLAuthResultAccepted. Sort sorts slice of URLAuthResultAccepted. SortStable sorts slice of URLAuthResultAccepted. func URLAuthResultAcceptedArray.Retain(keep func(x URLAuthResultAccepted) bool) URLAuthResultAcceptedArray func URLAuthResultAcceptedArray.Sort(less func(a, b URLAuthResultAccepted) bool) URLAuthResultAcceptedArray func URLAuthResultAcceptedArray.SortStable(less func(a, b URLAuthResultAccepted) bool) URLAuthResultAcceptedArray func URLAuthResultClassArray.AsURLAuthResultAccepted() (to URLAuthResultAcceptedArray)
URLAuthResult boxes the URLAuthResultClass providing a helper. UrlAuthResult URLAuthResultClass Decode implements bin.Decoder for URLAuthResultBox. Encode implements bin.Encode for URLAuthResultBox. *URLAuthResultBox : github.com/gotd/td/bin.Decoder *URLAuthResultBox : github.com/gotd/td/bin.Encoder *URLAuthResultBox : github.com/gotd/td/bin.Object
URLAuthResultClass represents UrlAuthResult generic type. See https://core.telegram.org/type/UrlAuthResult for reference. Example: g, err := tg.DecodeURLAuthResult(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.URLAuthResultRequest: // urlAuthResultRequest#92d33a0e case *tg.URLAuthResultAccepted: // urlAuthResultAccepted#8f8c0e4e case *tg.URLAuthResultDefault: // urlAuthResultDefault#a9d6db1f default: panic(v) } ( URLAuthResultClass) Decode(b *bin.Buffer) error ( URLAuthResultClass) DecodeBare(b *bin.Buffer) error ( URLAuthResultClass) Encode(b *bin.Buffer) error ( URLAuthResultClass) 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. *URLAuthResultAccepted *URLAuthResultDefault *URLAuthResultRequest URLAuthResultClass : github.com/gotd/td/bin.BareDecoder URLAuthResultClass : github.com/gotd/td/bin.BareEncoder URLAuthResultClass : github.com/gotd/td/bin.Decoder URLAuthResultClass : github.com/gotd/td/bin.Encoder URLAuthResultClass : github.com/gotd/td/bin.Object URLAuthResultClass : fmt.Stringer func DecodeURLAuthResult(buf *bin.Buffer) (URLAuthResultClass, error) func (*Client).MessagesAcceptURLAuth(ctx context.Context, request *MessagesAcceptURLAuthRequest) (URLAuthResultClass, error) func (*Client).MessagesRequestURLAuth(ctx context.Context, request *MessagesRequestURLAuthRequest) (URLAuthResultClass, error) func URLAuthResultClassArray.First() (v URLAuthResultClass, ok bool) func URLAuthResultClassArray.Last() (v URLAuthResultClass, ok bool) func (*URLAuthResultClassArray).Pop() (v URLAuthResultClass, ok bool) func (*URLAuthResultClassArray).PopFirst() (v URLAuthResultClass, ok bool)
URLAuthResultClassArray is adapter for slice of URLAuthResultClass. AsURLAuthResultAccepted returns copy with only URLAuthResultAccepted constructors. AsURLAuthResultRequest returns copy with only URLAuthResultRequest 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 URLAuthResultClass. Sort sorts slice of URLAuthResultClass. SortStable sorts slice of URLAuthResultClass. func URLAuthResultClassArray.Retain(keep func(x URLAuthResultClass) bool) URLAuthResultClassArray func URLAuthResultClassArray.Sort(less func(a, b URLAuthResultClass) bool) URLAuthResultClassArray func URLAuthResultClassArray.SortStable(less func(a, b URLAuthResultClass) bool) URLAuthResultClassArray
URLAuthResultDefault represents TL type `urlAuthResultDefault#a9d6db1f`. Details about an accepted authorization request, for more info click here »¹ Links: 1. https://core.telegram.org/api/url-authorization See https://core.telegram.org/constructor/urlAuthResultDefault 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. (*URLAuthResultDefault) Zero() bool *URLAuthResultDefault : URLAuthResultClass *URLAuthResultDefault : github.com/gotd/td/bin.BareDecoder *URLAuthResultDefault : github.com/gotd/td/bin.BareEncoder *URLAuthResultDefault : github.com/gotd/td/bin.Decoder *URLAuthResultDefault : github.com/gotd/td/bin.Encoder *URLAuthResultDefault : github.com/gotd/td/bin.Object *URLAuthResultDefault : github.com/gotd/td/tdp.Object *URLAuthResultDefault : fmt.Stringer
URLAuthResultRequest represents TL type `urlAuthResultRequest#92d33a0e`. Details about the authorization request, for more info click here »¹ Links: 1. https://core.telegram.org/api/url-authorization See https://core.telegram.org/constructor/urlAuthResultRequest for reference. Username of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot¹ for more details. Links: 1) https://core.telegram.org/widgets/login#linking-your-domain-to-the-bot The domain name of the website on which the user will log in. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the bot would like to send messages to the user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills URLAuthResultRequest from given interface. GetBot returns value of Bot field. GetDomain returns value of Domain field. GetRequestWriteAccess returns value of RequestWriteAccess conditional field. SetFlags sets flags for non-zero fields. SetRequestWriteAccess sets value of RequestWriteAccess 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. (*URLAuthResultRequest) Zero() bool *URLAuthResultRequest : URLAuthResultClass *URLAuthResultRequest : github.com/gotd/td/bin.BareDecoder *URLAuthResultRequest : github.com/gotd/td/bin.BareEncoder *URLAuthResultRequest : github.com/gotd/td/bin.Decoder *URLAuthResultRequest : github.com/gotd/td/bin.Encoder *URLAuthResultRequest : github.com/gotd/td/bin.Object *URLAuthResultRequest : github.com/gotd/td/tdp.Object *URLAuthResultRequest : fmt.Stringer func URLAuthResultRequestArray.First() (v URLAuthResultRequest, ok bool) func URLAuthResultRequestArray.Last() (v URLAuthResultRequest, ok bool) func (*URLAuthResultRequestArray).Pop() (v URLAuthResultRequest, ok bool) func (*URLAuthResultRequestArray).PopFirst() (v URLAuthResultRequest, ok bool)
URLAuthResultRequestArray is adapter for slice of URLAuthResultRequest. 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 URLAuthResultRequest. Sort sorts slice of URLAuthResultRequest. SortStable sorts slice of URLAuthResultRequest. func URLAuthResultClassArray.AsURLAuthResultRequest() (to URLAuthResultRequestArray) func URLAuthResultRequestArray.Retain(keep func(x URLAuthResultRequest) bool) URLAuthResultRequestArray func URLAuthResultRequestArray.Sort(less func(a, b URLAuthResultRequest) bool) URLAuthResultRequestArray func URLAuthResultRequestArray.SortStable(less func(a, b URLAuthResultRequest) bool) URLAuthResultRequestArray
User represents TL type `user#215c4438`. Indicates info about a certain user See https://core.telegram.org/constructor/user for reference. Access hash of the user Use SetAccessHash and GetAccessHash helpers. If set, the profile picture for this user should be refetched Whether we installed the attachment menu web app¹ offered by this bot Links: 1) https://core.telegram.org/api/bots/attach Is this user a bot? Whether this bot offers an attachment menu web app¹ Links: 1) https://core.telegram.org/api/bots/attach Whether we can edit the profile picture, name, about text and description of this bot because we own it. Can the bot see all messages in groups? Version of the bot_info field in userFull¹, incremented every time it changes Links: 1) https://core.telegram.org/constructor/userFull Use SetBotInfoVersion and GetBotInfoVersion helpers. Whether the bot can request our geolocation in inline mode Inline placeholder for this inline bot Use SetBotInlinePlaceholder and GetBotInlinePlaceholder helpers. Can the bot be added to groups? Whether we marked this user as a close friend, see here » for more info¹ Links: 1) https://core.telegram.org/api/privacy The user's accent color¹. Links: 1) https://core.telegram.org/api/colors Use SetColor and GetColor helpers. Whether this user is a contact Whether the account of this user was deleted Emoji status¹ Links: 1) https://core.telegram.org/api/emoji-status Use SetEmojiStatus and GetEmojiStatus helpers. If set, this user was reported by many users as a fake or scam user: be careful when interacting with them. First name Use SetFirstName and GetFirstName helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of the user Language code of the user Use SetLangCode and GetLangCode helpers. Last name Use SetLastName and GetLastName helpers. See min¹ Links: 1) https://core.telegram.org/api/min Whether this user is a mutual contact Phone number Use SetPhone and GetPhone helpers. Profile picture of user Use SetPhoto and GetPhoto helpers. Whether this user is a Telegram Premium user The user's profile color¹. Links: 1) https://core.telegram.org/api/colors Use SetProfileColor and GetProfileColor helpers. Access to this user must be restricted for the reason specified in restriction_reason Contains the reason why access to this user must be restricted. Use SetRestrictionReason and GetRestrictionReason helpers. This may be a scam user Whether this user indicates the currently logged in user Online status of user Use SetStatus and GetStatus helpers. Whether we have hidden »¹ all active stories of this user. Links: 1) https://core.telegram.org/api/stories#hiding-stories-of-other-users ID of the maximum read story¹. Links: 1) https://core.telegram.org/api/stories Use SetStoriesMaxID and GetStoriesMaxID helpers. No stories from this user are visible. Whether this is an official support user Username Use SetUsername and GetUsername helpers. Additional usernames Use SetUsernames and GetUsernames helpers. Whether this user is verified AsInput tries to map User to InputUser. AsInputPeer tries to map User to InputPeerUser. AsNotEmpty tries to map User to User. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills User from given interface. GetAccessHash returns value of AccessHash conditional field and boolean which is true if field was set. GetApplyMinPhoto returns value of ApplyMinPhoto conditional field. GetAttachMenuEnabled returns value of AttachMenuEnabled conditional field. GetBot returns value of Bot conditional field. GetBotAttachMenu returns value of BotAttachMenu conditional field. GetBotCanEdit returns value of BotCanEdit conditional field. GetBotChatHistory returns value of BotChatHistory conditional field. GetBotInfoVersion returns value of BotInfoVersion conditional field and boolean which is true if field was set. GetBotInlineGeo returns value of BotInlineGeo conditional field. GetBotInlinePlaceholder returns value of BotInlinePlaceholder conditional field and boolean which is true if field was set. GetBotNochats returns value of BotNochats conditional field. GetCloseFriend returns value of CloseFriend conditional field. GetColor returns value of Color conditional field and boolean which is true if field was set. GetContact returns value of Contact conditional field. GetDeleted returns value of Deleted conditional field. GetEmojiStatus returns value of EmojiStatus conditional field and boolean which is true if field was set. GetFake returns value of Fake conditional field. GetFirstName returns value of FirstName conditional field and boolean which is true if field was set. GetID returns value of ID field. GetLangCode returns value of LangCode 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. GetMin returns value of Min conditional field. GetMutualContact returns value of MutualContact conditional field. GetPhone returns value of Phone conditional field and boolean which is true if field was set. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetPremium returns value of Premium conditional field. GetProfileColor returns value of ProfileColor conditional field and boolean which is true if field was set. GetRestricted returns value of Restricted conditional field. GetRestrictionReason returns value of RestrictionReason conditional field and boolean which is true if field was set. GetScam returns value of Scam conditional field. GetSelf returns value of Self conditional field. GetStatus returns value of Status conditional field and boolean which is true if field was set. GetStoriesHidden returns value of StoriesHidden conditional field. GetStoriesMaxID returns value of StoriesMaxID conditional field and boolean which is true if field was set. GetStoriesUnavailable returns value of StoriesUnavailable conditional field. GetSupport returns value of Support conditional field. GetUsername returns value of Username conditional field and boolean which is true if field was set. GetUsernames returns value of Usernames conditional field and boolean which is true if field was set. GetVerified returns value of Verified conditional field. SetAccessHash sets value of AccessHash conditional field. SetApplyMinPhoto sets value of ApplyMinPhoto conditional field. SetAttachMenuEnabled sets value of AttachMenuEnabled conditional field. SetBot sets value of Bot conditional field. SetBotAttachMenu sets value of BotAttachMenu conditional field. SetBotCanEdit sets value of BotCanEdit conditional field. SetBotChatHistory sets value of BotChatHistory conditional field. SetBotInfoVersion sets value of BotInfoVersion conditional field. SetBotInlineGeo sets value of BotInlineGeo conditional field. SetBotInlinePlaceholder sets value of BotInlinePlaceholder conditional field. SetBotNochats sets value of BotNochats conditional field. SetCloseFriend sets value of CloseFriend conditional field. SetColor sets value of Color conditional field. SetContact sets value of Contact conditional field. SetDeleted sets value of Deleted conditional field. SetEmojiStatus sets value of EmojiStatus conditional field. SetFake sets value of Fake conditional field. SetFirstName sets value of FirstName conditional field. SetFlags sets flags for non-zero fields. SetLangCode sets value of LangCode conditional field. SetLastName sets value of LastName conditional field. SetMin sets value of Min conditional field. SetMutualContact sets value of MutualContact conditional field. SetPhone sets value of Phone conditional field. SetPhoto sets value of Photo conditional field. SetPremium sets value of Premium conditional field. SetProfileColor sets value of ProfileColor conditional field. SetRestricted sets value of Restricted conditional field. SetRestrictionReason sets value of RestrictionReason conditional field. SetScam sets value of Scam conditional field. SetSelf sets value of Self conditional field. SetStatus sets value of Status conditional field. SetStoriesHidden sets value of StoriesHidden conditional field. SetStoriesMaxID sets value of StoriesMaxID conditional field. SetStoriesUnavailable sets value of StoriesUnavailable conditional field. SetSupport sets value of Support conditional field. SetUsername sets value of Username conditional field. SetUsernames sets value of Usernames conditional field. SetVerified sets value of Verified 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. (*User) Zero() bool *User : UserClass *User : github.com/gotd/td/bin.BareDecoder *User : github.com/gotd/td/bin.BareEncoder *User : github.com/gotd/td/bin.Decoder *User : github.com/gotd/td/bin.Encoder *User : github.com/gotd/td/bin.Object *User : github.com/gotd/td/tdp.Object *User : fmt.Stringer func (*HelpSupport).GetUserAsNotEmpty() (*User, bool) func (*User).AsNotEmpty() (*User, bool) func UserArray.First() (v User, ok bool) func UserArray.Last() (v User, ok bool) func (*UserArray).Pop() (v User, ok bool) func (*UserArray).PopFirst() (v User, ok bool) func UserArray.ToMap() map[int64]User func UserClass.AsNotEmpty() (*User, bool) func UserClassArray.AppendOnlyNotEmpty(to []*User) []*User func UserClassArray.AsNotEmpty() (to []*User) func UserClassArray.FirstAsNotEmpty() (v *User, ok bool) func UserClassArray.LastAsNotEmpty() (v *User, ok bool) func UserClassArray.NotEmptyToMap() map[int64]*User func (*UserClassArray).PopAsNotEmpty() (v *User, ok bool) func (*UserClassArray).PopFirstAsNotEmpty() (v *User, ok bool) func UserClassArray.UserToMap() map[int64]*User func (*UserEmpty).AsNotEmpty() (*User, bool) func github.com/gotd/td/telegram.(*Client).Self(ctx context.Context) (*User, error) func UserArray.FillMap(to map[int64]User) func UserClassArray.AppendOnlyNotEmpty(to []*User) []*User func UserClassArray.FillNotEmptyMap(to map[int64]*User) func UserClassArray.FillUserMap(to map[int64]*User)
UserArray is adapter for slice of User. 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 User. Sort sorts slice of User. SortByID sorts slice of User by ID. SortStable sorts slice of User. SortStableByID sorts slice of User by ID. ToMap collects constructors to map. func UserArray.Retain(keep func(x User) bool) UserArray func UserArray.Sort(less func(a, b User) bool) UserArray func UserArray.SortByID() UserArray func UserArray.SortStable(less func(a, b User) bool) UserArray func UserArray.SortStableByID() UserArray func UserClassArray.AsUser() (to UserArray)
User boxes the UserClass providing a helper. User UserClass Decode implements bin.Decoder for UserBox. Encode implements bin.Encode for UserBox. *UserBox : github.com/gotd/td/bin.Decoder *UserBox : github.com/gotd/td/bin.Encoder *UserBox : github.com/gotd/td/bin.Object
UserClass represents User generic type. See https://core.telegram.org/type/User for reference. Example: g, err := tg.DecodeUser(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.UserEmpty: // userEmpty#d3bc4b7a case *tg.User: // user#215c4438 default: panic(v) } AsNotEmpty tries to map UserClass to User. ( UserClass) Decode(b *bin.Buffer) error ( UserClass) DecodeBare(b *bin.Buffer) error ( UserClass) Encode(b *bin.Buffer) error ( UserClass) EncodeBare(b *bin.Buffer) error User identifier or 0 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. *User *UserEmpty UserClass : github.com/gotd/td/bin.BareDecoder UserClass : github.com/gotd/td/bin.BareEncoder UserClass : github.com/gotd/td/bin.Decoder UserClass : github.com/gotd/td/bin.Encoder UserClass : github.com/gotd/td/bin.Object UserClass : fmt.Stringer func DecodeUser(buf *bin.Buffer) (UserClass, error) func (*AccountAuthorizationForm).GetUsers() (value []UserClass) func (*AccountAutoSaveSettings).GetUsers() (value []UserClass) func (*AccountPrivacyRules).GetUsers() (value []UserClass) func (*AccountWebAuthorizations).GetUsers() (value []UserClass) func (*AttachMenuBots).GetUsers() (value []UserClass) func (*AttachMenuBotsBot).GetUsers() (value []UserClass) func (*AuthAuthorization).GetUser() (value UserClass) func (*ChannelsAdminLogResults).GetUsers() (value []UserClass) func (*ChannelsChannelParticipant).GetUsers() (value []UserClass) func (*ChannelsChannelParticipants).GetUsers() (value []UserClass) func (*ChannelsSendAsPeers).GetUsers() (value []UserClass) func (*ChatInvite).GetParticipants() (value []UserClass, ok bool) func (*ChatlistsChatlistInvite).GetUsers() (value []UserClass) func (*ChatlistsChatlistInviteAlready).GetUsers() (value []UserClass) func ChatlistsChatlistInviteClass.GetUsers() (value []UserClass) func (*ChatlistsChatlistUpdates).GetUsers() (value []UserClass) func (*ChatlistsExportedInvites).GetUsers() (value []UserClass) func (*Client).AccountChangePhone(ctx context.Context, request *AccountChangePhoneRequest) (UserClass, error) func (*Client).AccountUpdateProfile(ctx context.Context, request *AccountUpdateProfileRequest) (UserClass, error) func (*Client).AccountUpdateUsername(ctx context.Context, username string) (UserClass, error) func (*Client).ContactsImportContactToken(ctx context.Context, token string) (UserClass, error) func (*Client).UsersGetUsers(ctx context.Context, id []InputUserClass) ([]UserClass, error) func (*ContactsBlocked).GetUsers() (value []UserClass) func ContactsBlockedClass.GetUsers() (value []UserClass) func (*ContactsBlockedSlice).GetUsers() (value []UserClass) func (*ContactsContacts).GetUsers() (value []UserClass) func (*ContactsFound).GetUsers() (value []UserClass) func (*ContactsImportedContacts).GetUsers() (value []UserClass) func (*ContactsResolvedPeer).GetUsers() (value []UserClass) func (*ContactsTopPeers).GetUsers() (value []UserClass) func (*HelpPremiumPromo).GetUsers() (value []UserClass) func (*HelpPromoData).GetUsers() (value []UserClass) func (*HelpRecentMeURLs).GetUsers() (value []UserClass) func (*HelpSupport).GetUser() (value UserClass) func (*MessagesBotResults).GetUsers() (value []UserClass) func (*MessagesChannelMessages).GetUsers() (value []UserClass) func (*MessagesChatAdminsWithInvites).GetUsers() (value []UserClass) func (*MessagesChatFull).GetUsers() (value []UserClass) func (*MessagesChatInviteImporters).GetUsers() (value []UserClass) func (*MessagesDialogs).GetUsers() (value []UserClass) func (*MessagesDialogsSlice).GetUsers() (value []UserClass) func (*MessagesDiscussionMessage).GetUsers() (value []UserClass) func (*MessagesExportedChatInvite).GetUsers() (value []UserClass) func MessagesExportedChatInviteClass.GetUsers() (value []UserClass) func (*MessagesExportedChatInviteReplaced).GetUsers() (value []UserClass) func (*MessagesExportedChatInvites).GetUsers() (value []UserClass) func (*MessagesForumTopics).GetUsers() (value []UserClass) func (*MessagesHighScores).GetUsers() (value []UserClass) func (*MessagesInactiveChats).GetUsers() (value []UserClass) func (*MessagesMessageReactionsList).GetUsers() (value []UserClass) func (*MessagesMessages).GetUsers() (value []UserClass) func (*MessagesMessagesSlice).GetUsers() (value []UserClass) func (*MessagesMessageViews).GetUsers() (value []UserClass) func (*MessagesPeerDialogs).GetUsers() (value []UserClass) func (*MessagesPeerSettings).GetUsers() (value []UserClass) func (*MessagesSearchResultsCalendar).GetUsers() (value []UserClass) func (*MessagesSponsoredMessages).GetUsers() (value []UserClass) func (*MessagesVotesList).GetUsers() (value []UserClass) func (*MessagesWebPage).GetUsers() (value []UserClass) func ModifiedMessagesDialogs.GetUsers() (value []UserClass) func ModifiedMessagesMessages.GetUsers() (value []UserClass) func NotEmptyUpdatesChannelDifference.GetUsers() (value []UserClass) func (*PaymentsCheckedGiftCode).GetUsers() (value []UserClass) func (*PaymentsPaymentForm).GetUsers() (value []UserClass) func (*PaymentsPaymentReceipt).GetUsers() (value []UserClass) func (*PhoneGroupCall).GetUsers() (value []UserClass) func (*PhoneGroupParticipants).GetUsers() (value []UserClass) func (*PhoneJoinAsPeers).GetUsers() (value []UserClass) func (*PhonePhoneCall).GetUsers() (value []UserClass) func (*PhotosPhoto).GetUsers() (value []UserClass) func (*PhotosPhotos).GetUsers() (value []UserClass) func PhotosPhotosClass.GetUsers() (value []UserClass) func (*PhotosPhotosSlice).GetUsers() (value []UserClass) func (*PremiumBoostsList).GetUsers() (value []UserClass) func (*PremiumMyBoosts).GetUsers() (value []UserClass) func (*StatsMegagroupStats).GetUsers() (value []UserClass) func (*StatsPublicForwards).GetUsers() (value []UserClass) func (*StoriesAllStories).GetUsers() (value []UserClass) func (*StoriesPeerStories).GetUsers() (value []UserClass) func (*StoriesStories).GetUsers() (value []UserClass) func (*StoriesStoryReactionsList).GetUsers() (value []UserClass) func (*StoriesStoryViews).GetUsers() (value []UserClass) func (*StoriesStoryViewsList).GetUsers() (value []UserClass) func (*Updates).GetUsers() (value []UserClass) func (*UpdatesChannelDifference).GetUsers() (value []UserClass) func (*UpdatesChannelDifferenceTooLong).GetUsers() (value []UserClass) func (*UpdatesCombined).GetUsers() (value []UserClass) func (*UpdatesDifference).GetUsers() (value []UserClass) func (*UpdatesDifferenceSlice).GetUsers() (value []UserClass) func (*URLAuthResultRequest).GetBot() (value UserClass) func UserClassArray.First() (v UserClass, ok bool) func UserClassArray.Last() (v UserClass, ok bool) func (*UserClassArray).Pop() (v UserClass, ok bool) func (*UserClassArray).PopFirst() (v UserClass, ok bool) func (*UserClassVector).GetElems() (value []UserClass) func (*UsersUserFull).GetUsers() (value []UserClass) func (*ChatInvite).SetParticipants(value []UserClass)
UserClassArray is adapter for slice of UserClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsNotEmpty returns copy with only NotEmpty constructors. AsUser returns copy with only User constructors. AsUserEmpty returns copy with only UserEmpty constructors. FillNotEmptyMap fills only NotEmpty constructors to given map. FillUserEmptyMap fills only UserEmpty constructors to given map. FillUserMap fills only User constructors to given map. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). NotEmptyToMap collects only NotEmpty constructors to map. Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of UserClass. Sort sorts slice of UserClass. SortByID sorts slice of UserClass by ID. SortStable sorts slice of UserClass. SortStableByID sorts slice of UserClass by ID. UserEmptyToMap collects only UserEmpty constructors to map. UserToMap collects only User constructors to map. func (*AccountAuthorizationForm).MapUsers() (value UserClassArray) func (*AccountAutoSaveSettings).MapUsers() (value UserClassArray) func (*AccountPrivacyRules).MapUsers() (value UserClassArray) func (*AccountWebAuthorizations).MapUsers() (value UserClassArray) func (*AttachMenuBots).MapUsers() (value UserClassArray) func (*AttachMenuBotsBot).MapUsers() (value UserClassArray) func (*ChannelsAdminLogResults).MapUsers() (value UserClassArray) func (*ChannelsChannelParticipant).MapUsers() (value UserClassArray) func (*ChannelsChannelParticipants).MapUsers() (value UserClassArray) func (*ChannelsSendAsPeers).MapUsers() (value UserClassArray) func (*ChatInvite).MapParticipants() (value UserClassArray, ok bool) func (*ChatlistsChatlistInvite).MapUsers() (value UserClassArray) func (*ChatlistsChatlistInviteAlready).MapUsers() (value UserClassArray) func ChatlistsChatlistInviteClass.MapUsers() (value UserClassArray) func (*ChatlistsChatlistUpdates).MapUsers() (value UserClassArray) func (*ChatlistsExportedInvites).MapUsers() (value UserClassArray) func (*ContactsBlocked).MapUsers() (value UserClassArray) func ContactsBlockedClass.MapUsers() (value UserClassArray) func (*ContactsBlockedSlice).MapUsers() (value UserClassArray) func (*ContactsContacts).MapUsers() (value UserClassArray) func (*ContactsFound).MapUsers() (value UserClassArray) func (*ContactsImportedContacts).MapUsers() (value UserClassArray) func (*ContactsResolvedPeer).MapUsers() (value UserClassArray) func (*ContactsTopPeers).MapUsers() (value UserClassArray) func (*HelpPremiumPromo).MapUsers() (value UserClassArray) func (*HelpPromoData).MapUsers() (value UserClassArray) func (*HelpRecentMeURLs).MapUsers() (value UserClassArray) func (*MessagesBotResults).MapUsers() (value UserClassArray) func (*MessagesChannelMessages).MapUsers() (value UserClassArray) func (*MessagesChatAdminsWithInvites).MapUsers() (value UserClassArray) func (*MessagesChatFull).MapUsers() (value UserClassArray) func (*MessagesChatInviteImporters).MapUsers() (value UserClassArray) func (*MessagesDialogs).MapUsers() (value UserClassArray) func (*MessagesDialogsSlice).MapUsers() (value UserClassArray) func (*MessagesDiscussionMessage).MapUsers() (value UserClassArray) func (*MessagesExportedChatInvite).MapUsers() (value UserClassArray) func MessagesExportedChatInviteClass.MapUsers() (value UserClassArray) func (*MessagesExportedChatInviteReplaced).MapUsers() (value UserClassArray) func (*MessagesExportedChatInvites).MapUsers() (value UserClassArray) func (*MessagesForumTopics).MapUsers() (value UserClassArray) func (*MessagesHighScores).MapUsers() (value UserClassArray) func (*MessagesInactiveChats).MapUsers() (value UserClassArray) func (*MessagesMessageReactionsList).MapUsers() (value UserClassArray) func (*MessagesMessages).MapUsers() (value UserClassArray) func (*MessagesMessagesSlice).MapUsers() (value UserClassArray) func (*MessagesMessageViews).MapUsers() (value UserClassArray) func (*MessagesPeerDialogs).MapUsers() (value UserClassArray) func (*MessagesPeerSettings).MapUsers() (value UserClassArray) func (*MessagesSearchResultsCalendar).MapUsers() (value UserClassArray) func (*MessagesSponsoredMessages).MapUsers() (value UserClassArray) func (*MessagesVotesList).MapUsers() (value UserClassArray) func (*MessagesWebPage).MapUsers() (value UserClassArray) func (*PaymentsCheckedGiftCode).MapUsers() (value UserClassArray) func (*PaymentsPaymentForm).MapUsers() (value UserClassArray) func (*PaymentsPaymentReceipt).MapUsers() (value UserClassArray) func (*PhoneGroupCall).MapUsers() (value UserClassArray) func (*PhoneGroupParticipants).MapUsers() (value UserClassArray) func (*PhoneJoinAsPeers).MapUsers() (value UserClassArray) func (*PhonePhoneCall).MapUsers() (value UserClassArray) func (*PhotosPhoto).MapUsers() (value UserClassArray) func (*PhotosPhotos).MapUsers() (value UserClassArray) func PhotosPhotosClass.MapUsers() (value UserClassArray) func (*PhotosPhotosSlice).MapUsers() (value UserClassArray) func (*PremiumBoostsList).MapUsers() (value UserClassArray) func (*PremiumMyBoosts).MapUsers() (value UserClassArray) func (*StatsMegagroupStats).MapUsers() (value UserClassArray) func (*StatsPublicForwards).MapUsers() (value UserClassArray) func (*StoriesAllStories).MapUsers() (value UserClassArray) func (*StoriesPeerStories).MapUsers() (value UserClassArray) func (*StoriesStories).MapUsers() (value UserClassArray) func (*StoriesStoryReactionsList).MapUsers() (value UserClassArray) func (*StoriesStoryViews).MapUsers() (value UserClassArray) func (*StoriesStoryViewsList).MapUsers() (value UserClassArray) func (*Updates).MapUsers() (value UserClassArray) func (*UpdatesChannelDifference).MapUsers() (value UserClassArray) func (*UpdatesChannelDifferenceTooLong).MapUsers() (value UserClassArray) func (*UpdatesCombined).MapUsers() (value UserClassArray) func (*UpdatesDifference).MapUsers() (value UserClassArray) func (*UpdatesDifferenceSlice).MapUsers() (value UserClassArray) func UserClassArray.Retain(keep func(x UserClass) bool) UserClassArray func UserClassArray.Sort(less func(a, b UserClass) bool) UserClassArray func UserClassArray.SortByID() UserClassArray func UserClassArray.SortStable(less func(a, b UserClass) bool) UserClassArray func UserClassArray.SortStableByID() UserClassArray func (*UserClassVector).MapElems() (value UserClassArray) func (*UsersUserFull).MapUsers() (value UserClassArray)
UserClassVector is a box for Vector<User> Elements of Vector<User> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UserClassVector from given interface. GetElems returns value of Elems field. MapElems returns field Elems 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. (*UserClassVector) Zero() bool *UserClassVector : github.com/gotd/td/bin.BareDecoder *UserClassVector : github.com/gotd/td/bin.BareEncoder *UserClassVector : github.com/gotd/td/bin.Decoder *UserClassVector : github.com/gotd/td/bin.Encoder *UserClassVector : github.com/gotd/td/bin.Object *UserClassVector : github.com/gotd/td/tdp.Object *UserClassVector : fmt.Stringer
UserEmojiStatusHandler is a UserEmojiStatus event handler. func UpdateDispatcher.OnUserEmojiStatus(handler UserEmojiStatusHandler)
UserEmpty represents TL type `userEmpty#d3bc4b7a`. Empty constructor, non-existent user. See https://core.telegram.org/constructor/userEmpty for reference. Takeout ID AsNotEmpty tries to map UserEmpty to User. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UserEmpty 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. (*UserEmpty) Zero() bool *UserEmpty : UserClass *UserEmpty : github.com/gotd/td/bin.BareDecoder *UserEmpty : github.com/gotd/td/bin.BareEncoder *UserEmpty : github.com/gotd/td/bin.Decoder *UserEmpty : github.com/gotd/td/bin.Encoder *UserEmpty : github.com/gotd/td/bin.Object *UserEmpty : github.com/gotd/td/tdp.Object *UserEmpty : fmt.Stringer func UserClassArray.UserEmptyToMap() map[int64]*UserEmpty func UserEmptyArray.First() (v UserEmpty, ok bool) func UserEmptyArray.Last() (v UserEmpty, ok bool) func (*UserEmptyArray).Pop() (v UserEmpty, ok bool) func (*UserEmptyArray).PopFirst() (v UserEmpty, ok bool) func UserEmptyArray.ToMap() map[int64]UserEmpty func UserClassArray.FillUserEmptyMap(to map[int64]*UserEmpty) func UserEmptyArray.FillMap(to map[int64]UserEmpty)
UserEmptyArray is adapter for slice of UserEmpty. 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 UserEmpty. Sort sorts slice of UserEmpty. SortByID sorts slice of UserEmpty by ID. SortStable sorts slice of UserEmpty. SortStableByID sorts slice of UserEmpty by ID. ToMap collects constructors to map. func UserClassArray.AsUserEmpty() (to UserEmptyArray) func UserEmptyArray.Retain(keep func(x UserEmpty) bool) UserEmptyArray func UserEmptyArray.Sort(less func(a, b UserEmpty) bool) UserEmptyArray func UserEmptyArray.SortByID() UserEmptyArray func UserEmptyArray.SortStable(less func(a, b UserEmpty) bool) UserEmptyArray func UserEmptyArray.SortStableByID() UserEmptyArray
UserFull represents TL type `userFull#b9b12c6c`. Extended user info See https://core.telegram.org/constructor/userFull for reference. Bio of the user Use SetAbout and GetAbout helpers. Whether you have blocked this user Whether we've blocked this user, preventing them from seeing our stories »¹. Links: 1) https://core.telegram.org/api/block A suggested set of administrator rights¹ for the bot, to be shown when adding the bot as admin to a channel, see here for more info on how to handle them »². Links: 1) https://core.telegram.org/api/rights#suggested-bot-rights 2) https://core.telegram.org/api/rights#suggested-bot-rights Use SetBotBroadcastAdminRights and GetBotBroadcastAdminRights helpers. A suggested set of administrator rights¹ for the bot, to be shown when adding the bot as admin to a group, see here for more info on how to handle them »². Links: 1) https://core.telegram.org/api/rights#suggested-bot-rights 2) https://core.telegram.org/api/rights#suggested-bot-rights Use SetBotGroupAdminRights and GetBotGroupAdminRights helpers. For bots, info about the bot (bot commands, etc) Use SetBotInfo and GetBotInfo helpers. Whether you can pin messages in the chat with this user, you can do this only for a chat with yourself Chats in common with this user Fallback profile photo, displayed if no photo is present in profile_photo or personal_photo, due to privacy settings. Use SetFallbackPhoto and GetFallbackPhoto helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Peer folder ID, for more info click here¹ Links: 1) https://core.telegram.org/api/folders#peer-folders Use SetFolderID and GetFolderID helpers. Whether scheduled messages¹ are available Links: 1) https://core.telegram.org/api/scheduled-messages User ID Notification settings Personal profile photo, to be shown instead of profile_photo. Use SetPersonalPhoto and GetPersonalPhoto helpers. Whether this user can make VoIP calls Whether this user's privacy settings allow you to call them Message ID of the last pinned message¹ Links: 1) https://core.telegram.org/api/pin Use SetPinnedMsgID and GetPinnedMsgID helpers. Telegram Premium subscriptions gift options Use SetPremiumGifts and GetPremiumGifts helpers. Anonymized text to be shown instead of the user's name on forwarded messages Use SetPrivateForwardName and GetPrivateForwardName helpers. Profile photo Use SetProfilePhoto and GetProfilePhoto helpers. Peer settings Active stories »¹ Links: 1) https://core.telegram.org/api/stories Use SetStories and GetStories helpers. Whether this user has some pinned stories¹. Links: 1) https://core.telegram.org/api/stories#pinned-or-archived-stories Time To Live of all messages in this chat; once a message is this many seconds old, it must be deleted. Use SetTTLPeriod and GetTTLPeriod helpers. Emoji associated with chat theme Use SetThemeEmoticon and GetThemeEmoticon helpers. Whether the real-time chat translation popup¹ should be hidden. Links: 1) https://core.telegram.org/api/translation Whether the user can receive video calls Whether this user doesn't allow sending voice messages in a private chat with them Wallpaper¹ to use in the private chat with the user. Links: 1) https://core.telegram.org/api/wallpapers Use SetWallpaper and GetWallpaper helpers. Whether the other user has chosen a custom wallpaper for us using messages setChatWallPaper¹ and the for_both flag, see here »² for more info. Links: 1) https://core.telegram.org/method/messages.setChatWallPaper 2) https://core.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UserFull from given interface. GetAbout returns value of About conditional field and boolean which is true if field was set. GetBlocked returns value of Blocked conditional field. GetBlockedMyStoriesFrom returns value of BlockedMyStoriesFrom conditional field. GetBotBroadcastAdminRights returns value of BotBroadcastAdminRights conditional field and boolean which is true if field was set. GetBotGroupAdminRights returns value of BotGroupAdminRights conditional field and boolean which is true if field was set. GetBotInfo returns value of BotInfo conditional field and boolean which is true if field was set. GetCanPinMessage returns value of CanPinMessage conditional field. GetCommonChatsCount returns value of CommonChatsCount field. GetFallbackPhoto returns value of FallbackPhoto conditional field and boolean which is true if field was set. GetFallbackPhotoAsNotEmpty returns mapped value of FallbackPhoto conditional field and boolean which is true if field was set. GetFolderID returns value of FolderID conditional field and boolean which is true if field was set. GetHasScheduled returns value of HasScheduled conditional field. GetID returns value of ID field. GetNotifySettings returns value of NotifySettings field. GetPersonalPhoto returns value of PersonalPhoto conditional field and boolean which is true if field was set. GetPersonalPhotoAsNotEmpty returns mapped value of PersonalPhoto conditional field and boolean which is true if field was set. GetPhoneCallsAvailable returns value of PhoneCallsAvailable conditional field. GetPhoneCallsPrivate returns value of PhoneCallsPrivate conditional field. GetPinnedMsgID returns value of PinnedMsgID conditional field and boolean which is true if field was set. GetPremiumGifts returns value of PremiumGifts conditional field and boolean which is true if field was set. GetPrivateForwardName returns value of PrivateForwardName conditional field and boolean which is true if field was set. GetProfilePhoto returns value of ProfilePhoto conditional field and boolean which is true if field was set. GetProfilePhotoAsNotEmpty returns mapped value of ProfilePhoto conditional field and boolean which is true if field was set. GetSettings returns value of Settings field. GetStories returns value of Stories conditional field and boolean which is true if field was set. GetStoriesPinnedAvailable returns value of StoriesPinnedAvailable conditional field. GetTTLPeriod returns value of TTLPeriod conditional field and boolean which is true if field was set. GetThemeEmoticon returns value of ThemeEmoticon conditional field and boolean which is true if field was set. GetTranslationsDisabled returns value of TranslationsDisabled conditional field. GetVideoCallsAvailable returns value of VideoCallsAvailable conditional field. GetVoiceMessagesForbidden returns value of VoiceMessagesForbidden conditional field. GetWallpaper returns value of Wallpaper conditional field and boolean which is true if field was set. GetWallpaperOverridden returns value of WallpaperOverridden conditional field. SetAbout sets value of About conditional field. SetBlocked sets value of Blocked conditional field. SetBlockedMyStoriesFrom sets value of BlockedMyStoriesFrom conditional field. SetBotBroadcastAdminRights sets value of BotBroadcastAdminRights conditional field. SetBotGroupAdminRights sets value of BotGroupAdminRights conditional field. SetBotInfo sets value of BotInfo conditional field. SetCanPinMessage sets value of CanPinMessage conditional field. SetFallbackPhoto sets value of FallbackPhoto conditional field. SetFlags sets flags for non-zero fields. SetFolderID sets value of FolderID conditional field. SetHasScheduled sets value of HasScheduled conditional field. SetPersonalPhoto sets value of PersonalPhoto conditional field. SetPhoneCallsAvailable sets value of PhoneCallsAvailable conditional field. SetPhoneCallsPrivate sets value of PhoneCallsPrivate conditional field. SetPinnedMsgID sets value of PinnedMsgID conditional field. SetPremiumGifts sets value of PremiumGifts conditional field. SetPrivateForwardName sets value of PrivateForwardName conditional field. SetProfilePhoto sets value of ProfilePhoto conditional field. SetStories sets value of Stories conditional field. SetStoriesPinnedAvailable sets value of StoriesPinnedAvailable conditional field. SetTTLPeriod sets value of TTLPeriod conditional field. SetThemeEmoticon sets value of ThemeEmoticon conditional field. SetTranslationsDisabled sets value of TranslationsDisabled conditional field. SetVideoCallsAvailable sets value of VideoCallsAvailable conditional field. SetVoiceMessagesForbidden sets value of VoiceMessagesForbidden conditional field. SetWallpaper sets value of Wallpaper conditional field. SetWallpaperOverridden sets value of WallpaperOverridden 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. (*UserFull) Zero() bool *UserFull : github.com/gotd/td/bin.BareDecoder *UserFull : github.com/gotd/td/bin.BareEncoder *UserFull : github.com/gotd/td/bin.Decoder *UserFull : github.com/gotd/td/bin.Encoder *UserFull : github.com/gotd/td/bin.Object *UserFull : github.com/gotd/td/tdp.Object *UserFull : fmt.Stringer func (*UsersUserFull).GetFullUser() (value UserFull)
UserHandler is a User event handler. func UpdateDispatcher.OnUser(handler UserHandler)
Username represents TL type `username#b4073647`. Contains information about a username. See https://core.telegram.org/constructor/username for reference. Whether the username is active. Whether the username is editable, meaning it wasn't bought on fragment¹. Links: 1) https://fragment.com Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields The username. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills Username from given interface. GetActive returns value of Active conditional field. GetEditable returns value of Editable conditional field. GetUsername returns value of Username field. SetActive sets value of Active conditional field. SetEditable sets value of Editable 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. (*Username) Zero() bool *Username : github.com/gotd/td/bin.BareDecoder *Username : github.com/gotd/td/bin.BareEncoder *Username : github.com/gotd/td/bin.Decoder *Username : github.com/gotd/td/bin.Encoder *Username : github.com/gotd/td/bin.Object *Username : github.com/gotd/td/tdp.Object *Username : fmt.Stringer func (*Channel).GetUsernames() (value []Username, ok bool) func (*UpdateUserName).GetUsernames() (value []Username) func (*User).GetUsernames() (value []Username, ok bool) func (*Channel).SetUsernames(value []Username) func (*User).SetUsernames(value []Username)
UserNameHandler is a UserName event handler. func UpdateDispatcher.OnUserName(handler UserNameHandler)
UserPhoneHandler is a UserPhone event handler. func UpdateDispatcher.OnUserPhone(handler UserPhoneHandler)
UserProfilePhoto represents TL type `userProfilePhoto#82d1f706`. User profile photo. See https://core.telegram.org/constructor/userProfilePhoto for reference. DC ID where the photo is stored Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether an animated profile picture¹ is available for this user Links: 1) https://core.telegram.org/api/files#animated-profile-pictures Whether this profile photo is only visible to us (i.e. it was set using photos uploadContactProfilePhoto¹). Links: 1) https://core.telegram.org/method/photos.uploadContactProfilePhoto Identifier of the respective photo Stripped thumbnail¹ Links: 1) https://core.telegram.org/api/files#stripped-thumbnails Use SetStrippedThumb and GetStrippedThumb helpers. AsNotEmpty tries to map UserProfilePhoto to UserProfilePhoto. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UserProfilePhoto from given interface. GetDCID returns value of DCID field. GetHasVideo returns value of HasVideo conditional field. GetPersonal returns value of Personal conditional field. GetPhotoID returns value of PhotoID field. GetStrippedThumb returns value of StrippedThumb conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetHasVideo sets value of HasVideo conditional field. SetPersonal sets value of Personal conditional field. SetStrippedThumb sets value of StrippedThumb 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. (*UserProfilePhoto) Zero() bool *UserProfilePhoto : UserProfilePhotoClass *UserProfilePhoto : github.com/gotd/td/bin.BareDecoder *UserProfilePhoto : github.com/gotd/td/bin.BareEncoder *UserProfilePhoto : github.com/gotd/td/bin.Decoder *UserProfilePhoto : github.com/gotd/td/bin.Encoder *UserProfilePhoto : github.com/gotd/td/bin.Object *UserProfilePhoto : github.com/gotd/td/tdp.Object *UserProfilePhoto : fmt.Stringer func (*UserProfilePhoto).AsNotEmpty() (*UserProfilePhoto, bool) func UserProfilePhotoArray.First() (v UserProfilePhoto, ok bool) func UserProfilePhotoArray.Last() (v UserProfilePhoto, ok bool) func (*UserProfilePhotoArray).Pop() (v UserProfilePhoto, ok bool) func (*UserProfilePhotoArray).PopFirst() (v UserProfilePhoto, ok bool) func UserProfilePhotoClass.AsNotEmpty() (*UserProfilePhoto, bool) func UserProfilePhotoClassArray.AppendOnlyNotEmpty(to []*UserProfilePhoto) []*UserProfilePhoto func UserProfilePhotoClassArray.AsNotEmpty() (to []*UserProfilePhoto) func UserProfilePhotoClassArray.FirstAsNotEmpty() (v *UserProfilePhoto, ok bool) func UserProfilePhotoClassArray.LastAsNotEmpty() (v *UserProfilePhoto, ok bool) func (*UserProfilePhotoClassArray).PopAsNotEmpty() (v *UserProfilePhoto, ok bool) func (*UserProfilePhotoClassArray).PopFirstAsNotEmpty() (v *UserProfilePhoto, ok bool) func (*UserProfilePhotoEmpty).AsNotEmpty() (*UserProfilePhoto, bool) func UserProfilePhotoClassArray.AppendOnlyNotEmpty(to []*UserProfilePhoto) []*UserProfilePhoto
UserProfilePhotoArray is adapter for slice of UserProfilePhoto. 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 UserProfilePhoto. Sort sorts slice of UserProfilePhoto. SortStable sorts slice of UserProfilePhoto. func UserProfilePhotoArray.Retain(keep func(x UserProfilePhoto) bool) UserProfilePhotoArray func UserProfilePhotoArray.Sort(less func(a, b UserProfilePhoto) bool) UserProfilePhotoArray func UserProfilePhotoArray.SortStable(less func(a, b UserProfilePhoto) bool) UserProfilePhotoArray func UserProfilePhotoClassArray.AsUserProfilePhoto() (to UserProfilePhotoArray)
UserProfilePhoto boxes the UserProfilePhotoClass providing a helper. UserProfilePhoto UserProfilePhotoClass Decode implements bin.Decoder for UserProfilePhotoBox. Encode implements bin.Encode for UserProfilePhotoBox. *UserProfilePhotoBox : github.com/gotd/td/bin.Decoder *UserProfilePhotoBox : github.com/gotd/td/bin.Encoder *UserProfilePhotoBox : github.com/gotd/td/bin.Object
UserProfilePhotoClass represents UserProfilePhoto generic type. See https://core.telegram.org/type/UserProfilePhoto for reference. Example: g, err := tg.DecodeUserProfilePhoto(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.UserProfilePhotoEmpty: // userProfilePhotoEmpty#4f11bae1 case *tg.UserProfilePhoto: // userProfilePhoto#82d1f706 default: panic(v) } AsNotEmpty tries to map UserProfilePhotoClass to UserProfilePhoto. ( UserProfilePhotoClass) Decode(b *bin.Buffer) error ( UserProfilePhotoClass) DecodeBare(b *bin.Buffer) error ( UserProfilePhotoClass) Encode(b *bin.Buffer) error ( UserProfilePhotoClass) 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. *UserProfilePhoto *UserProfilePhotoEmpty UserProfilePhotoClass : github.com/gotd/td/bin.BareDecoder UserProfilePhotoClass : github.com/gotd/td/bin.BareEncoder UserProfilePhotoClass : github.com/gotd/td/bin.Decoder UserProfilePhotoClass : github.com/gotd/td/bin.Encoder UserProfilePhotoClass : github.com/gotd/td/bin.Object UserProfilePhotoClass : fmt.Stringer func DecodeUserProfilePhoto(buf *bin.Buffer) (UserProfilePhotoClass, error) func (*User).GetPhoto() (value UserProfilePhotoClass, ok bool) func UserProfilePhotoClassArray.First() (v UserProfilePhotoClass, ok bool) func UserProfilePhotoClassArray.Last() (v UserProfilePhotoClass, ok bool) func (*UserProfilePhotoClassArray).Pop() (v UserProfilePhotoClass, ok bool) func (*UserProfilePhotoClassArray).PopFirst() (v UserProfilePhotoClass, ok bool) func (*User).SetPhoto(value UserProfilePhotoClass)
UserProfilePhotoClassArray is adapter for slice of UserProfilePhotoClass. AppendOnlyNotEmpty appends only NotEmpty constructors to given slice. AsNotEmpty returns copy with only NotEmpty constructors. AsUserProfilePhoto returns copy with only UserProfilePhoto constructors. First returns first element of slice (if exists). FirstAsNotEmpty returns first element of slice (if exists). Last returns last element of slice (if exists). LastAsNotEmpty returns last element of slice (if exists). Pop returns last element of slice (if exists) and deletes it. PopAsNotEmpty returns element of slice (if exists). PopFirst returns first element of slice (if exists) and deletes it. PopFirstAsNotEmpty returns element of slice (if exists). Retain filters in-place slice of UserProfilePhotoClass. Sort sorts slice of UserProfilePhotoClass. SortStable sorts slice of UserProfilePhotoClass. func UserProfilePhotoClassArray.Retain(keep func(x UserProfilePhotoClass) bool) UserProfilePhotoClassArray func UserProfilePhotoClassArray.Sort(less func(a, b UserProfilePhotoClass) bool) UserProfilePhotoClassArray func UserProfilePhotoClassArray.SortStable(less func(a, b UserProfilePhotoClass) bool) UserProfilePhotoClassArray
UserProfilePhotoEmpty represents TL type `userProfilePhotoEmpty#4f11bae1`. Profile photo has not been set, or was hidden. See https://core.telegram.org/constructor/userProfilePhotoEmpty for reference. AsNotEmpty tries to map UserProfilePhotoEmpty to UserProfilePhoto. 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. (*UserProfilePhotoEmpty) Zero() bool *UserProfilePhotoEmpty : UserProfilePhotoClass *UserProfilePhotoEmpty : github.com/gotd/td/bin.BareDecoder *UserProfilePhotoEmpty : github.com/gotd/td/bin.BareEncoder *UserProfilePhotoEmpty : github.com/gotd/td/bin.Decoder *UserProfilePhotoEmpty : github.com/gotd/td/bin.Encoder *UserProfilePhotoEmpty : github.com/gotd/td/bin.Object *UserProfilePhotoEmpty : github.com/gotd/td/tdp.Object *UserProfilePhotoEmpty : fmt.Stringer
UsersGetFullUserRequest represents TL type `users.getFullUser#b60f5918`. Returns extended user info by ID. See https://core.telegram.org/method/users.getFullUser for reference. The user to add as contact Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UsersGetFullUserRequest 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. (*UsersGetFullUserRequest) Zero() bool *UsersGetFullUserRequest : github.com/gotd/td/bin.BareDecoder *UsersGetFullUserRequest : github.com/gotd/td/bin.BareEncoder *UsersGetFullUserRequest : github.com/gotd/td/bin.Decoder *UsersGetFullUserRequest : github.com/gotd/td/bin.Encoder *UsersGetFullUserRequest : github.com/gotd/td/bin.Object *UsersGetFullUserRequest : github.com/gotd/td/tdp.Object *UsersGetFullUserRequest : fmt.Stringer
UsersGetUsersRequest represents TL type `users.getUsers#d91a548`. Returns basic user info according to their identifiers. See https://core.telegram.org/method/users.getUsers for reference. User ID list Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UsersGetUsersRequest from given interface. GetID returns value of ID field. MapID returns field ID wrapped in InputUserClassArray 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. (*UsersGetUsersRequest) Zero() bool *UsersGetUsersRequest : github.com/gotd/td/bin.BareDecoder *UsersGetUsersRequest : github.com/gotd/td/bin.BareEncoder *UsersGetUsersRequest : github.com/gotd/td/bin.Decoder *UsersGetUsersRequest : github.com/gotd/td/bin.Encoder *UsersGetUsersRequest : github.com/gotd/td/bin.Object *UsersGetUsersRequest : github.com/gotd/td/tdp.Object *UsersGetUsersRequest : fmt.Stringer
UsersSetSecureValueErrorsRequest represents TL type `users.setSecureValueErrors#90c894b5`. Notify the user that the sent passport¹ data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change). Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues. Links: 1. https://core.telegram.org/passport See https://core.telegram.org/method/users.setSecureValueErrors for reference. Errors The user Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UsersSetSecureValueErrorsRequest from given interface. GetErrors returns value of Errors field. GetID returns value of ID field. MapErrors returns field Errors wrapped in SecureValueErrorClassArray 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. (*UsersSetSecureValueErrorsRequest) Zero() bool *UsersSetSecureValueErrorsRequest : github.com/gotd/td/bin.BareDecoder *UsersSetSecureValueErrorsRequest : github.com/gotd/td/bin.BareEncoder *UsersSetSecureValueErrorsRequest : github.com/gotd/td/bin.Decoder *UsersSetSecureValueErrorsRequest : github.com/gotd/td/bin.Encoder *UsersSetSecureValueErrorsRequest : github.com/gotd/td/bin.Object *UsersSetSecureValueErrorsRequest : github.com/gotd/td/tdp.Object *UsersSetSecureValueErrorsRequest : fmt.Stringer func (*Client).UsersSetSecureValueErrors(ctx context.Context, request *UsersSetSecureValueErrorsRequest) (bool, error)
UserStatus boxes the UserStatusClass providing a helper. UserStatus UserStatusClass Decode implements bin.Decoder for UserStatusBox. Encode implements bin.Encode for UserStatusBox. *UserStatusBox : github.com/gotd/td/bin.Decoder *UserStatusBox : github.com/gotd/td/bin.Encoder *UserStatusBox : github.com/gotd/td/bin.Object
UserStatusClass represents UserStatus generic type. See https://core.telegram.org/type/UserStatus for reference. Example: g, err := tg.DecodeUserStatus(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.UserStatusEmpty: // userStatusEmpty#9d05049 case *tg.UserStatusOnline: // userStatusOnline#edb93949 case *tg.UserStatusOffline: // userStatusOffline#8c703f case *tg.UserStatusRecently: // userStatusRecently#e26f42f1 case *tg.UserStatusLastWeek: // userStatusLastWeek#7bf09fc case *tg.UserStatusLastMonth: // userStatusLastMonth#77ebc742 default: panic(v) } ( UserStatusClass) Decode(b *bin.Buffer) error ( UserStatusClass) DecodeBare(b *bin.Buffer) error ( UserStatusClass) Encode(b *bin.Buffer) error ( UserStatusClass) 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. *UserStatusEmpty *UserStatusLastMonth *UserStatusLastWeek *UserStatusOffline *UserStatusOnline *UserStatusRecently UserStatusClass : github.com/gotd/td/bin.BareDecoder UserStatusClass : github.com/gotd/td/bin.BareEncoder UserStatusClass : github.com/gotd/td/bin.Decoder UserStatusClass : github.com/gotd/td/bin.Encoder UserStatusClass : github.com/gotd/td/bin.Object UserStatusClass : fmt.Stringer func DecodeUserStatus(buf *bin.Buffer) (UserStatusClass, error) func (*ContactStatus).GetStatus() (value UserStatusClass) func (*UpdateUserStatus).GetStatus() (value UserStatusClass) func (*User).GetStatus() (value UserStatusClass, ok bool) func UserStatusClassArray.First() (v UserStatusClass, ok bool) func UserStatusClassArray.Last() (v UserStatusClass, ok bool) func (*UserStatusClassArray).Pop() (v UserStatusClass, ok bool) func (*UserStatusClassArray).PopFirst() (v UserStatusClass, ok bool) func (*User).SetStatus(value UserStatusClass)
UserStatusClassArray is adapter for slice of UserStatusClass. AsUserStatusOffline returns copy with only UserStatusOffline constructors. AsUserStatusOnline returns copy with only UserStatusOnline 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 UserStatusClass. Sort sorts slice of UserStatusClass. SortStable sorts slice of UserStatusClass. func UserStatusClassArray.Retain(keep func(x UserStatusClass) bool) UserStatusClassArray func UserStatusClassArray.Sort(less func(a, b UserStatusClass) bool) UserStatusClassArray func UserStatusClassArray.SortStable(less func(a, b UserStatusClass) bool) UserStatusClassArray
UserStatusEmpty represents TL type `userStatusEmpty#9d05049`. User status has not been set yet. See https://core.telegram.org/constructor/userStatusEmpty 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. (*UserStatusEmpty) Zero() bool *UserStatusEmpty : UserStatusClass *UserStatusEmpty : github.com/gotd/td/bin.BareDecoder *UserStatusEmpty : github.com/gotd/td/bin.BareEncoder *UserStatusEmpty : github.com/gotd/td/bin.Decoder *UserStatusEmpty : github.com/gotd/td/bin.Encoder *UserStatusEmpty : github.com/gotd/td/bin.Object *UserStatusEmpty : github.com/gotd/td/tdp.Object *UserStatusEmpty : fmt.Stringer
UserStatusHandler is a UserStatus event handler. func UpdateDispatcher.OnUserStatus(handler UserStatusHandler)
UserStatusLastMonth represents TL type `userStatusLastMonth#77ebc742`. Online status: last seen last month See https://core.telegram.org/constructor/userStatusLastMonth 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. (*UserStatusLastMonth) Zero() bool *UserStatusLastMonth : UserStatusClass *UserStatusLastMonth : github.com/gotd/td/bin.BareDecoder *UserStatusLastMonth : github.com/gotd/td/bin.BareEncoder *UserStatusLastMonth : github.com/gotd/td/bin.Decoder *UserStatusLastMonth : github.com/gotd/td/bin.Encoder *UserStatusLastMonth : github.com/gotd/td/bin.Object *UserStatusLastMonth : github.com/gotd/td/tdp.Object *UserStatusLastMonth : fmt.Stringer
UserStatusLastWeek represents TL type `userStatusLastWeek#7bf09fc`. Online status: last seen last week See https://core.telegram.org/constructor/userStatusLastWeek 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. (*UserStatusLastWeek) Zero() bool *UserStatusLastWeek : UserStatusClass *UserStatusLastWeek : github.com/gotd/td/bin.BareDecoder *UserStatusLastWeek : github.com/gotd/td/bin.BareEncoder *UserStatusLastWeek : github.com/gotd/td/bin.Decoder *UserStatusLastWeek : github.com/gotd/td/bin.Encoder *UserStatusLastWeek : github.com/gotd/td/bin.Object *UserStatusLastWeek : github.com/gotd/td/tdp.Object *UserStatusLastWeek : fmt.Stringer
UserStatusOffline represents TL type `userStatusOffline#8c703f`. The user's offline status. See https://core.telegram.org/constructor/userStatusOffline for reference. Time the user was last seen online Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UserStatusOffline from given interface. GetWasOnline returns value of WasOnline 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. (*UserStatusOffline) Zero() bool *UserStatusOffline : UserStatusClass *UserStatusOffline : github.com/gotd/td/bin.BareDecoder *UserStatusOffline : github.com/gotd/td/bin.BareEncoder *UserStatusOffline : github.com/gotd/td/bin.Decoder *UserStatusOffline : github.com/gotd/td/bin.Encoder *UserStatusOffline : github.com/gotd/td/bin.Object *UserStatusOffline : github.com/gotd/td/tdp.Object *UserStatusOffline : fmt.Stringer func UserStatusOfflineArray.First() (v UserStatusOffline, ok bool) func UserStatusOfflineArray.Last() (v UserStatusOffline, ok bool) func (*UserStatusOfflineArray).Pop() (v UserStatusOffline, ok bool) func (*UserStatusOfflineArray).PopFirst() (v UserStatusOffline, ok bool)
UserStatusOfflineArray is adapter for slice of UserStatusOffline. 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 UserStatusOffline. Sort sorts slice of UserStatusOffline. SortStable sorts slice of UserStatusOffline. func UserStatusClassArray.AsUserStatusOffline() (to UserStatusOfflineArray) func UserStatusOfflineArray.Retain(keep func(x UserStatusOffline) bool) UserStatusOfflineArray func UserStatusOfflineArray.Sort(less func(a, b UserStatusOffline) bool) UserStatusOfflineArray func UserStatusOfflineArray.SortStable(less func(a, b UserStatusOffline) bool) UserStatusOfflineArray
UserStatusOnline represents TL type `userStatusOnline#edb93949`. Online status of the user. See https://core.telegram.org/constructor/userStatusOnline for reference. Re-fetch PSA/MTProxy info after the specified number of seconds Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UserStatusOnline from given interface. GetExpires returns value of Expires 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. (*UserStatusOnline) Zero() bool *UserStatusOnline : UserStatusClass *UserStatusOnline : github.com/gotd/td/bin.BareDecoder *UserStatusOnline : github.com/gotd/td/bin.BareEncoder *UserStatusOnline : github.com/gotd/td/bin.Decoder *UserStatusOnline : github.com/gotd/td/bin.Encoder *UserStatusOnline : github.com/gotd/td/bin.Object *UserStatusOnline : github.com/gotd/td/tdp.Object *UserStatusOnline : fmt.Stringer func UserStatusOnlineArray.First() (v UserStatusOnline, ok bool) func UserStatusOnlineArray.Last() (v UserStatusOnline, ok bool) func (*UserStatusOnlineArray).Pop() (v UserStatusOnline, ok bool) func (*UserStatusOnlineArray).PopFirst() (v UserStatusOnline, ok bool)
UserStatusOnlineArray is adapter for slice of UserStatusOnline. 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 UserStatusOnline. Sort sorts slice of UserStatusOnline. SortStable sorts slice of UserStatusOnline. func UserStatusClassArray.AsUserStatusOnline() (to UserStatusOnlineArray) func UserStatusOnlineArray.Retain(keep func(x UserStatusOnline) bool) UserStatusOnlineArray func UserStatusOnlineArray.Sort(less func(a, b UserStatusOnline) bool) UserStatusOnlineArray func UserStatusOnlineArray.SortStable(less func(a, b UserStatusOnline) bool) UserStatusOnlineArray
UserStatusRecently represents TL type `userStatusRecently#e26f42f1`. Online status: last seen recently See https://core.telegram.org/constructor/userStatusRecently 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. (*UserStatusRecently) Zero() bool *UserStatusRecently : UserStatusClass *UserStatusRecently : github.com/gotd/td/bin.BareDecoder *UserStatusRecently : github.com/gotd/td/bin.BareEncoder *UserStatusRecently : github.com/gotd/td/bin.Decoder *UserStatusRecently : github.com/gotd/td/bin.Encoder *UserStatusRecently : github.com/gotd/td/bin.Object *UserStatusRecently : github.com/gotd/td/tdp.Object *UserStatusRecently : fmt.Stringer
UsersUserFull represents TL type `users.userFull#3b6d152e`. Full user information See https://core.telegram.org/constructor/users.userFull for reference. Mentioned chats Full user information Mentioned users Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills UsersUserFull from given interface. GetChats returns value of Chats field. GetFullUser returns value of FullUser field. GetUsers returns value of Users 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. (*UsersUserFull) Zero() bool *UsersUserFull : github.com/gotd/td/bin.BareDecoder *UsersUserFull : github.com/gotd/td/bin.BareEncoder *UsersUserFull : github.com/gotd/td/bin.Decoder *UsersUserFull : github.com/gotd/td/bin.Encoder *UsersUserFull : github.com/gotd/td/bin.Object *UsersUserFull : github.com/gotd/td/tdp.Object *UsersUserFull : fmt.Stringer func (*Client).UsersGetFullUser(ctx context.Context, id InputUserClass) (*UsersUserFull, error)
UserTypingHandler is a UserTyping event handler. func UpdateDispatcher.OnUserTyping(handler UserTypingHandler)
VideoSize represents TL type `videoSize#de33b094`. An animated profile picture¹ in MPEG4 format Links: 1. https://core.telegram.org/api/files#animated-profile-pictures See https://core.telegram.org/constructor/videoSize for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Video height File size u for animated profile pictures, and v for trimmed and downscaled video previews Timestamp that should be shown as static preview to the user (seconds) Use SetVideoStartTs and GetVideoStartTs helpers. Video width Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills VideoSize from given interface. GetH returns value of H field. GetSize returns value of Size field. GetType returns value of Type field. GetVideoStartTs returns value of VideoStartTs conditional field and boolean which is true if field was set. GetW returns value of W field. SetFlags sets flags for non-zero fields. SetVideoStartTs sets value of VideoStartTs 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. (*VideoSize) Zero() bool *VideoSize : VideoSizeClass *VideoSize : github.com/gotd/td/bin.BareDecoder *VideoSize : github.com/gotd/td/bin.BareEncoder *VideoSize : github.com/gotd/td/bin.Decoder *VideoSize : github.com/gotd/td/bin.Encoder *VideoSize : github.com/gotd/td/bin.Object *VideoSize : github.com/gotd/td/tdp.Object *VideoSize : fmt.Stringer func VideoSizeArray.First() (v VideoSize, ok bool) func VideoSizeArray.Last() (v VideoSize, ok bool) func (*VideoSizeArray).Pop() (v VideoSize, ok bool) func (*VideoSizeArray).PopFirst() (v VideoSize, ok bool)
VideoSizeArray is adapter for slice of VideoSize. 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 VideoSize. Sort sorts slice of VideoSize. SortStable sorts slice of VideoSize. func VideoSizeArray.Retain(keep func(x VideoSize) bool) VideoSizeArray func VideoSizeArray.Sort(less func(a, b VideoSize) bool) VideoSizeArray func VideoSizeArray.SortStable(less func(a, b VideoSize) bool) VideoSizeArray func VideoSizeClassArray.AsVideoSize() (to VideoSizeArray)
VideoSize boxes the VideoSizeClass providing a helper. VideoSize VideoSizeClass Decode implements bin.Decoder for VideoSizeBox. Encode implements bin.Encode for VideoSizeBox. *VideoSizeBox : github.com/gotd/td/bin.Decoder *VideoSizeBox : github.com/gotd/td/bin.Encoder *VideoSizeBox : github.com/gotd/td/bin.Object
VideoSizeClass represents VideoSize generic type. See https://core.telegram.org/type/VideoSize for reference. Example: g, err := tg.DecodeVideoSize(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.VideoSize: // videoSize#de33b094 case *tg.VideoSizeEmojiMarkup: // videoSizeEmojiMarkup#f85c413c case *tg.VideoSizeStickerMarkup: // videoSizeStickerMarkup#da082fe default: panic(v) } ( VideoSizeClass) Decode(b *bin.Buffer) error ( VideoSizeClass) DecodeBare(b *bin.Buffer) error ( VideoSizeClass) Encode(b *bin.Buffer) error ( VideoSizeClass) 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. *VideoSize *VideoSizeEmojiMarkup *VideoSizeStickerMarkup VideoSizeClass : github.com/gotd/td/bin.BareDecoder VideoSizeClass : github.com/gotd/td/bin.BareEncoder VideoSizeClass : github.com/gotd/td/bin.Decoder VideoSizeClass : github.com/gotd/td/bin.Encoder VideoSizeClass : github.com/gotd/td/bin.Object VideoSizeClass : fmt.Stringer func DecodeVideoSize(buf *bin.Buffer) (VideoSizeClass, error) func (*Document).GetVideoThumbs() (value []VideoSizeClass, ok bool) func (*InputChatUploadedPhoto).GetVideoEmojiMarkup() (value VideoSizeClass, ok bool) func (*Photo).GetVideoSizes() (value []VideoSizeClass, ok bool) func (*PhotosUploadContactProfilePhotoRequest).GetVideoEmojiMarkup() (value VideoSizeClass, ok bool) func (*PhotosUploadProfilePhotoRequest).GetVideoEmojiMarkup() (value VideoSizeClass, ok bool) func VideoSizeClassArray.First() (v VideoSizeClass, ok bool) func VideoSizeClassArray.Last() (v VideoSizeClass, ok bool) func (*VideoSizeClassArray).Pop() (v VideoSizeClass, ok bool) func (*VideoSizeClassArray).PopFirst() (v VideoSizeClass, ok bool) func (*Document).SetVideoThumbs(value []VideoSizeClass) func (*InputChatUploadedPhoto).SetVideoEmojiMarkup(value VideoSizeClass) func (*Photo).SetVideoSizes(value []VideoSizeClass) func (*PhotosUploadContactProfilePhotoRequest).SetVideoEmojiMarkup(value VideoSizeClass) func (*PhotosUploadProfilePhotoRequest).SetVideoEmojiMarkup(value VideoSizeClass)
VideoSizeClassArray is adapter for slice of VideoSizeClass. AsVideoSize returns copy with only VideoSize constructors. AsVideoSizeEmojiMarkup returns copy with only VideoSizeEmojiMarkup constructors. AsVideoSizeStickerMarkup returns copy with only VideoSizeStickerMarkup 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 VideoSizeClass. Sort sorts slice of VideoSizeClass. SortStable sorts slice of VideoSizeClass. func (*Document).MapVideoThumbs() (value VideoSizeClassArray, ok bool) func (*Photo).MapVideoSizes() (value VideoSizeClassArray, ok bool) func VideoSizeClassArray.Retain(keep func(x VideoSizeClass) bool) VideoSizeClassArray func VideoSizeClassArray.Sort(less func(a, b VideoSizeClass) bool) VideoSizeClassArray func VideoSizeClassArray.SortStable(less func(a, b VideoSizeClass) bool) VideoSizeClassArray
VideoSizeEmojiMarkup represents TL type `videoSizeEmojiMarkup#f85c413c`. An animated profile picture¹ based on a custom emoji sticker². Links: 1. https://core.telegram.org/api/files#animated-profile-pictures 2. https://core.telegram.org/api/custom-emoji See https://core.telegram.org/constructor/videoSizeEmojiMarkup for reference. 1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how fill wallpapers¹ are generated. The rotation angle for gradient backgrounds is 0. Links: 1) https://core.telegram.org/api/wallpapers#fill-types Custom emoji ID¹: the custom emoji sticker is shown at the center of the profile picture and occupies at most 67% of it. Links: 1) https://core.telegram.org/api/custom-emoji Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills VideoSizeEmojiMarkup from given interface. GetBackgroundColors returns value of BackgroundColors field. GetEmojiID returns value of EmojiID 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. (*VideoSizeEmojiMarkup) Zero() bool *VideoSizeEmojiMarkup : VideoSizeClass *VideoSizeEmojiMarkup : github.com/gotd/td/bin.BareDecoder *VideoSizeEmojiMarkup : github.com/gotd/td/bin.BareEncoder *VideoSizeEmojiMarkup : github.com/gotd/td/bin.Decoder *VideoSizeEmojiMarkup : github.com/gotd/td/bin.Encoder *VideoSizeEmojiMarkup : github.com/gotd/td/bin.Object *VideoSizeEmojiMarkup : github.com/gotd/td/tdp.Object *VideoSizeEmojiMarkup : fmt.Stringer func VideoSizeEmojiMarkupArray.First() (v VideoSizeEmojiMarkup, ok bool) func VideoSizeEmojiMarkupArray.Last() (v VideoSizeEmojiMarkup, ok bool) func (*VideoSizeEmojiMarkupArray).Pop() (v VideoSizeEmojiMarkup, ok bool) func (*VideoSizeEmojiMarkupArray).PopFirst() (v VideoSizeEmojiMarkup, ok bool)
VideoSizeEmojiMarkupArray is adapter for slice of VideoSizeEmojiMarkup. 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 VideoSizeEmojiMarkup. Sort sorts slice of VideoSizeEmojiMarkup. SortStable sorts slice of VideoSizeEmojiMarkup. func VideoSizeClassArray.AsVideoSizeEmojiMarkup() (to VideoSizeEmojiMarkupArray) func VideoSizeEmojiMarkupArray.Retain(keep func(x VideoSizeEmojiMarkup) bool) VideoSizeEmojiMarkupArray func VideoSizeEmojiMarkupArray.Sort(less func(a, b VideoSizeEmojiMarkup) bool) VideoSizeEmojiMarkupArray func VideoSizeEmojiMarkupArray.SortStable(less func(a, b VideoSizeEmojiMarkup) bool) VideoSizeEmojiMarkupArray
VideoSizeStickerMarkup represents TL type `videoSizeStickerMarkup#da082fe`. An animated profile picture¹ based on a sticker². Links: 1. https://core.telegram.org/api/files#animated-profile-pictures 2. https://core.telegram.org/api/stickers See https://core.telegram.org/constructor/videoSizeStickerMarkup for reference. 1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how fill wallpapers¹ are generated. The rotation angle for gradient backgrounds is 0. Links: 1) https://core.telegram.org/api/wallpapers#fill-types Sticker ID Stickerset Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills VideoSizeStickerMarkup from given interface. GetBackgroundColors returns value of BackgroundColors field. GetStickerID returns value of StickerID field. GetStickerset returns value of Stickerset 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. (*VideoSizeStickerMarkup) Zero() bool *VideoSizeStickerMarkup : VideoSizeClass *VideoSizeStickerMarkup : github.com/gotd/td/bin.BareDecoder *VideoSizeStickerMarkup : github.com/gotd/td/bin.BareEncoder *VideoSizeStickerMarkup : github.com/gotd/td/bin.Decoder *VideoSizeStickerMarkup : github.com/gotd/td/bin.Encoder *VideoSizeStickerMarkup : github.com/gotd/td/bin.Object *VideoSizeStickerMarkup : github.com/gotd/td/tdp.Object *VideoSizeStickerMarkup : fmt.Stringer func VideoSizeStickerMarkupArray.First() (v VideoSizeStickerMarkup, ok bool) func VideoSizeStickerMarkupArray.Last() (v VideoSizeStickerMarkup, ok bool) func (*VideoSizeStickerMarkupArray).Pop() (v VideoSizeStickerMarkup, ok bool) func (*VideoSizeStickerMarkupArray).PopFirst() (v VideoSizeStickerMarkup, ok bool)
VideoSizeStickerMarkupArray is adapter for slice of VideoSizeStickerMarkup. 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 VideoSizeStickerMarkup. Sort sorts slice of VideoSizeStickerMarkup. SortStable sorts slice of VideoSizeStickerMarkup. func VideoSizeClassArray.AsVideoSizeStickerMarkup() (to VideoSizeStickerMarkupArray) func VideoSizeStickerMarkupArray.Retain(keep func(x VideoSizeStickerMarkup) bool) VideoSizeStickerMarkupArray func VideoSizeStickerMarkupArray.Sort(less func(a, b VideoSizeStickerMarkup) bool) VideoSizeStickerMarkupArray func VideoSizeStickerMarkupArray.SortStable(less func(a, b VideoSizeStickerMarkup) bool) VideoSizeStickerMarkupArray
WallPaper represents TL type `wallPaper#a437c3ed`. Represents a wallpaper¹ based on an image. Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/constructor/wallPaper for reference. Access hash Whether we created this wallpaper Whether this wallpaper should be used in dark mode. Whether this is the default wallpaper The actual wallpaper Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Identifier Whether this is a pattern wallpaper »¹ Links: 1) https://core.telegram.org/api/wallpapers#pattern-wallpapers Info on how to generate the wallpaper, according to these instructions »¹. Links: 1) https://core.telegram.org/api/wallpapers Use SetSettings and GetSettings helpers. Unique wallpaper ID, used when generating wallpaper links¹ or importing wallpaper links². Links: 1) https://core.telegram.org/api/links#wallpaper-links 2) https://core.telegram.org/api/wallpapers AsInput tries to map WallPaper to InputWallPaper. AsInputWallPaperNoFile tries to map WallPaper to InputWallPaperNoFile. AsInputWallPaperSlug tries to map WallPaper to InputWallPaperSlug. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WallPaper from given interface. GetAccessHash returns value of AccessHash field. GetCreator returns value of Creator conditional field. GetDark returns value of Dark conditional field. GetDefault returns value of Default conditional field. GetDocument returns value of Document field. GetID returns value of ID field. GetPattern returns value of Pattern conditional field. GetSettings returns value of Settings conditional field and boolean which is true if field was set. GetSlug returns value of Slug field. SetCreator sets value of Creator conditional field. SetDark sets value of Dark conditional field. SetDefault sets value of Default conditional field. SetFlags sets flags for non-zero fields. SetPattern sets value of Pattern conditional field. 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. (*WallPaper) Zero() bool *WallPaper : WallPaperClass *WallPaper : github.com/gotd/td/bin.BareDecoder *WallPaper : github.com/gotd/td/bin.BareEncoder *WallPaper : github.com/gotd/td/bin.Decoder *WallPaper : github.com/gotd/td/bin.Encoder *WallPaper : github.com/gotd/td/bin.Object *WallPaper : github.com/gotd/td/tdp.Object *WallPaper : fmt.Stringer func WallPaperArray.First() (v WallPaper, ok bool) func WallPaperArray.Last() (v WallPaper, ok bool) func (*WallPaperArray).Pop() (v WallPaper, ok bool) func (*WallPaperArray).PopFirst() (v WallPaper, ok bool) func WallPaperArray.ToMap() map[int64]WallPaper func WallPaperClassArray.WallPaperToMap() map[int64]*WallPaper func WallPaperArray.FillMap(to map[int64]WallPaper) func WallPaperClassArray.FillWallPaperMap(to map[int64]*WallPaper)
WallPaperArray is adapter for slice of WallPaper. 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 WallPaper. Sort sorts slice of WallPaper. SortByID sorts slice of WallPaper by ID. SortStable sorts slice of WallPaper. SortStableByID sorts slice of WallPaper by ID. ToMap collects constructors to map. func WallPaperArray.Retain(keep func(x WallPaper) bool) WallPaperArray func WallPaperArray.Sort(less func(a, b WallPaper) bool) WallPaperArray func WallPaperArray.SortByID() WallPaperArray func WallPaperArray.SortStable(less func(a, b WallPaper) bool) WallPaperArray func WallPaperArray.SortStableByID() WallPaperArray func WallPaperClassArray.AsWallPaper() (to WallPaperArray)
WallPaper boxes the WallPaperClass providing a helper. WallPaper WallPaperClass Decode implements bin.Decoder for WallPaperBox. Encode implements bin.Encode for WallPaperBox. *WallPaperBox : github.com/gotd/td/bin.Decoder *WallPaperBox : github.com/gotd/td/bin.Encoder *WallPaperBox : github.com/gotd/td/bin.Object
WallPaperClass represents WallPaper generic type. See https://core.telegram.org/type/WallPaper for reference. Example: g, err := tg.DecodeWallPaper(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.WallPaper: // wallPaper#a437c3ed case *tg.WallPaperNoFile: // wallPaperNoFile#e0804116 default: panic(v) } ( WallPaperClass) Decode(b *bin.Buffer) error ( WallPaperClass) DecodeBare(b *bin.Buffer) error ( WallPaperClass) Encode(b *bin.Buffer) error ( WallPaperClass) EncodeBare(b *bin.Buffer) error Whether this wallpaper should be used in dark mode. Whether this is the default wallpaper Identifier Info on how to generate the wallpaper, according to these instructions »¹. Links: 1) https://core.telegram.org/api/wallpapers 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. *WallPaper *WallPaperNoFile WallPaperClass : github.com/gotd/td/bin.BareDecoder WallPaperClass : github.com/gotd/td/bin.BareEncoder WallPaperClass : github.com/gotd/td/bin.Decoder WallPaperClass : github.com/gotd/td/bin.Encoder WallPaperClass : github.com/gotd/td/bin.Object WallPaperClass : fmt.Stringer func DecodeWallPaper(buf *bin.Buffer) (WallPaperClass, error) func (*AccountWallPapers).GetWallpapers() (value []WallPaperClass) func (*ChannelAdminLogEventActionChangeWallpaper).GetNewValue() (value WallPaperClass) func (*ChannelAdminLogEventActionChangeWallpaper).GetPrevValue() (value WallPaperClass) func (*ChannelFull).GetWallpaper() (value WallPaperClass, ok bool) func (*Client).AccountGetMultiWallPapers(ctx context.Context, wallpapers []InputWallPaperClass) ([]WallPaperClass, error) func (*Client).AccountGetWallPaper(ctx context.Context, wallpaper InputWallPaperClass) (WallPaperClass, error) func (*Client).AccountUploadWallPaper(ctx context.Context, request *AccountUploadWallPaperRequest) (WallPaperClass, error) func (*MessageActionSetChatWallPaper).GetWallpaper() (value WallPaperClass) func (*ThemeSettings).GetWallpaper() (value WallPaperClass, ok bool) func (*UpdatePeerWallpaper).GetWallpaper() (value WallPaperClass, ok bool) func (*UserFull).GetWallpaper() (value WallPaperClass, ok bool) func WallPaperClassArray.First() (v WallPaperClass, ok bool) func WallPaperClassArray.Last() (v WallPaperClass, ok bool) func (*WallPaperClassArray).Pop() (v WallPaperClass, ok bool) func (*WallPaperClassArray).PopFirst() (v WallPaperClass, ok bool) func (*WallPaperClassVector).GetElems() (value []WallPaperClass) func (*ChannelFull).SetWallpaper(value WallPaperClass) func (*ThemeSettings).SetWallpaper(value WallPaperClass) func (*UpdatePeerWallpaper).SetWallpaper(value WallPaperClass) func (*UserFull).SetWallpaper(value WallPaperClass)
WallPaperClassArray is adapter for slice of WallPaperClass. AsWallPaper returns copy with only WallPaper constructors. AsWallPaperNoFile returns copy with only WallPaperNoFile constructors. FillWallPaperMap fills only WallPaper constructors to given map. FillWallPaperNoFileMap fills only WallPaperNoFile 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 WallPaperClass. Sort sorts slice of WallPaperClass. SortByID sorts slice of WallPaperClass by ID. SortStable sorts slice of WallPaperClass. SortStableByID sorts slice of WallPaperClass by ID. WallPaperNoFileToMap collects only WallPaperNoFile constructors to map. WallPaperToMap collects only WallPaper constructors to map. func (*AccountWallPapers).MapWallpapers() (value WallPaperClassArray) func WallPaperClassArray.Retain(keep func(x WallPaperClass) bool) WallPaperClassArray func WallPaperClassArray.Sort(less func(a, b WallPaperClass) bool) WallPaperClassArray func WallPaperClassArray.SortByID() WallPaperClassArray func WallPaperClassArray.SortStable(less func(a, b WallPaperClass) bool) WallPaperClassArray func WallPaperClassArray.SortStableByID() WallPaperClassArray func (*WallPaperClassVector).MapElems() (value WallPaperClassArray)
WallPaperClassVector is a box for Vector<WallPaper> Elements of Vector<WallPaper> Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WallPaperClassVector from given interface. GetElems returns value of Elems field. MapElems returns field Elems 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. (*WallPaperClassVector) Zero() bool *WallPaperClassVector : github.com/gotd/td/bin.BareDecoder *WallPaperClassVector : github.com/gotd/td/bin.BareEncoder *WallPaperClassVector : github.com/gotd/td/bin.Decoder *WallPaperClassVector : github.com/gotd/td/bin.Encoder *WallPaperClassVector : github.com/gotd/td/bin.Object *WallPaperClassVector : github.com/gotd/td/tdp.Object *WallPaperClassVector : fmt.Stringer
WallPaperNoFile represents TL type `wallPaperNoFile#e0804116`. Represents a wallpaper¹ only based on colors/gradients. Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/constructor/wallPaperNoFile for reference. Whether this wallpaper should be used in dark mode. Whether this is the default wallpaper Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Wallpaper ID Info on how to generate the wallpaper. Use SetSettings and GetSettings helpers. AsInput tries to map WallPaperNoFile to InputWallPaperNoFile. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WallPaperNoFile from given interface. GetDark returns value of Dark conditional field. GetDefault returns value of Default conditional field. GetID returns value of ID field. GetSettings returns value of Settings conditional field and boolean which is true if field was set. SetDark sets value of Dark conditional field. SetDefault sets value of Default 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. (*WallPaperNoFile) Zero() bool *WallPaperNoFile : WallPaperClass *WallPaperNoFile : github.com/gotd/td/bin.BareDecoder *WallPaperNoFile : github.com/gotd/td/bin.BareEncoder *WallPaperNoFile : github.com/gotd/td/bin.Decoder *WallPaperNoFile : github.com/gotd/td/bin.Encoder *WallPaperNoFile : github.com/gotd/td/bin.Object *WallPaperNoFile : github.com/gotd/td/tdp.Object *WallPaperNoFile : fmt.Stringer func WallPaperClassArray.WallPaperNoFileToMap() map[int64]*WallPaperNoFile func WallPaperNoFileArray.First() (v WallPaperNoFile, ok bool) func WallPaperNoFileArray.Last() (v WallPaperNoFile, ok bool) func (*WallPaperNoFileArray).Pop() (v WallPaperNoFile, ok bool) func (*WallPaperNoFileArray).PopFirst() (v WallPaperNoFile, ok bool) func WallPaperNoFileArray.ToMap() map[int64]WallPaperNoFile func WallPaperClassArray.FillWallPaperNoFileMap(to map[int64]*WallPaperNoFile) func WallPaperNoFileArray.FillMap(to map[int64]WallPaperNoFile)
WallPaperNoFileArray is adapter for slice of WallPaperNoFile. 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 WallPaperNoFile. Sort sorts slice of WallPaperNoFile. SortByID sorts slice of WallPaperNoFile by ID. SortStable sorts slice of WallPaperNoFile. SortStableByID sorts slice of WallPaperNoFile by ID. ToMap collects constructors to map. func WallPaperClassArray.AsWallPaperNoFile() (to WallPaperNoFileArray) func WallPaperNoFileArray.Retain(keep func(x WallPaperNoFile) bool) WallPaperNoFileArray func WallPaperNoFileArray.Sort(less func(a, b WallPaperNoFile) bool) WallPaperNoFileArray func WallPaperNoFileArray.SortByID() WallPaperNoFileArray func WallPaperNoFileArray.SortStable(less func(a, b WallPaperNoFile) bool) WallPaperNoFileArray func WallPaperNoFileArray.SortStableByID() WallPaperNoFileArray
WallPaperSettings represents TL type `wallPaperSettings#372efcd0`. Wallpaper¹ rendering information. Links: 1. https://core.telegram.org/api/wallpapers See https://core.telegram.org/constructor/wallPaperSettings for reference. Used for solid »¹, gradient »² and freeform gradient »³ fills. Links: 1) https://core.telegram.org/api/wallpapers#solid-fill 2) https://core.telegram.org/api/wallpapers#gradient-fill 3) https://core.telegram.org/api/wallpapers#freeform-gradient-fill Use SetBackgroundColor and GetBackgroundColor helpers. For image wallpapers »¹: if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 12. Links: 1) https://core.telegram.org/api/wallpapers#image-wallpapers Emoticon field of WallPaperSettings. Use SetEmoticon and GetEmoticon helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Used for freeform gradient »¹ fills. Links: 1) https://core.telegram.org/api/wallpapers#freeform-gradient-fill Use SetFourthBackgroundColor and GetFourthBackgroundColor helpers. Used for pattern wallpapers »¹. Links: 1) https://core.telegram.org/api/wallpapers#pattern-wallpapers Use SetIntensity and GetIntensity helpers. If set, the background needs to be slightly moved when the device is rotated. Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45. Use SetRotation and GetRotation helpers. Used for gradient »¹ and freeform gradient »² fills. Links: 1) https://core.telegram.org/api/wallpapers#gradient-fill 2) https://core.telegram.org/api/wallpapers#freeform-gradient-fill Use SetSecondBackgroundColor and GetSecondBackgroundColor helpers. Used for freeform gradient »¹ fills. Links: 1) https://core.telegram.org/api/wallpapers#freeform-gradient-fill Use SetThirdBackgroundColor and GetThirdBackgroundColor helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WallPaperSettings from given interface. GetBackgroundColor returns value of BackgroundColor conditional field and boolean which is true if field was set. GetBlur returns value of Blur conditional field. GetEmoticon returns value of Emoticon conditional field and boolean which is true if field was set. GetFourthBackgroundColor returns value of FourthBackgroundColor conditional field and boolean which is true if field was set. GetIntensity returns value of Intensity conditional field and boolean which is true if field was set. GetMotion returns value of Motion conditional field. GetRotation returns value of Rotation conditional field and boolean which is true if field was set. GetSecondBackgroundColor returns value of SecondBackgroundColor conditional field and boolean which is true if field was set. GetThirdBackgroundColor returns value of ThirdBackgroundColor conditional field and boolean which is true if field was set. SetBackgroundColor sets value of BackgroundColor conditional field. SetBlur sets value of Blur conditional field. SetEmoticon sets value of Emoticon conditional field. SetFlags sets flags for non-zero fields. SetFourthBackgroundColor sets value of FourthBackgroundColor conditional field. SetIntensity sets value of Intensity conditional field. SetMotion sets value of Motion conditional field. SetRotation sets value of Rotation conditional field. SetSecondBackgroundColor sets value of SecondBackgroundColor conditional field. SetThirdBackgroundColor sets value of ThirdBackgroundColor 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. (*WallPaperSettings) Zero() bool *WallPaperSettings : github.com/gotd/td/bin.BareDecoder *WallPaperSettings : github.com/gotd/td/bin.BareEncoder *WallPaperSettings : github.com/gotd/td/bin.Decoder *WallPaperSettings : github.com/gotd/td/bin.Encoder *WallPaperSettings : github.com/gotd/td/bin.Object *WallPaperSettings : github.com/gotd/td/tdp.Object *WallPaperSettings : fmt.Stringer func (*AccountInstallWallPaperRequest).GetSettings() (value WallPaperSettings) func (*AccountSaveWallPaperRequest).GetSettings() (value WallPaperSettings) func (*AccountUploadWallPaperRequest).GetSettings() (value WallPaperSettings) func (*InputThemeSettings).GetWallpaperSettings() (value WallPaperSettings, ok bool) func (*MessagesSetChatWallPaperRequest).GetSettings() (value WallPaperSettings, ok bool) func (*WallPaper).GetSettings() (value WallPaperSettings, ok bool) func WallPaperClass.GetSettings() (value WallPaperSettings, ok bool) func (*WallPaperNoFile).GetSettings() (value WallPaperSettings, ok bool) func (*InputThemeSettings).SetWallpaperSettings(value WallPaperSettings) func (*MessagesSetChatWallPaperRequest).SetSettings(value WallPaperSettings) func (*WallPaper).SetSettings(value WallPaperSettings) func (*WallPaperNoFile).SetSettings(value WallPaperSettings)
WebAuthorization represents TL type `webAuthorization#a6f8f452`. Represents a bot logged in using the Telegram login widget¹ Links: 1. https://core.telegram.org/widgets/login See https://core.telegram.org/constructor/webAuthorization for reference. Bot ID Browser user-agent When was the web session last active When was the web session created The domain name of the website on which the user has logged in. Authorization hash IP address Platform Region, determined from IP address Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebAuthorization from given interface. GetBotID returns value of BotID field. GetBrowser returns value of Browser field. GetDateActive returns value of DateActive field. GetDateCreated returns value of DateCreated field. GetDomain returns value of Domain field. GetHash returns value of Hash field. GetIP returns value of IP field. GetPlatform returns value of Platform field. GetRegion returns value of Region 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. (*WebAuthorization) Zero() bool *WebAuthorization : github.com/gotd/td/bin.BareDecoder *WebAuthorization : github.com/gotd/td/bin.BareEncoder *WebAuthorization : github.com/gotd/td/bin.Decoder *WebAuthorization : github.com/gotd/td/bin.Encoder *WebAuthorization : github.com/gotd/td/bin.Object *WebAuthorization : github.com/gotd/td/tdp.Object *WebAuthorization : fmt.Stringer func (*AccountWebAuthorizations).GetAuthorizations() (value []WebAuthorization)
WebDocument represents TL type `webDocument#1c570ed1`. Remote document See https://core.telegram.org/constructor/webDocument for reference. Access hash Attributes for media types MIME type File size Document URL AsInput tries to map WebDocument to InputWebDocument. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebDocument from given interface. GetAccessHash returns value of AccessHash field. GetAttributes returns value of Attributes field. GetMimeType returns value of MimeType field. GetSize returns value of Size field. GetURL returns value of URL field. MapAttributes returns field Attributes wrapped in DocumentAttributeClassArray 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. (*WebDocument) Zero() bool *WebDocument : WebDocumentClass *WebDocument : github.com/gotd/td/bin.BareDecoder *WebDocument : github.com/gotd/td/bin.BareEncoder *WebDocument : github.com/gotd/td/bin.Decoder *WebDocument : github.com/gotd/td/bin.Encoder *WebDocument : github.com/gotd/td/bin.Object *WebDocument : github.com/gotd/td/tdp.Object *WebDocument : fmt.Stringer func WebDocumentArray.First() (v WebDocument, ok bool) func WebDocumentArray.Last() (v WebDocument, ok bool) func (*WebDocumentArray).Pop() (v WebDocument, ok bool) func (*WebDocumentArray).PopFirst() (v WebDocument, ok bool)
WebDocumentArray is adapter for slice of WebDocument. 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 WebDocument. Sort sorts slice of WebDocument. SortStable sorts slice of WebDocument. func WebDocumentArray.Retain(keep func(x WebDocument) bool) WebDocumentArray func WebDocumentArray.Sort(less func(a, b WebDocument) bool) WebDocumentArray func WebDocumentArray.SortStable(less func(a, b WebDocument) bool) WebDocumentArray func WebDocumentClassArray.AsWebDocument() (to WebDocumentArray)
WebDocument boxes the WebDocumentClass providing a helper. WebDocument WebDocumentClass Decode implements bin.Decoder for WebDocumentBox. Encode implements bin.Encode for WebDocumentBox. *WebDocumentBox : github.com/gotd/td/bin.Decoder *WebDocumentBox : github.com/gotd/td/bin.Encoder *WebDocumentBox : github.com/gotd/td/bin.Object
WebDocumentClass represents WebDocument generic type. See https://core.telegram.org/type/WebDocument for reference. Example: g, err := tg.DecodeWebDocument(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.WebDocument: // webDocument#1c570ed1 case *tg.WebDocumentNoProxy: // webDocumentNoProxy#f9c8bcc6 default: panic(v) } ( WebDocumentClass) Decode(b *bin.Buffer) error ( WebDocumentClass) DecodeBare(b *bin.Buffer) error ( WebDocumentClass) Encode(b *bin.Buffer) error ( WebDocumentClass) EncodeBare(b *bin.Buffer) error Attributes for media types MIME type File size Document URL Attributes for media types 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. *WebDocument *WebDocumentNoProxy WebDocumentClass : github.com/gotd/td/bin.BareDecoder WebDocumentClass : github.com/gotd/td/bin.BareEncoder WebDocumentClass : github.com/gotd/td/bin.Decoder WebDocumentClass : github.com/gotd/td/bin.Encoder WebDocumentClass : github.com/gotd/td/bin.Object WebDocumentClass : fmt.Stringer func DecodeWebDocument(buf *bin.Buffer) (WebDocumentClass, error) func (*BotInlineMessageMediaInvoice).GetPhoto() (value WebDocumentClass, ok bool) func (*BotInlineResult).GetContent() (value WebDocumentClass, ok bool) func (*BotInlineResult).GetThumb() (value WebDocumentClass, ok bool) func (*MessageMediaInvoice).GetPhoto() (value WebDocumentClass, ok bool) func (*PaymentsPaymentForm).GetPhoto() (value WebDocumentClass, ok bool) func (*PaymentsPaymentReceipt).GetPhoto() (value WebDocumentClass, ok bool) func WebDocumentClassArray.First() (v WebDocumentClass, ok bool) func WebDocumentClassArray.Last() (v WebDocumentClass, ok bool) func (*WebDocumentClassArray).Pop() (v WebDocumentClass, ok bool) func (*WebDocumentClassArray).PopFirst() (v WebDocumentClass, ok bool) func (*BotInlineMessageMediaInvoice).SetPhoto(value WebDocumentClass) func (*BotInlineResult).SetContent(value WebDocumentClass) func (*BotInlineResult).SetThumb(value WebDocumentClass) func (*MessageMediaInvoice).SetPhoto(value WebDocumentClass) func (*PaymentsPaymentForm).SetPhoto(value WebDocumentClass) func (*PaymentsPaymentReceipt).SetPhoto(value WebDocumentClass)
WebDocumentClassArray is adapter for slice of WebDocumentClass. AsWebDocument returns copy with only WebDocument constructors. AsWebDocumentNoProxy returns copy with only WebDocumentNoProxy 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 WebDocumentClass. Sort sorts slice of WebDocumentClass. SortStable sorts slice of WebDocumentClass. func WebDocumentClassArray.Retain(keep func(x WebDocumentClass) bool) WebDocumentClassArray func WebDocumentClassArray.Sort(less func(a, b WebDocumentClass) bool) WebDocumentClassArray func WebDocumentClassArray.SortStable(less func(a, b WebDocumentClass) bool) WebDocumentClassArray
WebDocumentNoProxy represents TL type `webDocumentNoProxy#f9c8bcc6`. Remote document that can be downloaded without proxying through telegram¹ Links: 1. https://core.telegram.org/api/files See https://core.telegram.org/constructor/webDocumentNoProxy for reference. Attributes for media types Mime type Remote file size Remote document URL to be downloaded using the appropriate method¹ Links: 1) https://core.telegram.org/api/files Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebDocumentNoProxy from given interface. GetAttributes returns value of Attributes field. GetMimeType returns value of MimeType field. GetSize returns value of Size field. GetURL returns value of URL field. MapAttributes returns field Attributes wrapped in DocumentAttributeClassArray 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. (*WebDocumentNoProxy) Zero() bool *WebDocumentNoProxy : WebDocumentClass *WebDocumentNoProxy : github.com/gotd/td/bin.BareDecoder *WebDocumentNoProxy : github.com/gotd/td/bin.BareEncoder *WebDocumentNoProxy : github.com/gotd/td/bin.Decoder *WebDocumentNoProxy : github.com/gotd/td/bin.Encoder *WebDocumentNoProxy : github.com/gotd/td/bin.Object *WebDocumentNoProxy : github.com/gotd/td/tdp.Object *WebDocumentNoProxy : fmt.Stringer func WebDocumentNoProxyArray.First() (v WebDocumentNoProxy, ok bool) func WebDocumentNoProxyArray.Last() (v WebDocumentNoProxy, ok bool) func (*WebDocumentNoProxyArray).Pop() (v WebDocumentNoProxy, ok bool) func (*WebDocumentNoProxyArray).PopFirst() (v WebDocumentNoProxy, ok bool)
WebDocumentNoProxyArray is adapter for slice of WebDocumentNoProxy. 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 WebDocumentNoProxy. Sort sorts slice of WebDocumentNoProxy. SortStable sorts slice of WebDocumentNoProxy. func WebDocumentClassArray.AsWebDocumentNoProxy() (to WebDocumentNoProxyArray) func WebDocumentNoProxyArray.Retain(keep func(x WebDocumentNoProxy) bool) WebDocumentNoProxyArray func WebDocumentNoProxyArray.Sort(less func(a, b WebDocumentNoProxy) bool) WebDocumentNoProxyArray func WebDocumentNoProxyArray.SortStable(less func(a, b WebDocumentNoProxy) bool) WebDocumentNoProxyArray
WebPage represents TL type `webPage#e89c45b2`. Webpage preview See https://core.telegram.org/constructor/webPage for reference. Webpage attributes Use SetAttributes and GetAttributes helpers. Author of the content Use SetAuthor and GetAuthor helpers. Page contents in instant view¹ format Links: 1) https://instantview.telegram.org Use SetCachedPage and GetCachedPage helpers. Content description Use SetDescription and GetDescription helpers. Webpage URL to be displayed to the user Preview of the content as a media file Use SetDocument and GetDocument helpers. Duration of the content, in seconds Use SetDuration and GetDuration helpers. Height of the embedded preview Use SetEmbedHeight and GetEmbedHeight helpers. MIME type of the embedded preview, (e.g., text/html or video/mp4) Use SetEmbedType and GetEmbedType helpers. URL to show in the embedded preview Use SetEmbedURL and GetEmbedURL helpers. Width of the embedded preview Use SetEmbedWidth and GetEmbedWidth helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Whether the size of the media in the preview can be changed. Hash for pagination, for more info click here¹ Links: 1) https://core.telegram.org/api/offsets#hash-generation Preview ID Image representing the content Use SetPhoto and GetPhoto helpers. Short name of the site (e.g., Google Docs, App Store) Use SetSiteName and GetSiteName helpers. Title of the content Use SetTitle and GetTitle helpers. Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else Use SetType and GetType helpers. URL of previewed webpage AsModified tries to map WebPage to ModifiedWebPage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebPage from given interface. GetAttributes returns value of Attributes conditional field and boolean which is true if field was set. GetAuthor returns value of Author conditional field and boolean which is true if field was set. GetCachedPage returns value of CachedPage 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. GetDisplayURL returns value of DisplayURL field. GetDocument returns value of Document conditional field and boolean which is true if field was set. GetDuration returns value of Duration conditional field and boolean which is true if field was set. GetEmbedHeight returns value of EmbedHeight conditional field and boolean which is true if field was set. GetEmbedType returns value of EmbedType conditional field and boolean which is true if field was set. GetEmbedURL returns value of EmbedURL conditional field and boolean which is true if field was set. GetEmbedWidth returns value of EmbedWidth conditional field and boolean which is true if field was set. GetHasLargeMedia returns value of HasLargeMedia conditional field. GetHash returns value of Hash field. GetID returns value of ID field. GetPhoto returns value of Photo conditional field and boolean which is true if field was set. GetSiteName returns value of SiteName 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 conditional field and boolean which is true if field was set. GetURL returns value of URL field. MapAttributes returns field Attributes wrapped in WebPageAttributeClassArray helper. SetAttributes sets value of Attributes conditional field. SetAuthor sets value of Author conditional field. SetCachedPage sets value of CachedPage conditional field. SetDescription sets value of Description conditional field. SetDocument sets value of Document conditional field. SetDuration sets value of Duration conditional field. SetEmbedHeight sets value of EmbedHeight conditional field. SetEmbedType sets value of EmbedType conditional field. SetEmbedURL sets value of EmbedURL conditional field. SetEmbedWidth sets value of EmbedWidth conditional field. SetFlags sets flags for non-zero fields. SetHasLargeMedia sets value of HasLargeMedia conditional field. SetPhoto sets value of Photo conditional field. SetSiteName sets value of SiteName conditional field. SetTitle sets value of Title conditional field. SetType sets value of Type 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. (*WebPage) Zero() bool *WebPage : ModifiedWebPage *WebPage : WebPageClass *WebPage : github.com/gotd/td/bin.BareDecoder *WebPage : github.com/gotd/td/bin.BareEncoder *WebPage : github.com/gotd/td/bin.Decoder *WebPage : github.com/gotd/td/bin.Encoder *WebPage : github.com/gotd/td/bin.Object *WebPage : github.com/gotd/td/tdp.Object *WebPage : fmt.Stringer func WebPageArray.First() (v WebPage, ok bool) func WebPageArray.Last() (v WebPage, ok bool) func (*WebPageArray).Pop() (v WebPage, ok bool) func (*WebPageArray).PopFirst() (v WebPage, ok bool) func WebPageArray.ToMap() map[int64]WebPage func WebPageArray.FillMap(to map[int64]WebPage)
WebPageArray is adapter for slice of WebPage. 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 WebPage. Sort sorts slice of WebPage. SortByID sorts slice of WebPage by ID. SortStable sorts slice of WebPage. SortStableByID sorts slice of WebPage by ID. ToMap collects constructors to map. func WebPageArray.Retain(keep func(x WebPage) bool) WebPageArray func WebPageArray.Sort(less func(a, b WebPage) bool) WebPageArray func WebPageArray.SortByID() WebPageArray func WebPageArray.SortStable(less func(a, b WebPage) bool) WebPageArray func WebPageArray.SortStableByID() WebPageArray func WebPageClassArray.AsWebPage() (to WebPageArray)
WebPageAttribute boxes the WebPageAttributeClass providing a helper. WebPageAttribute WebPageAttributeClass Decode implements bin.Decoder for WebPageAttributeBox. Encode implements bin.Encode for WebPageAttributeBox. *WebPageAttributeBox : github.com/gotd/td/bin.Decoder *WebPageAttributeBox : github.com/gotd/td/bin.Encoder *WebPageAttributeBox : github.com/gotd/td/bin.Object
WebPageAttributeClass represents WebPageAttribute generic type. See https://core.telegram.org/type/WebPageAttribute for reference. Example: g, err := tg.DecodeWebPageAttribute(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.WebPageAttributeTheme: // webPageAttributeTheme#54b56617 case *tg.WebPageAttributeStory: // webPageAttributeStory#2e94c3e7 default: panic(v) } ( WebPageAttributeClass) Decode(b *bin.Buffer) error ( WebPageAttributeClass) DecodeBare(b *bin.Buffer) error ( WebPageAttributeClass) Encode(b *bin.Buffer) error ( WebPageAttributeClass) 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. *WebPageAttributeStory *WebPageAttributeTheme WebPageAttributeClass : github.com/gotd/td/bin.BareDecoder WebPageAttributeClass : github.com/gotd/td/bin.BareEncoder WebPageAttributeClass : github.com/gotd/td/bin.Decoder WebPageAttributeClass : github.com/gotd/td/bin.Encoder WebPageAttributeClass : github.com/gotd/td/bin.Object WebPageAttributeClass : fmt.Stringer func DecodeWebPageAttribute(buf *bin.Buffer) (WebPageAttributeClass, error) func (*WebPage).GetAttributes() (value []WebPageAttributeClass, ok bool) func WebPageAttributeClassArray.First() (v WebPageAttributeClass, ok bool) func WebPageAttributeClassArray.Last() (v WebPageAttributeClass, ok bool) func (*WebPageAttributeClassArray).Pop() (v WebPageAttributeClass, ok bool) func (*WebPageAttributeClassArray).PopFirst() (v WebPageAttributeClass, ok bool) func (*WebPage).SetAttributes(value []WebPageAttributeClass)
WebPageAttributeClassArray is adapter for slice of WebPageAttributeClass. AsWebPageAttributeStory returns copy with only WebPageAttributeStory constructors. AsWebPageAttributeTheme returns copy with only WebPageAttributeTheme 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 WebPageAttributeClass. Sort sorts slice of WebPageAttributeClass. SortStable sorts slice of WebPageAttributeClass. func (*WebPage).MapAttributes() (value WebPageAttributeClassArray, ok bool) func WebPageAttributeClassArray.Retain(keep func(x WebPageAttributeClass) bool) WebPageAttributeClassArray func WebPageAttributeClassArray.Sort(less func(a, b WebPageAttributeClass) bool) WebPageAttributeClassArray func WebPageAttributeClassArray.SortStable(less func(a, b WebPageAttributeClass) bool) WebPageAttributeClassArray
WebPageAttributeStory represents TL type `webPageAttributeStory#2e94c3e7`. Webpage preview of a Telegram story See https://core.telegram.org/constructor/webPageAttributeStory for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Story ID¹ Links: 1) https://core.telegram.org/api/stories#watching-stories Peer that posted the story May contain the story, if not the story should be fetched when and if needed using stories.getStoriesByID¹ with the above id and peer. Links: 1) https://core.telegram.org/method/stories.getStoriesByID Use SetStory and GetStory helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebPageAttributeStory from given interface. GetID returns value of ID field. GetPeer returns value of Peer field. GetStory returns value of Story conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetStory sets value of Story 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. (*WebPageAttributeStory) Zero() bool *WebPageAttributeStory : WebPageAttributeClass *WebPageAttributeStory : github.com/gotd/td/bin.BareDecoder *WebPageAttributeStory : github.com/gotd/td/bin.BareEncoder *WebPageAttributeStory : github.com/gotd/td/bin.Decoder *WebPageAttributeStory : github.com/gotd/td/bin.Encoder *WebPageAttributeStory : github.com/gotd/td/bin.Object *WebPageAttributeStory : github.com/gotd/td/tdp.Object *WebPageAttributeStory : fmt.Stringer func WebPageAttributeStoryArray.First() (v WebPageAttributeStory, ok bool) func WebPageAttributeStoryArray.Last() (v WebPageAttributeStory, ok bool) func (*WebPageAttributeStoryArray).Pop() (v WebPageAttributeStory, ok bool) func (*WebPageAttributeStoryArray).PopFirst() (v WebPageAttributeStory, ok bool) func WebPageAttributeStoryArray.ToMap() map[int]WebPageAttributeStory func WebPageAttributeStoryArray.FillMap(to map[int]WebPageAttributeStory)
WebPageAttributeStoryArray is adapter for slice of WebPageAttributeStory. 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 WebPageAttributeStory. Sort sorts slice of WebPageAttributeStory. SortByID sorts slice of WebPageAttributeStory by ID. SortStable sorts slice of WebPageAttributeStory. SortStableByID sorts slice of WebPageAttributeStory by ID. ToMap collects constructors to map. func WebPageAttributeClassArray.AsWebPageAttributeStory() (to WebPageAttributeStoryArray) func WebPageAttributeStoryArray.Retain(keep func(x WebPageAttributeStory) bool) WebPageAttributeStoryArray func WebPageAttributeStoryArray.Sort(less func(a, b WebPageAttributeStory) bool) WebPageAttributeStoryArray func WebPageAttributeStoryArray.SortByID() WebPageAttributeStoryArray func WebPageAttributeStoryArray.SortStable(less func(a, b WebPageAttributeStory) bool) WebPageAttributeStoryArray func WebPageAttributeStoryArray.SortStableByID() WebPageAttributeStoryArray
WebPageAttributeTheme represents TL type `webPageAttributeTheme#54b56617`. Page theme See https://core.telegram.org/constructor/webPageAttributeTheme for reference. Theme files Use SetDocuments and GetDocuments helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Theme settings Use SetSettings and GetSettings helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebPageAttributeTheme from given interface. GetDocuments returns value of Documents 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. MapDocuments returns field Documents wrapped in DocumentClassArray helper. SetDocuments sets value of Documents 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. (*WebPageAttributeTheme) Zero() bool *WebPageAttributeTheme : WebPageAttributeClass *WebPageAttributeTheme : github.com/gotd/td/bin.BareDecoder *WebPageAttributeTheme : github.com/gotd/td/bin.BareEncoder *WebPageAttributeTheme : github.com/gotd/td/bin.Decoder *WebPageAttributeTheme : github.com/gotd/td/bin.Encoder *WebPageAttributeTheme : github.com/gotd/td/bin.Object *WebPageAttributeTheme : github.com/gotd/td/tdp.Object *WebPageAttributeTheme : fmt.Stringer func WebPageAttributeThemeArray.First() (v WebPageAttributeTheme, ok bool) func WebPageAttributeThemeArray.Last() (v WebPageAttributeTheme, ok bool) func (*WebPageAttributeThemeArray).Pop() (v WebPageAttributeTheme, ok bool) func (*WebPageAttributeThemeArray).PopFirst() (v WebPageAttributeTheme, ok bool)
WebPageAttributeThemeArray is adapter for slice of WebPageAttributeTheme. 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 WebPageAttributeTheme. Sort sorts slice of WebPageAttributeTheme. SortStable sorts slice of WebPageAttributeTheme. func WebPageAttributeClassArray.AsWebPageAttributeTheme() (to WebPageAttributeThemeArray) func WebPageAttributeThemeArray.Retain(keep func(x WebPageAttributeTheme) bool) WebPageAttributeThemeArray func WebPageAttributeThemeArray.Sort(less func(a, b WebPageAttributeTheme) bool) WebPageAttributeThemeArray func WebPageAttributeThemeArray.SortStable(less func(a, b WebPageAttributeTheme) bool) WebPageAttributeThemeArray
WebPage boxes the WebPageClass providing a helper. WebPage WebPageClass Decode implements bin.Decoder for WebPageBox. Encode implements bin.Encode for WebPageBox. *WebPageBox : github.com/gotd/td/bin.Decoder *WebPageBox : github.com/gotd/td/bin.Encoder *WebPageBox : github.com/gotd/td/bin.Object
WebPageClass represents WebPage generic type. See https://core.telegram.org/type/WebPage for reference. Example: g, err := tg.DecodeWebPage(buf) if err != nil { panic(err) } switch v := g.(type) { case *tg.WebPageEmpty: // webPageEmpty#211a1788 case *tg.WebPagePending: // webPagePending#b0d13e47 case *tg.WebPage: // webPage#e89c45b2 case *tg.WebPageNotModified: // webPageNotModified#7311ca11 default: panic(v) } AsModified tries to map WebPageClass to ModifiedWebPage. ( WebPageClass) Decode(b *bin.Buffer) error ( WebPageClass) DecodeBare(b *bin.Buffer) error ( WebPageClass) Encode(b *bin.Buffer) error ( WebPageClass) 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. *WebPage *WebPageEmpty *WebPageNotModified *WebPagePending WebPageClass : github.com/gotd/td/bin.BareDecoder WebPageClass : github.com/gotd/td/bin.BareEncoder WebPageClass : github.com/gotd/td/bin.Decoder WebPageClass : github.com/gotd/td/bin.Encoder WebPageClass : github.com/gotd/td/bin.Object WebPageClass : fmt.Stringer func DecodeWebPage(buf *bin.Buffer) (WebPageClass, error) func (*MessageMediaWebPage).GetWebpage() (value WebPageClass) func (*MessagesWebPage).GetWebpage() (value WebPageClass) func (*UpdateChannelWebPage).GetWebpage() (value WebPageClass) func (*UpdateWebPage).GetWebpage() (value WebPageClass) func WebPageClassArray.First() (v WebPageClass, ok bool) func WebPageClassArray.Last() (v WebPageClass, ok bool) func (*WebPageClassArray).Pop() (v WebPageClass, ok bool) func (*WebPageClassArray).PopFirst() (v WebPageClass, ok bool)
WebPageClassArray is adapter for slice of WebPageClass. AppendOnlyModified appends only Modified constructors to given slice. AsModified returns copy with only Modified constructors. AsWebPage returns copy with only WebPage constructors. AsWebPageEmpty returns copy with only WebPageEmpty constructors. AsWebPageNotModified returns copy with only WebPageNotModified constructors. AsWebPagePending returns copy with only WebPagePending 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 WebPageClass. Sort sorts slice of WebPageClass. SortStable sorts slice of WebPageClass. func WebPageClassArray.Retain(keep func(x WebPageClass) bool) WebPageClassArray func WebPageClassArray.Sort(less func(a, b WebPageClass) bool) WebPageClassArray func WebPageClassArray.SortStable(less func(a, b WebPageClass) bool) WebPageClassArray
WebPageEmpty represents TL type `webPageEmpty#211a1788`. No preview is available for the webpage See https://core.telegram.org/constructor/webPageEmpty for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Preview ID URL of the webpage. Use SetURL and GetURL helpers. AsModified tries to map WebPageEmpty to ModifiedWebPage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebPageEmpty from given interface. GetID returns value of ID field. GetURL returns value of URL conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. 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. (*WebPageEmpty) Zero() bool *WebPageEmpty : ModifiedWebPage *WebPageEmpty : WebPageClass *WebPageEmpty : github.com/gotd/td/bin.BareDecoder *WebPageEmpty : github.com/gotd/td/bin.BareEncoder *WebPageEmpty : github.com/gotd/td/bin.Decoder *WebPageEmpty : github.com/gotd/td/bin.Encoder *WebPageEmpty : github.com/gotd/td/bin.Object *WebPageEmpty : github.com/gotd/td/tdp.Object *WebPageEmpty : fmt.Stringer func WebPageEmptyArray.First() (v WebPageEmpty, ok bool) func WebPageEmptyArray.Last() (v WebPageEmpty, ok bool) func (*WebPageEmptyArray).Pop() (v WebPageEmpty, ok bool) func (*WebPageEmptyArray).PopFirst() (v WebPageEmpty, ok bool) func WebPageEmptyArray.ToMap() map[int64]WebPageEmpty func WebPageEmptyArray.FillMap(to map[int64]WebPageEmpty)
WebPageEmptyArray is adapter for slice of WebPageEmpty. 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 WebPageEmpty. Sort sorts slice of WebPageEmpty. SortByID sorts slice of WebPageEmpty by ID. SortStable sorts slice of WebPageEmpty. SortStableByID sorts slice of WebPageEmpty by ID. ToMap collects constructors to map. func WebPageClassArray.AsWebPageEmpty() (to WebPageEmptyArray) func WebPageEmptyArray.Retain(keep func(x WebPageEmpty) bool) WebPageEmptyArray func WebPageEmptyArray.Sort(less func(a, b WebPageEmpty) bool) WebPageEmptyArray func WebPageEmptyArray.SortByID() WebPageEmptyArray func WebPageEmptyArray.SortStable(less func(a, b WebPageEmpty) bool) WebPageEmptyArray func WebPageEmptyArray.SortStableByID() WebPageEmptyArray
WebPageHandler is a WebPage event handler. func UpdateDispatcher.OnWebPage(handler WebPageHandler)
WebPageNotModified represents TL type `webPageNotModified#7311ca11`. The preview of the webpage hasn't changed See https://core.telegram.org/constructor/webPageNotModified for reference. Page view count Use SetCachedPageViews and GetCachedPageViews helpers. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields AsModified tries to map WebPageNotModified to ModifiedWebPage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebPageNotModified from given interface. GetCachedPageViews returns value of CachedPageViews conditional field and boolean which is true if field was set. SetCachedPageViews sets value of CachedPageViews 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. (*WebPageNotModified) Zero() bool *WebPageNotModified : WebPageClass *WebPageNotModified : github.com/gotd/td/bin.BareDecoder *WebPageNotModified : github.com/gotd/td/bin.BareEncoder *WebPageNotModified : github.com/gotd/td/bin.Decoder *WebPageNotModified : github.com/gotd/td/bin.Encoder *WebPageNotModified : github.com/gotd/td/bin.Object *WebPageNotModified : github.com/gotd/td/tdp.Object *WebPageNotModified : fmt.Stringer func WebPageNotModifiedArray.First() (v WebPageNotModified, ok bool) func WebPageNotModifiedArray.Last() (v WebPageNotModified, ok bool) func (*WebPageNotModifiedArray).Pop() (v WebPageNotModified, ok bool) func (*WebPageNotModifiedArray).PopFirst() (v WebPageNotModified, ok bool)
WebPageNotModifiedArray is adapter for slice of WebPageNotModified. 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 WebPageNotModified. Sort sorts slice of WebPageNotModified. SortStable sorts slice of WebPageNotModified. func WebPageClassArray.AsWebPageNotModified() (to WebPageNotModifiedArray) func WebPageNotModifiedArray.Retain(keep func(x WebPageNotModified) bool) WebPageNotModifiedArray func WebPageNotModifiedArray.Sort(less func(a, b WebPageNotModified) bool) WebPageNotModifiedArray func WebPageNotModifiedArray.SortStable(less func(a, b WebPageNotModified) bool) WebPageNotModifiedArray
WebPagePending represents TL type `webPagePending#b0d13e47`. A preview of the webpage is currently being generated See https://core.telegram.org/constructor/webPagePending for reference. When was the processing started Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields ID of preview URL of the webpage Use SetURL and GetURL helpers. AsModified tries to map WebPagePending to ModifiedWebPage. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebPagePending from given interface. GetDate returns value of Date field. GetID returns value of ID field. GetURL returns value of URL conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. 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. (*WebPagePending) Zero() bool *WebPagePending : ModifiedWebPage *WebPagePending : WebPageClass *WebPagePending : github.com/gotd/td/bin.BareDecoder *WebPagePending : github.com/gotd/td/bin.BareEncoder *WebPagePending : github.com/gotd/td/bin.Decoder *WebPagePending : github.com/gotd/td/bin.Encoder *WebPagePending : github.com/gotd/td/bin.Object *WebPagePending : github.com/gotd/td/tdp.Object *WebPagePending : fmt.Stringer func WebPagePendingArray.First() (v WebPagePending, ok bool) func WebPagePendingArray.Last() (v WebPagePending, ok bool) func (*WebPagePendingArray).Pop() (v WebPagePending, ok bool) func (*WebPagePendingArray).PopFirst() (v WebPagePending, ok bool) func WebPagePendingArray.ToMap() map[int64]WebPagePending func WebPagePendingArray.FillMap(to map[int64]WebPagePending)
WebPagePendingArray is adapter for slice of WebPagePending. 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 WebPagePending. Sort sorts slice of WebPagePending. SortByDate sorts slice of WebPagePending by Date. SortByID sorts slice of WebPagePending by ID. SortStable sorts slice of WebPagePending. SortStableByDate sorts slice of WebPagePending by Date. SortStableByID sorts slice of WebPagePending by ID. ToMap collects constructors to map. func WebPageClassArray.AsWebPagePending() (to WebPagePendingArray) func WebPagePendingArray.Retain(keep func(x WebPagePending) bool) WebPagePendingArray func WebPagePendingArray.Sort(less func(a, b WebPagePending) bool) WebPagePendingArray func WebPagePendingArray.SortByDate() WebPagePendingArray func WebPagePendingArray.SortByID() WebPagePendingArray func WebPagePendingArray.SortStable(less func(a, b WebPagePending) bool) WebPagePendingArray func WebPagePendingArray.SortStableByDate() WebPagePendingArray func WebPagePendingArray.SortStableByID() WebPagePendingArray
WebViewMessageSent represents TL type `webViewMessageSent#c94511c`. Info about a sent inline webview message See https://core.telegram.org/constructor/webViewMessageSent for reference. Flags, see TL conditional fields¹ Links: 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Message ID Use SetMsgID and GetMsgID helpers. Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebViewMessageSent from given interface. GetMsgID returns value of MsgID conditional field and boolean which is true if field was set. SetFlags sets flags for non-zero fields. SetMsgID sets value of MsgID 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. (*WebViewMessageSent) Zero() bool *WebViewMessageSent : github.com/gotd/td/bin.BareDecoder *WebViewMessageSent : github.com/gotd/td/bin.BareEncoder *WebViewMessageSent : github.com/gotd/td/bin.Decoder *WebViewMessageSent : github.com/gotd/td/bin.Encoder *WebViewMessageSent : github.com/gotd/td/bin.Object *WebViewMessageSent : github.com/gotd/td/tdp.Object *WebViewMessageSent : fmt.Stringer func (*Client).MessagesSendWebViewResultMessage(ctx context.Context, request *MessagesSendWebViewResultMessageRequest) (*WebViewMessageSent, error)
WebViewResultSentHandler is a WebViewResultSent event handler. func UpdateDispatcher.OnWebViewResultSent(handler WebViewResultSentHandler)
WebViewResultURL represents TL type `webViewResultUrl#c14557c`. Contains the webview URL with appropriate theme and user info parameters added See https://core.telegram.org/constructor/webViewResultUrl for reference. Webview session ID Webview URL to open Decode implements bin.Decoder. DecodeBare implements bin.BareDecoder. Encode implements bin.Encoder. EncodeBare implements bin.BareEncoder. FillFrom fills WebViewResultURL from given interface. GetQueryID returns value of QueryID 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. (*WebViewResultURL) Zero() bool *WebViewResultURL : github.com/gotd/td/bin.BareDecoder *WebViewResultURL : github.com/gotd/td/bin.BareEncoder *WebViewResultURL : github.com/gotd/td/bin.Decoder *WebViewResultURL : github.com/gotd/td/bin.Encoder *WebViewResultURL : github.com/gotd/td/bin.Object *WebViewResultURL : github.com/gotd/td/tdp.Object *WebViewResultURL : fmt.Stringer func (*Client).MessagesRequestWebView(ctx context.Context, request *MessagesRequestWebViewRequest) (*WebViewResultURL, error)
Package-Level Functions (total 711, in which 710 are exported)
ClassConstructorsMap maps class schema name to constructors type ids.
DecodeAccountEmailVerified implements binary de-serialization for AccountEmailVerifiedClass.
DecodeAccountEmojiStatuses implements binary de-serialization for AccountEmojiStatusesClass.
DecodeAccountResetPasswordResult implements binary de-serialization for AccountResetPasswordResultClass.
DecodeAccountSavedRingtone implements binary de-serialization for AccountSavedRingtoneClass.
DecodeAccountSavedRingtones implements binary de-serialization for AccountSavedRingtonesClass.
DecodeAccountThemes implements binary de-serialization for AccountThemesClass.
DecodeAccountWallPapers implements binary de-serialization for AccountWallPapersClass.
DecodeAttachMenuBots implements binary de-serialization for AttachMenuBotsClass.
DecodeAttachMenuPeerType implements binary de-serialization for AttachMenuPeerTypeClass.
DecodeAuthAuthorization implements binary de-serialization for AuthAuthorizationClass.
DecodeAuthCodeType implements binary de-serialization for AuthCodeTypeClass.
DecodeAuthLoginToken implements binary de-serialization for AuthLoginTokenClass.
DecodeAuthSentCode implements binary de-serialization for AuthSentCodeClass.
DecodeAuthSentCodeType implements binary de-serialization for AuthSentCodeTypeClass.
DecodeBaseTheme implements binary de-serialization for BaseThemeClass.
DecodeBool implements binary de-serialization for BoolClass.
DecodeBotApp implements binary de-serialization for BotAppClass.
DecodeBotCommandScope implements binary de-serialization for BotCommandScopeClass.
DecodeBotInlineMessage implements binary de-serialization for BotInlineMessageClass.
DecodeBotInlineResult implements binary de-serialization for BotInlineResultClass.
DecodeBotMenuButton implements binary de-serialization for BotMenuButtonClass.
DecodeChannelAdminLogEventAction implements binary de-serialization for ChannelAdminLogEventActionClass.
DecodeChannelLocation implements binary de-serialization for ChannelLocationClass.
DecodeChannelMessagesFilter implements binary de-serialization for ChannelMessagesFilterClass.
DecodeChannelParticipant implements binary de-serialization for ChannelParticipantClass.
DecodeChannelParticipantsFilter implements binary de-serialization for ChannelParticipantsFilterClass.
DecodeChannelsChannelParticipants implements binary de-serialization for ChannelsChannelParticipantsClass.
DecodeChat implements binary de-serialization for ChatClass.
DecodeChatFull implements binary de-serialization for ChatFullClass.
DecodeChatInvite implements binary de-serialization for ChatInviteClass.
DecodeChatlistsChatlistInvite implements binary de-serialization for ChatlistsChatlistInviteClass.
DecodeChatParticipant implements binary de-serialization for ChatParticipantClass.
DecodeChatParticipants implements binary de-serialization for ChatParticipantsClass.
DecodeChatPhoto implements binary de-serialization for ChatPhotoClass.
DecodeChatReactions implements binary de-serialization for ChatReactionsClass.
DecodeContactsBlocked implements binary de-serialization for ContactsBlockedClass.
DecodeContactsContacts implements binary de-serialization for ContactsContactsClass.
DecodeContactsTopPeers implements binary de-serialization for ContactsTopPeersClass.
DecodeDialog implements binary de-serialization for DialogClass.
DecodeDialogFilter implements binary de-serialization for DialogFilterClass.
DecodeDialogPeer implements binary de-serialization for DialogPeerClass.
DecodeDocument implements binary de-serialization for DocumentClass.
DecodeDocumentAttribute implements binary de-serialization for DocumentAttributeClass.
DecodeDraftMessage implements binary de-serialization for DraftMessageClass.
DecodeEmailVerification implements binary de-serialization for EmailVerificationClass.
DecodeEmailVerifyPurpose implements binary de-serialization for EmailVerifyPurposeClass.
DecodeEmojiKeyword implements binary de-serialization for EmojiKeywordClass.
DecodeEmojiList implements binary de-serialization for EmojiListClass.
DecodeEmojiStatus implements binary de-serialization for EmojiStatusClass.
DecodeEncryptedChat implements binary de-serialization for EncryptedChatClass.
DecodeEncryptedFile implements binary de-serialization for EncryptedFileClass.
DecodeEncryptedMessage implements binary de-serialization for EncryptedMessageClass.
DecodeExportedChatInvite implements binary de-serialization for ExportedChatInviteClass.
DecodeForumTopic implements binary de-serialization for ForumTopicClass.
DecodeGeoPoint implements binary de-serialization for GeoPointClass.
DecodeGroupCall implements binary de-serialization for GroupCallClass.
DecodeHelpAppConfig implements binary de-serialization for HelpAppConfigClass.
DecodeHelpAppUpdate implements binary de-serialization for HelpAppUpdateClass.
DecodeHelpCountriesList implements binary de-serialization for HelpCountriesListClass.
DecodeHelpDeepLinkInfo implements binary de-serialization for HelpDeepLinkInfoClass.
DecodeHelpPassportConfig implements binary de-serialization for HelpPassportConfigClass.
DecodeHelpPeerColors implements binary de-serialization for HelpPeerColorsClass.
DecodeHelpPeerColorSet implements binary de-serialization for HelpPeerColorSetClass.
DecodeHelpPromoData implements binary de-serialization for HelpPromoDataClass.
DecodeHelpTermsOfServiceUpdate implements binary de-serialization for HelpTermsOfServiceUpdateClass.
DecodeHelpUserInfo implements binary de-serialization for HelpUserInfoClass.
DecodeInlineQueryPeerType implements binary de-serialization for InlineQueryPeerTypeClass.
DecodeInputBotApp implements binary de-serialization for InputBotAppClass.
DecodeInputBotInlineMessage implements binary de-serialization for InputBotInlineMessageClass.
DecodeInputBotInlineMessageID implements binary de-serialization for InputBotInlineMessageIDClass.
DecodeInputBotInlineResult implements binary de-serialization for InputBotInlineResultClass.
DecodeInputChannel implements binary de-serialization for InputChannelClass.
DecodeInputChatPhoto implements binary de-serialization for InputChatPhotoClass.
DecodeInputCheckPasswordSRP implements binary de-serialization for InputCheckPasswordSRPClass.
DecodeInputDialogPeer implements binary de-serialization for InputDialogPeerClass.
DecodeInputDocument implements binary de-serialization for InputDocumentClass.
DecodeInputEncryptedFile implements binary de-serialization for InputEncryptedFileClass.
DecodeInputFile implements binary de-serialization for InputFileClass.
DecodeInputFileLocation implements binary de-serialization for InputFileLocationClass.
DecodeInputGame implements binary de-serialization for InputGameClass.
DecodeInputGeoPoint implements binary de-serialization for InputGeoPointClass.
DecodeInputInvoice implements binary de-serialization for InputInvoiceClass.
DecodeInputMedia implements binary de-serialization for InputMediaClass.
DecodeInputMessage implements binary de-serialization for InputMessageClass.
DecodeInputNotifyPeer implements binary de-serialization for InputNotifyPeerClass.
DecodeInputPaymentCredentials implements binary de-serialization for InputPaymentCredentialsClass.
DecodeInputPeer implements binary de-serialization for InputPeerClass.
DecodeInputPhoto implements binary de-serialization for InputPhotoClass.
DecodeInputPrivacyKey implements binary de-serialization for InputPrivacyKeyClass.
DecodeInputPrivacyRule implements binary de-serialization for InputPrivacyRuleClass.
DecodeInputReplyTo implements binary de-serialization for InputReplyToClass.
DecodeInputSecureFile implements binary de-serialization for InputSecureFileClass.
DecodeInputStickeredMedia implements binary de-serialization for InputStickeredMediaClass.
DecodeInputStickerSet implements binary de-serialization for InputStickerSetClass.
DecodeInputStorePaymentPurpose implements binary de-serialization for InputStorePaymentPurposeClass.
DecodeInputTheme implements binary de-serialization for InputThemeClass.
DecodeInputUser implements binary de-serialization for InputUserClass.
DecodeInputWallPaper implements binary de-serialization for InputWallPaperClass.
DecodeInputWebFileLocation implements binary de-serialization for InputWebFileLocationClass.
DecodeIPPort implements binary de-serialization for IPPortClass.
DecodeJSONValue implements binary de-serialization for JSONValueClass.
DecodeKeyboardButton implements binary de-serialization for KeyboardButtonClass.
DecodeLangPackString implements binary de-serialization for LangPackStringClass.
DecodeMediaArea implements binary de-serialization for MediaAreaClass.
DecodeMessage implements binary de-serialization for MessageClass.
DecodeMessageAction implements binary de-serialization for MessageActionClass.
DecodeMessageEntity implements binary de-serialization for MessageEntityClass.
DecodeMessageExtendedMedia implements binary de-serialization for MessageExtendedMediaClass.
DecodeMessageMedia implements binary de-serialization for MessageMediaClass.
DecodeMessagePeerVote implements binary de-serialization for MessagePeerVoteClass.
DecodeMessageReplyHeader implements binary de-serialization for MessageReplyHeaderClass.
DecodeMessagesAllStickers implements binary de-serialization for MessagesAllStickersClass.
DecodeMessagesAvailableReactions implements binary de-serialization for MessagesAvailableReactionsClass.
DecodeMessagesChats implements binary de-serialization for MessagesChatsClass.
DecodeMessagesDhConfig implements binary de-serialization for MessagesDhConfigClass.
DecodeMessagesDialogs implements binary de-serialization for MessagesDialogsClass.
DecodeMessagesEmojiGroups implements binary de-serialization for MessagesEmojiGroupsClass.
DecodeMessagesExportedChatInvite implements binary de-serialization for MessagesExportedChatInviteClass.
DecodeMessagesFavedStickers implements binary de-serialization for MessagesFavedStickersClass.
DecodeMessagesFeaturedStickers implements binary de-serialization for MessagesFeaturedStickersClass.
DecodeMessagesFilter implements binary de-serialization for MessagesFilterClass.
DecodeMessagesFoundStickerSets implements binary de-serialization for MessagesFoundStickerSetsClass.
DecodeMessagesMessages implements binary de-serialization for MessagesMessagesClass.
DecodeMessagesReactions implements binary de-serialization for MessagesReactionsClass.
DecodeMessagesRecentStickers implements binary de-serialization for MessagesRecentStickersClass.
DecodeMessagesSavedGifs implements binary de-serialization for MessagesSavedGifsClass.
DecodeMessagesSentEncryptedMessage implements binary de-serialization for MessagesSentEncryptedMessageClass.
DecodeMessagesSponsoredMessages implements binary de-serialization for MessagesSponsoredMessagesClass.
DecodeMessagesStickers implements binary de-serialization for MessagesStickersClass.
DecodeMessagesStickerSet implements binary de-serialization for MessagesStickerSetClass.
DecodeMessagesStickerSetInstallResult implements binary de-serialization for MessagesStickerSetInstallResultClass.
DecodeNotificationSound implements binary de-serialization for NotificationSoundClass.
DecodeNotifyPeer implements binary de-serialization for NotifyPeerClass.
DecodePageBlock implements binary de-serialization for PageBlockClass.
DecodePageListItem implements binary de-serialization for PageListItemClass.
DecodePageListOrderedItem implements binary de-serialization for PageListOrderedItemClass.
DecodePasswordKdfAlgo implements binary de-serialization for PasswordKdfAlgoClass.
DecodePaymentsGiveawayInfo implements binary de-serialization for PaymentsGiveawayInfoClass.
DecodePaymentsPaymentResult implements binary de-serialization for PaymentsPaymentResultClass.
DecodePeer implements binary de-serialization for PeerClass.
DecodePeerLocated implements binary de-serialization for PeerLocatedClass.
DecodePhoneCall implements binary de-serialization for PhoneCallClass.
DecodePhoneCallDiscardReason implements binary de-serialization for PhoneCallDiscardReasonClass.
DecodePhoneConnection implements binary de-serialization for PhoneConnectionClass.
DecodePhoto implements binary de-serialization for PhotoClass.
DecodePhotoSize implements binary de-serialization for PhotoSizeClass.
DecodePhotosPhotos implements binary de-serialization for PhotosPhotosClass.
DecodePostInteractionCounters implements binary de-serialization for PostInteractionCountersClass.
DecodePrivacyKey implements binary de-serialization for PrivacyKeyClass.
DecodePrivacyRule implements binary de-serialization for PrivacyRuleClass.
DecodePublicForward implements binary de-serialization for PublicForwardClass.
DecodeReaction implements binary de-serialization for ReactionClass.
DecodeRecentMeURL implements binary de-serialization for RecentMeURLClass.
DecodeReplyMarkup implements binary de-serialization for ReplyMarkupClass.
DecodeReportReason implements binary de-serialization for ReportReasonClass.
DecodeRequestPeerType implements binary de-serialization for RequestPeerTypeClass.
DecodeRichText implements binary de-serialization for RichTextClass.
DecodeSecureFile implements binary de-serialization for SecureFileClass.
DecodeSecurePasswordKdfAlgo implements binary de-serialization for SecurePasswordKdfAlgoClass.
DecodeSecurePlainData implements binary de-serialization for SecurePlainDataClass.
DecodeSecureRequiredType implements binary de-serialization for SecureRequiredTypeClass.
DecodeSecureValueError implements binary de-serialization for SecureValueErrorClass.
DecodeSecureValueType implements binary de-serialization for SecureValueTypeClass.
DecodeSendMessageAction implements binary de-serialization for SendMessageActionClass.
DecodeStatsGraph implements binary de-serialization for StatsGraphClass.
DecodeStickerSetCovered implements binary de-serialization for StickerSetCoveredClass.
DecodeStorageFileType implements binary de-serialization for StorageFileTypeClass.
DecodeStoriesAllStories implements binary de-serialization for StoriesAllStoriesClass.
DecodeStoryItem implements binary de-serialization for StoryItemClass.
DecodeStoryReaction implements binary de-serialization for StoryReactionClass.
DecodeStoryView implements binary de-serialization for StoryViewClass.
DecodeTopPeerCategory implements binary de-serialization for TopPeerCategoryClass.
DecodeUpdate implements binary de-serialization for UpdateClass.
DecodeUpdates implements binary de-serialization for UpdatesClass.
DecodeUpdatesChannelDifference implements binary de-serialization for UpdatesChannelDifferenceClass.
DecodeUpdatesDifference implements binary de-serialization for UpdatesDifferenceClass.
DecodeUploadCDNFile implements binary de-serialization for UploadCDNFileClass.
DecodeUploadFile implements binary de-serialization for UploadFileClass.
DecodeURLAuthResult implements binary de-serialization for URLAuthResultClass.
DecodeUser implements binary de-serialization for UserClass.
DecodeUserProfilePhoto implements binary de-serialization for UserProfilePhotoClass.
DecodeUserStatus implements binary de-serialization for UserStatusClass.
DecodeVideoSize implements binary de-serialization for VideoSizeClass.
DecodeWallPaper implements binary de-serialization for WallPaperClass.
DecodeWebDocument implements binary de-serialization for WebDocumentClass.
DecodeWebPage implements binary de-serialization for WebPageClass.
DecodeWebPageAttribute implements binary de-serialization for WebPageAttributeClass.
Is2FAConfirmWait reports whether err is 2FA_CONFIRM_WAIT.
IsAboutTooLong reports whether err is ABOUT_TOO_LONG.
IsAccessTokenExpired reports whether err is ACCESS_TOKEN_EXPIRED.
IsAccessTokenInvalid reports whether err is ACCESS_TOKEN_INVALID.
IsAddressInvalid reports whether err is ADDRESS_INVALID.
IsAdminIDInvalid reports whether err is ADMIN_ID_INVALID.
IsAdminRankEmojiNotAllowed reports whether err is ADMIN_RANK_EMOJI_NOT_ALLOWED.
IsAdminRankInvalid reports whether err is ADMIN_RANK_INVALID.
IsAdminRightsEmpty reports whether err is ADMIN_RIGHTS_EMPTY.
IsAdminsTooMuch reports whether err is ADMINS_TOO_MUCH.
IsAlbumPhotosTooMany reports whether err is ALBUM_PHOTOS_TOO_MANY.
IsAnonymousReactionsDisabled reports whether err is ANONYMOUS_REACTIONS_DISABLED.
IsAPIIDInvalid reports whether err is API_ID_INVALID.
IsAPIIDPublishedFlood reports whether err is API_ID_PUBLISHED_FLOOD.
IsArticleTitleEmpty reports whether err is ARTICLE_TITLE_EMPTY.
IsAudioContentURLEmpty reports whether err is AUDIO_CONTENT_URL_EMPTY.
IsAudioTitleEmpty reports whether err is AUDIO_TITLE_EMPTY.
IsAuthBytesInvalid reports whether err is AUTH_BYTES_INVALID.
IsAuthRestart reports whether err is AUTH_RESTART.
IsAuthTokenAlreadyAccepted reports whether err is AUTH_TOKEN_ALREADY_ACCEPTED.
IsAuthTokenException reports whether err is AUTH_TOKEN_EXCEPTION.
IsAuthTokenExpired reports whether err is AUTH_TOKEN_EXPIRED.
IsAuthTokenInvalid reports whether err is AUTH_TOKEN_INVALID.
IsAuthTokenInvalidx reports whether err is AUTH_TOKEN_INVALIDX.
IsAutoarchiveNotAvailable reports whether err is AUTOARCHIVE_NOT_AVAILABLE.
IsBankCardNumberInvalid reports whether err is BANK_CARD_NUMBER_INVALID.
IsBannedRightsInvalid reports whether err is BANNED_RIGHTS_INVALID.
IsBoostPeerInvalid reports whether err is BOOST_PEER_INVALID.
IsBoostsEmpty reports whether err is BOOSTS_EMPTY.
IsBoostsRequired reports whether err is BOOSTS_REQUIRED.
IsBotAppInvalid reports whether err is BOT_APP_INVALID.
IsBotChannelsNa reports whether err is BOT_CHANNELS_NA.
IsBotCommandDescriptionInvalid reports whether err is BOT_COMMAND_DESCRIPTION_INVALID.
IsBotCommandInvalid reports whether err is BOT_COMMAND_INVALID.
IsBotDomainInvalid reports whether err is BOT_DOMAIN_INVALID.
IsBotGroupsBlocked reports whether err is BOT_GROUPS_BLOCKED.
IsBotInlineDisabled reports whether err is BOT_INLINE_DISABLED.
IsBotInvalid reports whether err is BOT_INVALID.
IsBotMissing reports whether err is BOT_MISSING.
IsBotOnesideNotAvail reports whether err is BOT_ONESIDE_NOT_AVAIL.
IsBotPaymentsDisabled reports whether err is BOT_PAYMENTS_DISABLED.
IsBotResponseTimeout reports whether err is BOT_RESPONSE_TIMEOUT.
IsBotScoreNotModified reports whether err is BOT_SCORE_NOT_MODIFIED.
IsBotsTooMuch reports whether err is BOTS_TOO_MUCH.
IsBroadcastForbidden reports whether err is BROADCAST_FORBIDDEN.
IsBroadcastIDInvalid reports whether err is BROADCAST_ID_INVALID.
IsBroadcastPublicVotersForbidden reports whether err is BROADCAST_PUBLIC_VOTERS_FORBIDDEN.
IsBroadcastRequired reports whether err is BROADCAST_REQUIRED.
IsButtonDataInvalid reports whether err is BUTTON_DATA_INVALID.
IsButtonTextInvalid reports whether err is BUTTON_TEXT_INVALID.
IsButtonTypeInvalid reports whether err is BUTTON_TYPE_INVALID.
IsButtonURLInvalid reports whether err is BUTTON_URL_INVALID.
IsButtonUserPrivacyRestricted reports whether err is BUTTON_USER_PRIVACY_RESTRICTED.
IsCallAlreadyAccepted reports whether err is CALL_ALREADY_ACCEPTED.
IsCallAlreadyDeclined reports whether err is CALL_ALREADY_DECLINED.
IsCallOccupyFailed reports whether err is CALL_OCCUPY_FAILED.
IsCallPeerInvalid reports whether err is CALL_PEER_INVALID.
IsCallProtocolCompatLayerInvalid reports whether err is CALL_PROTOCOL_COMPAT_LAYER_INVALID.
IsCallProtocolFlagsInvalid reports whether err is CALL_PROTOCOL_FLAGS_INVALID.
IsCDNMethodInvalid reports whether err is CDN_METHOD_INVALID.
IsCDNUploadTimeout reports whether err is CDN_UPLOAD_TIMEOUT.
IsChannelForumMissing reports whether err is CHANNEL_FORUM_MISSING.
IsChannelIDInvalid reports whether err is CHANNEL_ID_INVALID.
IsChannelInvalid reports whether err is CHANNEL_INVALID.
IsChannelParicipantMissing reports whether err is CHANNEL_PARICIPANT_MISSING.
IsChannelPrivate reports whether err is CHANNEL_PRIVATE.
func IsChannelPtsUpdate(u UpdateClass) (channelID int64, pts, ptsCount int, ok bool, err error)
IsChannelPublicGroupNa reports whether err is CHANNEL_PUBLIC_GROUP_NA.
IsChannelsAdminLocatedTooMuch reports whether err is CHANNELS_ADMIN_LOCATED_TOO_MUCH.
IsChannelsAdminPublicTooMuch reports whether err is CHANNELS_ADMIN_PUBLIC_TOO_MUCH.
IsChannelsTooMuch reports whether err is CHANNELS_TOO_MUCH.
IsChannelTooBig reports whether err is CHANNEL_TOO_BIG.
IsChannelTooLarge reports whether err is CHANNEL_TOO_LARGE.
IsChatAboutNotModified reports whether err is CHAT_ABOUT_NOT_MODIFIED.
IsChatAboutTooLong reports whether err is CHAT_ABOUT_TOO_LONG.
IsChatAdminInviteRequired reports whether err is CHAT_ADMIN_INVITE_REQUIRED.
IsChatAdminRequired reports whether err is CHAT_ADMIN_REQUIRED.
IsChatDiscussionUnallowed reports whether err is CHAT_DISCUSSION_UNALLOWED.
IsChatForwardsRestricted reports whether err is CHAT_FORWARDS_RESTRICTED.
IsChatGuestSendForbidden reports whether err is CHAT_GUEST_SEND_FORBIDDEN.
IsChatIDEmpty reports whether err is CHAT_ID_EMPTY.
IsChatIDGenerateFailed reports whether err is CHAT_ID_GENERATE_FAILED.
IsChatIDInvalid reports whether err is CHAT_ID_INVALID.
IsChatInvalid reports whether err is CHAT_INVALID.
IsChatInvitePermanent reports whether err is CHAT_INVITE_PERMANENT.
IsChatLinkExists reports whether err is CHAT_LINK_EXISTS.
IsChatlistExcludeInvalid reports whether err is CHATLIST_EXCLUDE_INVALID.
IsChatNotModified reports whether err is CHAT_NOT_MODIFIED.
IsChatPublicRequired reports whether err is CHAT_PUBLIC_REQUIRED.
IsChatRestricted reports whether err is CHAT_RESTRICTED.
IsChatRevokeDateUnsupported reports whether err is CHAT_REVOKE_DATE_UNSUPPORTED.
IsChatSendAudiosForbidden reports whether err is CHAT_SEND_AUDIOS_FORBIDDEN.
IsChatSendDocsForbidden reports whether err is CHAT_SEND_DOCS_FORBIDDEN.
IsChatSendGameForbidden reports whether err is CHAT_SEND_GAME_FORBIDDEN.
IsChatSendGifsForbidden reports whether err is CHAT_SEND_GIFS_FORBIDDEN.
IsChatSendInlineForbidden reports whether err is CHAT_SEND_INLINE_FORBIDDEN.
IsChatSendMediaForbidden reports whether err is CHAT_SEND_MEDIA_FORBIDDEN.
IsChatSendPhotosForbidden reports whether err is CHAT_SEND_PHOTOS_FORBIDDEN.
IsChatSendPlainForbidden reports whether err is CHAT_SEND_PLAIN_FORBIDDEN.
IsChatSendPollForbidden reports whether err is CHAT_SEND_POLL_FORBIDDEN.
IsChatSendStickersForbidden reports whether err is CHAT_SEND_STICKERS_FORBIDDEN.
IsChatSendVideosForbidden reports whether err is CHAT_SEND_VIDEOS_FORBIDDEN.
IsChatSendVoicesForbidden reports whether err is CHAT_SEND_VOICES_FORBIDDEN.
IsChatTitleEmpty reports whether err is CHAT_TITLE_EMPTY.
IsChatTooBig reports whether err is CHAT_TOO_BIG.
IsChatWriteForbidden reports whether err is CHAT_WRITE_FORBIDDEN.
IsCodeEmpty reports whether err is CODE_EMPTY.
IsCodeHashInvalid reports whether err is CODE_HASH_INVALID.
IsCodeInvalid reports whether err is CODE_INVALID.
IsColorInvalid reports whether err is COLOR_INVALID.
IsConnectionAPIIDInvalid reports whether err is CONNECTION_API_ID_INVALID.
IsConnectionAppVersionEmpty reports whether err is CONNECTION_APP_VERSION_EMPTY.
IsConnectionLayerInvalid reports whether err is CONNECTION_LAYER_INVALID.
IsContactAddMissing reports whether err is CONTACT_ADD_MISSING.
IsContactIDInvalid reports whether err is CONTACT_ID_INVALID.
IsContactNameEmpty reports whether err is CONTACT_NAME_EMPTY.
IsContactReqMissing reports whether err is CONTACT_REQ_MISSING.
IsCreateCallFailed reports whether err is CREATE_CALL_FAILED.
IsCurrencyTotalAmountInvalid reports whether err is CURRENCY_TOTAL_AMOUNT_INVALID.
IsCustomReactionsTooMany reports whether err is CUSTOM_REACTIONS_TOO_MANY.
IsDataInvalid reports whether err is DATA_INVALID.
IsDataJSONInvalid reports whether err is DATA_JSON_INVALID.
IsDataTooLong reports whether err is DATA_TOO_LONG.
IsDateEmpty reports whether err is DATE_EMPTY.
IsDCIDInvalid reports whether err is DC_ID_INVALID.
IsDhGAInvalid reports whether err is DH_G_A_INVALID.
IsDocumentInvalid reports whether err is DOCUMENT_INVALID.
IsEditBotInviteForbidden reports whether err is EDIT_BOT_INVITE_FORBIDDEN.
IsEmailHashExpired reports whether err is EMAIL_HASH_EXPIRED.
IsEmailInvalid reports whether err is EMAIL_INVALID.
IsEmailNotSetup reports whether err is EMAIL_NOT_SETUP.
IsEmailUnconfirmed reports whether err is EMAIL_UNCONFIRMED.
IsEmailVerifyExpired reports whether err is EMAIL_VERIFY_EXPIRED.
IsEmojiInvalid reports whether err is EMOJI_INVALID.
IsEmojiMarkupInvalid reports whether err is EMOJI_MARKUP_INVALID.
IsEmojiNotModified reports whether err is EMOJI_NOT_MODIFIED.
IsEmoticonEmpty reports whether err is EMOTICON_EMPTY.
IsEmoticonInvalid reports whether err is EMOTICON_INVALID.
IsEmoticonStickerpackMissing reports whether err is EMOTICON_STICKERPACK_MISSING.
IsEncryptedMessageInvalid reports whether err is ENCRYPTED_MESSAGE_INVALID.
IsEncryptionAlreadyAccepted reports whether err is ENCRYPTION_ALREADY_ACCEPTED.
IsEncryptionAlreadyDeclined reports whether err is ENCRYPTION_ALREADY_DECLINED.
IsEncryptionDeclined reports whether err is ENCRYPTION_DECLINED.
IsEncryptionIDInvalid reports whether err is ENCRYPTION_ID_INVALID.
IsEntitiesTooLong reports whether err is ENTITIES_TOO_LONG.
IsEntityBoundsInvalid reports whether err is ENTITY_BOUNDS_INVALID.
IsEntityMentionUserInvalid reports whether err is ENTITY_MENTION_USER_INVALID.
IsErrorTextEmpty reports whether err is ERROR_TEXT_EMPTY.
IsExpireDateInvalid reports whether err is EXPIRE_DATE_INVALID.
IsExternalURLInvalid reports whether err is EXTERNAL_URL_INVALID.
IsFileContentTypeInvalid reports whether err is FILE_CONTENT_TYPE_INVALID.
IsFileEmtpy reports whether err is FILE_EMTPY.
IsFileIDInvalid reports whether err is FILE_ID_INVALID.
IsFilePartEmpty reports whether err is FILE_PART_EMPTY.
IsFilePartInvalid reports whether err is FILE_PART_INVALID.
IsFilePartLengthInvalid reports whether err is FILE_PART_LENGTH_INVALID.
IsFilePartsInvalid reports whether err is FILE_PARTS_INVALID.
IsFilePartSizeChanged reports whether err is FILE_PART_SIZE_CHANGED.
IsFilePartSizeInvalid reports whether err is FILE_PART_SIZE_INVALID.
IsFilePartTooBig reports whether err is FILE_PART_TOO_BIG.
IsFileReference reports whether err is FILE_REFERENCE.
IsFileReferenceEmpty reports whether err is FILE_REFERENCE_EMPTY.
IsFileReferenceExpired reports whether err is FILE_REFERENCE_EXPIRED.
IsFileReferenceInvalid reports whether err is FILE_REFERENCE_INVALID.
IsFilerefUpgradeNeeded reports whether err is FILEREF_UPGRADE_NEEDED.
IsFileTitleEmpty reports whether err is FILE_TITLE_EMPTY.
IsFileTokenInvalid reports whether err is FILE_TOKEN_INVALID.
IsFilterIDInvalid reports whether err is FILTER_ID_INVALID.
IsFilterIncludeEmpty reports whether err is FILTER_INCLUDE_EMPTY.
IsFilterNotSupported reports whether err is FILTER_NOT_SUPPORTED.
IsFilterTitleEmpty reports whether err is FILTER_TITLE_EMPTY.
IsFirstnameInvalid reports whether err is FIRSTNAME_INVALID.
IsFolderIDInvalid reports whether err is FOLDER_ID_INVALID.
IsForumEnabled reports whether err is FORUM_ENABLED.
IsFreshChangeAdminsForbidden reports whether err is FRESH_CHANGE_ADMINS_FORBIDDEN.
IsFreshChangePhoneForbidden reports whether err is FRESH_CHANGE_PHONE_FORBIDDEN.
IsFreshResetAuthorisationForbidden reports whether err is FRESH_RESET_AUTHORISATION_FORBIDDEN.
IsFromMessageBotDisabled reports whether err is FROM_MESSAGE_BOT_DISABLED.
IsFromPeerInvalid reports whether err is FROM_PEER_INVALID.
IsGameBotInvalid reports whether err is GAME_BOT_INVALID.
IsGeneralModifyIconForbidden reports whether err is GENERAL_MODIFY_ICON_FORBIDDEN.
IsGeoPointInvalid reports whether err is GEO_POINT_INVALID.
IsGifContentTypeInvalid reports whether err is GIF_CONTENT_TYPE_INVALID.
IsGifIDInvalid reports whether err is GIF_ID_INVALID.
IsGiftcodeNotAllowed reports whether err is GIFTCODE_NOT_ALLOWED.
IsGiftSlugInvalid reports whether err is GIFT_SLUG_INVALID.
IsGraphExpiredReload reports whether err is GRAPH_EXPIRED_RELOAD.
IsGraphInvalidReload reports whether err is GRAPH_INVALID_RELOAD.
IsGraphOutdatedReload reports whether err is GRAPH_OUTDATED_RELOAD.
IsGroupcallAddParticipantsFailed reports whether err is GROUPCALL_ADD_PARTICIPANTS_FAILED.
IsGroupcallAlreadyDiscarded reports whether err is GROUPCALL_ALREADY_DISCARDED.
IsGroupcallAlreadyStarted reports whether err is GROUPCALL_ALREADY_STARTED.
IsGroupcallForbidden reports whether err is GROUPCALL_FORBIDDEN.
IsGroupcallInvalid reports whether err is GROUPCALL_INVALID.
IsGroupcallJoinMissing reports whether err is GROUPCALL_JOIN_MISSING.
IsGroupcallNotModified reports whether err is GROUPCALL_NOT_MODIFIED.
IsGroupcallSsrcDuplicateMuch reports whether err is GROUPCALL_SSRC_DUPLICATE_MUCH.
IsGroupedMediaInvalid reports whether err is GROUPED_MEDIA_INVALID.
IsHashInvalid reports whether err is HASH_INVALID.
IsHideRequesterMissing reports whether err is HIDE_REQUESTER_MISSING.
IsImageProcessFailed reports whether err is IMAGE_PROCESS_FAILED.
IsImportFileInvalid reports whether err is IMPORT_FILE_INVALID.
IsImportFormatUnrecognized reports whether err is IMPORT_FORMAT_UNRECOGNIZED.
IsImportIDInvalid reports whether err is IMPORT_ID_INVALID.
IsImportTokenInvalid reports whether err is IMPORT_TOKEN_INVALID.
IsInlineBotRequired reports whether err is INLINE_BOT_REQUIRED.
IsInlineResultExpired reports whether err is INLINE_RESULT_EXPIRED.
IsInputChatlistInvalid reports whether err is INPUT_CHATLIST_INVALID.
IsInputFilterInvalid reports whether err is INPUT_FILTER_INVALID.
IsInputTextEmpty reports whether err is INPUT_TEXT_EMPTY.
IsInputUserDeactivated reports whether err is INPUT_USER_DEACTIVATED.
IsInviteForbiddenWithJoinas reports whether err is INVITE_FORBIDDEN_WITH_JOINAS.
IsInviteHashEmpty reports whether err is INVITE_HASH_EMPTY.
IsInviteHashExpired reports whether err is INVITE_HASH_EXPIRED.
IsInviteHashInvalid reports whether err is INVITE_HASH_INVALID.
IsInviteRequestSent reports whether err is INVITE_REQUEST_SENT.
IsInviteRevokedMissing reports whether err is INVITE_REVOKED_MISSING.
IsInviteSlugEmpty reports whether err is INVITE_SLUG_EMPTY.
IsInviteSlugExpired reports whether err is INVITE_SLUG_EXPIRED.
IsInvitesTooMuch reports whether err is INVITES_TOO_MUCH.
IsInvoicePayloadInvalid reports whether err is INVOICE_PAYLOAD_INVALID.
IsJoinAsPeerInvalid reports whether err is JOIN_AS_PEER_INVALID.
IsLangCodeInvalid reports whether err is LANG_CODE_INVALID.
IsLangCodeNotSupported reports whether err is LANG_CODE_NOT_SUPPORTED.
IsLangPackInvalid reports whether err is LANG_PACK_INVALID.
IsLastnameInvalid reports whether err is LASTNAME_INVALID.
IsLimitInvalid reports whether err is LIMIT_INVALID.
IsLinkNotModified reports whether err is LINK_NOT_MODIFIED.
IsLocationInvalid reports whether err is LOCATION_INVALID.
IsMaxDateInvalid reports whether err is MAX_DATE_INVALID.
IsMaxIDInvalid reports whether err is MAX_ID_INVALID.
IsMaxQtsInvalid reports whether err is MAX_QTS_INVALID.
IsMD5ChecksumInvalid reports whether err is MD5_CHECKSUM_INVALID.
IsMediaCaptionTooLong reports whether err is MEDIA_CAPTION_TOO_LONG.
IsMediaEmpty reports whether err is MEDIA_EMPTY.
IsMediaFileInvalid reports whether err is MEDIA_FILE_INVALID.
IsMediaGroupedInvalid reports whether err is MEDIA_GROUPED_INVALID.
IsMediaInvalid reports whether err is MEDIA_INVALID.
IsMediaNewInvalid reports whether err is MEDIA_NEW_INVALID.
IsMediaPrevInvalid reports whether err is MEDIA_PREV_INVALID.
IsMediaTTLInvalid reports whether err is MEDIA_TTL_INVALID.
IsMediaTypeInvalid reports whether err is MEDIA_TYPE_INVALID.
IsMediaVideoStoryMissing reports whether err is MEDIA_VIDEO_STORY_MISSING.
IsMegagroupGeoRequired reports whether err is MEGAGROUP_GEO_REQUIRED.
IsMegagroupIDInvalid reports whether err is MEGAGROUP_ID_INVALID.
IsMegagroupPrehistoryHidden reports whether err is MEGAGROUP_PREHISTORY_HIDDEN.
IsMegagroupRequired reports whether err is MEGAGROUP_REQUIRED.
IsMemberNotFound reports whether err is MEMBER_NOT_FOUND.
IsMessageAuthorRequired reports whether err is MESSAGE_AUTHOR_REQUIRED.
IsMessageDeleteForbidden reports whether err is MESSAGE_DELETE_FORBIDDEN.
IsMessageEditTimeExpired reports whether err is MESSAGE_EDIT_TIME_EXPIRED.
IsMessageEmpty reports whether err is MESSAGE_EMPTY.
IsMessageIDInvalid reports whether err is MESSAGE_ID_INVALID.
IsMessageIDsEmpty reports whether err is MESSAGE_IDS_EMPTY.
IsMessageNotModified reports whether err is MESSAGE_NOT_MODIFIED.
IsMessagePollClosed reports whether err is MESSAGE_POLL_CLOSED.
IsMessageTooLong reports whether err is MESSAGE_TOO_LONG.
IsMethodInvalid reports whether err is METHOD_INVALID.
IsMinDateInvalid reports whether err is MIN_DATE_INVALID.
IsMsgIDInvalid reports whether err is MSG_ID_INVALID.
IsMsgTooOld reports whether err is MSG_TOO_OLD.
IsMsgWaitFailed reports whether err is MSG_WAIT_FAILED.
IsMultiMediaTooLong reports whether err is MULTI_MEDIA_TOO_LONG.
IsNewSaltInvalid reports whether err is NEW_SALT_INVALID.
IsNewSettingsEmpty reports whether err is NEW_SETTINGS_EMPTY.
IsNewSettingsInvalid reports whether err is NEW_SETTINGS_INVALID.
IsNextOffsetInvalid reports whether err is NEXT_OFFSET_INVALID.
IsOffsetInvalid reports whether err is OFFSET_INVALID.
IsOffsetPeerIDInvalid reports whether err is OFFSET_PEER_ID_INVALID.
IsOptionInvalid reports whether err is OPTION_INVALID.
IsOptionsTooMuch reports whether err is OPTIONS_TOO_MUCH.
IsOrderInvalid reports whether err is ORDER_INVALID.
IsPackShortNameInvalid reports whether err is PACK_SHORT_NAME_INVALID.
IsPackShortNameOccupied reports whether err is PACK_SHORT_NAME_OCCUPIED.
IsPackTitleInvalid reports whether err is PACK_TITLE_INVALID.
IsParticipantIDInvalid reports whether err is PARTICIPANT_ID_INVALID.
IsParticipantJoinMissing reports whether err is PARTICIPANT_JOIN_MISSING.
IsParticipantsTooFew reports whether err is PARTICIPANTS_TOO_FEW.
IsParticipantVersionOutdated reports whether err is PARTICIPANT_VERSION_OUTDATED.
IsPasswordEmpty reports whether err is PASSWORD_EMPTY.
IsPasswordHashInvalid reports whether err is PASSWORD_HASH_INVALID.
IsPasswordMissing reports whether err is PASSWORD_MISSING.
IsPasswordRecoveryExpired reports whether err is PASSWORD_RECOVERY_EXPIRED.
IsPasswordRecoveryNa reports whether err is PASSWORD_RECOVERY_NA.
IsPasswordRequired reports whether err is PASSWORD_REQUIRED.
IsPasswordTooFresh reports whether err is PASSWORD_TOO_FRESH.
IsPaymentProviderInvalid reports whether err is PAYMENT_PROVIDER_INVALID.
IsPaymentUnsupported reports whether err is PAYMENT_UNSUPPORTED.
IsPeerHistoryEmpty reports whether err is PEER_HISTORY_EMPTY.
IsPeerIDInvalid reports whether err is PEER_ID_INVALID.
IsPeerIDNotSupported reports whether err is PEER_ID_NOT_SUPPORTED.
IsPeersListEmpty reports whether err is PEERS_LIST_EMPTY.
IsPersistentTimestampEmpty reports whether err is PERSISTENT_TIMESTAMP_EMPTY.
IsPersistentTimestampInvalid reports whether err is PERSISTENT_TIMESTAMP_INVALID.
IsPersistentTimestampOutdated reports whether err is PERSISTENT_TIMESTAMP_OUTDATED.
IsPhoneCodeEmpty reports whether err is PHONE_CODE_EMPTY.
IsPhoneCodeExpired reports whether err is PHONE_CODE_EXPIRED.
IsPhoneCodeHashEmpty reports whether err is PHONE_CODE_HASH_EMPTY.
IsPhoneCodeInvalid reports whether err is PHONE_CODE_INVALID.
IsPhoneHashExpired reports whether err is PHONE_HASH_EXPIRED.
IsPhoneNotOccupied reports whether err is PHONE_NOT_OCCUPIED.
IsPhoneNumberAppSignupForbidden reports whether err is PHONE_NUMBER_APP_SIGNUP_FORBIDDEN.
IsPhoneNumberBanned reports whether err is PHONE_NUMBER_BANNED.
IsPhoneNumberFlood reports whether err is PHONE_NUMBER_FLOOD.
IsPhoneNumberInvalid reports whether err is PHONE_NUMBER_INVALID.
IsPhoneNumberOccupied reports whether err is PHONE_NUMBER_OCCUPIED.
IsPhoneNumberUnoccupied reports whether err is PHONE_NUMBER_UNOCCUPIED.
IsPhonePasswordFlood reports whether err is PHONE_PASSWORD_FLOOD.
IsPhonePasswordProtected reports whether err is PHONE_PASSWORD_PROTECTED.
IsPhotoContentTypeInvalid reports whether err is PHOTO_CONTENT_TYPE_INVALID.
IsPhotoContentURLEmpty reports whether err is PHOTO_CONTENT_URL_EMPTY.
IsPhotoCropFileMissing reports whether err is PHOTO_CROP_FILE_MISSING.
IsPhotoCropSizeSmall reports whether err is PHOTO_CROP_SIZE_SMALL.
IsPhotoExtInvalid reports whether err is PHOTO_EXT_INVALID.
IsPhotoFileMissing reports whether err is PHOTO_FILE_MISSING.
IsPhotoIDInvalid reports whether err is PHOTO_ID_INVALID.
IsPhotoInvalid reports whether err is PHOTO_INVALID.
IsPhotoInvalidDimensions reports whether err is PHOTO_INVALID_DIMENSIONS.
IsPhotoSaveFileInvalid reports whether err is PHOTO_SAVE_FILE_INVALID.
IsPhotoThumbURLEmpty reports whether err is PHOTO_THUMB_URL_EMPTY.
IsPinnedDialogsTooMuch reports whether err is PINNED_DIALOGS_TOO_MUCH.
IsPinRestricted reports whether err is PIN_RESTRICTED.
IsPollAnswerInvalid reports whether err is POLL_ANSWER_INVALID.
IsPollAnswersInvalid reports whether err is POLL_ANSWERS_INVALID.
IsPollOptionDuplicate reports whether err is POLL_OPTION_DUPLICATE.
IsPollOptionInvalid reports whether err is POLL_OPTION_INVALID.
IsPollQuestionInvalid reports whether err is POLL_QUESTION_INVALID.
IsPollVoteRequired reports whether err is POLL_VOTE_REQUIRED.
IsPremiumAccountRequired reports whether err is PREMIUM_ACCOUNT_REQUIRED.
IsPreviousChatImportActiveWaitMin reports whether err is PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_MIN.
IsPrivacyKeyInvalid reports whether err is PRIVACY_KEY_INVALID.
IsPrivacyTooLong reports whether err is PRIVACY_TOO_LONG.
IsPrivacyValueInvalid reports whether err is PRIVACY_VALUE_INVALID.
func IsPtsUpdate(u UpdateClass) (pts, ptsCount int, ok bool)
IsPublicChannelMissing reports whether err is PUBLIC_CHANNEL_MISSING.
IsPublicKeyRequired reports whether err is PUBLIC_KEY_REQUIRED.
IsQueryIDEmpty reports whether err is QUERY_ID_EMPTY.
IsQueryIDInvalid reports whether err is QUERY_ID_INVALID.
IsQueryTooShort reports whether err is QUERY_TOO_SHORT.
IsQuizAnswerMissing reports whether err is QUIZ_ANSWER_MISSING.
IsQuizCorrectAnswerInvalid reports whether err is QUIZ_CORRECT_ANSWER_INVALID.
IsQuizCorrectAnswersEmpty reports whether err is QUIZ_CORRECT_ANSWERS_EMPTY.
IsQuizCorrectAnswersTooMuch reports whether err is QUIZ_CORRECT_ANSWERS_TOO_MUCH.
IsQuizMultipleInvalid reports whether err is QUIZ_MULTIPLE_INVALID.
IsRandomIDDuplicate reports whether err is RANDOM_ID_DUPLICATE.
IsRandomIDEmpty reports whether err is RANDOM_ID_EMPTY.
IsRandomIDInvalid reports whether err is RANDOM_ID_INVALID.
IsRandomLengthInvalid reports whether err is RANDOM_LENGTH_INVALID.
IsRangesInvalid reports whether err is RANGES_INVALID.
IsReactionEmpty reports whether err is REACTION_EMPTY.
IsReactionInvalid reports whether err is REACTION_INVALID.
IsReactionsTooMany reports whether err is REACTIONS_TOO_MANY.
IsReplyMarkupBuyEmpty reports whether err is REPLY_MARKUP_BUY_EMPTY.
IsReplyMarkupInvalid reports whether err is REPLY_MARKUP_INVALID.
IsReplyMarkupTooLong reports whether err is REPLY_MARKUP_TOO_LONG.
IsReplyToInvalid reports whether err is REPLY_TO_INVALID.
IsReplyToUserInvalid reports whether err is REPLY_TO_USER_INVALID.
IsResetRequestMissing reports whether err is RESET_REQUEST_MISSING.
IsResultIDDuplicate reports whether err is RESULT_ID_DUPLICATE.
IsResultIDEmpty reports whether err is RESULT_ID_EMPTY.
IsResultIDInvalid reports whether err is RESULT_ID_INVALID.
IsResultsTooMuch reports whether err is RESULTS_TOO_MUCH.
IsResultTypeInvalid reports whether err is RESULT_TYPE_INVALID.
IsRevoteNotAllowed reports whether err is REVOTE_NOT_ALLOWED.
IsRightForbidden reports whether err is RIGHT_FORBIDDEN.
IsRightsNotModified reports whether err is RIGHTS_NOT_MODIFIED.
IsRsaDecryptFailed reports whether err is RSA_DECRYPT_FAILED.
IsScheduleBotNotAllowed reports whether err is SCHEDULE_BOT_NOT_ALLOWED.
IsScheduleDateInvalid reports whether err is SCHEDULE_DATE_INVALID.
IsScheduleDateTooLate reports whether err is SCHEDULE_DATE_TOO_LATE.
IsScheduleStatusPrivate reports whether err is SCHEDULE_STATUS_PRIVATE.
IsScheduleTooMuch reports whether err is SCHEDULE_TOO_MUCH.
IsScoreInvalid reports whether err is SCORE_INVALID.
IsSearchQueryEmpty reports whether err is SEARCH_QUERY_EMPTY.
IsSearchWithLinkNotSupported reports whether err is SEARCH_WITH_LINK_NOT_SUPPORTED.
IsSecondsInvalid reports whether err is SECONDS_INVALID.
IsSendAsPeerInvalid reports whether err is SEND_AS_PEER_INVALID.
IsSendCodeUnavailable reports whether err is SEND_CODE_UNAVAILABLE.
IsSendMediaInvalid reports whether err is SEND_MEDIA_INVALID.
IsSendMessageMediaInvalid reports whether err is SEND_MESSAGE_MEDIA_INVALID.
IsSendMessageTypeInvalid reports whether err is SEND_MESSAGE_TYPE_INVALID.
IsSensitiveChangeForbidden reports whether err is SENSITIVE_CHANGE_FORBIDDEN.
IsSessionTooFresh reports whether err is SESSION_TOO_FRESH.
IsSettingsInvalid reports whether err is SETTINGS_INVALID.
IsSHA256HashInvalid reports whether err is SHA256_HASH_INVALID.
IsShortNameInvalid reports whether err is SHORT_NAME_INVALID.
IsShortNameOccupied reports whether err is SHORT_NAME_OCCUPIED.
IsSignInFailed reports whether err is SIGN_IN_FAILED.
IsSlotsEmpty reports whether err is SLOTS_EMPTY.
IsSlowmodeMultiMsgsDisabled reports whether err is SLOWMODE_MULTI_MSGS_DISABLED.
IsSlowmodeWait reports whether err is SLOWMODE_WAIT.
IsSlugInvalid reports whether err is SLUG_INVALID.
IsSMSCodeCreateFailed reports whether err is SMS_CODE_CREATE_FAILED.
IsSRPIDInvalid reports whether err is SRP_ID_INVALID.
IsSRPPasswordChanged reports whether err is SRP_PASSWORD_CHANGED.
IsStartParamEmpty reports whether err is START_PARAM_EMPTY.
IsStartParamInvalid reports whether err is START_PARAM_INVALID.
IsStartParamTooLong reports whether err is START_PARAM_TOO_LONG.
IsStickerDocumentInvalid reports whether err is STICKER_DOCUMENT_INVALID.
IsStickerEmojiInvalid reports whether err is STICKER_EMOJI_INVALID.
IsStickerFileInvalid reports whether err is STICKER_FILE_INVALID.
IsStickerGifDimensions reports whether err is STICKER_GIF_DIMENSIONS.
IsStickerIDInvalid reports whether err is STICKER_ID_INVALID.
IsStickerInvalid reports whether err is STICKER_INVALID.
IsStickerMimeInvalid reports whether err is STICKER_MIME_INVALID.
IsStickerpackStickersTooMuch reports whether err is STICKERPACK_STICKERS_TOO_MUCH.
IsStickerPngDimensions reports whether err is STICKER_PNG_DIMENSIONS.
IsStickerPngNopng reports whether err is STICKER_PNG_NOPNG.
IsStickersEmpty reports whether err is STICKERS_EMPTY.
IsStickersetInvalid reports whether err is STICKERSET_INVALID.
IsStickersetOwnerAnonymous reports whether err is STICKERSET_OWNER_ANONYMOUS.
IsStickersTooMuch reports whether err is STICKERS_TOO_MUCH.
IsStickerTgsNodoc reports whether err is STICKER_TGS_NODOC.
IsStickerTgsNotgs reports whether err is STICKER_TGS_NOTGS.
IsStickerThumbPngNopng reports whether err is STICKER_THUMB_PNG_NOPNG.
IsStickerThumbTgsNotgs reports whether err is STICKER_THUMB_TGS_NOTGS.
IsStickerVideoBig reports whether err is STICKER_VIDEO_BIG.
IsStickerVideoNodoc reports whether err is STICKER_VIDEO_NODOC.
IsStickerVideoNowebm reports whether err is STICKER_VIDEO_NOWEBM.
IsStoriesNeverCreated reports whether err is STORIES_NEVER_CREATED.
IsStoriesTooMuch reports whether err is STORIES_TOO_MUCH.
IsStoryIDEmpty reports whether err is STORY_ID_EMPTY.
IsStoryIDInvalid reports whether err is STORY_ID_INVALID.
IsStoryNotModified reports whether err is STORY_NOT_MODIFIED.
IsStoryPeriodInvalid reports whether err is STORY_PERIOD_INVALID.
IsStorySendFloodMonthly reports whether err is STORY_SEND_FLOOD_MONTHLY.
IsStorySendFloodWeekly reports whether err is STORY_SEND_FLOOD_WEEKLY.
IsSwitchPmTextEmpty reports whether err is SWITCH_PM_TEXT_EMPTY.
IsTakeoutInitDelay reports whether err is TAKEOUT_INIT_DELAY.
IsTakeoutRequired reports whether err is TAKEOUT_REQUIRED.
IsTaskAlreadyExists reports whether err is TASK_ALREADY_EXISTS.
IsTempAuthKeyAlreadyBound reports whether err is TEMP_AUTH_KEY_ALREADY_BOUND.
IsTempAuthKeyEmpty reports whether err is TEMP_AUTH_KEY_EMPTY.
IsThemeFileInvalid reports whether err is THEME_FILE_INVALID.
IsThemeFormatInvalid reports whether err is THEME_FORMAT_INVALID.
IsThemeInvalid reports whether err is THEME_INVALID.
IsThemeMimeInvalid reports whether err is THEME_MIME_INVALID.
IsThemeTitleInvalid reports whether err is THEME_TITLE_INVALID.
IsTimeout reports whether err is Timeout.
IsTitleInvalid reports whether err is TITLE_INVALID.
IsTmpPasswordDisabled reports whether err is TMP_PASSWORD_DISABLED.
IsTokenEmpty reports whether err is TOKEN_EMPTY.
IsTokenInvalid reports whether err is TOKEN_INVALID.
IsTokenTypeInvalid reports whether err is TOKEN_TYPE_INVALID.
IsToLangInvalid reports whether err is TO_LANG_INVALID.
IsTopicClosed reports whether err is TOPIC_CLOSED.
IsTopicCloseSeparately reports whether err is TOPIC_CLOSE_SEPARATELY.
IsTopicDeleted reports whether err is TOPIC_DELETED.
IsTopicHideSeparately reports whether err is TOPIC_HIDE_SEPARATELY.
IsTopicIDInvalid reports whether err is TOPIC_ID_INVALID.
IsTopicNotModified reports whether err is TOPIC_NOT_MODIFIED.
IsTopicsEmpty reports whether err is TOPICS_EMPTY.
IsTopicTitleEmpty reports whether err is TOPIC_TITLE_EMPTY.
IsTranscriptionFailed reports whether err is TRANSCRIPTION_FAILED.
IsTTLDaysInvalid reports whether err is TTL_DAYS_INVALID.
IsTTLMediaInvalid reports whether err is TTL_MEDIA_INVALID.
IsTTLPeriodInvalid reports whether err is TTL_PERIOD_INVALID.
IsTypesEmpty reports whether err is TYPES_EMPTY.
IsUntilDateInvalid reports whether err is UNTIL_DATE_INVALID.
IsURLInvalid reports whether err is URL_INVALID.
IsUsageLimitInvalid reports whether err is USAGE_LIMIT_INVALID.
IsUserAdminInvalid reports whether err is USER_ADMIN_INVALID.
IsUserAlreadyInvited reports whether err is USER_ALREADY_INVITED.
IsUserAlreadyParticipant reports whether err is USER_ALREADY_PARTICIPANT.
IsUserBannedInChannel reports whether err is USER_BANNED_IN_CHANNEL.
IsUserBlocked reports whether err is USER_BLOCKED.
IsUserBot reports whether err is USER_BOT.
IsUserBotInvalid reports whether err is USER_BOT_INVALID.
IsUserBotRequired reports whether err is USER_BOT_REQUIRED.
IsUserChannelsTooMuch reports whether err is USER_CHANNELS_TOO_MUCH.
IsUserCreator reports whether err is USER_CREATOR.
IsUserDeleted reports whether err is USER_DELETED.
IsUserIDInvalid reports whether err is USER_ID_INVALID.
IsUserInvalid reports whether err is USER_INVALID.
IsUserIsBlocked reports whether err is USER_IS_BLOCKED.
IsUserIsBot reports whether err is USER_IS_BOT.
IsUserKicked reports whether err is USER_KICKED.
IsUsernameInvalid reports whether err is USERNAME_INVALID.
IsUsernameNotModified reports whether err is USERNAME_NOT_MODIFIED.
IsUsernameNotOccupied reports whether err is USERNAME_NOT_OCCUPIED.
IsUsernameOccupied reports whether err is USERNAME_OCCUPIED.
IsUsernamePurchaseAvailable reports whether err is USERNAME_PURCHASE_AVAILABLE.
IsUsernamesActiveTooMuch reports whether err is USERNAMES_ACTIVE_TOO_MUCH.
IsUserNotMutualContact reports whether err is USER_NOT_MUTUAL_CONTACT.
IsUserNotParticipant reports whether err is USER_NOT_PARTICIPANT.
IsUserpicPrivacyRequired reports whether err is USERPIC_PRIVACY_REQUIRED.
IsUserpicUploadRequired reports whether err is USERPIC_UPLOAD_REQUIRED.
IsUserPrivacyRestricted reports whether err is USER_PRIVACY_RESTRICTED.
IsUserPublicMissing reports whether err is USER_PUBLIC_MISSING.
IsUserRestricted reports whether err is USER_RESTRICTED.
IsUsersTooFew reports whether err is USERS_TOO_FEW.
IsUsersTooMuch reports whether err is USERS_TOO_MUCH.
IsUserVolumeInvalid reports whether err is USER_VOLUME_INVALID.
IsVenueIDInvalid reports whether err is VENUE_ID_INVALID.
IsVideoContentTypeInvalid reports whether err is VIDEO_CONTENT_TYPE_INVALID.
IsVideoFileInvalid reports whether err is VIDEO_FILE_INVALID.
IsVideoTitleEmpty reports whether err is VIDEO_TITLE_EMPTY.
IsVoiceMessagesForbidden reports whether err is VOICE_MESSAGES_FORBIDDEN.
IsWallpaperFileInvalid reports whether err is WALLPAPER_FILE_INVALID.
IsWallpaperInvalid reports whether err is WALLPAPER_INVALID.
IsWallpaperMimeInvalid reports whether err is WALLPAPER_MIME_INVALID.
IsWallpaperNotFound reports whether err is WALLPAPER_NOT_FOUND.
IsWcConvertURLInvalid reports whether err is WC_CONVERT_URL_INVALID.
IsWebdocumentInvalid reports whether err is WEBDOCUMENT_INVALID.
IsWebdocumentMimeInvalid reports whether err is WEBDOCUMENT_MIME_INVALID.
IsWebdocumentSizeTooBig reports whether err is WEBDOCUMENT_SIZE_TOO_BIG.
IsWebdocumentURLInvalid reports whether err is WEBDOCUMENT_URL_INVALID.
IsWebpageCurlFailed reports whether err is WEBPAGE_CURL_FAILED.
IsWebpageMediaEmpty reports whether err is WEBPAGE_MEDIA_EMPTY.
IsWebpageNotFound reports whether err is WEBPAGE_NOT_FOUND.
IsWebpageURLInvalid reports whether err is WEBPAGE_URL_INVALID.
IsWebpushAuthInvalid reports whether err is WEBPUSH_AUTH_INVALID.
IsWebpushKeyInvalid reports whether err is WEBPUSH_KEY_INVALID.
IsWebpushTokenInvalid reports whether err is WEBPUSH_TOKEN_INVALID.
IsYouBlockedUser reports whether err is YOU_BLOCKED_USER.
NamesMap returns mapping from type names to TL type ids.
NewClient creates new Client.
TypesConstructorMap maps type ids to constructors.
TypesMap returns mapping from type ids to TL type names.
Package-Level Constants (total 2500, all are exported)
AccessPointRuleTypeID is TL type id of AccessPointRule.
AccountAcceptAuthorizationRequestTypeID is TL type id of AccountAcceptAuthorizationRequest.
AccountAuthorizationFormTypeID is TL type id of AccountAuthorizationForm.
AccountAuthorizationsTypeID is TL type id of AccountAuthorizations.
AccountAutoDownloadSettingsTypeID is TL type id of AccountAutoDownloadSettings.
AccountAutoSaveSettingsTypeID is TL type id of AccountAutoSaveSettings.
AccountCancelPasswordEmailRequestTypeID is TL type id of AccountCancelPasswordEmailRequest.
AccountChangeAuthorizationSettingsRequestTypeID is TL type id of AccountChangeAuthorizationSettingsRequest.
AccountChangePhoneRequestTypeID is TL type id of AccountChangePhoneRequest.
AccountCheckUsernameRequestTypeID is TL type id of AccountCheckUsernameRequest.
AccountClearRecentEmojiStatusesRequestTypeID is TL type id of AccountClearRecentEmojiStatusesRequest.
AccountConfirmPasswordEmailRequestTypeID is TL type id of AccountConfirmPasswordEmailRequest.
AccountConfirmPhoneRequestTypeID is TL type id of AccountConfirmPhoneRequest.
AccountContentSettingsTypeID is TL type id of AccountContentSettings.
AccountCreateThemeRequestTypeID is TL type id of AccountCreateThemeRequest.
AccountDaysTTLTypeID is TL type id of AccountDaysTTL.
AccountDeclinePasswordResetRequestTypeID is TL type id of AccountDeclinePasswordResetRequest.
AccountDeleteAccountRequestTypeID is TL type id of AccountDeleteAccountRequest.
AccountDeleteAutoSaveExceptionsRequestTypeID is TL type id of AccountDeleteAutoSaveExceptionsRequest.
AccountDeleteSecureValueRequestTypeID is TL type id of AccountDeleteSecureValueRequest.
AccountEmailVerifiedClassName is schema name of AccountEmailVerifiedClass.
AccountEmailVerifiedLoginTypeID is TL type id of AccountEmailVerifiedLogin.
AccountEmailVerifiedTypeID is TL type id of AccountEmailVerified.
AccountEmojiStatusesClassName is schema name of AccountEmojiStatusesClass.
AccountEmojiStatusesNotModifiedTypeID is TL type id of AccountEmojiStatusesNotModified.
AccountEmojiStatusesTypeID is TL type id of AccountEmojiStatuses.
AccountFinishTakeoutSessionRequestTypeID is TL type id of AccountFinishTakeoutSessionRequest.
AccountGetAccountTTLRequestTypeID is TL type id of AccountGetAccountTTLRequest.
AccountGetAllSecureValuesRequestTypeID is TL type id of AccountGetAllSecureValuesRequest.
AccountGetAuthorizationFormRequestTypeID is TL type id of AccountGetAuthorizationFormRequest.
AccountGetAuthorizationsRequestTypeID is TL type id of AccountGetAuthorizationsRequest.
AccountGetAutoDownloadSettingsRequestTypeID is TL type id of AccountGetAutoDownloadSettingsRequest.
AccountGetAutoSaveSettingsRequestTypeID is TL type id of AccountGetAutoSaveSettingsRequest.
AccountGetChannelDefaultEmojiStatusesRequestTypeID is TL type id of AccountGetChannelDefaultEmojiStatusesRequest.
AccountGetChannelRestrictedStatusEmojisRequestTypeID is TL type id of AccountGetChannelRestrictedStatusEmojisRequest.
AccountGetChatThemesRequestTypeID is TL type id of AccountGetChatThemesRequest.
AccountGetContactSignUpNotificationRequestTypeID is TL type id of AccountGetContactSignUpNotificationRequest.
AccountGetContentSettingsRequestTypeID is TL type id of AccountGetContentSettingsRequest.
AccountGetDefaultBackgroundEmojisRequestTypeID is TL type id of AccountGetDefaultBackgroundEmojisRequest.
AccountGetDefaultEmojiStatusesRequestTypeID is TL type id of AccountGetDefaultEmojiStatusesRequest.
AccountGetDefaultGroupPhotoEmojisRequestTypeID is TL type id of AccountGetDefaultGroupPhotoEmojisRequest.
AccountGetDefaultProfilePhotoEmojisRequestTypeID is TL type id of AccountGetDefaultProfilePhotoEmojisRequest.
AccountGetGlobalPrivacySettingsRequestTypeID is TL type id of AccountGetGlobalPrivacySettingsRequest.
AccountGetMultiWallPapersRequestTypeID is TL type id of AccountGetMultiWallPapersRequest.
AccountGetNotifyExceptionsRequestTypeID is TL type id of AccountGetNotifyExceptionsRequest.
AccountGetNotifySettingsRequestTypeID is TL type id of AccountGetNotifySettingsRequest.
AccountGetPasswordRequestTypeID is TL type id of AccountGetPasswordRequest.
AccountGetPasswordSettingsRequestTypeID is TL type id of AccountGetPasswordSettingsRequest.
AccountGetPrivacyRequestTypeID is TL type id of AccountGetPrivacyRequest.
AccountGetRecentEmojiStatusesRequestTypeID is TL type id of AccountGetRecentEmojiStatusesRequest.
AccountGetSavedRingtonesRequestTypeID is TL type id of AccountGetSavedRingtonesRequest.
AccountGetSecureValueRequestTypeID is TL type id of AccountGetSecureValueRequest.
AccountGetThemeRequestTypeID is TL type id of AccountGetThemeRequest.
AccountGetThemesRequestTypeID is TL type id of AccountGetThemesRequest.
AccountGetTmpPasswordRequestTypeID is TL type id of AccountGetTmpPasswordRequest.
AccountGetWallPaperRequestTypeID is TL type id of AccountGetWallPaperRequest.
AccountGetWallPapersRequestTypeID is TL type id of AccountGetWallPapersRequest.
AccountGetWebAuthorizationsRequestTypeID is TL type id of AccountGetWebAuthorizationsRequest.
AccountInitTakeoutSessionRequestTypeID is TL type id of AccountInitTakeoutSessionRequest.
AccountInstallThemeRequestTypeID is TL type id of AccountInstallThemeRequest.
AccountInstallWallPaperRequestTypeID is TL type id of AccountInstallWallPaperRequest.
AccountInvalidateSignInCodesRequestTypeID is TL type id of AccountInvalidateSignInCodesRequest.
AccountPasswordInputSettingsTypeID is TL type id of AccountPasswordInputSettings.
AccountPasswordSettingsTypeID is TL type id of AccountPasswordSettings.
AccountPasswordTypeID is TL type id of AccountPassword.
AccountPrivacyRulesTypeID is TL type id of AccountPrivacyRules.
AccountRegisterDeviceRequestTypeID is TL type id of AccountRegisterDeviceRequest.
AccountReorderUsernamesRequestTypeID is TL type id of AccountReorderUsernamesRequest.
AccountReportPeerRequestTypeID is TL type id of AccountReportPeerRequest.
AccountReportProfilePhotoRequestTypeID is TL type id of AccountReportProfilePhotoRequest.
AccountResendPasswordEmailRequestTypeID is TL type id of AccountResendPasswordEmailRequest.
AccountResetAuthorizationRequestTypeID is TL type id of AccountResetAuthorizationRequest.
AccountResetNotifySettingsRequestTypeID is TL type id of AccountResetNotifySettingsRequest.
AccountResetPasswordFailedWaitTypeID is TL type id of AccountResetPasswordFailedWait.
AccountResetPasswordOkTypeID is TL type id of AccountResetPasswordOk.
AccountResetPasswordRequestedWaitTypeID is TL type id of AccountResetPasswordRequestedWait.
AccountResetPasswordRequestTypeID is TL type id of AccountResetPasswordRequest.
AccountResetPasswordResultClassName is schema name of AccountResetPasswordResultClass.
AccountResetWallPapersRequestTypeID is TL type id of AccountResetWallPapersRequest.
AccountResetWebAuthorizationRequestTypeID is TL type id of AccountResetWebAuthorizationRequest.
AccountResetWebAuthorizationsRequestTypeID is TL type id of AccountResetWebAuthorizationsRequest.
AccountSaveAutoDownloadSettingsRequestTypeID is TL type id of AccountSaveAutoDownloadSettingsRequest.
AccountSaveAutoSaveSettingsRequestTypeID is TL type id of AccountSaveAutoSaveSettingsRequest.
AccountSavedRingtoneClassName is schema name of AccountSavedRingtoneClass.
AccountSavedRingtoneConvertedTypeID is TL type id of AccountSavedRingtoneConverted.
AccountSavedRingtonesClassName is schema name of AccountSavedRingtonesClass.
AccountSavedRingtonesNotModifiedTypeID is TL type id of AccountSavedRingtonesNotModified.
AccountSavedRingtonesTypeID is TL type id of AccountSavedRingtones.
AccountSavedRingtoneTypeID is TL type id of AccountSavedRingtone.
AccountSaveRingtoneRequestTypeID is TL type id of AccountSaveRingtoneRequest.
AccountSaveSecureValueRequestTypeID is TL type id of AccountSaveSecureValueRequest.
AccountSaveThemeRequestTypeID is TL type id of AccountSaveThemeRequest.
AccountSaveWallPaperRequestTypeID is TL type id of AccountSaveWallPaperRequest.
AccountSendChangePhoneCodeRequestTypeID is TL type id of AccountSendChangePhoneCodeRequest.
AccountSendConfirmPhoneCodeRequestTypeID is TL type id of AccountSendConfirmPhoneCodeRequest.
AccountSendVerifyEmailCodeRequestTypeID is TL type id of AccountSendVerifyEmailCodeRequest.
AccountSendVerifyPhoneCodeRequestTypeID is TL type id of AccountSendVerifyPhoneCodeRequest.
AccountSentEmailCodeTypeID is TL type id of AccountSentEmailCode.
AccountSetAccountTTLRequestTypeID is TL type id of AccountSetAccountTTLRequest.
AccountSetAuthorizationTTLRequestTypeID is TL type id of AccountSetAuthorizationTTLRequest.
AccountSetContactSignUpNotificationRequestTypeID is TL type id of AccountSetContactSignUpNotificationRequest.
AccountSetContentSettingsRequestTypeID is TL type id of AccountSetContentSettingsRequest.
AccountSetGlobalPrivacySettingsRequestTypeID is TL type id of AccountSetGlobalPrivacySettingsRequest.
AccountSetPrivacyRequestTypeID is TL type id of AccountSetPrivacyRequest.
AccountTakeoutTypeID is TL type id of AccountTakeout.
AccountThemesClassName is schema name of AccountThemesClass.
AccountThemesNotModifiedTypeID is TL type id of AccountThemesNotModified.
AccountThemesTypeID is TL type id of AccountThemes.
AccountTmpPasswordTypeID is TL type id of AccountTmpPassword.
AccountToggleUsernameRequestTypeID is TL type id of AccountToggleUsernameRequest.
AccountUnregisterDeviceRequestTypeID is TL type id of AccountUnregisterDeviceRequest.
AccountUpdateColorRequestTypeID is TL type id of AccountUpdateColorRequest.
AccountUpdateDeviceLockedRequestTypeID is TL type id of AccountUpdateDeviceLockedRequest.
AccountUpdateEmojiStatusRequestTypeID is TL type id of AccountUpdateEmojiStatusRequest.
AccountUpdateNotifySettingsRequestTypeID is TL type id of AccountUpdateNotifySettingsRequest.
AccountUpdatePasswordSettingsRequestTypeID is TL type id of AccountUpdatePasswordSettingsRequest.
AccountUpdateProfileRequestTypeID is TL type id of AccountUpdateProfileRequest.
AccountUpdateStatusRequestTypeID is TL type id of AccountUpdateStatusRequest.
AccountUpdateThemeRequestTypeID is TL type id of AccountUpdateThemeRequest.
AccountUpdateUsernameRequestTypeID is TL type id of AccountUpdateUsernameRequest.
AccountUploadRingtoneRequestTypeID is TL type id of AccountUploadRingtoneRequest.
AccountUploadThemeRequestTypeID is TL type id of AccountUploadThemeRequest.
AccountUploadWallPaperRequestTypeID is TL type id of AccountUploadWallPaperRequest.
AccountVerifyEmailRequestTypeID is TL type id of AccountVerifyEmailRequest.
AccountVerifyPhoneRequestTypeID is TL type id of AccountVerifyPhoneRequest.
AccountWallPapersClassName is schema name of AccountWallPapersClass.
AccountWallPapersNotModifiedTypeID is TL type id of AccountWallPapersNotModified.
AccountWallPapersTypeID is TL type id of AccountWallPapers.
AccountWebAuthorizationsTypeID is TL type id of AccountWebAuthorizations.
AppWebViewResultURLTypeID is TL type id of AppWebViewResultURL.
AttachMenuBotIconColorTypeID is TL type id of AttachMenuBotIconColor.
AttachMenuBotIconTypeID is TL type id of AttachMenuBotIcon.
AttachMenuBotsBotTypeID is TL type id of AttachMenuBotsBot.
AttachMenuBotsClassName is schema name of AttachMenuBotsClass.
AttachMenuBotsNotModifiedTypeID is TL type id of AttachMenuBotsNotModified.
AttachMenuBotsTypeID is TL type id of AttachMenuBots.
AttachMenuBotTypeID is TL type id of AttachMenuBot.
AttachMenuPeerTypeBotPMTypeID is TL type id of AttachMenuPeerTypeBotPM.
AttachMenuPeerTypeBroadcastTypeID is TL type id of AttachMenuPeerTypeBroadcast.
AttachMenuPeerTypeChatTypeID is TL type id of AttachMenuPeerTypeChat.
AttachMenuPeerTypeClassName is schema name of AttachMenuPeerTypeClass.
AttachMenuPeerTypePMTypeID is TL type id of AttachMenuPeerTypePM.
AttachMenuPeerTypeSameBotPMTypeID is TL type id of AttachMenuPeerTypeSameBotPM.
AuthAcceptLoginTokenRequestTypeID is TL type id of AuthAcceptLoginTokenRequest.
AuthAuthorizationClassName is schema name of AuthAuthorizationClass.
AuthAuthorizationSignUpRequiredTypeID is TL type id of AuthAuthorizationSignUpRequired.
AuthAuthorizationTypeID is TL type id of AuthAuthorization.
AuthBindTempAuthKeyRequestTypeID is TL type id of AuthBindTempAuthKeyRequest.
AuthCancelCodeRequestTypeID is TL type id of AuthCancelCodeRequest.
AuthCheckPasswordRequestTypeID is TL type id of AuthCheckPasswordRequest.
AuthCheckRecoveryPasswordRequestTypeID is TL type id of AuthCheckRecoveryPasswordRequest.
AuthCodeTypeCallTypeID is TL type id of AuthCodeTypeCall.
AuthCodeTypeClassName is schema name of AuthCodeTypeClass.
AuthCodeTypeFlashCallTypeID is TL type id of AuthCodeTypeFlashCall.
AuthCodeTypeFragmentSMSTypeID is TL type id of AuthCodeTypeFragmentSMS.
AuthCodeTypeMissedCallTypeID is TL type id of AuthCodeTypeMissedCall.
AuthCodeTypeSMSTypeID is TL type id of AuthCodeTypeSMS.
AuthDropTempAuthKeysRequestTypeID is TL type id of AuthDropTempAuthKeysRequest.
AuthExportAuthorizationRequestTypeID is TL type id of AuthExportAuthorizationRequest.
AuthExportedAuthorizationTypeID is TL type id of AuthExportedAuthorization.
AuthExportLoginTokenRequestTypeID is TL type id of AuthExportLoginTokenRequest.
AuthImportAuthorizationRequestTypeID is TL type id of AuthImportAuthorizationRequest.
AuthImportBotAuthorizationRequestTypeID is TL type id of AuthImportBotAuthorizationRequest.
AuthImportLoginTokenRequestTypeID is TL type id of AuthImportLoginTokenRequest.
AuthImportWebTokenAuthorizationRequestTypeID is TL type id of AuthImportWebTokenAuthorizationRequest.
AuthLoggedOutTypeID is TL type id of AuthLoggedOut.
AuthLoginTokenClassName is schema name of AuthLoginTokenClass.
AuthLoginTokenMigrateToTypeID is TL type id of AuthLoginTokenMigrateTo.
AuthLoginTokenSuccessTypeID is TL type id of AuthLoginTokenSuccess.
AuthLoginTokenTypeID is TL type id of AuthLoginToken.
AuthLogOutRequestTypeID is TL type id of AuthLogOutRequest.
AuthorizationTypeID is TL type id of Authorization.
AuthPasswordRecoveryTypeID is TL type id of AuthPasswordRecovery.
AuthRecoverPasswordRequestTypeID is TL type id of AuthRecoverPasswordRequest.
AuthRequestFirebaseSMSRequestTypeID is TL type id of AuthRequestFirebaseSMSRequest.
AuthRequestPasswordRecoveryRequestTypeID is TL type id of AuthRequestPasswordRecoveryRequest.
AuthResendCodeRequestTypeID is TL type id of AuthResendCodeRequest.
AuthResetAuthorizationsRequestTypeID is TL type id of AuthResetAuthorizationsRequest.
AuthResetLoginEmailRequestTypeID is TL type id of AuthResetLoginEmailRequest.
AuthSendCodeRequestTypeID is TL type id of AuthSendCodeRequest.
AuthSentCodeClassName is schema name of AuthSentCodeClass.
AuthSentCodeSuccessTypeID is TL type id of AuthSentCodeSuccess.
AuthSentCodeTypeAppTypeID is TL type id of AuthSentCodeTypeApp.
AuthSentCodeTypeCallTypeID is TL type id of AuthSentCodeTypeCall.
AuthSentCodeTypeClassName is schema name of AuthSentCodeTypeClass.
AuthSentCodeTypeEmailCodeTypeID is TL type id of AuthSentCodeTypeEmailCode.
AuthSentCodeTypeFirebaseSMSTypeID is TL type id of AuthSentCodeTypeFirebaseSMS.
AuthSentCodeTypeFlashCallTypeID is TL type id of AuthSentCodeTypeFlashCall.
AuthSentCodeTypeFragmentSMSTypeID is TL type id of AuthSentCodeTypeFragmentSMS.
AuthSentCodeTypeID is TL type id of AuthSentCode.
AuthSentCodeTypeMissedCallTypeID is TL type id of AuthSentCodeTypeMissedCall.
AuthSentCodeTypeSetUpEmailRequiredTypeID is TL type id of AuthSentCodeTypeSetUpEmailRequired.
AuthSentCodeTypeSMSTypeID is TL type id of AuthSentCodeTypeSMS.
AuthSignInRequestTypeID is TL type id of AuthSignInRequest.
AuthSignUpRequestTypeID is TL type id of AuthSignUpRequest.
AutoDownloadSettingsTypeID is TL type id of AutoDownloadSettings.
AutoSaveExceptionTypeID is TL type id of AutoSaveException.
AutoSaveSettingsTypeID is TL type id of AutoSaveSettings.
AvailableReactionTypeID is TL type id of AvailableReaction.
BankCardOpenURLTypeID is TL type id of BankCardOpenURL.
BaseThemeArcticTypeID is TL type id of BaseThemeArctic.
BaseThemeClassicTypeID is TL type id of BaseThemeClassic.
BaseThemeClassName is schema name of BaseThemeClass.
BaseThemeDayTypeID is TL type id of BaseThemeDay.
BaseThemeNightTypeID is TL type id of BaseThemeNight.
BaseThemeTintedTypeID is TL type id of BaseThemeTinted.
BoolClassName is schema name of BoolClass.
BoolFalseTypeID is TL type id of BoolFalse.
BoolTrueTypeID is TL type id of BoolTrue.
BoostTypeID is TL type id of Boost.
BotAppClassName is schema name of BotAppClass.
BotAppNotModifiedTypeID is TL type id of BotAppNotModified.
BotAppTypeID is TL type id of BotApp.
BotCommandScopeChatAdminsTypeID is TL type id of BotCommandScopeChatAdmins.
BotCommandScopeChatsTypeID is TL type id of BotCommandScopeChats.
BotCommandScopeClassName is schema name of BotCommandScopeClass.
BotCommandScopeDefaultTypeID is TL type id of BotCommandScopeDefault.
BotCommandScopePeerAdminsTypeID is TL type id of BotCommandScopePeerAdmins.
BotCommandScopePeerTypeID is TL type id of BotCommandScopePeer.
BotCommandScopePeerUserTypeID is TL type id of BotCommandScopePeerUser.
BotCommandScopeUsersTypeID is TL type id of BotCommandScopeUsers.
BotCommandTypeID is TL type id of BotCommand.
BotCommandVectorTypeID is TL type id of BotCommandVector.
BotInfoTypeID is TL type id of BotInfo.
BotInlineMediaResultTypeID is TL type id of BotInlineMediaResult.
BotInlineMessageClassName is schema name of BotInlineMessageClass.
BotInlineMessageMediaAutoTypeID is TL type id of BotInlineMessageMediaAuto.
BotInlineMessageMediaContactTypeID is TL type id of BotInlineMessageMediaContact.
BotInlineMessageMediaGeoTypeID is TL type id of BotInlineMessageMediaGeo.
BotInlineMessageMediaInvoiceTypeID is TL type id of BotInlineMessageMediaInvoice.
BotInlineMessageMediaVenueTypeID is TL type id of BotInlineMessageMediaVenue.
BotInlineMessageMediaWebPageTypeID is TL type id of BotInlineMessageMediaWebPage.
BotInlineMessageTextTypeID is TL type id of BotInlineMessageText.
BotInlineResultClassName is schema name of BotInlineResultClass.
BotInlineResultTypeID is TL type id of BotInlineResult.
BotMenuButtonClassName is schema name of BotMenuButtonClass.
BotMenuButtonCommandsTypeID is TL type id of BotMenuButtonCommands.
BotMenuButtonDefaultTypeID is TL type id of BotMenuButtonDefault.
BotMenuButtonTypeID is TL type id of BotMenuButton.
BotsAllowSendMessageRequestTypeID is TL type id of BotsAllowSendMessageRequest.
BotsAnswerWebhookJSONQueryRequestTypeID is TL type id of BotsAnswerWebhookJSONQueryRequest.
BotsBotInfoTypeID is TL type id of BotsBotInfo.
BotsCanSendMessageRequestTypeID is TL type id of BotsCanSendMessageRequest.
BotsGetBotCommandsRequestTypeID is TL type id of BotsGetBotCommandsRequest.
BotsGetBotInfoRequestTypeID is TL type id of BotsGetBotInfoRequest.
BotsGetBotMenuButtonRequestTypeID is TL type id of BotsGetBotMenuButtonRequest.
BotsInvokeWebViewCustomMethodRequestTypeID is TL type id of BotsInvokeWebViewCustomMethodRequest.
BotsReorderUsernamesRequestTypeID is TL type id of BotsReorderUsernamesRequest.
BotsResetBotCommandsRequestTypeID is TL type id of BotsResetBotCommandsRequest.
BotsSendCustomRequestRequestTypeID is TL type id of BotsSendCustomRequestRequest.
BotsSetBotBroadcastDefaultAdminRightsRequestTypeID is TL type id of BotsSetBotBroadcastDefaultAdminRightsRequest.
BotsSetBotCommandsRequestTypeID is TL type id of BotsSetBotCommandsRequest.
BotsSetBotGroupDefaultAdminRightsRequestTypeID is TL type id of BotsSetBotGroupDefaultAdminRightsRequest.
BotsSetBotInfoRequestTypeID is TL type id of BotsSetBotInfoRequest.
BotsSetBotMenuButtonRequestTypeID is TL type id of BotsSetBotMenuButtonRequest.
BotsToggleUsernameRequestTypeID is TL type id of BotsToggleUsernameRequest.
BytesTypeID is TL type id of Bytes.
CDNConfigTypeID is TL type id of CDNConfig.
CDNPublicKeyTypeID is TL type id of CDNPublicKey.
ChannelAdminLogEventActionChangeAboutTypeID is TL type id of ChannelAdminLogEventActionChangeAbout.
ChannelAdminLogEventActionChangeAvailableReactionsTypeID is TL type id of ChannelAdminLogEventActionChangeAvailableReactions.
ChannelAdminLogEventActionChangeEmojiStatusTypeID is TL type id of ChannelAdminLogEventActionChangeEmojiStatus.
ChannelAdminLogEventActionChangeHistoryTTLTypeID is TL type id of ChannelAdminLogEventActionChangeHistoryTTL.
ChannelAdminLogEventActionChangeLinkedChatTypeID is TL type id of ChannelAdminLogEventActionChangeLinkedChat.
ChannelAdminLogEventActionChangeLocationTypeID is TL type id of ChannelAdminLogEventActionChangeLocation.
ChannelAdminLogEventActionChangePeerColorTypeID is TL type id of ChannelAdminLogEventActionChangePeerColor.
ChannelAdminLogEventActionChangePhotoTypeID is TL type id of ChannelAdminLogEventActionChangePhoto.
ChannelAdminLogEventActionChangeProfilePeerColorTypeID is TL type id of ChannelAdminLogEventActionChangeProfilePeerColor.
ChannelAdminLogEventActionChangeStickerSetTypeID is TL type id of ChannelAdminLogEventActionChangeStickerSet.
ChannelAdminLogEventActionChangeTitleTypeID is TL type id of ChannelAdminLogEventActionChangeTitle.
ChannelAdminLogEventActionChangeUsernamesTypeID is TL type id of ChannelAdminLogEventActionChangeUsernames.
ChannelAdminLogEventActionChangeUsernameTypeID is TL type id of ChannelAdminLogEventActionChangeUsername.
ChannelAdminLogEventActionChangeWallpaperTypeID is TL type id of ChannelAdminLogEventActionChangeWallpaper.
ChannelAdminLogEventActionClassName is schema name of ChannelAdminLogEventActionClass.
ChannelAdminLogEventActionCreateTopicTypeID is TL type id of ChannelAdminLogEventActionCreateTopic.
ChannelAdminLogEventActionDefaultBannedRightsTypeID is TL type id of ChannelAdminLogEventActionDefaultBannedRights.
ChannelAdminLogEventActionDeleteMessageTypeID is TL type id of ChannelAdminLogEventActionDeleteMessage.
ChannelAdminLogEventActionDeleteTopicTypeID is TL type id of ChannelAdminLogEventActionDeleteTopic.
ChannelAdminLogEventActionDiscardGroupCallTypeID is TL type id of ChannelAdminLogEventActionDiscardGroupCall.
ChannelAdminLogEventActionEditMessageTypeID is TL type id of ChannelAdminLogEventActionEditMessage.
ChannelAdminLogEventActionEditTopicTypeID is TL type id of ChannelAdminLogEventActionEditTopic.
ChannelAdminLogEventActionExportedInviteDeleteTypeID is TL type id of ChannelAdminLogEventActionExportedInviteDelete.
ChannelAdminLogEventActionExportedInviteEditTypeID is TL type id of ChannelAdminLogEventActionExportedInviteEdit.
ChannelAdminLogEventActionExportedInviteRevokeTypeID is TL type id of ChannelAdminLogEventActionExportedInviteRevoke.
ChannelAdminLogEventActionParticipantInviteTypeID is TL type id of ChannelAdminLogEventActionParticipantInvite.
ChannelAdminLogEventActionParticipantJoinByInviteTypeID is TL type id of ChannelAdminLogEventActionParticipantJoinByInvite.
ChannelAdminLogEventActionParticipantJoinByRequestTypeID is TL type id of ChannelAdminLogEventActionParticipantJoinByRequest.
ChannelAdminLogEventActionParticipantJoinTypeID is TL type id of ChannelAdminLogEventActionParticipantJoin.
ChannelAdminLogEventActionParticipantLeaveTypeID is TL type id of ChannelAdminLogEventActionParticipantLeave.
ChannelAdminLogEventActionParticipantMuteTypeID is TL type id of ChannelAdminLogEventActionParticipantMute.
ChannelAdminLogEventActionParticipantToggleAdminTypeID is TL type id of ChannelAdminLogEventActionParticipantToggleAdmin.
ChannelAdminLogEventActionParticipantToggleBanTypeID is TL type id of ChannelAdminLogEventActionParticipantToggleBan.
ChannelAdminLogEventActionParticipantUnmuteTypeID is TL type id of ChannelAdminLogEventActionParticipantUnmute.
ChannelAdminLogEventActionParticipantVolumeTypeID is TL type id of ChannelAdminLogEventActionParticipantVolume.
ChannelAdminLogEventActionPinTopicTypeID is TL type id of ChannelAdminLogEventActionPinTopic.
ChannelAdminLogEventActionSendMessageTypeID is TL type id of ChannelAdminLogEventActionSendMessage.
ChannelAdminLogEventActionStartGroupCallTypeID is TL type id of ChannelAdminLogEventActionStartGroupCall.
ChannelAdminLogEventActionStopPollTypeID is TL type id of ChannelAdminLogEventActionStopPoll.
ChannelAdminLogEventActionToggleAntiSpamTypeID is TL type id of ChannelAdminLogEventActionToggleAntiSpam.
ChannelAdminLogEventActionToggleForumTypeID is TL type id of ChannelAdminLogEventActionToggleForum.
ChannelAdminLogEventActionToggleGroupCallSettingTypeID is TL type id of ChannelAdminLogEventActionToggleGroupCallSetting.
ChannelAdminLogEventActionToggleInvitesTypeID is TL type id of ChannelAdminLogEventActionToggleInvites.
ChannelAdminLogEventActionToggleNoForwardsTypeID is TL type id of ChannelAdminLogEventActionToggleNoForwards.
ChannelAdminLogEventActionTogglePreHistoryHiddenTypeID is TL type id of ChannelAdminLogEventActionTogglePreHistoryHidden.
ChannelAdminLogEventActionToggleSignaturesTypeID is TL type id of ChannelAdminLogEventActionToggleSignatures.
ChannelAdminLogEventActionToggleSlowModeTypeID is TL type id of ChannelAdminLogEventActionToggleSlowMode.
ChannelAdminLogEventActionUpdatePinnedTypeID is TL type id of ChannelAdminLogEventActionUpdatePinned.
ChannelAdminLogEventsFilterTypeID is TL type id of ChannelAdminLogEventsFilter.
ChannelAdminLogEventTypeID is TL type id of ChannelAdminLogEvent.
ChannelForbiddenTypeID is TL type id of ChannelForbidden.
ChannelFullTypeID is TL type id of ChannelFull.
ChannelLocationClassName is schema name of ChannelLocationClass.
ChannelLocationEmptyTypeID is TL type id of ChannelLocationEmpty.
ChannelLocationTypeID is TL type id of ChannelLocation.
ChannelMessagesFilterClassName is schema name of ChannelMessagesFilterClass.
ChannelMessagesFilterEmptyTypeID is TL type id of ChannelMessagesFilterEmpty.
ChannelMessagesFilterTypeID is TL type id of ChannelMessagesFilter.
ChannelParticipantAdminTypeID is TL type id of ChannelParticipantAdmin.
ChannelParticipantBannedTypeID is TL type id of ChannelParticipantBanned.
ChannelParticipantClassName is schema name of ChannelParticipantClass.
ChannelParticipantCreatorTypeID is TL type id of ChannelParticipantCreator.
ChannelParticipantLeftTypeID is TL type id of ChannelParticipantLeft.
ChannelParticipantsAdminsTypeID is TL type id of ChannelParticipantsAdmins.
ChannelParticipantsBannedTypeID is TL type id of ChannelParticipantsBanned.
ChannelParticipantsBotsTypeID is TL type id of ChannelParticipantsBots.
ChannelParticipantsContactsTypeID is TL type id of ChannelParticipantsContacts.
ChannelParticipantSelfTypeID is TL type id of ChannelParticipantSelf.
ChannelParticipantsFilterClassName is schema name of ChannelParticipantsFilterClass.
ChannelParticipantsKickedTypeID is TL type id of ChannelParticipantsKicked.
ChannelParticipantsMentionsTypeID is TL type id of ChannelParticipantsMentions.
ChannelParticipantsRecentTypeID is TL type id of ChannelParticipantsRecent.
ChannelParticipantsSearchTypeID is TL type id of ChannelParticipantsSearch.
ChannelParticipantTypeID is TL type id of ChannelParticipant.
ChannelsAdminLogResultsTypeID is TL type id of ChannelsAdminLogResults.
ChannelsChannelParticipantsClassName is schema name of ChannelsChannelParticipantsClass.
ChannelsChannelParticipantsNotModifiedTypeID is TL type id of ChannelsChannelParticipantsNotModified.
ChannelsChannelParticipantsTypeID is TL type id of ChannelsChannelParticipants.
ChannelsChannelParticipantTypeID is TL type id of ChannelsChannelParticipant.
ChannelsCheckUsernameRequestTypeID is TL type id of ChannelsCheckUsernameRequest.
ChannelsClickSponsoredMessageRequestTypeID is TL type id of ChannelsClickSponsoredMessageRequest.
ChannelsConvertToGigagroupRequestTypeID is TL type id of ChannelsConvertToGigagroupRequest.
ChannelsCreateChannelRequestTypeID is TL type id of ChannelsCreateChannelRequest.
ChannelsCreateForumTopicRequestTypeID is TL type id of ChannelsCreateForumTopicRequest.
ChannelsDeactivateAllUsernamesRequestTypeID is TL type id of ChannelsDeactivateAllUsernamesRequest.
ChannelsDeleteChannelRequestTypeID is TL type id of ChannelsDeleteChannelRequest.
ChannelsDeleteHistoryRequestTypeID is TL type id of ChannelsDeleteHistoryRequest.
ChannelsDeleteMessagesRequestTypeID is TL type id of ChannelsDeleteMessagesRequest.
ChannelsDeleteParticipantHistoryRequestTypeID is TL type id of ChannelsDeleteParticipantHistoryRequest.
ChannelsDeleteTopicHistoryRequestTypeID is TL type id of ChannelsDeleteTopicHistoryRequest.
ChannelsEditAdminRequestTypeID is TL type id of ChannelsEditAdminRequest.
ChannelsEditBannedRequestTypeID is TL type id of ChannelsEditBannedRequest.
ChannelsEditCreatorRequestTypeID is TL type id of ChannelsEditCreatorRequest.
ChannelsEditForumTopicRequestTypeID is TL type id of ChannelsEditForumTopicRequest.
ChannelsEditLocationRequestTypeID is TL type id of ChannelsEditLocationRequest.
ChannelsEditPhotoRequestTypeID is TL type id of ChannelsEditPhotoRequest.
ChannelsEditTitleRequestTypeID is TL type id of ChannelsEditTitleRequest.
ChannelsExportMessageLinkRequestTypeID is TL type id of ChannelsExportMessageLinkRequest.
ChannelsGetAdminedPublicChannelsRequestTypeID is TL type id of ChannelsGetAdminedPublicChannelsRequest.
ChannelsGetAdminLogRequestTypeID is TL type id of ChannelsGetAdminLogRequest.
ChannelsGetChannelRecommendationsRequestTypeID is TL type id of ChannelsGetChannelRecommendationsRequest.
ChannelsGetChannelsRequestTypeID is TL type id of ChannelsGetChannelsRequest.
ChannelsGetForumTopicsByIDRequestTypeID is TL type id of ChannelsGetForumTopicsByIDRequest.
ChannelsGetForumTopicsRequestTypeID is TL type id of ChannelsGetForumTopicsRequest.
ChannelsGetFullChannelRequestTypeID is TL type id of ChannelsGetFullChannelRequest.
ChannelsGetGroupsForDiscussionRequestTypeID is TL type id of ChannelsGetGroupsForDiscussionRequest.
ChannelsGetInactiveChannelsRequestTypeID is TL type id of ChannelsGetInactiveChannelsRequest.
ChannelsGetLeftChannelsRequestTypeID is TL type id of ChannelsGetLeftChannelsRequest.
ChannelsGetMessagesRequestTypeID is TL type id of ChannelsGetMessagesRequest.
ChannelsGetParticipantRequestTypeID is TL type id of ChannelsGetParticipantRequest.
ChannelsGetParticipantsRequestTypeID is TL type id of ChannelsGetParticipantsRequest.
ChannelsGetSendAsRequestTypeID is TL type id of ChannelsGetSendAsRequest.
ChannelsGetSponsoredMessagesRequestTypeID is TL type id of ChannelsGetSponsoredMessagesRequest.
ChannelsInviteToChannelRequestTypeID is TL type id of ChannelsInviteToChannelRequest.
ChannelsJoinChannelRequestTypeID is TL type id of ChannelsJoinChannelRequest.
ChannelsLeaveChannelRequestTypeID is TL type id of ChannelsLeaveChannelRequest.
ChannelsReadHistoryRequestTypeID is TL type id of ChannelsReadHistoryRequest.
ChannelsReadMessageContentsRequestTypeID is TL type id of ChannelsReadMessageContentsRequest.
ChannelsReorderPinnedForumTopicsRequestTypeID is TL type id of ChannelsReorderPinnedForumTopicsRequest.
ChannelsReorderUsernamesRequestTypeID is TL type id of ChannelsReorderUsernamesRequest.
ChannelsReportAntiSpamFalsePositiveRequestTypeID is TL type id of ChannelsReportAntiSpamFalsePositiveRequest.
ChannelsReportSpamRequestTypeID is TL type id of ChannelsReportSpamRequest.
ChannelsSendAsPeersTypeID is TL type id of ChannelsSendAsPeers.
ChannelsSetDiscussionGroupRequestTypeID is TL type id of ChannelsSetDiscussionGroupRequest.
ChannelsSetStickersRequestTypeID is TL type id of ChannelsSetStickersRequest.
ChannelsToggleAntiSpamRequestTypeID is TL type id of ChannelsToggleAntiSpamRequest.
ChannelsToggleForumRequestTypeID is TL type id of ChannelsToggleForumRequest.
ChannelsToggleJoinRequestRequestTypeID is TL type id of ChannelsToggleJoinRequestRequest.
ChannelsToggleJoinToSendRequestTypeID is TL type id of ChannelsToggleJoinToSendRequest.
ChannelsToggleParticipantsHiddenRequestTypeID is TL type id of ChannelsToggleParticipantsHiddenRequest.
ChannelsTogglePreHistoryHiddenRequestTypeID is TL type id of ChannelsTogglePreHistoryHiddenRequest.
ChannelsToggleSignaturesRequestTypeID is TL type id of ChannelsToggleSignaturesRequest.
ChannelsToggleSlowModeRequestTypeID is TL type id of ChannelsToggleSlowModeRequest.
ChannelsToggleUsernameRequestTypeID is TL type id of ChannelsToggleUsernameRequest.
ChannelsToggleViewForumAsMessagesRequestTypeID is TL type id of ChannelsToggleViewForumAsMessagesRequest.
ChannelsUpdateColorRequestTypeID is TL type id of ChannelsUpdateColorRequest.
ChannelsUpdateEmojiStatusRequestTypeID is TL type id of ChannelsUpdateEmojiStatusRequest.
ChannelsUpdatePinnedForumTopicRequestTypeID is TL type id of ChannelsUpdatePinnedForumTopicRequest.
ChannelsUpdateUsernameRequestTypeID is TL type id of ChannelsUpdateUsernameRequest.
ChannelsViewSponsoredMessageRequestTypeID is TL type id of ChannelsViewSponsoredMessageRequest.
ChannelTypeID is TL type id of Channel.
ChatAdminRightsTypeID is TL type id of ChatAdminRights.
ChatAdminWithInvitesTypeID is TL type id of ChatAdminWithInvites.
ChatBannedRightsTypeID is TL type id of ChatBannedRights.
ChatClassName is schema name of ChatClass.
ChatEmptyTypeID is TL type id of ChatEmpty.
ChatForbiddenTypeID is TL type id of ChatForbidden.
ChatFullClassName is schema name of ChatFullClass.
ChatFullTypeID is TL type id of ChatFull.
ChatInviteAlreadyTypeID is TL type id of ChatInviteAlready.
ChatInviteClassName is schema name of ChatInviteClass.
ChatInviteExportedTypeID is TL type id of ChatInviteExported.
ChatInviteImporterTypeID is TL type id of ChatInviteImporter.
ChatInvitePeekTypeID is TL type id of ChatInvitePeek.
ChatInvitePublicJoinRequestsTypeID is TL type id of ChatInvitePublicJoinRequests.
ChatInviteTypeID is TL type id of ChatInvite.
ChatlistsChatlistInviteAlreadyTypeID is TL type id of ChatlistsChatlistInviteAlready.
ChatlistsChatlistInviteClassName is schema name of ChatlistsChatlistInviteClass.
ChatlistsChatlistInviteTypeID is TL type id of ChatlistsChatlistInvite.
ChatlistsChatlistUpdatesTypeID is TL type id of ChatlistsChatlistUpdates.
ChatlistsCheckChatlistInviteRequestTypeID is TL type id of ChatlistsCheckChatlistInviteRequest.
ChatlistsDeleteExportedInviteRequestTypeID is TL type id of ChatlistsDeleteExportedInviteRequest.
ChatlistsEditExportedInviteRequestTypeID is TL type id of ChatlistsEditExportedInviteRequest.
ChatlistsExportChatlistInviteRequestTypeID is TL type id of ChatlistsExportChatlistInviteRequest.
ChatlistsExportedChatlistInviteTypeID is TL type id of ChatlistsExportedChatlistInvite.
ChatlistsExportedInvitesTypeID is TL type id of ChatlistsExportedInvites.
ChatlistsGetChatlistUpdatesRequestTypeID is TL type id of ChatlistsGetChatlistUpdatesRequest.
ChatlistsGetExportedInvitesRequestTypeID is TL type id of ChatlistsGetExportedInvitesRequest.
ChatlistsGetLeaveChatlistSuggestionsRequestTypeID is TL type id of ChatlistsGetLeaveChatlistSuggestionsRequest.
ChatlistsHideChatlistUpdatesRequestTypeID is TL type id of ChatlistsHideChatlistUpdatesRequest.
ChatlistsJoinChatlistInviteRequestTypeID is TL type id of ChatlistsJoinChatlistInviteRequest.
ChatlistsJoinChatlistUpdatesRequestTypeID is TL type id of ChatlistsJoinChatlistUpdatesRequest.
ChatlistsLeaveChatlistRequestTypeID is TL type id of ChatlistsLeaveChatlistRequest.
ChatOnlinesTypeID is TL type id of ChatOnlines.
ChatParticipantAdminTypeID is TL type id of ChatParticipantAdmin.
ChatParticipantClassName is schema name of ChatParticipantClass.
ChatParticipantCreatorTypeID is TL type id of ChatParticipantCreator.
ChatParticipantsClassName is schema name of ChatParticipantsClass.
ChatParticipantsForbiddenTypeID is TL type id of ChatParticipantsForbidden.
ChatParticipantsTypeID is TL type id of ChatParticipants.
ChatParticipantTypeID is TL type id of ChatParticipant.
ChatPhotoClassName is schema name of ChatPhotoClass.
ChatPhotoEmptyTypeID is TL type id of ChatPhotoEmpty.
ChatPhotoTypeID is TL type id of ChatPhoto.
ChatReactionsAllTypeID is TL type id of ChatReactionsAll.
ChatReactionsClassName is schema name of ChatReactionsClass.
ChatReactionsNoneTypeID is TL type id of ChatReactionsNone.
ChatReactionsSomeTypeID is TL type id of ChatReactionsSome.
ChatTypeID is TL type id of Chat.
CodeSettingsTypeID is TL type id of CodeSettings.
ConfigTypeID is TL type id of Config.
ContactsAcceptContactRequestTypeID is TL type id of ContactsAcceptContactRequest.
ContactsAddContactRequestTypeID is TL type id of ContactsAddContactRequest.
ContactsBlockedClassName is schema name of ContactsBlockedClass.
ContactsBlockedSliceTypeID is TL type id of ContactsBlockedSlice.
ContactsBlockedTypeID is TL type id of ContactsBlocked.
ContactsBlockFromRepliesRequestTypeID is TL type id of ContactsBlockFromRepliesRequest.
ContactsBlockRequestTypeID is TL type id of ContactsBlockRequest.
ContactsContactsClassName is schema name of ContactsContactsClass.
ContactsContactsNotModifiedTypeID is TL type id of ContactsContactsNotModified.
ContactsContactsTypeID is TL type id of ContactsContacts.
ContactsDeleteByPhonesRequestTypeID is TL type id of ContactsDeleteByPhonesRequest.
ContactsDeleteContactsRequestTypeID is TL type id of ContactsDeleteContactsRequest.
ContactsEditCloseFriendsRequestTypeID is TL type id of ContactsEditCloseFriendsRequest.
ContactsExportContactTokenRequestTypeID is TL type id of ContactsExportContactTokenRequest.
ContactsFoundTypeID is TL type id of ContactsFound.
ContactsGetBlockedRequestTypeID is TL type id of ContactsGetBlockedRequest.
ContactsGetContactIDsRequestTypeID is TL type id of ContactsGetContactIDsRequest.
ContactsGetContactsRequestTypeID is TL type id of ContactsGetContactsRequest.
ContactsGetLocatedRequestTypeID is TL type id of ContactsGetLocatedRequest.
ContactsGetSavedRequestTypeID is TL type id of ContactsGetSavedRequest.
ContactsGetStatusesRequestTypeID is TL type id of ContactsGetStatusesRequest.
ContactsGetTopPeersRequestTypeID is TL type id of ContactsGetTopPeersRequest.
ContactsImportContactsRequestTypeID is TL type id of ContactsImportContactsRequest.
ContactsImportContactTokenRequestTypeID is TL type id of ContactsImportContactTokenRequest.
ContactsImportedContactsTypeID is TL type id of ContactsImportedContacts.
ContactsResetSavedRequestTypeID is TL type id of ContactsResetSavedRequest.
ContactsResetTopPeerRatingRequestTypeID is TL type id of ContactsResetTopPeerRatingRequest.
ContactsResolvedPeerTypeID is TL type id of ContactsResolvedPeer.
ContactsResolvePhoneRequestTypeID is TL type id of ContactsResolvePhoneRequest.
ContactsResolveUsernameRequestTypeID is TL type id of ContactsResolveUsernameRequest.
ContactsSearchRequestTypeID is TL type id of ContactsSearchRequest.
ContactsSetBlockedRequestTypeID is TL type id of ContactsSetBlockedRequest.
ContactStatusTypeID is TL type id of ContactStatus.
ContactStatusVectorTypeID is TL type id of ContactStatusVector.
ContactsToggleTopPeersRequestTypeID is TL type id of ContactsToggleTopPeersRequest.
ContactsTopPeersClassName is schema name of ContactsTopPeersClass.
ContactsTopPeersDisabledTypeID is TL type id of ContactsTopPeersDisabled.
ContactsTopPeersNotModifiedTypeID is TL type id of ContactsTopPeersNotModified.
ContactsTopPeersTypeID is TL type id of ContactsTopPeers.
ContactsUnblockRequestTypeID is TL type id of ContactsUnblockRequest.
ContactTypeID is TL type id of Contact.
DataJSONTypeID is TL type id of DataJSON.
DCOptionTypeID is TL type id of DCOption.
DefaultHistoryTTLTypeID is TL type id of DefaultHistoryTTL.
DialogClassName is schema name of DialogClass.
DialogFilterChatlistTypeID is TL type id of DialogFilterChatlist.
DialogFilterClassName is schema name of DialogFilterClass.
DialogFilterClassVectorTypeID is TL type id of DialogFilterClassVector.
DialogFilterDefaultTypeID is TL type id of DialogFilterDefault.
DialogFilterSuggestedTypeID is TL type id of DialogFilterSuggested.
DialogFilterSuggestedVectorTypeID is TL type id of DialogFilterSuggestedVector.
DialogFilterTypeID is TL type id of DialogFilter.
DialogFolderTypeID is TL type id of DialogFolder.
DialogPeerClassName is schema name of DialogPeerClass.
DialogPeerClassVectorTypeID is TL type id of DialogPeerClassVector.
DialogPeerFolderTypeID is TL type id of DialogPeerFolder.
DialogPeerTypeID is TL type id of DialogPeer.
DialogTypeID is TL type id of Dialog.
DocumentAttributeAnimatedTypeID is TL type id of DocumentAttributeAnimated.
DocumentAttributeAudioTypeID is TL type id of DocumentAttributeAudio.
DocumentAttributeClassName is schema name of DocumentAttributeClass.
DocumentAttributeCustomEmojiTypeID is TL type id of DocumentAttributeCustomEmoji.
DocumentAttributeFilenameTypeID is TL type id of DocumentAttributeFilename.
DocumentAttributeHasStickersTypeID is TL type id of DocumentAttributeHasStickers.
DocumentAttributeImageSizeTypeID is TL type id of DocumentAttributeImageSize.
DocumentAttributeStickerTypeID is TL type id of DocumentAttributeSticker.
DocumentAttributeVideoTypeID is TL type id of DocumentAttributeVideo.
DocumentClassName is schema name of DocumentClass.
DocumentClassVectorTypeID is TL type id of DocumentClassVector.
DocumentEmptyTypeID is TL type id of DocumentEmpty.
DocumentTypeID is TL type id of Document.
DoubleTypeID is TL type id of Double.
DraftMessageClassName is schema name of DraftMessageClass.
DraftMessageEmptyTypeID is TL type id of DraftMessageEmpty.
DraftMessageTypeID is TL type id of DraftMessage.
EmailVerificationAppleTypeID is TL type id of EmailVerificationApple.
EmailVerificationClassName is schema name of EmailVerificationClass.
EmailVerificationCodeTypeID is TL type id of EmailVerificationCode.
EmailVerificationGoogleTypeID is TL type id of EmailVerificationGoogle.
EmailVerifyPurposeClassName is schema name of EmailVerifyPurposeClass.
EmailVerifyPurposeLoginChangeTypeID is TL type id of EmailVerifyPurposeLoginChange.
EmailVerifyPurposeLoginSetupTypeID is TL type id of EmailVerifyPurposeLoginSetup.
EmailVerifyPurposePassportTypeID is TL type id of EmailVerifyPurposePassport.
EmojiGroupTypeID is TL type id of EmojiGroup.
EmojiKeywordClassName is schema name of EmojiKeywordClass.
EmojiKeywordDeletedTypeID is TL type id of EmojiKeywordDeleted.
EmojiKeywordsDifferenceTypeID is TL type id of EmojiKeywordsDifference.
EmojiKeywordTypeID is TL type id of EmojiKeyword.
EmojiLanguageTypeID is TL type id of EmojiLanguage.
EmojiLanguageVectorTypeID is TL type id of EmojiLanguageVector.
EmojiListClassName is schema name of EmojiListClass.
EmojiListNotModifiedTypeID is TL type id of EmojiListNotModified.
EmojiListTypeID is TL type id of EmojiList.
EmojiStatusClassName is schema name of EmojiStatusClass.
EmojiStatusEmptyTypeID is TL type id of EmojiStatusEmpty.
EmojiStatusTypeID is TL type id of EmojiStatus.
EmojiStatusUntilTypeID is TL type id of EmojiStatusUntil.
EmojiURLTypeID is TL type id of EmojiURL.
EncryptedChatClassName is schema name of EncryptedChatClass.
EncryptedChatDiscardedTypeID is TL type id of EncryptedChatDiscarded.
EncryptedChatEmptyTypeID is TL type id of EncryptedChatEmpty.
EncryptedChatRequestedTypeID is TL type id of EncryptedChatRequested.
EncryptedChatTypeID is TL type id of EncryptedChat.
EncryptedChatWaitingTypeID is TL type id of EncryptedChatWaiting.
EncryptedFileClassName is schema name of EncryptedFileClass.
EncryptedFileEmptyTypeID is TL type id of EncryptedFileEmpty.
EncryptedFileTypeID is TL type id of EncryptedFile.
EncryptedMessageClassName is schema name of EncryptedMessageClass.
EncryptedMessageServiceTypeID is TL type id of EncryptedMessageService.
EncryptedMessageTypeID is TL type id of EncryptedMessage.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
ErrorTypeID is TL type id of Error.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
Telegram API error types.
ExportedChatInviteClassName is schema name of ExportedChatInviteClass.
ExportedChatlistInviteTypeID is TL type id of ExportedChatlistInvite.
ExportedContactTokenTypeID is TL type id of ExportedContactToken.
ExportedMessageLinkTypeID is TL type id of ExportedMessageLink.
ExportedStoryLinkTypeID is TL type id of ExportedStoryLink.
FileHashTypeID is TL type id of FileHash.
FileHashVectorTypeID is TL type id of FileHashVector.
FolderPeerTypeID is TL type id of FolderPeer.
FoldersEditPeerFoldersRequestTypeID is TL type id of FoldersEditPeerFoldersRequest.
FolderTypeID is TL type id of Folder.
ForumTopicClassName is schema name of ForumTopicClass.
ForumTopicDeletedTypeID is TL type id of ForumTopicDeleted.
ForumTopicTypeID is TL type id of ForumTopic.
GameTypeID is TL type id of Game.
GeoPointClassName is schema name of GeoPointClass.
GeoPointEmptyTypeID is TL type id of GeoPointEmpty.
GeoPointTypeID is TL type id of GeoPoint.
GlobalPrivacySettingsTypeID is TL type id of GlobalPrivacySettings.
GroupCallClassName is schema name of GroupCallClass.
GroupCallDiscardedTypeID is TL type id of GroupCallDiscarded.
GroupCallParticipantTypeID is TL type id of GroupCallParticipant.
GroupCallParticipantVideoSourceGroupTypeID is TL type id of GroupCallParticipantVideoSourceGroup.
GroupCallParticipantVideoTypeID is TL type id of GroupCallParticipantVideo.
GroupCallStreamChannelTypeID is TL type id of GroupCallStreamChannel.
GroupCallTypeID is TL type id of GroupCall.
HelpAcceptTermsOfServiceRequestTypeID is TL type id of HelpAcceptTermsOfServiceRequest.
HelpAppConfigClassName is schema name of HelpAppConfigClass.
HelpAppConfigNotModifiedTypeID is TL type id of HelpAppConfigNotModified.
HelpAppConfigTypeID is TL type id of HelpAppConfig.
HelpAppUpdateClassName is schema name of HelpAppUpdateClass.
HelpAppUpdateTypeID is TL type id of HelpAppUpdate.
HelpConfigSimpleTypeID is TL type id of HelpConfigSimple.
HelpCountriesListClassName is schema name of HelpCountriesListClass.
HelpCountriesListNotModifiedTypeID is TL type id of HelpCountriesListNotModified.
HelpCountriesListTypeID is TL type id of HelpCountriesList.
HelpCountryCodeTypeID is TL type id of HelpCountryCode.
HelpCountryTypeID is TL type id of HelpCountry.
HelpDeepLinkInfoClassName is schema name of HelpDeepLinkInfoClass.
HelpDeepLinkInfoEmptyTypeID is TL type id of HelpDeepLinkInfoEmpty.
HelpDeepLinkInfoTypeID is TL type id of HelpDeepLinkInfo.
HelpDismissSuggestionRequestTypeID is TL type id of HelpDismissSuggestionRequest.
HelpEditUserInfoRequestTypeID is TL type id of HelpEditUserInfoRequest.
HelpGetAppConfigRequestTypeID is TL type id of HelpGetAppConfigRequest.
HelpGetAppUpdateRequestTypeID is TL type id of HelpGetAppUpdateRequest.
HelpGetCDNConfigRequestTypeID is TL type id of HelpGetCDNConfigRequest.
HelpGetConfigRequestTypeID is TL type id of HelpGetConfigRequest.
HelpGetCountriesListRequestTypeID is TL type id of HelpGetCountriesListRequest.
HelpGetDeepLinkInfoRequestTypeID is TL type id of HelpGetDeepLinkInfoRequest.
HelpGetInviteTextRequestTypeID is TL type id of HelpGetInviteTextRequest.
HelpGetNearestDCRequestTypeID is TL type id of HelpGetNearestDCRequest.
HelpGetPassportConfigRequestTypeID is TL type id of HelpGetPassportConfigRequest.
HelpGetPeerColorsRequestTypeID is TL type id of HelpGetPeerColorsRequest.
HelpGetPeerProfileColorsRequestTypeID is TL type id of HelpGetPeerProfileColorsRequest.
HelpGetPremiumPromoRequestTypeID is TL type id of HelpGetPremiumPromoRequest.
HelpGetPromoDataRequestTypeID is TL type id of HelpGetPromoDataRequest.
HelpGetRecentMeURLsRequestTypeID is TL type id of HelpGetRecentMeURLsRequest.
HelpGetSupportNameRequestTypeID is TL type id of HelpGetSupportNameRequest.
HelpGetSupportRequestTypeID is TL type id of HelpGetSupportRequest.
HelpGetTermsOfServiceUpdateRequestTypeID is TL type id of HelpGetTermsOfServiceUpdateRequest.
HelpGetUserInfoRequestTypeID is TL type id of HelpGetUserInfoRequest.
HelpHidePromoDataRequestTypeID is TL type id of HelpHidePromoDataRequest.
HelpInviteTextTypeID is TL type id of HelpInviteText.
HelpNoAppUpdateTypeID is TL type id of HelpNoAppUpdate.
HelpPassportConfigClassName is schema name of HelpPassportConfigClass.
HelpPassportConfigNotModifiedTypeID is TL type id of HelpPassportConfigNotModified.
HelpPassportConfigTypeID is TL type id of HelpPassportConfig.
HelpPeerColorOptionTypeID is TL type id of HelpPeerColorOption.
HelpPeerColorProfileSetTypeID is TL type id of HelpPeerColorProfileSet.
HelpPeerColorsClassName is schema name of HelpPeerColorsClass.
HelpPeerColorSetClassName is schema name of HelpPeerColorSetClass.
HelpPeerColorSetTypeID is TL type id of HelpPeerColorSet.
HelpPeerColorsNotModifiedTypeID is TL type id of HelpPeerColorsNotModified.
HelpPeerColorsTypeID is TL type id of HelpPeerColors.
HelpPremiumPromoTypeID is TL type id of HelpPremiumPromo.
HelpPromoDataClassName is schema name of HelpPromoDataClass.
HelpPromoDataEmptyTypeID is TL type id of HelpPromoDataEmpty.
HelpPromoDataTypeID is TL type id of HelpPromoData.
HelpRecentMeURLsTypeID is TL type id of HelpRecentMeURLs.
HelpSaveAppLogRequestTypeID is TL type id of HelpSaveAppLogRequest.
HelpSetBotUpdatesStatusRequestTypeID is TL type id of HelpSetBotUpdatesStatusRequest.
HelpSupportNameTypeID is TL type id of HelpSupportName.
HelpSupportTypeID is TL type id of HelpSupport.
HelpTermsOfServiceTypeID is TL type id of HelpTermsOfService.
HelpTermsOfServiceUpdateClassName is schema name of HelpTermsOfServiceUpdateClass.
HelpTermsOfServiceUpdateEmptyTypeID is TL type id of HelpTermsOfServiceUpdateEmpty.
HelpTermsOfServiceUpdateTypeID is TL type id of HelpTermsOfServiceUpdate.
HelpUserInfoClassName is schema name of HelpUserInfoClass.
HelpUserInfoEmptyTypeID is TL type id of HelpUserInfoEmpty.
HelpUserInfoTypeID is TL type id of HelpUserInfo.
HighScoreTypeID is TL type id of HighScore.
ImportedContactTypeID is TL type id of ImportedContact.
InitConnectionRequestTypeID is TL type id of InitConnectionRequest.
InlineBotSwitchPMTypeID is TL type id of InlineBotSwitchPM.
InlineBotWebViewTypeID is TL type id of InlineBotWebView.
InlineQueryPeerTypeBotPMTypeID is TL type id of InlineQueryPeerTypeBotPM.
InlineQueryPeerTypeBroadcastTypeID is TL type id of InlineQueryPeerTypeBroadcast.
InlineQueryPeerTypeChatTypeID is TL type id of InlineQueryPeerTypeChat.
InlineQueryPeerTypeClassName is schema name of InlineQueryPeerTypeClass.
InlineQueryPeerTypeMegagroupTypeID is TL type id of InlineQueryPeerTypeMegagroup.
InlineQueryPeerTypePMTypeID is TL type id of InlineQueryPeerTypePM.
InlineQueryPeerTypeSameBotPMTypeID is TL type id of InlineQueryPeerTypeSameBotPM.
InputAppEventTypeID is TL type id of InputAppEvent.
InputBotAppClassName is schema name of InputBotAppClass.
InputBotAppIDTypeID is TL type id of InputBotAppID.
InputBotAppShortNameTypeID is TL type id of InputBotAppShortName.
InputBotInlineMessageClassName is schema name of InputBotInlineMessageClass.
InputBotInlineMessageGameTypeID is TL type id of InputBotInlineMessageGame.
InputBotInlineMessageID64TypeID is TL type id of InputBotInlineMessageID64.
InputBotInlineMessageIDClassName is schema name of InputBotInlineMessageIDClass.
InputBotInlineMessageIDTypeID is TL type id of InputBotInlineMessageID.
InputBotInlineMessageMediaAutoTypeID is TL type id of InputBotInlineMessageMediaAuto.
InputBotInlineMessageMediaContactTypeID is TL type id of InputBotInlineMessageMediaContact.
InputBotInlineMessageMediaGeoTypeID is TL type id of InputBotInlineMessageMediaGeo.
InputBotInlineMessageMediaInvoiceTypeID is TL type id of InputBotInlineMessageMediaInvoice.
InputBotInlineMessageMediaVenueTypeID is TL type id of InputBotInlineMessageMediaVenue.
InputBotInlineMessageMediaWebPageTypeID is TL type id of InputBotInlineMessageMediaWebPage.
InputBotInlineMessageTextTypeID is TL type id of InputBotInlineMessageText.
InputBotInlineResultClassName is schema name of InputBotInlineResultClass.
InputBotInlineResultDocumentTypeID is TL type id of InputBotInlineResultDocument.
InputBotInlineResultGameTypeID is TL type id of InputBotInlineResultGame.
InputBotInlineResultPhotoTypeID is TL type id of InputBotInlineResultPhoto.
InputBotInlineResultTypeID is TL type id of InputBotInlineResult.
InputChannelClassName is schema name of InputChannelClass.
InputChannelEmptyTypeID is TL type id of InputChannelEmpty.
InputChannelFromMessageTypeID is TL type id of InputChannelFromMessage.
InputChannelTypeID is TL type id of InputChannel.
InputChatlistDialogFilterTypeID is TL type id of InputChatlistDialogFilter.
InputChatPhotoClassName is schema name of InputChatPhotoClass.
InputChatPhotoEmptyTypeID is TL type id of InputChatPhotoEmpty.
InputChatPhotoTypeID is TL type id of InputChatPhoto.
InputChatUploadedPhotoTypeID is TL type id of InputChatUploadedPhoto.
InputCheckPasswordEmptyTypeID is TL type id of InputCheckPasswordEmpty.
InputCheckPasswordSRPClassName is schema name of InputCheckPasswordSRPClass.
InputCheckPasswordSRPTypeID is TL type id of InputCheckPasswordSRP.
InputClientProxyTypeID is TL type id of InputClientProxy.
InputDialogPeerClassName is schema name of InputDialogPeerClass.
InputDialogPeerFolderTypeID is TL type id of InputDialogPeerFolder.
InputDialogPeerTypeID is TL type id of InputDialogPeer.
InputDocumentClassName is schema name of InputDocumentClass.
InputDocumentEmptyTypeID is TL type id of InputDocumentEmpty.
InputDocumentFileLocationTypeID is TL type id of InputDocumentFileLocation.
InputDocumentTypeID is TL type id of InputDocument.
InputEncryptedChatTypeID is TL type id of InputEncryptedChat.
InputEncryptedFileBigUploadedTypeID is TL type id of InputEncryptedFileBigUploaded.
InputEncryptedFileClassName is schema name of InputEncryptedFileClass.
InputEncryptedFileEmptyTypeID is TL type id of InputEncryptedFileEmpty.
InputEncryptedFileLocationTypeID is TL type id of InputEncryptedFileLocation.
InputEncryptedFileTypeID is TL type id of InputEncryptedFile.
InputEncryptedFileUploadedTypeID is TL type id of InputEncryptedFileUploaded.
InputFileBigTypeID is TL type id of InputFileBig.
InputFileClassName is schema name of InputFileClass.
InputFileLocationClassName is schema name of InputFileLocationClass.
InputFileLocationTypeID is TL type id of InputFileLocation.
InputFileTypeID is TL type id of InputFile.
InputFolderPeerTypeID is TL type id of InputFolderPeer.
InputGameClassName is schema name of InputGameClass.
InputGameIDTypeID is TL type id of InputGameID.
InputGameShortNameTypeID is TL type id of InputGameShortName.
InputGeoPointClassName is schema name of InputGeoPointClass.
InputGeoPointEmptyTypeID is TL type id of InputGeoPointEmpty.
InputGeoPointTypeID is TL type id of InputGeoPoint.
InputGroupCallStreamTypeID is TL type id of InputGroupCallStream.
InputGroupCallTypeID is TL type id of InputGroupCall.
InputInvoiceClassName is schema name of InputInvoiceClass.
InputInvoiceMessageTypeID is TL type id of InputInvoiceMessage.
InputInvoicePremiumGiftCodeTypeID is TL type id of InputInvoicePremiumGiftCode.
InputInvoiceSlugTypeID is TL type id of InputInvoiceSlug.
InputKeyboardButtonURLAuthTypeID is TL type id of InputKeyboardButtonURLAuth.
InputKeyboardButtonUserProfileTypeID is TL type id of InputKeyboardButtonUserProfile.
InputMediaAreaChannelPostTypeID is TL type id of InputMediaAreaChannelPost.
InputMediaAreaVenueTypeID is TL type id of InputMediaAreaVenue.
InputMediaClassName is schema name of InputMediaClass.
InputMediaContactTypeID is TL type id of InputMediaContact.
InputMediaDiceTypeID is TL type id of InputMediaDice.
InputMediaDocumentExternalTypeID is TL type id of InputMediaDocumentExternal.
InputMediaDocumentTypeID is TL type id of InputMediaDocument.
InputMediaEmptyTypeID is TL type id of InputMediaEmpty.
InputMediaGameTypeID is TL type id of InputMediaGame.
InputMediaGeoLiveTypeID is TL type id of InputMediaGeoLive.
InputMediaGeoPointTypeID is TL type id of InputMediaGeoPoint.
InputMediaInvoiceTypeID is TL type id of InputMediaInvoice.
InputMediaPhotoExternalTypeID is TL type id of InputMediaPhotoExternal.
InputMediaPhotoTypeID is TL type id of InputMediaPhoto.
InputMediaPollTypeID is TL type id of InputMediaPoll.
InputMediaStoryTypeID is TL type id of InputMediaStory.
InputMediaUploadedDocumentTypeID is TL type id of InputMediaUploadedDocument.
InputMediaUploadedPhotoTypeID is TL type id of InputMediaUploadedPhoto.
InputMediaVenueTypeID is TL type id of InputMediaVenue.
InputMediaWebPageTypeID is TL type id of InputMediaWebPage.
InputMessageCallbackQueryTypeID is TL type id of InputMessageCallbackQuery.
InputMessageClassName is schema name of InputMessageClass.
InputMessageEntityMentionNameTypeID is TL type id of InputMessageEntityMentionName.
InputMessageIDTypeID is TL type id of InputMessageID.
InputMessagePinnedTypeID is TL type id of InputMessagePinned.
InputMessageReplyToTypeID is TL type id of InputMessageReplyTo.
InputMessagesFilterChatPhotosTypeID is TL type id of InputMessagesFilterChatPhotos.
InputMessagesFilterContactsTypeID is TL type id of InputMessagesFilterContacts.
InputMessagesFilterDocumentTypeID is TL type id of InputMessagesFilterDocument.
InputMessagesFilterEmptyTypeID is TL type id of InputMessagesFilterEmpty.
InputMessagesFilterGeoTypeID is TL type id of InputMessagesFilterGeo.
InputMessagesFilterGifTypeID is TL type id of InputMessagesFilterGif.
InputMessagesFilterMusicTypeID is TL type id of InputMessagesFilterMusic.
InputMessagesFilterMyMentionsTypeID is TL type id of InputMessagesFilterMyMentions.
InputMessagesFilterPhoneCallsTypeID is TL type id of InputMessagesFilterPhoneCalls.
InputMessagesFilterPhotosTypeID is TL type id of InputMessagesFilterPhotos.
InputMessagesFilterPhotoVideoTypeID is TL type id of InputMessagesFilterPhotoVideo.
InputMessagesFilterPinnedTypeID is TL type id of InputMessagesFilterPinned.
InputMessagesFilterRoundVideoTypeID is TL type id of InputMessagesFilterRoundVideo.
InputMessagesFilterRoundVoiceTypeID is TL type id of InputMessagesFilterRoundVoice.
InputMessagesFilterURLTypeID is TL type id of InputMessagesFilterURL.
InputMessagesFilterVideoTypeID is TL type id of InputMessagesFilterVideo.
InputMessagesFilterVoiceTypeID is TL type id of InputMessagesFilterVoice.
InputNotifyBroadcastsTypeID is TL type id of InputNotifyBroadcasts.
InputNotifyChatsTypeID is TL type id of InputNotifyChats.
InputNotifyForumTopicTypeID is TL type id of InputNotifyForumTopic.
InputNotifyPeerClassName is schema name of InputNotifyPeerClass.
InputNotifyPeerTypeID is TL type id of InputNotifyPeer.
InputNotifyUsersTypeID is TL type id of InputNotifyUsers.
InputPaymentCredentialsApplePayTypeID is TL type id of InputPaymentCredentialsApplePay.
InputPaymentCredentialsClassName is schema name of InputPaymentCredentialsClass.
InputPaymentCredentialsGooglePayTypeID is TL type id of InputPaymentCredentialsGooglePay.
InputPaymentCredentialsSavedTypeID is TL type id of InputPaymentCredentialsSaved.
InputPaymentCredentialsTypeID is TL type id of InputPaymentCredentials.
InputPeerChannelFromMessageTypeID is TL type id of InputPeerChannelFromMessage.
InputPeerChannelTypeID is TL type id of InputPeerChannel.
InputPeerChatTypeID is TL type id of InputPeerChat.
InputPeerClassName is schema name of InputPeerClass.
InputPeerEmptyTypeID is TL type id of InputPeerEmpty.
InputPeerNotifySettingsTypeID is TL type id of InputPeerNotifySettings.
InputPeerPhotoFileLocationLegacyTypeID is TL type id of InputPeerPhotoFileLocationLegacy.
InputPeerPhotoFileLocationTypeID is TL type id of InputPeerPhotoFileLocation.
InputPeerSelfTypeID is TL type id of InputPeerSelf.
InputPeerUserFromMessageTypeID is TL type id of InputPeerUserFromMessage.
InputPeerUserTypeID is TL type id of InputPeerUser.
InputPhoneCallTypeID is TL type id of InputPhoneCall.
InputPhoneContactTypeID is TL type id of InputPhoneContact.
InputPhotoClassName is schema name of InputPhotoClass.
InputPhotoEmptyTypeID is TL type id of InputPhotoEmpty.
InputPhotoFileLocationTypeID is TL type id of InputPhotoFileLocation.
InputPhotoLegacyFileLocationTypeID is TL type id of InputPhotoLegacyFileLocation.
InputPhotoTypeID is TL type id of InputPhoto.
InputPrivacyKeyAboutTypeID is TL type id of InputPrivacyKeyAbout.
InputPrivacyKeyAddedByPhoneTypeID is TL type id of InputPrivacyKeyAddedByPhone.
InputPrivacyKeyChatInviteTypeID is TL type id of InputPrivacyKeyChatInvite.
InputPrivacyKeyClassName is schema name of InputPrivacyKeyClass.
InputPrivacyKeyForwardsTypeID is TL type id of InputPrivacyKeyForwards.
InputPrivacyKeyPhoneCallTypeID is TL type id of InputPrivacyKeyPhoneCall.
InputPrivacyKeyPhoneNumberTypeID is TL type id of InputPrivacyKeyPhoneNumber.
InputPrivacyKeyPhoneP2PTypeID is TL type id of InputPrivacyKeyPhoneP2P.
InputPrivacyKeyProfilePhotoTypeID is TL type id of InputPrivacyKeyProfilePhoto.
InputPrivacyKeyStatusTimestampTypeID is TL type id of InputPrivacyKeyStatusTimestamp.
InputPrivacyKeyVoiceMessagesTypeID is TL type id of InputPrivacyKeyVoiceMessages.
InputPrivacyRuleClassName is schema name of InputPrivacyRuleClass.
InputPrivacyValueAllowAllTypeID is TL type id of InputPrivacyValueAllowAll.
InputPrivacyValueAllowChatParticipantsTypeID is TL type id of InputPrivacyValueAllowChatParticipants.
InputPrivacyValueAllowCloseFriendsTypeID is TL type id of InputPrivacyValueAllowCloseFriends.
InputPrivacyValueAllowContactsTypeID is TL type id of InputPrivacyValueAllowContacts.
InputPrivacyValueAllowUsersTypeID is TL type id of InputPrivacyValueAllowUsers.
InputPrivacyValueDisallowAllTypeID is TL type id of InputPrivacyValueDisallowAll.
InputPrivacyValueDisallowChatParticipantsTypeID is TL type id of InputPrivacyValueDisallowChatParticipants.
InputPrivacyValueDisallowContactsTypeID is TL type id of InputPrivacyValueDisallowContacts.
InputPrivacyValueDisallowUsersTypeID is TL type id of InputPrivacyValueDisallowUsers.
InputReplyToClassName is schema name of InputReplyToClass.
InputReplyToMessageTypeID is TL type id of InputReplyToMessage.
InputReplyToStoryTypeID is TL type id of InputReplyToStory.
InputReportReasonChildAbuseTypeID is TL type id of InputReportReasonChildAbuse.
InputReportReasonCopyrightTypeID is TL type id of InputReportReasonCopyright.
InputReportReasonFakeTypeID is TL type id of InputReportReasonFake.
InputReportReasonGeoIrrelevantTypeID is TL type id of InputReportReasonGeoIrrelevant.
InputReportReasonIllegalDrugsTypeID is TL type id of InputReportReasonIllegalDrugs.
InputReportReasonOtherTypeID is TL type id of InputReportReasonOther.
InputReportReasonPersonalDetailsTypeID is TL type id of InputReportReasonPersonalDetails.
InputReportReasonPornographyTypeID is TL type id of InputReportReasonPornography.
InputReportReasonSpamTypeID is TL type id of InputReportReasonSpam.
InputReportReasonViolenceTypeID is TL type id of InputReportReasonViolence.
InputSecureFileClassName is schema name of InputSecureFileClass.
InputSecureFileLocationTypeID is TL type id of InputSecureFileLocation.
InputSecureFileTypeID is TL type id of InputSecureFile.
InputSecureFileUploadedTypeID is TL type id of InputSecureFileUploaded.
InputSecureValueTypeID is TL type id of InputSecureValue.
InputSingleMediaTypeID is TL type id of InputSingleMedia.
InputStickeredMediaClassName is schema name of InputStickeredMediaClass.
InputStickeredMediaDocumentTypeID is TL type id of InputStickeredMediaDocument.
InputStickeredMediaPhotoTypeID is TL type id of InputStickeredMediaPhoto.
InputStickerSetAnimatedEmojiAnimationsTypeID is TL type id of InputStickerSetAnimatedEmojiAnimations.
InputStickerSetAnimatedEmojiTypeID is TL type id of InputStickerSetAnimatedEmoji.
InputStickerSetClassName is schema name of InputStickerSetClass.
InputStickerSetDiceTypeID is TL type id of InputStickerSetDice.
InputStickerSetEmojiChannelDefaultStatusesTypeID is TL type id of InputStickerSetEmojiChannelDefaultStatuses.
InputStickerSetEmojiDefaultStatusesTypeID is TL type id of InputStickerSetEmojiDefaultStatuses.
InputStickerSetEmojiDefaultTopicIconsTypeID is TL type id of InputStickerSetEmojiDefaultTopicIcons.
InputStickerSetEmojiGenericAnimationsTypeID is TL type id of InputStickerSetEmojiGenericAnimations.
InputStickerSetEmptyTypeID is TL type id of InputStickerSetEmpty.
InputStickerSetIDTypeID is TL type id of InputStickerSetID.
InputStickerSetItemTypeID is TL type id of InputStickerSetItem.
InputStickerSetPremiumGiftsTypeID is TL type id of InputStickerSetPremiumGifts.
InputStickerSetShortNameTypeID is TL type id of InputStickerSetShortName.
InputStickerSetThumbLegacyTypeID is TL type id of InputStickerSetThumbLegacy.
InputStickerSetThumbTypeID is TL type id of InputStickerSetThumb.
InputStorePaymentGiftPremiumTypeID is TL type id of InputStorePaymentGiftPremium.
InputStorePaymentPremiumGiftCodeTypeID is TL type id of InputStorePaymentPremiumGiftCode.
InputStorePaymentPremiumGiveawayTypeID is TL type id of InputStorePaymentPremiumGiveaway.
InputStorePaymentPremiumSubscriptionTypeID is TL type id of InputStorePaymentPremiumSubscription.
InputStorePaymentPurposeClassName is schema name of InputStorePaymentPurposeClass.
InputTakeoutFileLocationTypeID is TL type id of InputTakeoutFileLocation.
InputThemeClassName is schema name of InputThemeClass.
InputThemeSettingsTypeID is TL type id of InputThemeSettings.
InputThemeSlugTypeID is TL type id of InputThemeSlug.
InputThemeTypeID is TL type id of InputTheme.
InputUserClassName is schema name of InputUserClass.
InputUserEmptyTypeID is TL type id of InputUserEmpty.
InputUserFromMessageTypeID is TL type id of InputUserFromMessage.
InputUserSelfTypeID is TL type id of InputUserSelf.
InputUserTypeID is TL type id of InputUser.
InputWallPaperClassName is schema name of InputWallPaperClass.
InputWallPaperNoFileTypeID is TL type id of InputWallPaperNoFile.
InputWallPaperSlugTypeID is TL type id of InputWallPaperSlug.
InputWallPaperTypeID is TL type id of InputWallPaper.
InputWebDocumentTypeID is TL type id of InputWebDocument.
InputWebFileAudioAlbumThumbLocationTypeID is TL type id of InputWebFileAudioAlbumThumbLocation.
InputWebFileGeoPointLocationTypeID is TL type id of InputWebFileGeoPointLocation.
InputWebFileLocationClassName is schema name of InputWebFileLocationClass.
InputWebFileLocationTypeID is TL type id of InputWebFileLocation.
IntTypeID is TL type id of Int.
IntVectorTypeID is TL type id of IntVector.
InvoiceTypeID is TL type id of Invoice.
InvokeAfterMsgRequestTypeID is TL type id of InvokeAfterMsgRequest.
InvokeAfterMsgsRequestTypeID is TL type id of InvokeAfterMsgsRequest.
InvokeWithLayerRequestTypeID is TL type id of InvokeWithLayerRequest.
InvokeWithMessagesRangeRequestTypeID is TL type id of InvokeWithMessagesRangeRequest.
InvokeWithoutUpdatesRequestTypeID is TL type id of InvokeWithoutUpdatesRequest.
InvokeWithTakeoutRequestTypeID is TL type id of InvokeWithTakeoutRequest.
IPPortClassName is schema name of IPPortClass.
IPPortSecretTypeID is TL type id of IPPortSecret.
IPPortTypeID is TL type id of IPPort.
JSONArrayTypeID is TL type id of JSONArray.
JSONBoolTypeID is TL type id of JSONBool.
JSONNullTypeID is TL type id of JSONNull.
JSONNumberTypeID is TL type id of JSONNumber.
JSONObjectTypeID is TL type id of JSONObject.
JSONObjectValueTypeID is TL type id of JSONObjectValue.
JSONStringTypeID is TL type id of JSONString.
JSONValueClassName is schema name of JSONValueClass.
KeyboardButtonBuyTypeID is TL type id of KeyboardButtonBuy.
KeyboardButtonCallbackTypeID is TL type id of KeyboardButtonCallback.
KeyboardButtonClassName is schema name of KeyboardButtonClass.
KeyboardButtonGameTypeID is TL type id of KeyboardButtonGame.
KeyboardButtonRequestGeoLocationTypeID is TL type id of KeyboardButtonRequestGeoLocation.
KeyboardButtonRequestPeerTypeID is TL type id of KeyboardButtonRequestPeer.
KeyboardButtonRequestPhoneTypeID is TL type id of KeyboardButtonRequestPhone.
KeyboardButtonRequestPollTypeID is TL type id of KeyboardButtonRequestPoll.
KeyboardButtonRowTypeID is TL type id of KeyboardButtonRow.
KeyboardButtonSimpleWebViewTypeID is TL type id of KeyboardButtonSimpleWebView.
KeyboardButtonSwitchInlineTypeID is TL type id of KeyboardButtonSwitchInline.
KeyboardButtonTypeID is TL type id of KeyboardButton.
KeyboardButtonURLAuthTypeID is TL type id of KeyboardButtonURLAuth.
KeyboardButtonURLTypeID is TL type id of KeyboardButtonURL.
KeyboardButtonUserProfileTypeID is TL type id of KeyboardButtonUserProfile.
KeyboardButtonWebViewTypeID is TL type id of KeyboardButtonWebView.
LabeledPriceTypeID is TL type id of LabeledPrice.
LangPackDifferenceTypeID is TL type id of LangPackDifference.
LangpackGetDifferenceRequestTypeID is TL type id of LangpackGetDifferenceRequest.
LangpackGetLangPackRequestTypeID is TL type id of LangpackGetLangPackRequest.
LangpackGetLanguageRequestTypeID is TL type id of LangpackGetLanguageRequest.
LangpackGetLanguagesRequestTypeID is TL type id of LangpackGetLanguagesRequest.
LangpackGetStringsRequestTypeID is TL type id of LangpackGetStringsRequest.
LangPackLanguageTypeID is TL type id of LangPackLanguage.
LangPackLanguageVectorTypeID is TL type id of LangPackLanguageVector.
LangPackStringClassName is schema name of LangPackStringClass.
LangPackStringClassVectorTypeID is TL type id of LangPackStringClassVector.
LangPackStringDeletedTypeID is TL type id of LangPackStringDeleted.
LangPackStringPluralizedTypeID is TL type id of LangPackStringPluralized.
LangPackStringTypeID is TL type id of LangPackString.
Layer version of schema.
LongTypeID is TL type id of Long.
LongVectorTypeID is TL type id of LongVector.
MaskCoordsTypeID is TL type id of MaskCoords.
MediaAreaChannelPostTypeID is TL type id of MediaAreaChannelPost.
MediaAreaClassName is schema name of MediaAreaClass.
MediaAreaCoordinatesTypeID is TL type id of MediaAreaCoordinates.
MediaAreaGeoPointTypeID is TL type id of MediaAreaGeoPoint.
MediaAreaSuggestedReactionTypeID is TL type id of MediaAreaSuggestedReaction.
MediaAreaVenueTypeID is TL type id of MediaAreaVenue.
MessageActionBotAllowedTypeID is TL type id of MessageActionBotAllowed.
MessageActionChannelCreateTypeID is TL type id of MessageActionChannelCreate.
MessageActionChannelMigrateFromTypeID is TL type id of MessageActionChannelMigrateFrom.
MessageActionChatAddUserTypeID is TL type id of MessageActionChatAddUser.
MessageActionChatCreateTypeID is TL type id of MessageActionChatCreate.
MessageActionChatDeletePhotoTypeID is TL type id of MessageActionChatDeletePhoto.
MessageActionChatDeleteUserTypeID is TL type id of MessageActionChatDeleteUser.
MessageActionChatEditPhotoTypeID is TL type id of MessageActionChatEditPhoto.
MessageActionChatEditTitleTypeID is TL type id of MessageActionChatEditTitle.
MessageActionChatJoinedByLinkTypeID is TL type id of MessageActionChatJoinedByLink.
MessageActionChatJoinedByRequestTypeID is TL type id of MessageActionChatJoinedByRequest.
MessageActionChatMigrateToTypeID is TL type id of MessageActionChatMigrateTo.
MessageActionClassName is schema name of MessageActionClass.
MessageActionContactSignUpTypeID is TL type id of MessageActionContactSignUp.
MessageActionCustomActionTypeID is TL type id of MessageActionCustomAction.
MessageActionEmptyTypeID is TL type id of MessageActionEmpty.
MessageActionGameScoreTypeID is TL type id of MessageActionGameScore.
MessageActionGeoProximityReachedTypeID is TL type id of MessageActionGeoProximityReached.
MessageActionGiftCodeTypeID is TL type id of MessageActionGiftCode.
MessageActionGiftPremiumTypeID is TL type id of MessageActionGiftPremium.
MessageActionGiveawayLaunchTypeID is TL type id of MessageActionGiveawayLaunch.
MessageActionGiveawayResultsTypeID is TL type id of MessageActionGiveawayResults.
MessageActionGroupCallScheduledTypeID is TL type id of MessageActionGroupCallScheduled.
MessageActionGroupCallTypeID is TL type id of MessageActionGroupCall.
MessageActionHistoryClearTypeID is TL type id of MessageActionHistoryClear.
MessageActionInviteToGroupCallTypeID is TL type id of MessageActionInviteToGroupCall.
MessageActionPaymentSentMeTypeID is TL type id of MessageActionPaymentSentMe.
MessageActionPaymentSentTypeID is TL type id of MessageActionPaymentSent.
MessageActionPhoneCallTypeID is TL type id of MessageActionPhoneCall.
MessageActionPinMessageTypeID is TL type id of MessageActionPinMessage.
MessageActionRequestedPeerTypeID is TL type id of MessageActionRequestedPeer.
MessageActionScreenshotTakenTypeID is TL type id of MessageActionScreenshotTaken.
MessageActionSecureValuesSentMeTypeID is TL type id of MessageActionSecureValuesSentMe.
MessageActionSecureValuesSentTypeID is TL type id of MessageActionSecureValuesSent.
MessageActionSetChatThemeTypeID is TL type id of MessageActionSetChatTheme.
MessageActionSetChatWallPaperTypeID is TL type id of MessageActionSetChatWallPaper.
MessageActionSetMessagesTTLTypeID is TL type id of MessageActionSetMessagesTTL.
MessageActionSuggestProfilePhotoTypeID is TL type id of MessageActionSuggestProfilePhoto.
MessageActionTopicCreateTypeID is TL type id of MessageActionTopicCreate.
MessageActionTopicEditTypeID is TL type id of MessageActionTopicEdit.
MessageActionWebViewDataSentMeTypeID is TL type id of MessageActionWebViewDataSentMe.
MessageActionWebViewDataSentTypeID is TL type id of MessageActionWebViewDataSent.
MessageClassName is schema name of MessageClass.
MessageEmptyTypeID is TL type id of MessageEmpty.
MessageEntityBankCardTypeID is TL type id of MessageEntityBankCard.
MessageEntityBlockquoteTypeID is TL type id of MessageEntityBlockquote.
MessageEntityBoldTypeID is TL type id of MessageEntityBold.
MessageEntityBotCommandTypeID is TL type id of MessageEntityBotCommand.
MessageEntityCashtagTypeID is TL type id of MessageEntityCashtag.
MessageEntityClassName is schema name of MessageEntityClass.
MessageEntityCodeTypeID is TL type id of MessageEntityCode.
MessageEntityCustomEmojiTypeID is TL type id of MessageEntityCustomEmoji.
MessageEntityEmailTypeID is TL type id of MessageEntityEmail.
MessageEntityHashtagTypeID is TL type id of MessageEntityHashtag.
MessageEntityItalicTypeID is TL type id of MessageEntityItalic.
MessageEntityMentionNameTypeID is TL type id of MessageEntityMentionName.
MessageEntityMentionTypeID is TL type id of MessageEntityMention.
MessageEntityPhoneTypeID is TL type id of MessageEntityPhone.
MessageEntityPreTypeID is TL type id of MessageEntityPre.
MessageEntitySpoilerTypeID is TL type id of MessageEntitySpoiler.
MessageEntityStrikeTypeID is TL type id of MessageEntityStrike.
MessageEntityTextURLTypeID is TL type id of MessageEntityTextURL.
MessageEntityUnderlineTypeID is TL type id of MessageEntityUnderline.
MessageEntityUnknownTypeID is TL type id of MessageEntityUnknown.
MessageEntityURLTypeID is TL type id of MessageEntityURL.
MessageExtendedMediaClassName is schema name of MessageExtendedMediaClass.
MessageExtendedMediaPreviewTypeID is TL type id of MessageExtendedMediaPreview.
MessageExtendedMediaTypeID is TL type id of MessageExtendedMedia.
MessageFwdHeaderTypeID is TL type id of MessageFwdHeader.
MessageMediaClassName is schema name of MessageMediaClass.
MessageMediaContactTypeID is TL type id of MessageMediaContact.
MessageMediaDiceTypeID is TL type id of MessageMediaDice.
MessageMediaDocumentTypeID is TL type id of MessageMediaDocument.
MessageMediaEmptyTypeID is TL type id of MessageMediaEmpty.
MessageMediaGameTypeID is TL type id of MessageMediaGame.
MessageMediaGeoLiveTypeID is TL type id of MessageMediaGeoLive.
MessageMediaGeoTypeID is TL type id of MessageMediaGeo.
MessageMediaGiveawayResultsTypeID is TL type id of MessageMediaGiveawayResults.
MessageMediaGiveawayTypeID is TL type id of MessageMediaGiveaway.
MessageMediaInvoiceTypeID is TL type id of MessageMediaInvoice.
MessageMediaPhotoTypeID is TL type id of MessageMediaPhoto.
MessageMediaPollTypeID is TL type id of MessageMediaPoll.
MessageMediaStoryTypeID is TL type id of MessageMediaStory.
MessageMediaUnsupportedTypeID is TL type id of MessageMediaUnsupported.
MessageMediaVenueTypeID is TL type id of MessageMediaVenue.
MessageMediaWebPageTypeID is TL type id of MessageMediaWebPage.
MessagePeerReactionTypeID is TL type id of MessagePeerReaction.
MessagePeerVoteClassName is schema name of MessagePeerVoteClass.
MessagePeerVoteInputOptionTypeID is TL type id of MessagePeerVoteInputOption.
MessagePeerVoteMultipleTypeID is TL type id of MessagePeerVoteMultiple.
MessagePeerVoteTypeID is TL type id of MessagePeerVote.
MessageRangeTypeID is TL type id of MessageRange.
MessageRangeVectorTypeID is TL type id of MessageRangeVector.
MessageReactionsTypeID is TL type id of MessageReactions.
MessageRepliesTypeID is TL type id of MessageReplies.
MessageReplyHeaderClassName is schema name of MessageReplyHeaderClass.
MessageReplyHeaderTypeID is TL type id of MessageReplyHeader.
MessageReplyStoryHeaderTypeID is TL type id of MessageReplyStoryHeader.
MessagesAcceptEncryptionRequestTypeID is TL type id of MessagesAcceptEncryptionRequest.
MessagesAcceptURLAuthRequestTypeID is TL type id of MessagesAcceptURLAuthRequest.
MessagesAddChatUserRequestTypeID is TL type id of MessagesAddChatUserRequest.
MessagesAffectedFoundMessagesTypeID is TL type id of MessagesAffectedFoundMessages.
MessagesAffectedHistoryTypeID is TL type id of MessagesAffectedHistory.
MessagesAffectedMessagesTypeID is TL type id of MessagesAffectedMessages.
MessagesAllStickersClassName is schema name of MessagesAllStickersClass.
MessagesAllStickersNotModifiedTypeID is TL type id of MessagesAllStickersNotModified.
MessagesAllStickersTypeID is TL type id of MessagesAllStickers.
MessagesArchivedStickersTypeID is TL type id of MessagesArchivedStickers.
MessagesAvailableReactionsClassName is schema name of MessagesAvailableReactionsClass.
MessagesAvailableReactionsNotModifiedTypeID is TL type id of MessagesAvailableReactionsNotModified.
MessagesAvailableReactionsTypeID is TL type id of MessagesAvailableReactions.
MessagesBotAppTypeID is TL type id of MessagesBotApp.
MessagesBotCallbackAnswerTypeID is TL type id of MessagesBotCallbackAnswer.
MessagesBotResultsTypeID is TL type id of MessagesBotResults.
MessagesChannelMessagesTypeID is TL type id of MessagesChannelMessages.
MessagesChatAdminsWithInvitesTypeID is TL type id of MessagesChatAdminsWithInvites.
MessagesChatFullTypeID is TL type id of MessagesChatFull.
MessagesChatInviteImportersTypeID is TL type id of MessagesChatInviteImporters.
MessagesChatsClassName is schema name of MessagesChatsClass.
MessagesChatsSliceTypeID is TL type id of MessagesChatsSlice.
MessagesChatsTypeID is TL type id of MessagesChats.
MessagesCheckChatInviteRequestTypeID is TL type id of MessagesCheckChatInviteRequest.
MessagesCheckedHistoryImportPeerTypeID is TL type id of MessagesCheckedHistoryImportPeer.
MessagesCheckHistoryImportPeerRequestTypeID is TL type id of MessagesCheckHistoryImportPeerRequest.
MessagesCheckHistoryImportRequestTypeID is TL type id of MessagesCheckHistoryImportRequest.
MessagesClearAllDraftsRequestTypeID is TL type id of MessagesClearAllDraftsRequest.
MessagesClearRecentReactionsRequestTypeID is TL type id of MessagesClearRecentReactionsRequest.
MessagesClearRecentStickersRequestTypeID is TL type id of MessagesClearRecentStickersRequest.
MessagesCreateChatRequestTypeID is TL type id of MessagesCreateChatRequest.
MessagesDeleteChatRequestTypeID is TL type id of MessagesDeleteChatRequest.
MessagesDeleteChatUserRequestTypeID is TL type id of MessagesDeleteChatUserRequest.
MessagesDeleteExportedChatInviteRequestTypeID is TL type id of MessagesDeleteExportedChatInviteRequest.
MessagesDeleteHistoryRequestTypeID is TL type id of MessagesDeleteHistoryRequest.
MessagesDeleteMessagesRequestTypeID is TL type id of MessagesDeleteMessagesRequest.
MessagesDeletePhoneCallHistoryRequestTypeID is TL type id of MessagesDeletePhoneCallHistoryRequest.
MessagesDeleteRevokedExportedChatInvitesRequestTypeID is TL type id of MessagesDeleteRevokedExportedChatInvitesRequest.
MessagesDeleteScheduledMessagesRequestTypeID is TL type id of MessagesDeleteScheduledMessagesRequest.
MessagesDhConfigClassName is schema name of MessagesDhConfigClass.
MessagesDhConfigNotModifiedTypeID is TL type id of MessagesDhConfigNotModified.
MessagesDhConfigTypeID is TL type id of MessagesDhConfig.
MessagesDialogsClassName is schema name of MessagesDialogsClass.
MessagesDialogsNotModifiedTypeID is TL type id of MessagesDialogsNotModified.
MessagesDialogsSliceTypeID is TL type id of MessagesDialogsSlice.
MessagesDialogsTypeID is TL type id of MessagesDialogs.
MessagesDiscardEncryptionRequestTypeID is TL type id of MessagesDiscardEncryptionRequest.
MessagesDiscussionMessageTypeID is TL type id of MessagesDiscussionMessage.
MessagesEditChatAboutRequestTypeID is TL type id of MessagesEditChatAboutRequest.
MessagesEditChatAdminRequestTypeID is TL type id of MessagesEditChatAdminRequest.
MessagesEditChatDefaultBannedRightsRequestTypeID is TL type id of MessagesEditChatDefaultBannedRightsRequest.
MessagesEditChatPhotoRequestTypeID is TL type id of MessagesEditChatPhotoRequest.
MessagesEditChatTitleRequestTypeID is TL type id of MessagesEditChatTitleRequest.
MessagesEditExportedChatInviteRequestTypeID is TL type id of MessagesEditExportedChatInviteRequest.
MessagesEditInlineBotMessageRequestTypeID is TL type id of MessagesEditInlineBotMessageRequest.
MessagesEditMessageRequestTypeID is TL type id of MessagesEditMessageRequest.
MessagesEmojiGroupsClassName is schema name of MessagesEmojiGroupsClass.
MessagesEmojiGroupsNotModifiedTypeID is TL type id of MessagesEmojiGroupsNotModified.
MessagesEmojiGroupsTypeID is TL type id of MessagesEmojiGroups.
MessageServiceTypeID is TL type id of MessageService.
MessagesExportChatInviteRequestTypeID is TL type id of MessagesExportChatInviteRequest.
MessagesExportedChatInviteClassName is schema name of MessagesExportedChatInviteClass.
MessagesExportedChatInviteReplacedTypeID is TL type id of MessagesExportedChatInviteReplaced.
MessagesExportedChatInvitesTypeID is TL type id of MessagesExportedChatInvites.
MessagesExportedChatInviteTypeID is TL type id of MessagesExportedChatInvite.
MessagesFavedStickersClassName is schema name of MessagesFavedStickersClass.
MessagesFavedStickersNotModifiedTypeID is TL type id of MessagesFavedStickersNotModified.
MessagesFavedStickersTypeID is TL type id of MessagesFavedStickers.
MessagesFaveStickerRequestTypeID is TL type id of MessagesFaveStickerRequest.
MessagesFeaturedStickersClassName is schema name of MessagesFeaturedStickersClass.
MessagesFeaturedStickersNotModifiedTypeID is TL type id of MessagesFeaturedStickersNotModified.
MessagesFeaturedStickersTypeID is TL type id of MessagesFeaturedStickers.
MessagesFilterClassName is schema name of MessagesFilterClass.
MessagesForumTopicsTypeID is TL type id of MessagesForumTopics.
MessagesForwardMessagesRequestTypeID is TL type id of MessagesForwardMessagesRequest.
MessagesFoundStickerSetsClassName is schema name of MessagesFoundStickerSetsClass.
MessagesFoundStickerSetsNotModifiedTypeID is TL type id of MessagesFoundStickerSetsNotModified.
MessagesFoundStickerSetsTypeID is TL type id of MessagesFoundStickerSets.
MessagesGetAdminsWithInvitesRequestTypeID is TL type id of MessagesGetAdminsWithInvitesRequest.
MessagesGetAllDraftsRequestTypeID is TL type id of MessagesGetAllDraftsRequest.
MessagesGetAllStickersRequestTypeID is TL type id of MessagesGetAllStickersRequest.
MessagesGetArchivedStickersRequestTypeID is TL type id of MessagesGetArchivedStickersRequest.
MessagesGetAttachedStickersRequestTypeID is TL type id of MessagesGetAttachedStickersRequest.
MessagesGetAttachMenuBotRequestTypeID is TL type id of MessagesGetAttachMenuBotRequest.
MessagesGetAttachMenuBotsRequestTypeID is TL type id of MessagesGetAttachMenuBotsRequest.
MessagesGetAvailableReactionsRequestTypeID is TL type id of MessagesGetAvailableReactionsRequest.
MessagesGetBotAppRequestTypeID is TL type id of MessagesGetBotAppRequest.
MessagesGetBotCallbackAnswerRequestTypeID is TL type id of MessagesGetBotCallbackAnswerRequest.
MessagesGetChatInviteImportersRequestTypeID is TL type id of MessagesGetChatInviteImportersRequest.
MessagesGetChatsRequestTypeID is TL type id of MessagesGetChatsRequest.
MessagesGetCommonChatsRequestTypeID is TL type id of MessagesGetCommonChatsRequest.
MessagesGetCustomEmojiDocumentsRequestTypeID is TL type id of MessagesGetCustomEmojiDocumentsRequest.
MessagesGetDefaultHistoryTTLRequestTypeID is TL type id of MessagesGetDefaultHistoryTTLRequest.
MessagesGetDhConfigRequestTypeID is TL type id of MessagesGetDhConfigRequest.
MessagesGetDialogFiltersRequestTypeID is TL type id of MessagesGetDialogFiltersRequest.
MessagesGetDialogsRequestTypeID is TL type id of MessagesGetDialogsRequest.
MessagesGetDialogUnreadMarksRequestTypeID is TL type id of MessagesGetDialogUnreadMarksRequest.
MessagesGetDiscussionMessageRequestTypeID is TL type id of MessagesGetDiscussionMessageRequest.
MessagesGetDocumentByHashRequestTypeID is TL type id of MessagesGetDocumentByHashRequest.
MessagesGetEmojiGroupsRequestTypeID is TL type id of MessagesGetEmojiGroupsRequest.
MessagesGetEmojiKeywordsDifferenceRequestTypeID is TL type id of MessagesGetEmojiKeywordsDifferenceRequest.
MessagesGetEmojiKeywordsLanguagesRequestTypeID is TL type id of MessagesGetEmojiKeywordsLanguagesRequest.
MessagesGetEmojiKeywordsRequestTypeID is TL type id of MessagesGetEmojiKeywordsRequest.
MessagesGetEmojiProfilePhotoGroupsRequestTypeID is TL type id of MessagesGetEmojiProfilePhotoGroupsRequest.
MessagesGetEmojiStatusGroupsRequestTypeID is TL type id of MessagesGetEmojiStatusGroupsRequest.
MessagesGetEmojiStickersRequestTypeID is TL type id of MessagesGetEmojiStickersRequest.
MessagesGetEmojiURLRequestTypeID is TL type id of MessagesGetEmojiURLRequest.
MessagesGetExportedChatInviteRequestTypeID is TL type id of MessagesGetExportedChatInviteRequest.
MessagesGetExportedChatInvitesRequestTypeID is TL type id of MessagesGetExportedChatInvitesRequest.
MessagesGetExtendedMediaRequestTypeID is TL type id of MessagesGetExtendedMediaRequest.
MessagesGetFavedStickersRequestTypeID is TL type id of MessagesGetFavedStickersRequest.
MessagesGetFeaturedEmojiStickersRequestTypeID is TL type id of MessagesGetFeaturedEmojiStickersRequest.
MessagesGetFeaturedStickersRequestTypeID is TL type id of MessagesGetFeaturedStickersRequest.
MessagesGetFullChatRequestTypeID is TL type id of MessagesGetFullChatRequest.
MessagesGetGameHighScoresRequestTypeID is TL type id of MessagesGetGameHighScoresRequest.
MessagesGetHistoryRequestTypeID is TL type id of MessagesGetHistoryRequest.
MessagesGetInlineBotResultsRequestTypeID is TL type id of MessagesGetInlineBotResultsRequest.
MessagesGetInlineGameHighScoresRequestTypeID is TL type id of MessagesGetInlineGameHighScoresRequest.
MessagesGetMaskStickersRequestTypeID is TL type id of MessagesGetMaskStickersRequest.
MessagesGetMessageEditDataRequestTypeID is TL type id of MessagesGetMessageEditDataRequest.
MessagesGetMessageReactionsListRequestTypeID is TL type id of MessagesGetMessageReactionsListRequest.
MessagesGetMessageReadParticipantsRequestTypeID is TL type id of MessagesGetMessageReadParticipantsRequest.
MessagesGetMessagesReactionsRequestTypeID is TL type id of MessagesGetMessagesReactionsRequest.
MessagesGetMessagesRequestTypeID is TL type id of MessagesGetMessagesRequest.
MessagesGetMessagesViewsRequestTypeID is TL type id of MessagesGetMessagesViewsRequest.
MessagesGetOldFeaturedStickersRequestTypeID is TL type id of MessagesGetOldFeaturedStickersRequest.
MessagesGetOnlinesRequestTypeID is TL type id of MessagesGetOnlinesRequest.
MessagesGetPeerDialogsRequestTypeID is TL type id of MessagesGetPeerDialogsRequest.
MessagesGetPeerSettingsRequestTypeID is TL type id of MessagesGetPeerSettingsRequest.
MessagesGetPinnedDialogsRequestTypeID is TL type id of MessagesGetPinnedDialogsRequest.
MessagesGetPollResultsRequestTypeID is TL type id of MessagesGetPollResultsRequest.
MessagesGetPollVotesRequestTypeID is TL type id of MessagesGetPollVotesRequest.
MessagesGetRecentLocationsRequestTypeID is TL type id of MessagesGetRecentLocationsRequest.
MessagesGetRecentReactionsRequestTypeID is TL type id of MessagesGetRecentReactionsRequest.
MessagesGetRecentStickersRequestTypeID is TL type id of MessagesGetRecentStickersRequest.
MessagesGetRepliesRequestTypeID is TL type id of MessagesGetRepliesRequest.
MessagesGetSavedGifsRequestTypeID is TL type id of MessagesGetSavedGifsRequest.
MessagesGetScheduledHistoryRequestTypeID is TL type id of MessagesGetScheduledHistoryRequest.
MessagesGetScheduledMessagesRequestTypeID is TL type id of MessagesGetScheduledMessagesRequest.
MessagesGetSearchCountersRequestTypeID is TL type id of MessagesGetSearchCountersRequest.
MessagesGetSearchResultsCalendarRequestTypeID is TL type id of MessagesGetSearchResultsCalendarRequest.
MessagesGetSearchResultsPositionsRequestTypeID is TL type id of MessagesGetSearchResultsPositionsRequest.
MessagesGetSplitRangesRequestTypeID is TL type id of MessagesGetSplitRangesRequest.
MessagesGetStickerSetRequestTypeID is TL type id of MessagesGetStickerSetRequest.
MessagesGetStickersRequestTypeID is TL type id of MessagesGetStickersRequest.
MessagesGetSuggestedDialogFiltersRequestTypeID is TL type id of MessagesGetSuggestedDialogFiltersRequest.
MessagesGetTopReactionsRequestTypeID is TL type id of MessagesGetTopReactionsRequest.
MessagesGetUnreadMentionsRequestTypeID is TL type id of MessagesGetUnreadMentionsRequest.
MessagesGetUnreadReactionsRequestTypeID is TL type id of MessagesGetUnreadReactionsRequest.
MessagesGetWebPagePreviewRequestTypeID is TL type id of MessagesGetWebPagePreviewRequest.
MessagesGetWebPageRequestTypeID is TL type id of MessagesGetWebPageRequest.
MessagesHideAllChatJoinRequestsRequestTypeID is TL type id of MessagesHideAllChatJoinRequestsRequest.
MessagesHideChatJoinRequestRequestTypeID is TL type id of MessagesHideChatJoinRequestRequest.
MessagesHidePeerSettingsBarRequestTypeID is TL type id of MessagesHidePeerSettingsBarRequest.
MessagesHighScoresTypeID is TL type id of MessagesHighScores.
MessagesHistoryImportParsedTypeID is TL type id of MessagesHistoryImportParsed.
MessagesHistoryImportTypeID is TL type id of MessagesHistoryImport.
MessagesImportChatInviteRequestTypeID is TL type id of MessagesImportChatInviteRequest.
MessagesInactiveChatsTypeID is TL type id of MessagesInactiveChats.
MessagesInitHistoryImportRequestTypeID is TL type id of MessagesInitHistoryImportRequest.
MessagesInstallStickerSetRequestTypeID is TL type id of MessagesInstallStickerSetRequest.
MessagesMarkDialogUnreadRequestTypeID is TL type id of MessagesMarkDialogUnreadRequest.
MessagesMessageEditDataTypeID is TL type id of MessagesMessageEditData.
MessagesMessageReactionsListTypeID is TL type id of MessagesMessageReactionsList.
MessagesMessagesClassName is schema name of MessagesMessagesClass.
MessagesMessagesNotModifiedTypeID is TL type id of MessagesMessagesNotModified.
MessagesMessagesSliceTypeID is TL type id of MessagesMessagesSlice.
MessagesMessagesTypeID is TL type id of MessagesMessages.
MessagesMessageViewsTypeID is TL type id of MessagesMessageViews.
MessagesMigrateChatRequestTypeID is TL type id of MessagesMigrateChatRequest.
MessagesPeerDialogsTypeID is TL type id of MessagesPeerDialogs.
MessagesPeerSettingsTypeID is TL type id of MessagesPeerSettings.
MessagesProlongWebViewRequestTypeID is TL type id of MessagesProlongWebViewRequest.
MessagesRateTranscribedAudioRequestTypeID is TL type id of MessagesRateTranscribedAudioRequest.
MessagesReactionsClassName is schema name of MessagesReactionsClass.
MessagesReactionsNotModifiedTypeID is TL type id of MessagesReactionsNotModified.
MessagesReactionsTypeID is TL type id of MessagesReactions.
MessagesReadDiscussionRequestTypeID is TL type id of MessagesReadDiscussionRequest.
MessagesReadEncryptedHistoryRequestTypeID is TL type id of MessagesReadEncryptedHistoryRequest.
MessagesReadFeaturedStickersRequestTypeID is TL type id of MessagesReadFeaturedStickersRequest.
MessagesReadHistoryRequestTypeID is TL type id of MessagesReadHistoryRequest.
MessagesReadMentionsRequestTypeID is TL type id of MessagesReadMentionsRequest.
MessagesReadMessageContentsRequestTypeID is TL type id of MessagesReadMessageContentsRequest.
MessagesReadReactionsRequestTypeID is TL type id of MessagesReadReactionsRequest.
MessagesReceivedMessagesRequestTypeID is TL type id of MessagesReceivedMessagesRequest.
MessagesReceivedQueueRequestTypeID is TL type id of MessagesReceivedQueueRequest.
MessagesRecentStickersClassName is schema name of MessagesRecentStickersClass.
MessagesRecentStickersNotModifiedTypeID is TL type id of MessagesRecentStickersNotModified.
MessagesRecentStickersTypeID is TL type id of MessagesRecentStickers.
MessagesReorderPinnedDialogsRequestTypeID is TL type id of MessagesReorderPinnedDialogsRequest.
MessagesReorderStickerSetsRequestTypeID is TL type id of MessagesReorderStickerSetsRequest.
MessagesReportEncryptedSpamRequestTypeID is TL type id of MessagesReportEncryptedSpamRequest.
MessagesReportReactionRequestTypeID is TL type id of MessagesReportReactionRequest.
MessagesReportRequestTypeID is TL type id of MessagesReportRequest.
MessagesReportSpamRequestTypeID is TL type id of MessagesReportSpamRequest.
MessagesRequestAppWebViewRequestTypeID is TL type id of MessagesRequestAppWebViewRequest.
MessagesRequestEncryptionRequestTypeID is TL type id of MessagesRequestEncryptionRequest.
MessagesRequestSimpleWebViewRequestTypeID is TL type id of MessagesRequestSimpleWebViewRequest.
MessagesRequestURLAuthRequestTypeID is TL type id of MessagesRequestURLAuthRequest.
MessagesRequestWebViewRequestTypeID is TL type id of MessagesRequestWebViewRequest.
MessagesSaveDefaultSendAsRequestTypeID is TL type id of MessagesSaveDefaultSendAsRequest.
MessagesSavedGifsClassName is schema name of MessagesSavedGifsClass.
MessagesSavedGifsNotModifiedTypeID is TL type id of MessagesSavedGifsNotModified.
MessagesSavedGifsTypeID is TL type id of MessagesSavedGifs.
MessagesSaveDraftRequestTypeID is TL type id of MessagesSaveDraftRequest.
MessagesSaveGifRequestTypeID is TL type id of MessagesSaveGifRequest.
MessagesSaveRecentStickerRequestTypeID is TL type id of MessagesSaveRecentStickerRequest.
MessagesSearchCounterTypeID is TL type id of MessagesSearchCounter.
MessagesSearchCounterVectorTypeID is TL type id of MessagesSearchCounterVector.
MessagesSearchCustomEmojiRequestTypeID is TL type id of MessagesSearchCustomEmojiRequest.
MessagesSearchEmojiStickerSetsRequestTypeID is TL type id of MessagesSearchEmojiStickerSetsRequest.
MessagesSearchGlobalRequestTypeID is TL type id of MessagesSearchGlobalRequest.
MessagesSearchRequestTypeID is TL type id of MessagesSearchRequest.
MessagesSearchResultsCalendarTypeID is TL type id of MessagesSearchResultsCalendar.
MessagesSearchResultsPositionsTypeID is TL type id of MessagesSearchResultsPositions.
MessagesSearchSentMediaRequestTypeID is TL type id of MessagesSearchSentMediaRequest.
MessagesSearchStickerSetsRequestTypeID is TL type id of MessagesSearchStickerSetsRequest.
MessagesSendBotRequestedPeerRequestTypeID is TL type id of MessagesSendBotRequestedPeerRequest.
MessagesSendEncryptedFileRequestTypeID is TL type id of MessagesSendEncryptedFileRequest.
MessagesSendEncryptedRequestTypeID is TL type id of MessagesSendEncryptedRequest.
MessagesSendEncryptedServiceRequestTypeID is TL type id of MessagesSendEncryptedServiceRequest.
MessagesSendInlineBotResultRequestTypeID is TL type id of MessagesSendInlineBotResultRequest.
MessagesSendMediaRequestTypeID is TL type id of MessagesSendMediaRequest.
MessagesSendMessageRequestTypeID is TL type id of MessagesSendMessageRequest.
MessagesSendMultiMediaRequestTypeID is TL type id of MessagesSendMultiMediaRequest.
MessagesSendReactionRequestTypeID is TL type id of MessagesSendReactionRequest.
MessagesSendScheduledMessagesRequestTypeID is TL type id of MessagesSendScheduledMessagesRequest.
MessagesSendScreenshotNotificationRequestTypeID is TL type id of MessagesSendScreenshotNotificationRequest.
MessagesSendVoteRequestTypeID is TL type id of MessagesSendVoteRequest.
MessagesSendWebViewDataRequestTypeID is TL type id of MessagesSendWebViewDataRequest.
MessagesSendWebViewResultMessageRequestTypeID is TL type id of MessagesSendWebViewResultMessageRequest.
MessagesSentEncryptedFileTypeID is TL type id of MessagesSentEncryptedFile.
MessagesSentEncryptedMessageClassName is schema name of MessagesSentEncryptedMessageClass.
MessagesSentEncryptedMessageTypeID is TL type id of MessagesSentEncryptedMessage.
MessagesSetBotCallbackAnswerRequestTypeID is TL type id of MessagesSetBotCallbackAnswerRequest.
MessagesSetBotPrecheckoutResultsRequestTypeID is TL type id of MessagesSetBotPrecheckoutResultsRequest.
MessagesSetBotShippingResultsRequestTypeID is TL type id of MessagesSetBotShippingResultsRequest.
MessagesSetChatAvailableReactionsRequestTypeID is TL type id of MessagesSetChatAvailableReactionsRequest.
MessagesSetChatThemeRequestTypeID is TL type id of MessagesSetChatThemeRequest.
MessagesSetChatWallPaperRequestTypeID is TL type id of MessagesSetChatWallPaperRequest.
MessagesSetDefaultHistoryTTLRequestTypeID is TL type id of MessagesSetDefaultHistoryTTLRequest.
MessagesSetDefaultReactionRequestTypeID is TL type id of MessagesSetDefaultReactionRequest.
MessagesSetEncryptedTypingRequestTypeID is TL type id of MessagesSetEncryptedTypingRequest.
MessagesSetGameScoreRequestTypeID is TL type id of MessagesSetGameScoreRequest.
MessagesSetHistoryTTLRequestTypeID is TL type id of MessagesSetHistoryTTLRequest.
MessagesSetInlineBotResultsRequestTypeID is TL type id of MessagesSetInlineBotResultsRequest.
MessagesSetInlineGameScoreRequestTypeID is TL type id of MessagesSetInlineGameScoreRequest.
MessagesSetTypingRequestTypeID is TL type id of MessagesSetTypingRequest.
MessagesSponsoredMessagesClassName is schema name of MessagesSponsoredMessagesClass.
MessagesSponsoredMessagesEmptyTypeID is TL type id of MessagesSponsoredMessagesEmpty.
MessagesSponsoredMessagesTypeID is TL type id of MessagesSponsoredMessages.
MessagesStartBotRequestTypeID is TL type id of MessagesStartBotRequest.
MessagesStartHistoryImportRequestTypeID is TL type id of MessagesStartHistoryImportRequest.
MessagesStickersClassName is schema name of MessagesStickersClass.
MessagesStickerSetClassName is schema name of MessagesStickerSetClass.
MessagesStickerSetInstallResultArchiveTypeID is TL type id of MessagesStickerSetInstallResultArchive.
MessagesStickerSetInstallResultClassName is schema name of MessagesStickerSetInstallResultClass.
MessagesStickerSetInstallResultSuccessTypeID is TL type id of MessagesStickerSetInstallResultSuccess.
MessagesStickerSetNotModifiedTypeID is TL type id of MessagesStickerSetNotModified.
MessagesStickerSetTypeID is TL type id of MessagesStickerSet.
MessagesStickersNotModifiedTypeID is TL type id of MessagesStickersNotModified.
MessagesStickersTypeID is TL type id of MessagesStickers.
MessagesToggleBotInAttachMenuRequestTypeID is TL type id of MessagesToggleBotInAttachMenuRequest.
MessagesToggleDialogPinRequestTypeID is TL type id of MessagesToggleDialogPinRequest.
MessagesToggleNoForwardsRequestTypeID is TL type id of MessagesToggleNoForwardsRequest.
MessagesTogglePeerTranslationsRequestTypeID is TL type id of MessagesTogglePeerTranslationsRequest.
MessagesToggleStickerSetsRequestTypeID is TL type id of MessagesToggleStickerSetsRequest.
MessagesTranscribeAudioRequestTypeID is TL type id of MessagesTranscribeAudioRequest.
MessagesTranscribedAudioTypeID is TL type id of MessagesTranscribedAudio.
MessagesTranslateResultTypeID is TL type id of MessagesTranslateResult.
MessagesTranslateTextRequestTypeID is TL type id of MessagesTranslateTextRequest.
MessagesUninstallStickerSetRequestTypeID is TL type id of MessagesUninstallStickerSetRequest.
MessagesUnpinAllMessagesRequestTypeID is TL type id of MessagesUnpinAllMessagesRequest.
MessagesUpdateDialogFilterRequestTypeID is TL type id of MessagesUpdateDialogFilterRequest.
MessagesUpdateDialogFiltersOrderRequestTypeID is TL type id of MessagesUpdateDialogFiltersOrderRequest.
MessagesUpdatePinnedMessageRequestTypeID is TL type id of MessagesUpdatePinnedMessageRequest.
MessagesUploadEncryptedFileRequestTypeID is TL type id of MessagesUploadEncryptedFileRequest.
MessagesUploadImportedMediaRequestTypeID is TL type id of MessagesUploadImportedMediaRequest.
MessagesUploadMediaRequestTypeID is TL type id of MessagesUploadMediaRequest.
MessagesVotesListTypeID is TL type id of MessagesVotesList.
MessagesWebPageTypeID is TL type id of MessagesWebPage.
MessageTypeID is TL type id of Message.
MessageViewsTypeID is TL type id of MessageViews.
MyBoostTypeID is TL type id of MyBoost.
NearestDCTypeID is TL type id of NearestDC.
NotificationSoundClassName is schema name of NotificationSoundClass.
NotificationSoundDefaultTypeID is TL type id of NotificationSoundDefault.
NotificationSoundLocalTypeID is TL type id of NotificationSoundLocal.
NotificationSoundNoneTypeID is TL type id of NotificationSoundNone.
NotificationSoundRingtoneTypeID is TL type id of NotificationSoundRingtone.
NotifyBroadcastsTypeID is TL type id of NotifyBroadcasts.
NotifyChatsTypeID is TL type id of NotifyChats.
NotifyForumTopicTypeID is TL type id of NotifyForumTopic.
NotifyPeerClassName is schema name of NotifyPeerClass.
NotifyPeerTypeID is TL type id of NotifyPeer.
NotifyUsersTypeID is TL type id of NotifyUsers.
NullTypeID is TL type id of Null.
PageBlockAnchorTypeID is TL type id of PageBlockAnchor.
PageBlockAudioTypeID is TL type id of PageBlockAudio.
PageBlockAuthorDateTypeID is TL type id of PageBlockAuthorDate.
PageBlockBlockquoteTypeID is TL type id of PageBlockBlockquote.
PageBlockChannelTypeID is TL type id of PageBlockChannel.
PageBlockClassName is schema name of PageBlockClass.
PageBlockCollageTypeID is TL type id of PageBlockCollage.
PageBlockCoverTypeID is TL type id of PageBlockCover.
PageBlockDetailsTypeID is TL type id of PageBlockDetails.
PageBlockDividerTypeID is TL type id of PageBlockDivider.
PageBlockEmbedPostTypeID is TL type id of PageBlockEmbedPost.
PageBlockEmbedTypeID is TL type id of PageBlockEmbed.
PageBlockFooterTypeID is TL type id of PageBlockFooter.
PageBlockHeaderTypeID is TL type id of PageBlockHeader.
PageBlockKickerTypeID is TL type id of PageBlockKicker.
PageBlockListTypeID is TL type id of PageBlockList.
PageBlockMapTypeID is TL type id of PageBlockMap.
PageBlockOrderedListTypeID is TL type id of PageBlockOrderedList.
PageBlockParagraphTypeID is TL type id of PageBlockParagraph.
PageBlockPhotoTypeID is TL type id of PageBlockPhoto.
PageBlockPreformattedTypeID is TL type id of PageBlockPreformatted.
PageBlockPullquoteTypeID is TL type id of PageBlockPullquote.
PageBlockRelatedArticlesTypeID is TL type id of PageBlockRelatedArticles.
PageBlockSlideshowTypeID is TL type id of PageBlockSlideshow.
PageBlockSubheaderTypeID is TL type id of PageBlockSubheader.
PageBlockSubtitleTypeID is TL type id of PageBlockSubtitle.
PageBlockTableTypeID is TL type id of PageBlockTable.
PageBlockTitleTypeID is TL type id of PageBlockTitle.
PageBlockUnsupportedTypeID is TL type id of PageBlockUnsupported.
PageBlockVideoTypeID is TL type id of PageBlockVideo.
PageCaptionTypeID is TL type id of PageCaption.
PageListItemBlocksTypeID is TL type id of PageListItemBlocks.
PageListItemClassName is schema name of PageListItemClass.
PageListItemTextTypeID is TL type id of PageListItemText.
PageListOrderedItemBlocksTypeID is TL type id of PageListOrderedItemBlocks.
PageListOrderedItemClassName is schema name of PageListOrderedItemClass.
PageListOrderedItemTextTypeID is TL type id of PageListOrderedItemText.
PageRelatedArticleTypeID is TL type id of PageRelatedArticle.
PageTableCellTypeID is TL type id of PageTableCell.
PageTableRowTypeID is TL type id of PageTableRow.
PageTypeID is TL type id of Page.
PasswordKdfAlgoClassName is schema name of PasswordKdfAlgoClass.
PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowTypeID is TL type id of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.
PasswordKdfAlgoUnknownTypeID is TL type id of PasswordKdfAlgoUnknown.
PaymentChargeTypeID is TL type id of PaymentCharge.
PaymentFormMethodTypeID is TL type id of PaymentFormMethod.
PaymentRequestedInfoTypeID is TL type id of PaymentRequestedInfo.
PaymentsApplyGiftCodeRequestTypeID is TL type id of PaymentsApplyGiftCodeRequest.
PaymentsAssignAppStoreTransactionRequestTypeID is TL type id of PaymentsAssignAppStoreTransactionRequest.
PaymentsAssignPlayMarketTransactionRequestTypeID is TL type id of PaymentsAssignPlayMarketTransactionRequest.
PaymentSavedCredentialsCardTypeID is TL type id of PaymentSavedCredentialsCard.
PaymentsBankCardDataTypeID is TL type id of PaymentsBankCardData.
PaymentsCanPurchasePremiumRequestTypeID is TL type id of PaymentsCanPurchasePremiumRequest.
PaymentsCheckedGiftCodeTypeID is TL type id of PaymentsCheckedGiftCode.
PaymentsCheckGiftCodeRequestTypeID is TL type id of PaymentsCheckGiftCodeRequest.
PaymentsClearSavedInfoRequestTypeID is TL type id of PaymentsClearSavedInfoRequest.
PaymentsExportedInvoiceTypeID is TL type id of PaymentsExportedInvoice.
PaymentsExportInvoiceRequestTypeID is TL type id of PaymentsExportInvoiceRequest.
PaymentsGetBankCardDataRequestTypeID is TL type id of PaymentsGetBankCardDataRequest.
PaymentsGetGiveawayInfoRequestTypeID is TL type id of PaymentsGetGiveawayInfoRequest.
PaymentsGetPaymentFormRequestTypeID is TL type id of PaymentsGetPaymentFormRequest.
PaymentsGetPaymentReceiptRequestTypeID is TL type id of PaymentsGetPaymentReceiptRequest.
PaymentsGetPremiumGiftCodeOptionsRequestTypeID is TL type id of PaymentsGetPremiumGiftCodeOptionsRequest.
PaymentsGetSavedInfoRequestTypeID is TL type id of PaymentsGetSavedInfoRequest.
PaymentsGiveawayInfoClassName is schema name of PaymentsGiveawayInfoClass.
PaymentsGiveawayInfoResultsTypeID is TL type id of PaymentsGiveawayInfoResults.
PaymentsGiveawayInfoTypeID is TL type id of PaymentsGiveawayInfo.
PaymentsLaunchPrepaidGiveawayRequestTypeID is TL type id of PaymentsLaunchPrepaidGiveawayRequest.
PaymentsPaymentFormTypeID is TL type id of PaymentsPaymentForm.
PaymentsPaymentReceiptTypeID is TL type id of PaymentsPaymentReceipt.
PaymentsPaymentResultClassName is schema name of PaymentsPaymentResultClass.
PaymentsPaymentResultTypeID is TL type id of PaymentsPaymentResult.
PaymentsPaymentVerificationNeededTypeID is TL type id of PaymentsPaymentVerificationNeeded.
PaymentsSavedInfoTypeID is TL type id of PaymentsSavedInfo.
PaymentsSendPaymentFormRequestTypeID is TL type id of PaymentsSendPaymentFormRequest.
PaymentsValidatedRequestedInfoTypeID is TL type id of PaymentsValidatedRequestedInfo.
PaymentsValidateRequestedInfoRequestTypeID is TL type id of PaymentsValidateRequestedInfoRequest.
PeerBlockedTypeID is TL type id of PeerBlocked.
PeerChannelTypeID is TL type id of PeerChannel.
PeerChatTypeID is TL type id of PeerChat.
PeerClassName is schema name of PeerClass.
PeerClassVectorTypeID is TL type id of PeerClassVector.
PeerColorTypeID is TL type id of PeerColor.
PeerLocatedClassName is schema name of PeerLocatedClass.
PeerLocatedTypeID is TL type id of PeerLocated.
PeerNotifySettingsTypeID is TL type id of PeerNotifySettings.
PeerSelfLocatedTypeID is TL type id of PeerSelfLocated.
PeerSettingsTypeID is TL type id of PeerSettings.
PeerStoriesTypeID is TL type id of PeerStories.
PeerUserTypeID is TL type id of PeerUser.
PhoneAcceptCallRequestTypeID is TL type id of PhoneAcceptCallRequest.
PhoneCallAcceptedTypeID is TL type id of PhoneCallAccepted.
PhoneCallClassName is schema name of PhoneCallClass.
PhoneCallDiscardedTypeID is TL type id of PhoneCallDiscarded.
PhoneCallDiscardReasonBusyTypeID is TL type id of PhoneCallDiscardReasonBusy.
PhoneCallDiscardReasonClassName is schema name of PhoneCallDiscardReasonClass.
PhoneCallDiscardReasonDisconnectTypeID is TL type id of PhoneCallDiscardReasonDisconnect.
PhoneCallDiscardReasonHangupTypeID is TL type id of PhoneCallDiscardReasonHangup.
PhoneCallDiscardReasonMissedTypeID is TL type id of PhoneCallDiscardReasonMissed.
PhoneCallEmptyTypeID is TL type id of PhoneCallEmpty.
PhoneCallProtocolTypeID is TL type id of PhoneCallProtocol.
PhoneCallRequestedTypeID is TL type id of PhoneCallRequested.
PhoneCallTypeID is TL type id of PhoneCall.
PhoneCallWaitingTypeID is TL type id of PhoneCallWaiting.
PhoneCheckGroupCallRequestTypeID is TL type id of PhoneCheckGroupCallRequest.
PhoneConfirmCallRequestTypeID is TL type id of PhoneConfirmCallRequest.
PhoneConnectionClassName is schema name of PhoneConnectionClass.
PhoneConnectionTypeID is TL type id of PhoneConnection.
PhoneConnectionWebrtcTypeID is TL type id of PhoneConnectionWebrtc.
PhoneCreateGroupCallRequestTypeID is TL type id of PhoneCreateGroupCallRequest.
PhoneDiscardCallRequestTypeID is TL type id of PhoneDiscardCallRequest.
PhoneDiscardGroupCallRequestTypeID is TL type id of PhoneDiscardGroupCallRequest.
PhoneEditGroupCallParticipantRequestTypeID is TL type id of PhoneEditGroupCallParticipantRequest.
PhoneEditGroupCallTitleRequestTypeID is TL type id of PhoneEditGroupCallTitleRequest.
PhoneExportedGroupCallInviteTypeID is TL type id of PhoneExportedGroupCallInvite.
PhoneExportGroupCallInviteRequestTypeID is TL type id of PhoneExportGroupCallInviteRequest.
PhoneGetCallConfigRequestTypeID is TL type id of PhoneGetCallConfigRequest.
PhoneGetGroupCallJoinAsRequestTypeID is TL type id of PhoneGetGroupCallJoinAsRequest.
PhoneGetGroupCallRequestTypeID is TL type id of PhoneGetGroupCallRequest.
PhoneGetGroupCallStreamChannelsRequestTypeID is TL type id of PhoneGetGroupCallStreamChannelsRequest.
PhoneGetGroupCallStreamRtmpURLRequestTypeID is TL type id of PhoneGetGroupCallStreamRtmpURLRequest.
PhoneGetGroupParticipantsRequestTypeID is TL type id of PhoneGetGroupParticipantsRequest.
PhoneGroupCallStreamChannelsTypeID is TL type id of PhoneGroupCallStreamChannels.
PhoneGroupCallStreamRtmpURLTypeID is TL type id of PhoneGroupCallStreamRtmpURL.
PhoneGroupCallTypeID is TL type id of PhoneGroupCall.
PhoneGroupParticipantsTypeID is TL type id of PhoneGroupParticipants.
PhoneInviteToGroupCallRequestTypeID is TL type id of PhoneInviteToGroupCallRequest.
PhoneJoinAsPeersTypeID is TL type id of PhoneJoinAsPeers.
PhoneJoinGroupCallPresentationRequestTypeID is TL type id of PhoneJoinGroupCallPresentationRequest.
PhoneJoinGroupCallRequestTypeID is TL type id of PhoneJoinGroupCallRequest.
PhoneLeaveGroupCallPresentationRequestTypeID is TL type id of PhoneLeaveGroupCallPresentationRequest.
PhoneLeaveGroupCallRequestTypeID is TL type id of PhoneLeaveGroupCallRequest.
PhonePhoneCallTypeID is TL type id of PhonePhoneCall.
PhoneReceivedCallRequestTypeID is TL type id of PhoneReceivedCallRequest.
PhoneRequestCallRequestTypeID is TL type id of PhoneRequestCallRequest.
PhoneSaveCallDebugRequestTypeID is TL type id of PhoneSaveCallDebugRequest.
PhoneSaveCallLogRequestTypeID is TL type id of PhoneSaveCallLogRequest.
PhoneSaveDefaultGroupCallJoinAsRequestTypeID is TL type id of PhoneSaveDefaultGroupCallJoinAsRequest.
PhoneSendSignalingDataRequestTypeID is TL type id of PhoneSendSignalingDataRequest.
PhoneSetCallRatingRequestTypeID is TL type id of PhoneSetCallRatingRequest.
PhoneStartScheduledGroupCallRequestTypeID is TL type id of PhoneStartScheduledGroupCallRequest.
PhoneToggleGroupCallRecordRequestTypeID is TL type id of PhoneToggleGroupCallRecordRequest.
PhoneToggleGroupCallSettingsRequestTypeID is TL type id of PhoneToggleGroupCallSettingsRequest.
PhoneToggleGroupCallStartSubscriptionRequestTypeID is TL type id of PhoneToggleGroupCallStartSubscriptionRequest.
PhotoCachedSizeTypeID is TL type id of PhotoCachedSize.
PhotoClassName is schema name of PhotoClass.
PhotoEmptyTypeID is TL type id of PhotoEmpty.
PhotoPathSizeTypeID is TL type id of PhotoPathSize.
PhotosDeletePhotosRequestTypeID is TL type id of PhotosDeletePhotosRequest.
PhotosGetUserPhotosRequestTypeID is TL type id of PhotosGetUserPhotosRequest.
PhotoSizeClassName is schema name of PhotoSizeClass.
PhotoSizeEmptyTypeID is TL type id of PhotoSizeEmpty.
PhotoSizeProgressiveTypeID is TL type id of PhotoSizeProgressive.
PhotoSizeTypeID is TL type id of PhotoSize.
PhotosPhotosClassName is schema name of PhotosPhotosClass.
PhotosPhotosSliceTypeID is TL type id of PhotosPhotosSlice.
PhotosPhotosTypeID is TL type id of PhotosPhotos.
PhotosPhotoTypeID is TL type id of PhotosPhoto.
PhotoStrippedSizeTypeID is TL type id of PhotoStrippedSize.
PhotosUpdateProfilePhotoRequestTypeID is TL type id of PhotosUpdateProfilePhotoRequest.
PhotosUploadContactProfilePhotoRequestTypeID is TL type id of PhotosUploadContactProfilePhotoRequest.
PhotosUploadProfilePhotoRequestTypeID is TL type id of PhotosUploadProfilePhotoRequest.
PhotoTypeID is TL type id of Photo.
PollAnswerTypeID is TL type id of PollAnswer.
PollAnswerVotersTypeID is TL type id of PollAnswerVoters.
PollResultsTypeID is TL type id of PollResults.
PollTypeID is TL type id of Poll.
PopularContactTypeID is TL type id of PopularContact.
PostAddressTypeID is TL type id of PostAddress.
PostInteractionCountersClassName is schema name of PostInteractionCountersClass.
PostInteractionCountersMessageTypeID is TL type id of PostInteractionCountersMessage.
PostInteractionCountersStoryTypeID is TL type id of PostInteractionCountersStory.
PremiumApplyBoostRequestTypeID is TL type id of PremiumApplyBoostRequest.
PremiumBoostsListTypeID is TL type id of PremiumBoostsList.
PremiumBoostsStatusTypeID is TL type id of PremiumBoostsStatus.
PremiumGetBoostsListRequestTypeID is TL type id of PremiumGetBoostsListRequest.
PremiumGetBoostsStatusRequestTypeID is TL type id of PremiumGetBoostsStatusRequest.
PremiumGetMyBoostsRequestTypeID is TL type id of PremiumGetMyBoostsRequest.
PremiumGetUserBoostsRequestTypeID is TL type id of PremiumGetUserBoostsRequest.
PremiumGiftCodeOptionTypeID is TL type id of PremiumGiftCodeOption.
PremiumGiftCodeOptionVectorTypeID is TL type id of PremiumGiftCodeOptionVector.
PremiumGiftOptionTypeID is TL type id of PremiumGiftOption.
PremiumMyBoostsTypeID is TL type id of PremiumMyBoosts.
PremiumSubscriptionOptionTypeID is TL type id of PremiumSubscriptionOption.
PrepaidGiveawayTypeID is TL type id of PrepaidGiveaway.
PrivacyKeyAboutTypeID is TL type id of PrivacyKeyAbout.
PrivacyKeyAddedByPhoneTypeID is TL type id of PrivacyKeyAddedByPhone.
PrivacyKeyChatInviteTypeID is TL type id of PrivacyKeyChatInvite.
PrivacyKeyClassName is schema name of PrivacyKeyClass.
PrivacyKeyForwardsTypeID is TL type id of PrivacyKeyForwards.
PrivacyKeyPhoneCallTypeID is TL type id of PrivacyKeyPhoneCall.
PrivacyKeyPhoneNumberTypeID is TL type id of PrivacyKeyPhoneNumber.
PrivacyKeyPhoneP2PTypeID is TL type id of PrivacyKeyPhoneP2P.
PrivacyKeyProfilePhotoTypeID is TL type id of PrivacyKeyProfilePhoto.
PrivacyKeyStatusTimestampTypeID is TL type id of PrivacyKeyStatusTimestamp.
PrivacyKeyVoiceMessagesTypeID is TL type id of PrivacyKeyVoiceMessages.
PrivacyRuleClassName is schema name of PrivacyRuleClass.
PrivacyValueAllowAllTypeID is TL type id of PrivacyValueAllowAll.
PrivacyValueAllowChatParticipantsTypeID is TL type id of PrivacyValueAllowChatParticipants.
PrivacyValueAllowCloseFriendsTypeID is TL type id of PrivacyValueAllowCloseFriends.
PrivacyValueAllowContactsTypeID is TL type id of PrivacyValueAllowContacts.
PrivacyValueAllowUsersTypeID is TL type id of PrivacyValueAllowUsers.
PrivacyValueDisallowAllTypeID is TL type id of PrivacyValueDisallowAll.
PrivacyValueDisallowChatParticipantsTypeID is TL type id of PrivacyValueDisallowChatParticipants.
PrivacyValueDisallowContactsTypeID is TL type id of PrivacyValueDisallowContacts.
PrivacyValueDisallowUsersTypeID is TL type id of PrivacyValueDisallowUsers.
PublicForwardClassName is schema name of PublicForwardClass.
PublicForwardMessageTypeID is TL type id of PublicForwardMessage.
PublicForwardStoryTypeID is TL type id of PublicForwardStory.
ReactionClassName is schema name of ReactionClass.
ReactionCountTypeID is TL type id of ReactionCount.
ReactionCustomEmojiTypeID is TL type id of ReactionCustomEmoji.
ReactionEmojiTypeID is TL type id of ReactionEmoji.
ReactionEmptyTypeID is TL type id of ReactionEmpty.
ReadParticipantDateTypeID is TL type id of ReadParticipantDate.
ReadParticipantDateVectorTypeID is TL type id of ReadParticipantDateVector.
ReceivedNotifyMessageTypeID is TL type id of ReceivedNotifyMessage.
ReceivedNotifyMessageVectorTypeID is TL type id of ReceivedNotifyMessageVector.
RecentMeURLChatInviteTypeID is TL type id of RecentMeURLChatInvite.
RecentMeURLChatTypeID is TL type id of RecentMeURLChat.
RecentMeURLClassName is schema name of RecentMeURLClass.
RecentMeURLStickerSetTypeID is TL type id of RecentMeURLStickerSet.
RecentMeURLUnknownTypeID is TL type id of RecentMeURLUnknown.
RecentMeURLUserTypeID is TL type id of RecentMeURLUser.
ReplyInlineMarkupTypeID is TL type id of ReplyInlineMarkup.
ReplyKeyboardForceReplyTypeID is TL type id of ReplyKeyboardForceReply.
ReplyKeyboardHideTypeID is TL type id of ReplyKeyboardHide.
ReplyKeyboardMarkupTypeID is TL type id of ReplyKeyboardMarkup.
ReplyMarkupClassName is schema name of ReplyMarkupClass.
ReportReasonClassName is schema name of ReportReasonClass.
RequestPeerTypeBroadcastTypeID is TL type id of RequestPeerTypeBroadcast.
RequestPeerTypeChatTypeID is TL type id of RequestPeerTypeChat.
RequestPeerTypeClassName is schema name of RequestPeerTypeClass.
RequestPeerTypeUserTypeID is TL type id of RequestPeerTypeUser.
RestrictionReasonTypeID is TL type id of RestrictionReason.
RichTextClassName is schema name of RichTextClass.
SavedPhoneContactTypeID is TL type id of SavedPhoneContact.
SavedPhoneContactVectorTypeID is TL type id of SavedPhoneContactVector.
SearchResultPositionTypeID is TL type id of SearchResultPosition.
SearchResultsCalendarPeriodTypeID is TL type id of SearchResultsCalendarPeriod.
SecureCredentialsEncryptedTypeID is TL type id of SecureCredentialsEncrypted.
SecureDataTypeID is TL type id of SecureData.
SecureFileClassName is schema name of SecureFileClass.
SecureFileEmptyTypeID is TL type id of SecureFileEmpty.
SecureFileTypeID is TL type id of SecureFile.
SecurePasswordKdfAlgoClassName is schema name of SecurePasswordKdfAlgoClass.
SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000TypeID is TL type id of SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000.
SecurePasswordKdfAlgoSHA512TypeID is TL type id of SecurePasswordKdfAlgoSHA512.
SecurePasswordKdfAlgoUnknownTypeID is TL type id of SecurePasswordKdfAlgoUnknown.
SecurePlainDataClassName is schema name of SecurePlainDataClass.
SecurePlainEmailTypeID is TL type id of SecurePlainEmail.
SecurePlainPhoneTypeID is TL type id of SecurePlainPhone.
SecureRequiredTypeClassName is schema name of SecureRequiredTypeClass.
SecureRequiredTypeOneOfTypeID is TL type id of SecureRequiredTypeOneOf.
SecureRequiredTypeTypeID is TL type id of SecureRequiredType.
SecureSecretSettingsTypeID is TL type id of SecureSecretSettings.
SecureValueErrorClassName is schema name of SecureValueErrorClass.
SecureValueErrorDataTypeID is TL type id of SecureValueErrorData.
SecureValueErrorFilesTypeID is TL type id of SecureValueErrorFiles.
SecureValueErrorFileTypeID is TL type id of SecureValueErrorFile.
SecureValueErrorFrontSideTypeID is TL type id of SecureValueErrorFrontSide.
SecureValueErrorReverseSideTypeID is TL type id of SecureValueErrorReverseSide.
SecureValueErrorSelfieTypeID is TL type id of SecureValueErrorSelfie.
SecureValueErrorTranslationFilesTypeID is TL type id of SecureValueErrorTranslationFiles.
SecureValueErrorTranslationFileTypeID is TL type id of SecureValueErrorTranslationFile.
SecureValueErrorTypeID is TL type id of SecureValueError.
SecureValueHashTypeID is TL type id of SecureValueHash.
SecureValueTypeAddressTypeID is TL type id of SecureValueTypeAddress.
SecureValueTypeBankStatementTypeID is TL type id of SecureValueTypeBankStatement.
SecureValueTypeClassName is schema name of SecureValueTypeClass.
SecureValueTypeDriverLicenseTypeID is TL type id of SecureValueTypeDriverLicense.
SecureValueTypeEmailTypeID is TL type id of SecureValueTypeEmail.
SecureValueTypeID is TL type id of SecureValue.
SecureValueTypeIdentityCardTypeID is TL type id of SecureValueTypeIdentityCard.
SecureValueTypeInternalPassportTypeID is TL type id of SecureValueTypeInternalPassport.
SecureValueTypePassportRegistrationTypeID is TL type id of SecureValueTypePassportRegistration.
SecureValueTypePassportTypeID is TL type id of SecureValueTypePassport.
SecureValueTypePersonalDetailsTypeID is TL type id of SecureValueTypePersonalDetails.
SecureValueTypePhoneTypeID is TL type id of SecureValueTypePhone.
SecureValueTypeRentalAgreementTypeID is TL type id of SecureValueTypeRentalAgreement.
SecureValueTypeTemporaryRegistrationTypeID is TL type id of SecureValueTypeTemporaryRegistration.
SecureValueTypeUtilityBillTypeID is TL type id of SecureValueTypeUtilityBill.
SecureValueVectorTypeID is TL type id of SecureValueVector.
SendAsPeerTypeID is TL type id of SendAsPeer.
SendMessageActionClassName is schema name of SendMessageActionClass.
SendMessageCancelActionTypeID is TL type id of SendMessageCancelAction.
SendMessageChooseContactActionTypeID is TL type id of SendMessageChooseContactAction.
SendMessageChooseStickerActionTypeID is TL type id of SendMessageChooseStickerAction.
SendMessageEmojiInteractionSeenTypeID is TL type id of SendMessageEmojiInteractionSeen.
SendMessageEmojiInteractionTypeID is TL type id of SendMessageEmojiInteraction.
SendMessageGamePlayActionTypeID is TL type id of SendMessageGamePlayAction.
SendMessageGeoLocationActionTypeID is TL type id of SendMessageGeoLocationAction.
SendMessageHistoryImportActionTypeID is TL type id of SendMessageHistoryImportAction.
SendMessageRecordAudioActionTypeID is TL type id of SendMessageRecordAudioAction.
SendMessageRecordRoundActionTypeID is TL type id of SendMessageRecordRoundAction.
SendMessageRecordVideoActionTypeID is TL type id of SendMessageRecordVideoAction.
SendMessageTypingActionTypeID is TL type id of SendMessageTypingAction.
SendMessageUploadAudioActionTypeID is TL type id of SendMessageUploadAudioAction.
SendMessageUploadDocumentActionTypeID is TL type id of SendMessageUploadDocumentAction.
SendMessageUploadPhotoActionTypeID is TL type id of SendMessageUploadPhotoAction.
SendMessageUploadRoundActionTypeID is TL type id of SendMessageUploadRoundAction.
SendMessageUploadVideoActionTypeID is TL type id of SendMessageUploadVideoAction.
ShippingOptionTypeID is TL type id of ShippingOption.
SimpleWebViewResultURLTypeID is TL type id of SimpleWebViewResultURL.
SpeakingInGroupCallActionTypeID is TL type id of SpeakingInGroupCallAction.
SponsoredMessageTypeID is TL type id of SponsoredMessage.
SponsoredWebPageTypeID is TL type id of SponsoredWebPage.
StatsAbsValueAndPrevTypeID is TL type id of StatsAbsValueAndPrev.
StatsBroadcastStatsTypeID is TL type id of StatsBroadcastStats.
StatsDateRangeDaysTypeID is TL type id of StatsDateRangeDays.
StatsGetBroadcastStatsRequestTypeID is TL type id of StatsGetBroadcastStatsRequest.
StatsGetMegagroupStatsRequestTypeID is TL type id of StatsGetMegagroupStatsRequest.
StatsGetMessagePublicForwardsRequestTypeID is TL type id of StatsGetMessagePublicForwardsRequest.
StatsGetMessageStatsRequestTypeID is TL type id of StatsGetMessageStatsRequest.
StatsGetStoryPublicForwardsRequestTypeID is TL type id of StatsGetStoryPublicForwardsRequest.
StatsGetStoryStatsRequestTypeID is TL type id of StatsGetStoryStatsRequest.
StatsGraphAsyncTypeID is TL type id of StatsGraphAsync.
StatsGraphClassName is schema name of StatsGraphClass.
StatsGraphErrorTypeID is TL type id of StatsGraphError.
StatsGraphTypeID is TL type id of StatsGraph.
StatsGroupTopAdminTypeID is TL type id of StatsGroupTopAdmin.
StatsGroupTopInviterTypeID is TL type id of StatsGroupTopInviter.
StatsGroupTopPosterTypeID is TL type id of StatsGroupTopPoster.
StatsLoadAsyncGraphRequestTypeID is TL type id of StatsLoadAsyncGraphRequest.
StatsMegagroupStatsTypeID is TL type id of StatsMegagroupStats.
StatsMessageStatsTypeID is TL type id of StatsMessageStats.
StatsPercentValueTypeID is TL type id of StatsPercentValue.
StatsPublicForwardsTypeID is TL type id of StatsPublicForwards.
StatsStoryStatsTypeID is TL type id of StatsStoryStats.
StatsURLTypeID is TL type id of StatsURL.
StickerKeywordTypeID is TL type id of StickerKeyword.
StickerPackTypeID is TL type id of StickerPack.
StickersAddStickerToSetRequestTypeID is TL type id of StickersAddStickerToSetRequest.
StickersChangeStickerPositionRequestTypeID is TL type id of StickersChangeStickerPositionRequest.
StickersChangeStickerRequestTypeID is TL type id of StickersChangeStickerRequest.
StickersCheckShortNameRequestTypeID is TL type id of StickersCheckShortNameRequest.
StickersCreateStickerSetRequestTypeID is TL type id of StickersCreateStickerSetRequest.
StickersDeleteStickerSetRequestTypeID is TL type id of StickersDeleteStickerSetRequest.
StickerSetCoveredClassName is schema name of StickerSetCoveredClass.
StickerSetCoveredClassVectorTypeID is TL type id of StickerSetCoveredClassVector.
StickerSetCoveredTypeID is TL type id of StickerSetCovered.
StickerSetFullCoveredTypeID is TL type id of StickerSetFullCovered.
StickerSetMultiCoveredTypeID is TL type id of StickerSetMultiCovered.
StickerSetNoCoveredTypeID is TL type id of StickerSetNoCovered.
StickerSetTypeID is TL type id of StickerSet.
StickersRemoveStickerFromSetRequestTypeID is TL type id of StickersRemoveStickerFromSetRequest.
StickersRenameStickerSetRequestTypeID is TL type id of StickersRenameStickerSetRequest.
StickersSetStickerSetThumbRequestTypeID is TL type id of StickersSetStickerSetThumbRequest.
StickersSuggestedShortNameTypeID is TL type id of StickersSuggestedShortName.
StickersSuggestShortNameRequestTypeID is TL type id of StickersSuggestShortNameRequest.
StorageFileGifTypeID is TL type id of StorageFileGif.
StorageFileJpegTypeID is TL type id of StorageFileJpeg.
StorageFileMovTypeID is TL type id of StorageFileMov.
StorageFileMp3TypeID is TL type id of StorageFileMp3.
StorageFileMp4TypeID is TL type id of StorageFileMp4.
StorageFilePartialTypeID is TL type id of StorageFilePartial.
StorageFilePdfTypeID is TL type id of StorageFilePdf.
StorageFilePngTypeID is TL type id of StorageFilePng.
StorageFileTypeClassName is schema name of StorageFileTypeClass.
StorageFileUnknownTypeID is TL type id of StorageFileUnknown.
StorageFileWebpTypeID is TL type id of StorageFileWebp.
StoriesActivateStealthModeRequestTypeID is TL type id of StoriesActivateStealthModeRequest.
StoriesAllStoriesClassName is schema name of StoriesAllStoriesClass.
StoriesAllStoriesNotModifiedTypeID is TL type id of StoriesAllStoriesNotModified.
StoriesAllStoriesTypeID is TL type id of StoriesAllStories.
StoriesCanSendStoryRequestTypeID is TL type id of StoriesCanSendStoryRequest.
StoriesDeleteStoriesRequestTypeID is TL type id of StoriesDeleteStoriesRequest.
StoriesEditStoryRequestTypeID is TL type id of StoriesEditStoryRequest.
StoriesExportStoryLinkRequestTypeID is TL type id of StoriesExportStoryLinkRequest.
StoriesGetAllReadPeerStoriesRequestTypeID is TL type id of StoriesGetAllReadPeerStoriesRequest.
StoriesGetAllStoriesRequestTypeID is TL type id of StoriesGetAllStoriesRequest.
StoriesGetChatsToSendRequestTypeID is TL type id of StoriesGetChatsToSendRequest.
StoriesGetPeerMaxIDsRequestTypeID is TL type id of StoriesGetPeerMaxIDsRequest.
StoriesGetPeerStoriesRequestTypeID is TL type id of StoriesGetPeerStoriesRequest.
StoriesGetPinnedStoriesRequestTypeID is TL type id of StoriesGetPinnedStoriesRequest.
StoriesGetStoriesArchiveRequestTypeID is TL type id of StoriesGetStoriesArchiveRequest.
StoriesGetStoriesByIDRequestTypeID is TL type id of StoriesGetStoriesByIDRequest.
StoriesGetStoriesViewsRequestTypeID is TL type id of StoriesGetStoriesViewsRequest.
StoriesGetStoryReactionsListRequestTypeID is TL type id of StoriesGetStoryReactionsListRequest.
StoriesGetStoryViewsListRequestTypeID is TL type id of StoriesGetStoryViewsListRequest.
StoriesIncrementStoryViewsRequestTypeID is TL type id of StoriesIncrementStoryViewsRequest.
StoriesPeerStoriesTypeID is TL type id of StoriesPeerStories.
StoriesReadStoriesRequestTypeID is TL type id of StoriesReadStoriesRequest.
StoriesReportRequestTypeID is TL type id of StoriesReportRequest.
StoriesSendReactionRequestTypeID is TL type id of StoriesSendReactionRequest.
StoriesSendStoryRequestTypeID is TL type id of StoriesSendStoryRequest.
StoriesStealthModeTypeID is TL type id of StoriesStealthMode.
StoriesStoriesTypeID is TL type id of StoriesStories.
StoriesStoryReactionsListTypeID is TL type id of StoriesStoryReactionsList.
StoriesStoryViewsListTypeID is TL type id of StoriesStoryViewsList.
StoriesStoryViewsTypeID is TL type id of StoriesStoryViews.
StoriesToggleAllStoriesHiddenRequestTypeID is TL type id of StoriesToggleAllStoriesHiddenRequest.
StoriesTogglePeerStoriesHiddenRequestTypeID is TL type id of StoriesTogglePeerStoriesHiddenRequest.
StoriesTogglePinnedRequestTypeID is TL type id of StoriesTogglePinnedRequest.
StoryFwdHeaderTypeID is TL type id of StoryFwdHeader.
StoryItemClassName is schema name of StoryItemClass.
StoryItemDeletedTypeID is TL type id of StoryItemDeleted.
StoryItemSkippedTypeID is TL type id of StoryItemSkipped.
StoryItemTypeID is TL type id of StoryItem.
StoryReactionClassName is schema name of StoryReactionClass.
StoryReactionPublicForwardTypeID is TL type id of StoryReactionPublicForward.
StoryReactionPublicRepostTypeID is TL type id of StoryReactionPublicRepost.
StoryReactionTypeID is TL type id of StoryReaction.
StoryViewClassName is schema name of StoryViewClass.
StoryViewPublicForwardTypeID is TL type id of StoryViewPublicForward.
StoryViewPublicRepostTypeID is TL type id of StoryViewPublicRepost.
StoryViewsTypeID is TL type id of StoryViews.
StoryViewTypeID is TL type id of StoryView.
StringTypeID is TL type id of String.
TestUseConfigSimpleRequestTypeID is TL type id of TestUseConfigSimpleRequest.
TestUseErrorRequestTypeID is TL type id of TestUseErrorRequest.
TextAnchorTypeID is TL type id of TextAnchor.
TextBoldTypeID is TL type id of TextBold.
TextConcatTypeID is TL type id of TextConcat.
TextEmailTypeID is TL type id of TextEmail.
TextEmptyTypeID is TL type id of TextEmpty.
TextFixedTypeID is TL type id of TextFixed.
TextImageTypeID is TL type id of TextImage.
TextItalicTypeID is TL type id of TextItalic.
TextMarkedTypeID is TL type id of TextMarked.
TextPhoneTypeID is TL type id of TextPhone.
TextPlainTypeID is TL type id of TextPlain.
TextStrikeTypeID is TL type id of TextStrike.
TextSubscriptTypeID is TL type id of TextSubscript.
TextSuperscriptTypeID is TL type id of TextSuperscript.
TextUnderlineTypeID is TL type id of TextUnderline.
TextURLTypeID is TL type id of TextURL.
TextWithEntitiesTypeID is TL type id of TextWithEntities.
ThemeSettingsTypeID is TL type id of ThemeSettings.
ThemeTypeID is TL type id of Theme.
TopPeerCategoryBotsInlineTypeID is TL type id of TopPeerCategoryBotsInline.
TopPeerCategoryBotsPMTypeID is TL type id of TopPeerCategoryBotsPM.
TopPeerCategoryChannelsTypeID is TL type id of TopPeerCategoryChannels.
TopPeerCategoryClassName is schema name of TopPeerCategoryClass.
TopPeerCategoryCorrespondentsTypeID is TL type id of TopPeerCategoryCorrespondents.
TopPeerCategoryForwardChatsTypeID is TL type id of TopPeerCategoryForwardChats.
TopPeerCategoryForwardUsersTypeID is TL type id of TopPeerCategoryForwardUsers.
TopPeerCategoryGroupsTypeID is TL type id of TopPeerCategoryGroups.
TopPeerCategoryPeersTypeID is TL type id of TopPeerCategoryPeers.
TopPeerCategoryPhoneCallsTypeID is TL type id of TopPeerCategoryPhoneCalls.
TopPeerTypeID is TL type id of TopPeer.
TrueTypeID is TL type id of True.
UpdateAttachMenuBotsTypeID is TL type id of UpdateAttachMenuBots.
UpdateAutoSaveSettingsTypeID is TL type id of UpdateAutoSaveSettings.
UpdateBotCallbackQueryTypeID is TL type id of UpdateBotCallbackQuery.
UpdateBotChatBoostTypeID is TL type id of UpdateBotChatBoost.
UpdateBotChatInviteRequesterTypeID is TL type id of UpdateBotChatInviteRequester.
UpdateBotCommandsTypeID is TL type id of UpdateBotCommands.
UpdateBotInlineQueryTypeID is TL type id of UpdateBotInlineQuery.
UpdateBotInlineSendTypeID is TL type id of UpdateBotInlineSend.
UpdateBotMenuButtonTypeID is TL type id of UpdateBotMenuButton.
UpdateBotMessageReactionsTypeID is TL type id of UpdateBotMessageReactions.
UpdateBotMessageReactionTypeID is TL type id of UpdateBotMessageReaction.
UpdateBotPrecheckoutQueryTypeID is TL type id of UpdateBotPrecheckoutQuery.
UpdateBotShippingQueryTypeID is TL type id of UpdateBotShippingQuery.
UpdateBotStoppedTypeID is TL type id of UpdateBotStopped.
UpdateBotWebhookJSONQueryTypeID is TL type id of UpdateBotWebhookJSONQuery.
UpdateBotWebhookJSONTypeID is TL type id of UpdateBotWebhookJSON.
UpdateChannelAvailableMessagesTypeID is TL type id of UpdateChannelAvailableMessages.
UpdateChannelMessageForwardsTypeID is TL type id of UpdateChannelMessageForwards.
UpdateChannelMessageViewsTypeID is TL type id of UpdateChannelMessageViews.
UpdateChannelParticipantTypeID is TL type id of UpdateChannelParticipant.
UpdateChannelPinnedTopicsTypeID is TL type id of UpdateChannelPinnedTopics.
UpdateChannelPinnedTopicTypeID is TL type id of UpdateChannelPinnedTopic.
UpdateChannelReadMessagesContentsTypeID is TL type id of UpdateChannelReadMessagesContents.
UpdateChannelTooLongTypeID is TL type id of UpdateChannelTooLong.
UpdateChannelTypeID is TL type id of UpdateChannel.
UpdateChannelUserTypingTypeID is TL type id of UpdateChannelUserTyping.
UpdateChannelViewForumAsMessagesTypeID is TL type id of UpdateChannelViewForumAsMessages.
UpdateChannelWebPageTypeID is TL type id of UpdateChannelWebPage.
UpdateChatDefaultBannedRightsTypeID is TL type id of UpdateChatDefaultBannedRights.
UpdateChatParticipantAddTypeID is TL type id of UpdateChatParticipantAdd.
UpdateChatParticipantAdminTypeID is TL type id of UpdateChatParticipantAdmin.
UpdateChatParticipantDeleteTypeID is TL type id of UpdateChatParticipantDelete.
UpdateChatParticipantsTypeID is TL type id of UpdateChatParticipants.
UpdateChatParticipantTypeID is TL type id of UpdateChatParticipant.
UpdateChatTypeID is TL type id of UpdateChat.
UpdateChatUserTypingTypeID is TL type id of UpdateChatUserTyping.
UpdateClassName is schema name of UpdateClass.
UpdateConfigTypeID is TL type id of UpdateConfig.
UpdateContactsResetTypeID is TL type id of UpdateContactsReset.
UpdateDCOptionsTypeID is TL type id of UpdateDCOptions.
UpdateDeleteChannelMessagesTypeID is TL type id of UpdateDeleteChannelMessages.
UpdateDeleteMessagesTypeID is TL type id of UpdateDeleteMessages.
UpdateDeleteScheduledMessagesTypeID is TL type id of UpdateDeleteScheduledMessages.
UpdateDialogFilterOrderTypeID is TL type id of UpdateDialogFilterOrder.
UpdateDialogFiltersTypeID is TL type id of UpdateDialogFilters.
UpdateDialogFilterTypeID is TL type id of UpdateDialogFilter.
UpdateDialogPinnedTypeID is TL type id of UpdateDialogPinned.
UpdateDialogUnreadMarkTypeID is TL type id of UpdateDialogUnreadMark.
UpdateDraftMessageTypeID is TL type id of UpdateDraftMessage.
UpdateEditChannelMessageTypeID is TL type id of UpdateEditChannelMessage.
UpdateEditMessageTypeID is TL type id of UpdateEditMessage.
UpdateEncryptedChatTypingTypeID is TL type id of UpdateEncryptedChatTyping.
UpdateEncryptedMessagesReadTypeID is TL type id of UpdateEncryptedMessagesRead.
UpdateEncryptionTypeID is TL type id of UpdateEncryption.
UpdateFavedStickersTypeID is TL type id of UpdateFavedStickers.
UpdateFolderPeersTypeID is TL type id of UpdateFolderPeers.
UpdateGeoLiveViewedTypeID is TL type id of UpdateGeoLiveViewed.
UpdateGroupCallConnectionTypeID is TL type id of UpdateGroupCallConnection.
UpdateGroupCallParticipantsTypeID is TL type id of UpdateGroupCallParticipants.
UpdateGroupCallTypeID is TL type id of UpdateGroupCall.
UpdateGroupInvitePrivacyForbiddenTypeID is TL type id of UpdateGroupInvitePrivacyForbidden.
UpdateInlineBotCallbackQueryTypeID is TL type id of UpdateInlineBotCallbackQuery.
UpdateLangPackTooLongTypeID is TL type id of UpdateLangPackTooLong.
UpdateLangPackTypeID is TL type id of UpdateLangPack.
UpdateLoginTokenTypeID is TL type id of UpdateLoginToken.
UpdateMessageExtendedMediaTypeID is TL type id of UpdateMessageExtendedMedia.
UpdateMessageIDTypeID is TL type id of UpdateMessageID.
UpdateMessagePollTypeID is TL type id of UpdateMessagePoll.
UpdateMessagePollVoteTypeID is TL type id of UpdateMessagePollVote.
UpdateMessageReactionsTypeID is TL type id of UpdateMessageReactions.
UpdateMoveStickerSetToTopTypeID is TL type id of UpdateMoveStickerSetToTop.
UpdateNewAuthorizationTypeID is TL type id of UpdateNewAuthorization.
UpdateNewChannelMessageTypeID is TL type id of UpdateNewChannelMessage.
UpdateNewEncryptedMessageTypeID is TL type id of UpdateNewEncryptedMessage.
UpdateNewMessageTypeID is TL type id of UpdateNewMessage.
UpdateNewScheduledMessageTypeID is TL type id of UpdateNewScheduledMessage.
UpdateNewStickerSetTypeID is TL type id of UpdateNewStickerSet.
UpdateNotifySettingsTypeID is TL type id of UpdateNotifySettings.
UpdatePeerBlockedTypeID is TL type id of UpdatePeerBlocked.
UpdatePeerHistoryTTLTypeID is TL type id of UpdatePeerHistoryTTL.
UpdatePeerLocatedTypeID is TL type id of UpdatePeerLocated.
UpdatePeerSettingsTypeID is TL type id of UpdatePeerSettings.
UpdatePeerWallpaperTypeID is TL type id of UpdatePeerWallpaper.
UpdatePendingJoinRequestsTypeID is TL type id of UpdatePendingJoinRequests.
UpdatePhoneCallSignalingDataTypeID is TL type id of UpdatePhoneCallSignalingData.
UpdatePhoneCallTypeID is TL type id of UpdatePhoneCall.
UpdatePinnedChannelMessagesTypeID is TL type id of UpdatePinnedChannelMessages.
UpdatePinnedDialogsTypeID is TL type id of UpdatePinnedDialogs.
UpdatePinnedMessagesTypeID is TL type id of UpdatePinnedMessages.
UpdatePrivacyTypeID is TL type id of UpdatePrivacy.
UpdatePtsChangedTypeID is TL type id of UpdatePtsChanged.
UpdateReadChannelDiscussionInboxTypeID is TL type id of UpdateReadChannelDiscussionInbox.
UpdateReadChannelDiscussionOutboxTypeID is TL type id of UpdateReadChannelDiscussionOutbox.
UpdateReadChannelInboxTypeID is TL type id of UpdateReadChannelInbox.
UpdateReadChannelOutboxTypeID is TL type id of UpdateReadChannelOutbox.
UpdateReadFeaturedEmojiStickersTypeID is TL type id of UpdateReadFeaturedEmojiStickers.
UpdateReadFeaturedStickersTypeID is TL type id of UpdateReadFeaturedStickers.
UpdateReadHistoryInboxTypeID is TL type id of UpdateReadHistoryInbox.
UpdateReadHistoryOutboxTypeID is TL type id of UpdateReadHistoryOutbox.
UpdateReadMessagesContentsTypeID is TL type id of UpdateReadMessagesContents.
UpdateReadStoriesTypeID is TL type id of UpdateReadStories.
UpdateRecentEmojiStatusesTypeID is TL type id of UpdateRecentEmojiStatuses.
UpdateRecentReactionsTypeID is TL type id of UpdateRecentReactions.
UpdateRecentStickersTypeID is TL type id of UpdateRecentStickers.
UpdateSavedGifsTypeID is TL type id of UpdateSavedGifs.
UpdateSavedRingtonesTypeID is TL type id of UpdateSavedRingtones.
UpdatesChannelDifferenceClassName is schema name of UpdatesChannelDifferenceClass.
UpdatesChannelDifferenceEmptyTypeID is TL type id of UpdatesChannelDifferenceEmpty.
UpdatesChannelDifferenceTooLongTypeID is TL type id of UpdatesChannelDifferenceTooLong.
UpdatesChannelDifferenceTypeID is TL type id of UpdatesChannelDifference.
UpdatesClassName is schema name of UpdatesClass.
UpdatesCombinedTypeID is TL type id of UpdatesCombined.
UpdatesDifferenceClassName is schema name of UpdatesDifferenceClass.
UpdatesDifferenceEmptyTypeID is TL type id of UpdatesDifferenceEmpty.
UpdatesDifferenceSliceTypeID is TL type id of UpdatesDifferenceSlice.
UpdatesDifferenceTooLongTypeID is TL type id of UpdatesDifferenceTooLong.
UpdatesDifferenceTypeID is TL type id of UpdatesDifference.
UpdateSentStoryReactionTypeID is TL type id of UpdateSentStoryReaction.
UpdateServiceNotificationTypeID is TL type id of UpdateServiceNotification.
UpdatesGetChannelDifferenceRequestTypeID is TL type id of UpdatesGetChannelDifferenceRequest.
UpdatesGetDifferenceRequestTypeID is TL type id of UpdatesGetDifferenceRequest.
UpdatesGetStateRequestTypeID is TL type id of UpdatesGetStateRequest.
UpdateShortChatMessageTypeID is TL type id of UpdateShortChatMessage.
UpdateShortMessageTypeID is TL type id of UpdateShortMessage.
UpdateShortSentMessageTypeID is TL type id of UpdateShortSentMessage.
UpdateShortTypeID is TL type id of UpdateShort.
UpdatesStateTypeID is TL type id of UpdatesState.
UpdateStickerSetsOrderTypeID is TL type id of UpdateStickerSetsOrder.
UpdateStickerSetsTypeID is TL type id of UpdateStickerSets.
UpdatesTooLongTypeID is TL type id of UpdatesTooLong.
UpdateStoriesStealthModeTypeID is TL type id of UpdateStoriesStealthMode.
UpdateStoryIDTypeID is TL type id of UpdateStoryID.
UpdateStoryTypeID is TL type id of UpdateStory.
UpdatesTypeID is TL type id of Updates.
UpdateThemeTypeID is TL type id of UpdateTheme.
UpdateTranscribedAudioTypeID is TL type id of UpdateTranscribedAudio.
UpdateUserEmojiStatusTypeID is TL type id of UpdateUserEmojiStatus.
UpdateUserNameTypeID is TL type id of UpdateUserName.
UpdateUserPhoneTypeID is TL type id of UpdateUserPhone.
UpdateUserStatusTypeID is TL type id of UpdateUserStatus.
UpdateUserTypeID is TL type id of UpdateUser.
UpdateUserTypingTypeID is TL type id of UpdateUserTyping.
UpdateWebPageTypeID is TL type id of UpdateWebPage.
UpdateWebViewResultSentTypeID is TL type id of UpdateWebViewResultSent.
UploadCDNFileClassName is schema name of UploadCDNFileClass.
UploadCDNFileReuploadNeededTypeID is TL type id of UploadCDNFileReuploadNeeded.
UploadCDNFileTypeID is TL type id of UploadCDNFile.
UploadFileCDNRedirectTypeID is TL type id of UploadFileCDNRedirect.
UploadFileClassName is schema name of UploadFileClass.
UploadFileTypeID is TL type id of UploadFile.
UploadGetCDNFileHashesRequestTypeID is TL type id of UploadGetCDNFileHashesRequest.
UploadGetCDNFileRequestTypeID is TL type id of UploadGetCDNFileRequest.
UploadGetFileHashesRequestTypeID is TL type id of UploadGetFileHashesRequest.
UploadGetFileRequestTypeID is TL type id of UploadGetFileRequest.
UploadGetWebFileRequestTypeID is TL type id of UploadGetWebFileRequest.
UploadReuploadCDNFileRequestTypeID is TL type id of UploadReuploadCDNFileRequest.
UploadSaveBigFilePartRequestTypeID is TL type id of UploadSaveBigFilePartRequest.
UploadSaveFilePartRequestTypeID is TL type id of UploadSaveFilePartRequest.
UploadWebFileTypeID is TL type id of UploadWebFile.
URLAuthResultAcceptedTypeID is TL type id of URLAuthResultAccepted.
URLAuthResultClassName is schema name of URLAuthResultClass.
URLAuthResultDefaultTypeID is TL type id of URLAuthResultDefault.
URLAuthResultRequestTypeID is TL type id of URLAuthResultRequest.
UserClassName is schema name of UserClass.
UserClassVectorTypeID is TL type id of UserClassVector.
UserEmptyTypeID is TL type id of UserEmpty.
UserFullTypeID is TL type id of UserFull.
UsernameTypeID is TL type id of Username.
UserProfilePhotoClassName is schema name of UserProfilePhotoClass.
UserProfilePhotoEmptyTypeID is TL type id of UserProfilePhotoEmpty.
UserProfilePhotoTypeID is TL type id of UserProfilePhoto.
UsersGetFullUserRequestTypeID is TL type id of UsersGetFullUserRequest.
UsersGetUsersRequestTypeID is TL type id of UsersGetUsersRequest.
UsersSetSecureValueErrorsRequestTypeID is TL type id of UsersSetSecureValueErrorsRequest.
UserStatusClassName is schema name of UserStatusClass.
UserStatusEmptyTypeID is TL type id of UserStatusEmpty.
UserStatusLastMonthTypeID is TL type id of UserStatusLastMonth.
UserStatusLastWeekTypeID is TL type id of UserStatusLastWeek.
UserStatusOfflineTypeID is TL type id of UserStatusOffline.
UserStatusOnlineTypeID is TL type id of UserStatusOnline.
UserStatusRecentlyTypeID is TL type id of UserStatusRecently.
UsersUserFullTypeID is TL type id of UsersUserFull.
UserTypeID is TL type id of User.
VideoSizeClassName is schema name of VideoSizeClass.
VideoSizeEmojiMarkupTypeID is TL type id of VideoSizeEmojiMarkup.
VideoSizeStickerMarkupTypeID is TL type id of VideoSizeStickerMarkup.
VideoSizeTypeID is TL type id of VideoSize.
WallPaperClassName is schema name of WallPaperClass.
WallPaperClassVectorTypeID is TL type id of WallPaperClassVector.
WallPaperNoFileTypeID is TL type id of WallPaperNoFile.
WallPaperSettingsTypeID is TL type id of WallPaperSettings.
WallPaperTypeID is TL type id of WallPaper.
WebAuthorizationTypeID is TL type id of WebAuthorization.
WebDocumentClassName is schema name of WebDocumentClass.
WebDocumentNoProxyTypeID is TL type id of WebDocumentNoProxy.
WebDocumentTypeID is TL type id of WebDocument.
WebPageAttributeClassName is schema name of WebPageAttributeClass.
WebPageAttributeStoryTypeID is TL type id of WebPageAttributeStory.
WebPageAttributeThemeTypeID is TL type id of WebPageAttributeTheme.
WebPageClassName is schema name of WebPageClass.
WebPageEmptyTypeID is TL type id of WebPageEmpty.
WebPageNotModifiedTypeID is TL type id of WebPageNotModified.
WebPagePendingTypeID is TL type id of WebPagePending.
WebPageTypeID is TL type id of WebPage.
WebViewMessageSentTypeID is TL type id of WebViewMessageSent.
WebViewResultURLTypeID is TL type id of WebViewResultURL.