InputMediaDocumentExternal

class pyrogram.raw.types.InputMediaDocumentExternal

Document that will be downloaded by the telegram servers

Constructor of InputMedia.

Details:
  • Layer: 223

  • ID: 779600F9

Parameters:
  • url (str) – URL of the document

  • spoiler (bool, optional) – Whether this media should be hidden behind a spoiler warning

  • ttl_seconds (int 32-bit, optional) – Self-destruct time to live of document

  • video_cover (InputPhoto, optional) – Custom video cover.

  • video_timestamp (int 32-bit, optional) – Start playing the video at the specified timestamp (seconds).

TL Schema

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

Parameter Tree

InputMediaDocumentExternal
├── spoilertrue (optional)
├── urlstring
├── ttl_secondsint (optional)
├── video_coverInputPhoto (optional)
│ ├── InputPhotoEmpty
│ └── InputPhoto
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
└── video_timestampint (optional)

Example

InputMediaDocumentExternal(
    url="https://google.com",
)