This project gets up-to-date variables for Telegram custom themes
Android app source code.
The FindVariables
application performs the following functions:
- Downloads ThemeColors.java class from Telegram GitHub repository
- Locates a specific method in the file
- Extracts values in quotation marks from the method
- Writes the extracted values to a separate file
- Ensure you have the JDK and a Java IDE installed to run the Java code.
- Download the source code from this repository.
- Run the
FindVariables
application.
- downloadFile: Downloads a Java file from GitHub using the provided URL and saves it in the specified directory.
- readInFile: Searches for a method in the file based on the provided method name and returns lines from the method.
- parseData: Extracts lines in quotation marks from the list of strings.
- writeToFile: Writes the values to a file in the
out.txt
format.
Actual variables will be in the file out.txt
archive.zip/
├─ 📁TelegramThemeVariables/
│ ├─ 📁parsed/
│ │ ├─ 📁android/
│ │ │ ├─ ThemeColors.java
│ │ │ ├─ out.txt
│ ├─ 📁src/
│ │ ├─ .../
- Java 17 or higher
- Internet connectivity to download file from GitHub
If you encounter any issues or have questions about the project, please contact me.
This project is distributed under the MIT License. See the LICENSE file for more detailed information.