You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This week, I installed the libtdjson library and am trying to understand its principles of operation. As far as I know, when working with the Bot API, there are limits on requests. In this regard, I would like to ask the following questions.
Are there any request limits when working with libtdjson (for example, limits on the frequency of calling the getChatHistory function)?
Are these limits automatically controlled by the libtdjson library? Does it simply return an error if the limits are exceeded, or does it queue the request and send it when possible?
Am I correct in understanding that the library automatically handles all tasks that may be required for its operation? The user of the library only needs to solve two tasks: update the graphical interface when receiving Update-type messages, and send information about user actions (sending messages, etc.) to the library. Does the rest get handled automatically by libtdjson?
The text was updated successfully, but these errors were encountered:
TDLib has no limits. All limits are server-side and can be triggered only if the request can't be answered using local data. If server-side limits are exceeded TDLib will do a reasonable amount of retries before returning an error 429 to the app.
Yes, this is correct for most updates and methods. Also, apps may need to get some data from TDLib to display, for example, messages or full user profile info, but most required data are received through updates.
This week, I installed the libtdjson library and am trying to understand its principles of operation. As far as I know, when working with the Bot API, there are limits on requests. In this regard, I would like to ask the following questions.
Are these limits automatically controlled by the libtdjson library? Does it simply return an error if the limits are exceeded, or does it queue the request and send it when possible?
The text was updated successfully, but these errors were encountered: