убран блок информации из /start в /help
This commit is contained in:
parent
f58bf8b6a7
commit
f458044543
2 changed files with 18 additions and 1 deletions
|
|
@ -260,6 +260,12 @@ class LichessBot:
|
|||
await update.message.reply_text(start_msg)
|
||||
self.counters.increment('start')
|
||||
|
||||
async def help_command(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
|
||||
"""Help command handler"""
|
||||
lang = self.get_user_language_from_update(update)
|
||||
help_msg = t('help_message', lang)
|
||||
await update.message.reply_text(help_msg)
|
||||
|
||||
async def start_and_addgamer(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
|
||||
"""Start command that shows welcome message and starts addgamer conversation"""
|
||||
try:
|
||||
|
|
@ -1538,6 +1544,7 @@ class LichessBot:
|
|||
|
||||
# Add handlers - ConversationHandler must be before general MessageHandler
|
||||
application.add_handler(CommandHandler("start", self.start_and_addgamer))
|
||||
application.add_handler(CommandHandler("help", self.help_command))
|
||||
application.add_handler(CommandHandler("addgamer", self.addgamer_start))
|
||||
application.add_handler(addtoken_conv) # Add before general MessageHandler
|
||||
application.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, self.handle_username))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue