Forum Discussion

catmanjan2010's avatar
catmanjan2010
Brass Contributor
Oct 17, 2022

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 the message is

 

https://i.imgur.com/SmagXGz.png 

16 Replies

    • catmanjan2010's avatar
      catmanjan2010
      Brass Contributor

      Nivedipa-MSFT develop a command bar integration which returns the following card

       

                  var card = new ThumbnailCard
                  {
                      Title = "title",
                      Subtitle = "subtitle",
                      Text = "text",
                      Images = new List<CardImage> { new CardImage { Url = $"someimagehere" } }
                  };
      
                  return new MessagingExtensionResponse
                  {
                      ComposeExtension = new MessagingExtensionResult
                      {
                          Type = "result",
                          AttachmentLayout = "list",
                          Attachments = new[]
                          {
                              new MessagingExtensionAttachment
                              {
                                  ContentType = ThumbnailCard.ContentType,
                                  Content = card,
                                  Preview = card.ToAttachment()
                              }
                          }
                      }
                  };

       

       

      no matter how long the strings you provide are the see more/see less buttons appear 

      • Nivedipa-MSFT's avatar
        Nivedipa-MSFT
        Icon for Microsoft rankMicrosoft
        catmanjan2010 - Could you please elaborate on command bar integration? Share any document reference?
        Are you trying to implement messaging extension and in preview you are getting this see less and see more options?
        Could you please share how you are doing command bar integration?
        It helps us to repro the issue.

Resources