microsoft-teams

Bot works on one Microsoft Teams Account but not on the other

◇◆丶佛笑我妖孽 提交于 2020-02-06 19:04:11
问题 I have 2 different Microsoft Teams Accounts that are not linked in any way. On one account I was able to sideload my bot and if I chat with my Bot in an Teams Channel my bot does Answer. Also it answeres me if I private message it. On the other account I also sideloaded my bot but my Bot does not react if I message him in an Teams Channel. But it answeres me if I private message it. I created both bots via App Studio in Teams. Now I've noticed a difference in App Studio and I think this is

microsoft bots to teams using nodejs fails with missing activityid when updating the same activity

戏子无情 提交于 2020-02-06 08:01:50
问题 My code has a simple card carousel which has action button like below: actions = [ { "type": "Action.Submit", "title": "Qualify", "data": { "action" : "qualify_lead" } }, { "type": "Action.OpenUrl", "title": "Retire", "url": "{viewUrl}" }, { "type": "Action.ShowCard", "title": "Add Note", "card": this.noteCard(item.LeadId, "leads") } ] I am having a method to handle qualify_lead action like below async qualifyLead(context:any){ console.log("in qualifyLead:" + JSON.stringify(context.activity))

Detect bot application open event

痞子三分冷 提交于 2020-02-06 07:53:25
问题 I'm working on a message extension using bot framework v3 (c#). When i install the application in teams and open the bot in 1-1 chat with bot, and send message i'm getting a welcome text. But i want the welcome text as soon as i open/ access the bot without sending any message to the bot, so i there any way to achieve this. For welcome text on message event i'm using activity.GetActivityType() == ActivityTypes.Message So similarly is there any activity type to get bot access event. 回答1: If

SPFx webpart in MSTeams Desktop Client throws an UnauthorizedAccessException

﹥>﹥吖頭↗ 提交于 2020-02-02 13:06:10
问题 This question is very similar to a question which has been asked previously on StackOverflow. However, the error I'm getting is different. AadHttpClient fails when loading SP page with SPFx webpart in MSTeams Desktop Client I also have a Sharepoint Online site in which I have an SPfx web part which makes use of AadHttpClient. This webpart works if I navigate to the Sharepoint site from a browser or open MS Teams web client. My setup is as follows: I have a team in MS Teams I added a new tab

Is it possible to get user email from MS Teams with a Bot using SDK4?

痴心易碎 提交于 2020-01-30 12:22:05
问题 I'm using C# and Bot Framework SDK4 and need to get the user email from a 1:1 chat with my bot. Is it possible? All I can seem to get is ID and full name. I have tried the things listed here https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/bots/bots-context but the teamsContext is just returning null. ITeamsContext teamsContext = turnContext.TurnState.Get<ITeamsContext>(); string incomingTeamId = teamsContext.Team.Id; string incomingChannelid = teamsContext.Channel.Id; string

Adaptive Card clears input on submit

大城市里の小女人 提交于 2020-01-30 11:43:10
问题 From a Microsoft Teams bot I send an Adaptive Card with input fields and a Submit action. When the user clicks Submit I receive the data entered but the form fields are cleared. Why is this? What am I doing wrong? This behavior is extremely annoying as I can't verify the input and ask the user to correct it. This happens in the desktop Teams app, Teams in a browser, Teams webchat in a web page and the Bot Emulator. In the Emulator it suffices for the field to loose focus. In case it matters I

How to convert custom json to adaptive card json format

亡梦爱人 提交于 2020-01-26 03:57:06
问题 I am looking https://adaptivecards.io/ for my chatbot.I saw we can create any type of card and we can render ui using adaptive json.But how can i convert my custom json to adaptive card json format. Should i need to manually convert based on my custom json response type or is there any way that convert specific json to preferred adaptive card. adaptive card response: { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type"

Sending messages in Teams with a bot on behalf of a user

筅森魡賤 提交于 2020-01-25 09:28:06
问题 I have an app containing a bot on Microsoft Teams, built using the bot-framework. I need my application to be able to let users send message to a specific channel and thread. I can do this with my bot using the "proactive messaging" ability, but the message is then send by the bot, not the user. Is there any way to achieve this as if the user sent the message? 回答1: You don't need to use the bot. Just try this Microsoft Graph API endpoint (beta version): POST https://graph.microsoft.com/beta

Bot is not responding to @Mention when sending message using Graph API

旧巷老猫 提交于 2020-01-25 08:06:45
问题 I have created and deployed a bot in Microsoft Teams. Bot Works properly and responds when user talks to the bot using @Mention (e.g. @mybot) in a channel. I just tried to send message to the bot using graph API call: https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages Method : POST Content-type : application/json Body : "body": { "contentType": "html", "content": "Hello World <at id=\"0\">standupbot</at>" }, "mentions": [ { "id": 0, "mentionText":

Find out both chat participants in ms teams tab (javascript)

吃可爱长大的小学妹 提交于 2020-01-25 07:52:12
问题 Our applications has relationships between users, and we want to show the relationships in MS teams tabs. Imagine there's a chat between User A and User B in msteams. User A is currently logged in to ms teams, and adds our app's tab to the chat. In the tab, we want to show relationship between User A and User B (if it exists). Therefore we need to somehow identify User B (email would be the best). Through MS teams SDK I can find out chat ID, but not id of User B. I found Graph API route to