Skip to main content
Version: v6.5.0

Create image message

Command Description

Create a picture message that can be sent to employees or in groups in the future

Command Prototype

MessageObject = WxWork.CreateImageMessage(wxwork_obj, file)

Command parameter

parametermandatorytypedefault valueInstructions
wxwork_objTrueexpressionWxWorkObjectEnterprise WeChat object created using the WxWork. Create command
fileTruepath""Specify the path of an image file that supports JPG/PNG formats and does not exceed 10MB

Return result

Return_array, Assign the result of running the command to this variable.

Run instance

/********************************* Create Image Message **************************************
Command Prototype:
MessageObject = WxWork.CreateImageMessage(wxwork_obj, file)
Input Parameters:
wxwork_obj -- WeChat Work object. Note: WeChat Work object created using the WxWork.Create command.
file -- Image file. Note: Specify the path of an image file. Supports JPG/PNG formats, not exceeding 10MB.
Output Parameters:
return_array -- Variable to store the output of the function call.
Important Notes:
None
********************************************************************************/
Dim return_array = ""
MessageObject = WxWork.CreateImageMessage(WxWorkObject, "")
TracePrint(return_array)