get_story_stats()

async Client.get_story_stats()

Get statistics for a certain story.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat that posted the story.

  • story_id (int) – Story ID.

  • dark (bool, optional) – Whether to enable dark theme for graph colors.

Returns:

StoryStats – The story statistics.

Example

stats = await app.get_story_stats(chat_id, story_id)