messages.getMessageReactionsList
Get message reaction list, along with the sender of each reaction.
func (c *Client) MessagesGetMessageReactionsList(ctx context.Context, request *MessagesGetMessageReactionsListRequest) (*MessagesMessageReactionsList, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetMessageReactionsList(ctx, &tg.MessagesGetMessageReactionsListRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *MessagesMessageReactionsList
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer |
ID | int | yes | Message ID |
Reaction | ReactionClass | — | Get only reactions of this type |
Offset | string | — | Offset for pagination (taken from the next_offset field of the returned messages MessageReactionsList); empty in the first request. |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 403 | BROADCAST_FORBIDDEN | Channel poll voters and reactions cannot be fetched to prevent deanonymization. |
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getMessageReactionsList#461b3f48