Layer 227
constructor
inputMediaPhotoExternal#e5bbfe1a flags:# spoiler:flags.1?true url:string ttl_seconds:flags.0?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 photo
TtlSeconds flags .0? int Time to live of self-destructing photo, can be 0 to disable self-destruction, 0 x 7 FFFFFFF to self-destruct the photo immediately after it's played; otherwise self-destructs ttl_seconds after it's played.

Returns

InputMedia

Gogram Example

// Creating InputMediaPhotoExternal constructor
obj := &tg.InputMediaPhotoExternal{
    Spoiler: nil,
    Url: "Hello, World!",
    TtlSeconds: nil,
}