feat(notifications): update Telegram bot support and update settings management

This commit is contained in:
Yusuf İpek
2026-03-01 17:28:25 +03:00
parent f011ce4f05
commit 147e5520a3
6 changed files with 74 additions and 54 deletions
+1 -2
View File
@@ -610,8 +610,7 @@ model NotificationSetting {
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
// Telegram webhook
telegramBotToken String? // Bot token from @BotFather
telegramChatId String? // Chat/group ID to send messages to
telegramChatId String? // Chat ID to send messages to (bot token is in TELEGRAM_BOT_TOKEN env var)
telegramEnabled Boolean @default(false)
// Email notifications (uses account email by default)