From: Eduardo Date: Thu, 28 Mar 2024 19:37:15 +0000 (+0100) Subject: split command from message X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=c47d6314ef9c137ca67ff9b1f91fa62400695206;p=sylphiette-bot.git split command from message --- diff --git a/telegram.go b/telegram.go index a687d47..1a36def 100644 --- a/telegram.go +++ b/telegram.go @@ -105,6 +105,8 @@ func handleButton(query *tgbotapi.CallbackQuery) { // When we get a command, we react accordingly func handleCommand(chatId int64, command string) error { var err error + var text = command + command = getCommand(command) switch command { case "/start":