It's a simple API to handle alert requests and send them via Telegram.
-
Create a Telegram bot using botfather
-
Keep
BOT TOKEN
for later -
Get your Chat id using @BotChatId_bot ( Or other bots/ways )
-
Run image with required environment variables
docker run -d -p 8127:8127 \ -e TG_HOST=https://api.telegram.org \ -e TG_BOT_TOKEN='291043804:AAGHDLwaXNN2U2oI0uxCR35KsivsxNUqT3o' \ -e TG_CHAT_ID='-200160323059' \ hatamiarash7/telegram-handler:v1.2.0
-
Use alertmanager to send alerts using webhook to
http://<IP>:8127/api/alert
URL
We have a TG_HOST
env variables here to bypass any filtering or blocking. You can proxy your custom domain to https://api.telegram.org
and use it here.
https://telegram.domain.com -> https://api.telegram.org
There are many ways to do that, just search for it 😃
Don't be shy and reach out to us if you want to contribute 😉
- Fork it !
- Create your feature branch :
git checkout -b my-new-feature
- Commit your changes :
git commit -am 'Add some feature'
- Push to the branch :
git push origin my-new-feature
- Submit a pull request
Each project may have many problems. Contributing to the better development of this project by reporting them. 👍