MessageMediaDocument

class pyrogram.raw.types.MessageMediaDocument

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

Constructor of MessageMedia.

Details:
  • Layer: 187

  • ID: 4CF4D72D

Parameters:
  • nopremium (bool, optional) – Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.

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

  • video (bool, optional) – Whether this is a video.

  • round (bool, optional) – Whether this is a round video.

  • voice (bool, optional) – Whether this is a voice message.

  • document (Document, optional) – Attached document

  • alt_document (Document, optional) – Currently only used for story videos, may contain an alternative version of the story video, explicitly encoded using H.264 (in MPEG4 transport) at a lower resolution than document.

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

Functions:

This object can be returned by 3 functions.

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

Upload a media file associated with an imported chat, click here for more info ».