Skip to main content

telegram bot with various functions

Project description

Suskabot

Telegram Bot that really can do it all!

Current functionality

  1. Youtube video downloader. Send a link, get a video!
  2. 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
  3. TBD: PDF manipulations

Tests

To run the tests use:

poetry run pytest -v -s

Usage

Manual

  1. Create and activate a new virtual environment
python -m venv /path/to/new/virtual/environment
source <new_venv_path>/bin/activate
  1. Install the project requirements
pip install -r requirements.txt
  1. 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

suskabot-0.1.2-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

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

Hashes for suskabot-0.1.2.tar.gz
Algorithm Hash digest
SHA256 05e811f786e99827225e5ae14d86a64013f2dd8266d847afaf418c96842928bb
MD5 cf613b808ecd574e4700e3487b0e1d8a
BLAKE2b-256 a8aab679497eaecdc04fd4334cad4a933314ef12c4f1ceb64d4aef793d4c4fe6

See more details on using hashes here.

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

Hashes for suskabot-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e5dc001b971a846ad046f6693de55089ea9f31827df235d9512db99bd23d03bf
MD5 a32672879446c8c4bcd95eb62660f31a
BLAKE2b-256 13c01ce3910b0597ca565e1d84478a4d27126b0039c6c43774d46614ac97f312

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page