Add SuccessfulPayment.subscription_expiration_date.

This commit is contained in:
levlam 2024-11-17 04:39:30 +03:00
parent 3719fdece3
commit 282fdcc0e7

View File

@ -2095,6 +2095,9 @@ class Client::JsonSuccessfulPaymentBot final : public td::Jsonable {
if (successful_payment_->is_first_recurring_) { if (successful_payment_->is_first_recurring_) {
object("is_first_recurring", td::JsonTrue()); object("is_first_recurring", td::JsonTrue());
} }
if (successful_payment_->subscription_until_date_ > 0) {
object("subscription_expiration_date", successful_payment_->subscription_until_date_);
}
} }
private: private: