Skip to content

sagaya/UpNepa

Repository files navigation

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 microframework (tested with version 0.10.1)
  • Mongodb

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 to get one