This script uploads a ROM ZIP, JSON file, and any available boot/recovery images to GoFile, then sends the generated download links to a Telegram chat.
Make sure the following files are available in the current directory:
-
ROM ZIP file
-
JSON file
-
Optional:
boot.imginit_boot.imgvendor_boot.imgrecovery.img
bash <(curl -fsSL https://raw.githubusercontent.com/K4LCHAKRA/telegram_notification_gofile_upload/refs/heads/main/gofile_tg_upload.sh)The script will ask for:
- ZIP file name
- JSON file name
- Telegram Bot Token
- Telegram Chat ID
Example:
Enter ZIP file name: rom.zip
Enter JSON file name: codename.json
Enter Telegram Bot Token: 123456789:ABCDEFxxxxxxxxxxxxxxxxxxxxxxxx
Enter Telegram Chat ID: -1001234567890
bashcurlwget- Internet connection
- Telegram Bot Token
- Telegram Chat ID
- json file is optional
- Image files are optional and will be uploaded only if found.
- The script must be executed from the directory containing the files to upload.
- Invalid file names or missing files will cause the script to exit with an error.