ilyhalight / notpx

full-featured bot for NotPixel
6 stars 2 forks source link

auth is not lifetime #2

Closed Reykira007 closed 1 month ago

Reykira007 commented 1 month ago

image

ilyhalight commented 1 month ago

You need set auth string without InitData, only user=..., after exiting beta, auth lifetime is 30 minutes

ryandhikacc commented 1 month ago

You need set auth string without InitData, only user=..., after exiting beta, auth lifetime is 30 minutes

Is there any workaround to automatically renew auth everytime it died?

Reykira007 commented 1 month ago

perhaps using the token refresh method!

ilyhalight commented 1 month ago

perhaps using the token refresh method!

not pixel doesn't have such a method, you need to restart the webapp to get a new token. perhaps this can be automated using a user bot

RedWilly commented 1 month ago

We can use telegram API id and API hash...

Also I also think we need to work on the user agent too.

Reykira007 commented 1 month ago

currently telegram is very sensitive. using API id and API hash will make telegram account blocked

RedWilly commented 1 month ago

currently telegram is very sensitive. using API id and API hash will make telegram account blocked

Not if you used that right. Beside running this kinda of bot shouldn't be using your main telegram account - need to use a second account ( that been said you shouldn't login /open the TG app when the bot is running - this is mainly to avoid banned's)

ilyhalight commented 1 month ago

Bot migrated to telegram sessions, this issue is no longer relevant