mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-01-06 18:55:38 -05:00
feat: Disabled telegram links preview (#6335)
This commit is contained in:
parent
751ffd8e72
commit
8d48ed7850
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue