split command from message
authorEduardo <[email protected]>
Thu, 28 Mar 2024 19:37:15 +0000 (20:37 +0100)
committerEduardo <[email protected]>
Thu, 28 Mar 2024 19:37:15 +0000 (20:37 +0100)
telegram.go

index a687d47bc3d7832eb17c98e332c03423cb026bbe..1a36def827e9bf832ddcd44bfe381bc9525be0be 100644 (file)
@@ -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":