Aquesta és una revisió antiga del document
telegram
create bot
telgram commands
@BotFather
/newbot
- → API TOKEN
/setuserpic
@userinfobot
: nos da nuestro ID usuario telegram
info
shell script
#!/bin/bash TOKEN="escribe tu token aquí" ID="escribe tu id aquí" MENSAJE="Esto es un Mensaje de Prueba" URL="https://api.telegram.org/bot$TOKEN/sendMessage" curl -s -X POST $URL -d chat_id=$ID -d text="$MENSAJE"