Generate a story deep link for a specific story
exportedStoryLink#3fc9053b link:string = ExportedStoryLink;
---functions---
stories.exportStoryLink#16e443ce user_id:InputUser id:int = ExportedStoryLink;
Name | Type | Description |
---|---|---|
peer | InputPeer | Peer where the story was posted |
id | int | Story ID |
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. |
Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.