Layer 220
AccountGetPrivacy
Get privacy settings of current account
method
Users
account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;
Parameters
| Name | Type | Description |
|---|---|---|
| Key | InputPrivacyKey | Peer category whose privacy settings should be fetched |
Returns
account.PrivacyRulesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PRIVACY_KEY_INVALID | The privacy key is invalid. |
Gogram Example
// AccountGetPrivacy - positional arguments result, err := client.AccountGetPrivacy(&tg.InputPrivacyKeyStatusTimestamp{}) if err != nil { // handle error } // result is *tg.AccountPrivacyRules