diff --git a/userbot/assistant/inlinefm.py b/userbot/assistant/inlinefm.py
index 7b94540b8f..f593c3ec49 100644
--- a/userbot/assistant/inlinefm.py
+++ b/userbot/assistant/inlinefm.py
@@ -253,9 +253,11 @@ async def send(event):
mime_type=mime_type,
attributes=attributes,
force_file=False,
- thumb=await event.client.upload_file(thumb_image_path)
- if thumb_image_path
- else None,
+ thumb=(
+ await event.client.upload_file(thumb_image_path)
+ if thumb_image_path
+ else None
+ ),
)
await event.edit("hi", file=media)
diff --git a/userbot/core/inlinebot.py b/userbot/core/inlinebot.py
index 252651babb..046c5f0378 100644
--- a/userbot/core/inlinebot.py
+++ b/userbot/core/inlinebot.py
@@ -74,7 +74,9 @@ def main_menu():
if Config.BADCAT:
switch_button = [
(
- Button.inline(f"➕ Extra ({len(GRP_INFO['extra'])})", data="extra_menu"),
+ Button.inline(
+ f"➕ Extra ({len(GRP_INFO['extra'])})", data="extra_menu"
+ ),
Button.inline(
f"⚰️ Useless ({len(GRP_INFO['useless'])})", data="useless_menu"
),
@@ -579,22 +581,26 @@ async def hide_troll_secret(event, query, match, match3):
jsondata = False
timestamp = int(time.time() * 2)
new_msg = {
- str(timestamp): {"text": query}
- if match3
- else {"userid": user_list, "text": query}
+ str(timestamp): (
+ {"text": query} if match3 else {"userid": user_list, "text": query}
+ )
}
buttons = [Button.inline(info_type[2], data=f"{info_type[0]}_{timestamp}")]
result = await build_article(
event,
title=f"{info_type[0].title()} message to {sandy}.",
- description="Send hidden text in chat."
- if match3
- else f"Only he/she/they {info_type[1]} open it.",
+ description=(
+ "Send hidden text in chat."
+ if match3
+ else f"Only he/she/they {info_type[1]} open it."
+ ),
thumbnail=get_thumb(f"{info_type[0]}.png"),
- text="✖✖✖"
- if match3
- else f"🔒 A whisper message to {sandy}, Only he/she can open it.",
+ text=(
+ "✖✖✖"
+ if match3
+ else f"🔒 A whisper message to {sandy}, Only he/she can open it."
+ ),
buttons=buttons,
)
return result, old_msg, jsondata, new_msg
diff --git a/userbot/helpers/functions/utube.py b/userbot/helpers/functions/utube.py
index d1dcaddf93..07726ec389 100644
--- a/userbot/helpers/functions/utube.py
+++ b/userbot/helpers/functions/utube.py
@@ -248,9 +248,9 @@ def download_button(vid: str, body: bool = False): # sourcery no-metrics
if video.get("acodec") != "none":
bitrrate = int(video.get("abr", 0))
if bitrrate != 0:
- audio_dict[
- bitrrate
- ] = f"🎵 {bitrrate}Kbps ({humanbytes(fr_size) or 'N/A'})"
+ audio_dict[bitrrate] = (
+ f"🎵 {bitrrate}Kbps ({humanbytes(fr_size) or 'N/A'})"
+ )
video_btns = []
for frmt in qual_list:
diff --git a/userbot/plugins/fedutils.py b/userbot/plugins/fedutils.py
index 135518bf08..d18c7ed552 100644
--- a/userbot/plugins/fedutils.py
+++ b/userbot/plugins/fedutils.py
@@ -497,9 +497,11 @@ async def fetch_fedinfo(event):
response = await conv.get_response()
await edit_or_reply(
catevent,
- f"**Fedid:** ```{input_str}```\n\n{response.text}"
- if input_str
- else response.text,
+ (
+ f"**Fedid:** ```{input_str}```\n\n{response.text}"
+ if input_str
+ else response.text
+ ),
)
except Exception as e:
await edit_delete(
diff --git a/userbot/plugins/gadmin.py b/userbot/plugins/gadmin.py
index dc6543bd0f..edd7f78388 100644
--- a/userbot/plugins/gadmin.py
+++ b/userbot/plugins/gadmin.py
@@ -226,9 +226,7 @@ async def gablist(event):
if a_user.reason:
GBANNED_LIST += f"👉 [{a_user.chat_id}](tg://user?id={a_user.chat_id}) for {a_user.reason}\n"
else:
- GBANNED_LIST += (
- f"👉 [{a_user.chat_id}](tg://user?id={a_user.chat_id}) Reason None\n"
- )
+ GBANNED_LIST += f"👉 [{a_user.chat_id}](tg://user?id={a_user.chat_id}) Reason None\n"
else:
GBANNED_LIST = "no Gbanned Users (yet)"
await edit_or_reply(event, GBANNED_LIST)
diff --git a/userbot/plugins/greetings.py b/userbot/plugins/greetings.py
index 07a0d5e203..202e453aa6 100644
--- a/userbot/plugins/greetings.py
+++ b/userbot/plugins/greetings.py
@@ -304,7 +304,8 @@ async def cheer(event):
async def getwell(event):
"Get Well art."
await edit_or_reply(
- event, "🌹🌹🌹🌹🌹🌹🌹🌹 \n🌹😷😢😓😷😢💨🌹\n🌹💝💉🍵💊💐💝🌹\n🌹 GetBetter Soon! 🌹\n🌹🌹🌹🌹🌹🌹🌹🌹"
+ event,
+ "🌹🌹🌹🌹🌹🌹🌹🌹 \n🌹😷😢😓😷😢💨🌹\n🌹💝💉🍵💊💐💝🌹\n🌹 GetBetter Soon! 🌹\n🌹🌹🌹🌹🌹🌹🌹🌹",
)
@@ -319,7 +320,8 @@ async def getwell(event):
async def luck(event):
"Luck art."
await edit_or_reply(
- event, "💚~🍀🍀🍀🍀🍀\n🍀╔╗╔╗╔╗╦╗✨🍀\n🍀║╦║║║║║║👍🍀\n🍀╚╝╚╝╚╝╩╝。 🍀\n🍀・・ⓁⓊⒸⓀ🍀\n🍀🍀🍀 to you💚"
+ event,
+ "💚~🍀🍀🍀🍀🍀\n🍀╔╗╔╗╔╗╦╗✨🍀\n🍀║╦║║║║║║👍🍀\n🍀╚╝╚╝╚╝╩╝。 🍀\n🍀・・ⓁⓊⒸⓀ🍀\n🍀🍀🍀 to you💚",
)
diff --git a/userbot/plugins/groupdata.py b/userbot/plugins/groupdata.py
index ad620d1b62..00d36cf455 100644
--- a/userbot/plugins/groupdata.py
+++ b/userbot/plugins/groupdata.py
@@ -293,7 +293,9 @@ async def fetch_info(chat, event): # sourcery skip: low-code-quality
caption += " - "
caption += "\n - ".join(reactionslist)
else:
- caption += "🙂 Enabled Reactions: Reactions are not enabled.
"
+ caption += (
+ "🙂 Enabled Reactions: Reactions are not enabled.
"
+ )
if description:
caption += f"\n💬 Description: \n{description}
\n"
@@ -484,7 +486,7 @@ async def info(event):
"-f": "To select only Documents(files)",
"-t": "To select only text messages",
"-m": "To select only media files(Photos+Videos)",
- "-b": "To show bots also in the result."
+ "-b": "To show bots also in the result.",
# TODO: "-t": "To filter only messages which mentioned you",
},
"usage": [
diff --git a/userbot/plugins/logo.py b/userbot/plugins/logo.py
index 9a30da8bc8..f0ed2688b2 100644
--- a/userbot/plugins/logo.py
+++ b/userbot/plugins/logo.py
@@ -445,7 +445,9 @@ async def cat(event):
elif cmd == "d":
delgvar(var)
await edit_delete(
- event, f"📑 Value of **{var}** is now deleted & set to default.", time=60
+ event,
+ f"📑 Value of **{var}** is now deleted & set to default.",
+ time=60,
)
elif not input_str and cmd == "r":
delgvar("LOGO_BACKGROUND")
diff --git a/userbot/plugins/pastebin.py b/userbot/plugins/pastebin.py
index 5775851ccb..70a9936f68 100644
--- a/userbot/plugins/pastebin.py
+++ b/userbot/plugins/pastebin.py
@@ -164,7 +164,9 @@ async def rayso_by_pro_odi(event): # By @feelded
text_list = text_chunk_list(text, 28000)
user = (await catub.get_me()).first_name
for i, text in enumerate(text_list, start=1):
- await edit_or_reply(catevent, f"**⏳ Pasting on image : {i}/{len(text_list)} **")
+ await edit_or_reply(
+ catevent, f"**⏳ Pasting on image : {i}/{len(text_list)} **"
+ )
outfile, error = chromeDriver.get_rayso(
text, file_name=f"rayso{i}.png", title=user, theme=theme, darkMode=darkMode
)
diff --git a/userbot/plugins/spotify.py b/userbot/plugins/spotify.py
index 50f3a7da18..675b016870 100644
--- a/userbot/plugins/spotify.py
+++ b/userbot/plugins/spotify.py
@@ -694,7 +694,9 @@ async def spotify_inline_article():
else:
media, tittle, dic, lyrics, symbol = await get_spotify(response)
thumb = "https://github.com/TgCatUB/CatUserbot-Resources/raw/master/Resources/Inline/spotify_on.png"
- query = f'**🎶 Track :- ** `{tittle}`\n**🎤 Artist :- ** `{dic["interpret"]}`'
+ query = (
+ f'**🎶 Track :- ** `{tittle}`\n**🎤 Artist :- ** `{dic["interpret"]}`'
+ )
buttons = [
(
Button.url("🎧 Spotify", dic["link"]),