Variable to divide tweet?

kbexit

New member
I have a macro set right now to tweet off a variable change...
Recently that variable was longer than what Twitter can have... Is there a way to make Macrodroid take the variable and split it to two tweets? Preferably into a thread? Or is that too complex.
 

Dimlos

Well-known member
It seems possible if you search the internet, but it is in the category of API and Python module usage that has little to do with MacroDroid.
It may be difficult to get answers in this forum.

It seems that Twitter's API will be paid for, and we need to consider whether we need to pay for automated tweeting.
 

kbexit

New member
It seems possible if you search the internet, but it is in the category of API and Python module usage that has little to do with MacroDroid.
It may be difficult to get answers in this forum.

It seems that Twitter's API will be paid for, and we need to consider whether we need to pay for automated tweeting.
Yeah it looks like I'm starting to have problems with posting tweets through Macrodroid. Not sure if it's related or not though...
 

MacroDroidDev

Administrator
Staff member
I believe the Tweet action is still working currently, but I expect it's only a matter of time before it stops working unless I give Elon Musk my left kidney.

You can use the text manipulation action to extract parts of text from a string. So you could do something like get the length of a string variable using the {strlen=varname} into an integer variable. Then divide this number by 240 for the number of tweets you will need to send and then iterate this number of times to extract the text at the correct locations and send an individual tweet with that sub-text.
 

Dimlos

Well-known member
If you want to do something difficult, you will probably want to use the API directly instead of the action.
 
Top