What's the limit of the data attribute of a Message

We’re attempting to add a text message to a file message and decided to use the data attribute to store the text to be sent with the file but we’re wondering if there’s a char limit on it and what is it.

Does anyone know?

Hey @neme,

The “data” field on a message is limited to 2kb for the entire payload. Message, data, etc.