Skip to main content

messages.markDialogUnread

Manually mark dialog as unread

func (c *Client) MessagesMarkDialogUnread(ctx context.Context, request *MessagesMarkDialogUnreadRequest) (bool, error)

Calling this method​

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

res, err := api.MessagesMarkDialogUnread(ctx, &tg.MessagesMarkDialogUnreadRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters​

NameTypeRequiredDescription
Unreadbool—Mark as unread/read
ParentPeerInputPeerClass—If set, must be equal to the ID of a monoforum, and will affect the monoforum topic passed in peer.
PeerInputDialogPeerClassyesDialog

Returns​

bool

Possible errors​

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References​