From f80aae9e03bf64756fda136501269cd56008f979 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Wed, 28 Dec 2022 00:15:03 -0500 Subject: [PATCH] Ignore commands --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 76e1ab3..1b4a74f 100644 --- a/main.go +++ b/main.go @@ -103,7 +103,8 @@ func main() { 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 g, _ := chats.LoadOrStore(chatID, glist.NewGList(chatID))