User Profile
XDeveloper29
Copper Contributor
Joined 2 years ago
User Widgets
Recent Discussions
Re: Send Message as User/Bot Using Graph API Based on User's Email Existence in Microsoft Teams Channel
Nivedipa-MSFT, Can you guide me to authenticate the bot or service account to send the message? How the authentication is different from user authentication as in user authentication we use grant_type as authorization_code. Also can we send the messages by user/bot using single token?2.2KViews0likes2CommentsSend Message as User/Bot Using Graph API Based on User's Email Existence in Microsoft Teams Channel
I'm working on a project that involves sending messages to a Microsoft Teams channel using the Microsoft Graph API. I have a specific requirement where: If a user's email exists in the teams channel, the message should be sent as a reply from that user. If the user's email doesn't exist in the channel, the message should be sent from a bot or a service account. I'm using user's token for authentication. Is there any way to achieve this conditional sending of messages using the Microsoft Graph API? Here is a rough outline of what I'm trying to accomplish: Check if the email exists in the teams channel. If it does, send the message as the user. If it doesn't, send the message as a bot or service account. Any guidance or examples on how to implement this would be greatly appreciated. Thank you!2.8KViews0likes4CommentsRe: How to capture replies to a bot's message in a Microsoft Teams Channel without mentioning the bot?
Nivedipa-MSFT, I have gone through the document. As mentioned in it, I cannot see the ChannelMessage.Read.Group and ChatMessage.Read.Chat permissions in both the application and the delegate permissions azure portal. I have tried using ChannelMessage.Read.All and ChatMessage.Read.All, but it is not working. Could you please provide further guidance on how to resolve this issue?848Views0likes3CommentsRe: How to Send Replies in Microsoft Teams Using Bot Name Instead of Username via Graph API?
Nivedipa-MSFT Thank you for the guidance.The documentation link provided describes how to send a message in a chat. However, my requirement is to send a message using a bot's name , instead of username. Is there any specific endpoint or configuration needed to achieve this using the Microsoft Graph API?585Views0likes3CommentsHow to Send Replies in Microsoft Teams Using Bot Name Instead of Username via Graph API?
I'm working on an external application that sends replies to messages in Microsoft Teams using the Microsoft Graph API. Currently, the replies are sent using the username associated with the authenticated account. However, I want the replies to appear as if they're coming from the bot itself, using the application name registered in the Azure portal. The bot is also registered as a message extension app. Ideally, I want the responses to display the bot's name, rather than the username of the account making the API call. Here are the steps I'm currently following: The bot is authenticated and authorized using OAuth2 with the appropriate permissions. I use the /reply Or /message endpoint to send messages. I know we can use incoming webhook, but we can't use it. What I'm looking for: Any specific configurations needed in the Azure portal or Microsoft Graph API to achieve this. How to Send the message with the bot's name instead of the user's name. Any help would be greatly appreciated!How to capture replies to a bot's message in a Microsoft Teams Channel without mentioning the bot?
I have developed a message extension bot app for Microsoft Teams and I want to capture replies to a message posted by the bot in a Teams channel without requiring users to mention the bot directly. I am using Node.js and TypeScript for my bot. The bot is registered in the Azure Bot Service. I want to capture replies to this message without users needing to mention the bot. How can I achieve this? Any guidance or examples would be greatly appreciated!How to Implement OAuth for a Bot-Based Message Extension App in Microsoft Teams for Graph API?
I have created a bot-based message extension app using the Teams Toolkit and need to call the Microsoft Graph API, which requires OAuth implementation. So far, I have created the app in the Teams Developer Portal, registered the app in Azure App registration, and registered the bot in the Bot Framework Developer Portal (dev.botframework.com). However, I am unclear about the OAuth flow and the specific configurations required. Can someone provide a detailed guide on how the OAuth flow works for a bot-based message extension in Microsoft Teams, the specific configurations needed in the Azure app registration, how to configure permissions and consent for accessing the Microsoft Graph API, and any additional settings required in the Teams Developer Portal or Bot Framework Developer Portal? Any guidance, code examples, or references to detailed documentation would be highly beneficial.How to get access token for Graph API in Teams bot-based message extension?
I'm developing a Teams bot-based message extension application using the Teams Toolkit in TypeScript. I need to retrieve all the replies for a message in the current channel. According to the documentation, I need to use the Graph API to get the replies. However, to use the Graph API, I need an access token. My questions are: How can I implement OAuth to get the token in a bot-based message extension? Are there any specific permissions or configurations needed in the Azure portal to enable this? Is there an alternative way to get the access token or retrieve the replies without using the Graph API?Issue with button action on unfurling link adaptive card
I have developed a Message Extension Teams app that have feature for link unfurling. Upon pasting the link, the card shows up in the chat, containing a button. Generally, I want to popup a dialog that opens upon clicking the button and accepts text from users. But, on clicking the button, I'm getting the error Return to the main window to perform this action. How can I fix this issue? Adaptive Card for unfurling card - { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.6", "body": [ { "type": "TextBlock", "text": text, "wrap": true } ], "actions": [ { "type": 'Action.Submit', "title": 'Login', "data": { "msteams": { "type": 'task/fetch' }, "data": 'onLogin' } }, ] }463Views0likes1CommentUsing Bot app in different organization
Hello, I have created a bot app using teams toolkit and run it locally. Using the teams toolkit, it has automatically created a app in developer portal of teams, created a app in app registrations in azure and a bot in botframework. The app in app registration in azure is supporting Multiple organizations. Now using this I have hosted the bot on server of which endpoint I have also mentioned. So the app is running in my tenant. Suppose I want my client which is other organization to install and use this bot without publishing into the marketplace. How and what to configure to use them. Or the user can have just upload the manifest file and use it even though it is registered in my tenant? Thanks.516Views0likes1CommentIssue on PopUp Dialog on installing bot app on teams
I'm building a bot/message extension app using Teams Toolkit in Typescript. I want the user to get a config popup which user can enter the API key and I can store the key in some storage. I refer to this doc - https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/bot-configuration-experience?tabs=JS1%2Cteams-bot-sdk2%2Cteams-bot-sdk3#build-bot-configuration-experience I have tried this code - async handleTeamsConfigFetch(_context, _configData) { let response = {}; const adaptiveCard = CardFactory.adaptiveCard(this.adaptiveCardForContinue()); response = { config: { value: { card: adaptiveCard, height: 500, width: 600, title: "test card", }, type: "continue", }, }; return response; } But I'm getting error - Property 'responseType' is missing in type '{ config: { value: { card: Attachment; height: number; width: number; title: string; }; type: string; }; }' but required in type 'ConfigResponse'. So, I modified it like this async handleTeamsConfigFetch(_context: TurnContext, _configData) { console.log(_configData, _context); const responseType = "config" as const; const adaptiveCard = CardFactory.adaptiveCard( this.createAdaptiveCardWithText("test") ); return { config: { task: { value: { card: adaptiveCard, height: 500, width: 600, title: "test card", }, }, }, responseType: responseType, }; } Now I'm getting error <BotError>Error when processing invoke response: Config or Config Type is missing in Bot Config response in the console of the browser. Please help on this.410Views0likes1CommentInstall parameters for teams bot/message extension app on installation
Hello, I would like the admin to be able to store the API key when installing the teams bot/message extension app. This API key should be unique for each organization. Is there a way to configure this on the installation popup? Thank you.432Views0likes1CommentLink Unfurling Doesn't trigger on pasting link
Hi, I have developed a Bot/Message Extension App for use in our organization. Using Teams Toolkit, I have created a project and using Typescript for it. I am adding the link unfurling feature to my app. When I pasted a link to the chat, the "handleTeamsAppBasedLinkQuery" function doesn't get trigger directly on paste but when I edit the link or send the message, the function gets triggers. Please help on this.495Views0likes2Comments
Recent Blog Articles
No content to show