diff --git a/server/notification-providers/telegram.js b/server/notification-providers/telegram.js index 1cee5c11c..a98c326d7 100644 --- a/server/notification-providers/telegram.js +++ b/server/notification-providers/telegram.js @@ -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) {