mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 23:14:38 +01:00
I DONT GET EMPTY UPDATES
This commit is contained in:
parent
a060e84da9
commit
ce4df5a10d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user