Fix /stats Formatting issue in multi-message settings

This commit is contained in:
Matthias 2022-05-29 10:34:22 +02:00
parent 3e7bf6a9ef
commit f64f2b1ad8

View File

@ -785,7 +785,7 @@ class Telegram(RPCHandler):
headers=['Exit Reason', 'Exits', 'Wins', 'Losses'] headers=['Exit Reason', 'Exits', 'Wins', 'Losses']
) )
if len(exit_reasons_tabulate) > 25: if len(exit_reasons_tabulate) > 25:
self._send_msg(exit_reasons_msg, ParseMode.MARKDOWN) self._send_msg(f"```\n{exit_reasons_msg}```", ParseMode.MARKDOWN)
exit_reasons_msg = '' exit_reasons_msg = ''
durations = stats['durations'] durations = stats['durations']