-
-
Notifications
You must be signed in to change notification settings - Fork 870
Losing first word of message with Markdown pre encoding #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello and thanks for your report. However, it is upstream feature for specifying language in code block (like it is in GitHub). Screenshot from Bot API documentation (picture is clickable): |
Method from aiogram.utils.markdown import markdown_decoration as markdown # use the object of class specified above
await bot.send_message(msg.from_user.id, markdown.pre("Answer: 42"), parse_mode=ParseMode.MARKDOWN) I trapped little bit to this type of behaviour. I think that it could be strange and not obvious for new users. And on the other side it's small and some code could consider this behaviour. So I think that it shouldn't be changed on this stage of the project. |
Oh, now it looks like a small bug in our side. I'll reopen this issue and update the description. Thanks for clarification, @wofka72. |
label |
UPD. See the comment below for real issue
=== Original issue text starts here ===
Context
Expected Behavior
Message sended with
parse_mode=ParseMode.MARKDOWN
and wrapped with```
-braces loses first line (text till linebreak) if it have more than one line.Current Behavior
First line should be sent too.
Steps to Reproduce
loses first line:

works well:

Possible workaround before fix
The text was updated successfully, but these errors were encountered: