From 59d7f07f48eb5be19c07d02edc6feea035bed0ab Mon Sep 17 00:00:00 2001 From: Akulij Date: Thu, 27 Mar 2025 22:01:34 +0800 Subject: [PATCH] map secret and panel command handlers --- cmd/app/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/app/main.go b/cmd/app/main.go index 788ae0a..513f37c 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -13,8 +13,8 @@ import ( ) var adminCommands = map[string]func(BotController, tgbotapi.Update, User){ - "/secret": handleDefaultMessage, // activate admin mode via /secret `AdminPass` - "/panel": handleDefaultMessage, // open bot settings + "/secret": handleSecretCommand, // activate admin mode via /secret `AdminPass` + "/panel": handlePanelCommand, // open bot settings "/usermode": handleDefaultMessage, // temporarly disable admin mode to test ui "/id": handleDefaultMessage, // to check id of chat "/setchannelid": handleDefaultMessage, // just type it in channel which one is supposed to be lined with bot