Is it theoretically possible to send a message exceeding 40KB in Teams bot?

石川 敦己 170 Reputation points
2025-02-03T13:24:04.6633333+00:00

Hello,

I am using the following endpoint to send messages to a Teams bot, including multiple Adaptive Cards:

Bot Framework REST API - Send to Conversation

Suppose I include five Adaptive Cards, each 10KB in size, in the attachments field (resulting in a total of 50KB).

Would this be theoretically possible?

According to the following documentation, the message size limit is 40KB. If this is correct, would exceeding this limit result in a 413 error?

Format your bot messages - Teams

I ask this because I have previously tested sending messages exceeding the limit and did not receive an error. Rather than empirical verification, I would like to confirm the theoretical expectation.

I appreciate your response.

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,536 questions
{count} votes

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.