Hey, so I have been building a twitter bot these past few days that recognizes an image posted in a discord channel and then posts it to twitter under my account. I am a bit new to the twitter api, so I am having a bit of trouble with understanding how to tweet images. Right now, when I post an image in the discord channel it posts “[object Object]” to twitter. After doing some research, I believe this was because I never uploaded the image to twitter before posting it, and the only way to upload it is after encoding it to b64. I found a way to possibly do it with local files on my computer, but since these images are posted to a discord server, they never actually are downloaded to my computer. Does anyone know what I should here? Thanks.
Submitted August 19, 2020 at 09:56PM by der_98
No comments:
Post a Comment