Auto-updates a V2Ray/Xray subscription file every 30 min by fetching configs from a Telegram channel using Bun + mtcute
// readme
v2ray-configs
Automatically fetches the latest 100 V2Ray/Xray configs from a Telegram channel every 30 minutes and writes them to configs.txt and configs.yaml — ready to use as a subscription URL in any compatible client (v2rayNG, Nekoray, Hiddify, FLClash, Clash Party, etc.).
[!NOTE] This project was built with the assistance of Claude (Anthropic). The code, structure, and documentation were generated through an AI-assisted development session and reviewed by the author.
Setup
1 — Fork / clone this repo
git clone https://github.com/amir-reza-bijandi/v2ray-configs
cd v2ray-configs
bun install
2 — Get Telegram API credentials
- Go to my.telegram.org → API development tools
- Create an app → note your API ID and API Hash
3 — Generate a session string (run once, locally)
bun run gen-session
Follow the prompts (phone number + verification code). It will print a session string — copy it.
The session string lets the GitHub Action authenticate without interactive login.
Keep it secret — it has full access to your Telegram account.
4 — Add GitHub Secrets
Go to your…