Skip to main content

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

NameTypeRequiredDescription
NextboolIf 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.
HiddenboolIf set, fetches the hidden active story list, otherwise fetches the active story list, see here » for more info on the full flow.
StatestringIf 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

StoriesAllStoriesClass

References