chore(userbot): apply ruff check --fix and ruff format

- ruff check --fix: 210 auto-fixed errors (import sorting, trailing
  whitespace, unused imports, f-string fixups, deprecated annotations)
- ruff format: 104 files reformatted to consistent style
- 268 non-auto-fixable issues remain (S113 requests timeout, etc.)
This commit is contained in:
2026-06-19 12:19:01 +02:00
parent 95cec59263
commit 7ba6bc44f2
104 changed files with 4338 additions and 5319 deletions
+4 -5
View File
@@ -1,17 +1,16 @@
from random import randint
from pyrogram import Client, filters, enums
from pyrogram import Client, enums, filters
from pyrogram.types import Message
from utils.misc import modules_help, prefix
@Client.on_message(filters.command("durov", prefix) & filters.me)
@Client.on_message(filters.command('durov', prefix) & filters.me)
async def durov(_, message: Message):
await message.edit(
f"<b>Random post from channel: https://t.me/durov/{randint(21, 36500)}</b>",
f'<b>Random post from channel: https://t.me/durov/{randint(21, 36500)}</b>',
parse_mode=enums.ParseMode.HTML,
)
modules_help["durov"] = {"durov": "Send random post from durov channel"}
modules_help['durov'] = {'durov': 'Send random post from durov channel'}