Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
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`

  New 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.