Link Search Menu Expand Document

Constructor: inputMediaPhotoExternal

Back to constructors index

New photo that will be uploaded by the server using the specified URL

Attributes:

NameTypeRequiredDescription
spoilerBoolOptionalWhether this media should be hidden behind a spoiler warning
urlstringYesURL of the photo
ttl_secondsintOptionalSelf-destruct time to live of photo

Type: InputMedia

Example:

$inputMediaPhotoExternal = ['_' => 'inputMediaPhotoExternal', 'spoiler' => Bool, 'url' => 'string', 'ttl_seconds' => int];