Change Apprise sender name to 'TI-Status Bot by medisoftware'
This commit is contained in:
@ -239,6 +239,9 @@ def send_notification(message):
|
||||
# Erstelle die Nachricht
|
||||
title = "Neue TI-Status-Meldung"
|
||||
body = f"{md_message}\n\n[Zur Statusseite](https://fachportal.gematik.de/ti-status)\n_Gemeldet am {datetime.now().strftime('%d.%m.%Y %H:%M:%S')}_"
|
||||
|
||||
# Setze den Absender-Namen
|
||||
sender_name = "TI-Status Bot by medisoftware"
|
||||
|
||||
if is_debug_mode():
|
||||
print(f"📤 Sende Benachrichtigung an {len(urls)} Endpunkt(e)")
|
||||
@ -251,7 +254,8 @@ def send_notification(message):
|
||||
result = apobj.notify(
|
||||
title=title,
|
||||
body=body,
|
||||
body_format=apprise.NotifyFormat.MARKDOWN
|
||||
body_format=apprise.NotifyFormat.MARKDOWN,
|
||||
sender=sender_name
|
||||
)
|
||||
if result:
|
||||
if is_debug_mode():
|
||||
|
||||
Reference in New Issue
Block a user