Bugfix to update handling

This commit is contained in:
Daniil Gentili 2018-03-13 12:21:28 +00:00
parent d60fad2ea4
commit f73b4645af

View File

@ -160,6 +160,8 @@ trait UpdateHandler
$peer_id = $this->get_info($message['to_id'])['bot_api_id'];
} catch (\danog\MadelineProto\Exception $e) {
return true;
} catch (\danog\MadelineProto\RPCErrorException $e) {
return true;
}
$message_id = $message['id'];
if (!isset($this->msg_ids[$peer_id]) || $message_id > $this->msg_ids[$peer_id]) {