Add td_api::starTransactionPartnerTelegramAds.

This commit is contained in:
levlam 2024-06-24 14:36:42 +03:00
parent 9cb1df3586
commit 0056687a52
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -203,9 +203,8 @@ class GetStarsTransactionsQuery final : public Td::ResultHandler {
LOG(ERROR) << "Receive star transaction with " << dialog_id;
return td_api::make_object<td_api::starTransactionPartnerUnsupported>();
}
case telegram_api::starsTransactionPeerAds::ID: {
return td_api::make_object<td_api::starTransactionPartnerUnsupported>();
}
case telegram_api::starsTransactionPeerAds::ID:
return td_api::make_object<td_api::starTransactionPartnerTelegramAds>();
default:
UNREACHABLE();
}