export_story_link()

async Client.export_story_link()

Generate a story deep link for a specific story.

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

  • story_id (int) – Identifier of the story.

Returns:

str – On success, the exported story link is returned.

Example

link = await app.export_story_link(chat_id, story_id)
print(link)