Document

class pyrogram.raw.types.Document

Telegram API type.

Constructor of Document.

Details:
  • Layer: 187

  • ID: 8FD4C4D8

Parameters:
  • id (int 64-bit) – N/A

  • access_hash (int 64-bit) – N/A

  • file_reference (bytes) – N/A

  • date (int 32-bit) – N/A

  • mime_type (str) – N/A

  • size (int 64-bit) – N/A

  • dc_id (int 32-bit) – N/A

  • attributes (List of DocumentAttribute) – N/A

  • thumbs (List of PhotoSize, optional) – N/A

  • video_thumbs (List of VideoSize, optional) – N/A

Functions:

This object can be returned by 4 functions.

account.UploadTheme

Telegram API function.

account.UploadRingtone

Telegram API function.

messages.GetDocumentByHash

Telegram API function.

messages.GetCustomEmojiDocuments

Telegram API function.