Aquesta és una revisió antiga del document
telegram
create bot
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"