From 3a53074483f2852193b137f37cb70c16449b0aa7 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 30 Jul 2024 12:28:40 +0300 Subject: [PATCH] Update TDLib to 1.8.34. --- td | 2 +- telegram-bot-api/Client.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/td b/td index cb16492..1fa2a37 160000 --- a/td +++ b/td @@ -1 +1 @@ -Subproject commit cb164927417f22811c74cd8678ed4a5ab7cb80ba +Subproject commit 1fa2a372a88c26369dcac2ce476166531df74a77 diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 212524c..36007ec 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -3285,6 +3285,8 @@ void Client::JsonMessage::store(td::JsonValueScope *scope) const { object("refunded_payment", JsonRefundedPayment(content)); break; } + case td_api::messageGiftedStars::ID: + break; default: UNREACHABLE(); } @@ -4085,7 +4087,7 @@ class Client::JsonStarTransactionPartner final : public td::Jsonable { case td_api::starTransactionPartnerBot::ID: { auto source_user = static_cast(source_); 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 (!td::check_utf8(source_user->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::starTransactionPartnerAppStore::ID: case td_api::starTransactionPartnerGooglePlay::ID: + case td_api::starTransactionPartnerUser::ID: case td_api::starTransactionPartnerChannel::ID: LOG(ERROR) << "Receive " << to_string(*source_); object("type", "other"); @@ -13778,6 +13781,8 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr