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) – 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
├── spoiler → true (optional)
├── live_photo → true (optional)
├── file → InputFile
│ ├── InputFile
│ │ ├── id → long
│ │ ├── parts → int
│ │ ├── name → string
│ │ └── md5_checksum → string
│ ├── InputFileBig
│ │ ├── id → long
│ │ ├── parts → int
│ │ └── name → string
│ └── id → InputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── id → long
│ ├── access_hash → long
│ └── file_reference → bytes
├── stickers → Vector < InputDocument > (optional)
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── id → long
│ ├── access_hash → long
│ └── file_reference → bytes
├── ttl_seconds → int (optional)
└── video → InputDocument (optional)
└── InputDocument
├── id → long
├── access_hash → long
└── file_reference → bytes

Example

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