refactor: unify typing callbacks
This commit is contained in:
1 parent
d82ecaf9dc
commit
8252ae2da1
11 files changed
+114
-63
No files matched your search
@@ -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 () => {
|
||||
|
||||
Reference in new issue
Block a user