InputMediaPhoto

class pyrogram.raw.types.InputMediaPhoto

Forwarded photo

Constructor of InputMedia.

Details:
  • Layer: 224

  • ID: E3AF4434

Parameters:
  • id (InputPhoto) – Photo to be forwarded

  • spoiler (bool, optional) – Whether this media should be hidden behind a spoiler warning

  • live_photo (bool, optional) – N/A

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

  • video (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
├── spoilertrue (optional)
├── live_phototrue (optional)
├── idInputPhoto
│ ├── InputPhotoEmpty
│ └── InputPhoto
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── ttl_secondsint (optional)
└── videoInputDocument (optional)
└── InputDocument
├── idlong
├── access_hashlong
└── file_referencebytes

Example

InputMediaPhoto(
    id=InputPhotoEmpty(),
)