1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-04 07:52:16 +01:00
NekoX/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