Fix chatRevenueWithdrawalStateCompleted.

This commit is contained in:
levlam 2024-04-15 15:32:45 +03:00
parent 723ba8978d
commit be7434dbf3

View File

@ -411,7 +411,8 @@ class GetBroadcastRevenueTransactionsQuery final : public Td::ResultHandler {
amount = get_amount(transaction->amount_, true);
auto state = [&]() -> td_api::object_ptr<td_api::ChatRevenueWithdrawalState> {
if (transaction->transaction_date_ > 0) {
return td_api::make_object<td_api::chatRevenueWithdrawalStateCompleted>();
return td_api::make_object<td_api::chatRevenueWithdrawalStateCompleted>(transaction->transaction_date_,
transaction->transaction_url_);
}
if (transaction->pending_) {
return td_api::make_object<td_api::chatRevenueWithdrawalStatePending>();