Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurdok committed Mar 6, 2024
1 parent 0ac3ec0 commit 9fc2ce2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/spanreed/apis/telegram_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,14 @@ async def send_message(
parse_mode = "HTML"
elif parse_markdown:
parse_mode = "MarkdownV2"
return cast(Message, await app.bot.send_message(
chat_id=self._telegram_user_id, text=text, parse_mode=parse_mode
))
return cast(
Message,
await app.bot.send_message(
chat_id=self._telegram_user_id,
text=text,
parse_mode=parse_mode,
),
)

async def send_multiple_messages(
self, *text: str, delay: int = 1, parse_html: bool = True
Expand Down

0 comments on commit 9fc2ce2

Please sign in to comment.