Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
From a bot or account? These are quite different things
. If you want to emulate the work of the client, then the mtproto protocol is used in the telegram. The easiest way to interact with it is with a ready made library like Pyrogram .
If you want to receive messages from the bot, then the telegram has an api. Again, here is the library .
Provided that nothing needs to be changed in the browser, you need a transparent proxy. Alternatively, you need to enable routing on the gateway, and forward all packets going to the 80th port to a transparent proxy (for example, to port 3128) and on this port raise the proxy in transparent mode (for a squid, this is a line in the http_port 3128 transparent config)
There are plenty of configuration examples, for example https://habrahabr.ru/sandbox/39160/
Reverse proxy: you can use Nginx you need a line in the configuration will look something like this
location /
{
proxy_pass http://$http_host;
}
In the process of setting up, using the documentation, you can customize for your tasks
proxy - requires configuration in every software, so you're probably talking about NAT?
https://habrahabr.ru/sandbox/18975/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question