Skip to main content

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

NameTypeRequiredDescription
ForwardsFirstboolIf set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date.
PeerInputPeerClassyesChannel
IDintyesStory ID
ReactionReactionClassGet only reactions of this type
OffsetstringOffset for pagination (taken from the next_offset field of the returned stories StoryReactionsList); empty in the first request.
LimitintyesMaximum number of results to return, see pagination

Returns

*StoriesStoryReactionsList

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References