diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 03aa2bca..b511ad14 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -478,7 +478,9 @@ messageForwardedFromUser sender_user_id:int32 date:int32 forwarded_from_chat_id: //@description The message was originally written by a user, which is hidden by his privacy settings //@sender_name Name of the sender //@date Point in time (Unix timestamp) when the message was originally sent -messageForwardedFromHiddenUser sender_name:string date:int32 = MessageForwardInfo; +//@forwarded_from_chat_id For messages forwarded to the chat with the current user (saved messages), the identifier of the chat from which the message was forwarded; 0 if unknown +//@forwarded_from_message_id For messages forwarded to the chat with the current user (saved messages) the identifier of the original message from which the new message was forwarded; 0 if unknown +messageForwardedFromHiddenUser sender_name:string date:int32 forwarded_from_chat_id:int53 forwarded_from_message_id:int53 = MessageForwardInfo; //@description The message was originally a post in a channel //@chat_id Identifier of the chat from which the message was forwarded diff --git a/td/generate/scheme/td_api.tlo b/td/generate/scheme/td_api.tlo index bb97e5a0..71c5a5b8 100644 Binary files a/td/generate/scheme/td_api.tlo and b/td/generate/scheme/td_api.tlo differ diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index fb7a4599..158427a0 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -17723,8 +17723,9 @@ tl_object_ptr MessagesManager::get_message_forward_i if (forward_info->dialog_id.is_valid()) { if (is_forward_info_sender_hidden(forward_info.get())) { - return td_api::make_object(forward_info->author_signature, - forward_info->date); + return td_api::make_object( + forward_info->author_signature, forward_info->date, forward_info->from_dialog_id.get(), + forward_info->from_message_id.get()); } return td_api::make_object( forward_info->dialog_id.get(), forward_info->author_signature, forward_info->date,