Bot de Telegram con inteligencia artificial integrada usando Groq (Llama 3.1), busqueda web via DuckDuckGo y recordatorios temporizados.
- Chat con IA - Conversaciones naturales usando Groq API (Llama 3.1 8B)
- Busqueda web - Consulta DuckDuckGo directamente desde Telegram
- Recordatorios - Programa recordatorios con tiempo en minutos
- Comandos intuitivos - Disenado para ser usado sin manual
| Comando | Descripcion | Ejemplo |
|---|---|---|
/start |
Mensaje de bienvenida | /start |
/chat <mensaje> |
Pregunta a la IA | /chat que es FastAPI? |
/buscar <consulta> |
Busca en internet | /buscar python 3.13 novedades |
/recordatorio <texto> en <min> |
Crea recordatorio | /recordatorio llamar en 10 |
/ayuda |
Lista completa de comandos | /ayuda |
git clone https://github.com/Litios0912/telegram-bot.git
cd telegram-bot
pip install -r requirements.txt
# Configurar variables
export TELEGRAM_TOKEN=tu_token_de_botfather
export GROQ_API_KEY=gsk_tu_key_de_groq
# Iniciar
python bot.py- Crea cuenta en railway.com (con GitHub)
- Clic en "New Project" -> "Deploy from GitHub repo"
- Selecciona este repositorio
- Agrega variables de entorno:
TELEGRAM_TOKENGROQ_API_KEY
- Railway despliega automaticamente
O usa la CLI:
npm i -g @railway/cli
railway login
railway init
railway variables --set TELEGRAM_TOKEN=tu_token --set GROQ_API_KEY=gsk_tu_key
railway up- Abre Telegram y busca @BotFather
- Envia
/newboty sigue las instrucciones - Copia el token que recibes
- Registrate en console.groq.com
- Ve a API Keys y crea una nueva
- Copia la clave
gsk_...
telegram-bot/
bot.py # Logica principal del bot
requirements.txt # Dependencias Python
.env.example # Template de variables de entorno
README.md # Este archivo
MIT