We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3250dcf + c145c79 commit 5cb9224Copy full SHA for 5cb9224
main.go
@@ -48,7 +48,7 @@ func main() {
48
}
49
50
for _, command := range commands {
51
- if strings.Contains(update.Message.Text, command) {
+ if update.Message.Text == command || strings.Contains(update.Message.Text, " "+command+" ") {
52
switch command {
53
case "/help", "/хелп":
54
message = `БОТ РАБОТАЕТ ТОЛЬКО У АДМИНОВ.
0 commit comments