Jump to content
  • 0

Please help me create a script to send messages


ScriptLover
 Share

Question

I want to create a script that sends a message to a phone number and use it to create a fun script. If you have any script API, code, or files to send, I would appreciate it if you could provide them to me. And I will definitely repay you. 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

[ @ScriptLover ]
---

Quote

I want to create a script that sends a message to a phone number and use it to create a fun script

  • - As said above, Game Guardian can't access anything beyond app processes. Thus it can't access messaging app.
  • - It is also aren't able to send any MMS, and can only do HTTP request.
  • - Game Guardian doesn't have built-in library or functionality to do send SMS, other than memory editing.
  • - In order to send a message, the app need access to telephony and read sim card information. Basically you can't do that with just LUA script.

---
However,  it is still possible to do that in Game Guardian but you need 3rd-party messaging APISMS API and use gg.makeRequest()

Quote

servicePlanId = ""
apiToken = ""
sinchNumber = ""
toNumber = ""
your_message = ""

gg.makeRequest(
    "https://us.sms.api.sinch.com/xms/v1/" ... servicePlanId ... "/batches",
    
    {["Content-Type"]= "application/json", ["Authorization"]= "Bearer " ... apiToken}
    
    '{"from":' .. sinchNumber .. ', "to": [ ' .. toNumber
   .. '], "body": "' .. your_message .. '"}'
)
 

---
Hope that helps...

Edited by kiynox
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.