Document #
Документ.¶
Слой 223
documentEmpty#36f8c871 id:long = Document;
document#8fd4c4d8 flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:long thumbs:flags.0?Vector<PhotoSize> video_thumbs:flags.1?Vector<VideoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document;
---functions---
messages.getDocumentByHash#b1f2061f sha256:bytes size:long mime_type:string = Document;
account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document;
account.uploadRingtone#831a83a2 file:InputFile file_name:string mime_type:string = Document; Конструкторы #
| Конструктор | Описание |
|---|---|
| documentEmpty | Пустой конструктор, документ не существует. |
| document | Document |
Методы #
| Метод | Описание |
|---|---|
| account.uploadTheme | Загрузить тему оформления |
| account.uploadRingtone | Загружает звук уведомления; чтобы сконвертировать его и добавить в список сохранённых звуков уведомлений, используйте account.saveRingtone. |
| messages.getDocumentByHash | Получить документ по его хешу SHA256; метод используется в основном для GIF |
Оригинал: https://core.telegram.org/type/Document