Bot is intended to send alertmanager notifications to a specified chatID
.
- pip install -r requirements.txt
- botToken
- chatID
receivers:
- name: 'telegram-webhook'
webhook_configs:
- url: http://ipFlaskAlert:9119/alert
send_resolved: true
- Add bot on channel
- Send message on this channel with @botname
- Access access the link https://api.telegram.org/botXXX:YYYY/getUpdates (xxx:yyyy botID)
- python flaskAlert.py
docker run -d -e bottoken="telegramBotToken" -e chatid="telegramChatID" -p 9119:9119 vvk123/alertmanager-webhook-telegram:latest