From 724797cb35a76d5c69ebff4a1e3f606b8a8ca5f3 Mon Sep 17 00:00:00 2001 From: Pankovea <114323250+Pankovea@users.noreply.github.com> Date: Fri, 26 May 2023 17:48:16 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=BE=D1=82=D1=81=D0=BB=D0=B5=D0=B6=D0=B8=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=3D=20channel.id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tele_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)