To get a photo from a driver message, use the command messages/get_message_file:
svc=messages/get_message_file¶ms={"itemId":<uint>, "fileId":<text>}
Name | Description |
---|---|
itemId | unit ID or resource ID* |
fileId | image file ID |
*To get an image from unit messages, you need to submit the unit ID as itemId. To get an image from a resource, you must submit the resource ID as itemId.
fileID param you can get from message JSON
Returns an image.
|