-
-
Notifications
You must be signed in to change notification settings - Fork 954
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
Blocked Telegram in Russia #822
Comments
I can edit it only in files libary or i can
? if i have proxy with login and password, structure of string like this: |
if i have proxy with login and password, structure of string like this: |
Thanks |
You shouldn't edit it inside library, put the code I linked into your hook script /before handling updates. |
As @jacklul already mentioned, just set the proxy client before handling the request. Here is an example for using a local Tor proxy with SOCKS5: $telegram = new Telegram(...);
...
Request::setClient(new Client([
'base_uri' => 'https://api.telegram.org',
'proxy' => 'socks5://127.0.0.1:9050',
]));
...
$telegram->handle(); |
set.php:
... How to enable it right? |
|
Thank you. It works. |
Also when your DNS traffic is spoofed you should to use |
Hi! @akalongman would you please tell what kind of Request it is, from which library? |
|
thanks it worked like a charm! |
As you know, telegrams were blocked in Russia and this caused difficulties in working with the bot. Can I add a proxy to the core when I request it?
The text was updated successfully, but these errors were encountered: