Skip to content

refactor: externalize Telegram API credentials to BuildConfig#2056

Merged
theovilardo merged 1 commit into
masterfrom
fix/tg-credentials
May 19, 2026
Merged

refactor: externalize Telegram API credentials to BuildConfig#2056
theovilardo merged 1 commit into
masterfrom
fix/tg-credentials

Conversation

@theovilardo

Copy link
Copy Markdown
Collaborator

Removes hardcoded Telegram API credentials from TelegramClientManager and moves them to BuildConfig fields populated from local.properties. This change also updates the device model and version metadata sent to the Telegram API.

  • Added TELEGRAM_API_ID and TELEGRAM_API_HASH fields to build.gradle.kts.
  • Updated TelegramClientManager to use BuildConfig for API identity and application version.
  • Changed the Telegram client deviceModel from the physical device model to "PixelPlayer Instance".
  • Implemented local.properties parsing in the app-level Gradle script to manage sensitive credentials.

Removes hardcoded Telegram API credentials from `TelegramClientManager` and moves them to `BuildConfig` fields populated from `local.properties`. This change also updates the device model and version metadata sent to the Telegram API.

- Added `TELEGRAM_API_ID` and `TELEGRAM_API_HASH` fields to `build.gradle.kts`.
- Updated `TelegramClientManager` to use `BuildConfig` for API identity and application version.
- Changed the Telegram client `deviceModel` from the physical device model to "PixelPlayer Instance".
- Implemented `local.properties` parsing in the app-level Gradle script to manage sensitive credentials.
@theovilardo theovilardo merged commit 8a3d566 into master May 19, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant