Add Message.is_topic_message.

This commit is contained in:
levlam 2022-10-31 17:14:23 +03:00
parent b0fec0b09d
commit 1c3235b402
2 changed files with 5 additions and 0 deletions

View File

@ -2077,6 +2077,9 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
if (!message_->can_be_saved) {
object("has_protected_content", td::JsonTrue());
}
if (message_->is_topic_message) {
object("is_topic_message", td::JsonTrue());
}
}
class Client::JsonDeletedMessage final : public Jsonable {
@ -10430,6 +10433,7 @@ Client::FullMessageId Client::add_message(object_ptr<td_api::message> &&message,
}
message_info->can_be_saved = message->can_be_saved_;
message_info->is_topic_message = message->is_topic_message_;
message_info->author_signature = std::move(message->author_signature_);
if (message->reply_in_chat_id_ != chat_id && message->reply_to_message_id_ != 0) {

View File

@ -749,6 +749,7 @@ class Client final : public WebhookActor::Callback {
bool can_be_saved = false;
bool is_automatic_forward = false;
bool is_topic_message = false;
mutable bool is_reply_to_message_deleted = false;
mutable bool is_content_changed = false;
};