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
8
votes
0 answers

What's the quickest way of getting all channels with last message included?

We're trying to implement Twilio's Chat into our application. Our current task consist in showing all the conversations for the current user. Like in the image below: As you can see, we display 4 things: the avatar, the username, the last message…
SnuKies
  • 1,578
  • 1
  • 16
  • 37
7
votes
1 answer

Get Twilio Chat User Channels sorted by last activity or unread count?

We are developing a chat system where users can be in many chat rooms, and I'd like to be able to show the most recent channels first. This could be either by the time the last message was sent, or even by the number of unread messages, as long as…
Bonnici
  • 1,596
  • 2
  • 12
  • 21
6
votes
0 answers

Twilio Programmable Chat: No events fired after client reconnect

We are using the Twilio Programmable Chat JavaScript SDK (v. 4.0.0) to build a chat application. We have several channels for each user and we listen on every channel for messages via the messageAdded-Event. After a disconnect the client is…
E.ws
  • 513
  • 4
  • 17
6
votes
0 answers

Can we search through chat in twilio Programmable chat?

I want to retrieve all Channels which match given keyword in its chat history. Is there such API available in Twilio?
Mahesh Bhuva
  • 744
  • 5
  • 17
5
votes
0 answers

Twilio client inside chrome extension. User denied access to microphone when device.connect runs

Hi I am developing chrome extension using Twilio Client JS library and Task Router JS SDK. I successfully registered Twilio device and receive on ready event also on background script. I also setup task router worker and receive events too. When I…
5
votes
0 answers

Twilio programmable chat: Is there a way to listen to messageAdded event on invited channels?

I have a list of subscribed and invited channels for a user and I added messageAdded event on client so that it can listen to all the channels (subscribed). Now the need is that I want the user to be able to see new message notifications on the…
tsikka
  • 191
  • 6
5
votes
1 answer

Twilio SMS - what am I doing wrong?

So, I have WHMCS setup to use Twilio with a new module, however, I have managed to get as far as setting it up and having SMS messages go out to customers in Australia as I have an AUS number connected to my Twilio account. The issue is that when…
Sean Banks
  • 51
  • 1
  • 2
5
votes
0 answers

Swift Twilio's programmable chat client slow connection

I'm using Twilio programmable chat on swift and it takes the client up to 5 seconds to connect. Here is the code: let start = Date() TwilioChatClient.chatClient(withToken: token, properties: nil, delegate: self) { (result,…
Rotem
  • 2,306
  • 3
  • 26
  • 44
4
votes
1 answer

Twilio Programmable chat: Get Deleted messages

I want to give user the ability to delete messages. In the code I am deleting a message using : message.remove(); and the message gets delete all fine. Now I want to show users in the chat that a message was deleted at that particular place (like in…
tsikka
  • 191
  • 6
4
votes
1 answer

Clearscript Javascript 'require' functionality

I am attempting to write a C# wrapper for the Twilio Programmable Chat tool. The library provided is for JS clients. I thought that using a tool like ClearScript (V8) would allow me to wrap the js as needed. The example code on the site is const…
Jeff
  • 2,061
  • 4
  • 27
  • 45
4
votes
0 answers

Twilio Programmable Chat: Listen to add new channel/messages in a chat room

I am building a chat room in my website, where a list of all the subscribed channels is loaded (using getSUbscribedChannels()) and when the user clicks on any chat, the messages are shown. Please note I am using private channels. Now if a user is in…
tsikka
  • 191
  • 6
4
votes
0 answers

Twilio programmable chat: Invites expiry and user limit

This is regarding twilio's programmable chat invite to private channel. I have a few doubts: Is there an expiry on the invite sent to the user (time limit within which it should be accepted)? Is there a limit on the number of invites sent per…
tsikka
  • 191
  • 6
4
votes
0 answers

Unconsumed Message Count return null in active channel

Hi I am working in chat base application by using Twilio Programming chat in android But facing a strange issue .I have bottom navigation where i display Total Unread count of chat and chat listing where user see individual unread count of each…
Abdul Wahab
  • 411
  • 6
  • 15
4
votes
0 answers

Twilio JS Client getChannelBySid Error - Forbidden

I'm using Twilio's JS client. The client requires an Access Token that I create with the following code and push to the front-end. def generate_chat_token(self, identity, service_sid): """ Generate a jwt chat token. """ # Get a…
4
votes
1 answer

Twilio programmable chat message user friendlyName

I am using Twilio Programmable Chat to add a chat feature to my mobile app built in React Native. I'm using the JS client SDK for this. When the app receives a new message, the data that comes through uses the user identity for the author field. Is…
Matt Leach
  • 839
  • 3
  • 10
  • 15
1
2 3
25 26