Forum Discussion
catmanjan2010
Oct 17, 2022Brass 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...
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.
catmanjan2010
Oct 31, 2022Brass Contributor
Looks 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, 2022Brass Contributor
Nivedipa-MSFT I notice in your sample you are not setting the Text parameter, I believe this is what is causing the issue:
- Nivedipa-MSFTNov 06, 2022
Microsoft
catmanjan2010 - We have tested with text property but still we are not getting see more and see less button.
We have tested this on Teams Desktop version 1.5.00.30306 and web version.
We have used below code
var card = new ThumbnailCard { Title = $"{packageId}, {version}", Text="This is adaptive card", Subtitle = description, Images = new List<CardImage> { new CardImage { Url = $"https://raw.githubusercontent.com/microsoft/botframework-sdk/master/icon.png" } } }; 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 share your card code to test at our end?