diff --git a/main.go b/main.go index 52188f6..963c6e6 100644 --- a/main.go +++ b/main.go @@ -92,7 +92,9 @@ func handleMsg(ctx context.Context, entities tg.Entities, u *tg.UpdateNewMessage return nil default: fmt.Println(" (invalid cmd)") - _, _ = telegramSender.Reply(entities, u).Text(ctx, errorStr+": invalid command") + if fromGroup != nil { + _, _ = telegramSender.Reply(entities, u).Text(ctx, errorStr+": invalid command") + } return nil } }