Add updateNewChatJoinRequest.user_chat_id.
This commit is contained in:
parent
4d70d1e920
commit
9d5299820c
@ -5524,8 +5524,12 @@ updatePollAnswer poll_id:int64 user_id:int53 option_ids:vector<int32> = Update;
|
|||||||
//@new_chat_member New chat member
|
//@new_chat_member New chat member
|
||||||
updateChatMember chat_id:int53 actor_user_id:int53 date:int32 invite_link:chatInviteLink old_chat_member:chatMember new_chat_member:chatMember = Update;
|
updateChatMember chat_id:int53 actor_user_id:int53 date:int32 invite_link:chatInviteLink old_chat_member:chatMember new_chat_member:chatMember = Update;
|
||||||
|
|
||||||
//@description A user sent a join request to a chat; for bots only @chat_id Chat identifier @request Join request @invite_link The invite link, which was used to send join request; may be null
|
//@description A user sent a join request to a chat; for bots only
|
||||||
updateNewChatJoinRequest chat_id:int53 request:chatJoinRequest invite_link:chatInviteLink = Update;
|
//@chat_id Chat identifier
|
||||||
|
//@request Join request
|
||||||
|
//@user_chat_id Chat identifier of the private chat with the user
|
||||||
|
//@invite_link The invite link, which was used to send join request; may be null
|
||||||
|
updateNewChatJoinRequest chat_id:int53 request:chatJoinRequest user_chat_id:int53 invite_link:chatInviteLink = Update;
|
||||||
|
|
||||||
|
|
||||||
//@description Contains a list of updates @updates List of updates
|
//@description Contains a list of updates @updates List of updates
|
||||||
|
@ -15663,14 +15663,16 @@ void ContactsManager::on_update_chat_invite_requester(DialogId dialog_id, UserId
|
|||||||
<< date;
|
<< date;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
DialogId user_dialog_id(user_id);
|
||||||
td_->messages_manager_->force_create_dialog(dialog_id, "on_update_chat_invite_requester", true);
|
td_->messages_manager_->force_create_dialog(dialog_id, "on_update_chat_invite_requester", true);
|
||||||
|
td_->messages_manager_->force_create_dialog(user_dialog_id, "on_update_chat_invite_requester");
|
||||||
|
|
||||||
send_closure(G()->td(), &Td::send_update,
|
send_closure(G()->td(), &Td::send_update,
|
||||||
td_api::make_object<td_api::updateNewChatJoinRequest>(
|
td_api::make_object<td_api::updateNewChatJoinRequest>(
|
||||||
dialog_id.get(),
|
dialog_id.get(),
|
||||||
td_api::make_object<td_api::chatJoinRequest>(
|
td_api::make_object<td_api::chatJoinRequest>(
|
||||||
get_user_id_object(user_id, "on_update_chat_invite_requester"), date, about),
|
get_user_id_object(user_id, "on_update_chat_invite_requester"), date, about),
|
||||||
invite_link.get_chat_invite_link_object(this)));
|
user_dialog_id.get(), invite_link.get_chat_invite_link_object(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ContactsManager::update_contacts_hints(const User *u, UserId user_id, bool from_database) {
|
void ContactsManager::update_contacts_hints(const User *u, UserId user_id, bool from_database) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user