Story.edit_media()¶
- Story.edit_media()¶
Bound method edit_media of
Story.Use as a shortcut for:
await client.edit_story_media( chat_id=story.chat.id, story_id=story.id, media=media )
Example
await story.edit_media("new_video.mp4")- Parameters:
media (
str|BinaryIO, optional) – New story media. Pass a file_id as string to send a photo that exists on the Telegram servers, pass an HTTP URL as a string for Telegram to get a photo from the Internet, pass a file path as string to upload a new photo that exists on your local machine, or pass a binary file-like object with its attribute “.name” set for in-memory uploads.- Returns:
On success, the edited
Storyis returned.- Raises:
RPCError – In case of a Telegram RPC error.