mtprotoproxy | Async MTProto proxy for Telegram
kandi X-RAY | mtprotoproxy Summary
kandi X-RAY | mtprotoproxy Summary
Async MTProto proxy for Telegram
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the configuration .
- Perform a middle handshake .
- Handle a single handshake .
- Handle a client .
- Handle fake TLS handshake .
- Collect metrics .
- Perform a direct handshake .
- Print all known IPs
- Handle a bad client .
- get proxy info from middleware
mtprotoproxy Key Features
mtprotoproxy Examples and Code Snippets
wget -O - https://git.io/vhgUt | sudo -E bash -
cd /opt
git clone https://github.com/alexbers/mtprotoproxy.git
cd mtprotoproxy
apt-get install python3 python3-crypto
## edit config.py file with desired port and proxy tag and start! ##
static void Main(string[] args)
{
var mtprotoProxy = new MTProtoProxyServer("secret", port);
mtprotoProxy.Start();
Console.ReadLine();
}
public static string GenerateRandomSecret()
{
return Guid.NewGuid().ToString().Replace("-", "");
}
Community Discussions
Trending Discussions on mtprotoproxy
QUESTION
Telegram is banned in my country and i can't connect the bot to Telegram API without a VPN I wanted to run the bot with MTProto Proxy
MTProtoProxy Format : host , port , secret
My code to connect to telegram api is (with Telegram.Bot library)
...ANSWER
Answered 2020-Jan-03 at 01:30That cannot be done because Bot API uses https requests to communicate while MTProtoProxy proxies are meant for MTProto API (used by telegram clients) which is different from the Bot API.
You would need to use a normal HTTP/socks proxy in order to avoid the ban which can be found at this page https://telegrambots.github.io/book/4/proxy.html
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mtprotoproxy
You can use mtprotoproxy like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page