import telebot
# Reemplaza con tu token del bot de Telegram
TOKEN = "TU_TOKEN_AQUÍ"
bot = telebot.TeleBot(TOKEN)
# Maneja el comando /start
@bot.message_handler(commands=['start'])
def send_welcome(message):
bot.reply_to(message, "¡Hola! Soy un bot simple. ¿En qué puedo ayudarte? 🤖")
# Maneja cualquier otro mensaje
@bot.message_handler(func=lambda message: True)
def echo_all(message):
bot.reply_to(message, f"Has dicho: {message.text}")
# Iniciar el bot
bot.polling()