Skip to content

[BUG] ConversationHandler.TIMEOUT handlers get called with deprecated callback signature #1652

@tobiaswicker

Description

@tobiaswicker

Steps to reproduce

  1. Create a ConversationHandler with a ConversationHandler.TIMEOUT state.

  2. Add any handler to that state with a callback that has (update: Update, context: CallbackContext) as signature.

  3. Watch it fail as (bot, update) are passed along to that callback.

Expected behaviour

When use_context=True is set on the updater, it should call the callback with (update: Update, context: CallbackContext).

Actual behaviour

The callback is called with (bot, update) instead.

Configuration

Operating System:
Any

Version of Python, python-telegram-bot & dependencies:
$ python -m telegram
python-telegram-bot 12.0.0
certifi 2019.06.16
future 0.17.1
Python 3.6.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions