Fixed too big cooldown on /config command
This commit is contained in:
@@ -6,6 +6,6 @@ from bot.keyboards.config import get_config_keyboard
|
|||||||
|
|
||||||
|
|
||||||
@wrap_exception()
|
@wrap_exception()
|
||||||
@throttle(cooldown=60*60, admin_ids=db[DBTables.config].get('admins'), by_id=False)
|
@throttle(cooldown=20, admin_ids=db[DBTables.config].get('admins'), by_id=False)
|
||||||
async def config_command(message: types.Message):
|
async def config_command(message: types.Message):
|
||||||
await message.reply("⚙️ Configuration:", reply_markup=get_config_keyboard(message.from_id))
|
await message.reply("⚙️ Configuration:", reply_markup=get_config_keyboard(message.from_id))
|
||||||
|
|||||||
Reference in New Issue
Block a user