From f9bd4980ee1b3abbb5465dc6de3c8dba262b1837 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 14 Feb 2024 17:53:10 +0300 Subject: [PATCH] Add Message.sender_boost_count. --- telegram-bot-api/Client.cpp | 4 ++++ telegram-bot-api/Client.h | 1 + 2 files changed, 5 insertions(+) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 02b65fa..193c7e2 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -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 &&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); diff --git a/telegram-bot-api/Client.h b/telegram-bot-api/Client.h index 6f7fe52..1e860a3 100644 --- a/telegram-bot-api/Client.h +++ b/telegram-bot-api/Client.h @@ -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 forward_origin; td::string author_signature; object_ptr reply_to_message;