Add more errors

This commit is contained in:
Lonami Exo 2017-03-20 12:44:10 +01:00
parent 258c7f1df6
commit b4c81a60b3

View File

@ -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.',