stories.exportStoryLink #

Generate a story deep link for a specific story

Layer 223

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

Parameters #

NameTypeDescription
peerInputPeerPeer where the story was posted
idintStory ID

Result #

ExportedStoryLink

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.
400STORY_ID_EMPTYYou specified no story IDs.
400USER_PUBLIC_MISSINGCannot generate a link to stories posted by a peer without a username.

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