From d63de88bfdec33e1b55aa55f5fbe586bb67fa415 Mon Sep 17 00:00:00 2001 From: JSDio Date: Mon, 21 Mar 2022 09:33:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D1=81=D0=BE?= =?UTF-8?q?=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5=20"Too=20many=20requ?= =?UTF-8?q?ests!".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- middlewares/throttling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/middlewares/throttling.py b/middlewares/throttling.py index 4037c01..342e3f2 100644 --- a/middlewares/throttling.py +++ b/middlewares/throttling.py @@ -34,4 +34,5 @@ class ThrottlingMiddleware(BaseMiddleware): async def message_throttled(self, message: types.Message, throttled: Throttled): if throttled.exceeded_count <= 2: - await message.reply("Too many requests!") + pass + # await message.reply("Too many requests!")