This template allows you to create bots with a ready-made database based on the pyTelegramBotAPI library using Flask micro-framework!
Python 3.8
Flask - 1.1.2
pyTelegramBotAPI - 0.17.0
$ git clone https://github.com/murodovazizmurod/flask-telebot
$ cd flask-telebot/
$ python -m venv venv && source venv/bin/activate
and install all requirements
$ pip3 install -r requirements.txt
Open .env
file and write informations or set environment variables:
In Windows
:
$ set TOKEN='TOKEN'
...
or in Linux
:
$ export TOKEN='TOKEN'
...
Any problems? - My Telegram