Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.23 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.23 KB

pyTelegramBotAPI + Flask Template

Total alerts Language grade: Python

Introduction

This template allows you to create bots with a ready-made database based on the pyTelegramBotAPI library using Flask micro-framework!

Requirements

Python 3.8

Flask - 1.1.2

pyTelegramBotAPI - 0.17.0

Cloning

$ git clone https://github.com/murodovazizmurod/flask-telebot

Creating Virtual Envirenment

$ cd flask-telebot/
$ python -m venv venv && source venv/bin/activate

and install all requirements

$ pip3 install -r requirements.txt

Сonfiguration

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