InputMediaUploadedPhoto

class pyrogram.raw.types.InputMediaUploadedPhoto

Photo

Constructor of InputMedia.

Details:
  • Layer: 224

  • 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) – N/A

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

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

  • video (InputDocument, optional) – N/A

TL Schema

inputMediaUploadedPhoto#7d8375da
flags:#
spoiler:flags.2?true
live_photo:flags.3?true
file:InputFile
stickers:flags.0?Vector<InputDocument>
ttl_seconds:flags.1?int
video:flags.3?InputDocument

= InputMedia

Parameter Tree

InputMediaUploadedPhoto
├── spoilertrue (optional)
├── live_phototrue (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)
└── videoInputDocument (optional)
└── InputDocument
├── idlong
├── access_hashlong
└── file_referencebytes

Example

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