Open OxFF00FF opened 1 month ago
Bearer - это ваш токен из браузерной версии игры
HEADERS = {'authorization': 'Bearer xxx'}
start_game = requests.post('https://api.hamsterkombatgame.io/clicker/start-keys-minigame', headers=HEADERS)
cipher = base64.b64encode(f"0885233888|{telegram_user_id}".encode("utf-8")).decode("utf-8")
json_data = {'cipher': cipher} end_game= requests.post('https://api.hamsterkombatgame.io/clicker/claim-daily-keys-minigame', headers=HEADERS, json=json_data)
Это уже есть в ветке main.
Bearer - это ваш токен из браузерной версии игры
HEADERS = {'authorization': 'Bearer xxx'}
start_game = requests.post('https://api.hamsterkombatgame.io/clicker/start-keys-minigame', headers=HEADERS)
cipher = base64.b64encode(f"0885233888|{telegram_user_id}".encode("utf-8")).decode("utf-8")
json_data = {'cipher': cipher} end_game= requests.post('https://api.hamsterkombatgame.io/clicker/claim-daily-keys-minigame', headers=HEADERS, json=json_data)