Add complete list of keyboard, as in the help.
This commit is contained in:
parent
68a5e0c51b
commit
c218abba3b
@ -19,7 +19,6 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
logger.debug('Included module rpc.telegram ...')
|
logger.debug('Included module rpc.telegram ...')
|
||||||
|
|
||||||
|
|
||||||
MAX_TELEGRAM_MESSAGE_LENGTH = 4096
|
MAX_TELEGRAM_MESSAGE_LENGTH = 4096
|
||||||
|
|
||||||
|
|
||||||
@ -29,6 +28,7 @@ def authorized_only(command_handler: Callable[..., None]) -> Callable[..., Any]:
|
|||||||
:param command_handler: Telegram CommandHandler
|
:param command_handler: Telegram CommandHandler
|
||||||
:return: decorated function
|
:return: decorated function
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def wrapper(self, *args, **kwargs):
|
def wrapper(self, *args, **kwargs):
|
||||||
""" Decorator logic """
|
""" Decorator logic """
|
||||||
update = kwargs.get('update') or args[0]
|
update = kwargs.get('update') or args[0]
|
||||||
@ -318,7 +318,7 @@ class Telegram(RPC):
|
|||||||
best_rate = stats['best_rate']
|
best_rate = stats['best_rate']
|
||||||
# Message to display
|
# Message to display
|
||||||
markdown_msg = "*ROI:* Close trades\n" \
|
markdown_msg = "*ROI:* Close trades\n" \
|
||||||
f"∙ `{profit_closed_coin:.8f} {stake_cur} "\
|
f"∙ `{profit_closed_coin:.8f} {stake_cur} " \
|
||||||
f"({profit_closed_percent:.2f}%)`\n" \
|
f"({profit_closed_percent:.2f}%)`\n" \
|
||||||
f"∙ `{profit_closed_fiat:.3f} {fiat_disp_cur}`\n" \
|
f"∙ `{profit_closed_fiat:.3f} {fiat_disp_cur}`\n" \
|
||||||
f"*ROI:* All trades\n" \
|
f"*ROI:* All trades\n" \
|
||||||
@ -566,7 +566,7 @@ class Telegram(RPC):
|
|||||||
"*/profit:* `Lists cumulative profit from all finished trades`\n" \
|
"*/profit:* `Lists cumulative profit from all finished trades`\n" \
|
||||||
"*/forcesell <trade_id>|all:* `Instantly sells the given trade or all trades, " \
|
"*/forcesell <trade_id>|all:* `Instantly sells the given trade or all trades, " \
|
||||||
"regardless of profit`\n" \
|
"regardless of profit`\n" \
|
||||||
f"{forcebuy_text if self._config.get('forcebuy_enable', False) else '' }" \
|
f"{forcebuy_text if self._config.get('forcebuy_enable', False) else ''}" \
|
||||||
"*/performance:* `Show performance of each finished trade grouped by pair`\n" \
|
"*/performance:* `Show performance of each finished trade grouped by pair`\n" \
|
||||||
"*/daily <n>:* `Shows profit or loss per day, over the last n days`\n" \
|
"*/daily <n>:* `Shows profit or loss per day, over the last n days`\n" \
|
||||||
"*/count:* `Show number of trades running compared to allowed number of trades`" \
|
"*/count:* `Show number of trades running compared to allowed number of trades`" \
|
||||||
@ -634,10 +634,12 @@ class Telegram(RPC):
|
|||||||
:param parse_mode: telegram parse mode
|
:param parse_mode: telegram parse mode
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
|
keyboard = [["/start", "/stop", "/status", "/status table"],
|
||||||
keyboard = [['/daily', '/profit', '/balance'],
|
["/profit", "/forcebuy", "/forcesell"],
|
||||||
['/status', '/status table', '/performance'],
|
["/performance", "/daily", "/count"],
|
||||||
['/count', '/start', '/stop', '/help']]
|
["/balance", "/stopbuy", "/reload_conf"],
|
||||||
|
["/show_config", "/whitelist", "/blacklist"],
|
||||||
|
["/edge", "/help", "/version"]]
|
||||||
|
|
||||||
reply_markup = ReplyKeyboardMarkup(keyboard)
|
reply_markup = ReplyKeyboardMarkup(keyboard)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user