peyk.platforms.telegram.types.rich_block_photo

Classes

RichBlockPhoto([photo])

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

class peyk.platforms.telegram.types.rich_block_photo.RichBlockPhoto(photo: List[PhotoSize] | None = None)[source]

Bases: object

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

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

  • photo (List[peyk.platforms.telegram.types.photo_size.PhotoSize] | None) – Available sizes of the photo

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

  • caption – Caption of the block

photo: List[PhotoSize] | None = None
classmethod from_dict(data)[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.