Ignore bot payload for paid media transactions in Test DC.

This commit is contained in:
levlam 2024-08-14 01:33:22 +03:00
parent 190aeb0849
commit ede7a331f4

View File

@ -288,6 +288,9 @@ class GetStarsTransactionsQuery final : public Td::ResultHandler {
return td_api::make_object<td_api::starTransactionPartnerUnsupported>(); return td_api::make_object<td_api::starTransactionPartnerUnsupported>();
} }
if ((product_info == nullptr && bot_payload.empty()) || !transaction->extended_media_.empty()) { if ((product_info == nullptr && bot_payload.empty()) || !transaction->extended_media_.empty()) {
if (G()->is_test_dc()) {
bot_payload.clear();
}
return td_api::make_object<td_api::starTransactionPartnerBot>( return td_api::make_object<td_api::starTransactionPartnerBot>(
td_->user_manager_->get_user_id_object(user_id, "starTransactionPartnerBot"), td_->user_manager_->get_user_id_object(user_id, "starTransactionPartnerBot"),
td_api::make_object<td_api::botTransactionPurposePaidMedia>( td_api::make_object<td_api::botTransactionPurposePaidMedia>(