Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
724797cb35 | ||
|
|
f9d525ef3f | ||
|
|
7b0e173653 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
1
requerements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Telethon==1.28.5
|
||||||
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
telethon.session
Normal file
BIN
telethon.session
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user