Hi,
I tested a bit more, because there was no exception - just the Publish() function returned "false".
It was simply related to the length of the text: When you include an image to your tweet, you can post 117 instead of 140 characters. But your function "GetRemainingCharacters" does not recognize this. Would be nice to get "-23" if you try to post 140 characters with an image so you can check and change/shorten the text before publishing it.
Best Regards,
Henning
I tested a bit more, because there was no exception - just the Publish() function returned "false".
It was simply related to the length of the text: When you include an image to your tweet, you can post 117 instead of 140 characters. But your function "GetRemainingCharacters" does not recognize this. Would be nice to get "-23" if you try to post 140 characters with an image so you can check and change/shorten the text before publishing it.
Best Regards,
Henning