projects
/
sylphiette-bot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df16e8
)
split command from message
author
Eduardo
<
[email protected]
>
Thu, 28 Mar 2024 19:37:15 +0000
(20:37 +0100)
committer
Eduardo
<
[email protected]
>
Thu, 28 Mar 2024 19:37:15 +0000
(20:37 +0100)
telegram.go
patch
|
blob
|
history
diff --git
a/telegram.go
b/telegram.go
index a687d47bc3d7832eb17c98e332c03423cb026bbe..1a36def827e9bf832ddcd44bfe381bc9525be0be 100644
(file)
--- 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":