A
A
Alexey2019-12-23 20:42:34
Python
Alexey, 2019-12-23 20:42:34

How to set up proxy in aiogram?

When starting a telegram bot written in aiogram, when connecting to a proxy, it gives an error:
AttributeError: 'Bot' object has no attribute 'session'.

spoiler
I use socks5
5e00fc7724b99935388595.png

The official repository of the library says that you need to additionally install aiohttp_proxy. I did it, but the error does not go away.
How to proceed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
antonksa, 2019-12-23
@antonksa

Those who code on Vend must suffer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question