thebrumby / HotWalletClaimer

Looking to optimize HOT earnings on Near Protocol, Wave on SUI, Vertus on TON, or 19 other supported Telegram mini-apps? This Python script monitors and claims rewards for your favorite Telegram crypto-based games. By simulating mouse movements and keystrokes in a real browser session, it avoids the need for direct API injection or token scraping.
MIT License
191 stars 47 forks source link

Developing Documentation #169

Closed Jelingam closed 2 months ago

Jelingam commented 2 months ago

hey phil i'm currently develop two game (Cedex , WigWam) and worked perfectly fine. i'm look into other games code like Seed and copy the idea to develop these games.

as you know there is been many ways you can open games that won't open in web.telegram.org. for example hamster kombat won't open in desktop browser, but if you use Resource Override technique like this you can open and use in browser

if there is any kind of material that we can use and develop other games, it would be soo helpful because these code configure to run in pm2, don't open any browser that we can see visual procedure to debugging.

thebrumby commented 2 months ago

Hi,

What happens if you force it to use the built-in proxy?

    def initialize_settings(self):
        super().initialize_settings()
        self.forceLocalProxy = True
thebrumby commented 2 months ago

I map the game paths in Desktop Chrome by the way. If you make a mistake in the script version, it will dump the in-browser HTML and the console logs into the screenshots directory, for each fails step. - provided you enabled debugging it the settings.

Jelingam commented 2 months ago

Hi,

What happens if you force it to use the built-in proxy?

    def initialize_settings(self):
        super().initialize_settings()
        self.forceLocalProxy = True

it's not working with proxy enabled

image

thebrumby commented 2 months ago

Hi,

Most of the games featured here work with Telegram Web. Due to a high number of requests for games where Telegram Web was blocked, we added the proxy to attempt to rewrite the Telegram platform during the live traffic. This method is the same thing you mentioned for Hamster Kombat.

Additionally JBR used this in one of his game commits:

    def launch_iframe(self):
        super().launch_iframe()

        # Open tab in main window
        self.driver.switch_to.default_content()

        iframe = self.driver.find_element(By.TAG_NAME, "iframe")
        iframe_url = iframe.get_attribute("src")
        iframe_url = iframe_url.replace("tgWebAppPlatform=web", "tgWebAppPlatform=android")

        self.driver.execute_script("location.href = '" + iframe_url + "'")

Ultimately this project was intended to provide a framework for using a genuine browser session with simulated mouse movements and clicks to autoclaim these crypto games, but in the most human-like way possible. When game developers use a significant number of methods to block TG Web access, it's not something that I'm actively looking to overcome.