class pyrogram.Document

A generic file (as opposed to photos, voice messages, audio files, …).

  • file_id (str) – Unique file identifier.

  • file_ref (str) – Up to date file reference.

  • file_name (str, optional) – Original filename as defined by sender.

  • mime_type (str, optional) – MIME type of the file as defined by sender.

  • file_size (int, optional) – File size.

  • date (int, optional) – Date the document was sent in Unix time.

  • thumbs (List of Thumbnail, optional) – Document thumbnails as defined by sender.