https://github.com/spf50p/get-telegram-proxy-config
https://github.com/spf50p/get-telegram-proxy-config
mtproto mtproto-proxy mtprotoproxy mtproxy proxy telegram
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/spf50p/get-telegram-proxy-config
- Owner: spf50p
- License: bsd-3-clause
- Created: 2026-04-24T22:29:32.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-04T01:57:01.000Z (about 1 month ago)
- Last Synced: 2026-05-04T03:33:26.060Z (about 1 month ago)
- Topics: mtproto, mtproto-proxy, mtprotoproxy, mtproxy, proxy, telegram
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-telegram-proxy-config
Downloads Telegram proxy configuration files from the official Telegram core API and saves them locally. Files are only replaced when their content has changed.
## Downloaded files
| File | Source |
|------|--------|
| `proxy_secret` | http://core.telegram.org/getProxySecret |
| `proxy_config` | http://core.telegram.org/getProxyConfig |
| `proxy_config_v6` | http://core.telegram.org/getProxyConfigV6 |
| `last_updated` | timestamp written on each update (UTC, ISO 8601) |
## Requirements
- `bash`
- `curl`
## Usage
```bash
# Download to default directory (./.configs)
./get-telegram-proxy-config.sh
# Download to a custom directory
OUTPUT_DIR=/etc/telegram ./get-telegram-proxy-config.sh
# Download and pack changed files into proxy_configs.tar.gz
PACK=1 ./get-telegram-proxy-config.sh
# Custom directory with archive
OUTPUT_DIR=/etc/telegram PACK=1 ./get-telegram-proxy-config.sh
```
## Environment variables
| Variable | Default | Description |
|----------|---------|-------------|
| `OUTPUT_DIR` | `./.configs` | Directory to save files into |
| `PACK` | `0` | Set to `1` to create `proxy_configs.tar.gz` after update |