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

Multiple attachment with single callback_id: slack interactive component

Is it possible to have multiple menu attachment and allow users to select each menu before sending back the collated response? return Promise.resolve({ text: `Rate each game`, attachments: [ ...games.map(game => ({ color: "#5A352D", …
AJUdensi
  • 25
  • 2
  • 6
1
vote
1 answer

Permissions for ServiceStack Slack Logging

I'm currently trying out ServiceStack Logging with Slack, and altough it seems to work, I can't change the channels and name of the bot. I think it might have something to do with my Slack configuration, but since I didn't really use Slack before,…
Marcel
  • 917
  • 3
  • 19
  • 48
1
vote
1 answer

How to pass a value from slack channel to `Options Load URL` in Slack App

I have a slack app implemented in node.js where I am dynamically displaying a drop-down menu from an Options Load URL to a channel on the Slack group. The drop down is getting displayed correctly based on the options JSON that I am returning form…
Sumit
  • 2,189
  • 7
  • 32
  • 50
1
vote
1 answer

Calling an API from CronJob in Node gives no response

I am attempting to call the slackbot API from within a CronJob, I want a message to be sent to the channel at a certain time during the day but the method in question does not work when called from within the CronJob. The following is the relevant…
Govind Mohan
  • 109
  • 2
  • 7
1
vote
1 answer

Having trouble posting a child (reply) message to thread in slack channel using the RTM API in google scripts

I created a google script linked to a spreadsheet that is designed to send a message to a slack channel thread when a cell is updated. The messages are posting fine to the channel, but I can't get the 'thread_ts' attribute to post the message as a…
Ian Percy
  • 65
  • 4
1
vote
1 answer

Getting Slack user email address for AWS Lex bot

I am creating a bot in aws-lex and will integrate it with Slack, FB Workplace and Yammer to start with. I need to read the Slack user email address, then validate that against our webservice to ensure the user is registered. This will return some…
1
vote
1 answer

Why doesn't Slack format my message?

I'm trying to format a date in a Slack message via the Web API. I'm using Botkit and thus my fields are being parsed with Mustache, however logs show that the correct formatting is coming out afterwards (therefore I don't think Mustache is the issue…
Adam A
  • 14,469
  • 6
  • 30
  • 38
1
vote
1 answer

Python Traceback: Key Error

I've been learning how to use Python and Slack for my class project. I'm particularly working on slack threads so I can direct message my entire class. import os from slackclient import SlackClient slack_token = os.environ["xoxb-restofapitoken"] sc…
thenewcoder
  • 51
  • 2
  • 7
1
vote
1 answer

Bot identification with slash command in direct message channel

I have custom slack bot called 'rbot'. Also I created a custom slash command '/r-out'. whenever this command is being executed from any channel, my java service is being called with parameters included 'channel_id' and 'channel_name', which I use to…
rsnhah
  • 349
  • 4
  • 15
1
vote
1 answer

App name not showing in outgoing webhook request

when ever I try to get the username from slack outgoing hook its showing default username as slackbot.it doesn't show the username of the actual person in this case Nawaf. as u can see it should save the name "Nawaf" or "test" but it's saving…
0abds
  • 13
  • 3
1
vote
1 answer

Stop all slack interactive buttons from disappearing after clicking one

We have an interactive message with multiple buttons. When one is clicked, all of them disappear. We want the unclicked buttons to remain. We've searched through reams of documentation to no avail. Does anyone know how to achieve this?
eye_mew
  • 8,855
  • 7
  • 30
  • 50
1
vote
1 answer

Is it possible to send many requests asynchronously with Python

I'm trying to send about 70 requests to slack api but can't find a way to implement it in asynchronous way, I have about 3 second for it or I'm getting timeout error here how I've tried to t implement it: import asyncio def…
1
vote
0 answers

Slackbot api can't receive messages

I'm building a SlackBot with NodeJS. I'm currently using this library slackbots, but the problem is that after the initialization, the bot does not appear in the Apps category, but it's inside SlackBot and every time I type a message it returns an…
ste
  • 3,087
  • 5
  • 38
  • 73
1
vote
2 answers

Get all of the users from a specific channel Slack API

I am trying to make a Slack Bot using python, and I have a issue, I am not able to get the users from a specific channel, I only succeed if I take all of the users. Basically I want only those from (eg. random channel). Until now I tried to get the…
JohnnyOnPc
  • 386
  • 1
  • 5
  • 18
1
vote
2 answers

Slack logon trigger

I want to create something in Slack that sends a message (starting by calling someone with '@') to a channel when specific users login. I've checked ifttt and zapier. I also checked the slack api to create something myself, but I couldn't really…
S.J.
  • 91
  • 1
  • 10