From 6a7d3c3d8131c09a94a9beffda6983755e753160 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 30 Mar 2025 08:28:34 +0300 Subject: [PATCH] Support td_api::starTransactionTypePremiumPurchase. --- telegram-bot-api/Client.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index a8bb448..b22dfa3 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -4613,6 +4613,13 @@ class Client::JsonStarTransactionType final : public td::Jsonable { object("gift", JsonGift(type->gift_.get(), client_)); break; } + case td_api::starTransactionTypePremiumPurchase::ID: { + auto type = static_cast(type_); + object("type", "user"); + object("user", JsonUser(type->user_id_, client_)); + object("premium_subscription_duration", type->month_count_); + break; + } case td_api::starTransactionTypeAffiliateProgramCommission::ID: { auto type = static_cast(type_); object("type", "affiliate_program");