From ccf6f4c110e32fd2972e4ce18af56dc768872af3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 22 Oct 2019 19:39:51 +0200 Subject: [PATCH] Display Botfather Command String if Telegram is enabled --- royalnet/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/royalnet/__main__.py b/royalnet/__main__.py index cc479f19..22cf9ca3 100644 --- a/royalnet/__main__.py +++ b/royalnet/__main__.py @@ -101,6 +101,10 @@ def run(telegram: typing.Optional[bool], telegram_process: typing.Optional[multiprocessing.Process] = None if interfaces["telegram"]: + click.echo("\n@BotFather Commands String") + for command in enabled_commands: + click.echo(f"{command.name} - {command.description}") + click.echo("") telegram_bot = r.bots.TelegramBot(network_config=network_config, database_config=telegram_db_config, sentry_dsn=sentry_dsn,