I DONT GET EMPTY UPDATES

This commit is contained in:
Daniil Gentili 2017-02-02 16:15:08 +01:00
parent a060e84da9
commit ce4df5a10d

View File

@ -495,6 +495,7 @@ trait UpdateHandler
{
$payload = json_encode($this->utf8ize($update));
\danog\MadelineProto\Logger::log([$update, $payload, json_last_error()]);
if ($payload === '') { \danog\MadelineProto\Logger::log(['EMPTY UPDATE']); return false; }
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $this->hook_url);