You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after latest updates the library using "message.text_html" method (i didn't check with markdown) returns links as text_link.
so a message like "test www.google.com" is returned by message.text_html as "test <a href="www.google.com">www.google.com</a>" despite it was not an text_link.
before of the latest udpates it worked fine and it was able to reflect how the sent message was formatted. so if the message didn't contain html tags it didn't return html tags and viceversa.
actually it's not possible to distinguish if the user sent a link or text_link using that attribute and also if a bot wants to echoes messages respecting the formatting style a possible limit is when an user sends 101 link and the bot will try to echoes with 101 text_link (while the maximum formatting things in a message is 100).
to reproduce:
print a link sent to the bot using "update.message.text_html" example: "t.me/telegram" expcted behaviour:
you get "t.me/telegram" actual behaviour:
you get <a href="t.me/telegram">t.me/telegram</a>
The text was updated successfully, but these errors were encountered:
`text_html` & `text_markdown` reverted to the old semantics - URLs are not converted to hyperlinks.
To get the new behaviour there are matching `text_html_urled` & `text_markdown_urled` properties.
fixes#773
after latest updates the library using "message.text_html" method (i didn't check with markdown) returns links as text_link.
so a message like "
test www.google.com
" is returned by message.text_html as "test <a href="www.google.com">www.google.com</a>
" despite it was not an text_link.before of the latest udpates it worked fine and it was able to reflect how the sent message was formatted. so if the message didn't contain html tags it didn't return html tags and viceversa.
actually it's not possible to distinguish if the user sent a link or text_link using that attribute and also if a bot wants to echoes messages respecting the formatting style a possible limit is when an user sends 101 link and the bot will try to echoes with 101 text_link (while the maximum formatting things in a message is 100).
to reproduce:
print a link sent to the bot using "update.message.text_html" example: "
t.me/telegram
"expcted behaviour:
you get "
t.me/telegram
"actual behaviour:
you get
<a href="t.me/telegram">t.me/telegram</a>
The text was updated successfully, but these errors were encountered: