mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
* Initial commit for docs cleanup * Update migration guide * More docs * Added changes description * Small fixes
14 lines
335 B
ReStructuredText
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:
|