Simple gitlab telegram bot that listen to gitlab webhooks and send each event to the authenticated chats
https://core.telegram.org/bots
Create a new bot https://core.telegram.org/bots#create-a-new-bot and then copy the token to the token file.
Only work with python3
- Change the authmsg file with some secret keyworld
- Run the app.py in your server
- Create a webhook in your gitlab project that points to http://yourserver:10111/
- Talk to your bot and write only the keyworld
- You will receive each event in your repo
R. Write "shutupbot" in your conversation and the bot won't talk to you anymore
R. Write /keyworld instead of keyworld
- chats, the json with all the chats to send notifications
- token, the bot token
- offset, the last msg id received from telegram api
$ docker build -t bot .
$ docker run -d -p 10111:10111 --name bot -e AUTHMSG="XXX" -e TOKEN="XXX:XXX" bot