Skip to content

Commit

Permalink
Add more errors, update to v0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed May 23, 2017
1 parent 9b5d1b0 commit fabf806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions telethon/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ class RPCError(Exception):
'CHANNEL_INVALID':
'Invalid channel object. Make sure to pass the right types.',
'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
'AUTH_KEY_UNREGISTERED': 'The key is not registered in the system.',
Expand Down
2 changes: 1 addition & 1 deletion telethon/telegram_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class TelegramClient:

# Current TelegramClient version
__version__ = '0.9'
__version__ = '0.9.1'

# region Initialization

Expand Down

0 comments on commit fabf806

Please sign in to comment.