Skip to content

Commit 87dccda

Browse files
committed
version 1.15.1
1 parent 4c22a28 commit 87dccda

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

docs/api-docs/slack_bolt/request/internals.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ <h1 class="title">Module <code>slack_bolt.request.internals</code></h1>
101101

102102

103103
def extract_team_id(payload: Dict[str, Any]) -&gt; Optional[str]:
104+
if payload.get(&#34;view&#34;, {}).get(&#34;app_installed_team_id&#34;) is not None:
105+
# view_submission payloads can have `view.app_installed_team_id` when a modal view that was opened
106+
# in a different workspace via some operations inside a Slack Connect channel.
107+
# Note that the same for enterprise_id does not exist. When you need to know the enterprise_id as well,
108+
# you have to run some query toward your InstallationStore to know the org where the team_id belongs to.
109+
return payload.get(&#34;view&#34;)[&#34;app_installed_team_id&#34;]
104110
if payload.get(&#34;team&#34;) is not None:
105111
# With org-wide installations, payload.team in interactivity payloads can be None
106112
# You need to extract either payload.user.team_id or payload.view.team_id as below
@@ -413,6 +419,12 @@ <h2 class="section-title" id="header-functions">Functions</h2>
413419
<span>Expand source code</span>
414420
</summary>
415421
<pre><code class="python">def extract_team_id(payload: Dict[str, Any]) -&gt; Optional[str]:
422+
if payload.get(&#34;view&#34;, {}).get(&#34;app_installed_team_id&#34;) is not None:
423+
# view_submission payloads can have `view.app_installed_team_id` when a modal view that was opened
424+
# in a different workspace via some operations inside a Slack Connect channel.
425+
# Note that the same for enterprise_id does not exist. When you need to know the enterprise_id as well,
426+
# you have to run some query toward your InstallationStore to know the org where the team_id belongs to.
427+
return payload.get(&#34;view&#34;)[&#34;app_installed_team_id&#34;]
416428
if payload.get(&#34;team&#34;) is not None:
417429
# With org-wide installations, payload.team in interactivity payloads can be None
418430
# You need to extract either payload.user.team_id or payload.view.team_id as below

docs/api-docs/slack_bolt/version.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_bolt.version</code></h1>
2828
<span>Expand source code</span>
2929
</summary>
3030
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-bolt/&#34;&#34;&#34;
31-
__version__ = &#34;1.15.0&#34;</code></pre>
31+
__version__ = &#34;1.15.1&#34;</code></pre>
3232
</details>
3333
</section>
3434
<section>

slack_bolt/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Check the latest version at https://pypi.org/project/slack-bolt/"""
2-
__version__ = "1.15.0"
2+
__version__ = "1.15.1"

0 commit comments

Comments
 (0)