файл для отслеживания = channel.id
This commit is contained in:
parent
f9d525ef3f
commit
724797cb35
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user