mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-12 13:47:48 +01:00
Update TDLib to 1.8.34.
This commit is contained in:
parent
dd17f94d9a
commit
3a53074483
2
td
2
td
@ -1 +1 @@
|
|||||||
Subproject commit cb164927417f22811c74cd8678ed4a5ab7cb80ba
|
Subproject commit 1fa2a372a88c26369dcac2ce476166531df74a77
|
@ -3285,6 +3285,8 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const {
|
|||||||
object("refunded_payment", JsonRefundedPayment(content));
|
object("refunded_payment", JsonRefundedPayment(content));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case td_api::messageGiftedStars::ID:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
@ -4085,7 +4087,7 @@ class Client::JsonStarTransactionPartner final : public td::Jsonable {
|
|||||||
case td_api::starTransactionPartnerBot::ID: {
|
case td_api::starTransactionPartnerBot::ID: {
|
||||||
auto source_user = static_cast<const td_api::starTransactionPartnerBot *>(source_);
|
auto source_user = static_cast<const td_api::starTransactionPartnerBot *>(source_);
|
||||||
object("type", "user");
|
object("type", "user");
|
||||||
object("user", JsonUser(source_user->bot_user_id_, client_));
|
object("user", JsonUser(source_user->user_id_, client_));
|
||||||
if (!source_user->invoice_payload_.empty()) {
|
if (!source_user->invoice_payload_.empty()) {
|
||||||
if (!td::check_utf8(source_user->invoice_payload_)) {
|
if (!td::check_utf8(source_user->invoice_payload_)) {
|
||||||
LOG(WARNING) << "Receive non-UTF-8 invoice payload";
|
LOG(WARNING) << "Receive non-UTF-8 invoice payload";
|
||||||
@ -4102,6 +4104,7 @@ class Client::JsonStarTransactionPartner final : public td::Jsonable {
|
|||||||
case td_api::starTransactionPartnerTelegram::ID:
|
case td_api::starTransactionPartnerTelegram::ID:
|
||||||
case td_api::starTransactionPartnerAppStore::ID:
|
case td_api::starTransactionPartnerAppStore::ID:
|
||||||
case td_api::starTransactionPartnerGooglePlay::ID:
|
case td_api::starTransactionPartnerGooglePlay::ID:
|
||||||
|
case td_api::starTransactionPartnerUser::ID:
|
||||||
case td_api::starTransactionPartnerChannel::ID:
|
case td_api::starTransactionPartnerChannel::ID:
|
||||||
LOG(ERROR) << "Receive " << to_string(*source_);
|
LOG(ERROR) << "Receive " << to_string(*source_);
|
||||||
object("type", "other");
|
object("type", "other");
|
||||||
@ -13778,6 +13781,8 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr<td_api::me
|
|||||||
return true;
|
return true;
|
||||||
case td_api::messagePremiumGiftCode::ID:
|
case td_api::messagePremiumGiftCode::ID:
|
||||||
return true;
|
return true;
|
||||||
|
case td_api::messageGiftedStars::ID:
|
||||||
|
return true;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user