account.setGlobalPrivacySettings #

Set global privacy settings

Layer 223

globalPrivacySettings#fe41b34f flags:# archive_and_mute_new_noncontact_peers:flags.0?true keep_archived_unmuted:flags.1?true keep_archived_folders:flags.2?true hide_read_marks:flags.3?true new_noncontact_peers_require_premium:flags.4?true display_gifts_button:flags.7?true noncontact_peers_paid_stars:flags.5?long disallowed_gifts:flags.6?DisallowedGiftsSettings = GlobalPrivacySettings;
---functions---
account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;

Parameters #

NameTypeDescription
settingsGlobalPrivacySettingsGlobal privacy settings

Result #

GlobalPrivacySettings

Only users can use this method #

This method can be invoked over a business connection » #

Possible errors #

CodeTypeDescription
400AUTOARCHIVE_NOT_AVAILABLEThe 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.
403BOT_ACCESS_FORBIDDENThe specified method can be used over a business connection for some operations, but the specified query attempted an operation that is not allowed over a business connection.
400BUSINESS_CONNECTION_INVALIDThe connection_id passed to the wrapping invokeWithBusinessConnection call is invalid.
403PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.

Client configuration #

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

Connected business bots #

Users can connect Telegram bots that will process and answer messages on their behalf. This allows them to seamlessly integrate any existing tools and workflows, or add AI assistants that manage their chats.

Telegram Business #

Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.