stash
This commit is contained in:
parent
f1e4cbff11
commit
a4d79896da
1 changed files with 2 additions and 0 deletions
|
@ -62,8 +62,10 @@ class NotificationDispatcher:
|
||||||
await telegram_notify(message, TELEGRAM_GROUP_CHAT_ID)
|
await telegram_notify(message, TELEGRAM_GROUP_CHAT_ID)
|
||||||
for target in targets:
|
for target in targets:
|
||||||
if target.channel_type == 'telegram':
|
if target.channel_type == 'telegram':
|
||||||
|
print("Sending telegram notification to:", target.channel_target)
|
||||||
await telegram_notify(message, target.channel_target)
|
await telegram_notify(message, target.channel_target)
|
||||||
elif target.channel_type == 'email':
|
elif target.channel_type == 'email':
|
||||||
|
print("Sending email notification to:", target.channel_target)
|
||||||
await email_notify(message, target.channel_target)
|
await email_notify(message, target.channel_target)
|
||||||
else:
|
else:
|
||||||
print("Unknown channel type:", target.channel_type)
|
print("Unknown channel type:", target.channel_type)
|
||||||
|
|
Loading…
Reference in a new issue