Veena K. Suresh
Veena K. Suresh

Reputation: 1002

Twilio Chat in Angular2 application

I was trying to add a TWILIO Chat in my Angular2 application. I got a solution for importing TWILIO into our component from this link - How to use Twilio Client in Angular 2? .

While consoling the Twilio variable, which i got from declare const Twilio: any;, i am getting the entire twilio function. Can anyone please tell me how can i actually implement a chat application or how can i make use of that function, in my application.

Upvotes: 1

Views: 2579

Answers (1)

philnash
philnash

Reputation: 73075

Twilio developer evangelist here.

Now that you have the Twilio variable, you can access the chat functions through the Twilio.Chat.Client object.

I recommend reading through the Twilio Programmable Chat documentation to see how it all works together and how you can build your own chat application. You can also check out the example application, which isn't built in Angular, but should give you an idea of how things should work together.

Upvotes: 2

Related Questions