diff --git a/app/plugins/debrid.py b/app/plugins/debrid.py index 3c25695..54f2cd3 100644 --- a/app/plugins/debrid.py +++ b/app/plugins/debrid.py @@ -52,10 +52,10 @@ async def debrid(bot: bot, message: Message): query = {"magnets[]": link} unrestrict = await get_json(endpoint=endpoint, query=query) if not isinstance(unrestrict, dict) or "error" in unrestrict: - await message.reply(unrestrict, quote=True) + await message.reply(unrestrict) continue if "-save" in message.flags: - await message.reply("Link Successfully Saved.", quote=True) + await message.reply("Link Successfully Saved.") continue if not link.startswith("http"): data = unrestrict["data"]["magnets"][0] @@ -68,7 +68,7 @@ async def debrid(bot: bot, message: Message): ret_str = ( f"""Name: **{name}**\nID: `{id}`\nSize: **{size} mb**\nReady: __{ready}__""" ) - await message.reply(ret_str, quote=True) + await message.reply(ret_str) # Get Status via id or Last 5 torrents @@ -78,17 +78,17 @@ async def torrents(bot: bot, message: Message): query = {} if "-s" in message.flags and "-l" in message.flags: - return await message.reply("can't use two flags at once", quote=True) + return await message.reply("can't use two flags at once") if "-s" in message.flags: if not (input_ := message.flt_input): - return await message.reply("ID required with -s flag", quote=True) + return await message.reply("ID required with -s flag") query = {"id": input_} json = await get_json(endpoint=endpoint, query=query) if not isinstance(json, dict) or "error" in json: - return await message.reply(json, quote=True) + return await message.reply(json) data = json["data"]["magnets"] @@ -128,12 +128,11 @@ async def torrents(bot: bot, message: Message): ret_str = "
".join(ret_str_list) if len(ret_str) < 4096: - await message.reply(ret_str, quote=True) + await message.reply(ret_str) else: await message.reply( post_tgh("Magnets", ret_str.replace("\n", "
")), disable_web_page_preview=True, - quote=True, ) @@ -145,4 +144,4 @@ async def delete_torrent(bot: bot, message: Message): return await message.reply("Enter an ID to delete") for i in message.text_list[1:]: json = await get_json(endpoint=endpoint, query={"id": i}) - await message.reply(str(json), quote=True) + await message.reply(str(json)) diff --git a/app/plugins/fbans.py b/app/plugins/fbans.py index 84da76c..7be5ae0 100644 --- a/app/plugins/fbans.py +++ b/app/plugins/fbans.py @@ -109,7 +109,7 @@ async def fed_ban(bot: bot, message: Message): resp_str += f"Failed in: {len(failed)}/{total}\n• " + "\n• ".join(failed) else: resp_str += f"Success! Fbanned in {total} feds." - await bot.send_message(chat_id=Config.FBAN_LOG_CHANNEL, text=resp_str) + await bot.send_message(chat_id=Config.FBAN_LOG_CHANNEL, text=resp_str, disable_web_page_preview=True) await progress.edit( text=resp_str, del_in=8, block=False, disable_web_page_preview=True )