Skip to content

Commit

Permalink
another fix parse_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom-Developer committed Nov 5, 2024
1 parent f85a5af commit 9e0d95e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/src/infrastructure/telegram/bot.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from aiogram import Bot
from aiogram.types import InputMediaPhoto, URLInputFile
from pydantic import BaseModel
from aiogram.client.bot import DefaultBotProperties

from config import TG_TOKEN

bot = Bot(TG_TOKEN, parse_mode = "html")
bot = Bot(TG_TOKEN, default = DefaultBotProperties(parse_mode='html'))

async def send_media(chat_id: int, text: str, files: list[str], reply_to: int = None, parse_mode: str = "html") -> None:
await bot.send_media_group(
Expand Down

0 comments on commit 9e0d95e

Please sign in to comment.