In order to get photo from the message you may use one of two ways to call messages/get_msg_photo command:
1.
svc=messages/get_msg_photo¶ms={"id":<long>, "time":<uint>}
2.
svc=messages/get_msg_photo¶ms={"id":<long>, "rendererName":<text>, "layerName":<text>, "index":<uint>}
Attention!
To use the 2nd way you must call renderer/create_image_renderer and renderer/create_messages_layer commands first.
Param | Description |
---|---|
id | unit id |
time | UNIX-time of message with photo |
rendererName | renderer name |
layerName | messages layer name |
index | message index in the array which is created by renderer/create_messages_layer-command |
Returns photo.
|