diff --git a/telebot/__init__.py b/telebot/__init__.py index 4aba9f9..0919f6d 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -484,7 +484,6 @@ class TeleBot: if new_chat_members is None: new_chat_members = [] new_chat_members.append(update.chat_member) if update.chat_join_request: - print('we received1') if chat_join_request is None: chat_join_request = [] chat_join_request.append(update.chat_join_request) @@ -515,7 +514,6 @@ class TeleBot: if new_chat_members: self.process_new_chat_member(new_chat_members) if chat_join_request: - print('we received2') self.process_chat_join_request(chat_join_request) diff --git a/telebot/types.py b/telebot/types.py index 972e2fd..fdf6467 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -175,6 +175,7 @@ class ChatJoinRequest(JsonDeserializable): obj = cls.check_json(json_string) obj['chat'] = Chat.de_json(obj['chat']) obj['from_user'] = User.de_json(obj['from']) + obj['invite_link'] = ChatInviteLink.de_json(obj['invite_link']) return cls(**obj)