Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43879a0401 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,6 +2,3 @@
|
|||||||
*.json
|
*.json
|
||||||
# Ini file with privat info
|
# Ini file with privat info
|
||||||
*.ini
|
*.ini
|
||||||
# VS Code
|
|
||||||
.vscode
|
|
||||||
venv
|
|
||||||
@ -1 +0,0 @@
|
|||||||
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(f'{channel.id}_messages.json', 'w', encoding='utf8') as outfile:
|
with open('channel_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
BIN
telethon.session
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user