def upload_file ( token , channel_name , file_name ) : slack = Slacker ( token ) slack . files . upload ( file_name , channels = channel_name )
github file upload api python
upload file to a channel
def upload_file(token, channel_name, file_name):
    """ upload file to a channel """

    slack = Slacker(token)

    slack.files.upload(file_name, channels=channel_name)