Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config.yaml.default
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ notifications:
# TELEGRAM
notify_telegram: false
telegram_token: xxxxx
# [optional] Can be used to specify a different chat to which the notifications are supposed to be sent. Useful for group chats.
# chat_id: xxxx

# TWILIO
notify_twilio: false
Expand Down
2 changes: 1 addition & 1 deletion plotmanager/library/utilities/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def _send_notifications(title, body, settings):

if settings.get('notify_telegram') is True:
import telegram_notifier
notifier = telegram_notifier.TelegramNotifier(settings.get('telegram_token'), parse_mode="HTML")
notifier = telegram_notifier.TelegramNotifier(settings.get('telegram_token'), parse_mode="HTML", chat_id=settings.get('chat_id'))
notifier.send(body)

if settings.get('notify_ifttt') is True:
Expand Down
2 changes: 1 addition & 1 deletion requirements-notification.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ discord_notify==1.0.0
playsound==1.2.2
prometheus-client==0.10.1
python_pushover==0.4
telegram_notifier==0.2
telegram_notifier==0.3
requests==2.25.1