aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/MessageInputReplyTo.h
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-10-27 13:33:00 +0300
committerlevlam <levlam@telegram.org>2023-10-27 13:33:00 +0300
commit012211ea19b9678c5ed50fc96d3684ff9db349f9 (patch)
tree75a9ce3cec8c594cc0565513902aaa60b593a2e9 /td/telegram/MessageInputReplyTo.h
parentec231f0c99f142205172ba58de60700d28c6b641 (diff)
Pass MessageInputReplyTo to set_message_reply.
Diffstat (limited to 'td/telegram/MessageInputReplyTo.h')
-rw-r--r--td/telegram/MessageInputReplyTo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/td/telegram/MessageInputReplyTo.h b/td/telegram/MessageInputReplyTo.h
index 1a8ce01f3..63a259b51 100644
--- a/td/telegram/MessageInputReplyTo.h
+++ b/td/telegram/MessageInputReplyTo.h
@@ -70,6 +70,11 @@ class MessageInputReplyTo {
td_api::object_ptr<td_api::InputMessageReplyTo> get_input_message_reply_to_object(Td *td, DialogId dialog_id) const;
+ void set_message_id(MessageId new_message_id) {
+ CHECK(message_id_.is_valid() || message_id_.is_valid_scheduled());
+ message_id_ = new_message_id;
+ }
+
MessageId get_same_chat_reply_to_message_id() const;
MessageFullId get_reply_message_full_id(DialogId owner_dialog_id) const;