Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 890 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 890 Bytes

Installation

  1. At first, you need to create new bot in Telegram.
  2. Install python and venv
  3. Install poetry
  4. Install dependencies with poetry install

You're ready to run bot locally.

Local run

  1. Set up environment variable TELEGRAM_BOT_KEY. For example, export TELEGRAM_BOT_KEY=<your_token>
  2. Activate environment poetry shell
  3. Run bot python hackabot\telegram.py

Deployment

  1. If you have not access to some server, you may sign up to some one (for instance, Heroku).
  2. Connect to the server. You may use ssh to connect.
  3. Install Tmux sudo apt install tmux
  4. Attach to Tmux tmux attach || tmux new
  5. Clone your repository.
  6. Repeat local run steps.