Merge pull request #54 from bucolucas/remove-unused-keyboard-commands

Remove unused keyboard commands
This commit is contained in:
2024-08-18 17:31:10 -05:00
committed by GitHub
-3
View File
@@ -61,7 +61,6 @@ for tool in tools:
def get_keyboard():
keyboard = [
['/switch', '/toggle'],
['/status', '/reset']
]
return ReplyKeyboardMarkup(keyboard, resize_keyboard=True)
@@ -269,8 +268,6 @@ def main() -> None:
app.add_handler(CommandHandler("start", start))
app.add_handler(CommandHandler("clear", clear))
app.add_handler(CommandHandler("status", status))
app.add_handler(CommandHandler("switch", start)) # Placeholder for /switch command
app.add_handler(CommandHandler("toggle", start)) # Placeholder for /toggle command
app.add_handler(CommandHandler("reset", clear)) # Use clear function for /reset command
app.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, handle_message))
app.add_handler(CallbackQueryHandler(abort_processing, pattern='^abort$'))