From 4565767812d83b993e54a6a97be64e788aab0eba Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 13 Jan 2026 17:11:55 +0300 Subject: Add td_api::internalLinkTypeNewPrivateChat. --- test/link.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/link.cpp b/test/link.cpp index 02cdf98d5..1e5ccc154 100644 --- a/test/link.cpp +++ b/test/link.cpp @@ -401,6 +401,10 @@ static auto my_profile(const td::string §ion) { return td::td_api::make_object(section); } +static auto new_private_chat() { + return td::td_api::make_object(); +} + static auto passport_data_request(td::int32 bot_user_id, const td::string &scope, const td::string &public_key, const td::string &nonce, const td::string &callback_url) { return td::td_api::make_object(bot_user_id, scope, public_key, nonce, @@ -972,6 +976,10 @@ TEST(Link, parse_internal_link_part2) { parse_internal_link("tg://settings/my-profile/posts/add-album", my_profile("posts/add-album")); parse_internal_link("tg://settings/my-profile/archived-posts", my_profile("archived-posts")); + parse_internal_link("tg://new", new_private_chat()); + parse_internal_link("tg://new/", new_private_chat()); + parse_internal_link("tg://new/asd", unknown_deep_link("tg://new/asd")); + parse_internal_link("t.me/joinchat?invite=abcdef", nullptr); parse_internal_link("t.me/joinchat", nullptr); parse_internal_link("t.me/joinchat/", nullptr); -- cgit v1.2.3