Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support allow_paid_broadcast in AIORateLimiter #4578

@Bibo-Joshi

Description

@Bibo-Joshi

What kind of feature are you missing? Where do you notice a shortcoming of PTB?

AIORateLimiter is currently not considereding allow_paid_broadcast which means that this parameter has no effect when using the limiter.

Describe the solution you'd like

Extract the value for allow_paid_broadcast in process_update. In case it's True, the update should be sent to a standalone aiolimiter instance that allows up to 1000 messages per second.

Describe alternatives you've considered

No response

Additional context

#4573 adds a warning about missing support for now.
https://github.com/python-telegram-bot/python-telegram-bot/wiki/Avoiding-flood-limits also contains a warning, that should be removed if this is implemented

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions