From e026afe089237dae5beb915ccb95a33d7ae9e9c4 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 13 Oct 2018 15:13:30 +0000 Subject: [PATCH] Apply fixes from StyleCI --- bot.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.php b/bot.php index d7eb1f5f..61bd8153 100755 --- a/bot.php +++ b/bot.php @@ -36,6 +36,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler if ($res == '') { $res = var_export($update, true); } + try { $this->messages->sendMessage(['peer' => $update, 'message' => $res, 'reply_to_msg_id' => isset($update['message']['id']) ? $update['message']['id'] : null, 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]); } catch (\danog\MadelineProto\RPCErrorException $e) {