This is a PHP script that collects V2Ray subscription links from various Telegram channels and saves them to different files based on their protocol type (VMess, VLess, Trojan, and Shadowsocks). The collected links are stored in text format.
The script includes two modules getv2ray.php
and config.php
.
The config.php
file contains an array of Telegram channels and the types of protocols they offer for V2ray subscriptions.
The getv2ray.php
module is responsible for fetching the latest subscription links from a Telegram channel and formatting them as plain text. It takes three arguments: $channel
represents the Telegram channel name, $type
represents the type of V2Ray protocol, and $format
specifies the format of the output (text or JSON).
The main script iterates over each channel and the protocol types they offer, then passes the appropriate arguments to getv2ray.php
to retrieve the subscription links. The collected links are then concatenated into a single string and saved to individual files based on their protocol type.
Just import the following subscription link into the corresponding client. Use a client that at least support ss + vless + vmess + trojan.
CONFIG TYPE | NORMAL SUBSCRIPTION | BASE64 SUBSCRIPTION | CLASH SUBSCRIPTION |
---|---|---|---|
MIX of ALL | NORMAL SUBSCRIPTION | BASE64 SUBSCRIPTION | CLASH SUBSCRIPTION |
VMESS | NORMAL SUBSCRIPTION | BASE64 SUBSCRIPTION | CLASH SUBSCRIPTION |
VLESS | NORMAL SUBSCRIPTION | BASE64 SUBSCRIPTION | - |
REALITY | NORMAL SUBSCRIPTION | BASE64 SUBSCRIPTION | - |
TROJAN | NORMAL SUBSCRIPTION | BASE64 SUBSCRIPTION | CLASH SUBSCRIPTION |
ShadowSocks | NORMAL SUBSCRIPTION | BASE64 SUBSCRIPTION | CLASH SUBSCRIPTION |
- If your client does not support the formats that provided here use below services to convert them to your client format (like surfboard)
Services for online sub conversion:
-
If you don't like the groups and rules that are already set, you can simply use bianyuan API like this (ONLY FOR BASE64 SUBSCRIPTION)::
don't use this API for your personal subs! Pls run the subconverter locally
https://pub-api-1.bianyuan.xyz/sub?target=(OutputFormat)&url=(SubUrl)&insert=false
For Example:
(OutputFormat) = clash
(SubUrl) = https://raw.githubusercontent.com/yebekhe/TelegramV2rayCollector/main/sub/mix_base64
https://pub-api-1.bianyuan.xyz/sub?target=clash&url=https://raw.githubusercontent.com/yebekhe/TelegramV2rayCollector/main/sub/mix_base64&insert=false
Now you can use the link above to import the subs into your client
This project currently utilizes Telegram channels as the source of v2ray nodes.
Telegram Channels utilized in this Project:
If you have a Telegram channel and you want to add it to this project or you know Telegram channels that can be used in this project you can ask for addition in Issues.
This project is licensed under the MIT License - see the LICENSE file for details.