CallbackContext type.
Creates a new ConversationHandler instance.
CallbackContext type.
Configuration options for conversation states and handlers.
Readonlyallow_Whether to allow re-entering via entry_points while active.
ProtectedcallbackThe underlying callback function to invoke on match.
ReadonlyconversationsIn-memory storage for conversations: key -> state
Readonlyentry_Handlers that initiate this conversation.
ReadonlyfallbacksFallback handlers when state handlers do not match or when cancelling.
Optional Readonlymap_Parent state transition mappings for nested conversation handlers.
Optional ReadonlynameOptional name identifying this conversation in persistence.
Readonlyper_Whether conversation is tracked per chat.
Readonlyper_Whether conversation is tracked per message.
Readonlyper_Whether conversation is tracked per user.
ReadonlypersistentWhether state should be saved to persistence.
ReadonlystatesHandlers indexed by state identifier.
Static ReadonlyENDSpecial state indicating that the conversation has ended.
Static ReadonlyTIMEOUTSpecial state indicating that the conversation timed out.
Checks whether the update matches an entry point, current state handler, or fallback.
Incoming Telegram update.
True if a handler matches.
Dispatches the update to the matched handler and updates conversation state.
The next state (or ConversationHandler.END/ConversationHandler.TIMEOUT) returned by the matched handler callback.
Manages multi-step conversational flows and state transitions.
Example