danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.83k stars 654 forks source link

AUTH_KEY_DUPLICATED #1464

Closed 3urega closed 8 months ago

3urega commented 8 months ago

Hello, first of all, I would like to express my gratitude for the fabulous software. I've been using it without any issues for two years, but it stopped working, and I had to redo the login. I've been trying everything for three weeks without success.

My question is: I initiate the login process as a user on a locally hosted app that I have already registered. I complete the login process, and the files are generated correctly. I upload the files to my server and test everything; the messages are sent successfully. However, when I try to send another message, I encounter an ERROR: AUTH_KEY_DUPLICATED.

What should I do? Is it not possible to upload a login created from another computer to a remote server? I don't understand what is happening.

danog commented 8 months ago

Precisely, copying session between servers is not supported by Telegram, mainly for security reasons (to prevent session hijacking). You should relogin directly on your server.