InputMediaPhoto
- class pyrogram.raw.types.InputMediaPhoto
Forwarded photo
Constructor of
InputMedia.- Details:
Layer:
224ID:
E3AF4434
- Parameters:
id (
InputPhoto) – Photo to be forwardedspoiler (
bool, optional) – Whether this media should be hidden behind a spoiler warninglive_photo (
bool, optional) – N/Attl_seconds (
int32-bit, optional) – Time to live in seconds of self-destructing photovideo (
InputDocument, optional) – N/A
TL Schema
inputMediaPhoto#e3af4434
flags:#
spoiler:flags.1?true
live_photo:flags.2?true
id:InputPhoto
ttl_seconds:flags.0?int
video:flags.2?InputDocument
= InputMedia
Parameter Tree
InputMediaPhoto
├── spoiler →
true (optional)├── live_photo →
true (optional)├── id →
InputPhoto│ ├──
InputPhotoEmpty│ └──
InputPhoto│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes├── ttl_seconds →
int (optional)└── video →
InputDocument (optional)└──
InputDocument├── id →
long├── access_hash →
long└── file_reference →
bytesExample
InputMediaPhoto(
id=InputPhotoEmpty(),
)