Response to ID client in a group

(Biewl Henrique) #1

Hello everyone!

I need send a response for an exactly ID Cliente in a group.
Exemple: Send a message (trigger) > Ask a question > Set an attribute > Ask other question > Set an attribute > Add a row (Google Sheets).

In the second question, I need to answer the same client who asked the first question. If the other ID Client answer the second question, the BOT can’t do anything.

Thx for now!

Overhear in general channel, reply privately
(Daniel Beckett) #2

Hi @BiewlHenrique

I’ve taken a look at the ReplyKeyboardMarkup for Telegram and can see that there is a ‘Selective’ field which sounds like it should do what you want.

The following custom request might work:

{
"chat_id": "{{bot_new_message.channel_id}}",
"text": "@{{new_message.user_handle}} Testing custom keyboard",
"reply_markup": {
            "selective": true,
            "one_time_keyboard": true,  
           "resize_keyboard": true,
            "keyboard": [
                    [
                       {"text": "test1"},
                       {"text": "test2"}
                    ]
            ]                                
}

}

MetaData
Method sendMessage

@{{new_message.user_handle}} could be replaced with a specific user to target them.

Hopefully that works for you. :slightly_smiling_face:

Thanks,
Dan

1 Like
(Biewl Henrique) #3

Hey Daniel!

Thank’s for your attention!

I got it apply this exemple, but don’t good for me. I will see all the commands the API Telegram and search for the “selective” in others commands!

In really i’m do this way because i can’t set 2 attributes in 1 “sendMessage”.
Exemple: Send a Message (trigger) “Put name and surname” > Set an attribute “name” and “surname”.

I will search for diferentes results and post here. Maybe help the others with same doubt!

Thank you for now!

(Karen Barker) #4

Hi Biewl,

If you are always just receiving First Name and Last Name you could look at using the Split Text function in order to then have 2 outputs to store as an attribute.

(Biewl Henrique) #5

OMG @KarenBarker

This was so perfect! Work perfectly for me…

Thx very much!!!

1 Like