Generate a story deep link for a specific story

exportedStoryLink#3fc9053b link:string = ExportedStoryLink;
stories.exportStoryLink#7b8def20 peer:InputPeer id:int = ExportedStoryLink;


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



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 deep links encountered in messages, link entities and in other apps by registering OS handlers.