InputMediaUploadedPhoto
- class pyrogram.raw.types.InputMediaUploadedPhoto
Photo
Constructor of
InputMedia.- Details:
Layer:
224ID:
7D8375DA
- Parameters:
file (
InputFile) – The uploaded filespoiler (
bool, optional) – Whether this media should be hidden behind a spoiler warninglive_photo (
bool, optional) – N/Astickers (List of
InputDocument, optional) – Attached mask stickersttl_seconds (
int32-bit, optional) – Time to live in seconds of self-destructing photovideo (
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│ └──
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)└── video →
InputDocument (optional)└──
InputDocument├── id →
long├── access_hash →
long└── file_reference →
bytesExample
InputMediaUploadedPhoto(
file=InputFile(
id=0,
parts=0,
name="text",
md5_checksum="text"
),
)