map secret and panel command handlers
This commit is contained in:
parent
8a937724c1
commit
59d7f07f48
@ -13,8 +13,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var adminCommands = map[string]func(BotController, tgbotapi.Update, User){
|
var adminCommands = map[string]func(BotController, tgbotapi.Update, User){
|
||||||
"/secret": handleDefaultMessage, // activate admin mode via /secret `AdminPass`
|
"/secret": handleSecretCommand, // activate admin mode via /secret `AdminPass`
|
||||||
"/panel": handleDefaultMessage, // open bot settings
|
"/panel": handlePanelCommand, // open bot settings
|
||||||
"/usermode": handleDefaultMessage, // temporarly disable admin mode to test ui
|
"/usermode": handleDefaultMessage, // temporarly disable admin mode to test ui
|
||||||
"/id": handleDefaultMessage, // to check id of chat
|
"/id": handleDefaultMessage, // to check id of chat
|
||||||
"/setchannelid": handleDefaultMessage, // just type it in channel which one is supposed to be lined with bot
|
"/setchannelid": handleDefaultMessage, // just type it in channel which one is supposed to be lined with bot
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user