tg-archive icon indicating copy to clipboard operation
tg-archive copied to clipboard

Links in message text

Open Farzat07 opened this issue 3 years ago • 4 comments

Sometimes a part of the message text hides a link to another message or even an external website. For example, the TelegramTips channel is full of such links. However, when the channel is archived and built into a website, these links are shown as regular text.

I am not sure whether the data is saved into the database but not included in the html, or the data is not even saved in the database in the first place. If it is saved in the database, I would appreciate if the relevant field is specified, so that I can include it in the template.

Farzat07 avatar Dec 16 '21 17:12 Farzat07

Could you please post screenshots demonstrating this?

knadh avatar Dec 18 '21 07:12 knadh

Basically, all formatting such as bold, italic, inline links, etc. is removed (because message.raw_text is being used here). message.text contains the message content as sanitized HTML (with client.parse_mode = 'html') which can be rendered directly. Can I make a PR?

faraazb avatar Feb 03 '22 18:02 faraazb

Yep, makes sense.

knadh avatar Feb 04 '22 05:02 knadh

I am trying this very interesting tool, thanks a lot for this great work! I encountered this issue on a channel where every message point toward an external website. It would be really great if the PR could be merged. Thanks again!

aizelauna avatar Dec 03 '22 21:12 aizelauna