Add complete list of keyboard, as in the help.

This commit is contained in:
phe-sto 2020-04-10 15:04:04 +02:00
parent 68a5e0c51b
commit c218abba3b

View File

@ -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]
@ -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)