murodovazizmurod / flask-telebot

pyTelegramBotAPI + Flask Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

pyTelegramBotAPI + Flask Template

License:MIT License


Languages

Language:Python 100.0%