Add MessageInputReplyTo::get_reply_message_full_id.
This commit is contained in:
parent
4425eadc3c
commit
cfff600a44
@ -81,6 +81,13 @@ td_api::object_ptr<td_api::InputMessageReplyTo> MessageInputReplyTo::get_input_m
|
||||
return td_api::make_object<td_api::inputMessageReplyToMessage>(message_id_.get());
|
||||
}
|
||||
|
||||
MessageFullId MessageInputReplyTo::get_reply_message_full_id(DialogId owner_dialog_id) const {
|
||||
if (!message_id_.is_valid()) {
|
||||
return {};
|
||||
}
|
||||
return {owner_dialog_id, message_id_};
|
||||
}
|
||||
|
||||
bool operator==(const MessageInputReplyTo &lhs, const MessageInputReplyTo &rhs) {
|
||||
return lhs.message_id_ == rhs.message_id_ && lhs.story_full_id_ == rhs.story_full_id_;
|
||||
}
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#include "td/telegram/DialogId.h"
|
||||
#include "td/telegram/MessageFullId.h"
|
||||
#include "td/telegram/MessageId.h"
|
||||
#include "td/telegram/StoryFullId.h"
|
||||
#include "td/telegram/td_api.h"
|
||||
@ -46,6 +48,8 @@ struct MessageInputReplyTo {
|
||||
|
||||
td_api::object_ptr<td_api::InputMessageReplyTo> get_input_message_reply_to_object(Td *td, DialogId dialog_id) const;
|
||||
|
||||
MessageFullId get_reply_message_full_id(DialogId owner_dialog_id) const;
|
||||
|
||||
template <class StorerT>
|
||||
void store(StorerT &storer) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user