mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 09:14:39 +01:00
Possible fix for PERSISTENT_TIMESTAMP_OUTDATED
This commit is contained in:
parent
3684603bd0
commit
dfc7d17f2d
@ -323,6 +323,10 @@ trait ResponseHandler
|
|||||||
|
|
||||||
public function handle_rpc_error($server_answer, &$aargs)
|
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']) {
|
switch ($server_answer['error_code']) {
|
||||||
case 303:
|
case 303:
|
||||||
$this->datacenter->curdc = $aargs['datacenter'] = (int) preg_replace('/[^0-9]+/', '', $server_answer['error_message']);
|
$this->datacenter->curdc = $aargs['datacenter'] = (int) preg_replace('/[^0-9]+/', '', $server_answer['error_message']);
|
||||||
|
Loading…
Reference in New Issue
Block a user