diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index fe04e63..5606809 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -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 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); diff --git a/telegram-bot-api/Client.h b/telegram-bot-api/Client.h index 679e077..f37d537 100644 --- a/telegram-bot-api/Client.h +++ b/telegram-bot-api/Client.h @@ -921,6 +921,7 @@ class Client final : public WebhookActor::Callback { object_ptr 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;