Document

class pyrogram.raw.types.Document

Document.

Constructor type of Document.

Details
  • Layer: 126

  • ID: 0x1e87342b

Parameters
  • id (int 64-bit) – Document ID.

  • access_hash (int 64-bit) – Check sum, dependant on document ID.

  • file_reference (bytes) – File reference.

  • date (int 32-bit) – Creation date.

  • mime_type (str) – MIME type.

  • size (int 32-bit) – Size.

  • dc_id (int 32-bit) – DC ID.

  • attributes (List of DocumentAttribute) – Attributes.

  • thumbs (List of PhotoSize, optional) – Thumbnails.

  • video_thumbs (List of VideoSize, optional) – Video thumbnails.

Methods

This object can be returned by 2 methods:

account.UploadTheme

Upload theme.

messages.GetDocumentByHash

Get a document by its SHA256 hash, mainly used for gifs.