/webhook_telegram_bot

This is a basic example of a Telegram Bot using the webhook and hosted on Openshift.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

This is a basic Telegram Bot writted on Python 3. It can be executed using the webhook feature on Openshift hosting. It can also be executed as a polling script.

Instructions:

  • Raname data/config-default.cfg to data/config.cfg
  • Fill the token value (talk to BodFather in telegram).
  • If you are going to use a webhook on telegram just fill the webhook_url with your openshift app url.

How to run:

  • Webhook: Clone this repository as an openshift app, the app.py file is prepared for that.
  • Polling: Execute main.py