sulla icon indicating copy to clipboard operation
sulla copied to clipboard

Get actual location of users using live location

Open ctoveloz opened this issue 4 years ago • 0 comments

My intention is to make a bot using the live location function onLiveLocation but I have several doubts about this. I would like an example to obtain the return from when the user starts to provide his location in real time.

!location @user

This will return the geolocation where the user is now. i tried somethint like this:

if (message.body === '!location ' + @user) {

      client.onLiveLocation(message.from, `@user is on this actual Location: ${message.loc}`);

    }

Thanks

ctoveloz avatar Apr 30 '20 00:04 ctoveloz