Fix group check
This commit is contained in:
parent
bfcdeb4634
commit
a5fc1bf49d
2
main.go
2
main.go
@ -92,7 +92,7 @@ func handleMsg(ctx context.Context, entities tg.Entities, u *tg.UpdateNewMessage
|
|||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
fmt.Println(" (invalid cmd)")
|
fmt.Println(" (invalid cmd)")
|
||||||
if fromGroup != nil {
|
if fromGroup == nil {
|
||||||
_, _ = telegramSender.Reply(entities, u).Text(ctx, errorStr+": invalid command")
|
_, _ = telegramSender.Reply(entities, u).Text(ctx, errorStr+": invalid command")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user