Nagram/TMessagesProj/appcenter-post-build.sh
2020-02-01 20:43:12 +08:00

4 lines
232 B
Bash

if [ "$AGENT_JOBSTATUS" == "Succeeded" ]; then
export name=$(find $APPCENTER_OUTPUT_DIRECTORY -name '*.apk')
curl https://api.telegram.org/bot${BOT_TOKEN}/sendDocument -X POST -F chat_id="$CHANNEL_ID" -F document="@$name"
fi