uptime-kuma icon indicating copy to clipboard operation
uptime-kuma copied to clipboard

Add `disable_web_page_preview` to Telegram Alert

Open banochkin opened this issue 2 years ago • 2 comments

⚠️ 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

banochkin avatar Sep 07 '22 10:09 banochkin

https://github.com/MikeVL/uptime-kuma/commit/56a7cfc4e184dde078f9572e79ba3d3f617cf01c

MikeVL avatar May 17 '24 08:05 MikeVL

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

CommanderStorm avatar May 17 '24 12:05 CommanderStorm