diff --git a/docs/api-docs/slack_bolt/request/internals.html b/docs/api-docs/slack_bolt/request/internals.html index 09a44f0b3..e64d8d39e 100644 --- a/docs/api-docs/slack_bolt/request/internals.html +++ b/docs/api-docs/slack_bolt/request/internals.html @@ -101,6 +101,12 @@
slack_bolt.request.internals
def extract_team_id(payload: Dict[str, Any]) -> Optional[str]:
+ if payload.get("view", {}).get("app_installed_team_id") is not None:
+ # view_submission payloads can have `view.app_installed_team_id` when a modal view that was opened
+ # in a different workspace via some operations inside a Slack Connect channel.
+ # Note that the same for enterprise_id does not exist. When you need to know the enterprise_id as well,
+ # you have to run some query toward your InstallationStore to know the org where the team_id belongs to.
+ return payload.get("view")["app_installed_team_id"]
if payload.get("team") is not None:
# With org-wide installations, payload.team in interactivity payloads can be None
# You need to extract either payload.user.team_id or payload.view.team_id as below
diff --git a/docs/api-docs/slack_bolt/version.html b/docs/api-docs/slack_bolt/version.html
index 38daad01e..33469fed2 100644
--- a/docs/api-docs/slack_bolt/version.html
+++ b/docs/api-docs/slack_bolt/version.html
@@ -28,7 +28,7 @@ Module slack_bolt.version
Expand source code
"""Check the latest version at https://pypi.org/project/slack-bolt/"""
-__version__ = "1.15.0"
+__version__ = "1.15.1"