How to create workflow for auth in telegram?

Describe the issue/error/question

I already have telegram bot, but there don’t have flow for /start.
And now I try to add flow for launch a chat bot, only under a few conditions.

  1. If user exist in db
  2. if select /start, and user don’t exist, then we reply message 'Enter invite code" and after receive correct code we save user in db
  3. if select /start and user exist, just reply message like we can’t do that

I almost create that, but I’m stuck on fragment with reply message, I don’t understand, how to check like that reply message is code and handle it

Please share the workflow

Hi @droppe, perhaps you can break down your problem a little bit? From your description I understand that you’re stuck on the if select /start and user exist, just reply message like we can’t do that of your workflow.

Can you confirm how the JSON data you currently have looks like and which check exactly you want to perform on this data?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.