How to send responses to telegram user?

(Sam) #1

Hello, help solve the problem.
Task:

  1. Customer answers questions.
  2. Answers are sent to the manager by telegram.

How to implement sending information to telegram?

(Daniel Beckett) #2

Hi @abra

If you want to route a message to a specific user you’ll need their response path. The response path is created when a user connects to your bot for the first time and is a unique link between that user and the bot.

The following tutorial has more information on how Response Paths work:

Alternatively you could just send the customer’s answer as part of an email to the manager.

(Sam) #3

Thanks for the answer. @DanielBeckett
This is not exactly what I meant.
I want to send the order data to @nickname which is known in advance.
Now I send all the data to the e-mail, but I want to send them to telegram.

(Karen Barker) #4

Hi @abra.

As Dan mentioned, in order to send a message to a specific user you do need to know the users response path with the bot.

When you add a Send a message action in a flow, at the bottom you can specify the response path to send the message to. By default this is set up to match the current response path of the current person speaking with the bot. However you can specify your own response path in order to direct the message to someone else.

If you find the response path of the user you want these messages to go to and replace the default response path with this one then the order data can be sent to it. :slight_smile:

(Sam) #5

Thank you, I found the code and pasted where it was needed, but nothing worked, I still did not understand how to send a message. :sweat_smile:

(Daniel Beckett) #6

@abra

What do you see in the Interaction Logs when it fails?