From 85cb439c198b2beb44b4ae6da476e444cf11bdab Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 19 Jan 2026 19:16:35 +0300 Subject: Improve name of td_api::internalLinkTypeNewStory. --- test/link.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/link.cpp b/test/link.cpp index b2e4c0080..85cc77ddf 100644 --- a/test/link.cpp +++ b/test/link.cpp @@ -421,6 +421,10 @@ static auto new_private_chat() { return td::td_api::make_object(); } +static auto new_story(td::td_api::object_ptr content_type) { + return td::td_api::make_object(std::move(content_type)); +} + 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, @@ -431,10 +435,6 @@ static auto phone_number_confirmation(const td::string &hash, const td::string & return td::td_api::make_object(hash, phone_number); } -static auto post_story(td::td_api::object_ptr content_type) { - return td::td_api::make_object(std::move(content_type)); -} - static auto premium_features_page(const td::string &referrer) { return td::td_api::make_object(referrer); } @@ -1020,12 +1020,12 @@ TEST(Link, parse_internal_link_part2) { parse_internal_link("tg://new/channel", new_channel_chat()); parse_internal_link("tg://new/channel/", new_channel_chat()); - parse_internal_link("tg://post", post_story(nullptr)); - parse_internal_link("tg://post/photo", post_story(td::td_api::make_object())); - parse_internal_link("tg://post/video", post_story(td::td_api::make_object())); - parse_internal_link("tg://post/live", post_story(td::td_api::make_object())); + parse_internal_link("tg://post", new_story(nullptr)); + parse_internal_link("tg://post/photo", new_story(td::td_api::make_object())); + parse_internal_link("tg://post/video", new_story(td::td_api::make_object())); + parse_internal_link("tg://post/live", new_story(td::td_api::make_object())); parse_internal_link("tg://post/photos", - post_story(td::td_api::make_object())); + new_story(td::td_api::make_object())); parse_internal_link("t.me/joinchat?invite=abcdef", nullptr); parse_internal_link("t.me/joinchat", nullptr); -- cgit v1.2.3