perf: speed up telegram media e2e flush timing

This commit is contained in:
Peter Steinberger
2026-02-13 19:35:40 +00:00
parent bbca3b191a
commit e746a67cc3
3 changed files with 33 additions and 8 deletions

View File

@@ -62,6 +62,10 @@ export type TelegramBotOptions = {
lastUpdateId?: number | null;
onUpdateId?: (updateId: number) => void | Promise<void>;
};
testTimings?: {
mediaGroupFlushMs?: number;
textFragmentGapMs?: number;
};
};
export function getTelegramSequentialKey(ctx: {