-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TimeOut Cant Set int.MaxValue #8
Comments
When you talk about the timeout value, I imagine you mean the Timeout property made available by the BotConfig class. I made this property an Even the Personally, I think the 90 seconds default timeout value is reasonable. You can even set it up as 86400 seconds or anything equivalent to 24.85 days. That should be more than enough for any need you may have. Why would you want to setup an I would like to know some good use case for this that you may have for which even 24 days are not enough for a timeout. |
Hi, thank you very much for your answers, in fact, I will upload some large files, but the speed of uploading to server using
I'm glad to hear this detail,I think this question is actually irrelevant, maybe we can set it to |
Unless you are using the local Telegram Bot Server, the upload limit for a bot using the HTTP Bot API is 50 MB and the download limit for the same is 20 MB. If you are using the local Telegram Bot Server, the upload limit becomes 2000 MB and the download limit does not exist (and I guess that'd be practically 2000 MB only). I will caution against the use of Infinite timeout for various reasons. Even 2000 MB limit should sit well with timeout set as You will have to re-implement the I would like to keep the Timeout property as an int to allow for its setup through |
Of course
|
Ah, I did not know that Here is an article which shows how to do that: TimeSpan configuration values in .NET Core by Mark Seeman Since this meets my requirement of allowing timeouts to be configurable from Since this way one can also setup the timeout to an I also made this available as a NuGet package. Thank you for your suggestion! |
Consider changing int to TimeSpan?
The text was updated successfully, but these errors were encountered: