📅  最后修改于: 2022-03-11 14:45:15.506000             🧑  作者: Mango
image = Image.open("test.png")
with BytesIO() as image_binary:
image.save(image_binary, "PNG")
image_binary.seek(0)
await ctx.send(file=discord.File(fp=image_binary,filename="image.png"))