Layer 227
StoriesEditStory
Edit an uploaded story
method
Users
Bots
Business
stories.editStory#b583ba46 flags:# peer:InputPeer id:int media:flags.0?InputMedia media_areas:flags.3?Vector<MediaArea> caption:flags.1?string entities:flags.1?Vector<MessageEntity> privacy_rules:flags.2?Vector<InputPrivacyRule> = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer where the story was posted. |
| Id | int | ID of story to edit. |
| Media | flags .0? InputMedia | If specified, replaces the story media. |
| MediaAreas | flags .3? Vector < MediaArea > | Media areas associated to the story, see here for more info. |
| Caption | flags .1? string | If specified, replaces the story caption. |
| Entities | flags .1? Vector < MessageEntity > | Message entities for styled text in the caption, if allowed by the stories_entities client configuration parameter. |
| PrivacyRules | flags .2? Vector < InputPrivacyRule > | If specified, alters the privacy settings of the story, changing who can or can't view the story. |
| Music | flags .4? InputDocument | If set, the new audio track to play as background music for the story. |
Returns
UpdatesGogram Example
// StoriesEditStory - using Params struct result, err := client.StoriesEditStory(&tg.StoriesEditStoryParams{ Peer: &tg.InputPeerUser{UserID: int64(777000)}, Id: 42, Media: nil, MediaAreas: nil, Caption: "Hello, World!", Entities: nil, PrivacyRules: nil, Music: nil, }) if err != nil { // handle error } // result is *tg.Updates
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | STORY_NOT_MODIFIED | The new story information you passed is equal to the previous story information, thus it wasn't modified. |