mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Add more errors
This commit is contained in:
parent
258c7f1df6
commit
b4c81a60b3
|
@ -126,6 +126,9 @@ class RPCError(Exception):
|
||||||
'(for example, to send a message in a channel which is not yours).',
|
'(for example, to send a message in a channel which is not yours).',
|
||||||
'PASSWORD_HASH_INVALID':
|
'PASSWORD_HASH_INVALID':
|
||||||
'The password (and thus its hash value) you entered is invalid.',
|
'The password (and thus its hash value) you entered is invalid.',
|
||||||
|
'BOT_METHOD_INVALID':
|
||||||
|
'The API access for bot users is restricted. The method you tried '
|
||||||
|
'to invoke cannot be executed as a bot.',
|
||||||
|
|
||||||
# 401 UNAUTHORIZED
|
# 401 UNAUTHORIZED
|
||||||
'AUTH_KEY_UNREGISTERED': 'The key is not registered in the system.',
|
'AUTH_KEY_UNREGISTERED': 'The key is not registered in the system.',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user