howdyai / botkit

Botkit is an open source developer tool for building chat bots, apps and custom integrations for major messaging platforms.
MIT License
11.48k stars 2.28k forks source link

Not able to use 'invoke' button type in teams #2058

Closed HariharasudhanMoorthi closed 3 years ago

HariharasudhanMoorthi commented 3 years ago

I am using botkit teams, when creating attachment with buttons, the value defined for button is visible to users in teams unlike slack. Tried in cms tool created script and manual js script to build button click. I was able to use only 'Imback' button type in attachment, where its general config is to show the value to users.

So I tried 'invoke' button type in Botconversation, where error raises.

Experienced an error inside the turn handler Error: BotFrameworkAdapter.processActivity(): 501 ERROR at BotkitBotFrameworkAdapter.<anonymous> (/home/botkit/repository/botservice/node_modules/botbuilder/lib/botFrameworkAdapter.js:772:27) at Generator.next (<anonymous>) at fulfilled (/home/botkit/repository/botservice/node_modules/botbuilder/lib/botFrameworkAdapter.js:11:58) at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:7054) UnhandledPromiseRejectionWarning: Error: BotFrameworkAdapter.processActivity(): 501 ERROR at BotkitBotFrameworkAdapter.<anonymous> (/home/botkit/repository/botservice/node_modules/botbuilder/lib/botFrameworkAdapter.js:772:27) at Generator.next (<anonymous>) at fulfilled (/home/botkit/repository/botservice/node_modules/botbuilder/lib/botFrameworkAdapter.js:11:58) at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:7054) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:7054) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Is that 'invoke' button type is supported botkit - teams? How to create 'invoke' button type in Botconversation?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.