Layer 220
InputMediaPhotoExternal
New photo that will be uploaded by the server using the specified URL
constructor
inputMediaPhotoExternal#e5bbfe1a flags:# spoiler:flags.1?true url:string ttl_seconds:flags.0?int = InputMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Spoiler | flags.1?true | Whether this media should be hidden behind a spoiler warning |
| Url | string | URL of the photo |
| TtlSeconds | flags.0?int | Self-destruct time to live of photo |
Returns
InputMediaGogram Example
// Creating InputMediaPhotoExternal constructor obj := &tg.InputMediaPhotoExternal{ Url: "...", // Optional fields: // Spoiler: true, // TtlSeconds: 0, }