-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
⚙️ examplesaffected functionality: examplesaffected functionality: examples
Description
Issue I am facing
Tried to understand the example of the nested conversation handler example https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/nestedconversationbot.py
At the bottom, lines 354 - 357, there is this code snippet:
# Because the states of the third level conversation map to the ones of the
# second level conversation, we need to be a bit hacky about that:
conv_handler.states[SELECTING_LEVEL] = conv_handler.states[SELECTING_ACTION]
conv_handler.states[STOPPING] = conv_handler.entry_points
- What does the conversation state assignment do?
- Why is it needed?
- Why is it 'hacky'?
I asked the same question in the telegram group, but my post got lost amongst messages of 5000 channel members.
Metadata
Metadata
Assignees
Labels
⚙️ examplesaffected functionality: examplesaffected functionality: examples