Improve msgtypes

This commit is contained in:
Matthias
2023-03-24 20:47:17 +01:00
parent e8cffeeffd
commit 8928d3616a
3 changed files with 13 additions and 1 deletions

View File

@@ -437,7 +437,7 @@ class Telegram(RPCHandler):
msg_type = msg['type']
noti = ''
if msg_type == RPCMessageType.EXIT:
if msg['type'] == RPCMessageType.EXIT:
sell_noti = self._config['telegram'] \
.get('notification_settings', {}).get(str(msg_type), {})
# For backward compatibility sell still can be string