Installation
Note
TGBOX library require Python version 3.8 or above.
PyPI (pip)
python3 -m pip install tgbox # Pure Python (very slow)
python3 -m pip install tgbox[fast] # With C libraries
Clone from GitHub
git clone https://github.com/NonProjects/tgbox
python3 -m pip install ./tgbox/[fast]
Optional dependencies
Library can work without cryptography, with
pyaesandecdsabut this will be much slower and not so secure. Pure Python is not recommended for use by end-users, but test-only is OK!With FFmpeg library can make previews for media files and extract duration to attach it to the RemoteBoxFile. You should add it to your system’s
PATH, (if the OS didn’t do it for you) we will call it asffmpeg(tgbox.defaults.FFMPEG) viasubprocess.