This commit is contained in:
Yasir Aris M 2024-07-29 11:47:29 +07:00 committed by GitHub
parent 8877f4c156
commit 4cdaab408e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,7 +182,7 @@ async def removebg(_, ctx: Client):
prg = await ctx.reply("Processing...")
source = await ctx.reply_to_message.download()
await gen_trans_image(source, f"transp_bckgrnd-{ctx.from_user.id}.png")
await ctx.reply_photo(f"transp_bckgrnd-{ctx.from_user.id}.png")
await ctx.reply_document(f"transp_bckgrnd-{ctx.from_user.id}.png")
await prg.delete_msg()
os.remove(source)
os.remove(f"transp_bckgrnd-{ctx.from_user.id}.png")