From 4dadfd199d8485c3920aab5e128d942c191a508f Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 22 Dec 2020 07:36:53 +0100 Subject: [PATCH] Documentation syntax --- docs/telegram-usage.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/docs/telegram-usage.md b/docs/telegram-usage.md index da4a2e8dd..c8d95d743 100644 --- a/docs/telegram-usage.md +++ b/docs/telegram-usage.md @@ -88,17 +88,22 @@ Example configuration showing the different settings: ``` ## Create a custom keyboard (command shortcut buttons) + Telegram allows us to create a custom keyboard with buttons for commands. The default custom keyboard looks like this. + ```python [ - ['/daily', '/profit', '/balance'], # row 1, 3 commands - ['/status', '/status table', '/performance'], # row 2, 3 commands - ['/count', '/start', '/stop', '/help'] # row 3, 4 commands + ["/daily", "/profit", "/balance"], # row 1, 3 commands + ["/status", "/status table", "/performance"], # row 2, 3 commands + ["/count", "/start", "/stop", "/help"] # row 3, 4 commands ] -``` +``` + ### Usage + You can create your own keyboard in `config.json`: + ``` json "telegram": { "enabled": true, @@ -107,14 +112,15 @@ You can create your own keyboard in `config.json`: "keyboard": [ ["/daily", "/stats", "/balance", "/profit"], ["/status table", "/performance"], - ["/reload_config", "/count", "/logs"] + ["/reload_config", "/count", "/logs"] ] }, ``` -!!! Note - Only a certain list of commands are allowed. Command arguments are not supported! -### Supported Commands - `/start`, `/stop`, `/status`, `/status table`, `/trades`, `/profit`, `/performance`, `/daily`, `/stats`, `/count`, `/locks`, `/balance`, `/stopbuy`, `/reload_config`, `/show_config`, `/logs`, `/whitelist`, `/blacklist`, `/edge`, `/help`, `/version` + +!!! Note "Supported Commands" + Only the following commands are allowed. Command arguments are not supported! + + `/start`, `/stop`, `/status`, `/status table`, `/trades`, `/profit`, `/performance`, `/daily`, `/stats`, `/count`, `/locks`, `/balance`, `/stopbuy`, `/reload_config`, `/show_config`, `/logs`, `/whitelist`, `/blacklist`, `/edge`, `/help`, `/version` ## Telegram commands