feat: per-chat command toggle, listener name + toggle in bot tab
- Add commands_enabled field to TelegramChat (default off) with migration, gating command dispatch in both poller and webhook - Show toggle switch per chat in bot tab for enabling/disabling commands - Fix listener response to include bot name instead of just type - Replace listener "Enabled" label + "Edit" link with toggle switch and crosslink to command-trackers page
This commit is contained in:
@@ -338,6 +338,8 @@
|
||||
"chatName": "Name",
|
||||
"chatType": "Type",
|
||||
"chatLang": "Lang",
|
||||
"cmds": "Cmds",
|
||||
"commandsToggle": "Toggle command listening for this chat",
|
||||
"chatId": "Chat ID",
|
||||
"languageUpdated": "Chat language updated",
|
||||
"cmdLocale": "Bot language",
|
||||
|
||||
@@ -338,6 +338,8 @@
|
||||
"chatName": "Имя",
|
||||
"chatType": "Тип",
|
||||
"chatLang": "Язык",
|
||||
"cmds": "Команды",
|
||||
"commandsToggle": "Включить/выключить команды для этого чата",
|
||||
"chatId": "ID чата",
|
||||
"languageUpdated": "Язык чата обновлён",
|
||||
"cmdLocale": "Язык бота",
|
||||
|
||||
@@ -52,6 +52,7 @@ export interface TelegramChat {
|
||||
type: string;
|
||||
username: string;
|
||||
language_code?: string;
|
||||
commands_enabled: boolean;
|
||||
discovered_at: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user