Eldinnie · GitHub

@Eldinnie

Copy link Copy Markdown

Member

This restores the text_* properties for message to the way they were.
Implementing different methods for different behavior can be done either in this PR or in another.

fixes #773

@Eldinnie

Copy link Copy Markdown

Member Author

I modified as requested.
properties now available are:
text_html <- does not encode MessageEntity.URL
text_html_urled < encodes MessageEntity.URL
text_markdown <- does not encode MessageEntity.URL
text_markdown_urled < encodes MessageEntity.URL

@jsmnbom

Copy link Copy Markdown

Member

Hmm maybe add a docstring link from the urled one to the not urled one and vise versa?
Other than that LGTM

@Eldinnie

Copy link Copy Markdown

Member Author

@bomjacob they should be listed right on top of each other in docstrings. I think it's a bit overkill

@jsmnbom

Copy link Copy Markdown

Member

That may be true, but I still think it makes more sense from a usability standpoint. Especially if you consider that people don't necessarily search through the docs themselves, they might be linked by roolsbot or be using the internal help() command.

@91DarioDev

Copy link Copy Markdown

@bomjacob
about this in your comment:
text_html <- does not encode MessageEntity.URL

does not encode if the user didn't use html tags, but does it returns the html tags if the user sent the message using them?

@Eldinnie

Copy link Copy Markdown

Member Author

@91DarioDev in that case it would be a MessageEntity.TEXT_LINK which is always encoded

@tsnoam

Copy link Copy Markdown

Member

LGTM. @Eldinnie has proper unitest wip with the new unitests so no need for that here.

@tsnoam

@tsnoam

tsnoam deleted the rollback_text_ branch

August 7, 2017 21:10

Closed

Closed

Closed

This was referenced

Mar 2, 2018

Closed

Merged

Read the original on github.com ↗