Story.edit_animation()

Story.edit_animation()

Bound method edit_animation of Story.

Use as a shortcut for:

await client.edit_animation(
    story_id=story.id,
    animation="/path/to/animation.mp4"
)

Example

await story.edit_animation("/path/to/animation.mp4")
Parameters:

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

Returns:

On success, the edited Story is returned.

Raises:

RPCError – In case of a Telegram RPC error.