Skip to content

Commit

Permalink
fix(route/telegram): null username from telegram api
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Oct 28, 2024
1 parent abed9a0 commit f0cc5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes/telegram/tglib/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ export default async function handler(ctx) {
return {
title: channelInfo.title,
language: null,
link: `https://t.me/${channelInfo.username}`,
link: `https://t.me/${ctx.req.param('username')}`,
item,
allowEmpty: ctx.req.param('id') === 'allow_empty',
description: `@${channelInfo.username} on Telegram`,
description: `@${ctx.req.param('username')} on Telegram`,
};
}

Expand Down

0 comments on commit f0cc5f1

Please sign in to comment.