From 5df471616432e8c6d4bb504607d3f029c12d75ed Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 10 Jun 2017 10:08:08 +0200 Subject: [PATCH] Add errors related to #103 --- telethon/errors.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telethon/errors.py b/telethon/errors.py index b60904da..14ab7d33 100644 --- a/telethon/errors.py +++ b/telethon/errors.py @@ -178,6 +178,10 @@ class RPCError(Exception): 'The method is unavailable for temporary authorization key, not bound to permanent.', 'SESSION_PASSWORD_NEEDED': 'Two-steps verification is enabled and a password is required.', + 'USER_ALREADY_PARTICIPANT': + 'The authenticated user is already a participant of the chat.', + 'INVITE_HASH_EXPIRED': + 'The chat the user tried to join has expired and is not valid anymore.', # 420 FLOOD 'FLOOD_WAIT_(\d+)': 'A wait of {} seconds is required.'