diff --git a/src/bot/utils/setup_bot.py b/src/bot/utils/setup_bot.py index 9efc2fa..fe9602f 100644 --- a/src/bot/utils/setup_bot.py +++ b/src/bot/utils/setup_bot.py @@ -1,4 +1,5 @@ from aiogram import Bot +from aiogram.client.default import DefaultBotProperties from aiogram.types import BotCommand from aiogram.types import BotCommandScopeDefault from sulguk import AiogramSulgukMiddleware @@ -14,7 +15,7 @@ async def setup_bot(config: BotConfig) -> Bot: """ bot: Bot = Bot( token=config.token.get_secret_value(), - parse_mode=SULGUK_PARSE_MODE, + default=DefaultBotProperties(parse_mode=SULGUK_PARSE_MODE), ) # https://github.com/Tishka17/sulguk#example-for-aiogram-users diff --git a/src/constants.py b/src/constants.py index c8f39f6..0151077 100644 --- a/src/constants.py +++ b/src/constants.py @@ -1,8 +1,8 @@ import os -VERSION: str = "2024-05-31.19" +VERSION: str = "2024-06-16.18" ROOT_DIR: str = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) CONFIG_FILE_PATH: str = os.path.join(ROOT_DIR, "config.yaml") -__all__ = ["CONFIG_FILE_PATH", "ROOT_DIR", "VERSION"] \ No newline at end of file +__all__ = ["CONFIG_FILE_PATH", "ROOT_DIR", "VERSION"]