Skip to main content

stories.getStoriesViews

Obtain info about the view count, forward count, reactions and recent viewers of one or more stories.

func (c *Client) StoriesGetStoriesViews(ctx context.Context, request *StoriesGetStoriesViewsRequest) (*StoriesStoryViews, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.StoriesGetStoriesViews(ctx, &tg.StoriesGetStoriesViewsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *StoriesStoryViews
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesPeer whose stories should be fetched
ID[]intyesStory IDs

Returns

*StoriesStoryViews

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400PEER_ID_INVALIDThe provided peer id is invalid.
400STORY_ID_EMPTYYou specified no story IDs.

References