Skip to content

Attach File Slack Bot #620

@vcardamone

Description

@vcardamone

Description

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • [x ] question
  • documentation related
  • [x ] testing related
  • discussion

Requirements (place an x in each of the [ ])

  • [x ] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x ] I've read and agree to the Code of Conduct.
  • [x ] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

slackclient version: v2

python version: 3.7

OS version(s): Windows 10

Steps to reproduce:

  1. I ran the code below:
    import os
    import slack

slack_token = os.environ["SLACK_API_TOKEN"]
client = slack.WebClient(token=slack_token)
client.files_upload(
channels="C3UKJTQAC",
file="test.csv",
title="Test upload",
filetype="CSV"
)
2.It runs with no error message but nothing posts to the slack channel
3.

Expected result:

What you expected to happen
I expected the file to be attached to the slack channel. The bot scopes I have are channels:read, chat:write, files:read, files:write, and users:read.

Actual result:

What actually happened
The code ran without error but nothing was posted to the slack channel.

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionM-T: User needs support to use the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions