Is it posible to connect to Telegram API throuth socks5 proxy?
馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Find solution. Code example:
use Telegram\Bot\Api;
use Telegram\Bot\HttpClients\GuzzleHttpClient;
use GuzzleHttp\Client;
$client = new GuzzleHttpClient(new Client(['proxy' => 'socks5h://user:[email protected]:1080']));
$telegram = new Api($this->token, false, $client);
@faustoFF how about webhooks?
@ZAZmaster can you put more details in your question?
How can I use the proxy for webhook?
@seddighi78 i think its not possible. 小orrect me if I'm wrong. You can use proxy for outgoing request to TG API, but not for incomming.
Is there any way to proxy the incoming?
@seddighi78 you can run you webhook frontend (nginx or something) on some host and just forward requests to you webhook backend endpoint.
Could you please give me some example or documentation?
@seddighi78 just google "nginx proxy telegram webhook" or similar. First link in search results: https://gist.github.com/L11R/c4710307ff77936ac1ce1d1bbfa61834
Thank you sir.
Is there any way to proxy the incoming?
@seddighi78 You can use NGrok.
download, launch, set webhook to NGrok's https tunnel, enjoy.
In addition, NGrok has fine inspect page, you can see all your bugs there. http://127.0.0.1:4040/inspect/http
Most helpful comment
Find solution. Code example: