MessageMediaDocument

class pyrogram.raw.types.MessageMediaDocument

Document (video, audio, voice, sticker, any media type except photo).

Constructor type of MessageMedia.

Details
  • Layer: 126

  • ID: 0x9cb070d7

Parameters
  • document (Document, optional) – Attached document.

  • ttl_seconds (int 32-bit, optional) – Time to live of self-destructing document.

Methods

This object can be returned by 3 methods:

messages.GetWebPagePreview

Get preview of webpage.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat).

messages.UploadImportedMedia

Telegram API method.