0

How can I invite a user to a newly created private chat channel using the Twilio Python Client?

The python channel instance does not have an channel.invite() method like the JS SDK does.

I have looked through the source code as well but can't seem to find anything.

rkp333
  • 341
  • 3
  • 11

1 Answers1

1

Twilio developer evangelist here.

The Programmable Chat REST API actually has an Invites resource that you can use to invite users to channels. You can use it like this:

channel.invites.create(user_identity)

Let me know if that helps at all.

philnash
  • 70,667
  • 10
  • 60
  • 88