Layer 220
AccountGetNotifySettings
Gets current notification settings for a given user/group, from all users/all groups.
method
Users
account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputNotifyPeer | Notification source |
Returns
PeerNotifySettingsPossible 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. |
Gogram Example
// AccountGetNotifySettings - positional arguments result, err := client.AccountGetNotifySettings(&tg.InputNotifyPeer{}) if err != nil { // handle error } // result is *tg.PeerNotifySettings