diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index da00ed9..74d5c5b 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -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 } 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_; diff --git a/telegram-bot-api/Client.h b/telegram-bot-api/Client.h index 66b7f8c..116998c 100644 --- a/telegram-bot-api/Client.h +++ b/telegram-bot-api/Client.h @@ -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; };