This commit is contained in:
djimbo
2022-09-11 09:19:04 +03:00
parent 57e02355ed
commit f8d10a0d39
+2 -2
View File
@@ -37,12 +37,12 @@ class ThrottlingMiddleware(BaseMiddleware):
else:
if self.count_throttled == 0:
self.count_throttled += 1
self.now_rate = self.default_rate * 2
self.now_rate += self.default_rate * 2
return await handler(event, data)
elif self.count_throttled == 1:
self.count_throttled += 1
self.now_rate = self.default_rate * 2
self.now_rate += self.default_rate * 2
await event.reply("<b>❗ Пожалуйста, не спамьте.</b>")
else: