Dev 2.x api 5.4 (#741)

* Added support of Bot API 5.4

* Bump version

* Added aliases for ChatJoinRequest object

* Create aiohttp session inside async function

* Try to fix compatibility with aiohttp 3.8

* Fixed compatibility with Python 3.10
This commit is contained in:
Alex Root Junior 2021-11-07 01:39:51 +02:00 committed by GitHub
parent b98ec3efad
commit b190bbba19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 302 additions and 91 deletions

View file

@ -18,7 +18,7 @@ async def bot_fixture():
""" Bot fixture """
_bot = Bot(TOKEN)
yield _bot
await _bot.session.close()
await (await _bot.get_session()).close()
@pytest.fixture