Skip to content
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 and closeClient #214

Merged
merged 2 commits into from
Mar 15, 2024
Merged

⏰ Timeout and closeClient #214

merged 2 commits into from
Mar 15, 2024

Conversation

HeySreelal
Copy link
Member

  • Televerse now supports adding timeout for API requests. Both Bot class and RawAPI class accepts a new field timeout of type Duration for achieving this.

    Note that, the timeout duration will NOT affect the getUpdates requests.

  • Renamed the HttpClient class to private class.

  • Added RawAPI.closeClient method to close the Dio client.

@HeySreelal HeySreelal merged commit 7565e9a into main Mar 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant