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
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
wxwork_obj | True | expression | WxWorkObject | Enterprise WeChat object created using the WxWork. Create command |
file | True | path | ''' 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)