fix missing argument in admin handlers
This commit is contained in:
parent
ecd55a3031
commit
a00b7e874b
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user