We have built a microsoft teams app
which uses a bot
and after a user installs the app, we would like to show a button that says "share to channel" where the user can click and then choose which channel they would like to send a card too.
How can I do this? Is this capable through connectors or webhooks or do I need another approach?
I have connected a connector and added that connector ID to the manifest.json
file in the app package but I do not know where to go from there.
I have read the following documentation:
https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using
https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook
When a user installs an app, we can get information for that user but we cannot get information for other teams or channels that user is connected to.
I also tried creating a message extension
https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/create-messaging-extension
I also looked at Graph API