mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 12:15:32 +08:00
fix(route/telegram): use tglib when no routeParams
This commit is contained in:
@@ -121,7 +121,7 @@ For backward compatibility reasons, invalid \`routeParams\` will be treated as \
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
if (ctx.req.param('routeParams') && config.telegram.session) {
|
||||
if (!ctx.req.param('routeParams') && config.telegram.session) {
|
||||
return tglibchannel(ctx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user