【发布时间】:2018-08-19 09:47:33
【问题描述】:
如何让机器人上传多张带有内容描述的图片。我可以添加多行它可以工作,但是当它有超过 5 个await bot.send 行时,机器人会减慢发布速度。我需要添加一些图像,所以如果可能的话如何在同一行中添加。
@bot.command(pass_context=True)
async def ping(ctx):
await bot.send_file(ctx.message.channel, "Image1.png", content="Image1")
【问题讨论】:
标签: python-3.x discord.py