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
12
votes
2 answers

How do you 'mention' users in this hubot cron script for Slack, so they can see it as notification if their notification settings are on?

I have this hubot-cron script set up with heroku for Slack. Works great with one exception. If you '@' someone (mention) in Slack, users will get a notification depending on their notification settings. The way this is written, if put in a users…
user32763
  • 121
  • 1
  • 5
12
votes
2 answers

How to use Hubot in Slack

This seems like a stupid question. I have deployed Hubot to Heroku and set the configs given from Slack per this instruction. However I don't know if Hubot should show up as a member in my team or not. I can post a message via REST and the log says…
Khanetor
  • 11,595
  • 8
  • 40
  • 76
11
votes
1 answer

Answer Jenkins Input from slack

I am working currently on integration between Jenkins to Slack, I want to fully control Jenkins from slack, basically, I want to trigger jobs, and I want to answer input if it exists. for e.g pipeline{ agent any stages{ stage('Test…
UnityNewb
  • 361
  • 1
  • 5
  • 17
11
votes
4 answers

Why does my Slack bot name not accept updates?

I'm at a total loss here and have nowhere to turn. I made an app, set a name as Test App. Working fine. Update the name under Display Information to Dashboard App. Then I click Install your app to your workplace and authorize it. And...…
podcastfan88
  • 970
  • 2
  • 13
  • 28
11
votes
1 answer

Can a Slack bot get the thread id that a slash command was sent from?

Suppose a user types a slash command inside a thread, as opposed to inside the main channel. Is it possible for to include this information in the request sent to the bot? I want the bot to know where exactly the message came from so that it can…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
11
votes
2 answers

How can I share my slack app between my workspaces?

I've just created an app (slash command) and install it in one of my workspaces. But now I want to add the same app to another one. Is it possible without distribution to App Directory?
pavolve
  • 205
  • 4
  • 12
11
votes
4 answers

How to remove Ephemeral Messages

I'm trying to figure out the mechanism to post an ephemeral message to a user and then remove it and replace it with a message visible to all. Similar behavior to giphy in which the Slash Command shows an interactive ephemeral message and creates a…
Szymon Rozga
  • 17,971
  • 7
  • 53
  • 66
11
votes
0 answers

Slack File/Snippet Upload Will Not Expand Inline - Works Externally

When using https://slack.com/api/files.upload to upload a file/snippet to a channel, the snippet successfully shows up in the desired channel, and contains the correct title and filename. However, when clicking the Click to expand inline button,…
David
  • 3,831
  • 2
  • 28
  • 38
11
votes
1 answer

Is there a URL that can be used for a “Share on Slack” button?

I'd like to put a "Share on Slack" button on my website. It would be similar to the buttons we have for "Share on Facebook" and "Share on Twitter". A user would click on it and be able to post some text and a link that we suggest on Slack. I've been…
uthay
  • 123
  • 2
  • 11
11
votes
3 answers

How to upload files to slack using file.upload and requests

I've been searching a lot and I haven't found an answer to what I'm looking for. I'm trying to upload a file from /tmp to slack using python requests but I keep getting {"ok":false,"error":"no_file_data"} returned. file={'file':('/tmp/myfile.pdf',…
arshbot
  • 12,535
  • 14
  • 48
  • 71
11
votes
1 answer

Slack WebHook , Can I send a silent message

My bot sends 2-3 messages at a time as apart of the conversation. This can get annoying when Slack beeps for every message. Is there a way to silence this. Facebook allows me to set a message type to silent to prevent beeps
Chandan Maruthi
  • 183
  • 1
  • 2
  • 9
11
votes
1 answer

Encoding map to JSON using Poison for use with Slack

I'm using Poison to encode a map to JSON that will send it to the Slack API. This is what Poison gives me: "{\"text\":\"changed readme fad996e98e04fd4a861840d92bdcbbcb1e1ec296\"}" When I put that into JSON lint it says it is valid JSON, but Slack…
humdinger
  • 521
  • 1
  • 3
  • 18
11
votes
2 answers

Slack API (files.upload) using NodeJS

EDITED I'm trying to structure the files.upload() API provided via Slack but am having a hard time understanding the correct format. At the moment, I am able to use the API to upload a text file but cannot for the life of me figure out how to…
dannyk
  • 259
  • 1
  • 6
  • 21
11
votes
3 answers

Can I use the Slack API to set the profile picture?

I am running a Slack team for a gaming community. My users all have avatars in the game and I am already using the Slack API to automatically set their Slack user name to their in-game name, so its easier for people to be recognized. In addition I…
Erik Kalkoken
  • 30,467
  • 8
  • 79
  • 114
11
votes
1 answer

How to scale a slack bot to 1000's of teams

To implement a slack bot, i need to deal with 'Real Time Messaging API' of slack. It is a WebSocket-based API that allows you to receive events from Slack in real time and send messages as user. more info: https://api.slack.com/rtm To create a bot…
Kerem
  • 995
  • 7
  • 19