Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

How can set the message head data? #9

Closed
cfanboy opened this issue Jun 23, 2021 · 2 comments
Closed

How can set the message head data? #9

cfanboy opened this issue Jun 23, 2021 · 2 comments

Comments

@cfanboy
Copy link

cfanboy commented Jun 23, 2021

I want to send a Drafty type message, such as Image via SDK, but cannot find where to set it

@rxmoein
Copy link
Collaborator

rxmoein commented Jun 23, 2021

Hello,
This is not possible right now. If you need to send an image you can define a custom data structure that contains the image base64 data or url and parse your structure when reading the message.
The message content is not supposed to be only string and it's dynamic. So you can pass serialized json or a Map as your message content.

@cfanboy
Copy link
Author

cfanboy commented Jun 25, 2021

got it, thanks a lot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants