Skip to content

Commit 3610592

Browse files
committed
version 3.19.3
1 parent b32cebb commit 3610592

File tree

7 files changed

+1367
-290
lines changed

7 files changed

+1367
-290
lines changed

docs/api-docs/slack_sdk/models/blocks/block_elements.html

Lines changed: 826 additions & 193 deletions
Large diffs are not rendered by default.

docs/api-docs/slack_sdk/models/blocks/index.html

Lines changed: 528 additions & 91 deletions
Large diffs are not rendered by default.

docs/api-docs/slack_sdk/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_sdk.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-sdk/&#34;&#34;&#34;
31-
__version__ = &#34;3.19.2&#34;</code></pre>
31+
__version__ = &#34;3.19.3&#34;</code></pre>
3232
</details>
3333
</section>
3434
<section>

docs/api-docs/slack_sdk/web/internal_utils.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ <h1 class="title">Module <code>slack_sdk.web.internal_utils</code></h1>
3535
import warnings
3636
from asyncio import Future
3737
from http.client import HTTPResponse
38+
from io import IOBase
3839
from ssl import SSLContext
3940
from typing import Any, Dict, Optional, Sequence, Union
4041
from urllib.parse import urljoin
@@ -342,8 +343,14 @@ <h1 class="title">Module <code>slack_sdk.web.internal_utils</code></h1>
342343
if isinstance(file, str): # filepath
343344
with open(file.encode(&#34;utf-8&#34;, &#34;ignore&#34;), &#34;rb&#34;) as readable:
344345
data = readable.read()
345-
else:
346+
elif isinstance(file, bytes):
346347
data = file
348+
elif isinstance(file, IOBase):
349+
data = file.read()
350+
if isinstance(data, str):
351+
data = data.encode()
352+
else:
353+
raise SlackRequestError(&#34;file parameter must be any of filepath, bytes, and io.IOBase&#34;)
347354
elif content is not None:
348355
if isinstance(content, str):
349356
data = content.encode(&#34;utf-8&#34;)

docs/real_time_messaging.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
<span id="real-time-messaging"></span><h1>RTM Client<a class="headerlink" href="#rtm-client" title="Permalink to this heading"></a></h1>
216216
<section id="real-time-messaging-rtm">
217217
<h2>Real Time Messaging (RTM)<a class="headerlink" href="#real-time-messaging-rtm" title="Permalink to this heading"></a></h2>
218-
<pre class="literal-block"><strong>rtm.start method deprecation after Nov 30th, 2021.</strong> see details <a class="reference external" href="https://api.slack.com/changelog/2021-10-rtm-start-to-stop">here</a></pre>
218+
<pre class="literal-block"><strong>rtm.start method has been deprecated for apps created after Nov 30th, 2021.</strong> See details <a class="reference external" href="https://api.slack.com/changelog/2021-10-rtm-start-to-stop">here</a></pre>
219219
<p>The <a class="reference external" href="https://api.slack.com/rtm">Real Time Messaging (RTM) API</a> is a WebSocket-based API that allows you to receive events from Slack in real time and send messages as users.</p>
220220
<p>If you prefer events to be pushed to your app, we recommend using the HTTP-based <a class="reference external" href="https://api.slack.com/events-api">Events API</a> along with <a class="reference external" href="https://api.slack.com/socket-mode">Socket Mode</a> instead. The Events API contains some events that aren’t supported in the RTM API (like <a class="reference external" href="https://api.slack.com/events/app_home_opened">app_home_opened event</a>), and it supports most of the event types in the RTM API. If you’d like to use the Events API, you can use the <a class="reference external" href="https://github.com/slackapi/python-slack-events-api">Python Slack Events Adaptor</a>.</p>
221221
<p>The RTMClient allows apps to communicate with the Slack Platform’s RTM API.</p>
@@ -275,7 +275,7 @@ <h2>Real Time Messaging (RTM)<a class="headerlink" href="#real-time-messaging-rt
275275
</pre></div>
276276
</div>
277277
<p><strong>rtm.start vs rtm.connect (v1 client)</strong></p>
278-
<pre class="literal-block"><strong>rtm.start method deprecation after Nov 30th, 2021.</strong> see details <a class="reference external" href="https://api.slack.com/changelog/2021-10-rtm-start-to-stop">here</a></pre>
278+
<pre class="literal-block"><strong>rtm.start method has been deprecated for apps created after Nov 30th, 2021.</strong> See details <a class="reference external" href="https://api.slack.com/changelog/2021-10-rtm-start-to-stop">here</a></pre>
279279
<p>By default, the RTM client uses <code class="docutils literal notranslate"><span class="pre">rtm.connect</span></code> to establish a WebSocket connection with Slack. The response contains basic information about the team and WebSocket url.</p>
280280
<p>Read the <a class="reference external" href="https://api.slack.com/methods/rtm.connect">rtm.connect docs</a> and the <a class="reference external" href="https://api.slack.com/methods/rtm.start">rtm.start docs</a> for more details. Also, note that <code class="docutils literal notranslate"><span class="pre">slack.rtm_v2.RTMClient</span></code> does not support <code class="docutils literal notranslate"><span class="pre">rtm.start</span></code>.</p>
281281
<p><strong>RTM Events</strong></p>

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

slack_sdk/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-sdk/"""
2-
__version__ = "3.19.2"
2+
__version__ = "3.19.3"

0 commit comments

Comments
 (0)