mirror of
https://github.com/tdlib/telegram-bot-api
synced 2025-08-22 09:57:44 +00:00
Add Message.paid_star_count.
This commit is contained in:
parent
f0207bb215
commit
ddd1344b65
@ -3127,9 +3127,6 @@ 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_));
|
||||
}
|
||||
@ -3634,6 +3631,12 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const {
|
||||
if (message_->effect_id != 0) {
|
||||
object("effect_id", td::to_string(message_->effect_id));
|
||||
}
|
||||
if (message_->sender_boost_count != 0) {
|
||||
object("sender_boost_count", message_->sender_boost_count);
|
||||
}
|
||||
if (message_->paid_message_star_count != 0) {
|
||||
object("paid_star_count", message_->paid_message_star_count);
|
||||
}
|
||||
}
|
||||
|
||||
class Client::JsonMessageId final : public td::Jsonable {
|
||||
@ -15080,6 +15083,7 @@ void Client::init_message(MessageInfo *message_info, object_ptr<td_api::message>
|
||||
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_;
|
||||
message_info->paid_message_star_count = message->paid_message_star_count_;
|
||||
message_info->effect_id = message->effect_id_;
|
||||
|
||||
drop_internal_reply_to_message_in_another_chat(message);
|
||||
|
@ -974,6 +974,7 @@ class Client final : public WebhookActor::Callback {
|
||||
int32 edit_date = 0;
|
||||
int32 initial_send_date = 0;
|
||||
int32 sender_boost_count = 0;
|
||||
int64 paid_message_star_count = 0;
|
||||
object_ptr<td_api::MessageOrigin> forward_origin;
|
||||
td::string author_signature;
|
||||
td::unique_ptr<MessageInfo> business_reply_to_message;
|
||||
|
Loading…
x
Reference in New Issue
Block a user