mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Catch -404 BrokenAuthKeyError on .connect()'s .do_authentication
This commit is contained in:
@@ -38,6 +38,14 @@ class InvalidChecksumError(Exception):
|
||||
self.valid_checksum = valid_checksum
|
||||
|
||||
|
||||
class BrokenAuthKeyError(Exception):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
self,
|
||||
'The authorization key is broken, and it must be reset.'
|
||||
)
|
||||
|
||||
|
||||
class CdnFileTamperedError(Exception):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
|
Reference in New Issue
Block a user