Skip to content

Zelegram/TeleMod

 
 

Repository files navigation

Dev Tools for Telegram Web Apps

TeleMod is a modified Telegram Android app that brings Developer Tools functionality, similar to desktop browsers, to your Android device. With TeleMod, you can run JavaScript via custom userscripts—just like Tampermonkey and Violentmonkey—to automate, customize, and extend Telegram’s functionality.

🚀 Features

  • Developer Tools: Familiar developer tools experience, just like in desktop browsers.
  • UserScript Support: Install and manage custom scripts to personalize and enhance your Telegram experience.
  • Script Store: Access a library of ready-to-use scripts for tasks like automating Crypto Airdrop games.
  • Open Source: Open to contributions from the community to help evolve and improve the project.

📲 Getting Started

Installation

Download the latest TeleMod APK from the releases page. Three build types are available:

  • Standalone: Functions like the Telegram version from its official website. The package name is org.telegram.messenger.web. (Recommended)
  • Release: Similar to the Play Store version, with the package name org.telegram.messenger.
  • Huawei: Optimized for Huawei devices.

Note: To avoid conflicts, uninstall any existing Telegram app before installing TeleMod, as only one Telegram instance can run at a time. For example, if you install the Release version, you must uninstall the Play Store version.

Developer Tools ⚙️

  1. Open any Telegram Web App, Mini App, or Crypto Game.
  2. Tap the Terminal icon in the top bar to launch Developer Tools.
  3. Access familiar tools like Console, Elements, Network, Resources, Info, and Snippets—just as you would on a desktop browser.

Script Manager 🧩

Tap the Extension icon to open the Script Manager, where you can write, manage, and run userscripts. Scripts can be injected at various stages of webpage loading, such as load-start, document-start, document-body, document-end, document-idle, context-menu, and load-done.

Injection Timing Options
// @run-at load-start

The script is injected as the WebView starts loading a URL, equivalent to onPageStarted.

// @run-at document-start

The script is injected as early as possible.

// @run-at document-body

The script is injected once the <body> element is present.

// @run-at document-end

The script is injected after the DOMContentLoaded event fires.

// @run-at document-idle

The script is injected after the DOMContentLoaded event.

// @run-at context-menu

The script is injected when the context menu is opened.

// @run-at load-done

The script is injected when the WebView finishes loading, similar to onPageFinished.

Script Store 🤖

Access pre-built scripts in TeleMod Scripts 🤖. Tap the Star icon on the Home page to browse the Script Store.

🛠️ Contributing

We welcome developers interested in improving TeleMod! Fork the repository, make your changes, and create a pull request (PR).

Our goal is to build a specialized Telegram app for Crypto airdrop hunters and to aid developers in testing and debugging their Telegram Web Apps. We strictly avoid misuse or altering of Telegram’s core functionality, focusing instead on enhancing Telegram Web Apps via WebView. Contributions in line with these principles are appreciated.

Prerequisites

  • You will require Android Studio 3.4, Android NDK rev. 20 and Android SDK 8.1
  • Basic knowledge of Android development, Java, and Kotlin

The official Telegram source code is primarily in Java, but all modifications in TeleMod are implemented in Kotlin. These modifications are located in the org/telegram/mod directory within the TMessagesProj module.

About

Telegram for Android source

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 46.8%
  • C++ 29.1%
  • C 19.2%
  • Assembly 1.6%
  • Perl 1.4%
  • Go 1.2%
  • Other 0.7%