style: format reply changes
This commit is contained in:
@@ -363,8 +363,7 @@ async function sendTelegramText(
|
|||||||
runtime.log?.(
|
runtime.log?.(
|
||||||
`telegram markdown parse failed; retrying without formatting: ${errText}`,
|
`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;
|
return res.message_id;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -109,10 +109,9 @@ describe("web monitor inbox", () => {
|
|||||||
"composing",
|
"composing",
|
||||||
"999@s.whatsapp.net",
|
"999@s.whatsapp.net",
|
||||||
);
|
);
|
||||||
expect(sock.sendMessage).toHaveBeenCalledWith(
|
expect(sock.sendMessage).toHaveBeenCalledWith("999@s.whatsapp.net", {
|
||||||
"999@s.whatsapp.net",
|
text: "pong",
|
||||||
{ text: "pong" },
|
});
|
||||||
);
|
|
||||||
|
|
||||||
await listener.close();
|
await listener.close();
|
||||||
});
|
});
|
||||||
@@ -192,10 +191,9 @@ describe("web monitor inbox", () => {
|
|||||||
replyToSender: "+111",
|
replyToSender: "+111",
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
expect(sock.sendMessage).toHaveBeenCalledWith(
|
expect(sock.sendMessage).toHaveBeenCalledWith("999@s.whatsapp.net", {
|
||||||
"999@s.whatsapp.net",
|
text: "pong",
|
||||||
{ text: "pong" },
|
});
|
||||||
);
|
|
||||||
|
|
||||||
await listener.close();
|
await listener.close();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user