From 79c05c4878efa16bda6985b21fd9cac6258f5f4d Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 26 Apr 2024 14:30:23 +0300 Subject: [PATCH] Improve suggested action name. --- td/generate/scheme/td_api.tl | 4 ++-- td/telegram/SuggestedAction.cpp | 4 ++-- td/telegram/cli.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index a5c7f2d13..43b0ab55e 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -6497,8 +6497,8 @@ suggestedActionGiftPremiumForChristmas = SuggestedAction; //@description Suggests the user to set birthdate suggestedActionSetBirthdate = SuggestedAction; -//@description Suggests the user to prolong about to expire Telegram Premium @manage_premium_subscription_url A URL for managing Telegram Premium subscription -suggestedActionProlongPremium manage_premium_subscription_url:string = SuggestedAction; +//@description Suggests the user to extend their expiring Telegram Premium subscription @manage_premium_subscription_url A URL for managing Telegram Premium subscription +suggestedActionExtendPremium manage_premium_subscription_url:string = SuggestedAction; //@description Contains a counter @count Count diff --git a/td/telegram/SuggestedAction.cpp b/td/telegram/SuggestedAction.cpp index 81dcc07ce..e0a4bd0c9 100644 --- a/td/telegram/SuggestedAction.cpp +++ b/td/telegram/SuggestedAction.cpp @@ -108,7 +108,7 @@ SuggestedAction::SuggestedAction(const td_api::object_ptr SuggestedAction::get_suggested_actio case Type::BirthdaySetup: return td_api::make_object(); case Type::PremiumGrace: - return td_api::make_object( + return td_api::make_object( G()->get_option_string("premium_manage_subscription_url", "https://T.me/premiumbot?start=status")); default: UNREACHABLE(); diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 4d5870e3c..f1dbe0515 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -2125,8 +2125,8 @@ class CliClient final : public Actor { if (action == "checks") { return td_api::make_object(); } - if (action == "prolong") { - return td_api::make_object(""); + if (action == "extend") { + return td_api::make_object(""); } if (action == "annual") { return td_api::make_object();