Update bot.php

This commit is contained in:
Daniil Gentili 2020-02-13 20:28:12 +01:00 committed by GitHub
parent 6b2f812a7e
commit d7359b6f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -42,13 +42,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler
}
public function onUpdateNewMessage($update)
{
if (isset($update['message']['out']) && $update['message']['out']) {
return;
}
if ($update['_'] === 'updateReadChannelOutbox') {
return;
}
if (isset($update['message']['_']) && $update['message']['_'] === 'messageEmpty') {
if ($update['message']['_'] === 'messageEmpty' || $update['message']['out'] ?? false) {
return;
}
$res = \json_encode($update, JSON_PRETTY_PRINT);