stories.getAllStories
Fetch the List of active (or active and hidden) stories, see here » for more info on watching stories.
func (c *Client) StoriesGetAllStories(ctx context.Context, request *StoriesGetAllStoriesRequest) (StoriesAllStoriesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StoriesGetAllStories(ctx, &tg.StoriesGetAllStoriesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // StoriesAllStoriesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Next | bool | — | If next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here » for more info on the full flow. |
Hidden | bool | — | If set, fetches the hidden active story list, otherwise fetches the active story list, see here » for more info on the full flow. |
State | string | — | If next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here » for more info on the full flow. |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
stories.getAllStories#eeb0d625