Pretty-print json dump

This commit is contained in:
blank X 2021-01-14 12:15:07 +07:00
parent 735f77724e
commit 616b9c366c
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ async def _video_worker():
if is_late:
text += ' (is late)'
text += f': {video_json["title"]}'
with BytesIO(json.dumps(video_json).encode()) as file:
with BytesIO(json.dumps(video_json, indent=4).encode()) as file:
file.name = video_json['id'] + '.json'
file.seek(0)
await client.send_file(config['config']['storage_chat_id'], file, caption=text, parse_mode=None)