Forums

Connection to Telegram API raises HttpProxyError: 403

Hello, I am trying to deploy a Telegram bot on a beginner account. I use a library (telepot) which makes use of aiohttp for connections. I configured it to use a proxy following the instructions found here, but I am getting a 403 error.

I thought the Telegram API was whitelisted, could it be a problem with aiohttp?

Thanks!

It's probably an incompatibility between the proxy and the async client. Here's a full tutorial on building a Telegram bot on PythonAnywhere

Thanks for the answer glenn. In the end it looks like I was using an old version of aiohttp, running pip solved the issue.

That said, it looks like the async version of telepot has problems when using a proxy, so maybe I'll have to find something else anyway...