BotBuilder-MicrosoftTeams icon indicating copy to clipboard operation
BotBuilder-MicrosoftTeams copied to clipboard

ChatConnector vs. TeamsChatConnector

Open rjgmail88 opened this issue 7 years ago • 2 comments

I am not able to decide if I can user builder.ChatConnector() instead teams.TeamsChatConnector() for my nodejs bot service. Can we use ChatConnector for a bot which can be used in MS teams or we can have TeamsChatConnector() for MS teams 1:1 bot & can be used for other channels like Cortana,skype etc. My BOT service currently has ChatConnector() and Cortana channel. We added MS teams channel & thinking if we can just user same bot for 1:1 without having to change ChatConnector & user npm "botbuilder-teams".

rjgmail88 avatar Feb 26 '18 17:02 rjgmail88

TeamsChatConnector exposes additional functionality which is not exposed through ChatConnector. But unless you explicitly require this functionality you can work with ChatConnector alone.

RamjotSingh avatar Feb 26 '18 18:02 RamjotSingh

@RamjotSingh, Thanks for response. Yes, I require functionality from TeamsConnector. Did you mean if I use TeamsChatConnector over ChatConnector I will be getting more feature and it will be ok with other chat channel like Cortana in app chat ? I guess TeamsChatConnector extends ChatConnector ?

teamsChatConnector.fetchMembers(..//fetch members from teams by teamID.)

rjgmail88 avatar Feb 26 '18 19:02 rjgmail88