Skip to content

Commit

Permalink
beta 9/04/2023
Browse files Browse the repository at this point in the history
  • Loading branch information
jumping2000 authored Apr 9, 2023
1 parent d6b14d1 commit 57c0f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/notifier/notification_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def send_notify(self, data, notify_name, assistant_name: str):
extra_data = {}
if isinstance(telegram, dict):
extra_data = telegram
if link !="":
messaggio = ("{} {}".format(messaggio,link))
if caption == "":
caption = ("{}\n{}".format(titolo,messaggio))
if image != "" and image.find("http") != -1:
Expand All @@ -103,8 +105,6 @@ def send_notify(self, data, notify_name, assistant_name: str):
#self.log("[EXTRA-DATA]: {}".format(extra_data), ascii_encode = False)
if str(html).lower() not in ["true","on","yes","1"]:
messaggio = messaggio.replace("_","\_")
if link !="":
messaggio = ("{} {}".format(messaggio,link))
if image != "":
self.call_service(item, message = "", data = extra_data)
elif extra_data:
Expand Down

0 comments on commit 57c0f79

Please sign in to comment.