is_available = check_username_availability(username)
bot.reply_to(
message,
f"""
👤 Username: @{username}
⚙️ Status: {"✅ Available" if is_available else "❌ Not Available"}
""",
parse_mode="HTML"
)
except IndexError:
bot.reply_to(message, "⚠️ Please enter a username to check.", parse_mode="HTML")
while True:
try:
bot.infinity_polling()
except Exception as e:
print(f"An error occurred: {e}")
time.sleep(3)
bot.infinity_polling()