Add Message.is_from_offline.

This commit is contained in:
levlam 2024-03-22 13:03:48 +03:00
parent 1adfc80566
commit e327bbe8fe
2 changed files with 5 additions and 0 deletions

View File

@ -2978,6 +2978,9 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const {
if (message_->is_topic_message) {
object("is_topic_message", td::JsonTrue());
}
if (message_->is_from_offline) {
object("is_from_offline", td::JsonTrue());
}
}
class Client::JsonMessageId final : public td::Jsonable {
@ -13406,6 +13409,7 @@ void Client::init_message(MessageInfo *message_info, object_ptr<td_api::message>
}
message_info->can_be_saved = message->can_be_saved_;
message_info->is_from_offline = message->is_from_offline_;
message_info->is_topic_message = message->is_topic_message_;
message_info->author_signature = std::move(message->author_signature_);
message_info->sender_boost_count = message->sender_boost_count_;

View File

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