Fixed telegram upload

This commit is contained in:
Sayantan Santra 2022-10-11 19:28:20 -05:00
parent 6330db7192
commit f4661f3961

View file

@ -149,9 +149,11 @@ else
fi fi
# Send telegram message about the new build # Send telegram message about the new build
../telegram.sh -f ReVanced-nonroot-$timestamp.apk telegram-upload ReVanced-nonroot-$timestamp.apk ReVanced-Music-nonroot-$timestamp.apk --to "placeholder_for_channel_address" --caption ""
../telegram.sh -f ReVanced-Music-nonroot-$timestamp.apk echo "Build details:" > message.tmp
cat versions.json | tail -n+2 | head -n-1 | cut -c3- | sed "s/\"//g" | sed "s/,//g" | sed "s/com.google.android.apps.youtube.music/YouTube Music/" | sed "s/com.google.android.youtube/YouTube/" | ../telegram.sh - cat versions.json | tail -n+2 | head -n-1 | cut -c3- | sed "s/\"//g" | sed "s/,//g" | sed "s/com.google.android.apps.youtube.music/YouTube Music/" | sed "s/com.google.android.youtube/YouTube/" | sed "s/vanced-microG/Vanced microG/">> message.tmp
cat message.tmp | ../telegram.sh -
rm message.tmp
# Do some cleanup # Do some cleanup
mkdir -p archive mkdir -p archive