Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# SimpleUpdateProcessor

class telegram.ext.SimpleUpdateProcessor(max_concurrent_updates)

  Bases: `telegram.ext.BaseUpdateProcessor`

  Instance of `telegram.ext.BaseUpdateProcessor` that immediately awaits the coroutine, i.e. does not apply any additional processing. This is used by default when `telegram.ext.ApplicationBuilder.concurrent_updates` is `int`.

  Use In

  `telegram.ext.ApplicationBuilder.concurrent_updates()`

  Available In

  `telegram.ext.Application.update_processor`

  Added in version 20.4.

  async do_process_update(update, coroutine)

    Immediately awaits the coroutine, i.e. does not apply any additional processing.

    Parameters:

      - update (`object`) – The update to be processed.

      - coroutine (Awaitable) – The coroutine that will be awaited to process the update.

  async initialize()

    Does nothing.

  async shutdown()

    Does nothing.