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
200 stars 47 forks source link

cant login with QRcode , i try use login via otp , success login for 1 account telegram , but when i try to make login for second accound , otp cant run. #12

Closed sundulgan closed 6 months ago

sundulgan commented 6 months ago

image

sundulgan commented 6 months ago

image

error while using QR to login tele

Wellynounet commented 6 months ago

Hello,

Are you to to date ? if not do this in in the folder HotWalletBot git pull

Can you rerun ./install.sh and let me know if there are any errors?

How did you manage the other accounts?

Can you tell me more about the versions you're using? Your OS, the version of your ChromeDriver, and your Chrome or Chromium browser?

Run the following commands: lsb_release -a chromedriver --version chromium --version

thebrumby commented 6 months ago

Hi,

Thank you @Wellynounet for showing the first steps to debug the issue further.

@sundulgan - sorry to hear you're having problems. The second screenshot tells us that the script could see no QR code to interact with, and in the first screenshot did not find the element identified by //div[@class='input-field-input']//span[@class='i18n']. However, I just checked on Telegram Web and these are still the correct XPaths.

I noticed you already have the debug setting on - so if you navigate to the folder "screenshots" and in your example "BNB-Cold:cold_3166", or any of the wallet names you used where it failed to connect with telegram? You should see some jpegs like this:

Screenshot name: Step 01 - Initial QR code.png

Step 01 - Initial QR code

Screenshot name: 02-switch to log in by phone number.png

02-switch to log in by phone number

Screenshot name: 03-update users country.png

03-update users country

Please share the JPG screen captures so we can help further.

thebrumby commented 6 months ago

One final thought, and at the risk of making assumptions, there is a possibility that you are not seeing the login screen because you previously logged in correctly, but that it didn't finalize the setup somehow.

If you see a screen like this:

03-app-opened

then please check your folder selenium/BNB-Cold:cold_3166 it should have a file called cookies.json in that folder. If it's missing (because the installer crashed before the end maybe. You can just create an empty file named cookies.json and when you run it in PM2 or the command-line, it will recognize that it's an existing session and start to claim.

sundulgan commented 6 months ago

image

Why is it that after pressing the next button the storage_offline button appears? i think this is problem in otp

image

thebrumby commented 6 months ago

Hi,

So the issue is your telegram account is not working - after entering the Country Code and Phone number, you're getting blocked from making a new login by the "Storage Offline" message.

You'll have to resolve to be able to log in via web.telegram.org before the script will work.

When I was testing I hit this message quite a lot (repeatedly login in when it was limited to 20 tries per day. Once this is resolved we can try again :)

thebrumby commented 6 months ago

Once the issue is cleared and you are able to log in again, after logging in, you can save the Telegram session, so you'll only need to authenticate the once :)

sundulgan commented 6 months ago

oke thank u mate , btw u have code to automate airdrop tap tap or click click system like notcoin? which can directly hit the api endpoint?

thebrumby commented 6 months ago

Hi Sundulgan,

I don't have that kind of airdrop tap system as yet, but thanks for the suggestion. If I'm honest, it's not really on my "to-do" list with this project. I focus on simulating human-like interaction with the games via a web browser - I found this approach, while not perfect, generally avoids detection by the various "anti-bot" detection used by the developers. For that reason, my next plan is to add a few more games, and update the videos and documentation in the next two weeks :)

thebrumby commented 6 months ago

Hi Sundulgan,

Telegram changed some of their log in XPATHs, which I have corrected and uploaded - but I found an interesting fact!

Reusing a previous wallet name for a Telegram Login gave me a "STORAGE_OFFLINE" error, even though I can log in with Telegram Web. However, if I start a "virgin" session, it works just fine. I added extra checks in the script to output this to the console. But potentially, if you run the commands below, you might just find it works!:

rm -rf selenium/BNB-Cold:cold_3166
./launch.sh cold BNB-Cold:cold_3166