InputRichBlockPhoto

class pyrogram.types.InputRichBlockPhoto[source]

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

Displays a photo in the message.

Parameters:
  • photo_id (int) – The id field from an InputPhoto that represents the photo.

  • has_spoiler (bool, optional) – Pass True to cover the photo with a spoiler animation.

  • url (str, optional) – URL to open when the photo is clicked.

  • webpage_id (int, optional) – The id field from an InputWebDocument of the webpage to associate with the photo.

  • caption (str | RichText, optional) – Caption of the block.