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