Split protection-notification into global and per-pair

This commit is contained in:
Matthias
2021-09-20 19:23:40 +02:00
parent a0fb43c6ca
commit dd0db7ee5d
6 changed files with 26 additions and 4 deletions

View File

@@ -286,7 +286,11 @@ class Telegram(RPCHandler):
"*Protection* triggered due to {reason}. "
"{pair} will be locked until {lock_end_time}."
).format(**msg)
elif msg_type == RPCMessageType.PROTECTION_TRIGGER_GLOBAL:
message = (
"*Protection* triggered due to {reason}. "
"All pairs will be locked until {lock_end_time}."
).format(**msg)
elif msg_type == RPCMessageType.STATUS:
message = '*Status:* `{status}`'.format(**msg)