R
R
romanwb2018-06-01 16:36:24
PHP
romanwb, 2018-06-01 16:36:24

How to use Telegram Bot API and MTProxy?

When using SOCK5 + CURL (PHP) you can do this:

curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_PROXYUSERPWD, $proxy_auth);
curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);

And what to do when using MTProxy, we only have IP:PORT and secret?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Skobkin, 2018-06-02
@skobkin

Telegram Bot API has nothing to do with MTProto. It works over HTTP. And, accordingly, MTProto proxy is not applicable to it.

R
riot26, 2018-06-01
@riot26

No way. As far as I know, MTProxy only allows you to connect to Telegram servers.
Similar question: How to add MTProto Proxy to C# bot using Telegram Bot API?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question