slack

Pulling historical channel messages python

被刻印的时光 ゝ 提交于 2020-05-08 16:47:49
问题 I am attempting to create a small dataset by pulling messages/responses from a slack channel I am a part of. I would like to use python to pull the data from the channel however I am having trouble figuring out my api key. I have created an app on slack but I am not sure how to find my api key. I see my client secret, signing secret, and verification token but can't find my api key Here is a basic example of what I believe I am trying to accomplish: import slack sc = slack.SlackClient("api

Why rich message created in dialogflow wouldn't appear in a bot tested on Slack?

狂风中的少年 提交于 2020-04-18 05:46:16
问题 I created two answers for the Default Welcome Intent. One in the default one and the other as a text response which shows up in Slack and the other one using Slack as a channel of my bot, clicking on Add Response to start creating responses just for Slack using Dialogflows UI. The second is the following, a default template for polling from the docs: { "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "*Where should we order lunch from?* Poll by <fakeLink.toUser.com|Mark>"

Is it possible to create a slack datetime picker element?

心不动则不痛 提交于 2020-03-22 12:17:00
问题 I need my slack bot to support user input date and time, I know there is DatePicker which I can input a certain date. But I also need time, I am thinking to use a text field to just input string, but it's annoying that users have to deal with format stuff every time. Is there a better way to do this? or is it possible to make a date time picker by myself? edit: Users might input any specific time, any hour or minute. 回答1: The Slack API currently only provides a date picker, not not a datetime

Is it possible to create a slack datetime picker element?

巧了我就是萌 提交于 2020-03-22 12:15:52
问题 I need my slack bot to support user input date and time, I know there is DatePicker which I can input a certain date. But I also need time, I am thinking to use a text field to just input string, but it's annoying that users have to deal with format stuff every time. Is there a better way to do this? or is it possible to make a date time picker by myself? edit: Users might input any specific time, any hour or minute. 回答1: The Slack API currently only provides a date picker, not not a datetime

Which event type is triggered when a slack app is installed onto a workspace for the first time?

痴心易碎 提交于 2020-03-20 06:36:48
问题 I'm trying to build an app that does something when it is first installed onto a workspace, eg: Ping every team member. I couldn't find an event type that gets triggered upon app install: https://api.slack.com/events Is there a way to make this happen? 回答1: I think there might be a misunderstanding of the events concepts here. Events are always directly linked to one specific Slack app and needs to be processed by that very app. There is no such thing as "general" events for things happening

Slack API message.im event is not triggered for other users

我的梦境 提交于 2020-03-16 07:41:28
问题 I am trying to make my app watch for every kind of messages (public/private channels and direct messages) using event subscriptions, no bot. I made my app subscribe to message.channels , message.groups , message.im and message.mpim events. I've setup an endpoint URL with the challenge parameter, and I've authorized and deployed my app. I'm successfully notified when : A message is posted in a public channel A message is posted in a private channel (even if my personal account is not invited

Slack API message.im event is not triggered for other users

ぐ巨炮叔叔 提交于 2020-03-16 07:41:05
问题 I am trying to make my app watch for every kind of messages (public/private channels and direct messages) using event subscriptions, no bot. I made my app subscribe to message.channels , message.groups , message.im and message.mpim events. I've setup an endpoint URL with the challenge parameter, and I've authorized and deployed my app. I'm successfully notified when : A message is posted in a public channel A message is posted in a private channel (even if my personal account is not invited

Slack Events API: Events are posted (multiple times) for responses of own bot user

北城以北 提交于 2020-02-05 04:41:45
问题 I seem to have a problem when responding to incoming messages via the Slack Events API (im.message event). When a user (in this case UQ364CBPF ) sends a message to my App Home, the events API correctly posts an event to my backend (=first line in the logs below). I respond to the event with an HTTP 200 OK, and in my code (see below), I trigger a response from my Bot User. This response is sent correctly in Slack. But : after that, the events API keeps posting events that my own bot user has

How to upload an image to Slack using node.js on Windows?

瘦欲@ 提交于 2020-01-25 08:05:26
问题 I'm trying to upload an image via Slack using node.js and the request package, but not having much luck. Either I receive invalid_array_arg or no_file_data errors from the API. Here is my request: var options = { method: 'POST', url: 'https://slack.com/api/files.upload', headers: { 'cache-control': 'no-cache', 'content-type': 'application/x-www-form-urlencoded' }, form: { token: SLACK_TOKEN, channels: SLACK_CHANNEL, file: fs.createReadStream(filepath) } }; request(options, function (error,

How to upload an image to Slack using node.js on Windows?

空扰寡人 提交于 2020-01-25 08:04:45
问题 I'm trying to upload an image via Slack using node.js and the request package, but not having much luck. Either I receive invalid_array_arg or no_file_data errors from the API. Here is my request: var options = { method: 'POST', url: 'https://slack.com/api/files.upload', headers: { 'cache-control': 'no-cache', 'content-type': 'application/x-www-form-urlencoded' }, form: { token: SLACK_TOKEN, channels: SLACK_CHANNEL, file: fs.createReadStream(filepath) } }; request(options, function (error,