Merge branch 'master' of https://github.com/danog/MadelineProto
This commit is contained in:
commit
a3a78dcfc4
1
.gitignore
vendored
1
.gitignore
vendored
@ -76,6 +76,7 @@ token.php
|
|||||||
*~uploading*
|
*~uploading*
|
||||||
session.mad
|
session.mad
|
||||||
*.madeline
|
*.madeline
|
||||||
|
*.madeline.lock
|
||||||
enc.tar.xz
|
enc.tar.xz
|
||||||
a
|
a
|
||||||
web_data.php
|
web_data.php
|
||||||
|
@ -143,6 +143,16 @@ class APIFactory
|
|||||||
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
||||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||||
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
||||||
|
} catch (\danog\MadelineProto\TL\Exception $e) {
|
||||||
|
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
||||||
|
} catch (\danog\MadelineProto\NothingInTheSocketException $e) {
|
||||||
|
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
||||||
|
} catch (\danog\MadelineProto\PTSException $e) {
|
||||||
|
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
||||||
|
} catch (\danog\MadelineProto\SecurityException $e) {
|
||||||
|
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
||||||
|
} catch (\danog\MadelineProto\TL\Conversion\Exception $e) {
|
||||||
|
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user