Skip to content

Commit

Permalink
[FIX] exacape markdown for float string when sending big file
Browse files Browse the repository at this point in the history
  • Loading branch information
maschlr committed Sep 20, 2024
1 parent c6d003e commit f2154f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion summaree_bot/bot/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ async def transcribe_and_summarize(update: Update, context: ContextTypes.DEFAULT
admin_msg = AdminChannelMessage(
text=(
f"User {update.effective_user.mention_markdown_v2()} tried to send "
f"a file than was {file_size / 1024 / 1024} MB"
f"a file than was {escape_markdown(f'{file_size / 1024 / 1024:.2f} MB', version=2)}"
),
parse_mode=ParseMode.MARKDOWN_V2,
)
Expand Down

0 comments on commit f2154f0

Please sign in to comment.