Skip to content
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

Added methods to generate the original markdown/html string from entities contained in Message #507

Merged
merged 11 commits into from Jan 20, 2017

Conversation

Projects
None yet
2 participants
@JosXa
Copy link
Contributor

JosXa commented Jan 18, 2017

Sometimes, it is useful to obtain the original message string with markup from message_entities inside an update, for example when you edit a message with markup upon InlineKeyboardButton press.

There is no support for nested entities yet, can someone confirm my assumption that telegram/ptb does not support that anyway?

@JosXa JosXa changed the title Added methods to generate the original markdown/html from entities contained in update Added methods to generate the original markdown/html string from entities contained in Message Jan 18, 2017

@jh0ker jh0ker merged commit ac59f2f into python-telegram-bot:master Jan 20, 2017

1 of 2 checks passed

coverage/coveralls Coverage decreased (-0.2%) to 92.123%
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

jh0ker added a commit that referenced this pull request Feb 27, 2017

jh0ker added a commit that referenced this pull request Mar 26, 2017

Refactor `Update.extract_` methods to `Update.effective_` properties (#…
…531)

* 🔨 Refactor `Update.extract_` methods to `Update.effective_` properties
 #507

* 🔨 handler.py: use effective_ properties

jh0ker added a commit that referenced this pull request Mar 26, 2017

Update handlers (#532)
* 🔨 Refactor `Update.extract_` methods to `Update.effective_` properties
 #507

*  Update RegexHandler to work with edited messages and channel posts

* 🔨 messagehandler.py: refactor channel_posts_updates -> channel_post_updates

* 🔨 handler.py: use effective_ properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.