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
0 answers

Trigger Jenkins job via Slack according to conversation

I am working on an automated change request (CR) validator as a Jenkins job. The job receives the CR id as a parameter and validates the fields of the CR in Jazz (RTC). The outcome of the Jenkins job is successful if the CR is in "good state" or…
MisterStrickland
  • 947
  • 1
  • 15
  • 35
1
vote
1 answer

Read "next" user message with Slack app

Context: I work at a small MSP and I've created a bot that direct messages employees when one of their tickets goes overdue. The message has a few buttons that allow the user to request an extension on the ticket. Once a button is clicked, our…
Graham Bewley
  • 195
  • 3
  • 13
1
vote
1 answer

Unable to send attachments using chat.postMessage

I'm working on automating a process where I work at a Managed Service Provider. I am trying to send a message to a user when they have a help desk ticket that goes overdue. I am triggering the following PHP script when that happens (simplified for…
Graham Bewley
  • 195
  • 3
  • 13
1
vote
1 answer

Slack API channels.archive doesn't find channel

I can succesfully create a new channel. When I want to move my channel to the archive I get a response with as error code channel_not_found while i'm 100% sure my channel name is correct. Does anyone know why I receive this? I'm using slack-node in…
stef morren
  • 289
  • 2
  • 5
  • 15
1
vote
2 answers

Slack interactive message, click on button or menu to open a link

I have a snooze select button on my message attachment. actions: [ { name: 'snoozeTime', text: 'Select a time...', type: 'select', options: [ { text: '1 Hour', value: '1hour' }, …
Quy Tang
  • 3,929
  • 1
  • 31
  • 45
1
vote
1 answer

Python: format string as table in non-monospace font

I'm working on a Slack Webhooks integration with Slack Slash commands. My script flow is as following: Getting a slash command request from a Slack. Processing the data (in a form of dict or Pandas DataFrame) Posting back to the channel using the…
DR29
  • 121
  • 2
  • 12
1
vote
1 answer

Microsoft Bot Framework integration with Slack is broken

I am developing chatbot for Slack using Microsoft Bot Framework. The Web app is hosted on azure. We have few installations. Everything worked fine before this morning when I saw that new bot just didn't respond (the old one is still working).…
Andrey Stepanov
  • 311
  • 2
  • 11
1
vote
1 answer

How to post formatted message into a channel with Slack API

I have a json formatted message like this, I want to post this message into Slack with Slack postMessage API. Pasting the json string into text section would not work, how/where should I input that? Thanks
biao
  • 311
  • 3
  • 10
1
vote
0 answers

Unable to open WebSocket in ES5 Slack API

Hello I was trying to create a slack bot of mine. I was successful when I was working with plain JavaScript, but I decided to switch to ES5 for certain reasons. Though the client starts the rtm but is unable to authenticate using the websockets. I…
Trishant Pahwa
  • 2,559
  • 2
  • 14
  • 31
1
vote
2 answers

Slack API - Create a button that returns text from a variable

I am creating a Post.message to Slack through Python and want to add in a button feature. I want the button to provide a list of serial numbers that are represented by low2 = low["serials"]. This is the code I currently have and it adds the button…
W. Stephens
  • 729
  • 5
  • 17
  • 31
1
vote
0 answers

Attachments not working with logstash output slack plugin

My Grok filter is this: grok { match => ["message", "%{TIMESTAMP_ISO8601} Thread:'(?[^']+)' Level:'%{LOGLEVEL:log-level}' Message:%{GREEDYDATA:information}"] And this works fine in output: slack { url =>…
Amogh
  • 305
  • 3
  • 14
1
vote
2 answers

How can I deactivate an slack user via slash-commands?

I want to create a bot that deactivates users under some criteria. I can not find any slash command that deactivates user accounts for free slack groups. I only see the option to kick from channel. For paid versions the following can be…
Alexander Meise
  • 1,328
  • 2
  • 15
  • 31
1
vote
2 answers

Slack Slash commands - Not working in private channels or direct messages

I have programmed several slash commands that show a response in public channels without any problems, but they don't show any response in private channels or direct messages. As shown below, I am using the in_channel response type. Is there any…
Irina
  • 1,333
  • 3
  • 17
  • 37
1
vote
0 answers

Slack - Getting Slack user ID by username

I am working on a slash command in PHP and have the username, but I need the user id in order to make some API calls. I am aware of the users.list method, but that's a lot of extra information I don't need. Is there a more efficient way to do it,…
Irina
  • 1,333
  • 3
  • 17
  • 37
1
vote
1 answer

slack API users.identity not working

I am trying to get my python slack bot to work. I want to get the info of the user who is trying to make API calls using users.identity API. However, I was unable to make it to work. Any tips and idea why? This is the error I get. Thanks in…
J.Titor.0
  • 79
  • 12
1 2 3
99
100