Update server/notification-providers/call-me-bot.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
pull/4605/head
Merlin 1 month ago committed by GitHub
parent d3f2eef776
commit 093fa3d49a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save