From 0333a2513923a9aefa19ad1e98faf399ac9ae20a Mon Sep 17 00:00:00 2001 From: Eslam-Nawara Date: Sun, 12 Nov 2023 13:42:59 +0200 Subject: [PATCH] fix typo --- internal/bot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/bot.go b/internal/bot.go index 51fd766..94a858c 100644 --- a/internal/bot.go +++ b/internal/bot.go @@ -52,12 +52,12 @@ func (bot Bot) Start() { case "stop": bot.removeChan <- update.FromChat().ID default: - msg := tgbotapi.NewMessage(update.FromChat().ID, "Invald Command") + msg := tgbotapi.NewMessage(update.FromChat().ID, "Invalid Command") if _, err := bot.botAPI.Send(msg); err != nil { log.Print(err) } } - } else if update.Message.Text != "" { + } else if update.Message.Text != "" && !update.FromChat().IsGroup() { msg := tgbotapi.NewMessage(update.FromChat().ID, "Please send a valid command") if _, err := bot.botAPI.Send(msg); err != nil { log.Print(err)