Add Telegram custom bot api server support (#5668)

This commit is contained in:
RaminMT
2025-03-21 06:38:20 +03:30
committed by GitHub
parent 6f8f8f955f
commit b0610c02ac
3 changed files with 22 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ class Telegram extends NotificationProvider {
*/
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
const okMsg = "Sent Successfully.";
const url = "https://api.telegram.org";
const url = notification.telegramServerUrl ?? "https://api.telegram.org";
try {
let params = {