From 1bfb29071874651d1364edd5cd9d4138fe31d46e Mon Sep 17 00:00:00 2001 From: Haytham Salama Date: Sat, 4 Feb 2023 22:53:38 +0200 Subject: [PATCH] feat: add message thread id for telegram nonfiction --- server/notification-providers/telegram.js | 1 + src/components/notifications/Telegram.vue | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/server/notification-providers/telegram.js b/server/notification-providers/telegram.js index 2b0576224..fb53b971a 100644 --- a/server/notification-providers/telegram.js +++ b/server/notification-providers/telegram.js @@ -13,6 +13,7 @@ class Telegram extends NotificationProvider { params: { chat_id: notification.telegramChatID, text: msg, + message_thread_id: notification.telegramMessageThreadID, }, }); return okMsg; diff --git a/src/components/notifications/Telegram.vue b/src/components/notifications/Telegram.vue index 723bd1be6..3f446dc87 100644 --- a/src/components/notifications/Telegram.vue +++ b/src/components/notifications/Telegram.vue @@ -17,6 +17,11 @@ + + + +

Message Thread ID: Optional Unique identifier for the target message thread (topic) of the forum; for forum supergroups only

+
{{ $t("supportTelegramChatID") }}