RichBlockAnimation

class aiogram.types.rich_block_animation.RichBlockAnimation(*, type: Literal[RichBlockType.ANIMATION] = RichBlockType.ANIMATION, animation: Animation, has_spoiler: bool | None = None, caption: RichBlockCaption | None = None, **extra_data: Any)[source]

A block with an animation, corresponding to the HTML tag <video>.

Source: https://core.telegram.org/bots/api#richblockanimation

type: Literal[RichBlockType.ANIMATION]

Type of the block, always ‘animation’

animation: Animation

The animation

has_spoiler: bool | None

Optional. True, if the media preview is covered by a spoiler animation

caption: RichBlockCaption | None

Optional. Caption of the block