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

Custom Telegram notification template #2617

Closed
2 tasks done
Scan4u opened this issue Jan 16, 2023 · 12 comments
Closed
2 tasks done

Custom Telegram notification template #2617

Scan4u opened this issue Jan 16, 2023 · 12 comments

Comments

@Scan4u
Copy link
Contributor

Scan4u commented Jan 16, 2023

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

Hello! I kindly ask for your advise.
I use the Uptime Kuma 1.19.4 in Docker container. For the notification messages I use the Telegram.

Is it possible to change the view of default Telegram notifications template?

For example, I want to remove a brackets [ ] and the Message text after Up/Down status icons to get a result similar to the view in the green frame below:
зображення

🐻 Uptime-Kuma Version

1.19.4

💻 Operating System and Arch

Ubuntu 20.04

🌐 Browser

Firefox

🐋 Docker Version

Docker 20.10.22

🟩 NodeJS Version

@Scan4u Scan4u added the help label Jan 16, 2023
@Scan4u Scan4u changed the title Custom Telegram Custom Telegram notification template Jan 16, 2023
@Scan4u

This comment was marked as spam.

@AndreKotze
Copy link

AndreKotze commented Jan 25, 2023

I have wondered the same and would also like to know how to edit the notifications as each protocol seems to have a different text structure - some with short text and some with long.

Screenshot_20230125-113639_Telegram

@Scan4u

This comment was marked as duplicate.

@agarwalbikram

This comment was marked as duplicate.

@pigate-eu
Copy link

Any news/tricks to change the telegram text?

@CommanderStorm

This comment was marked as resolved.

@CommanderStorm

This comment was marked as resolved.

@CommanderStorm
Copy link
Collaborator

@pigate-eu

Any news/tricks to change the telegram text?

Until #975 is resolved, no.
However: This project is open source =>You can change the code of the notification provider at https://github.com/louislam/uptime-kuma/blob/master/server/notification-providers/telegram.js and deploy using the guide in the readme instead of docker

@github-actions
Copy link

We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days.

@github-actions github-actions bot added the Stale label Aug 23, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 2 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 25, 2023
@baxenko
Copy link

baxenko commented Jun 13, 2024

Has anyone found a solution to the problem? How can I remove the extra text in the telegram notification? Thank you.

@CommanderStorm
Copy link
Collaborator

Please see my message from above:

Until #975 is resolved, no.
However: This project is open source => You can change the code of the notification provider at https://github.com/louislam/uptime-kuma/blob/master/server/notification-providers/telegram.js

Our contributution guide is here:
https://github.com/louislam/uptime-kuma/blob/fbf7b77cebc81707fa56cfa91ebd8f6dbaac0112/CONTRIBUTING.md

Alternatively, you can build your own notification provider via the webhook notification provider which talks to telegram the way you need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants