Allow private chats use admin commands
This commit is contained in:
@ -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{
|
||||
|
Reference in New Issue
Block a user