Skip to content

Feature Request: Have controlled update propagation #410

@sabbyX

Description

@sabbyX

Is your feature request related to a problem? Please describe.
Updates are propagated to handlers in a uncontrolled way! Sometimes you want to have specific handler to receive updates first. This becomes very annoying when you have multiple handlers listening to all messages or similar cases

Describe the solution you'd like
It would be better to have a dedicate parameter for declaring level or something similar for handler. Similar implementation has been done in pyrogram

Additional context
Taking case in 3.x, better to have something like Router(level=1), if no levels were given then handler is considered to be least priority / level

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions