InputMediaUploadedPhoto

class pyrogram.raw.types.InputMediaUploadedPhoto

Photo

Constructor of InputMedia.

Details:
  • Layer: 223

  • ID: 1E287D04

Parameters:
  • file (InputFile) – The uploaded file

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

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

  • ttl_seconds (int 32-bit, optional) – Time to live in seconds of self-destructing photo

TL Schema

inputMediaUploadedPhoto#1e287d04
flags:#
spoiler:flags.2?true
file:InputFile
stickers:flags.0?Vector<InputDocument>
ttl_seconds:flags.1?int

= InputMedia

Parameter Tree

InputMediaUploadedPhoto
├── spoilertrue (optional)
├── fileInputFile
│ ├── InputFile
│ │ ├── idlong
│ │ ├── partsint
│ │ ├── namestring
│ │ └── md5_checksumstring
│ ├── InputFileBig
│ │ ├── idlong
│ │ ├── partsint
│ │ └── namestring
│ └── idInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── stickersVector < InputDocument > (optional)
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
└── ttl_secondsint (optional)

Example

InputMediaUploadedPhoto(
    file=InputFile(
        id=0,
        parts=0,
        name="text",
        md5_checksum="text"
    ),
)