shamhi / HamsterKombatBot

Bot that mines coins in HamsterKombat
Apache License 2.0
445 stars 134 forks source link

Token Connect Problem #342

Closed mentalityStyle closed 1 week ago

mentalityStyle commented 1 week ago

Doesn't it just connect with the token for me? And should bot father be used? Why is there an option but it doesn't work? Or Is there a special tutorial to use bot token? emm & dosn't work USE_RANDOM_USERAGENT

2024-06-23 00:32:12 | ERROR | 92 - 1 | Unknown error during Authorization: Telegram says: [400 BOT_METHOD_INVALID] - The method can't be used by bots (caused by "messages.GetDialogs") 2024-06-23 00:32:17 | ERROR | 30 - Unknown error while getting Access Token: 422, message='Unprocessable Entity', url=URL('https://api.hamsterkombat.io/auth/auth-by-telegram-webapp') | Response text: {"type":"validation","on":"body","found":{"initDataRaw":null,"fingerprint":{"visitorId":"23324zd3cdfc2redb7c43a74n343922"}}}...

ButCheR-PRO commented 1 week ago

Problem solution: 1) Log in to this telegram account from any device; 2) Close all sessions with the Pyrogram header 3) Recreate the session inside your bot (instead of a token, use a phone number in international format) 4) Disable proxy or use SOCKS5 instead of HTTP 5) Synchronize the system time on your computer

See also:

  1. https://github.com/shamhi/HamsterKombatBot/issues/309
  2. https://github.com/shamhi/HamsterKombatBot/issues/38
  3. https://github.com/shamhi/HamsterKombatBot/issues/58
  4. https://github.com/shamhi/HamsterKombatBot/issues/86
  5. https://github.com/shamhi/HamsterKombatBot/issues/137
  6. https://github.com/shamhi/HamsterKombatBot/issues/263