InputMediaDocument

class pyrogram.raw.types.InputMediaDocument

Forwarded document

Constructor of InputMedia.

Details:
  • Layer: 223

  • ID: A8763AB5

Parameters:
  • id (InputDocument) – The document to be forwarded.

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

  • video_cover (InputPhoto, optional) – Custom video cover.

  • video_timestamp (int 32-bit, optional) – Start playing the video at the specified timestamp (seconds).

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

  • query (str, optional) – Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance.

TL Schema

inputMediaDocument#a8763ab5
flags:#
spoiler:flags.2?true
id:InputDocument
video_cover:flags.3?InputPhoto
video_timestamp:flags.4?int
ttl_seconds:flags.0?int
query:flags.1?string

= InputMedia

Parameter Tree

InputMediaDocument
├── spoilertrue (optional)
├── idInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── video_coverInputPhoto (optional)
│ ├── InputPhotoEmpty
│ └── InputPhoto
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── video_timestampint (optional)
├── ttl_secondsint (optional)
└── querystring (optional)

Example

InputMediaDocument(
    id=InputDocumentEmpty(),
)