Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending photo by message is functional #179

Open
Slewog opened this issue Jan 18, 2021 · 3 comments
Open

Sending photo by message is functional #179

Slewog opened this issue Jan 18, 2021 · 3 comments

Comments

@Slewog
Copy link

Slewog commented Jan 18, 2021

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
Copy link
Author

Slewog commented Jan 19, 2021

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

@kushc0de
Copy link

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?

@Slewog
Copy link
Author

Slewog commented Jul 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants