Skip to main content
Version: v6.5.0

Create file message

Command Description

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

Command Prototype

MessageObject = WxWork.CreateFileMessage(wxwork_obj, file)

Command parameter

parametermandatorytypedefault valueInstructions
wxwork_objTrueexpressionWxWorkObjectEnterprise WeChat object created using the WxWork. Create command
fileTruepath''' C:\Users'''Specify a file path with a file size not exceeding 20MB

Return result

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

Run instance

/********************************* Create File Message **************************************
Command Prototype:
MessageObject = WxWork.CreateFileMessage(wxwork_obj, file)
Input Parameters:
wxwork_obj -- WeChat Work object. Note: WeChat Work object created using the WxWork.Create command.
file -- File path. Note: Specify the path of a file. The file size should not exceed 20MB.
Output Parameters:
return_array -- Variable to store the output of the function call.
Important Notes:
None
********************************************************************************/
Dim return_array = ""
MessageObject = WxWork.CreateFileMessage(WxWorkObject, '''C:\Users''')
TracePrint(return_array)