slack_transfer.functions.download.download_file#

slack_transfer.functions.download.download_file(client: DownloaderClientABC, file_id: str, file_name: str, url_private: str) None[source]#

download and save a specified file.

The file will be saved as file_id–file_name. Most parameters are specified by slack and this method isn’t used by users.

Parameters
  • client (DownloaderClientABC) – downloader client. If use this via any DownloaderClient Class, self is automatically set. Thus, ignore this.

  • file_id (str) – file id on slack (for saving and used for identify the correct file by uploader).

  • file_name (str) – fila name for saving.

  • url_private (str) – private url specified by slack