-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket transport support #90
Comments
Hi. Websocket a telegram app transport, not MTProto proxy transport. You can't create mtproto proxy like https://t.me/proxy?...websocket.... You can proxy websocket protocol with smth like HAProxy or Nginx, but you can't instruct Telegram app to use websocket transport... |
Thank you for your responding. Actually the main reason for me that I want to do this, is to using the CloudFlare's CDN Protection for my actual MTProto server. As I know so far, you can only use the WS, gRPC and maybe QUIC transport models to communicate with your origin server (when it is proxied by CloudFlare), So based on my ideas, if the MTProto uses the TCP transport model it is not possible to use their protection; and the only available option is to share and use my real VPS IP so there is a high chance it'll be blocked by a few days or so. Also I'm not familiar with HAProxy or Nginx and I have no idea if they can help me with my scenario. |
Telegram client can only use following protocols as proxy:
So it is only possible to tell Telegram client to use one of those protocols as proxy (unless you create your own version of Telegram app). It's not possible to tell it to use WebSocket. WebSocket transport exists, but it is NOT proxy protocol. Mobile clients don't use it, it is used by WEB telegram clients like https://web.telegram.org/. The only way you can use WebSocket/CloudFlare is:
|
It's a good idea if Telegram made this protocol (MTProto) and it's own APP compatible with websockets transport. Also thank you for mentioning MTProto security options. the |
Is there any chance this script will support WS or Websocket transport for MTProto? as CloudFlare CDN don't allow TCP traffic pass through their CDN and I can only use WS of grpc.
https://core.telegram.org/mtproto
https://core.telegram.org/mtproto/transports#websocket
The text was updated successfully, but these errors were encountered: