Improve documentation.

This commit is contained in:
levlam 2022-05-24 20:17:51 +03:00
parent e2ce1a64c7
commit 987c9487df
2 changed files with 11 additions and 11 deletions

View File

@ -2882,6 +2882,12 @@ localizationTargetInfo language_packs:vector<languagePackInfo> = LocalizationTar
//@description The maximum number of joined supergroups and channels
premiumLimitTypeSupergroupCount = PremiumLimitType;
//@description The maximum number of pinned chats in the main chat list
premiumLimitTypePinnedChatCount = PremiumLimitType;
//@description The maximum number of created public chats
premiumLimitTypeCreatedPublicChatCount = PremiumLimitType;
//@description The maximum number of saved animations
premiumLimitTypeSavedAnimationCount = PremiumLimitType;
@ -2891,18 +2897,12 @@ premiumLimitTypeFavoriteStickerCount = PremiumLimitType;
//@description The maximum number of chat filters
premiumLimitTypeChatFilterCount = PremiumLimitType;
//@description The maximum number of pinned and always included, or always excluded chats in a chat list
//@description The maximum number of pinned and always included, or always excluded chats in a chat filter
premiumLimitTypeChatFilterChosenChatCount = PremiumLimitType;
//@description The maximum number of pinned chats in the main chat list
premiumLimitTypePinnedChatCount = PremiumLimitType;
//@description The maximum number of pinned chats in the archive chat list
premiumLimitTypePinnedArchivedChatCount = PremiumLimitType;
//@description The maximum number of created public chats
premiumLimitTypeCreatedPublicChatCount = PremiumLimitType;
//@description The maximum length of sent media caption
premiumLimitTypeCaptionLength = PremiumLimitType;
@ -2912,8 +2912,8 @@ premiumLimitTypeCaptionLength = PremiumLimitType;
//@description Increased limits
premiumFeatureIncreasedLimits = PremiumFeature;
//@description Increased maximum uploaded file size
premiumFeatureIncreasedFileSize = PremiumFeature;
//@description Increased maximum upload file size
premiumFeatureIncreasedUploadFileSize = PremiumFeature;
//@description Improved download speed
premiumFeatureImprovedDownloadSpeed = PremiumFeature;

View File

@ -71,7 +71,7 @@ static string get_premium_source(const td_api::PremiumFeature *feature) {
switch (feature->get_id()) {
case td_api::premiumFeatureIncreasedLimits::ID:
return "double_limits";
case td_api::premiumFeatureIncreasedFileSize::ID:
case td_api::premiumFeatureIncreasedUploadFileSize::ID:
return "more_upload";
case td_api::premiumFeatureImprovedDownloadSpeed::ID:
return "faster_download";
@ -189,7 +189,7 @@ void get_premium_features(Td *td, const td_api::object_ptr<td_api::PremiumSource
return td_api::make_object<td_api::premiumFeatureIncreasedLimits>();
}
if (premium_feature == "more_upload") {
return td_api::make_object<td_api::premiumFeatureIncreasedFileSize>();
return td_api::make_object<td_api::premiumFeatureIncreasedUploadFileSize>();
}
if (premium_feature == "faster_download") {
return td_api::make_object<td_api::premiumFeatureImprovedDownloadSpeed>();