Layer 220
InputMediaDocument
Forwarded document
constructor
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;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Spoiler | flags.2?true | Whether this media should be hidden behind a spoiler warning |
| Id | InputDocument | The document to be forwarded. |
| VideoCover | flags.3?InputPhoto | Custom video cover. |
| VideoTimestamp | flags.4?int | Start playing the video at the specified timestamp (seconds). |
| TtlSeconds | flags.0?int | Time to live of self-destructing document |
| Query | flags.1?string | Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance. |
Returns
InputMediaGogram Example
// Creating InputMediaDocument constructor obj := &tg.InputMediaDocument{ Id: &tg.InputDocument{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}, // Optional fields: // Spoiler: true, // VideoCover: &tg.InputPhoto{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}, // VideoTimestamp: 0, // TtlSeconds: 0, // ... more optional fields }