slack-api

Slack App, token for Web API

喜你入骨 提交于 2020-05-09 09:28:28
问题 For our Slack workspace I am building an app that will use the Web API to send and update messages. However, while the app is installed in our workspace I cannot find the token needed to authenticate my Web API requests. How can I authenticate an App to the Web API ? Thanks 回答1: There are three ways to get a token. During the installation process to a workspace your app will receive the newly created token from the API, which you should store for later use. After installation you can look up

Slack App, token for Web API

混江龙づ霸主 提交于 2020-05-09 09:28:08
问题 For our Slack workspace I am building an app that will use the Web API to send and update messages. However, while the app is installed in our workspace I cannot find the token needed to authenticate my Web API requests. How can I authenticate an App to the Web API ? Thanks 回答1: There are three ways to get a token. During the installation process to a workspace your app will receive the newly created token from the API, which you should store for later use. After installation you can look up

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>"

I want to find thread message and delete it with slack-api

无人久伴 提交于 2020-04-16 02:26:54
问题 Private messages or Direct messages can be found with methods such as im.history and converstation.history . How to find thread message? I want to find thread messages and delete them. 回答1: Finding thread messages You need to use the conversations.history method to retrieve the parent message of a thread. And then the conversations.replies method to retrieve the thread including all thread messages for a parent message. You can detect a parent message by looking on the ts and thread_ts

How to render tables in Slack

对着背影说爱祢 提交于 2020-04-07 06:46:31
问题 I have a slack application that responds with formatted data in mrkdwn but it would be nice to have the information presented in table form like so Am trying to implement this but cant quite find how to format this message. The only close solution i have is taking a screen grab of the table and sending it instead but that affects the applications response time. Any help would be appreciated thanks 回答1: Slack has no built-in support to render tables in messages. Your workaround options are:

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