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)