mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-29 13:45:49 +01:00
Add Message.sender_boost_count.
This commit is contained in:
parent
75a2aae6b3
commit
f9bd4980ee
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user