D
D
DUDE2019-12-14 00:07:09
Bots
DUDE, 2019-12-14 00:07:09

How to attach proxy to telegram bot?

It's just that the bot, of course, does not start ( thanks to RKN ). You need to use a proxy. I looked at the official documentation and decided to do it through socks5. Here are the options:

REQUEST_KWARGS = {
    'proxy_url': 'socks5://orbtl.s5.opennetwork.cc:999/',
    'urllib3_proxy_kwargs': {
        'username': '*****',
        'password': '*****',
    }
}

I insert them into Updater and run. As a result, I get an error. Who knows what could be the problem?
PS proxy made through Socks5 Proxy Bot

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil K., 2020-02-11
@Danya_Violet

proxy = {'https': 'socks5h://LOGIN:[email protected]:1080'}
for pytelegrambotapi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question