From 8e637b482a2de9b8e298a81a7625b224979ccfc1 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 30 Dec 2021 14:34:39 +0300 Subject: [PATCH] Update TDLib to 1.8.0. --- td | 2 +- telegram-bot-api/Client.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/td b/td index 6821219..feffe41 160000 --- a/td +++ b/td @@ -1 +1 @@ -Subproject commit 68212198a0e44086bd8a63d23365c3f56e391f0f +Subproject commit feffe4153d0d1da2abc1bd419bb1ed6a83896eb7 diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 7d2ba45..0a0f81b 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -563,8 +563,8 @@ class Client::JsonChatInviteLink : public Jsonable { object("name", chat_invite_link_->name_); } object("creator", JsonUser(chat_invite_link_->creator_user_id_, client_)); - if (chat_invite_link_->expire_date_ != 0) { - object("expire_date", chat_invite_link_->expire_date_); + if (chat_invite_link_->expiration_date_ != 0) { + object("expire_date", chat_invite_link_->expiration_date_); } if (chat_invite_link_->member_limit_ != 0) { object("member_limit", chat_invite_link_->member_limit_); @@ -4343,7 +4343,7 @@ void Client::on_update(object_ptr result) { chat_info->title = std::move(chat->title_); chat_info->photo = std::move(chat->photo_); chat_info->permissions = std::move(chat->permissions_); - chat_info->message_auto_delete_time = chat->message_ttl_setting_; + chat_info->message_auto_delete_time = chat->message_ttl_; chat_info->has_protected_content = chat->has_protected_content_; break; } @@ -4368,11 +4368,11 @@ void Client::on_update(object_ptr result) { chat_info->permissions = std::move(update->permissions_); break; } - case td_api::updateChatMessageTtlSetting::ID: { - auto update = move_object_as(result); + case td_api::updateChatMessageTtl::ID: { + auto update = move_object_as(result); auto chat_info = add_chat(update->chat_id_); CHECK(chat_info->type != ChatInfo::Type::Unknown); - chat_info->message_auto_delete_time = update->message_ttl_setting_; + chat_info->message_auto_delete_time = update->message_ttl_; break; } case td_api::updateChatHasProtectedContent::ID: { @@ -5250,7 +5250,7 @@ td::Result> Client::get_input_me } td_api::object_ptr Client::get_message_send_options(bool disable_notification) { - return make_object(disable_notification, false, nullptr); + return make_object(disable_notification, false, false, nullptr); } td::Result>> Client::get_inline_query_results(