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) – Time to live of self-destructing document, can be 0 to disable self-destruction, 0x7FFFFFFF to self-destruct the document immediately after it’s played; otherwise self-destructs ttl_seconds after it’s played.

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

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