Tweet reply with image / video

Support / help / discussion forum for twitter bot
Post Reply
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Tweet reply with image / video

Post 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
nfkmobile
Posts: 23
Joined: Thu Aug 31, 2023 1:52 pm

Re: Tweet reply with image / video

Post by nfkmobile »

does it work in mass auto reply on custom profiles? can we use random photos from a folder?
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Tweet reply with image / video

Post 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#
nfkmobile
Posts: 23
Joined: Thu Aug 31, 2023 1:52 pm

Re: Tweet reply with image / video

Post 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
nfkmobile
Posts: 23
Joined: Thu Aug 31, 2023 1:52 pm

Re: Tweet reply with image / video

Post 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 :(
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Tweet reply with image / video

Post by martin@rootjazz »

Let me test
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Tweet reply with image / video

Post 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
User avatar
martin@rootjazz
Site Admin
Posts: 34358
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Tweet reply with image / video

Post 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#
nfkmobile
Posts: 23
Joined: Thu Aug 31, 2023 1:52 pm

Re: Tweet reply with image / video

Post by nfkmobile »

that was fast to fix :P thanks :P badass support
Post Reply