Layer 220
ChannelsReadMessageContents
Mark channel/supergroup message contents as read, emitting an update Channel Read Messages Contents.
method
Users
channels.readMessageContents#eab5dc38 channel:InputChannel id:Vector<int> = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | InputChannel | Channel/supergroup |
| Id | Vector<int> | IDs of messages whose contents should be marked as read |
Returns
BoolPossible 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. |
Gogram Example
// ChannelsReadMessageContents - positional arguments result, err := client.ChannelsReadMessageContents(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, []int{}) if err != nil { // handle error } // result is *tg.Bool