InputMediaPhoto

class pyrogram.raw.types.InputMediaPhoto

Forwarded photo

Constructor of InputMedia.

Details:
  • Layer: 227

  • 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
├── 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 → bytes

Example

InputMediaPhoto(
    id=InputPhotoEmpty(),
)