refactor: unify typing callbacks

This commit is contained in:
Peter Steinberger
2026-01-23 22:55:41 +00:00
parent d82ecaf9dc
commit 8252ae2da1
11 changed files with 114 additions and 63 deletions

View File

@@ -156,11 +156,7 @@ export const buildTelegramMessageContext = async ({
}
const sendTyping = async () => {
try {
await bot.api.sendChatAction(chatId, "typing", buildTypingThreadParams(resolvedThreadId));
} catch (err) {
logVerbose(`telegram typing cue failed for chat ${chatId}: ${String(err)}`);
}
await bot.api.sendChatAction(chatId, "typing", buildTypingThreadParams(resolvedThreadId));
};
const sendRecordVoice = async () => {