Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sagaya/upnepa
https://github.com/sagaya/upnepa
flask flask-api telegram telegram-bots
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/sagaya/upnepa
- Owner: sagaya
- Created: 2018-01-14T20:20:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T23:48:10.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T12:36:11.633Z (over 1 year ago)
- Topics: flask, flask-api, telegram, telegram-bots
- Language: Python
- Size: 8.96 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
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