Add messageChatJoinByRequest.
This commit is contained in:
parent
fd0de189f8
commit
a4592bd522
@ -1801,8 +1801,11 @@ messageChatDeletePhoto = MessageContent;
|
||||
//@description New chat members were added @member_user_ids User identifiers of the new members
|
||||
messageChatAddMembers member_user_ids:vector<int53> = MessageContent;
|
||||
|
||||
//@description A new member joined the chat by invite link @is_approved True, if the join request was approved by a chat administrator
|
||||
messageChatJoinByLink is_approved:Bool = MessageContent;
|
||||
//@description A new member joined the chat by invite link
|
||||
messageChatJoinByLink = MessageContent;
|
||||
|
||||
//@description A new member was accepted to the chat by an administrator
|
||||
messageChatJoinByRequest = MessageContent;
|
||||
|
||||
//@description A chat member was deleted @user_id User identifier of the deleted chat member
|
||||
messageChatDeleteMember user_id:int53 = MessageContent;
|
||||
|
@ -4887,7 +4887,10 @@ tl_object_ptr<td_api::MessageContent> get_message_content_object(const MessageCo
|
||||
}
|
||||
case MessageContentType::ChatJoinedByLink: {
|
||||
const MessageChatJoinedByLink *m = static_cast<const MessageChatJoinedByLink *>(content);
|
||||
return make_tl_object<td_api::messageChatJoinByLink>(m->is_approved);
|
||||
if (m->is_approved) {
|
||||
return make_tl_object<td_api::messageChatJoinByRequest>();
|
||||
}
|
||||
return make_tl_object<td_api::messageChatJoinByLink>();
|
||||
}
|
||||
case MessageContentType::ChatDeleteUser: {
|
||||
const auto *m = static_cast<const MessageChatDeleteUser *>(content);
|
||||
|
Loading…
Reference in New Issue
Block a user