- Python 97.8%
- CSS 0.8%
- HTML 0.8%
- JavaScript 0.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| astralixtl | ||
| telethon_generator | ||
| tests | ||
| .gitignore | ||
| hatch_build.py | ||
| LICENSE.md | ||
| NOTICE.md | ||
| pyproject.toml | ||
| README.md | ||
astralix-tl
Telegram MTProto client library for astralix Userbot, based on HerokuTL and Telethon.
Repository: https://git.astralix.cc/lowsense-dev/astralix-tl (public). No project Telegram channels or chats.
Install from PyPI
uv pip install astralix-tl==1.0.0
Install from source
uv venv .venv
uv pip install --python .venv/bin/python .
The distribution is named astralix-tl; Python imports use astralixtl:
from astralixtl import TelegramClient
The build generates Telegram types from the included schemas. Build a wheel with uv build --wheel.
Security changes
This fork bounds packet lengths and gzip output, validates MTProto framing and DH responses with checks active under Python optimization, restricts web downloads to public HTTP(S) endpoints with TLS verification and size/time limits, hardens session-file permissions, and inspects renamed session uploads without optional dependencies.
These changes have regression tests in tests/test_security.py. They are a targeted review, not a guarantee that all vulnerabilities have been found. New DH primes and downloads above the configured limits require review. Live Telegram login has not been tested in this revision.
uv pip install --python .venv/bin/python aiohttp
.venv/bin/python -I -m unittest discover -s tests -v
.venv/bin/python -I -O -m unittest discover -s tests -v
License and origins
MIT; see LICENSE.md. Copyright notices for the upstream code and astralix modifications are retained. See NOTICE.md.