1
0
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:
Daniil Gentili 2021-06-14 20:49:38 +02:00
parent 6e3c2f4cf6
commit e298dbc6b4
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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);