Layer 220
AccountSetGlobalPrivacySettings
Set global privacy settings
method
Users
Business
account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;
Parameters
| Name | Type | Description |
|---|---|---|
| Settings | GlobalPrivacySettings | Global privacy settings |
Returns
GlobalPrivacySettingsPossible 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 | The 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. |
| 400 | BUSINESS_CONNECTION_INVALID | The connection_id passed to the wrapping invoke With Business Connection call is invalid. |
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
Gogram Example
// AccountSetGlobalPrivacySettings - positional arguments result, err := client.AccountSetGlobalPrivacySettings(&tg.GlobalPrivacySettings{}) if err != nil { // handle error } // result is *tg.GlobalPrivacySettings