Questions tagged [slack-api]

Slack is a real-time messaging, archiving and search tool for modern teams. Use this tag for programming questions related to the Slack API including the Web API, the RTM API and the Events API.

Slack is a real-time messaging, archiving and search tool for modern teams.

Use this tag for programming questions related to the Slack API including the Web API and the Events API.

Read more about the Slack API here.

2911 questions
1
vote
1 answer

How to integrate with Slack similar to how Google Drive did?

I had gone through the documentation of Slack on how to develop Slack app. When I installed Google Drive Slack app I saw that the google drive options(create new file, etc) can be accessed when clicking the '+' button on the left side of send…
Anto Joy
  • 135
  • 1
  • 7
1
vote
1 answer

Slack API: channels.create followed by channels.invite/info returns channel_not_found error

I am building a slack bot with botkit and the nodejs slack developer kit. I have a series of api calls, the first to find the users (globalMembers), the second to create a channel based on an array of channels, and a final call to add each user to…
Eron Salling
  • 185
  • 2
  • 5
1
vote
2 answers

Microsoft botframework and slack channel

How do I get the url/team name from a bot framework activity/context? Currently I can get the TeamId but can that be translated into the text string for the teams name? For example testteam.slack.com, how can I extract the "testteam" part from bot…
Dizzle
  • 1,026
  • 13
  • 26
1
vote
1 answer

How to message several people with a slack bot without a channel?

I've been working on a slack bot following Tutorial1 and Tutorial2 using python slackclient. I need to create a bot that can chat with several people a the same time but in a private chat, not in a groupal channel. I've tried running the bot's code…
1
vote
0 answers

Node Slack API file upload saying no_file_data when using fs.createReadStream

The following code: const Slack = require('slack'); const fs = require('fs'); const token = 'super-secret-token-my-brah'; const slack = new Slack({ token }); slack.files.upload({ channel: 'general', file:…
TVG
  • 259
  • 3
  • 8
1
vote
1 answer

Node-slack web api: chat.delete returns channel_not_found for all channels although channels.list returns all channels

I have been working on a simple chat bot using the slack-node web api and botkit, but am having some trouble using the chat.delete functionality. I am able to list out all of my channels properly, seeing their channel Id's and names, but when I try…
Eron Salling
  • 185
  • 2
  • 5
1
vote
2 answers

Slack API Laravel using spatie/laravel-slack-slash-command package formatting errors

I am using a package spatie/laravel-slack-slash-command and the code below works fine except for this condition if the user inputs no argument, there's an error being caught because there's a Exceptions\InvalidInput.php class in the package, I would…
David Dacruz
  • 137
  • 2
  • 16
1
vote
1 answer

How to call any other event in the Slack API besides [message]?

I'm playing around with trying to make a bot in the slack channel so that I can understand how the whole process works. I have 2 questions. [1st question solved]First, I know how to send a message if someone said anything but I can't figure out how…
Cdhippen
  • 615
  • 1
  • 10
  • 32
1
vote
0 answers

Send file via Buzz\Browser

I'm using Symfony with Buzz\Browser vendor, I need to send file to my Slack channel via POST. This's the Slack method that I should call: Slack file upload This's my code: public function uploadFile(array $channels, File $file, $initial_comment =…
Mintendo
  • 557
  • 1
  • 8
  • 24
1
vote
1 answer

Interactive message button to copy contents to clipboard

my bot returns some contents and I want to copy that content over to the clipboard. Obviously, the user can select the content and copy. But, from a UI perspective since this is a slack BOT, I was thinking about adding an interactive button - "copy"…
Gandalf spade
  • 11
  • 1
  • 3
1
vote
1 answer

Slack API - Number of messages sent by a user

i am trying to use the API to get the total number of messages posted by each user during a certain period. Ideally, I would be able to break the number of messages by the type of channel (public, private, direct messages.) Is this possible? I am…
Irina
  • 1,333
  • 3
  • 17
  • 37
1
vote
1 answer

Slack bot can share file but not post message while not in channel

I am especially new to slack web api and bots. My question is what is the reason stands behind the inability of bot users to post messages into a channel, until they are implicitly invited, despite the fact that on behalf of a bot we can upload a…
hdmiimdh
  • 384
  • 6
  • 19
1
vote
1 answer

Can't reply in the Slack thread making http post request with JSON

I want to reply in a slack thread via Slack API. I have an object. var msg = { text: 'test', thread_ts: '1513168789.000263' // it's right ts, I have checked } I make the request request.post({ method: 'post', body: msg, json: true, …
Amir Abdullaev
  • 141
  • 1
  • 1
  • 8
1
vote
1 answer

Link formatting not working

On the Slack website, I can format a message like this: { "text": "" } And in the message it will appear like this: link to google But I am trying to write a bot and those links aren't working. Using my…
Matt Burland
  • 44,552
  • 18
  • 99
  • 171
1
vote
1 answer

Slack: How can I remove a message's action buttons without Slack appending "edited"

I have a Slackbot message that has action buttons (see here). When a user click's a button, we perform a bit of work on our server and then use chat.update to remove the action buttons and update the message's footer: removeButtons(reply, convo,…