Document

A document.

documentEmpty#36f8c871 id:long = Document;
document#f9a39f4f id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector<DocumentAttribute> = Document;

Constructors

Constructor Description
documentEmpty Empty constructor, document doesn't exist.
document Document

Methods

Method Description
messages.getDocumentByHash Get a document by its SHA256 hash, mainly used for gifs
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.