From 61d3e462fb075f14622805c07ea38e0dae74b969 Mon Sep 17 00:00:00 2001 From: Bandie Date: Fri, 11 Jun 2021 23:32:35 +0200 Subject: [PATCH] Command explaination --- TelegramContactProtectionBot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/TelegramContactProtectionBot.py b/TelegramContactProtectionBot.py index 3eb4877..a290ca1 100755 --- a/TelegramContactProtectionBot.py +++ b/TelegramContactProtectionBot.py @@ -156,7 +156,13 @@ loadConfig() commandsList = [] commandsList.append(BotCommand(command='start', description='Information about this bot.')) if('name' in config): - commandsList.append(BotCommand(command='request', description='Request ' + config['name'] + ' for contact')) + commandsList.append(BotCommand(command='request', description='Send a contact request to ' + config['name'])) + commandsList.append(BotCommand(command='block', description='Admin: Block a user. ID required. /block {ID}')) + commandsList.append(BotCommand(command='unblock', description='Admin: Unblock a user. ID required. /unblock {ID}')) + commandsList.append(BotCommand(command='blocklist', description='Admin: List the blocked IDs.')) + commandsList.append(BotCommand(command='setname', description='Admin: Set your name for information purposes. /setname {name}')) + + if('adminID' not in config):