Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sagaya/upnepa


https://github.com/sagaya/upnepa

flask flask-api telegram telegram-bots

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# UpNepa

*A simple Python Telegram bot to help me keep track of power supply schedule. Uses Flask microframework, setWebhook method*

Please exchange the TOKEN, the webhook URL, and the HOOK path with your own.

* The app.py file is for general purpose.

## Required
* Python 3.6 *
* [Flask](http://flask.pocoo.org/) microframework (tested with version 0.10.1)
* [Mongodb](https://www.mongodb.com/)

## How to use
* Clone the repo
* If you have virtualenv installed activate (venv)
* Run `pip install -r requirements.txt`
* Run `python app.py` and you are good to go

# Enviroment Variables

* `DB` Your mongodb host url if you are using it locally set it as `local`
* `TOKEN` Telegram bot token holla [BotFather](https://core.telegram.org/bots#3-how-do-i-create-a-bot) to get one