stories.getStoryReactionsList
Get the reaction and interaction list of a story posted to a channel, along with the sender of each reaction. Can only be used by channel admins.
func (c *Client) StoriesGetStoryReactionsList(ctx context.Context, request *StoriesGetStoryReactionsListRequest) (*StoriesStoryReactionsList, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StoriesGetStoryReactionsList(ctx, &tg.StoriesGetStoryReactionsListRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *StoriesStoryReactionsList
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ForwardsFirst | bool | — | If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date. |
Peer | InputPeerClass | yes | Channel |
ID | int | yes | Story ID |
Reaction | ReactionClass | — | Get only reactions of this type |
Offset | string | — | Offset for pagination (taken from the next_offset field of the returned stories StoryReactionsList); empty in the first request. |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.getStoryReactionsList#b9b2881f