I am using Televerse to build Telegram Bot in Dart. I want to implement the user verification process. I am thinking of a flow like:
Bot: What is your name?
User: John Doe
Bot: Send me your contact
User: [Contact]
Bot: Finally, add your recovery email.
User: [email protected]
Bot: Account verification request is sent.
As you can see I have to go through 3 steps to complete the verification request process. Is there a way I can complete this in one handler? Is there a way I can wait for the user’s response?
I tried to implement this with a global Map<int, dynamic>
such that user_id against verification process state. But, it seems like over complicated.