Layer 224
InputMediaDocumentExternal
Document that will be downloaded by the telegram servers
constructor
inputMediaDocumentExternal#779600f9 flags:# spoiler:flags.1?true url:string ttl_seconds:flags.0?int video_cover:flags.2?InputPhoto video_timestamp:flags.3?int = InputMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| Spoiler | flags.1?true | Whether this media should be hidden behind a spoiler warning |
| Url | string | URL of the document |
| TtlSeconds | flags.0?int | Self-destruct time to live of document |
| VideoCover | flags.2?InputPhoto | Custom video cover. |
| VideoTimestamp | flags.3?int | Start playing the video at the specified timestamp (seconds). |
Returns
InputMediaGogram Example
// Creating InputMediaDocumentExternal constructor obj := &tg.InputMediaDocumentExternal{ Url: "Hello, World!", // Optional fields: // Spoiler: true, // TtlSeconds: 42, // VideoCover: &tg.InputPhoto{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, // VideoTimestamp: 42, }