Adaptive Card Conversation Limit Issue in Teams via Bot Framework Connector

lakshmi 756 Reputation points
2024-09-27T13:36:58.9+00:00

We are sending an adaptive card containing text blocks, column sets, and action sets via the bot framework. We are sending the adaptive card to the Teams channel. Below is an example of such an adaptive card.

User's image

In some cases, we wanted to send up to 50 conversations, adding them as a column set in the adaptive card, and sending it to the Teams channel using the bot framework connector client.

Also, we restrict the conversation count to 20900 in the code, we can still add over 30 conversations to the adaptive card, but Teams only displays 15 to 20 conversations once its send to the teams' channel.

Is there a character limit for sending adaptive cards via the bot connector client?

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,447 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 3,051 Reputation points Microsoft Vendor
    2024-12-27T07:16:23.6166667+00:00

    @lakshmi - The bot message size limit is 40 KB. If the bot message size limit exceeds 40 KB, bot receives a 413 status code (RequestEntityTooLarge), which contains the error code MessageSizeTooBig. The bot message size limit includes the entire message payload encoded as UTF-16 and doesn't include Base64 encoded images.
    User's image

    Ref Doc: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/format-your-bot-messages

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.