Xposed/LSPosed module for Telegram 13.3.1 and newer.
- Premium unlock: forces the current account's premium state on, and keeps it on when Telegram refreshes the user object.
- Automatic support for new Telegram versions: the module finds the obfuscated
UserConfigclass from the APK's DEX structure, so it does not need a rebuild when Telegram changes class names.
Telegram renames UserConfig on almost every release:
| Telegram | UserConfig class |
|---|---|
| 13.4.x | b4c |
| 13.3.x | org.telegram.messenger.y10 |
| other/newer | auto-detected at runtime |
- Known mappings are tried first (fast path).
- If no mapping matches, the module scans the installed APK's
classes*.dexfor a class that has:- a static array of itself (the per-account instance cache),
- an instance field of type
TLRPC$User, - a small number of no-argument boolean methods.
- The discovered class is hooked and existing live instances are patched.
The scan runs on a background thread once per process and normally takes under a second.
com.tg.helper
./gradlew assembleRelease- Install the APK.
- Enable the module in LSPosed (scope: Telegram).
- Force-stop Telegram, then open it again.
Telegram is heavily obfuscated; further features (anti-recall, no sponsored messages) require additional deobfuscation mapping.