telegram api method · layer 229 · #2c63a72b
stories.editStory
Edit an uploaded story
definition
stories.editStory#2c63a72b 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> music:flags.4?InputDocument = Updates;
parameters
| 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 | InputMedia | If specified, replaces the story media. |
media_areas | Vector<MediaArea> | Media areas associated to the story, see here » for more info. |
caption | string | If specified, replaces the story caption. |
entities | Vector<MessageEntity> | Message entities for styled text in the caption, if allowed by the stories_entities client configuration parameter ». |
privacy_rules | Vector<InputPrivacyRule> | If specified, alters the privacy settings » of the story, changing who can or can't view the story. |
music | InputDocument |
returns
errors (4)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 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. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 160–229 · constructor id changed 3×
| id | layers |
|---|---|
| #2aae7a41 | 160 |
| #a9b91ae4 | 161–163 |
| #b583ba46 | 164–223 |
| #2c63a72b | 224–229 |