mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
More docs
This commit is contained in:
parent
48c4884877
commit
7fa3ebf8ba
17 changed files with 266 additions and 380 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue