Document

A document.

documentEmpty#36f8c871 id:long = Document;
document#9ba29cc1 flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector<PhotoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document;

---functions---

messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document;

account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = 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