|
|
@ -11,8 +11,8 @@ class CallMeBot extends NotificationProvider {
|
|
|
|
const okMsg = "Sent Successfully.";
|
|
|
|
const okMsg = "Sent Successfully.";
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const url = new URL(notification.callMeBotEndpoint);
|
|
|
|
const url = new URL(notification.callMeBotEndpoint);
|
|
|
|
url.searchParams.delete("text");
|
|
|
|
url.searchParams.set("text", msg);
|
|
|
|
await axios.get(`${url}&text=${encodeURIComponent(msg)}`);
|
|
|
|
await axios.get(url.toString());
|
|
|
|
return okMsg;
|
|
|
|
return okMsg;
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
this.throwGeneralAxiosError(error);
|
|
|
|
this.throwGeneralAxiosError(error);
|
|
|
|