InputRichBlockPhoto

class pyrogram.types.InputRichBlockPhoto[source]

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

Displays a photo in the message.

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

  • photo (str | InputMediaPhoto, optional) – The photo to send, as a file identifier of an already uploaded file, a local path, an HTTP URL or an InputMediaPhoto object. Given instead of photo_id.

  • 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.