diff --git a/dispatcher.go b/dispatcher.go index f7a34b9..a811e8a 100644 --- a/dispatcher.go +++ b/dispatcher.go @@ -31,7 +31,7 @@ func (d *Dispatcher) HandleCommand(command *Command, handler commandHandler) *Di if !strings.HasPrefix(u.Text(), command.String()) { return false, nil } - if command.IsAdminOnly && !u.IsUserAdmin() { + if command.IsAdminOnly && !u.IsUserAdmin() && u.ChatID() < 0 { return false, nil } upd := &UpdateCommand{