style: format reply changes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user