GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lufte/python-telegram-bot-openshift: Starter kit for running a Telegram bot on Openshift.

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bot.py
bot.py
 
 
requirements.txt
requirements.txt
 
 
wsgi.py
wsgi.py
 
 

Repository files navigation

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 and v3.
  2. Create a Python3 application.
  3. Add the following environment variables (for v2 only the TOKEN is needed):
    • TOKEN: your telegram bot token
    • APP_FILE: wsgi.py
    • OPENSHIFT_REPO_DIR: [base dir of the project], i.e. /opt/app-root/src
    • OPENSHIFT_GEAR_DNS: [domain of the app], see the hostname of the route
    • OPENSHIFT_PYTHON_IP: 0.0.0.0
    • OPENSHIFT_PYTHON_PORT: 8080
  4. Complete the bot.py file with your handlers.
  5. 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.
  6. Deploy everything to Openshift.

About

Starter kit for running a Telegram bot on Openshift.

Topics

openshifttelegram-bot-api

Resources

Readme
License
Activity

Stars

22 stars

Watchers

2 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.