Skip to content

Commit 7d5b87d

Browse files
committed
fix: Make MESSAGE_NOT_MODIFIED errors ignored
1 parent 87f14b8 commit 7d5b87d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/telegram/bot/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { translatorFor } from "@/telegram/helpers/i18n"
66

77
export const createDispatcherErrorHandler = (client: TelegramClient) => async (err: Error, ctx: ParsedUpdate) => {
88
// 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"))
9+
if (tl.RpcError.is(err, "MESSAGE_ID_INVALID") || tl.RpcError.is(err, "USER_IS_BLOCKED") || tl.RpcError.is(err, "MESSAGE_NOT_MODIFIED"))
1010
return true
1111

1212
console.error("Unhandled Error:", err)

0 commit comments

Comments
 (0)