mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Bump version, small changes in docs
This commit is contained in:
parent
2620a6547c
commit
1634dc1162
14 changed files with 67 additions and 31 deletions
|
|
@ -17,7 +17,7 @@ Usage example
|
|||
from aiogram.session.aiohttp import AiohttpSession
|
||||
|
||||
session = AiohttpSession()
|
||||
Bot('42:token', session=session)
|
||||
bot = Bot('42:token', session=session)
|
||||
|
||||
|
||||
Proxy requests in AiohttpSession
|
||||
|
|
@ -33,7 +33,7 @@ Binding session to bot:
|
|||
from aiogram.client.session.aiohttp import AiohttpSession
|
||||
|
||||
session = AiohttpSession(proxy="protocol://host:port/")
|
||||
Bot(token="bot token", session=session)
|
||||
bot = Bot(token="bot token", session=session)
|
||||
|
||||
|
||||
.. note::
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ For example, if you want to use self-hosted API server:
|
|||
|
||||
.. code-block:: python3
|
||||
|
||||
session = AiohttpSession()
|
||||
session.api = TelegramAPIServer.from_base('http://localhost:8082')
|
||||
session = AiohttpSession(
|
||||
api=TelegramAPIServer.from_base('http://localhost:8082')
|
||||
)
|
||||
bot = Bot(..., session=session)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue