Add chatEventMemberJoinedByRequest.

This commit is contained in:
levlam 2021-11-02 18:05:50 +03:00
parent 41668e3aca
commit 9d467d1ea5
2 changed files with 9 additions and 6 deletions

View File

@ -2539,8 +2539,11 @@ chatEventMessageUnpinned message:message = ChatEventAction;
//@description A new member joined the chat
chatEventMemberJoined = ChatEventAction;
//@description A new member joined the chat by an invite link @invite_link Invite link used to join the chat @approver_user_id User identifier of the chat administrator, approved user join request; 0 if the approval wasn't needed
chatEventMemberJoinedByInviteLink invite_link:chatInviteLink approver_user_id:int53 = ChatEventAction;
//@description A new member joined the chat by an invite link @invite_link Invite link used to join the chat
chatEventMemberJoinedByInviteLink invite_link:chatInviteLink = ChatEventAction;
//@description A new member was accepted to the chat by an administrator @approver_user_id User identifier of the chat administrator, approved user join request @invite_link Invite link used to join the chat; may be null
chatEventMemberJoinedByRequest approver_user_id:int53 invite_link:chatInviteLink = ChatEventAction;
//@description A member left the chat
chatEventMemberLeft = ChatEventAction;

View File

@ -32436,7 +32436,7 @@ tl_object_ptr<td_api::ChatEventAction> MessagesManager::get_chat_event_action_ob
return nullptr;
}
return make_tl_object<td_api::chatEventMemberJoinedByInviteLink>(
invite_link.get_chat_invite_link_object(td_->contacts_manager_.get()), 0);
invite_link.get_chat_invite_link_object(td_->contacts_manager_.get()));
}
case telegram_api::channelAdminLogEventActionParticipantJoinByRequest::ID: {
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionParticipantJoinByRequest>(action_ptr);
@ -32449,9 +32449,9 @@ tl_object_ptr<td_api::ChatEventAction> MessagesManager::get_chat_event_action_ob
if (!approver_user_id.is_valid()) {
return nullptr;
}
return make_tl_object<td_api::chatEventMemberJoinedByInviteLink>(
invite_link.get_chat_invite_link_object(td_->contacts_manager_.get()),
td_->contacts_manager_->get_user_id_object(approver_user_id, "chatEventMemberJoinedByInviteLink"));
return make_tl_object<td_api::chatEventMemberJoinedByRequest>(
td_->contacts_manager_->get_user_id_object(approver_user_id, "chatEventMemberJoinedByRequest"),
invite_link.get_chat_invite_link_object(td_->contacts_manager_.get()));
}
case telegram_api::channelAdminLogEventActionParticipantLeave::ID:
return make_tl_object<td_api::chatEventMemberLeft>();