Add more errors, update to v0.9.1

This commit is contained in:
Lonami Exo 2017-05-23 10:31:52 +02:00
parent 9b5d1b02e0
commit fabf806979
2 changed files with 5 additions and 1 deletions

View File

@ -142,6 +142,10 @@ class RPCError(Exception):
'CHANNEL_INVALID': 'CHANNEL_INVALID':
'Invalid channel object. Make sure to pass the right types.', 'Invalid channel object. Make sure to pass the right types.',
'MESSAGE_ID_INVALID': 'The specified message ID is invalid.', 'MESSAGE_ID_INVALID': 'The specified message ID is invalid.',
'CONNECTION_LAYER_INVALID':
'The very first request must always be InvokeWithLayerRequest.',
'INPUT_METHOD_INVALID':
'The invoked method does not exist anymore or has never existed.',
# 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.',

View File

@ -39,7 +39,7 @@ from .utils import (find_user_or_chat, get_input_peer,
class TelegramClient: class TelegramClient:
# Current TelegramClient version # Current TelegramClient version
__version__ = '0.9' __version__ = '0.9.1'
# region Initialization # region Initialization