SpEcHiDe / UploadGram

https://pypi.org/project/uploadgram/
GNU Affero General Public License v3.0
102 stars 25 forks source link

figure out a way and remove HCed 💩 #27

Open PunchEnergyFTW opened 1 year ago

PunchEnergyFTW commented 1 year ago

Hi! I suppose this error occurs because of the latest changes to Telegrams API for third-party apps.

pyrogram.errors.exceptions.unauthorized_401.AuthKeyUnregistered: Telegram says: [401 AUTH_KEY_UNREGISTERED] - The key is not registered in the system. Delete your session file and login again (caused by "updates.GetState")

I removed the old config.env and reconfigured the bot, but the error Message still appears.

How can i fix this?

Thanks in advance!

SpEcHiDe commented 1 year ago

it is not related

SpEcHiDe commented 1 year ago

work-around for now is rm "~/.config/uploadgram/*.session" before running uploadgram command

gnsfujiwara commented 1 year ago

Hello, can this help in any way?:

https://stackoverflow.com/questions/68410128/telegram-getting-auth-key-unregistered-and-api-id-invalid-errors

KavyaKinjalk commented 3 months ago

The cause of this issue, as far as I understand is the old pyrogram version. Once pyrogram version is updated in the dependency, it should work properly.