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

[NEW] Send Location #170

Open
mohanadrefaai opened this issue May 20, 2018 · 3 comments
Open

[NEW] Send Location #170

mohanadrefaai opened this issue May 20, 2018 · 3 comments

Comments

@mohanadrefaai
Copy link

Add feature to send a location specified by Latitude and Longitude

@rafaelks
Copy link
Contributor

@mohanadrefaai What's the REST API to send this information?

@luciofm
Copy link
Contributor

luciofm commented May 21, 2018

@rafaelks I think it is an Attachment type.

@mohanadrefaai
Copy link
Author

mohanadrefaai commented May 21, 2018

@rafaelks It is the same API to send message (/api/v1/chat.sendMessage). We just need to add "location" param to the body of the request and the format is like that:
"location": {
"type": "Point",
"coordinates": [
long,
lat
]
}
It will be great also to receive message with location field to map it.

@luciofm No it is not an Attachment type. Location is sent as a separated field AFTER enabling it on the server in Message section, enable GoogleMap.

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

3 participants