Add Message.effect_id.

This commit is contained in:
levlam 2024-05-20 14:20:55 +03:00
parent 14ea0576cd
commit 278e1e254a
2 changed files with 5 additions and 0 deletions

View File

@ -3186,6 +3186,9 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const {
if (message_->is_from_offline) {
object("is_from_offline", td::JsonTrue());
}
if (message_->effect_id != 0) {
object("effect_id", td::to_string(message_->effect_id));
}
}
class Client::JsonMessageId final : public td::Jsonable {
@ -13676,6 +13679,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->effect_id = message->effect_id_;
drop_internal_reply_to_message_in_another_chat(message);

View File

@ -921,6 +921,7 @@ class Client final : public WebhookActor::Callback {
object_ptr<td_api::ReplyMarkup> reply_markup;
td::string business_connection_id;
int64 sender_business_bot_user_id = 0;
int64 effect_id = 0;
bool can_be_saved = false;
bool is_automatic_forward = false;