mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-30 07:52:55 +01:00
Add Message.effect_id.
This commit is contained in:
parent
14ea0576cd
commit
278e1e254a
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user