style: format reply changes

This commit is contained in:
Peter Steinberger
2025-12-24 23:06:20 +01:00
parent c1d170e13d
commit 59443d7ec6
2 changed files with 7 additions and 10 deletions

View File

@@ -363,8 +363,7 @@ async function sendTelegramText(
runtime.log?.(
`telegram markdown parse failed; retrying without formatting: ${errText}`,
);
const res = await bot.api.sendMessage(chatId, text, {
});
const res = await bot.api.sendMessage(chatId, text, {});
return res.message_id;
}
throw err;

View File

@@ -109,10 +109,9 @@ describe("web monitor inbox", () => {
"composing",
"999@s.whatsapp.net",
);
expect(sock.sendMessage).toHaveBeenCalledWith(
"999@s.whatsapp.net",
{ text: "pong" },
);
expect(sock.sendMessage).toHaveBeenCalledWith("999@s.whatsapp.net", {
text: "pong",
});
await listener.close();
});
@@ -192,10 +191,9 @@ describe("web monitor inbox", () => {
replyToSender: "+111",
}),
);
expect(sock.sendMessage).toHaveBeenCalledWith(
"999@s.whatsapp.net",
{ text: "pong" },
);
expect(sock.sendMessage).toHaveBeenCalledWith("999@s.whatsapp.net", {
text: "pong",
});
await listener.close();
});