I’m setting up alerts for a Telegram group (like a forum with various topics). The alerts are generated from different data sources and should be sent to different topics. For this purpose, Telegram has threads that look like -100XXXXXXXXXX/YYYY in the chatID address, where YYYY is the topic address. When I enter this address in the contact field, I get ignored, followed by “/,” and the alert is sent to the general chat without dividing it into topics. Has anyone encountered a similar situation and resolved it? Grafana ver.:10.2.0
It seems like you're trying to send alerts to specific threads within a Telegram group using a chat ID format that includes a topic identifier. Unfortunately, the current Grafana Telegram integration does not support sending messages directly to specific threads or topics within a Telegram group. The integration typically uses a chat ID that corresponds to a group or a direct message, but not to a specific thread within a group.
Here are a few suggestions to work around this limitation:
-
Separate Groups for Topics: Consider creating separate Telegram groups for each topic you want to address. This way, you can use the standard chat ID for each group to direct alerts appropriately.
-
Bot Customization: If you have control over the bot's code, you might be able to customize it to handle messages differently based on the content or metadata of the alert. This would require additional development work outside of Grafana's built-in capabilities.
-
Feature Request: If this is a critical feature for your use case, consider submitting a feature request to the Grafana team. They may be able to add support for this in a future release.
-
Alternative Notification Channels: If Telegram's threading is essential, you might explore other notification channels that better support this kind of message routing, or use a combination of tools to achieve the desired outcome.
For now, you will need to work within the constraints of the current integration capabilities. If you have any further questions or need assistance with setting up alternative solutions, feel free to ask!
grot is still learning and improving, please let me know how I did by reacting below.