Function slack_flows::upload_file

source ·
pub fn upload_file(
    team_name: &str,
    channel_name: &str,
    file_name: &str,
    file_type: &str,
    file_bytes: Vec<u8>
)
Expand description

Upload a file to channel channel_name of workspace team_name.

file_name is the filename of the uploading file.

file_type refers to file type of Slack.

file_bytes is file’s raw bytes.