account.getNotifySettings
Gets current notification settings for a given user/group, from all users/all groups.
func (c *Client) AccountGetNotifySettings(ctx context.Context, peer InputNotifyPeerClass) (*PeerNotifySettings, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountGetNotifySettings(ctx, peer)
if err != nil {
return err
}
_ = res // *PeerNotifySettings
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputNotifyPeerClass | yes | Notification source |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.getNotifySettings#12b3ad31