From fe5b3efd77713d00a7ca516ec20afa54903cba8c Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 10 Apr 2021 16:38:26 -0500 Subject: [PATCH] Remove API.update_status parameters 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 --- tweepy/api.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 138cbc7..c008118 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -671,8 +671,7 @@ class API: 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. @@ -731,15 +730,6 @@ class API: :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. @@ -756,7 +746,7 @@ class API: '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 ) -- 2.25.1