stories.incrementStoryViews
Increment the view counter of one or more stories.
func (c *Client) StoriesIncrementStoryViews(ctx context.Context, request *StoriesIncrementStoryViewsRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StoriesIncrementStoryViews(ctx, &tg.StoriesIncrementStoryViewsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer where the stories were posted. |
ID | []int | yes | IDs of the stories (maximum 200 at a time). |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 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.incrementStoryViews#b2028afb