akasakaid / tomarketod

Auto claim for Tomarket Telegram Bot
103 stars 28 forks source link

tokens.txt or tokens.json? #2

Open ngocbae98 opened 2 months ago

ngocbae98 commented 2 months ago

tokens.txt or tokens.json? or data.txt??

akasakaid commented 2 months ago

data.txt. See readme how to get data.

reysilvano78 commented 2 months ago

data.txt. See readme how to get data.

Traceback (most recent call last): File "/storage/emulated/0/bot/tomarketod/bot.py", line 323, in app.main() File "/storage/emulated/0/bot/tomarketod/bot.py", line 299, in main token = self.login(data) ^^^^^^^^^^^^^^^^ File "/storage/emulated/0/bot/tomarketod/bot.py", line 63, in login token = res.json()["data"]["access_token"] ~~~~~~^^^^^^^^^^^^^^^^ KeyError: 'access_token'

akasakaid commented 2 months ago

data.txt. See readme how to get data.

Traceback (most recent call last): File "/storage/emulated/0/bot/tomarketod/bot.py", line 323, in app.main() File "/storage/emulated/0/bot/tomarketod/bot.py", line 299, in main token = self.login(data) ^^^^^^^^^^^^^^^^ File "/storage/emulated/0/bot/tomarketod/bot.py", line 63, in login token = res.json()["data"]["access_token"] ~~~~~~^^^^^^^^^^^^^^^^ KeyError: 'access_token'

Your data is wrong

alparo commented 2 months ago

The user data should be fresh. Try to get it again and store to the data.txt.