Questions tagged [twilio-programmable-chat]

For questions about Twilio's text chat APIs. This is distinct from their voice chat or SMS messaging APIs, which should be tagged as "twilio-api".

Programmable Chat which is part of Twilio solutions:

Add chat to any app with SDKs for mobile and web. Powered by the Twilio cloud.

Site: https://www.twilio.com/chat

Docs: https://www.twilio.com/docs/api/chat

383 questions
4
votes
0 answers

How to send notification to other Twilio Chat member if the one member left the chat?

In my project, i have implemented Twilio for one to one chat, user can initiate chat from mobile app and operator will respond from web application. So if chat is going on between user and operator and suddenly user close the chat then how operator…
3
votes
0 answers

Twilio JS - Client.getChannelBySid Throws Error: Not Found

I created a chat client using Twilio, using their JavaScript client on the front end. I'm making the following call to get a channel by SID let channel_promise = client.getChannelBySid(sid); This worked fine for months, but now out of the blue I'm…
That1Guy
  • 7,075
  • 4
  • 47
  • 59
3
votes
1 answer

Twilio Chat - How to join a User to Channel during Channel creation?

I'm migrating from Pusher Chatkit where it was possible to add a user to a room (channel) during the channel creation. In Twilio Programmable Chat docs it is presumed that users will be invited to join but in our case, the channel should be created…
KasparTr
  • 2,328
  • 5
  • 26
  • 55
3
votes
0 answers

'mesaageadded' twilio chat channel event excuting multiple times..why?

getting in this problem from 3 days .. I use twilio programmable chat to integrate chat system , so when a massage added in channel used this event according to doc https://www.twilio.com/docs/chat/tutorials/chat-application-node-express now this…
3
votes
3 answers

Reconnect and disconnect gracefully to/from chat channel

Consider the following scenario... Member connects to chat channel Member disconnects from chat channel Same member tries to reconnect to same chat channel My problem is the following...Between steps 2 and 3, when the member tries to reconnect to…
3
votes
1 answer

Twilio Chat websocket closes after long idle time

I'm writing a chat app using Twilio's Programmable Chat JS SDK. The app works fine, but I noticed after some long time (maybe 30+ minutes) where the browser tab is inactive, when I return to the browser tab the websocket connection is closed. These…
Nad
  • 516
  • 5
  • 18
3
votes
1 answer

How to listen for new message from multiple channels in Twilio programmable chat?

I have an instant messaging web application using twilio programmable chat with 'n' number of private channels subscribed by a member. I am using twilio chat javascript library. How can I show messages from all these channels in real time? I have…
LJP
  • 1,811
  • 4
  • 23
  • 34
3
votes
2 answers

Can't connect to twilsock while creating Client

i am using Twilio with react and when i create the client using this code this.chatClient = new Chat(this.state.token); but i keep geting this error TransportUnavailableError: Can't connect to twilsock at Upstream.send…
Abel Lamesgen
  • 326
  • 2
  • 12
3
votes
1 answer

Twilio Chat: Error User not member of channel while joining a private channel

I am developing a 1:1 chat application. I use a PHP server to create the private channel before starting the application. The channels are created correctly. The user tokens are genereated, chat client also created correctly. I see that the user is…
arun kumar
  • 703
  • 2
  • 13
  • 33
3
votes
1 answer

Trouble uploading media (images) to twilio programmable chat in react-native

I'm implementing programmable-chat in react-native using the npm package. Unfortunately, I'm stuck on being able to correctly upload messages with images to twilio. The twilio js documentation outlines 3 ways to create a Media Message. Sending: 1)…
Scott Roth
  • 668
  • 4
  • 9
3
votes
1 answer

Adding user to Twilio channel.

Is there a way of adding a user to a Twilio channel using the REST API? from twilio.rest import Client # Initialize the client account = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" token = "your_auth_token" client = Client(account, token) # Update the…
Alex
  • 3,946
  • 11
  • 38
  • 66
2
votes
1 answer

How to pass Twilio Datatracks in React-Native application

I am trying to pass Datatracks in twilio in react application. In web application while connecting to room we pass local video , audio and datatracks but I am not getting how to pass the same datatracks in react-native application. I am using…
2
votes
1 answer

Twilio Conversation LastReadMessageIndex Always null when you get connect with client first time

I am using twilio conversation api for chat application. I have enabled read horizon from settings. I am marking message read index and also getting unread count. But when I refresh the page lastMessageRead index is always null. I have added…
2
votes
2 answers

Always receiving 400:Bad request when Twilio webhook is configured

I want to maintain seperate twilio phone unsubscribers list and this can be done when webhook is configured via twilio console to receive incoming messages. I would parse only those messages when some one types "STOP". I have successfully configured…
1
2
3
25 26