Hi Linvi,
I get an ArgumentException ("Cannot publish a tweet with more than 4 medias.") when I try to publish a Tweet with more than two media.
I'm putting the media into a PublishTweetOptionalParameters via the MediaBinaries property.
A quick look at the TweetInvi code and it looks like i'm running into the following in TqitterQueryValidator.ThrowIfTweetCannotBePublished
![Image]()
It isn't urgent, but could you take a look?
Cheers,
Josh
I get an ArgumentException ("Cannot publish a tweet with more than 4 medias.") when I try to publish a Tweet with more than two media.
I'm putting the media into a PublishTweetOptionalParameters via the MediaBinaries property.
A quick look at the TweetInvi code and it looks like i'm running into the following in TqitterQueryValidator.ThrowIfTweetCannotBePublished
if ((mediaIds.Count() + parameters.MediaBinaries.Count()) > 4)
{
throw new ArgumentException("Cannot publish a tweet with more than 4 medias.");
}
When I look at my instance of PublishTweetOptionalParameters when debugging, I see that setting MediaBinaries has also set MediaIds so each one gets counted twice.
It isn't urgent, but could you take a look?
Cheers,
Josh