Improve suggested action name.
This commit is contained in:
parent
1aa1c40eab
commit
79c05c4878
@ -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
|
||||
|
@ -108,7 +108,7 @@ SuggestedAction::SuggestedAction(const td_api::object_ptr<td_api::SuggestedActio
|
||||
case td_api::suggestedActionSetBirthdate::ID:
|
||||
init(Type::BirthdaySetup);
|
||||
break;
|
||||
case td_api::suggestedActionProlongPremium::ID:
|
||||
case td_api::suggestedActionExtendPremium::ID:
|
||||
init(Type::PremiumGrace);
|
||||
break;
|
||||
default:
|
||||
@ -174,7 +174,7 @@ td_api::object_ptr<td_api::SuggestedAction> SuggestedAction::get_suggested_actio
|
||||
case Type::BirthdaySetup:
|
||||
return td_api::make_object<td_api::suggestedActionSetBirthdate>();
|
||||
case Type::PremiumGrace:
|
||||
return td_api::make_object<td_api::suggestedActionProlongPremium>(
|
||||
return td_api::make_object<td_api::suggestedActionExtendPremium>(
|
||||
G()->get_option_string("premium_manage_subscription_url", "https://T.me/premiumbot?start=status"));
|
||||
default:
|
||||
UNREACHABLE();
|
||||
|
@ -2125,8 +2125,8 @@ class CliClient final : public Actor {
|
||||
if (action == "checks") {
|
||||
return td_api::make_object<td_api::suggestedActionViewChecksHint>();
|
||||
}
|
||||
if (action == "prolong") {
|
||||
return td_api::make_object<td_api::suggestedActionProlongPremium>("");
|
||||
if (action == "extend") {
|
||||
return td_api::make_object<td_api::suggestedActionExtendPremium>("");
|
||||
}
|
||||
if (action == "annual") {
|
||||
return td_api::make_object<td_api::suggestedActionSubscribeToAnnualPremium>();
|
||||
|
Loading…
Reference in New Issue
Block a user