aiogram/docs/api/session/custom_server.rst
Alex Root Junior 56f0d9d220
Migration guide 2.x -> 3.0 (#1143)
* Initial commit for docs cleanup

* Update migration guide

* More docs

* Added changes description

* Small fixes
2023-07-29 22:36:12 +03:00

14 lines
335 B
ReStructuredText

Use Custom API server
=====================
For example, if you want to use self-hosted API server:
.. code-block:: python
session = AiohttpSession(
api=TelegramAPIServer.from_base('http://localhost:8082')
)
bot = Bot(..., session=session)
.. autoclass:: aiogram.client.telegram.TelegramAPIServer
:members: