aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-01-13 17:50:41 +0300
committerlevlam <levlam@telegram.org>2026-01-13 17:50:41 +0300
commitf8ad451039a6b06b319f4086feac7ca6f49f92d7 (patch)
tree4ed189eeadf5e8a0b0ced2e959e0d36f1f4860bd /test
parent0e588f9af36a16ac6a0343a1153e67d83fa77cc1 (diff)
Add td_api::internalLinkTypeNewChannelChat.
Diffstat (limited to 'test')
-rw-r--r--test/link.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/link.cpp b/test/link.cpp
index 635200f33..25d9c6cfe 100644
--- a/test/link.cpp
+++ b/test/link.cpp
@@ -401,6 +401,10 @@ static auto my_profile(const td::string &section) {
return td::td_api::make_object<td::td_api::internalLinkTypeMyProfile>(section);
}
+static auto new_channel_chat() {
+ return td::td_api::make_object<td::td_api::internalLinkTypeNewChannelChat>();
+}
+
static auto new_group_chat() {
return td::td_api::make_object<td::td_api::internalLinkTypeNewGroupChat>();
}
@@ -985,6 +989,8 @@ TEST(Link, parse_internal_link_part2) {
parse_internal_link("tg://new/asd", unknown_deep_link("tg://new/asd"));
parse_internal_link("tg://new/group", new_group_chat());
parse_internal_link("tg://new/group/", new_group_chat());
+ parse_internal_link("tg://new/channel", new_channel_chat());
+ parse_internal_link("tg://new/channel/", new_channel_chat());
parse_internal_link("t.me/joinchat?invite=abcdef", nullptr);
parse_internal_link("t.me/joinchat", nullptr);