How to bypass the lock telegrams?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
29 views
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: SOCKSHTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot577218600:AAGQNIaPkdTpWQJUN8DhLmlIb8-0UvMaiXM/getUpdates?offset=1&timeout=20 (Caused by ConnectTimeoutError(, 'Connection to api.telegram.org timed out. (connect timeout=3.5)'))

Started to write a telegram. bot can not do the test, launching on the computer. In the future I will translate bot on Russian server and no problems. Now I need to check what I write
by | 29 views

2 Answers

0 like 0 dislike
#So, in the code:
from telebot import apihelper
apihelper.proxy = {'https': 'socks5://xxx.xxx.xxx.xxx:yyyy'}
#xxx - ip, yyyy - port

Need to install requests[socks], I have on ubuntu 16.04:
sudo pip3.6 install-U requests[socks]
But it breaks the work CAPS (printers on ubuntu 16.04), but proxies are earned. On windows don't have to break anything.
by
0 like 0 dislike
A VPN procing
any
freeopenvpn.org
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,648 users