aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon/Mastodon.py')
-rw-r--r--mastodon/Mastodon.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index edb67f8..b19c3de 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -2188,6 +2188,13 @@ class Mastodon:
2188 id = self.__unpack_id(id) 2188 id = self.__unpack_id(id)
2189 return self.__stream("/api/v1/streaming/list?list={}".format(id), listener, run_async=run_async, timeout=timeout, reconnect_async=reconnect_async, reconnect_async_wait_sec=reconnect_async_wait_sec) 2189 return self.__stream("/api/v1/streaming/list?list={}".format(id), listener, run_async=run_async, timeout=timeout, reconnect_async=reconnect_async, reconnect_async_wait_sec=reconnect_async_wait_sec)
2190 2190
2191 @api_version("2.6.0", "2.6.0", __DICT_VERSION_STATUS)
2192 def stream_direct(self, listener, run_async=False, timeout=__DEFAULT_STREAM_TIMEOUT, reconnect_async=False, reconnect_async_wait_sec=__DEFAULT_STREAM_RECONNECT_WAIT_SEC):
2193 """
2194 Streams direct message events for the logged-in user, as conversation events.
2195 """
2196 return self.__stream('/api/v1/streaming/direct', listener, run_async=run_async, timeout=timeout, reconnect_async=reconnect_async, reconnect_async_wait_sec=reconnect_async_wait_sec)
2197
2191 ### 2198 ###
2192 # Internal helpers, dragons probably 2199 # Internal helpers, dragons probably
2193 ### 2200 ###
Powered by cgit v1.2.3 (git 2.41.0)