From 9304b04dec327336149e072c52b21e968235fcb2 Mon Sep 17 00:00:00 2001 From: Embbnux Ji Date: Wed, 7 Sep 2022 10:33:58 +0800 Subject: [PATCH] fix: bot auth issue with serverless-offline --- src/apps/bot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/bot.ts b/src/apps/bot.ts index 301c7ad..3857714 100644 --- a/src/apps/bot.ts +++ b/src/apps/bot.ts @@ -17,7 +17,8 @@ const createApp = (handle: Function, conf: BotConfig) => { })) as BotType; await bot.setupWebHook(); // this might take a while, depends on when the bot user is ready await handle({type: 'BotAdded', bot}); - res.send(''); + res.status(200); + res.send('ok'); // return string to fix issue for serverless-offline }); app.post('/webhook', async (req, res) => {