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
10
votes
1 answer

Accessing Slack API with Chrome Authentication Token xoxc-

So, lately I've been playing around with the Slack API and I kind of figured out how to access the API using the keys available when I use Slack in Chrome. I'm able to access the conversations.history method and download messages. Anyone with API…
dannylee8
  • 505
  • 7
  • 17
10
votes
4 answers

Python can't find installed module ('slackclient')

I am trying to build a slack bot for learning purpose but when I run the script get this error ModuleNotFoundError: No module named 'slackclient' I tried install and uninstall and then re-install with python -m pip install slackclient import…
enestatli
  • 535
  • 1
  • 9
  • 19
10
votes
2 answers

How to post a message via Slack-App from c#, as a user not App, with attachment, in a specific channel

I can not for the life of me post a message to another channel than the one I webhooked. And I can not do it as myself(under my slackID), just as the App. Problem is I have to do this for my company, so we can integrate slack to our own Software. I…
Fabian Held
  • 373
  • 1
  • 6
  • 17
10
votes
1 answer

Slack bot send an image

I am developing a bot for slack. I am implementing a notification functionality, where it will send a notification for every one hour. Currently, I am sending normal text in notification, but I need to send an image along with text. Is it possible…
Nagarjuna Reddy
  • 4,083
  • 14
  • 41
  • 85
10
votes
1 answer

Slack create custom embedded video or audio player... similar to the Youtube integration

Is it possible to create a custom website integration with Slack, similar to what Youtube has done? I have a webpage that consists of a standalone media player. I'd like Slack users to be able to use my media player directly within a slack convo…
10
votes
3 answers

How to add @ mention in response to slash commands in slack

How can I make slack parse @someone mentions as links to the user instead of plaintext. I've been reading slack documentation on message formatting but still haven't figured it out. Here's an example of what I'm getting now: { "text": "*username:*…
Diego Allen
  • 4,623
  • 5
  • 30
  • 33
10
votes
1 answer

How do i convert the simple system 24 hour format to Timestamp

I want to retrieve slack messages pasted between 4 pm to 4:30 pm daily from a certain slack channel. Slack provides a Web API for a channel as https://api.slack.com/methods/channels.history The above API provides 2 attributes as latest & oldest ,…
Nishant Singh
  • 3,055
  • 11
  • 36
  • 74
10
votes
1 answer

How to Send Periodic Ephemeral ("Hidden") Messages From a Slack Bot

I am interested in writing a Slack bot that will periodically send "ephemeral" messages to users. Ephemeral messages are messages that appear within a channel, but can only be seen by a particular user, like the responses to bot "slash commands"…
internet user
  • 103
  • 1
  • 5
10
votes
5 answers

Slack PHP API - Avoid Timeout error

I am trying to use Slack Custom command and not pretty sure how to use delayed messages since the Yoda Speak External API takes more than 3 seconds to respond. I have done the following: Sent the slack command /Yoda in my case and received the…
Vimalnath
  • 6,373
  • 2
  • 26
  • 47
10
votes
0 answers

Slack: How to track when team members log out?

I'm using Slack's Real Time Messaging API to track when my team members log into or out of Slack. Using the presence_change and manual_presence_change events I am notified when someone explicit changes their presence state (or if they're…
RobertJoseph
  • 7,968
  • 12
  • 68
  • 113
10
votes
2 answers

slack api rtm.start missing_scope needed client

I have get access token and when I try to post rtm.start, I am getting below error: { error = "missing_scope"; needed = client; ok = 0; provided = "identify,read,post"; } I have set the scope to read,post,identify in authorize API.…
yong ho
  • 3,892
  • 9
  • 40
  • 81
9
votes
1 answer

How can I use custom slash commands within threads in Slack

I've setup a custom slash commands /news witihn slack and it works fine but I can't find a way to use trigger slash commands via threads. I get the following error: /news is not supported in threads. Sorry! i've looked through the slack api…
Skywalker
  • 4,984
  • 16
  • 57
  • 122
9
votes
3 answers

Sending message to different channel via slack webhook fails

I'm not sure if I am understanding the way how to use webhooks quite right, but: I want to send messages in different channels or to different users (not at once), without being involved in that conversation. My problem: I can only create webhooks…
mrvnklm
  • 1,348
  • 2
  • 10
  • 19
9
votes
1 answer

Slack bot, register click on message button

I am trying to build a Slack bot in Python. I want my bot to send a message with interactive buttons on it, and then based on which the user clicks on, run a function in Python. I do not seem to find how to do this. My code now look like…
tcas
  • 133
  • 2
  • 8
9
votes
2 answers

How to return nothing in AWS API Gateway?

Sorry for this dumb question, but I tried everything. I have a AWS API Gateway from a Lambda function that I need to return only HTTP Code 200 with no body. If the lambda returns a empty string, the body shows "" (2 quotation marks). If the lambda…
TNT
  • 819
  • 1
  • 8
  • 28