gcphone icon indicating copy to clipboard operation
gcphone copied to clipboard

Sending photo by message is functional

Open Slewog opened this issue 4 years ago • 3 comments

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 Capture

Slewog avatar Jan 18 '21 21:01 Slewog

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

Slewog avatar Jan 19 '21 00:01 Slewog

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?

kushc0de avatar Jul 10 '21 23:07 kushc0de

Yes I have but I don't remember how I have do that x)

Slewog avatar Jul 12 '21 09:07 Slewog