Add chatInviteLinkMember.via_chat_filter_invite_link.

This commit is contained in:
levlam 2023-04-03 13:36:47 +03:00
parent b374eeb6e0
commit 45a6d9864c
3 changed files with 9 additions and 4 deletions

View File

@ -866,8 +866,12 @@ chatInviteLinkCount user_id:int53 invite_link_count:int32 revoked_invite_link_co
//@description Contains a list of chat invite link counts @invite_link_counts List of invite link counts //@description Contains a list of chat invite link counts @invite_link_counts List of invite link counts
chatInviteLinkCounts invite_link_counts:vector<chatInviteLinkCount> = ChatInviteLinkCounts; chatInviteLinkCounts invite_link_counts:vector<chatInviteLinkCount> = ChatInviteLinkCounts;
//@description Describes a chat member joined a chat via an invite link @user_id User identifier @joined_chat_date Point in time (Unix timestamp) when the user joined the chat @approver_user_id User identifier of the chat administrator, approved user join request //@description Describes a chat member joined a chat via an invite link
chatInviteLinkMember user_id:int53 joined_chat_date:int32 approver_user_id:int53 = ChatInviteLinkMember; //@user_id User identifier
//@joined_chat_date Point in time (Unix timestamp) when the user joined the chat
//@via_chat_filter_invite_link True, if the user has joined the chat using an invite link for a chat filter
//@approver_user_id User identifier of the chat administrator, approved user join request
chatInviteLinkMember user_id:int53 joined_chat_date:int32 via_chat_filter_invite_link:Bool approver_user_id:int53 = ChatInviteLinkMember;
//@description Contains a list of chat members joined a chat via an invite link @total_count Approximate total number of chat members found @members List of chat members, joined a chat via an invite link //@description Contains a list of chat members joined a chat via an invite link @total_count Approximate total number of chat members found @members List of chat members, joined a chat via an invite link
chatInviteLinkMembers total_count:int32 members:vector<chatInviteLinkMember> = ChatInviteLinkMembers; chatInviteLinkMembers total_count:int32 members:vector<chatInviteLinkMember> = ChatInviteLinkMembers;

View File

@ -2411,6 +2411,7 @@ class GetChatInviteImportersQuery final : public Td::ResultHandler {
} }
invite_link_members.push_back(td_api::make_object<td_api::chatInviteLinkMember>( invite_link_members.push_back(td_api::make_object<td_api::chatInviteLinkMember>(
td_->contacts_manager_->get_user_id_object(user_id, "chatInviteLinkMember"), importer->date_, td_->contacts_manager_->get_user_id_object(user_id, "chatInviteLinkMember"), importer->date_,
importer->via_chatlist_,
td_->contacts_manager_->get_user_id_object(approver_user_id, "chatInviteLinkMember"))); td_->contacts_manager_->get_user_id_object(approver_user_id, "chatInviteLinkMember")));
} }
promise_.set_value(td_api::make_object<td_api::chatInviteLinkMembers>(total_count, std::move(invite_link_members))); promise_.set_value(td_api::make_object<td_api::chatInviteLinkMembers>(total_count, std::move(invite_link_members)));

View File

@ -3612,8 +3612,8 @@ class CliClient final : public Actor {
string limit; string limit;
get_args(args, chat_id, invite_link, offset_user_id, offset_date, limit); get_args(args, chat_id, invite_link, offset_user_id, offset_date, limit);
send_request(td_api::make_object<td_api::getChatInviteLinkMembers>( send_request(td_api::make_object<td_api::getChatInviteLinkMembers>(
chat_id, invite_link, td_api::make_object<td_api::chatInviteLinkMember>(offset_user_id, offset_date, 0), chat_id, invite_link,
as_limit(limit))); td_api::make_object<td_api::chatInviteLinkMember>(offset_user_id, offset_date, false, 0), as_limit(limit)));
} else if (op == "gcjr") { } else if (op == "gcjr") {
ChatId chat_id; ChatId chat_id;
string invite_link; string invite_link;