stories.exportStoryLink

Generate a story deep link for a specific story

 Method schema is available as of layer 164. Switch ยป

Parameters

Name Type Description
peer InputPeer Peer where the story was posted
id int Story ID

Result

ExportedStoryLink

Possible errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.
400 STORY_ID_EMPTY You specified no story IDs.
400 USER_PUBLIC_MISSING Cannot generate a link to stories posted by a peer without a username.

Related pages

Deep links

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.