X Tutup
Skip to content

ValueError: If 'per_message=False', 'CallbackQueryHandler' doesn't work #556

@mvasilenko

Description

@mvasilenko

Hello,

after upgrading python-telegram-bot library, got such error

ValueError: If 'per_message=False', 'CallbackQueryHandler' doesn't work

in following code

    # Add conversation handler for weather
    conv_handler = ConversationHandler(
        entry_points=[CommandHandler('weather', weather)],
        states={
            LOCATION: [MessageHandler(Filters.location, location),
                       CallbackQueryHandler(button),
                       CommandHandler('skip', skip_location)]
        },
        fallbacks=[CommandHandler('cancel', cancel)],
    )

Configuration

Operating System:
Linux

Version of Python, python-telegram-bot & dependencies:

python-telegram-bot 5.3.0 urllib3 1.13.1 certifi 2017.01.23 future 0.16.0 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609]

I'm new to python-telegram-bot, and looking for advice, how to fix it.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup