1

I am trying to create poll system that use message as the database like codelabs.

Since the database is just a chat message, after there are a lot of data, the message is not updated. They called my endpoint successfully but the message is not updated. Maybe there is limit of the response, message, or what?

Based on character limit,I think 4096 Characters is the limit of text message. But what is the limit of card message? Is it based on payload size? or text in the card? or what?

I successfully updated message using more than 35000 characters in the card message(json). But after about 40000 characters the message is failed to updated.

By the way, currently I only tested using update message web hook. So I don't know the the error message, is there is error log for webhook? I will try using rest POST later, but currently I finding out the limit information from trusted source especially google itself.

Muhammad Dyas Yaskur
  • 6,914
  • 10
  • 48
  • 73
  • I tried scouring online resources for the **Google Chat API** but without luck in finding resources specific for **character limits**. Also, I did some tests via `Google Apps Script` *Chat API* Quickstart guide & it seems that `32.6k` is the char limit ***vs*** the `35k` char limit via webhook for card messages, so there's an inconsistent behaviour per the type of tool being used with the **Chat API**. If you have a paid Google Workspace domain account, I think it's better if you reach out to a dedicated [Google Chat expert](https://support.google.com/a/gethelp) to further check on the matter. – SputnikDrunk2 Feb 17 '23 at 01:35
  • @SputnikDrunk2 , thanks, currently I am still waiting for their response. But it seems the char limit is counted by attribute value, not the payload size. I created response payload with minimalize attribute and can sent up to about 32kb, but I also have worked payload that the size is about 40kb that has a lot of card attribute. Hope google support reply with the expected response soon. I asked to them 4 days ago, and every day I only got clarification email. – Muhammad Dyas Yaskur Feb 21 '23 at 23:13

1 Answers1

1

I contacted Google support and provided them with examples of payloads that were both working and not working, each exceeding 35KB in size. In response, they provided me with a message containing only 4000 characters.

Although I believe I provided sufficient details about my question, it's possible that Google support did not fully understand the context of my situation.

But recently I see in message docs they updated the detail:

Cards are usually displayed below the text body of a Chat message, but can situationally appear other places, such as dialogs. Each card can have a maximum size of 32 KB.

So the official docs said 32 KB, but in reality, sometimes I can send more than 35KB card messages.

I researched it, and it seems depend on card attribute that I used. But I am still not sure how they actually count it.

Muhammad Dyas Yaskur
  • 6,914
  • 10
  • 48
  • 73