gcphone
gcphone copied to clipboard
Sending photo by message is functional
Hello,
just a little post to warn you that with a friend we have to find a solution so that the photos by messages are functional with screenshot-basic and a webhookdiscord
Replace this:
exports['screenshot-basic']:requestScreenshotUpload(data.url, data.field, function(data)
local resp = json.decode(data)
DestroyMobilePhone()
CellCamActivate(false, false)
cb(json.encode({ url = resp.files[1].url }))
end)
with:
exports['screenshot-basic']:requestScreenshotUpload("YOUR Discord Webhook URL", "files[]", function(data)
local image = json.decode(data)
DestroyMobilePhone()
CellCamActivate(false, false)
cb(json.encode({ url = image.attachments[1].proxy_url }))
end)
You need just a discord channel to post the image
But send an URL with Twitter isn't working, Have you a solution for that ?
The discord weebhook is setting, tweet only with text is working but no with just an URL
But send an URL with Twitter isn't working, Have you a solution for that ?
The discord weebhook is setting, tweet only with text is working but no with just an URL
you got solution?
Yes I have but I don't remember how I have do that x)