InputMediaDocument
- class pyrogram.raw.types.InputMediaDocument
Forwarded document
Constructor of
InputMedia.- Details:
Layer:
223ID:
A8763AB5
- Parameters:
id (
InputDocument) – The document to be forwarded.spoiler (
bool, optional) – Whether this media should be hidden behind a spoiler warningvideo_cover (
InputPhoto, optional) – Custom video cover.video_timestamp (
int32-bit, optional) – Start playing the video at the specified timestamp (seconds).ttl_seconds (
int32-bit, optional) – Time to live of self-destructing documentquery (
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
├── spoiler →
true (optional)├── id →
InputDocument│ ├──
InputDocumentEmpty│ └──
InputDocument│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes├── video_cover →
InputPhoto (optional)│ ├──
InputPhotoEmpty│ └──
InputPhoto│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes├── video_timestamp →
int (optional)├── ttl_seconds →
int (optional)└── query →
string (optional)Example
InputMediaDocument(
id=InputDocumentEmpty(),
)