peyk.platforms.telegram.types.rich_block_animation

Classes

RichBlockAnimation([animation])

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

class peyk.platforms.telegram.types.rich_block_animation.RichBlockAnimation(animation: Animation | None = None)[source]

Bases: object

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

Variables:
  • type – Type of the block, always ‘animation’

  • animation (peyk.platforms.telegram.types.animation.Animation | None) – The animation

  • has_spoiler – True, if the media preview is covered by a spoiler animation

  • caption – Caption of the block

animation: Animation | None = None
classmethod from_dict(data)[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.