Layer 220
method Users
account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;

Parameters

Name Type Description
Key InputPrivacyKey Peer category whose privacy settings should be fetched

Possible 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