Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OODAbot(){
- declare -r link="https://t.me/OODAbot"
- echo -e "\n\n${yellowColour}[*]${endColour}${turquoiseColour} Haz click en el siguiente enlace y dale a 'Start' para recibir notificaciones a través de Telegram: ${endColour}\n $link"
- declare -r update="curl 'https://api.telegram.org/bot806216116:AAHeKn0tRhGAo0VmyHmRGM68ix_cZmihbyY/getUpdates'"
- if [ "$update|jq '.ok'" == 'true' ]; then
- declare -A domain_id
- for(( x=0; x >= $(#domain_id[*]); x++ )); do
- declare -r id=$("$update" | jq '.result["$x"].message.chat.id')
- domain_id=([$domainName]=$id)
- x+=1
- done
- declare -r token="806216116:AAHeKn0tRhGAo0VmyHmRGM68ix_cZmihbyY"
- declare -r user_id=$id
- declare -i timeout="10"
- declare -r url="https://api.telegram.org/bot$token/sendMessage"
- declare -r date="$(date "+%d %b %Y %H:%M")"
- declare -r registered_domain=$new_registered_domain
- declare -r text="Detectado nuevo registro a fecha $date: $registered_domain "
- curl -s --max-time $timeout -d "chat_id=$user_id&disable_web_page_preview=1&text=$text" $url > /dev/null 2>&1
- #else
- #echo -e "\n\n${redColour}[*] Error ${endColour}"
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement