Skip to content

PHP script to collect V2Ray configs (VMess, VLESS and Trojan) from public Telegram channels

License

Notifications You must be signed in to change notification settings

HadiDastangoo/TelegramV2RayExtractor

 
 

Repository files navigation

Telegram V2ray Extractor

This is a PHP script that extracts V2Ray configs from various Telegram public channels and saves them to different files (commonly called Subscriptions) based on their protocol type (VMess, VLESS, Trojan).

Note: This project is intended for educational/persoanl purposes only. Any other use, including commercial or non-educational use, is not accepted!

Usage

You can use this project in a self-hosted server or shared hosting with minimum requirements, out of Iran that supports PHP (Access to Telegram is not available on many hosting providers within Iran) and has access to Cron Jobs to define scheduled extraction.

Notes:

  • Default parameters are defined in config.php.
  • Channels (with supported protocols) are defined as an array in channels\channels.php.
  • Croned job log file (log.txt as default) logs start/end execution time, total extracted configs (with & without duplicates) and the type of interface between web server and PHP (such as: cli, apache, litespeed and etc.) for test cases. You can enable/disable it from config.php.
  • For scheduled execution, after extract project in a custom directory in your host, define custom scheduled task (as: once per hour, or every 2 or 3 hours) in your Cron Jobs from your hosting panel as:
php -q /path/to/collector.php
  • It is recommended to change the collector.php file to a random name.

NODE Sources

This project currently utilizes Channels as the source of v2ray nodes.

Channels utilized in this Project (alphabetically):

# Channel # Channel # Channel # Channel
1 ARv2ray 2 Awlix_ir 3 azadi_az_inja_migzare 4 BestV2rang
5 bright_vpn 6 Capital_NET 7 CloudCityy 8 ConfigsHUB
9 Cov2ray 10 customv2ray 11 CUSTOMVPNSERVER 12 DigiV2ray
13 DirectVPN 14 FalconPolV2rayNG 15 flyv2ray 16 fnet00
17 FreakConfig 18 free1_vpn 19 free4allVPN 20 free_v2rayyy
21 frev2ray 22 God_CONFIG 23 hashmakvpn 24 Helix_Servers
25 Hope_Net 26 INIT1984 27 iP_CF 28 ipV2Ray
29 IRN_VPN 30 iSegaro 31 L_AGVPN13 32 lightning6
33 Lockey_vpn 34 LoRd_uL4mo 35 lrnbymaa 36 MehradLearn
37 melov2ray 38 MsV2ray 39 MTConfig 40 NIM_VPN_ir
41 oneclickvpnkeys 42 Outline_Vpn 43 Outlinev2rayNG 44 OutlineVpnOfficial
45 PAINB0Y 46 Parsashonam 47 polproxy 48 PrivateVPNs
49 Proxy_PJ 50 proxystore11 51 proxyymeliii 52 prrofile_purple
53 rayvps 54 reality_daily 55 Royalping_ir 56 rxv2ray
57 SafeNet_Server 58 serveriran11 59 ServerNett 60 ShadowProxy66
61 ShadowSocks_s 62 shh_proxy 63 shopingv2ray 64 UnlimitedDev
65 v2_team 66 v2Line 67 V2parsin 68 V2pedia
69 v2ray1_ng 70 v2ray_outlineir 71 v2ray_swhil 72 v2ray_vpn_ir
73 V2rayCollectorDonate 74 v2rayng_config_amin 75 V2rayng_Fast 76 v2rayNG_Matsuri
77 v2rayng_vpnrog 78 V2rayNGmat 79 V2rayNGn 80 V2rayngninja
81 v2rayngvpn 82 V2RayTz 83 vless_vmess 84 VlessConfig
85 vmess_vless_v2rayng 86 vmessorg 87 VmessProtocol 88 VPNCLOP
89 VPNCUSTOMIZE 90 VpnFreeSec 91 vpnmasi 92 VpnProSec
93 WebShecan 94 XsV2ray 95 yaney_01 96 zen_cloud

Updated @ 2023-06-09

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

PHP script to collect V2Ray configs (VMess, VLESS and Trojan) from public Telegram channels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%