Add Message.sender_boost_count.

This commit is contained in:
levlam 2024-02-14 17:53:10 +03:00
parent 75a2aae6b3
commit f9bd4980ee
2 changed files with 5 additions and 0 deletions

View File

@ -2396,6 +2396,9 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const {
if (!message_->author_signature.empty()) {
object("author_signature", message_->author_signature);
}
if (message_->sender_boost_count != 0) {
object("sender_boost_count", message_->sender_boost_count);
}
if (message_->sender_chat_id != 0) {
object("sender_chat", JsonChat(message_->sender_chat_id, client_));
}
@ -12810,6 +12813,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_);
message_info->sender_boost_count = message->sender_boost_count_;
drop_internal_reply_to_message_in_another_chat(message);

View File

@ -867,6 +867,7 @@ class Client final : public WebhookActor::Callback {
int32 date = 0;
int32 edit_date = 0;
int32 initial_send_date = 0;
int32 sender_boost_count = 0;
object_ptr<td_api::MessageOrigin> forward_origin;
td::string author_signature;
object_ptr<td_api::messageReplyToMessage> reply_to_message;