Skip to content

Commit

Permalink
hotfix for aiogram 3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bralbral committed Jun 16, 2024
1 parent eb0d6c8 commit e58211a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/bot/utils/setup_bot.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/constants.py
Original file line number Diff line number Diff line change
@@ -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"]
__all__ = ["CONFIG_FILE_PATH", "ROOT_DIR", "VERSION"]

0 comments on commit e58211a

Please sign in to comment.