From 0056687a525948ac0014e77bf52888e1239795da Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 24 Jun 2024 14:36:42 +0300 Subject: [PATCH] Add td_api::starTransactionPartnerTelegramAds. --- td/generate/scheme/td_api.tl | 3 +++ td/telegram/StarManager.cpp | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index bf8db64d9..a288d71e1 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -864,6 +864,9 @@ starTransactionPartnerGooglePlay = StarTransactionPartner; //@description The transaction is a transaction with Fragment @withdrawal_state State of the withdrawal; may be null for refunds from Fragment starTransactionPartnerFragment withdrawal_state:RevenueWithdrawalState = StarTransactionPartner; +//@description The transaction is a transaction with Telegram Ad platform +starTransactionPartnerTelegramAds = StarTransactionPartner; + //@description The transaction is a transaction with a bot //@bot_user_id Identifier of the bot //@product_info Information about the bought product; may be null if not applicable diff --git a/td/telegram/StarManager.cpp b/td/telegram/StarManager.cpp index 30f65aa01..315720643 100644 --- a/td/telegram/StarManager.cpp +++ b/td/telegram/StarManager.cpp @@ -203,9 +203,8 @@ class GetStarsTransactionsQuery final : public Td::ResultHandler { LOG(ERROR) << "Receive star transaction with " << dialog_id; return td_api::make_object(); } - case telegram_api::starsTransactionPeerAds::ID: { - return td_api::make_object(); - } + case telegram_api::starsTransactionPeerAds::ID: + return td_api::make_object(); default: UNREACHABLE(); }