mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 21:14:43 +01:00
Gotta catch 'em all!!! (#164)
* Update get_dialogs * Gotta catch 'em all!!!
This commit is contained in:
parent
1c742559cc
commit
04e1b8c4d7
1
.gitignore
vendored
1
.gitignore
vendored
@ -76,6 +76,7 @@ token.php
|
||||
*~uploading*
|
||||
session.mad
|
||||
*.madeline
|
||||
*.madeline.lock
|
||||
enc.tar.xz
|
||||
a
|
||||
web_data.php
|
||||
|
@ -143,6 +143,16 @@ class APIFactory
|
||||
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
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