sulla
sulla copied to clipboard
Get actual location of users using live location
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