mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-15 10:32:28 +03:00
Added tgcrypto lib from pyrogram project
This commit is contained in:
parent
d169d35238
commit
872b6a723a
|
@ -1,4 +1,6 @@
|
||||||
|
tgcrypto
|
||||||
cryptg
|
cryptg
|
||||||
|
pyaesni
|
||||||
pysocks
|
pysocks
|
||||||
python-socks[asyncio]
|
python-socks[asyncio]
|
||||||
hachoir
|
hachoir
|
||||||
|
|
|
@ -51,7 +51,7 @@ The version number of the library should show in the output.
|
||||||
Optional Dependencies
|
Optional Dependencies
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
If cryptg_ is installed, **the library will work a lot faster**, since
|
If tgcrypto_ or cryptg_ or pyaesni(intel aes-ni) is installed, **the library will work a lot faster**, since
|
||||||
encryption and decryption will be made in C instead of Python. If your
|
encryption and decryption will be made in C instead of Python. If your
|
||||||
code deals with a lot of updates or you are downloading/uploading a lot
|
code deals with a lot of updates or you are downloading/uploading a lot
|
||||||
of files, you will notice a considerable speed-up (from a hundred kilobytes
|
of files, you will notice a considerable speed-up (from a hundred kilobytes
|
||||||
|
@ -83,11 +83,12 @@ manually.
|
||||||
apt update
|
apt update
|
||||||
apt install clang lib{jpeg-turbo,webp}-dev python{,-dev} zlib-dev
|
apt install clang lib{jpeg-turbo,webp}-dev python{,-dev} zlib-dev
|
||||||
pip install -U --user setuptools
|
pip install -U --user setuptools
|
||||||
pip install -U --user telethon cryptg pillow
|
pip install -U --user telethon tgcrypto pillow
|
||||||
|
|
||||||
Thanks to `@bb010g`_ for writing down this nice list.
|
Thanks to `@bb010g`_ for writing down this nice list.
|
||||||
|
|
||||||
|
|
||||||
|
.. _tgcrypto: https://github.com/pyrogram/tgcrypto
|
||||||
.. _cryptg: https://github.com/cher-nov/cryptg
|
.. _cryptg: https://github.com/cher-nov/cryptg
|
||||||
.. _pyaes: https://github.com/ricmoo/pyaes
|
.. _pyaes: https://github.com/ricmoo/pyaes
|
||||||
.. _pillow: https://python-pillow.org
|
.. _pillow: https://python-pillow.org
|
||||||
|
|
|
@ -1676,7 +1676,7 @@ class TelegramClient:
|
||||||
Downloads the given media from a message object.
|
Downloads the given media from a message object.
|
||||||
|
|
||||||
Note that if the download is too slow, you should consider installing
|
Note that if the download is too slow, you should consider installing
|
||||||
``cryptg`` (through ``pip install cryptg``) so that decrypting the
|
``tgcrypto`` (through ``pip install tgcrypto``) so that decrypting the
|
||||||
received data is done in C instead of Python (much faster).
|
received data is done in C instead of Python (much faster).
|
||||||
|
|
||||||
See also `Message.download_media() <telethon.tl._custom.message.Message.download_media>`.
|
See also `Message.download_media() <telethon.tl._custom.message.Message.download_media>`.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user