mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-03 13:47:47 +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)
|
public function onUpdateNewMessage($update)
|
||||||
{
|
{
|
||||||
if (isset($update['message']['out']) && $update['message']['out']) {
|
if ($update['message']['_'] === 'messageEmpty' || $update['message']['out'] ?? false) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ($update['_'] === 'updateReadChannelOutbox') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (isset($update['message']['_']) && $update['message']['_'] === 'messageEmpty') {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$res = \json_encode($update, JSON_PRETTY_PRINT);
|
$res = \json_encode($update, JSON_PRETTY_PRINT);
|
||||||
|
Loading…
Reference in New Issue
Block a user