How to ping a photon via cloud function?

Hi Everyone,

I’ve a telegram bot that upon getting a request from telegram user needs to ping the photon and send the status to the user. Right now i’m using this to get the ip and sent it to firebase and run a cloud function to ping the device. Are there any way i could use the’s ping feature on cloud function so that i don’t have to run cloud function to note changes in the ip and ping it all the time.

Are there any better way to ping the photon outside the particle console?

thanks in advance!

1 Like

So, this?