File download limitations info
Hello,
I've executed by mistake a unit test on a Java wrapper version of tdlib that triggered too many downloads, which leaded to my bot being limited by the server, which is understandable.
As a consequence, I cannot download any file anymore (synchronously or asynchronously), I just get an Update about the file getting downloaded, then nothing. Problem is, I have no info about when I will be able to access the method back in the library. I tried reloading my account data or creating a new one but with no success.
I there any way of getting the info from the server to when download starts to be limited, and when this limitations stops ?
On user info for example there is a 429 message error telling you to stop asking the server for a certain amount of time which is super nice, but not on file downloads.
Is there any proper way to do this ? Not asking for the limitation to be known precisely by the user, but that would be great to have some info regarding the fact that a bot is limited and for how much time it will be the case so a bot would stop asking telegram servers over and over for exemple.
I cannot download any file anymore
This isn't possible. There are no such limitations. You need to check TDLib logs with verbosity level 2 for the exact error details.