Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Support / help / discussion forum for twitter bot
bitcoin
Posts: 924
Joined: Tue Jul 04, 2017 1:25 am

Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by bitcoin »

Martin, still some counting bugs with Tweet Images randomization from file.

Code: Select all

PreTokens: If CIF Ltd. accepts your business, you will receive a quarterly amount (“allowance”) of $CIF... JOIN THE ICO!<br><br>https://cryptoimprovementfund.io/wp-content/uploads/2017/09/CIF_Whitepaper.pdf
PostTokens: If CIF Ltd. accepts your business, you will receive a quarterly amount (“allowance”) of $CIF... JOIN THE[color=#4000FF] ICO![/color]<br><br>https://cryptoimprovementfund.io/wp-content/uploads/2017/09/CIF_Whitepaper.pdf
[color=#FF0000]Too long: 184[/color]
Snipped to: (104): If CIF Ltd. accepts your business, you will receive a quarterly amount (“allowance”) of $CIF... JOIN THE
Posting tweet: If CIF Ltd. accepts your business, you will receive a quarterly amount (“allowance”) of $CIF... JOIN THE
*SUCCESS: Tweet: If CIF Ltd. accepts your business, you will receive a quarterly amount (“allowance”) of $CIF... JOIN THE https://t.co/dOWwHqeaA2
* SUCCESS: (1) 2312752779 to Crypto__Fun
My tweet gets cut short, BUT it should fit just fine! Even if I keep <br><br> in the tweet, I still am within Twitter limits :(

Image

And this is the tweet itself: https://twitter.com/Crypto__Fun/status/ ... 2767198208
Image

LOGS:
30324

Please fix :(

:)
User avatar
martin@rootjazz
Site Admin
Posts: 34360
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by martin@rootjazz »

My tweet gets cut short, BUT it should fit just fine! Even if I keep <br><br> in the tweet, I still am within Twitter limits :(

How big should it have been?

I think I erred on the side of caution as your tweets were failing when shouldn't have, so I think I reduced the chars by 1 or 2 to be on the safe side :)

so maybe if you text was 139 it might have been cropped. Better cropped than failed was the idea of that decision....
bitcoin
Posts: 924
Joined: Tue Jul 04, 2017 1:25 am

Re: Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by bitcoin »

martin@rootjazz wrote: Tue Sep 19, 2017 1:16 am
My tweet gets cut short, BUT it should fit just fine! Even if I keep <br><br> in the tweet, I still am within Twitter limits :(

How big should it have been?

I think I erred on the side of caution as your tweets were failing when shouldn't have, so I think I reduced the chars by 1 or 2 to be on the safe side :)

so maybe if you text was 139 it might have been cropped. Better cropped than failed was the idea of that decision....
Please look at the example given - it says all. Something is not right, and it's more than 1 character :/
User avatar
martin@rootjazz
Site Admin
Posts: 34360
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by martin@rootjazz »

It is too long:

If CIF Ltd. accepts your business, you will receive a quarterly amount (“allowance”) of $CIF... JOIN THE ICO!<br><br>***********************

URL removed and replaced with 23 chars as will be done by twitter.


Are you specifying the color information?
bitcoin
Posts: 924
Joined: Tue Jul 04, 2017 1:25 am

Re: Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by bitcoin »

No, I did not add the colour. It looks like ASCII to me in TD. But it might have carried over from copy pasting? I don't know.

I'm pretty sure you are calculating wrongly with the dynamic image tweets from file.

I've seen a few examples pass by by now.

Here's another one:

Code: Select all

{#MingoCoin|@mingocoin} price festival! {3 winners, 6k US$!|3 winners total!|Win! Win! Win!}<br>Celebrate the successful {#preICO|presale} & {SIGN UP|JOIN} NOW http://goo.gl/YzVdq8<br>WIN FREE{ $| #| }LTC{ $| #| }ETH{ $| #| }BTC
Gives: https://twitter.com/crypto_growers/stat ... 7521337344
@mingocoin price festival! Win! Win! Win!
Celebrate the successful presale & SIGN UP NOW http://goo.gl/YzVdq8
WIN FREE #LTC $ETH
As you can see, { $| #| }BTC, is being dropped.

As you can see, again, with yet another example given above, I get this screenshot:
Image

Clearly, once again, there is plenty of room for "$BTC" in that tweet. Yet TD cuts it short.

And I'm pretty sure that the example you gave above turns out to be a correct tweet after all. I very carefully construct my dynamic tweets, always taking max lengths in to account. TD is doing it wrong. It needs to be fixed because I'm tweeting crippled tweets with missing links and more. I'm not at fault. TD is.
bitcoin
Posts: 924
Joined: Tue Jul 04, 2017 1:25 am

Re: Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by bitcoin »

martin@rootjazz wrote: Tue Sep 19, 2017 4:13 pm It is too long:

If CIF Ltd. accepts your business, you will receive a quarterly amount (“allowance”) of $CIF... JOIN THE ICO!<br><br>***********************

URL removed and replaced with 23 chars as will be done by twitter.


Are you specifying the color information?
What twitter version are you using??? Do you even test or just rush through it just to get back to the 'popular' programs?

Image

Tell me Martin, where is this tweet too long?? Even with <br><br> still IN the tweet and WITH all your stars it STILL fits. Like I said before! PLEASE PLEASE PLEASE READ what I post. I'm not at fault. TD is :evil: :evil: :evil:
bitcoin
Posts: 924
Joined: Tue Jul 04, 2017 1:25 am

Re: Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by bitcoin »

Here, another example:

Code: Select all

All referral program payouts are being done in real time. Give us 24h for processing and PROFIT! https://t.co/3JomToePnf<br><br>
Image

Image

As you can see, a link is removed where it should not have been removed.

So... Again... TD is at fault, check your coding :(
bitcoin
Posts: 924
Joined: Tue Jul 04, 2017 1:25 am

Re: Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by bitcoin »

Code: Select all

BUY BUY BUY and get +1% bonus just from me https://my.electroneum.com/join/MINERS. @ELECTRONEUM #ICO already a HUGE success! Why? Because $ETN is AWESOME!
Gives:
Image

But:
Image

Should I really continue? Or are you ready for the fact that there is something pretty messed up going on here?
bitcoin
Posts: 924
Joined: Tue Jul 04, 2017 1:25 am

Re: Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by bitcoin »

PS: <br> stand for: EndOfLine character. Just in case... :roll:
User avatar
martin@rootjazz
Site Admin
Posts: 34360
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Still problems with determining max size of a tweet with Tweet Images #file:C:\path\tweets.txt#

Post by martin@rootjazz »

If you remember there was an issue with a single char on the page being counted as more than 1 character as it's encoded value was more than one char when sent to twitter and was counted as such.

so what may seem like 140 chars to you, is actually more due to twitter counting encoded values.

I have tried searching to get a complete, exact list of what encodings are counted and what are not. They state that café is only counted as 4, but infact is actually sent as 6, but other symbols are not stated.

So that leaves the predicament of either encoding all non a-z 0-9 or not. Encoding all and the tweets send but perhaps over shortened, treat all chars as 1 and sometimes the tweet is not sent
Post Reply