tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.09k stars 1.44k forks source link

type = 'AUTH_KEY_DROP_DUPLICATE_' #1947

Closed babakkhan375 closed 2 years ago

babakkhan375 commented 2 years ago

Hello, I have been facing this error for several days. What is the reason and what is the solution?

babakkhan375 commented 2 years ago

Please help

levlam commented 2 years ago

You copied TDLib database directory and it became unusable. You must delete it, log in again and avoid TDLib database directory copying in the future.

babakkhan375 commented 2 years ago

Nothing is not copied sir

babakkhan375 commented 2 years ago

The file script is executed only once as an argv

Example : lua5.3 script.lua 1

babakkhan375 commented 2 years ago

You copied TDLib database directory and it became unusable. You must delete it, log in again and avoid TDLib database directory copying in the future.

Please read my message

levlam commented 2 years ago

There is no way to receive this error from the server without copying TDLib's database directory. If you didn't do this manually, this was done by the hosting, you use.

babakkhan375 commented 2 years ago

So what is the solution to this problem ???

levlam commented 2 years ago

Find who and when copied TDLib's database directory and avoid that.

babakkhan375 commented 2 years ago

So what do I do to use multisession?

levlam commented 2 years ago

You must log in again if you want to use account from another place.

babakkhan375 commented 2 years ago

No I want to run multiple accounts with independent numbers on one server

levlam commented 2 years ago

Specify different database directories for them.

babakkhan375 commented 2 years ago

Well, that's exactly what I did when I got the error

levlam commented 2 years ago

No. There is only one way to get the error.

babakkhan375 commented 2 years ago

What way ????

levlam commented 2 years ago

You copied TDLib database directory.

babakkhan375 commented 2 years ago

You copied TDLib database directory.

client:send({ ["@type"] = "setTdlibParameters", parameters = { ["@type"] = "setTdlibParameters", use_message_database = true, api_id = redis:get(arg[1]..'api_id'), api_hash = redis:get(arg[1]..'api_hash'), sessions_name = arg[1], system_language_code = "en", device_model = redis:get(arg[1]..'device_model'), system_version = redis:get(arg[1]..'system_version'), application_version = redis:get(arg[1]..'application_version') or '1.0', enable_storage_optimizer = true, use_pfs = true, database_directory = './td/'..arg[1]}})

Is this a problem?

levlam commented 2 years ago

A request to TDLib can't be a problem. The problem is that you interfered with TDLib database storage by copying it.

babakkhan375 commented 2 years ago

Is there a way to solve this issue ???

levlam commented 2 years ago

To avoid the issue, you must not copy TDLib's database directory.

babakkhan375 commented 2 years ago

To avoid the issue, you must not copy TDLib's database directory.

I get this error when I use a proxy