This is a simple app to send Sentry alerts to a Telegram group.
- Create a Telegram bot and get the bot token.
- Create a Telegram group and add the bot with permissions to post messages.
- Get the chat ID of the group.
- Set the environment variables
TELEGRAM_BOT_TOKEN
andTELEGRAM_GROUP_ID
with the bot token and group ID. - Deploy the app and set the Sentry webhook to the app URL.
- Done! Now you will receive alerts from Sentry in your Telegram channel.
Example of a docker-compose.yaml
file:
version: '3'
services:
sentry-to-telegram:
image: mxssl/sentry-to-telegram:v0.0.5
ports:
- "9999:9999"
restart: always
environment:
TELEGRAM_BOT_TOKEN: ""
TELEGRAM_GROUP_ID: ""