From b65e207b71c262bfad5dd79be196c563a07a15ab Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 13 Nov 2024 19:40:30 +0300 Subject: [PATCH] Support creation of subscription invoice links. --- telegram-bot-api/Client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index d58a4bd..5d18e56 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -9961,9 +9961,10 @@ td::Result> Client::get_input_me TRY_RESULT(paid_media_caption, get_formatted_text(query->arg("paid_media_caption").str(), query->arg("paid_media_caption_parse_mode").str(), get_input_entities(query, "paid_media_caption_entities"))); + int32 subscription_period = get_integer_arg(query, "subscription_period", 0, 0); return make_object( - make_object(currency.str(), std::move(prices), 0, max_tip_amount, + make_object(currency.str(), std::move(prices), subscription_period, max_tip_amount, std::move(suggested_tip_amounts), td::string(), td::string(), false, need_name, need_phone_number, need_email_address, need_shipping_address, send_phone_number_to_provider, send_email_address_to_provider, is_flexible),