InputMediaPhotoExternal#

class pyrogram.raw.types.InputMediaPhotoExternal#

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

Constructor of InputMedia.

Details:
  • Layer: 158

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