python-slack-sdk
python-slack-sdk copied to clipboard
Slack Developer Kit for Python
It seems from practical testing with the slack block kit builder that the (new?) max number of elements allowed in an ActionsBlock is 25, rather than 5 as previously enforced...
We are refitting to use the v2 RTM client and still observe some stale Django connection issues. Ie, new DB connections are made for each message that gets processed (thread),...
Slack API supports having "blocks" within "attachments". This can be confirmed in the documentation [here](https://api.slack.com/reference/messaging/attachments#legacy_fields) and via the builder web tool [here](https://app.slack.com/block-kit-builder/). But through this lib it seems to result...
### Reproducible in: ```python # test.py import sys # Enable debug logging import logging from slack_sdk import WebClient def uploadToSlackChannel(): client = WebClient( token="you-slack-token", timeout=300) try: filepath = "file-to-upload" response...
I have seen mentions of unit tests in some issues like this one: https://github.com/slackapi/python-slack-sdk/issues/1052 But the documentation does not mention how we can write unit tests in our code if...
filepath = "test.file" # about 300Mb r = client.files_upload(file=open(filepath, "rb"), channels="MYCHANNELID") print(r.data) error: slack_sdk.errors.SlackApiError: The request to the Slack API failed. (url: https://www.slack.com/api/files.upload) The server responded with: {'ok': False, 'error':...
Now that we have a built-in retry handler for rate limited errors in v3.9, retrying a request after getting rate-limited is much easier than before. * https://github.com/slackapi/python-slack-sdk/releases/tag/v3.9.0 * https://github.com/slackapi/python-slack-sdk/blob/v3.9.1/slack_sdk/http_retry/builtin_handlers.py#L52-L91 *...
I'm migrating from `FileInstallationStore` to `SQLAlchemyInstallationStore` for storing credentials and don't want to store old installation records when the app is reinstalled. With `FileInstallationStore` I used the flag for disabling...
[Current tools docs](https://slack.dev/python-slack-sdk/real_time_messaging.html) could be updated to reflect changelog entry regard `rtm.start` method deprecation for apps created after Nov 30th, 2021. ### The page URLs - https://slack.dev/python-slack-sdk/real_time_messaging.html ### Requirements Please...
Add support for the following `apps.manifest.*` methods: `apps.manifest.create` `apps.manifest.validate` `apps.manifest.update` `apps.manifest.delete` `apps.manifest.export` ### Category (place an `x` in each of the `[ ]`) - [x] **slack_sdk.web.WebClient (sync/async)** (Web API client)...