From ede7a331f4ee240fda751fab19215362542b0f1d Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 14 Aug 2024 01:33:22 +0300 Subject: [PATCH] Ignore bot payload for paid media transactions in Test DC. --- td/telegram/StarManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/td/telegram/StarManager.cpp b/td/telegram/StarManager.cpp index 7184d6173..d373ee963 100644 --- a/td/telegram/StarManager.cpp +++ b/td/telegram/StarManager.cpp @@ -288,6 +288,9 @@ class GetStarsTransactionsQuery final : public Td::ResultHandler { return td_api::make_object(); } 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_->user_manager_->get_user_id_object(user_id, "starTransactionPartnerBot"), td_api::make_object(