I want to use a ConversationHandler in my bot. At least, it would need three parameters:
class telegram.ext.ConversationHandler(entry_points, states, fallbacks)
AFAIK, entry points are triggers for the conversation handler, then each state may execute its own handlers, and based on fallbacks definition, if all handlers from a state return false, then fallback is triggered.
Ok, therefore, handlers return something. But a handler is an object, an instance of a class.
Based on this example, looking for example to the new_alarm_handler.
So my doubts
How is it, that handlers return a value? (They appear to return their callback function result).
Where is the current state of the conversation? It appears to not be accessible, but to be the last result of the last handler executed. Is it it? If not, then what do I have to do to change the current state in the conversation?
Therefore, when a state is reached, their list of handlers (value in the dictionary
statespassed as arg) is executed. But being a list, it could be more than one, so there could be more than one returned state. How is it managed?