aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands.py b/commands.py
index ac34d1c..71570c8 100644
--- a/commands.py
+++ b/commands.py
@@ -143,9 +143,9 @@ async def tben_handler(message: Message, command: CommandObject):
if message.from_user.id != ADMIN_ID:
return
args = command.args
- if not args or len(args.split(" ", 2)) < 2:
+ if not args or " " not in args:
return await message.answer("dayn eblan suka")
- key, val = args.split(" ", 2)[0], args.split(" ", 2)[1]
+ key, val = args.split(" ", 1)
temp_benned[str(key)] = val
await message.answer(f"✅ хамха забенен")