From b0aba0f05a3b2563dddd3bdad8449d650c7e7112 Mon Sep 17 00:00:00 2001 From: pseudoyu Date: Fri, 1 Nov 2024 02:22:19 +0700 Subject: [PATCH] fix(route/telegram): only use tglib as fallback --- lib/routes/telegram/channel.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/routes/telegram/channel.ts b/lib/routes/telegram/channel.ts index c50e6b4bdfad05..b3b19857d5e994 100644 --- a/lib/routes/telegram/channel.ts +++ b/lib/routes/telegram/channel.ts @@ -121,10 +121,6 @@ For backward compatibility reasons, invalid \`routeParams\` will be treated as \ }; async function handler(ctx) { - if (!ctx.req.param('routeParams') && config.telegram.session) { - return tglibchannel(ctx); - } - const username = ctx.req.param('username'); let routeParams = ctx.req.param('routeParams'); let showLinkPreview = true;