From a854b0ccdd7f889b47758c1524904921c9245238 Mon Sep 17 00:00:00 2001 From: Ronny Gunawan <3048897+ronnygunawan@users.noreply.github.com> Date: Tue, 23 Apr 2024 12:53:37 +0700 Subject: [PATCH] Higher /art rate limit --- BotNet.CommandHandlers/Art/ArtCommandHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BotNet.CommandHandlers/Art/ArtCommandHandler.cs b/BotNet.CommandHandlers/Art/ArtCommandHandler.cs index d4cd363..4839b11 100644 --- a/BotNet.CommandHandlers/Art/ArtCommandHandler.cs +++ b/BotNet.CommandHandlers/Art/ArtCommandHandler.cs @@ -15,7 +15,7 @@ public sealed class ArtCommandHandler( ITelegramBotClient telegramBotClient, ICommandQueue commandQueue ) : ICommandHandler { - internal static readonly RateLimiter IMAGE_GENERATION_RATE_LIMITER = RateLimiter.PerUser(1, TimeSpan.FromMinutes(5)); + internal static readonly RateLimiter IMAGE_GENERATION_RATE_LIMITER = RateLimiter.PerUser(2, TimeSpan.FromMinutes(3)); private readonly ITelegramBotClient _telegramBotClient = telegramBotClient; private readonly ICommandQueue _commandQueue = commandQueue;