Update telegram.py

This commit is contained in:
GluTbl 2021-10-24 17:18:20 +05:30 committed by GitHub
parent b4bedc22d7
commit d7d36f15a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -770,6 +770,9 @@ class Telegram(RPCHandler):
"""
if context.args:
pair = context.args[0]
if pair not in self._rpc._rpc_whitelist()['whitelist']: # check the pair is in whitelist
self._send_msg(msg=f"{pair} is not in whitelist.")
return
price = float(context.args[1]) if len(context.args) > 1 else None
self._forcebuy_action(pair, price)
else: