From 3719fdece3bd2db95cc31746fbaa9a495c40b721 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 16 Nov 2024 08:41:51 +0300 Subject: [PATCH] Add starTransactionPartnerUser.subscription_period. --- telegram-bot-api/Client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 85175ec..f58d097 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -4282,6 +4282,9 @@ class Client::JsonStarTransactionPartner final : public td::Jsonable { object("invoice_payload", purpose->invoice_payload_); } } + if (purpose->period_ > 0) { + object("subscription_period", purpose->period_); + } break; } default: