stories.exportStoryLink
Generate a story deep link for a specific story
func (c *Client) StoriesExportStoryLink(ctx context.Context, request *StoriesExportStoryLinkRequest) (*ExportedStoryLink, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StoriesExportStoryLink(ctx, &tg.StoriesExportStoryLinkRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *ExportedStoryLink
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer where the story was posted |
ID | int | yes | Story ID |
Returns
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.exportStoryLink#7b8def20