Skip to content

Commit

Permalink
fix: Disable app level request throttler
Browse files Browse the repository at this point in the history
  • Loading branch information
nezort11 committed Jan 5, 2025
1 parent 2f9755f commit 918f4cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import {
telegramLoggerIncomingMiddleware,
telegramLoggerOutcomingMiddleware,
} from "./telegramlogger";
import { botThrottler, translateThrottler } from "./throttler";
// import { botThrottler, translateThrottler } from "./throttler";
import { escapeHtml } from "./utils";
import { Update } from "telegraf/types";

Expand Down Expand Up @@ -446,7 +446,7 @@ const handleTranslateInProgress = async (
}
};

bot.use(botThrottler);
// bot.use(botThrottler);

// bot.use(
// Composer.optional((context) => !!context.callbackQuery, translateThrottler)
Expand Down

0 comments on commit 918f4cf

Please sign in to comment.