mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-12 07:49:40 -05:00
Add ability to send Telegram notifications silently.
This commit is contained in:
parent
bc3229828e
commit
da16796ec4
@ -13,6 +13,7 @@ class Telegram extends NotificationProvider {
|
|||||||
params: {
|
params: {
|
||||||
chat_id: notification.telegramChatID,
|
chat_id: notification.telegramChatID,
|
||||||
text: msg,
|
text: msg,
|
||||||
|
disable_notification: notification.telegramSendSilently,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return okMsg;
|
return okMsg;
|
||||||
|
@ -28,6 +28,15 @@
|
|||||||
<a :href="telegramGetUpdatesURL('withToken')" target="_blank" style="word-break: break-word;">{{ telegramGetUpdatesURL("masked") }}</a>
|
<a :href="telegramGetUpdatesURL('withToken')" target="_blank" style="word-break: break-word;">{{ telegramGetUpdatesURL("masked") }}</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input v-model="$parentnotification.telegramSendSilently" class="form-check-input" type="checkbox">
|
||||||
|
<label class="form-check-label">{{ $t("Send Silently") }}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-text">
|
||||||
|
{{ $t("telegramSendSilentlyDescription") }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -214,6 +214,8 @@ export default {
|
|||||||
"Chat ID": "Chat ID",
|
"Chat ID": "Chat ID",
|
||||||
supportTelegramChatID: "Support Direct Chat / Group / Channel's Chat ID",
|
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:",
|
wayToGetTelegramChatID: "You can get your chat ID by sending a message to the bot and going to this URL to view the chat_id:",
|
||||||
|
"Send Silently": "Send Silently",
|
||||||
|
telegramSendSilentlyDescription: "Sends the message silently. Users will receive a notification with no sound.",
|
||||||
"YOUR BOT TOKEN HERE": "YOUR BOT TOKEN HERE",
|
"YOUR BOT TOKEN HERE": "YOUR BOT TOKEN HERE",
|
||||||
chatIDNotFound: "Chat ID is not found; please send a message to this bot first",
|
chatIDNotFound: "Chat ID is not found; please send a message to this bot first",
|
||||||
webhook: "Webhook",
|
webhook: "Webhook",
|
||||||
|
Loading…
Reference in New Issue
Block a user