Add forwarded_from_* to messageForwardedFromHiddenUser.

GitOrigin-RevId: ad13e8f6f45a243196ebf66c282fbd56927ef1d9
This commit is contained in:
levlam 2019-04-15 00:15:28 +03:00
parent a662c5b102
commit 401ef61b0c
3 changed files with 6 additions and 3 deletions

View File

@ -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

Binary file not shown.

View File

@ -17723,8 +17723,9 @@ tl_object_ptr<td_api::MessageForwardInfo> 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<td_api::messageForwardedFromHiddenUser>(forward_info->author_signature,
forward_info->date);
return td_api::make_object<td_api::messageForwardedFromHiddenUser>(
forward_info->author_signature, forward_info->date, forward_info->from_dialog_id.get(),
forward_info->from_message_id.get());
}
return td_api::make_object<td_api::messageForwardedPost>(
forward_info->dialog_id.get(), forward_info->author_signature, forward_info->date,