Telegram-user: ignore typing after shutdown
This commit is contained in:
parent
af88af01fe
commit
4087f875c5
@ -676,6 +676,7 @@ export function createTelegramUserMessageHandler(params: TelegramUserHandlerPara
|
|||||||
},
|
},
|
||||||
onReplyStart: async () => {
|
onReplyStart: async () => {
|
||||||
await client.sendTyping(typingTarget, "typing", typingParams).catch((err) => {
|
await client.sendTyping(typingTarget, "typing", typingParams).catch((err) => {
|
||||||
|
if (isDestroyedClientError(err)) return;
|
||||||
runtime.error?.(`telegram-user typing failed: ${String(err)}`);
|
runtime.error?.(`telegram-user typing failed: ${String(err)}`);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user