Edit message properly

This commit is contained in:
2023-03-17 23:28:11 -04:00
parent 04005ea47d
commit 06e2b7c641

View File

@@ -60,10 +60,10 @@ async def summarize(
await interaction.followup.send(f"Unable to find article: {article}")
return
await interaction.followup.send(f"""Article Found: {resp['ref']}
msg = await interaction.followup.send(f"""Article Found: {resp['ref']}
Parsing PDF...""")
pdf = await getPDF(resp['pdf'])
await interaction.followup.edit_message(f"""Article Found: {resp['ref']}
await msg.edit(f"""Article Found: {resp['ref']}
```
{pdf[:1000]}
```""")