alt-art / TelegramBridge

Simple spigot plugin to make communication with groups on Telegram
https://modrinth.com/plugin/telegram-bridge
MIT License
2 stars 0 forks source link

Markdown support #11

Closed PystoyPlayer closed 6 months ago

PystoyPlayer commented 6 months ago

Nice. But now can you add MarkdownV2 support pls ? And link preview hider Shot (2024-03-24 at 04 22PM)@2x

PystoyPlayer commented 6 months ago

Should be Shot (2024-03-24 at 04 24PM)@2x

alt-art commented 6 months ago

You can use HTML, markdown on telegram is a bit odd because they check syntaxes

alt-art commented 6 months ago

HTML makes it easier to correct syntax errors than Telegram Markdown.

PystoyPlayer commented 6 months ago

Ah, HTML, thanks. But what about link previews ?

alt-art commented 6 months ago

You can use <a href="(link)">(label)</a> and will work fine

This is what looks like:

Screenshot from 2024-03-24 21-50-48

PystoyPlayer commented 6 months ago

You can use <a href="(link)">(label)</a> and will work fine

still shows the preview Shot (2024-03-25 at 06 13PM)@2x Shot (2024-03-25 at 06 12PM)@2x

alt-art commented 6 months ago

Hmm I don't know if I can solve this, I will do some tests.

PystoyPlayer commented 6 months ago

I think you need to set link_preview_options https://core.telegram.org/bots/api#sendmessage

alt-art commented 6 months ago

Thank you, I will do some refactoring and will make this change

alt-art commented 6 months ago

Sorry for delay making version 1.2.2 now