P
P
Pepper12019-11-14 22:19:09
Bots
Pepper1, 2019-11-14 22:19:09

Viber api php how to recognize user?

I did CRM to work with agents, it came to communication with them, I decided to follow a simple path to keep in touch with agents through a viber chat bot. The choice fell naturally on Bogdaan/viber-bot-php, but now I don’t understand how to recognize a user registered in the vibe chat bot and entered into CRM (phone number, etc.). Since api can return the id in encrypted form, and the login entered during registration in viber, even the phone number to which it was registered cannot be obtained. Question - how to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pepper1, 2019-11-15
@Pepper1

I answer my own question. Tk CRM cloud form the link CRM.ru/user-id/xx, transfer it to the user. On the server, the handler reads $event->getSender()->getId() and $event->getSender()->getName() and writes to the database to the user table and redirects to the chat. Everything is simple.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question