mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 01:14:39 +01:00
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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user