fix(userbot): add missing safone.py imports, apply ruff --unsafe-fixes

- Add missing aiohttp, PIL, BytesIO imports to safone.py (F821 runtime bugs)
- Apply ruff --unsafe-fixes (27 fixes): ternary operators, .get() patterns,
  contextlib.suppress, enumerate(), collapsible if/else, remove .keys()
This commit is contained in:
forust committed 2026-06-19 15:27:12 +02:00
1 parent fc83176522
commit 70d7855f06
20 files changed
+29 -57

No files matched your search

+1 -4
View File
@@ -40,10 +40,7 @@ async def kang(client: Client, message: types.Message):
return
pack = message.command[1]
if len(message.command) >= 3:
emoji = message.command[2]
else:
emoji = '✨'
emoji = message.command[2] if len(message.command) >= 3 else '✨'
await client.unblock_user('@stickers')
await interact_with(await client.send_message('@stickers', '/cancel', parse_mode=enums.ParseMode.MARKDOWN))