Skip to content

Releases: slackapi/bolt-python

version 1.16.0

Choose a tag to compare

@seratch seratch released this 08 Dec 03:14

New Features

ASGI Adapter

Since this version, a new adapter that implements the ASGI standard is available. The novel adapter brings the following benefits to developers:

  • A builtin way to deploy HTTP apps to production using the ASGI standard
  • Allow bolt to be deployed on a web servers such as daphne, uvicorn and hypercorn without other dependencies
  • A way to create small, lightweight and efficient docker images for bolt python

The adapter is compatible with both App and AsyncApp. You can run both of the following app code by running uvicorn app:api --reload --port 3000 --log-level debug:

from slack_bolt import App
from slack_bolt.adapter.asgi import SlackRequestHandler

app = App()

@app.event("app_mention")
def handle_app_mentions(say):
    say("What's up?")

api = SlackRequestHandler(app)

Here is an asyncio-based app:

from slack_bolt.async_app import AsyncApp
from slack_bolt.adapter.asgi.async_handler import AsyncSlackRequestHandler

app = AsyncApp()

@app.event("app_mention")
async def handle_app_mentions(say):
    await say("What's up?")

api = AsyncSlackRequestHandler(app)

To learn more on the implementation and grab more code examples, please check @WilliamBergamin's pull request adding the feature: #780

Changes

Document / Project Updates

References

version 1.15.5

Choose a tag to compare

@seratch seratch released this 17 Nov 07:35

Changes

  • #769 Fix #768 The client arg in a listener does not respect the singleton WebClient's retry_handlers - Thanks @seratch

References

version 1.15.4

Choose a tag to compare

@seratch seratch released this 17 Nov 02:13

Changes

References

version 1.15.3

Choose a tag to compare

@seratch seratch released this 08 Nov 05:01

Changes

References

version 1.15.2

Choose a tag to compare

@seratch seratch released this 18 Oct 22:58

Changes

  • #741 Fix #738 Add more keyword args to say utility - Thanks @seratch @jacklowrie
  • #736 Add context 'user_id' extraction for 'message_changed' and 'message_deleted' events - Thanks @eddyg

References

version 1.15.1

Choose a tag to compare

@seratch seratch released this 06 Oct 02:41

Changes

  • #734 Fix context.team_id for view interactions in a Slack Connect channel - Thanks @seratch

References

version 1.15.0

Choose a tag to compare

@seratch seratch released this 30 Sep 01:29

Changes

  • #722 Fix #721 Passing a global dict object without channel prop can cause issues among requests - Thanks @seratch @gk-patel
  • #714 Change to create a WebClient per request for safety - Thanks @seratch
  • #726 #727 Bump Sanic, websockets packages to the latest major versions - Thanks @E-Zim @JWZepf

Document Changes

References

version 1.14.3

Choose a tag to compare

@seratch seratch released this 26 Jul 01:49

Changes

Document Changes

  • #686 Add anchors and add contribute link to sidebar - Thanks @wongjas

References

version 1.14.2

Choose a tag to compare

@seratch seratch released this 21 Jul 06:10

Changes

  • #684 Fix #683 IgnoringSelfEvents middleware does not filter out Message sent via response_url - Thanks @seratch @deppe

References

version 1.14.1

Choose a tag to compare

@seratch seratch released this 12 Jul 00:16

Changes

  • #679 Allow lazy function invocation to target version/alias - Thanks @angrychimp
  • #662 Make the flake8 and black settings consistent - Thanks @seratch

Document / Example Updates

  • #665 Fix #664 Django example installation store improvement - Thanks @seratch @DataGreed
  • #659 #661 Change AWS API Gateway to Lambda Function URL in documents - Thanks @Globart1337

References