1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Bot API 5.4

This commit is contained in:
_run 2021-11-06 12:21:02 +05:00
parent 953e2286b8
commit ed6616e4c7
2 changed files with 1 additions and 2 deletions

View File

@ -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)

View File

@ -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)