export_story_link()

Client.export_story_link()

Get one story link from an user by using story identifiers.

Usable by Users Bots
Parameters:
  • chat_id (``int`` | ``str``) – Unique identifier (int) or username (str) of the target user/channel. For your personal story you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str). You can also use user profile/channel public link in form of t.me/<username> (str).

  • story_id (``int``) – Pass a single story identifier of story (as integers).

Returns:

:obj:`~pyrogram.types.ExportedStoryLink` (a single story link is returned.)

Example

# Get story link
await app.export_story_link(chat_id, 12345)
Raises:

ValueError – In case of invalid arguments.: