InputMediaPhotoExternal
- class pyrogram.raw.types.InputMediaPhotoExternal
New photo that will be uploaded by the server using the specified URL
Constructor of
InputMedia.- Details:
Layer:
223ID:
E5BBFE1A
- Parameters:
url (
str) – URL of the photospoiler (
bool, optional) – Whether this media should be hidden behind a spoiler warningttl_seconds (
int32-bit, optional) – Self-destruct time to live of photo
TL Schema
inputMediaPhotoExternal#e5bbfe1a
flags:#
spoiler:flags.1?true
url:string
ttl_seconds:flags.0?int
= InputMedia
Parameter Tree
InputMediaPhotoExternal
├── spoiler →
true (optional)├── url →
string└── ttl_seconds →
int (optional)Example
InputMediaPhotoExternal(
url="https://google.com",
)