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
| Name | Type | Required | Description |
|---|---|---|---|
Unread | bool | — | Mark as unread/read |
ParentPeer | InputPeerClass | — | If set, must be equal to the ID of a monoforum, and will affect the monoforum topic passed in peer. |
Peer | InputDialogPeerClass | yes | Dialog |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.markDialogUnread#8c5006f8