InputMediaPhoto

class pyrogram.raw.types.InputMediaPhoto

Forwarded photo

Constructor of InputMedia.

Details:
  • Layer: 223

  • ID: B3BA0635

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

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

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

TL Schema

inputMediaPhoto#b3ba0635
flags:#
spoiler:flags.1?true
id:InputPhoto
ttl_seconds:flags.0?int

= InputMedia

Parameter Tree

InputMediaPhoto
├── spoilertrue (optional)
├── idInputPhoto
│ ├── InputPhotoEmpty
│ └── InputPhoto
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
└── ttl_secondsint (optional)

Example

InputMediaPhoto(
    id=InputPhotoEmpty(),
)