Require unfilledtimeout - don't require telegram in config
This commit is contained in:
parent
271846dfb6
commit
2588990f4b
@ -266,6 +266,6 @@ CONF_SCHEMA = {
|
||||
'stake_amount',
|
||||
'dry_run',
|
||||
'bid_strategy',
|
||||
'telegram'
|
||||
'unfilledtimeout',
|
||||
]
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ class RPCManager:
|
||||
self.registered_modules: List[RPC] = []
|
||||
|
||||
# Enable telegram
|
||||
if freqtrade.config['telegram'].get('enabled', False):
|
||||
if freqtrade.config.get('telegram', {}).get('enabled', False):
|
||||
logger.info('Enabling rpc.telegram ...')
|
||||
from freqtrade.rpc.telegram import Telegram
|
||||
self.registered_modules.append(Telegram(freqtrade))
|
||||
|
Loading…
Reference in New Issue
Block a user