Convenience function to create a new AccountChannelRequest object, which will yield a FileTransfer channel to send a file to a contact.
After creating the request, you will also need to set the "target" of the channel by calling one of the following functions:
- set_target_contact - set_target_id
account |
a Account |
filename |
a suggested name for the file, which should not contain directories or directory separators (for example, if you are sending a file called /home/user/monkey.pdf, set this to monkey.pdf) |
mime_type |
the MIME type (content-type) of the file; a |
size |
the file's size in bytes |
user_action_time |
the time of the user action that caused this request, or one of the special values
USER_ACTION_TIME_NOT_USER_ACTION or |
a new AccountChannelRequest object |