More docs

This commit is contained in:
Alex Root Junior 2023-07-29 03:42:04 +03:00
parent 48c4884877
commit 7fa3ebf8ba
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
17 changed files with 266 additions and 380 deletions

View file

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