slack

Combine message menu and message button in slack

▼魔方 西西 提交于 2019-12-12 20:17:21
问题 I want to combine message menu and message button in my slack app.This is the workflow I am trying to achieve. 1) User fires a slack slash command to display the menu. This menu will have one dropdown and three buttons. This I am able to achieve. 2) I want user to select an option from dropdown and press any of the action button.Then only the action should be triggered Problem is that when i select any option from dropdown, it triggers the action. I do not want the action to be triggered this

Upload a file to slack with files.upload in PHP

旧街凉风 提交于 2019-12-12 18:17:57
问题 I'm trying to use the files.upload method to upload a file to Slack, but I only got a blank message so far. This is the code, I found this script on the internet, but it's not working. <?php include '../connessione.php'; $slacktoken = "myToken"; //this is not the real token ofc $header = array(); $header[] = 'Content-Type: multipart/form-data'; $file = new CurlFile('../tmp/slack_icon.png', 'image/png'); $postitems = array( 'token' => $slacktoken, 'channels' => "test_channel", 'file' => $file,

Send Hyperlink to call an api in Slack message

怎甘沉沦 提交于 2019-12-12 18:04:55
问题 my question is very simple. I want to send a link/button with a slack message and when receiver click on that link it calls an api to perform some task. here is my code: $msg = "hey! click to approve <a href='http://api2342.in/API/api.php'>Approve</a>"; self::sendSlackMessage($slackId,$msg); I have this sendSlackMessage API to send a message to the Slack user which receives two parameters, and its working fine. I just need to figure out how to send a link to call an API to perform a certain

How to find (and possibly delete) personal files

℡╲_俬逩灬. 提交于 2019-12-12 16:04:49
问题 Slack API has a method files.list , however this seems to list only files shared on public channels, not in private conversations. As a team admin I would like to delete old files (I don't need to see them). I could ask team members to delete them manually, but this is a very slow and laborious process for them. BTW, I am using a script based on this one 回答1: I am afraid that is not possible. Even as primary owner (the highest possible level) a user has no access to private channels or direct

Delete interactive message (command response) just with Slack Commands API

梦想的初衷 提交于 2019-12-12 12:36:57
问题 So I'm building a slack app in Node that responds to some user commands. It usually responds with an interactive message that has some attachments and buttons. For certain buttons, I return different types of texts or other attachments, but I also want to have a "Cancel" button that would basically cancel the current command - delete it from the user's chat. The thing is that I want to do it without having to request the chat:write:user scope or without having to create a bot . By asking for

“Sign in with Slack” keeps prompting user for permission every time

久未见 提交于 2019-12-12 11:25:15
问题 I'm doing the Slack integration for my website, including allowing users to log in using the "Sign in with Slack" button. Ideally I would expect it only asks users to grant the identity.* permissions once, then next times when they click "Sign in with Slack", the authorization screen should only flashes then redirect to the next step (like with Facebook for example), but it keeps showing the authorization screen and users have to click the "Continue" button to grant the permission again and

How to set Slack reminder for a range of dates

和自甴很熟 提交于 2019-12-12 10:44:28
问题 For example, I want a reminder to appear each day in a specific channel for the days I am off. Something like: /remind #channel @me will be on PTO 1/1/2016 until 1/5/2016 And then each day in that range a reminder will appear in the channel saying the range of dates. What would be the command/syntax to achieve that or as close to that as possible? 回答1: The following worked. /remind #channel "@me will be on PTO from 1/1/2016 until 1/5/2016." every weekday until 1/5 It results in the following

How do I receive only the messages that are direct messages to my bot user?

ε祈祈猫儿з 提交于 2019-12-12 06:47:07
问题 I have successfully setup my slack bot app, have enabled events etc. I want to receive any direct messages that the members of my slack team send to my bot. For this, I have only enabled Bot Events and No Team Events like below However, I do not get any event on my webhook on this setting. If I enable message.im event under Team Events, then I start getting events. But then, I get every message that the user (who has installed the app) sends to any other user in the team. How do I get only

Creating a channel in Slack using Ruby [closed]

痴心易碎 提交于 2019-12-12 06:42:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm trying to create a channel using the https://github.com/dblock/slack-ruby-client gem. But it keeps on coming up with an error ":Name missing" Can anyone give me a code snippet for creating channels with Slack please. Dave 回答1: Just looking at the source, you would do: client = Slack::Web::Client.new(token:

slack github integration doesn't find wiki repository

大憨熊 提交于 2019-12-12 04:02:32
问题 I'm trying to add a GitHub slack integration (https://slack.com/apps/A0F7YS2SX-github) that will post whenever a change is made to our repository's GitHub wiki. I can log in to GitHub just fine and I see my repositories, but I don't see the repository for the wiki. The wiki is an actual repository; I can clone it and view its history and everything. For example, if my repository were called myRepo, the wiki would be myRepo.wiki. But I only see myRepo in the list of repositories the