fix(route/telegram): only use tglib as fallback

This commit is contained in:
pseudoyu
2024-11-01 02:22:19 +07:00
parent 0d3a6dc589
commit b0aba0f05a
-4
View File
@@ -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;