Browse Source

Removed /upload func

TheHamkerCat 5 years ago
parent
commit
a29b4eda05
1 changed files with 0 additions and 18 deletions
  1. 0 18
      wbb/modules/sudoers.py

+ 0 - 18
wbb/modules/sudoers.py

@@ -158,21 +158,3 @@ async def song(_, message: Message):
         await m.delete()
     else:
         await message.reply_text("/song requires an argument.")
-
-# Upload
-
-
-@app.on_message(
-    filters.user(SUDOERS) & cust_filter.command(commands=("upload"))
-)
-async def upload(_, message: Message):
-    if len(message.command) != 2:
-        await message.reply_text("/upload requires one argument")
-        return
-
-    url = message.command[1]
-    data = BytesIO(requests.get(url).content)
-    data.name = url.split("/")[-1]
-    m = await message.reply_text("Uploading.....")
-    await message.reply_document(data)
-    await m.delete()