mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2024-11-25 18:03:55 +00:00
Update TDLib to 1.8.38.
This commit is contained in:
parent
eff2056212
commit
a17922555e
2
td
2
td
@ -1 +1 @@
|
|||||||
Subproject commit 87d881071fe514936bb17029e96761141287d2be
|
Subproject commit d321984b75fccdb76239529e8aadcf7f80b0e35a
|
@ -2664,6 +2664,8 @@ class Client::JsonInlineKeyboardButton final : public td::Jsonable {
|
|||||||
object("web_app", JsonWebAppInfo(type->url_));
|
object("web_app", JsonWebAppInfo(type->url_));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case td_api::inlineKeyboardButtonTypeCopyText::ID:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
break;
|
break;
|
||||||
@ -3355,6 +3357,8 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const {
|
|||||||
break;
|
break;
|
||||||
case td_api::messageGiveawayPrizeStars::ID:
|
case td_api::messageGiveawayPrizeStars::ID:
|
||||||
break;
|
break;
|
||||||
|
case td_api::messageGift::ID:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
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));
|
return fail_query(400, "Bad Request: sticker_set_name is empty", std::move(query));
|
||||||
}
|
}
|
||||||
|
|
||||||
send_request(make_object<td_api::searchStickerSet>(sticker_set_name),
|
send_request(make_object<td_api::searchStickerSet>(sticker_set_name, false),
|
||||||
td::make_unique<TdOnSearchStickerSetCallback<OnSuccess>>(std::move(query), std::move(on_success)));
|
td::make_unique<TdOnSearchStickerSetCallback<OnSuccess>>(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<td_api::getStickerSet>(GREAT_MINDS_SET_ID),
|
send_request(make_object<td_api::getStickerSet>(GREAT_MINDS_SET_ID),
|
||||||
td::make_unique<TdOnReturnStickerSetCallback>(this, true, std::move(query)));
|
td::make_unique<TdOnReturnStickerSetCallback>(this, true, std::move(query)));
|
||||||
} else {
|
} else {
|
||||||
send_request(make_object<td_api::searchStickerSet>(name.str()),
|
send_request(make_object<td_api::searchStickerSet>(name.str(), false),
|
||||||
td::make_unique<TdOnReturnStickerSetCallback>(this, true, std::move(query)));
|
td::make_unique<TdOnReturnStickerSetCallback>(this, true, std::move(query)));
|
||||||
}
|
}
|
||||||
return td::Status::OK();
|
return td::Status::OK();
|
||||||
@ -13980,6 +13984,8 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr<td_api::me
|
|||||||
return true;
|
return true;
|
||||||
case td_api::messageGiveawayPrizeStars::ID:
|
case td_api::messageGiveawayPrizeStars::ID:
|
||||||
return true;
|
return true;
|
||||||
|
case td_api::messageGift::ID:
|
||||||
|
return true;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -14155,6 +14161,11 @@ bool Client::are_equal_inline_keyboard_buttons(const td_api::inlineKeyboardButto
|
|||||||
auto rhs_type = static_cast<const td_api::inlineKeyboardButtonTypeWebApp *>(rhs->type_.get());
|
auto rhs_type = static_cast<const td_api::inlineKeyboardButtonTypeWebApp *>(rhs->type_.get());
|
||||||
return lhs_type->url_ == rhs_type->url_;
|
return lhs_type->url_ == rhs_type->url_;
|
||||||
}
|
}
|
||||||
|
case td_api::inlineKeyboardButtonTypeCopyText::ID: {
|
||||||
|
auto lhs_type = static_cast<const td_api::inlineKeyboardButtonTypeCopyText *>(lhs->type_.get());
|
||||||
|
auto rhs_type = static_cast<const td_api::inlineKeyboardButtonTypeCopyText *>(rhs->type_.get());
|
||||||
|
return lhs_type->text_ == rhs_type->text_;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user