Story.edit_photo()

Story.edit_photo()

Bound method edit_photo of Story.

Use as a shortcut for:

await client.edit_story(
    story_id=story.id,
    photo="/path/to/photo.png"
)

Example

await story.edit_photo("/path/to/photo.png")
Parameters:

photo (str | BinaryIO) – New photo of the story.

Returns:

On success, the edited Story is returned.

Raises:

RPCError – In case of a Telegram RPC error.