InputMediaUploadedPhoto#

class pyrogram.raw.types.InputMediaUploadedPhoto#

Photo

Constructor of InputMedia.

Details:
  • Layer: 227

  • ID: 7D8375DA

Parameters:
  • file (InputFile) – The uploaded file

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

  • live_photo (bool, optional) – Whether this is a live photo, i.e. a still photo paired with the short video clip captured alongside it

  • stickers (List of InputDocument, optional) – Attached mask stickers

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

  • video (InputDocument, optional) – The short video clip of the live photo