From: Harmon Date: Fri, 19 Feb 2021 22:47:06 +0000 (-0600) Subject: Require status parameter for API.update_with_media X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d06527c9f056fccdd22df18c77a6611052b364f5;p=tweepy.git Require status parameter for API.update_with_media --- diff --git a/tweepy/api.py b/tweepy/api.py index 98ec11b..94c6ec2 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -484,7 +484,7 @@ class API: ) @payload('status') - def update_with_media(self, filename, file=None, *args, **kwargs): + def update_with_media(self, filename, status, file=None, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update_with_media """ if file is not None: @@ -495,7 +495,7 @@ class API: 'POST', 'statuses/update_with_media', *args, endpoint_parameters=( 'status', 'possibly_sensitive', 'in_reply_to_status_id', 'lat', 'long', 'place_id', 'display_coordinates' - ), files=files, **kwargs + ), status=status, files=files, **kwargs ) @payload('media')