fix missing argument in admin handlers

This commit is contained in:
Akulij 2025-03-27 22:05:21 +08:00
parent ecd55a3031
commit a00b7e874b

View File

@ -58,7 +58,7 @@ func handleCommand(bc BotController, update tgbotapi.Update, user User) {
if user.IsAdmin() { if user.IsAdmin() {
f, exists := adminCommands[command] // f is a function that handles specified command f, exists := adminCommands[command] // f is a function that handles specified command
if exists { if exists {
f(bc, update) f(bc, update, user)
return return
} }
} }