Forum Discussion
catmanjan2010
Oct 17, 2022Copper Contributor
Teams command bar integration bot shows See More and See Less button for no reason
Teams command bar integration bot shows "See More" and "See Less" button for no reason Clicking the buttons has no effect How do we remove these buttons? Seems to appear no matter what length...
catmanjan2010
Oct 23, 2022Copper Contributor
Nivedipa-MSFT this is the guide I followed https://learn.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/search-commands/respond-to-search?tabs=dotnet
Here is the source code sample https://github.com/microsoft/BotBuilder-Samples/blob/main/samples/csharp_dotnetcore/50.teams-messaging-extensions-search/Bots/TeamsMessagingExtensionsSearchBot.cs
Nivedipa-MSFT
Microsoft
Oct 31, 2022catmanjan2010 - We have tested this, but we are not getting any see more and see less button.
And used below code:
var card = new ThumbnailCard
{
Title = $"{packageId}, {version}",
Subtitle = description,
Buttons = new List<CardAction>
{
new CardAction { Type = ActionTypes.OpenUrl, Title = "Nuget Package", Value = $"https://www.nuget.org/packages/{packageId}" },
new CardAction { Type = ActionTypes.OpenUrl, Title = "Project", Value = projectUrl },
},
};
if (!string.IsNullOrEmpty(iconUrl))
{
card.Images = new List<CardImage>() { new CardImage(iconUrl, "Icon") };
}
var attachment = new MessagingExtensionAttachment
{
ContentType = ThumbnailCard.ContentType,
Content = card,
};
return Task.FromResult(new MessagingExtensionResponse
{
ComposeExtension = new MessagingExtensionResult
{
Type = "result",
AttachmentLayout = "list",
Attachments = new List<MessagingExtensionAttachment> { attachment }
}
});
Could you please update Teams version and check again.
- catmanjan2010Oct 31, 2022Copper ContributorLooks like you're sending chat messages, my screenshot and original post says I am reproducing the issue in the command bar.
- Nivedipa-MSFTNov 01, 2022
Microsoft
catmanjan2010 - In messaging extension search in preview message we are not getting see more and see less option.
Could you please share your screen recording for getting know whichever we are doing it's the right way or not?- catmanjan2010Nov 03, 2022Copper Contributor
Nivedipa-MSFT I notice in your sample you are not setting the Text parameter, I believe this is what is causing the issue: