mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 04:14:57 +01:00
Please do not send all reports to me
This commit is contained in:
parent
6e3c2f4cf6
commit
e298dbc6b4
@ -1936,6 +1936,9 @@ class MTProto extends AsyncConstruct implements TLCallback
|
||||
foreach ($userOrId as $k => &$peer) {
|
||||
try {
|
||||
$peer = (yield from $this->getInfo($peer))['bot_api_id'];
|
||||
if ($peer === 101374607) {
|
||||
unset($userOrId[$k]);
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
unset($userOrId[$k]);
|
||||
$this->logger("Could not obtain info about report peer $peer: $e", Logger::FATAL_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user