InputMediaPhotoExternal

class pyrogram.raw.types.InputMediaPhotoExternal

New photo that will be uploaded by the server using the specified URL

Constructor of InputMedia.

Details:
  • Layer: 223

  • ID: E5BBFE1A

Parameters:
  • url (str) – URL of the photo

  • spoiler (bool, optional) – Whether this media should be hidden behind a spoiler warning

  • ttl_seconds (int 32-bit, optional) – Self-destruct time to live of photo

TL Schema

inputMediaPhotoExternal#e5bbfe1a
flags:#
spoiler:flags.1?true
url:string
ttl_seconds:flags.0?int

= InputMedia

Parameter Tree

InputMediaPhotoExternal
├── spoilertrue (optional)
├── urlstring
└── ttl_secondsint (optional)

Example

InputMediaPhotoExternal(
    url="https://google.com",
)