A document.
documentEmpty#36f8c871 id:long = Document;
document#9efc6326 id:long access_hash:long user_id:int date:int file_name:string mime_type:string size:int thumb:PhotoSize dc_id:int = Document;
| Constructor | Description |
|---|---|
| documentEmpty | Empty constructor, document doesn't exist. |
| document | Document |
| Method | Description |
|---|---|
| account.uploadTheme | Upload theme |
| account.uploadRingtone | Upload notification sound, use account.saveRingtone to convert it and add it to the list of saved notification sounds. |
| messages.getDocumentByHash | Get a document by its SHA256 hash, mainly used for gifs |