2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-22 01:58:17 +00:00

fix long defs

This commit is contained in:
Nick80835 2020-10-11 15:45:32 -04:00
parent 17eaf52a93
commit f50f1f72ec

View File

@ -43,7 +43,7 @@ async def urban_dict(event):
file_io = io.BytesIO()
file_io.write(bytes(definition.encode('utf-8')))
file_io.name = f"definition of {response_word['word']}.txt"
await event.reply(file=file_io, caption="Output was too large, sent it as a file.")
await event.reply("Output was too large, sent it as a file.", file=file_io)
return
await event.reply(definition)