Skip to content

Commit

Permalink
Note deprecation of compliance messages for AsyncStream.filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed May 19, 2022
1 parent e043074 commit 1b77007
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tweepy/asynchronous/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,14 @@ def filter(self, *, follow=None, track=None, locations=None,
filter_level=None, languages=None, stall_warnings=False):
"""Filter realtime Tweets
.. deprecated:: 4.10
`The delivery of compliance messages through the Twitter API v1.1
endpoint this method uses has been deprecated, and they will stop
being delivered beginning October 29, 2022.`_ Twitter API v2 can be
used instead with :meth:`AsyncStreamingClient.filter` and/or
:class:`AsyncClient` :ref:`batch compliance <Batch compliance>`
methods.
Parameters
----------
follow: list[int | str] | None
Expand Down Expand Up @@ -292,6 +300,9 @@ def filter(self, *, follow=None, track=None, locations=None,
.. _BCP 47: https://tools.ietf.org/html/bcp47
.. _advanced search: https://twitter.com/search-advanced
.. _The delivery of compliance messages through the Twitter API v1.1
endpoint this method uses has been deprecated, and they will stop
being delivered beginning October 29, 2022.: https://twittercommunity.com/t/deprecation-announcement-removing-compliance-messages-from-statuses-filter-and-retiring-statuses-sample-from-the-twitter-api-v1-1/170500
"""
if self.task is not None and not self.task.done():
raise TweepyException("Stream is already connected")
Expand Down

0 comments on commit 1b77007

Please sign in to comment.