tdlib / td

Cross-platform library for building Telegram clients

Home Page:https://core.telegram.org/tdlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How many instances can be opened

jingming66 opened this issue · comments

I use tdlib in the golang, when I run two programs, they can both accept messages,but when I increased to three,the third program is unable to read messages.

so I want to know the maximum number of programs that can be opened

TDLib has no explicit limits on the number of simultaneously used instances.

TDLib has no explicit limits on the number of simultaneously used instances.TDLib 对同时使用的实例数量没有明确的限制。

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: "***", APIHash: "***", SystemLanguageCode: "en", DeviceModel: "Server2", SystemVersion: "", ApplicationVersion: "2.0", EnableStorageOptimizer: true, IgnoreFileNames: false, })

You must provide a unique database directory for each instance.

You must provide a unique database directory for each instance.

thank you so much