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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer whose stories should be fetched |
ID | []int | yes | Story IDs |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | STORY_ID_EMPTY | You specified no story IDs. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.getStoriesViews#28e16cc8