mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 08:18:59 +01:00
Update bot.php
This commit is contained in:
parent
6b2f812a7e
commit
d7359b6f77
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user