Silently install app in teams in channel and group chat - botframework

I'm using Adaptive Card with JustInTimeInstall action to install the bot with message extension based on consent from user. How to silently install like first-party apps like "Microsoft Forms"?
How this will be supported in mobile devices? currently, it won't respond to the install action and I'm showing a message to install the app from desktop/web.

Related

How to send the Message to teams using Bot Framework?

I have created one Chatbot using MS Bot Framework. Also added that in My Teams App. But not able to send messages to the users who not installed that app in there Teams. I just wanted to check if there is any provision to send the message to the users who not installed the Bot to there Teams App.
There is no way to send proactive messages to users who have not installed and interacted with your bot. Your bot has no way of knowing who those users are. If a user wants to communicate with the bot, they must install the app.
Adding to this. I ran into a similar issue where I had a Teams app that uses a notification style bot to send one-way notifications to users. The only way I was able to communicate to them was by getting the user context via an app install event. When an install event is captured, I save that users' context into a SQL database table in the event of the bot being restarted (then reload on start).
You can use the Graph API to install the bot automatically (see Proactive installation of apps using Graph API to send messages) or install it via a MS Teams app setup policies (see Install apps).

Microsoft Bot Framework respond to Slack Block Kit UI Action Buttons

Using Microsoft Bot Framework Composer, I am sending a Slack Block Kit UI message that contains action buttons. Slack correctly displays the message, but pressing any of the action buttons results in a 400 error.
I have enabled Interactivity and set the Request URL to https://slack.botframework.com/api/Actions
Is this correct? I've tried updating to https://04458ba4816c.ngrok.io/api/slack, but then get 401 not authorized.
https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-channeldata?view=azure-bot-service-4.0
Why doesn't the Azure Bot Service Slack connector forward Events and Interactive Messages?
https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-channeldata?view=azure-bot-service-4.0

How to make a bot receive attachments when channeling it to MS Teams

I made a normal bot by using Microsoft Bot Framework and have deployed it to the Azure portal. I tried to channel the bot to Teams, which worked but the bot couldn’t receive attachments. How can I make it do so?
Thanks.
Microsoft Teams does not allow attachments by default. To send and receive files in the bot in teams, set the supportsFiles property in the manifest to true or else create an app for your bot in App studio. Specify your app allows upload attachments. And install it in your own Team account for testing. Please look at this sample code for reference.

Users cannot send files to Microsoft Teams chatbot

We have a Mirosoft Teams app/chatbot installed with the personal and team scopes as a tenant app in a customer's tenant.
We have received a report from a user that they cannot send files to the bot, as the paperclip icon is not available in the chat with the bot.
Note that the bot's supportsFiles is set to true in the manifest.
Could this be due to a scope mismatch, e.g. app used personally instead of as a team app? Why would the behavior change?

Slack Events API / RTM: New app installed realtime notification

Is it possible to get a slack event or real time message indicating that a new app was installed in a workspace? I can figure out apps which use "bot users" by listening for team_join event. But how can i find out in near realtime about apps installed that don't have a bot user. My use case is to present something to the user when a new app is installed (as soon as possible. I can find out apps from team logs but thats not realtime).
What you're doing with the team_join event is basically all you can do. And that's going to rely on either the app having a bot user, or it being a workspace app (https://api.slack.com/slack-apps-preview), which creates an app user.
Other than that, nothing is exposed in the Events API around app installation. The other alternative is to connect up via the RTM API and watch for the bot_added and commands_changed events. That should catch most apps.

Resources