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

.md/ formatting support for RESPOND type messages #202

Closed
aka13-404 opened this issue Sep 22, 2022 · 4 comments · Fixed by #246
Closed

.md/ formatting support for RESPOND type messages #202

aka13-404 opened this issue Sep 22, 2022 · 4 comments · Fixed by #246
Assignees
Labels
Accepted suggestion A good suggestion for future versions Feature Request New feature or request Next release Extra attention is needed

Comments

@aka13-404
Copy link
Collaborator

What would you like to see added?

It would be cool to have more complex formatting availble for status messages.
@xyzroe Would be nice if you could post your ideas in this ticket.

@aka13-404 aka13-404 added the Feature Request New feature or request label Sep 22, 2022
@aka13-404 aka13-404 self-assigned this Sep 22, 2022
@aka13-404 aka13-404 added this to Long-Term suggestions in main development via automation Sep 22, 2022
@aka13-404 aka13-404 added the Accepted suggestion A good suggestion for future versions label Sep 22, 2022
@xyzroe
Copy link
Contributor

xyzroe commented Sep 22, 2022

At the moment when we call tgalarm or tgnotify we can only pass a text string.
It would be great if we could use Emoji, text formatting (markdown or html) and line breaks.
Looking at the example described in the wiki, this will allow when the insert filament macro is called instead of two messages, send one and make it shorter or more noticeable through the use of emoji.
Of course I would like to use it on all notifications, with photos and status.

@xyzroe
Copy link
Contributor

xyzroe commented Sep 22, 2022

While I was trying to send messages in different ways, I found that Klipper swears "Malformed command" there is a * symbol in the command, which in MD means bold.
I don't know if this can be bypassed, but if so, there is html formatting as a last resort.

UPD: It turns out that klipper console is able to process HTML formatting tags, at least in Mainsail.
It might be worth taking a closer look at HTML formatting, despite the cumbersomeness of message formatting.

@nlef nlef moved this from Long-Term suggestions to testing in main development Jan 3, 2023
@nlef
Copy link
Owner

nlef commented Jan 3, 2023

supported tags are in telegram docs. User must escape characters by himself.
@xyzroe you are welcome)

@xyzroe
Copy link
Contributor

xyzroe commented Jan 3, 2023

👍 Thanks. I'l try later and give a feedback.

@nlef nlef added the Next release Extra attention is needed label Jan 11, 2023
@nlef nlef linked a pull request Jan 15, 2023 that will close this issue
@aka13-404 aka13-404 moved this from testing to Done/released in main development Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted suggestion A good suggestion for future versions Feature Request New feature or request Next release Extra attention is needed
Projects
main development
Done/released
3 participants