telegram: Wrapping long line

This commit is contained in:
Gonzalo Matheu 2021-03-31 21:51:15 -03:00
parent 271e4500d9
commit e2f28991e6

View File

@ -628,7 +628,9 @@ class Telegram(RPCHandler):
self._send_msg(str(e)) self._send_msg(str(e))
else: else:
whitelist = self._rpc._rpc_whitelist()['whitelist'] whitelist = self._rpc._rpc_whitelist()['whitelist']
pairs_keyboard: List[List[Union[str, KeyboardButton]]] = [[f'/forcebuy {pair}' for pair in whitelist]] pairs_keyboard: List[List[Union[str, KeyboardButton]]] = [
[f'/forcebuy {pair}' for pair in whitelist]
]
self._send_msg("Which pair?", keyboard=pairs_keyboard) self._send_msg("Which pair?", keyboard=pairs_keyboard)
@authorized_only @authorized_only