Skip to content

Commit

Permalink
fix(route/telegram): only use tglib as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Oct 31, 2024
1 parent 0d3a6dc commit b0aba0f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/routes/telegram/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b0aba0f

Please sign in to comment.