messages.getUnreadReactions
Get unread reactions to messages you sent
func (c *Client) MessagesGetUnreadReactions(ctx context.Context, request *MessagesGetUnreadReactionsRequest) (MessagesMessagesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetUnreadReactions(ctx, &tg.MessagesGetUnreadReactionsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesMessagesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer |
TopMsgID | int | — | If set, considers 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. |
OffsetID | int | yes | Offsets for pagination, for more info click here |
AddOffset | int | yes | Offsets for pagination, for more info click here |
Limit | int | yes | Maximum number of results to return, see pagination |
MaxID | int | yes | Only return reactions for messages up until this message ID |
MinID | int | yes | Only return reactions for messages starting from this message ID |
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.getUnreadReactions#bd7f90ac