From 806838c3af9981089af992ec36b90a9a377727ce Mon Sep 17 00:00:00 2001 From: Kamontat Chantrachirathumrong Date: Sun, 30 May 2021 21:07:44 +0700 Subject: [PATCH] Fix we use check sell_noti not noti --- freqtrade/rpc/telegram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index cca87ad91..d1e337401 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -240,8 +240,8 @@ class Telegram(RPCHandler): if msg_type == RPCMessageType.SELL: sell_noti = self._config['telegram'] \ .get('notification_settings', {}).get(str(msg_type), {}) - # For backward compatibility sell still be string - if isinstance(noti, str): + # For backward compatibility sell still can be string + if isinstance(sell_noti, str): noti = sell_noti else: noti = sell_noti.get(str(msg['sell_reason']), default_noti)