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

Commented Issue: TweetRemainingCharacters does not take photo into account [2348]

$
0
0
Observe the following code:

```
var twt = Tweet.CreateTweet("Hulp nodig op vakantie? Dan is het handig dat je bij onverwachte gebeurtenissen een beroep kunt doen op service. http://cap.nl/vqw5wxd8");
twt.AddMedia(System.IO.File.ReadAllBytes(@"C:\Users\k.bakker\Desktop\Stuff\Media\Photos\Potloodjes.jpg"));
int remaining = twt.TweetRemainingCharacters();
```

The returned answer is __5__, but I expected __-18__. Is this a bug or am I doing something wrong?

Twitter seems to return __-18__:
![Image](http://content.screencast.com/users/KeesCBakker/folders/Jing/media/24c2b026-cc29-4fca-b25e-fdd0d6ea3742/2014-08-04_1050.png)
Comments: ** Comment from web user: KeesCBakker **

Thanks Linvi! Maybe it is a good idea to add it to your tests?


Viewing all articles
Browse latest Browse all 4126

Trending Articles



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