#include "mologram/PremiumFeatures.hpp" namespace mologram { const std::vector& PremiumFeatures::all() { static const std::vector f = { {"extra_reactions", "messages.sendReaction", "free reactions only, picker shows lock", "messages.react"}, {"custom_emoji_reactions", "messages.sendReaction", "lock on the custom tab", "messages.react"}, {"saved_tags", "messages.updateSavedReactionTag", "tags hidden, lock", "premium.reaction_tag_set"}, {"custom_emoji_message", "send with MessageEntityCustomEmoji", "fallback emoji sent", "messages.send"}, {"emoji_status", "account.updateEmojiStatus", "lock on the status button", "premium.emoji_status"}, {"message_effects", "messages.sendMessage effect", "plain message", "messages.send"}, {"premium_stickers", "stickers", "static preview, lock", "premium.custom_emoji"}, {"voice_to_text", "messages.transcribeAudio", "lock on the transcribe button", "premium.transcribe"}, {"translate", "messages.translateText", "lock on translate", "premium.translate"}, {"big_upload", "upload.saveBigFilePart", "server file-size error text", "messages.send_file"}, {"fast_download", "upload.getFile", "normal speed", "media.download"}, {"profile_color", "account.updateColor", "lock", "premium.profile_color"}, {"profile_background", "account.updateProfileColor", "lock", "premium.profile_color"}, {"wallpapers", "account.setChatWallpaper", "lock", "premium.wallpaper_set"}, {"folder_tags", "messages.updateDialogFilter", "lock", "dialogs.folder_set"}, {"auto_archive", "account.setGlobalPrivacySettings", "lock", "premium.privacy_global_set"}, {"read_time_privacy", "account.setGlobalPrivacySettings", "lock", "premium.privacy_global_set"}, {"voice_privacy", "account.setPrivacy", "lock", "premium.privacy_voice"}, {"story_extras", "stories.*", "normal story options", "stories.stealth"}, {"business", "account.updateBusiness*", "lock", "business.get"}, {"gifts", "payments.*", "lock", "gifts.send"}, }; return f; } const PremiumFeature* PremiumFeatures::find(const std::string& id) { for (const auto& f : all()) if (f.id == id) return &f; return nullptr; } } // namespace mologram