Skip to main content

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

NameTypeRequiredDescription
PeerInputNotifyPeerClassyesNotification source

Returns

*PeerNotifySettings

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400PEER_ID_INVALIDThe provided peer id is invalid.

References