InputMediaUploadedPhoto
- class pyrogram.raw.types.InputMediaUploadedPhoto
Photo
Constructor of
InputMedia.- Details:
Layer:
223ID:
1E287D04
- Parameters:
file (
InputFile) – The uploaded filespoiler (
bool, optional) – Whether this media should be hidden behind a spoiler warningstickers (List of
InputDocument, optional) – Attached mask stickersttl_seconds (
int32-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
├── spoiler →
true (optional)├── file →
InputFile│ ├──
InputFile│ │ ├── id →
long│ │ ├── parts →
int│ │ ├── name →
string│ │ └── md5_checksum →
string│ ├──
InputFileBig│ │ ├── id →
long│ │ ├── parts →
int│ │ └── name →
string│ └──
InputFileStoryDocument│ └── 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)Example
InputMediaUploadedPhoto(
file=InputFile(
id=0,
parts=0,
name="text",
md5_checksum="text"
),
)