Document#
- class pyrogram.raw.types.Document#
Document.
Constructor of
Document
.- Details:
Layer:
158
ID:
8FD4C4D8
- Parameters:
id (
int
64-bit
) – Document ID.access_hash (
int
64-bit
) – Check sum, dependent on document ID.file_reference (
bytes
) – File reference.date (
int
32-bit
) – Creation date.mime_type (
str
) – MIME type.size (
int
64-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.
- Functions:
This object can be returned by 4 functions.
Upload theme.
Upload notification sound, use account.saveRingtone to convert it and add it to the list of saved notification sounds.
Get a document by its SHA256 hash, mainly used for gifs.
Fetch custom emoji stickers.