1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-11-23 22:37:10 +02:00

feat: Disabled telegram links preview (#6335)

This commit is contained in:
Evgeniy Timokhov
2025-11-10 20:26:36 +00:00
committed by GitHub
parent 751ffd8e72
commit 8d48ed7850

View File

@@ -17,6 +17,7 @@ class Telegram extends NotificationProvider {
text: msg,
disable_notification: notification.telegramSendSilently ?? false,
protect_content: notification.telegramProtectContent ?? false,
link_preview_options: { is_disabled: true },
};
if (notification.telegramMessageThreadID) {
params.message_thread_id = notification.telegramMessageThreadID;
@@ -30,9 +31,9 @@ class Telegram extends NotificationProvider {
}
}
let config = this.getAxiosConfigWithProxy({ params });
let config = this.getAxiosConfigWithProxy();
await axios.get(`${url}/bot${notification.telegramBotToken}/sendMessage`, config);
await axios.post(`${url}/bot${notification.telegramBotToken}/sendMessage`, params, config);
return okMsg;
} catch (error) {