account.getPrivacy
Get privacy settings of current account
func (c *Client) AccountGetPrivacy(ctx context.Context, key InputPrivacyKeyClass) (*AccountPrivacyRules, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountGetPrivacy(ctx, key)
if err != nil {
return err
}
_ = res // *AccountPrivacyRules
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Key | InputPrivacyKeyClass | yes | Peer category whose privacy settings should be fetched |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PRIVACY_KEY_INVALID | The privacy key is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.getPrivacy#dadbc950