fix(auto-reply): run message_sending before inbound delivery

Run inbound auto-reply delivery through message_sending hooks before sending replies.

Co-authored-by: Jamil Zakirov <15848838+jzakirov@users.noreply.github.com>
This commit is contained in:
Jamil Zakirov
2026-04-25 07:37:35 +03:00
committed by GitHub
parent 04c5bbf33d
commit 52267a6b75
12 changed files with 346 additions and 8 deletions

View File

@@ -427,6 +427,9 @@ describe("dispatchTelegramMessage draft streaming", () => {
);
expect(dispatchReplyWithBufferedBlockDispatcher).toHaveBeenCalledWith(
expect.objectContaining({
dispatcherOptions: expect.objectContaining({
beforeDeliver: expect.any(Function),
}),
replyOptions: expect.objectContaining({
disableBlockStreaming: true,
}),