mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2024-11-22 06:57:51 +00:00
Add is_recurring and is_first_recurring fields to SuccessfulPayment.
This commit is contained in:
parent
d4323f5ac0
commit
faa458d041
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user