aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-01-08 21:01:16 +0300
committerlevlam <levlam@telegram.org>2026-01-08 21:01:16 +0300
commitffd257f25322e41a50e6a15872deba2c94a4f73d (patch)
tree82767c825ac3ff86fabcb9c14c19f9ba29184433 /test
parent57e95d0eceb5855452c82a0f5fac991eb2adcd53 (diff)
Add td_api::settingsSectionQrCode.
Diffstat (limited to 'test')
-rw-r--r--test/link.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/link.cpp b/test/link.cpp
index b28a8085d..7affee266 100644
--- a/test/link.cpp
+++ b/test/link.cpp
@@ -243,6 +243,10 @@ static auto privacy_policy() {
return settings(td::td_api::make_object<td::td_api::settingsSectionPrivacyPolicy>());
}
+static auto qr_code(td::string subsection = td::string()) {
+ return settings(td::td_api::make_object<td::td_api::settingsSectionQrCode>(subsection));
+}
+
static auto search() {
return settings(td::td_api::make_object<td::td_api::settingsSectionSearch>());
}
@@ -1833,6 +1837,11 @@ TEST(Link, parse_internal_link_part4) {
parse_internal_link("tg://settings/chat/browser/history", in_app_browser("history"));
parse_internal_link("tg://settings/chat/browser/search", in_app_browser("search"));
+ parse_internal_link("tg://settings/qr-code", qr_code());
+ parse_internal_link("tg://settings/qr-code/share", qr_code("share"));
+ parse_internal_link("tg://settings/qr-code/share/", qr_code("share"));
+ parse_internal_link("tg://settings/qr-code/share/a", qr_code());
+
parse_internal_link("tg://stars_topup", unknown_deep_link("tg://stars_topup"));
parse_internal_link("tg://stars_topup?balance=", unknown_deep_link("tg://stars_topup?balance="));
parse_internal_link("tg://stars_topup?balance=test", buy_stars(1, ""));