feat: enable telegram reaction notifications by default
This commit is contained in:
1 parent
e7c42884fc
commit
56efbce31e
5 files changed
+38
-5
No files matched your search
+2
-2
@@ -322,8 +322,8 @@ export function createTelegramBot(opts: TelegramBotOptions) {
|
||||
const messageId = reaction.message_id;
|
||||
const user = reaction.user;
|
||||
|
||||
// Resolve reaction notification mode (default: "off")
|
||||
const reactionMode = telegramCfg.reactionNotifications ?? "off";
|
||||
// Resolve reaction notification mode (default: "own")
|
||||
const reactionMode = telegramCfg.reactionNotifications ?? "own";
|
||||
if (reactionMode === "off") return;
|
||||
if (user?.is_bot) return;
|
||||
if (reactionMode === "own" && !wasSentByBot(chatId, messageId)) return;
|
||||
|
||||
Reference in new issue
Block a user