Closed taraa62 closed 5 years ago
Did this ever get resolved?
I'm try to transfer guest-user from live chat with bot to especific departament.
await api.login({username: USER, password: PASSWORD});
await api.post('room.transfer', payload, false);
Similar error
Try transfer
[API] POST: room.transfer {"rid":"5G7dyByEqSLdtG9FJ","token":"7EkHTaJu87r4k3tFp","department":"Br9fmtDJhKyJbCR2Q"}
[API] Logging in bot
[API] POST: login {"username":"bot","password":"pass"}
Result was buffer (HTML, not JSON)
[API] POST error (login): Result was buffer (HTML, not JSON)
I use it for create a new group via "api"
And I get error:
If I use
driver.login
- it is ok. How I can create new group via bot user?