boredazfcuk / docker-icloudpd

An Alpine Linux container for the iCloud Photos Downloader command line utility
1.84k stars 167 forks source link

telegram_http set true but some api not changed #637

Closed pkuGeo closed 2 months ago

pkuGeo commented 2 months ago

sync_icloud.sh line 399:

 if [ "${telegram_server}" ] ; then
           LogDebug "Checking ${telegram_server} for updates"
           bot_check="$(curl --silent -X POST "https://${telegram_server}/bot${telegram_token}/getUpdates" | jq -r
else
           LogDebug "Checking api.telegram.org for updates"
           bot_check="$(curl --silent -X POST "https://api.telegram.org/bot${telegram_token}/getUpdates" | jq -r .
fi
boredazfcuk commented 2 months ago

sync_icloud.sh line 399:

 if [ "${telegram_server}" ] ; then
           LogDebug "Checking ${telegram_server} for updates"
           bot_check="$(curl --silent -X POST "https://${telegram_server}/bot${telegram_token}/getUpdates" | jq -r
else
           LogDebug "Checking api.telegram.org for updates"
           bot_check="$(curl --silent -X POST "https://api.telegram.org/bot${telegram_token}/getUpdates" | jq -r .
fi

I've updated the code to account for this now. I found other instances in the codebase too. Thanks for pointing this out.