diff --git a/src/components/notifications/Telegram.vue b/src/components/notifications/Telegram.vue index 3c8425759..145a5c94e 100644 --- a/src/components/notifications/Telegram.vue +++ b/src/components/notifications/Telegram.vue @@ -35,7 +35,18 @@ -

{{ $t("telegramServerUrlDescription") }}

+
+ + {{ $t("here") }} + https://api.telegram.org + +
@@ -125,7 +136,6 @@ Uptime Kuma Alert{% if monitorJSON %} - {{ monitorJSON['name'] }}{% endif %} * @returns {string} formatted URL */ telegramGetUpdatesURL(mode = "masked") { - let serverUrl = this.$parent.notification.telegramServerUrl; let token = `<${this.$t("YOUR BOT TOKEN HERE")}>`; if (this.$parent.notification.telegramBotToken) { @@ -136,7 +146,7 @@ Uptime Kuma Alert{% if monitorJSON %} - {{ monitorJSON['name'] }}{% endif %} } } - return `${serverUrl}/bot${token}/getUpdates`; + return `${this.$parent.notification.telegramServerUrl}/bot${token}/getUpdates`; }, /** diff --git a/src/lang/en.json b/src/lang/en.json index 65022d93a..cb704b0fe 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -430,7 +430,7 @@ "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:", "telegramServerUrl": "(Optional) Server Url", - "telegramServerUrlDescription": "Telegram custom bot api server url. Defaults to https://api.telegram.org if empty.", + "telegramServerUrlDescription": "To lift Telegram's bot api limitations or gain access in blocked areas (China, Iran, etc). For more information click {0}. Default: {1}", "YOUR BOT TOKEN HERE": "YOUR BOT TOKEN HERE", "chatIDNotFound": "Chat ID is not found; please send a message to this bot first", "disableCloudflaredNoAuthMsg": "You are in No Auth mode, a password is not required.",