Document
- class pyrogram.raw.types.Document
Document
Constructor of
Document
.- Details:
Layer:
194
ID:
8FD4C4D8
- Parameters:
id (
int
64-bit
) – Document IDaccess_hash (
int
64-bit
) – Check sum, dependent on document IDfile_reference (
bytes
) – File referencedate (
int
32-bit
) – Creation datemime_type (
str
) – MIME typesize (
int
64-bit
) – Sizedc_id (
int
32-bit
) – DC IDattributes (List of
DocumentAttribute
) – Attributesthumbs (List of
PhotoSize
, optional) – Thumbnailsvideo_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 ».