mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-06-28 02:42:44 +08:00
fix: telegram bot/miniapp bugs (#258)
This commit is contained in:
@@ -47,7 +47,7 @@ export function newTelegramBot(c: Context<HonoCustomType>, token: string): Teleg
|
||||
|
||||
bot.use(async (ctx, next) => {
|
||||
// skip non-message
|
||||
if (ctx.updateType != "message") return await next();
|
||||
if (ctx.updateType != "message") return;
|
||||
// check if in private chat
|
||||
if (ctx.chat?.type !== "private") {
|
||||
return await ctx.reply("请在私聊中使用");
|
||||
|
||||
Reference in New Issue
Block a user