Added tgcrypto lib from pyrogram project

This commit is contained in:
BlackCatDevel0per 2022-03-23 22:06:27 +05:00
parent d169d35238
commit 872b6a723a
3 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,6 @@
tgcrypto
cryptg
pyaesni
pysocks
python-socks[asyncio]
hachoir

View File

@ -51,7 +51,7 @@ The version number of the library should show in the output.
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
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
@ -83,11 +83,12 @@ manually.
apt update
apt install clang lib{jpeg-turbo,webp}-dev python{,-dev} zlib-dev
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.
.. _tgcrypto: https://github.com/pyrogram/tgcrypto
.. _cryptg: https://github.com/cher-nov/cryptg
.. _pyaes: https://github.com/ricmoo/pyaes
.. _pillow: https://python-pillow.org

View File

@ -1676,7 +1676,7 @@ class TelegramClient:
Downloads the given media from a message object.
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).
See also `Message.download_media() <telethon.tl._custom.message.Message.download_media>`.