WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Birdi7/Template-Telegram-bot

Repository files navigation

Template for a telegram bot using aiogram and umongo

Running

This project can be run purely with python, but also supports the deployment using docker-compose

Purely python running:

0.1. Check if you have the right version of python. Python3 -V should output 3.7+.

If you are on Windows, remove uvloop from requirements.txt as this lib doesn't work on this OS.

  1. Copy an example environment file with cp example.env local.env
  2. Add environment variables from local.env to your local os. If you're on UNIX, you can add them only for the python running. Read here about it
  3. Create a virtual environment with python3 -m virtualenv venv.
  4. Run source venv/bin/activate to activate the venv
  5. Install modules with pip install -r requirements.txt
  6. Run bot with python handlers.py

With docker-compose:

  1. Copy an example environment file with cp example.env local.env
  2. Modify the local environment file named .env
  3. Run docker-compose up -d --build

About

Template for telegram bots using aiogram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •