Add messageReplyToMessage.send_date.

This commit is contained in:
levlam 2023-10-26 16:14:43 +03:00
parent f0d166cbdc
commit a953ef7225
2 changed files with 3 additions and 2 deletions

View File

@ -1231,7 +1231,8 @@ messageSendingStateFailed error:error can_retry:Bool need_another_sender:Bool re
//@message_id The identifier of the message; may be 0 if the replied message is in another chat and isn't accessible //@message_id The identifier of the message; may be 0 if the replied message is in another chat and isn't accessible
//@quote Manually or automatically chosen quote from the replied message; may be null if none //@quote Manually or automatically chosen quote from the replied message; may be null if none
//@is_quote_manual True, if the quote was manually chosen by the message sender //@is_quote_manual True, if the quote was manually chosen by the message sender
messageReplyToMessage chat_id:int53 message_id:int53 quote:formattedText is_quote_manual:Bool = MessageReplyTo; //@send_date Point in time (Unix timestamp) when the message was sent if the message is from another chat; 0 for messages from the same chat
messageReplyToMessage chat_id:int53 message_id:int53 quote:formattedText is_quote_manual:Bool send_date:int32 = MessageReplyTo;
//@description Describes a story replied by a given message @story_sender_chat_id The identifier of the sender of the story @story_id The identifier of the story //@description Describes a story replied by a given message @story_sender_chat_id The identifier of the sender of the story @story_id The identifier of the story
messageReplyToStory story_sender_chat_id:int53 story_id:int32 = MessageReplyTo; messageReplyToStory story_sender_chat_id:int53 story_id:int32 = MessageReplyTo;

View File

@ -195,7 +195,7 @@ td_api::object_ptr<td_api::messageReplyToMessage> RepliedMessageInfo::get_messag
} }
return td_api::make_object<td_api::messageReplyToMessage>( return td_api::make_object<td_api::messageReplyToMessage>(
td->messages_manager_->get_chat_id_object(dialog_id, "messageReplyToMessage"), message_id_.get(), td->messages_manager_->get_chat_id_object(dialog_id, "messageReplyToMessage"), message_id_.get(),
std::move(quote), is_quote_manual_); std::move(quote), is_quote_manual_, origin_date_);
} }
MessageId RepliedMessageInfo::get_same_chat_reply_to_message_id() const { MessageId RepliedMessageInfo::get_same_chat_reply_to_message_id() const {