Command disabled: backlink

Get message photo

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&params={"id":<long>,
				   "time":<uint>}


2.

svc=messages/get_msg_photo&params={"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.

Parameters

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

Response

Returns photo.

Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam