diff --git a/tele_reader.py b/tele_reader.py index de6057b..beac41f 100644 --- a/tele_reader.py +++ b/tele_reader.py @@ -95,7 +95,7 @@ async def dump_all_messages(channel): if total_count_limit != 0 and total_messages >= total_count_limit: break - with open('channel_messages.json', 'w', encoding='utf8') as outfile: + with open(f'{channel.id}_messages.json', 'w', encoding='utf8') as outfile: json.dump(all_messages, outfile, ensure_ascii=False, cls=DateTimeEncoder)