fix: avoid threaded replies for agent output

This commit is contained in:
Peter Steinberger
2025-12-24 22:36:30 +01:00
parent 009fbeb543
commit cf8d1cf0e7
4 changed files with 9 additions and 34 deletions

View File

@@ -148,7 +148,7 @@ describe("createTelegramBot", () => {
expect(payload.ReplyToSender).toBe("Ada");
});
it("sends replies as native replies without chaining", async () => {
it("sends replies without native reply threading", async () => {
onSpy.mockReset();
sendMessageSpy.mockReset();
const replySpy = replyModule.__replySpy as unknown as ReturnType<
@@ -174,7 +174,7 @@ describe("createTelegramBot", () => {
expect(sendMessageSpy.mock.calls.length).toBeGreaterThan(1);
for (const call of sendMessageSpy.mock.calls) {
expect(call[2]?.reply_to_message_id).toBe(101);
expect(call[2]?.reply_to_message_id).toBeUndefined();
}
});
});