Ignore commands

This commit is contained in:
Balakrishnan Balasubramanian 2022-12-28 00:15:03 -05:00
parent b37f1b4e8f
commit f80aae9e03

View File

@ -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))