osrs command

This commit is contained in:
2025-06-25 14:17:36 +02:00
parent 335912ea8a
commit 1eaef9f22f
2 changed files with 558 additions and 0 deletions

View File

@ -58,6 +58,15 @@ func handleCallbackQuery(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
medchemCmd.HandleCallback(update, bot, parts[1:])
}
}
case "osrs":
// Get the OSRS command and handle callback
if cmd, ok := commands.All()["osrs"]; ok {
if osrsCmd, ok := cmd.(interface {
HandleCallback(tgbotapi.Update, *tgbotapi.BotAPI, []string)
}); ok {
osrsCmd.HandleCallback(update, bot, parts[1:])
}
}
default:
log.Printf("Unknown callback command: %s", commandName)
}