Skip to content

Commit

Permalink
Remove API.update_status parameters
Browse files Browse the repository at this point in the history
Remove enable_dmcommands and fail_dmcommands parameters from API.update_status
https://twittercommunity.com/t/retiring-legacy-dm-commands-on-the-standard-tweet-api/86653/4
  • Loading branch information
Harmon758 committed Apr 10, 2021
1 parent c9ffa02 commit fe5b3ef
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,7 @@ def update_status(self, status, **kwargs):
auto_populate_reply_metadata, \
exclude_reply_user_ids, attachment_url, media_ids, \
possibly_sensitive, lat, long, place_id, \
display_coordinates, trim_user, enable_dmcommands, \
fail_dmcommands, card_uri)
display_coordinates, trim_user, card_uri)
Updates the authenticating user's current status, also known as
Tweeting.
Expand Down Expand Up @@ -731,15 +730,6 @@ def update_status(self, status, **kwargs):
:param display_coordinates: Whether or not to put a pin on the exact
coordinates a Tweet has been sent from.
:param trim_user: |trim_user|
:param enable_dmcommands: When set to true, enables shortcode commands
for sending Direct Messages as part of the status text to send a
Direct Message to a user. When set to false, disables this behavior
and includes any leading characters in the status text that is
posted
:param fail_dmcommands: When set to true, causes any status text that
starts with shortcode commands to return an API error. When set to
false, allows shortcode commands to be sent in the status text and
acted on by the API.
:param card_uri: Associate an ads card with the Tweet using the
card_uri value from any ads card response.
Expand All @@ -756,7 +746,7 @@ def update_status(self, status, **kwargs):
'auto_populate_reply_metadata', 'exclude_reply_user_ids',
'attachment_url', 'media_ids', 'possibly_sensitive', 'lat',
'long', 'place_id', 'display_coordinates', 'trim_user',
'enable_dmcommands', 'fail_dmcommands', 'card_uri'
'card_uri'
), status=status, **kwargs
)

Expand Down

0 comments on commit fe5b3ef

Please sign in to comment.