map secret and panel command handlers

This commit is contained in:
Akulij 2025-03-27 22:01:34 +08:00
parent 8a937724c1
commit 59d7f07f48

View File

@ -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