InputMediaDocumentExternal

class pyrogram.raw.types.InputMediaDocumentExternal

Document that will be downloaded by the telegram servers

Constructor of InputMedia.

Details:
  • Layer: 227

  • 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
├── spoiler → true (optional)
├── url → string
├── ttl_seconds → int (optional)
├── video_cover → InputPhoto (optional)
│ ├── InputPhotoEmpty
│ └── InputPhoto
│ ├── id → long
│ ├── access_hash → long
│ └── file_reference → bytes
└── video_timestamp → int (optional)

Example

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