Layer 220
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

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.

Gogram Example

// ChannelsReadHistory - positional arguments
result, err := client.ChannelsReadHistory(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, 0)
if err != nil {
    // handle error
}
// result is *tg.Bool