From 401ef61b0c528a50962c4ff89d2edb2a18da8407 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 15 Apr 2019 00:15:28 +0300 Subject: [PATCH] Add forwarded_from_* to messageForwardedFromHiddenUser. GitOrigin-RevId: ad13e8f6f45a243196ebf66c282fbd56927ef1d9 --- td/generate/scheme/td_api.tl | 4 +++- td/generate/scheme/td_api.tlo | Bin 150936 -> 151036 bytes td/telegram/MessagesManager.cpp | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) 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 bb97e5a0471803b0cbf455c1afee33b8aaec1af6..71c5a5b8d94704645405ad1762c7d9f2683b39ec 100644 GIT binary patch delta 134 zcmbO+oAb|X&J9O|SeE=!T)Fv#P|I!zE8tv$C?`nl<}o23mdOX->rWPVtuUG6NrnhW zlmQB^%5lZmaC9b5Zh4}Bqu&=loKR&^O%qi%k+u;jQZ2(1T!j3)_Im8 z0upC{f~#^|F~;YtKTU3Vq5#*xG 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,