RichBlockPhoto

class pyrogram.types.RichBlockPhoto[source]

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

Parameters:
  • photo (Photo) – The photo.

  • has_spoiler (bool, optional) – True, if the media preview is covered by a spoiler animation.

  • caption (RichBlockCaption, optional) – Caption of the block.