Open alglyzin opened 1 year ago
Hi, this is planned, until then you can handle a conversation through webhooks and storage
Hi, this is planned, until then you can handle a conversation through webhooks and storage
It would be great to see the simplest example of a conversation. For example, asking the user for an email using validation - don't accept the answer until the correct email is provided.
Hi, this is planned, until then you can handle a conversation through webhooks and storage
It would be great to see the simplest example of a conversation. For example, asking the user for an email using validation - don't accept the answer until the correct email is provided.
Hi. You can use Storage (https://defstudio.github.io/telegraph/storage/entities_storage). For example you asked for a email. Set variable "waitemail{user_id}". After that in handleChatMessage (https://defstudio.github.io/telegraph/webhooks/webhook-request-types) check variable. And work with this :)
i'm going to make it. Do you have any ideas or wishes?
I like to think there are 2 ways:
I need to collect information from the user using a conversation. So that the bot remembers the input context for a while. Example: https://botman.io/2.0/conversations