Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

Edited Feature: Reply with multiple pictures [2293]

$
0
0
I could not able to reply with multiple pictures.

I added 3 pictures and did reply, only one image is replied.

My code is as follows

byte[] file1 = File.ReadAllBytes(string.Format(@"{0}\{1}",path,Pictures[0]));

var tweet = Tweet.CreateTweetWithMedia(TweetText, file1);
for (int i = 1; i < Pictures.Count; i++)
{
byte[] file =File.ReadAllBytes(string.Format(@"{0}\{1}",path,Pictures[i]));
tweet.AddMedia(file);
}
bool Status = tweet.PublishInReplyTo(ToTweetID);
Comments: ** Comment from web user: linvi **

Tweetinvi has the code implemented to provide such a feature but Twitter does not authorize to send multiple images from the Twitter API.

I am therefore putting the thread as resolved.


Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>