From fb6de248dbe18f3bf93a2865c055b317945acdd6 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 10:41:51 -0600 Subject: [PATCH] Add additional_owners parameter for API.chunked_upload --- tweepy/api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index f0521e6..f720199 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -376,7 +376,8 @@ class API: ) def chunked_upload(self, filename, file=None, file_type=None, - media_category=None, *args, **kwargs): + media_category=None, additional_owners=None, *args, + **kwargs): """ :reference https://developer.twitter.com/en/docs/media/upload-media/uploading-media/chunked-media-upload """ fp = file or open(filename, 'rb') @@ -387,7 +388,8 @@ class API: fp.seek(start) media_id = self.chunked_upload_init( - file_size, file_type, media_category=media_category, **kwargs + file_size, file_type, media_category=media_category, + additional_owners=additional_owners, **kwargs ).media_id min_chunk_size, remainder = divmod(file_size, 1000) -- 2.25.1