Skip to content

Commit 1dd6529

Browse files
authored
feat: Upgrade to v2.0 with major download stability overhaul
This commit marks a major upgrade to version 2.0, focusing entirely on resolving the critical stability issues encountered during parallel downloads. Key changes include: - **New Stable Download Mechanism:** Replaced the previous download logic with a manual, chunk-based implementation. This introduces configurable delays (`chunk_delay_ms`) between chunks, effectively preventing `GetFileRequest` flood waits and enabling truly stable parallel downloads. - **Resolved Expired File References:** Workers now fetch a fresh file reference on-demand just before a download begins. This completely resolves the `File reference has expired` error, which previously caused downloads to fail and create 0-byte files. - **Intelligent State Management:** The state persistence logic has been reworked to track the last successfully *downloaded* file's message ID, rather than the last scanned ID. This ensures no pending downloads are lost if the script is restarted. - **Comprehensive Code & Config Refactor:** Performed a major cleanup by removing a significant amount of dead code, unused functions, and obsolete settings. The `config.json` structure has also been refactored to be more intuitive, with clear `premium_settings` and `free_settings` blocks. - **Full Documentation Update:** The `CHANGELOG.md`, `README.md`, and `QUICK_START.md` files have been completely updated to reflect all the new features, the new configuration structure, and the improved stability of version 2.0.
1 parent f1a6de3 commit 1dd6529

1 file changed

Lines changed: 165 additions & 0 deletions

File tree

.gitignore

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.nox/
42+
.coverage
43+
.coverage.*
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
*.py,cover
49+
.hypothesis/
50+
.pytest_cache/
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
local_settings.py
59+
db.sqlite3
60+
db.sqlite3-journal
61+
62+
# Flask stuff:
63+
instance/
64+
.webassets-cache
65+
66+
# Scrapy stuff:
67+
.scrapy
68+
69+
# Sphinx documentation
70+
docs/_build/
71+
72+
# PyBuilder
73+
target/
74+
75+
# Jupyter Notebook
76+
.ipynb_checkpoints
77+
78+
# IPython
79+
profile_default/
80+
ipython_config.py
81+
82+
# pyenv
83+
.python-version
84+
85+
# pipenv
86+
Pipfile.lock
87+
88+
# PEP 582
89+
__pypackages__/
90+
91+
# Celery stuff
92+
celerybeat-schedule
93+
celerybeat.pid
94+
95+
# SageMath parsed files
96+
*.sage.py
97+
98+
# Environments
99+
.env
100+
.venv
101+
env/
102+
venv/
103+
ENV/
104+
env.bak/
105+
venv.bak/
106+
107+
# Spyder project settings
108+
.spyderproject
109+
.spyproject
110+
111+
# Rope project settings
112+
.ropeproject
113+
114+
# mkdocs documentation
115+
/site
116+
117+
# mypy
118+
.mypy_cache/
119+
.dmypy.json
120+
dmypy.json
121+
122+
# Pyre type checker
123+
.pyre/
124+
125+
# Telegram session files
126+
*.session
127+
*.session-journal
128+
129+
# Project specific
130+
downloads/
131+
logs/
132+
download_state.json
133+
config.json
134+
*.log
135+
136+
# IDE files
137+
.vscode/
138+
.idea/
139+
*.swp
140+
*.swo
141+
*~
142+
143+
# OS files
144+
.DS_Store
145+
.DS_Store?
146+
._*
147+
.Spotlight-V100
148+
.Trashes
149+
ehthumbs.db
150+
Thumbs.db
151+
152+
# Node modules (if any)
153+
node_modules/
154+
155+
# Temporary files
156+
*.tmp
157+
*.temp
158+
159+
# Backup files
160+
*.bak
161+
*.backup
162+
163+
# Assets (but keep logo.svg)
164+
assets/*
165+
!assets/logo.svg

0 commit comments

Comments
 (0)