Layer 220
StoriesGetStoryReactionsList
Get the reaction and interaction list of a story posted to a channel, along with the sender of each reaction.
method
Users
stories.getStoryReactionsList#b9b2881f flags:# forwards_first:flags.2?true peer:InputPeer id:int reaction:flags.0?Reaction offset:flags.1?string limit:int = stories.StoryReactionsList;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| ForwardsFirst | flags.2?true | If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date. |
| Peer | InputPeer | Channel |
| Id | int | Story ID |
| Reaction | flags.0?Reaction | Get only reactions of this type |
| Offset | flags.1?string | Offset for pagination (taken from the next_offset field of the returned stories. Story Reactions List ); empty in the first request. |
| Limit | int | Maximum number of results to return, see pagination |
Returns
stories.StoryReactionsListPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// StoriesGetStoryReactionsList - using Params struct result, err := client.StoriesGetStoryReactionsList(&tg.StoriesGetStoryReactionsListParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, Id: 0, Limit: 0, // Optional fields: // ForwardsFirst: true, // Reaction: &tg.Reaction{}, // Offset: "...", }) if err != nil { // handle error } // result is *tg.StoriesStoryReactionsList