Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Fixed for new API.
Browse files Browse the repository at this point in the history
Closes:
#175
  • Loading branch information
masterking32 committed Aug 15, 2024
1 parent c516ac2 commit 9b873a1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,8 +1157,8 @@ def Start(self):
if (
AccountBasicData is None
or AccountBasicData is False
or "telegramUser" not in AccountBasicData
or "id" not in AccountBasicData["telegramUser"]
or "accountInfo" not in AccountBasicData
or "id" not in AccountBasicData["accountInfo"]
):
log.error(f"[{self.account_name}] Unable to get account basic data.")
self.SendTelegramLog(
Expand All @@ -1168,10 +1168,10 @@ def Start(self):
return

log.info(
f"\033[1;35m[{self.account_name}] Account ID: {AccountBasicData['telegramUser']['id']}, Account detected as bot: {AccountBasicData['telegramUser']['isBot']}\033[0m"
f"\033[1;35m[{self.account_name}] Account ID: {AccountBasicData['accountInfo']['id']}, Account Name: {AccountBasicData['accountInfo']['name']}\033[0m"
)
self.SendTelegramLog(
f"[{self.account_name}] Account ID: {AccountBasicData['telegramUser']['id']}, Account detected as bot: {AccountBasicData['telegramUser']['isBot']}",
f"[{self.account_name}] Account ID: {AccountBasicData['accountInfo']['id']}",
"account_info",
)

Expand Down Expand Up @@ -1263,9 +1263,7 @@ def Start(self):
if self.config["auto_finish_mini_game"]:
log.info(f"[{self.account_name}] Attempting to finish mini game...")
time.sleep(1)
self.StartMiniGame(
AccountConfigData, AccountBasicData["telegramUser"]["id"]
)
self.StartMiniGame(AccountConfigData, AccountBasicData["accountInfo"]["id"])

# Start tapping
if self.config["auto_tap"]:
Expand Down

0 comments on commit 9b873a1

Please sign in to comment.