xteamki commited on
Commit
85e7252
·
verified ·
1 Parent(s): b069e8a

Update plugins/catbox.py

Browse files
Files changed (1) hide show
  1. plugins/catbox.py +2 -3
plugins/catbox.py CHANGED
@@ -13,7 +13,7 @@ cat_uploader = CatboxUploader()
13
  def inline_pic():
14
  return choice(ULTROID_IMAGES)
15
 
16
- @ultroid_cmd(pattern="uploadcat(?: |$)(.*)")
17
  async def catbox_upload_plugin(event):
18
  """
19
  Plugin untuk mengunggah file ke Catbox.moe.
@@ -38,8 +38,7 @@ async def catbox_upload_plugin(event):
38
  # If it were an async method, it would be defined with 'async def'.
39
  uploaded_url = cat_uploader.upload_file(filePath)
40
 
41
- await message.edit(f"Berhasil mengunggah ke Catbox.moe!\nURL: {uploaded_url}",
42
- file=inline_pic())
43
  except Exception as e:
44
  await message.edit(f"Terjadi kesalahan saat mengunggah: {e}")
45
  finally:
 
13
  def inline_pic():
14
  return choice(ULTROID_IMAGES)
15
 
16
+ @ultroid_cmd(pattern="catbox(?: |$)(.*)")
17
  async def catbox_upload_plugin(event):
18
  """
19
  Plugin untuk mengunggah file ke Catbox.moe.
 
38
  # If it were an async method, it would be defined with 'async def'.
39
  uploaded_url = cat_uploader.upload_file(filePath)
40
 
41
+ await message.edit(f"<blockquote>📤 Successful upload!\nURL: {uploaded_url}</blockquote>", parse_mode="html")
 
42
  except Exception as e:
43
  await message.edit(f"Terjadi kesalahan saat mengunggah: {e}")
44
  finally: