mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
Fix command parser
Return text without argument
This commit is contained in:
parent
3a8d30fd35
commit
e5eeec83b3
1 changed files with 4 additions and 0 deletions
|
|
@ -37,6 +37,10 @@ func CheckCommand(text string, entities []*TextEntity) string {
|
||||||
cmd = text[:i]
|
cmd = text[:i]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cmd == "" {
|
||||||
|
return text
|
||||||
|
}
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue