diff --git a/td b/td index 87d8810..d321984 160000 --- a/td +++ b/td @@ -1 +1 @@ -Subproject commit 87d881071fe514936bb17029e96761141287d2be +Subproject commit d321984b75fccdb76239529e8aadcf7f80b0e35a diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 2c43c6a..0070e5f 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -2664,6 +2664,8 @@ class Client::JsonInlineKeyboardButton final : public td::Jsonable { object("web_app", JsonWebAppInfo(type->url_)); break; } + case td_api::inlineKeyboardButtonTypeCopyText::ID: + break; default: UNREACHABLE(); break; @@ -3355,6 +3357,8 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const { break; case td_api::messageGiveawayPrizeStars::ID: break; + case td_api::messageGift::ID: + break; default: UNREACHABLE(); } @@ -6660,7 +6664,7 @@ void Client::resolve_sticker_set(const td::string &sticker_set_name, PromisedQue return fail_query(400, "Bad Request: sticker_set_name is empty", std::move(query)); } - send_request(make_object(sticker_set_name), + send_request(make_object(sticker_set_name, false), td::make_unique>(std::move(query), std::move(on_success))); } @@ -12054,7 +12058,7 @@ td::Status Client::process_get_sticker_set_query(PromisedQueryPtr &query) { send_request(make_object(GREAT_MINDS_SET_ID), td::make_unique(this, true, std::move(query))); } else { - send_request(make_object(name.str()), + send_request(make_object(name.str(), false), td::make_unique(this, true, std::move(query))); } return td::Status::OK(); @@ -13980,6 +13984,8 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr(rhs->type_.get()); return lhs_type->url_ == rhs_type->url_; } + case td_api::inlineKeyboardButtonTypeCopyText::ID: { + auto lhs_type = static_cast(lhs->type_.get()); + auto rhs_type = static_cast(rhs->type_.get()); + return lhs_type->text_ == rhs_type->text_; + } default: UNREACHABLE(); return false;