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:
parent
953e2286b8
commit
ed6616e4c7
@ -484,7 +484,6 @@ class TeleBot:
|
|||||||
if new_chat_members is None: new_chat_members = []
|
if new_chat_members is None: new_chat_members = []
|
||||||
new_chat_members.append(update.chat_member)
|
new_chat_members.append(update.chat_member)
|
||||||
if update.chat_join_request:
|
if update.chat_join_request:
|
||||||
print('we received1')
|
|
||||||
if chat_join_request is None: chat_join_request = []
|
if chat_join_request is None: chat_join_request = []
|
||||||
chat_join_request.append(update.chat_join_request)
|
chat_join_request.append(update.chat_join_request)
|
||||||
|
|
||||||
@ -515,7 +514,6 @@ class TeleBot:
|
|||||||
if new_chat_members:
|
if new_chat_members:
|
||||||
self.process_new_chat_member(new_chat_members)
|
self.process_new_chat_member(new_chat_members)
|
||||||
if chat_join_request:
|
if chat_join_request:
|
||||||
print('we received2')
|
|
||||||
self.process_chat_join_request(chat_join_request)
|
self.process_chat_join_request(chat_join_request)
|
||||||
|
|
||||||
|
|
||||||
|
@ -175,6 +175,7 @@ class ChatJoinRequest(JsonDeserializable):
|
|||||||
obj = cls.check_json(json_string)
|
obj = cls.check_json(json_string)
|
||||||
obj['chat'] = Chat.de_json(obj['chat'])
|
obj['chat'] = Chat.de_json(obj['chat'])
|
||||||
obj['from_user'] = User.de_json(obj['from'])
|
obj['from_user'] = User.de_json(obj['from'])
|
||||||
|
obj['invite_link'] = ChatInviteLink.de_json(obj['invite_link'])
|
||||||
|
|
||||||
return cls(**obj)
|
return cls(**obj)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user