1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 11:18:59 +01:00

Possible fix for PERSISTENT_TIMESTAMP_OUTDATED

This commit is contained in:
Daniil Gentili 2017-05-19 16:36:05 +02:00 committed by GitHub
parent 3684603bd0
commit dfc7d17f2d

View File

@ -323,6 +323,10 @@ trait ResponseHandler
public function handle_rpc_error($server_answer, &$aargs)
{
if ($server_answer['error_message'] === 'PERSISTENT_TIMESTAMP_OUTDATED') {
$this->got_state = false;
throw new \danog\MadelineProto\Exception('Update the timestamp pls');
}
switch ($server_answer['error_code']) {
case 303:
$this->datacenter->curdc = $aargs['datacenter'] = (int) preg_replace('/[^0-9]+/', '', $server_answer['error_message']);