Layer 224
ChannelsReadHistory
Mark channel/supergroup history as read
method
Users
channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | InputChannel | Channel/supergroup |
| MaxId | int | ID of message up to which messages should be marked as read |
Returns
BoolGogram Example
// ChannelsReadHistory - positional arguments result, err := client.ChannelsReadHistory(&tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, 42) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 406 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |