Add additional_owners parameter for API.chunked_upload
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 16:41:51 +0000 (10:41 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 16:42:22 +0000 (10:42 -0600)
tweepy/api.py

index f0521e6b0338c66561c066ba8de2c4eb4fec8b95..f7201994509b5fded4b8d33c5ab153bdda004fe9 100644 (file)
@@ -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)