Catch all throwables in rename bot
This commit is contained in:
parent
e52d106dbc
commit
e2fb6dbfe6
@ -146,7 +146,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
yield $this->messages->editMessage(['peer' => $peerId, 'id' => $id, 'message' => 'Error: '.$e->getMessage()]);
|
yield $this->messages->editMessage(['peer' => $peerId, 'id' => $id, 'message' => 'Error: '.$e->getMessage()]);
|
||||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
} catch (\Throwable $e) {
|
||||||
$this->logger((string) $e, \danog\MadelineProto\Logger::FATAL_ERROR);
|
$this->logger((string) $e, \danog\MadelineProto\Logger::FATAL_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user