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

Improve getMessageHTML signature, improve telegram message crop #56

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

paskal
Copy link
Collaborator

@paskal paskal commented Mar 25, 2022

Based on review notes from #52. Can be merged after #55.

Previously, the telegram message was stripped of its HTML, which was unintended. After that change, it would be stripped of HTML formatting only if the characters limit is exceeded. Otherwise, we need to do sophisticated HTML parsing to find the tag, which would be left without the closing part when trimming the message.

@paskal paskal requested a review from umputun March 25, 2022 10:33
@paskal paskal force-pushed the paskal/telegram_improvements branch 3 times, most recently from 60af1e3 to 37f5979 Compare March 25, 2022 20:53
Previously, the telegram message was stripped of its HTML,
which was unintended. After that change, it would be
stripped of HTML formatting only if the characters
limit is exceeded. Otherwise, we need to do sophisticated
HTML parsing to find the tag, which would be left without the
closing part when trimming the message.
@paskal paskal force-pushed the paskal/telegram_improvements branch from 37f5979 to 742c372 Compare March 25, 2022 20:56
@umputun umputun merged commit 3730fc5 into master Mar 25, 2022
@umputun umputun deleted the paskal/telegram_improvements branch March 25, 2022 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants