From f4785045b3a9e1c9ddbc6dc603372b99ab1fa4fc Mon Sep 17 00:00:00 2001 From: yyoung Date: Wed, 11 Sep 2024 23:03:02 +0800 Subject: [PATCH] chore: upgrade to aiogram 3.13.0 --- nazurin/bot.py | 3 ++- requirements.txt | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nazurin/bot.py b/nazurin/bot.py index bf5dc4ce..e5f9fccf 100644 --- a/nazurin/bot.py +++ b/nazurin/bot.py @@ -3,6 +3,7 @@ from typing import List, Optional from aiogram import Bot, flags +from aiogram.client.default import DefaultBotProperties from aiogram.client.session.aiohttp import AiohttpSession from aiogram.enums import ChatAction, ParseMode from aiogram.exceptions import TelegramBadRequest @@ -31,7 +32,7 @@ def __init__(self, *args, **kwargs): super().__init__( *args, token=config.TOKEN, - parse_mode=ParseMode.HTML, + default=DefaultBotProperties(parse_mode=ParseMode.HTML), session=session, **kwargs, ) diff --git a/requirements.txt b/requirements.txt index f4c4e958..3b167d24 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ -aiogram~=3.6.0 +aiogram~=3.13.0 aiohttp~=3.9.0 aiohttp-socks~=0.8.4 aiohttp_cors~=0.7.0 aiofiles~=23.2.1 aiojobs==1.2.0 tenacity~=8.2.2 -environs~=9.3.4 +environs~=11.0.0 async_lru~=2.0.2 loguru~=0.6.0 humanize~=4.8.0