cancelFileTransferByAgent()

Indicates that a file transfer request has been canceled by an agent. Available in API version 31.0 or later.

NameTypeDescription
chatKeyStringThe chat key for the chat for which the agent canceled the file transfer request.
callbackfunctionJavaScript method that is called when the method is completed.

This method is asynchronous so it returns its response in an object in a callback method. The response object contains the following properties:

NameTypeDescription
successBooleantrue if canceling the file transfer request was successful; false if canceling the file transfer request wasn’t successful.