telegram bot with various functions
Project description
Suskabot
Telegram Bot that really can do it all!
Current functionality
- Youtube video downloader. Send a link, get a video!
- Translator. Fast translations without the need to specify to and from languages! Configure "default language to translate to" and "mother tongue". Currently supported languages: Russian, English, Ukranian
- TBD: PDF manipulations
Tests
To run the tests use:
poetry run pytest -v -s
Usage
Manual
- Create and activate a new virtual environment
python -m venv /path/to/new/virtual/environment
source <new_venv_path>/bin/activate
- Install the project requirements
pip install -r requirements.txt
- Set the API_TOKEN environment variable using export:
export TG_BOT_API_TOKEN=<your TG bot api token>
or .env.secret:
cd config && echo TG_BOT_API_TOKEN=<your TG bot api token>
Other environment variables can be conveniently set from .env.public 4) Start the script:
python main.py
Docker
Specify this gitlab repositories container registry or build the image yourself:
docker build -t suskabot .
docker run -d --env=TG_BOT_API_TOKEN=<TG bot api token> suskabot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
suskabot-0.1.2.tar.gz
(1.6 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file suskabot-0.1.2.tar.gz.
File metadata
- Download URL: suskabot-0.1.2.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.29-1-lts
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05e811f786e99827225e5ae14d86a64013f2dd8266d847afaf418c96842928bb
|
|
| MD5 |
cf613b808ecd574e4700e3487b0e1d8a
|
|
| BLAKE2b-256 |
a8aab679497eaecdc04fd4334cad4a933314ef12c4f1ceb64d4aef793d4c4fe6
|
File details
Details for the file suskabot-0.1.2-py3-none-any.whl.
File metadata
- Download URL: suskabot-0.1.2-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.29-1-lts
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5dc001b971a846ad046f6693de55089ea9f31827df235d9512db99bd23d03bf
|
|
| MD5 |
a32672879446c8c4bcd95eb62660f31a
|
|
| BLAKE2b-256 |
13c01ce3910b0597ca565e1d84478a4d27126b0039c6c43774d46614ac97f312
|