0

I am building a bot which handles two channels : Slack and Twilio (SMS). For sending channel specific messages ,there is one document

channelData

I could find channelData for Slack here.

But I couldn't find any documentation or link on internet for Twilio.

Guys If you have any hint about this please share..

Here is the sample expected result. for Slack and SMS

enter image description here

Planet-Zoom
  • 1,005
  • 2
  • 9
  • 20
  • Is your question how to send MMS with botframework and Twilio? – philnash Apr 18 '18 at 00:26
  • @philnash, No, I am able to send it. I need channelData for twilio. Or other ways to send formatted text like list, image... – Planet-Zoom Apr 18 '18 at 06:05
  • There is no way to send formatted text like a list in an SMS. If you want to make a list, then just send line breaks. The way you send images is via MMS which you say you can do. – philnash Apr 18 '18 at 06:07
  • I mean I know how to send MMS , but with no sucess. Posted another question : https://stackoverflow.com/questions/49897741/twilio-mms-status-is-always-remains-sent-when-sent-using-bot-framework – Planet-Zoom Apr 18 '18 at 10:46

1 Answers1

1

There is no ChannelData specific to Twilio because everything is contained in text and attachments. Why would there be a channelData here?

By the way, for other people coming to this question, if you have to make "channel specific" replies, the 1st thing to use to differenciate replies between channels is to use the ChannelId property of the incoming message.

More info:

Nicolas R
  • 13,812
  • 2
  • 28
  • 57
  • ..Twilio also supports MMS.. So in that case , there should be a channelData. – Planet-Zoom Apr 17 '18 at 13:49
  • Does the documentation of the Bot Framework says that it supports MMS from Twilio? Twilio also offers voice services, video services, but they are not used in the Bot Framework case. I know it supports kind of MMS because you can send images, but that's not using ChannelData, only Attachments – Nicolas R Apr 17 '18 at 13:52
  • I also edited my answer which was a bit too restrictive – Nicolas R Apr 17 '18 at 13:55
  • Thanks Nicolas R..but I need some Twilio specific templates which will replicate the slack message. Edited the question for more clarity.. – Planet-Zoom Apr 17 '18 at 14:00
  • Your image has a low resolution, it's hard to see details, but as you can see in Channel Inspector here https://docs.botframework.com/en-us/channel-inspector/channels/SMS?f=Markdown&e=example1, most of your design needs can't be done with Twilio SMS – Nicolas R Apr 17 '18 at 14:53