InputMediaPhotoExternal#

class pyrogram.raw.types.InputMediaPhotoExternal#

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

Constructor of InputMedia.

Details:
  • Layer: 227

  • 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) – Time to live of self-destructing photo, can be 0 to disable self-destruction, 0x7FFFFFFF to self-destruct the photo immediately after it’s played; otherwise self-destructs ttl_seconds after it’s played.