feat(telegram): Zugriffskontrolle mit Chat-ID-Whitelist
- TelegramService: IsChatIdAllowed() prüft Owner + Whitelist - /start von unbekannter ChatId: Zugriff verweigert + ChatId angezeigt - Owner wird bei Zugriffsanfrage benachrichtigt (Username + ChatId) - Alle Commands/Messages prüfen Whitelist vor Verarbeitung - Neues Feld telegram_allowed_chat_ids in sessions-Tabelle - Frontend: Input für erlaubte Chat-IDs in Session-Telegram-Settings - API: allowedChatIds in Save/Get durchgereicht
This commit is contained in:
1 parent
5661e55898
commit
011b26c37f
7 files changed
+91
-10
No files matched your search
@@ -16,6 +16,7 @@ public class SessionRecord
|
||||
public string TelegramBotToken { get; set; }
|
||||
public string TelegramWebhookSecret { get; set; }
|
||||
public string TelegramChatId { get; set; }
|
||||
public string TelegramAllowedChatIds { get; set; }
|
||||
public double AvatarScale { get; set; } = 1.0;
|
||||
public string CreatedAt { get; set; }
|
||||
public string UpdatedAt { get; set; }
|
||||
|
||||
Reference in new issue
Block a user