Add "Telegram Features" to the main settings page.
This commit is contained in:
parent
2e435f07a3
commit
7c5d27d7ce
Binary file not shown.
After Width: | Height: | Size: 403 B |
Binary file not shown.
After Width: | Height: | Size: 684 B |
Binary file not shown.
After Width: | Height: | Size: 915 B |
|
@ -3034,6 +3034,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
"lng_sponsored_info_description1" = "Unlike other apps, Telegram never uses your private data to target ads. Sponsored messages on Telegram are based solely on the topic of the public channels in which they are shown. This means that no user data is mined or analyzed to display ads, and every user viewing a channel on Telegram sees the same sponsored messages.\n\nUnlike other apps, Telegram doesn't track whether you tapped on a sponsored message and doesn't profile you based on your activity. We also prevent external links in sponsored messages to ensure that third parties can’t spy on our users. We believe that everyone has the right to privacy, and technological platforms should respect that.\n\nTelegram offers a free and unlimited service to hundreds of millions of users, which involves significant server and traffic costs. In order to remain independent and stay true to its values, Telegram developed a paid tool to promote messages with user privacy in mind. We welcome responsible advertisers at:";
|
||||
"lng_sponsored_info_description2" = "Sponsored Messages are currently in test mode. Once they are fully launched and allow Telegram to cover its basic costs, we will start sharing ad revenue with the owners of public channels in which sponsored messages are displayed.\n\nOnline ads should no longer be synonymous with abuse of user privacy. Let us redefine how a tech company should operate – together.";
|
||||
|
||||
"lng_telegram_features_url" = "https://t.me/TelegramTips";
|
||||
|
||||
// Wnd specific
|
||||
|
||||
"lng_wnd_choose_program_menu" = "Choose Default Program...";
|
||||
|
|
|
@ -62,6 +62,7 @@ settingsIconInterfaceScale: icon {{ "settings/interface_scale", settingsIconFg }
|
|||
settingsIconFaq: icon {{ "settings/faq", settingsIconFg }};
|
||||
settingsIconCalls: icon {{ "settings/calls", settingsIconFg }};
|
||||
settingsIconAskQuestion: icon {{ "settings/ask_question", settingsIconFg }};
|
||||
settingsIconTips: icon {{ "settings/tips", settingsIconFg }};
|
||||
settingsIconStickers: icon {{ "settings/stickers", settingsIconFg }};
|
||||
settingsIconEmoji: icon {{ "settings/emoji", settingsIconFg }};
|
||||
settingsIconThemes: icon {{ "settings/palette", settingsIconFg }};
|
||||
|
|
|
@ -466,11 +466,20 @@ void SetupHelp(
|
|||
|
||||
SetupFaq(container);
|
||||
|
||||
AddButton(
|
||||
container,
|
||||
rpl::single(u"Telegram Features"_q),
|
||||
st::settingsSectionButton,
|
||||
{ &st::settingsIconTips, kIconLightOrange }
|
||||
)->setClickedCallback([=] {
|
||||
UrlClickHandler::Open(tr::lng_telegram_features_url(tr::now));
|
||||
});
|
||||
|
||||
const auto button = AddButton(
|
||||
container,
|
||||
tr::lng_settings_ask_question(),
|
||||
st::settingsSectionButton,
|
||||
{ &st::settingsIconAskQuestion, kIconLightOrange });
|
||||
{ &st::settingsIconAskQuestion, kIconGreen });
|
||||
const auto requestId = button->lifetime().make_state<mtpRequestId>();
|
||||
button->lifetime().add([=] {
|
||||
if (*requestId) {
|
||||
|
|
Loading…
Reference in New Issue