mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Custom Telegram notification template #1784
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#1784
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Scan4u on GitHub (Jan 16, 2023).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ 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 commented on GitHub (Jan 17, 2023):
Kindly waiting. Somebody, help, please!
@AndreKotze commented on GitHub (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.
@Scan4u commented on GitHub (Feb 2, 2023):
Any chance to get this feature? Please, advise..
@agarwalbikram commented on GitHub (Mar 19, 2023):
This feature would be good, How can we archive this?
@pigate-eu commented on GitHub (Apr 21, 2023):
Any news/tricks to change the telegram text?
@CommanderStorm commented on GitHub (May 25, 2023):
@Scan4u is this a duplicate of #975 ?
If not, what is the difference?
@CommanderStorm commented on GitHub (May 25, 2023):
@agarwalbikram @Scan4u
Please refrain from posting
+1/ requests for updates things on issues, as this makes issue-management harder.Issues are for discussing what needs to be done how by whom.
We use 👍🏻 on issues to prioritise work.
@CommanderStorm commented on GitHub (May 25, 2023):
@pigate-eu
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[bot] commented on GitHub (Aug 23, 2023):
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[bot] commented on GitHub (Aug 25, 2023):
This issue was closed because it has been stalled for 2 days with no activity.
@vladtvoeit commented on GitHub (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 commented on GitHub (Jun 13, 2024):
Please see my message from above:
Our contributution guide is here:
github.com/louislam/uptime-kuma@fbf7b77ceb/CONTRIBUTING.mdAlternatively, you can build your own notification provider via the webhook notification provider which talks to telegram the way you need it.
@VecH commented on GitHub (Jul 3, 2025):
After updating the container, the contents of the Telegram template file may change
and this tweak may not work
Before

After

@CommanderStorm commented on GitHub (Jul 4, 2025):
Or you could just use the build in templating for telegram thwat we are shipping in v2
@AndreKotze commented on GitHub (Jul 4, 2025):
Thanks @VecH, that worked for me.
I don't have UK running in a container but I was able to run the command against "/opt/uptime-kuma/server/notification-providers/telegram.js" with the same outcome... :-)
@VecH commented on GitHub (Jul 4, 2025):
I don't use the second version, I'm waiting for the stable one to come out
Although I want to test it, is it possible to update to the current version with data transfer?