I have a Microsoft Bot Framework v4 bot. It has a Twilio SMS channel. Both work. My goal is to add a second Twilio SMS phone number that points to the same bot.
I wrote the code in the server to read the RecipientId and RecipientName. I want the server to recognize which number the user texted to and respond depending on that data.
I wrote a class (MyBotCredentialProviderStd) which implements ICredentialProvider. It allocates and stores a SimpleCredentialProvider instance and passes calls through to that object. When it receives a IsValidAppIdAsync call it compares the app id to a (for now) static value corresponding to a second bot registration for the same server app. If match, return true. If not match, call the MS class. Same for the GetAppPasswordAsync method.
This code works. I can send text messages to the two Twilio SMS messages. The server reads the target phone number and replies.
Is there a way to do this in the Azure Portal? Is there a better or simpler approach?
Thanks,
Adam Leffert www.leffert.com