mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
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:
parent
b98ec3efad
commit
b190bbba19
22 changed files with 302 additions and 91 deletions
|
|
@ -50,7 +50,7 @@ async def cmd_start(message: types.Message):
|
|||
# This line is formatted to '🌎 *IP:* `YOUR IP`'
|
||||
|
||||
# Make request through bot's proxy
|
||||
ip = await fetch(GET_IP_URL, bot.session)
|
||||
ip = await fetch(GET_IP_URL, await bot.get_session())
|
||||
content.append(text(':locked_with_key:', bold('IP:'), code(ip), italic('via proxy')))
|
||||
# This line is formatted to '🔐 *IP:* `YOUR IP` _via proxy_'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue