diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 20fe195eb..a288124a1 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -3663,8 +3663,8 @@ chatEventPollStopped message:message = ChatEventAction; //@description A new member joined the chat chatEventMemberJoined = ChatEventAction; -//@description A new member joined the chat via an invite link @invite_link Invite link used to join the chat -chatEventMemberJoinedByInviteLink invite_link:chatInviteLink = ChatEventAction; +//@description A new member joined the chat via an invite link @invite_link Invite link used to join the chat @via_chat_filter_invite_link True, if the user has joined the chat using an invite link for a chat filter +chatEventMemberJoinedByInviteLink invite_link:chatInviteLink via_chat_filter_invite_link:Bool = 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; diff --git a/td/telegram/DialogEventLog.cpp b/td/telegram/DialogEventLog.cpp index f0002f26e..81c40a1fe 100644 --- a/td/telegram/DialogEventLog.cpp +++ b/td/telegram/DialogEventLog.cpp @@ -48,7 +48,7 @@ static td_api::object_ptr get_chat_event_action_object( return nullptr; } return td_api::make_object( - invite_link.get_chat_invite_link_object(td->contacts_manager_.get())); + invite_link.get_chat_invite_link_object(td->contacts_manager_.get()), action->via_chatlist_); } case telegram_api::channelAdminLogEventActionParticipantJoinByRequest::ID: { auto action = move_tl_object_as(action_ptr);