Merge pull request #54 from bucolucas/remove-unused-keyboard-commands
Remove unused keyboard commands
This commit is contained in:
@@ -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$'))
|
||||
|
||||
Reference in New Issue
Block a user