peyk.platforms.telegram.types.rich_block_video

Classes

RichBlockVideo([video])

A block with a video, corresponding to the HTML tag .

class peyk.platforms.telegram.types.rich_block_video.RichBlockVideo(video: Video | None = None)[source]

Bases: object

A block with a video, corresponding to the HTML tag .

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

  • video (peyk.platforms.telegram.types.video.Video | None) – The video

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

  • caption – Caption of the block

video: Video | None = None
classmethod from_dict(data)[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.