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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy