We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87f14b8 commit 7d5b87dCopy full SHA for 7d5b87d
1 file changed
src/telegram/bot/errors.ts
@@ -6,7 +6,7 @@ import { translatorFor } from "@/telegram/helpers/i18n"
6
7
export const createDispatcherErrorHandler = (client: TelegramClient) => async (err: Error, ctx: ParsedUpdate) => {
8
// Ignoring errors when user deleted the message or blocked the bot
9
- if (tl.RpcError.is(err, "MESSAGE_ID_INVALID") || tl.RpcError.is(err, "USER_IS_BLOCKED"))
+ if (tl.RpcError.is(err, "MESSAGE_ID_INVALID") || tl.RpcError.is(err, "USER_IS_BLOCKED") || tl.RpcError.is(err, "MESSAGE_NOT_MODIFIED"))
10
return true
11
12
console.error("Unhandled Error:", err)
0 commit comments