Bump version, small changes in docs

This commit is contained in:
Alex Root Junior 2021-12-12 18:59:57 +02:00
parent 2620a6547c
commit 1634dc1162
14 changed files with 67 additions and 31 deletions

View file

@ -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::

View file

@ -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)