Update thumbnail information

This commit is contained in:
Qwerty-Space 2021-01-23 22:39:56 +00:00 committed by GitHub
parent b1d6bd564e
commit b538e8dc27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,9 +201,14 @@ class UploadMethods:
Optional JPEG thumbnail (for documents). **Telegram will Optional JPEG thumbnail (for documents). **Telegram will
ignore this parameter** unless you pass a ``.jpg`` file! ignore this parameter** unless you pass a ``.jpg`` file!
The file must also be small in dimensions and in-disk size. The file must also be small in dimensions and in disk size.
Successful thumbnails were files below 20kb and 200x200px. Successful thumbnails were files below 20kB and 320x320px.
Width/height and dimensions/size ratios may be important. For Telegram to accept a thumbnail, you must provide the
file's dimensions using either ``hachoir`` or
:tl:`DocumentAttributesVideo`.
Telethon will resize thumbnails for you, if an image is
provided.
allow_cache (`bool`, optional): allow_cache (`bool`, optional):
This parameter currently does nothing, but is kept for This parameter currently does nothing, but is kept for