From 80807a4a2695c124c19e597fe52d75cb5ea9a85b Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 27 Feb 2026 14:17:22 +0300 Subject: [PATCH] Add Message.sender_tag. --- 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 1c32744..423a13b 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -4452,6 +4452,9 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const { if (message_->sender_boost_count != 0) { object("sender_boost_count", message_->sender_boost_count); } + if (!message_->sender_tag.empty()) { + object("sender_tag", message_->sender_tag); + } if (message_->paid_message_star_count != 0) { object("paid_star_count", message_->paid_message_star_count); } @@ -17347,6 +17350,7 @@ void Client::init_message(MessageInfo *message_info, object_ptr message_info->topic_id = std::move(message->topic_id_); message_info->author_signature = std::move(message->author_signature_); message_info->sender_boost_count = message->sender_boost_count_; + message_info->sender_tag = std::move(message->sender_tag_); message_info->paid_message_star_count = message->paid_message_star_count_; message_info->effect_id = message->effect_id_; message_info->is_paid_post = message->is_paid_star_suggested_post_ || message->is_paid_ton_suggested_post_; diff --git a/telegram-bot-api/Client.h b/telegram-bot-api/Client.h index 020b13d..46bc25f 100644 --- a/telegram-bot-api/Client.h +++ b/telegram-bot-api/Client.h @@ -1117,6 +1117,7 @@ class Client final : public WebhookActor::Callback { int64 paid_message_star_count = 0; object_ptr forward_origin; td::string author_signature; + td::string sender_tag; td::unique_ptr business_reply_to_message; object_ptr reply_to_message; object_ptr reply_to_story;