tdlib / td

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

Authorize error: timeout #2894

Closed jingming66 closed 5 months ago

jingming66 commented 5 months ago

Can multiple programs use the same database?I am using the same database and it has been consistently timed out(Authorize error: timeout),this is my code: client := client.NewClient(client.Config{ DatabaseDirectory: "./tdlib-db", UseFileDatabase: false, UseChatInfoDatabase: false, UseMessageDatabase: true, UseSecretChats: true, APIID: "88", APIHash: "22", SystemLanguageCode: "en", DeviceModel: "Server2", SystemVersion: "", ApplicationVersion: "2.0", EnableStorageOptimizer: true, IgnoreFileNames: false, })

levlam commented 5 months ago

You must provide a unique database directory for each instance.

jingming66 commented 5 months ago

good