Lulzx / python-telegram-bot-openshift

Starter kit for running a Telegram bot on Openshift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-telegram-bot-openshift

Starter kit for running a Telegram bot (built with the python-telegram-bot library) on Openshift.

Instructions:

  1. Register at Openshift. This starter kit works on Openshift online v2, which no longer accepts registration as Red Hat is moving to the new (v3) version. You must either have an existing account for the previous version or adapt the code to run in the new one. Send me a pull request if you manage to do so.
  2. Create a Python3 application.
  3. Complete the bot.py file with your bot's token and handlers.
  4. Put the wsgi.py file at the root of your app directory tree. The bot.py file can go anywhere as long as you update the import statement in the previous file.
  5. Put a requirements.txt file also at the root of the directory tree. Include Flask and python-telegram-bot among your dependencies.
  6. Deploy everything to Openshift.

About

Starter kit for running a Telegram bot on Openshift.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%