BOT
44 TopicsCSS Properties being stripped from Teams Chat messages from Bot
Hi Team, We've noticed that certain CSS properties are no longer appearing in HTML messages when sent to Teams Chat. Previously, our bot styled messages using display and border properties, but now these properties are missing from the HTML when we inspect the page. Steps to Reproduce: Start the Echo bot from the sample templates (I used Teams Toolkit to deploy it to Teams or run it in the Test tool). In the TeamsBot.ts file, modify the onMessage function by replacing await context.sendActivity(...) with the following code. This example adds styling to an echo message. const a: Partial<Activity> = { text: `<span style="display: block; color: red; border-radius: 4px; padding: 4px; border: 1px solid red; ">Echoo:</span> <span style="display: block;">${txt}</span>`, textFormat: TextFormatTypes.Xml }; await context.sendActivity(a); Note: I also tried sending the HTML directly with context.sendActivity(...) without setting the textFormat property in the Activity, and observed the same result. Run the bot in the Test tool and Teams to compare behavior. Observed behavior: In the Test tool: All styles are applied as expected. In Teams: Only the color property is applied, while display, padding, and border properties are ignored (stripped out of the HTML). Here’s an example of the HTML output in Teams: <div dir="auto" id="content-1730973548675" aria-label="Echoo: test styles properties" class="fui-Primitive ___16zla5h f1oy3dpc fqtknz5 fyvcxda"> <span style="color: red;">Echoo:</span> <span>test styles properties</span> </div> Could you provide insights on whether this change is intended, and if there are any workarounds for preserving these CSS properties in Teams messages? Thank you!291Views11likes1CommentSend Messages using Bot/Change Notification in MS Teams
Hi I have some questions regarding bot functionality within Microsoft Teams. I'm developing an app/plug-in to monitor and analyze all incoming messages in chats and channels. The goal is to intercept these messages, check them for specific flagged (e.g., inappropriate) content, and instantly send a notification back to the respective chat or channel if flagged content is detected. I need to achieve this in real time. Currently, I’ve implemented the first half of this functionality using Microsoft Graph’s change notifications API, allowing me to intercept and read messages as they arrive. However, I’m facing a limitation: since my app doesn’t have permissions to post messages, I can't use the Graph API’s send capabilities to notify users within the channels or chats. To work around this, I’m considering utilizing a bot. My approach is to have a bot send these notifications to the appropriate chats and channels, using identifiers such as tenant ID, team ID, channel ID, message ID, and chat ID—information I retrieve through the change notifications API. So here are my main questions: Can I use a bot to send messages to various chats and channels on demand, leveraging the IDs obtained from the change notifications API? This would allow my app to handle message interception while the bot takes over in sending the flagged notifications. In my current setup, is there a way to reply to chats or channels directly using the Graph API's 'send' functionality through the app itself? It is related to Application/Delegation Permissions. Thanks214Views0likes5CommentsTeams application hosted media bot not calling webhook
I have setup a media bot as per the instructions mentioned in PsiBot. The TCP address has been added in the firewall. Necessary API permissions in App Registration has been provided. Currently, testing on local computer using ngrok and followed the instructions mentioned in the link above. Issues: In an online teams meeting an App is added to the meeting and a call to JoinCallAsync api for bot to join the call occurs, which is successful. But after that nothing happens. The bot is not added in the meeting. The call to webhook (api/calling) should be called which is not happening. Please guide what should be done to add the bot to the meeting to fetch the audio of participants. 1. Ngrok points TCP to: Forwarding tcp://0.tcp.in.ngrok.io:12345 -> localhost:8445 In domain added the below record: CNAME 0.local.bot mapped to 0.tcp.in.ngrok.io Created certificate using openssl for *.local.bot.example.com and added in the Microsoft Management Control under Personal Certificates. The program has accepted this certificate i.e. no exception occurred. 2. Added all the ports, domains, endpoints, application id in the appsettings of the project. 3. Set supportsCalling to true in manifest file How can the issue be traced? Please guide.138Views0likes7CommentsCommand menu not show in Teams mobile app
Hi, I just create my chat bot on Teams and I add some "Command menu" in Teams Developer page. So that can show on Desktop but did not show on mobile application. Here's my short manifest from Developer page. "bots": [ { "botId": "497ed9a0-1823-4a6c-8d3c-b0281b024645", "scopes": ["personal"], "commandLists": [ { "commands": [ { "title": "Change use case", "description": "เปลี่ยนหัวข้อในการสนทนา" }, { "title": "Read privacy policy", "description": "อ่านนโยบายความเป็นส่วนตัว" }, { "title": "Read terms of use", "description": "อ่านข้อกำหนดและเงื่อนไขการใช้บริการ" } ], "scopes": ["personal"] } ], "isNotificationOnly": false, "supportsCalling": false, "supportsVideo": false, "supportsFiles": false } ] But when I testing Adaptive Card via Developer Protal that will show "Suggested prompts" on the bottom right. So the "Command menu" and"Suggested prompts" are the same feature? and why that not working on my bot? Here's the attachment185Views0likes4CommentsTeams Bot Feedback button is not shown to most of the user
Hello everyone, I developed a Teams chatbot which used Azure Search and Azure OpenAI. For chatbot response which has citations from Azure Search, I enabled the feedbackLoop response.ChannelData = new { feedbackLoopEnabled = true }; It was a success. I can see the thumbs up/down button and managed to capture the feedback. Unfortunately, some of the users reported that they can't see the thumbs up/down button in Desktop Teams or Teams Web. Strangely, if they use their Android Teams App, they can see the thumbs up/down button. Anyone knows what could be the reason for such a strange behavior? Thanks in advance. Regards, HardonoSolved771Views0likes12CommentsError when inviting the bot to a meeting: Server Internal Error. DiagCode: 500#7117.@
We have created a solution that invites the Microsoft Teams media bot to an online teams meeting. Unfortunately the bot does not always seem to join the call. In these cases; We only receive the "Establishing..." callback, but then the call is never actually transfered to "Established". After waiting for about 60 seconds. We receive the "Terminated" signal, without the call ever reaching the "established" state. Along with this terminated callback, we also receive the following error code (for which we can not find any documentation..) Server Internal Error. DiagCode: 500#7117.@ The steps and conditions of inviting the bot are always the same. 1. Create New meeting 2. Invite bot to meeting 3. 50% (sometimes lower, sometimes higher) chance bot will join A workaround I found was, inviting the bot multiple times. Which sometimes work, but the bot is then kicked subsequently when the "Terminated" callback is sent our way. await this.Client.Calls().AddAsync(joinParams).ConfigureAwait(false); This is the code to trigger the invitation of the bot, as per the microsoft sample. (docs) Can someone please shed some light on the meaning of this error code? I have not found any patterns in its occurrence and our calls to the service do not change. The only difference likely being a different meetingId. Server Internal Error. DiagCode: 500#7117.@577Views0likes6CommentsMeeting Bot issue: Did not receive valid response for JoinCall request from call modality controller
I'm trying to join a Teams Meeting with a bot. I used this https://microsoftgraph.github.io/microsoft-graph-comms-samples/docs/articles/index.html#making-an-outbound-call-to-join-an-existing-microsoft-teams-meeting sample. When the bot attempts to join I get the popup to admit or deny it in the meeting, but as soon as I click admit, it drops. In the logs I see this message: Call status updated to Terminated - Did not receive valid response for JoinCall request from call modality controller.. DiagCode: 580#5426.@ I am using the latest (1.2.0.10563 at time of writing) version of Microsoft.Graph.Communications libraries and the problem only started after I updated from 1.2.0.3742 that I was using previously. I could not find any info on what the call modality controller is, or how to check what it is responding if anything. Any ideas on how to troublshoot this are welcome.771Views0likes6CommentsMS Teams bot task/fetch desktop app cookies
Issue: In the Teams desktop app, all cookies are not set. Only 2 cookies are getting set in the Teams desktop app. The issue is not seen in the web-based Teams app. In the desktop app, all cookies are not showing up. Only 2 cookies are getting set in the desktop app. 1. When the URL connect.abc.com/form.html is open through task/fetch we are setting cookies and HTML content using Response. These cookies are used to make subsequent API requests to load the drop-down values of the form. We have verified that cookies are set and working properly in a web browser. 2. The issue is in the desktop app as the desktop app is not setting all cookies it is only setting 2 cookies.647Views0likes4CommentsIs there a way to get live transcript in Microsoft Teams?
I am trying to find a way in Microsoft Teams to get the live transcript, I want to be able to subscribe to a meeting/call that it is still running and to get the transcript from it. I understand that there is an Graph API that allows me to get the transcript for a meeting/call that ended, but that's not what I need. I am alright even with faking the subscription and do a HTTP call every 2-5/seconds. After I get the transcript I would like to do some live processing on the text. I am aware that I can connect a bot to a meeting/call and then the bot can interact with the audio stream and use Azure AI Speech Service to convert the Speech-To-Text and get the live text. I found a sample in Microsoft Github repos: https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/PublicSamples/Ec... This is a good solution, but if possible I would like to do be able to do one of the following, if possible: get the transcript without a bot that needs to be connected to a session. connect a bot that can interact with the live transcript in order to get all additional metadata, like speaker name.503Views0likes1Comment