Edit an uploaded story
Method schema is available as of layer 161. Switch »
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
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. |
media_areas | 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 ». |
privacy_rules | flags.2?Vector<InputPrivacyRule> | If specified, alters the privacy settings » of the story, changing who can or can't view the story. |
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. |
Telegram users and channels can easily post and view stories through the API.
How to create styled text with message entities
The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.
Telegram allows users to specify granular privacy settings, choosing which users can or can't interact with them in certain ways.