Comments (4)
Hi.
Thanks for reporting this issue.
Could you share your code please.
Also let me know which version of tweetinvi you are using.
Linvi
from tweetinvi.
Version 0.9.9.1
Did a little more investigation - it actually works if the tweet text length is under 118.
// test
byte[] image = System.IO.File.ReadAllBytes(@"C:\temp\testTweetImage.jpg");
string text = "abcdefghijklmnopqrstuvwxy abcdefghijklmnopqrstuvwxy abcdefghijklmnopqrstuvwxy abcdefghijklmop" + "http://bit.ly/tinyurlwiki";
int tl = text.TweetLength();
var tweet = Tweet.PublishTweetWithImage(text, image);
play around by adding/subtracting characters to the last set of alphabet chars to see this succeed and fail.
from tweetinvi.
Hi this is not the correct way to calculate the size with media. Please do the following:
byte[] image = System.IO.File.ReadAllBytes(@"C:\temp\testTweetImage.jpg");
string text = "abcdefghijklmnopqrstuvwxy abcdefghijklmnopqrstuvwxy abcdefghijklmnopqrstuvwxy abcdefghijklmop" + "http://bit.ly/tinyurlwiki";
var publishParameter = new PublishTweetParameters(text)
{
MediaBinaries = { image }
};
var tl = Tweet.Length(publishParameter); // returns 141
I will try to improve this in future releases.
from tweetinvi.
You can find the work item here.
from tweetinvi.
Related Issues (20)
- Schedules tweets support
- TrustFailure at client creation HOT 1
- PossiblySensitive being ignored
- ImpressionsCount not on Public Metrics
- .NET MAUI Blazor Hybrid (.NET 7) / TweetinviAPI 5.0.4 - Error - Operation is not supported on this platform
- Fun fact : Chat GPT-4 chose TweetInvi when I asked him a C# question about Twitter filtered stream
- 403 Forbidden on Filtered Stream v1.1 HOT 5
- How to get retweets from a particular user. HOT 1
- Twitter V2 List Lookup HOT 1
- V1.1 vs v2.0 API and deprecation HOT 5
- Timelines.GetHomeTimelineAsync HOT 2
- Get user tweets by time period
- Help! My code stopped working HOT 1
- TweetInvi Code stopped working HOT 2
- Stream cannot be read HOT 1
- Forbidden error for fetching UserTimeline HOT 4
- PublishTweetAsync does not publish anything HOT 7
- 403 Forbidden Error
- SearchTweetsV2Parameters: start_time date format is incorrect. It should return 24h format, it uses AM/PM instead HOT 1
- Twitter Tweetinvi.TweetinviContainer Post Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tweetinvi.