Python Telegram Bot ensure state changes in Job callback

279 Views Asked by At

I've scheduled a Job which sends users a message and expects a response. How can I ensure the conversation state changes in the callback? The following does not seem to work.

def job_callback_function(context: CallbackContext):
    send_message("What is your favorite color?", chat_id)
    return new_state
0

There are 0 best solutions below