Spaces:
Sleeping
Sleeping
Update main.py
Browse files87 unmodified lines88899091929394959687 unmodified linesAvailable commands:/start - Start the bot/help - Show this help message"""await message.reply_text(help_text)# Message handler for regular text messages@myaibot.on_message(filters.text & filters.private & ~filters.command(["start", "help", "info"]))async def echo(client, message):87 unmodified lines88899091929394959697989910010110210310410510610710887 unmodified linesAvailable commands:/start - Start the bot/help - Show this help message/history - Show chat history/clear - Clear chat history/info - Show user information"""await message.reply_text(help_text)# Add clear command@myaibot.on_message(filters.command("clear"))async def clear_command(client, message):try:message_history.clear()await message.reply_text("✨ Chat history has been cleared!")except Exception as e:await message.reply_text(f"Error clearing history: {str(e)}")# Message handler for regular text messages@myaibot.on_message(filters.text & filters.private & ~filters.command(["start", "help", "info"]))async def echo(client, message):
main.py+12