@@ -63,6 +119,17 @@ export default {
components: {
HiddenInput,
},
+ computed: {
+ telegramMessageTemplatePlaceholder() {
+ return this.$t("Example:", [
+ `
+Uptime Kuma Alert{% if monitorJSON %} - {{ monitorJSON['name'] }}{% endif %}
+
+{{ msg }}
+ `,
+ ]);
+ }
+ },
methods: {
/**
* Get the URL for telegram updates
@@ -115,3 +182,9 @@ export default {
}
};
+
+
diff --git a/src/lang/en.json b/src/lang/en.json
index e215f1031..cd1b68a88 100644
--- a/src/lang/en.json
+++ b/src/lang/en.json
@@ -421,6 +421,9 @@
"telegramSendSilentlyDescription": "Sends the message silently. Users will receive a notification with no sound.",
"telegramProtectContent": "Protect Forwarding/Saving",
"telegramProtectContentDescription": "If enabled, the bot messages in Telegram will be protected from forwarding and saving.",
+ "telegramUseTemplate": "Use custom message template",
+ "telegramUseTemplateDescription": "If enabled, the message will be sent using a custom template.",
+ "telegramTemplateFormatDescription": "See Telegram {0} for more details on formatting.",
"supportTelegramChatID": "Support Direct Chat / Group / Channel's Chat ID",
"wayToGetTelegramChatID": "You can get your chat ID by sending a message to the bot and going to this URL to view the chat_id:",
"YOUR BOT TOKEN HERE": "YOUR BOT TOKEN HERE",
@@ -1051,5 +1054,8 @@
"RabbitMQ Password": "RabbitMQ Password",
"rabbitmqHelpText": "To use the monitor, you will need to enable the Management Plugin in your RabbitMQ setup. For more information, please consult the {rabitmq_documentation}.",
"SendGrid API Key": "SendGrid API Key",
- "Separate multiple email addresses with commas": "Separate multiple email addresses with commas"
+ "Separate multiple email addresses with commas": "Separate multiple email addresses with commas",
+ "Plain Text": "Plain Text",
+ "Template": "Template",
+ "Template Format": "Template Format"
}