ttezel / twit

Twitter API Client for node (REST & Streaming API)
4.31k stars 568 forks source link

Media Chunked Upload #578

Open Sohaib448506 opened 2 years ago

Sohaib448506 commented 2 years ago

Hi, the twitter has depreciated the /media/upload for video. Now the video can only be uploaded in chunked but your chunked function has a drawback. It works for tweet but does not work for DM. Because while uploading video in chunked we need to pass a media category (dm_video or tweet_video) but you are passing only the tweet category. So the media ID produce by this package for video is not acceptable for sending the video to DM. Th solution for this is just take an extra parameters while uploading the video in chunked of category whether it is for tweet or for DM and then base on that give media category while uploading a video. I am looking forward to contribute more.

Thanks