messaging
6 TopicsError : The bot is not part of the conversation roster. while sending message in channel through bot
We have a bot that can be installed in a Team as well as in personal scope. We are facing issue when bot is trying to send message in the channel where it is installed. It was working fine few days back but all of a sudden, it's throwing error: > {"error":{"code":"BotNotInConversationRoster","message":"The bot is > not part of the conversation roster."}} > Details : > teamId :19:3684c109f05f44efb4fb54a988d70286@thread.tacv2 > Error: Operation returned an invalid status code 'Forbidden' > StackTrace: at Microsoft.Bot.Connector.Conversations.CreateConversationWithHttpMessagesAsync(ConversationParameters > parameters, Dictionary`2 customHeaders, CancellationToken > cancellationToken) at > Microsoft.Bot.Connector.ConversationsExtensions.CreateConversationAsync(IConversations > operations, ConversationParameters parameters, CancellationToken > cancellationToken) Below is my code: var channelData = new TeamsChannelData { Channel = new ChannelInfo(cId), Team = new TeamInfo(cId), Tenant = new TenantInfo(tenantId) }; var conversationParameters = new ConversationParameters { IsGroup = true, Bot = null, ChannelData = channelData, Members = null, Activity = activity, }; await connectorClient.Conversations.CreateConversationAsync(conversationParameters); The bot is able to send direct message to users Note: - I can confirm that the bot is part on the team, and it is installed within the team. Bot is able to send one-to-one message to the user. We are facing issues only when trying to send message in a channel.114Views0likes2CommentsBug: Adaptive card does not works on Microsoft Teams's mobile app
Hello, We got a problem with adaptive card, we are using an Action.Submit button where it invoke a message request for our bot, this works fine on web but on mobile does not works, button keep on feedback and does not do any request. This is our JSON: { contentType:'application/vnd.microsoft.card.adaptive', content: { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.3", "body": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "items": [ { "type": "Image", "url": `https://digital-assets.projectcor.com/integrations/${statusUrl}-d-50.png`, "spacing": "None" } ], "width": "50px" }, { "type": "Column", "items": [ { "type": "TextBlock", "isSubtle": true, "text": `${companyName} > ${chipName}`, "color": "Dark", "wrap": true }, { "type": "TextBlock", "spacing": "None", "text": task.title, "color": "Dark", "size": "ExtraLarge", "weight": "Bolder", "wrap": true }, { "type": "TextBlock", "isSubtle": true, "text": `${lang.priority}: ${utils.getPriorityName(task.priority,locale)}`, "color": "Dark", "wrap": true }, ], "width": "stretch" } ] }, { "type": "ColumnSet", "separator": true, "spacing": "Medium", "columns": [ { "type": "Column", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "items": [ { "type": "Image", "url": "https://digital-assets.projectcor.com/integrations/deadline-2.png" } ], "width": "25px" }, { "type": "Column", "items": [ { "type": "TextBlock", "text": "Deadline", "color": "Dark", "weight": "Bolder", "wrap": true }, { "type": "TextBlock", "text": `${date ? date : 'No date'}`, "color": "Dark", "wrap": true } ], "width": "110px" }, { "type": "Column", "items": [ { "type": "Image", "url": "https://digital-assets.projectcor.com/integrations/usr.png" } ], "width": "25px" }, { "type": "Column", "items": [ { "type": "TextBlock", "text": "Project manager", "color": "Dark", "spacing": "Large", "weight": "Bolder", "wrap": true }, { "type": "TextBlock", "text": `${taskPm ? taskPm : 'No project manager'}`, "color": "Dark", "wrap": true } ], "width": "180px" } ] } ], "width": "stretch" } ] }, { "type": "ColumnSet", "spacing": "Medium", "columns": [ { "type": "Column", "items": [ { "type": "Image", "url": "https://digital-assets.projectcor.com/integrations/usr.png" } ], "width": "25px" }, { "type": "Column", "items": [ { "type": "TextBlock", "text": lang.collaborators, "color": "Dark", "spacing": "Large", "weight": "Bolder", "wrap": true }, { "type": "RichTextBlock", "inlines": [ { "type": "TextRun", "text": utils.collaboratorsArray(task.collaborators) } ], "spacing": "Small", "height": "stretch", } ], "width": "300px" } ], "separator": true }, { "type": "ActionSet", "actions": [ { "type": "Action.Submit", "title": lang.comment, "data": { "msteams": { "type": "invoke", "value": { "type": "task/fetch", "action": "createComment", "route": `tasks/${task.id}` } } }, "style": "positive" }, { "type": "Action.OpenUrl", "title": lang.view_cor, "url": `https://${subdomain}.${utils.getWebUrl()}/tasks/${task.id}` }], "separator": true, "height": "stretch", "spacing": "Medium", "horizontalAlignment": "Center" } ], } Comment button of invoke type and action createComment has the issue. Thanks!4.3KViews1like9CommentsAdaptive Card Width issue for @Mention Tags
I have an adaptive card being published to a team channel using power automate with "msteams": { "width": "Full" } specified in the structure. If I pass just the users name and other details the card renders properly to the maximum width. However if I add a tag (@mentions) - the card collapses to the default width. I have tried to use both the <at> tag as well as the "Get @mention token for user" action. Both have the same result. Any suggestions on how I can get the full width and the tag?Solved1.5KViews0likes2CommentsMicrosoft teams rich text pasting not working for desktop app
I have Microsoft Teams Version 1.5.00.9163 (64-bit). It was last updated on 20/04/2022. Used to be able to pasting code with rich text formatting from an IDE. Suddenly it is just being pasted without any colors. Tried on other microsoft products (Outlook, word, powerpoint and microsoft teams web), all are able to work and have the correct text with formatting pasted. Only the desktop teams app cant work suddenly.978Views1like1CommentRemove leading white space when pasting a code snippet
When I paste code into the Code snippet format block, it retains the leading white space for all of the lines of code. When I submit the message, it removes the leading white space for the very first line only. I think it should remove the same white space from all of the lines.3.7KViews0likes1Commentallow language selection for markdown code block
When I type ``` to start a code block, a markdown syntax, I should be able to select the code language. In markdown, I would follow the triple ticks with the language name, such as csharp, html, sql, and then press enter to start the code block. Can this part of the feature be implemented? If not, could we at least get the language picker tool that's available when we insert a Code snippet from the format menu?3.2KViews0likes2Comments