dev #1

Open
pankovea wants to merge 3 commits from dev into main
3 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View File

@ -2,3 +2,6 @@
*.json *.json
# Ini file with privat info # Ini file with privat info
*.ini *.ini
# VS Code
.vscode
venv

1
requerements.txt Normal file
View File

@ -0,0 +1 @@
Telethon==1.28.5

View File

@ -95,7 +95,7 @@ async def dump_all_messages(channel):
if total_count_limit != 0 and total_messages >= total_count_limit: if total_count_limit != 0 and total_messages >= total_count_limit:
break 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) json.dump(all_messages, outfile, ensure_ascii=False, cls=DateTimeEncoder)