diff --git a/examples/downloadRenameBot.php b/examples/downloadRenameBot.php index 9b9dad77..5fa8813c 100644 --- a/examples/downloadRenameBot.php +++ b/examples/downloadRenameBot.php @@ -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); } }