Display different proxy sponsor for different secret on 1 VPS
I have a VPS with 3 secret keys and different domains with subdomains for different user groups:
- the first group without a proxy sponsor
tg://proxy?server=first.mtproto1.proxy&port=443&secret=305276*** - the second group with my personal channel
tg://proxy?server=second.mtproto2.proxy&port=443&secret=d0e063*** - the third group for a commercial project with its own channel
tg://proxy?server=third.mtproto3.proxy&port=443&secret=5d6373***
I registered all servers using @mtproxybot and added the tags to the run command. But when I change the proxy server in the Telegram app, the channel does not change.
Systemd service file:
[Unit]
Description=MTProxy
After=network.target
[Service]
Type=simple
ExecStart=/root/MTProxy/objs/bin/mtproto-proxy -u nobody -p 8888 -H 443 -S 305276*** -P 938e02*** -S d0e063*** -P b0c9bd*** -S 5d6373*** -P b8b80*** --aes-pwd /root/MTProxy/proxy-secret /root/MTProxy/proxy-multi.conf -M 1
Restart=on-failure
[Install]
WantedBy=multi-user.target
I tried to use sequential tagging, but it did not change channels in app:
ExecStart=/root/MTProxy/objs/bin/mtproto-proxy -u nobody -p 8888 -H 443 -S 305276*** -S d0e063*** -S 5d6373*** -P 938e02*** -P b0c9bd*** -P b8b80*** --aes-pwd /root/MTProxy/proxy-secret
I thought that it can be used with multiple "-P", like it it used with multiple "-S", but Telegram always shows only one sponsored channel for all groups -first on the list. Is I need to use different VPS to display different channels for different groups, or did I do something wrong?
nice feature request. now i rus separate instance per each tag.
👀
+1