Comments (1)
Hi @01 and thanks for the feedback!
-
The reason it is implemented this way, more of a botbuilder middleware than the current beta of
botbuilder-teams
, is due to the way thebotbuilder-teams
implemented their way of the activity processor (which in my opinion feels and looks like a clunky way of doing the event handling - I would have preferred a more botbuilder middleware approach) and how you need to shove all code into the bot implementation deeply nested in the activity processor. For instance if you're building a message extension, and not a bot, (which I think is a very common case) you're adding a lot of overhead using the activity processor frombotbuilder-teams
. -
Secondly, this was designed for the Microsoft Teams Yeoman Generator and more specificallly to its hosting component
express-msteams-host
- to make it easy to build message extensions and to be able to separate that logic out from the bot implementation and have a great way to support multiple message extensions (and easily add/remove those) -
Almost same as above. Most invoke commands sends the
commandId
but unfortunately notcomposeExtension/onCardButtonClicked
andcomposeExtension/selectItem
. So when in the case that you have multiple message extensions you need to handle the case that this will be invoked for all your message extensions (using the same bot endpoint). And yes, this is only an issue where you have multiple message extensions for the same bot. -
The
onCardButtonClick
reacts to thecomposeExtension/onCardButtonClicked
which happens when you click on anAction.Submit
action in a card in a conversation.
Great comments and questions, looking forward to more feedback!
from botbuilder-teams-messagingextensions.
Related Issues (6)
- Remove `ms-rest-js` from packate HOT 1
- Unable to trigger a task module from onSubmitAction
- Add support for Adaptive Cards Universal Actions
- onTurn doesn't check if context.activity.value is defined before accessing context.activity.value.commandId HOT 1
- botMessagePreview functionality does not work completely HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botbuilder-teams-messagingextensions.