messages.readReactions
Mark message reactions » as read
func (c *Client) MessagesReadReactions(ctx context.Context, request *MessagesReadReactionsRequest) (*MessagesAffectedHistory, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesReadReactions(ctx, &tg.MessagesReadReactionsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *MessagesAffectedHistory
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer |
TopMsgID | int | — | Mark as read only reactions to messages within the specified forum topic |
SavedPeerID | InputPeerClass | — | If set, must be equal to the ID of a monoforum topic: will affect that topic in the monoforum passed in peer. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.readReactions#9ec44f93