From 9df586f2c518d99d23f5b3eaa4e6881f9f2fb8a0 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 15 Jan 2021 13:13:47 -0600 Subject: [PATCH] Pass command kwarg directly in API.get_media_upload_status --- tweepy/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 4ad13e9..088683c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -390,7 +390,6 @@ class API: """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/get-media-upload-status :allowed_param: 'media_ids' """ - kwargs['command'] = 'STATUS' return bind_api( api=self, path='/media/upload.json', @@ -398,7 +397,7 @@ class API: allowed_param=['media_id'], upload_api=True, require_auth=True - )(*args, **kwargs) + )(*args, command='STATUS', **kwargs) @property def destroy_status(self): -- 2.25.1