Skip to content
/ gitbot Public

A Python Telegram bot that notifies you via Telegram if there is a push event in one of your repositories

License

Notifications You must be signed in to change notification settings

jh0ker/gitbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jannes' GitBot

A Python Telegram bot that notifies you via Telegram if there is a push event in one of your repositories

It uses the Flask microframework and the python-telegram-bot library. It's based on this example.

Please also check out my other bots, TexBot and Welcome Bot.

The file is prepared to be run by anyone by filling out the blanks in the configuration.

Required

  • Python 3.4 (may work with earlier versions, untested)
  • python-telegram-bot module (tested with version 2.8.7)
  • Flask microframework (tested with version 0.10.1)

How to use

  • Install the script
  • Edit BOTNAME, TOKEN, BASE_URL, HOST and PORT in bot.py
  • If you want to handle SSL with Flask, also fill out the CERT and CERT_KEY fields and check the section about SSL.
  • Visit https://BASE_URL/set_webhook on your web browser to set up webhook.
  • Follow Bot instructions

SSL

You can start the server without an SSL context, if this is handled by another programm, like Apache or haproxy. You can leave out the SSL Information in the header and select the second run-line at the end of the file

Please note that you need a valid ssl certificate or a self-signed one. Please refer to this gist for an example with self-signed certs.

About

A Python Telegram bot that notifies you via Telegram if there is a push event in one of your repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages