mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-13 04:05:58 +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