Upload a image to get image url for sending image message
Since
0.1.0
Async
Example
// For Web usage // get the image blob data from image uri, uri could be local file uri constimageBlob = awaitfetch(imageUri).then(res=>res.blob()) // create formdata and append "type" and "image" keys constimageFormData = newFormData(); imageFormData.append('type', 'file') imageFormData.append('image', imageBlob)
Description
Upload a image to get image url for sending image message
Since
0.1.0
Async
Example