OfficeDev / BotBuilder-MicrosoftTeams

Microsoft Bot Builder extension library for developing bots for Microsoft Teams
MIT License
256 stars 149 forks source link

ChatConnector vs. TeamsChatConnector #95

Open rjgmail88 opened 6 years ago

rjgmail88 commented 6 years ago

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".

RamjotSingh commented 6 years ago

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

rjgmail88 commented 6 years ago

@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.)