From e2fb6dbfe62b8ab0476a0f53d803c9dd3d2a4eae Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 28 Dec 2019 20:32:51 +0100 Subject: [PATCH] Catch all throwables in rename bot --- examples/downloadRenameBot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/downloadRenameBot.php b/examples/downloadRenameBot.php index 9b9dad778..5fa8813cd 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); } }