Skip to content

TooMuchRequestsException not properly created #1008

@gecko10000

Description

@gecko10000

When Telegram returns the "Too Many Requests" exception when uploading many files, it returns the following data: {"ok":false,"error_code":400,"description":"Bad Request: too Many Requests: retry after 8"}. The code to create a TooMuchRequestsException object checks if the description.contains("Too Many Requests"), which is not true due to the capitalization of "too". Therefore, I propose using CharSequence#contains with ignoreCase = true, or at least correcting the code to the correct capitalization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions