mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-11-11 03:20:35 +00:00
Handle AUTH_KEY_DUPLICATED on connection
This commit is contained in:
@@ -78,6 +78,9 @@ def rpc_message_to_error(code, message, report_method=None):
|
||||
if code == 404:
|
||||
return NotFoundError(message)
|
||||
|
||||
if code == 406:
|
||||
return AuthKeyError(message)
|
||||
|
||||
if code == 500:
|
||||
return ServerError(message)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user