Skip to main content

Module update_processor

Module update_processor 

Source
Expand description

Base update processor abstraction. Semaphore-based concurrent update processing.

Ported from python-telegram-bot/src/telegram/ext/_baseupdateprocessor.py.

Provides [BaseUpdateProcessor] (the async trait) and [SimpleUpdateProcessor] (the default implementation that immediately awaits each coroutine under a semaphore).

Structs§

BaseUpdateProcessor
Wraps any UpdateProcessor with a semaphore to bound concurrency.
SimpleUpdateProcessor
Default UpdateProcessor that immediately awaits the coroutine.

Enums§

UpdateProcessorError
Errors that may occur during update processing.

Traits§

UpdateProcessor
An abstract base for update processors.

Functions§

simple_processor
Convenience constructor that builds a BaseUpdateProcessor wrapping a SimpleUpdateProcessor with the given concurrency limit.