mirror of
https://github.com/zhigang1992/telert.git
synced 2026-01-12 08:24:41 +08:00
feat: enhance message sending with optional parse mode
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
pnpm 9.5.0
|
||||
nodejs 20.5.1
|
||||
@@ -48,7 +48,9 @@ router.post("/t/:webhookId/raw", async (context) => {
|
||||
return;
|
||||
}
|
||||
const result = await context.req.body.text();
|
||||
await sendToChat(JSON.parse(chat), result);
|
||||
await sendToChat(JSON.parse(chat), result, {
|
||||
parseMode: context.req.url.searchParams.get('parseMode') as 'HTML' | undefined,
|
||||
});
|
||||
context.res.body = { ok: true };
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user