Page 1 of 1

Tweet reply with image / video

Posted: Thu Aug 18, 2022 3:21 pm
by martin@rootjazz
How to tweet a reply and include an image.

Code: Select all

#media:<path>#
Where <path> is the path to your media file


Image

Code: Select all

#media:c:\images\img.jpg#
Video

Code: Select all

#media:c:\videos\vid.mp4#


Also works with DM Direct message, include the above token and it's replaced with the image / video.
Works in all tweets / replies / comments / text tweets etc

Re: Tweet reply with image / video

Posted: Thu Aug 31, 2023 1:53 pm
by nfkmobile
does it work in mass auto reply on custom profiles? can we use random photos from a folder?

Re: Tweet reply with image / video

Posted: Thu Aug 31, 2023 2:11 pm
by martin@rootjazz
nfkmobile wrote: Thu Aug 31, 2023 1:53 pm does it work in mass auto reply on custom profiles?
It works in any reply context: DM / tweet reply ( or even a normal tweet)
can we use random photos from a folder?


#media:<directory>#
#media:c:\path\to\medias#

Re: Tweet reply with image / video

Posted: Thu Aug 31, 2023 2:22 pm
by nfkmobile
i just tried #media:c:\path\to\medias# but it seems that the bot tries to upload all the pictures in the folder. doesn;t pic just one... or... maybe it just caches them? i mean it looked like it tried to upload all

Re: Tweet reply with image / video

Posted: Thu Aug 31, 2023 2:48 pm
by nfkmobile
{"errors":[{"message":"BadRequest: Tweet must not have more than 4 mediaIds. (324)","locations":[{"line":18,"column":3}],"path":["create_tweet"],"extensions":{"name":"BadRequestError","source":"Client","code":324,"kind":"Validation","tracing":
ERROR RESP FROM TWITTER: 324 BadRequest: Tweet must not have more than 4 mediaIds. (324)
* TESTING for known failure text: BadRequest: Tweet must not have more than 4 mediaIds. (324)
BadRequest: Tweet must not have more than 4 mediaIds. (324):

it tries to upload all the images in the folder :(

Re: Tweet reply with image / video

Posted: Thu Aug 31, 2023 3:42 pm
by martin@rootjazz
Let me test

Re: Tweet reply with image / video

Posted: Thu Aug 31, 2023 3:45 pm
by martin@rootjazz
damn, yes confirmed. There is a problem. There is double functionality


use a folder to post an album of photos in one tweet

and

use a folder to select a random image


It's just the check for folder album functionality is performed first...


let me think about what to do to correct this

Re: Tweet reply with image / video

Posted: Thu Aug 31, 2023 3:51 pm
by martin@rootjazz
From next update:

Upload single media
#media:<filepath>#
#media:c:\path\to\file.jpg#
#media:c:\path\to\file.mp4#

For a random media:
#media:<directory>#
#media:c:\path\to\medias#

To upload all media in a folder:
#album:c:\path\to\medias#

Re: Tweet reply with image / video

Posted: Thu Aug 31, 2023 6:37 pm
by martin@rootjazz

Re: Tweet reply with image / video

Posted: Fri Sep 01, 2023 7:52 am
by nfkmobile
that was fast to fix :P thanks :P badass support