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.3.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.3-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file suskabot-0.1.3.tar.gz.

File metadata

  • Download URL: suskabot-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 46efdc4e8e6d71e17024b8b3ec95c2c4c2ca358aa71f499c9db96a2deca34e25
MD5 83d7bf75d2a1ebbe00876b117f0cc968
BLAKE2b-256 b5fbf9b7eaadb82a469c6e1d80472dd341da2539302943d4d91c5c7c34afaa0b

See more details on using hashes here.

File details

Details for the file suskabot-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: suskabot-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f2e475badfcfdaeffcc08955196718d4fb2e188086bd1e52fac33f366a40bb
MD5 9c6198e6c5768bdd563a4f140dd16cae
BLAKE2b-256 841f50c7119592dda8988d8cf3d9c8ea39f8680cd97df7e2e9d296a8d588af33

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