Ignore commands
This commit is contained in:
parent
b37f1b4e8f
commit
f80aae9e03
3
main.go
3
main.go
@ -103,7 +103,8 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if update.Message != nil && update.Message.Text != "" {
|
// Ignore if Text is empty or is a command
|
||||||
|
if update.Message != nil && update.Message.Text != "" && update.Message.Text[0] != '/' {
|
||||||
|
|
||||||
chatID := update.Message.Chat.ID
|
chatID := update.Message.Chat.ID
|
||||||
g, _ := chats.LoadOrStore(chatID, glist.NewGList(chatID))
|
g, _ := chats.LoadOrStore(chatID, glist.NewGList(chatID))
|
||||||
|
Loading…
Reference in New Issue
Block a user