uptime-kuma
uptime-kuma copied to clipboard
Add `disable_web_page_preview` to Telegram Alert
⚠️ Please verify that this feature request has NOT been suggested before.
- [X] I checked and didn't find similar feature request
🏷️ Feature Request Type
Other
🔖 Feature description
I often name projects as their URLs, so I constantly see previews of links in my Telegram alerts.
Please add the disable_web_page_preview parameter when sending a message.
✔️ Solution
Here: https://github.com/louislam/uptime-kuma/blob/2b0c184a88571f61a4f62980774c1e274f7077d2/server/notification-providers/telegram.js#L12-L17
params: {
chat_id: notification.telegramChatID,
text: msg,
+ disable_web_page_preview: true,
},
❓ Alternatives
No response
📝 Additional Context
No response
https://github.com/MikeVL/uptime-kuma/commit/56a7cfc4e184dde078f9572e79ba3d3f617cf01c
If you want, you can provide a PR to make this setting configurable in the notification providers settings. Our contribution guide is here: https://github.com/louislam/uptime-kuma/blob/237a6e8da9ac492baa3f68a4db4679bf7ec833e6/CONTRIBUTING.md