account.setGlobalPrivacySettings

Set global privacy settings

globalPrivacySettings#734c4ccb flags:# archive_and_mute_new_noncontact_peers:flags.0?true keep_archived_unmuted:flags.1?true keep_archived_folders:flags.2?true = GlobalPrivacySettings;
---functions---
account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;

Parameters

Name Type Description
settings GlobalPrivacySettings Global privacy settings

Result

GlobalPrivacySettings

Possible errors

Code Type Description
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.
403 BOT_ACCESS_FORBIDDEN  
400 BUSINESS_CONNECTION_INVALID The connection_id passed to the wrapping invokeWithBusinessConnection call is invalid.
403 PREMIUM_ACCOUNT_REQUIRED A premium account is required to execute this action.

Only users can use this method

This method can be invoked over a business connection »

Related pages

Client configuration

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

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.