Layer 220
MessagesMarkDialogUnread
Manually mark dialog as unread
method
Users
messages.markDialogUnread#8c5006f8 flags:# unread:flags.0?true parent_peer:flags.1?InputPeer peer:InputDialogPeer = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Unread | flags.0?true | Mark as unread/read |
| ParentPeer | flags.1?InputPeer | If set, must be equal to the ID of a monoforum, and will affect the monoforum topic passed in peer. |
| Peer | InputDialogPeer | Dialog |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// MessagesMarkDialogUnread - using Params struct result, err := client.MessagesMarkDialogUnread(&tg.MessagesMarkDialogUnreadParams{ Peer: &tg.InputDialogPeer{}, // Optional fields: // Unread: true, // ParentPeer: &tg.InputPeerUser{UserID: int64(123456789)}, }) if err != nil { // handle error } // result is *tg.Bool