account.setGlobalPrivacySettings

Set global privacy settings

 Method schema is available as of layer 116. Switch »

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 PREMIUM_ACCOUNT_REQUIRED A premium account is required to execute this action.

Related pages

Client configuration

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