mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2024-11-22 15:34:49 +00:00
Add SuccessfulPayment.subscription_expiration_date.
This commit is contained in:
parent
3719fdece3
commit
282fdcc0e7
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user