Skip to main content

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

NameTypeRequiredDescription
PeerInputPeerClassyesPeer where the stories were posted.
ID[]intyesIDs of the stories (maximum 200 at a time).

Returns

bool

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.
400STORY_ID_EMPTYYou specified no story IDs.

References