Add pairlock-notification

This commit is contained in:
Matthias
2021-09-20 19:12:59 +02:00
parent 1da091dea3
commit a0fb43c6ca
4 changed files with 34 additions and 2 deletions

View File

@@ -281,6 +281,11 @@ class Telegram(RPCHandler):
"for {close_rate}.".format(**msg))
elif msg_type == RPCMessageType.SELL:
message = self._format_sell_msg(msg)
elif msg_type == RPCMessageType.PROTECTION_TRIGGER:
message = (
"*Protection* triggered due to {reason}. "
"{pair} will be locked until {lock_end_time}."
).format(**msg)
elif msg_type == RPCMessageType.STATUS:
message = '*Status:* `{status}`'.format(**msg)