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(); }