Compare commits

..

3 Commits
main ... dev

Author SHA1 Message Date
Pankovea
724797cb35 файл для отслеживания = channel.id 2023-05-26 17:48:16 +03:00
Pankovea
f9d525ef3f gitignore 2023-05-26 17:47:49 +03:00
Pankovea
7b0e173653 requerements.txt 2023-05-26 17:47:39 +03:00
4 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View File

@ -2,3 +2,6 @@
*.json
# Ini file with privat info
*.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:
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)

BIN
telethon.session Normal file

Binary file not shown.