Telegram X Music Folder.
Script for Action Trigger.
- It transfers the temporary directory ".../music" of the application, with all its contents, to the "Device/music/music" and creates a symbolic link to it,
- Deletes the ".nomedia" file,
These actions will allow the native music player to automatically pick up all the tracks (there is no need to save each track separately, i.e. the track/album can simply be cached and it will be picked up by the native player).
After each restart of Telegram X, the ".nomedia" file is automatically recreated. In this case, the script monitors the existence of the directory, and if it already exists, it simply deletes the ".nomedia" file, without re-creating the directory and link. One script - two actions.
Script installation.
Action Trigger - Library - Three Points - Import.
Action Trigger - Library - Telegram X Music Folder - Settings - Home Screen Shortcut - Add (shortcut to the desktop).
Keep in mind that clearing temporary application files will also result in clearing this directory, as they are connected. Therefore, if necessary, make a backup copy of the directory with your tracks, in order to avoid their automatic deletion.
The script is incompatible with other scripts for transferring temporary files of Telegram X.