From f64c076503e13411719faa3042267f27e96126ea Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 8 Feb 2021 02:51:32 -0600 Subject: [PATCH] Require status parameter for API.update_status --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 13781c6..ad14a11 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -317,14 +317,14 @@ class API: ) @payload('status') - def update_status(self, *args, **kwargs): + def update_status(self, status, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update """ if 'media_ids' in kwargs: kwargs['media_ids'] = list_to_csv(kwargs['media_ids']) return self.request( - 'POST', 'statuses/update', *args, endpoint_parameters=( + 'POST', 'statuses/update', status, *args, endpoint_parameters=( 'status', 'in_reply_to_status_id', 'auto_populate_reply_metadata', 'exclude_reply_user_ids', 'attachment_url', 'media_ids', 'possibly_sensitive', 'lat', -- 2.25.1