aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/MessageInputReplyTo.h
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-10-06 13:05:50 +0300
committerlevlam <levlam@telegram.org>2023-10-06 13:05:50 +0300
commit3e487253c741b5ac6fc832022e6387d10d313c09 (patch)
treefc5807bddaa6cb6c9796d23e6b4be1b04ca02bc7 /td/telegram/MessageInputReplyTo.h
parent811a7c60e183c42e6e7ee771e72ce5a0133b75e6 (diff)
Use separate constructors for MessageInputReplyTo.
Diffstat (limited to 'td/telegram/MessageInputReplyTo.h')
-rw-r--r--td/telegram/MessageInputReplyTo.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/td/telegram/MessageInputReplyTo.h b/td/telegram/MessageInputReplyTo.h
index deef7d09d..146c92e29 100644
--- a/td/telegram/MessageInputReplyTo.h
+++ b/td/telegram/MessageInputReplyTo.h
@@ -29,12 +29,11 @@ struct MessageInputReplyTo {
MessageInputReplyTo() = default;
- MessageInputReplyTo(MessageId message_id, StoryFullId story_full_id)
- : message_id_(message_id), story_full_id_(story_full_id) {
- CHECK(!story_full_id_.is_valid() || !message_id_.is_valid());
+ explicit MessageInputReplyTo(MessageId message_id) : message_id_(message_id) {
}
- //explicit MessageInputReplyTo(const td_api::object_ptr<td_api::InputMessageReplyTo> &reply_to_ptr);
+ explicit MessageInputReplyTo(StoryFullId story_full_id) : story_full_id_(story_full_id) {
+ }
telegram_api::object_ptr<telegram_api::InputReplyTo> get_input_reply_to(Td *td,
MessageId top_thread_message_id) const;