diff --git a/README.md b/README.md index f396a3b..c01542e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Just run `./build_revanced (force/clean/experimental)`. Migh ## Notes - The script will download the **automatically selected compatible version** (using compatibility of patches as listed [here](https://github.com/revanced/revanced-patches#list-of-available-patches)) of Youtube on APKMirror, **NOT** latest official version on Google Play. - Under **NO CIRCUMSTANCES** any APKs will be uploaded to this repository to avoid DMCA. -- The script assumes that the working directory has the `telegram.sh` script along with a working config file, and `telegram-upload` installed and working. For their config, look at the links provided on top. +- The script assumes that the working directory has the `telegram.sh` script along with a working config file, and `telegram-upload` installed and working with the channel link saved in a file called `channel_address`. For their config, look at the links provided on top. - In the current configuration, the script only builds YouTube ReVanced and YouTube Music ReVanced (both nonroot), but it's easy to add support for any other ReVanced app. The code for root builds is included but commented out. ## Customize your build diff --git a/build_revanced.sh b/build_revanced.sh index 6359c88..aa6efdf 100755 --- a/build_revanced.sh +++ b/build_revanced.sh @@ -172,7 +172,8 @@ mv revanced-ytm-nonroot.apk YouTube_Music_ReVanced_nonroot_$timestamp.apk echo "Sending messages to telegram" | tee -a build.log # telegram-upload uses personal account, hence bypassing 50 MB max upload limit of bots -/home/sintan/.local/bin/telegram-upload YouTube_ReVanced_nonroot_$timestamp.apk YouTube_Music_ReVanced_nonroot_$timestamp.apk --to "placeholder_for_channel_address" --caption "" +channel_address=$(cat channel_address | sed -z '$ s/\n$//') +/home/sintan/.local/bin/telegram-upload YouTube_ReVanced_nonroot_$timestamp.apk YouTube_Music_ReVanced_nonroot_$timestamp.apk --to "$channel_address" --caption "" # telegram.sh uses bot account, but it supports formatted messages msg=$(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/" \