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) – Theidfield from anInputPhotothat 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 anInputMediaPhotoobject. 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) – Theidfield from anInputWebDocumentof the webpage to associate with the photo.caption (
str|RichText, optional) – Caption of the block.