Layer 220
StoriesExportStoryLink
Generate a story deep link for a specific story
method
Users
stories.exportStoryLink#7b8def20 peer:InputPeer id:int = ExportedStoryLink;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer where the story was posted |
| Id | int | Story ID |
Returns
ExportedStoryLinkPossible 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. |
Gogram Example
// StoriesExportStoryLink - positional arguments result, err := client.StoriesExportStoryLink(&tg.InputPeerUser{UserID: int64(123456789)}, 0) if err != nil { // handle error } // result is *tg.ExportedStoryLink