fix(route/telegram): use tglib when no routeParams
This commit is contained in:
parent
7ef0be848f
commit
0d3a6dc589
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue