Skip to content

Commit

Permalink
fix message too long
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna-Singhal authored Feb 17, 2022
1 parent e537817 commit 5c07e61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/ff_mpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,9 @@ async def media_info(message: Message):

try:
info = await probe(dl_loc)
await message.reply(f"`{json.dumps(info, indent=1, ensure_ascii=False)}`")
await message.reply_or_send_as_file(
f"`{json.dumps(info, indent=1, ensure_ascii=False)}`"
)
except ffmpeg.Error as e:
await message.err(f"`{e.stderr}`")
else:
Expand Down

0 comments on commit 5c07e61

Please sign in to comment.