1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Display Botfather Command String if Telegram is enabled

This commit is contained in:
Steffo 2019-10-22 19:39:51 +02:00
parent 68ab18259a
commit ccf6f4c110

View file

@ -101,6 +101,10 @@ def run(telegram: typing.Optional[bool],
telegram_process: typing.Optional[multiprocessing.Process] = None telegram_process: typing.Optional[multiprocessing.Process] = None
if interfaces["telegram"]: 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, telegram_bot = r.bots.TelegramBot(network_config=network_config,
database_config=telegram_db_config, database_config=telegram_db_config,
sentry_dsn=sentry_dsn, sentry_dsn=sentry_dsn,