Skip to main content

account.getNotifyExceptions

Returns list of chats with non-default notification settings

func (c *Client) AccountGetNotifyExceptions(ctx context.Context, request *AccountGetNotifyExceptionsRequest) (UpdatesClass, error)

Calling this method​

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.AccountGetNotifyExceptions(ctx, &tg.AccountGetNotifyExceptionsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})

Parameters​

NameTypeRequiredDescription
CompareSoundbool—If set, chats with non-default sound will be returned
CompareStoriesbool—If set, chats with non-default notification settings for stories will be returned
PeerInputNotifyPeerClass—If specified, only chats of the specified category will be returned

Returns​

UpdatesClass

References​