umputun / remark42

comment engine
https://remark42.com
MIT License
4.91k stars 385 forks source link

Reduce number of symbols in Telegram messages #1587

Open paskal opened 1 year ago

paskal commented 1 year ago

It makes sense not to cite long messages in Telegram, leaving 50 or 100 messages should be enough.

paskal commented 1 year ago

The problem here is that a telegram message is HTML, so cutting it requires HTML parsing and not just cutting by the number of symbols. Also, ideally, we should not count HTML tags which don't consume screen space but only alter the appearance of the text.

HARDY8118 commented 9 months ago

Hi @paskal

Can you provide some more background on the issue.

paskal commented 8 months ago

@HARDY8118, what kind of details do you need? The issue is that messages are sometimes unnecessarily long and should be truncated, but it's tricky as they are HTML and not just text.