Add is_recurring and is_first_recurring fields to SuccessfulPayment.

This commit is contained in:
levlam 2024-11-13 19:53:00 +03:00
parent d4323f5ac0
commit faa458d041

View File

@ -2088,6 +2088,12 @@ class Client::JsonSuccessfulPaymentBot final : public td::Jsonable {
}
object("telegram_payment_charge_id", successful_payment_->telegram_payment_charge_id_);
object("provider_payment_charge_id", successful_payment_->provider_payment_charge_id_);
if (successful_payment_->is_recurring_) {
object("is_recurring", td::JsonTrue());
}
if (successful_payment_->is_first_recurring_) {
object("is_first_recurring", td::JsonTrue());
}
}
private: